@eightshift/ui-components 5.3.3 → 5.5.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/{Button-npzfSoYo.js → Button-CQ5ZZJ2w.js} +8 -14
- package/dist/{Dialog-CQ8H6Noi.js → Dialog-BMgMUQuN.js} +81 -73
- package/dist/{FocusScope-DJApHXhY.js → FocusScope-B5vxRkHm.js} +1 -1
- package/dist/{Heading-bh1HU5HH.js → Heading-B5aEynOM.js} +1 -1
- package/dist/{Input-ChJaTNa5.js → Input-8yja_IHC.js} +6 -5
- package/dist/{ListBox-D0Stb4wr.js → ListBox-DggfiuO_.js} +28 -16
- package/dist/{OverlayArrow-DivvkAVb.js → OverlayArrow-DraDOoRn.js} +1 -1
- package/dist/{RSPContexts-2lR5GG9p.js → RSPContexts-CJ-HBf0L.js} +8 -4
- package/dist/{SearchField-jVsbJe1O.js → SearchField-DWGdCvnn.js} +24 -18
- package/dist/{Select-ciHB1pub.js → Select-BvggcFOX.js} +204 -68
- package/dist/SelectionIndicator-D7WMzeAW.js +7 -0
- package/dist/{SelectionManager-CabSdgMq.js → SelectionManager-B6-b5NM2.js} +98 -59
- package/dist/{Separator-BPvqJny4.js → Separator-B-xeqOkC.js} +6 -6
- package/dist/SharedElementTransition-fML-zIv6.js +12 -0
- package/dist/{Slider-ChP04COa.js → Slider-DfU6bRtH.js} +4 -4
- package/dist/{VisuallyHidden-X6SggVVO.js → VisuallyHidden-CgnIuZJ2.js} +1 -1
- package/dist/assets/style-admin.css +925 -79
- package/dist/assets/style-editor.css +925 -79
- package/dist/assets/style.css +925 -79
- package/dist/assets/wp-font-enhancements.css +1 -1
- package/dist/assets/wp-ui-enhancements.css +1 -1
- package/dist/components/button/button.js +75 -22
- package/dist/components/checkbox/checkbox.js +14 -10
- package/dist/components/color-pickers/solid-color-picker.js +8 -8
- package/dist/components/expandable/expandable.js +40 -10
- package/dist/components/index.js +4 -0
- package/dist/components/input-field/input-field.js +5 -5
- package/dist/components/link-input/link-input.js +32 -21
- package/dist/components/menu/menu.js +2 -2
- package/dist/components/modal/modal.js +34 -6
- package/dist/components/number-picker/number-picker.js +5 -4
- package/dist/components/options-panel/options-panel.js +1 -1
- package/dist/components/placeholders/file-picker-shell.js +130 -0
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/radio/radio.js +20 -11
- package/dist/components/select/v2/async-multi-select.js +6 -6
- package/dist/components/select/v2/async-select.js +6 -6
- package/dist/components/select/v2/multi-select.js +7 -7
- package/dist/components/select/v2/shared.js +1 -1
- package/dist/components/select/v2/single-select.js +7 -7
- package/dist/components/slider/column-config-slider.js +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/smart-image/smart-image.js +117 -0
- package/dist/components/tabs/tabs.js +16 -10
- package/dist/components/toggle/switch.js +5 -5
- package/dist/components/toggle-button/toggle-button.js +10 -5
- package/dist/components/tooltip/tooltip.js +2 -2
- package/dist/icons/icons.js +10 -0
- package/dist/index.js +4 -0
- package/dist/{textSelection-k0u64dDA.js → textSelection-DbCKqaw8.js} +1 -1
- package/dist/{useButton-Bn4ZT295.js → useButton-v9ngEj50.js} +2 -2
- package/dist/{useDragAndDrop-DVLrIdEn.js → useDragAndDrop-C08ZXv4F.js} +5 -5
- package/dist/{useFilter-C4wo8Iii.js → useFilter-BlkUH1Ma.js} +1 -1
- package/dist/{useFocusRing-CUxgjvAY.js → useFocusRing-Cgm0R4Cf.js} +1 -1
- package/dist/{useFormValidation-CUtZcedF.js → useFormValidation-CeNsUGWK.js} +1 -1
- package/dist/{useHover-LmGemtHE.js → useHover-BRDW3y7-.js} +3 -1
- package/dist/{useListState-Xsk-aOvN.js → useListState-RdLrYsMP.js} +1 -1
- package/dist/{useNumberField-BCjjZWaz.js → useNumberField-D16dDfYF.js} +5 -5
- package/dist/{usePress-CBQIDzpQ.js → usePress-DJskZBH9.js} +4 -2
- package/dist/{useSingleSelectListState-DattSD7d.js → useSingleSelectListState-n0AVMr3Y.js} +2 -2
- package/dist/{useToggle-C8CedY6Z.js → useToggle-DSBDAfdw.js} +2 -2
- package/dist/{useToggleState-CiAradXs.js → useToggleState-CzN79ary.js} +1 -1
- package/dist/utilities/general.js +4142 -0
- package/dist/utilities/index.js +5 -0
- package/package.json +19 -15
- package/dist/context-DCAZLyDS.js +0 -7
package/dist/utilities/index.js
CHANGED
|
@@ -2,14 +2,19 @@ import { arrayMoveMultiple, fixIds } from "./array-helpers.js";
|
|
|
2
2
|
import { camelCase, has, isEmpty, isEqual, isObject, isPlainObject, isString, kebabCase, lowerFirst, pascalCase, snakeCase, upperFirst } from "./es-dash.js";
|
|
3
3
|
import { truncate, truncateEnd, truncateMiddle, unescapeHTML } from "./text-helpers.js";
|
|
4
4
|
import { debounce, throttle } from "./debounce-throttle.js";
|
|
5
|
+
import { analyzeImage, checkTransparency, getFileExtension, isColorDark } from "./general.js";
|
|
5
6
|
import { c } from "../lite-DVmmD_-j.js";
|
|
6
7
|
export {
|
|
8
|
+
analyzeImage,
|
|
7
9
|
arrayMoveMultiple,
|
|
8
10
|
camelCase,
|
|
11
|
+
checkTransparency,
|
|
9
12
|
c as clsx,
|
|
10
13
|
debounce,
|
|
11
14
|
fixIds,
|
|
15
|
+
getFileExtension,
|
|
12
16
|
has,
|
|
17
|
+
isColorDark,
|
|
13
18
|
isEmpty,
|
|
14
19
|
isEqual,
|
|
15
20
|
isObject,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eightshift/ui-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"react-dom": "^18.3.1"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@adobe/react-spectrum": "^3.
|
|
46
|
+
"@adobe/react-spectrum": "^3.45.0",
|
|
47
47
|
"@dnd-kit/abstract": "^0.1.21",
|
|
48
48
|
"@dnd-kit/core": "^6.3.1",
|
|
49
49
|
"@dnd-kit/dom": "^0.1.21",
|
|
@@ -53,20 +53,20 @@
|
|
|
53
53
|
"@dnd-kit/sortable": "^10.0.0",
|
|
54
54
|
"@dnd-kit/utilities": "^3.2.2",
|
|
55
55
|
"@eslint/compat": "^1.4.0",
|
|
56
|
-
"@react-stately/collections": "^3.12.
|
|
56
|
+
"@react-stately/collections": "^3.12.8",
|
|
57
57
|
"@stylistic/eslint-plugin-js": "^4.4.1",
|
|
58
|
-
"@tailwindcss/vite": "^4.1.
|
|
59
|
-
"@types/react": "^18.3.
|
|
58
|
+
"@tailwindcss/vite": "^4.1.14",
|
|
59
|
+
"@types/react": "^18.3.26",
|
|
60
60
|
"@types/react-dom": "^18.3.7",
|
|
61
61
|
"@vitejs/plugin-react-swc": "^4.1.0",
|
|
62
|
-
"@wordpress/i18n": "^6.
|
|
62
|
+
"@wordpress/i18n": "^6.5.0",
|
|
63
63
|
"autoprefixer": "^10.4.21",
|
|
64
64
|
"class-variance-authority": "^0.7.1",
|
|
65
65
|
"clsx": "^2.1.1",
|
|
66
66
|
"css-gradient-parser": "^0.0.18",
|
|
67
|
-
"eslint": "^9.
|
|
67
|
+
"eslint": "^9.37.0",
|
|
68
68
|
"eslint-config-prettier": "^10.1.8",
|
|
69
|
-
"eslint-plugin-jsdoc": "^
|
|
69
|
+
"eslint-plugin-jsdoc": "^61.1.0",
|
|
70
70
|
"eslint-plugin-prettier": "^5.5.4",
|
|
71
71
|
"glob": "^11.0.3",
|
|
72
72
|
"globals": "^16.4.0",
|
|
@@ -76,27 +76,31 @@
|
|
|
76
76
|
"just-is-empty": "^3.4.1",
|
|
77
77
|
"just-kebab-case": "^4.2.0",
|
|
78
78
|
"just-throttle": "^4.2.0",
|
|
79
|
-
"lightningcss": "^1.30.
|
|
79
|
+
"lightningcss": "^1.30.2",
|
|
80
80
|
"postcss": "^8.5.6",
|
|
81
81
|
"prettier": "^3.6.2",
|
|
82
82
|
"prettier-plugin-tailwindcss": "^0.6.14",
|
|
83
83
|
"react": "^18.3.1",
|
|
84
|
-
"react-aria": "^3.
|
|
85
|
-
"react-aria-components": "^1.
|
|
84
|
+
"react-aria": "^3.44.0",
|
|
85
|
+
"react-aria-components": "^1.13.0",
|
|
86
86
|
"react-dom": "^18.3.1",
|
|
87
87
|
"react-jsx-parser": "^2.4.1",
|
|
88
88
|
"react-movable": "^3.4.1",
|
|
89
89
|
"react-select": "^5.10.2",
|
|
90
|
-
"react-stately": "^3.
|
|
90
|
+
"react-stately": "^3.42.0",
|
|
91
91
|
"svg-to-jsx-string": "^0.1.1",
|
|
92
|
-
"tailwindcss": "^4.1.
|
|
92
|
+
"tailwindcss": "^4.1.14",
|
|
93
93
|
"tailwindcss-motion": "^1.1.1",
|
|
94
94
|
"tailwindcss-react-aria-components": "^2.0.1",
|
|
95
|
-
"vite": "^7.1.
|
|
95
|
+
"vite": "^7.1.9",
|
|
96
96
|
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
99
|
"@fontsource-variable/geist": "^5.2.8",
|
|
100
|
-
"@fontsource-variable/geist-mono": "^5.2.7"
|
|
100
|
+
"@fontsource-variable/geist-mono": "^5.2.7",
|
|
101
|
+
"@thi.ng/color": "^5.7.62",
|
|
102
|
+
"@thi.ng/pixel": "^7.5.10",
|
|
103
|
+
"@thi.ng/pixel-analysis": "^2.0.9",
|
|
104
|
+
"@thi.ng/pixel-dominant-colors": "^2.0.14"
|
|
101
105
|
}
|
|
102
106
|
}
|
package/dist/context-DCAZLyDS.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { createContext } from "react";
|
|
2
|
-
const $8e6cc465cc68f603$export$b0d3ecf7112093a7 = /* @__PURE__ */ createContext(null);
|
|
3
|
-
const $8e6cc465cc68f603$export$698f465ec27e93df = /* @__PURE__ */ createContext(null);
|
|
4
|
-
export {
|
|
5
|
-
$8e6cc465cc68f603$export$698f465ec27e93df as $,
|
|
6
|
-
$8e6cc465cc68f603$export$b0d3ecf7112093a7 as a
|
|
7
|
-
};
|