@uniformdev/design-system 19.96.0 → 19.96.1-alpha.13
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 +13 -6
- package/dist/index.js +13 -6
- package/package.json +4 -4
package/dist/esm/index.js
CHANGED
|
@@ -16649,6 +16649,7 @@ var inputIcon2 = css76`
|
|
|
16649
16649
|
z-index: var(--z-10);
|
|
16650
16650
|
`;
|
|
16651
16651
|
var inputToggleLabel2 = css76`
|
|
16652
|
+
--inline-label-color: var(--brand-secondary-1);
|
|
16652
16653
|
align-items: center;
|
|
16653
16654
|
cursor: pointer;
|
|
16654
16655
|
display: inline-flex;
|
|
@@ -16657,6 +16658,10 @@ var inputToggleLabel2 = css76`
|
|
|
16657
16658
|
font-size: var(--fs-sm);
|
|
16658
16659
|
min-height: var(--spacing-md);
|
|
16659
16660
|
position: relative;
|
|
16661
|
+
|
|
16662
|
+
&:has(:disabled) {
|
|
16663
|
+
--inline-label-color: var(--gray-400);
|
|
16664
|
+
}
|
|
16660
16665
|
`;
|
|
16661
16666
|
var toggleInput2 = css76`
|
|
16662
16667
|
appearance: none;
|
|
@@ -16702,6 +16707,7 @@ var toggleInput2 = css76`
|
|
|
16702
16707
|
}
|
|
16703
16708
|
`;
|
|
16704
16709
|
var inlineLabel2 = css76`
|
|
16710
|
+
color: var(--inline-label-color);
|
|
16705
16711
|
padding-left: var(--spacing-md);
|
|
16706
16712
|
font-size: var(--fs-sm);
|
|
16707
16713
|
font-weight: var(--fw-regular);
|
|
@@ -17867,10 +17873,6 @@ function convertAnchorElement(domNode) {
|
|
|
17867
17873
|
return { node };
|
|
17868
17874
|
}
|
|
17869
17875
|
var LinkNode = class _LinkNode extends ElementNode2 {
|
|
17870
|
-
constructor(props, key) {
|
|
17871
|
-
super(key);
|
|
17872
|
-
this.__link = props;
|
|
17873
|
-
}
|
|
17874
17876
|
static getType() {
|
|
17875
17877
|
return "link";
|
|
17876
17878
|
}
|
|
@@ -17884,6 +17886,10 @@ var LinkNode = class _LinkNode extends ElementNode2 {
|
|
|
17884
17886
|
static clone(node) {
|
|
17885
17887
|
return new _LinkNode(node.__link, node.__key);
|
|
17886
17888
|
}
|
|
17889
|
+
constructor(props, key) {
|
|
17890
|
+
super(key);
|
|
17891
|
+
this.__link = props;
|
|
17892
|
+
}
|
|
17887
17893
|
static importJSON(serializedNode) {
|
|
17888
17894
|
const node = $createLinkNode(serializedNode.link);
|
|
17889
17895
|
node.setFormat(serializedNode.format);
|
|
@@ -19065,11 +19071,12 @@ var ParameterToggle = forwardRef18((props, ref) => {
|
|
|
19065
19071
|
return /* @__PURE__ */ jsx110(ParameterShell, { ...shellProps, children: /* @__PURE__ */ jsx110(ParameterToggleInner, { ref, ...innerProps }) });
|
|
19066
19072
|
});
|
|
19067
19073
|
var ParameterToggleInner = forwardRef18(
|
|
19068
|
-
({ ...props }, ref) => {
|
|
19074
|
+
({ children, ...props }, ref) => {
|
|
19069
19075
|
const { id, label } = useParameterShell();
|
|
19070
19076
|
return /* @__PURE__ */ jsxs73("label", { css: inputToggleLabel2, children: [
|
|
19071
19077
|
/* @__PURE__ */ jsx110("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
19072
|
-
/* @__PURE__ */ jsx110("span", { css: inlineLabel2, children: label })
|
|
19078
|
+
/* @__PURE__ */ jsx110("span", { css: inlineLabel2, children: label }),
|
|
19079
|
+
children
|
|
19073
19080
|
] });
|
|
19074
19081
|
}
|
|
19075
19082
|
);
|
package/dist/index.js
CHANGED
|
@@ -18459,6 +18459,7 @@ var inputIcon2 = import_react102.css`
|
|
|
18459
18459
|
z-index: var(--z-10);
|
|
18460
18460
|
`;
|
|
18461
18461
|
var inputToggleLabel2 = import_react102.css`
|
|
18462
|
+
--inline-label-color: var(--brand-secondary-1);
|
|
18462
18463
|
align-items: center;
|
|
18463
18464
|
cursor: pointer;
|
|
18464
18465
|
display: inline-flex;
|
|
@@ -18467,6 +18468,10 @@ var inputToggleLabel2 = import_react102.css`
|
|
|
18467
18468
|
font-size: var(--fs-sm);
|
|
18468
18469
|
min-height: var(--spacing-md);
|
|
18469
18470
|
position: relative;
|
|
18471
|
+
|
|
18472
|
+
&:has(:disabled) {
|
|
18473
|
+
--inline-label-color: var(--gray-400);
|
|
18474
|
+
}
|
|
18470
18475
|
`;
|
|
18471
18476
|
var toggleInput2 = import_react102.css`
|
|
18472
18477
|
appearance: none;
|
|
@@ -18512,6 +18517,7 @@ var toggleInput2 = import_react102.css`
|
|
|
18512
18517
|
}
|
|
18513
18518
|
`;
|
|
18514
18519
|
var inlineLabel2 = import_react102.css`
|
|
18520
|
+
color: var(--inline-label-color);
|
|
18515
18521
|
padding-left: var(--spacing-md);
|
|
18516
18522
|
font-size: var(--fs-sm);
|
|
18517
18523
|
font-weight: var(--fw-regular);
|
|
@@ -19682,10 +19688,6 @@ function convertAnchorElement(domNode) {
|
|
|
19682
19688
|
return { node };
|
|
19683
19689
|
}
|
|
19684
19690
|
var LinkNode = class _LinkNode extends import_lexical3.ElementNode {
|
|
19685
|
-
constructor(props, key) {
|
|
19686
|
-
super(key);
|
|
19687
|
-
this.__link = props;
|
|
19688
|
-
}
|
|
19689
19691
|
static getType() {
|
|
19690
19692
|
return "link";
|
|
19691
19693
|
}
|
|
@@ -19699,6 +19701,10 @@ var LinkNode = class _LinkNode extends import_lexical3.ElementNode {
|
|
|
19699
19701
|
static clone(node) {
|
|
19700
19702
|
return new _LinkNode(node.__link, node.__key);
|
|
19701
19703
|
}
|
|
19704
|
+
constructor(props, key) {
|
|
19705
|
+
super(key);
|
|
19706
|
+
this.__link = props;
|
|
19707
|
+
}
|
|
19702
19708
|
static importJSON(serializedNode) {
|
|
19703
19709
|
const node = $createLinkNode(serializedNode.link);
|
|
19704
19710
|
node.setFormat(serializedNode.format);
|
|
@@ -20866,11 +20872,12 @@ var ParameterToggle = (0, import_react125.forwardRef)((props, ref) => {
|
|
|
20866
20872
|
return /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(ParameterShell, { ...shellProps, children: /* @__PURE__ */ (0, import_jsx_runtime110.jsx)(ParameterToggleInner, { ref, ...innerProps }) });
|
|
20867
20873
|
});
|
|
20868
20874
|
var ParameterToggleInner = (0, import_react125.forwardRef)(
|
|
20869
|
-
({ ...props }, ref) => {
|
|
20875
|
+
({ children, ...props }, ref) => {
|
|
20870
20876
|
const { id, label } = useParameterShell();
|
|
20871
20877
|
return /* @__PURE__ */ (0, import_jsx_runtime110.jsxs)("label", { css: inputToggleLabel2, children: [
|
|
20872
20878
|
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("input", { css: toggleInput2, type: props.type, id, ref, ...props }),
|
|
20873
|
-
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { css: inlineLabel2, children: label })
|
|
20879
|
+
/* @__PURE__ */ (0, import_jsx_runtime110.jsx)("span", { css: inlineLabel2, children: label }),
|
|
20880
|
+
children
|
|
20874
20881
|
] });
|
|
20875
20882
|
}
|
|
20876
20883
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "19.96.
|
|
3
|
+
"version": "19.96.1-alpha.13+45a0734f3e",
|
|
4
4
|
"description": "Uniform design system components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"@storybook/react": "6.5.16",
|
|
24
24
|
"@types/react": "18.2.40",
|
|
25
25
|
"@types/react-dom": "18.2.17",
|
|
26
|
-
"@uniformdev/canvas": "^19.96.
|
|
27
|
-
"@uniformdev/richtext": "^19.96.
|
|
26
|
+
"@uniformdev/canvas": "^19.96.1-alpha.13+45a0734f3e",
|
|
27
|
+
"@uniformdev/richtext": "^19.96.1-alpha.13+45a0734f3e",
|
|
28
28
|
"autoprefixer": "10.4.16",
|
|
29
29
|
"hygen": "6.2.11",
|
|
30
30
|
"postcss": "8.4.32",
|
|
@@ -68,5 +68,5 @@
|
|
|
68
68
|
"publishConfig": {
|
|
69
69
|
"access": "public"
|
|
70
70
|
},
|
|
71
|
-
"gitHead": "
|
|
71
|
+
"gitHead": "45a0734f3e9e54959a6e70c4bc7472657becc28b"
|
|
72
72
|
}
|