@councilbox/councilbox-ui 1.0.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/HOCs/useDynamicStyles.js +99 -0
- package/dist/HOCs/useRipple.js +91 -0
- package/dist/build-index.js +8 -0
- package/dist/components/1.Introduction.stories.mdx +2 -1
- package/dist/components/2.Changelog.stories.mdx +3 -0
- package/dist/components/3.Guide.stories.mdx +56 -0
- package/dist/components/Accordion/Accordion.css +39 -1
- package/dist/components/Accordion/Accordion.js +84 -45
- package/dist/components/Accordion/Accordion.stories.js +4 -2
- package/dist/components/Accordion/AccordionOld.css +16 -0
- package/dist/components/Accordion/AccordionOld.js +115 -0
- package/dist/components/Accordion/DesignAccordion.stories.js +38 -0
- package/dist/components/Alert/Alert.css +5 -0
- package/dist/components/Alert/Alert.js +17 -6
- package/dist/components/Avatar/Avatar.css +3 -3
- package/dist/components/Avatar/Avatar.js +36 -20
- package/dist/components/Avatar/AvatarOld.js +138 -0
- package/dist/components/Avatar/DesignAvatar.stories.js +1 -1
- package/dist/components/Block/Block.js +17 -2
- package/dist/components/ButtonBasic/ButtonBasic.css +264 -20
- package/dist/components/ButtonBasic/ButtonBasic.js +85 -110
- package/dist/components/ButtonBasic/ButtonBasicOld.css +41 -0
- package/dist/components/ButtonBasic/ButtonBasicOld.js +231 -0
- package/dist/components/Checkbox/Checkbox.css +101 -22
- package/dist/components/Checkbox/Checkbox.js +119 -63
- package/dist/components/Checkbox/CheckboxOld.css +31 -0
- package/dist/components/Checkbox/CheckboxOld.js +112 -0
- package/dist/components/DragDrop/DragDrop.js +24 -9
- package/dist/components/DrawerPanel/DesignDrawerPanel.js +4 -2
- package/dist/components/DrawerPanel/DrawerPanel.css +76 -36
- package/dist/components/DrawerPanel/DrawerPanel.js +137 -115
- package/dist/components/DrawerPanel/DrawerPanelOld.css +56 -0
- package/dist/components/DrawerPanel/DrawerPanelOld.js +233 -0
- package/dist/components/DropDown/DesignDropDown.stories.js +146 -17
- package/dist/components/DropDown/DropDown.css +96 -1
- package/dist/components/DropDown/DropDown.js +363 -82
- package/dist/components/DropDown/DropDown.stories.js +1 -0
- package/dist/components/DropDown/DropDownOld.css +3 -0
- package/dist/components/DropDown/DropDownOld.js +186 -0
- package/dist/components/DropDown/PopoverPlayground.css +22 -0
- package/dist/components/DropDown/PopoverPlayground.js +235 -0
- package/dist/components/EnhancedTable/EnhancedTable.js +5 -6
- package/dist/components/FabButton/DesignFabButton.stories.js +3 -1
- package/dist/components/FabButton/FabButton.js +25 -5
- package/dist/components/Grid/DesignGrid.stories.js +9 -3
- package/dist/components/Grid/Grid.css +325 -0
- package/dist/components/Grid/Grid.js +57 -16
- package/dist/components/Grid/GridItem.js +31 -13
- package/dist/components/Grid/GridItemOld.js +43 -0
- package/dist/components/Grid/GridOld.css +0 -0
- package/dist/components/Grid/GridOld.js +53 -0
- package/dist/components/Header/Header.js +95 -116
- package/dist/components/IconButton/DesignIconButton.stories.js +22 -2
- package/dist/components/IconButton/IconButton.css +121 -1
- package/dist/components/IconButton/IconButton.js +98 -53
- package/dist/components/IconButton/IconButtonOld.css +0 -0
- package/dist/components/IconButton/IconButtonOld.js +138 -0
- package/dist/components/IconButtonSquare/IconButtonSquare.js +20 -90
- package/dist/components/IconButtonSquare/IconButtonSquareOld.css +43 -0
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +133 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.css +109 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.js +316 -77
- package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +118 -6
- package/dist/components/InputAutocomplete/InputAutocompleteOld.css +5 -0
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +178 -0
- package/dist/components/InputPassword/InputPassword.js +10 -20
- package/dist/components/InputText/InputText.css +442 -1
- package/dist/components/InputText/InputText.js +298 -239
- package/dist/components/InputText/InputText.stories.js +12 -3
- package/dist/components/InputText/InputTextOld.css +10 -0
- package/dist/components/InputText/InputTextOld.js +340 -0
- package/dist/components/InputTextArea/DesignInputTextArea.stories.js +30 -4
- package/dist/components/InputTextArea/InputTextArea.js +13 -6
- package/dist/components/LoadingSection/LoadingSection.css +44 -2
- package/dist/components/LoadingSection/LoadingSection.js +63 -9
- package/dist/components/MenuItem/DesignMenuItem.stories.js +1 -0
- package/dist/components/MenuItem/MenuItem.css +31 -6
- package/dist/components/MenuItem/MenuItem.js +95 -50
- package/dist/components/MenuItem/MenuItemOld.js +139 -0
- package/dist/components/MenuLateralLeft/MenuLateralLeft.js +60 -40
- package/dist/components/MenuLateralRight/MenuLateralRight.js +23 -8
- package/dist/components/Modal/DesignModal.stories.js +54 -0
- package/dist/components/Modal/Modal.css +81 -2
- package/dist/components/Modal/Modal.js +112 -80
- package/dist/components/Modal/Modal.stories.js +13 -2
- package/dist/components/Modal/ModalOld.css +3 -0
- package/dist/components/Modal/ModalOld.js +230 -0
- package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +9 -1
- package/dist/components/PaginationFooter/PaginationFooter.css +73 -0
- package/dist/components/PaginationFooter/PaginationFooter.js +45 -87
- package/dist/components/RadioButton/Radio.css +115 -16
- package/dist/components/RadioButton/Radio.js +70 -94
- package/dist/components/RadioButton/Radio.stories.js +42 -18
- package/dist/components/RadioButton/RadioOld.css +31 -0
- package/dist/components/RadioButton/RadioOld.js +142 -0
- package/dist/components/Ripple/DesignRipple.js +77 -0
- package/dist/components/Ripple/Ripple.stories.js +45 -0
- package/dist/components/Scrollbar/Scrollbar.js +21 -6
- package/dist/components/SelectInput/DesignSelectInput.js +62 -23
- package/dist/components/SelectInput/SelectInput.css +128 -10
- package/dist/components/SelectInput/SelectInput.js +233 -246
- package/dist/components/SelectInput/SelectInputOld.css +17 -0
- package/dist/components/SelectInput/SelectInputOld.js +325 -0
- package/dist/components/Stars/Stars.css +28 -28
- package/dist/components/Stars/Stars.js +22 -12
- package/dist/components/Stepper/Stepper.css +1 -0
- package/dist/components/Stepper/Stepper.js +81 -24
- package/dist/components/Table/DesignTable.stories.js +1 -0
- package/dist/components/Table/Table.css +56 -53
- package/dist/components/Table/Table.js +55 -75
- package/dist/components/Table/TableOld.css +79 -0
- package/dist/components/Table/TableOld.js +165 -0
- package/dist/components/Tabs/DesignTabs.js +37 -12
- package/dist/components/Tabs/Tabs.css +39 -4
- package/dist/components/Tabs/Tabs.js +194 -30
- package/dist/components/Tabs/Tabs.stories.js +8 -1
- package/dist/components/Tabs/TabsOld.js +92 -0
- package/dist/components/Tag/Tag.js +19 -9
- package/dist/components/Toggle/Toggle.css +122 -3
- package/dist/components/Toggle/Toggle.js +95 -68
- package/dist/components/Tooltip/DesignTooltip.stories.js +48 -0
- package/dist/components/Tooltip/Tooltip.css +75 -0
- package/dist/components/Tooltip/Tooltip.js +126 -0
- package/dist/components/Tooltip/Tooltip.stories.js +40 -0
- package/dist/components/Typography/Typography.css +9 -0
- package/dist/components/Typography/Typography.js +30 -21
- package/dist/components/Typography/TypographyOld.js +132 -0
- package/dist/styles/colorConsts.css +24 -0
- package/dist/styles/main.css +41 -49
- package/dist/styles/scpacingConsts.css +26 -0
- package/dist/styles/zIndexConsts.css +9 -0
- package/package.json +2 -1
|
@@ -11,9 +11,11 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
11
11
|
|
|
12
12
|
require("../../styles/main.css");
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
require("./Typography.css");
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _useDynamicStyles2 = _interopRequireDefault(require("../../HOCs/useDynamicStyles"));
|
|
17
|
+
|
|
18
|
+
var _excluded = ["children", "styles", "variant", "fontWeight", "textAlign", "color", "secondaryFont", "component", "style", "sx", "className", "prefixClass"];
|
|
17
19
|
|
|
18
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
21
|
|
|
@@ -36,10 +38,10 @@ var nameVariant = {
|
|
|
36
38
|
'2XL': 'h4',
|
|
37
39
|
XL: 'h5',
|
|
38
40
|
L: 'h6',
|
|
39
|
-
M: '
|
|
40
|
-
S: '
|
|
41
|
-
XS: '
|
|
42
|
-
'2XS': '
|
|
41
|
+
M: 'p',
|
|
42
|
+
S: 'p',
|
|
43
|
+
XS: 'p',
|
|
44
|
+
'2XS': 'p'
|
|
43
45
|
};
|
|
44
46
|
var stylesVariants = {
|
|
45
47
|
'5XL': {
|
|
@@ -84,7 +86,7 @@ var stylesVariants = {
|
|
|
84
86
|
}
|
|
85
87
|
};
|
|
86
88
|
|
|
87
|
-
var Typography = function
|
|
89
|
+
var Typography = /*#__PURE__*/_react.default.forwardRef(function (_ref, ref) {
|
|
88
90
|
var children = _ref.children,
|
|
89
91
|
styles = _ref.styles,
|
|
90
92
|
variant = _ref.variant,
|
|
@@ -93,27 +95,35 @@ var Typography = function Typography(_ref) {
|
|
|
93
95
|
color = _ref.color,
|
|
94
96
|
secondaryFont = _ref.secondaryFont,
|
|
95
97
|
component = _ref.component,
|
|
98
|
+
style = _ref.style,
|
|
99
|
+
sx = _ref.sx,
|
|
100
|
+
className = _ref.className,
|
|
101
|
+
propPrefixClass = _ref.prefixClass,
|
|
96
102
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
97
103
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
104
|
+
var _useDynamicStyles = (0, _useDynamicStyles2.default)(sx),
|
|
105
|
+
stylesInLine = _useDynamicStyles.stylesInLine,
|
|
106
|
+
dynamicPrefixClass = _useDynamicStyles.prefixClass;
|
|
107
|
+
|
|
108
|
+
var prefixClass = propPrefixClass || dynamicPrefixClass;
|
|
109
|
+
var Component = component || nameVariant[variant === null || variant === void 0 ? void 0 : variant.toUpperCase()] || 'p';
|
|
110
|
+
return /*#__PURE__*/_react.default.createElement(Component, _extends({
|
|
111
|
+
className: prefixClass("cbx-Typography ".concat(Component === 'p' ? 'cbx-Typography-p' : '', " ").concat(className || '')),
|
|
112
|
+
style: _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, stylesVariants[(variant === null || variant === void 0 ? void 0 : variant.toUpperCase()) || 'M']), {}, {
|
|
113
|
+
color: color,
|
|
114
|
+
fontWeight: fontWeight,
|
|
102
115
|
textAlign: textAlign,
|
|
103
|
-
fontFamily: secondaryFont
|
|
104
|
-
}, styles),
|
|
105
|
-
|
|
106
|
-
component: component
|
|
116
|
+
fontFamily: secondaryFont ? 'var(--font-secondary)' : 'inherit'
|
|
117
|
+
}, styles), style), stylesInLine),
|
|
118
|
+
ref: ref
|
|
107
119
|
}, props), children);
|
|
108
|
-
};
|
|
120
|
+
});
|
|
109
121
|
|
|
110
|
-
Typography.displayName = "Typography";
|
|
111
122
|
Typography.propTypes = {
|
|
112
123
|
variant: _propTypes.default.string,
|
|
113
|
-
color: _propTypes.default.
|
|
124
|
+
color: _propTypes.default.node,
|
|
114
125
|
styles: _propTypes.default.object,
|
|
115
|
-
|
|
116
|
-
fontWeight: _propTypes.default.string,
|
|
126
|
+
fontWeight: _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.number]),
|
|
117
127
|
textAlign: _propTypes.default.string,
|
|
118
128
|
component: _propTypes.default.string,
|
|
119
129
|
secondaryFont: _propTypes.default.bool
|
|
@@ -122,7 +132,6 @@ Typography.defaultProps = {
|
|
|
122
132
|
variant: '',
|
|
123
133
|
color: '',
|
|
124
134
|
styles: {},
|
|
125
|
-
children: '',
|
|
126
135
|
fontWeight: '',
|
|
127
136
|
textAlign: '',
|
|
128
137
|
component: '',
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
+
|
|
12
|
+
require("../../styles/main.css");
|
|
13
|
+
|
|
14
|
+
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
15
|
+
|
|
16
|
+
var _excluded = ["children", "styles", "variant", "fontWeight", "textAlign", "color", "secondaryFont", "component"];
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
19
|
+
|
|
20
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
21
|
+
|
|
22
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
23
|
+
|
|
24
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
25
|
+
|
|
26
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
27
|
+
|
|
28
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
|
+
|
|
30
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
31
|
+
|
|
32
|
+
var nameVariant = {
|
|
33
|
+
'5XL': 'h1',
|
|
34
|
+
'4XL': 'h2',
|
|
35
|
+
'3XL': 'h3',
|
|
36
|
+
'2XL': 'h4',
|
|
37
|
+
XL: 'h5',
|
|
38
|
+
L: 'h6',
|
|
39
|
+
M: 'body1',
|
|
40
|
+
S: 'body2',
|
|
41
|
+
XS: 'subtitle1',
|
|
42
|
+
'2XS': 'subtitle2'
|
|
43
|
+
};
|
|
44
|
+
var stylesVariants = {
|
|
45
|
+
'5XL': {
|
|
46
|
+
fontSize: '3rem',
|
|
47
|
+
lineHeight: '4rem'
|
|
48
|
+
},
|
|
49
|
+
'4XL': {
|
|
50
|
+
fontSize: '2.5rem',
|
|
51
|
+
lineHeight: '3.5rem'
|
|
52
|
+
},
|
|
53
|
+
'3XL': {
|
|
54
|
+
fontSize: '2rem',
|
|
55
|
+
lineHeight: '3rem'
|
|
56
|
+
},
|
|
57
|
+
'2XL': {
|
|
58
|
+
fontSize: '1.75rem',
|
|
59
|
+
lineHeight: '2.5rem'
|
|
60
|
+
},
|
|
61
|
+
XL: {
|
|
62
|
+
fontSize: '1.5rem',
|
|
63
|
+
lineHeight: '2rem'
|
|
64
|
+
},
|
|
65
|
+
L: {
|
|
66
|
+
fontSize: '1.25rem',
|
|
67
|
+
lineHeight: '1.75rem'
|
|
68
|
+
},
|
|
69
|
+
M: {
|
|
70
|
+
fontSize: '1rem',
|
|
71
|
+
lineHeight: '1.5rem'
|
|
72
|
+
},
|
|
73
|
+
S: {
|
|
74
|
+
fontSize: '0.875rem',
|
|
75
|
+
lineHeight: '1.25rem'
|
|
76
|
+
},
|
|
77
|
+
XS: {
|
|
78
|
+
fontSize: '0.75rem',
|
|
79
|
+
lineHeight: '1rem'
|
|
80
|
+
},
|
|
81
|
+
'2XS': {
|
|
82
|
+
fontSize: '0.625rem',
|
|
83
|
+
lineHeight: '0.75rem'
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
var Typography = function Typography(_ref) {
|
|
88
|
+
var children = _ref.children,
|
|
89
|
+
styles = _ref.styles,
|
|
90
|
+
variant = _ref.variant,
|
|
91
|
+
fontWeight = _ref.fontWeight,
|
|
92
|
+
textAlign = _ref.textAlign,
|
|
93
|
+
color = _ref.color,
|
|
94
|
+
secondaryFont = _ref.secondaryFont,
|
|
95
|
+
component = _ref.component,
|
|
96
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
97
|
+
|
|
98
|
+
return /*#__PURE__*/_react.default.createElement(_Typography.default, _extends({
|
|
99
|
+
sx: _objectSpread(_objectSpread({}, stylesVariants[(variant === null || variant === void 0 ? void 0 : variant.toUpperCase()) || 'M']), {}, {
|
|
100
|
+
color: color || 'var(--gray5)',
|
|
101
|
+
fontWeight: fontWeight || '400',
|
|
102
|
+
textAlign: textAlign,
|
|
103
|
+
fontFamily: secondaryFont && 'var(--font-secondary)'
|
|
104
|
+
}, styles),
|
|
105
|
+
variant: nameVariant[(variant === null || variant === void 0 ? void 0 : variant.toUpperCase()) || 'M'],
|
|
106
|
+
component: component
|
|
107
|
+
}, props), children);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
Typography.displayName = "Typography";
|
|
111
|
+
Typography.propTypes = {
|
|
112
|
+
variant: _propTypes.default.string,
|
|
113
|
+
color: _propTypes.default.string,
|
|
114
|
+
styles: _propTypes.default.object,
|
|
115
|
+
children: _propTypes.default.node,
|
|
116
|
+
fontWeight: _propTypes.default.string,
|
|
117
|
+
textAlign: _propTypes.default.string,
|
|
118
|
+
component: _propTypes.default.string,
|
|
119
|
+
secondaryFont: _propTypes.default.bool
|
|
120
|
+
};
|
|
121
|
+
Typography.defaultProps = {
|
|
122
|
+
variant: '',
|
|
123
|
+
color: '',
|
|
124
|
+
styles: {},
|
|
125
|
+
children: '',
|
|
126
|
+
fontWeight: '',
|
|
127
|
+
textAlign: '',
|
|
128
|
+
component: '',
|
|
129
|
+
secondaryFont: false
|
|
130
|
+
};
|
|
131
|
+
var _default = Typography;
|
|
132
|
+
exports.default = _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--primary: #38398C;
|
|
3
|
+
--secondary: #9B9BC5;
|
|
4
|
+
--accent: #6BEAF2;
|
|
5
|
+
--success: #128851;
|
|
6
|
+
--error: #D14642;
|
|
7
|
+
--info: #3B70D8;
|
|
8
|
+
--warning: #DB7E08;
|
|
9
|
+
--primary75: #6A6BA9;
|
|
10
|
+
--primary50: #9B9BC5;
|
|
11
|
+
--primary25: #CDCDE2;
|
|
12
|
+
--primary10: #ECECF4;
|
|
13
|
+
--accent75: #90F0F6;
|
|
14
|
+
--accent50: #B4F4F8;
|
|
15
|
+
--accent25: #DAFAFC;
|
|
16
|
+
--accent10: #F1FDFE;
|
|
17
|
+
--black: #000000;
|
|
18
|
+
--gray5: #333333;
|
|
19
|
+
--gray4: #595959;
|
|
20
|
+
--gray3: #767676;
|
|
21
|
+
--gray2: #CCCCCC;
|
|
22
|
+
--gray1: #EEEEEE;
|
|
23
|
+
--white: #FFFFFF;
|
|
24
|
+
}
|
package/dist/styles/main.css
CHANGED
|
@@ -1,58 +1,16 @@
|
|
|
1
1
|
@import './reset.css';
|
|
2
2
|
@import './styleFont.css';
|
|
3
|
+
@import './colorConsts.css';
|
|
4
|
+
@import './zIndexConsts.css';
|
|
5
|
+
@import './scpacingConsts.css';
|
|
3
6
|
|
|
4
7
|
:root {
|
|
5
8
|
--font-primary: 'Lato', sans-serif;
|
|
6
9
|
--font-secondary: 'Montserrat', sans-serif;
|
|
7
|
-
--primary: #38398C;
|
|
8
|
-
--secondary: #9B9BC5;
|
|
9
|
-
--accent: #6BEAF2;
|
|
10
|
-
--success: #128851;
|
|
11
|
-
--error: #D14642;
|
|
12
|
-
--info: #3B70D8;
|
|
13
|
-
--warning: #DB7E08;
|
|
14
|
-
--primary75: #6A6BA9;
|
|
15
|
-
--primary50: #9B9BC5;
|
|
16
|
-
--primary25: #CDCDE2;
|
|
17
|
-
--primary10: #ECECF4;
|
|
18
|
-
--accent75: #90F0F6;
|
|
19
|
-
--accent50: #B4F4F8;
|
|
20
|
-
--accent25: #DAFAFC;
|
|
21
|
-
--accent10: #F1FDFE;
|
|
22
|
-
--black: #000000;
|
|
23
|
-
--gray5: #333333;
|
|
24
|
-
--gray4: #595959;
|
|
25
|
-
--gray3: #767676;
|
|
26
|
-
--gray2: #CCCCCC;
|
|
27
|
-
--gray1: #EEEEEE;
|
|
28
|
-
--white: #FFFFFF;
|
|
29
|
-
--spacing4: 0.25rem;
|
|
30
|
-
--spacing8: 0.5rem;
|
|
31
|
-
--spacing12: 0.75rem;
|
|
32
|
-
--spacing16: 1rem;
|
|
33
|
-
--spacing20: 1.25rem;
|
|
34
|
-
--spacing24: 1.5rem;
|
|
35
|
-
--spacing32: 2rem;
|
|
36
|
-
--spacing36: 2.25rem;
|
|
37
|
-
--spacing40: 2.5rem;
|
|
38
|
-
--spacing48: 3rem;
|
|
39
|
-
--spacing52: 3.25rem;
|
|
40
|
-
--spacing56: 3.5rem;
|
|
41
|
-
--spacing64: 4rem;
|
|
42
|
-
--spacing72: 4.5rem;
|
|
43
|
-
--spacing76: 4.75rem;
|
|
44
|
-
--spacing80: 5rem;
|
|
45
|
-
--spacing96: 6rem;
|
|
46
|
-
--spacing112: 7rem;
|
|
47
|
-
--spacing120: 7.5rem;
|
|
48
|
-
--spacing128: 8rem;
|
|
49
|
-
--spacing144: 9rem;
|
|
50
|
-
--spacing160: 10rem;
|
|
51
|
-
--spacing176: 11rem;
|
|
52
|
-
--spacing192: 12rem;
|
|
53
10
|
}
|
|
54
11
|
|
|
55
|
-
html,
|
|
12
|
+
html,
|
|
13
|
+
body {
|
|
56
14
|
font-family: var(--font-primary);
|
|
57
15
|
height: 100%;
|
|
58
16
|
}
|
|
@@ -60,7 +18,6 @@ html, body {
|
|
|
60
18
|
#root {
|
|
61
19
|
overflow: hidden;
|
|
62
20
|
padding: 0.5em;
|
|
63
|
-
/* padding: 0; */
|
|
64
21
|
height: 100%;
|
|
65
22
|
margin: 0;
|
|
66
23
|
}
|
|
@@ -70,10 +27,45 @@ html {
|
|
|
70
27
|
height: 100%;
|
|
71
28
|
overflow: hidden !important;
|
|
72
29
|
}
|
|
73
|
-
|
|
30
|
+
|
|
74
31
|
body {
|
|
75
32
|
margin: 0;
|
|
76
33
|
padding: 0;
|
|
77
34
|
height: 100%;
|
|
78
35
|
font-family: var(--font-primary);
|
|
79
36
|
}
|
|
37
|
+
|
|
38
|
+
.cbx-ripple {
|
|
39
|
+
position: relative;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
background-color: transparent;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@keyframes ripple-animation {
|
|
45
|
+
from {
|
|
46
|
+
transform: scale(0);
|
|
47
|
+
opacity: 0.5;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
to {
|
|
51
|
+
transform: scale(4);
|
|
52
|
+
opacity: 0;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.ripple {
|
|
57
|
+
position: absolute;
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
transform: scale(0);
|
|
61
|
+
opacity: 1;
|
|
62
|
+
animation: ripple-animation 600ms linear;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.MuiAutocomplete-popper .MuiAutocomplete-option {
|
|
66
|
+
font-family: var(--font-family);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.MuiTooltip-popper.MuiTooltip-popperInteractive {
|
|
70
|
+
z-index: var(--zIdxTooltip);
|
|
71
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--spacing4: 0.25rem;
|
|
3
|
+
--spacing8: 0.5rem;
|
|
4
|
+
--spacing12: 0.75rem;
|
|
5
|
+
--spacing16: 1rem;
|
|
6
|
+
--spacing20: 1.25rem;
|
|
7
|
+
--spacing24: 1.5rem;
|
|
8
|
+
--spacing32: 2rem;
|
|
9
|
+
--spacing36: 2.25rem;
|
|
10
|
+
--spacing40: 2.5rem;
|
|
11
|
+
--spacing48: 3rem;
|
|
12
|
+
--spacing52: 3.25rem;
|
|
13
|
+
--spacing56: 3.5rem;
|
|
14
|
+
--spacing64: 4rem;
|
|
15
|
+
--spacing72: 4.5rem;
|
|
16
|
+
--spacing76: 4.75rem;
|
|
17
|
+
--spacing80: 5rem;
|
|
18
|
+
--spacing96: 6rem;
|
|
19
|
+
--spacing112: 7rem;
|
|
20
|
+
--spacing120: 7.5rem;
|
|
21
|
+
--spacing128: 8rem;
|
|
22
|
+
--spacing144: 9rem;
|
|
23
|
+
--spacing160: 10rem;
|
|
24
|
+
--spacing176: 11rem;
|
|
25
|
+
--spacing192: 12rem;
|
|
26
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@councilbox/councilbox-ui",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"main": "dist/build-index.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"start": "start-storybook -p 6006 -s public",
|
|
30
|
+
"startReact": "react-scripts start",
|
|
30
31
|
"build": "react-scripts build",
|
|
31
32
|
"start-react": "react-scripts start src/manualTest.js",
|
|
32
33
|
"test": "react-scripts test",
|