@wix/site-ui 1.105.0 → 1.107.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.
package/dist/index.d.ts CHANGED
@@ -89,10 +89,15 @@ import { DrawerSwipeAreaProps as DrawerSwipeAreaProps_2 } from '@base-ui/react/d
89
89
  import { DrawerViewportProps as DrawerViewportProps_2 } from '@base-ui/react/drawer';
90
90
  import { FieldControlProps as FieldControlProps_2 } from '@base-ui/react/field';
91
91
  import { FieldDescriptionProps as FieldDescriptionProps_2 } from '@base-ui/react/field';
92
+ import { FieldDescriptionProps as FieldDescriptionProps_3 } from '../Field';
92
93
  import { FieldErrorProps as FieldErrorProps_2 } from '@base-ui/react/field';
94
+ import { FieldErrorProps as FieldErrorProps_3 } from '../Field';
93
95
  import { FieldItemProps as FieldItemProps_2 } from '@base-ui/react/field';
96
+ import { FieldItemProps as FieldItemProps_3 } from '../Field';
94
97
  import { FieldLabelProps as FieldLabelProps_2 } from '@base-ui/react/field';
98
+ import { FieldLabelProps as FieldLabelProps_3 } from '../Field';
95
99
  import { FieldRootProps as FieldRootProps_2 } from '@base-ui/react/field';
100
+ import { FieldRootProps as FieldRootProps_3 } from '../Field';
96
101
  import { FieldsetLegendProps as FieldsetLegendProps_2 } from '@base-ui/react/fieldset';
97
102
  import { FieldsetRootProps as FieldsetRootProps_2 } from '@base-ui/react/fieldset';
98
103
  import { FieldValidityProps as FieldValidityProps_2 } from '@base-ui/react/field';
@@ -102,6 +107,7 @@ import { HTMLProps as HTMLProps_2 } from '../../index.js';
102
107
  import { InputProps as InputProps_2 } from '@base-ui/react/input';
103
108
  import { InteractionType } from '@base-ui/utils/useEnhancedClickHandler';
104
109
  import { JSX as JSX_2 } from 'react/jsx-runtime';
110
+ import { LabelVariant as LabelVariant_2 } from '../Field/Field';
105
111
  import { MenuArrowProps as MenuArrowProps_2 } from '@base-ui/react/menu';
106
112
  import { MenuBackdropProps as MenuBackdropProps_2 } from '@base-ui/react/menu';
107
113
  import { MenubarProps as MenubarProps_2 } from '@base-ui/react/menubar';
@@ -163,6 +169,8 @@ import { ProgressLabelProps as ProgressLabelProps_2 } from '@base-ui/react/progr
163
169
  import { ProgressRootProps as ProgressRootProps_2 } from '@base-ui/react/progress';
164
170
  import { ProgressTrackProps as ProgressTrackProps_2 } from '@base-ui/react/progress';
165
171
  import { ProgressValueProps as ProgressValueProps_2 } from '@base-ui/react/progress';
172
+ import { RadioGroup as RadioGroup_3 } from '@base-ui/react';
173
+ import { RadioGroupOrientation as RadioGroupOrientation_2 } from '../RadioGroup/RadioGroup';
166
174
  import { RadioIndicatorProps as RadioIndicatorProps_2 } from '@base-ui/react/radio';
167
175
  import * as React_2 from 'react';
168
176
  import { ReactStore } from '@base-ui/utils/store';
@@ -4263,6 +4271,8 @@ export declare namespace FieldDescription {
4263
4271
 
4264
4272
  export declare interface FieldDescriptionProps extends BaseUIComponentProps<'p', FieldDescriptionState> {}
4265
4273
 
4274
+ declare type FieldDescriptionProps_4 = React_2.ComponentPropsWithoutRef<typeof Field.Description>;
4275
+
4266
4276
  export declare interface FieldDescriptionState extends FieldRootState {}
4267
4277
 
4268
4278
  /**
@@ -4288,6 +4298,8 @@ export declare interface FieldErrorProps extends BaseUIComponentProps<'div', Fie
4288
4298
  match?: boolean | keyof ValidityState | undefined;
4289
4299
  }
4290
4300
 
4301
+ declare type FieldErrorProps_4 = React_2.ComponentPropsWithoutRef<typeof Field.Error>;
4302
+
4291
4303
  export declare interface FieldErrorState extends FieldRootState {
4292
4304
  /**
4293
4305
  * The transition status of the component.
@@ -4317,6 +4329,8 @@ export declare interface FieldItemProps extends BaseUIComponentProps<'div', Fiel
4317
4329
  disabled?: boolean | undefined;
4318
4330
  }
4319
4331
 
4332
+ declare type FieldItemProps_4 = React_2.ComponentPropsWithoutRef<typeof Field.Item>;
4333
+
4320
4334
  export declare interface FieldItemState extends FieldRootState {}
4321
4335
 
4322
4336
  /**
@@ -4343,6 +4357,8 @@ export declare interface FieldLabelProps extends BaseUIComponentProps<'label', F
4343
4357
  nativeLabel?: boolean | undefined;
4344
4358
  }
4345
4359
 
4360
+ declare type FieldLabelProps_4 = React_2.ComponentPropsWithoutRef<typeof Field.Label>;
4361
+
4346
4362
  export declare interface FieldLabelState extends FieldRootState {}
4347
4363
 
4348
4364
  /**
@@ -4421,6 +4437,8 @@ export declare interface FieldRootProps extends BaseUIComponentProps<'div', Fiel
4421
4437
  actionsRef?: React_2.RefObject<FieldRoot.Actions | null> | undefined;
4422
4438
  }
4423
4439
 
4440
+ declare type FieldRootProps_4 = React_2.ComponentPropsWithoutRef<typeof Field.Root>;
4441
+
4424
4442
  export declare interface FieldRootState {
4425
4443
  /**
4426
4444
  * Whether the component should ignore user interaction.
@@ -4829,6 +4847,8 @@ declare const imperativeAction: "imperative-action";
4829
4847
 
4830
4848
  declare const incrementPress: "increment-press";
4831
4849
 
4850
+ declare type IndicatorProps = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Radio.Indicator>>;
4851
+
4832
4852
  declare const initial: "initial";
4833
4853
 
4834
4854
  declare interface InlineRectCoords {
@@ -8283,10 +8303,10 @@ export declare interface ProgressValueProps extends Omit<BaseUIComponentProps<'s
8283
8303
  export declare interface ProgressValueState extends ProgressRootState {}
8284
8304
 
8285
8305
  export declare const Radio: {
8306
+ Root: typeof Root_4;
8286
8307
  Indicator: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<RadioIndicatorProps_2, "ref"> & React_2.RefAttributes<HTMLSpanElement>, "ref">, "className"> & {
8287
8308
  className?: string | undefined;
8288
8309
  } & React_2.RefAttributes<HTMLSpanElement>>;
8289
- Root: typeof Root_4;
8290
8310
  };
8291
8311
 
8292
8312
  export declare namespace Radio_2 {
@@ -8296,8 +8316,90 @@ export declare namespace Radio_2 {
8296
8316
  }
8297
8317
  }
8298
8318
 
8319
+ export declare const RadioField: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<Omit<FieldRootProps_3, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
8320
+ className?: string | undefined;
8321
+ } & React_2.RefAttributes<HTMLDivElement>, "ref">, "children"> & {
8322
+ /** The unique value this option contributes to its `RadioGroup`. */
8323
+ value: string;
8324
+ /** Visible label rendered beside the radio. */
8325
+ label: React_2.ReactNode;
8326
+ /** Visual style: a plain radio row or a selectable `box` tile. */
8327
+ variant?: RadioFieldVariant | undefined;
8328
+ /** Renders the option selected (for standalone, controlled usage). */
8329
+ checked?: boolean | undefined;
8330
+ /** Supporting text rendered below the label. */
8331
+ description?: React_2.ReactNode;
8332
+ /** Error message rendered below the option; also marks the field invalid. */
8333
+ error?: React_2.ReactNode;
8334
+ /** Called with `value` when the option is chosen via click. */
8335
+ onSelect?: ((value: string) => void) | undefined;
8336
+ /** Size of the radio control in pixels. */
8337
+ size?: number | undefined;
8338
+ /** Extra inline content rendered after the label. */
8339
+ suffix?: React_2.ReactNode;
8340
+ /** Props forwarded to the `Field.Item` wrapping the radio and label. */
8341
+ itemProps?: Omit<Omit<Omit<Omit<Omit<FieldItemProps_3, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
8342
+ className?: string | undefined;
8343
+ } & React_2.RefAttributes<HTMLDivElement>, "ref">, "children"> | undefined;
8344
+ /** Props forwarded to the `Field.Label`. */
8345
+ labelProps?: Omit<Omit<Omit<Omit<Omit<FieldLabelProps_3, "ref"> & React_2.RefAttributes<HTMLElement>, "ref">, "className"> & {
8346
+ className?: string | undefined;
8347
+ } & {
8348
+ variant?: LabelVariant_2 | undefined;
8349
+ } & React_2.RefAttributes<HTMLElement>, "ref">, "children"> | undefined;
8350
+ /** Props forwarded to the `Field.Description`. */
8351
+ descriptionProps?: Omit<Omit<Omit<Omit<Omit<FieldDescriptionProps_3, "ref"> & React_2.RefAttributes<HTMLParagraphElement>, "ref">, "className"> & {
8352
+ className?: string | undefined;
8353
+ } & React_2.RefAttributes<HTMLParagraphElement>, "ref">, "children"> | undefined;
8354
+ /** Props forwarded to the `Field.Error`. */
8355
+ errorProps?: Omit<Omit<Omit<Omit<Omit<FieldErrorProps_3, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
8356
+ className?: string | undefined;
8357
+ } & React_2.RefAttributes<HTMLDivElement>, "ref">, "children"> | undefined;
8358
+ /** Props forwarded to the underlying `Radio.Root`. */
8359
+ radioProps?: RadioRootProps_2 | undefined;
8360
+ /** Props forwarded to the `Radio.Indicator`. */
8361
+ indicatorProps?: IndicatorProps | undefined;
8362
+ } & React_2.RefAttributes<HTMLDivElement>>;
8363
+
8364
+ export declare type RadioFieldProps = Omit<FieldRootProps_4, 'children'> & {
8365
+ /** The unique value this option contributes to its `RadioGroup`. */
8366
+ value: string;
8367
+ /** Visible label rendered beside the radio. */
8368
+ label: React_2.ReactNode;
8369
+ /** Visual style: a plain radio row or a selectable `box` tile. */
8370
+ variant?: RadioFieldVariant;
8371
+ /** Renders the option selected (for standalone, controlled usage). */
8372
+ checked?: boolean;
8373
+ /** Supporting text rendered below the label. */
8374
+ description?: React_2.ReactNode;
8375
+ /** Error message rendered below the option; also marks the field invalid. */
8376
+ error?: React_2.ReactNode;
8377
+ /** Called with `value` when the option is chosen via click. */
8378
+ onSelect?: (value: string) => void;
8379
+ /** Size of the radio control in pixels. */
8380
+ size?: number;
8381
+ /** Extra inline content rendered after the label. */
8382
+ suffix?: React_2.ReactNode;
8383
+ /** Props forwarded to the `Field.Item` wrapping the radio and label. */
8384
+ itemProps?: Omit<FieldItemProps_4, 'children'>;
8385
+ /** Props forwarded to the `Field.Label`. */
8386
+ labelProps?: Omit<FieldLabelProps_4, 'children'>;
8387
+ /** Props forwarded to the `Field.Description`. */
8388
+ descriptionProps?: Omit<FieldDescriptionProps_4, 'children'>;
8389
+ /** Props forwarded to the `Field.Error`. */
8390
+ errorProps?: Omit<FieldErrorProps_4, 'children'>;
8391
+ /** Props forwarded to the underlying `Radio.Root`. */
8392
+ radioProps?: RadioRootProps_2;
8393
+ /** Props forwarded to the `Radio.Indicator`. */
8394
+ indicatorProps?: IndicatorProps;
8395
+ };
8396
+
8397
+ export declare type RadioFieldVariant = 'default' | 'box';
8398
+
8299
8399
  export declare const RadioGroup: React_2.ForwardRefExoticComponent<Omit<Omit<RadioGroup_2.Props<unknown>, "ref">, "className"> & {
8300
8400
  className?: string | undefined;
8401
+ } & {
8402
+ orientation?: RadioGroupOrientation | undefined;
8301
8403
  } & React_2.RefAttributes<HTMLDivElement>>;
8302
8404
 
8303
8405
  /**
@@ -8321,6 +8423,52 @@ export declare type RadioGroupChangeEventDetails = BaseUIChangeEventDetails<Radi
8321
8423
 
8322
8424
  export declare type RadioGroupChangeEventReason = typeof REASONS.none;
8323
8425
 
8426
+ export declare const RadioGroupField: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<RadioGroup_3.Props<unknown>, "ref">, "className"> & {
8427
+ className?: string | undefined;
8428
+ } & {
8429
+ orientation?: RadioGroupOrientation_2 | undefined;
8430
+ } & React_2.RefAttributes<HTMLDivElement>, "ref"> & {
8431
+ /** Accessible label rendered above the group. */
8432
+ label?: React_2.ReactNode;
8433
+ /** Error message rendered below the group when invalid. */
8434
+ error?: React_2.ReactNode;
8435
+ /** Always-visible helper text rendered below the group. */
8436
+ description?: React_2.ReactNode;
8437
+ /** Visual style applied to every radio in the group. */
8438
+ variant?: RadioGroupFieldVariant | undefined;
8439
+ /** Separates `box` tiles instead of collapsing their borders. */
8440
+ withSpacing?: boolean | undefined;
8441
+ /** Stretches `box` tiles to the available width. */
8442
+ fluid?: boolean | undefined;
8443
+ /** Marks the group invalid, styling every radio and revealing `error`. */
8444
+ invalid?: boolean | undefined;
8445
+ /** Size in pixels applied to every radio in the group. */
8446
+ size?: number | undefined;
8447
+ } & React_2.RefAttributes<HTMLDivElement>>;
8448
+
8449
+ export declare type RadioGroupFieldProps = RadioGroupProps_2 & {
8450
+ /** Accessible label rendered above the group. */
8451
+ label?: React_2.ReactNode;
8452
+ /** Error message rendered below the group when invalid. */
8453
+ error?: React_2.ReactNode;
8454
+ /** Always-visible helper text rendered below the group. */
8455
+ description?: React_2.ReactNode;
8456
+ /** Visual style applied to every radio in the group. */
8457
+ variant?: RadioGroupFieldVariant;
8458
+ /** Separates `box` tiles instead of collapsing their borders. */
8459
+ withSpacing?: boolean;
8460
+ /** Stretches `box` tiles to the available width. */
8461
+ fluid?: boolean;
8462
+ /** Marks the group invalid, styling every radio and revealing `error`. */
8463
+ invalid?: boolean;
8464
+ /** Size in pixels applied to every radio in the group. */
8465
+ size?: number;
8466
+ };
8467
+
8468
+ export declare type RadioGroupFieldVariant = 'default' | 'box';
8469
+
8470
+ declare type RadioGroupOrientation = 'vertical' | 'horizontal';
8471
+
8324
8472
  export declare interface RadioGroupProps<Value = any> extends Omit<BaseUIComponentProps<'div', RadioGroupState>, 'value'> {
8325
8473
  /**
8326
8474
  * Whether the component should ignore user interaction.
@@ -8368,6 +8516,8 @@ export declare interface RadioGroupProps<Value = any> extends Omit<BaseUICompone
8368
8516
  inputRef?: React_2.Ref<HTMLInputElement> | undefined;
8369
8517
  }
8370
8518
 
8519
+ declare type RadioGroupProps_2 = React_2.ComponentPropsWithoutRef<typeof RadioGroup>;
8520
+
8371
8521
  export declare interface RadioGroupState extends FieldRootState {
8372
8522
  /**
8373
8523
  * Whether the user should be unable to select a different radio button in the group.
@@ -8449,6 +8599,10 @@ export declare interface RadioRootProps<Value = any> extends NonNativeButtonProp
8449
8599
  inputRef?: React_2.Ref<HTMLInputElement> | undefined;
8450
8600
  }
8451
8601
 
8602
+ declare type RadioRootProps_2 = Omit<WithStringClassName<Radio_2.Root.Props<string>> & {
8603
+ size?: number;
8604
+ }, 'children' | 'size' | 'value'>;
8605
+
8452
8606
  export declare interface RadioRootState extends FieldRootState {
8453
8607
  /**
8454
8608
  * Whether the radio button is currently selected.
package/dist/index.js CHANGED
@@ -26,7 +26,9 @@ export { Popover } from "./Popover/index.js";
26
26
  export { PreviewCard } from "./PreviewCard/index.js";
27
27
  export { Progress, ProgressSize } from "./Progress/index.js";
28
28
  export { Radio, RadioSize } from "./Radio/index.js";
29
+ export { RadioField } from "./RadioField/index.js";
29
30
  export { RadioGroup } from "./RadioGroup/index.js";
31
+ export { RadioGroupField } from "./RadioGroupField/index.js";
30
32
  export { ScrollArea } from "./ScrollArea/index.js";
31
33
  export { Select } from "./Select/index.js";
32
34
  export { SelectField } from "./SelectField/index.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/site-ui",
3
- "version": "1.105.0",
3
+ "version": "1.107.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": "04dbfc8fad3ed8dba5ecc2545594688558382cb49a23985d1fb81735"
98
+ "falconPackageHash": "65a32ebe441a030aa575584abf914e7d8ab9707c45d7485eda73b47d"
99
99
  }