@uniformdev/design-system 20.12.1-alpha.23 → 20.12.1-alpha.26
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 +16 -6
- package/dist/index.js +16 -6
- 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
|
}
|
|
@@ -8909,6 +8915,10 @@ var Tile = css63`
|
|
|
8909
8915
|
&[aria-disabled='true'],
|
|
8910
8916
|
&:disabled {
|
|
8911
8917
|
pointer-events: none;
|
|
8918
|
+
|
|
8919
|
+
> * {
|
|
8920
|
+
opacity: 0.5;
|
|
8921
|
+
}
|
|
8912
8922
|
}
|
|
8913
8923
|
`;
|
|
8914
8924
|
var LinkTile = css63`
|
|
@@ -15627,8 +15637,8 @@ var SegmentedControl = ({
|
|
|
15627
15637
|
segmentedControlStyles,
|
|
15628
15638
|
orientation === "vertical" ? segmentedControlVerticalStyles : void 0
|
|
15629
15639
|
],
|
|
15630
|
-
...props,
|
|
15631
15640
|
"data-testid": "segmented-control",
|
|
15641
|
+
...props,
|
|
15632
15642
|
children: options.map((option, index) => {
|
|
15633
15643
|
var _a;
|
|
15634
15644
|
if (!option) {
|
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
|
}
|
|
@@ -10739,6 +10745,10 @@ var Tile = import_react96.css`
|
|
|
10739
10745
|
&[aria-disabled='true'],
|
|
10740
10746
|
&:disabled {
|
|
10741
10747
|
pointer-events: none;
|
|
10748
|
+
|
|
10749
|
+
> * {
|
|
10750
|
+
opacity: 0.5;
|
|
10751
|
+
}
|
|
10742
10752
|
}
|
|
10743
10753
|
`;
|
|
10744
10754
|
var LinkTile = import_react96.css`
|
|
@@ -17474,8 +17484,8 @@ var SegmentedControl = ({
|
|
|
17474
17484
|
segmentedControlStyles,
|
|
17475
17485
|
orientation === "vertical" ? segmentedControlVerticalStyles : void 0
|
|
17476
17486
|
],
|
|
17477
|
-
...props,
|
|
17478
17487
|
"data-testid": "segmented-control",
|
|
17488
|
+
...props,
|
|
17479
17489
|
children: options.map((option, index) => {
|
|
17480
17490
|
var _a;
|
|
17481
17491
|
if (!option) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.12.1-alpha.
|
|
3
|
+
"version": "20.12.1-alpha.26+727af74745",
|
|
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.12.1-alpha.
|
|
42
|
-
"@uniformdev/richtext": "^20.12.1-alpha.
|
|
41
|
+
"@uniformdev/canvas": "^20.12.1-alpha.26+727af74745",
|
|
42
|
+
"@uniformdev/richtext": "^20.12.1-alpha.26+727af74745",
|
|
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": "727af74745bafe690997e093f65e0c3d0aef5a45"
|
|
93
95
|
}
|