@uniformdev/design-system 19.30.0 → 19.30.1-alpha.5
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 +39 -2
- package/dist/index.js +39 -2
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -15306,6 +15306,13 @@ var linkParameterInput = (withExternalLinkIcon) => css68`
|
|
|
15306
15306
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
15307
15307
|
var(--spacing-base)
|
|
15308
15308
|
);
|
|
15309
|
+
|
|
15310
|
+
&:focus,
|
|
15311
|
+
&:focus-within {
|
|
15312
|
+
&[readonly] {
|
|
15313
|
+
border-color: var(--white);
|
|
15314
|
+
}
|
|
15315
|
+
}
|
|
15309
15316
|
`;
|
|
15310
15317
|
var linkParameterIcon = css68`
|
|
15311
15318
|
align-items: center;
|
|
@@ -17694,7 +17701,7 @@ var segmentedControlItemStyles = css79`
|
|
|
17694
17701
|
var segmentedControlInputStyles = css79`
|
|
17695
17702
|
${accessibleHidden}
|
|
17696
17703
|
`;
|
|
17697
|
-
var segmentedControlLabelStyles = css79`
|
|
17704
|
+
var segmentedControlLabelStyles = (checked, disabled) => css79`
|
|
17698
17705
|
position: relative;
|
|
17699
17706
|
display: flex;
|
|
17700
17707
|
align-items: center;
|
|
@@ -17730,6 +17737,36 @@ var segmentedControlLabelStyles = css79`
|
|
|
17730
17737
|
color: var(--gray-50);
|
|
17731
17738
|
background-color: var(--gray-400);
|
|
17732
17739
|
}
|
|
17740
|
+
|
|
17741
|
+
// Firefox fallback using emotion variables
|
|
17742
|
+
// we can delete this whole block of code and variables in SegmentedControl.tsx
|
|
17743
|
+
// once Firefox supports :has selector
|
|
17744
|
+
@supports not selector(:has(*)) {
|
|
17745
|
+
// equivalent to &:has(:checked:not(:disabled))
|
|
17746
|
+
${checked && !disabled ? `
|
|
17747
|
+
background-color: var(--segmented-control-selected-color);
|
|
17748
|
+
outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
|
|
17749
|
+
box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
|
|
17750
|
+
color: white;
|
|
17751
|
+
-webkit-text-stroke-width: thin;
|
|
17752
|
+
z-index: 0;` : void 0}
|
|
17753
|
+
|
|
17754
|
+
// equivalent to &:hover:not(:has(:disabled, :checked))
|
|
17755
|
+
&:hover {
|
|
17756
|
+
${!checked && !disabled ? `background-color: var(--gray-100);` : void 0}
|
|
17757
|
+
}
|
|
17758
|
+
|
|
17759
|
+
// equivalent to &:has(:disabled)
|
|
17760
|
+
${disabled ? `
|
|
17761
|
+
color: var(--gray-400);
|
|
17762
|
+
cursor: default;` : void 0}
|
|
17763
|
+
|
|
17764
|
+
// equivalent to &:has(:checked:disabled)
|
|
17765
|
+
${checked && disabled && `
|
|
17766
|
+
color: var(--gray-50);
|
|
17767
|
+
background-color: var(--gray-400);
|
|
17768
|
+
`}
|
|
17769
|
+
}
|
|
17733
17770
|
`;
|
|
17734
17771
|
var segmentedControlLabelIconOnlyStyles = css79`
|
|
17735
17772
|
padding-inline: 0.5em;
|
|
@@ -17794,7 +17831,7 @@ var SegmentedControl = ({
|
|
|
17794
17831
|
"label",
|
|
17795
17832
|
{
|
|
17796
17833
|
css: [
|
|
17797
|
-
segmentedControlLabelStyles,
|
|
17834
|
+
segmentedControlLabelStyles(option.value === value, isDisabled),
|
|
17798
17835
|
sizeStyles,
|
|
17799
17836
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
17800
17837
|
],
|
package/dist/index.js
CHANGED
|
@@ -15529,6 +15529,13 @@ var linkParameterInput = (withExternalLinkIcon) => import_react85.css`
|
|
|
15529
15529
|
${withExternalLinkIcon ? "calc(var(--spacing-lg) * 2 + var(--spacing-xs))" : "var(--spacing-xl)"} +
|
|
15530
15530
|
var(--spacing-base)
|
|
15531
15531
|
);
|
|
15532
|
+
|
|
15533
|
+
&:focus,
|
|
15534
|
+
&:focus-within {
|
|
15535
|
+
&[readonly] {
|
|
15536
|
+
border-color: var(--white);
|
|
15537
|
+
}
|
|
15538
|
+
}
|
|
15532
15539
|
`;
|
|
15533
15540
|
var linkParameterIcon = import_react85.css`
|
|
15534
15541
|
align-items: center;
|
|
@@ -17876,7 +17883,7 @@ var segmentedControlItemStyles = import_react110.css`
|
|
|
17876
17883
|
var segmentedControlInputStyles = import_react110.css`
|
|
17877
17884
|
${accessibleHidden}
|
|
17878
17885
|
`;
|
|
17879
|
-
var segmentedControlLabelStyles = import_react110.css`
|
|
17886
|
+
var segmentedControlLabelStyles = (checked, disabled) => import_react110.css`
|
|
17880
17887
|
position: relative;
|
|
17881
17888
|
display: flex;
|
|
17882
17889
|
align-items: center;
|
|
@@ -17912,6 +17919,36 @@ var segmentedControlLabelStyles = import_react110.css`
|
|
|
17912
17919
|
color: var(--gray-50);
|
|
17913
17920
|
background-color: var(--gray-400);
|
|
17914
17921
|
}
|
|
17922
|
+
|
|
17923
|
+
// Firefox fallback using emotion variables
|
|
17924
|
+
// we can delete this whole block of code and variables in SegmentedControl.tsx
|
|
17925
|
+
// once Firefox supports :has selector
|
|
17926
|
+
@supports not selector(:has(*)) {
|
|
17927
|
+
// equivalent to &:has(:checked:not(:disabled))
|
|
17928
|
+
${checked && !disabled ? `
|
|
17929
|
+
background-color: var(--segmented-control-selected-color);
|
|
17930
|
+
outline: var(--segmented-control-border-width) solid var(--segmented-control-selected-color);
|
|
17931
|
+
box-shadow: 0 0.43em 1.7em 0 rgba(0, 0, 0, 0.15);
|
|
17932
|
+
color: white;
|
|
17933
|
+
-webkit-text-stroke-width: thin;
|
|
17934
|
+
z-index: 0;` : void 0}
|
|
17935
|
+
|
|
17936
|
+
// equivalent to &:hover:not(:has(:disabled, :checked))
|
|
17937
|
+
&:hover {
|
|
17938
|
+
${!checked && !disabled ? `background-color: var(--gray-100);` : void 0}
|
|
17939
|
+
}
|
|
17940
|
+
|
|
17941
|
+
// equivalent to &:has(:disabled)
|
|
17942
|
+
${disabled ? `
|
|
17943
|
+
color: var(--gray-400);
|
|
17944
|
+
cursor: default;` : void 0}
|
|
17945
|
+
|
|
17946
|
+
// equivalent to &:has(:checked:disabled)
|
|
17947
|
+
${checked && disabled && `
|
|
17948
|
+
color: var(--gray-50);
|
|
17949
|
+
background-color: var(--gray-400);
|
|
17950
|
+
`}
|
|
17951
|
+
}
|
|
17915
17952
|
`;
|
|
17916
17953
|
var segmentedControlLabelIconOnlyStyles = import_react110.css`
|
|
17917
17954
|
padding-inline: 0.5em;
|
|
@@ -17976,7 +18013,7 @@ var SegmentedControl = ({
|
|
|
17976
18013
|
"label",
|
|
17977
18014
|
{
|
|
17978
18015
|
css: [
|
|
17979
|
-
segmentedControlLabelStyles,
|
|
18016
|
+
segmentedControlLabelStyles(option.value === value, isDisabled),
|
|
17980
18017
|
sizeStyles,
|
|
17981
18018
|
isIconOnly ? segmentedControlLabelIconOnlyStyles : void 0
|
|
17982
18019
|
],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.30.
|
|
3
|
+
"version": "19.30.1-alpha.5+2a53a5820",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"@storybook/react": "6.5.16",
|
|
25
25
|
"@types/react": "18.2.7",
|
|
26
26
|
"@types/react-dom": "18.2.4",
|
|
27
|
-
"@uniformdev/canvas": "^19.30.
|
|
28
|
-
"@uniformdev/richtext": "^19.30.
|
|
27
|
+
"@uniformdev/canvas": "^19.30.1-alpha.5+2a53a5820",
|
|
28
|
+
"@uniformdev/richtext": "^19.30.1-alpha.5+2a53a5820",
|
|
29
29
|
"autoprefixer": "10.4.14",
|
|
30
30
|
"hygen": "6.2.11",
|
|
31
31
|
"postcss": "8.4.24",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "2a53a5820c0343ca6bc8d883ed6737717afba488"
|
|
72
72
|
}
|