@councilbox/councilbox-ui 2.0.54 → 2.0.55
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/Accordion.js +3 -0
- package/Alert.js +3 -0
- package/Avatar.js +3 -0
- package/AvatarGroup.js +3 -0
- package/Block.js +3 -0
- package/Button.js +3 -0
- package/ButtonBasic.js +3 -0
- package/Checkbox.js +3 -0
- package/DatePicker.js +3 -0
- package/DateRangePicker.js +3 -0
- package/DateTimePicker.js +3 -0
- package/DragDrop.js +3 -0
- package/DrawerPanel.js +3 -0
- package/DropDown.js +3 -0
- package/EnhancedTable.js +3 -0
- package/FabButton.js +3 -0
- package/Grid.js +3 -0
- package/Header.js +3 -0
- package/IconButton.js +3 -0
- package/IconButtonSquare.js +3 -0
- package/IconFont.js +3 -0
- package/InputAutocomplete.js +3 -0
- package/InputPassword.js +3 -0
- package/InputText.js +3 -0
- package/InputTextArea.js +3 -0
- package/LoadingSection.js +3 -0
- package/MenuItem.js +3 -0
- package/MenuLateralLeft.js +3 -0
- package/MenuLateralRight.js +3 -0
- package/Modal.js +3 -0
- package/Radio.js +3 -0
- package/RichTextInput.js +3 -0
- package/Scrollbar.js +3 -0
- package/ScrollbarNew.js +3 -0
- package/SelectInput.js +3 -0
- package/Slider.js +3 -0
- package/Spacing.js +3 -0
- package/Stars.js +3 -0
- package/Stepper.js +3 -0
- package/Table.js +3 -0
- package/TableBody.js +3 -0
- package/TableCell.js +3 -0
- package/TableContainer.js +3 -0
- package/TableHead.js +3 -0
- package/TableRow.js +3 -0
- package/TableSortLabel.js +3 -0
- package/Tabs.js +3 -0
- package/Tag.js +3 -0
- package/TextInput.js +3 -0
- package/ThemeProvider.js +3 -0
- package/TimePicker.js +3 -0
- package/Timeline.js +3 -0
- package/ToastProvider.js +3 -0
- package/Toggle.js +3 -0
- package/Tooltip.js +3 -0
- package/Typography.js +3 -0
- package/dist/HOCs/useDynamicStyles.js +25 -24
- package/dist/build-index.js +70 -0
- package/dist/components/1.Introduction.stories.mdx +4 -1
- package/dist/components/2.Changelog.stories.mdx +15 -3
- package/dist/components/DatePicker/Calendar.js +243 -0
- package/dist/components/DatePicker/DatePicker.css +197 -0
- package/dist/components/DatePicker/DatePicker.js +384 -0
- package/dist/components/DatePicker/DatePicker.stories.js +180 -0
- package/dist/components/DatePicker/dateUtils.js +478 -0
- package/dist/components/DateRangePicker/DateRangePicker.css +41 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +435 -0
- package/dist/components/DateRangePicker/DateRangePicker.stories.js +147 -0
- package/dist/components/DateRangePicker/RangeCalendar.js +188 -0
- package/dist/components/DateTimePicker/DateTimePicker.css +4 -0
- package/dist/components/DateTimePicker/DateTimePicker.js +481 -0
- package/dist/components/DateTimePicker/DateTimePicker.stories.js +144 -0
- package/dist/components/DateTimePicker/TimeColumns.css +46 -0
- package/dist/components/DateTimePicker/TimeColumns.js +175 -0
- package/dist/components/DragDrop/DragDrop.js +4 -1
- package/dist/components/DropDown/DesignDropDown.stories.js +8 -0
- package/dist/components/DropDown/DropDown.js +14 -4
- package/dist/components/Header/Header.js +32 -10
- package/dist/components/IconButton/IconButton.js +3 -2
- package/dist/components/IconButtonSquare/IconButtonSquare.js +3 -3
- package/dist/components/InputAutocomplete/InputAutocomplete.js +2 -2
- package/dist/components/InputText/InputText.css +10 -5
- package/dist/components/InputText/InputText.js +4 -4
- package/dist/components/MenuItem/MenuItem.js +65 -61
- package/dist/components/MenuLateralRight/MenuLateralRight.js +18 -2
- package/dist/components/Modal/Modal.js +3 -1
- package/dist/components/RichTextInput/DesignRichTextInput.stories.js +119 -0
- package/dist/components/RichTextInput/RichTextInput.css +309 -0
- package/dist/components/RichTextInput/RichTextInput.js +851 -0
- package/dist/components/RichTextInput/RichTextInput.stories.js +33 -0
- package/dist/components/Ripple/DesignRipple.js +17 -0
- package/dist/components/ScrollbarNew/DesignScrollbarNew.js +24 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.css +79 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.js +426 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.stories.js +37 -0
- package/dist/components/SelectInput/SelectInput.js +85 -78
- package/dist/components/Tabs/DesignTabs.js +1 -1
- package/dist/components/Tabs/Tabs.js +0 -1
- package/dist/components/TimePicker/TimePicker.css +3 -0
- package/dist/components/TimePicker/TimePicker.js +359 -0
- package/dist/components/TimePicker/TimePicker.stories.js +132 -0
- package/dist/components/Toast/DesignToast.stories.js +174 -0
- package/dist/components/Toast/Toast.css +154 -0
- package/dist/components/Toast/Toast.js +165 -0
- package/dist/components/Toast/Toast.stories.js +33 -0
- package/dist/components/Toast/ToastProvider.js +33 -0
- package/dist/components/Toast/ToastRoot.js +89 -0
- package/dist/components/Toast/toastStore.js +127 -0
- package/dist/components/Toast/useToast.js +42 -0
- package/dist/components/Toggle/Toggle.js +20 -14
- package/dist/components/Tooltip/Tooltip.js +7 -2
- package/dist/styles/styleFont.css +1 -1
- package/dist/styles/zIndexConsts.css +2 -0
- package/package.json +63 -3
- package/toast.js +7 -0
- package/useCouncilboxTheme.js +7 -0
- package/useToast.js +7 -0
- package/dist/components/Accordion/AccordionOld.css +0 -16
- package/dist/components/Accordion/AccordionOld.js +0 -91
- package/dist/components/Avatar/AvatarOld.js +0 -124
- package/dist/components/ButtonBasic/ButtonBasicOld.css +0 -41
- package/dist/components/ButtonBasic/ButtonBasicOld.js +0 -211
- package/dist/components/Checkbox/CheckboxOld.css +0 -31
- package/dist/components/Checkbox/CheckboxOld.js +0 -96
- package/dist/components/DrawerPanel/DrawerPanelOld.css +0 -56
- package/dist/components/DrawerPanel/DrawerPanelOld.js +0 -211
- package/dist/components/DropDown/DropDownOld.css +0 -3
- package/dist/components/DropDown/DropDownOld.js +0 -154
- package/dist/components/Grid/GridItemOld.js +0 -38
- package/dist/components/Grid/GridOld.css +0 -0
- package/dist/components/Grid/GridOld.js +0 -46
- package/dist/components/IconButton/IconButtonOld.css +0 -0
- package/dist/components/IconButton/IconButtonOld.js +0 -122
- package/dist/components/IconButtonSquare/IconButtonSquareOld.css +0 -43
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +0 -115
- package/dist/components/InputAutocomplete/InputAutocompleteOld.css +0 -5
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +0 -159
- package/dist/components/InputText/InputTextOld.css +0 -10
- package/dist/components/InputText/InputTextOld.js +0 -314
- package/dist/components/MenuItem/MenuItemOld.js +0 -123
- package/dist/components/Modal/ModalOld.css +0 -3
- package/dist/components/Modal/ModalOld.js +0 -213
- package/dist/components/RadioButton/RadioOld.css +0 -31
- package/dist/components/RadioButton/RadioOld.js +0 -126
- package/dist/components/SelectInput/SelectInputOld.css +0 -17
- package/dist/components/SelectInput/SelectInputOld.js +0 -296
- package/dist/components/Table/TableOld.css +0 -79
- package/dist/components/Table/TableOld.js +0 -133
- package/dist/components/Tabs/TabsOld.js +0 -78
- package/dist/components/Typography/TypographyOld.js +0 -119
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
|
-
require("../../styles/main.css");
|
|
11
|
-
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
12
|
-
var _excluded = ["children", "styles", "variant", "fontWeight", "textAlign", "color", "secondaryFont", "component"];
|
|
13
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
15
|
-
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
16
|
-
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
17
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
18
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
19
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
21
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
22
|
-
var nameVariant = {
|
|
23
|
-
'5XL': 'h1',
|
|
24
|
-
'4XL': 'h2',
|
|
25
|
-
'3XL': 'h3',
|
|
26
|
-
'2XL': 'h4',
|
|
27
|
-
XL: 'h5',
|
|
28
|
-
L: 'h6',
|
|
29
|
-
M: 'body1',
|
|
30
|
-
S: 'body2',
|
|
31
|
-
XS: 'subtitle1',
|
|
32
|
-
'2XS': 'subtitle2'
|
|
33
|
-
};
|
|
34
|
-
var stylesVariants = {
|
|
35
|
-
'5XL': {
|
|
36
|
-
fontSize: '3rem',
|
|
37
|
-
lineHeight: '4rem'
|
|
38
|
-
},
|
|
39
|
-
'4XL': {
|
|
40
|
-
fontSize: '2.5rem',
|
|
41
|
-
lineHeight: '3.5rem'
|
|
42
|
-
},
|
|
43
|
-
'3XL': {
|
|
44
|
-
fontSize: '2rem',
|
|
45
|
-
lineHeight: '3rem'
|
|
46
|
-
},
|
|
47
|
-
'2XL': {
|
|
48
|
-
fontSize: '1.75rem',
|
|
49
|
-
lineHeight: '2.5rem'
|
|
50
|
-
},
|
|
51
|
-
XL: {
|
|
52
|
-
fontSize: '1.5rem',
|
|
53
|
-
lineHeight: '2rem'
|
|
54
|
-
},
|
|
55
|
-
L: {
|
|
56
|
-
fontSize: '1.25rem',
|
|
57
|
-
lineHeight: '1.75rem'
|
|
58
|
-
},
|
|
59
|
-
M: {
|
|
60
|
-
fontSize: '1rem',
|
|
61
|
-
lineHeight: '1.5rem'
|
|
62
|
-
},
|
|
63
|
-
S: {
|
|
64
|
-
fontSize: '0.875rem',
|
|
65
|
-
lineHeight: '1.25rem'
|
|
66
|
-
},
|
|
67
|
-
XS: {
|
|
68
|
-
fontSize: '0.75rem',
|
|
69
|
-
lineHeight: '1rem'
|
|
70
|
-
},
|
|
71
|
-
'2XS': {
|
|
72
|
-
fontSize: '0.625rem',
|
|
73
|
-
lineHeight: '0.75rem'
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
var Typography = function Typography(_ref) {
|
|
77
|
-
var children = _ref.children,
|
|
78
|
-
styles = _ref.styles,
|
|
79
|
-
variant = _ref.variant,
|
|
80
|
-
fontWeight = _ref.fontWeight,
|
|
81
|
-
textAlign = _ref.textAlign,
|
|
82
|
-
color = _ref.color,
|
|
83
|
-
secondaryFont = _ref.secondaryFont,
|
|
84
|
-
component = _ref.component,
|
|
85
|
-
props = _objectWithoutProperties(_ref, _excluded);
|
|
86
|
-
return /*#__PURE__*/_react["default"].createElement(_Typography["default"], _extends({
|
|
87
|
-
sx: _objectSpread(_objectSpread({}, stylesVariants[(variant === null || variant === void 0 ? void 0 : variant.toUpperCase()) || 'M']), {}, {
|
|
88
|
-
color: color || 'var(--gray5)',
|
|
89
|
-
fontWeight: fontWeight || '400',
|
|
90
|
-
textAlign: textAlign,
|
|
91
|
-
fontFamily: secondaryFont && 'var(--font-secondary)'
|
|
92
|
-
}, styles),
|
|
93
|
-
variant: nameVariant[(variant === null || variant === void 0 ? void 0 : variant.toUpperCase()) || 'M'],
|
|
94
|
-
component: component
|
|
95
|
-
}, props), children);
|
|
96
|
-
};
|
|
97
|
-
Typography.displayName = "Typography";
|
|
98
|
-
Typography.propTypes = {
|
|
99
|
-
variant: _propTypes["default"].string,
|
|
100
|
-
color: _propTypes["default"].string,
|
|
101
|
-
styles: _propTypes["default"].object,
|
|
102
|
-
children: _propTypes["default"].node,
|
|
103
|
-
fontWeight: _propTypes["default"].string,
|
|
104
|
-
textAlign: _propTypes["default"].string,
|
|
105
|
-
component: _propTypes["default"].string,
|
|
106
|
-
secondaryFont: _propTypes["default"].bool
|
|
107
|
-
};
|
|
108
|
-
Typography.defaultProps = {
|
|
109
|
-
variant: '',
|
|
110
|
-
color: '',
|
|
111
|
-
styles: {},
|
|
112
|
-
children: '',
|
|
113
|
-
fontWeight: '',
|
|
114
|
-
textAlign: '',
|
|
115
|
-
component: '',
|
|
116
|
-
secondaryFont: false
|
|
117
|
-
};
|
|
118
|
-
var _default = Typography;
|
|
119
|
-
exports["default"] = _default;
|