@bspk/ui 1.3.4 → 1.3.6

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 (185) hide show
  1. package/dist/components/Avatar/Avatar.d.ts +3 -3
  2. package/dist/components/Avatar/Avatar.js +8 -8
  3. package/dist/components/Avatar/Avatar.js.map +1 -1
  4. package/dist/components/Avatar/AvatarExample.js +1 -1
  5. package/dist/components/Avatar/AvatarExample.js.map +1 -1
  6. package/dist/components/Avatar/avatar.css +5 -1
  7. package/dist/components/Avatar/avatar.css.js +5 -1
  8. package/dist/components/AvatarGroup/AvatarGroup.d.ts +11 -6
  9. package/dist/components/AvatarGroup/AvatarGroup.js +5 -6
  10. package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -1
  11. package/dist/components/AvatarGroup/AvatarGroupExample.js +36 -9
  12. package/dist/components/AvatarGroup/AvatarGroupExample.js.map +1 -1
  13. package/dist/components/AvatarGroup/Overflow.d.ts +11 -0
  14. package/dist/components/AvatarGroup/Overflow.js +37 -0
  15. package/dist/components/AvatarGroup/Overflow.js.map +1 -0
  16. package/dist/components/AvatarGroup/avatar-group.css +27 -13
  17. package/dist/components/AvatarGroup/avatar-group.css.js +27 -13
  18. package/dist/components/Badge/BadgeExample.js +1 -1
  19. package/dist/components/Badge/BadgeExample.js.map +1 -1
  20. package/dist/components/BadgeDot/BadgeDotExample.js +1 -1
  21. package/dist/components/BadgeDot/BadgeDotExample.js.map +1 -1
  22. package/dist/components/Button/Button.d.ts +2 -2
  23. package/dist/components/Card/Card.d.ts +2 -1
  24. package/dist/components/Card/Card.js +2 -2
  25. package/dist/components/Card/Card.js.map +1 -1
  26. package/dist/components/Checkbox/Checkbox.d.ts +2 -2
  27. package/dist/components/Checkbox/Checkbox.js +2 -2
  28. package/dist/components/Checkbox/Checkbox.js.map +1 -1
  29. package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +5 -5
  30. package/dist/components/CheckboxGroup/CheckboxGroup.js +7 -8
  31. package/dist/components/CheckboxGroup/CheckboxGroup.js.map +1 -1
  32. package/dist/components/CheckboxGroupField/CheckboxGroupField.d.ts +1 -1
  33. package/dist/components/CheckboxGroupField/CheckboxGroupField.js +2 -2
  34. package/dist/components/CheckboxGroupField/CheckboxGroupField.js.map +1 -1
  35. package/dist/components/CheckboxOption/CheckboxOption.d.ts +3 -2
  36. package/dist/components/CheckboxOption/CheckboxOption.js +2 -2
  37. package/dist/components/CheckboxOption/CheckboxOption.js.map +1 -1
  38. package/dist/components/DatePickerField/DatePickerField.d.ts +1 -1
  39. package/dist/components/DatePickerField/DatePickerField.js +2 -2
  40. package/dist/components/DatePickerField/DatePickerField.js.map +1 -1
  41. package/dist/components/Fab/Fab.d.ts +2 -2
  42. package/dist/components/Fab/Fab.js.map +1 -1
  43. package/dist/components/Field/utils.d.ts +1 -1
  44. package/dist/components/FormField/FormField.d.ts +3 -2
  45. package/dist/components/FormField/FormField.js +2 -2
  46. package/dist/components/FormField/FormField.js.map +1 -1
  47. package/dist/components/InputField/InputField.d.ts +1 -1
  48. package/dist/components/InputField/InputField.js +2 -2
  49. package/dist/components/InputField/InputField.js.map +1 -1
  50. package/dist/components/InputNumberField/InputNumberField.d.ts +1 -1
  51. package/dist/components/InputNumberField/InputNumberField.js +2 -2
  52. package/dist/components/InputNumberField/InputNumberField.js.map +1 -1
  53. package/dist/components/InputPhoneField/InputPhoneField.d.ts +1 -1
  54. package/dist/components/InputPhoneField/InputPhoneField.js +2 -2
  55. package/dist/components/InputPhoneField/InputPhoneField.js.map +1 -1
  56. package/dist/components/Layout/Layout.d.ts +2 -2
  57. package/dist/components/Layout/Layout.js.map +1 -1
  58. package/dist/components/ListItem/ListItem.d.ts +1 -1
  59. package/dist/components/Menu/Menu.d.ts +8 -1
  60. package/dist/components/Menu/Menu.js +1 -1
  61. package/dist/components/Menu/Menu.js.map +1 -1
  62. package/dist/components/Menu/MenuExample.js +1 -1
  63. package/dist/components/Menu/MenuExample.js.map +1 -1
  64. package/dist/components/PasswordField/PasswordField.d.ts +1 -1
  65. package/dist/components/PasswordField/PasswordField.js +2 -2
  66. package/dist/components/PasswordField/PasswordField.js.map +1 -1
  67. package/dist/components/ProgressCircle/progress-circle.css +2 -0
  68. package/dist/components/ProgressCircle/progress-circle.css.js +2 -0
  69. package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
  70. package/dist/components/RadioGroup/RadioGroup.js +4 -5
  71. package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
  72. package/dist/components/RadioGroupField/RadioGroupField.d.ts +1 -1
  73. package/dist/components/RadioGroupField/RadioGroupField.js +2 -2
  74. package/dist/components/RadioGroupField/RadioGroupField.js.map +1 -1
  75. package/dist/components/SearchBar/SearchBar.d.ts +2 -2
  76. package/dist/components/SearchBar/SearchBar.js +2 -2
  77. package/dist/components/SearchBar/SearchBar.js.map +1 -1
  78. package/dist/components/Select/Select.d.ts +9 -2
  79. package/dist/components/Select/Select.js +4 -3
  80. package/dist/components/Select/Select.js.map +1 -1
  81. package/dist/components/Select/SelectExample.js +36 -1
  82. package/dist/components/Select/SelectExample.js.map +1 -1
  83. package/dist/components/SelectField/SelectField.d.ts +1 -1
  84. package/dist/components/SelectField/SelectField.js +2 -2
  85. package/dist/components/SelectField/SelectField.js.map +1 -1
  86. package/dist/components/SkeletonText/SkeletonText.js +1 -1
  87. package/dist/components/SkeletonText/SkeletonText.js.map +1 -1
  88. package/dist/components/Slider/slider.css +1 -0
  89. package/dist/components/Slider/slider.css.js +1 -0
  90. package/dist/components/Switch/Switch.d.ts +1 -7
  91. package/dist/components/Switch/Switch.js +1 -2
  92. package/dist/components/Switch/Switch.js.map +1 -1
  93. package/dist/components/Textarea/Textarea.d.ts +3 -9
  94. package/dist/components/Textarea/Textarea.js +2 -2
  95. package/dist/components/Textarea/Textarea.js.map +1 -1
  96. package/dist/components/TextareaField/TextareaField.d.ts +1 -1
  97. package/dist/components/TextareaField/TextareaField.js +2 -2
  98. package/dist/components/TextareaField/TextareaField.js.map +1 -1
  99. package/dist/components/TimePicker/TimePicker.js +10 -4
  100. package/dist/components/TimePicker/TimePicker.js.map +1 -1
  101. package/dist/components/TimePickerField/TimePickerField.d.ts +1 -1
  102. package/dist/components/TimePickerField/TimePickerField.js +2 -2
  103. package/dist/components/TimePickerField/TimePickerField.js.map +1 -1
  104. package/dist/components/ToggleOption/ToggleOption.d.ts +3 -3
  105. package/dist/components/ToggleOption/ToggleOption.js +2 -2
  106. package/dist/components/ToggleOption/ToggleOption.js.map +1 -1
  107. package/dist/components/Truncated/Truncated.d.ts +2 -2
  108. package/dist/components/Truncated/Truncated.js.map +1 -1
  109. package/dist/components/Txt/Txt.d.ts +2 -2
  110. package/dist/components/Txt/Txt.js.map +1 -1
  111. package/dist/hooks/useArrowNavigation.d.ts +0 -2
  112. package/dist/hooks/useArrowNavigation.js +0 -2
  113. package/dist/hooks/useArrowNavigation.js.map +1 -1
  114. package/dist/hooks/useCheckboxGroupState.d.ts +7 -10
  115. package/dist/hooks/useCheckboxGroupState.js +7 -10
  116. package/dist/hooks/useCheckboxGroupState.js.map +1 -1
  117. package/dist/hooks/useFloating.js +8 -7
  118. package/dist/hooks/useFloating.js.map +1 -1
  119. package/dist/styles/base.css +4 -0
  120. package/dist/styles/base.css.js +4 -0
  121. package/dist/types/common.d.ts +12 -1
  122. package/dist/types/common.js.map +1 -1
  123. package/meta.ts +4 -4
  124. package/package.json +1 -3
  125. package/src/components/Avatar/Avatar.tsx +10 -11
  126. package/src/components/Avatar/AvatarExample.tsx +1 -1
  127. package/src/components/Avatar/avatar.scss +6 -1
  128. package/src/components/AvatarGroup/AvatarGroup.tsx +20 -24
  129. package/src/components/AvatarGroup/AvatarGroupExample.tsx +35 -9
  130. package/src/components/AvatarGroup/Overflow.tsx +91 -0
  131. package/src/components/AvatarGroup/avatar-group.scss +34 -14
  132. package/src/components/Badge/BadgeExample.tsx +1 -1
  133. package/src/components/BadgeDot/BadgeDotExample.tsx +1 -1
  134. package/src/components/Button/Button.tsx +2 -2
  135. package/src/components/Card/Card.tsx +3 -2
  136. package/src/components/Checkbox/Checkbox.tsx +3 -8
  137. package/src/components/CheckboxGroup/CheckboxGroup.tsx +5 -10
  138. package/src/components/CheckboxGroupField/CheckboxGroupField.tsx +3 -2
  139. package/src/components/CheckboxOption/CheckboxOption.tsx +5 -4
  140. package/src/components/DatePickerField/DatePickerField.tsx +8 -1
  141. package/src/components/Fab/Fab.tsx +2 -2
  142. package/src/components/Field/utils.ts +1 -1
  143. package/src/components/FormField/FormField.tsx +13 -3
  144. package/src/components/InputField/InputField.tsx +15 -2
  145. package/src/components/InputNumberField/InputNumberField.tsx +8 -1
  146. package/src/components/InputPhoneField/InputPhoneField.tsx +8 -1
  147. package/src/components/Layout/Layout.tsx +2 -2
  148. package/src/components/ListItem/ListItem.tsx +1 -1
  149. package/src/components/Menu/Menu.tsx +9 -1
  150. package/src/components/Menu/MenuExample.tsx +1 -1
  151. package/src/components/PasswordField/PasswordField.tsx +15 -2
  152. package/src/components/ProgressCircle/progress-circle.scss +2 -0
  153. package/src/components/RadioGroup/RadioGroup.tsx +18 -22
  154. package/src/components/RadioGroupField/RadioGroupField.tsx +2 -1
  155. package/src/components/SearchBar/SearchBar.tsx +3 -1
  156. package/src/components/Select/Select.tsx +12 -3
  157. package/src/components/Select/SelectExample.tsx +36 -1
  158. package/src/components/SelectField/SelectField.tsx +15 -2
  159. package/src/components/SkeletonText/SkeletonText.tsx +1 -1
  160. package/src/components/Slider/slider.scss +1 -0
  161. package/src/components/Switch/Switch.tsx +1 -9
  162. package/src/components/Textarea/Textarea.tsx +34 -39
  163. package/src/components/TextareaField/TextareaField.tsx +15 -2
  164. package/src/components/TimePicker/TimePicker.tsx +13 -3
  165. package/src/components/TimePickerField/TimePickerField.tsx +8 -1
  166. package/src/components/ToggleOption/ToggleOption.tsx +20 -19
  167. package/src/components/Truncated/Truncated.tsx +2 -2
  168. package/src/components/Txt/Txt.tsx +2 -2
  169. package/src/hooks/useArrowNavigation.ts +0 -2
  170. package/src/hooks/useCheckboxGroupState.ts +7 -10
  171. package/src/hooks/useFloating.ts +8 -7
  172. package/src/styles/base.scss +4 -0
  173. package/src/types/common.ts +11 -0
  174. package/dist/components/MenuButton/MenuButton.d.ts +0 -19
  175. package/dist/components/MenuButton/MenuButton.js +0 -20
  176. package/dist/components/MenuButton/MenuButton.js.map +0 -1
  177. package/dist/components/MenuButton/index.d.ts +0 -1
  178. package/dist/components/MenuButton/index.js +0 -2
  179. package/dist/components/MenuButton/index.js.map +0 -1
  180. package/dist/components/MenuButton/menu-button.css +0 -16
  181. package/dist/components/MenuButton/menu-button.css.js +0 -21
  182. package/src/components/MenuButton/MenuButton.rtl.test.tsx +0 -15
  183. package/src/components/MenuButton/MenuButton.tsx +0 -29
  184. package/src/components/MenuButton/index.tsx +0 -1
  185. package/src/components/MenuButton/menu-button.scss +0 -16
@@ -34,7 +34,7 @@ export type CheckboxGroupProps = FieldControlProps<string[]> & {
34
34
  * import { CheckboxGroup } from '@bspk/ui/CheckboxGroup';
35
35
  *
36
36
  * function Example() {
37
- * const [values, setValues] = React.useState<string[]>([]);
37
+ * const [value, setValue] = React.useState<string[]>([]);
38
38
  *
39
39
  * return (
40
40
  * <CheckboxGroup
@@ -45,9 +45,9 @@ export type CheckboxGroupProps = FieldControlProps<string[]> & {
45
45
  * { label: 'Option 2', value: 'option2' },
46
46
  * { label: 'Option 3', value: 'option3' },
47
47
  * ]}
48
- * values={values}
49
- * onChange={(nextValues: string[]) => {
50
- * setValues(nextValues);
48
+ * value={value}
49
+ * onChange={(nextValue: string[]) => {
50
+ * setValue(nextValue);
51
51
  * }}
52
52
  * />
53
53
  * );
@@ -56,5 +56,5 @@ export type CheckboxGroupProps = FieldControlProps<string[]> & {
56
56
  * @name CheckboxGroup
57
57
  * @phase UXReview
58
58
  */
59
- export declare function CheckboxGroup({ onChange, options, name, value, selectAll, selectAllProps, disabled, readOnly, invalid: invalidProp, required, id: idProp, 'aria-describedby': ariaDescribedByProp, 'aria-errormessage': ariaErrorMessageProp, ...props }: ElementProps<CheckboxGroupProps, 'div'>): import("react/jsx-runtime").JSX.Element;
59
+ export declare function CheckboxGroup({ onChange, options, name, value, selectAll, selectAllProps, disabled, invalid: invalidProp, required, id: idProp, 'aria-describedby': ariaDescribedByProp, 'aria-errormessage': ariaErrorMessageProp, ...props }: ElementProps<CheckboxGroupProps, 'div'>): import("react/jsx-runtime").JSX.Element;
60
60
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -11,7 +11,7 @@ const ALL_LABEL = 'All';
11
11
  * import { CheckboxGroup } from '@bspk/ui/CheckboxGroup';
12
12
  *
13
13
  * function Example() {
14
- * const [values, setValues] = React.useState<string[]>([]);
14
+ * const [value, setValue] = React.useState<string[]>([]);
15
15
  *
16
16
  * return (
17
17
  * <CheckboxGroup
@@ -22,9 +22,9 @@ const ALL_LABEL = 'All';
22
22
  * { label: 'Option 2', value: 'option2' },
23
23
  * { label: 'Option 3', value: 'option3' },
24
24
  * ]}
25
- * values={values}
26
- * onChange={(nextValues: string[]) => {
27
- * setValues(nextValues);
25
+ * value={value}
26
+ * onChange={(nextValue: string[]) => {
27
+ * setValue(nextValue);
28
28
  * }}
29
29
  * />
30
30
  * );
@@ -33,16 +33,15 @@ const ALL_LABEL = 'All';
33
33
  * @name CheckboxGroup
34
34
  * @phase UXReview
35
35
  */
36
- export function CheckboxGroup({ onChange, options = [], name, value = [], selectAll, selectAllProps, disabled = false, readOnly, invalid: invalidProp, required, id: idProp, 'aria-describedby': ariaDescribedByProp, 'aria-errormessage': ariaErrorMessageProp, ...props }) {
36
+ export function CheckboxGroup({ onChange, options = [], name, value = [], selectAll, selectAllProps, disabled = false, invalid: invalidProp, required, id: idProp, 'aria-describedby': ariaDescribedByProp, 'aria-errormessage': ariaErrorMessageProp, ...props }) {
37
37
  const { id, ariaDescribedBy, ariaErrorMessage, invalid } = useFieldInit({
38
38
  idProp,
39
39
  required,
40
40
  disabled,
41
- readOnly,
42
41
  invalidProp,
43
42
  });
44
- return (_jsxs("div", { ...props, "aria-describedby": ariaDescribedByProp || ariaDescribedBy || undefined, "data-bspk": "checkbox-group", id: id, role: "group", children: [selectAll && (_jsx(ToggleOption, { label: selectAllProps?.label || ALL_LABEL, readOnly: readOnly, children: _jsx(Checkbox, { "aria-errormessage": ariaErrorMessageProp || ariaErrorMessage || undefined, "aria-label": selectAllProps?.label || ALL_LABEL, checked: !!value.length && value.length === options.length, "data-testid": "selectAll-Checkbox", disabled: disabled, indeterminate: !!value.length && value.length < options.length, invalid: invalid || undefined, name: name, onChange: (checked) => onChange(checked ? options.map((o) => o.value) : []), readOnly: readOnly, value: "all" }) })), options.map(({ label, description, value: optionValue, disabled: optionDisabled }) => (_jsx(ToggleOption, { description: description, disabled: disabled || optionDisabled, label: label, readOnly: readOnly, children: _jsx(Checkbox, { "aria-errormessage": ariaErrorMessageProp || ariaErrorMessage || undefined, "aria-label": label, checked: value.includes(optionValue), disabled: disabled || optionDisabled, invalid: invalid || undefined, name: name, onChange: (checked) => {
43
+ return (_jsxs("div", { ...props, "aria-describedby": ariaDescribedByProp || ariaDescribedBy || undefined, "data-bspk": "checkbox-group", id: id, role: "group", children: [selectAll && (_jsx(ToggleOption, { label: selectAllProps?.label || ALL_LABEL, children: _jsx(Checkbox, { "aria-errormessage": ariaErrorMessageProp || ariaErrorMessage || undefined, "aria-label": selectAllProps?.label || ALL_LABEL, checked: !!value.length && value.length === options.length, "data-testid": "selectAll-Checkbox", disabled: disabled, indeterminate: !!value.length && value.length < options.length, invalid: invalid || undefined, name: name, onChange: (checked) => onChange(checked ? options.map((o) => o.value) : []), value: "all" }) })), options.map(({ label, description, value: optionValue, disabled: optionDisabled }) => (_jsx(ToggleOption, { description: description, disabled: disabled || optionDisabled, label: label, children: _jsx(Checkbox, { "aria-errormessage": ariaErrorMessageProp || ariaErrorMessage || undefined, "aria-label": label, checked: value.includes(optionValue), disabled: disabled || optionDisabled, invalid: invalid || undefined, name: name, onChange: (checked) => {
45
44
  onChange(checked ? [...value, optionValue] : value.filter((v) => v !== optionValue));
46
- }, readOnly: readOnly, value: optionValue }) }, optionValue)))] }));
45
+ }, value: optionValue }) }, optionValue)))] }));
47
46
  }
48
47
  //# sourceMappingURL=CheckboxGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroup.js","sourceRoot":"","sources":["../../../src/components/CheckboxGroup/CheckboxGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAiB,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAqB,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAG5E,MAAM,SAAS,GAAG,KAAK,CAAC;AA8BxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,UAAU,aAAa,CAAC,EAC1B,QAAQ,EACR,OAAO,GAAG,EAAE,EACZ,IAAI,EACJ,KAAK,GAAG,EAAE,EACV,SAAS,EACT,cAAc,EACd,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,OAAO,EAAE,WAAW,EACpB,QAAQ,EACR,EAAE,EAAE,MAAM,EACV,kBAAkB,EAAE,mBAAmB,EACvC,mBAAmB,EAAE,oBAAoB,EACzC,GAAG,KAAK,EAC8B;IACtC,MAAM,EAAE,EAAE,EAAE,eAAe,EAAE,gBAAgB,EAAE,OAAO,EAAE,GAAG,YAAY,CAAC;QACpE,MAAM;QACN,QAAQ;QACR,QAAQ;QACR,QAAQ;QACR,WAAW;KACd,CAAC,CAAC;IAEH,OAAO,CACH,kBACQ,KAAK,sBACS,mBAAmB,IAAI,eAAe,IAAI,SAAS,eAC3D,gBAAgB,EAC1B,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,OAAO,aAEX,SAAS,IAAI,CACV,KAAC,YAAY,IAAC,KAAK,EAAE,cAAc,EAAE,KAAK,IAAI,SAAS,EAAE,QAAQ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B,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC,CAAC;oBACzF,CAAC,EACD,KAAK,EAAE,WAAW,GACpB,IAdG,WAAW,CAeL,CAClB,CAAC,IACA,CACT,CAAC;AACN,CAAC"}
@@ -11,5 +11,5 @@ export type CheckboxGroupFieldProps = FormFieldControlProps<CheckboxGroupProps>;
11
11
  *
12
12
  * @generated
13
13
  */
14
- export declare function CheckboxGroupField({ label, helperText, labelTrailing, errorMessage, ...controlProps }: CheckboxGroupFieldProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function CheckboxGroupField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }: CheckboxGroupFieldProps): import("react/jsx-runtime").JSX.Element;
15
15
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -11,7 +11,7 @@ import { Field, FieldDescription, FieldError, FieldLabel } from '../Field';
11
11
  *
12
12
  * @generated
13
13
  */
14
- export function CheckboxGroupField({ label, helperText, labelTrailing, errorMessage, ...controlProps }) {
15
- return (_jsxs(Field, { as: "fieldset", children: [_jsx(FieldLabel, { as: "legend", labelTrailing: labelTrailing, children: label }), _jsx(CheckboxGroup, { ...controlProps }), !errorMessage && helperText && _jsx(FieldDescription, { children: helperText }), errorMessage && _jsx(FieldError, { children: errorMessage })] }));
14
+ export function CheckboxGroupField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }) {
15
+ return (_jsxs(Field, { as: "fieldset", style: style, children: [_jsx(FieldLabel, { as: "legend", labelTrailing: labelTrailing, style: style, children: label }), _jsx(CheckboxGroup, { ...controlProps }), !errorMessage && helperText && _jsx(FieldDescription, { children: helperText }), errorMessage && _jsx(FieldError, { children: errorMessage })] }));
16
16
  }
17
17
  //# sourceMappingURL=CheckboxGroupField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxGroupField.js","sourceRoot":"","sources":["../../../src/components/CheckboxGroupField/CheckboxGroupField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAsB,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKrF;;;;;;;;;GASG;AACH,MAAM,UAAU,kBAAkB,CAAC,EAC/B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,GAAG,YAAY,EACO;IACtB,OAAO,CACH,MAAC,KAAK,IAAC,EAAE,EAAC,UAAU,aAChB,KAAC,UAAU,IAAC,EAAE,EAAC,QAAQ,EAAC,aAAa,EAAE,aAAa,YAC/C,KAAK,GACG,EACb,KAAC,aAAa,OAAK,YAAY,GAAI,EAClC,CAAC,YAAY,IAAI,UAAU,IAAI,KAAC,gBAAgB,cAAE,UAAU,GAAoB,EAChF,YAAY,IAAI,KAAC,UAAU,cAAE,YAAY,GAAc,IACpD,CACX,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"CheckboxGroupField.js","sourceRoot":"","sources":["../../../src/components/CheckboxGroupField/CheckboxGroupField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,aAAa,EAAsB,MAAM,4BAA4B,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAKrF;;;;;;;;;GASG;AACH,MAAM,UAAU,kBAAkB,CAAC,EAC/B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,KAAK,EACL,GAAG,YAAY,EACO;IACtB,OAAO,CACH,MAAC,KAAK,IAAC,EAAE,EAAC,UAAU,EAAC,KAAK,EAAE,KAAK,aAC7B,KAAC,UAAU,IAAC,EAAE,EAAC,QAAQ,EAAC,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,YAC7D,KAAK,GACG,EACb,KAAC,aAAa,OAAK,YAAY,GAAI,EAClC,CAAC,YAAY,IAAI,UAAU,IAAI,KAAC,gBAAgB,cAAE,UAAU,GAAoB,EAChF,YAAY,IAAI,KAAC,UAAU,cAAE,YAAY,GAAc,IACpD,CACX,CAAC;AACN,CAAC"}
@@ -1,6 +1,7 @@
1
1
  import { CheckboxProps } from '-/components/Checkbox';
2
2
  import { ToggleOptionControlProps } from '-/components/ToggleOption';
3
- export type CheckboxOptionProps = ToggleOptionControlProps<CheckboxProps>;
3
+ import { CommonProps } from '-/types/common';
4
+ export type CheckboxOptionProps = CommonProps<'style'> & ToggleOptionControlProps<CheckboxProps>;
4
5
  /**
5
6
  * A control that allows users to choose one or more items from a list or turn an feature on or off.
6
7
  *
@@ -29,5 +30,5 @@ export type CheckboxOptionProps = ToggleOptionControlProps<CheckboxProps>;
29
30
  * @name CheckboxOption
30
31
  * @phase UXReview
31
32
  */
32
- export declare function CheckboxOption({ label: labelProp, description, disabled, readOnly, ...checkboxProps }: CheckboxOptionProps): "" | import("react/jsx-runtime").JSX.Element | undefined;
33
+ export declare function CheckboxOption({ label: labelProp, description, disabled, style, ...checkboxProps }: CheckboxOptionProps): "" | import("react/jsx-runtime").JSX.Element | undefined;
33
34
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -29,9 +29,9 @@ import { ToggleOption } from '../ToggleOption';
29
29
  * @name CheckboxOption
30
30
  * @phase UXReview
31
31
  */
32
- export function CheckboxOption({ label: labelProp, description, disabled, readOnly, ...checkboxProps }) {
32
+ export function CheckboxOption({ label: labelProp, description, disabled, style, ...checkboxProps }) {
33
33
  const label = labelProp || description;
34
34
  const ariaLabel = description ? `${labelProp} - ${description}` : labelProp;
35
- return (label && (_jsx(ToggleOption, { "data-bspk": "checkbox-option", description: description, disabled: disabled, label: label, readOnly: readOnly, children: _jsx(Checkbox, { ...checkboxProps, "aria-label": ariaLabel, disabled: disabled, readOnly: readOnly }) })));
35
+ return (label && (_jsx(ToggleOption, { "data-bspk": "checkbox-option", description: description, disabled: disabled, label: label, style: style, children: _jsx(Checkbox, { ...checkboxProps, "aria-label": ariaLabel, disabled: disabled }) })));
36
36
  }
37
37
  //# sourceMappingURL=CheckboxOption.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CheckboxOption.js","sourceRoot":"","sources":["../../../src/components/CheckboxOption/CheckboxOption.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAiB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,YAAY,EAA4B,MAAM,2BAA2B,CAAC;AAInF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,cAAc,CAAC,EAC3B,KAAK,EAAE,SAAS,EAChB,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,GAAG,aAAa,EACE;IAClB,MAAM,KAAK,GAAG,SAAS,IAAI,WAAW,CAAC;IACvC,MAAM,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS,MAAM,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5E,OAAO,CACH,KAAK,IAAI,CACL,KAAC,YAAY,iBACC,iBAAiB,EAC3B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,QAAQ,YAElB,KAAC,QAAQ,OAAK,aAAa,gBAAc,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,QAAQ,GAAI,GACnF,CAClB,CACJ,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"CheckboxOption.js","sourceRoot":"","sources":["../../../src/components/CheckboxOption/CheckboxOption.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAiB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,YAAY,EAA4B,MAAM,2BAA2B,CAAC;AAKnF;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,cAAc,CAAC,EAC3B,KAAK,EAAE,SAAS,EAChB,WAAW,EACX,QAAQ,EACR,KAAK,EACL,GAAG,aAAa,EACE;IAClB,MAAM,KAAK,GAAG,SAAS,IAAI,WAAW,CAAC;IACvC,MAAM,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,SAAS,MAAM,WAAW,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;IAC5E,OAAO,CACH,KAAK,IAAI,CACL,KAAC,YAAY,iBACC,iBAAiB,EAC3B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,KAAK,EAAE,KAAK,YAEZ,KAAC,QAAQ,OAAK,aAAa,gBAAc,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAI,GAC/D,CAClB,CACJ,CAAC;AACN,CAAC"}
@@ -11,5 +11,5 @@ export type DatePickerFieldProps = FormFieldControlProps<DatePickerProps>;
11
11
  *
12
12
  * @generated
13
13
  */
14
- export declare function DatePickerField({ label, helperText, labelTrailing, errorMessage, ...controlProps }: DatePickerFieldProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function DatePickerField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }: DatePickerFieldProps): import("react/jsx-runtime").JSX.Element;
15
15
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -11,7 +11,7 @@ import { FormField } from '../FormField';
11
11
  *
12
12
  * @generated
13
13
  */
14
- export function DatePickerField({ label, helperText, labelTrailing, errorMessage, ...controlProps }) {
15
- return (_jsx(FormField, { errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, children: _jsx(DatePicker, { ...controlProps }) }));
14
+ export function DatePickerField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }) {
15
+ return (_jsx(FormField, { errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, style: style, children: _jsx(DatePicker, { ...controlProps }) }));
16
16
  }
17
17
  //# sourceMappingURL=DatePickerField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"DatePickerField.js","sourceRoot":"","sources":["../../../src/components/DatePickerField/DatePickerField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAI1E;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,EAC5B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,GAAG,YAAY,EACI;IACnB,OAAO,CACH,KAAC,SAAS,IAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,YACrG,KAAC,UAAU,OAAK,YAAY,GAAI,GACxB,CACf,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"DatePickerField.js","sourceRoot":"","sources":["../../../src/components/DatePickerField/DatePickerField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAI1E;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,EAC5B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,KAAK,EACL,GAAG,YAAY,EACI;IACnB,OAAO,CACH,KAAC,SAAS,IACN,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,YAEZ,KAAC,UAAU,OAAK,YAAY,GAAI,GACxB,CACf,CAAC;AACN,CAAC"}
@@ -3,7 +3,7 @@ import { AriaAttributes, ElementType } from 'react';
3
3
  import { ButtonProps } from '-/components/Button';
4
4
  import { ElementProps } from '-/types/common';
5
5
  export type FabVariant = 'neutral' | 'primary' | 'secondary';
6
- export type FabProps<As extends ElementType = 'button'> = Pick<ButtonProps<As>, 'as' | 'icon' | 'iconOnly' | 'onClick' | 'toolTip'> & Required<Pick<ButtonProps<As>, 'label'>> & {
6
+ export type FabProps<As extends ElementType = ElementType> = Pick<ButtonProps<As>, 'as' | 'icon' | 'iconOnly' | 'onClick' | 'toolTip'> & Required<Pick<ButtonProps<As>, 'label'>> & {
7
7
  /**
8
8
  * The size of the button.
9
9
  *
@@ -44,5 +44,5 @@ export type FabProps<As extends ElementType = 'button'> = Pick<ButtonProps<As>,
44
44
  * @name Fab
45
45
  * @phase UXReview
46
46
  */
47
- export declare function Fab<As extends ElementType = 'button'>(props: AriaAttributes & ElementProps<FabProps<As>, As>): import("react/jsx-runtime").JSX.Element;
47
+ export declare function Fab<As extends ElementType = ElementType>(props: AriaAttributes & ElementProps<FabProps<As>, As>): import("react/jsx-runtime").JSX.Element;
48
48
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -1 +1 @@
1
- {"version":3,"file":"Fab.js","sourceRoot":"","sources":["../../../src/components/Fab/Fab.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,CAAC;AACpB,OAAO,EAA+B,cAAc,EAAE,MAAM,OAAO,CAAC;AAEpE,OAAO,EAAE,OAAO,EAAuB,MAAM,sBAAsB,CAAC;AAoCpE;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,GAAG,CAAoC,KAAsD;IACzG,MAAM,EACF,IAAI,GAAG,OAAO,EACd,OAAO,GAAG,SAAS,EACnB,QAAQ,EAAE,YAAY,GAAG,KAAK,EAC9B,EAAE,EAAE,EAAE,GAAG,QAAQ,EACjB,SAAS,GAAG,cAAc,EAC1B,SAAS,GAAG,OAAO,EACnB,KAAK,EACL,IAAI,EACJ,OAAO,EACP,GAAG,UAAU,EAChB,GAAG,KAAK,CAAC;IAEV,2CAA2C;IAC3C,MAAM,QAAQ,GAAG,YAAY,KAAK,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC;IAEjD,MAAM,M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Y,CAAC,WAAW,EAAE,EAAE,CAAC;YAC7B,UAAU,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC;QAChC,CAAC,aAEA,CAAC,CAAC,IAAI,IAAI,cAAc,CAAC,IAAI,CAAC,IAAI,CAC/B,8BAAmB,IAAI,mCAClB,IAAI,GACF,CACV,EACA,CAAC,QAAQ,IAAI,iDAAsB,KAAK,GAAQ,IAChD,CACR,CAAC;IAEF,IAAI,OAAO,IAAI,QAAQ;QACnB,OAAO,CACH,KAAC,OAAO,IAAC,KAAK,EAAE,OAAO,IAAI,KAAK,EAAE,SAAS,EAAC,KAAK,YAC5C,MAAM,GACD,CACb,CAAC;IAEN,OAAO,MAAM,CAAC,EAAE,CAAC,CAAC;AACtB,CAAC"}
@@ -31,7 +31,7 @@ export declare function useFieldInit({ idProp, required, disabled, readOnly, inv
31
31
  idProp: string | undefined;
32
32
  required: boolean | undefined;
33
33
  disabled: boolean | undefined;
34
- readOnly: boolean | undefined;
34
+ readOnly?: boolean | undefined;
35
35
  invalidProp: boolean | undefined;
36
36
  }): Pick<FieldContext, 'ariaDescribedBy' | 'ariaErrorMessage'> & {
37
37
  invalid: boolean;
@@ -1,6 +1,7 @@
1
1
  import { ElementType, ReactNode } from 'react';
2
+ import { CommonProps } from '-/types/common';
2
3
  export type FormFieldControlProps<P extends Record<string, unknown>> = Omit<FormFieldProps, 'children'> & Omit<P, keyof FormFieldProps>;
3
- export type FormFieldProps<As extends ElementType = ElementType> = {
4
+ export type FormFieldProps<As extends ElementType = ElementType> = CommonProps<'style'> & {
4
5
  /** Displays an error message and marks the field as invalid. */
5
6
  errorMessage?: string;
6
7
  /**
@@ -72,5 +73,5 @@ export type FormFieldProps<As extends ElementType = ElementType> = {
72
73
  * @name FormField
73
74
  * @phase Utility
74
75
  */
75
- export declare function FormField({ label, errorMessage, helperText, children, labelTrailing, required, as }: FormFieldProps): import("react/jsx-runtime").JSX.Element;
76
+ export declare function FormField({ label, errorMessage, helperText, children, labelTrailing, required, as, style, }: FormFieldProps): import("react/jsx-runtime").JSX.Element;
76
77
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -34,9 +34,9 @@ import { Field, FieldLabel, FieldDescription, FieldError } from '../Field';
34
34
  * @name FormField
35
35
  * @phase Utility
36
36
  */
37
- export function FormField({ label, errorMessage, helperText, children, labelTrailing, required, as }) {
37
+ export function FormField({ label, errorMessage, helperText, children, labelTrailing, required, as, style, }) {
38
38
  const fieldAs = as || 'div';
39
39
  const labelAs = fieldAs === 'fieldset' ? 'legend' : undefined;
40
- return (_jsxs(Field, { as: fieldAs, children: [_jsx(FieldLabel, { as: labelAs, labelTrailing: labelTrailing, required: required, children: label }), children, !errorMessage && helperText && _jsx(FieldDescription, { children: helperText }), _jsx(FieldError, { children: errorMessage })] }));
40
+ return (_jsxs(Field, { as: fieldAs, style: style, children: [_jsx(FieldLabel, { as: labelAs, labelTrailing: labelTrailing, required: required, children: label }), children, !errorMessage && helperText && _jsx(FieldDescription, { children: helperText }), _jsx(FieldError, { children: errorMessage })] }));
41
41
  }
42
42
  //# sourceMappingURL=FormField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormField.js","sourceRoot":"","sources":["../../../src/components/FormField/FormField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA4CrF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,UAAU,SAAS,CAAC,EAAE,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,EAAE,EAAkB;IAChH,MAAM,OAAO,GAAG,EAAE,IAAI,KAAK,CAAC;IAE5B,MAAM,OAAO,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9D,OAAO,CACH,MAAC,KAAK,IAAC,EAAE,EAAE,OAAO,aACd,KAAC,UAAU,IAAC,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,YACpE,KAAK,GACG,EACZ,QAAQ,EACR,CAAC,YAAY,IAAI,UAAU,IAAI,KAAC,gBAAgB,cAAE,UAAU,GAAoB,EACjF,KAAC,UAAU,cAAE,YAAY,GAAc,IACnC,CACX,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"FormField.js","sourceRoot":"","sources":["../../../src/components/FormField/FormField.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AA6CrF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,UAAU,SAAS,CAAC,EACtB,KAAK,EACL,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,EAAE,EACF,KAAK,GACQ;IACb,MAAM,OAAO,GAAG,EAAE,IAAI,KAAK,CAAC;IAE5B,MAAM,OAAO,GAAG,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC;IAC9D,OAAO,CACH,MAAC,KAAK,IAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,aAC5B,KAAC,UAAU,IAAC,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,YACpE,KAAK,GACG,EACZ,QAAQ,EACR,CAAC,YAAY,IAAI,UAAU,IAAI,KAAC,gBAAgB,cAAE,UAAU,GAAoB,EACjF,KAAC,UAAU,cAAE,YAAY,GAAc,IACnC,CACX,CAAC;AACN,CAAC"}
@@ -11,5 +11,5 @@ export type InputFieldProps = FormFieldControlProps<InputProps>;
11
11
  *
12
12
  * @generated
13
13
  */
14
- export declare function InputField({ label, helperText, labelTrailing, errorMessage, ...controlProps }: InputFieldProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function InputField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }: InputFieldProps): import("react/jsx-runtime").JSX.Element;
15
15
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -11,7 +11,7 @@ import { Input } from '../Input';
11
11
  *
12
12
  * @generated
13
13
  */
14
- export function InputField({ label, helperText, labelTrailing, errorMessage, ...controlProps }) {
15
- return (_jsx(FormField, { errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, children: _jsx(Input, { ...controlProps }) }));
14
+ export function InputField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }) {
15
+ return (_jsx(FormField, { errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, style: style, children: _jsx(Input, { ...controlProps }) }));
16
16
  }
17
17
  //# sourceMappingURL=InputField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputField.js","sourceRoot":"","sources":["../../../src/components/InputField/InputField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAc,MAAM,oBAAoB,CAAC;AAIvD;;;;;;;;;GASG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,GAAG,YAAY,EAAmB;IAC3G,OAAO,CACH,KAAC,SAAS,IAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,YACrG,KAAC,KAAK,OAAK,YAAY,GAAI,GACnB,CACf,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"InputField.js","sourceRoot":"","sources":["../../../src/components/InputField/InputField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,KAAK,EAAc,MAAM,oBAAoB,CAAC;AAIvD;;;;;;;;;GASG;AACH,MAAM,UAAU,UAAU,CAAC,EACvB,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,KAAK,EACL,GAAG,YAAY,EACD;IACd,OAAO,CACH,KAAC,SAAS,IACN,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,YAEZ,KAAC,KAAK,OAAK,YAAY,GAAI,GACnB,CACf,CAAC;AACN,CAAC"}
@@ -11,5 +11,5 @@ export type InputNumberFieldProps = FormFieldControlProps<InputNumberProps>;
11
11
  *
12
12
  * @generated
13
13
  */
14
- export declare function InputNumberField({ label, helperText, labelTrailing, errorMessage, ...controlProps }: InputNumberFieldProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function InputNumberField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }: InputNumberFieldProps): import("react/jsx-runtime").JSX.Element;
15
15
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -11,7 +11,7 @@ import { InputNumber } from '../InputNumber';
11
11
  *
12
12
  * @generated
13
13
  */
14
- export function InputNumberField({ label, helperText, labelTrailing, errorMessage, ...controlProps }) {
15
- return (_jsx(FormField, { errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, children: _jsx(InputNumber, { ...controlProps }) }));
14
+ export function InputNumberField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }) {
15
+ return (_jsx(FormField, { errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, style: style, children: _jsx(InputNumber, { ...controlProps }) }));
16
16
  }
17
17
  //# sourceMappingURL=InputNumberField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputNumberField.js","sourceRoot":"","sources":["../../../src/components/InputNumberField/InputNumberField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAoB,MAAM,0BAA0B,CAAC;AAIzE;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,EAC7B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,GAAG,YAAY,EACK;IACpB,OAAO,CACH,KAAC,SAAS,IAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,YACrG,KAAC,WAAW,OAAK,YAAY,GAAI,GACzB,CACf,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"InputNumberField.js","sourceRoot":"","sources":["../../../src/components/InputNumberField/InputNumberField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAoB,MAAM,0BAA0B,CAAC;AAIzE;;;;;;;;;GASG;AACH,MAAM,UAAU,gBAAgB,CAAC,EAC7B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,KAAK,EACL,GAAG,YAAY,EACK;IACpB,OAAO,CACH,KAAC,SAAS,IACN,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,YAEZ,KAAC,WAAW,OAAK,YAAY,GAAI,GACzB,CACf,CAAC;AACN,CAAC"}
@@ -11,5 +11,5 @@ export type InputPhoneFieldProps = FormFieldControlProps<InputPhoneProps>;
11
11
  *
12
12
  * @generated
13
13
  */
14
- export declare function InputPhoneField({ label, helperText, labelTrailing, errorMessage, ...controlProps }: InputPhoneFieldProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function InputPhoneField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }: InputPhoneFieldProps): import("react/jsx-runtime").JSX.Element;
15
15
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -11,7 +11,7 @@ import { InputPhone } from '../InputPhone';
11
11
  *
12
12
  * @generated
13
13
  */
14
- export function InputPhoneField({ label, helperText, labelTrailing, errorMessage, ...controlProps }) {
15
- return (_jsx(FormField, { errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, children: _jsx(InputPhone, { ...controlProps }) }));
14
+ export function InputPhoneField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }) {
15
+ return (_jsx(FormField, { errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, style: style, children: _jsx(InputPhone, { ...controlProps }) }));
16
16
  }
17
17
  //# sourceMappingURL=InputPhoneField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"InputPhoneField.js","sourceRoot":"","sources":["../../../src/components/InputPhoneField/InputPhoneField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAmB,MAAM,yBAAyB,CAAC;AAItE;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,EAC5B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,GAAG,YAAY,EACI;IACnB,OAAO,CACH,KAAC,SAAS,IAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,YACrG,KAAC,UAAU,OAAK,YAAY,GAAI,GACxB,CACf,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"InputPhoneField.js","sourceRoot":"","sources":["../../../src/components/InputPhoneField/InputPhoneField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAmB,MAAM,yBAAyB,CAAC;AAItE;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,EAC5B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,KAAK,EACL,GAAG,YAAY,EACI;IACnB,OAAO,CACH,KAAC,SAAS,IACN,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,YAEZ,KAAC,UAAU,OAAK,YAAY,GAAI,GACxB,CACf,CAAC;AACN,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import { ElementType, ReactNode } from 'react';
2
2
  import { ElementProps } from '-/types/common';
3
- export type LayoutProps<As extends ElementType = 'div'> = {
3
+ export type LayoutProps<As extends ElementType = ElementType> = {
4
4
  /**
5
5
  * The content of the Layout.
6
6
  *
@@ -48,5 +48,5 @@ export type LayoutProps<As extends ElementType = 'div'> = {
48
48
  * @name Layout
49
49
  * @phase Utility
50
50
  */
51
- export declare function Layout<As extends ElementType = 'div'>({ children, column, gap, style, as, align, justify, ...props }: ElementProps<LayoutProps<As>, As>): import("react/jsx-runtime").JSX.Element;
51
+ export declare function Layout<As extends ElementType = ElementType>({ children, column, gap, style, as, align, justify, ...props }: ElementProps<LayoutProps<As>, As>): import("react/jsx-runtime").JSX.Element;
52
52
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -1 +1 @@
1
- {"version":3,"file":"Layout.js","sourceRoot":"","sources":["../../../src/components/Layout/Layout.tsx"],"names":[],"mappings":";AAwCA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,MAAM,CAAiC,EACnD,QAAQ,EACR,MAAM,EACN,GAAG,GAAG,IAAI,EACV,KAAK,EACL,EAAE,EACF,KAAK,GAAG,YAAY,EACpB,OAAO,GAAG,YAAY,EACtB,GAAG,KAAK,EACwB;IAChC,MAAM,EAAE,GAAgB,EAAE,IAAI,KAAK,CAAC;IAEpC,MAAM,UAAU,GAAG,KAAK,IAAI,YAAY,CAAC;IACzC,MAAM,cAAc,GAAG,OAAO,IAAI,YAAY,CAAC;IAE/C,OAAO,CACH,KAAC,EAAE,OACK,KAAK;QACT,6EAA6E;QAC7E,KAAK,EAAE;YACH,GAAG,KAAK;YACR,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK;YACxC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI;YAC5B,UAAU;YACV,cAAc;SACjB,YAEA,QAAQ,GACR,CACR,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"Layout.js","sourceRoot":"","sources":["../../../src/components/Layout/Layout.tsx"],"names":[],"mappings":";AAwCA;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,MAAM,CAAuC,EACzD,QAAQ,EACR,MAAM,EACN,GAAG,GAAG,IAAI,EACV,KAAK,EACL,EAAE,EACF,KAAK,GAAG,YAAY,EACpB,OAAO,GAAG,YAAY,EACtB,GAAG,KAAK,EACwB;IAChC,MAAM,EAAE,GAAgB,EAAE,IAAI,KAAK,CAAC;IAEpC,MAAM,UAAU,GAAG,KAAK,IAAI,YAAY,CAAC;IACzC,MAAM,cAAc,GAAG,OAAO,IAAI,YAAY,CAAC;IAE/C,OAAO,CACH,KAAC,EAAE,OACK,KAAK;QACT,6EAA6E;QAC7E,KAAK,EAAE;YACH,GAAG,KAAK;YACR,OAAO,EAAE,MAAM;YACf,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK;YACxC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI;YAC5B,UAAU;YACV,cAAc;SACjB,YAEA,QAAQ,GACR,CACR,CAAC;AACN,CAAC"}
@@ -2,7 +2,7 @@ import './list-item.scss';
2
2
  import { AnchorHTMLAttributes, ElementType, ReactNode, MouseEvent, AriaAttributes, AriaRole, ComponentProps } from 'react';
3
3
  import { ListItemButton } from './ListItemButton';
4
4
  import { CommonProps, ElementProps, SetRef } from '-/types/common';
5
- export type ListItemProps<As extends ElementType = ElementType> = CommonProps<'active' | 'owner'> & Pick<AriaAttributes, 'aria-label'> & {
5
+ export type ListItemProps<As extends ElementType = ElementType> = CommonProps<'active' | 'owner' | 'style'> & Pick<AriaAttributes, 'aria-label'> & {
6
6
  /**
7
7
  * The element type to render as.
8
8
  *
@@ -2,7 +2,7 @@ import './menu.scss';
2
2
  import { ElementType, ReactNode } from 'react';
3
3
  import { CommonProps, ElementProps, SetRef } from '-/types/common';
4
4
  export declare function menuItemId(menuId: string, index: number): string;
5
- export type MenuProps<As extends ElementType = ElementType> = CommonProps<'id' | 'owner' | 'role'> & {
5
+ export type MenuProps<As extends ElementType = ElementType> = CommonProps<'id' | 'owner' | 'role' | 'style'> & {
6
6
  /** A ref to the inner div element. */
7
7
  innerRef?: SetRef<HTMLDivElement>;
8
8
  /**
@@ -24,6 +24,13 @@ export type MenuProps<As extends ElementType = ElementType> = CommonProps<'id' |
24
24
  * @type ElementType
25
25
  */
26
26
  as?: As;
27
+ /**
28
+ * The width of the menu.
29
+ *
30
+ * @type HTMLElement.style.width
31
+ * @exampleType string
32
+ */
33
+ width?: HTMLElement['style']['width'];
27
34
  };
28
35
  /**
29
36
  * A container housing a simple list of options presented to the customer to select one option at a time.
@@ -28,6 +28,6 @@ export function menuItemId(menuId, index) {
28
28
  export function Menu({ as, innerRef, id: idProp, children, owner, label, ...props }) {
29
29
  const menuId = useId(idProp);
30
30
  const As = as || 'div';
31
- return (_jsx(As, { ...props, "aria-label": label || undefined, "data-bspk-owner": owner || undefined, "data-bspk-utility": "menu", id: menuId, ref: innerRef, children: children }));
31
+ return (_jsx(As, { ...props, "aria-label": label || undefined, "data-bspk-owner": owner || undefined, "data-bspk-utility": "menu", id: menuId, ref: innerRef, style: { ...props.style, width: props.width }, children: children }));
32
32
  }
33
33
  //# sourceMappingURL=Menu.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.js","sourceRoot":"","sources":["../../../src/components/Menu/Menu.tsx"],"names":[],"mapp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EAAE,OACK,KAAK,gBACG,KAAK,IAAI,SAAS,qBACb,KAAK,IAAI,SAAS,uBACjB,MAAM,EACxB,EAAE,EAAE,MAAM,EACV,GAAG,EAAE,QAAQ,EACb,KAAK,EAAE,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,YAE5C,QAAQ,GACR,CACR,CAAC;AACN,CAAC"}
@@ -13,7 +13,7 @@ import { ListItem } from '../ListItem';
13
13
  import { Switch } from '../Switch';
14
14
  export const MenuExample = ({ action, }) => ({
15
15
  render: ({ props, Component, setState }) => {
16
- return (_jsxs(Component, { ...props, style: { padding: 'var(--spacing-sizing-02) var(--spacing-sizing-02)' }, children: [_jsx(ListItem, { label: "Michael Scott", leading: _jsx(Avatar, { image: "/profile2.jpg", name: "Michael Scott" }), subText: "michael.scott@email.com" }), _jsx(Divider, { inset: 2, padding: true }), _jsx(ListItem, { href: "#/my-profile", label: "My profile", leading: _jsx(SvgAccountCircle, {}) }), _jsx(ListItem, { href: "#/settings", label: "Settings", leading: _jsx(SvgSettings, {}) }), _jsx(ListItem, { as: "label", label: "Dark mode", leading: props['data-dark-mode'] ? _jsx(SvgDarkModeFill, {}) : _jsx(SvgDarkMode, {}), trailing: _jsx(Switch, { "aria-label": "Toggle dark mode", checked: !!props['data-dark-mode'], name: "dark-mode", onChange: () => {
16
+ return (_jsxs(Component, { ...props, style: { padding: 'var(--spacing-sizing-02) var(--spacing-sizing-02)' }, children: [_jsx(ListItem, { label: "Michael Scott", leading: _jsx(Avatar, { image: "/avatar-01.png", name: "Michael Scott" }), subText: "michael.scott@email.com" }), _jsx(Divider, { inset: 2, padding: true }), _jsx(ListItem, { href: "#/my-profile", label: "My profile", leading: _jsx(SvgAccountCircle, {}) }), _jsx(ListItem, { href: "#/settings", label: "Settings", leading: _jsx(SvgSettings, {}) }), _jsx(ListItem, { as: "label", label: "Dark mode", leading: props['data-dark-mode'] ? _jsx(SvgDarkModeFill, {}) : _jsx(SvgDarkMode, {}), trailing: _jsx(Switch, { "aria-label": "Toggle dark mode", checked: !!props['data-dark-mode'], name: "dark-mode", onChange: () => {
17
17
  setState((prev) => ({ 'data-dark-mode': !prev['data-dark-mode'] }));
18
18
  action('Dark mode toggled');
19
19
  }, value: "dark-mode" }) }), _jsx(Divider, { inset: 2, padding: false, thickness: "light" }), _jsx(ListItem, { href: "#/guide-tutorial", label: "Guide and tutorial", leading: _jsx(SvgMenuBook, {}) }), _jsx(ListItem, { href: "#/help-center", label: "Help center", leading: _jsx(SvgHelp, {}) }), _jsx(Divider, { inset: 2, padding: true }), _jsx(ListItem, { href: "#/go-premium", label: "Go premium", leading: _jsx(SvgLicense, {}) }), _jsx(ListItem, { label: "Log out", leading: _jsx(SvgLogout, {}), onClick: () => {
@@ -1 +1 @@
1
- {"version":3,"file":"MenuExample.js","sourceRoot":"","sources":["../../../src/components/Menu/MenuExample.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGnD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,MAAM,CAAC,MAAM,WAAW,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AQ,EAAE,GAAG,EAAE;4BACX,QAAQ,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB,EAAE,CAAC,IAAI,CAAC,gBAAgB,CAAC,EAAE,CAAC,CAAC,CAAC;4BACpE,MAAM,CAAC,mBAAmB,CAAC,CAAC;wBAChC,CAAC,EACD,KAAK,EAAC,WAAW,GACnB,GAER,EACF,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAC,OAAO,GAAG,EACvD,KAAC,QAAQ,IAAC,IAAI,EAAC,kBAAkB,EAAC,KAAK,EAAC,oBAAoB,EAAC,OAAO,EAAE,KAAC,WAAW,KAAG,GAAI,EACzF,KAAC,QAAQ,IAAC,IAAI,EAAC,eAAe,EAAC,KAAK,EAAC,aAAa,EAAC,OAAO,EAAE,KAAC,OAAO,KAAG,GAAI,EAC3E,KAAC,OAAO,IAAC,KAAK,EAAE,CAAC,EAAE,OAAO,SAAG,EAC7B,KAAC,QAAQ,IAAC,IAAI,EAAC,cAAc,EAAC,KAAK,EAAC,YAAY,EAAC,OAAO,EAAE,KAAC,UAAU,KAAG,GAAI,EAC5E,KAAC,QAAQ,IACL,KAAK,EAAC,SAAS,EACf,OAAO,EAAE,KAAC,SAAS,KAAG,EACtB,OAAO,EAAE,GAAG,EAAE;wBACV,MAAM,CAAC,iBAAiB,CAAC,CAAC;oBAC9B,CAAC,EACD,IAAI,EAAC,QAAQ,GACf,IACM,CACf,CAAC;IACN,CAAC;IACD,QAAQ,EAAE,KAAK;CAClB,CAAC,CAAC"}
@@ -11,5 +11,5 @@ export type PasswordFieldProps = FormFieldControlProps<PasswordProps>;
11
11
  *
12
12
  * @generated
13
13
  */
14
- export declare function PasswordField({ label, helperText, labelTrailing, errorMessage, ...controlProps }: PasswordFieldProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function PasswordField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }: PasswordFieldProps): import("react/jsx-runtime").JSX.Element;
15
15
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -11,7 +11,7 @@ import { Password } from '../Password';
11
11
  *
12
12
  * @generated
13
13
  */
14
- export function PasswordField({ label, helperText, labelTrailing, errorMessage, ...controlProps }) {
15
- return (_jsx(FormField, { errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, children: _jsx(Password, { ...controlProps }) }));
14
+ export function PasswordField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }) {
15
+ return (_jsx(FormField, { errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, style: style, children: _jsx(Password, { ...controlProps }) }));
16
16
  }
17
17
  //# sourceMappingURL=PasswordField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"PasswordField.js","sourceRoot":"","sources":["../../../src/components/PasswordField/PasswordField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAiB,MAAM,uBAAuB,CAAC;AAIhE;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,aAAa,EAAE,YAAY,EAAE,GAAG,YAAY,EAAsB;IACjH,OAAO,CACH,KAAC,SAAS,IAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,YACrG,KAAC,QAAQ,OAAK,YAAY,GAAI,GACtB,CACf,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"PasswordField.js","sourceRoot":"","sources":["../../../src/components/PasswordField/PasswordField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAyB,MAAM,wBAAwB,CAAC;AAC1E,OAAO,EAAE,QAAQ,EAAiB,MAAM,uBAAuB,CAAC;AAIhE;;;;;;;;;GASG;AACH,MAAM,UAAU,aAAa,CAAC,EAC1B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,KAAK,EACL,GAAG,YAAY,EACE;IACjB,OAAO,CACH,KAAC,SAAS,IACN,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,YAEZ,KAAC,QAAQ,OAAK,YAAY,GAAI,GACtB,CACf,CAAC;AACN,CAAC"}
@@ -5,6 +5,8 @@
5
5
  gap: var(--spacing-sizing-02);
6
6
  align-items: center;
7
7
  justify-content: center;
8
+ width: fit-content;
9
+ max-width: 100%;
8
10
  }
9
11
  [data-bspk=progress-circle][data-label-position=top] {
10
12
  flex-direction: column-reverse;
@@ -8,6 +8,8 @@ style.appendChild(document.createTextNode(`[data-bspk=progress-circle] {
8
8
  gap: var(--spacing-sizing-02);
9
9
  align-items: center;
10
10
  justify-content: center;
11
+ width: fit-content;
12
+ max-width: 100%;
11
13
  }
12
14
  [data-bspk=progress-circle][data-label-position=top] {
13
15
  flex-direction: column-reverse;
@@ -57,5 +57,5 @@ export type RadioGroupProps = FieldControlProps & {
57
57
  * @name RadioGroup
58
58
  * @phase UXReview
59
59
  */
60
- export declare function RadioGroup({ onChange, options, name, value: groupValue, disabled, readOnly, invalid: invalidProp, required, id: idProp, 'aria-describedby': ariaDescribedByProp, 'aria-errormessage': ariaErrorMessageProp, ...props }: ElementProps<RadioGroupProps, 'div'>): import("react/jsx-runtime").JSX.Element;
60
+ export declare function RadioGroup({ onChange, options, name, value: groupValue, disabled, invalid: invalidProp, required, id: idProp, 'aria-describedby': ariaDescribedByProp, 'aria-errormessage': ariaErrorMessageProp, ...props }: ElementProps<RadioGroupProps, 'div'>): import("react/jsx-runtime").JSX.Element;
61
61
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -33,16 +33,15 @@ import { RadioOption } from '../RadioOption';
33
33
  * @name RadioGroup
34
34
  * @phase UXReview
35
35
  */
36
- export function RadioGroup({ onChange, options = [], name, value: groupValue, disabled = false, readOnly, invalid: invalidProp, required, id: idProp, 'aria-describedby': ariaDescribedByProp, 'aria-errormessage': ariaErrorMessageProp, ...props }) {
36
+ export function RadioGroup({ onChange, options = [], name, value: groupValue, disabled = false, invalid: invalidProp, required, id: idProp, 'aria-describedby': ariaDescribedByProp, 'aria-errormessage': ariaErrorMessageProp, ...props }) {
37
37
  const { id, ariaDescribedBy, ariaErrorMessage, invalid } = useFieldInit({
38
38
  idProp,
39
39
  required,
40
40
  disabled,
41
- readOnly,
42
41
  invalidProp,
43
42
  });
44
- return (_jsx("div", { ...props, "aria-describedby": ariaDescribedByProp || ariaDescribedBy || undefined, "data-bspk": "radio-group", id: id, role: "radiogroup", children: _jsx("div", { role: "presentation", children: options.map(({ label, description, value, ...option }, index) => {
45
- return (_jsx(RadioOption, { "aria-describedby": ariaDescribedByProp || ariaDescribedBy || undefined, "aria-errormessage": ariaErrorMessageProp || ariaErrorMessage || undefined, checked: groupValue === value, description: description, disabled: disabled || option.disabled, invalid: invalid || undefined, label: label, name: name, onChange: (checked) => checked && onChange(value), required: required, value: value }, `radio-option-${value || index}`));
46
- }) }) }));
43
+ return (_jsx("div", { ...props, "aria-describedby": ariaDescribedByProp || ariaDescribedBy || undefined, "data-bspk": "radio-group", id: id, role: "radiogroup", children: options.map(({ label, description, value, ...option }, index) => {
44
+ return (_jsx(RadioOption, { "aria-describedby": ariaDescribedByProp || ariaDescribedBy || undefined, "aria-errormessage": ariaErrorMessageProp || ariaErrorMessage || undefined, checked: groupValue === value, description: description, disabled: disabled || option.disabled, invalid: invalid || undefined, label: label, name: name, onChange: (checked) => checked && onChange(value), required: required, value: value }, `radio-option-${value || index}`));
45
+ }) }));
47
46
  }
48
47
  //# sourceMappingURL=RadioGroup.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroup.js","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CA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AAgB,IAAI,SAAS,EACxE,OAAO,EAAE,UAAU,KAAK,KAAK,EAC7B,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,IAAI,MAAM,CAAC,QAAQ,EACrC,OAAO,EAAE,OAAO,IAAI,SAAS,EAE7B,KAAK,EAAE,KAAK,EACZ,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,IAAI,QAAQ,CAAC,KAAK,CAAC,EACjD,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,IALP,gBAAgB,KAAK,IAAI,KAAK,EAAE,CAMvC,CACL,CAAC;QACN,CAAC,CAAC,GACA,CACT,CAAC;AACN,CAAC"}
@@ -11,5 +11,5 @@ export type RadioGroupFieldProps = FormFieldControlProps<RadioGroupProps>;
11
11
  *
12
12
  * @generated
13
13
  */
14
- export declare function RadioGroupField({ label, helperText, labelTrailing, errorMessage, ...controlProps }: RadioGroupFieldProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function RadioGroupField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }: RadioGroupFieldProps): import("react/jsx-runtime").JSX.Element;
15
15
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
@@ -11,7 +11,7 @@ import { RadioGroup } from '../RadioGroup';
11
11
  *
12
12
  * @generated
13
13
  */
14
- export function RadioGroupField({ label, helperText, labelTrailing, errorMessage, ...controlProps }) {
15
- return (_jsxs(Field, { as: "fieldset", children: [_jsx(FieldLabel, { as: "legend", labelTrailing: labelTrailing, children: label }), _jsx(RadioGroup, { ...controlProps }), !errorMessage && helperText && _jsx(FieldDescription, { children: helperText }), errorMessage && _jsx(FieldError, { children: errorMessage })] }));
14
+ export function RadioGroupField({ label, helperText, labelTrailing, errorMessage, style, ...controlProps }) {
15
+ return (_jsxs(Field, { as: "fieldset", children: [_jsx(FieldLabel, { as: "legend", labelTrailing: labelTrailing, style: style, children: label }), _jsx(RadioGroup, { ...controlProps }), !errorMessage && helperText && _jsx(FieldDescription, { children: helperText }), errorMessage && _jsx(FieldError, { children: errorMessage })] }));
16
16
  }
17
17
  //# sourceMappingURL=RadioGroupField.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioGroupField.js","sourceRoot":"","sources":["../../../src/components/RadioGroupField/RadioGroupField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErF,OAAO,EAAE,UAAU,EAAmB,MAAM,yBAAyB,CAAC;AAItE;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,EAC5B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,GAAG,YAAY,EACI;IACnB,OAAO,CACH,MAAC,KAAK,IAAC,EAAE,EAAC,UAAU,aAChB,KAAC,UAAU,IAAC,EAAE,EAAC,QAAQ,EAAC,aAAa,EAAE,aAAa,YAC/C,KAAK,GACG,EACb,KAAC,UAAU,OAAK,YAAY,GAAI,EAC/B,CAAC,YAAY,IAAI,UAAU,IAAI,KAAC,gBAAgB,cAAE,UAAU,GAAoB,EAChF,YAAY,IAAI,KAAC,UAAU,cAAE,YAAY,GAAc,IACpD,CACX,CAAC;AACN,CAAC"}
1
+ {"version":3,"file":"RadioGroupField.js","sourceRoot":"","sources":["../../../src/components/RadioGroupField/RadioGroupField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAErF,OAAO,EAAE,UAAU,EAAmB,MAAM,yBAAyB,CAAC;AAItE;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,EAC5B,KAAK,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,KAAK,EACL,GAAG,YAAY,EACI;IACnB,OAAO,CACH,MAAC,KAAK,IAAC,EAAE,EAAC,UAAU,aAChB,KAAC,UAAU,IAAC,EAAE,EAAC,QAAQ,EAAC,aAAa,EAAE,aAAa,EAAE,KAAK,EAAE,KAAK,YAC7D,KAAK,GACG,EACb,KAAC,UAAU,OAAK,YAAY,GAAI,EAC/B,CAAC,YAAY,IAAI,UAAU,IAAI,KAAC,gBAAgB,cAAE,UAAU,GAAoB,EAChF,YAAY,IAAI,KAAC,UAAU,cAAE,YAAY,GAAc,IACpD,CACX,CAAC;AACN,CAAC"}
@@ -9,7 +9,7 @@ import { ScrollListItemsStyleProps } from '-/utils/scrollListItemsStyle';
9
9
  * Essentially the props for a ListItem.
10
10
  */
11
11
  export type SearchBarOption = Pick<ListItemProps, 'label' | 'leading' | 'trailing'>;
12
- export type SearchBarProps<O extends SearchBarOption = SearchBarOption> = FieldControlProps<string, O> & Pick<InputProps, 'inputRef' | 'size'> & ScrollListItemsStyleProps & {
12
+ export type SearchBarProps<O extends SearchBarOption = SearchBarOption> = FieldControlProps<string, O> & Pick<InputProps, 'inputRef' | 'size' | 'trailing'> & ScrollListItemsStyleProps & {
13
13
  /**
14
14
  * The placeholder of the field.
15
15
  *
@@ -81,5 +81,5 @@ export type SearchBarProps<O extends SearchBarOption = SearchBarOption> = FieldC
81
81
  * @name SearchBar
82
82
  * @phase UXReview
83
83
  */
84
- export declare function SearchBar<O extends SearchBarOption>({ items: itemsProp, noResultsMessage, placeholder, id: idProp, inputRef, name, size, value, onChange, disabled, scrollLimit, }: SearchBarProps<O>): import("react/jsx-runtime").JSX.Element;
84
+ export declare function SearchBar<O extends SearchBarOption>({ items: itemsProp, noResultsMessage, placeholder, id: idProp, inputRef, name, size, value, onChange, disabled, scrollLimit, trailing, }: SearchBarProps<O>): import("react/jsx-runtime").JSX.Element;
85
85
  /** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */