@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,468 @@
1
+ import * as React_2 from 'react';
2
+
3
+ declare type BaseUIChangeEventDetail<Reason extends string, CustomProperties extends object> = {
4
+ /**
5
+ * The reason for the event.
6
+ */
7
+ reason: Reason;
8
+ /**
9
+ * The native event associated with the custom event.
10
+ */
11
+ event: ReasonToEvent<Reason>;
12
+ /**
13
+ * Cancels Base UI from handling the event.
14
+ */
15
+ cancel: () => void;
16
+ /**
17
+ * Allows the event to propagate in cases where Base UI will stop the propagation.
18
+ */
19
+ allowPropagation: () => void;
20
+ /**
21
+ * Indicates whether the event has been canceled.
22
+ */
23
+ isCanceled: boolean;
24
+ /**
25
+ * Indicates whether the event is allowed to propagate.
26
+ */
27
+ isPropagationAllowed: boolean;
28
+ /**
29
+ * The element that triggered the event, if applicable.
30
+ */
31
+ trigger: Element | undefined;
32
+ } & CustomProperties;
33
+
34
+ /**
35
+ * Details of custom change events emitted by Base UI components.
36
+ */
37
+ declare type BaseUIChangeEventDetails<Reason extends string, CustomProperties extends object = {}> = Reason extends string ? BaseUIChangeEventDetail<Reason, CustomProperties> & {} : never;
38
+
39
+ /**
40
+ * Props shared by all Base UI components.
41
+ * Contains `className` (string or callback taking the component's state as an argument) and `render` (function to customize rendering).
42
+ */
43
+ declare type BaseUIComponentProps<ElementType extends React_2.ElementType, State, RenderFunctionProps = HTMLProps> = Omit<WithBaseUIEvent<React_2.ComponentPropsWithRef<ElementType>>, 'className' | 'color' | 'defaultValue' | 'defaultChecked' | 'style'> & {
44
+ /**
45
+ * CSS class applied to the element, or a function that
46
+ * returns a class based on the component's state.
47
+ */
48
+ className?: string | ((state: State) => string | undefined) | undefined;
49
+ /**
50
+ * Allows you to replace the component's HTML element
51
+ * with a different tag, or compose it with another component.
52
+ *
53
+ * Accepts a `ReactElement` or a function that returns the element to render.
54
+ */
55
+ render?: React_2.ReactElement | ComponentRenderFn<RenderFunctionProps, State> | undefined;
56
+ /**
57
+ * Style applied to the element, or a function that
58
+ * returns a style object based on the component's state.
59
+ */
60
+ style?: React_2.CSSProperties | ((state: State) => React_2.CSSProperties | undefined) | undefined;
61
+ };
62
+
63
+ declare type BaseUIEvent<E extends React_2.SyntheticEvent<Element, Event>> = E & {
64
+ preventBaseUIHandler: () => void;
65
+ readonly baseUIHandlerPrevented?: boolean | undefined;
66
+ };
67
+
68
+ declare const cancelOpen: "cancel-open";
69
+
70
+ export declare namespace Checkbox {
71
+ export {
72
+ CheckboxRoot as Root,
73
+ CheckboxIndicator as Indicator
74
+ }
75
+ }
76
+
77
+ export declare const CheckboxField: React_2.ForwardRefExoticComponent<CheckboxFieldProps & React_2.RefAttributes<HTMLDivElement>>;
78
+
79
+ export declare interface CheckboxFieldProps extends Omit<RootProps, 'children' | 'className' | 'style' | 'render' | 'nativeButton' | 'size'> {
80
+ /** Visible label rendered beside the checkbox. */
81
+ label: React_2.ReactNode;
82
+ /** Extra inline content rendered after the label (e.g. a price or badge). */
83
+ suffix?: React_2.ReactNode;
84
+ /** Visual style: a plain checkbox row or a selectable `box` tile. */
85
+ variant?: CheckboxFieldVariant;
86
+ /** Marks the field invalid, colouring the control and revealing `errorMessage`. */
87
+ error?: boolean;
88
+ /** Error message rendered below the option; also marks the field invalid. */
89
+ errorMessage?: React_2.ReactNode;
90
+ /** Aligns the control with the first line (`top`) or the label's centre. */
91
+ verticalAlignment?: CheckboxFieldVerticalAlignment;
92
+ /** Size of the checkbox control in pixels. */
93
+ size?: number;
94
+ /** Fixed width of the option; accepts a number (px) or any CSS length. */
95
+ width?: number | string;
96
+ /** Class applied to the field root. */
97
+ className?: string;
98
+ /** Inline styles applied to the field root. */
99
+ style?: React_2.CSSProperties;
100
+ }
101
+
102
+ export declare type CheckboxFieldVariant = 'default' | 'box';
103
+
104
+ export declare type CheckboxFieldVerticalAlignment = 'center' | 'top';
105
+
106
+ /**
107
+ * Indicates whether the checkbox is ticked.
108
+ * Renders a `<span>` element.
109
+ *
110
+ * Documentation: [Base UI Checkbox](https://base-ui.com/react/components/checkbox)
111
+ */
112
+ declare const CheckboxIndicator: React_2.ForwardRefExoticComponent<Omit<CheckboxIndicatorProps, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
113
+
114
+ declare namespace CheckboxIndicator {
115
+ type State = CheckboxIndicatorState;
116
+ type Props = CheckboxIndicatorProps;
117
+ }
118
+
119
+ declare interface CheckboxIndicatorProps extends BaseUIComponentProps<'span', CheckboxIndicatorState> {
120
+ /**
121
+ * Whether to keep the element in the DOM when the checkbox is not checked.
122
+ * @default false
123
+ */
124
+ keepMounted?: boolean | undefined;
125
+ }
126
+
127
+ declare interface CheckboxIndicatorState extends CheckboxRootState {
128
+ /**
129
+ * The transition status of the component.
130
+ */
131
+ transitionStatus: TransitionStatus;
132
+ }
133
+
134
+ /**
135
+ * Represents the checkbox itself.
136
+ * Renders a `<span>` element and a hidden `<input>` beside.
137
+ *
138
+ * Documentation: [Base UI Checkbox](https://base-ui.com/react/components/checkbox)
139
+ */
140
+ declare const CheckboxRoot: React_2.ForwardRefExoticComponent<Omit<CheckboxRootProps, "ref"> & React_2.RefAttributes<HTMLElement>>;
141
+
142
+ declare namespace CheckboxRoot {
143
+ type State = CheckboxRootState;
144
+ type Props = CheckboxRootProps;
145
+ type ChangeEventReason = CheckboxRootChangeEventReason;
146
+ type ChangeEventDetails = CheckboxRootChangeEventDetails;
147
+ }
148
+
149
+ declare type CheckboxRootChangeEventDetails = BaseUIChangeEventDetails<CheckboxRoot.ChangeEventReason>;
150
+
151
+ declare type CheckboxRootChangeEventReason = typeof REASONS.none;
152
+
153
+ declare interface CheckboxRootProps extends NonNativeButtonProps, Omit<BaseUIComponentProps<'span', CheckboxRootState>, 'onChange' | 'value'> {
154
+ /**
155
+ * The id of the input element.
156
+ */
157
+ id?: string | undefined;
158
+ /**
159
+ * Identifies the field when a form is submitted.
160
+ * @default undefined
161
+ */
162
+ name?: string | undefined;
163
+ /**
164
+ * Identifies the form that owns the hidden input.
165
+ * Useful when the checkbox is rendered outside the form.
166
+ */
167
+ form?: string | undefined;
168
+ /**
169
+ * Whether the checkbox is currently ticked.
170
+ *
171
+ * To render an uncontrolled checkbox, use the `defaultChecked` prop instead.
172
+ * @default undefined
173
+ */
174
+ checked?: boolean | undefined;
175
+ /**
176
+ * Whether the checkbox is initially ticked.
177
+ *
178
+ * To render a controlled checkbox, use the `checked` prop instead.
179
+ * @default false
180
+ */
181
+ defaultChecked?: boolean | undefined;
182
+ /**
183
+ * Whether the component should ignore user interaction.
184
+ * @default false
185
+ */
186
+ disabled?: boolean | undefined;
187
+ /**
188
+ * Event handler called when the checkbox is ticked or unticked.
189
+ */
190
+ onCheckedChange?: ((checked: boolean, eventDetails: CheckboxRootChangeEventDetails) => void) | undefined;
191
+ /**
192
+ * Whether the user should be unable to tick or untick the checkbox.
193
+ * @default false
194
+ */
195
+ readOnly?: boolean | undefined;
196
+ /**
197
+ * Whether the user must tick the checkbox before submitting a form.
198
+ * @default false
199
+ */
200
+ required?: boolean | undefined;
201
+ /**
202
+ * Whether the checkbox is in a mixed state: neither ticked, nor unticked.
203
+ * @default false
204
+ */
205
+ indeterminate?: boolean | undefined;
206
+ /**
207
+ * A ref to access the hidden `<input>` element.
208
+ */
209
+ inputRef?: React_2.Ref<HTMLInputElement> | undefined;
210
+ /**
211
+ * Whether the checkbox controls a group of child checkboxes.
212
+ *
213
+ * Must be used in a [Checkbox Group](https://base-ui.com/react/components/checkbox-group).
214
+ * @default false
215
+ */
216
+ parent?: boolean | undefined;
217
+ /**
218
+ * The value submitted with the form when the checkbox is unchecked.
219
+ * By default, unchecked checkboxes do not submit any value, matching native checkbox behavior.
220
+ */
221
+ uncheckedValue?: string | undefined;
222
+ /**
223
+ * The value of the selected checkbox.
224
+ */
225
+ value?: string | undefined;
226
+ }
227
+
228
+ declare interface CheckboxRootState extends FieldRootState {
229
+ /**
230
+ * Whether the checkbox is currently ticked.
231
+ */
232
+ checked: boolean;
233
+ /**
234
+ * Whether the component should ignore user interaction.
235
+ */
236
+ disabled: boolean;
237
+ /**
238
+ * Whether the user should be unable to tick or untick the checkbox.
239
+ */
240
+ readOnly: boolean;
241
+ /**
242
+ * Whether the user must tick the checkbox before submitting a form.
243
+ */
244
+ required: boolean;
245
+ /**
246
+ * Whether the checkbox is in a mixed state: neither ticked, nor unticked.
247
+ */
248
+ indeterminate: boolean;
249
+ }
250
+
251
+ declare const chipRemovePress: "chip-remove-press";
252
+
253
+ declare const clearPress: "clear-press";
254
+
255
+ declare const closePress: "close-press";
256
+
257
+ declare const closeWatcher: "close-watcher";
258
+
259
+ /**
260
+ * Shape of the render prop: a function that takes props to be spread on the element and component's state and returns a React element.
261
+ *
262
+ * @template Props Props to be spread on the rendered element.
263
+ * @template State Component's internal state.
264
+ */
265
+ declare type ComponentRenderFn<Props, State> = (props: Props, state: State) => React_2.ReactElement<unknown>;
266
+
267
+ declare const decrementPress: "decrement-press";
268
+
269
+ declare const disabled: "disabled";
270
+
271
+ declare const drag: "drag";
272
+
273
+ declare const escapeKey: "escape-key";
274
+
275
+ declare interface FieldRootState {
276
+ /**
277
+ * Whether the component should ignore user interaction.
278
+ */
279
+ disabled: boolean;
280
+ /**
281
+ * Whether the field has been touched.
282
+ */
283
+ touched: boolean;
284
+ /**
285
+ * Whether the field value has changed from its initial value.
286
+ */
287
+ dirty: boolean;
288
+ /**
289
+ * Whether the field is valid.
290
+ */
291
+ valid: boolean | null;
292
+ /**
293
+ * Whether the field has a value.
294
+ */
295
+ filled: boolean;
296
+ /**
297
+ * Whether the field is focused.
298
+ */
299
+ focused: boolean;
300
+ }
301
+
302
+ declare const focusOut: "focus-out";
303
+
304
+ declare type HTMLProps<T = any> = React_2.HTMLAttributes<T> & {
305
+ ref?: React_2.Ref<T> | undefined;
306
+ };
307
+
308
+ declare const imperativeAction: "imperative-action";
309
+
310
+ declare const incrementPress: "increment-press";
311
+
312
+ declare const initial: "initial";
313
+
314
+ declare const inputBlur: "input-blur";
315
+
316
+ declare const inputChange: "input-change";
317
+
318
+ declare const inputClear: "input-clear";
319
+
320
+ declare const inputPaste: "input-paste";
321
+
322
+ declare const inputPress: "input-press";
323
+
324
+ declare const itemPress: "item-press";
325
+
326
+ declare const keyboard: "keyboard";
327
+
328
+ declare const linkPress: "link-press";
329
+
330
+ declare const listNavigation: "list-navigation";
331
+
332
+ declare const missing: "missing";
333
+
334
+ declare const none: "none";
335
+
336
+ declare interface NonNativeButtonProps {
337
+ /**
338
+ * Whether the component renders a native `<button>` element when replacing it
339
+ * via the `render` prop.
340
+ * Set to `true` if the rendered element is a native button.
341
+ * @default false
342
+ */
343
+ nativeButton?: boolean | undefined;
344
+ }
345
+
346
+ declare const outsidePress: "outside-press";
347
+
348
+ declare const pointer: "pointer";
349
+
350
+ declare namespace REASONS {
351
+ export {
352
+ none,
353
+ triggerPress,
354
+ triggerHover,
355
+ triggerFocus,
356
+ outsidePress,
357
+ itemPress,
358
+ closePress,
359
+ linkPress,
360
+ clearPress,
361
+ chipRemovePress,
362
+ trackPress,
363
+ incrementPress,
364
+ decrementPress,
365
+ inputChange,
366
+ inputClear,
367
+ inputBlur,
368
+ inputPaste,
369
+ inputPress,
370
+ focusOut,
371
+ escapeKey,
372
+ closeWatcher,
373
+ listNavigation,
374
+ keyboard,
375
+ pointer,
376
+ drag,
377
+ wheel,
378
+ scrub,
379
+ cancelOpen,
380
+ siblingOpen,
381
+ disabled,
382
+ missing,
383
+ initial,
384
+ imperativeAction,
385
+ swipe,
386
+ windowResize
387
+ }
388
+ }
389
+
390
+ /**
391
+ * Maps a change `reason` string to the corresponding native event type.
392
+ */
393
+ declare type ReasonToEvent<Reason extends string> = Reason extends keyof ReasonToEventMap ? ReasonToEventMap[Reason] : Event;
394
+
395
+ declare interface ReasonToEventMap {
396
+ [REASONS.none]: Event;
397
+ [REASONS.triggerPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
398
+ [REASONS.triggerHover]: MouseEvent;
399
+ [REASONS.triggerFocus]: FocusEvent;
400
+ [REASONS.outsidePress]: MouseEvent | PointerEvent | TouchEvent;
401
+ [REASONS.itemPress]: MouseEvent | KeyboardEvent | PointerEvent;
402
+ [REASONS.closePress]: MouseEvent | KeyboardEvent | PointerEvent;
403
+ [REASONS.linkPress]: MouseEvent | PointerEvent;
404
+ [REASONS.clearPress]: PointerEvent | MouseEvent | KeyboardEvent;
405
+ [REASONS.chipRemovePress]: PointerEvent | MouseEvent | KeyboardEvent;
406
+ [REASONS.trackPress]: PointerEvent | MouseEvent | TouchEvent;
407
+ [REASONS.incrementPress]: PointerEvent | MouseEvent | TouchEvent;
408
+ [REASONS.decrementPress]: PointerEvent | MouseEvent | TouchEvent;
409
+ [REASONS.inputChange]: InputEvent | Event;
410
+ [REASONS.inputClear]: InputEvent | FocusEvent | Event;
411
+ [REASONS.inputBlur]: FocusEvent;
412
+ [REASONS.inputPaste]: ClipboardEvent;
413
+ [REASONS.inputPress]: MouseEvent | PointerEvent | TouchEvent | KeyboardEvent;
414
+ [REASONS.focusOut]: FocusEvent | KeyboardEvent;
415
+ [REASONS.escapeKey]: KeyboardEvent;
416
+ [REASONS.closeWatcher]: Event;
417
+ [REASONS.listNavigation]: KeyboardEvent;
418
+ [REASONS.keyboard]: KeyboardEvent;
419
+ [REASONS.pointer]: PointerEvent;
420
+ [REASONS.drag]: PointerEvent | TouchEvent;
421
+ [REASONS.swipe]: PointerEvent | TouchEvent;
422
+ [REASONS.wheel]: WheelEvent;
423
+ [REASONS.scrub]: PointerEvent;
424
+ [REASONS.cancelOpen]: MouseEvent;
425
+ [REASONS.siblingOpen]: Event;
426
+ [REASONS.disabled]: Event;
427
+ [REASONS.missing]: Event;
428
+ [REASONS.initial]: Event;
429
+ [REASONS.imperativeAction]: Event;
430
+ [REASONS.windowResize]: UIEvent;
431
+ }
432
+
433
+ declare type RootProps = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Checkbox.Root>> & {
434
+ size?: number;
435
+ };
436
+
437
+ declare const scrub: "scrub";
438
+
439
+ declare const siblingOpen: "sibling-open";
440
+
441
+ declare const swipe: "swipe";
442
+
443
+ declare const trackPress: "track-press";
444
+
445
+ declare type TransitionStatus = 'starting' | 'ending' | 'idle' | undefined;
446
+
447
+ declare const triggerFocus: "trigger-focus";
448
+
449
+ declare const triggerHover: "trigger-hover";
450
+
451
+ declare const triggerPress: "trigger-press";
452
+
453
+ declare const wheel: "wheel";
454
+
455
+ declare const windowResize: "window-resize";
456
+
457
+ /**
458
+ * Adds a `preventBaseUIHandler` method to all event handlers.
459
+ */
460
+ declare type WithBaseUIEvent<T> = { [K in keyof T]: WithPreventBaseUIHandler<T[K]> };
461
+
462
+ 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;
463
+
464
+ declare type WithStringClassName<P> = Omit<P, 'className'> & {
465
+ className?: string;
466
+ };
467
+
468
+ export { }
@@ -0,0 +1,69 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import clsx from "clsx";
3
+ import { CheckboxSize, Checkbox } from "../Checkbox/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 CheckboxField_module = {
8
+ option: "option-o8pAcb",
9
+ root: "root-tqmYsF",
10
+ indicator: "indicator-_WzHbq",
11
+ optionContent: "optionContent-inaJL9",
12
+ optionLabel: "optionLabel-fJWxkM",
13
+ optionSuffix: "optionSuffix-AJytXe"
14
+ };
15
+ const CheckboxField = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, style, label, suffix, variant = 'default', error = false, errorMessage, verticalAlignment = 'center', size = CheckboxSize.medium, width, indeterminate = false, disabled = false, ...props }, ref)=>{
16
+ const isError = error || Boolean(errorMessage);
17
+ const optionWidth = toCssLength(width);
18
+ const optionStyle = {
19
+ ...style,
20
+ ...optionWidth ? {
21
+ '--checkbox-option-width': optionWidth
22
+ } : null
23
+ };
24
+ return /*#__PURE__*/ jsxs(Field.Root, {
25
+ ref: ref,
26
+ className: clsx(CheckboxField_module.option, className),
27
+ style: optionStyle,
28
+ invalid: isError,
29
+ disabled: disabled,
30
+ "data-variant": variant,
31
+ "data-has-error-message": errorMessage ? '' : void 0,
32
+ children: [
33
+ /*#__PURE__*/ jsxs(Checkbox.Root, {
34
+ ...props,
35
+ className: CheckboxField_module.root,
36
+ indeterminate: indeterminate,
37
+ disabled: disabled,
38
+ "data-variant": variant,
39
+ "data-vertical-alignment": verticalAlignment,
40
+ render: /*#__PURE__*/ jsx("label", {}),
41
+ size: size,
42
+ children: [
43
+ /*#__PURE__*/ jsx(Checkbox.Indicator, {
44
+ className: CheckboxField_module.indicator
45
+ }),
46
+ /*#__PURE__*/ jsxs("span", {
47
+ className: CheckboxField_module.optionContent,
48
+ children: [
49
+ /*#__PURE__*/ jsx("span", {
50
+ className: CheckboxField_module.optionLabel,
51
+ children: label
52
+ }),
53
+ suffix ? /*#__PURE__*/ jsx("span", {
54
+ className: CheckboxField_module.optionSuffix,
55
+ children: suffix
56
+ }) : null
57
+ ]
58
+ })
59
+ ]
60
+ }),
61
+ isError && errorMessage ? /*#__PURE__*/ jsx(Field.Error, {
62
+ match: true,
63
+ children: errorMessage
64
+ }) : null
65
+ ]
66
+ });
67
+ });
68
+ CheckboxField.displayName = 'CheckboxField';
69
+ export { CheckboxField };
@@ -1,5 +1,4 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
- import clsx from "clsx";
3
2
  import { useBaseUiId } from "../6046.js";
4
3
  import { useStableCallback } from "../7541.js";
5
4
  import { useLabelableContext, useFieldRootContext, fieldValidityMapping } from "../1477.js";
@@ -165,12 +164,8 @@ const CheckboxGroup_CheckboxGroup = /*#__PURE__*/ __rspack_external_react.forwar
165
164
  });
166
165
  });
167
166
  if ("production" !== process.env.NODE_ENV) CheckboxGroup_CheckboxGroup.displayName = "CheckboxGroup";
168
- const CheckboxGroup_module = {
169
- root: "root-ZCRH6j"
170
- };
171
- const CheckboxGroup_CheckboxGroup_CheckboxGroup = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(CheckboxGroup_CheckboxGroup, {
167
+ const CheckboxGroup_CheckboxGroup_CheckboxGroup = /*#__PURE__*/ __rspack_external_react.forwardRef((props, ref)=>/*#__PURE__*/ jsx(CheckboxGroup_CheckboxGroup, {
172
168
  ref: ref,
173
- className: clsx(CheckboxGroup_module.root, className),
174
169
  ...props
175
170
  }));
176
171
  export { CheckboxGroup_CheckboxGroup_CheckboxGroup as CheckboxGroup };
@@ -0,0 +1,60 @@
1
+ .field-Tx5eMP {
2
+ --checkbox-group-width: auto;
3
+ box-sizing: border-box;
4
+ width: var(--checkbox-group-width);
5
+ max-width: 100%;
6
+ color: var(--wst-paragraph-2-color, black);
7
+ display: inline-flex;
8
+ }
9
+
10
+ .field-Tx5eMP[data-fluid] {
11
+ width: 100%;
12
+ display: flex;
13
+ }
14
+
15
+ .label-E_rDm0 {
16
+ font: var(--wst-paragraph-3-font);
17
+ color: var(--wst-paragraph-2-color, black);
18
+ }
19
+
20
+ .field-Tx5eMP[data-disabled] .label-E_rDm0 {
21
+ color: var(--wst-system-disabled-color, #939393);
22
+ }
23
+
24
+ .items-lFFDGE {
25
+ box-sizing: border-box;
26
+ max-width: 100%;
27
+ display: flex;
28
+ }
29
+
30
+ .items-lFFDGE[data-layout="vertical"] {
31
+ flex-direction: column;
32
+ gap: 12px;
33
+ }
34
+
35
+ .items-lFFDGE[data-layout="vertical"]:not([data-fluid]) > * {
36
+ max-width: 328px;
37
+ }
38
+
39
+ .items-lFFDGE[data-layout="horizontal"] {
40
+ flex-flow: wrap;
41
+ gap: 12px 30px;
42
+ }
43
+
44
+ .items-lFFDGE[data-layout="horizontal"] > * {
45
+ flex: 0 auto;
46
+ width: auto;
47
+ }
48
+
49
+ .items-lFFDGE[data-layout="horizontal"]:not([data-fluid]) {
50
+ max-width: 990px;
51
+ }
52
+
53
+ .items-lFFDGE[data-layout="horizontal"]:not([data-fluid]) > * {
54
+ max-width: 300px;
55
+ }
56
+
57
+ .items-lFFDGE[data-fluid] > * {
58
+ width: 100%;
59
+ }
60
+
@@ -0,0 +1,37 @@
1
+ import { CheckboxGroupProps } from '@base-ui/react/checkbox-group';
2
+ import * as React_2 from 'react';
3
+
4
+ declare type BaseProps = React_2.ComponentPropsWithoutRef<typeof CheckboxGroup>;
5
+
6
+ declare const CheckboxGroup: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<CheckboxGroupProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
7
+ className?: string | undefined;
8
+ } & React_2.RefAttributes<HTMLDivElement>>;
9
+
10
+ export declare const CheckboxGroupField: React_2.ForwardRefExoticComponent<CheckboxGroupFieldProps & React_2.RefAttributes<HTMLDivElement>>;
11
+
12
+ export declare type CheckboxGroupFieldLayout = 'vertical' | 'horizontal';
13
+
14
+ export declare interface CheckboxGroupFieldProps extends WithStringClassName<Omit<BaseProps, 'style'>> {
15
+ /** Accessible label rendered above the group. */
16
+ label?: React_2.ReactNode;
17
+ /** Arranges the options in a column (`vertical`) or wrapping row (`horizontal`). */
18
+ layout?: CheckboxGroupFieldLayout;
19
+ /** Stretches the group and its options to the available width. */
20
+ fluid?: boolean;
21
+ /** Marks the group invalid and reveals `errorMessage`. */
22
+ error?: boolean;
23
+ /** Error message rendered below the group; also marks it invalid. */
24
+ errorMessage?: React_2.ReactNode;
25
+ /** Sets `aria-required` on the group for assistive tech. */
26
+ required?: boolean;
27
+ /** Fixed width of the group; accepts a number (px) or any CSS length. */
28
+ width?: number | string;
29
+ /** Inline styles applied to the field root. */
30
+ style?: React_2.CSSProperties;
31
+ }
32
+
33
+ declare type WithStringClassName<P> = Omit<P, 'className'> & {
34
+ className?: string;
35
+ };
36
+
37
+ export { }