@uniformdev/design-system 20.13.3-alpha.12 → 20.14.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/esm/index.js +11 -5
- package/dist/index.js +11 -5
- package/package.json +9 -7
package/dist/esm/index.js
CHANGED
|
@@ -6906,6 +6906,7 @@ var counterContainer = (bgColor, hasIcon) => css47`
|
|
|
6906
6906
|
var counterZeroValue = css47`
|
|
6907
6907
|
background: var(--gray-800);
|
|
6908
6908
|
border-radius: var(--rounded-full);
|
|
6909
|
+
display: block;
|
|
6909
6910
|
width: 2px;
|
|
6910
6911
|
height: 2px;
|
|
6911
6912
|
`;
|
|
@@ -7926,7 +7927,7 @@ var DrawerInner = ({
|
|
|
7926
7927
|
instanceKey,
|
|
7927
7928
|
onRequestClose,
|
|
7928
7929
|
leftAligned,
|
|
7929
|
-
width,
|
|
7930
|
+
width = "medium",
|
|
7930
7931
|
testId = "side-dialog"
|
|
7931
7932
|
}) => {
|
|
7932
7933
|
const { registerDrawer, unregisterDrawer, providerId } = useDrawer();
|
|
@@ -8074,9 +8075,13 @@ var DrawerRenderer = ({
|
|
|
8074
8075
|
if (withoutFluidWidth) {
|
|
8075
8076
|
return rendererWidth;
|
|
8076
8077
|
}
|
|
8077
|
-
const drawerWidths = [
|
|
8078
|
-
|
|
8079
|
-
|
|
8078
|
+
const drawerWidths = [
|
|
8079
|
+
rendererWidth,
|
|
8080
|
+
...drawersToRender.map(({ width: width2 }) => {
|
|
8081
|
+
var _a2;
|
|
8082
|
+
return width2 ? (_a2 = drawerWidth[width2]) != null ? _a2 : width2 : null;
|
|
8083
|
+
})
|
|
8084
|
+
].filter((v) => typeof v === "string");
|
|
8080
8085
|
return `max(${drawerWidths.join()})`;
|
|
8081
8086
|
}, [drawersToRender, width, withoutFluidWidth]);
|
|
8082
8087
|
if (drawersToRender.length === 0) {
|
|
@@ -8137,6 +8142,7 @@ var DrawerWrapper = ({
|
|
|
8137
8142
|
{
|
|
8138
8143
|
css: [drawerWrapperStyles, leftAligned ? drawerWrapperLeftAlignedStyles : null],
|
|
8139
8144
|
style: { width: calculatedWidth, minWidth, maxWidth },
|
|
8145
|
+
"data-testid": "drawer-wrapper",
|
|
8140
8146
|
children
|
|
8141
8147
|
}
|
|
8142
8148
|
)
|
|
@@ -8315,7 +8321,7 @@ function Image({
|
|
|
8315
8321
|
if (src === "") {
|
|
8316
8322
|
setLoading(false);
|
|
8317
8323
|
} else {
|
|
8318
|
-
const url = String(src).startsWith("//") ?
|
|
8324
|
+
const url = String(src).startsWith("//") ? `https://${src}` : String(src);
|
|
8319
8325
|
if (!isValidUrl(url, { allowRelative: true, isSecure: true })) {
|
|
8320
8326
|
throw Error(errorText);
|
|
8321
8327
|
}
|
package/dist/index.js
CHANGED
|
@@ -8688,6 +8688,7 @@ var counterContainer = (bgColor, hasIcon) => import_react69.css`
|
|
|
8688
8688
|
var counterZeroValue = import_react69.css`
|
|
8689
8689
|
background: var(--gray-800);
|
|
8690
8690
|
border-radius: var(--rounded-full);
|
|
8691
|
+
display: block;
|
|
8691
8692
|
width: 2px;
|
|
8692
8693
|
height: 2px;
|
|
8693
8694
|
`;
|
|
@@ -9717,7 +9718,7 @@ var DrawerInner = ({
|
|
|
9717
9718
|
instanceKey,
|
|
9718
9719
|
onRequestClose,
|
|
9719
9720
|
leftAligned,
|
|
9720
|
-
width,
|
|
9721
|
+
width = "medium",
|
|
9721
9722
|
testId = "side-dialog"
|
|
9722
9723
|
}) => {
|
|
9723
9724
|
const { registerDrawer, unregisterDrawer, providerId } = useDrawer();
|
|
@@ -9870,9 +9871,13 @@ var DrawerRenderer = ({
|
|
|
9870
9871
|
if (withoutFluidWidth) {
|
|
9871
9872
|
return rendererWidth;
|
|
9872
9873
|
}
|
|
9873
|
-
const drawerWidths = [
|
|
9874
|
-
|
|
9875
|
-
|
|
9874
|
+
const drawerWidths = [
|
|
9875
|
+
rendererWidth,
|
|
9876
|
+
...drawersToRender.map(({ width: width2 }) => {
|
|
9877
|
+
var _a2;
|
|
9878
|
+
return width2 ? (_a2 = drawerWidth[width2]) != null ? _a2 : width2 : null;
|
|
9879
|
+
})
|
|
9880
|
+
].filter((v) => typeof v === "string");
|
|
9876
9881
|
return `max(${drawerWidths.join()})`;
|
|
9877
9882
|
}, [drawersToRender, width, withoutFluidWidth]);
|
|
9878
9883
|
if (drawersToRender.length === 0) {
|
|
@@ -9933,6 +9938,7 @@ var DrawerWrapper = ({
|
|
|
9933
9938
|
{
|
|
9934
9939
|
css: [drawerWrapperStyles, leftAligned ? drawerWrapperLeftAlignedStyles : null],
|
|
9935
9940
|
style: { width: calculatedWidth, minWidth, maxWidth },
|
|
9941
|
+
"data-testid": "drawer-wrapper",
|
|
9936
9942
|
children
|
|
9937
9943
|
}
|
|
9938
9944
|
)
|
|
@@ -10123,7 +10129,7 @@ function Image({
|
|
|
10123
10129
|
if (src === "") {
|
|
10124
10130
|
setLoading(false);
|
|
10125
10131
|
} else {
|
|
10126
|
-
const url = String(src).startsWith("//") ?
|
|
10132
|
+
const url = String(src).startsWith("//") ? `https://${src}` : String(src);
|
|
10127
10133
|
if (!isValidUrl(url, { allowRelative: true, isSecure: true })) {
|
|
10128
10134
|
throw Error(errorText);
|
|
10129
10135
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.14.1",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"exports": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"build": "tsup",
|
|
24
24
|
"dev": "tsup --watch",
|
|
25
25
|
"clean": "rimraf dist",
|
|
26
|
-
"test": "
|
|
27
|
-
"test:coverage": "
|
|
26
|
+
"test": "vitest",
|
|
27
|
+
"test:coverage": "vitest run --coverage",
|
|
28
28
|
"lint": "eslint \"src/**/*.{js,ts,tsx}\"",
|
|
29
29
|
"format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
|
|
30
30
|
"create:component": "hygen component with-prompt",
|
|
@@ -38,15 +38,17 @@
|
|
|
38
38
|
"@storybook/theming": "^8.3.3",
|
|
39
39
|
"@types/react": "18.3.11",
|
|
40
40
|
"@types/react-dom": "18.3.1",
|
|
41
|
-
"@uniformdev/canvas": "^20.
|
|
42
|
-
"@uniformdev/richtext": "^20.
|
|
41
|
+
"@uniformdev/canvas": "^20.14.1",
|
|
42
|
+
"@uniformdev/richtext": "^20.14.1",
|
|
43
|
+
"@vitest/coverage-v8": "^3.1.2",
|
|
43
44
|
"autoprefixer": "10.4.21",
|
|
44
45
|
"hygen": "6.2.11",
|
|
45
46
|
"postcss": "8.5.3",
|
|
46
47
|
"react": "18.3.1",
|
|
47
48
|
"react-dom": "18.3.1",
|
|
48
49
|
"react-select-event": "^5.5.1",
|
|
49
|
-
"tsup": "8.3.0"
|
|
50
|
+
"tsup": "8.3.0",
|
|
51
|
+
"vitest": "^3.1.2"
|
|
50
52
|
},
|
|
51
53
|
"dependencies": {
|
|
52
54
|
"@ariakit/react": "^0.4.15",
|
|
@@ -89,5 +91,5 @@
|
|
|
89
91
|
"publishConfig": {
|
|
90
92
|
"access": "public"
|
|
91
93
|
},
|
|
92
|
-
"gitHead": "
|
|
94
|
+
"gitHead": "1cf777c56f2e7f08514fd44b40700579c48a9c71"
|
|
93
95
|
}
|