@wix/site-ui 1.1.0 → 1.3.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/Accordion/index.css +2 -0
- package/dist/Accordion/index.d.ts +34 -0
- package/dist/Accordion/index.js +39 -0
- package/dist/AlertDialog/index.css +2 -0
- package/dist/AlertDialog/index.d.ts +47 -0
- package/dist/AlertDialog/index.js +55 -0
- package/dist/Autocomplete/index.css +2 -0
- package/dist/Autocomplete/index.d.ts +85 -0
- package/dist/Autocomplete/index.js +110 -0
- package/dist/Avatar/index.css +2 -0
- package/dist/Avatar/index.d.ts +21 -0
- package/dist/Avatar/index.js +26 -0
- package/dist/Button/index.css +2 -0
- package/dist/Button/index.d.ts +11 -0
- package/dist/Button/index.js +11 -0
- package/dist/Checkbox/index.css +2 -0
- package/dist/Checkbox/index.d.ts +17 -0
- package/dist/Checkbox/index.js +20 -0
- package/dist/CheckboxGroup/index.css +2 -0
- package/dist/CheckboxGroup/index.d.ts +11 -0
- package/dist/CheckboxGroup/index.js +11 -0
- package/dist/Collapsible/index.css +2 -0
- package/dist/Collapsible/index.d.ts +21 -0
- package/dist/Collapsible/index.js +26 -0
- package/dist/Combobox/index.css +2 -0
- package/dist/Combobox/index.d.ts +101 -0
- package/dist/Combobox/index.js +139 -0
- package/dist/ContextMenu/index.css +2 -0
- package/dist/ContextMenu/index.d.ts +76 -0
- package/dist/ContextMenu/index.js +102 -0
- package/dist/Dialog/index.css +2 -0
- package/dist/Dialog/index.d.ts +47 -0
- package/dist/Dialog/index.js +55 -0
- package/dist/Drawer/index.css +2 -0
- package/dist/Drawer/index.d.ts +60 -0
- package/dist/Drawer/index.js +83 -0
- package/dist/Field/index.css +2 -0
- package/dist/Field/index.d.ts +35 -0
- package/dist/Field/index.js +45 -0
- package/dist/Fieldset/index.css +2 -0
- package/dist/Fieldset/index.d.ts +17 -0
- package/dist/Fieldset/index.js +20 -0
- package/dist/Form/index.css +2 -0
- package/dist/Form/index.d.ts +13 -0
- package/dist/Form/index.js +11 -0
- package/dist/Input/index.css +2 -0
- package/dist/Input/index.d.ts +11 -0
- package/dist/Input/index.js +11 -0
- package/dist/Menu/index.css +2 -0
- package/dist/Menu/index.d.ts +85 -0
- package/dist/Menu/index.js +111 -0
- package/dist/Menubar/index.css +2 -0
- package/dist/Menubar/index.d.ts +11 -0
- package/dist/Menubar/index.js +11 -0
- package/dist/Meter/index.css +2 -0
- package/dist/Meter/index.d.ts +29 -0
- package/dist/Meter/index.js +38 -0
- package/dist/NavigationMenu/index.css +2 -0
- package/dist/NavigationMenu/index.d.ts +64 -0
- package/dist/NavigationMenu/index.js +82 -0
- package/dist/NumberField/index.css +2 -0
- package/dist/NumberField/index.d.ts +37 -0
- package/dist/NumberField/index.js +50 -0
- package/dist/Popover/index.css +2 -0
- package/dist/Popover/index.d.ts +54 -0
- package/dist/Popover/index.js +67 -0
- package/dist/PreviewCard/index.css +2 -0
- package/dist/PreviewCard/index.d.ts +42 -0
- package/dist/PreviewCard/index.js +49 -0
- package/dist/Progress/index.css +2 -0
- package/dist/Progress/index.d.ts +29 -0
- package/dist/Progress/index.js +38 -0
- package/dist/Radio/index.css +2 -0
- package/dist/Radio/index.d.ts +22 -0
- package/dist/Radio/index.js +21 -0
- package/dist/RadioGroup/index.css +2 -0
- package/dist/RadioGroup/index.d.ts +11 -0
- package/dist/RadioGroup/index.js +11 -0
- package/dist/ScrollArea/index.css +2 -0
- package/dist/ScrollArea/index.d.ts +33 -0
- package/dist/ScrollArea/index.js +44 -0
- package/dist/Select/index.css +2 -0
- package/dist/Select/index.d.ts +79 -0
- package/dist/Select/index.js +107 -0
- package/dist/Separator/index.css +2 -0
- package/dist/Separator/index.d.ts +11 -0
- package/dist/Separator/index.js +11 -0
- package/dist/Slider/index.css +2 -0
- package/dist/Slider/index.d.ts +42 -0
- package/dist/Slider/index.js +51 -0
- package/dist/Switch/index.css +2 -0
- package/dist/Switch/index.d.ts +17 -0
- package/dist/Switch/index.js +20 -0
- package/dist/Tabs/index.css +2 -0
- package/dist/Tabs/index.d.ts +29 -0
- package/dist/Tabs/index.js +38 -0
- package/dist/Toggle/index.css +2 -0
- package/dist/Toggle/index.d.ts +11 -0
- package/dist/Toggle/index.js +11 -0
- package/dist/ToggleGroup/index.css +2 -0
- package/dist/ToggleGroup/index.d.ts +11 -0
- package/dist/ToggleGroup/index.js +11 -0
- package/dist/Toolbar/index.css +2 -0
- package/dist/Toolbar/index.d.ts +33 -0
- package/dist/Toolbar/index.js +44 -0
- package/dist/Tooltip/index.css +2 -0
- package/dist/Tooltip/index.d.ts +40 -0
- package/dist/Tooltip/index.js +44 -0
- package/dist/index.d.ts +1059 -7
- package/dist/index.js +36 -1
- package/package.json +27 -8
- package/dist/TestButton/index.css +0 -9
- package/dist/TestButton/index.d.ts +0 -13
- package/dist/TestButton/index.js +0 -14
package/dist/index.js
CHANGED
|
@@ -1 +1,36 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { Accordion } from "./Accordion/index.js";
|
|
2
|
+
export { AlertDialog } from "./AlertDialog/index.js";
|
|
3
|
+
export { Autocomplete } from "./Autocomplete/index.js";
|
|
4
|
+
export { Avatar } from "./Avatar/index.js";
|
|
5
|
+
export { Button } from "./Button/index.js";
|
|
6
|
+
export { Checkbox } from "./Checkbox/index.js";
|
|
7
|
+
export { CheckboxGroup } from "./CheckboxGroup/index.js";
|
|
8
|
+
export { Collapsible } from "./Collapsible/index.js";
|
|
9
|
+
export { Combobox } from "./Combobox/index.js";
|
|
10
|
+
export { ContextMenu } from "./ContextMenu/index.js";
|
|
11
|
+
export { Dialog } from "./Dialog/index.js";
|
|
12
|
+
export { Drawer } from "./Drawer/index.js";
|
|
13
|
+
export { Field } from "./Field/index.js";
|
|
14
|
+
export { Fieldset } from "./Fieldset/index.js";
|
|
15
|
+
export { Form } from "./Form/index.js";
|
|
16
|
+
export { Input } from "./Input/index.js";
|
|
17
|
+
export { Menu } from "./Menu/index.js";
|
|
18
|
+
export { Menubar } from "./Menubar/index.js";
|
|
19
|
+
export { Meter } from "./Meter/index.js";
|
|
20
|
+
export { NavigationMenu } from "./NavigationMenu/index.js";
|
|
21
|
+
export { NumberField } from "./NumberField/index.js";
|
|
22
|
+
export { Popover } from "./Popover/index.js";
|
|
23
|
+
export { PreviewCard } from "./PreviewCard/index.js";
|
|
24
|
+
export { Progress } from "./Progress/index.js";
|
|
25
|
+
export { Radio } from "./Radio/index.js";
|
|
26
|
+
export { RadioGroup } from "./RadioGroup/index.js";
|
|
27
|
+
export { ScrollArea } from "./ScrollArea/index.js";
|
|
28
|
+
export { Select } from "./Select/index.js";
|
|
29
|
+
export { Separator } from "./Separator/index.js";
|
|
30
|
+
export { Slider } from "./Slider/index.js";
|
|
31
|
+
export { Switch } from "./Switch/index.js";
|
|
32
|
+
export { Tabs } from "./Tabs/index.js";
|
|
33
|
+
export { Toggle } from "./Toggle/index.js";
|
|
34
|
+
export { ToggleGroup } from "./ToggleGroup/index.js";
|
|
35
|
+
export { Toolbar } from "./Toolbar/index.js";
|
|
36
|
+
export { Tooltip } from "./Tooltip/index.js";
|
package/package.json
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/site-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Pure UI components for the Wix site builder",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"files": [
|
|
8
|
-
"dist"
|
|
8
|
+
"dist",
|
|
9
|
+
"!dist/statics/**"
|
|
9
10
|
],
|
|
10
11
|
"exports": {
|
|
11
12
|
".": {
|
|
@@ -19,12 +20,16 @@
|
|
|
19
20
|
}
|
|
20
21
|
},
|
|
21
22
|
"scripts": {
|
|
22
|
-
"build": "rslib build",
|
|
23
|
-
"
|
|
23
|
+
"build": "rslib build && yarn build:docs",
|
|
24
|
+
"build:docs": "yarn build-storybook && janet-build",
|
|
25
|
+
"test": "rstest --passWithNoTests",
|
|
24
26
|
"tsc": "tsc -b ./tsconfig.json --force",
|
|
25
|
-
"clean": "rm -rf dist"
|
|
27
|
+
"clean": "rm -rf dist",
|
|
28
|
+
"storybook": "storybook dev -p 6006",
|
|
29
|
+
"build-storybook": "NODE_OPTIONS=--max-old-space-size=8192 storybook build"
|
|
26
30
|
},
|
|
27
31
|
"dependencies": {
|
|
32
|
+
"@base-ui/react": "^1.5.0",
|
|
28
33
|
"clsx": "2.0.0"
|
|
29
34
|
},
|
|
30
35
|
"peerDependencies": {
|
|
@@ -36,13 +41,21 @@
|
|
|
36
41
|
"@rslib/core": "^0.21.5",
|
|
37
42
|
"@rstest/adapter-rslib": "^0.10.0",
|
|
38
43
|
"@rstest/core": "^0.10.0",
|
|
44
|
+
"@storybook/addon-docs": "^9.1.19",
|
|
45
|
+
"@storybook/react": "^9.1.19",
|
|
46
|
+
"@storybook/react-vite": "^9.1.19",
|
|
39
47
|
"@testing-library/jest-dom": "^6.4.2",
|
|
40
48
|
"@testing-library/react": "^14.1.2",
|
|
41
49
|
"@types/react": "^18.2.42",
|
|
42
50
|
"@types/react-dom": "^18.2.17",
|
|
51
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
52
|
+
"@wix/janet-build": "^1.0.10",
|
|
53
|
+
"eslint-plugin-storybook": "^9.1.19",
|
|
43
54
|
"jsdom": "^24.0.0",
|
|
44
55
|
"react": "^18.2.0",
|
|
45
56
|
"react-dom": "^18.2.0",
|
|
57
|
+
"remark-gfm": "^4.0.0",
|
|
58
|
+
"storybook": "^9.1.19",
|
|
46
59
|
"typescript": "~5.0.4"
|
|
47
60
|
},
|
|
48
61
|
"wix": {
|
|
@@ -50,14 +63,20 @@
|
|
|
50
63
|
"groupId": "com.wixpress.npm",
|
|
51
64
|
"artifactId": "site-ui",
|
|
52
65
|
"targets": {
|
|
53
|
-
"static":
|
|
66
|
+
"static": true,
|
|
54
67
|
"docker": false
|
|
55
|
-
}
|
|
68
|
+
},
|
|
69
|
+
"previewUrls": [
|
|
70
|
+
{
|
|
71
|
+
"title": "Storybook",
|
|
72
|
+
"url": "https://bo.wix.com/pages/site-ui/"
|
|
73
|
+
}
|
|
74
|
+
]
|
|
56
75
|
}
|
|
57
76
|
},
|
|
58
77
|
"publishConfig": {
|
|
59
78
|
"registry": "https://registry.npmjs.org/",
|
|
60
79
|
"access": "public"
|
|
61
80
|
},
|
|
62
|
-
"falconPackageHash": "
|
|
81
|
+
"falconPackageHash": "60800026bbd089931a47610fd2471f8c1dba345071e2b5c7fa58afe1"
|
|
63
82
|
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
import { ReactNode } from 'react';
|
|
4
|
-
|
|
5
|
-
declare const TestButton: FC<TestButtonProps>;
|
|
6
|
-
export { TestButton }
|
|
7
|
-
export default TestButton;
|
|
8
|
-
|
|
9
|
-
export declare interface TestButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
10
|
-
children: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export { }
|
package/dist/TestButton/index.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
const TestButton_module = {
|
|
5
|
-
button: "button-TLcM5b"
|
|
6
|
-
};
|
|
7
|
-
const TestButton = ({ children, className, ...rest })=>/*#__PURE__*/ jsx("button", {
|
|
8
|
-
className: clsx(TestButton_module.button, className),
|
|
9
|
-
...rest,
|
|
10
|
-
children: children
|
|
11
|
-
});
|
|
12
|
-
const TestButton_TestButton = TestButton;
|
|
13
|
-
export default TestButton_TestButton;
|
|
14
|
-
export { TestButton };
|