@wix/site-ui 1.108.0 → 1.110.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.
@@ -0,0 +1,55 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import clsx from "clsx";
3
+ import { CheckboxGroup as CheckboxGroup_CheckboxGroup_CheckboxGroup } from "../CheckboxGroup/index.js";
4
+ import { Field } from "../Field/index.js";
5
+ import { toCssLength } from "../8027.js";
6
+ import * as __rspack_external_react from "react";
7
+ const CheckboxGroupField_module = {
8
+ field: "field-Tx5eMP",
9
+ label: "label-E_rDm0",
10
+ items: "items-lFFDGE"
11
+ };
12
+ const CheckboxGroupField = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, style, children, label, layout = 'vertical', fluid = false, error = false, errorMessage, required = false, width, disabled = false, 'aria-labelledby': ariaLabelledBy, 'aria-required': ariaRequired, ...props }, ref)=>{
13
+ const generatedLabelId = __rspack_external_react.useId();
14
+ const isError = error || Boolean(errorMessage);
15
+ const labelId = label ? generatedLabelId : void 0;
16
+ const labelledBy = labelId && ariaLabelledBy ? `${ariaLabelledBy} ${labelId}` : labelId ?? ariaLabelledBy;
17
+ const groupWidth = toCssLength(width);
18
+ const groupStyle = {
19
+ ...style,
20
+ ...groupWidth ? {
21
+ '--checkbox-group-width': groupWidth
22
+ } : null
23
+ };
24
+ return /*#__PURE__*/ jsxs(Field.Root, {
25
+ className: clsx(CheckboxGroupField_module.field, className),
26
+ style: groupStyle,
27
+ invalid: isError,
28
+ disabled: disabled,
29
+ "data-fluid": fluid ? '' : void 0,
30
+ children: [
31
+ label ? /*#__PURE__*/ jsx("span", {
32
+ id: labelId,
33
+ className: CheckboxGroupField_module.label,
34
+ children: label
35
+ }) : null,
36
+ /*#__PURE__*/ jsx(CheckboxGroup_CheckboxGroup_CheckboxGroup, {
37
+ ref: ref,
38
+ className: CheckboxGroupField_module.items,
39
+ disabled: disabled,
40
+ "data-layout": layout,
41
+ "data-fluid": fluid ? '' : void 0,
42
+ "aria-labelledby": labelledBy,
43
+ "aria-required": required ? true : ariaRequired,
44
+ ...props,
45
+ children: children
46
+ }),
47
+ isError && errorMessage ? /*#__PURE__*/ jsx(Field.Error, {
48
+ match: true,
49
+ children: errorMessage
50
+ }) : null
51
+ ]
52
+ });
53
+ });
54
+ CheckboxGroupField.displayName = 'CheckboxGroupField';
55
+ export { CheckboxGroupField };
@@ -33,6 +33,11 @@
33
33
  color: var(--wst-shade-3-color, #767676);
34
34
  }
35
35
 
36
+ .descriptionEnd-O3mOtW {
37
+ text-align: end;
38
+ align-self: flex-end;
39
+ }
40
+
36
41
  .control-fRhDZ8 {
37
42
  width: 100%;
38
43
  }
@@ -61,6 +66,15 @@
61
66
  padding-block: 24px 6px;
62
67
  }
63
68
 
69
+ .root-ECdHfF:has(.labelFloating-io8BLN) .group-XazO1A {
70
+ align-items: end;
71
+ padding-block: 0;
72
+ }
73
+
74
+ .root-ECdHfF:has(.labelFloating-io8BLN) .adornment-Z1N0NF {
75
+ padding-block-end: 6px;
76
+ }
77
+
64
78
  .labelFloating-io8BLN {
65
79
  z-index: 2;
66
80
  color: var(--wst-shade-3-color, #767676);
@@ -73,7 +87,7 @@
73
87
  transform: translateY(-50%);
74
88
  }
75
89
 
76
- .labelFloating-io8BLN[data-filled], .labelFloating-io8BLN[data-focused] {
90
+ .labelFloating-io8BLN[data-filled], .labelFloating-io8BLN[data-focused], .root-ECdHfF:has(.control-fRhDZ8[placeholder]:not([placeholder=""])) .labelFloating-io8BLN, .root-ECdHfF:has(.labelFloating-io8BLN):has(.adornment-Z1N0NF) .labelFloating-io8BLN {
77
91
  font-size: 12px;
78
92
  inset-block-start: 8px;
79
93
  transform: translateY(0);
@@ -83,3 +97,78 @@
83
97
  width: 100%;
84
98
  }
85
99
 
100
+ div.group-XazO1A {
101
+ align-items: center;
102
+ gap: 8px;
103
+ display: flex;
104
+ }
105
+
106
+ .group-XazO1A:focus-within {
107
+ border-color: var(--wst-system-line-1-color, #000);
108
+ }
109
+
110
+ .group-XazO1A:has(.control-fRhDZ8:focus) {
111
+ box-shadow: 0 0 0 2px var(--wst-links-and-actions-color, #116dff);
112
+ }
113
+
114
+ .group-XazO1A:has(.control-fRhDZ8[aria-invalid="true"]) {
115
+ border-color: color-mix(in srgb,
116
+ var(--wst-system-error-color, #df3131) 60%,
117
+ transparent);
118
+ }
119
+
120
+ .group-XazO1A:has(.control-fRhDZ8[aria-invalid="true"]):hover, .group-XazO1A:has(.control-fRhDZ8[aria-invalid="true"]):focus-within {
121
+ border-color: var(--wst-system-error-color, #df3131);
122
+ }
123
+
124
+ .group-XazO1A:has(.control-fRhDZ8[data-valid]) {
125
+ border-color: color-mix(in srgb,
126
+ var(--wst-system-success-color, #008250) 60%,
127
+ transparent);
128
+ }
129
+
130
+ .group-XazO1A:has(.control-fRhDZ8:disabled) {
131
+ cursor: not-allowed;
132
+ }
133
+
134
+ .group-XazO1A:has(.control-fRhDZ8:disabled):hover {
135
+ border-color: color-mix(in srgb,
136
+ var(--wst-system-line-1-color, #000) 60%,
137
+ transparent);
138
+ }
139
+
140
+ .group-XazO1A:has(.control-fRhDZ8:disabled) .adornment-Z1N0NF {
141
+ color: var(--wst-system-disabled-color, #939393);
142
+ }
143
+
144
+ .group-XazO1A.groupLine-vlna4V {
145
+ border-width: 0;
146
+ border-block-end-width: var(--wst-system-line-1-width, 1px);
147
+ border-radius: 0;
148
+ padding-inline: 0;
149
+ }
150
+
151
+ .group-XazO1A .control-fRhDZ8 {
152
+ background-color: #0000;
153
+ border: 0;
154
+ flex: auto;
155
+ width: auto;
156
+ min-width: 0;
157
+ padding-block: 0;
158
+ padding-inline: 0;
159
+ }
160
+
161
+ .adornment-Z1N0NF {
162
+ font: var(--wst-paragraph-2-font);
163
+ color: var(--wst-shade-3-color, #767676);
164
+ flex-shrink: 0;
165
+ align-items: center;
166
+ display: inline-flex;
167
+ }
168
+
169
+ .adornment-Z1N0NF > svg {
170
+ width: 20px;
171
+ height: 20px;
172
+ display: block;
173
+ }
174
+
@@ -110,6 +110,8 @@ declare type ControlVariant = 'box' | 'line';
110
110
 
111
111
  declare const decrementPress: "decrement-press";
112
112
 
113
+ declare type DescriptionAlign = 'start' | 'end';
114
+
113
115
  declare const disabled: "disabled";
114
116
 
115
117
  declare const drag: "drag";
@@ -133,12 +135,17 @@ export declare const Field: {
133
135
  } & React_2.RefAttributes<HTMLDivElement>>;
134
136
  Description: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldDescriptionProps_2, "ref"> & React_2.RefAttributes<HTMLParagraphElement>, "ref">, "className"> & {
135
137
  className?: string | undefined;
136
- } & React_2.RefAttributes<HTMLParagraphElement>>;
137
- Control: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldControlProps_2, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
138
- className?: string | undefined;
139
138
  } & {
139
+ /** Horizontal alignment of the text. */
140
+ align?: DescriptionAlign | undefined;
141
+ } & React_2.RefAttributes<HTMLParagraphElement>>;
142
+ Control: React_2.ForwardRefExoticComponent<Omit<WithStringClassName<Omit<Omit<FieldControlProps_2, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">>, "prefix" | "suffix"> & {
140
143
  /** `line` swaps the boxed border for a single bottom border. */
141
144
  variant?: ControlVariant | undefined;
145
+ /** Content shown inside the field before the input. */
146
+ prefix?: React_2.ReactNode;
147
+ /** Content shown inside the field after the input. */
148
+ suffix?: React_2.ReactNode;
142
149
  } & React_2.RefAttributes<HTMLElement>>;
143
150
  Item: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldItemProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
144
151
  className?: string | undefined;
@@ -682,4 +689,8 @@ declare type WithBaseUIEvent<T> = { [K in keyof T]: WithPreventBaseUIHandler<T[K
682
689
 
683
690
  declare type WithPreventBaseUIHandler<T> = T extends ((event: infer E) => any) ? E extends React_2.SyntheticEvent<Element, Event> ? (event: BaseUIEvent<E>) => ReturnType<T> : T : T extends undefined ? undefined : T;
684
691
 
692
+ declare type WithStringClassName<P> = Omit<P, 'className'> & {
693
+ className?: string;
694
+ };
695
+
685
696
  export { }
@@ -675,10 +675,14 @@ const Field_module = {
675
675
  label: "label-YSWZBs",
676
676
  error: "error-BUDKWp",
677
677
  description: "description-IVviYU",
678
+ descriptionEnd: "descriptionEnd-O3mOtW",
678
679
  control: "control-fRhDZ8",
679
680
  controlLine: "controlLine-cAw0CF",
680
681
  labelFloating: "labelFloating-io8BLN",
681
- item: "item-kQeHOQ"
682
+ group: "group-XazO1A",
683
+ adornment: "adornment-Z1N0NF",
684
+ item: "item-kQeHOQ",
685
+ groupLine: "groupLine-vlna4V"
682
686
  };
683
687
  const Root = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(FieldRoot_FieldRoot, {
684
688
  ref: ref,
@@ -706,9 +710,11 @@ const Error = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...
706
710
  }),
707
711
  ...props
708
712
  }));
709
- const Description = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(FieldDescription_FieldDescription, {
713
+ const Description = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, align = 'start', ...props }, ref)=>/*#__PURE__*/ jsx(FieldDescription_FieldDescription, {
710
714
  ref: ref,
711
- className: clsx(Field_module.description, className),
715
+ className: clsx(Field_module.description, {
716
+ [Field_module.descriptionEnd]: 'end' === align
717
+ }, className),
712
718
  ...props
713
719
  }));
714
720
  const TEXT_INPUT_TYPES = new Set([
@@ -725,16 +731,41 @@ const TEXT_INPUT_TYPES = new Set([
725
731
  'week',
726
732
  'time'
727
733
  ]);
728
- const Control = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, type = 'text', variant = 'box', ...props }, ref)=>/*#__PURE__*/ jsx(FieldControl_FieldControl, {
734
+ const hasAdornment = (node)=>null != node && 'boolean' != typeof node;
735
+ const Control = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, type = 'text', variant = 'box', prefix, suffix, ...props }, ref)=>{
736
+ const showPrefix = hasAdornment(prefix);
737
+ const showSuffix = hasAdornment(suffix);
738
+ const adorned = showPrefix || showSuffix;
739
+ const control = /*#__PURE__*/ jsx(FieldControl_FieldControl, {
729
740
  ref: ref,
730
741
  type: type,
731
742
  className: clsx({
732
743
  [Input_module.root]: TEXT_INPUT_TYPES.has(type)
733
744
  }, Field_module.control, {
734
745
  [Field_module.controlLine]: 'line' === variant
746
+ }, {
747
+ 'has-custom-focus': adorned
735
748
  }, className),
736
749
  ...props
737
- }));
750
+ });
751
+ if (!adorned) return control;
752
+ return /*#__PURE__*/ jsxs("div", {
753
+ className: clsx(Input_module.root, Field_module.group, {
754
+ [Field_module.groupLine]: 'line' === variant
755
+ }),
756
+ children: [
757
+ showPrefix && /*#__PURE__*/ jsx("span", {
758
+ className: Field_module.adornment,
759
+ children: prefix
760
+ }),
761
+ control,
762
+ showSuffix && /*#__PURE__*/ jsx("span", {
763
+ className: Field_module.adornment,
764
+ children: suffix
765
+ })
766
+ ]
767
+ });
768
+ });
738
769
  const Item = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(FieldItem_FieldItem, {
739
770
  ref: ref,
740
771
  className: clsx(Field_module.item, className),
@@ -1,3 +1,4 @@
1
+ import { DescriptionAlign } from '../Field/Field';
1
2
  import { FieldControlProps } from '@base-ui/react/field';
2
3
  import { FieldDescriptionProps } from '../Field';
3
4
  import { FieldDescriptionProps as FieldDescriptionProps_2 } from '@base-ui/react/field';
@@ -54,6 +55,8 @@ declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => R
54
55
 
55
56
  declare type ControlVariant = 'box' | 'line';
56
57
 
58
+ declare type DescriptionAlign_2 = 'start' | 'end';
59
+
57
60
  declare const Field: {
58
61
  Root: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldRootProps_3, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
59
62
  className?: string | undefined;
@@ -69,12 +72,17 @@ declare const Field: {
69
72
  } & React_2.RefAttributes<HTMLDivElement>>;
70
73
  Description: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldDescriptionProps_2, "ref"> & React_2.RefAttributes<HTMLParagraphElement>, "ref">, "className"> & {
71
74
  className?: string | undefined;
72
- } & React_2.RefAttributes<HTMLParagraphElement>>;
73
- Control: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldControlProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
74
- className?: string | undefined;
75
75
  } & {
76
+ /** Horizontal alignment of the text. */
77
+ align?: DescriptionAlign_2 | undefined;
78
+ } & React_2.RefAttributes<HTMLParagraphElement>>;
79
+ Control: React_2.ForwardRefExoticComponent<Omit<WithStringClassName<Omit<Omit<FieldControlProps, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">>, "prefix" | "suffix"> & {
76
80
  /** `line` swaps the boxed border for a single bottom border. */
77
81
  variant?: ControlVariant | undefined;
82
+ /** Content shown inside the field before the input. */
83
+ prefix?: React_2.ReactNode;
84
+ /** Content shown inside the field after the input. */
85
+ suffix?: React_2.ReactNode;
78
86
  } & React_2.RefAttributes<HTMLElement>>;
79
87
  Item: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldItemProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
80
88
  className?: string | undefined;
@@ -185,6 +193,8 @@ export declare const RadioField: React_2.ForwardRefExoticComponent<Omit<Omit<Omi
185
193
  /** Props forwarded to the `Field.Description`. */
186
194
  descriptionProps?: Omit<Omit<Omit<Omit<Omit<FieldDescriptionProps, "ref"> & React_2.RefAttributes<HTMLParagraphElement>, "ref">, "className"> & {
187
195
  className?: string | undefined;
196
+ } & {
197
+ align?: DescriptionAlign | undefined;
188
198
  } & React_2.RefAttributes<HTMLParagraphElement>, "ref">, "children"> | undefined;
189
199
  /** Props forwarded to the `Field.Error`. */
190
200
  errorProps?: Omit<Omit<Omit<Omit<Omit<FieldErrorProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
package/dist/index.d.ts CHANGED
@@ -73,6 +73,7 @@ import { ContextMenuRadioItemIndicatorProps as ContextMenuRadioItemIndicatorProp
73
73
  import { ContextMenuRadioItemProps as ContextMenuRadioItemProps_2 } from '@base-ui/react/context-menu';
74
74
  import { ContextMenuSubmenuTriggerProps as ContextMenuSubmenuTriggerProps_2 } from '@base-ui/react/context-menu';
75
75
  import { ContextMenuTriggerProps as ContextMenuTriggerProps_2 } from '@base-ui/react/context-menu';
76
+ import { DescriptionAlign as DescriptionAlign_2 } from '../Field/Field';
76
77
  import { DialogBackdropProps as DialogBackdropProps_2 } from '@base-ui/react/dialog';
77
78
  import { DialogCloseProps as DialogCloseProps_2 } from '@base-ui/react/dialog';
78
79
  import { DialogDescriptionProps as DialogDescriptionProps_2 } from '@base-ui/react/dialog';
@@ -1148,7 +1149,9 @@ declare type BaseListProps = WithStringClassName<React_2.ComponentPropsWithoutRe
1148
1149
 
1149
1150
  declare type BaseProps = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Button_2>>;
1150
1151
 
1151
- declare type BaseProps_2 = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Separator_2>>;
1152
+ declare type BaseProps_2 = React_2.ComponentPropsWithoutRef<typeof CheckboxGroup>;
1153
+
1154
+ declare type BaseProps_3 = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Separator_2>>;
1152
1155
 
1153
1156
  declare type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
1154
1157
  /**
@@ -1311,6 +1314,42 @@ export declare const Checkbox: {
1311
1314
  } & React_2.RefAttributes<HTMLSpanElement>>;
1312
1315
  };
1313
1316
 
1317
+ export declare namespace Checkbox_2 {
1318
+ export {
1319
+ CheckboxRoot as Root,
1320
+ CheckboxIndicator as Indicator
1321
+ }
1322
+ }
1323
+
1324
+ export declare const CheckboxField: React_2.ForwardRefExoticComponent<CheckboxFieldProps & React_2.RefAttributes<HTMLDivElement>>;
1325
+
1326
+ export declare interface CheckboxFieldProps extends Omit<RootProps, 'children' | 'className' | 'style' | 'render' | 'nativeButton' | 'size'> {
1327
+ /** Visible label rendered beside the checkbox. */
1328
+ label: React_2.ReactNode;
1329
+ /** Extra inline content rendered after the label (e.g. a price or badge). */
1330
+ suffix?: React_2.ReactNode;
1331
+ /** Visual style: a plain checkbox row or a selectable `box` tile. */
1332
+ variant?: CheckboxFieldVariant;
1333
+ /** Marks the field invalid, colouring the control and revealing `errorMessage`. */
1334
+ error?: boolean;
1335
+ /** Error message rendered below the option; also marks the field invalid. */
1336
+ errorMessage?: React_2.ReactNode;
1337
+ /** Aligns the control with the first line (`top`) or the label's centre. */
1338
+ verticalAlignment?: CheckboxFieldVerticalAlignment;
1339
+ /** Size of the checkbox control in pixels. */
1340
+ size?: number;
1341
+ /** Fixed width of the option; accepts a number (px) or any CSS length. */
1342
+ width?: number | string;
1343
+ /** Class applied to the field root. */
1344
+ className?: string;
1345
+ /** Inline styles applied to the field root. */
1346
+ style?: React_2.CSSProperties;
1347
+ }
1348
+
1349
+ export declare type CheckboxFieldVariant = 'default' | 'box';
1350
+
1351
+ export declare type CheckboxFieldVerticalAlignment = 'center' | 'top';
1352
+
1314
1353
  export declare const CheckboxGroup: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<CheckboxGroupProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
1315
1354
  className?: string | undefined;
1316
1355
  } & React_2.RefAttributes<HTMLDivElement>>;
@@ -1333,6 +1372,29 @@ export declare type CheckboxGroupChangeEventDetails = BaseUIChangeEventDetails<C
1333
1372
 
1334
1373
  export declare type CheckboxGroupChangeEventReason = typeof REASONS.none;
1335
1374
 
1375
+ export declare const CheckboxGroupField: React_2.ForwardRefExoticComponent<CheckboxGroupFieldProps & React_2.RefAttributes<HTMLDivElement>>;
1376
+
1377
+ export declare type CheckboxGroupFieldLayout = 'vertical' | 'horizontal';
1378
+
1379
+ export declare interface CheckboxGroupFieldProps extends WithStringClassName<Omit<BaseProps_2, 'style'>> {
1380
+ /** Accessible label rendered above the group. */
1381
+ label?: React_2.ReactNode;
1382
+ /** Arranges the options in a column (`vertical`) or wrapping row (`horizontal`). */
1383
+ layout?: CheckboxGroupFieldLayout;
1384
+ /** Stretches the group and its options to the available width. */
1385
+ fluid?: boolean;
1386
+ /** Marks the group invalid and reveals `errorMessage`. */
1387
+ error?: boolean;
1388
+ /** Error message rendered below the group; also marks it invalid. */
1389
+ errorMessage?: React_2.ReactNode;
1390
+ /** Sets `aria-required` on the group for assistive tech. */
1391
+ required?: boolean;
1392
+ /** Fixed width of the group; accepts a number (px) or any CSS length. */
1393
+ width?: number | string;
1394
+ /** Inline styles applied to the field root. */
1395
+ style?: React_2.CSSProperties;
1396
+ }
1397
+
1336
1398
  export declare interface CheckboxGroupProps extends BaseUIComponentProps<'div', CheckboxGroupState> {
1337
1399
  /**
1338
1400
  * Names of the checkboxes in the group that should be ticked.
@@ -1516,7 +1578,7 @@ export declare interface CheckboxRootState extends FieldRootState {
1516
1578
 
1517
1579
  export declare const CheckboxSize: {
1518
1580
  readonly small: 12;
1519
- readonly medium: 16;
1581
+ readonly medium: 14;
1520
1582
  readonly large: 20;
1521
1583
  };
1522
1584
 
@@ -3103,6 +3165,8 @@ declare const DEFAULT_SIZE: {
3103
3165
 
3104
3166
  declare function Description({ className, ...props }: WithStringClassName<Drawer_2.Description.Props>): JSX_2.Element;
3105
3167
 
3168
+ declare type DescriptionAlign = 'start' | 'end';
3169
+
3106
3170
  export declare const Dialog: {
3107
3171
  Backdrop: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<DialogBackdropProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
3108
3172
  className?: string | undefined;
@@ -4197,12 +4261,17 @@ export declare const Field: {
4197
4261
  } & React_2.RefAttributes<HTMLDivElement>>;
4198
4262
  Description: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldDescriptionProps_2, "ref"> & React_2.RefAttributes<HTMLParagraphElement>, "ref">, "className"> & {
4199
4263
  className?: string | undefined;
4200
- } & React_2.RefAttributes<HTMLParagraphElement>>;
4201
- Control: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldControlProps_2, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
4202
- className?: string | undefined;
4203
4264
  } & {
4265
+ /** Horizontal alignment of the text. */
4266
+ align?: DescriptionAlign | undefined;
4267
+ } & React_2.RefAttributes<HTMLParagraphElement>>;
4268
+ Control: React_2.ForwardRefExoticComponent<Omit<WithStringClassName<Omit<Omit<FieldControlProps_2, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">>, "prefix" | "suffix"> & {
4204
4269
  /** `line` swaps the boxed border for a single bottom border. */
4205
4270
  variant?: ControlVariant | undefined;
4271
+ /** Content shown inside the field before the input. */
4272
+ prefix?: React_2.ReactNode;
4273
+ /** Content shown inside the field after the input. */
4274
+ suffix?: React_2.ReactNode;
4206
4275
  } & React_2.RefAttributes<HTMLElement>>;
4207
4276
  Item: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<FieldItemProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
4208
4277
  className?: string | undefined;
@@ -8350,6 +8419,8 @@ export declare const RadioField: React_2.ForwardRefExoticComponent<Omit<Omit<Omi
8350
8419
  /** Props forwarded to the `Field.Description`. */
8351
8420
  descriptionProps?: Omit<Omit<Omit<Omit<Omit<FieldDescriptionProps_3, "ref"> & React_2.RefAttributes<HTMLParagraphElement>, "ref">, "className"> & {
8352
8421
  className?: string | undefined;
8422
+ } & {
8423
+ align?: DescriptionAlign_2 | undefined;
8353
8424
  } & React_2.RefAttributes<HTMLParagraphElement>, "ref">, "children"> | undefined;
8354
8425
  /** Props forwarded to the `Field.Error`. */
8355
8426
  errorProps?: Omit<Omit<Omit<Omit<Omit<FieldErrorProps_3, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
@@ -8724,17 +8795,21 @@ declare function Root_2<Value = any>({ className, dir, separator, 'aria-label':
8724
8795
 
8725
8796
  declare function Root_3<Value = any>({ className, orientation, ...props }: WithStringClassName<NavigationMenu_2.Root.Props<Value>>): JSX_2.Element;
8726
8797
 
8727
- declare function Root_4<Value>({ className, size, style, ...props }: RootProps<Value>): JSX_2.Element;
8798
+ declare function Root_4<Value>({ className, size, style, ...props }: RootProps_2<Value>): JSX_2.Element;
8728
8799
 
8729
- declare function Root_5<Value extends number | ReadonlyArray<number>>({ className, size, style, ...props }: RootProps_2<Value>): JSX_2.Element;
8800
+ declare function Root_5<Value extends number | ReadonlyArray<number>>({ className, size, style, ...props }: RootProps_3<Value>): JSX_2.Element;
8730
8801
 
8731
8802
  declare type RootOwnProps = Omit<React_2.ComponentProps<typeof Select.Root>, 'children'>;
8732
8803
 
8733
- declare type RootProps<Value> = WithStringClassName<Radio_2.Root.Props<Value>> & {
8804
+ export declare type RootProps = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Checkbox_2.Root>> & {
8805
+ size?: number;
8806
+ };
8807
+
8808
+ declare type RootProps_2<Value> = WithStringClassName<Radio_2.Root.Props<Value>> & {
8734
8809
  size?: number;
8735
8810
  };
8736
8811
 
8737
- declare type RootProps_2<Value extends number | ReadonlyArray<number>> = WithStringClassName<Slider_2.Root.Props<Value>> & {
8812
+ declare type RootProps_3<Value extends number | ReadonlyArray<number>> = WithStringClassName<Slider_2.Root.Props<Value>> & {
8738
8813
  size?: number;
8739
8814
  };
8740
8815
 
@@ -11589,7 +11664,7 @@ export declare interface SeparatorProps extends BaseUIComponentProps<'div', Sepa
11589
11664
  orientation?: Orientation | undefined;
11590
11665
  }
11591
11666
 
11592
- declare interface SeparatorProps_3 extends BaseProps_2 {
11667
+ declare interface SeparatorProps_3 extends BaseProps_3 {
11593
11668
  variant?: SeparatorVariant;
11594
11669
  }
11595
11670
 
package/dist/index.js CHANGED
@@ -7,7 +7,9 @@ export { Box } from "./Box/index.js";
7
7
  export { Breadcrumbs } from "./Breadcrumbs/index.js";
8
8
  export { Button } from "./Button/index.js";
9
9
  export { Checkbox, CheckboxSize } from "./Checkbox/index.js";
10
+ export { CheckboxField } from "./CheckboxField/index.js";
10
11
  export { CheckboxGroup } from "./CheckboxGroup/index.js";
12
+ export { CheckboxGroupField } from "./CheckboxGroupField/index.js";
11
13
  export { Collapsible } from "./Collapsible/index.js";
12
14
  export { Combobox } from "./Combobox/index.js";
13
15
  export { ContextMenu } from "./ContextMenu/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/site-ui",
3
- "version": "1.108.0",
3
+ "version": "1.110.0",
4
4
  "description": "Pure UI components for the Wix site builder",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -95,5 +95,5 @@
95
95
  "registry": "https://registry.npmjs.org/",
96
96
  "access": "public"
97
97
  },
98
- "falconPackageHash": "e22003e7c6447123ccbcc80fde0fcb53c406d849da0df1dbcc927c91"
98
+ "falconPackageHash": "e915d0e03facd56b79682806f5724da5224732c987bb2cdce48058c8"
99
99
  }
@@ -1,9 +0,0 @@
1
- .root-ZCRH6j {
2
- border: none;
3
- flex-direction: column;
4
- gap: 12px;
5
- margin: 0;
6
- padding: 0;
7
- display: flex;
8
- }
9
-