@wix/site-ui 1.23.0 → 1.25.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/Box/index.css +46 -0
- package/dist/Box/index.d.ts +16 -0
- package/dist/Box/index.js +27 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
.root-Ao8l6B {
|
|
2
|
+
box-sizing: border-box;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.primary-CVNdae {
|
|
6
|
+
background-color: var(--wst-box-primary-background-color);
|
|
7
|
+
border-top-color: var(--wst-box-primary-border-top-color);
|
|
8
|
+
border-inline-end-color: var(--wst-box-primary-border-right-color);
|
|
9
|
+
border-bottom-color: var(--wst-box-primary-border-bottom-color);
|
|
10
|
+
border-inline-start-color: var(--wst-box-primary-border-left-color);
|
|
11
|
+
border-top-width: var(--wst-box-primary-border-top-width);
|
|
12
|
+
border-inline-end-width: var(--wst-box-primary-border-right-width);
|
|
13
|
+
border-bottom-width: var(--wst-box-primary-border-bottom-width);
|
|
14
|
+
border-inline-start-width: var(--wst-box-primary-border-left-width);
|
|
15
|
+
border-top-style: var(--wst-box-primary-border-top-style);
|
|
16
|
+
border-inline-end-style: var(--wst-box-primary-border-right-style);
|
|
17
|
+
border-bottom-style: var(--wst-box-primary-border-bottom-style);
|
|
18
|
+
border-inline-start-style: var(--wst-box-primary-border-left-style);
|
|
19
|
+
box-shadow: var(--wst-box-primary-box-shadow);
|
|
20
|
+
border-start-start-radius: var(--wst-box-primary-border-top-left-radius);
|
|
21
|
+
border-start-end-radius: var(--wst-box-primary-border-top-right-radius);
|
|
22
|
+
border-end-end-radius: var(--wst-box-primary-border-bottom-right-radius);
|
|
23
|
+
border-end-start-radius: var(--wst-box-primary-border-bottom-left-radius);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.secondary-cuRZXS {
|
|
27
|
+
background-color: var(--wst-box-secondary-background-color);
|
|
28
|
+
border-top-color: var(--wst-box-secondary-border-top-color);
|
|
29
|
+
border-inline-end-color: var(--wst-box-secondary-border-right-color);
|
|
30
|
+
border-bottom-color: var(--wst-box-secondary-border-bottom-color);
|
|
31
|
+
border-inline-start-color: var(--wst-box-secondary-border-left-color);
|
|
32
|
+
border-top-width: var(--wst-box-secondary-border-top-width);
|
|
33
|
+
border-inline-end-width: var(--wst-box-secondary-border-right-width);
|
|
34
|
+
border-bottom-width: var(--wst-box-secondary-border-bottom-width);
|
|
35
|
+
border-inline-start-width: var(--wst-box-secondary-border-left-width);
|
|
36
|
+
border-top-style: var(--wst-box-secondary-border-top-style);
|
|
37
|
+
border-inline-end-style: var(--wst-box-secondary-border-right-style);
|
|
38
|
+
border-bottom-style: var(--wst-box-secondary-border-bottom-style);
|
|
39
|
+
border-inline-start-style: var(--wst-box-secondary-border-left-style);
|
|
40
|
+
box-shadow: var(--wst-box-secondary-box-shadow);
|
|
41
|
+
border-start-start-radius: var(--wst-box-secondary-border-top-left-radius);
|
|
42
|
+
border-start-end-radius: var(--wst-box-secondary-border-top-right-radius);
|
|
43
|
+
border-end-end-radius: var(--wst-box-secondary-border-bottom-right-radius);
|
|
44
|
+
border-end-start-radius: var(--wst-box-secondary-border-bottom-left-radius);
|
|
45
|
+
}
|
|
46
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React_2 from 'react';
|
|
2
|
+
|
|
3
|
+
export declare const Box: React_2.ForwardRefExoticComponent<BoxProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
4
|
+
|
|
5
|
+
export declare interface BoxProps extends WithStringClassName<React_2.HTMLAttributes<HTMLDivElement>> {
|
|
6
|
+
variant?: BoxVariant;
|
|
7
|
+
render?: React_2.ReactElement;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export declare type BoxVariant = 'primary' | 'secondary';
|
|
11
|
+
|
|
12
|
+
declare type WithStringClassName<P> = Omit<P, 'className'> & {
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { }
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import * as __rspack_external_react from "react";
|
|
4
|
+
const Box_module = {
|
|
5
|
+
root: "root-Ao8l6B",
|
|
6
|
+
primary: "primary-CVNdae",
|
|
7
|
+
secondary: "secondary-cuRZXS"
|
|
8
|
+
};
|
|
9
|
+
const Box = /*#__PURE__*/ __rspack_external_react.forwardRef(({ variant = 'primary', render: renderProp, className, ...props }, ref)=>{
|
|
10
|
+
const variantClass = Box_module[variant];
|
|
11
|
+
if (renderProp) {
|
|
12
|
+
const { className: renderClassName, ...renderElementProps } = renderProp.props;
|
|
13
|
+
return /*#__PURE__*/ __rspack_external_react.cloneElement(renderProp, {
|
|
14
|
+
...renderElementProps,
|
|
15
|
+
...props,
|
|
16
|
+
ref,
|
|
17
|
+
className: clsx(Box_module.root, variantClass, renderClassName, className)
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
return /*#__PURE__*/ jsx("div", {
|
|
21
|
+
ref: ref,
|
|
22
|
+
className: clsx(Box_module.root, variantClass, className),
|
|
23
|
+
...props
|
|
24
|
+
});
|
|
25
|
+
});
|
|
26
|
+
Box.displayName = 'Box';
|
|
27
|
+
export { Box };
|
package/dist/index.d.ts
CHANGED
|
@@ -371,6 +371,15 @@ export declare const AvatarSize: {
|
|
|
371
371
|
|
|
372
372
|
declare type BaseProps = WithStringClassName<React_2.ComponentPropsWithoutRef<typeof Button_2>>;
|
|
373
373
|
|
|
374
|
+
export declare const Box: React_2.ForwardRefExoticComponent<BoxProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
375
|
+
|
|
376
|
+
export declare interface BoxProps extends WithStringClassName<React_2.HTMLAttributes<HTMLDivElement>> {
|
|
377
|
+
variant?: BoxVariant;
|
|
378
|
+
render?: React_2.ReactElement;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
export declare type BoxVariant = 'primary' | 'secondary';
|
|
382
|
+
|
|
374
383
|
export declare const Breadcrumbs: {
|
|
375
384
|
Root: typeof Root_2;
|
|
376
385
|
List: React_2.ForwardRefExoticComponent<Omit<Omit<Omit<NavigationMenuListProps, "ref"> & React_2.RefAttributes<HTMLUListElement>, "ref">, "className"> & {
|
package/dist/index.js
CHANGED
|
@@ -2,6 +2,7 @@ export { Accordion, AccordionSize, AccordionVariant } from "./Accordion/index.js
|
|
|
2
2
|
export { AlertDialog } from "./AlertDialog/index.js";
|
|
3
3
|
export { Autocomplete } from "./Autocomplete/index.js";
|
|
4
4
|
export { Avatar, AvatarSize } from "./Avatar/index.js";
|
|
5
|
+
export { Box } from "./Box/index.js";
|
|
5
6
|
export { Breadcrumbs } from "./Breadcrumbs/index.js";
|
|
6
7
|
export { Button } from "./Button/index.js";
|
|
7
8
|
export { Checkbox, CheckboxSize } from "./Checkbox/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.25.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": "
|
|
81
|
+
"falconPackageHash": "410ee16cf094161d34d8c088290be6b01dd11a562688f127ca82d245"
|
|
82
82
|
}
|