@bolio-ui/core 1.0.7 → 1.0.8
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 +83 -72
- 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/InputProps.d.ts +1 -0
- package/dist/Input/index.js +75 -65
- package/dist/Input/styles.d.ts +2 -0
- 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 +92 -90
- package/dist/Select/styles.d.ts +5 -4
- 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 +60 -50
- 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 +315 -262
- 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 +40 -29
- 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 +15 -15
- package/esm/Input/InputProps.d.ts +1 -0
- package/esm/Input/styles.d.ts +2 -0
- package/esm/Input/styles.js +27 -13
- package/esm/Select/Select.js +10 -15
- 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 +5 -4
- package/esm/Select/styles.js +35 -28
- 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
|
@@ -65,9 +65,9 @@ function ButtonDropdownComponent(_ref) {
|
|
|
65
65
|
loading: loading
|
|
66
66
|
};
|
|
67
67
|
var bgColor = useMemo(function () {
|
|
68
|
-
if (disabled || loading) return theme.palette.
|
|
68
|
+
if (disabled || loading) return theme.palette.accents_3;
|
|
69
69
|
return visible ? colors.hoverBgColor : colors.bgColor;
|
|
70
|
-
}, [disabled, loading, theme.palette.
|
|
70
|
+
}, [disabled, loading, theme.palette.accents_3, visible, colors.hoverBgColor, colors.bgColor]);
|
|
71
71
|
var paddingLeft = auto ? SCALES.pl(1.15) : SCALES.pl(1.375),
|
|
72
72
|
paddingRight = auto ? SCALES.pr(1.15) : SCALES.pr(1.375);
|
|
73
73
|
useClickAway(ref, function () {
|
|
@@ -79,31 +79,31 @@ function ButtonDropdownComponent(_ref) {
|
|
|
79
79
|
ref: ref,
|
|
80
80
|
onClick: stopPropagation
|
|
81
81
|
}, props, {
|
|
82
|
-
className: _JSXStyle.dynamic([["
|
|
82
|
+
className: _JSXStyle.dynamic([["1128620377", [colors.borderColor, theme.layout.radius, SCALES.height(2.5), auto ? 'min-content' : SCALES.width(10.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.font(0.875), colors.hoverBorder, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius, SCALES.height(2.5), colors.color, bgColor, SCALES.height(2.5), colors.borderLeftColor, disabled || loading ? 'not-allowed' : 'pointer', colors.hoverBorder, colors.hoverBgColor, theme.layout.radius, theme.expressiveness.shadowSmall, theme.layout.gapHalf, theme.palette.background, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius]]]) + " " + (props && props.className != null && props.className || useClasses('btn-dropdown', className) || "")
|
|
83
83
|
}), mainItemChildren, /*#__PURE__*/React.createElement("details", {
|
|
84
84
|
open: visible,
|
|
85
|
-
className: _JSXStyle.dynamic([["
|
|
85
|
+
className: _JSXStyle.dynamic([["1128620377", [colors.borderColor, theme.layout.radius, SCALES.height(2.5), auto ? 'min-content' : SCALES.width(10.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.font(0.875), colors.hoverBorder, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius, SCALES.height(2.5), colors.color, bgColor, SCALES.height(2.5), colors.borderLeftColor, disabled || loading ? 'not-allowed' : 'pointer', colors.hoverBorder, colors.hoverBgColor, theme.layout.radius, theme.expressiveness.shadowSmall, theme.layout.gapHalf, theme.palette.background, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius]]])
|
|
86
86
|
}, /*#__PURE__*/React.createElement("summary", {
|
|
87
87
|
onClick: clickHandler,
|
|
88
|
-
className: _JSXStyle.dynamic([["
|
|
88
|
+
className: _JSXStyle.dynamic([["1128620377", [colors.borderColor, theme.layout.radius, SCALES.height(2.5), auto ? 'min-content' : SCALES.width(10.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.font(0.875), colors.hoverBorder, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius, SCALES.height(2.5), colors.color, bgColor, SCALES.height(2.5), colors.borderLeftColor, disabled || loading ? 'not-allowed' : 'pointer', colors.hoverBorder, colors.hoverBgColor, theme.layout.radius, theme.expressiveness.shadowSmall, theme.layout.gapHalf, theme.palette.background, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius]]])
|
|
89
89
|
}, /*#__PURE__*/React.createElement("div", {
|
|
90
|
-
className: _JSXStyle.dynamic([["
|
|
90
|
+
className: _JSXStyle.dynamic([["1128620377", [colors.borderColor, theme.layout.radius, SCALES.height(2.5), auto ? 'min-content' : SCALES.width(10.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.font(0.875), colors.hoverBorder, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius, SCALES.height(2.5), colors.color, bgColor, SCALES.height(2.5), colors.borderLeftColor, disabled || loading ? 'not-allowed' : 'pointer', colors.hoverBorder, colors.hoverBgColor, theme.layout.radius, theme.expressiveness.shadowSmall, theme.layout.gapHalf, theme.palette.background, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius]]]) + " " + "dropdown-box"
|
|
91
91
|
}, icon ? /*#__PURE__*/React.createElement("span", {
|
|
92
92
|
style: {
|
|
93
|
-
color: colors.color,
|
|
93
|
+
color: disabled || loading ? theme.palette.error : colors.color,
|
|
94
94
|
height: SCALES.height(2.5),
|
|
95
95
|
width: SCALES.height(2.5)
|
|
96
96
|
},
|
|
97
|
-
className: _JSXStyle.dynamic([["
|
|
97
|
+
className: _JSXStyle.dynamic([["1128620377", [colors.borderColor, theme.layout.radius, SCALES.height(2.5), auto ? 'min-content' : SCALES.width(10.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.font(0.875), colors.hoverBorder, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius, SCALES.height(2.5), colors.color, bgColor, SCALES.height(2.5), colors.borderLeftColor, disabled || loading ? 'not-allowed' : 'pointer', colors.hoverBorder, colors.hoverBgColor, theme.layout.radius, theme.expressiveness.shadowSmall, theme.layout.gapHalf, theme.palette.background, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius]]]) + " " + "dropdown-icon"
|
|
98
98
|
}, icon) : /*#__PURE__*/React.createElement(ButtonDropdownIcon, {
|
|
99
|
-
color: colors.color,
|
|
99
|
+
color: disabled || loading ? theme.palette.accents_4 : colors.color,
|
|
100
100
|
height: SCALES.height(2.5)
|
|
101
101
|
}))), /*#__PURE__*/React.createElement("div", {
|
|
102
|
-
className: _JSXStyle.dynamic([["
|
|
102
|
+
className: _JSXStyle.dynamic([["1128620377", [colors.borderColor, theme.layout.radius, SCALES.height(2.5), auto ? 'min-content' : SCALES.width(10.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.font(0.875), colors.hoverBorder, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius, SCALES.height(2.5), colors.color, bgColor, SCALES.height(2.5), colors.borderLeftColor, disabled || loading ? 'not-allowed' : 'pointer', colors.hoverBorder, colors.hoverBgColor, theme.layout.radius, theme.expressiveness.shadowSmall, theme.layout.gapHalf, theme.palette.background, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius]]]) + " " + "content"
|
|
103
103
|
}, itemChildrenWithoutMain)), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
104
|
-
id: "
|
|
105
|
-
dynamic: [
|
|
106
|
-
}, ".btn-dropdown.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;position:relative;box-sizing:border-box;border:1px solid ".concat(
|
|
104
|
+
id: "1128620377",
|
|
105
|
+
dynamic: [colors.borderColor, theme.layout.radius, SCALES.height(2.5), auto ? 'min-content' : SCALES.width(10.5), SCALES.pt(0), paddingRight, SCALES.pb(0), paddingLeft, SCALES.font(0.875), colors.hoverBorder, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius, SCALES.height(2.5), colors.color, bgColor, SCALES.height(2.5), colors.borderLeftColor, disabled || loading ? 'not-allowed' : 'pointer', colors.hoverBorder, colors.hoverBgColor, theme.layout.radius, theme.expressiveness.shadowSmall, theme.layout.gapHalf, theme.palette.background, theme.layout.radius, theme.layout.radius, theme.layout.radius, theme.layout.radius]
|
|
106
|
+
}, ".btn-dropdown.__jsx-style-dynamic-selector{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;position:relative;box-sizing:border-box;border:1px solid ".concat(colors.borderColor, ";border-radius:").concat(theme.layout.radius, ";--bolio-ui-dropdown-height:").concat(SCALES.height(2.5), ";--bolio-ui-dropdown-min-width:").concat(auto ? 'min-content' : SCALES.width(10.5), ";--bolio-ui-dropdown-padding:").concat(SCALES.pt(0), " ").concat(paddingRight, " ").concat(SCALES.pb(0), " ").concat(paddingLeft, ";--bolio-ui-dropdown-font-size:").concat(SCALES.font(0.875), ";}.btn-dropdown.__jsx-style-dynamic-selector:hover{border:1px solid ").concat(colors.hoverBorder, ";}.btn-dropdown.__jsx-style-dynamic-selector>button{border-top-left-radius:").concat(theme.layout.radius, ";border-bottom-left-radius:").concat(theme.layout.radius, ";}details.__jsx-style-dynamic-selector{border-top-right-radius:").concat(theme.layout.radius, ";border-bottom-right-radius:").concat(theme.layout.radius, ";overflow:hidden;}.dropdown-box.__jsx-style-dynamic-selector{height:").concat(SCALES.height(2.5), ";display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:auto;}summary.__jsx-style-dynamic-selector{box-sizing:border-box;-webkit-tap-highlight-color:transparent;list-style:none;outline:none;color:").concat(colors.color, ";background-color:").concat(bgColor, ";height:").concat(SCALES.height(2.5), ";cursor:").concat(disabled || loading ? 'not-allowed' : 'pointer', ";display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;width:auto;padding:0 1px;-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;}summary.__jsx-style-dynamic-selector:hover{border-color:").concat(colors.hoverBorder, ";background-color:").concat(colors.hoverBgColor, ";}.content.__jsx-style-dynamic-selector{position:absolute;right:0;left:0;z-index:90;width:100%;border-radius:").concat(theme.layout.radius, ";box-shadow:").concat(theme.expressiveness.shadowSmall, ";-webkit-transform:translateY(").concat(theme.layout.gapHalf, ");-ms-transform:translateY(").concat(theme.layout.gapHalf, ");transform:translateY(").concat(theme.layout.gapHalf, ");background-color:").concat(theme.palette.background, ";}.content.__jsx-style-dynamic-selector>button:first-of-type{border-top-left-radius:").concat(theme.layout.radius, ";border-top-right-radius:").concat(theme.layout.radius, ";}.content.__jsx-style-dynamic-selector>button:last-of-type{border-bottom-left-radius:").concat(theme.layout.radius, ";border-bottom-right-radius:").concat(theme.layout.radius, ";}.dropdown-icon.__jsx-style-dynamic-selector{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-transform:scale(0.6);-ms-transform:scale(0.6);transform:scale(0.6);}"))));
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
ButtonDropdownComponent.displayName = 'BolioUIButtonDropdown';
|
|
@@ -41,11 +41,11 @@ function ButtonDropdownItem(_ref) {
|
|
|
41
41
|
return /*#__PURE__*/React.createElement("button", _extends({
|
|
42
42
|
onClick: clickHandler
|
|
43
43
|
}, props, {
|
|
44
|
-
className: _JSXStyle.dynamic([["
|
|
44
|
+
className: _JSXStyle.dynamic([["313713234", [cursor, colors.bgColor, colors.color, colors.hoverBorder, colors.hoverBgColor]]]) + " " + (props && props.className != null && props.className || className || "")
|
|
45
45
|
}), loading ? /*#__PURE__*/React.createElement(Loading, null) : children, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
46
|
-
id: "
|
|
46
|
+
id: "313713234",
|
|
47
47
|
dynamic: [cursor, colors.bgColor, colors.color, colors.hoverBorder, colors.hoverBgColor]
|
|
48
|
-
}, "button.__jsx-style-dynamic-selector{position:relative;-webkit-appearance:button;text-rendering:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;vertical-align:middle;text-align:center;cursor:".concat(cursor, ";box-sizing:border-box;margin:0;border:none;background-color:").concat(colors.bgColor, ";color:").concat(colors.color, ";width:100%;height:var(--bolio-ui-dropdown-height);min-width:var(--bolio-ui-dropdown-min-width);padding:var(--bolio-ui-dropdown-padding);font-size:var(--bolio-ui-dropdown-font-size);}button.__jsx-style-dynamic-selector:hover{border-color:").concat(colors.hoverBorder, ";background-color:").concat(colors.hoverBgColor, ";}")));
|
|
48
|
+
}, "button.__jsx-style-dynamic-selector{position:relative;-webkit-appearance:button;text-rendering:auto;display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-flex:1;-ms-flex:1;flex:1;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;vertical-align:middle;text-align:center;cursor:".concat(cursor, ";box-sizing:border-box;margin:0;border:none;background-color:").concat(colors.bgColor, ";color:").concat(colors.color, ";width:100%;height:var(--bolio-ui-dropdown-height);min-width:var(--bolio-ui-dropdown-min-width);padding:var(--bolio-ui-dropdown-padding);font-size:var(--bolio-ui-dropdown-font-size);font-weight:bold;}button.__jsx-style-dynamic-selector:hover{border-color:").concat(colors.hoverBorder, ";background-color:").concat(colors.hoverBgColor, ";}")));
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
ButtonDropdownItem.displayName = 'BolioUIButtonDropdownItem';
|
|
@@ -3,58 +3,69 @@ export var getColor = function getColor(palette, type) {
|
|
|
3
3
|
var disabled = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
4
4
|
var colors = {
|
|
5
5
|
"default": {
|
|
6
|
-
color: palette.
|
|
7
|
-
bgColor: palette.
|
|
6
|
+
color: palette.foreground,
|
|
7
|
+
bgColor: palette.accents_2,
|
|
8
|
+
borderColor: palette.accents_2,
|
|
8
9
|
borderLeftColor: palette.accents_2,
|
|
9
|
-
hoverBgColor: palette.
|
|
10
|
+
hoverBgColor: palette.accents_2,
|
|
10
11
|
hoverBorder: palette.accents_2
|
|
11
12
|
},
|
|
12
13
|
primary: {
|
|
13
|
-
color: palette.
|
|
14
|
-
bgColor: palette.
|
|
14
|
+
color: palette.primaryDark,
|
|
15
|
+
bgColor: palette.primaryLighter,
|
|
16
|
+
borderColor: palette.primaryDark,
|
|
15
17
|
borderLeftColor: palette.primaryDark,
|
|
16
|
-
hoverBgColor: palette.
|
|
17
|
-
hoverBorder: palette.
|
|
18
|
+
hoverBgColor: palette.primaryLight,
|
|
19
|
+
hoverBorder: palette.primary
|
|
18
20
|
},
|
|
19
21
|
secondary: {
|
|
20
|
-
color: palette.
|
|
21
|
-
bgColor: palette.
|
|
22
|
+
color: palette.secondaryDark,
|
|
23
|
+
bgColor: palette.secondaryLighter,
|
|
24
|
+
borderColor: palette.secondaryDark,
|
|
22
25
|
borderLeftColor: palette.secondaryDark,
|
|
23
|
-
hoverBgColor: palette.
|
|
24
|
-
hoverBorder: palette.
|
|
26
|
+
hoverBgColor: palette.secondaryLight,
|
|
27
|
+
hoverBorder: palette.secondary
|
|
25
28
|
},
|
|
26
29
|
success: {
|
|
27
|
-
color: palette.
|
|
28
|
-
bgColor: palette.
|
|
30
|
+
color: palette.successDark,
|
|
31
|
+
bgColor: palette.successLighter,
|
|
32
|
+
borderColor: palette.successDark,
|
|
29
33
|
borderLeftColor: palette.successDark,
|
|
30
|
-
hoverBgColor: palette.
|
|
31
|
-
hoverBorder: palette.
|
|
34
|
+
hoverBgColor: palette.successLight,
|
|
35
|
+
hoverBorder: palette.success
|
|
32
36
|
},
|
|
33
37
|
warning: {
|
|
34
|
-
color: palette.
|
|
35
|
-
bgColor: palette.
|
|
38
|
+
color: palette.warningDark,
|
|
39
|
+
bgColor: palette.warningLighter,
|
|
40
|
+
borderColor: palette.warningDark,
|
|
36
41
|
borderLeftColor: palette.warningDark,
|
|
37
|
-
hoverBgColor: palette.
|
|
38
|
-
hoverBorder: palette.
|
|
42
|
+
hoverBgColor: palette.warningLight,
|
|
43
|
+
hoverBorder: palette.warning
|
|
39
44
|
},
|
|
40
45
|
error: {
|
|
41
|
-
color: palette.
|
|
42
|
-
bgColor: palette.
|
|
46
|
+
color: palette.errorDark,
|
|
47
|
+
bgColor: palette.errorLighter,
|
|
48
|
+
borderColor: palette.errorDark,
|
|
43
49
|
borderLeftColor: palette.errorDark,
|
|
44
|
-
hoverBgColor: palette.
|
|
45
|
-
hoverBorder: palette.
|
|
50
|
+
hoverBgColor: palette.errorLight,
|
|
51
|
+
hoverBorder: palette.error
|
|
46
52
|
},
|
|
47
53
|
info: {
|
|
48
|
-
color: palette.
|
|
49
|
-
bgColor: palette.
|
|
54
|
+
color: palette.infoDark,
|
|
55
|
+
bgColor: palette.infoLighter,
|
|
56
|
+
borderColor: palette.infoDark,
|
|
50
57
|
borderLeftColor: palette.infoDark,
|
|
51
|
-
hoverBgColor: palette.
|
|
52
|
-
hoverBorder: palette.
|
|
58
|
+
hoverBgColor: palette.infoLight,
|
|
59
|
+
hoverBorder: palette.info
|
|
53
60
|
}
|
|
54
61
|
};
|
|
55
62
|
if (disabled) return _extends({}, colors["default"], {
|
|
56
|
-
|
|
57
|
-
|
|
63
|
+
color: palette.accents_5,
|
|
64
|
+
bgColor: palette.accents_3,
|
|
65
|
+
borderColor: palette.accents_4,
|
|
66
|
+
borderLeftColor: palette.accents_4,
|
|
67
|
+
hoverBgColor: palette.accents_3,
|
|
68
|
+
hoverBorder: palette.accents_3
|
|
58
69
|
});
|
|
59
70
|
return type ? colors[type] : colors["default"];
|
|
60
71
|
};
|
|
@@ -20,11 +20,13 @@ var getGroupBorderColors = function getGroupBorderColors(palette, props) {
|
|
|
20
20
|
type = props.type;
|
|
21
21
|
if (!ghost && type !== 'default') return palette.background;
|
|
22
22
|
var colors = {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
// default: palette.accents_3,
|
|
24
|
+
primary: palette.primary,
|
|
25
25
|
secondary: palette.secondary,
|
|
26
|
+
success: palette.success,
|
|
27
|
+
warning: palette.warning,
|
|
26
28
|
error: palette.error,
|
|
27
|
-
|
|
29
|
+
info: palette.info
|
|
28
30
|
};
|
|
29
31
|
var withoutLightType = type === null || type === void 0 ? void 0 : type.replace('-light', '');
|
|
30
32
|
return colors[withoutLightType] || colors["default"];
|
package/esm/Capacity/stories.js
CHANGED
|
@@ -8,13 +8,22 @@ export default {
|
|
|
8
8
|
export var Default = function Default() {
|
|
9
9
|
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
10
10
|
gap: 2
|
|
11
|
-
}, /*#__PURE__*/React.createElement(Grid,
|
|
11
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
12
|
+
xs: 4,
|
|
13
|
+
md: 4
|
|
14
|
+
}, /*#__PURE__*/React.createElement(Capacity, {
|
|
12
15
|
value: 15,
|
|
13
16
|
width: "200px"
|
|
14
|
-
})), /*#__PURE__*/React.createElement(Grid,
|
|
17
|
+
})), /*#__PURE__*/React.createElement(Grid, {
|
|
18
|
+
xs: 4,
|
|
19
|
+
md: 4
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Capacity, {
|
|
15
21
|
value: 45,
|
|
16
22
|
width: "200px"
|
|
17
|
-
})), /*#__PURE__*/React.createElement(Grid,
|
|
23
|
+
})), /*#__PURE__*/React.createElement(Grid, {
|
|
24
|
+
xs: 4,
|
|
25
|
+
md: 4
|
|
26
|
+
}, /*#__PURE__*/React.createElement(Capacity, {
|
|
18
27
|
value: 95,
|
|
19
28
|
width: "200px"
|
|
20
29
|
})));
|
|
@@ -23,31 +32,52 @@ export var FixedColor = function FixedColor() {
|
|
|
23
32
|
var theme = useTheme();
|
|
24
33
|
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
25
34
|
gap: 2
|
|
26
|
-
}, /*#__PURE__*/React.createElement(Grid,
|
|
35
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
36
|
+
xs: 6,
|
|
37
|
+
md: 4
|
|
38
|
+
}, /*#__PURE__*/React.createElement(Capacity, {
|
|
27
39
|
value: 75,
|
|
28
40
|
color: theme.palette.foreground,
|
|
29
41
|
width: "200px"
|
|
30
|
-
})), /*#__PURE__*/React.createElement(Grid,
|
|
42
|
+
})), /*#__PURE__*/React.createElement(Grid, {
|
|
43
|
+
xs: 6,
|
|
44
|
+
md: 4
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Capacity, {
|
|
31
46
|
value: 75,
|
|
32
47
|
color: theme.palette.primary,
|
|
33
48
|
width: "200px"
|
|
34
|
-
})), /*#__PURE__*/React.createElement(Grid,
|
|
49
|
+
})), /*#__PURE__*/React.createElement(Grid, {
|
|
50
|
+
xs: 6,
|
|
51
|
+
md: 4
|
|
52
|
+
}, /*#__PURE__*/React.createElement(Capacity, {
|
|
35
53
|
value: 75,
|
|
36
54
|
color: theme.palette.secondary,
|
|
37
55
|
width: "200px"
|
|
38
|
-
})), /*#__PURE__*/React.createElement(Grid,
|
|
56
|
+
})), /*#__PURE__*/React.createElement(Grid, {
|
|
57
|
+
xs: 6,
|
|
58
|
+
md: 4
|
|
59
|
+
}, /*#__PURE__*/React.createElement(Capacity, {
|
|
39
60
|
value: 75,
|
|
40
61
|
color: theme.palette.success,
|
|
41
62
|
width: "200px"
|
|
42
|
-
})), /*#__PURE__*/React.createElement(Grid,
|
|
63
|
+
})), /*#__PURE__*/React.createElement(Grid, {
|
|
64
|
+
xs: 6,
|
|
65
|
+
md: 4
|
|
66
|
+
}, /*#__PURE__*/React.createElement(Capacity, {
|
|
43
67
|
value: 75,
|
|
44
68
|
color: theme.palette.warning,
|
|
45
69
|
width: "200px"
|
|
46
|
-
})), /*#__PURE__*/React.createElement(Grid,
|
|
70
|
+
})), /*#__PURE__*/React.createElement(Grid, {
|
|
71
|
+
xs: 6,
|
|
72
|
+
md: 4
|
|
73
|
+
}, /*#__PURE__*/React.createElement(Capacity, {
|
|
47
74
|
value: 75,
|
|
48
75
|
color: theme.palette.error,
|
|
49
76
|
width: "200px"
|
|
50
|
-
})), /*#__PURE__*/React.createElement(Grid,
|
|
77
|
+
})), /*#__PURE__*/React.createElement(Grid, {
|
|
78
|
+
xs: 6,
|
|
79
|
+
md: 4
|
|
80
|
+
}, /*#__PURE__*/React.createElement(Capacity, {
|
|
51
81
|
value: 75,
|
|
52
82
|
color: theme.palette.info,
|
|
53
83
|
width: "200px"
|
package/esm/Card/Card.d.ts
CHANGED
package/esm/Card/Card.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
3
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
4
|
-
var _excluded = ["children", "hoverable", "rounded", "className", "shadow", "type"];
|
|
4
|
+
var _excluded = ["children", "hoverable", "rounded", "bordered", "className", "shadow", "type"];
|
|
5
5
|
import _JSXStyle from "../styled-jsx.es.js";
|
|
6
6
|
import React, { useMemo } from 'react';
|
|
7
7
|
import useTheme from '../use-theme';
|
|
@@ -15,6 +15,7 @@ import useClasses from '../use-classes';
|
|
|
15
15
|
var defaultProps = {
|
|
16
16
|
type: 'default',
|
|
17
17
|
hoverable: false,
|
|
18
|
+
bordered: false,
|
|
18
19
|
shadow: false,
|
|
19
20
|
className: ''
|
|
20
21
|
};
|
|
@@ -23,8 +24,8 @@ function CardComponent(_ref) {
|
|
|
23
24
|
var children = _ref.children,
|
|
24
25
|
hoverable = _ref.hoverable,
|
|
25
26
|
rounded = _ref.rounded,
|
|
26
|
-
|
|
27
|
-
className = _ref
|
|
27
|
+
bordered = _ref.bordered,
|
|
28
|
+
className = _ref.className,
|
|
28
29
|
shadow = _ref.shadow,
|
|
29
30
|
_ref$type = _ref.type,
|
|
30
31
|
type = _ref$type === void 0 ? 'default' : _ref$type,
|
|
@@ -59,11 +60,11 @@ function CardComponent(_ref) {
|
|
|
59
60
|
|
|
60
61
|
var hasContent = hasChild(withoutImageChildren, CardContent);
|
|
61
62
|
return /*#__PURE__*/React.createElement("div", _extends({}, props, {
|
|
62
|
-
className: _JSXStyle.dynamic([["
|
|
63
|
+
className: _JSXStyle.dynamic([["3321159247", [theme.palette.background, rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, bordered ? '1px solid' + borderColor : 'none', SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]]]) + " " + (props && props.className != null && props.className || useClasses('card', className) || "")
|
|
63
64
|
}), imageChildren, hasContent ? withoutImageChildren : /*#__PURE__*/React.createElement(CardContent, null, withoutImageChildren), footerChildren, /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
64
|
-
id: "
|
|
65
|
-
dynamic: [theme.palette.background, rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, borderColor, SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]
|
|
66
|
-
}, ".card.__jsx-style-dynamic-selector{background:".concat(theme.palette.background, ";-webkit-transition:all 0.2s ease;transition:all 0.2s ease;border-radius:").concat(rounded ? '25px' : theme.layout.radius, ";box-shadow:").concat(shadow ? theme.expressiveness.shadowSmall : 'none', ";box-sizing:border-box;color:").concat(color, ";background-color:").concat(bgColor, ";border:none;width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.card.__jsx-style-dynamic-selector:hover{box-shadow:").concat(hoverShadow, ";}.card.__jsx-style-dynamic-selector img{width:100%;}.card.__jsx-style-dynamic-selector .image{border-bottom-left-radius:0;border-bottom-right-radius:0;}")));
|
|
65
|
+
id: "3321159247",
|
|
66
|
+
dynamic: [theme.palette.background, rounded ? '25px' : theme.layout.radius, shadow ? theme.expressiveness.shadowSmall : 'none', color, bgColor, bordered ? '1px solid' + borderColor : 'none', SCALES.width(1, 'auto'), SCALES.height(1, 'auto'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), hoverShadow]
|
|
67
|
+
}, ".card.__jsx-style-dynamic-selector{background:".concat(theme.palette.background, ";-webkit-transition:all 0.2s ease;transition:all 0.2s ease;border-radius:").concat(rounded ? '25px' : theme.layout.radius, ";box-shadow:").concat(shadow ? theme.expressiveness.shadowSmall : 'none', ";box-sizing:border-box;color:").concat(color, ";background-color:").concat(bgColor, ";border:").concat(bordered ? '1px solid' + borderColor : 'none', ";width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'auto'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.card.__jsx-style-dynamic-selector:hover{box-shadow:").concat(hoverShadow, ";}.card.__jsx-style-dynamic-selector img{width:100%;}.card.__jsx-style-dynamic-selector .image{border-bottom-left-radius:0;border-bottom-right-radius:0;}")));
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
CardComponent.defaultProps = defaultProps;
|
package/esm/Card/stories.js
CHANGED
|
@@ -17,19 +17,68 @@ export var Default = function Default() {
|
|
|
17
17
|
export var Hover = function Hover() {
|
|
18
18
|
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
19
19
|
gap: 2
|
|
20
|
-
}, /*#__PURE__*/React.createElement(Grid,
|
|
20
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
21
|
+
xs: 12,
|
|
22
|
+
md: 4
|
|
23
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
21
24
|
hoverable: true
|
|
22
|
-
}, "A
|
|
25
|
+
}, "A hoverable default card.")), /*#__PURE__*/React.createElement(Grid, {
|
|
26
|
+
xs: 12,
|
|
27
|
+
md: 4
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
29
|
+
hoverable: true,
|
|
30
|
+
type: "primary"
|
|
31
|
+
}, "A hoverable primary card.")), /*#__PURE__*/React.createElement(Grid, {
|
|
32
|
+
xs: 12,
|
|
33
|
+
md: 4
|
|
34
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
35
|
+
hoverable: true,
|
|
36
|
+
type: "secondary"
|
|
37
|
+
}, "A hoverable secondary card.")));
|
|
38
|
+
};
|
|
39
|
+
export var Border = function Border() {
|
|
40
|
+
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
41
|
+
gap: 2
|
|
42
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
43
|
+
xs: 12,
|
|
44
|
+
md: 4
|
|
45
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
46
|
+
bordered: true
|
|
47
|
+
}, "A bordered default card.")), /*#__PURE__*/React.createElement(Grid, {
|
|
48
|
+
xs: 12,
|
|
49
|
+
md: 4
|
|
50
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
51
|
+
bordered: true,
|
|
52
|
+
type: "primary"
|
|
53
|
+
}, "A bordered primary card.")), /*#__PURE__*/React.createElement(Grid, {
|
|
54
|
+
xs: 12,
|
|
55
|
+
md: 4
|
|
56
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
57
|
+
bordered: true,
|
|
58
|
+
type: "secondary"
|
|
59
|
+
}, "A bordered secondary card.")));
|
|
23
60
|
};
|
|
24
61
|
export var Shadow = function Shadow() {
|
|
25
62
|
return /*#__PURE__*/React.createElement(Grid.Container, {
|
|
26
63
|
gap: 2
|
|
27
|
-
}, /*#__PURE__*/React.createElement(Grid,
|
|
64
|
+
}, /*#__PURE__*/React.createElement(Grid, {
|
|
65
|
+
xs: 12,
|
|
66
|
+
md: 4
|
|
67
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
28
68
|
shadow: true
|
|
29
|
-
}, /*#__PURE__*/React.createElement(
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
},
|
|
69
|
+
}, "A shadow default card.")), /*#__PURE__*/React.createElement(Grid, {
|
|
70
|
+
xs: 12,
|
|
71
|
+
md: 4
|
|
72
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
73
|
+
shadow: true,
|
|
74
|
+
type: "primary"
|
|
75
|
+
}, "A shadow primary card.")), /*#__PURE__*/React.createElement(Grid, {
|
|
76
|
+
xs: 12,
|
|
77
|
+
md: 4
|
|
78
|
+
}, /*#__PURE__*/React.createElement(Card, {
|
|
79
|
+
shadow: true,
|
|
80
|
+
type: "secondary"
|
|
81
|
+
}, "A shadow secondary card.")));
|
|
33
82
|
};
|
|
34
83
|
export var Variants = function Variants() {
|
|
35
84
|
var tuple = function tuple() {
|
package/esm/Card/styles.js
CHANGED
|
@@ -3,39 +3,48 @@ export var getStyles = function getStyles(type, palette, isShadow) {
|
|
|
3
3
|
var colors = {
|
|
4
4
|
"default": {
|
|
5
5
|
color: palette.foreground,
|
|
6
|
-
bgColor: palette.
|
|
7
|
-
|
|
8
|
-
dark: {
|
|
9
|
-
color: palette.background,
|
|
10
|
-
bgColor: palette.foreground
|
|
6
|
+
bgColor: palette.accents_1,
|
|
7
|
+
borderColor: palette.accents_2
|
|
11
8
|
},
|
|
12
9
|
primary: {
|
|
13
|
-
color: palette.
|
|
14
|
-
bgColor: palette.
|
|
10
|
+
color: palette.primaryDark,
|
|
11
|
+
bgColor: palette.primaryLighter,
|
|
12
|
+
borderColor: palette.primaryDark
|
|
15
13
|
},
|
|
16
14
|
secondary: {
|
|
17
|
-
color: palette.
|
|
18
|
-
bgColor: palette.
|
|
15
|
+
color: palette.secondaryDark,
|
|
16
|
+
bgColor: palette.secondaryLighter,
|
|
17
|
+
borderColor: palette.secondaryDark
|
|
19
18
|
},
|
|
20
19
|
success: {
|
|
21
|
-
color: palette.
|
|
22
|
-
bgColor: palette.
|
|
20
|
+
color: palette.successDark,
|
|
21
|
+
bgColor: palette.successLighter,
|
|
22
|
+
borderColor: palette.successDark
|
|
23
23
|
},
|
|
24
24
|
warning: {
|
|
25
|
-
color: palette.
|
|
26
|
-
bgColor: palette.
|
|
25
|
+
color: palette.warningDark,
|
|
26
|
+
bgColor: palette.warningLighter,
|
|
27
|
+
borderColor: palette.warningDark
|
|
27
28
|
},
|
|
28
29
|
error: {
|
|
30
|
+
color: palette.errorDark,
|
|
31
|
+
bgColor: palette.errorLighter,
|
|
32
|
+
borderColor: palette.errorDark
|
|
33
|
+
},
|
|
34
|
+
info: {
|
|
35
|
+
color: palette.infoDark,
|
|
36
|
+
bgColor: palette.infoLighter,
|
|
37
|
+
borderColor: palette.infoDark
|
|
38
|
+
},
|
|
39
|
+
dark: {
|
|
29
40
|
color: palette.background,
|
|
30
|
-
bgColor: palette.
|
|
41
|
+
bgColor: palette.foreground,
|
|
42
|
+
borderColor: palette.foreground
|
|
31
43
|
},
|
|
32
44
|
lite: {
|
|
33
45
|
color: palette.foreground,
|
|
34
|
-
bgColor: palette.background
|
|
35
|
-
|
|
36
|
-
info: {
|
|
37
|
-
color: palette.background,
|
|
38
|
-
bgColor: palette.info
|
|
46
|
+
bgColor: palette.background,
|
|
47
|
+
borderColor: palette.foreground
|
|
39
48
|
}
|
|
40
49
|
};
|
|
41
50
|
var showBorder = type === 'default' && !isShadow;
|
package/esm/Checkbox/Checkbox.js
CHANGED
|
@@ -88,7 +88,7 @@ function CheckboxComponent(_ref) {
|
|
|
88
88
|
setSelfChecked(checked);
|
|
89
89
|
}, [checked]);
|
|
90
90
|
return /*#__PURE__*/React.createElement("label", {
|
|
91
|
-
className: _JSXStyle.dynamic([["
|
|
91
|
+
className: _JSXStyle.dynamic([["842595250", [SCALES.font(1), isDisabled ? 'not-allowed' : 'pointer', isDisabled ? 0.75 : 1, SCALES.width(1, 'auto'), SCALES.height(1, 'var(--checkbox-size)'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), isDisabled ? 'not-allowed' : 'pointer']]]) + " " + (classes || "")
|
|
92
92
|
}, /*#__PURE__*/React.createElement(CheckboxIcon, {
|
|
93
93
|
fill: fill,
|
|
94
94
|
bg: bg,
|
|
@@ -100,13 +100,13 @@ function CheckboxComponent(_ref) {
|
|
|
100
100
|
checked: selfChecked,
|
|
101
101
|
onChange: changeHandle
|
|
102
102
|
}, props, {
|
|
103
|
-
className: _JSXStyle.dynamic([["
|
|
103
|
+
className: _JSXStyle.dynamic([["842595250", [SCALES.font(1), isDisabled ? 'not-allowed' : 'pointer', isDisabled ? 0.75 : 1, SCALES.width(1, 'auto'), SCALES.height(1, 'var(--checkbox-size)'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), isDisabled ? 'not-allowed' : 'pointer']]]) + " " + (props && props.className != null && props.className || "")
|
|
104
104
|
})), /*#__PURE__*/React.createElement("span", {
|
|
105
|
-
className: _JSXStyle.dynamic([["
|
|
105
|
+
className: _JSXStyle.dynamic([["842595250", [SCALES.font(1), isDisabled ? 'not-allowed' : 'pointer', isDisabled ? 0.75 : 1, SCALES.width(1, 'auto'), SCALES.height(1, 'var(--checkbox-size)'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), isDisabled ? 'not-allowed' : 'pointer']]]) + " " + "text"
|
|
106
106
|
}, children), /*#__PURE__*/React.createElement(_JSXStyle, {
|
|
107
|
-
id: "
|
|
108
|
-
dynamic: [SCALES.font(
|
|
109
|
-
}, ".checkbox.__jsx-style-dynamic-selector{--checkbox-size:".concat(SCALES.font(
|
|
107
|
+
id: "842595250",
|
|
108
|
+
dynamic: [SCALES.font(1), isDisabled ? 'not-allowed' : 'pointer', isDisabled ? 0.75 : 1, SCALES.width(1, 'auto'), SCALES.height(1, 'var(--checkbox-size)'), SCALES.pt(0), SCALES.pr(0), SCALES.pb(0), SCALES.pl(0), SCALES.mt(0), SCALES.mr(0), SCALES.mb(0), SCALES.ml(0), isDisabled ? 'not-allowed' : 'pointer']
|
|
109
|
+
}, ".checkbox.__jsx-style-dynamic-selector{--checkbox-size:".concat(SCALES.font(1), ";display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:").concat(isDisabled ? 'not-allowed' : 'pointer', ";opacity:").concat(isDisabled ? 0.75 : 1, ";line-height:var(--checkbox-size);width:").concat(SCALES.width(1, 'auto'), ";height:").concat(SCALES.height(1, 'var(--checkbox-size)'), ";padding:").concat(SCALES.pt(0), " ").concat(SCALES.pr(0), " ").concat(SCALES.pb(0), " ").concat(SCALES.pl(0), ";margin:").concat(SCALES.mt(0), " ").concat(SCALES.mr(0), " ").concat(SCALES.mb(0), " ").concat(SCALES.ml(0), ";}.text.__jsx-style-dynamic-selector{font-size:var(--checkbox-size);line-height:var(--checkbox-size);padding-left:calc(var(--checkbox-size) * 0.5);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:").concat(isDisabled ? 'not-allowed' : 'pointer', ";}input.__jsx-style-dynamic-selector{opacity:0;outline:none;position:absolute;width:0;height:0;margin:0;padding:0;z-index:-1;font-size:0;background-color:transparent;}")));
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
CheckboxComponent.displayName = 'BolioUICheckbox';
|