@pingux/astro 2.147.1-alpha.1 → 2.148.0-alpha.1
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/lib/cjs/components/Badge/Badge.styles.d.ts +5 -1
- package/lib/cjs/components/Badge/Badge.styles.js +6 -2
- package/lib/cjs/components/IconButton/IconButton.styles.d.ts +38 -0
- package/lib/cjs/components/IconButton/IconButton.styles.js +8 -7
- package/lib/cjs/components/ListBox/Option.js +7 -3
- package/lib/cjs/components/Modal/Convenience/ModalBody.stories.d.ts +7 -0
- package/lib/cjs/components/Modal/Convenience/ModalBody.stories.js +30 -0
- package/lib/cjs/components/Modal/Convenience/ModalFooter.stories.d.ts +5 -0
- package/lib/cjs/components/Modal/Convenience/ModalFooter.stories.js +35 -0
- package/lib/cjs/components/Modal/Convenience/ModalHeader.stories.d.ts +5 -0
- package/lib/cjs/components/Modal/Convenience/ModalHeader.stories.js +36 -0
- package/lib/cjs/components/Modal/Modal.js +13 -4
- package/lib/cjs/components/Modal/Modal.stories.d.ts +1 -0
- package/lib/cjs/components/Modal/Modal.stories.js +57 -47
- package/lib/cjs/components/Modal/Modal.styles.d.ts +43 -26
- package/lib/cjs/components/Modal/Modal.styles.js +41 -28
- package/lib/cjs/components/Modal/ModalBody.d.ts +9 -0
- package/lib/cjs/components/Modal/ModalBody.js +34 -0
- package/lib/cjs/components/Modal/ModalBody.test.d.ts +1 -0
- package/lib/cjs/components/Modal/ModalBody.test.js +64 -0
- package/lib/cjs/components/Modal/ModalFooter.d.ts +4 -0
- package/lib/cjs/components/Modal/ModalFooter.js +48 -0
- package/lib/cjs/components/Modal/ModalFooter.test.d.ts +1 -0
- package/lib/cjs/components/Modal/ModalFooter.test.js +98 -0
- package/lib/cjs/components/Modal/ModalHeader.d.ts +4 -0
- package/lib/cjs/components/Modal/ModalHeader.js +61 -0
- package/lib/cjs/components/Modal/ModalHeader.test.d.ts +1 -0
- package/lib/cjs/components/Modal/ModalHeader.test.js +96 -0
- package/lib/cjs/components/Modal/index.d.ts +3 -0
- package/lib/cjs/components/Modal/index.js +22 -1
- package/lib/cjs/components/Modal/tests/Modal.integration.test.js +4 -0
- package/lib/cjs/components/Modal/tests/Modal.unit.test.js +4 -0
- package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +0 -1
- package/lib/cjs/components/MultivaluesField/MultivaluesField.stories.js +8 -103
- package/lib/cjs/index.d.ts +1 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +55 -0
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +14 -2
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +24 -1
- package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +25 -2
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +0 -1
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +62 -23
- package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +3 -5
- package/lib/cjs/styles/themes/next-gen/variants/badges.js +5 -2
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +32 -6
- package/lib/cjs/styles/themes/next-gen/variants/button.js +6 -5
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +27 -12
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +28 -13
- package/lib/cjs/types/Modal.d.ts +19 -0
- package/lib/components/Badge/Badge.styles.js +6 -2
- package/lib/components/IconButton/IconButton.styles.js +9 -8
- package/lib/components/ListBox/Option.js +7 -3
- package/lib/components/Modal/Convenience/ModalBody.stories.js +20 -0
- package/lib/components/Modal/Convenience/ModalFooter.stories.js +25 -0
- package/lib/components/Modal/Convenience/ModalHeader.stories.js +26 -0
- package/lib/components/Modal/Modal.js +13 -4
- package/lib/components/Modal/Modal.stories.js +57 -48
- package/lib/components/Modal/Modal.styles.js +39 -27
- package/lib/components/Modal/ModalBody.js +20 -0
- package/lib/components/Modal/ModalBody.test.js +61 -0
- package/lib/components/Modal/ModalFooter.js +34 -0
- package/lib/components/Modal/ModalFooter.test.js +95 -0
- package/lib/components/Modal/ModalHeader.js +47 -0
- package/lib/components/Modal/ModalHeader.test.js +93 -0
- package/lib/components/Modal/index.js +4 -1
- package/lib/components/Modal/tests/Modal.integration.test.js +4 -0
- package/lib/components/Modal/tests/Modal.unit.test.js +4 -0
- package/lib/components/MultivaluesField/DefaultMultivaluesField.js +0 -1
- package/lib/components/MultivaluesField/MultivaluesField.stories.js +8 -103
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +14 -2
- package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +25 -2
- package/lib/styles/themes/next-gen/convertedComponentList.js +0 -1
- package/lib/styles/themes/next-gen/variants/badges.js +5 -2
- package/lib/styles/themes/next-gen/variants/button.js +6 -5
- package/lib/styles/themes/next-gen/variants/variants.js +28 -13
- package/package.json +1 -1
|
@@ -199,6 +199,7 @@ test('should only hide the top-most overlay', function () {
|
|
|
199
199
|
});
|
|
200
200
|
test('should render a close button if hasCloseButton is true', function () {
|
|
201
201
|
getComponent({
|
|
202
|
+
title: 'Lorem Ipsum',
|
|
202
203
|
hasCloseButton: true
|
|
203
204
|
});
|
|
204
205
|
expect(_testWrapper.screen.queryByRole('button')).toBeInTheDocument();
|
|
@@ -210,6 +211,7 @@ test('should render a custom close button if hasCloseButton is true and custom b
|
|
|
210
211
|
});
|
|
211
212
|
};
|
|
212
213
|
getComponent({
|
|
214
|
+
title: 'Lorem Ipsum',
|
|
213
215
|
hasCloseButton: true,
|
|
214
216
|
closeButton: (0, _react2.jsx)(MyButton, null)
|
|
215
217
|
});
|
|
@@ -218,6 +220,7 @@ test('should render a custom close button if hasCloseButton is true and custom b
|
|
|
218
220
|
});
|
|
219
221
|
test('shouldn\'t auto focus the first tabbable element', function () {
|
|
220
222
|
getComponent({
|
|
223
|
+
title: 'Lorem Ipsum',
|
|
221
224
|
hasCloseButton: true
|
|
222
225
|
});
|
|
223
226
|
var button = _testWrapper.screen.queryByRole('button');
|
|
@@ -225,6 +228,7 @@ test('shouldn\'t auto focus the first tabbable element', function () {
|
|
|
225
228
|
});
|
|
226
229
|
test('should auto focus the first tabbable element if "hasAutoFocus" is true', function () {
|
|
227
230
|
getComponent({
|
|
231
|
+
title: 'Lorem Ipsum',
|
|
228
232
|
hasCloseButton: true,
|
|
229
233
|
hasAutoFocus: true
|
|
230
234
|
});
|
|
@@ -414,7 +414,6 @@ var DefaultMultivaluesField = /*#__PURE__*/(0, _react.forwardRef)(function (prop
|
|
|
414
414
|
}, (0, _react2.jsx)(_.Badge, (0, _extends2["default"])({
|
|
415
415
|
key: item.key,
|
|
416
416
|
role: "presentation",
|
|
417
|
-
bg: "active",
|
|
418
417
|
variant: "selectedItemBadge",
|
|
419
418
|
label: item.name,
|
|
420
419
|
slots: item.slots
|
|
@@ -30,10 +30,11 @@ var _fill = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stabl
|
|
|
30
30
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/promise"));
|
|
31
31
|
var _setTimeout2 = _interopRequireDefault(require("@babel/runtime-corejs3/core-js-stable/set-timeout"));
|
|
32
32
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/asyncToGenerator"));
|
|
33
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
|
34
33
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
|
34
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
|
35
35
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
|
36
36
|
var _react = _interopRequireWildcard(require("react"));
|
|
37
|
+
var _PlusCircleMultipleOutlineIcon = _interopRequireDefault(require("@pingux/mdi-react/PlusCircleMultipleOutlineIcon"));
|
|
37
38
|
var _i18n = require("@react-aria/i18n");
|
|
38
39
|
var _storybookDocsLayout = _interopRequireDefault(require("../../../.storybook/storybookDocsLayout"));
|
|
39
40
|
var _users = require("../../api/users");
|
|
@@ -120,99 +121,6 @@ var _default = {
|
|
|
120
121
|
}
|
|
121
122
|
};
|
|
122
123
|
exports["default"] = _default;
|
|
123
|
-
var VariableIcon = function VariableIcon(props) {
|
|
124
|
-
return (0, _react2.jsx)("svg", (0, _extends2["default"])({
|
|
125
|
-
width: "16",
|
|
126
|
-
height: "16",
|
|
127
|
-
viewBox: "0 0 16 16",
|
|
128
|
-
fill: "none",
|
|
129
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
130
|
-
"aria-labelledby": "variable-icon-title"
|
|
131
|
-
}, props), (0, _react2.jsx)("title", {
|
|
132
|
-
id: "variable-icon-title"
|
|
133
|
-
}, "Variable Icon"), (0, _react2.jsx)("g", {
|
|
134
|
-
clipPath: "url(#clip0_709_18965)"
|
|
135
|
-
}, (0, _react2.jsx)("circle", {
|
|
136
|
-
cx: "8",
|
|
137
|
-
cy: "8",
|
|
138
|
-
r: "7.5",
|
|
139
|
-
fill: "white",
|
|
140
|
-
stroke: "#7AC7F2"
|
|
141
|
-
}), (0, _react2.jsx)("path", {
|
|
142
|
-
d: "M11.5042 4.25C12.0833 5.37917 12.3125 6.68333 12.1667 8C12.0833 9.31667 11.625 10.6208 10.8458 11.75L10.2083 11.3333C10.8792 10.3208 11.2708 9.16667 11.3333 8C11.475 6.83333 11.2875 5.67917 10.7917 4.66667L11.5042 4.25ZM5.15416 4.25L5.79166 4.66667C5.12083 5.67917 4.72916 6.83333 4.66666 8C4.525 9.16667 4.71666 10.3208 5.20833 11.3333L4.50416 11.75C3.92083 10.6208 3.6875 9.32083 3.83333 8C3.91666 6.68333 4.375 5.37917 5.15416 4.25ZM8.03333 7.45L9 6.10417H10.0542L8.47916 8.1875L9.39583 10.2375H8.45416L7.87916 8.83333L6.86666 10.2208H5.81666L7.44166 8.0875L6.55416 6.10417H7.5L8.03333 7.45Z",
|
|
143
|
-
fill: "#7AC7F2"
|
|
144
|
-
})), (0, _react2.jsx)("defs", null, (0, _react2.jsx)("clipPath", {
|
|
145
|
-
id: "clip0_709_18965"
|
|
146
|
-
}, (0, _react2.jsx)("rect", {
|
|
147
|
-
width: "16",
|
|
148
|
-
height: "16",
|
|
149
|
-
fill: "white"
|
|
150
|
-
}))));
|
|
151
|
-
};
|
|
152
|
-
var HTMLIcon = function HTMLIcon(props) {
|
|
153
|
-
return (0, _react2.jsx)("svg", (0, _extends2["default"])({
|
|
154
|
-
width: "16",
|
|
155
|
-
height: "16",
|
|
156
|
-
viewBox: "0 0 16 16",
|
|
157
|
-
fill: "none",
|
|
158
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
159
|
-
"aria-labelledby": "html-icon-title"
|
|
160
|
-
}, props), (0, _react2.jsx)("title", {
|
|
161
|
-
id: "html-icon-title"
|
|
162
|
-
}, "HTML Icon"), (0, _react2.jsx)("g", {
|
|
163
|
-
clipPath: "url(#clip0_709_18936)"
|
|
164
|
-
}, (0, _react2.jsx)("circle", {
|
|
165
|
-
cx: "8",
|
|
166
|
-
cy: "8",
|
|
167
|
-
r: "7.5",
|
|
168
|
-
fill: "white",
|
|
169
|
-
stroke: "#2E5EA6"
|
|
170
|
-
}), (0, _react2.jsx)("g", {
|
|
171
|
-
clipPath: "url(#clip1_709_18936)"
|
|
172
|
-
}, (0, _react2.jsx)("path", {
|
|
173
|
-
d: "M9.81667 8.83325C9.85 8.55825 9.875 8.28325 9.875 7.99992C9.875 7.71659 9.85 7.44159 9.81667 7.16659H11.225C11.2917 7.43325 11.3333 7.71242 11.3333 7.99992C11.3333 8.28742 11.2917 8.56659 11.225 8.83325H9.81667ZM9.07917 11.1499C9.32917 10.6874 9.52084 10.1874 9.65417 9.66659H10.8833C10.4833 10.3541 9.84584 10.8874 9.07917 11.1499ZM8.975 8.83325H7.025C6.98334 8.55825 6.95834 8.28325 6.95834 7.99992C6.95834 7.71659 6.98334 7.43742 7.025 7.16659H8.975C9.0125 7.43742 9.04167 7.71659 9.04167 7.99992C9.04167 8.28325 9.0125 8.55825 8.975 8.83325ZM8 11.3166C7.65417 10.8166 7.375 10.2624 7.20417 9.66659H8.79584C8.625 10.2624 8.34584 10.8166 8 11.3166ZM6.33334 6.33325H5.11667C5.5125 5.64159 6.15417 5.10825 6.91667 4.84992C6.66667 5.31242 6.47917 5.81242 6.33334 6.33325ZM5.11667 9.66659H6.33334C6.47917 10.1874 6.66667 10.6874 6.91667 11.1499C6.15417 10.8874 5.5125 10.3541 5.11667 9.66659ZM4.775 8.83325C4.70834 8.56659 4.66667 8.28742 4.66667 7.99992C4.66667 7.71242 4.70834 7.43325 4.775 7.16659H6.18334C6.15 7.44159 6.125 7.71659 6.125 7.99992C6.125 8.28325 6.15 8.55825 6.18334 8.83325H4.775ZM8 4.67909C8.34584 5.17909 8.625 5.73742 8.79584 6.33325H7.20417C7.375 5.73742 7.65417 5.17909 8 4.67909ZM10.8833 6.33325H9.65417C9.52084 5.81242 9.32917 5.31242 9.07917 4.84992C9.84584 5.11242 10.4833 5.64159 10.8833 6.33325ZM8 3.83325C5.69584 3.83325 3.83334 5.70825 3.83334 7.99992C3.83334 9.10499 4.27232 10.1648 5.05372 10.9462C5.44064 11.3331 5.89996 11.64 6.40549 11.8494C6.91101 12.0588 7.45283 12.1666 8 12.1666C9.10507 12.1666 10.1649 11.7276 10.9463 10.9462C11.7277 10.1648 12.1667 9.10499 12.1667 7.99992C12.1667 7.45274 12.0589 6.91093 11.8495 6.4054C11.6401 5.89988 11.3332 5.44055 10.9463 5.05364C10.5594 4.66673 10.1 4.35982 9.59452 4.15042C9.08899 3.94103 8.54718 3.83325 8 3.83325Z",
|
|
174
|
-
fill: "#4660A2"
|
|
175
|
-
}))), (0, _react2.jsx)("g", {
|
|
176
|
-
clipPath: "url(#clip2_709_18936)"
|
|
177
|
-
}, (0, _react2.jsx)("circle", {
|
|
178
|
-
cx: "8",
|
|
179
|
-
cy: "8",
|
|
180
|
-
r: "7.5",
|
|
181
|
-
fill: "white",
|
|
182
|
-
stroke: "#2E5EA6"
|
|
183
|
-
}), (0, _react2.jsx)("g", {
|
|
184
|
-
clipPath: "url(#clip3_709_18936)"
|
|
185
|
-
}, (0, _react2.jsx)("path", {
|
|
186
|
-
d: "M9.81667 8.83325C9.85 8.55825 9.875 8.28325 9.875 7.99992C9.875 7.71659 9.85 7.44159 9.81667 7.16659H11.225C11.2917 7.43325 11.3333 7.71242 11.3333 7.99992C11.3333 8.28742 11.2917 8.56659 11.225 8.83325H9.81667ZM9.07917 11.1499C9.32917 10.6874 9.52084 10.1874 9.65417 9.66659H10.8833C10.4833 10.3541 9.84584 10.8874 9.07917 11.1499ZM8.975 8.83325H7.025C6.98334 8.55825 6.95834 8.28325 6.95834 7.99992C6.95834 7.71659 6.98334 7.43742 7.025 7.16659H8.975C9.0125 7.43742 9.04167 7.71659 9.04167 7.99992C9.04167 8.28325 9.0125 8.55825 8.975 8.83325ZM8 11.3166C7.65417 10.8166 7.375 10.2624 7.20417 9.66659H8.79584C8.625 10.2624 8.34584 10.8166 8 11.3166ZM6.33334 6.33325H5.11667C5.5125 5.64159 6.15417 5.10825 6.91667 4.84992C6.66667 5.31242 6.47917 5.81242 6.33334 6.33325ZM5.11667 9.66659H6.33334C6.47917 10.1874 6.66667 10.6874 6.91667 11.1499C6.15417 10.8874 5.5125 10.3541 5.11667 9.66659ZM4.775 8.83325C4.70834 8.56659 4.66667 8.28742 4.66667 7.99992C4.66667 7.71242 4.70834 7.43325 4.775 7.16659H6.18334C6.15 7.44159 6.125 7.71659 6.125 7.99992C6.125 8.28325 6.15 8.55825 6.18334 8.83325H4.775ZM8 4.67909C8.34584 5.17909 8.625 5.73742 8.79584 6.33325H7.20417C7.375 5.73742 7.65417 5.17909 8 4.67909ZM10.8833 6.33325H9.65417C9.52084 5.81242 9.32917 5.31242 9.07917 4.84992C9.84584 5.11242 10.4833 5.64159 10.8833 6.33325ZM8 3.83325C5.69584 3.83325 3.83334 5.70825 3.83334 7.99992C3.83334 9.10499 4.27232 10.1648 5.05372 10.9462C5.44064 11.3331 5.89996 11.64 6.40549 11.8494C6.91101 12.0588 7.45283 12.1666 8 12.1666C9.10507 12.1666 10.1649 11.7276 10.9463 10.9462C11.7277 10.1648 12.1667 9.10499 12.1667 7.99992C12.1667 7.45274 12.0589 6.91093 11.8495 6.4054C11.6401 5.89988 11.3332 5.44055 10.9463 5.05364C10.5594 4.66673 10.1 4.35982 9.59452 4.15042C9.08899 3.94103 8.54718 3.83325 8 3.83325Z",
|
|
187
|
-
fill: "#4660A2"
|
|
188
|
-
}))), (0, _react2.jsx)("defs", null, (0, _react2.jsx)("clipPath", {
|
|
189
|
-
className: "clip0_709_18936"
|
|
190
|
-
}, (0, _react2.jsx)("rect", {
|
|
191
|
-
width: "16",
|
|
192
|
-
height: "16",
|
|
193
|
-
fill: "white"
|
|
194
|
-
})), (0, _react2.jsx)("clipPath", {
|
|
195
|
-
className: "clip1_709_18936"
|
|
196
|
-
}, (0, _react2.jsx)("rect", {
|
|
197
|
-
width: "10",
|
|
198
|
-
height: "10",
|
|
199
|
-
fill: "white",
|
|
200
|
-
transform: "translate(3 3)"
|
|
201
|
-
})), (0, _react2.jsx)("clipPath", {
|
|
202
|
-
className: "clip2_709_18936"
|
|
203
|
-
}, (0, _react2.jsx)("rect", {
|
|
204
|
-
width: "16",
|
|
205
|
-
height: "16",
|
|
206
|
-
fill: "white"
|
|
207
|
-
})), (0, _react2.jsx)("clipPath", {
|
|
208
|
-
className: "clip3_709_18936"
|
|
209
|
-
}, (0, _react2.jsx)("rect", {
|
|
210
|
-
width: "10",
|
|
211
|
-
height: "10",
|
|
212
|
-
fill: "white",
|
|
213
|
-
transform: "translate(3 3)"
|
|
214
|
-
}))));
|
|
215
|
-
};
|
|
216
124
|
var items = [{
|
|
217
125
|
id: 1,
|
|
218
126
|
name: 'Aardvark',
|
|
@@ -309,15 +217,14 @@ var itemsWithSlots = [{
|
|
|
309
217
|
name: 'Aardvark',
|
|
310
218
|
key: 'Aardvark',
|
|
311
219
|
badgeProps: {
|
|
312
|
-
variant: 'itemBadgeWithSlot'
|
|
313
|
-
bg: 'white'
|
|
220
|
+
variant: 'itemBadgeWithSlot'
|
|
314
221
|
},
|
|
315
222
|
buttonProps: {
|
|
316
223
|
variant: 'badgeDeleteButton'
|
|
317
224
|
},
|
|
318
225
|
slots: {
|
|
319
226
|
leftIcon: (0, _react2.jsx)(_index.Icon, {
|
|
320
|
-
icon:
|
|
227
|
+
icon: _PlusCircleMultipleOutlineIcon["default"],
|
|
321
228
|
size: 16
|
|
322
229
|
})
|
|
323
230
|
}
|
|
@@ -326,15 +233,14 @@ var itemsWithSlots = [{
|
|
|
326
233
|
name: 'Kangaroo',
|
|
327
234
|
key: 'Kangaroo',
|
|
328
235
|
badgeProps: {
|
|
329
|
-
variant: 'itemBadgeWithSlot'
|
|
330
|
-
bg: 'white'
|
|
236
|
+
variant: 'itemBadgeWithSlot'
|
|
331
237
|
},
|
|
332
238
|
buttonProps: {
|
|
333
239
|
variant: 'badgeDeleteButton'
|
|
334
240
|
},
|
|
335
241
|
slots: {
|
|
336
242
|
leftIcon: (0, _react2.jsx)(_index.Icon, {
|
|
337
|
-
icon:
|
|
243
|
+
icon: _PlusCircleMultipleOutlineIcon["default"],
|
|
338
244
|
size: 16
|
|
339
245
|
})
|
|
340
246
|
}
|
|
@@ -343,15 +249,14 @@ var itemsWithSlots = [{
|
|
|
343
249
|
name: 'Snake',
|
|
344
250
|
key: 'Snake',
|
|
345
251
|
badgeProps: {
|
|
346
|
-
variant: 'itemBadgeWithSlot'
|
|
347
|
-
bg: 'white'
|
|
252
|
+
variant: 'itemBadgeWithSlot'
|
|
348
253
|
},
|
|
349
254
|
buttonProps: {
|
|
350
255
|
variant: 'badgeDeleteButton'
|
|
351
256
|
},
|
|
352
257
|
slots: {
|
|
353
258
|
leftIcon: (0, _react2.jsx)(_index.Icon, {
|
|
354
|
-
icon:
|
|
259
|
+
icon: _PlusCircleMultipleOutlineIcon["default"],
|
|
355
260
|
size: 16
|
|
356
261
|
})
|
|
357
262
|
}
|
package/lib/cjs/index.d.ts
CHANGED
|
@@ -225,5 +225,5 @@ export { default as OnyxDarkTheme } from './styles/themeOverrides/nextGenDarkMod
|
|
|
225
225
|
export { default as NextGenTheme } from './styles/themes/next-gen';
|
|
226
226
|
export { default as OnyxTheme } from './styles/themes/next-gen';
|
|
227
227
|
export * from './types';
|
|
228
|
-
export { OverlayProvider, useOverlayPosition, useOverlayTrigger } from 'react-aria';
|
|
228
|
+
export { OverlayProvider, useOverlayPosition, useOverlayTrigger, } from 'react-aria';
|
|
229
229
|
export { Cell, Column, TableBody as DataTableBody, Cell as DataTableCell, Column as DataTableColumn, TableHeader as DataTableHeader, Row as DataTableRow, Item, Row, Section, TableBody as TBody, TableHeader as THead, useOverlayTriggerState, useTreeData, } from 'react-stately';
|
|
@@ -318,6 +318,29 @@ declare const buttons: {
|
|
|
318
318
|
};
|
|
319
319
|
};
|
|
320
320
|
};
|
|
321
|
+
modalHeaderCloseButton: {
|
|
322
|
+
path: {
|
|
323
|
+
fill: string;
|
|
324
|
+
};
|
|
325
|
+
'&.is-focused': {
|
|
326
|
+
outline: string;
|
|
327
|
+
outlineColor: string;
|
|
328
|
+
outlineOffset: string;
|
|
329
|
+
};
|
|
330
|
+
'&.is-hovered': {
|
|
331
|
+
path: {
|
|
332
|
+
fill: string;
|
|
333
|
+
};
|
|
334
|
+
backgroundColor: string;
|
|
335
|
+
};
|
|
336
|
+
'&.is-pressed': {
|
|
337
|
+
backgroundColor: string;
|
|
338
|
+
borderColor: string;
|
|
339
|
+
path: {
|
|
340
|
+
fill: string;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
343
|
+
};
|
|
321
344
|
messageCloseButton: {
|
|
322
345
|
'&.is-hovered': {
|
|
323
346
|
backgroundColor: string;
|
|
@@ -339,5 +362,37 @@ declare const buttons: {
|
|
|
339
362
|
};
|
|
340
363
|
};
|
|
341
364
|
};
|
|
365
|
+
modalCloseButton: {
|
|
366
|
+
path: {
|
|
367
|
+
fill: string;
|
|
368
|
+
};
|
|
369
|
+
'&.is-focused': {
|
|
370
|
+
outline: string;
|
|
371
|
+
outlineColor: string;
|
|
372
|
+
outlineOffset: string;
|
|
373
|
+
};
|
|
374
|
+
'&.is-hovered': {
|
|
375
|
+
path: {
|
|
376
|
+
fill: string;
|
|
377
|
+
};
|
|
378
|
+
backgroundColor: string;
|
|
379
|
+
};
|
|
380
|
+
'&.is-pressed': {
|
|
381
|
+
backgroundColor: string;
|
|
382
|
+
borderColor: string;
|
|
383
|
+
path: {
|
|
384
|
+
fill: string;
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
listBoxLink: {
|
|
389
|
+
color: string;
|
|
390
|
+
'&.is-pressed': {
|
|
391
|
+
color: string;
|
|
392
|
+
};
|
|
393
|
+
'&.is-focused': {
|
|
394
|
+
color: string;
|
|
395
|
+
};
|
|
396
|
+
};
|
|
342
397
|
};
|
|
343
398
|
export default buttons;
|
|
@@ -42,6 +42,7 @@ var baseIconButton = {
|
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
var hintButton = _objectSpread({}, baseIconButton);
|
|
45
|
+
var modalCloseButton = _objectSpread({}, baseIconButton);
|
|
45
46
|
var iconButtons = {
|
|
46
47
|
base: _objectSpread({}, baseIconButton),
|
|
47
48
|
inverted: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
|
@@ -85,6 +86,7 @@ var iconButtons = {
|
|
|
85
86
|
}
|
|
86
87
|
}),
|
|
87
88
|
modalCloseButton: _objectSpread({}, baseIconButton),
|
|
89
|
+
modalHeaderCloseButton: _objectSpread({}, baseIconButton),
|
|
88
90
|
messageCloseButton: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
|
89
91
|
'&.is-hovered': {
|
|
90
92
|
backgroundColor: '#455469'
|
|
@@ -278,11 +280,21 @@ var buttons = {
|
|
|
278
280
|
},
|
|
279
281
|
'&.is-focused': {
|
|
280
282
|
textDecoration: 'underline',
|
|
281
|
-
color: _chromaJs["default"].mix(_colorTokens.nextGenColors['blue-500'], 'white', 0.
|
|
283
|
+
color: _chromaJs["default"].mix(_colorTokens.nextGenColors['blue-500'], 'white', 0.3, 'rgb').hex(),
|
|
282
284
|
outline: 'none'
|
|
283
285
|
}
|
|
284
286
|
},
|
|
285
|
-
iconButtons: iconButtons
|
|
287
|
+
iconButtons: iconButtons,
|
|
288
|
+
modalCloseButton: modalCloseButton,
|
|
289
|
+
listBoxLink: {
|
|
290
|
+
color: 'blue-400',
|
|
291
|
+
'&.is-pressed': {
|
|
292
|
+
color: _chromaJs["default"].mix(_colorTokens.nextGenColors['blue-500'], 'white', 0.45, 'rgb').hex()
|
|
293
|
+
},
|
|
294
|
+
'&.is-focused': {
|
|
295
|
+
color: _chromaJs["default"].mix(_colorTokens.nextGenColors['blue-500'], 'white', 0.3, 'rgb').hex()
|
|
296
|
+
}
|
|
297
|
+
}
|
|
286
298
|
};
|
|
287
299
|
var _default = buttons;
|
|
288
300
|
exports["default"] = _default;
|
|
@@ -377,9 +377,26 @@ declare const _default: {
|
|
|
377
377
|
bg: string;
|
|
378
378
|
};
|
|
379
379
|
headingContainer: {
|
|
380
|
+
borderBottom: string;
|
|
381
|
+
borderBottomColor: string;
|
|
380
382
|
bg: string;
|
|
381
383
|
};
|
|
382
|
-
|
|
384
|
+
header: {
|
|
385
|
+
borderBottom: string;
|
|
386
|
+
borderBottomColor: string;
|
|
387
|
+
bg: string;
|
|
388
|
+
};
|
|
389
|
+
body: {
|
|
390
|
+
bg: string;
|
|
391
|
+
};
|
|
392
|
+
footer: {
|
|
393
|
+
borderTop: string;
|
|
394
|
+
borderTopColor: string;
|
|
395
|
+
bg: string;
|
|
396
|
+
};
|
|
397
|
+
footerContainer: {
|
|
398
|
+
borderTop: string;
|
|
399
|
+
borderTopColor: string;
|
|
383
400
|
bg: string;
|
|
384
401
|
};
|
|
385
402
|
};
|
|
@@ -471,6 +488,12 @@ declare const _default: {
|
|
|
471
488
|
color: string;
|
|
472
489
|
};
|
|
473
490
|
};
|
|
491
|
+
popoverMenu: {
|
|
492
|
+
container: {
|
|
493
|
+
background: string;
|
|
494
|
+
border: string;
|
|
495
|
+
};
|
|
496
|
+
};
|
|
474
497
|
dataTable: {
|
|
475
498
|
selectableTableRow: {
|
|
476
499
|
'&.is-selected': {
|
|
@@ -20,7 +20,7 @@ var listBox = {
|
|
|
20
20
|
container: {
|
|
21
21
|
backgroundColor: 'background.base',
|
|
22
22
|
border: '1px solid',
|
|
23
|
-
borderColor: '
|
|
23
|
+
borderColor: 'transparent',
|
|
24
24
|
borderRadius: '4px'
|
|
25
25
|
},
|
|
26
26
|
option: {
|
|
@@ -54,9 +54,26 @@ var modal = {
|
|
|
54
54
|
bg: 'background.base'
|
|
55
55
|
},
|
|
56
56
|
headingContainer: {
|
|
57
|
+
borderBottom: '1px solid',
|
|
58
|
+
borderBottomColor: 'border.base',
|
|
57
59
|
bg: 'background.base'
|
|
58
60
|
},
|
|
59
|
-
|
|
61
|
+
header: {
|
|
62
|
+
borderBottom: '1px solid',
|
|
63
|
+
borderBottomColor: 'border.base',
|
|
64
|
+
bg: 'background.base'
|
|
65
|
+
},
|
|
66
|
+
body: {
|
|
67
|
+
bg: 'background.base'
|
|
68
|
+
},
|
|
69
|
+
footer: {
|
|
70
|
+
borderTop: '1px solid',
|
|
71
|
+
borderTopColor: 'border.base',
|
|
72
|
+
bg: 'background.base'
|
|
73
|
+
},
|
|
74
|
+
footerContainer: {
|
|
75
|
+
borderTop: '1px solid',
|
|
76
|
+
borderTopColor: 'border.base',
|
|
60
77
|
bg: 'background.base'
|
|
61
78
|
}
|
|
62
79
|
};
|
|
@@ -170,6 +187,12 @@ var _default = {
|
|
|
170
187
|
skeleton: _skeleton["default"],
|
|
171
188
|
footer: _footer.footer,
|
|
172
189
|
tooltip: tooltip,
|
|
190
|
+
popoverMenu: {
|
|
191
|
+
container: {
|
|
192
|
+
background: '#23282e',
|
|
193
|
+
border: '1px solid #69788B'
|
|
194
|
+
}
|
|
195
|
+
},
|
|
173
196
|
dataTable: {
|
|
174
197
|
selectableTableRow: {
|
|
175
198
|
'&.is-selected': {
|
|
@@ -14,7 +14,6 @@ var componentSpecificNextGenBlacklist = {
|
|
|
14
14
|
OverlayPanel: ['Expandable'],
|
|
15
15
|
DataTable: ['Default'],
|
|
16
16
|
Text: ['Default'],
|
|
17
|
-
MultivaluesField: ['Icon Slots In Badge'],
|
|
18
17
|
Tabs: ['Vertical Orientation']
|
|
19
18
|
};
|
|
20
19
|
exports.componentSpecificNextGenBlacklist = componentSpecificNextGenBlacklist;
|
|
@@ -1296,9 +1296,38 @@ declare const _default: {
|
|
|
1296
1296
|
};
|
|
1297
1297
|
};
|
|
1298
1298
|
modalCloseButton: {
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1299
|
+
cursor: string;
|
|
1300
|
+
transition: string;
|
|
1301
|
+
outline: string;
|
|
1302
|
+
borderRadius: string;
|
|
1303
|
+
border: string;
|
|
1304
|
+
borderColor: string;
|
|
1305
|
+
path: {
|
|
1306
|
+
fill: string;
|
|
1307
|
+
};
|
|
1308
|
+
'&.is-focused': {
|
|
1309
|
+
outline: string;
|
|
1310
|
+
outlineColor: string;
|
|
1311
|
+
outlineOffset: string;
|
|
1312
|
+
};
|
|
1313
|
+
'&.is-hovered': {
|
|
1314
|
+
backgroundColor: string;
|
|
1315
|
+
path: {
|
|
1316
|
+
fill: string;
|
|
1317
|
+
};
|
|
1318
|
+
};
|
|
1319
|
+
'&.is-pressed': {
|
|
1320
|
+
backgroundColor: string;
|
|
1321
|
+
borderColor: string;
|
|
1322
|
+
path: {
|
|
1323
|
+
fill: string;
|
|
1324
|
+
};
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1327
|
+
modalHeaderCloseButton: {
|
|
1328
|
+
top: string;
|
|
1329
|
+
transform: string;
|
|
1330
|
+
right: string;
|
|
1302
1331
|
cursor: string;
|
|
1303
1332
|
transition: string;
|
|
1304
1333
|
outline: string;
|
|
@@ -1578,9 +1607,6 @@ declare const _default: {
|
|
|
1578
1607
|
};
|
|
1579
1608
|
};
|
|
1580
1609
|
modalCloseButton: {
|
|
1581
|
-
position: string;
|
|
1582
|
-
top: number;
|
|
1583
|
-
right: number;
|
|
1584
1610
|
cursor: string;
|
|
1585
1611
|
transition: string;
|
|
1586
1612
|
outline: string;
|
|
@@ -2861,6 +2887,9 @@ declare const _default: {
|
|
|
2861
2887
|
fontSize: string;
|
|
2862
2888
|
fontWeight: number;
|
|
2863
2889
|
};
|
|
2890
|
+
'& svg': {
|
|
2891
|
+
fill: string;
|
|
2892
|
+
};
|
|
2864
2893
|
border: string;
|
|
2865
2894
|
'& button': {
|
|
2866
2895
|
alignSelf: string;
|
|
@@ -2875,11 +2904,6 @@ declare const _default: {
|
|
|
2875
2904
|
};
|
|
2876
2905
|
};
|
|
2877
2906
|
};
|
|
2878
|
-
'& svg': {
|
|
2879
|
-
path: {
|
|
2880
|
-
fill: string;
|
|
2881
|
-
};
|
|
2882
|
-
};
|
|
2883
2907
|
alignItems: string;
|
|
2884
2908
|
justifyContent: string;
|
|
2885
2909
|
py: string;
|
|
@@ -4245,17 +4269,10 @@ declare const _default: {
|
|
|
4245
4269
|
modal: {
|
|
4246
4270
|
content: {
|
|
4247
4271
|
boxShadow: string;
|
|
4248
|
-
px: string;
|
|
4249
|
-
pb: string;
|
|
4250
|
-
pt: number;
|
|
4251
4272
|
borderRadius: string;
|
|
4252
4273
|
opacity: number;
|
|
4253
|
-
top: string;
|
|
4254
|
-
transform: string;
|
|
4255
4274
|
transition: string;
|
|
4256
4275
|
m: string[];
|
|
4257
|
-
maxHeight: string;
|
|
4258
|
-
overflowY: string;
|
|
4259
4276
|
'&.is-open-no-transition': {
|
|
4260
4277
|
opacity: string;
|
|
4261
4278
|
transform: string;
|
|
@@ -4285,13 +4302,35 @@ declare const _default: {
|
|
|
4285
4302
|
maxWidth: string[];
|
|
4286
4303
|
};
|
|
4287
4304
|
};
|
|
4288
|
-
|
|
4289
|
-
|
|
4305
|
+
headingContainer: {
|
|
4306
|
+
borderBottom: string;
|
|
4307
|
+
borderBottomColor: string;
|
|
4308
|
+
bg: string;
|
|
4309
|
+
borderRadius: string;
|
|
4290
4310
|
};
|
|
4291
4311
|
header: {
|
|
4292
|
-
|
|
4293
|
-
|
|
4294
|
-
|
|
4312
|
+
borderBottom: string;
|
|
4313
|
+
borderBottomColor: string;
|
|
4314
|
+
borderRadius: string;
|
|
4315
|
+
px: string;
|
|
4316
|
+
py: string;
|
|
4317
|
+
};
|
|
4318
|
+
bodyContainer: {
|
|
4319
|
+
p: string;
|
|
4320
|
+
};
|
|
4321
|
+
body: {
|
|
4322
|
+
p: string;
|
|
4323
|
+
};
|
|
4324
|
+
footer: {
|
|
4325
|
+
borderTop: string;
|
|
4326
|
+
borderTopColor: string;
|
|
4327
|
+
borderRadius: string;
|
|
4328
|
+
p: string;
|
|
4329
|
+
};
|
|
4330
|
+
footerContainer: {
|
|
4331
|
+
borderTop: string;
|
|
4332
|
+
borderTopColor: string;
|
|
4333
|
+
borderRadius: string;
|
|
4295
4334
|
};
|
|
4296
4335
|
};
|
|
4297
4336
|
navBar: {
|
|
@@ -787,6 +787,9 @@ export declare const badges: {
|
|
|
787
787
|
fontSize: string;
|
|
788
788
|
fontWeight: number;
|
|
789
789
|
};
|
|
790
|
+
'& svg': {
|
|
791
|
+
fill: string;
|
|
792
|
+
};
|
|
790
793
|
border: string;
|
|
791
794
|
'& button': {
|
|
792
795
|
alignSelf: string;
|
|
@@ -801,11 +804,6 @@ export declare const badges: {
|
|
|
801
804
|
};
|
|
802
805
|
};
|
|
803
806
|
};
|
|
804
|
-
'& svg': {
|
|
805
|
-
path: {
|
|
806
|
-
fill: string;
|
|
807
|
-
};
|
|
808
|
-
};
|
|
809
807
|
alignItems: string;
|
|
810
808
|
justifyContent: string;
|
|
811
809
|
py: string;
|
|
@@ -105,11 +105,14 @@ var readOnlyFieldBadge = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
|
|
|
105
105
|
})
|
|
106
106
|
});
|
|
107
107
|
var itemBadgeWithSlot = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
|
|
108
|
-
bg: '#
|
|
108
|
+
bg: '#EAF2FD !important',
|
|
109
109
|
fontWeight: 2,
|
|
110
110
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
111
111
|
color: 'text.primary'
|
|
112
|
-
})
|
|
112
|
+
}),
|
|
113
|
+
'& svg': {
|
|
114
|
+
fill: 'gray-900'
|
|
115
|
+
}
|
|
113
116
|
});
|
|
114
117
|
var badgeDeleteButton = _objectSpread(_objectSpread({}, _button["default"].iconButtons.base), {}, {
|
|
115
118
|
borderRadius: '50%',
|
|
@@ -1003,9 +1003,38 @@ declare const buttons: {
|
|
|
1003
1003
|
};
|
|
1004
1004
|
};
|
|
1005
1005
|
modalCloseButton: {
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1006
|
+
cursor: string;
|
|
1007
|
+
transition: string;
|
|
1008
|
+
outline: string;
|
|
1009
|
+
borderRadius: string;
|
|
1010
|
+
border: string;
|
|
1011
|
+
borderColor: string;
|
|
1012
|
+
path: {
|
|
1013
|
+
fill: string;
|
|
1014
|
+
};
|
|
1015
|
+
'&.is-focused': {
|
|
1016
|
+
outline: string;
|
|
1017
|
+
outlineColor: string;
|
|
1018
|
+
outlineOffset: string;
|
|
1019
|
+
};
|
|
1020
|
+
'&.is-hovered': {
|
|
1021
|
+
backgroundColor: string;
|
|
1022
|
+
path: {
|
|
1023
|
+
fill: string;
|
|
1024
|
+
};
|
|
1025
|
+
};
|
|
1026
|
+
'&.is-pressed': {
|
|
1027
|
+
backgroundColor: string;
|
|
1028
|
+
borderColor: string;
|
|
1029
|
+
path: {
|
|
1030
|
+
fill: string;
|
|
1031
|
+
};
|
|
1032
|
+
};
|
|
1033
|
+
};
|
|
1034
|
+
modalHeaderCloseButton: {
|
|
1035
|
+
top: string;
|
|
1036
|
+
transform: string;
|
|
1037
|
+
right: string;
|
|
1009
1038
|
cursor: string;
|
|
1010
1039
|
transition: string;
|
|
1011
1040
|
outline: string;
|
|
@@ -1285,9 +1314,6 @@ declare const buttons: {
|
|
|
1285
1314
|
};
|
|
1286
1315
|
};
|
|
1287
1316
|
modalCloseButton: {
|
|
1288
|
-
position: string;
|
|
1289
|
-
top: number;
|
|
1290
|
-
right: number;
|
|
1291
1317
|
cursor: string;
|
|
1292
1318
|
transition: string;
|
|
1293
1319
|
outline: string;
|
|
@@ -356,11 +356,7 @@ var baseIconButton = {
|
|
|
356
356
|
}
|
|
357
357
|
}
|
|
358
358
|
};
|
|
359
|
-
var modalCloseButton = _objectSpread(
|
|
360
|
-
position: 'absolute',
|
|
361
|
-
top: 32,
|
|
362
|
-
right: 18
|
|
363
|
-
});
|
|
359
|
+
var modalCloseButton = _objectSpread({}, baseIconButton);
|
|
364
360
|
var onyxIconButton = _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), secondary), {}, {
|
|
365
361
|
path: {
|
|
366
362
|
fill: 'blue'
|
|
@@ -451,6 +447,11 @@ var iconButtons = {
|
|
|
451
447
|
display: 'inline-flex'
|
|
452
448
|
}),
|
|
453
449
|
modalCloseButton: modalCloseButton,
|
|
450
|
+
modalHeaderCloseButton: _objectSpread(_objectSpread({}, modalCloseButton), {}, {
|
|
451
|
+
top: '50%',
|
|
452
|
+
transform: 'translateY(-50%)',
|
|
453
|
+
right: '16px'
|
|
454
|
+
}),
|
|
454
455
|
badge: {
|
|
455
456
|
deleteButton: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
|
456
457
|
borderRadius: '50%',
|