@bolio-ui/core 1.0.7 → 1.0.9
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/Avatar/index.js +31 -31
- package/dist/Badge/index.js +33 -33
- package/dist/BolioUIProvider/index.js +37 -37
- package/dist/Breadcrumbs/index.js +30 -30
- package/dist/Button/index.js +37 -37
- package/dist/ButtonDropdown/index.js +91 -80
- package/dist/ButtonDropdown/styles.d.ts +1 -0
- package/dist/ButtonGroup/index.js +31 -29
- package/dist/Capacity/index.js +26 -26
- package/dist/Card/Card.d.ts +1 -0
- package/dist/Card/index.js +62 -52
- package/dist/Checkbox/index.js +187 -169
- package/dist/Code/index.js +26 -26
- package/dist/Collapse/index.js +26 -26
- package/dist/Container/index.js +26 -26
- package/dist/CssBaseline/index.js +26 -26
- package/dist/Description/index.js +26 -26
- package/dist/Display/index.js +26 -26
- package/dist/Divider/index.js +26 -26
- package/dist/Dot/index.js +26 -26
- package/dist/Drawer/index.js +26 -26
- package/dist/Fieldset/index.js +26 -26
- package/dist/Grid/index.js +26 -26
- package/dist/Image/index.js +26 -26
- package/dist/Input/InputBlockLabel.d.ts +2 -1
- package/dist/Input/InputProps.d.ts +3 -0
- package/dist/Input/index.js +92 -66
- package/dist/Input/styles.d.ts +3 -1
- package/dist/Keyboard/index.js +26 -26
- package/dist/Link/index.js +26 -26
- package/dist/Loading/index.js +26 -26
- package/dist/MdxWidgets/index.js +26 -26
- package/dist/Modal/index.js +37 -37
- package/dist/Note/index.js +26 -26
- package/dist/Page/index.js +26 -26
- package/dist/Pagination/index.js +26 -26
- package/dist/Popover/index.js +26 -26
- package/dist/Progress/index.js +26 -26
- package/dist/Radio/index.js +26 -26
- package/dist/Rating/index.js +26 -26
- package/dist/Row/index.js +26 -26
- package/dist/Section/index.js +26 -26
- package/dist/Select/index.js +101 -92
- package/dist/Select/styles.d.ts +6 -5
- package/dist/Slider/index.js +26 -26
- package/dist/Snippet/index.js +26 -26
- package/dist/Spacer/index.js +26 -26
- package/dist/Spinner/index.js +26 -26
- package/dist/Table/index.js +26 -26
- package/dist/Tabs/index.js +29 -29
- package/dist/Tag/index.js +26 -26
- package/dist/Text/index.js +26 -26
- package/dist/Textarea/index.js +69 -45
- package/dist/Themes/index.js +26 -26
- package/dist/Toggle/index.js +33 -33
- package/dist/Tooltip/index.js +26 -26
- package/dist/index.js +349 -273
- package/dist/use-all-themes/index.js +26 -26
- package/dist/use-media-query/index.js +26 -26
- package/dist/use-scale/index.js +26 -26
- package/dist/use-theme/index.js +26 -26
- package/esm/Avatar/Avatar.js +5 -5
- package/esm/Badge/Badge.js +7 -7
- package/esm/Badge/stories.js +1 -1
- package/esm/Breadcrumbs/Breadcrumbs.js +4 -4
- package/esm/Button/Button.js +3 -3
- package/esm/Button/styles.js +8 -8
- package/esm/ButtonDropdown/ButtonDropdown.js +13 -13
- package/esm/ButtonDropdown/ButtonDropdownItem.js +3 -3
- package/esm/ButtonDropdown/Icon.js +1 -1
- package/esm/ButtonDropdown/styles.d.ts +1 -0
- package/esm/ButtonDropdown/styles.js +48 -37
- package/esm/ButtonGroup/ButtonGroup.js +5 -3
- package/esm/Capacity/stories.js +40 -10
- package/esm/Card/Card.d.ts +1 -0
- package/esm/Card/Card.js +8 -7
- package/esm/Card/stories.js +56 -7
- package/esm/Card/styles.js +28 -19
- package/esm/Checkbox/Checkbox.js +6 -6
- package/esm/Checkbox/CheckboxIcon.js +34 -16
- package/esm/Input/Input.js +17 -16
- package/esm/Input/InputBlockLabel.d.ts +2 -1
- package/esm/Input/InputBlockLabel.js +6 -5
- package/esm/Input/InputProps.d.ts +3 -0
- package/esm/Input/styles.d.ts +3 -1
- package/esm/Input/styles.js +36 -8
- package/esm/Select/Select.js +11 -16
- package/esm/Select/SelectDropdown.js +4 -4
- package/esm/Select/SelectIconClear.js +7 -7
- package/esm/Select/SelectMultipleValue.js +4 -4
- package/esm/Select/SelectOption.js +6 -6
- package/esm/Select/styles.d.ts +6 -5
- package/esm/Select/styles.js +43 -29
- package/esm/Tabs/TabsItem.js +3 -3
- package/esm/Textarea/Textarea.js +7 -11
- package/esm/Themes/Presets/Dark.js +14 -14
- package/esm/Themes/Presets/Default.js +11 -11
- package/esm/Themes/Presets/Shared.js +1 -1
- package/esm/Toggle/Toggle.js +7 -7
- package/package.json +1 -1
package/dist/Section/index.js
CHANGED
|
@@ -263,7 +263,7 @@ var defaultLayout = {
|
|
|
263
263
|
pageWidthWithMargin: '930pt',
|
|
264
264
|
breakpointMobile: defaultBreakpoints.xs.max,
|
|
265
265
|
breakpointTablet: defaultBreakpoints.sm.max,
|
|
266
|
-
radius: '
|
|
266
|
+
radius: '10px',
|
|
267
267
|
unit: '16px'
|
|
268
268
|
};
|
|
269
269
|
|
|
@@ -278,32 +278,32 @@ var palette$1 = {
|
|
|
278
278
|
accents_6: '#444',
|
|
279
279
|
accents_7: '#333',
|
|
280
280
|
accents_8: '#111',
|
|
281
|
-
selection: '
|
|
281
|
+
selection: 'rgba(206,228,254, 0.5)',
|
|
282
282
|
code: '#C25FFF',
|
|
283
283
|
border: '#eaeaea',
|
|
284
284
|
primary: '#0072F6',
|
|
285
|
-
primaryLight: '#
|
|
286
|
-
primaryLighter: '#
|
|
285
|
+
primaryLight: '#CEE4FF',
|
|
286
|
+
primaryLighter: '#96C1F3',
|
|
287
287
|
primaryDark: '#00254E',
|
|
288
288
|
secondary: '#7828C9',
|
|
289
|
-
secondaryLighter: '#D1B1F1',
|
|
290
289
|
secondaryLight: '#EADCF9',
|
|
290
|
+
secondaryLighter: '#D1B1F1',
|
|
291
291
|
secondaryDark: '#290E45',
|
|
292
292
|
error: '#F31261',
|
|
293
|
-
errorLight: '#
|
|
294
|
-
errorLighter: '#
|
|
293
|
+
errorLight: '#FDD8E6',
|
|
294
|
+
errorLighter: '#FAA8C6',
|
|
295
295
|
errorDark: '#4E041F',
|
|
296
296
|
success: '#17C965',
|
|
297
|
-
successLight: '#
|
|
298
|
-
successLighter: '#
|
|
297
|
+
successLight: '#DAFBE9',
|
|
298
|
+
successLighter: '#ADF5CD',
|
|
299
299
|
successDark: '#06371C',
|
|
300
300
|
warning: '#F5A525',
|
|
301
|
-
warningLight: '#
|
|
302
|
-
warningLighter: '#
|
|
301
|
+
warningLight: '#FDEFD9',
|
|
302
|
+
warningLighter: '#FBDBA8',
|
|
303
303
|
warningDark: '#4E3105',
|
|
304
304
|
info: '#06B7DC',
|
|
305
|
-
infoLighter: '#A5EEFE',
|
|
306
305
|
infoLight: '#D7F8FF',
|
|
306
|
+
infoLighter: '#A5EEFE',
|
|
307
307
|
infoDark: '#053B49',
|
|
308
308
|
purple: '#f81ce5',
|
|
309
309
|
alert: '#ff0080',
|
|
@@ -345,32 +345,32 @@ var palette = {
|
|
|
345
345
|
accents_6: '#999',
|
|
346
346
|
accents_7: '#eaeaea',
|
|
347
347
|
accents_8: '#fafafa',
|
|
348
|
-
selection: '
|
|
348
|
+
selection: 'rgba(248,28,229, 0.5)',
|
|
349
349
|
code: '#C25FFF',
|
|
350
350
|
border: '#333',
|
|
351
351
|
primary: '#0072F6',
|
|
352
|
-
primaryLight: '#
|
|
353
|
-
primaryLighter: '#
|
|
352
|
+
primaryLight: '#CEE4FF',
|
|
353
|
+
primaryLighter: '#96C1F3',
|
|
354
354
|
primaryDark: '#00254E',
|
|
355
355
|
secondary: '#7828C9',
|
|
356
|
-
secondaryLighter: '#D1B1F1',
|
|
357
356
|
secondaryLight: '#EADCF9',
|
|
357
|
+
secondaryLighter: '#D1B1F1',
|
|
358
358
|
secondaryDark: '#290E45',
|
|
359
359
|
error: '#F31261',
|
|
360
|
-
errorLight: '#
|
|
361
|
-
errorLighter: '#
|
|
360
|
+
errorLight: '#FDD8E6',
|
|
361
|
+
errorLighter: '#FAA8C6',
|
|
362
362
|
errorDark: '#4E041F',
|
|
363
363
|
success: '#17C965',
|
|
364
|
-
successLight: '#
|
|
365
|
-
successLighter: '#
|
|
364
|
+
successLight: '#DAFBE9',
|
|
365
|
+
successLighter: '#ADF5CD',
|
|
366
366
|
successDark: '#06371C',
|
|
367
367
|
warning: '#F5A525',
|
|
368
|
-
warningLight: '#
|
|
369
|
-
warningLighter: '#
|
|
368
|
+
warningLight: '#FDEFD9',
|
|
369
|
+
warningLighter: '#FBDBA8',
|
|
370
370
|
warningDark: '#4E3105',
|
|
371
371
|
info: '#06B7DC',
|
|
372
|
-
infoLighter: '#A5EEFE',
|
|
373
372
|
infoLight: '#D7F8FF',
|
|
373
|
+
infoLighter: '#A5EEFE',
|
|
374
374
|
infoDark: '#053B49',
|
|
375
375
|
purple: '#f81ce5',
|
|
376
376
|
alert: '#ff0080',
|
|
@@ -383,9 +383,9 @@ var expressiveness = {
|
|
|
383
383
|
dropdownBoxShadow: '0 0 0 1px #333',
|
|
384
384
|
scrollerStart: 'rgba(255, 255, 255, 1)',
|
|
385
385
|
scrollerEnd: 'rgba(255, 255, 255, 0)',
|
|
386
|
-
shadowSmall: '0
|
|
387
|
-
shadowMedium: '0
|
|
388
|
-
shadowLarge: '0
|
|
386
|
+
shadowSmall: '0 5px 10px rgba(255, 255, 255, 0.12)',
|
|
387
|
+
shadowMedium: '0 8px 30px rgba(255, 255, 255, 0.12)',
|
|
388
|
+
shadowLarge: '0 30px 60px rgba(255, 255, 255, 0.12)',
|
|
389
389
|
portalOpacity: 0.75
|
|
390
390
|
};
|
|
391
391
|
var font = defaultFont;
|
package/dist/Select/index.js
CHANGED
|
@@ -285,7 +285,7 @@ var defaultLayout = {
|
|
|
285
285
|
pageWidthWithMargin: '930pt',
|
|
286
286
|
breakpointMobile: defaultBreakpoints.xs.max,
|
|
287
287
|
breakpointTablet: defaultBreakpoints.sm.max,
|
|
288
|
-
radius: '
|
|
288
|
+
radius: '10px',
|
|
289
289
|
unit: '16px'
|
|
290
290
|
};
|
|
291
291
|
|
|
@@ -300,32 +300,32 @@ var palette$1 = {
|
|
|
300
300
|
accents_6: '#444',
|
|
301
301
|
accents_7: '#333',
|
|
302
302
|
accents_8: '#111',
|
|
303
|
-
selection: '
|
|
303
|
+
selection: 'rgba(206,228,254, 0.5)',
|
|
304
304
|
code: '#C25FFF',
|
|
305
305
|
border: '#eaeaea',
|
|
306
306
|
primary: '#0072F6',
|
|
307
|
-
primaryLight: '#
|
|
308
|
-
primaryLighter: '#
|
|
307
|
+
primaryLight: '#CEE4FF',
|
|
308
|
+
primaryLighter: '#96C1F3',
|
|
309
309
|
primaryDark: '#00254E',
|
|
310
310
|
secondary: '#7828C9',
|
|
311
|
-
secondaryLighter: '#D1B1F1',
|
|
312
311
|
secondaryLight: '#EADCF9',
|
|
312
|
+
secondaryLighter: '#D1B1F1',
|
|
313
313
|
secondaryDark: '#290E45',
|
|
314
314
|
error: '#F31261',
|
|
315
|
-
errorLight: '#
|
|
316
|
-
errorLighter: '#
|
|
315
|
+
errorLight: '#FDD8E6',
|
|
316
|
+
errorLighter: '#FAA8C6',
|
|
317
317
|
errorDark: '#4E041F',
|
|
318
318
|
success: '#17C965',
|
|
319
|
-
successLight: '#
|
|
320
|
-
successLighter: '#
|
|
319
|
+
successLight: '#DAFBE9',
|
|
320
|
+
successLighter: '#ADF5CD',
|
|
321
321
|
successDark: '#06371C',
|
|
322
322
|
warning: '#F5A525',
|
|
323
|
-
warningLight: '#
|
|
324
|
-
warningLighter: '#
|
|
323
|
+
warningLight: '#FDEFD9',
|
|
324
|
+
warningLighter: '#FBDBA8',
|
|
325
325
|
warningDark: '#4E3105',
|
|
326
326
|
info: '#06B7DC',
|
|
327
|
-
infoLighter: '#A5EEFE',
|
|
328
327
|
infoLight: '#D7F8FF',
|
|
328
|
+
infoLighter: '#A5EEFE',
|
|
329
329
|
infoDark: '#053B49',
|
|
330
330
|
purple: '#f81ce5',
|
|
331
331
|
alert: '#ff0080',
|
|
@@ -367,32 +367,32 @@ var palette = {
|
|
|
367
367
|
accents_6: '#999',
|
|
368
368
|
accents_7: '#eaeaea',
|
|
369
369
|
accents_8: '#fafafa',
|
|
370
|
-
selection: '
|
|
370
|
+
selection: 'rgba(248,28,229, 0.5)',
|
|
371
371
|
code: '#C25FFF',
|
|
372
372
|
border: '#333',
|
|
373
373
|
primary: '#0072F6',
|
|
374
|
-
primaryLight: '#
|
|
375
|
-
primaryLighter: '#
|
|
374
|
+
primaryLight: '#CEE4FF',
|
|
375
|
+
primaryLighter: '#96C1F3',
|
|
376
376
|
primaryDark: '#00254E',
|
|
377
377
|
secondary: '#7828C9',
|
|
378
|
-
secondaryLighter: '#D1B1F1',
|
|
379
378
|
secondaryLight: '#EADCF9',
|
|
379
|
+
secondaryLighter: '#D1B1F1',
|
|
380
380
|
secondaryDark: '#290E45',
|
|
381
381
|
error: '#F31261',
|
|
382
|
-
errorLight: '#
|
|
383
|
-
errorLighter: '#
|
|
382
|
+
errorLight: '#FDD8E6',
|
|
383
|
+
errorLighter: '#FAA8C6',
|
|
384
384
|
errorDark: '#4E041F',
|
|
385
385
|
success: '#17C965',
|
|
386
|
-
successLight: '#
|
|
387
|
-
successLighter: '#
|
|
386
|
+
successLight: '#DAFBE9',
|
|
387
|
+
successLighter: '#ADF5CD',
|
|
388
388
|
successDark: '#06371C',
|
|
389
389
|
warning: '#F5A525',
|
|
390
|
-
warningLight: '#
|
|
391
|
-
warningLighter: '#
|
|
390
|
+
warningLight: '#FDEFD9',
|
|
391
|
+
warningLighter: '#FBDBA8',
|
|
392
392
|
warningDark: '#4E3105',
|
|
393
393
|
info: '#06B7DC',
|
|
394
|
-
infoLighter: '#A5EEFE',
|
|
395
394
|
infoLight: '#D7F8FF',
|
|
395
|
+
infoLighter: '#A5EEFE',
|
|
396
396
|
infoDark: '#053B49',
|
|
397
397
|
purple: '#f81ce5',
|
|
398
398
|
alert: '#ff0080',
|
|
@@ -405,9 +405,9 @@ var expressiveness = {
|
|
|
405
405
|
dropdownBoxShadow: '0 0 0 1px #333',
|
|
406
406
|
scrollerStart: 'rgba(255, 255, 255, 1)',
|
|
407
407
|
scrollerEnd: 'rgba(255, 255, 255, 0)',
|
|
408
|
-
shadowSmall: '0
|
|
409
|
-
shadowMedium: '0
|
|
410
|
-
shadowLarge: '0
|
|
408
|
+
shadowSmall: '0 5px 10px rgba(255, 255, 255, 0.12)',
|
|
409
|
+
shadowMedium: '0 8px 30px rgba(255, 255, 255, 0.12)',
|
|
410
|
+
shadowLarge: '0 30px 60px rgba(255, 255, 255, 0.12)',
|
|
411
411
|
portalOpacity: 0.75
|
|
412
412
|
};
|
|
413
413
|
var font = defaultFont;
|
|
@@ -1019,11 +1019,11 @@ var SelectDropdown = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
1019
1019
|
}, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1020
1020
|
ref: internalDropdownRef,
|
|
1021
1021
|
style: dropdownStyle,
|
|
1022
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1022
|
+
className: styledJsx_cjs.style.dynamic([["2113247935", [theme.layout.radius, theme.expressiveness.shadowLarge, theme.palette.accents_2]]]) + " " + (classes || "")
|
|
1023
1023
|
}, children, /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
1024
|
-
id: "
|
|
1025
|
-
dynamic: [theme.layout.radius, theme.expressiveness.shadowLarge, theme.palette.
|
|
1026
|
-
}, ".select-dropdown.__jsx-style-dynamic-selector{border-radius:".concat(theme.layout.radius, ";box-shadow:").concat(theme.expressiveness.shadowLarge, ";background-color:").concat(theme.palette.
|
|
1024
|
+
id: "2113247935",
|
|
1025
|
+
dynamic: [theme.layout.radius, theme.expressiveness.shadowLarge, theme.palette.accents_2]
|
|
1026
|
+
}, ".select-dropdown.__jsx-style-dynamic-selector{border-radius:".concat(theme.layout.radius, ";box-shadow:").concat(theme.expressiveness.shadowLarge, ";background-color:").concat(theme.palette.accents_2, ";max-height:17em;overflow-y:auto;overflow-anchor:none;padding:0.38em 0;-webkit-scroll-behavior:smooth;-moz-scroll-behavior:smooth;-ms-scroll-behavior:smooth;scroll-behavior:smooth;}"))));
|
|
1027
1027
|
});
|
|
1028
1028
|
SelectDropdown.displayName = 'BolioUISelectDropdown';
|
|
1029
1029
|
var SelectDropdown$1 = SelectDropdown;
|
|
@@ -1406,7 +1406,7 @@ function SelectIconClear(_ref) {
|
|
|
1406
1406
|
|
|
1407
1407
|
return /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1408
1408
|
onClick: clickHandler,
|
|
1409
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1409
|
+
className: styledJsx_cjs.style.dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]]) + " " + "clear-icon"
|
|
1410
1410
|
}, /*#__PURE__*/React__default["default"].createElement("svg", {
|
|
1411
1411
|
viewBox: "0 0 24 24",
|
|
1412
1412
|
stroke: "currentColor",
|
|
@@ -1415,17 +1415,17 @@ function SelectIconClear(_ref) {
|
|
|
1415
1415
|
strokeLinejoin: "round",
|
|
1416
1416
|
fill: "none",
|
|
1417
1417
|
shapeRendering: "geometricPrecision",
|
|
1418
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1418
|
+
className: styledJsx_cjs.style.dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]])
|
|
1419
1419
|
}, /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1420
1420
|
d: "M18 6L6 18",
|
|
1421
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1421
|
+
className: styledJsx_cjs.style.dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]])
|
|
1422
1422
|
}), /*#__PURE__*/React__default["default"].createElement("path", {
|
|
1423
1423
|
d: "M6 6l12 12",
|
|
1424
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1424
|
+
className: styledJsx_cjs.style.dynamic([["3218630561", [theme.palette.accents_5, theme.palette.foreground]]])
|
|
1425
1425
|
})), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
1426
|
-
id: "
|
|
1427
|
-
dynamic: [theme.palette.
|
|
1428
|
-
}, ".clear-icon.__jsx-style-dynamic-selector{padding:0 0 0 0.5em;margin:0;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;cursor:pointer;box-sizing:border-box;-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s;color:".concat(theme.palette.
|
|
1426
|
+
id: "3218630561",
|
|
1427
|
+
dynamic: [theme.palette.accents_5, theme.palette.foreground]
|
|
1428
|
+
}, ".clear-icon.__jsx-style-dynamic-selector{padding:0 0 0 0.5em;margin:0;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:100%;cursor:pointer;box-sizing:border-box;-webkit-transition:color 150ms ease 0s;transition:color 150ms ease 0s;color:".concat(theme.palette.accents_5, ";visibility:visible;opacity:1;}.clear-icon.__jsx-style-dynamic-selector:hover{color:").concat(theme.palette.foreground, ";}svg.__jsx-style-dynamic-selector{color:currentColor;width:1em;height:1em;}")));
|
|
1429
1429
|
}
|
|
1430
1430
|
|
|
1431
1431
|
var MemoSelectIconClear = /*#__PURE__*/React__default["default"].memo(SelectIconClear);
|
|
@@ -1437,62 +1437,76 @@ function SelectMultipleValue(_ref) {
|
|
|
1437
1437
|
children = _ref.children;
|
|
1438
1438
|
var theme = useTheme();
|
|
1439
1439
|
return /*#__PURE__*/React__default["default"].createElement(Grid$1, null, /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1440
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1440
|
+
className: styledJsx_cjs.style.dynamic([["81854150", [theme.layout.radius, theme.palette.accents_3, disabled ? theme.palette.accents_5 : theme.palette.accents_7]]]) + " " + "item"
|
|
1441
1441
|
}, children, !!onClear && /*#__PURE__*/React__default["default"].createElement(SelectClearIcon, {
|
|
1442
1442
|
onClick: onClear
|
|
1443
1443
|
})), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
1444
|
-
id: "
|
|
1445
|
-
dynamic: [theme.layout.radius, theme.palette.
|
|
1446
|
-
}, ".item.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;justify-items:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1;padding:0 0.5em;font-size:var(--select-font-size);height:calc(var(--select-font-size) * 2);border-radius:".concat(theme.layout.radius, ";background-color:").concat(theme.palette.
|
|
1444
|
+
id: "81854150",
|
|
1445
|
+
dynamic: [theme.layout.radius, theme.palette.accents_3, disabled ? theme.palette.accents_5 : theme.palette.accents_7]
|
|
1446
|
+
}, ".item.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;justify-items:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1;padding:0 0.5em;font-size:var(--select-font-size);height:calc(var(--select-font-size) * 2);border-radius:".concat(theme.layout.radius, ";background-color:").concat(theme.palette.accents_3, ";color:").concat(disabled ? theme.palette.accents_5 : theme.palette.accents_7, ";}.item.__jsx-style-dynamic-selector>div:not(.clear-icon),.item.__jsx-style-dynamic-selector>div:not(.clear-icon):hover{border-radius:0;background-color:transparent;padding:0;margin:0;color:inherit;}")));
|
|
1447
1447
|
}
|
|
1448
1448
|
|
|
1449
1449
|
SelectMultipleValue.displayName = 'BolioUISelectMultipleValue';
|
|
1450
1450
|
|
|
1451
|
-
var getColors = function getColors(palette, status) {
|
|
1451
|
+
var getColors = function getColors(palette, status, disabled) {
|
|
1452
1452
|
var colors = {
|
|
1453
1453
|
"default": {
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1454
|
+
color: palette.foreground,
|
|
1455
|
+
bgColor: palette.accents_2,
|
|
1456
|
+
borderColor: palette.accents_3,
|
|
1457
|
+
hoverBgColor: palette.accents_2,
|
|
1458
|
+
hoverBorder: palette.accents_6
|
|
1458
1459
|
},
|
|
1459
1460
|
primary: {
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1461
|
+
color: palette.primaryDark,
|
|
1462
|
+
bgColor: palette.primaryLight,
|
|
1463
|
+
borderColor: palette.primary,
|
|
1464
|
+
hoverBgColor: palette.primaryLight,
|
|
1465
|
+
hoverBorder: palette.primary
|
|
1464
1466
|
},
|
|
1465
1467
|
secondary: {
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1468
|
+
color: palette.secondaryDark,
|
|
1469
|
+
bgColor: palette.secondaryLight,
|
|
1470
|
+
borderColor: palette.secondary,
|
|
1471
|
+
hoverBgColor: palette.secondaryLight,
|
|
1472
|
+
hoverBorder: palette.secondary
|
|
1470
1473
|
},
|
|
1471
1474
|
success: {
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1475
|
+
color: palette.successDark,
|
|
1476
|
+
bgColor: palette.successLight,
|
|
1477
|
+
borderColor: palette.success,
|
|
1478
|
+
hoverBgColor: palette.successLight,
|
|
1479
|
+
hoverBorder: palette.success
|
|
1476
1480
|
},
|
|
1477
1481
|
warning: {
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
+
color: palette.warningDark,
|
|
1483
|
+
bgColor: palette.warningLight,
|
|
1484
|
+
borderColor: palette.warning,
|
|
1485
|
+
hoverBgColor: palette.warningLight,
|
|
1486
|
+
hoverBorder: palette.warning
|
|
1482
1487
|
},
|
|
1483
1488
|
error: {
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1489
|
+
color: palette.errorDark,
|
|
1490
|
+
bgColor: palette.errorLight,
|
|
1491
|
+
borderColor: palette.error,
|
|
1492
|
+
hoverBgColor: palette.errorLight,
|
|
1493
|
+
hoverBorder: palette.error
|
|
1488
1494
|
},
|
|
1489
1495
|
info: {
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1496
|
+
color: palette.infoDark,
|
|
1497
|
+
bgColor: palette.infoLight,
|
|
1498
|
+
borderColor: palette.info,
|
|
1499
|
+
hoverBgColor: palette.infoLight,
|
|
1500
|
+
hoverBorder: palette.info
|
|
1494
1501
|
}
|
|
1495
1502
|
};
|
|
1503
|
+
if (disabled) return {
|
|
1504
|
+
color: palette.accents_5,
|
|
1505
|
+
bgColor: palette.accents_3,
|
|
1506
|
+
borderColor: palette.accents_4,
|
|
1507
|
+
hoverBgColor: palette.accents_3,
|
|
1508
|
+
hoverBorder: palette.accents_4
|
|
1509
|
+
};
|
|
1496
1510
|
if (!status) return colors["default"];
|
|
1497
1511
|
return colors[status];
|
|
1498
1512
|
};
|
|
@@ -1617,14 +1631,9 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
1617
1631
|
if (!Array.isArray(value)) return !value;
|
|
1618
1632
|
return value.length === 0;
|
|
1619
1633
|
}, [value]);
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
}, [theme.palette, type]),
|
|
1624
|
-
border = _useMemo.border,
|
|
1625
|
-
borderActive = _useMemo.borderActive,
|
|
1626
|
-
iconBorder = _useMemo.iconBorder,
|
|
1627
|
-
placeholderColor = _useMemo.placeholderColor;
|
|
1634
|
+
var colors = React.useMemo(function () {
|
|
1635
|
+
return getColors(theme.palette, type, disabled);
|
|
1636
|
+
}, [theme.palette, type, disabled]);
|
|
1628
1637
|
|
|
1629
1638
|
var updateVisible = function updateVisible(next) {
|
|
1630
1639
|
onDropdownVisibleChange(next);
|
|
@@ -1732,7 +1741,7 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
1732
1741
|
onClick: clickHandler,
|
|
1733
1742
|
onMouseDown: mouseDownHandler
|
|
1734
1743
|
}, props, {
|
|
1735
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1744
|
+
className: styledJsx_cjs.style.dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
1736
1745
|
}), /*#__PURE__*/React__default["default"].createElement(SelectInput$1, {
|
|
1737
1746
|
ref: inputRef,
|
|
1738
1747
|
visible: visible,
|
|
@@ -1741,11 +1750,11 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
1741
1750
|
return setSelectFocus(true);
|
|
1742
1751
|
}
|
|
1743
1752
|
}), isEmpty && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1744
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1753
|
+
className: styledJsx_cjs.style.dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + "value placeholder"
|
|
1745
1754
|
}, /*#__PURE__*/React__default["default"].createElement(Ellipsis$1, {
|
|
1746
1755
|
height: "var(--select-height)"
|
|
1747
1756
|
}, placeholder)), value && !multiple && /*#__PURE__*/React__default["default"].createElement("span", {
|
|
1748
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1757
|
+
className: styledJsx_cjs.style.dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + "value"
|
|
1749
1758
|
}, selectedChild), value && multiple && /*#__PURE__*/React__default["default"].createElement(Grid$1.Container, {
|
|
1750
1759
|
gap: 0.5
|
|
1751
1760
|
}, selectedChild), /*#__PURE__*/React__default["default"].createElement(SelectDropdown$1, {
|
|
@@ -1756,13 +1765,13 @@ var SelectComponent = /*#__PURE__*/React__default["default"].forwardRef(function
|
|
|
1756
1765
|
disableMatchWidth: disableMatchWidth,
|
|
1757
1766
|
getPopupContainer: getPopupContainer
|
|
1758
1767
|
}, children), !pure && /*#__PURE__*/React__default["default"].createElement("div", {
|
|
1759
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1768
|
+
className: styledJsx_cjs.style.dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]]) + " " + "icon"
|
|
1760
1769
|
}, /*#__PURE__*/React__default["default"].createElement(Icon, {
|
|
1761
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1770
|
+
className: styledJsx_cjs.style.dynamic([["12953029", [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]]])
|
|
1762
1771
|
})), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
1763
|
-
id: "
|
|
1764
|
-
dynamic: [disabled ? 'not-allowed' : 'pointer',
|
|
1765
|
-
}, ".select.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;position:relative;cursor:".concat(disabled ? 'not-allowed' : 'pointer', ";max-width:90vw;overflow:hidden;-webkit-transition:border 150ms ease-in 0s,color 200ms ease-out 0s, box-shadow 200ms ease 0s;transition:border 150ms ease-in 0s,color 200ms ease-out 0s, box-shadow 200ms ease 0s;border:1px solid ").concat(
|
|
1772
|
+
id: "12953029",
|
|
1773
|
+
dynamic: [disabled ? 'not-allowed' : 'pointer', colors.borderColor, theme.layout.radius, colors.bgColor, SCALES.font(0.875), SCALES.height(2.25), SCALES.width(1, 'initial'), SCALES.pt(0), SCALES.pr(0.334), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), SCALES.pt(0.334), SCALES.pr(0.334), SCALES.pb(0.334), SCALES.pl(0.667), colors.hoverBorder, colors.hoverBgColor, colors.color, colors.color, colors.color, SCALES.font(0.775), theme.layout.gapQuarter, visible ? '180' : '0', colors.color]
|
|
1774
|
+
}, ".select.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;position:relative;cursor:".concat(disabled ? 'not-allowed' : 'pointer', ";max-width:90vw;overflow:hidden;-webkit-transition:border 150ms ease-in 0s,color 200ms ease-out 0s, box-shadow 200ms ease 0s;transition:border 150ms ease-in 0s,color 200ms ease-out 0s, box-shadow 200ms ease 0s;border:1px solid ").concat(colors.borderColor, ";border-radius:").concat(theme.layout.radius, ";background-color:").concat(colors.bgColor, ";--select-font-size:").concat(SCALES.font(0.875), ";--select-height:").concat(SCALES.height(2.25), ";min-width:11.5em;width:").concat(SCALES.width(1, 'initial'), ";height:var(--select-height);padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0.334), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0.667), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.multiple.__jsx-style-dynamic-selector{height:auto;min-height:var(--select-height);padding:").concat(SCALES.pt(0.334), " ").concat(SCALES.pr(0.334), " ").concat(SCALES.pb(0.334), " ").concat(SCALES.pl(0.667), ";}.select.active.__jsx-style-dynamic-selector,.select.__jsx-style-dynamic-selector:hover{border-color:").concat(colors.hoverBorder, ";background-color:").concat(colors.hoverBgColor, ";}.select.active.icon.__jsx-style-dynamic-selector,.select.__jsx-style-dynamic-selector:hover .icon.__jsx-style-dynamic-selector{color:").concat(colors.color, ";}.value.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex:1;-ms-flex:1;flex:1;height:100%;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;line-height:1;padding:0;margin-right:1.25em;font-size:var(--select-font-size);color:").concat(colors.color, ";width:calc(100% - 1.25em);}.value.__jsx-style-dynamic-selector>div,.value.__jsx-style-dynamic-selector>div:hover{border-radius:0;background-color:transparent;padding:0;margin:0;color:inherit;}.placeholder.__jsx-style-dynamic-selector{color:").concat(colors.color, ";font-size:").concat(SCALES.font(0.775), ";}.icon.__jsx-style-dynamic-selector{position:absolute;right:").concat(theme.layout.gapQuarter, ";font-size:var(--select-font-size);top:50%;bottom:0;-webkit-transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);-ms-transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);transform:translateY(-50%) rotate(").concat(visible ? '180' : '0', "deg);pointer-events:none;-webkit-transition:-webkit-transform 200ms ease;-webkit-transition:transform 200ms ease;transition:transform 200ms ease;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:").concat(colors.color, ";}"))));
|
|
1766
1775
|
});
|
|
1767
1776
|
SelectComponent.defaultProps = defaultProps;
|
|
1768
1777
|
SelectComponent.displayName = 'BolioUISelect';
|
|
@@ -1823,8 +1832,8 @@ function SelectOptionComponent(_ref) {
|
|
|
1823
1832
|
return value.includes("".concat(identValue));
|
|
1824
1833
|
}, [identValue, value]);
|
|
1825
1834
|
var bgColor = React.useMemo(function () {
|
|
1826
|
-
if (isDisabled) return theme.palette.
|
|
1827
|
-
return selected ? theme.palette.
|
|
1835
|
+
if (isDisabled) return theme.palette.accents_3;
|
|
1836
|
+
return selected ? theme.palette.accents_3 : theme.palette.accents_2;
|
|
1828
1837
|
}, [selected, isDisabled, theme.palette]);
|
|
1829
1838
|
var hoverBgColor = React.useMemo(function () {
|
|
1830
1839
|
if (isDisabled || isLabel || selected) return bgColor;
|
|
@@ -1847,13 +1856,13 @@ function SelectOptionComponent(_ref) {
|
|
|
1847
1856
|
return /*#__PURE__*/React__default["default"].createElement("div", _extends({
|
|
1848
1857
|
onClick: clickHandler
|
|
1849
1858
|
}, props, {
|
|
1850
|
-
className: styledJsx_cjs.style.dynamic([["
|
|
1859
|
+
className: styledJsx_cjs.style.dynamic([["345093284", [bgColor, color, isDisabled ? 'not-allowed' : 'pointer', SCALES.font(0.75), SCALES.width(1, '100%'), SCALES.height(2.25), SCALES.pt(0), SCALES.pr(0.667), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBgColor, theme.palette.accents_7, theme.palette.accents_3, SCALES.width(1, '100%'), SCALES.height(1, 0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0.5), SCALES.mr(0), SCALES.mb(0.5), SCALES.ml(0), theme.palette.accents_7, theme.palette.accents_3, SCALES.font(0.875), SCALES.width(1, '100%')]]]) + " " + (props && props.className != null && props.className || classes || "")
|
|
1851
1860
|
}), /*#__PURE__*/React__default["default"].createElement(Ellipsis$1, {
|
|
1852
1861
|
height: SCALES.height(2.25)
|
|
1853
1862
|
}, children), /*#__PURE__*/React__default["default"].createElement(styledJsx_cjs.style, {
|
|
1854
|
-
id: "
|
|
1855
|
-
dynamic: [bgColor, color, isDisabled ? 'not-allowed' : 'pointer', SCALES.font(0.75), SCALES.width(1, '100%'), SCALES.height(2.25), SCALES.pt(0), SCALES.pr(0.667), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBgColor, theme.palette.accents_7, theme.palette.
|
|
1856
|
-
}, ".option.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;max-width:100%;box-sizing:border-box;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-weight:normal;background-color:".concat(bgColor, ";color:").concat(color, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;cursor:").concat(isDisabled ? 'not-allowed' : 'pointer', ";-webkit-transition:background 0.2s ease 0s,border-color 0.2s ease 0s;transition:background 0.2s ease 0s,border-color 0.2s ease 0s;--select-font-size:").concat(SCALES.font(0.75), ";font-size:var(--select-font-size);width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(2.25), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0.667), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0.667), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.option.__jsx-style-dynamic-selector:hover{background-color:").concat(hoverBgColor, ";color:").concat(theme.palette.accents_7, ";}.divider.__jsx-style-dynamic-selector{line-height:0;overflow:hidden;border-top:1px solid ").concat(theme.palette.
|
|
1863
|
+
id: "345093284",
|
|
1864
|
+
dynamic: [bgColor, color, isDisabled ? 'not-allowed' : 'pointer', SCALES.font(0.75), SCALES.width(1, '100%'), SCALES.height(2.25), SCALES.pt(0), SCALES.pr(0.667), SCALES.pb(0), SCALES.pl(0.667), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverBgColor, theme.palette.accents_7, theme.palette.accents_3, SCALES.width(1, '100%'), SCALES.height(1, 0), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0.5), SCALES.mr(0), SCALES.mb(0.5), SCALES.ml(0), theme.palette.accents_7, theme.palette.accents_3, SCALES.font(0.875), SCALES.width(1, '100%')]
|
|
1865
|
+
}, ".option.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;max-width:100%;box-sizing:border-box;-webkit-box-pack:start;-webkit-justify-content:flex-start;-ms-flex-pack:start;justify-content:flex-start;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-weight:normal;background-color:".concat(bgColor, ";color:").concat(color, ";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:0;cursor:").concat(isDisabled ? 'not-allowed' : 'pointer', ";-webkit-transition:background 0.2s ease 0s,border-color 0.2s ease 0s;transition:background 0.2s ease 0s,border-color 0.2s ease 0s;--select-font-size:").concat(SCALES.font(0.75), ";font-size:var(--select-font-size);width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(2.25), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0.667), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0.667), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.option.__jsx-style-dynamic-selector:hover{background-color:").concat(hoverBgColor, ";color:").concat(theme.palette.accents_7, ";}.divider.__jsx-style-dynamic-selector{line-height:0;overflow:hidden;border-top:1px solid ").concat(theme.palette.accents_3, ";width:").concat(SCALES.width(1, '100%'), ";height:").concat(SCALES.height(1, 0), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0.5), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0.5), " ").concat(SCALES.ml(0), ";}.label.__jsx-style-dynamic-selector{color:").concat(theme.palette.accents_7, ";border-bottom:1px solid ").concat(theme.palette.accents_3, ";text-transform:capitalize;cursor:default;font-size:").concat(SCALES.font(0.875), ";width:").concat(SCALES.width(1, '100%'), ";font-weight:500;}")));
|
|
1857
1866
|
}
|
|
1858
1867
|
|
|
1859
1868
|
SelectOptionComponent.displayName = 'BolioUISelectOption';
|
package/dist/Select/styles.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { BolioUIThemesPalette } from "../Themes/Presets";
|
|
2
2
|
export declare type SelectColor = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
color: string;
|
|
4
|
+
bgColor: string;
|
|
5
|
+
borderColor: string;
|
|
6
|
+
hoverBgColor: string;
|
|
7
|
+
hoverBorder: string;
|
|
7
8
|
};
|
|
8
|
-
export declare const getColors: (palette: BolioUIThemesPalette, status?: "success" | "primary" | "secondary" | "error" | "warning" | "info" | "default" | undefined) => SelectColor;
|
|
9
|
+
export declare const getColors: (palette: BolioUIThemesPalette, status?: "success" | "primary" | "secondary" | "error" | "warning" | "info" | "default" | undefined, disabled?: boolean | undefined) => SelectColor;
|
package/dist/Slider/index.js
CHANGED
|
@@ -284,7 +284,7 @@ var defaultLayout = {
|
|
|
284
284
|
pageWidthWithMargin: '930pt',
|
|
285
285
|
breakpointMobile: defaultBreakpoints.xs.max,
|
|
286
286
|
breakpointTablet: defaultBreakpoints.sm.max,
|
|
287
|
-
radius: '
|
|
287
|
+
radius: '10px',
|
|
288
288
|
unit: '16px'
|
|
289
289
|
};
|
|
290
290
|
|
|
@@ -299,32 +299,32 @@ var palette$1 = {
|
|
|
299
299
|
accents_6: '#444',
|
|
300
300
|
accents_7: '#333',
|
|
301
301
|
accents_8: '#111',
|
|
302
|
-
selection: '
|
|
302
|
+
selection: 'rgba(206,228,254, 0.5)',
|
|
303
303
|
code: '#C25FFF',
|
|
304
304
|
border: '#eaeaea',
|
|
305
305
|
primary: '#0072F6',
|
|
306
|
-
primaryLight: '#
|
|
307
|
-
primaryLighter: '#
|
|
306
|
+
primaryLight: '#CEE4FF',
|
|
307
|
+
primaryLighter: '#96C1F3',
|
|
308
308
|
primaryDark: '#00254E',
|
|
309
309
|
secondary: '#7828C9',
|
|
310
|
-
secondaryLighter: '#D1B1F1',
|
|
311
310
|
secondaryLight: '#EADCF9',
|
|
311
|
+
secondaryLighter: '#D1B1F1',
|
|
312
312
|
secondaryDark: '#290E45',
|
|
313
313
|
error: '#F31261',
|
|
314
|
-
errorLight: '#
|
|
315
|
-
errorLighter: '#
|
|
314
|
+
errorLight: '#FDD8E6',
|
|
315
|
+
errorLighter: '#FAA8C6',
|
|
316
316
|
errorDark: '#4E041F',
|
|
317
317
|
success: '#17C965',
|
|
318
|
-
successLight: '#
|
|
319
|
-
successLighter: '#
|
|
318
|
+
successLight: '#DAFBE9',
|
|
319
|
+
successLighter: '#ADF5CD',
|
|
320
320
|
successDark: '#06371C',
|
|
321
321
|
warning: '#F5A525',
|
|
322
|
-
warningLight: '#
|
|
323
|
-
warningLighter: '#
|
|
322
|
+
warningLight: '#FDEFD9',
|
|
323
|
+
warningLighter: '#FBDBA8',
|
|
324
324
|
warningDark: '#4E3105',
|
|
325
325
|
info: '#06B7DC',
|
|
326
|
-
infoLighter: '#A5EEFE',
|
|
327
326
|
infoLight: '#D7F8FF',
|
|
327
|
+
infoLighter: '#A5EEFE',
|
|
328
328
|
infoDark: '#053B49',
|
|
329
329
|
purple: '#f81ce5',
|
|
330
330
|
alert: '#ff0080',
|
|
@@ -366,32 +366,32 @@ var palette = {
|
|
|
366
366
|
accents_6: '#999',
|
|
367
367
|
accents_7: '#eaeaea',
|
|
368
368
|
accents_8: '#fafafa',
|
|
369
|
-
selection: '
|
|
369
|
+
selection: 'rgba(248,28,229, 0.5)',
|
|
370
370
|
code: '#C25FFF',
|
|
371
371
|
border: '#333',
|
|
372
372
|
primary: '#0072F6',
|
|
373
|
-
primaryLight: '#
|
|
374
|
-
primaryLighter: '#
|
|
373
|
+
primaryLight: '#CEE4FF',
|
|
374
|
+
primaryLighter: '#96C1F3',
|
|
375
375
|
primaryDark: '#00254E',
|
|
376
376
|
secondary: '#7828C9',
|
|
377
|
-
secondaryLighter: '#D1B1F1',
|
|
378
377
|
secondaryLight: '#EADCF9',
|
|
378
|
+
secondaryLighter: '#D1B1F1',
|
|
379
379
|
secondaryDark: '#290E45',
|
|
380
380
|
error: '#F31261',
|
|
381
|
-
errorLight: '#
|
|
382
|
-
errorLighter: '#
|
|
381
|
+
errorLight: '#FDD8E6',
|
|
382
|
+
errorLighter: '#FAA8C6',
|
|
383
383
|
errorDark: '#4E041F',
|
|
384
384
|
success: '#17C965',
|
|
385
|
-
successLight: '#
|
|
386
|
-
successLighter: '#
|
|
385
|
+
successLight: '#DAFBE9',
|
|
386
|
+
successLighter: '#ADF5CD',
|
|
387
387
|
successDark: '#06371C',
|
|
388
388
|
warning: '#F5A525',
|
|
389
|
-
warningLight: '#
|
|
390
|
-
warningLighter: '#
|
|
389
|
+
warningLight: '#FDEFD9',
|
|
390
|
+
warningLighter: '#FBDBA8',
|
|
391
391
|
warningDark: '#4E3105',
|
|
392
392
|
info: '#06B7DC',
|
|
393
|
-
infoLighter: '#A5EEFE',
|
|
394
393
|
infoLight: '#D7F8FF',
|
|
394
|
+
infoLighter: '#A5EEFE',
|
|
395
395
|
infoDark: '#053B49',
|
|
396
396
|
purple: '#f81ce5',
|
|
397
397
|
alert: '#ff0080',
|
|
@@ -404,9 +404,9 @@ var expressiveness = {
|
|
|
404
404
|
dropdownBoxShadow: '0 0 0 1px #333',
|
|
405
405
|
scrollerStart: 'rgba(255, 255, 255, 1)',
|
|
406
406
|
scrollerEnd: 'rgba(255, 255, 255, 0)',
|
|
407
|
-
shadowSmall: '0
|
|
408
|
-
shadowMedium: '0
|
|
409
|
-
shadowLarge: '0
|
|
407
|
+
shadowSmall: '0 5px 10px rgba(255, 255, 255, 0.12)',
|
|
408
|
+
shadowMedium: '0 8px 30px rgba(255, 255, 255, 0.12)',
|
|
409
|
+
shadowLarge: '0 30px 60px rgba(255, 255, 255, 0.12)',
|
|
410
410
|
portalOpacity: 0.75
|
|
411
411
|
};
|
|
412
412
|
var font = defaultFont;
|