@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
|
@@ -49,29 +49,141 @@ Template.displayName = "Template";
|
|
|
49
49
|
var Default = Template.bind({});
|
|
50
50
|
exports.Default = Default;
|
|
51
51
|
Default.args = {
|
|
52
|
-
variant: 'outlined'
|
|
52
|
+
variant: 'outlined',
|
|
53
|
+
options: [{
|
|
54
|
+
translation: 'Todo',
|
|
55
|
+
value: 'all'
|
|
56
|
+
}, {
|
|
57
|
+
translation: '4',
|
|
58
|
+
value: 'statute_4166'
|
|
59
|
+
}, {
|
|
60
|
+
translation: '5',
|
|
61
|
+
value: 'statute_4167'
|
|
62
|
+
}, {
|
|
63
|
+
translation: 'DemoTrámite',
|
|
64
|
+
value: 'statute_4194'
|
|
65
|
+
}, {
|
|
66
|
+
translation: 'editado para docu required',
|
|
67
|
+
value: 'statute_4136'
|
|
68
|
+
}, {
|
|
69
|
+
translation: 'Gestión de prueba para tener un ejemplo',
|
|
70
|
+
value: 'statute_4226'
|
|
71
|
+
}, {
|
|
72
|
+
translation: 'ghjghjghj',
|
|
73
|
+
value: 'statute_4243'
|
|
74
|
+
}],
|
|
75
|
+
label: 'procedures'
|
|
53
76
|
};
|
|
54
77
|
var Helper = Template.bind({});
|
|
55
78
|
exports.Helper = Helper;
|
|
56
79
|
Helper.args = {
|
|
57
|
-
value: '
|
|
58
|
-
helper: 'Helper'
|
|
80
|
+
value: 'The Godfather',
|
|
81
|
+
helper: 'Helper',
|
|
82
|
+
variant: 'outlined',
|
|
83
|
+
options: [{
|
|
84
|
+
label: 'The Shawshank Redemption The Shawshank Redemption',
|
|
85
|
+
value: 1994
|
|
86
|
+
}, {
|
|
87
|
+
label: 'The Godfather',
|
|
88
|
+
value: 1972
|
|
89
|
+
}, {
|
|
90
|
+
label: 'The Godfather: Part II',
|
|
91
|
+
value: 1974
|
|
92
|
+
}, {
|
|
93
|
+
label: 'The Dark Knight',
|
|
94
|
+
value: 2008
|
|
95
|
+
}, {
|
|
96
|
+
label: '12 Angry Men',
|
|
97
|
+
value: 1957
|
|
98
|
+
}, {
|
|
99
|
+
label: "Schindler's List",
|
|
100
|
+
value: 1993
|
|
101
|
+
}, {
|
|
102
|
+
label: 'Pulp Fiction',
|
|
103
|
+
value: 1994
|
|
104
|
+
}]
|
|
59
105
|
};
|
|
60
106
|
var Success = Template.bind({});
|
|
61
107
|
exports.Success = Success;
|
|
62
108
|
Success.args = {
|
|
63
109
|
value: 'Occaecat',
|
|
64
|
-
success: true
|
|
110
|
+
success: true,
|
|
111
|
+
options: [{
|
|
112
|
+
label: 'The Shawshank Redemption The Shawshank Redemption',
|
|
113
|
+
value: 1994
|
|
114
|
+
}, {
|
|
115
|
+
label: 'The Godfather',
|
|
116
|
+
value: 1972
|
|
117
|
+
}, {
|
|
118
|
+
label: 'The Godfather: Part II',
|
|
119
|
+
value: 1974
|
|
120
|
+
}, {
|
|
121
|
+
label: 'The Dark Knight',
|
|
122
|
+
value: 2008
|
|
123
|
+
}, {
|
|
124
|
+
label: '12 Angry Men',
|
|
125
|
+
value: 1957
|
|
126
|
+
}, {
|
|
127
|
+
label: "Schindler's List",
|
|
128
|
+
value: 1993
|
|
129
|
+
}, {
|
|
130
|
+
label: 'Pulp Fiction',
|
|
131
|
+
value: 1994
|
|
132
|
+
}]
|
|
65
133
|
};
|
|
66
134
|
var Disabled = Template.bind({});
|
|
67
135
|
exports.Disabled = Disabled;
|
|
68
136
|
Disabled.args = {
|
|
69
137
|
value: 'Occaecat',
|
|
70
|
-
disabled: true
|
|
138
|
+
disabled: true,
|
|
139
|
+
options: [{
|
|
140
|
+
label: 'The Shawshank Redemption The Shawshank Redemption',
|
|
141
|
+
value: 1994
|
|
142
|
+
}, {
|
|
143
|
+
label: 'The Godfather',
|
|
144
|
+
value: 1972
|
|
145
|
+
}, {
|
|
146
|
+
label: 'The Godfather: Part II',
|
|
147
|
+
value: 1974
|
|
148
|
+
}, {
|
|
149
|
+
label: 'The Dark Knight',
|
|
150
|
+
value: 2008
|
|
151
|
+
}, {
|
|
152
|
+
label: '12 Angry Men',
|
|
153
|
+
value: 1957
|
|
154
|
+
}, {
|
|
155
|
+
label: "Schindler's List",
|
|
156
|
+
value: 1993
|
|
157
|
+
}, {
|
|
158
|
+
label: 'Pulp Fiction',
|
|
159
|
+
value: 1994
|
|
160
|
+
}]
|
|
71
161
|
};
|
|
72
162
|
var ErrorTemplate = Template.bind({});
|
|
73
163
|
exports.ErrorTemplate = ErrorTemplate;
|
|
74
164
|
ErrorTemplate.args = {
|
|
75
165
|
value: 'Occaecat',
|
|
76
|
-
error: 'Error'
|
|
166
|
+
error: 'Error',
|
|
167
|
+
options: [{
|
|
168
|
+
label: 'The Shawshank Redemption The Shawshank Redemption',
|
|
169
|
+
value: 1994
|
|
170
|
+
}, {
|
|
171
|
+
label: 'The Godfather',
|
|
172
|
+
value: 1972
|
|
173
|
+
}, {
|
|
174
|
+
label: 'The Godfather: Part II',
|
|
175
|
+
value: 1974
|
|
176
|
+
}, {
|
|
177
|
+
label: 'The Dark Knight',
|
|
178
|
+
value: 2008
|
|
179
|
+
}, {
|
|
180
|
+
label: '12 Angry Men',
|
|
181
|
+
value: 1957
|
|
182
|
+
}, {
|
|
183
|
+
label: "Schindler's List",
|
|
184
|
+
value: 1993
|
|
185
|
+
}, {
|
|
186
|
+
label: 'Pulp Fiction',
|
|
187
|
+
value: 1994
|
|
188
|
+
}]
|
|
77
189
|
};
|
|
@@ -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("
|
|
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
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
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
|
};
|