@hitachivantara/uikit-react-core 5.24.5 → 5.25.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/cjs/components/Badge/Badge.cjs +0 -1
- package/dist/cjs/components/Badge/Badge.cjs.map +1 -1
- package/dist/cjs/components/BaseDropdown/BaseDropdown.cjs +5 -0
- package/dist/cjs/components/BaseDropdown/BaseDropdown.cjs.map +1 -1
- package/dist/cjs/components/ColorPicker/ColorPicker.cjs +12 -1
- package/dist/cjs/components/ColorPicker/ColorPicker.cjs.map +1 -1
- package/dist/cjs/components/Dropdown/Dropdown.cjs +1 -0
- package/dist/cjs/components/Dropdown/Dropdown.cjs.map +1 -1
- package/dist/cjs/components/EmptyState/EmptyState.styles.cjs +1 -5
- package/dist/cjs/components/EmptyState/EmptyState.styles.cjs.map +1 -1
- package/dist/cjs/components/Focus/Focus.cjs +25 -39
- package/dist/cjs/components/Focus/Focus.cjs.map +1 -1
- package/dist/cjs/components/Focus/Focus.styles.cjs +43 -40
- package/dist/cjs/components/Focus/Focus.styles.cjs.map +1 -1
- package/dist/cjs/components/List/List.cjs +38 -28
- package/dist/cjs/components/List/List.cjs.map +1 -1
- package/dist/cjs/components/List/List.styles.cjs +38 -149
- package/dist/cjs/components/List/List.styles.cjs.map +1 -1
- package/dist/cjs/components/MultiButton/MultiButton.cjs +15 -11
- package/dist/cjs/components/MultiButton/MultiButton.cjs.map +1 -1
- package/dist/cjs/components/MultiButton/MultiButton.styles.cjs +109 -151
- package/dist/cjs/components/MultiButton/MultiButton.styles.cjs.map +1 -1
- package/dist/cjs/components/SimpleGrid/SimpleGrid.cjs +11 -3
- package/dist/cjs/components/SimpleGrid/SimpleGrid.cjs.map +1 -1
- package/dist/cjs/components/SimpleGrid/SimpleGrid.styles.cjs +29 -28
- package/dist/cjs/components/SimpleGrid/SimpleGrid.styles.cjs.map +1 -1
- package/dist/cjs/components/VerticalNavigation/NavigationSlider/NavigationSlider.styles.cjs +1 -1
- package/dist/cjs/index.cjs +6 -6
- package/dist/esm/components/Badge/Badge.js +0 -1
- package/dist/esm/components/Badge/Badge.js.map +1 -1
- package/dist/esm/components/BaseDropdown/BaseDropdown.js +5 -0
- package/dist/esm/components/BaseDropdown/BaseDropdown.js.map +1 -1
- package/dist/esm/components/ColorPicker/ColorPicker.js +12 -1
- package/dist/esm/components/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/esm/components/Dropdown/Dropdown.js +1 -0
- package/dist/esm/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/esm/components/EmptyState/EmptyState.styles.js +1 -5
- package/dist/esm/components/EmptyState/EmptyState.styles.js.map +1 -1
- package/dist/esm/components/Focus/Focus.js +27 -41
- package/dist/esm/components/Focus/Focus.js.map +1 -1
- package/dist/esm/components/Focus/Focus.styles.js +43 -38
- package/dist/esm/components/Focus/Focus.styles.js.map +1 -1
- package/dist/esm/components/List/List.js +39 -28
- package/dist/esm/components/List/List.js.map +1 -1
- package/dist/esm/components/List/List.styles.js +38 -147
- package/dist/esm/components/List/List.styles.js.map +1 -1
- package/dist/esm/components/MultiButton/MultiButton.js +18 -13
- package/dist/esm/components/MultiButton/MultiButton.js.map +1 -1
- package/dist/esm/components/MultiButton/MultiButton.styles.js +109 -149
- package/dist/esm/components/MultiButton/MultiButton.styles.js.map +1 -1
- package/dist/esm/components/SimpleGrid/SimpleGrid.js +12 -4
- package/dist/esm/components/SimpleGrid/SimpleGrid.js.map +1 -1
- package/dist/esm/components/SimpleGrid/SimpleGrid.styles.js +29 -26
- package/dist/esm/components/SimpleGrid/SimpleGrid.styles.js.map +1 -1
- package/dist/esm/components/VerticalNavigation/NavigationSlider/NavigationSlider.styles.js +1 -1
- package/dist/esm/index.js +238 -238
- package/dist/types/index.d.ts +397 -374
- package/package.json +5 -5
- package/dist/cjs/components/Focus/focusClasses.cjs +0 -8
- package/dist/cjs/components/Focus/focusClasses.cjs.map +0 -1
- package/dist/cjs/components/List/listClasses.cjs +0 -8
- package/dist/cjs/components/List/listClasses.cjs.map +0 -1
- package/dist/cjs/components/MultiButton/multiButtonClasses.cjs +0 -8
- package/dist/cjs/components/MultiButton/multiButtonClasses.cjs.map +0 -1
- package/dist/esm/components/Focus/focusClasses.js +0 -8
- package/dist/esm/components/Focus/focusClasses.js.map +0 -1
- package/dist/esm/components/List/listClasses.js +0 -8
- package/dist/esm/components/List/listClasses.js.map +0 -1
- package/dist/esm/components/MultiButton/multiButtonClasses.js +0 -8
- package/dist/esm/components/MultiButton/multiButtonClasses.js.map +0 -1
|
@@ -1,52 +1,114 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const _styled = require("@emotion/styled/base");
|
|
4
|
-
const clsx = require("clsx");
|
|
5
3
|
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
6
|
-
const
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
4
|
+
const classes = require("../../utils/classes.cjs");
|
|
5
|
+
const {
|
|
6
|
+
staticClasses,
|
|
7
|
+
useClasses
|
|
8
|
+
} = classes.createClasses("HvFooter", {
|
|
9
|
+
root: {
|
|
10
|
+
display: "flex",
|
|
11
|
+
height: 32,
|
|
12
|
+
alignItems: "center",
|
|
13
|
+
transition: "none",
|
|
14
|
+
background: uikitStyles.theme.colors.atmo2,
|
|
15
|
+
position: "relative",
|
|
16
|
+
zIndex: 0,
|
|
17
|
+
// prevent the focus ring to be hidden by sibling hover background
|
|
18
|
+
"&>.HvIsFocusVisible": {
|
|
19
|
+
zIndex: 5
|
|
20
|
+
},
|
|
21
|
+
"& button$button": {
|
|
22
|
+
height: 32,
|
|
23
|
+
width: "100%",
|
|
24
|
+
minWidth: 32,
|
|
25
|
+
maxWidth: 200,
|
|
26
|
+
padding: 0,
|
|
27
|
+
transition: "none",
|
|
28
|
+
flex: "1 0 0px",
|
|
29
|
+
borderTop: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
30
|
+
borderBottom: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
31
|
+
borderLeft: "solid 1px transparent",
|
|
32
|
+
borderRight: "solid 1px transparent",
|
|
33
|
+
borderRadius: 0,
|
|
34
|
+
...uikitStyles.theme.typography.body,
|
|
35
|
+
"&:active": {
|
|
36
|
+
backgroundColor: `${uikitStyles.theme.colors.atmo3}`
|
|
37
|
+
},
|
|
38
|
+
"&:disabled": {
|
|
39
|
+
color: uikitStyles.theme.colors.secondary_60,
|
|
40
|
+
borderTop: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
41
|
+
borderBottom: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
42
|
+
"&:hover": {
|
|
43
|
+
borderTop: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
44
|
+
borderBottom: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
45
|
+
borderLeft: "solid 1px transparent",
|
|
46
|
+
borderRight: "solid 1px transparent"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"&:first-of-type": {
|
|
50
|
+
borderLeft: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
51
|
+
borderTopLeftRadius: uikitStyles.theme.radii.base,
|
|
52
|
+
borderBottomLeftRadius: uikitStyles.theme.radii.base
|
|
53
|
+
},
|
|
54
|
+
"&:last-of-type": {
|
|
55
|
+
borderRight: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
56
|
+
borderTopRightRadius: uikitStyles.theme.radii.base,
|
|
57
|
+
borderBottomRightRadius: uikitStyles.theme.radii.base,
|
|
58
|
+
"&:disabled:hover": {
|
|
59
|
+
borderRight: `solid 1px ${uikitStyles.theme.colors.atmo4} !important`
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
"&:not(:first-of-type)": {
|
|
63
|
+
marginLeft: "-1px"
|
|
64
|
+
},
|
|
65
|
+
"&$selected": {
|
|
66
|
+
"&:hover": {
|
|
67
|
+
"&:not(:disabled)": {
|
|
68
|
+
border: `solid 1px ${uikitStyles.theme.colors.secondary}`
|
|
69
|
+
},
|
|
70
|
+
"&:disabled": {
|
|
71
|
+
border: `solid 1px ${uikitStyles.theme.colors.atmo4}`
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"&:disabled": {
|
|
75
|
+
zIndex: 1,
|
|
76
|
+
color: uikitStyles.theme.colors.secondary_60,
|
|
77
|
+
background: uikitStyles.theme.colors.atmo1,
|
|
78
|
+
border: `solid 1px ${uikitStyles.theme.colors.atmo4}`
|
|
17
79
|
}
|
|
18
80
|
}
|
|
81
|
+
},
|
|
82
|
+
"& button$button$selected": {
|
|
83
|
+
background: uikitStyles.theme.colors.atmo1,
|
|
84
|
+
height: 34,
|
|
85
|
+
...uikitStyles.theme.typography.label,
|
|
86
|
+
borderRadius: uikitStyles.theme.radii.base,
|
|
87
|
+
border: `solid 1px ${uikitStyles.theme.colors.secondary}`,
|
|
88
|
+
zIndex: 2,
|
|
89
|
+
"&:hover": {
|
|
90
|
+
background: uikitStyles.theme.colors.atmo3
|
|
91
|
+
},
|
|
92
|
+
"&:first-of-type, &:last-of-type": {
|
|
93
|
+
border: `solid 1px ${uikitStyles.theme.colors.secondary}`
|
|
94
|
+
},
|
|
95
|
+
// prevent the focus ring to be hidden by sibling hover background
|
|
96
|
+
// even when selected
|
|
97
|
+
"&.HvIsFocusVisible": {
|
|
98
|
+
zIndex: 5
|
|
99
|
+
}
|
|
19
100
|
}
|
|
20
|
-
return target;
|
|
21
|
-
};
|
|
22
|
-
return _extends.apply(this, arguments);
|
|
23
|
-
}
|
|
24
|
-
const StyledRoot = /* @__PURE__ */ _styled__default.default("div", process.env.NODE_ENV === "production" ? _extends({}, {
|
|
25
|
-
target: "e17vrbb41"
|
|
26
|
-
}, transientOptions.transientOptions) : _extends({}, {
|
|
27
|
-
target: "e17vrbb41",
|
|
28
|
-
label: "StyledRoot"
|
|
29
|
-
}, transientOptions.transientOptions))(({
|
|
30
|
-
$vertical
|
|
31
|
-
}) => ({
|
|
32
|
-
display: "flex",
|
|
33
|
-
height: 32,
|
|
34
|
-
alignItems: "center",
|
|
35
|
-
transition: "none",
|
|
36
|
-
background: uikitStyles.theme.colors.atmo2,
|
|
37
|
-
position: "relative",
|
|
38
|
-
zIndex: 0,
|
|
39
|
-
// prevent the focus ring to be hidden by sibling hover background
|
|
40
|
-
"&>.HvIsFocusVisible": {
|
|
41
|
-
zIndex: 5
|
|
42
101
|
},
|
|
43
|
-
|
|
102
|
+
button: {},
|
|
103
|
+
selected: {},
|
|
104
|
+
// vertical button display Styling
|
|
105
|
+
vertical: {
|
|
44
106
|
flexDirection: "column",
|
|
45
107
|
height: "auto",
|
|
46
108
|
btnSecondary: {
|
|
47
109
|
flex: "1 1 20px"
|
|
48
110
|
},
|
|
49
|
-
"& button
|
|
111
|
+
"& button$button": {
|
|
50
112
|
width: "100%",
|
|
51
113
|
borderLeft: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
52
114
|
borderRight: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
@@ -67,25 +129,22 @@ const StyledRoot = /* @__PURE__ */ _styled__default.default("div", process.env.N
|
|
|
67
129
|
},
|
|
68
130
|
"&:first-of-type": {
|
|
69
131
|
borderTop: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
70
|
-
borderTopLeftRadius:
|
|
71
|
-
borderTopRightRadius:
|
|
72
|
-
"&:disabled:hover": {
|
|
73
|
-
borderTop: `solid 1px ${uikitStyles.theme.colors.atmo4}`
|
|
74
|
-
}
|
|
132
|
+
borderTopLeftRadius: uikitStyles.theme.radii.base,
|
|
133
|
+
borderTopRightRadius: uikitStyles.theme.radii.base
|
|
75
134
|
},
|
|
76
|
-
"&:last-
|
|
135
|
+
"&:last-of-type": {
|
|
77
136
|
borderBottom: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
78
|
-
borderBottomLeftRadius:
|
|
79
|
-
borderBottomRightRadius:
|
|
137
|
+
borderBottomLeftRadius: uikitStyles.theme.radii.base,
|
|
138
|
+
borderBottomRightRadius: uikitStyles.theme.radii.base,
|
|
80
139
|
"&:disabled:hover": {
|
|
81
|
-
borderBottom: `solid 1px ${uikitStyles.theme.colors.atmo4}`
|
|
140
|
+
borderBottom: `solid 1px ${uikitStyles.theme.colors.atmo4} !important`
|
|
82
141
|
}
|
|
83
142
|
},
|
|
84
143
|
"&:not(:first-of-type)": {
|
|
85
144
|
marginLeft: 0,
|
|
86
145
|
marginTop: -1
|
|
87
146
|
},
|
|
88
|
-
"
|
|
147
|
+
"&$selected": {
|
|
89
148
|
height: 32,
|
|
90
149
|
width: `calc(100% + 2px) !important`,
|
|
91
150
|
background: uikitStyles.theme.colors.atmo1,
|
|
@@ -105,108 +164,7 @@ const StyledRoot = /* @__PURE__ */ _styled__default.default("div", process.env.N
|
|
|
105
164
|
}
|
|
106
165
|
}
|
|
107
166
|
}
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
props
|
|
112
|
-
}) => /* @__PURE__ */ _styled__default.default(({
|
|
113
|
-
className
|
|
114
|
-
}) => /* @__PURE__ */ jsxRuntime.jsx(Component, {
|
|
115
|
-
...props,
|
|
116
|
-
className: clsx.clsx("button", props.selected && "selected", className)
|
|
117
|
-
}), process.env.NODE_ENV === "production" ? {
|
|
118
|
-
target: "e17vrbb40"
|
|
119
|
-
} : {
|
|
120
|
-
target: "e17vrbb40",
|
|
121
|
-
label: "StyledButton"
|
|
122
|
-
})({
|
|
123
|
-
height: 32,
|
|
124
|
-
width: "100%",
|
|
125
|
-
minWidth: 32,
|
|
126
|
-
maxWidth: 200,
|
|
127
|
-
transition: "none",
|
|
128
|
-
flex: "1 0 0px",
|
|
129
|
-
padding: 0,
|
|
130
|
-
borderTop: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
131
|
-
borderBottom: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
132
|
-
borderLeft: "solid 1px transparent",
|
|
133
|
-
borderRight: "solid 1px transparent",
|
|
134
|
-
borderRadius: 0,
|
|
135
|
-
backgroundColor: uikitStyles.theme.colors.atmo2,
|
|
136
|
-
":disabled": {
|
|
137
|
-
backgroundColor: uikitStyles.theme.multiButton.disabledBackgroundColor
|
|
138
|
-
},
|
|
139
|
-
":hover": {
|
|
140
|
-
borderTop: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
141
|
-
borderBottom: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
142
|
-
borderLeft: "solid 1px transparent",
|
|
143
|
-
borderRight: "solid 1px transparent"
|
|
144
|
-
},
|
|
145
|
-
...uikitStyles.theme.typography.body,
|
|
146
|
-
"&:active": {
|
|
147
|
-
backgroundColor: `${uikitStyles.theme.colors.atmo3}`
|
|
148
|
-
},
|
|
149
|
-
"&:disabled": {
|
|
150
|
-
color: uikitStyles.theme.colors.secondary_60,
|
|
151
|
-
borderTop: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
152
|
-
borderBottom: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
153
|
-
"&:hover": {
|
|
154
|
-
borderTop: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
155
|
-
borderBottom: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
156
|
-
borderLeft: "solid 1px transparent",
|
|
157
|
-
borderRight: "solid 1px transparent"
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
"&:first-of-type": {
|
|
161
|
-
borderLeft: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
162
|
-
borderTopLeftRadius: uikitStyles.theme.radii.base,
|
|
163
|
-
borderBottomLeftRadius: uikitStyles.theme.radii.base,
|
|
164
|
-
"&:disabled:hover": {
|
|
165
|
-
borderLeft: `solid 1px ${uikitStyles.theme.colors.atmo4}`
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
"&:last-child": {
|
|
169
|
-
borderRight: `solid 1px ${uikitStyles.theme.colors.atmo4}`,
|
|
170
|
-
borderTopRightRadius: uikitStyles.theme.radii.base,
|
|
171
|
-
borderBottomRightRadius: uikitStyles.theme.radii.base,
|
|
172
|
-
"&:disabled:hover": {
|
|
173
|
-
borderRight: `solid 1px ${uikitStyles.theme.colors.atmo4}`
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
"&:not(:first-of-type)": {
|
|
177
|
-
marginLeft: "-1px"
|
|
178
|
-
},
|
|
179
|
-
"&.selected": {
|
|
180
|
-
background: uikitStyles.theme.colors.atmo1,
|
|
181
|
-
height: 34,
|
|
182
|
-
...uikitStyles.theme.typography.label,
|
|
183
|
-
border: `solid 1px ${uikitStyles.theme.colors.secondary}`,
|
|
184
|
-
zIndex: 2,
|
|
185
|
-
"&:hover": {
|
|
186
|
-
background: uikitStyles.theme.colors.atmo3,
|
|
187
|
-
"&:not(:disabled)": {
|
|
188
|
-
border: `solid 1px ${uikitStyles.theme.colors.secondary}`
|
|
189
|
-
},
|
|
190
|
-
"&:disabled": {
|
|
191
|
-
border: `solid 1px ${uikitStyles.theme.colors.atmo4}`
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
"&:first-of-type, &:last-child": {
|
|
195
|
-
border: `solid 1px ${uikitStyles.theme.colors.secondary}`
|
|
196
|
-
},
|
|
197
|
-
// prevent the focus ring to be hidden by sibling hover background
|
|
198
|
-
// even when selected
|
|
199
|
-
"&.HvIsFocusVisible": {
|
|
200
|
-
zIndex: 5
|
|
201
|
-
},
|
|
202
|
-
"&:disabled": {
|
|
203
|
-
zIndex: 1,
|
|
204
|
-
color: uikitStyles.theme.colors.secondary_60,
|
|
205
|
-
background: uikitStyles.theme.colors.atmo1,
|
|
206
|
-
border: `solid 1px ${uikitStyles.theme.colors.atmo4}`
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}, process.env.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m90dG9tOiBcInNvbGlkIDFweCB0cmFuc3BhcmVudFwiLFxuICAgICAgICBcIiY6aG92ZXJcIjoge1xuICAgICAgICAgIGJvcmRlckxlZnQ6IGBzb2xpZCAxcHggJHt0aGVtZS5jb2xvcnMuYXRtbzR9YCxcbiAgICAgICAgICBib3JkZXJSaWdodDogYHNvbGlkIDFweCAke3RoZW1lLmNvbG9ycy5hdG1vNH1gLFxuICAgICAgICAgIGJvcmRlclRvcDogXCJzb2xpZCAxcHggdHJhbnNwYXJlbnRcIixcbiAgICAgICAgICBib3JkZXJCb3R0b206IFwic29saWQgMXB4IHRyYW5zcGFyZW50XCIsXG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgICAgXCImOmZpcnN0LW9mLXR5cGVcIjoge1xuICAgICAgICBib3JkZXJUb3A6IGBzb2xpZCAxcHggJHt0aGVtZS5jb2xvcnMuYXRtbzR9YCxcbiAgICAgICAgYm9yZGVyVG9wTGVmdFJhZGl1czogXCIycHhcIixcbiAgICAgICAgYm9yZGVyVG9wUmlnaHRSYWRpdXM6IFwiMnB4XCIsXG4gICAgICAgIFwiJjpkaXNhYmxlZDpob3ZlclwiOiB7XG4gICAgICAgICAgYm9yZGVyVG9wOiBgc29saWQgMXB4ICR7dGhlbWUuY29sb3JzLmF0bW80fWAsXG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgICAgXCImOmxhc3QtY2hpbGRcIjoge1xuICAgICAgICBib3JkZXJCb3R0b206IGBzb2xpZCAxcHggJHt0aGVtZS5jb2xvcnMuYXRtbzR9YCxcbiAgICAgICAgYm9yZGVyQm90dG9tTGVmdFJhZGl1czogXCIycHhcIixcbiAgICAgICAgYm9yZGVyQm90dG9tUmlnaHRSYWRpdXM6IFwiMnB4XCIsXG4gICAgICAgIFwiJjpkaXNhYmxlZDpob3ZlclwiOiB7XG4gICAgICAgICAgYm9yZGVyQm90dG9tOiBgc29saWQgMXB4ICR7dGhlbWUuY29sb3JzLmF0bW80fWAsXG4gICAgICAgIH0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29sb3JzLmF0bW80fWAsXG4gICAgICAgIH0sXG4gICAgICB9LFxuICAgICAgXCImOmZpcnN0LW9mLXR5cGUsICY6bGFzdC1jaGlsZFwiOiB7XG4gICAgICAgIGJvcmRlcjogYHNvbGlkIDFweCAke3RoZW1lLmNvbG9ycy5zZWNvbmRhcnl9YCxcbiAgICAgIH0sXG5cbiAgICAgIC8vIHByZXZlbnQgdGhlIGZvY3VzIHJpbmcgdG8gYmUgaGlkZGVuIGJ5IHNpYmxpbmcgaG92ZXIgYmFja2dyb3VuZFxuICAgICAgLy8gZXZlbiB3aGVuIHNlbGVjdGVkXG4gICAgICBcIiYuSHZJc0ZvY3VzVmlzaWJsZVwiOiB7XG4gICAgICAgIHpJbmRleDogNSxcbiAgICAgIH0sXG4gICAgICBcIiY6ZGlzYWJsZWRcIjoge1xuICAgICAgICB6SW5kZXg6IDEsXG4gICAgICAgIGNvbG9yOiB0aGVtZS5jb2xvcnMuc2Vjb25kYXJ5XzYwLFxuICAgICAgICBiYWNrZ3JvdW5kOiB0aGVtZS5jb2xvcnMuYXRtbzEsXG4gICAgICAgIGJvcmRlcjogYHNvbGlkIDFweCAke3RoZW1lLmNvbG9ycy5hdG1vNH1gLFxuICAgICAgfSxcbiAgICB9LFxuICB9KTtcbiJdfQ== */");
|
|
210
|
-
exports.StyledButton = StyledButton;
|
|
211
|
-
exports.StyledRoot = StyledRoot;
|
|
167
|
+
});
|
|
168
|
+
exports.staticClasses = staticClasses;
|
|
169
|
+
exports.useClasses = useClasses;
|
|
212
170
|
//# sourceMappingURL=MultiButton.styles.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiButton.styles.cjs","sources":["../../../../src/components/MultiButton/MultiButton.styles.tsx"],"sourcesContent":["import { clsx } from \"clsx\";\nimport styled from \"@emotion/styled\";\nimport { theme } from \"@hitachivantara/uikit-styles\";\nimport { CSSProperties } from \"react\";\nimport { transientOptions } from \"@core/utils/transientOptions\";\n\nexport const StyledRoot = styled(\n \"div\",\n transientOptions\n)(({ $vertical }: { $vertical: boolean }) => ({\n display: \"flex\",\n height: 32,\n alignItems: \"center\",\n transition: \"none\",\n background: theme.colors.atmo2,\n position: \"relative\",\n zIndex: 0,\n\n // prevent the focus ring to be hidden by sibling hover background\n \"&>.HvIsFocusVisible\": {\n zIndex: 5,\n },\n\n ...($vertical && {\n flexDirection: \"column\",\n height: \"auto\",\n btnSecondary: {\n flex: \"1 1 20px\",\n },\n \"& button.button\": {\n width: \"100%\",\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n borderTop: \"solid 1px transparent\",\n borderBottom: \"solid 1px transparent\",\n \"&:disabled\": {\n color: theme.colors.secondary_60,\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n borderTop: \"solid 1px transparent\",\n borderBottom: \"solid 1px transparent\",\n \"&:hover\": {\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n borderTop: \"solid 1px transparent\",\n borderBottom: \"solid 1px transparent\",\n },\n },\n \"&:first-of-type\": {\n borderTop: `solid 1px ${theme.colors.atmo4}`,\n borderTopLeftRadius: \"2px\",\n borderTopRightRadius: \"2px\",\n \"&:disabled:hover\": {\n borderTop: `solid 1px ${theme.colors.atmo4}`,\n },\n },\n \"&:last-child\": {\n borderBottom: `solid 1px ${theme.colors.atmo4}`,\n borderBottomLeftRadius: \"2px\",\n borderBottomRightRadius: \"2px\",\n \"&:disabled:hover\": {\n borderBottom: `solid 1px ${theme.colors.atmo4}`,\n },\n },\n \"&:not(:first-of-type)\": {\n marginLeft: 0,\n marginTop: -1,\n },\n \"&.selected\": {\n height: 32,\n width: `calc(100% + 2px) !important`,\n background: theme.colors.atmo1,\n ...(theme.typography.label as CSSProperties),\n borderRadius: theme.radii.base,\n border: `solid 1px ${theme.colors.secondary}`,\n zIndex: 2,\n \"&:hover, &:focus\": {\n background: theme.colors.atmo3,\n },\n \"&:disabled\": {\n zIndex: 1,\n color: theme.colors.secondary_60,\n background: theme.colors.atmo1,\n border: `solid 1px ${theme.colors.atmo4}`,\n },\n },\n },\n }),\n}));\n\nexport const StyledButton = ({ type: Component, props }) =>\n styled(({ className }) => (\n <Component\n {...props}\n className={clsx(\"button\", props.selected && \"selected\", className)}\n />\n ))({\n height: 32,\n width: \"100%\",\n minWidth: 32,\n maxWidth: 200,\n transition: \"none\",\n flex: \"1 0 0px\",\n padding: 0,\n borderTop: `solid 1px ${theme.colors.atmo4}`,\n borderBottom: `solid 1px ${theme.colors.atmo4}`,\n borderLeft: \"solid 1px transparent\",\n borderRight: \"solid 1px transparent\",\n borderRadius: 0,\n backgroundColor: theme.colors.atmo2,\n \":disabled\": { backgroundColor: theme.multiButton.disabledBackgroundColor },\n \":hover\": {\n borderTop: `solid 1px ${theme.colors.atmo4}`,\n borderBottom: `solid 1px ${theme.colors.atmo4}`,\n borderLeft: \"solid 1px transparent\",\n borderRight: \"solid 1px transparent\",\n },\n ...(theme.typography.body as CSSProperties),\n \"&:active\": {\n backgroundColor: `${theme.colors.atmo3}`,\n },\n \"&:disabled\": {\n color: theme.colors.secondary_60,\n borderTop: `solid 1px ${theme.colors.atmo4}`,\n borderBottom: `solid 1px ${theme.colors.atmo4}`,\n \"&:hover\": {\n borderTop: `solid 1px ${theme.colors.atmo4}`,\n borderBottom: `solid 1px ${theme.colors.atmo4}`,\n borderLeft: \"solid 1px transparent\",\n borderRight: \"solid 1px transparent\",\n },\n },\n \"&:first-of-type\": {\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n borderTopLeftRadius: theme.radii.base,\n borderBottomLeftRadius: theme.radii.base,\n \"&:disabled:hover\": {\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n },\n },\n \"&:last-child\": {\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n borderTopRightRadius: theme.radii.base,\n borderBottomRightRadius: theme.radii.base,\n \"&:disabled:hover\": {\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n },\n },\n \"&:not(:first-of-type)\": {\n marginLeft: \"-1px\",\n },\n \"&.selected\": {\n background: theme.colors.atmo1,\n height: 34,\n ...(theme.typography.label as CSSProperties),\n border: `solid 1px ${theme.colors.secondary}`,\n zIndex: 2,\n \"&:hover\": {\n background: theme.colors.atmo3,\n \"&:not(:disabled)\": {\n border: `solid 1px ${theme.colors.secondary}`,\n },\n \"&:disabled\": {\n border: `solid 1px ${theme.colors.atmo4}`,\n },\n },\n \"&:first-of-type, &:last-child\": {\n border: `solid 1px ${theme.colors.secondary}`,\n },\n\n // prevent the focus ring to be hidden by sibling hover background\n // even when selected\n \"&.HvIsFocusVisible\": {\n zIndex: 5,\n },\n \"&:disabled\": {\n zIndex: 1,\n color: theme.colors.secondary_60,\n background: theme.colors.atmo1,\n border: `solid 1px ${theme.colors.atmo4}`,\n },\n },\n });\n"],"names":["StyledRoot","process","env","NODE_ENV","_extends","target","transientOptions","label","$vertical","display","height","alignItems","transition","background","theme","colors","atmo2","position","zIndex","flexDirection","btnSecondary","flex","width","borderLeft","atmo4","borderRight","borderTop","borderBottom","color","secondary_60","borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius","marginLeft","marginTop","atmo1","typography","borderRadius","radii","base","border","secondary","atmo3","StyledButton","type","Component","props","className","clsx","selected","minWidth","maxWidth","padding","backgroundColor","multiButton","disabledBackgroundColor","body"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAMaA,MAAAA,sDACX,OAAKC,QAAAC,IAAAC,4BAAAC,SAAA,IAAA;AAAA,EAAAC,QAAA;AAAA,GACLC,iBAAgB,gBAAA,IAAAF,SAAA,IAAA;AAAA,EAAAC,QAAA;AAAA,EAAAE,OAAA;AAAA,GAAhBD,iBAAAA,gBAAgB,CAClB,EAAE,CAAC;AAAA,EAAEE;AAAkC,OAAO;AAAA,EAC5CC,SAAS;AAAA,EACTC,QAAQ;AAAA,EAC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,MAAMyB,MAAMC;AAAAA,IACrC,oBAAoB;AAAA,MAClBf,aAAc,aAAYX,YAAAA,MAAMC,OAAOS;AAAAA,IACzC;AAAA,EACF;AAAA,EACA,yBAAyB;AAAA,IACvBU,YAAY;AAAA,EACd;AAAA,EACA,cAAc;AAAA,IACZrB,YAAYC,YAAAA,MAAMC,OAAOqB;AAAAA,IACzB1B,QAAQ;AAAA,IACR,GAAII,YAAAA,MAAMuB,WAAW9B;AAAAA,IACrBkC,QAAS,aAAY3B,YAAAA,MAAMC,OAAO2B;AAAAA,IAClCxB,QAAQ;AAAA,IACR,WAAW;AAAA,MACTL,YAAYC,YAAAA,MAAMC,OAAO4B;AAAAA,MACzB,oBAAoB;AAAA,QAClBF,QAAS,aAAY3B,YAAAA,MAAMC,OAAO2B;AAAAA,MACpC;AAAA,MACA,cAAc;AAAA,QACZD,QAAS,aAAY3B,YAAAA,MAAMC,OAAOS;AAAAA,MACpC;AAAA,IACF;AAAA,IACA,iCAAiC;AAAA,MAC/BiB,QAAS,aAAY3B,YAAAA,MAAMC,OAAO2B;AAAAA,IACpC;AAAA;AAAA;AAAA,IAIA,sBAAsB;AAAA,MACpBxB,QAAQ;AAAA,IACV;AAAA,IACA,cAAc;AAAA,MACZA,QAAQ;AAAA,MACRU,OAAOd,YAAAA,MAAMC,OAAOc;AAAAA,MACpBhB,YAAYC,YAAAA,MAAMC,OAAOqB;AAAAA,MACzBK,QAAS,aAAY3B,YAAAA,MAAMC,OAAOS;AAAAA,IACpC;AAAA,EACF;AACF,GAACvB,QAAAC,IAAAC,aAAC,eAAA,KAAA,iuQAAA;;;"}
|
|
1
|
+
{"version":3,"file":"MultiButton.styles.cjs","sources":["../../../../src/components/MultiButton/MultiButton.styles.tsx"],"sourcesContent":["import { theme } from \"@hitachivantara/uikit-styles\";\nimport { createClasses } from \"@core/utils/classes\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvFooter\", {\n root: {\n display: \"flex\",\n height: 32,\n alignItems: \"center\",\n transition: \"none\",\n background: theme.colors.atmo2,\n position: \"relative\",\n zIndex: 0,\n\n // prevent the focus ring to be hidden by sibling hover background\n \"&>.HvIsFocusVisible\": {\n zIndex: 5,\n },\n\n \"& button$button\": {\n height: 32,\n width: \"100%\",\n minWidth: 32,\n maxWidth: 200,\n padding: 0,\n transition: \"none\",\n flex: \"1 0 0px\",\n borderTop: `solid 1px ${theme.colors.atmo4}`,\n borderBottom: `solid 1px ${theme.colors.atmo4}`,\n borderLeft: \"solid 1px transparent\",\n borderRight: \"solid 1px transparent\",\n borderRadius: 0,\n ...theme.typography.body,\n \"&:active\": {\n backgroundColor: `${theme.colors.atmo3}`,\n },\n \"&:disabled\": {\n color: theme.colors.secondary_60,\n borderTop: `solid 1px ${theme.colors.atmo4}`,\n borderBottom: `solid 1px ${theme.colors.atmo4}`,\n \"&:hover\": {\n borderTop: `solid 1px ${theme.colors.atmo4}`,\n borderBottom: `solid 1px ${theme.colors.atmo4}`,\n borderLeft: \"solid 1px transparent\",\n borderRight: \"solid 1px transparent\",\n },\n },\n \"&:first-of-type\": {\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n borderTopLeftRadius: theme.radii.base,\n borderBottomLeftRadius: theme.radii.base,\n },\n \"&:last-of-type\": {\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n borderTopRightRadius: theme.radii.base,\n borderBottomRightRadius: theme.radii.base,\n \"&:disabled:hover\": {\n borderRight: `solid 1px ${theme.colors.atmo4} !important`,\n },\n },\n \"&:not(:first-of-type)\": {\n marginLeft: \"-1px\",\n },\n \"&$selected\": {\n \"&:hover\": {\n \"&:not(:disabled)\": {\n border: `solid 1px ${theme.colors.secondary}`,\n },\n \"&:disabled\": {\n border: `solid 1px ${theme.colors.atmo4}`,\n },\n },\n \"&:disabled\": {\n zIndex: 1,\n color: theme.colors.secondary_60,\n background: theme.colors.atmo1,\n border: `solid 1px ${theme.colors.atmo4}`,\n },\n },\n },\n \"& button$button$selected\": {\n background: theme.colors.atmo1,\n height: 34,\n ...theme.typography.label,\n borderRadius: theme.radii.base,\n border: `solid 1px ${theme.colors.secondary}`,\n zIndex: 2,\n \"&:hover\": {\n background: theme.colors.atmo3,\n },\n \"&:first-of-type, &:last-of-type\": {\n border: `solid 1px ${theme.colors.secondary}`,\n },\n\n // prevent the focus ring to be hidden by sibling hover background\n // even when selected\n \"&.HvIsFocusVisible\": {\n zIndex: 5,\n },\n },\n },\n button: {},\n selected: {},\n // vertical button display Styling\n vertical: {\n flexDirection: \"column\",\n height: \"auto\",\n btnSecondary: {\n flex: \"1 1 20px\",\n },\n \"& button$button\": {\n width: \"100%\",\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n borderTop: \"solid 1px transparent\",\n borderBottom: \"solid 1px transparent\",\n \"&:disabled\": {\n color: theme.colors.secondary_60,\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n borderTop: \"solid 1px transparent\",\n borderBottom: \"solid 1px transparent\",\n \"&:hover\": {\n borderLeft: `solid 1px ${theme.colors.atmo4}`,\n borderRight: `solid 1px ${theme.colors.atmo4}`,\n borderTop: \"solid 1px transparent\",\n borderBottom: \"solid 1px transparent\",\n },\n },\n \"&:first-of-type\": {\n borderTop: `solid 1px ${theme.colors.atmo4}`,\n borderTopLeftRadius: theme.radii.base,\n borderTopRightRadius: theme.radii.base,\n },\n \"&:last-of-type\": {\n borderBottom: `solid 1px ${theme.colors.atmo4}`,\n borderBottomLeftRadius: theme.radii.base,\n borderBottomRightRadius: theme.radii.base,\n \"&:disabled:hover\": {\n borderBottom: `solid 1px ${theme.colors.atmo4} !important`,\n },\n },\n \"&:not(:first-of-type)\": {\n marginLeft: 0,\n marginTop: -1,\n },\n \"&$selected\": {\n height: 32,\n width: `calc(100% + 2px) !important`,\n background: theme.colors.atmo1,\n ...theme.typography.label,\n borderRadius: theme.radii.base,\n border: `solid 1px ${theme.colors.secondary}`,\n zIndex: 2,\n \"&:hover, &:focus\": {\n background: theme.colors.atmo3,\n },\n \"&:disabled\": {\n zIndex: 1,\n color: theme.colors.secondary_60,\n background: theme.colors.atmo1,\n border: `solid 1px ${theme.colors.atmo4}`,\n },\n },\n },\n },\n});\n"],"names":["staticClasses","useClasses","createClasses","root","display","height","alignItems","transition","background","theme","colors","atmo2","position","zIndex","width","minWidth","maxWidth","padding","flex","borderTop","atmo4","borderBottom","borderLeft","borderRight","borderRadius","typography","body","backgroundColor","atmo3","color","secondary_60","borderTopLeftRadius","radii","base","borderBottomLeftRadius","borderTopRightRadius","borderBottomRightRadius","marginLeft","border","secondary","atmo1","label","button","selected","vertical","flexDirection","btnSecondary","marginTop"],"mappings":";;;;AAGa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,QAAAA,cAAc,YAAY;AAAA,EACrEC,MAAM;AAAA,IACJC,SAAS;AAAA,IACTC,QAAQ;AAAA,IACRC,YAAY;AAAA,IACZC,YAAY;AAAA,IACZC,YAAYC,YAAAA,MAAMC,OAAOC;AAAAA,IACzBC,UAAU;AAAA,IACVC,QAAQ;AAAA;AAAA,IAGR,uBAAuB;AAAA,MACrBA,QAAQ;AAAA,IACV;AAAA,IAEA,mBAAmB;AAAA,MACjBR,QAAQ;AAAA,MACRS,OAAO;AAAA,MACPC,UAAU;AAAA,MACVC,UAAU;AAAA,MACVC,SAAS;AAAA,MACTV,YAAY;AAAA,MACZW,MAAM;AAAA,MACNC,WAAY,aAAYV,YAAAA,MAAMC,OAAOU;AAAAA,MACrCC,cAAe,aAAYZ,YAAAA,MAAMC,OAAOU;AAAAA,MACxCE,YAAY;AAAA,MACZC,aAAa;AAAA,MACbC,cAAc;AAAA,MACd,GAAGf,YAAAA,MAAMgB,WAAWC;AAAAA,MACpB,YAAY;AAAA,QACVC,iBAAkB,GAAElB,YAAAA,MAAMC,OAAOkB;AAAAA,MACnC;AAAA,MACA,cAAc;AAAA,QACZC,OAAOpB,YAAAA,MAAMC,O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AAAA,QACrCW,qBAAqBtB,YAAAA,MAAMuB,MAAMC;AAAAA,QACjCE,sBAAsB1B,YAAAA,MAAMuB,MAAMC;AAAAA,MACpC;AAAA,MACA,kBAAkB;AAAA,QAChBZ,cAAe,aAAYZ,YAAAA,MAAMC,OAAOU;AAAAA,QACxCc,wBAAwBzB,YAAAA,MAAMuB,MAAMC;AAAAA,QACpCG,yBAAyB3B,YAAAA,MAAMuB,MAAMC;AAAAA,QACrC,oBAAoB;AAAA,UAClBZ,cAAe,aAAYZ,YAAAA,MAAMC,OAAOU;AAAAA,QAC1C;AAAA,MACF;AAAA,MACA,yBAAyB;AAAA,QACvBiB,YAAY;AAAA,QACZU,WAAW;AAAA,MACb;AAAA,MACA,cAAc;AAAA,QACZ1C,QAAQ;AAAA,QACRS,OAAQ;AAAA,QACRN,YAAYC,YAAAA,MAAMC,OAAO8B;AAAAA,QACzB,GAAG/B,YAAAA,MAAMgB,WAAWgB;AAAAA,QACpBjB,cAAcf,YAAAA,MAAMuB,MAAMC;AAAAA,QAC1BK,QAAS,aAAY7B,YAAAA,MAAMC,OAAO6B;AAAAA,QAClC1B,QAAQ;AAAA,QACR,oBAAoB;AAAA,UAClBL,YAAYC,YAAAA,MAAMC,OAAOkB;AAAAA,QAC3B;AAAA,QACA,cAAc;AAAA,UACZf,QAAQ;AAAA,UACRgB,OAAOpB,YAAAA,MAAMC,OAAOoB;AAAAA,UACpBtB,YAAYC,YAAAA,MAAMC,OAAO8B;AAAAA,UACzBF,QAAS,aAAY7B,YAAAA,MAAMC,OAAOU;AAAAA,QACpC;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF,CAAC;;;"}
|
|
@@ -9,12 +9,20 @@ const HvSimpleGrid = (props) => {
|
|
|
9
9
|
breakpoints,
|
|
10
10
|
spacing = "sm",
|
|
11
11
|
cols,
|
|
12
|
+
className,
|
|
12
13
|
...others
|
|
13
14
|
} = useDefaultProps.useDefaultProps("HvSimpleGrid", props);
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
const {
|
|
16
|
+
cx,
|
|
17
|
+
css
|
|
18
|
+
} = SimpleGrid_styles.useClasses();
|
|
19
|
+
const containerStyle = SimpleGrid_styles.getContainerStyle({
|
|
17
20
|
breakpoints,
|
|
21
|
+
spacing,
|
|
22
|
+
cols
|
|
23
|
+
});
|
|
24
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
25
|
+
className: cx(css(containerStyle), className),
|
|
18
26
|
...others,
|
|
19
27
|
children
|
|
20
28
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleGrid.cjs","sources":["../../../../src/components/SimpleGrid/SimpleGrid.tsx"],"sourcesContent":["import { HvBaseProps } from \"@core/types/generic\";\nimport { useDefaultProps } from \"@core/hooks/useDefaultProps\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"SimpleGrid.cjs","sources":["../../../../src/components/SimpleGrid/SimpleGrid.tsx"],"sourcesContent":["import { HvBaseProps } from \"@core/types/generic\";\nimport { useDefaultProps } from \"@core/hooks/useDefaultProps\";\n\nimport { Breakpoint, Spacing } from \"./types\";\nimport { getContainerStyle, useClasses } from \"./SimpleGrid.styles\";\n\nexport interface HvSimpleGridProps extends HvBaseProps {\n /**\n * Spacing with pre-defined values according the values defined in the theme\n */\n spacing?: Spacing;\n /**\n * Provide an array to define responsive behavior:\n *\n * maxWidth or minWidth: max-width or min-width at which media query will work\n *\n * cols: number of columns per row at given max-width\n *\n * spacing: optional spacing at given max-width, if not provided spacing from component prop will be used instead\n */\n breakpoints?: Breakpoint[];\n /**\n * Number of how many columns the content will be displayed\n */\n cols?: number;\n}\n\nexport const HvSimpleGrid = (props: HvSimpleGridProps) => {\n const {\n children,\n breakpoints,\n spacing = \"sm\",\n cols,\n className,\n ...others\n } = useDefaultProps(\"HvSimpleGrid\", props);\n\n const { cx, css } = useClasses();\n\n const containerStyle = getContainerStyle({ breakpoints, spacing, cols });\n\n return (\n <div className={cx(css(containerStyle), className)} {...others}>\n {children}\n </div>\n );\n};\n"],"names":["HvSimpleGrid","props","children","breakpoints","spacing","cols","className","others","useDefaultProps","cx","css","useClasses","containerStyle","getContainerStyle"],"mappings":";;;;;AA2BaA,MAAAA,eAAeA,CAACC,UAA6B;AAClD,QAAA;AAAA,IACJC;AAAAA,IACAC;AAAAA,IACAC,UAAU;AAAA,IACVC;AAAAA,IACAC;AAAAA,IACA,GAAGC;AAAAA,EAAAA,IACDC,gBAAgB,gBAAA,gBAAgBP,KAAK;AAEnC,QAAA;AAAA,IAAEQ;AAAAA,IAAIC;AAAAA,MAAQC,kBAAW,WAAA;AAE/B,QAAMC,iBAAiBC,kBAAAA,kBAAkB;AAAA,IAAEV;AAAAA,IAAaC;AAAAA,IAASC;AAAAA,EAAAA,CAAM;AAEvE,wCACE,OAAA;AAAA,IAAKC,WAAWG,GAAGC,IAAIE,cAAc,GAAGN,SAAS;AAAA,IAAE,GAAKC;AAAAA,IAAML;AAAAA,EAAAA,CAEzD;AAET;;"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const _styled = require("@emotion/styled/base");
|
|
4
3
|
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
4
|
+
const classes = require("../../utils/classes.cjs");
|
|
5
|
+
const {
|
|
6
|
+
staticClasses,
|
|
7
|
+
useClasses
|
|
8
|
+
} = classes.createClasses("HvSimpleGrid", {});
|
|
7
9
|
function size(props) {
|
|
8
10
|
if (typeof props.size === "number") {
|
|
9
11
|
return props.size;
|
|
@@ -24,32 +26,31 @@ function getSortedBreakpoints(breakpoints) {
|
|
|
24
26
|
}));
|
|
25
27
|
return property === "minWidth" ? sorted.reverse() : sorted;
|
|
26
28
|
}
|
|
27
|
-
const
|
|
28
|
-
target: "e3u1m6d0"
|
|
29
|
-
} : {
|
|
30
|
-
target: "e3u1m6d0",
|
|
31
|
-
label: "StyledContainer"
|
|
32
|
-
})(({
|
|
29
|
+
const getContainerStyle = ({
|
|
33
30
|
breakpoints,
|
|
34
31
|
spacing,
|
|
35
32
|
cols
|
|
36
|
-
}) =>
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
54
|
-
|
|
33
|
+
}) => {
|
|
34
|
+
return {
|
|
35
|
+
boxSizing: "border-box",
|
|
36
|
+
display: "grid",
|
|
37
|
+
gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))`,
|
|
38
|
+
gap: uikitStyles.theme.space[spacing],
|
|
39
|
+
...breakpoints && getSortedBreakpoints(breakpoints).reduce((acc, breakpoint) => {
|
|
40
|
+
const property = "maxWidth" in breakpoint ? "max-width" : "min-width";
|
|
41
|
+
const breakpointSize = size({
|
|
42
|
+
size: property === "max-width" ? breakpoint.maxWidth : breakpoint.minWidth,
|
|
43
|
+
sizes: uikitStyles.theme.breakpoints
|
|
44
|
+
});
|
|
45
|
+
acc[`@media (${property}: ${breakpointSize + (property === "max-width" ? 0 : 1)}px)`] = {
|
|
46
|
+
gridTemplateColumns: `repeat(${breakpoint.cols}, minmax(0, 1fr))`,
|
|
47
|
+
gap: uikitStyles.theme.space[spacing]
|
|
48
|
+
};
|
|
49
|
+
return acc;
|
|
50
|
+
}, {})
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
exports.getContainerStyle = getContainerStyle;
|
|
54
|
+
exports.staticClasses = staticClasses;
|
|
55
|
+
exports.useClasses = useClasses;
|
|
55
56
|
//# sourceMappingURL=SimpleGrid.styles.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SimpleGrid.styles.cjs","sources":["../../../../src/components/SimpleGrid/SimpleGrid.styles.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"SimpleGrid.styles.cjs","sources":["../../../../src/components/SimpleGrid/SimpleGrid.styles.tsx"],"sourcesContent":["import { CSSObject } from \"@emotion/serialize\";\n\nimport { theme } from \"@hitachivantara/uikit-styles\";\n\nimport { createClasses } from \"@core/utils/classes\";\n\nimport { Spacing, Breakpoint } from \"./types\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvSimpleGrid\", {});\n\nfunction size(props: { size: any; sizes: any }) {\n if (typeof props.size === \"number\") {\n return props.size;\n }\n\n return props.sizes[props.size] || props.size || props.sizes.md;\n}\n\nfunction getSortedBreakpoints(breakpoints: Breakpoint[]) {\n if (breakpoints.length === 0) {\n return breakpoints;\n }\n\n const property = \"maxWidth\" in breakpoints[0] ? \"maxWidth\" : \"minWidth\";\n const sorted = [...breakpoints].sort(\n (a, b) =>\n size({ size: b[property], sizes: theme.breakpoints }) -\n size({ size: a[property], sizes: theme.breakpoints })\n );\n\n return property === \"minWidth\" ? sorted.reverse() : sorted;\n}\n\nexport const getContainerStyle = ({\n breakpoints,\n spacing,\n cols,\n}: {\n breakpoints?: Breakpoint[];\n spacing: Spacing;\n cols?: number;\n}): CSSObject => {\n return {\n boxSizing: \"border-box\",\n display: \"grid\",\n gridTemplateColumns: `repeat(${cols}, minmax(0, 1fr))`,\n gap: theme.space[spacing],\n ...(breakpoints &&\n getSortedBreakpoints(breakpoints).reduce((acc, breakpoint) => {\n const property = \"maxWidth\" in breakpoint ? \"max-width\" : \"min-width\";\n const breakpointSize = size({\n size:\n property === \"max-width\"\n ? breakpoint.maxWidth\n : breakpoint.minWidth,\n sizes: theme.breakpoints,\n });\n\n acc[\n `@media (${property}: ${\n breakpointSize + (property === \"max-width\" ? 0 : 1)\n }px)`\n ] = {\n gridTemplateColumns: `repeat(${breakpoint.cols}, minmax(0, 1fr))`,\n gap: theme.space[spacing],\n };\n\n return acc;\n }, {})),\n };\n};\n"],"names":["staticClasses","useClasses","createClasses","size","props","sizes","md","getSortedBreakpoints","breakpoints","length","property","sorted","sort","a","b","theme","reverse","getContainerStyle","spacing","cols","boxSizing","display","gridTemplateColumns","gap","space","reduce","acc","breakpoint","breakpointSize","maxWidth","minWidth"],"mappings":";;;;AAQa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,QAAAA,cAAc,gBAAgB,EAAE;AAE7E,SAASC,KAAKC,OAAkC;AAC1C,MAAA,OAAOA,MAAMD,SAAS,UAAU;AAClC,WAAOC,MAAMD;AAAAA,EACf;AAEOC,SAAAA,MAAMC,MAAMD,MAAMD,IAAI,KAAKC,MAAMD,QAAQC,MAAMC,MAAMC;AAC9D;AAEA,SAASC,qBAAqBC,aAA2B;AACnDA,MAAAA,YAAYC,WAAW,GAAG;AACrBD,WAAAA;AAAAA,EACT;AAEA,QAAME,WAAW,cAAcF,YAAY,CAAC,IAAI,aAAa;AACvDG,QAAAA,SAAS,CAAC,GAAGH,WAAW,EAAEI,KAC9B,CAACC,GAAGC,MACFX,KAAK;AAAA,IAAEA,MAAMW,EAAEJ,QAAQ;AAAA,IAAGL,OAAOU,YAAMP,MAAAA;AAAAA,EAAa,CAAA,IACpDL,KAAK;AAAA,IAAEA,MAAMU,EAAEH,QAAQ;AAAA,IAAGL,OAAOU,YAAMP,MAAAA;AAAAA,EAAa,CAAA,CACxD;AAEA,SAAOE,aAAa,aAAaC,OAAOK,QAAAA,IAAYL;AACtD;AAEO,MAAMM,oBAAoBA,CAAC;AAAA,EAChCT;AAAAA,EACAU;AAAAA,EACAC;AAKF,MAAiB;AACR,SAAA;AAAA,IACLC,WAAW;AAAA,IACXC,SAAS;AAAA,IACTC,qBAAsB,UAASH;AAAAA,IAC/BI,KAAKR,YAAAA,MAAMS,MAAMN,OAAO;AAAA,IACxB,GAAIV,eACFD,qBAAqBC,WAAW,EAAEiB,OAAO,CAACC,KAAKC,eAAe;AACtDjB,YAAAA,WAAW,cAAciB,aAAa,cAAc;AAC1D,YAAMC,iBAAiBzB,KAAK;AAAA,QAC1BA,MACEO,aAAa,cACTiB,WAAWE,WACXF,WAAWG;AAAAA,QACjBzB,OAAOU,YAAMP,MAAAA;AAAAA,MAAAA,CACd;AAEDkB,UACG,WAAUhB,aACTkB,kBAAkBlB,aAAa,cAAc,IAAI,OAC9C,IACH;AAAA,QACFY,qBAAsB,UAASK,WAAWR;AAAAA,QAC1CI,KAAKR,YAAAA,MAAMS,MAAMN,OAAO;AAAA,MAAA;AAGnBQ,aAAAA;AAAAA,IACT,GAAG,EAAE;AAAA,EAAA;AAEX;;;;"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const _styled = require("@emotion/styled/base");
|
|
4
4
|
const uikitStyles = require("@hitachivantara/uikit-styles");
|
|
5
|
-
const ListItem = require("../../ListContainer/ListItem/ListItem.cjs");
|
|
6
5
|
const ListItem_styles = require("../../ListContainer/ListItem/ListItem.styles.cjs");
|
|
6
|
+
const ListItem = require("../../ListContainer/ListItem/ListItem.cjs");
|
|
7
7
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
8
8
|
const _styled__default = /* @__PURE__ */ _interopDefault(_styled);
|
|
9
9
|
const StyledListItem = /* @__PURE__ */ _styled__default.default(ListItem.HvListItem, process.env.NODE_ENV === "production" ? {
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -8,7 +8,7 @@ const utils = require("./components/Typography/utils.cjs");
|
|
|
8
8
|
const Typography_styles = require("./components/Typography/Typography.styles.cjs");
|
|
9
9
|
const Typography = require("./components/Typography/Typography.cjs");
|
|
10
10
|
const Box = require("./components/Box/Box.cjs");
|
|
11
|
-
const
|
|
11
|
+
const Focus_styles = require("./components/Focus/Focus.styles.cjs");
|
|
12
12
|
const Focus = require("./components/Focus/Focus.cjs");
|
|
13
13
|
const ListContainer_styles = require("./components/ListContainer/ListContainer.styles.cjs");
|
|
14
14
|
const ListContainer = require("./components/ListContainer/ListContainer.cjs");
|
|
@@ -93,7 +93,7 @@ const Link_styles = require("./components/Link/Link.styles.cjs");
|
|
|
93
93
|
const Link = require("./components/Link/Link.cjs");
|
|
94
94
|
const Loading_styles = require("./components/Loading/Loading.styles.cjs");
|
|
95
95
|
const Loading = require("./components/Loading/Loading.cjs");
|
|
96
|
-
const
|
|
96
|
+
const MultiButton_styles = require("./components/MultiButton/MultiButton.styles.cjs");
|
|
97
97
|
const MultiButton = require("./components/MultiButton/MultiButton.cjs");
|
|
98
98
|
const Panel_styles = require("./components/Panel/Panel.styles.cjs");
|
|
99
99
|
const Panel = require("./components/Panel/Panel.cjs");
|
|
@@ -137,7 +137,7 @@ const TagsInput_styles = require("./components/TagsInput/TagsInput.styles.cjs");
|
|
|
137
137
|
const TagsInput = require("./components/TagsInput/TagsInput.cjs");
|
|
138
138
|
const CheckBoxGroup_styles = require("./components/CheckBoxGroup/CheckBoxGroup.styles.cjs");
|
|
139
139
|
const CheckBoxGroup = require("./components/CheckBoxGroup/CheckBoxGroup.cjs");
|
|
140
|
-
const
|
|
140
|
+
const List_styles = require("./components/List/List.styles.cjs");
|
|
141
141
|
const List = require("./components/List/List.cjs");
|
|
142
142
|
const RadioGroup_styles = require("./components/RadioGroup/RadioGroup.styles.cjs");
|
|
143
143
|
const RadioGroup = require("./components/RadioGroup/RadioGroup.cjs");
|
|
@@ -315,7 +315,7 @@ exports.typographyVariants = utils.typographyVariants;
|
|
|
315
315
|
exports.typographyClasses = Typography_styles.staticClasses;
|
|
316
316
|
exports.HvTypography = Typography.HvTypography;
|
|
317
317
|
exports.HvBox = Box.HvBox;
|
|
318
|
-
exports.focusClasses =
|
|
318
|
+
exports.focusClasses = Focus_styles.staticClasses;
|
|
319
319
|
exports.HvFocus = Focus.HvFocus;
|
|
320
320
|
exports.listContainerClasses = ListContainer_styles.staticClasses;
|
|
321
321
|
exports.HvListContainer = ListContainer.HvListContainer;
|
|
@@ -413,7 +413,7 @@ exports.linkClasses = Link_styles.staticClasses;
|
|
|
413
413
|
exports.HvLink = Link.HvLink;
|
|
414
414
|
exports.loadingClasses = Loading_styles.staticClasses;
|
|
415
415
|
exports.HvLoading = Loading.HvLoading;
|
|
416
|
-
exports.multiButtonClasses =
|
|
416
|
+
exports.multiButtonClasses = MultiButton_styles.staticClasses;
|
|
417
417
|
exports.HvMultiButton = MultiButton.HvMultiButton;
|
|
418
418
|
exports.panelClasses = Panel_styles.staticClasses;
|
|
419
419
|
exports.HvPanel = Panel.HvPanel;
|
|
@@ -458,7 +458,7 @@ exports.tagsInputClasses = TagsInput_styles.staticClasses;
|
|
|
458
458
|
exports.HvTagsInput = TagsInput.HvTagsInput;
|
|
459
459
|
exports.checkBoxGroupClasses = CheckBoxGroup_styles.staticClasses;
|
|
460
460
|
exports.HvCheckBoxGroup = CheckBoxGroup.HvCheckBoxGroup;
|
|
461
|
-
exports.listClasses =
|
|
461
|
+
exports.listClasses = List_styles.staticClasses;
|
|
462
462
|
exports.HvList = List.HvList;
|
|
463
463
|
exports.radioGroupClasses = RadioGroup_styles.staticClasses;
|
|
464
464
|
exports.HvRadioGroup = RadioGroup.HvRadioGroup;
|
|
@@ -27,7 +27,6 @@ const HvBadge = (props) => {
|
|
|
27
27
|
children: text
|
|
28
28
|
});
|
|
29
29
|
return /* @__PURE__ */ jsxs("div", {
|
|
30
|
-
"aria-label": renderedCountOrLabel == null ? void 0 : renderedCountOrLabel.toString(),
|
|
31
30
|
className: cx(classes.root, className),
|
|
32
31
|
...others,
|
|
33
32
|
children: [Component, /* @__PURE__ */ jsx("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sources":["../../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import {\n HvTypography,\n HvTypographyVariants,\n} from \"@core/components/Typography\";\nimport { useDefaultProps } from \"@core/hooks/useDefaultProps\";\nimport { HvBaseProps } from \"@core/types/generic\";\nimport { ExtractNames } from \"@core/utils/classes\";\n\nimport { staticClasses, useClasses } from \"./Badge.styles\";\n\nexport { staticClasses as badgeClasses };\n\nexport type HvBadgeClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvBadgeProps extends HvBaseProps {\n /**\n * Count is the number of unread notifications.\n * Note count and label are mutually exclusive.\n * count is ignored when label is specified at the same time.\n */\n count?: number;\n /**\n * True if count should be displayed.\n * Note showCount and label are mutually exclusive.\n * showCount is ignored when label is specified at the same time.\n */\n showCount?: boolean;\n /** The maximum number of unread notifications to be displayed */\n maxCount?: number;\n /**\n * Custom text to show in place of count.\n * Note showCount and label are mutually exclusive.\n * showCount is ignored when label is specified at the same time.\n */\n label?: string;\n /** Icon which the notification will be attached. */\n icon?: React.ReactNode;\n /** Text which the notification will be attached. */\n text?: string;\n /** Text variant. */\n textVariant?: HvTypographyVariants;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvBadgeClasses;\n}\n\n/**\n * The badge is a component used to notify the user that something has occurred, in the app context.\n */\nexport const HvBadge = (props: HvBadgeProps) => {\n const {\n classes: classesProp,\n className,\n showCount = false,\n count = 0,\n maxCount = 99,\n label = null,\n icon = null,\n text = null,\n textVariant = undefined,\n ...others\n } = useDefaultProps(\"HvBadge\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const renderedCount = count > maxCount ? `${maxCount}+` : count;\n // If label is specified and non-empty, render it.\n // If showCount is specified and count > 0, render the count.\n // Otherwise, render nothing on the badge.\n // (Note count=0 should not be rendered to avoid ghosty 0.)\n const renderedCountOrLabel =\n label || (showCount && count > 0 && renderedCount) || null;\n const Component =\n icon || (text && <HvTypography variant={textVariant}>{text}</HvTypography>);\n\n return (\n <div
|
|
1
|
+
{"version":3,"file":"Badge.js","sources":["../../../../src/components/Badge/Badge.tsx"],"sourcesContent":["import {\n HvTypography,\n HvTypographyVariants,\n} from \"@core/components/Typography\";\nimport { useDefaultProps } from \"@core/hooks/useDefaultProps\";\nimport { HvBaseProps } from \"@core/types/generic\";\nimport { ExtractNames } from \"@core/utils/classes\";\n\nimport { staticClasses, useClasses } from \"./Badge.styles\";\n\nexport { staticClasses as badgeClasses };\n\nexport type HvBadgeClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvBadgeProps extends HvBaseProps {\n /**\n * Count is the number of unread notifications.\n * Note count and label are mutually exclusive.\n * count is ignored when label is specified at the same time.\n */\n count?: number;\n /**\n * True if count should be displayed.\n * Note showCount and label are mutually exclusive.\n * showCount is ignored when label is specified at the same time.\n */\n showCount?: boolean;\n /** The maximum number of unread notifications to be displayed */\n maxCount?: number;\n /**\n * Custom text to show in place of count.\n * Note showCount and label are mutually exclusive.\n * showCount is ignored when label is specified at the same time.\n */\n label?: string;\n /** Icon which the notification will be attached. */\n icon?: React.ReactNode;\n /** Text which the notification will be attached. */\n text?: string;\n /** Text variant. */\n textVariant?: HvTypographyVariants;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvBadgeClasses;\n}\n\n/**\n * The badge is a component used to notify the user that something has occurred, in the app context.\n */\nexport const HvBadge = (props: HvBadgeProps) => {\n const {\n classes: classesProp,\n className,\n showCount = false,\n count = 0,\n maxCount = 99,\n label = null,\n icon = null,\n text = null,\n textVariant = undefined,\n ...others\n } = useDefaultProps(\"HvBadge\", props);\n\n const { classes, cx } = useClasses(classesProp);\n\n const renderedCount = count > maxCount ? `${maxCount}+` : count;\n // If label is specified and non-empty, render it.\n // If showCount is specified and count > 0, render the count.\n // Otherwise, render nothing on the badge.\n // (Note count=0 should not be rendered to avoid ghosty 0.)\n const renderedCountOrLabel =\n label || (showCount && count > 0 && renderedCount) || null;\n const Component =\n icon || (text && <HvTypography variant={textVariant}>{text}</HvTypography>);\n\n return (\n <div className={cx(classes.root, className)} {...others}>\n {Component}\n <div className={Component ? classes.badgeContainer : undefined}>\n <div\n className={cx(classes.badgePosition, {\n [classes.badge]: !!(count > 0 || renderedCountOrLabel),\n [classes.showCount]: !!(!label && renderedCountOrLabel),\n [classes.showLabel]: !!label,\n [classes.badgeIcon]: !!icon,\n [classes.badgeOneDigit]: String(renderedCountOrLabel).length === 1,\n })}\n >\n {renderedCountOrLabel}\n </div>\n </div>\n </div>\n );\n};\n"],"names":["HvBadge","props","classes","classesProp","className","showCount","count","maxCount","label","icon","text","textVariant","undefined","others","useDefaultProps","cx","useClasses","renderedCount","renderedCountOrLabel","Component","_jsx","HvTypography","variant","children","root","badgeContainer","badgePosition","badge","showLabel","badgeIcon","badgeOneDigit","String","length"],"mappings":";;;;;AAgDaA,MAAAA,UAAUA,CAACC,UAAwB;AACxC,QAAA;AAAA,IACJC,SAASC;AAAAA,IACTC;AAAAA,IACAC,YAAY;AAAA,IACZC,QAAQ;AAAA,IACRC,WAAW;AAAA,IACXC,QAAQ;AAAA,IACRC,OAAO;AAAA,IACPC,OAAO;AAAA,IACPC,cAAcC;AAAAA,IACd,GAAGC;AAAAA,EAAAA,IACDC,gBAAgB,WAAWb,KAAK;AAE9B,QAAA;AAAA,IAAEC;AAAAA,IAASa;AAAAA,EAAAA,IAAOC,WAAWb,WAAW;AAE9C,QAAMc,gBAAgBX,QAAQC,WAAY,GAAEA,cAAcD;AAK1D,QAAMY,uBACJV,SAAUH,aAAaC,QAAQ,KAAKW,iBAAkB;AACxD,QAAME,YACJV,QAASC,QAAQU,oBAACC,cAAY;AAAA,IAACC,SAASX;AAAAA,IAAYY,UAAEb;AAAAA,EAAAA,CAAmB;AAE3E,8BACE,OAAA;AAAA,IAAKN,WAAWW,GAAGb,QAAQsB,MAAMpB,SAAS;AAAA,IAAE,GAAKS;AAAAA,IAAMU,UAAA,CACpDJ,WACDC,oBAAA,OAAA;AAAA,MAAKhB,WAAWe,YAAYjB,QAAQuB,iBAAiBb;AAAAA,MAAUW,8BAC7D,OAAA;AAAA,QACEnB,WAAWW,GAAGb,QAAQwB,eAAe;AAAA,UACnC,CAACxB,QAAQyB,KAAK,GAAG,CAAC,EAAErB,QAAQ,KAAKY;AAAAA,UACjC,CAAChB,QAAQG,SAAS,GAAG,CAAC,EAAE,CAACG,SAASU;A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