@wix/site-ui 1.27.0 → 1.28.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.
@@ -1,21 +1,26 @@
1
1
  .root-rb7o7e {
2
- margin-block: 0;
3
- margin-inline: 0;
2
+ border-style: none;
3
+ }
4
+
5
+ .root-rb7o7e.primary-Ebj9ZZ {
6
+ border-width: var(--wst-system-line-1-width, 1px);
7
+ border-color: var(--wst-system-line-1-color, #000);
8
+ }
9
+
10
+ .root-rb7o7e.secondary-Gx3Eah {
11
+ border-width: var(--wst-system-line-2-width, 1px);
12
+ border-color: var(--wst-system-line-2-color, #1f4fff);
4
13
  }
5
14
 
6
15
  .root-rb7o7e[data-orientation="horizontal"] {
7
16
  border-bottom-style: solid;
8
- border-width: 0 0 var(--wst-system-line-1-width, 1px) 0;
9
- border-bottom-color: var(--wst-system-line-1-color, #c2c2c2);
10
- opacity: 1;
11
- max-width: 100%;
17
+ width: 100%;
18
+ margin: 24px 0;
12
19
  }
13
20
 
14
21
  .root-rb7o7e[data-orientation="vertical"] {
15
22
  border-left-style: solid;
16
- border-width: 0 0 0 var(--wst-system-line-1-width, 1px);
17
- border-left-color: var(--wst-system-line-1-color, #c2c2c2);
18
- opacity: 1;
19
- min-height: 100%;
23
+ height: 100%;
24
+ margin: 0 24px;
20
25
  }
21
26
 
@@ -1,9 +1,19 @@
1
1
  import * as React_2 from 'react';
2
- import { SeparatorProps } from '@base-ui/react/separator';
2
+ import { Separator as Separator_2 } from '@base-ui/react/separator';
3
3
 
4
- export declare const Separator: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SeparatorProps, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
5
- className?: string | undefined;
6
- } & React_2.RefAttributes<HTMLDivElement>>;
4
+ declare type BaseProps = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Separator_2>>;
5
+
6
+ export declare const Separator: React_2.ForwardRefExoticComponent<SeparatorProps & React_2.RefAttributes<HTMLDivElement>>;
7
+
8
+ declare interface SeparatorProps extends BaseProps {
9
+ variant?: SeparatorVariant;
10
+ }
11
+
12
+ declare type SeparatorVariant = 'primary' | 'secondary';
13
+
14
+ declare type WithStringClassName<P> = Omit<P, 'className'> & {
15
+ className?: string;
16
+ };
7
17
 
8
18
 
9
19
  export * from "@base-ui/react/separator";
@@ -3,11 +3,13 @@ import { Separator } from "@base-ui/react/separator";
3
3
  import clsx from "clsx";
4
4
  import * as __rspack_external_react from "react";
5
5
  const Separator_module = {
6
- root: "root-rb7o7e"
6
+ root: "root-rb7o7e",
7
+ primary: "primary-Ebj9ZZ",
8
+ secondary: "secondary-Gx3Eah"
7
9
  };
8
- const Separator_Separator = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, ...props }, ref)=>/*#__PURE__*/ jsx(Separator, {
10
+ const Separator_Separator = /*#__PURE__*/ __rspack_external_react.forwardRef(({ className, variant = 'primary', ...props }, ref)=>/*#__PURE__*/ jsx(Separator, {
9
11
  ref: ref,
10
- className: clsx(Separator_module.root, className),
12
+ className: clsx(Separator_module.root, Separator_module[variant], className),
11
13
  ...props
12
14
  }));
13
15
  export { Separator_Separator as Separator };
package/dist/index.d.ts CHANGED
@@ -197,8 +197,8 @@ import { SelectScrollDownArrowProps } from '@base-ui/react/select';
197
197
  import { SelectScrollUpArrowProps } from '@base-ui/react/select';
198
198
  import { SelectTriggerProps } from '@base-ui/react/select';
199
199
  import { SelectValueProps } from '@base-ui/react/select';
200
+ import { Separator as Separator_2 } from '@base-ui/react/separator';
200
201
  import { SeparatorProps } from '@base-ui/react';
201
- import { SeparatorProps as SeparatorProps_2 } from '@base-ui/react/separator';
202
202
  import { Slider as Slider_2 } from '@base-ui/react/slider';
203
203
  import { SliderControlProps } from '@base-ui/react/slider';
204
204
  import { SliderIndicatorProps } from '@base-ui/react/slider';
@@ -371,6 +371,8 @@ export declare const AvatarSize: {
371
371
 
372
372
  declare type BaseProps = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Button_2>>;
373
373
 
374
+ declare type BaseProps_2 = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Separator_2>>;
375
+
374
376
  export declare const Box: React_2.ForwardRefExoticComponent<BoxProps & React_2.RefAttributes<HTMLDivElement>>;
375
377
 
376
378
  export declare interface BoxProps extends WithStringClassName<React_2.HTMLAttributes<HTMLDivElement>> {
@@ -1000,9 +1002,13 @@ export declare const Select: {
1000
1002
  Separator: React_2.ForwardRefExoticComponent<Omit<SeparatorProps, "ref"> & React_2.RefAttributes<HTMLDivElement>>;
1001
1003
  };
1002
1004
 
1003
- export declare const Separator: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<SeparatorProps_2, "ref"> & React_2.RefAttributes<HTMLDivElement>, "ref">, "className"> & {
1004
- className?: string | undefined;
1005
- } & React_2.RefAttributes<HTMLDivElement>>;
1005
+ export declare const Separator: React_2.ForwardRefExoticComponent<SeparatorProps_2 & React_2.RefAttributes<HTMLDivElement>>;
1006
+
1007
+ declare interface SeparatorProps_2 extends BaseProps_2 {
1008
+ variant?: SeparatorVariant;
1009
+ }
1010
+
1011
+ declare type SeparatorVariant = 'primary' | 'secondary';
1006
1012
 
1007
1013
  declare type Size = (typeof AccordionSize)[keyof typeof AccordionSize];
1008
1014
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/site-ui",
3
- "version": "1.27.0",
3
+ "version": "1.28.0",
4
4
  "description": "Pure UI components for the Wix site builder",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -78,5 +78,5 @@
78
78
  "registry": "https://registry.npmjs.org/",
79
79
  "access": "public"
80
80
  },
81
- "falconPackageHash": "410ee16cf094161d34d8c088290be6b01dd11a562688f127ca82d245"
81
+ "falconPackageHash": "e84331faff7c795f4d39159829633d1daf66387beed534bf19d7e978"
82
82
  }