@eightshift/ui-components 4.0.0 → 5.0.1
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/{Button-CvzGKGCo.js → Button-wERNNG0T.js} +4 -4
- package/dist/{Collection-ddre1L5v.js → Collection-CKsHTyhc.js} +129 -98
- package/dist/{Color-MV5kBVXr.js → Color-BhgbJF5x.js} +1 -1
- package/dist/{ColorSwatch-BqQfVu4L.js → ColorSwatch-Bcn6oRSg.js} +4 -4
- package/dist/{ComboBox-jQ-dk95U.js → ComboBox-D1LPUwWP.js} +19 -19
- package/dist/{Dialog-DX1aiYyE.js → Dialog-D190gMbE.js} +28 -30
- package/dist/{FieldError-52GVSGgC.js → FieldError-DeUh5Wkw.js} +2 -2
- package/dist/{FocusScope-Cri5BFRz.js → FocusScope-C-plSxbS.js} +2 -2
- package/dist/{Group-_emcIVxI.js → Group-C5iZpSAM.js} +3 -3
- package/dist/{Heading-B2153VXe.js → Heading-D-Pboe4p.js} +1 -1
- package/dist/{Input-BxpFEIXV.js → Input--mF4XVE1.js} +6 -6
- package/dist/{Label-icmbmNdI.js → Label-Fp6AwSRn.js} +1 -1
- package/dist/{List-BYNHbol3.js → List-CZMUbkFU.js} +1 -1
- package/dist/{ListBox-mJ4nQaL7.js → ListBox-4oW9kh3R.js} +13 -12
- package/dist/{OverlayArrow-BB0CWwdq.js → OverlayArrow-BpB9uB_I.js} +19 -11
- package/dist/{Select-aab027f3.esm--EmXjiL3.js → Select-aab027f3.esm-BKIJGje-.js} +1 -1
- package/dist/{Separator-D9moUgP8.js → Separator-B88tj5YD.js} +6 -5
- package/dist/{Slider-rz2XRMGm.js → Slider-CyJzC1bp.js} +11 -11
- package/dist/{Text-DVSAPY-K.js → Text-DRpwWot2.js} +1 -1
- package/dist/{VisuallyHidden-f9zX67a_.js → VisuallyHidden-DsKYcRQ_.js} +2 -2
- package/dist/assets/index.css +21 -1
- package/dist/assets/style-admin.css +891 -282
- package/dist/assets/style-editor.css +891 -282
- package/dist/assets/style.css +891 -282
- package/dist/assets/wp-font-enhancements.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +91 -13
- package/dist/components/base-control/base-control.js +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/checkbox/checkbox.js +9 -9
- package/dist/components/color-pickers/color-swatch.js +8 -7
- package/dist/components/color-pickers/gradient-editor.js +1 -1
- package/dist/components/color-pickers/solid-color-picker.js +16 -16
- package/dist/components/component-toggle/component-toggle.js +5 -2
- package/dist/components/draggable/draggable.js +2049 -1277
- package/dist/components/draggable-list/draggable-list.js +1 -1
- package/dist/components/expandable/expandable.js +7 -7
- package/dist/components/input-field/input-field.js +7 -7
- package/dist/components/link-input/link-input.js +16 -18
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +5 -5
- package/dist/components/number-picker/number-picker.js +9 -9
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.js +13 -13
- package/dist/components/repeater/repeater.js +1 -1
- package/dist/components/responsive/mini-responsive.js +3 -3
- package/dist/components/responsive/responsive-legacy.js +3 -3
- package/dist/components/responsive/responsive.js +6 -3
- package/dist/components/select/async-multi-select.js +3 -3
- package/dist/components/select/async-single-select.js +2 -2
- package/dist/components/select/custom-select-default-components.js +1 -1
- package/dist/components/select/multi-select-components.js +1 -1
- package/dist/components/select/multi-select.js +3 -3
- package/dist/components/select/react-select-component-wrappers.js +1 -1
- package/dist/components/select/single-select.js +2 -2
- package/dist/components/select/v2/async-select.js +8 -8
- package/dist/components/select/v2/shared.js +2 -2
- package/dist/components/select/v2/single-select.js +19 -18
- package/dist/components/slider/column-config-slider.js +2 -2
- package/dist/components/slider/slider.js +6 -4
- package/dist/components/slider/utils.js +11 -1
- package/dist/components/tabs/tabs.js +16 -14
- package/dist/components/toggle/switch.js +8 -7
- package/dist/components/toggle/toggle.js +1 -1
- package/dist/components/toggle-button/toggle-button.js +27 -8
- package/dist/components/tooltip/tooltip.js +6 -4
- package/dist/{context-D2KUdwNL.js → context-BYWrbm1z.js} +1 -1
- package/dist/{index-641ee5b8.esm-BPz6U6sJ.js → index-641ee5b8.esm-BPU8rMZr.js} +5 -5
- package/dist/index-CFozsmNS.js +28321 -0
- package/dist/{index-BKGQ6jGS.js → index-wl5606BX.js} +1 -1
- package/dist/{multi-select-components-BlZZoNXC.js → multi-select-components-Sp-JEFEX.js} +1 -1
- package/dist/{react-select-async.esm-CwUoej5h.js → react-select-async.esm-D937XTWW.js} +3 -3
- package/dist/{react-select.esm-DcwYxadV.js → react-select.esm-Ciai3aKf.js} +3 -3
- package/dist/{textSelection-0UUS8Yfg.js → textSelection-CCcyjiRP.js} +1 -1
- package/dist/{useButton-BpOKDWEN.js → useButton-BOHxkGQF.js} +6 -27
- package/dist/{useEvent-B0b-6KBr.js → useEvent-D5o_CqDH.js} +1 -1
- package/dist/{useFocusRing-CV5l3lf6.js → useFocusRing-nMG2uzxS.js} +5 -5
- package/dist/{useFormReset-C5OggHsw.js → useFormReset-DlmRL87g.js} +1 -1
- package/dist/{useFormValidation-DhDNSjws.js → useFormValidation-D0_aaK-e.js} +2 -2
- package/dist/{useHover-DwDr6ozG.js → useHover-VO5tcIli.js} +58 -68
- package/dist/{useLabel-D7HkNEHT.js → useLabel-BKH4fVA4.js} +3 -3
- package/dist/{useLabels-D8cxd1Z8.js → useLabels-ntF3rFY0.js} +1 -1
- package/dist/{useListState-UGlN5-7P.js → useListState-Cq2Nvr-v.js} +1 -1
- package/dist/{useLocalizedStringFormatter-CFP1YZWQ.js → useLocalizedStringFormatter-CGzwx1a0.js} +1 -1
- package/dist/{useNumberField-CEAj7Mrj.js → useNumberField-C9dmERhP.js} +14 -11
- package/dist/{useNumberFormatter-321rAb4J.js → useNumberFormatter-MrRLgvhj.js} +1 -1
- package/dist/{usePress-DNW8qpY6.js → usePress-DjNo5790.js} +36 -23
- package/dist/{useSingleSelectListState-DC0wWTUM.js → useSingleSelectListState--r3AAhRj.js} +2 -2
- package/dist/{useToggle-BrpmSOB-.js → useToggle-CQaXLe-O.js} +5 -5
- package/dist/{useToggleState-CmQX3SoX.js → useToggleState-C3DLdez5.js} +1 -1
- package/dist/utilities/es-dash.js +6 -0
- package/dist/{utils-DkCSC521.js → utils-B94NDG0v.js} +1 -1
- package/package.json +101 -101
- package/dist/index-BYHhzLf-.js +0 -444
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-
|
|
1
|
+
import { b as $458b0a5536c1a7cf$export$40bfa8c7b0832715 } from "./useHover-VO5tcIli.js";
|
|
2
2
|
function $3017fa7ffdddec74$export$8042c6c013fd5226(props = {}) {
|
|
3
3
|
let { isReadOnly } = props;
|
|
4
4
|
let [isSelected, setSelected] = $458b0a5536c1a7cf$export$40bfa8c7b0832715(props.isSelected, props.defaultSelected || false, props.onChange);
|
|
@@ -189,6 +189,9 @@ const upperFirst = (input) => {
|
|
|
189
189
|
} else if (input === false) {
|
|
190
190
|
return "False";
|
|
191
191
|
}
|
|
192
|
+
if (typeof input !== "string") {
|
|
193
|
+
input = String(input);
|
|
194
|
+
}
|
|
192
195
|
if (input.length < 2) {
|
|
193
196
|
return input.toUpperCase();
|
|
194
197
|
}
|
|
@@ -215,6 +218,9 @@ const lowerFirst = (input) => {
|
|
|
215
218
|
} else if (input === false) {
|
|
216
219
|
return "false";
|
|
217
220
|
}
|
|
221
|
+
if (typeof input !== "string") {
|
|
222
|
+
input = String(input);
|
|
223
|
+
}
|
|
218
224
|
if ((input == null ? void 0 : input.length) < 2) {
|
|
219
225
|
return input.toLowerCase();
|
|
220
226
|
}
|
|
@@ -70,7 +70,7 @@ function $b5e257d569688ac6$var$useCounter(isDisabled = false) {
|
|
|
70
70
|
}
|
|
71
71
|
function $b5e257d569688ac6$var$useLegacySSRSafeId(defaultId) {
|
|
72
72
|
let ctx = useContext($b5e257d569688ac6$var$SSRContext);
|
|
73
|
-
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM) console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
73
|
+
if (ctx === $b5e257d569688ac6$var$defaultContext && !$b5e257d569688ac6$var$canUseDOM && process.env.NODE_ENV !== "production") console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");
|
|
74
74
|
let counter = $b5e257d569688ac6$var$useCounter(!!defaultId);
|
|
75
75
|
let prefix = ctx === $b5e257d569688ac6$var$defaultContext && process.env.NODE_ENV === "test" ? "react-aria" : `react-aria${ctx.prefix}`;
|
|
76
76
|
return defaultId || `${prefix}-${counter}`;
|
package/package.json
CHANGED
|
@@ -1,102 +1,102 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
2
|
+
"name": "@eightshift/ui-components",
|
|
3
|
+
"version": "5.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.js",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/infinum/eightshift-ui-components.git"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"sideEffects": [
|
|
15
|
+
"./dist/assets/*.css"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"require": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./icons": "./dist/icons/index.js",
|
|
23
|
+
"./utilities": "./dist/utilities/index.js",
|
|
24
|
+
"./dist/assets/style.css": "./dist/assets/style.css",
|
|
25
|
+
"./dist/assets/style-editor.css": "./dist/assets/style-editor.css",
|
|
26
|
+
"./dist/assets/style-admin.css": "./dist/assets/style-admin.css",
|
|
27
|
+
"./dist/assets/wp-font-enhancements.css": "./dist/assets/wp-font-enhancements.css",
|
|
28
|
+
"./dist/assets/wp-ui-enhancements.css": "./dist/assets/wp-ui-enhancements.css",
|
|
29
|
+
"./styles": "./dist/assets/style.css",
|
|
30
|
+
"./wp-font-enhancements": "./dist/assets/wp-font-enhancements.css",
|
|
31
|
+
"./wp-ui-enhancements": "./dist/assets/wp-ui-enhancements.css",
|
|
32
|
+
"./wp-overrides": "./dist/assets/wp.css"
|
|
33
|
+
},
|
|
34
|
+
"scripts": {
|
|
35
|
+
"dev": "vite",
|
|
36
|
+
"start": "vite",
|
|
37
|
+
"build": "vite build",
|
|
38
|
+
"lint": "npx eslint",
|
|
39
|
+
"preview": "vite preview"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"react": "^18.3.1",
|
|
43
|
+
"react-dom": "^18.3.1"
|
|
44
|
+
},
|
|
45
|
+
"devDependencies": {
|
|
46
|
+
"@adobe/react-spectrum": "^3.41.0",
|
|
47
|
+
"@dnd-kit/abstract": "^0.1.12",
|
|
48
|
+
"@dnd-kit/core": "^6.3.1",
|
|
49
|
+
"@dnd-kit/dom": "^0.1.12",
|
|
50
|
+
"@dnd-kit/helpers": "^0.1.12",
|
|
51
|
+
"@dnd-kit/modifiers": "^9.0.0",
|
|
52
|
+
"@dnd-kit/react": "^0.1.12",
|
|
53
|
+
"@dnd-kit/sortable": "^10.0.0",
|
|
54
|
+
"@dnd-kit/utilities": "^3.2.2",
|
|
55
|
+
"@eslint/compat": "^1.2.9",
|
|
56
|
+
"@react-stately/collections": "^3.12.3",
|
|
57
|
+
"@stylistic/eslint-plugin-js": "^4.2.0",
|
|
58
|
+
"@tailwindcss/vite": "^4.1.5",
|
|
59
|
+
"@types/react": "^18.3.21",
|
|
60
|
+
"@types/react-dom": "^18.3.7",
|
|
61
|
+
"@vitejs/plugin-react-swc": "^3.9.0",
|
|
62
|
+
"@wordpress/i18n": "^5.23.0",
|
|
63
|
+
"autoprefixer": "^10.4.21",
|
|
64
|
+
"class-variance-authority": "^0.7.1",
|
|
65
|
+
"clsx": "^2.1.1",
|
|
66
|
+
"css-gradient-parser": "^0.0.16",
|
|
67
|
+
"eslint": "^9.26.0",
|
|
68
|
+
"eslint-config-prettier": "^10.1.3",
|
|
69
|
+
"eslint-plugin-jsdoc": "^50.6.11",
|
|
70
|
+
"eslint-plugin-prettier": "^5.4.0",
|
|
71
|
+
"glob": "^11.0.2",
|
|
72
|
+
"globals": "^16.1.0",
|
|
73
|
+
"just-camel-case": "^6.2.0",
|
|
74
|
+
"just-debounce-it": "^3.2.0",
|
|
75
|
+
"just-has": "^2.3.0",
|
|
76
|
+
"just-is-empty": "^3.4.1",
|
|
77
|
+
"just-kebab-case": "^4.2.0",
|
|
78
|
+
"just-throttle": "^4.2.0",
|
|
79
|
+
"lightningcss": "^1.29.3",
|
|
80
|
+
"postcss": "^8.5.3",
|
|
81
|
+
"prettier": "^3.5.3",
|
|
82
|
+
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
83
|
+
"react": "^18.3.1",
|
|
84
|
+
"react-aria": "^3.39.0",
|
|
85
|
+
"react-aria-components": "^1.8.0",
|
|
86
|
+
"react-dom": "^18.3.1",
|
|
87
|
+
"react-jsx-parser": "^2.4.0",
|
|
88
|
+
"react-movable": "^3.4.1",
|
|
89
|
+
"react-select": "^5.10.1",
|
|
90
|
+
"react-stately": "^3.37.0",
|
|
91
|
+
"svg-to-jsx-string": "^0.1.1",
|
|
92
|
+
"tailwindcss": "^4.1.5",
|
|
93
|
+
"tailwindcss-motion": "^1.1.0",
|
|
94
|
+
"tailwindcss-react-aria-components": "^2.0.0",
|
|
95
|
+
"vite": "^6.3.5",
|
|
96
|
+
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
97
|
+
},
|
|
98
|
+
"dependencies": {
|
|
99
|
+
"@fontsource-variable/geist": "^5.2.6",
|
|
100
|
+
"@fontsource-variable/geist-mono": "^5.2.6"
|
|
101
|
+
}
|
|
102
|
+
}
|