@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.
Files changed (114) hide show
  1. package/dist/Accordion/index.css +2 -0
  2. package/dist/Accordion/index.d.ts +34 -0
  3. package/dist/Accordion/index.js +39 -0
  4. package/dist/AlertDialog/index.css +2 -0
  5. package/dist/AlertDialog/index.d.ts +47 -0
  6. package/dist/AlertDialog/index.js +55 -0
  7. package/dist/Autocomplete/index.css +2 -0
  8. package/dist/Autocomplete/index.d.ts +85 -0
  9. package/dist/Autocomplete/index.js +110 -0
  10. package/dist/Avatar/index.css +2 -0
  11. package/dist/Avatar/index.d.ts +21 -0
  12. package/dist/Avatar/index.js +26 -0
  13. package/dist/Button/index.css +2 -0
  14. package/dist/Button/index.d.ts +11 -0
  15. package/dist/Button/index.js +11 -0
  16. package/dist/Checkbox/index.css +2 -0
  17. package/dist/Checkbox/index.d.ts +17 -0
  18. package/dist/Checkbox/index.js +20 -0
  19. package/dist/CheckboxGroup/index.css +2 -0
  20. package/dist/CheckboxGroup/index.d.ts +11 -0
  21. package/dist/CheckboxGroup/index.js +11 -0
  22. package/dist/Collapsible/index.css +2 -0
  23. package/dist/Collapsible/index.d.ts +21 -0
  24. package/dist/Collapsible/index.js +26 -0
  25. package/dist/Combobox/index.css +2 -0
  26. package/dist/Combobox/index.d.ts +101 -0
  27. package/dist/Combobox/index.js +139 -0
  28. package/dist/ContextMenu/index.css +2 -0
  29. package/dist/ContextMenu/index.d.ts +76 -0
  30. package/dist/ContextMenu/index.js +102 -0
  31. package/dist/Dialog/index.css +2 -0
  32. package/dist/Dialog/index.d.ts +47 -0
  33. package/dist/Dialog/index.js +55 -0
  34. package/dist/Drawer/index.css +2 -0
  35. package/dist/Drawer/index.d.ts +60 -0
  36. package/dist/Drawer/index.js +83 -0
  37. package/dist/Field/index.css +2 -0
  38. package/dist/Field/index.d.ts +35 -0
  39. package/dist/Field/index.js +45 -0
  40. package/dist/Fieldset/index.css +2 -0
  41. package/dist/Fieldset/index.d.ts +17 -0
  42. package/dist/Fieldset/index.js +20 -0
  43. package/dist/Form/index.css +2 -0
  44. package/dist/Form/index.d.ts +13 -0
  45. package/dist/Form/index.js +11 -0
  46. package/dist/Input/index.css +2 -0
  47. package/dist/Input/index.d.ts +11 -0
  48. package/dist/Input/index.js +11 -0
  49. package/dist/Menu/index.css +2 -0
  50. package/dist/Menu/index.d.ts +85 -0
  51. package/dist/Menu/index.js +111 -0
  52. package/dist/Menubar/index.css +2 -0
  53. package/dist/Menubar/index.d.ts +11 -0
  54. package/dist/Menubar/index.js +11 -0
  55. package/dist/Meter/index.css +2 -0
  56. package/dist/Meter/index.d.ts +29 -0
  57. package/dist/Meter/index.js +38 -0
  58. package/dist/NavigationMenu/index.css +2 -0
  59. package/dist/NavigationMenu/index.d.ts +64 -0
  60. package/dist/NavigationMenu/index.js +82 -0
  61. package/dist/NumberField/index.css +2 -0
  62. package/dist/NumberField/index.d.ts +37 -0
  63. package/dist/NumberField/index.js +50 -0
  64. package/dist/Popover/index.css +2 -0
  65. package/dist/Popover/index.d.ts +54 -0
  66. package/dist/Popover/index.js +67 -0
  67. package/dist/PreviewCard/index.css +2 -0
  68. package/dist/PreviewCard/index.d.ts +42 -0
  69. package/dist/PreviewCard/index.js +49 -0
  70. package/dist/Progress/index.css +2 -0
  71. package/dist/Progress/index.d.ts +29 -0
  72. package/dist/Progress/index.js +38 -0
  73. package/dist/Radio/index.css +2 -0
  74. package/dist/Radio/index.d.ts +22 -0
  75. package/dist/Radio/index.js +21 -0
  76. package/dist/RadioGroup/index.css +2 -0
  77. package/dist/RadioGroup/index.d.ts +11 -0
  78. package/dist/RadioGroup/index.js +11 -0
  79. package/dist/ScrollArea/index.css +2 -0
  80. package/dist/ScrollArea/index.d.ts +33 -0
  81. package/dist/ScrollArea/index.js +44 -0
  82. package/dist/Select/index.css +2 -0
  83. package/dist/Select/index.d.ts +79 -0
  84. package/dist/Select/index.js +107 -0
  85. package/dist/Separator/index.css +2 -0
  86. package/dist/Separator/index.d.ts +11 -0
  87. package/dist/Separator/index.js +11 -0
  88. package/dist/Slider/index.css +2 -0
  89. package/dist/Slider/index.d.ts +42 -0
  90. package/dist/Slider/index.js +51 -0
  91. package/dist/Switch/index.css +2 -0
  92. package/dist/Switch/index.d.ts +17 -0
  93. package/dist/Switch/index.js +20 -0
  94. package/dist/Tabs/index.css +2 -0
  95. package/dist/Tabs/index.d.ts +29 -0
  96. package/dist/Tabs/index.js +38 -0
  97. package/dist/Toggle/index.css +2 -0
  98. package/dist/Toggle/index.d.ts +11 -0
  99. package/dist/Toggle/index.js +11 -0
  100. package/dist/ToggleGroup/index.css +2 -0
  101. package/dist/ToggleGroup/index.d.ts +11 -0
  102. package/dist/ToggleGroup/index.js +11 -0
  103. package/dist/Toolbar/index.css +2 -0
  104. package/dist/Toolbar/index.d.ts +33 -0
  105. package/dist/Toolbar/index.js +44 -0
  106. package/dist/Tooltip/index.css +2 -0
  107. package/dist/Tooltip/index.d.ts +40 -0
  108. package/dist/Tooltip/index.js +44 -0
  109. package/dist/index.d.ts +1059 -7
  110. package/dist/index.js +36 -1
  111. package/package.json +27 -8
  112. package/dist/TestButton/index.css +0 -9
  113. package/dist/TestButton/index.d.ts +0 -13
  114. package/dist/TestButton/index.js +0 -14
package/dist/index.js CHANGED
@@ -1 +1,36 @@
1
- export { TestButton } from "./TestButton/index.js";
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.1.0",
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
- "test": "rstest",
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": false,
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": "a1045f85a0e220711eef3cd0a269314d17013543b598c250b440e049"
81
+ "falconPackageHash": "60800026bbd089931a47610fd2471f8c1dba345071e2b5c7fa58afe1"
63
82
  }
@@ -1,9 +0,0 @@
1
- .button-TLcM5b {
2
- color: #fff;
3
- cursor: pointer;
4
- background-color: red;
5
- border: none;
6
- border-radius: 4px;
7
- padding: 8px 16px;
8
- }
9
-
@@ -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 { }
@@ -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 };