@councilbox/councilbox-ui 1.0.1 → 2.0.1

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 (137) hide show
  1. package/dist/HOCs/useDynamicStyles.js +99 -0
  2. package/dist/HOCs/useRipple.js +91 -0
  3. package/dist/build-index.js +8 -0
  4. package/dist/components/1.Introduction.stories.mdx +2 -1
  5. package/dist/components/2.Changelog.stories.mdx +3 -0
  6. package/dist/components/3.Guide.stories.mdx +56 -0
  7. package/dist/components/Accordion/Accordion.css +39 -1
  8. package/dist/components/Accordion/Accordion.js +84 -45
  9. package/dist/components/Accordion/Accordion.stories.js +4 -2
  10. package/dist/components/Accordion/AccordionOld.css +16 -0
  11. package/dist/components/Accordion/AccordionOld.js +115 -0
  12. package/dist/components/Accordion/DesignAccordion.stories.js +38 -0
  13. package/dist/components/Alert/Alert.css +5 -0
  14. package/dist/components/Alert/Alert.js +17 -6
  15. package/dist/components/Avatar/Avatar.css +3 -3
  16. package/dist/components/Avatar/Avatar.js +36 -20
  17. package/dist/components/Avatar/AvatarOld.js +138 -0
  18. package/dist/components/Avatar/DesignAvatar.stories.js +1 -1
  19. package/dist/components/Block/Block.js +17 -2
  20. package/dist/components/ButtonBasic/ButtonBasic.css +264 -20
  21. package/dist/components/ButtonBasic/ButtonBasic.js +85 -110
  22. package/dist/components/ButtonBasic/ButtonBasicOld.css +41 -0
  23. package/dist/components/ButtonBasic/ButtonBasicOld.js +231 -0
  24. package/dist/components/Checkbox/Checkbox.css +101 -22
  25. package/dist/components/Checkbox/Checkbox.js +119 -63
  26. package/dist/components/Checkbox/CheckboxOld.css +31 -0
  27. package/dist/components/Checkbox/CheckboxOld.js +112 -0
  28. package/dist/components/DragDrop/DragDrop.js +24 -9
  29. package/dist/components/DrawerPanel/DesignDrawerPanel.js +4 -2
  30. package/dist/components/DrawerPanel/DrawerPanel.css +76 -36
  31. package/dist/components/DrawerPanel/DrawerPanel.js +137 -115
  32. package/dist/components/DrawerPanel/DrawerPanelOld.css +56 -0
  33. package/dist/components/DrawerPanel/DrawerPanelOld.js +233 -0
  34. package/dist/components/DropDown/DesignDropDown.stories.js +146 -17
  35. package/dist/components/DropDown/DropDown.css +96 -1
  36. package/dist/components/DropDown/DropDown.js +308 -82
  37. package/dist/components/DropDown/DropDown.stories.js +1 -0
  38. package/dist/components/DropDown/DropDownOld.css +3 -0
  39. package/dist/components/DropDown/DropDownOld.js +186 -0
  40. package/dist/components/DropDown/PopoverPlayground.css +22 -0
  41. package/dist/components/DropDown/PopoverPlayground.js +235 -0
  42. package/dist/components/EnhancedTable/EnhancedTable.js +5 -6
  43. package/dist/components/FabButton/DesignFabButton.stories.js +3 -1
  44. package/dist/components/FabButton/FabButton.js +25 -5
  45. package/dist/components/Grid/DesignGrid.stories.js +9 -3
  46. package/dist/components/Grid/Grid.css +325 -0
  47. package/dist/components/Grid/Grid.js +57 -16
  48. package/dist/components/Grid/GridItem.js +31 -13
  49. package/dist/components/Grid/GridItemOld.js +43 -0
  50. package/dist/components/Grid/GridOld.css +0 -0
  51. package/dist/components/Grid/GridOld.js +53 -0
  52. package/dist/components/Header/Header.js +95 -116
  53. package/dist/components/IconButton/DesignIconButton.stories.js +22 -2
  54. package/dist/components/IconButton/IconButton.css +121 -1
  55. package/dist/components/IconButton/IconButton.js +98 -53
  56. package/dist/components/IconButton/IconButtonOld.css +0 -0
  57. package/dist/components/IconButton/IconButtonOld.js +138 -0
  58. package/dist/components/IconButtonSquare/IconButtonSquare.js +20 -90
  59. package/dist/components/IconButtonSquare/IconButtonSquareOld.css +43 -0
  60. package/dist/components/IconButtonSquare/IconButtonSquareOld.js +133 -0
  61. package/dist/components/InputAutocomplete/InputAutocomplete.css +109 -0
  62. package/dist/components/InputAutocomplete/InputAutocomplete.js +382 -76
  63. package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +118 -6
  64. package/dist/components/InputAutocomplete/InputAutocompleteOld.css +5 -0
  65. package/dist/components/InputAutocomplete/InputAutocompleteOld.js +178 -0
  66. package/dist/components/InputPassword/InputPassword.js +10 -20
  67. package/dist/components/InputText/InputText.css +442 -1
  68. package/dist/components/InputText/InputText.js +298 -239
  69. package/dist/components/InputText/InputText.stories.js +12 -3
  70. package/dist/components/InputText/InputTextOld.css +10 -0
  71. package/dist/components/InputText/InputTextOld.js +340 -0
  72. package/dist/components/InputTextArea/DesignInputTextArea.stories.js +30 -4
  73. package/dist/components/InputTextArea/InputTextArea.js +13 -6
  74. package/dist/components/LoadingSection/LoadingSection.css +44 -2
  75. package/dist/components/LoadingSection/LoadingSection.js +63 -9
  76. package/dist/components/MenuItem/DesignMenuItem.stories.js +1 -0
  77. package/dist/components/MenuItem/MenuItem.css +35 -6
  78. package/dist/components/MenuItem/MenuItem.js +99 -50
  79. package/dist/components/MenuItem/MenuItemOld.js +139 -0
  80. package/dist/components/MenuLateralLeft/MenuLateralLeft.js +60 -40
  81. package/dist/components/MenuLateralRight/MenuLateralRight.js +23 -8
  82. package/dist/components/Modal/DesignModal.stories.js +54 -0
  83. package/dist/components/Modal/Modal.css +81 -2
  84. package/dist/components/Modal/Modal.js +112 -80
  85. package/dist/components/Modal/Modal.stories.js +13 -2
  86. package/dist/components/Modal/ModalOld.css +3 -0
  87. package/dist/components/Modal/ModalOld.js +230 -0
  88. package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +9 -1
  89. package/dist/components/PaginationFooter/PaginationFooter.css +73 -0
  90. package/dist/components/PaginationFooter/PaginationFooter.js +45 -87
  91. package/dist/components/RadioButton/Radio.css +115 -16
  92. package/dist/components/RadioButton/Radio.js +70 -94
  93. package/dist/components/RadioButton/Radio.stories.js +42 -18
  94. package/dist/components/RadioButton/RadioOld.css +31 -0
  95. package/dist/components/RadioButton/RadioOld.js +142 -0
  96. package/dist/components/Ripple/DesignRipple.js +77 -0
  97. package/dist/components/Ripple/Ripple.stories.js +45 -0
  98. package/dist/components/Scrollbar/Scrollbar.js +21 -6
  99. package/dist/components/SelectInput/DesignSelectInput.js +62 -23
  100. package/dist/components/SelectInput/SelectInput.css +128 -10
  101. package/dist/components/SelectInput/SelectInput.js +265 -244
  102. package/dist/components/SelectInput/SelectInputOld.css +17 -0
  103. package/dist/components/SelectInput/SelectInputOld.js +325 -0
  104. package/dist/components/Stars/Stars.css +28 -28
  105. package/dist/components/Stars/Stars.js +22 -12
  106. package/dist/components/Stepper/Stepper.css +1 -0
  107. package/dist/components/Stepper/Stepper.js +81 -24
  108. package/dist/components/Table/DesignTable.stories.js +1 -0
  109. package/dist/components/Table/Table.css +56 -53
  110. package/dist/components/Table/Table.js +55 -75
  111. package/dist/components/Table/TableOld.css +79 -0
  112. package/dist/components/Table/TableOld.js +165 -0
  113. package/dist/components/Tabs/DesignTabs.js +37 -12
  114. package/dist/components/Tabs/Tabs.css +39 -4
  115. package/dist/components/Tabs/Tabs.js +194 -30
  116. package/dist/components/Tabs/Tabs.stories.js +8 -1
  117. package/dist/components/Tabs/TabsOld.js +92 -0
  118. package/dist/components/Tag/Tag.js +19 -9
  119. package/dist/components/Toggle/Toggle.css +122 -3
  120. package/dist/components/Toggle/Toggle.js +95 -68
  121. package/dist/components/Tooltip/DesignTooltip.stories.js +48 -0
  122. package/dist/components/Tooltip/Tooltip.css +75 -0
  123. package/dist/components/Tooltip/Tooltip.js +126 -0
  124. package/dist/components/Tooltip/Tooltip.stories.js +40 -0
  125. package/dist/components/Typography/Typography.css +9 -0
  126. package/dist/components/Typography/Typography.js +30 -21
  127. package/dist/components/Typography/TypographyOld.js +132 -0
  128. package/dist/styles/colorConsts.css +24 -0
  129. package/dist/styles/main.css +41 -49
  130. package/dist/styles/scpacingConsts.css +26 -0
  131. package/dist/styles/zIndexConsts.css +9 -0
  132. package/dist/testing/TestAutocomplete.js +369 -0
  133. package/dist/testing/TestComponents.js +3 -114
  134. package/dist/testing/TestDropdown.js +225 -0
  135. package/dist/utils/autoDetectScroll.js +127 -0
  136. package/dist/utils/index.js +141 -0
  137. package/package.json +2 -1
@@ -0,0 +1,178 @@
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 _reactDom = require("react-dom");
11
+
12
+ var _propTypes = _interopRequireDefault(require("prop-types"));
13
+
14
+ require("../../styles/main.css");
15
+
16
+ var _Autocomplete = _interopRequireDefault(require("@mui/material/Autocomplete"));
17
+
18
+ var _Popper = _interopRequireDefault(require("@mui/material/Popper"));
19
+
20
+ require("./InputAutocomplete.css");
21
+
22
+ var _InputTextOld = _interopRequireDefault(require("../InputText/InputTextOld"));
23
+
24
+ var _MenuItem = _interopRequireDefault(require("../MenuItem/MenuItem"));
25
+
26
+ var _InputText = _interopRequireDefault(require("../InputText/InputText"));
27
+
28
+ var _excluded = ["width", "id", "className", "onChange", "label", "disabled", "error", "helper", "success", "helperText", "fullWidth", "sx", "endAdornment", "variant", "required"];
29
+
30
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
31
+
32
+ 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); }
33
+
34
+ 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; }
35
+
36
+ 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; }
37
+
38
+ 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; }
39
+
40
+ 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; }
41
+
42
+ 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; }
43
+
44
+ var top100Films = [{
45
+ label: 'The Shawshank Redemption The Shawshank Redemption',
46
+ year: 1994
47
+ }, {
48
+ label: 'The Godfather',
49
+ year: 1972
50
+ }, {
51
+ label: 'The Godfather: Part II',
52
+ year: 1974
53
+ }, {
54
+ label: 'The Dark Knight',
55
+ year: 2008
56
+ }, {
57
+ label: '12 Angry Men',
58
+ year: 1957
59
+ }, {
60
+ label: "Schindler's List",
61
+ year: 1993
62
+ }, {
63
+ label: 'Pulp Fiction',
64
+ year: 1994
65
+ }];
66
+
67
+ var InputAutocomplete = function InputAutocomplete(_ref) {
68
+ var width = _ref.width,
69
+ id = _ref.id,
70
+ className = _ref.className,
71
+ onChange = _ref.onChange,
72
+ label = _ref.label,
73
+ disabled = _ref.disabled,
74
+ error = _ref.error,
75
+ helper = _ref.helper,
76
+ success = _ref.success,
77
+ helperText = _ref.helperText,
78
+ fullWidth = _ref.fullWidth,
79
+ sx = _ref.sx,
80
+ endAdornment = _ref.endAdornment,
81
+ variant = _ref.variant,
82
+ required = _ref.required,
83
+ props = _objectWithoutProperties(_ref, _excluded);
84
+
85
+ return /*#__PURE__*/_react.default.createElement("div", {
86
+ style: {
87
+ display: 'flex'
88
+ }
89
+ }, /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_Autocomplete.default, _extends({
90
+ id: id,
91
+ className: className,
92
+ onChange: onChange,
93
+ disabled: disabled,
94
+ sx: _objectSpread({
95
+ minWidth: width || '15rem',
96
+ '&.MuiAutocomplete-root .MuiOutlinedInput-root': {
97
+ padding: '0'
98
+ },
99
+ '&.MuiAutocomplete-root .MuiFilledInput-root': {
100
+ paddingTop: '0',
101
+ paddingLeft: '0'
102
+ },
103
+ '&.MuiAutocomplete-root .MuiInput-root': {
104
+ paddingBottom: '0!important'
105
+ }
106
+ }, sx),
107
+ disablePortal: false,
108
+ freeSolo: true,
109
+ options: top100Films,
110
+ renderInput: function renderInput(params) {
111
+ return /*#__PURE__*/_react.default.createElement(_InputTextOld.default, _extends({}, params, {
112
+ error: error,
113
+ label: label,
114
+ helper: helper,
115
+ success: success,
116
+ helperText: helperText,
117
+ endAdornment: endAdornment,
118
+ variant: variant,
119
+ fullWidth: fullWidth,
120
+ required: required,
121
+ width: width
122
+ }));
123
+ },
124
+ renderOption: function renderOption(propsOption) {
125
+ return /*#__PURE__*/_react.default.createElement(_MenuItem.default, propsOption, propsOption.key);
126
+ },
127
+ PopperComponent: function PopperComponent(propsPopper) {
128
+ return /*#__PURE__*/(0, _reactDom.createPortal)( /*#__PURE__*/_react.default.createElement(_Popper.default, _extends({
129
+ className: fullWidth ? 'cbx-inputAutocomplete-fullwidth' : '',
130
+ sx: {
131
+ '&.MuiPopper-root': {
132
+ minWidth: fullWidth ? 'auto' : '13.75rem!important',
133
+ maxWidth: fullWidth ? 'auto' : '17.5rem!important',
134
+ width: fullWidth ? 'auto' : 'auto!important'
135
+ }
136
+ }
137
+ }, propsPopper)), document.body);
138
+ }
139
+ }, props))), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_InputText.default, {
140
+ error: error,
141
+ label: label,
142
+ helper: helper,
143
+ success: success,
144
+ helperText: helperText,
145
+ endAdornment: endAdornment,
146
+ variant: variant,
147
+ fullWidth: fullWidth,
148
+ required: required,
149
+ width: width
150
+ })));
151
+ };
152
+
153
+ InputAutocomplete.displayName = "InputAutocomplete";
154
+ InputAutocomplete.propTypes = {
155
+ label: _propTypes.default.string,
156
+ helper: _propTypes.default.string,
157
+ width: _propTypes.default.string,
158
+ id: _propTypes.default.string,
159
+ className: _propTypes.default.string,
160
+ onChange: _propTypes.default.func,
161
+ disabled: _propTypes.default.bool,
162
+ error: _propTypes.default.node,
163
+ success: _propTypes.default.bool,
164
+ fullWidth: _propTypes.default.bool
165
+ };
166
+ InputAutocomplete.defaultProps = {
167
+ label: '',
168
+ helper: '',
169
+ width: '',
170
+ id: '',
171
+ className: '',
172
+ onChange: undefined,
173
+ disabled: false,
174
+ error: undefined,
175
+ fullWidth: false
176
+ };
177
+ var _default = InputAutocomplete;
178
+ exports.default = _default;
@@ -9,11 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
 
10
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
- var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
13
-
14
- var _Visibility = _interopRequireDefault(require("@mui/icons-material/Visibility"));
15
-
16
- var _VisibilityOff = _interopRequireDefault(require("@mui/icons-material/VisibilityOff"));
12
+ var _IconButton = _interopRequireDefault(require("../IconButton/IconButton"));
17
13
 
18
14
  require("../../styles/main.css");
19
15
 
@@ -86,7 +82,7 @@ var InputPassword = function InputPassword(_ref) {
86
82
  return /*#__PURE__*/_react.default.createElement(_InputText.default, _extends({
87
83
  id: id,
88
84
  fullWidth: fullWidth,
89
- className: className,
85
+ className: "".concat(className, " cbx-inputPassword-button-spacing"),
90
86
  label: label,
91
87
  onChange: onChange,
92
88
  disabled: disabled,
@@ -105,22 +101,16 @@ var InputPassword = function InputPassword(_ref) {
105
101
  InputProps: {
106
102
  endAdornment: /*#__PURE__*/_react.default.createElement(_IconButton.default, {
107
103
  disabled: disabled,
108
- "aria-label": "Toggle password visibility",
109
- className: "cbx-inputPassword-icon-button",
110
104
  onClick: function onClick() {
111
105
  return !disabled && setShowPassword(!showPassword);
112
- }
113
- }, showPassword ? /*#__PURE__*/_react.default.createElement(_VisibilityOff.default, {
114
- className: "cbx-inputPassword-icon-size",
115
- sx: {
116
- color: disabled ? 'var(--gray3)' : 'black'
117
- }
118
- }) : /*#__PURE__*/_react.default.createElement(_Visibility.default, {
119
- className: "cbx-inputPassword-icon-size",
120
- sx: {
121
- color: disabled ? 'var(--gray3)' : 'black'
122
- }
123
- }))
106
+ },
107
+ icon: /*#__PURE__*/_react.default.createElement("i", {
108
+ style: {
109
+ color: 'black'
110
+ },
111
+ className: showPassword ? 'ri-eye-off-fill' : 'ri-eye-fill'
112
+ })
113
+ })
124
114
  }
125
115
  }, props));
126
116
  };
@@ -1,10 +1,451 @@
1
- .cbx-inputText-items-center {
1
+ .cbx-inputText-allContainer {
2
+ display: inline-flex;
3
+ flex-direction: column;
4
+ position: relative;
5
+ padding: 0px;
6
+ margin: 0px;
7
+ border: 0px;
8
+ vertical-align: top;
9
+ min-width: 15rem;
10
+ min-height: 3rem;
11
+ }
12
+
13
+ .cbx-inputText-allContainer-fullWidth {
14
+ width: 100%;
15
+ min-width: 100%;
16
+ }
17
+
18
+ .cbx-inputText-allContainer-fullWidth .cbx-inputText-container {
19
+ min-width: 100%;
20
+ }
21
+
22
+ .cbx-inputText-label {
23
+ transition: all 0.1s ease-in-out;
24
+ color: var(--gray5);
25
+ position: absolute;
26
+ top: 13px;
27
+ left: 12px;
28
+ opacity: 1;
29
+ pointer-events: none;
30
+ max-width: calc(100% - 28px);
31
+ white-space: nowrap;
32
+ overflow: hidden;
33
+ display: flex;
34
+ align-items: center;
35
+ font-size: 1rem;
36
+ }
37
+
38
+ .cbx-inputText-label-standard {
39
+ left: unset;
40
+ }
41
+
42
+ .cbx-inputText-required {
43
+ padding-left: 0.2rem;
44
+ flex-shrink: 0
45
+ }
46
+
47
+ .cbx-inputText-label-text {
48
+ overflow: hidden;
49
+ text-overflow: ellipsis;
50
+ white-space: nowrap;
51
+ }
52
+
53
+ .cbx-inputText.cbx-inputText-outlined {
54
+ border-radius: 4px;
55
+ }
56
+
57
+ .cbx-inputText-container-fullWidth {
58
+ width: 100%;
59
+ }
60
+
61
+ .cbx-input:focus~label.cbx-inputText-label,
62
+ .cbx-input.shrink~label.cbx-inputText-label,
63
+ .cbx-input:not(:placeholder-shown)~.cbx-inputText-label {
64
+ top: -8px !important;
65
+ left: 13px !important;
66
+ transform: translate(3px, -2px) scale(0.75) !important;
67
+ padding: 0 6px;
68
+ opacity: 1;
69
+ color: var(--primary);
70
+ font-size: 1rem;
71
+ line-height: 1.4375em;
72
+ font-family: var(--font-primary);
73
+ font-weight: 400;
74
+ padding: 0;
75
+ position: relative;
2
76
  display: flex;
3
77
  align-items: center;
78
+ transform-origin: top left;
79
+ white-space: nowrap;
80
+ overflow: hidden;
81
+ text-overflow: ellipsis;
82
+ max-width: calc(133% - 32px);
83
+ position: absolute;
84
+ left: 0;
85
+ top: 0;
86
+ transform: translate(14px, -9px) scale(0.75);
87
+ transition: color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, max-width 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;
88
+ z-index: 1;
89
+ pointer-events: auto;
90
+ user-select: none;
91
+ }
92
+
93
+ .cbx-inputText-standard:focus~label.cbx-inputText-label,
94
+ .cbx-inputText-standard.shrink~label.cbx-inputText-label,
95
+ .cbx-inputText-standard:not(:placeholder-shown)~.cbx-inputText-label {
96
+ left: 0 !important;
97
+ }
98
+
99
+ .cbx-input:not(:placeholder-shown)~.cbx-inputText-label,
100
+ .cbx-input.shrink~label.cbx-inputText-label {
101
+ color: var(--gray3);
102
+ }
103
+
104
+ .cbx-inputText::placeholder {
105
+ transition: 0.2s;
106
+ opacity: 0;
107
+ }
108
+
109
+ .cbx-input:focus::placeholder,
110
+ .cbx-input.cbx-inputText.shrink::placeholder,
111
+ .cbx-input.cbx-inputText-notLabel::placeholder {
112
+ opacity: .6;
113
+ }
114
+
115
+ .cbx-inputText-container-filled,
116
+ .cbx-inputText-container-standard {
117
+ border-bottom: 1px solid rgba(0, 0, 0, 0.42) !important;
118
+ }
119
+
120
+ .cbx-inputText-container-filled:hover {
121
+ border-bottom: 1px solid black !important;
122
+ }
123
+
124
+ .cbx-inputText-container-standard {
125
+ transition: border-bottom-color 200ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
126
+ }
127
+
128
+ .cbx-inputText-container-standard:hover {
129
+ border-bottom: 1px solid black !important;
130
+ }
131
+
132
+ .cbx-input {
133
+ font-size: 1rem;
134
+ outline: unset;
135
+ border: none;
136
+ padding: 12px 10px 12px 12px;
137
+ width: 100%;
138
+ height: 48px;
139
+ max-height: 48px;
140
+ background: transparent;
141
+ color: var(--gray5);
142
+ }
143
+
144
+ .cbx-input.cbx-inputText-standard {
145
+ padding-left: 0;
146
+ }
147
+
148
+ .cbx-inputText-container.cbx-inputText-icon {
149
+ padding-right: 14px;
150
+ }
151
+
152
+ .cbx-inputPassword-button-spacing.cbx-inputText-icon {
153
+ padding-right: 5px;
154
+ }
155
+
156
+ .cbx-inputText-container {
157
+ position: relative;
158
+ min-width: 15rem;
159
+ height: 48px;
160
+ max-height: 48px;
161
+ display: inline-flex;
162
+ align-items: center;
163
+ }
164
+
165
+ .cbx-inputText-fieldset {
166
+ transition: border 0.2s;
167
+ color: var(--gray5);
168
+ padding-right: var(--spacing8);
169
+ text-align: left;
170
+ position: absolute;
171
+ bottom: 0;
172
+ right: 0;
173
+ top: -5px;
174
+ left: 0;
175
+ margin: 0;
176
+ padding: 0 8px;
177
+ pointer-events: none;
178
+ overflow: hidden;
179
+ min-width: 0%;
180
+ border: none;
181
+ height: 53px;
182
+ max-height: 53px;
183
+ }
184
+
185
+ .cbx-inputText-fieldset-outlined {
186
+ border-radius: 4px;
187
+ border: 1px solid #bbbbbb;
188
+ }
189
+
190
+ .cbx-inputText-outlined.cbx-inputText-error~.cbx-inputText-fieldset {
191
+ border-color: var(--error) !important;
192
+ }
193
+
194
+ .cbx-inputText-error~.cbx-inputText-label {
195
+ color: var(--error) !important;
196
+ }
197
+
198
+ .cbx-inputText-outlined:disabled~.cbx-inputText-fieldset.focusedNo.value,
199
+ .cbx-inputText-outlined:disabled~.cbx-inputText-fieldset.focusedNo,
200
+ .cbx-inputText-outlined:disabled~.cbx-inputText-fieldset {
201
+ border: 0.063rem dashed var(--gray2);
202
+ }
203
+
204
+ .cbx-inputText-fieldset-outlined.hover {
205
+ border: 1px solid black;
206
+ }
207
+
208
+ .cbx-inputText-fieldset-outlined.focused {
209
+ border-radius: inherit;
210
+ border-style: solid;
211
+ border: 2px solid var(--primary);
212
+ border-radius: 4px;
213
+ height: 53px;
214
+ max-height: 53px;
215
+ top: -5px;
216
+ }
217
+
218
+ .cbx-inputText-fieldset-outlined.focusedNo.value {
219
+ border: 1px solid #bbbbbb;
220
+ }
221
+
222
+ .cbx-inputText-fieldset.focused legend,
223
+ .cbx-inputText-fieldset.focusedNo.value legend {
224
+ float: unset;
225
+ width: fit-content;
226
+ overflow: hidden;
227
+ display: block;
228
+ padding: 0;
229
+ height: 11px;
230
+ font-size: 0.75em;
231
+ visibility: hidden;
232
+ max-width: 100%;
233
+ transition: max-width 100ms cubic-bezier(0.0, 0, 0.2, 1) 50ms;
234
+ white-space: nowrap;
235
+ padding-left: 4px;
236
+ }
237
+
238
+ .cbx-inputText-fieldset legend,
239
+ .cbx-inputText-fieldset.focused.noLabel legend,
240
+ .cbx-inputText-fieldset.focusedNo.value.noLabel legend {
241
+ float: unset;
242
+ width: auto;
243
+ overflow: hidden;
244
+ display: block;
245
+ padding: 0;
246
+ visibility: hidden;
247
+ max-width: 0%;
248
+ height: 11px;
249
+ font-size: 0.75em;
250
+ transition: max-width 100ms cubic-bezier(0.0, 0, 0.2, 1) 50ms;
251
+ }
252
+
253
+ .cbx-inputText-fieldset.focused legend span,
254
+ .cbx-inputText-fieldset.focusedNo.value legend span {
255
+ padding-left: 6px;
256
+ padding-right: 8px;
257
+ display: inline-block;
258
+ opacity: 0;
259
+ visibility: visible;
260
+ font-size: 0.75em;
261
+ white-space: nowrap;
262
+ }
263
+
264
+ .cbx-inputText-container-helpers {
265
+ padding-top: var(--spacing4);
4
266
  }
5
267
 
6
268
  .cbx-inputText-endAdornment {
7
269
  margin-right: var(--spacing4);
8
270
  color: var(--gray3);
9
271
  font-size: 1.25rem;
272
+ }
273
+
274
+ .cbx-inputText-container-filled {
275
+ background-color: rgba(0, 0, 0, 0.06);
276
+ border-top-left-radius: 4px;
277
+ border-top-right-radius: 4px;
278
+ }
279
+
280
+ .cbx-inputText-container-filled.cbx-inputText-container-disabled {
281
+ background-color: rgba(0, 0, 0, 0.12);
282
+ border-bottom: 1px dotted rgba(0, 0, 0, 0.42) !important;
283
+ }
284
+
285
+ .cbx-inputText-container-standard.cbx-inputText-container-disabled {
286
+ border-bottom: 1px dotted rgba(0, 0, 0, 0.42) !important;
287
+ }
288
+
289
+ .cbx-inputText-bar {
290
+ position: absolute;
291
+ bottom: 0;
292
+ display: block;
293
+ width: 100%;
294
+ }
295
+
296
+ .cbx-inputText-bar:before,
297
+ .cbx-inputText-bar:after {
298
+ content: '';
299
+ height: 2px;
300
+ width: 0;
301
+ bottom: -1px;
302
+ position: absolute;
303
+ background: var(--primary);
304
+ transition: 0.2s ease all;
305
+ -moz-transition: 0.2s ease all;
306
+ -webkit-transition: 0.2s ease all;
307
+ }
308
+
309
+ .cbx-inputText-bar:before {
310
+ left: 50%;
311
+ }
312
+
313
+ .cbx-inputText-bar:after {
314
+ right: 50%;
315
+ }
316
+
317
+ .cbx-input:focus~.cbx-inputText-bar:before,
318
+ .cbx-input:focus~.cbx-inputText-bar:after {
319
+ width: 50%;
320
+ }
321
+
322
+ .cbx-inputText-container.cbx-inputText-container-textArea {
323
+ height: auto;
324
+ min-height: 48px;
325
+ max-height: none;
326
+ }
327
+
328
+ .cbx-inputText-container.cbx-inputText-container-textArea .cbx-input {
329
+ height: auto;
330
+ max-height: none;
331
+ resize: none;
332
+ min-height: unset;
333
+ padding: 0;
334
+ margin: 12px 10px 12px 12px;
335
+ }
336
+
337
+ .cbx-inputText-container-standard.cbx-inputText-container.cbx-inputText-container-textArea .cbx-input {
338
+ margin-left: 0;
339
+ }
340
+
341
+ .cbx-inputText-container.cbx-inputText-container-textArea .cbx-inputText-fieldset-outlined,
342
+ .cbx-inputText-container.cbx-inputText-container-textArea .cbx-inputText-fieldset-filled,
343
+ .cbx-inputText-container.cbx-inputText-container-textArea .cbx-inputText-fieldset-standard {
344
+ height: auto;
345
+ max-height: none;
346
+ min-height: 48px;
347
+ }
348
+
349
+ textarea.cbx-inputText.cbx-inputText-outlined~.cbx-inputText-fieldset-outlined,
350
+ textarea.cbx-inputText.cbx-inputText-filled~.cbx-inputText-fieldset-filled,
351
+ textarea.cbx-inputText.cbx-inputText-standard~.cbx-inputText-fieldset-standard {
352
+ display: inline;
353
+ }
354
+
355
+ .cbx-inputText-label-hidden {
356
+ top: -10px !important;
357
+ left: 12px !important;
358
+ padding: 0 6px;
359
+ opacity: 1;
360
+ font-size: 1rem;
361
+ line-height: 1.4375em;
362
+ font-family: var(--font-primary);
363
+ font-weight: 400;
364
+ padding: 0;
365
+ position: relative;
366
+ display: block;
367
+ transform-origin: top left;
368
+ white-space: nowrap;
369
+ overflow: hidden;
370
+ text-overflow: ellipsis;
371
+ max-width: calc(133% - 32px);
372
+ position: absolute;
373
+ left: 0;
374
+ top: 0;
375
+ z-index: 1;
376
+ pointer-events: auto;
377
+ -webkit-user-select: none;
378
+ visibility: hidden;
379
+ user-select: none;
380
+ font-size: 12px;
381
+ }
382
+
383
+ .cbx-inputText-renderValue {
384
+ bottom: 0px;
385
+ left: 0px;
386
+ position: absolute;
387
+ opacity: 0;
388
+ pointer-events: none;
389
+ width: 100%;
390
+ box-sizing: border-box;
391
+ }
392
+
393
+ .cbx-inputText-renderValue-container {
394
+ cursor: text;
395
+ display: inline-flex;
396
+ align-items: center;
397
+ position: relative;
398
+ border-radius: 4px;
399
+ min-width: 15rem;
400
+ max-height: 3rem;
401
+ height: 3rem;
402
+ }
403
+
404
+ .cbx-inputText-renderValue-container-fullWidth {
405
+ min-width: 100%;
406
+ max-height: 100%;
407
+ }
408
+
409
+ .cbx-inputText-renderValue-block {
410
+ height: auto;
411
+ min-height: 1.4375em;
412
+ text-overflow: ellipsis;
413
+ white-space: nowrap;
414
+ overflow: hidden;
415
+ padding: 5.5px 14px;
416
+ color: var(--gray5);
417
+ }
418
+
419
+ .cbx-inputText-container-select .cbx-inputText-renderValue-block,
420
+ .cbx-inputText-container-select .cbx-input {
421
+ user-select: none;
422
+ }
423
+
424
+ .cbx-inputText-allContainer-standard .cbx-inputText-standard:not(:placeholder-shown)~.cbx-inputText-label {
425
+ left: -3px !important;
426
+ }
427
+
428
+ .cbx-inputText-allContainer-standard .cbx-inputText-renderValue-block {
429
+ padding: 0px;
430
+ }
431
+
432
+ .cbx-inputText-startAdornmentContainer {
433
+ display: flex;
434
+ align-items: center;
435
+ justify-content: center;
436
+ margin-left: .5rem;
437
+ }
438
+
439
+ .cbx-inputText-container-standard .cbx-inputText-startAdornmentContainer{
440
+ margin-left: 0rem;
441
+ margin-right: .5rem;
442
+ }
443
+
444
+ .cbx-inputText-startAdornment {
445
+ font-size: 1.25rem;
446
+ color: var(--gray3);
447
+ }
448
+
449
+ .cbx-inputText-icon-startAdornment .cbx-inputText-label{
450
+ left: 40px;
10
451
  }