@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.
Files changed (150) hide show
  1. package/Accordion.js +3 -0
  2. package/Alert.js +3 -0
  3. package/Avatar.js +3 -0
  4. package/AvatarGroup.js +3 -0
  5. package/Block.js +3 -0
  6. package/Button.js +3 -0
  7. package/ButtonBasic.js +3 -0
  8. package/Checkbox.js +3 -0
  9. package/DatePicker.js +3 -0
  10. package/DateRangePicker.js +3 -0
  11. package/DateTimePicker.js +3 -0
  12. package/DragDrop.js +3 -0
  13. package/DrawerPanel.js +3 -0
  14. package/DropDown.js +3 -0
  15. package/EnhancedTable.js +3 -0
  16. package/FabButton.js +3 -0
  17. package/Grid.js +3 -0
  18. package/Header.js +3 -0
  19. package/IconButton.js +3 -0
  20. package/IconButtonSquare.js +3 -0
  21. package/IconFont.js +3 -0
  22. package/InputAutocomplete.js +3 -0
  23. package/InputPassword.js +3 -0
  24. package/InputText.js +3 -0
  25. package/InputTextArea.js +3 -0
  26. package/LoadingSection.js +3 -0
  27. package/MenuItem.js +3 -0
  28. package/MenuLateralLeft.js +3 -0
  29. package/MenuLateralRight.js +3 -0
  30. package/Modal.js +3 -0
  31. package/Radio.js +3 -0
  32. package/RichTextInput.js +3 -0
  33. package/Scrollbar.js +3 -0
  34. package/ScrollbarNew.js +3 -0
  35. package/SelectInput.js +3 -0
  36. package/Slider.js +3 -0
  37. package/Spacing.js +3 -0
  38. package/Stars.js +3 -0
  39. package/Stepper.js +3 -0
  40. package/Table.js +3 -0
  41. package/TableBody.js +3 -0
  42. package/TableCell.js +3 -0
  43. package/TableContainer.js +3 -0
  44. package/TableHead.js +3 -0
  45. package/TableRow.js +3 -0
  46. package/TableSortLabel.js +3 -0
  47. package/Tabs.js +3 -0
  48. package/Tag.js +3 -0
  49. package/TextInput.js +3 -0
  50. package/ThemeProvider.js +3 -0
  51. package/TimePicker.js +3 -0
  52. package/Timeline.js +3 -0
  53. package/ToastProvider.js +3 -0
  54. package/Toggle.js +3 -0
  55. package/Tooltip.js +3 -0
  56. package/Typography.js +3 -0
  57. package/dist/HOCs/useDynamicStyles.js +25 -24
  58. package/dist/build-index.js +70 -0
  59. package/dist/components/1.Introduction.stories.mdx +4 -1
  60. package/dist/components/2.Changelog.stories.mdx +15 -3
  61. package/dist/components/DatePicker/Calendar.js +243 -0
  62. package/dist/components/DatePicker/DatePicker.css +197 -0
  63. package/dist/components/DatePicker/DatePicker.js +384 -0
  64. package/dist/components/DatePicker/DatePicker.stories.js +180 -0
  65. package/dist/components/DatePicker/dateUtils.js +478 -0
  66. package/dist/components/DateRangePicker/DateRangePicker.css +41 -0
  67. package/dist/components/DateRangePicker/DateRangePicker.js +435 -0
  68. package/dist/components/DateRangePicker/DateRangePicker.stories.js +147 -0
  69. package/dist/components/DateRangePicker/RangeCalendar.js +188 -0
  70. package/dist/components/DateTimePicker/DateTimePicker.css +4 -0
  71. package/dist/components/DateTimePicker/DateTimePicker.js +481 -0
  72. package/dist/components/DateTimePicker/DateTimePicker.stories.js +144 -0
  73. package/dist/components/DateTimePicker/TimeColumns.css +46 -0
  74. package/dist/components/DateTimePicker/TimeColumns.js +175 -0
  75. package/dist/components/DragDrop/DragDrop.js +4 -1
  76. package/dist/components/DropDown/DesignDropDown.stories.js +8 -0
  77. package/dist/components/DropDown/DropDown.js +14 -4
  78. package/dist/components/Header/Header.js +32 -10
  79. package/dist/components/IconButton/IconButton.js +3 -2
  80. package/dist/components/IconButtonSquare/IconButtonSquare.js +3 -3
  81. package/dist/components/InputAutocomplete/InputAutocomplete.js +2 -2
  82. package/dist/components/InputText/InputText.css +10 -5
  83. package/dist/components/InputText/InputText.js +4 -4
  84. package/dist/components/MenuItem/MenuItem.js +65 -61
  85. package/dist/components/MenuLateralRight/MenuLateralRight.js +18 -2
  86. package/dist/components/Modal/Modal.js +3 -1
  87. package/dist/components/RichTextInput/DesignRichTextInput.stories.js +119 -0
  88. package/dist/components/RichTextInput/RichTextInput.css +309 -0
  89. package/dist/components/RichTextInput/RichTextInput.js +851 -0
  90. package/dist/components/RichTextInput/RichTextInput.stories.js +33 -0
  91. package/dist/components/Ripple/DesignRipple.js +17 -0
  92. package/dist/components/ScrollbarNew/DesignScrollbarNew.js +24 -0
  93. package/dist/components/ScrollbarNew/ScrollbarNew.css +79 -0
  94. package/dist/components/ScrollbarNew/ScrollbarNew.js +426 -0
  95. package/dist/components/ScrollbarNew/ScrollbarNew.stories.js +37 -0
  96. package/dist/components/SelectInput/SelectInput.js +85 -78
  97. package/dist/components/Tabs/DesignTabs.js +1 -1
  98. package/dist/components/Tabs/Tabs.js +0 -1
  99. package/dist/components/TimePicker/TimePicker.css +3 -0
  100. package/dist/components/TimePicker/TimePicker.js +359 -0
  101. package/dist/components/TimePicker/TimePicker.stories.js +132 -0
  102. package/dist/components/Toast/DesignToast.stories.js +174 -0
  103. package/dist/components/Toast/Toast.css +154 -0
  104. package/dist/components/Toast/Toast.js +165 -0
  105. package/dist/components/Toast/Toast.stories.js +33 -0
  106. package/dist/components/Toast/ToastProvider.js +33 -0
  107. package/dist/components/Toast/ToastRoot.js +89 -0
  108. package/dist/components/Toast/toastStore.js +127 -0
  109. package/dist/components/Toast/useToast.js +42 -0
  110. package/dist/components/Toggle/Toggle.js +20 -14
  111. package/dist/components/Tooltip/Tooltip.js +7 -2
  112. package/dist/styles/styleFont.css +1 -1
  113. package/dist/styles/zIndexConsts.css +2 -0
  114. package/package.json +63 -3
  115. package/toast.js +7 -0
  116. package/useCouncilboxTheme.js +7 -0
  117. package/useToast.js +7 -0
  118. package/dist/components/Accordion/AccordionOld.css +0 -16
  119. package/dist/components/Accordion/AccordionOld.js +0 -91
  120. package/dist/components/Avatar/AvatarOld.js +0 -124
  121. package/dist/components/ButtonBasic/ButtonBasicOld.css +0 -41
  122. package/dist/components/ButtonBasic/ButtonBasicOld.js +0 -211
  123. package/dist/components/Checkbox/CheckboxOld.css +0 -31
  124. package/dist/components/Checkbox/CheckboxOld.js +0 -96
  125. package/dist/components/DrawerPanel/DrawerPanelOld.css +0 -56
  126. package/dist/components/DrawerPanel/DrawerPanelOld.js +0 -211
  127. package/dist/components/DropDown/DropDownOld.css +0 -3
  128. package/dist/components/DropDown/DropDownOld.js +0 -154
  129. package/dist/components/Grid/GridItemOld.js +0 -38
  130. package/dist/components/Grid/GridOld.css +0 -0
  131. package/dist/components/Grid/GridOld.js +0 -46
  132. package/dist/components/IconButton/IconButtonOld.css +0 -0
  133. package/dist/components/IconButton/IconButtonOld.js +0 -122
  134. package/dist/components/IconButtonSquare/IconButtonSquareOld.css +0 -43
  135. package/dist/components/IconButtonSquare/IconButtonSquareOld.js +0 -115
  136. package/dist/components/InputAutocomplete/InputAutocompleteOld.css +0 -5
  137. package/dist/components/InputAutocomplete/InputAutocompleteOld.js +0 -159
  138. package/dist/components/InputText/InputTextOld.css +0 -10
  139. package/dist/components/InputText/InputTextOld.js +0 -314
  140. package/dist/components/MenuItem/MenuItemOld.js +0 -123
  141. package/dist/components/Modal/ModalOld.css +0 -3
  142. package/dist/components/Modal/ModalOld.js +0 -213
  143. package/dist/components/RadioButton/RadioOld.css +0 -31
  144. package/dist/components/RadioButton/RadioOld.js +0 -126
  145. package/dist/components/SelectInput/SelectInputOld.css +0 -17
  146. package/dist/components/SelectInput/SelectInputOld.js +0 -296
  147. package/dist/components/Table/TableOld.css +0 -79
  148. package/dist/components/Table/TableOld.js +0 -133
  149. package/dist/components/Tabs/TabsOld.js +0 -78
  150. 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;