@wix/site-ui 1.0.0 → 1.2.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 (112) 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 -26
  111. package/package.json +15 -10
  112. package/dist/index.css +0 -8
package/dist/index.js CHANGED
@@ -1,26 +1,36 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import './index.css';function r(e) {
3
- var t, f, n = "";
4
- if ("string" == typeof e || "number" == typeof e) n += e;
5
- else if ("object" == typeof e) if (Array.isArray(e)) for (t = 0; t < e.length; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
6
- else for (t in e) e[t] && (n && (n += " "), n += t);
7
- return n;
8
- }
9
- function clsx() {
10
- for (var e, t, f = 0, n = ""; f < arguments.length; ) (e = arguments[f++]) && (t = r(e)) && (n && (n += " "), n += t);
11
- return n;
12
- }
13
- const button = "button__AkdHL";
14
- const styles = {
15
- button
16
- };
17
- const TestButton = ({
18
- children,
19
- className,
20
- ...rest
21
- }) => {
22
- return /* @__PURE__ */ jsx("button", { className: clsx(styles.button, className), ...rest, children });
23
- };
24
- export {
25
- TestButton
26
- };
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/site-ui",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "Pure UI components for the Wix site builder",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -11,15 +11,21 @@
11
11
  ".": {
12
12
  "types": "./dist/index.d.ts",
13
13
  "import": "./dist/index.js"
14
+ },
15
+ "./*.css": "./dist/*/index.css",
16
+ "./*": {
17
+ "types": "./dist/*/index.d.ts",
18
+ "import": "./dist/*/index.js"
14
19
  }
15
20
  },
16
21
  "scripts": {
17
- "build": "vite build",
18
- "test": "vitest",
22
+ "build": "rslib build",
23
+ "test": "rstest",
19
24
  "tsc": "tsc -b ./tsconfig.json --force",
20
25
  "clean": "rm -rf dist"
21
26
  },
22
27
  "dependencies": {
28
+ "@base-ui/react": "^1.5.0",
23
29
  "clsx": "2.0.0"
24
30
  },
25
31
  "peerDependencies": {
@@ -27,19 +33,18 @@
27
33
  "react-dom": "^18.2.0"
28
34
  },
29
35
  "devDependencies": {
36
+ "@rsbuild/plugin-react": "^2.0.0",
37
+ "@rslib/core": "^0.21.5",
38
+ "@rstest/adapter-rslib": "^0.10.0",
39
+ "@rstest/core": "^0.10.0",
30
40
  "@testing-library/jest-dom": "^6.4.2",
31
41
  "@testing-library/react": "^14.1.2",
32
42
  "@types/react": "^18.2.42",
33
43
  "@types/react-dom": "^18.2.17",
34
- "@vitejs/plugin-react": "^4.3.4",
35
44
  "jsdom": "^24.0.0",
36
45
  "react": "^18.2.0",
37
46
  "react-dom": "^18.2.0",
38
- "typescript": "~5.0.4",
39
- "vite": "^6.4.2",
40
- "vite-plugin-dts": "^4.5.1",
41
- "vite-plugin-lib-inject-css": "^2.2.2",
42
- "vitest": "^3.2.4"
47
+ "typescript": "~5.0.4"
43
48
  },
44
49
  "wix": {
45
50
  "artifact": {
@@ -55,5 +60,5 @@
55
60
  "registry": "https://registry.npmjs.org/",
56
61
  "access": "public"
57
62
  },
58
- "falconPackageHash": "4ec68b2c0fe399b7a30f720c8e4d3b9072b8c89ef7c5cef27aef62af"
63
+ "falconPackageHash": "7822be3db34e89458a2c03d10c73af0f5f31f46463a7adf3471d0687"
59
64
  }
package/dist/index.css DELETED
@@ -1,8 +0,0 @@
1
- .button__AkdHL {
2
- background-color: red;
3
- color: white;
4
- padding: 8px 16px;
5
- border: none;
6
- border-radius: 4px;
7
- cursor: pointer;
8
- }