@workday/canvas-kit-react 9.1.30 → 9.1.32
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/commonjs/form-field/lib/Label.d.ts.map +1 -1
- package/dist/commonjs/form-field/lib/Label.js +4 -3
- package/dist/commonjs/tooltip/lib/Tooltip.js +1 -1
- package/dist/es6/form-field/lib/Label.d.ts.map +1 -1
- package/dist/es6/form-field/lib/Label.js +4 -3
- package/dist/es6/tooltip/lib/Tooltip.js +1 -1
- package/form-field/lib/Label.tsx +7 -5
- package/package.json +3 -3
- package/tooltip/lib/Tooltip.tsx +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../form-field/lib/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,sBAAsB,EAAE,8BAA8B,EAAC,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,UAAW,SAAQ,8BAA8B;IAChE;;;OAGG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAsDD,cAAM,KAAM,SAAQ,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACtE,MAAM,CAAC,QAAQ,gCAA0B;IAElC,MAAM;
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../form-field/lib/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,sBAAsB,EAAE,8BAA8B,EAAC,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,UAAW,SAAQ,8BAA8B;IAChE;;;OAGG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAsDD,cAAM,KAAM,SAAQ,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACtE,MAAM,CAAC,QAAQ,gCAA0B;IAElC,MAAM;CAgCd;AAID,OAAO,EAAC,KAAK,EAAC,CAAC"}
|
|
@@ -39,9 +39,9 @@ const labelStyles = [
|
|
|
39
39
|
? {
|
|
40
40
|
marginRight: tokens_1.space.l,
|
|
41
41
|
minWidth: 180,
|
|
42
|
+
maxHeight: tokens_1.space.xl,
|
|
42
43
|
display: 'flex',
|
|
43
44
|
alignItems: 'center',
|
|
44
|
-
maxHeight: tokens_1.space.xl,
|
|
45
45
|
}
|
|
46
46
|
: {
|
|
47
47
|
display: 'block',
|
|
@@ -77,8 +77,9 @@ class Label extends React.Component {
|
|
|
77
77
|
const children = !required
|
|
78
78
|
? this.props.children
|
|
79
79
|
: [
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
React.createElement("span", null,
|
|
81
|
+
this.props.children,
|
|
82
|
+
React.createElement(RequiredAsterisk, { key: '0', "aria-hidden": true }, "*")),
|
|
82
83
|
];
|
|
83
84
|
return (React.createElement(React.Fragment, null, isLegend ? (React.createElement(LegendComponent, Object.assign({ labelPosition: labelPosition, isLegend: isLegend }, elemProps, { children: children }))) : (React.createElement(LabelComponent, Object.assign({ labelPosition: labelPosition }, elemProps, { children: children })))));
|
|
84
85
|
}
|
|
@@ -54,7 +54,7 @@ exports.Tooltip = common_1.createComponent('div')({
|
|
|
54
54
|
React.cloneElement(children, {
|
|
55
55
|
...targetProps,
|
|
56
56
|
...mergeCallbacks(children.props, targetProps),
|
|
57
|
-
...(type
|
|
57
|
+
...(/^(muted|describe)$/.test(type) && children.props['aria-label']
|
|
58
58
|
? { 'aria-label': children.props['aria-label'] }
|
|
59
59
|
: {}),
|
|
60
60
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../form-field/lib/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,sBAAsB,EAAE,8BAA8B,EAAC,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,UAAW,SAAQ,8BAA8B;IAChE;;;OAGG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAsDD,cAAM,KAAM,SAAQ,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACtE,MAAM,CAAC,QAAQ,gCAA0B;IAElC,MAAM;
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../form-field/lib/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,EAAC,sBAAsB,EAAE,8BAA8B,EAAC,MAAM,SAAS,CAAC;AAE/E,MAAM,WAAW,UAAW,SAAQ,8BAA8B;IAChE;;;OAGG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC;IACvC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAsDD,cAAM,KAAM,SAAQ,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,iBAAiB,CAAC,UAAU,CAAC,CAAC;IACtE,MAAM,CAAC,QAAQ,gCAA0B;IAElC,MAAM;CAgCd;AAID,OAAO,EAAC,KAAK,EAAC,CAAC"}
|
|
@@ -17,9 +17,9 @@ const labelStyles = [
|
|
|
17
17
|
? {
|
|
18
18
|
marginRight: space.l,
|
|
19
19
|
minWidth: 180,
|
|
20
|
+
maxHeight: space.xl,
|
|
20
21
|
display: 'flex',
|
|
21
22
|
alignItems: 'center',
|
|
22
|
-
maxHeight: space.xl,
|
|
23
23
|
}
|
|
24
24
|
: {
|
|
25
25
|
display: 'block',
|
|
@@ -55,8 +55,9 @@ class Label extends React.Component {
|
|
|
55
55
|
const children = !required
|
|
56
56
|
? this.props.children
|
|
57
57
|
: [
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
React.createElement("span", null,
|
|
59
|
+
this.props.children,
|
|
60
|
+
React.createElement(RequiredAsterisk, { key: '0', "aria-hidden": true }, "*")),
|
|
60
61
|
];
|
|
61
62
|
return (React.createElement(React.Fragment, null, isLegend ? (React.createElement(LegendComponent, Object.assign({ labelPosition: labelPosition, isLegend: isLegend }, elemProps, { children: children }))) : (React.createElement(LabelComponent, Object.assign({ labelPosition: labelPosition }, elemProps, { children: children })))));
|
|
62
63
|
}
|
|
@@ -29,7 +29,7 @@ export const Tooltip = createComponent('div')({
|
|
|
29
29
|
React.cloneElement(children, {
|
|
30
30
|
...targetProps,
|
|
31
31
|
...mergeCallbacks(children.props, targetProps),
|
|
32
|
-
...(type
|
|
32
|
+
...(/^(muted|describe)$/.test(type) && children.props['aria-label']
|
|
33
33
|
? { 'aria-label': children.props['aria-label'] }
|
|
34
34
|
: {}),
|
|
35
35
|
}),
|
package/form-field/lib/Label.tsx
CHANGED
|
@@ -51,9 +51,9 @@ const labelStyles = [
|
|
|
51
51
|
? {
|
|
52
52
|
marginRight: space.l,
|
|
53
53
|
minWidth: 180,
|
|
54
|
+
maxHeight: space.xl,
|
|
54
55
|
display: 'flex',
|
|
55
56
|
alignItems: 'center',
|
|
56
|
-
maxHeight: space.xl,
|
|
57
57
|
}
|
|
58
58
|
: {
|
|
59
59
|
display: 'block',
|
|
@@ -101,10 +101,12 @@ class Label extends React.Component<React.PropsWithChildren<LabelProps>> {
|
|
|
101
101
|
const children = !required
|
|
102
102
|
? this.props.children
|
|
103
103
|
: [
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
104
|
+
<span>
|
|
105
|
+
{this.props.children}
|
|
106
|
+
<RequiredAsterisk key={'0'} aria-hidden>
|
|
107
|
+
*
|
|
108
|
+
</RequiredAsterisk>
|
|
109
|
+
</span>,
|
|
108
110
|
];
|
|
109
111
|
return (
|
|
110
112
|
<>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workday/canvas-kit-react",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.32",
|
|
4
4
|
"description": "The parent module that contains all Workday Canvas Kit React components",
|
|
5
5
|
"author": "Workday, Inc. (https://www.workday.com)",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"@emotion/styled": "^11.6.0",
|
|
50
50
|
"@popperjs/core": "^2.5.4",
|
|
51
51
|
"@workday/canvas-colors-web": "^2.0.0",
|
|
52
|
-
"@workday/canvas-kit-popup-stack": "^9.1.
|
|
52
|
+
"@workday/canvas-kit-popup-stack": "^9.1.32",
|
|
53
53
|
"@workday/canvas-system-icons-web": "^3.0.0",
|
|
54
54
|
"@workday/design-assets-types": "^0.2.8",
|
|
55
55
|
"chroma-js": "^2.1.0",
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"@workday/canvas-accent-icons-web": "^3.0.0",
|
|
67
67
|
"@workday/canvas-applet-icons-web": "^2.0.0"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "cb8d09f6aea68a7dc910a2572c75dcf0f1c6d121"
|
|
70
70
|
}
|
package/tooltip/lib/Tooltip.tsx
CHANGED
|
@@ -106,7 +106,7 @@ export const Tooltip = createComponent('div')({
|
|
|
106
106
|
{React.cloneElement(children, {
|
|
107
107
|
...targetProps,
|
|
108
108
|
...mergeCallbacks(children.props, targetProps),
|
|
109
|
-
...(type
|
|
109
|
+
...(/^(muted|describe)$/.test(type) && children.props['aria-label']
|
|
110
110
|
? {'aria-label': children.props['aria-label']}
|
|
111
111
|
: {}),
|
|
112
112
|
})}
|