@uniformdev/design-system 20.13.3-alpha.12 → 20.14.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/esm/index.js +11 -6
- package/dist/index.js +11 -6
- package/package.json +9 -7
package/dist/esm/index.js
CHANGED
|
@@ -7926,7 +7926,7 @@ var DrawerInner = ({
|
|
|
7926
7926
|
instanceKey,
|
|
7927
7927
|
onRequestClose,
|
|
7928
7928
|
leftAligned,
|
|
7929
|
-
width,
|
|
7929
|
+
width = "medium",
|
|
7930
7930
|
testId = "side-dialog"
|
|
7931
7931
|
}) => {
|
|
7932
7932
|
const { registerDrawer, unregisterDrawer, providerId } = useDrawer();
|
|
@@ -8074,9 +8074,13 @@ var DrawerRenderer = ({
|
|
|
8074
8074
|
if (withoutFluidWidth) {
|
|
8075
8075
|
return rendererWidth;
|
|
8076
8076
|
}
|
|
8077
|
-
const drawerWidths = [
|
|
8078
|
-
|
|
8079
|
-
|
|
8077
|
+
const drawerWidths = [
|
|
8078
|
+
rendererWidth,
|
|
8079
|
+
...drawersToRender.map(({ width: width2 }) => {
|
|
8080
|
+
var _a2;
|
|
8081
|
+
return width2 ? (_a2 = drawerWidth[width2]) != null ? _a2 : width2 : null;
|
|
8082
|
+
})
|
|
8083
|
+
].filter((v) => typeof v === "string");
|
|
8080
8084
|
return `max(${drawerWidths.join()})`;
|
|
8081
8085
|
}, [drawersToRender, width, withoutFluidWidth]);
|
|
8082
8086
|
if (drawersToRender.length === 0) {
|
|
@@ -8137,6 +8141,7 @@ var DrawerWrapper = ({
|
|
|
8137
8141
|
{
|
|
8138
8142
|
css: [drawerWrapperStyles, leftAligned ? drawerWrapperLeftAlignedStyles : null],
|
|
8139
8143
|
style: { width: calculatedWidth, minWidth, maxWidth },
|
|
8144
|
+
"data-testid": "drawer-wrapper",
|
|
8140
8145
|
children
|
|
8141
8146
|
}
|
|
8142
8147
|
)
|
|
@@ -8315,7 +8320,7 @@ function Image({
|
|
|
8315
8320
|
if (src === "") {
|
|
8316
8321
|
setLoading(false);
|
|
8317
8322
|
} else {
|
|
8318
|
-
const url = String(src).startsWith("//") ?
|
|
8323
|
+
const url = String(src).startsWith("//") ? `https://${src}` : String(src);
|
|
8319
8324
|
if (!isValidUrl(url, { allowRelative: true, isSecure: true })) {
|
|
8320
8325
|
throw Error(errorText);
|
|
8321
8326
|
}
|
|
@@ -15627,8 +15632,8 @@ var SegmentedControl = ({
|
|
|
15627
15632
|
segmentedControlStyles,
|
|
15628
15633
|
orientation === "vertical" ? segmentedControlVerticalStyles : void 0
|
|
15629
15634
|
],
|
|
15630
|
-
"data-testid": "segmented-control",
|
|
15631
15635
|
...props,
|
|
15636
|
+
"data-testid": "segmented-control",
|
|
15632
15637
|
children: options.map((option, index) => {
|
|
15633
15638
|
var _a;
|
|
15634
15639
|
if (!option) {
|
package/dist/index.js
CHANGED
|
@@ -9717,7 +9717,7 @@ var DrawerInner = ({
|
|
|
9717
9717
|
instanceKey,
|
|
9718
9718
|
onRequestClose,
|
|
9719
9719
|
leftAligned,
|
|
9720
|
-
width,
|
|
9720
|
+
width = "medium",
|
|
9721
9721
|
testId = "side-dialog"
|
|
9722
9722
|
}) => {
|
|
9723
9723
|
const { registerDrawer, unregisterDrawer, providerId } = useDrawer();
|
|
@@ -9870,9 +9870,13 @@ var DrawerRenderer = ({
|
|
|
9870
9870
|
if (withoutFluidWidth) {
|
|
9871
9871
|
return rendererWidth;
|
|
9872
9872
|
}
|
|
9873
|
-
const drawerWidths = [
|
|
9874
|
-
|
|
9875
|
-
|
|
9873
|
+
const drawerWidths = [
|
|
9874
|
+
rendererWidth,
|
|
9875
|
+
...drawersToRender.map(({ width: width2 }) => {
|
|
9876
|
+
var _a2;
|
|
9877
|
+
return width2 ? (_a2 = drawerWidth[width2]) != null ? _a2 : width2 : null;
|
|
9878
|
+
})
|
|
9879
|
+
].filter((v) => typeof v === "string");
|
|
9876
9880
|
return `max(${drawerWidths.join()})`;
|
|
9877
9881
|
}, [drawersToRender, width, withoutFluidWidth]);
|
|
9878
9882
|
if (drawersToRender.length === 0) {
|
|
@@ -9933,6 +9937,7 @@ var DrawerWrapper = ({
|
|
|
9933
9937
|
{
|
|
9934
9938
|
css: [drawerWrapperStyles, leftAligned ? drawerWrapperLeftAlignedStyles : null],
|
|
9935
9939
|
style: { width: calculatedWidth, minWidth, maxWidth },
|
|
9940
|
+
"data-testid": "drawer-wrapper",
|
|
9936
9941
|
children
|
|
9937
9942
|
}
|
|
9938
9943
|
)
|
|
@@ -10123,7 +10128,7 @@ function Image({
|
|
|
10123
10128
|
if (src === "") {
|
|
10124
10129
|
setLoading(false);
|
|
10125
10130
|
} else {
|
|
10126
|
-
const url = String(src).startsWith("//") ?
|
|
10131
|
+
const url = String(src).startsWith("//") ? `https://${src}` : String(src);
|
|
10127
10132
|
if (!isValidUrl(url, { allowRelative: true, isSecure: true })) {
|
|
10128
10133
|
throw Error(errorText);
|
|
10129
10134
|
}
|
|
@@ -17474,8 +17479,8 @@ var SegmentedControl = ({
|
|
|
17474
17479
|
segmentedControlStyles,
|
|
17475
17480
|
orientation === "vertical" ? segmentedControlVerticalStyles : void 0
|
|
17476
17481
|
],
|
|
17477
|
-
"data-testid": "segmented-control",
|
|
17478
17482
|
...props,
|
|
17483
|
+
"data-testid": "segmented-control",
|
|
17479
17484
|
children: options.map((option, index) => {
|
|
17480
17485
|
var _a;
|
|
17481
17486
|
if (!option) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.14.0",
|
|
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.0",
|
|
42
|
+
"@uniformdev/richtext": "^20.14.0",
|
|
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": "958a8fe27da8ec9191a1a09f289f6f7418dd16d6"
|
|
93
95
|
}
|