@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
|
@@ -13,8 +13,8 @@ import _reverseInstanceProperty from "@babel/runtime-corejs3/core-js-stable/inst
|
|
|
13
13
|
import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
|
|
14
14
|
import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
|
|
15
15
|
import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
|
|
16
|
-
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
17
16
|
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
|
17
|
+
import _slicedToArray from "@babel/runtime-corejs3/helpers/esm/slicedToArray";
|
|
18
18
|
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
|
19
19
|
import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
|
|
20
20
|
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
|
@@ -27,6 +27,7 @@ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyri
|
|
|
27
27
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
28
28
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context14, _context15; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context14 = ownKeys(Object(source), !0)).call(_context14, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context15 = ownKeys(Object(source))).call(_context15, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
29
|
import React, { useCallback, useEffect, useState } from 'react';
|
|
30
|
+
import PlusCircleMultipleOutlineIcon from '@pingux/mdi-react/PlusCircleMultipleOutlineIcon';
|
|
30
31
|
import { useFilter } from '@react-aria/i18n';
|
|
31
32
|
import DocsLayout from '../../../.storybook/storybookDocsLayout';
|
|
32
33
|
import { getAllUsers } from '../../api/users';
|
|
@@ -107,99 +108,6 @@ export default {
|
|
|
107
108
|
}
|
|
108
109
|
}
|
|
109
110
|
};
|
|
110
|
-
var VariableIcon = function VariableIcon(props) {
|
|
111
|
-
return ___EmotionJSX("svg", _extends({
|
|
112
|
-
width: "16",
|
|
113
|
-
height: "16",
|
|
114
|
-
viewBox: "0 0 16 16",
|
|
115
|
-
fill: "none",
|
|
116
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
117
|
-
"aria-labelledby": "variable-icon-title"
|
|
118
|
-
}, props), ___EmotionJSX("title", {
|
|
119
|
-
id: "variable-icon-title"
|
|
120
|
-
}, "Variable Icon"), ___EmotionJSX("g", {
|
|
121
|
-
clipPath: "url(#clip0_709_18965)"
|
|
122
|
-
}, ___EmotionJSX("circle", {
|
|
123
|
-
cx: "8",
|
|
124
|
-
cy: "8",
|
|
125
|
-
r: "7.5",
|
|
126
|
-
fill: "white",
|
|
127
|
-
stroke: "#7AC7F2"
|
|
128
|
-
}), ___EmotionJSX("path", {
|
|
129
|
-
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",
|
|
130
|
-
fill: "#7AC7F2"
|
|
131
|
-
})), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
|
|
132
|
-
id: "clip0_709_18965"
|
|
133
|
-
}, ___EmotionJSX("rect", {
|
|
134
|
-
width: "16",
|
|
135
|
-
height: "16",
|
|
136
|
-
fill: "white"
|
|
137
|
-
}))));
|
|
138
|
-
};
|
|
139
|
-
var HTMLIcon = function HTMLIcon(props) {
|
|
140
|
-
return ___EmotionJSX("svg", _extends({
|
|
141
|
-
width: "16",
|
|
142
|
-
height: "16",
|
|
143
|
-
viewBox: "0 0 16 16",
|
|
144
|
-
fill: "none",
|
|
145
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
146
|
-
"aria-labelledby": "html-icon-title"
|
|
147
|
-
}, props), ___EmotionJSX("title", {
|
|
148
|
-
id: "html-icon-title"
|
|
149
|
-
}, "HTML Icon"), ___EmotionJSX("g", {
|
|
150
|
-
clipPath: "url(#clip0_709_18936)"
|
|
151
|
-
}, ___EmotionJSX("circle", {
|
|
152
|
-
cx: "8",
|
|
153
|
-
cy: "8",
|
|
154
|
-
r: "7.5",
|
|
155
|
-
fill: "white",
|
|
156
|
-
stroke: "#2E5EA6"
|
|
157
|
-
}), ___EmotionJSX("g", {
|
|
158
|
-
clipPath: "url(#clip1_709_18936)"
|
|
159
|
-
}, ___EmotionJSX("path", {
|
|
160
|
-
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",
|
|
161
|
-
fill: "#4660A2"
|
|
162
|
-
}))), ___EmotionJSX("g", {
|
|
163
|
-
clipPath: "url(#clip2_709_18936)"
|
|
164
|
-
}, ___EmotionJSX("circle", {
|
|
165
|
-
cx: "8",
|
|
166
|
-
cy: "8",
|
|
167
|
-
r: "7.5",
|
|
168
|
-
fill: "white",
|
|
169
|
-
stroke: "#2E5EA6"
|
|
170
|
-
}), ___EmotionJSX("g", {
|
|
171
|
-
clipPath: "url(#clip3_709_18936)"
|
|
172
|
-
}, ___EmotionJSX("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
|
-
}))), ___EmotionJSX("defs", null, ___EmotionJSX("clipPath", {
|
|
176
|
-
className: "clip0_709_18936"
|
|
177
|
-
}, ___EmotionJSX("rect", {
|
|
178
|
-
width: "16",
|
|
179
|
-
height: "16",
|
|
180
|
-
fill: "white"
|
|
181
|
-
})), ___EmotionJSX("clipPath", {
|
|
182
|
-
className: "clip1_709_18936"
|
|
183
|
-
}, ___EmotionJSX("rect", {
|
|
184
|
-
width: "10",
|
|
185
|
-
height: "10",
|
|
186
|
-
fill: "white",
|
|
187
|
-
transform: "translate(3 3)"
|
|
188
|
-
})), ___EmotionJSX("clipPath", {
|
|
189
|
-
className: "clip2_709_18936"
|
|
190
|
-
}, ___EmotionJSX("rect", {
|
|
191
|
-
width: "16",
|
|
192
|
-
height: "16",
|
|
193
|
-
fill: "white"
|
|
194
|
-
})), ___EmotionJSX("clipPath", {
|
|
195
|
-
className: "clip3_709_18936"
|
|
196
|
-
}, ___EmotionJSX("rect", {
|
|
197
|
-
width: "10",
|
|
198
|
-
height: "10",
|
|
199
|
-
fill: "white",
|
|
200
|
-
transform: "translate(3 3)"
|
|
201
|
-
}))));
|
|
202
|
-
};
|
|
203
111
|
var items = [{
|
|
204
112
|
id: 1,
|
|
205
113
|
name: 'Aardvark',
|
|
@@ -296,15 +204,14 @@ var itemsWithSlots = [{
|
|
|
296
204
|
name: 'Aardvark',
|
|
297
205
|
key: 'Aardvark',
|
|
298
206
|
badgeProps: {
|
|
299
|
-
variant: 'itemBadgeWithSlot'
|
|
300
|
-
bg: 'white'
|
|
207
|
+
variant: 'itemBadgeWithSlot'
|
|
301
208
|
},
|
|
302
209
|
buttonProps: {
|
|
303
210
|
variant: 'badgeDeleteButton'
|
|
304
211
|
},
|
|
305
212
|
slots: {
|
|
306
213
|
leftIcon: ___EmotionJSX(Icon, {
|
|
307
|
-
icon:
|
|
214
|
+
icon: PlusCircleMultipleOutlineIcon,
|
|
308
215
|
size: 16
|
|
309
216
|
})
|
|
310
217
|
}
|
|
@@ -313,15 +220,14 @@ var itemsWithSlots = [{
|
|
|
313
220
|
name: 'Kangaroo',
|
|
314
221
|
key: 'Kangaroo',
|
|
315
222
|
badgeProps: {
|
|
316
|
-
variant: 'itemBadgeWithSlot'
|
|
317
|
-
bg: 'white'
|
|
223
|
+
variant: 'itemBadgeWithSlot'
|
|
318
224
|
},
|
|
319
225
|
buttonProps: {
|
|
320
226
|
variant: 'badgeDeleteButton'
|
|
321
227
|
},
|
|
322
228
|
slots: {
|
|
323
229
|
leftIcon: ___EmotionJSX(Icon, {
|
|
324
|
-
icon:
|
|
230
|
+
icon: PlusCircleMultipleOutlineIcon,
|
|
325
231
|
size: 16
|
|
326
232
|
})
|
|
327
233
|
}
|
|
@@ -330,15 +236,14 @@ var itemsWithSlots = [{
|
|
|
330
236
|
name: 'Snake',
|
|
331
237
|
key: 'Snake',
|
|
332
238
|
badgeProps: {
|
|
333
|
-
variant: 'itemBadgeWithSlot'
|
|
334
|
-
bg: 'white'
|
|
239
|
+
variant: 'itemBadgeWithSlot'
|
|
335
240
|
},
|
|
336
241
|
buttonProps: {
|
|
337
242
|
variant: 'badgeDeleteButton'
|
|
338
243
|
},
|
|
339
244
|
slots: {
|
|
340
245
|
leftIcon: ___EmotionJSX(Icon, {
|
|
341
|
-
icon:
|
|
246
|
+
icon: PlusCircleMultipleOutlineIcon,
|
|
342
247
|
size: 16
|
|
343
248
|
})
|
|
344
249
|
}
|
|
@@ -35,6 +35,7 @@ var baseIconButton = {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
var hintButton = _objectSpread({}, baseIconButton);
|
|
38
|
+
var modalCloseButton = _objectSpread({}, baseIconButton);
|
|
38
39
|
var iconButtons = {
|
|
39
40
|
base: _objectSpread({}, baseIconButton),
|
|
40
41
|
inverted: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
|
@@ -78,6 +79,7 @@ var iconButtons = {
|
|
|
78
79
|
}
|
|
79
80
|
}),
|
|
80
81
|
modalCloseButton: _objectSpread({}, baseIconButton),
|
|
82
|
+
modalHeaderCloseButton: _objectSpread({}, baseIconButton),
|
|
81
83
|
messageCloseButton: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
|
82
84
|
'&.is-hovered': {
|
|
83
85
|
backgroundColor: '#455469'
|
|
@@ -271,10 +273,20 @@ var buttons = {
|
|
|
271
273
|
},
|
|
272
274
|
'&.is-focused': {
|
|
273
275
|
textDecoration: 'underline',
|
|
274
|
-
color: chroma.mix(nextGenColors['blue-500'], 'white', 0.
|
|
276
|
+
color: chroma.mix(nextGenColors['blue-500'], 'white', 0.3, 'rgb').hex(),
|
|
275
277
|
outline: 'none'
|
|
276
278
|
}
|
|
277
279
|
},
|
|
278
|
-
iconButtons: iconButtons
|
|
280
|
+
iconButtons: iconButtons,
|
|
281
|
+
modalCloseButton: modalCloseButton,
|
|
282
|
+
listBoxLink: {
|
|
283
|
+
color: 'blue-400',
|
|
284
|
+
'&.is-pressed': {
|
|
285
|
+
color: chroma.mix(nextGenColors['blue-500'], 'white', 0.45, 'rgb').hex()
|
|
286
|
+
},
|
|
287
|
+
'&.is-focused': {
|
|
288
|
+
color: chroma.mix(nextGenColors['blue-500'], 'white', 0.3, 'rgb').hex()
|
|
289
|
+
}
|
|
290
|
+
}
|
|
279
291
|
};
|
|
280
292
|
export default buttons;
|
|
@@ -12,7 +12,7 @@ var listBox = {
|
|
|
12
12
|
container: {
|
|
13
13
|
backgroundColor: 'background.base',
|
|
14
14
|
border: '1px solid',
|
|
15
|
-
borderColor: '
|
|
15
|
+
borderColor: 'transparent',
|
|
16
16
|
borderRadius: '4px'
|
|
17
17
|
},
|
|
18
18
|
option: {
|
|
@@ -46,9 +46,26 @@ var modal = {
|
|
|
46
46
|
bg: 'background.base'
|
|
47
47
|
},
|
|
48
48
|
headingContainer: {
|
|
49
|
+
borderBottom: '1px solid',
|
|
50
|
+
borderBottomColor: 'border.base',
|
|
49
51
|
bg: 'background.base'
|
|
50
52
|
},
|
|
51
|
-
|
|
53
|
+
header: {
|
|
54
|
+
borderBottom: '1px solid',
|
|
55
|
+
borderBottomColor: 'border.base',
|
|
56
|
+
bg: 'background.base'
|
|
57
|
+
},
|
|
58
|
+
body: {
|
|
59
|
+
bg: 'background.base'
|
|
60
|
+
},
|
|
61
|
+
footer: {
|
|
62
|
+
borderTop: '1px solid',
|
|
63
|
+
borderTopColor: 'border.base',
|
|
64
|
+
bg: 'background.base'
|
|
65
|
+
},
|
|
66
|
+
footerContainer: {
|
|
67
|
+
borderTop: '1px solid',
|
|
68
|
+
borderTopColor: 'border.base',
|
|
52
69
|
bg: 'background.base'
|
|
53
70
|
}
|
|
54
71
|
};
|
|
@@ -162,6 +179,12 @@ export default {
|
|
|
162
179
|
skeleton: skeleton,
|
|
163
180
|
footer: footer,
|
|
164
181
|
tooltip: tooltip,
|
|
182
|
+
popoverMenu: {
|
|
183
|
+
container: {
|
|
184
|
+
background: '#23282e',
|
|
185
|
+
border: '1px solid #69788B'
|
|
186
|
+
}
|
|
187
|
+
},
|
|
165
188
|
dataTable: {
|
|
166
189
|
selectableTableRow: {
|
|
167
190
|
'&.is-selected': {
|
|
@@ -98,11 +98,14 @@ var readOnlyFieldBadge = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
|
|
|
98
98
|
})
|
|
99
99
|
});
|
|
100
100
|
var itemBadgeWithSlot = _objectSpread(_objectSpread({}, readOnlyBadge), {}, {
|
|
101
|
-
bg: '#
|
|
101
|
+
bg: '#EAF2FD !important',
|
|
102
102
|
fontWeight: 2,
|
|
103
103
|
'& span': _objectSpread(_objectSpread({}, badgeFont), {}, {
|
|
104
104
|
color: 'text.primary'
|
|
105
|
-
})
|
|
105
|
+
}),
|
|
106
|
+
'& svg': {
|
|
107
|
+
fill: 'gray-900'
|
|
108
|
+
}
|
|
106
109
|
});
|
|
107
110
|
export var badgeDeleteButton = _objectSpread(_objectSpread({}, buttons.iconButtons.base), {}, {
|
|
108
111
|
borderRadius: '50%',
|
|
@@ -348,11 +348,7 @@ var baseIconButton = {
|
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
350
|
};
|
|
351
|
-
var modalCloseButton = _objectSpread(
|
|
352
|
-
position: 'absolute',
|
|
353
|
-
top: 32,
|
|
354
|
-
right: 18
|
|
355
|
-
});
|
|
351
|
+
var modalCloseButton = _objectSpread({}, baseIconButton);
|
|
356
352
|
var onyxIconButton = _objectSpread(_objectSpread(_objectSpread({}, baseIconButton), secondary), {}, {
|
|
357
353
|
path: {
|
|
358
354
|
fill: 'blue'
|
|
@@ -443,6 +439,11 @@ var iconButtons = {
|
|
|
443
439
|
display: 'inline-flex'
|
|
444
440
|
}),
|
|
445
441
|
modalCloseButton: modalCloseButton,
|
|
442
|
+
modalHeaderCloseButton: _objectSpread(_objectSpread({}, modalCloseButton), {}, {
|
|
443
|
+
top: '50%',
|
|
444
|
+
transform: 'translateY(-50%)',
|
|
445
|
+
right: '16px'
|
|
446
|
+
}),
|
|
446
447
|
badge: {
|
|
447
448
|
deleteButton: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
|
448
449
|
borderRadius: '50%',
|
|
@@ -71,17 +71,10 @@ var modalSize = {
|
|
|
71
71
|
var modal = {
|
|
72
72
|
content: {
|
|
73
73
|
boxShadow: '0px 8px 16px 0px rgba(0, 0, 0, 0.5)',
|
|
74
|
-
|
|
75
|
-
pb: 'lg',
|
|
76
|
-
pt: 0,
|
|
77
|
-
borderRadius: '4px',
|
|
74
|
+
borderRadius: '1em',
|
|
78
75
|
opacity: 0,
|
|
79
|
-
top: '0',
|
|
80
|
-
transform: 'translate(0, -50px)',
|
|
81
76
|
transition: 'opacity 300ms ease, transform 500ms ease-out',
|
|
82
77
|
m: ['sm', 'sm', '1.75rem auto'],
|
|
83
|
-
maxHeight: 'calc(100vh - 3.5rem)',
|
|
84
|
-
overflowY: 'auto',
|
|
85
78
|
'&.is-open-no-transition': {
|
|
86
79
|
opacity: '100%',
|
|
87
80
|
transform: 'none'
|
|
@@ -111,13 +104,35 @@ var modal = {
|
|
|
111
104
|
maxWidth: modalSize.full
|
|
112
105
|
}
|
|
113
106
|
},
|
|
114
|
-
|
|
115
|
-
|
|
107
|
+
headingContainer: {
|
|
108
|
+
borderBottom: '1px solid',
|
|
109
|
+
borderBottomColor: 'gray-200',
|
|
110
|
+
bg: 'background.base',
|
|
111
|
+
borderRadius: '1em 1em 0px 0px'
|
|
116
112
|
},
|
|
117
113
|
header: {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
114
|
+
borderBottom: '1px solid',
|
|
115
|
+
borderBottomColor: 'gray-200',
|
|
116
|
+
borderRadius: '1em 1em 0px 0px',
|
|
117
|
+
px: 'lg',
|
|
118
|
+
py: 'md'
|
|
119
|
+
},
|
|
120
|
+
bodyContainer: {
|
|
121
|
+
p: 'lg'
|
|
122
|
+
},
|
|
123
|
+
body: {
|
|
124
|
+
p: 'lg'
|
|
125
|
+
},
|
|
126
|
+
footer: {
|
|
127
|
+
borderTop: '1px solid',
|
|
128
|
+
borderTopColor: 'gray-200',
|
|
129
|
+
borderRadius: '0px 0px 1em 1em',
|
|
130
|
+
p: 'lg'
|
|
131
|
+
},
|
|
132
|
+
footerContainer: {
|
|
133
|
+
borderTop: '1px solid',
|
|
134
|
+
borderTopColor: 'gray-200',
|
|
135
|
+
borderRadius: '0px 0px 1em 1em'
|
|
121
136
|
}
|
|
122
137
|
};
|
|
123
138
|
var listBox = {
|