@councilbox/councilbox-ui 0.4.1 → 0.4.2
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/build-index.js +23 -7
- package/dist/components/1.Introduction.stories.mdx +50 -0
- package/dist/components/2.Changelog.stories.mdx +46 -0
- package/dist/components/Accordion/Accordion.js +1 -1
- package/dist/components/Accordion/Accordion.stories.js +4 -2
- package/dist/components/Alert/Alert.css +10 -0
- package/dist/components/Alert/Alert.js +134 -0
- package/dist/components/Alert/Alert.stories.js +38 -0
- package/dist/components/Avatar/Avatar.stories.js +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.stories.js +1 -1
- package/dist/components/Button/Button.stories.js +1 -1
- package/dist/components/ButtonBasic/ButtonBasic.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.css +1 -1
- package/dist/components/Checkbox/Checkbox.js +24 -16
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/DrawerPanel/DrawerPanel.stories.js +1 -1
- package/dist/components/DropDown/DropDown.stories.js +1 -1
- package/dist/components/Grid/Grid.stories.js +1 -1
- package/dist/components/Header/Header.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +1 -1
- package/dist/components/{FontCBX/FontCBX.css → IconFont/IconFont.css} +0 -0
- package/dist/components/IconFont/IconFont.js +100 -0
- package/dist/components/{FontCBX/FontCBX.stories.js → IconFont/IconFont.stories.js} +4 -4
- package/dist/components/InputAutocomplete/InputAutocomplete.css +0 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.js +137 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +61 -0
- package/dist/components/InputPassword/InputPassword.stories.js +10 -2
- package/dist/components/InputText/InputText.css +2 -10
- package/dist/components/InputText/InputText.js +95 -59
- package/dist/components/InputText/InputText.stories.js +12 -3
- package/dist/components/MenuLateralLeft/MenuLateralLeft.stories.js +1 -1
- package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +1 -1
- package/dist/components/Modal/Modal.js +15 -4
- package/dist/components/Modal/Modal.stories.js +1 -1
- package/dist/components/RadioButton/Radio.css +31 -0
- package/dist/components/RadioButton/Radio.js +67 -19
- package/dist/components/RadioButton/Radio.stories.js +1 -1
- package/dist/components/Scrollbar/Scrollbar.stories.js +1 -1
- package/dist/components/SelectInput/DesignSelectInput.js +2 -1
- package/dist/components/SelectInput/SelectInput.js +109 -56
- package/dist/components/SelectInput/SelectInput.stories.js +41 -4
- package/dist/components/Spacing/Spacing.stories.js +1 -1
- package/dist/components/Stars/Stars.js +1 -1
- package/dist/components/Stars/Stars.stories.js +1 -1
- package/dist/components/Tabs/Tabs.stories.js +1 -1
- package/dist/components/Tag/Tag.stories.js +1 -1
- package/dist/components/TextInput/TextInput.stories.js +1 -1
- package/dist/components/Toggle/Toggle.stories.js +1 -1
- package/dist/components/Typography/Typography.js +1 -1
- package/dist/components/Typography/Typography.stories.js +1 -1
- package/dist/config.js +8 -0
- package/dist/fonts/IconNames.json +6848 -0
- package/package.json +1 -1
- package/dist/components/FontCBX/FontCBX.js +0 -36
- package/dist/components/Introduction.stories.mdx +0 -211
|
@@ -13,6 +13,8 @@ var _Radio = _interopRequireDefault(require("@mui/material/Radio"));
|
|
|
13
13
|
|
|
14
14
|
require("../../styles/main.css");
|
|
15
15
|
|
|
16
|
+
require("./Radio.css");
|
|
17
|
+
|
|
16
18
|
var _FormControlLabel = _interopRequireDefault(require("@mui/material/FormControlLabel"));
|
|
17
19
|
|
|
18
20
|
var _styled = _interopRequireDefault(require("@mui/material/styles/styled"));
|
|
@@ -27,11 +29,50 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
27
29
|
|
|
28
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; }
|
|
29
31
|
|
|
30
|
-
var
|
|
31
|
-
|
|
32
|
+
var BpIcon = (0, _styled.default)('span')(function () {
|
|
33
|
+
return {
|
|
34
|
+
borderRadius: '50%',
|
|
35
|
+
width: 20,
|
|
36
|
+
height: 20,
|
|
37
|
+
boxShadow: 'inset 0 0 0 0.125rem var(--gray3)',
|
|
38
|
+
backgroundColor: '#f5f8fa',
|
|
39
|
+
zIndex: '1',
|
|
40
|
+
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))',
|
|
41
|
+
transition: '0.2s',
|
|
42
|
+
'.Mui-focusVisible &': {
|
|
43
|
+
outline: '0.125rem auto rgba(19,124,189,.6)',
|
|
44
|
+
outlineOffset: 2
|
|
45
|
+
},
|
|
46
|
+
'input:disabled ~ &': {
|
|
47
|
+
boxShadow: 'inset 0 0 0 0.125rem var(--gray3)'
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
var BpCheckedIcon = (0, _styled.default)(BpIcon)({
|
|
52
|
+
boxShadow: 'inset 0 0 0 0.125rem var(--primary)',
|
|
53
|
+
backgroundColor: 'var(--primary)',
|
|
54
|
+
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
|
55
|
+
'&:before': {
|
|
56
|
+
display: 'block',
|
|
57
|
+
width: 20,
|
|
58
|
+
height: 20,
|
|
59
|
+
backgroundImage: 'radial-gradient(#fff,#fff 28%,transparent 32%)',
|
|
60
|
+
content: '""'
|
|
61
|
+
},
|
|
62
|
+
'input:hover ~ &': {
|
|
63
|
+
backgroundColor: 'var(--primary)'
|
|
64
|
+
},
|
|
65
|
+
'input:disabled ~ &': {
|
|
66
|
+
boxShadow: 'inset 0 0 0 0.125rem var(--gray3)',
|
|
67
|
+
backgroundImage: 'linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))',
|
|
68
|
+
backgroundColor: 'var(--gray3)'
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
var CssFormControlLabel = (0, _styled.default)(_FormControlLabel.default)(function () {
|
|
32
72
|
return {
|
|
33
73
|
'& .MuiFormControlLabel-label': {
|
|
34
|
-
marginLeft: 'var(--spacing12)'
|
|
74
|
+
marginLeft: 'var(--spacing12)',
|
|
75
|
+
transition: '0.2s'
|
|
35
76
|
},
|
|
36
77
|
'& .MuiRadio-root.Mui-disabled': {
|
|
37
78
|
color: '#acadce'
|
|
@@ -39,20 +80,29 @@ var CssFormControlLabel = (0, _styled.default)(_FormControlLabel.default)(functi
|
|
|
39
80
|
'& .MuiRadio-root': {
|
|
40
81
|
transition: 'all .2s'
|
|
41
82
|
},
|
|
42
|
-
'& .MuiRadio-root
|
|
43
|
-
color:
|
|
83
|
+
'& .MuiRadio-root.Mui-checked + span': {
|
|
84
|
+
color: 'var(--primary)',
|
|
85
|
+
fontWeight: '700'
|
|
86
|
+
},
|
|
87
|
+
'& .MuiRadio-root.Mui-disabled.Mui-checked + span': {
|
|
88
|
+
color: 'var(--gray3)',
|
|
89
|
+
fontWeight: '700'
|
|
90
|
+
},
|
|
91
|
+
'.MuiButtonBase-root.Mui-disabled, .MuiFormControlLabel-label.Mui-disabled': {
|
|
92
|
+
color: 'var(--gray3)',
|
|
93
|
+
fontWeight: '700'
|
|
44
94
|
}
|
|
45
95
|
};
|
|
46
96
|
});
|
|
47
97
|
|
|
48
|
-
var Radio = function Radio(
|
|
49
|
-
var id =
|
|
50
|
-
className =
|
|
51
|
-
disabled =
|
|
52
|
-
indeterminate =
|
|
53
|
-
label =
|
|
54
|
-
onChange =
|
|
55
|
-
props = _objectWithoutProperties(
|
|
98
|
+
var Radio = function Radio(_ref) {
|
|
99
|
+
var id = _ref.id,
|
|
100
|
+
className = _ref.className,
|
|
101
|
+
disabled = _ref.disabled,
|
|
102
|
+
indeterminate = _ref.indeterminate,
|
|
103
|
+
label = _ref.label,
|
|
104
|
+
onChange = _ref.onChange,
|
|
105
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
56
106
|
|
|
57
107
|
return /*#__PURE__*/_react.default.createElement(CssFormControlLabel, _extends({
|
|
58
108
|
id: id,
|
|
@@ -62,15 +112,13 @@ var Radio = function Radio(_ref2) {
|
|
|
62
112
|
},
|
|
63
113
|
onChange: onChange,
|
|
64
114
|
control: /*#__PURE__*/_react.default.createElement(_Radio.default, {
|
|
115
|
+
className: 'cbx-radio-container',
|
|
65
116
|
indeterminate: indeterminate,
|
|
66
117
|
style: {
|
|
67
118
|
padding: '0px'
|
|
68
119
|
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
fontSize: 24
|
|
72
|
-
}
|
|
73
|
-
}
|
|
120
|
+
checkedIcon: /*#__PURE__*/_react.default.createElement(BpCheckedIcon, null),
|
|
121
|
+
icon: /*#__PURE__*/_react.default.createElement(BpIcon, null)
|
|
74
122
|
}),
|
|
75
123
|
disabled: disabled,
|
|
76
124
|
label: label
|
|
@@ -88,7 +136,7 @@ Radio.defaultProps = {
|
|
|
88
136
|
onChange: undefined,
|
|
89
137
|
disabled: false,
|
|
90
138
|
indeterminate: false,
|
|
91
|
-
label: '
|
|
139
|
+
label: ''
|
|
92
140
|
};
|
|
93
141
|
var _default = Radio;
|
|
94
142
|
exports.default = _default;
|
|
@@ -12,7 +12,7 @@ var _Radio = _interopRequireDefault(require("./Radio"));
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
14
|
var _default = {
|
|
15
|
-
title: '
|
|
15
|
+
title: 'Components/Radio',
|
|
16
16
|
component: _Radio.default,
|
|
17
17
|
argTypes: {}
|
|
18
18
|
};
|
|
@@ -14,7 +14,7 @@ var _DesignScrollbar = _interopRequireDefault(require("./DesignScrollbar"));
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
|
-
title: '
|
|
17
|
+
title: 'Components/Scrollbar',
|
|
18
18
|
component: _Scrollbar.default,
|
|
19
19
|
argTypes: {}
|
|
20
20
|
};
|
|
@@ -44,7 +44,8 @@ var DesignSelectInput = function DesignSelectInput() {
|
|
|
44
44
|
onChange: function onChange(e) {
|
|
45
45
|
return setItem(e.target.value);
|
|
46
46
|
},
|
|
47
|
-
value: item //
|
|
47
|
+
value: item // disabled={true}
|
|
48
|
+
// error={'hola esto es un error '}
|
|
48
49
|
|
|
49
50
|
}, majorityTypes.map(function (type) {
|
|
50
51
|
return /*#__PURE__*/_react.default.createElement(_material.MenuItem, {
|
|
@@ -25,7 +25,7 @@ var _styled = _interopRequireDefault(require("@mui/material/styles/styled"));
|
|
|
25
25
|
|
|
26
26
|
var _Typography = _interopRequireDefault(require("../Typography/Typography"));
|
|
27
27
|
|
|
28
|
-
var _excluded = ["id", "className", "onChange", "label", "disabled", "width", "fullWidth", "children", "error", "helperText", "helper"];
|
|
28
|
+
var _excluded = ["id", "className", "onChange", "label", "disabled", "width", "fullWidth", "children", "error", "helperText", "helper", "variant", "endAdornment", "success"];
|
|
29
29
|
|
|
30
30
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
31
31
|
|
|
@@ -50,6 +50,13 @@ var CssSelect = (0, _styled.default)(_Select.default)(function () {
|
|
|
50
50
|
'&.MuiInputBase-root.Mui-error': {
|
|
51
51
|
color: 'var(--error)'
|
|
52
52
|
},
|
|
53
|
+
'&.MuiInputBase-root.Mui-error input, &.MuiInputBase-root.Mui-error div, .MuiOutlinedInput-input.Mui-disabled': {
|
|
54
|
+
color: 'var(--gray5)',
|
|
55
|
+
WebkitTextFillColor: 'unset'
|
|
56
|
+
},
|
|
57
|
+
'&.Mui-disabled svg': {
|
|
58
|
+
display: 'none'
|
|
59
|
+
},
|
|
53
60
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
54
61
|
color: 'var(--gray5)',
|
|
55
62
|
paddingRight: 'var(--spacing8)',
|
|
@@ -84,46 +91,29 @@ var CssSelect = (0, _styled.default)(_Select.default)(function () {
|
|
|
84
91
|
}
|
|
85
92
|
}
|
|
86
93
|
},
|
|
87
|
-
'
|
|
88
|
-
'
|
|
89
|
-
borderColor: 'var(--error)'
|
|
90
|
-
},
|
|
91
|
-
'&:hover fieldset': {
|
|
92
|
-
borderColor: 'var(--error)',
|
|
93
|
-
borderWidth: '2px'
|
|
94
|
-
},
|
|
95
|
-
'&:active fieldset': {
|
|
96
|
-
borderColor: 'var(--error)',
|
|
97
|
-
borderWidth: '2px'
|
|
98
|
-
},
|
|
99
|
-
'&.Mui-focused fieldset': {
|
|
100
|
-
borderColor: 'var(--error)',
|
|
101
|
-
borderWidth: '2px'
|
|
102
|
-
},
|
|
103
|
-
'&:focus-visible': {
|
|
104
|
-
// falta revisar esto
|
|
105
|
-
borderColor: 'var(--gray4)',
|
|
106
|
-
borderWidth: '2px',
|
|
107
|
-
boxShadow: '0 0 0 3px white, 0 0 7px 4px var(--primary)'
|
|
108
|
-
}
|
|
94
|
+
'&.MuiOutlinedInput-root.Mui-disabled .MuiOutlinedInput-notchedOutline': {
|
|
95
|
+
border: '1px dashed var(--gray2)'
|
|
109
96
|
},
|
|
110
|
-
'
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
97
|
+
'&.MuiInputLabel-root.Mui-disabled': {
|
|
98
|
+
color: 'var(--gray3)'
|
|
99
|
+
},
|
|
100
|
+
'&.MuiFormHelperText-root.Mui-focused div h6': {
|
|
101
|
+
color: 'var(--primary)'
|
|
102
|
+
},
|
|
103
|
+
'&.MuiInputBase-root.MuiOutlinedInput-root': {
|
|
104
|
+
color: 'var(--gray5)'
|
|
105
|
+
},
|
|
106
|
+
'&.MuiFilledInput-root .MuiSelect-nativeInput': {
|
|
107
|
+
height: '1.5rem',
|
|
108
|
+
lineHeight: 'var(--spacing12)',
|
|
109
|
+
padding: 'var(--spacing12)',
|
|
110
|
+
paddingRight: 'var(--spacing8)'
|
|
111
|
+
},
|
|
112
|
+
'& .MuiSelect-filled.MuiFilledInput-input': {
|
|
113
|
+
paddingTop: 'var(--spacing12)'
|
|
114
|
+
},
|
|
115
|
+
'& .MuiSelect-select.MuiSelect-standard': {
|
|
116
|
+
paddingBottom: 'var(--spacing12)'
|
|
127
117
|
}
|
|
128
118
|
};
|
|
129
119
|
});
|
|
@@ -140,24 +130,90 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
140
130
|
error = _ref.error,
|
|
141
131
|
helperText = _ref.helperText,
|
|
142
132
|
helper = _ref.helper,
|
|
133
|
+
variant = _ref.variant,
|
|
134
|
+
endAdornment = _ref.endAdornment,
|
|
135
|
+
success = _ref.success,
|
|
143
136
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
144
137
|
|
|
138
|
+
var getIcon = function getIcon() {
|
|
139
|
+
var icon = /*#__PURE__*/_react.default.createElement("i", {
|
|
140
|
+
className: "cbx-inputText-endAdornment ".concat(endAdornment)
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
if (success) {
|
|
144
|
+
icon = /*#__PURE__*/_react.default.createElement("i", {
|
|
145
|
+
className: "cbx-inputText-endAdornment ri-check-line",
|
|
146
|
+
style: {
|
|
147
|
+
color: 'var(--success)'
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (error) {
|
|
153
|
+
icon = /*#__PURE__*/_react.default.createElement("i", {
|
|
154
|
+
className: 'cbx-inputText-endAdornment ri-information-line',
|
|
155
|
+
style: {
|
|
156
|
+
color: 'var(--error)'
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (helper) {
|
|
162
|
+
icon = /*#__PURE__*/_react.default.createElement("i", {
|
|
163
|
+
className: 'cbx-inputText-endAdornment ri-information-line'
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
return icon;
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
var getVariant = function getVariant() {
|
|
171
|
+
var variantInput = 'outlined';
|
|
172
|
+
|
|
173
|
+
if (variant === 'outlined') {
|
|
174
|
+
variantInput = variant;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
if (variant === 'filled') {
|
|
178
|
+
variantInput = variant;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
if (variant === 'standard') {
|
|
182
|
+
variantInput = variant;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return variantInput;
|
|
186
|
+
};
|
|
187
|
+
|
|
145
188
|
return /*#__PURE__*/_react.default.createElement(_FormControl.default, {
|
|
146
|
-
fullWidth: fullWidth
|
|
189
|
+
fullWidth: fullWidth,
|
|
190
|
+
sx: {
|
|
191
|
+
minWidth: width || '15rem',
|
|
192
|
+
minHeight: '3rem'
|
|
193
|
+
}
|
|
147
194
|
}, label && /*#__PURE__*/_react.default.createElement(_InputLabel.default, {
|
|
195
|
+
variant: getVariant(),
|
|
148
196
|
disabled: disabled,
|
|
149
197
|
error: error,
|
|
150
198
|
sx: {
|
|
151
|
-
|
|
199
|
+
'&.MuiInputLabel-outlined.MuiFormLabel-root:not(.MuiInputLabel-shrink)': {
|
|
200
|
+
top: '-0.25rem'
|
|
201
|
+
},
|
|
202
|
+
'&.MuiInputLabel-root': {
|
|
203
|
+
color: 'var(--gray5)'
|
|
204
|
+
},
|
|
152
205
|
'&.MuiInputLabel-root.Mui-focused': {
|
|
153
206
|
top: '0',
|
|
154
|
-
color: 'var(--primary)
|
|
207
|
+
color: 'var(--primary)'
|
|
155
208
|
},
|
|
156
209
|
'&.MuiInputLabel-root.Mui-error': {
|
|
157
210
|
color: 'var(--error)'
|
|
158
211
|
},
|
|
159
|
-
'&.MuiInputLabel-root.
|
|
160
|
-
|
|
212
|
+
'&.MuiInputLabel-root.Mui-disabled': {
|
|
213
|
+
color: 'var(--gray3)'
|
|
214
|
+
},
|
|
215
|
+
'&.MuiInputLabel-filled.MuiInputLabel-shrink': {
|
|
216
|
+
top: '-0.625rem'
|
|
161
217
|
}
|
|
162
218
|
}
|
|
163
219
|
}, label), /*#__PURE__*/_react.default.createElement(CssSelect, _extends({
|
|
@@ -165,7 +221,6 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
165
221
|
className: className,
|
|
166
222
|
sx: {
|
|
167
223
|
minWidth: width || '15rem',
|
|
168
|
-
minHeight: '3rem',
|
|
169
224
|
maxHeight: '3rem',
|
|
170
225
|
'& .MuiOutlinedInput-notchedOutline': {
|
|
171
226
|
'& legend': {
|
|
@@ -173,31 +228,29 @@ var SelectInput = function SelectInput(_ref) {
|
|
|
173
228
|
}
|
|
174
229
|
}
|
|
175
230
|
},
|
|
231
|
+
variant: getVariant(),
|
|
176
232
|
label: label,
|
|
177
233
|
fullWidth: fullWidth,
|
|
178
234
|
onChange: onChange,
|
|
179
235
|
disabled: disabled,
|
|
180
236
|
error: error
|
|
181
|
-
}, props
|
|
237
|
+
}, props, {
|
|
238
|
+
InputProps: {
|
|
239
|
+
endAdornment: getIcon()
|
|
240
|
+
}
|
|
241
|
+
}), children), /*#__PURE__*/_react.default.createElement(_material.FormHelperText, {
|
|
182
242
|
sx: {
|
|
183
243
|
marginLeft: '0',
|
|
184
244
|
marginRight: '0px'
|
|
185
245
|
}
|
|
186
246
|
}, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, helperText, error ? /*#__PURE__*/_react.default.createElement("div", {
|
|
187
247
|
className: "cbx-selectInput-items-center"
|
|
188
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
189
|
-
className: 'cbx-selectInput-infoBtn ri-information-line',
|
|
190
|
-
style: {
|
|
191
|
-
color: 'var(--error)'
|
|
192
|
-
}
|
|
193
|
-
}), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
248
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
194
249
|
variant: "XS",
|
|
195
250
|
color: 'var(--error)'
|
|
196
251
|
}, error)) : helper && /*#__PURE__*/_react.default.createElement("div", {
|
|
197
252
|
className: "cbx-inputText-items-center"
|
|
198
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
199
|
-
className: 'cbx-selectInput-infoBtn ri-information-line'
|
|
200
|
-
}), /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
253
|
+
}, /*#__PURE__*/_react.default.createElement(_Typography.default, {
|
|
201
254
|
color: !disabled ? 'var(--gray4)' : 'var(--gray3)',
|
|
202
255
|
variant: "XS"
|
|
203
256
|
}, helper)))));
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.default = exports.DesignSelectInputTemplate = exports.Default = void 0;
|
|
6
|
+
exports.default = exports.Success = exports.Helper = exports.Error = exports.Disabled = exports.DesignSelectInputTemplate = exports.Default = void 0;
|
|
7
7
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
|
|
@@ -14,9 +14,16 @@ var _DesignSelectInput = _interopRequireDefault(require("./DesignSelectInput"));
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
|
-
title: '
|
|
17
|
+
title: 'Components/SelectInput',
|
|
18
18
|
component: _SelectInput.default,
|
|
19
|
-
argTypes: {
|
|
19
|
+
argTypes: {
|
|
20
|
+
variant: {
|
|
21
|
+
options: ['outlined', 'filled', 'standard'],
|
|
22
|
+
control: {
|
|
23
|
+
type: 'radio'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
20
27
|
};
|
|
21
28
|
exports.default = _default;
|
|
22
29
|
|
|
@@ -27,7 +34,37 @@ var Template = function Template(args) {
|
|
|
27
34
|
Template.displayName = "Template";
|
|
28
35
|
var Default = Template.bind({});
|
|
29
36
|
exports.Default = Default;
|
|
30
|
-
Default.args = {
|
|
37
|
+
Default.args = {
|
|
38
|
+
variant: 'outlined'
|
|
39
|
+
};
|
|
40
|
+
var Helper = Template.bind({});
|
|
41
|
+
exports.Helper = Helper;
|
|
42
|
+
Helper.args = {
|
|
43
|
+
value: 'Occaecat',
|
|
44
|
+
helper: 'Helper',
|
|
45
|
+
label: 'Example'
|
|
46
|
+
};
|
|
47
|
+
var Success = Template.bind({});
|
|
48
|
+
exports.Success = Success;
|
|
49
|
+
Success.args = {
|
|
50
|
+
value: 'Occaecat',
|
|
51
|
+
success: true,
|
|
52
|
+
label: 'Example'
|
|
53
|
+
};
|
|
54
|
+
var Disabled = Template.bind({});
|
|
55
|
+
exports.Disabled = Disabled;
|
|
56
|
+
Disabled.args = {
|
|
57
|
+
value: 'Occaecat',
|
|
58
|
+
disabled: true,
|
|
59
|
+
label: 'Example'
|
|
60
|
+
};
|
|
61
|
+
var Error = Template.bind({});
|
|
62
|
+
exports.Error = Error;
|
|
63
|
+
Error.args = {
|
|
64
|
+
value: 'Occaecat',
|
|
65
|
+
error: 'Error',
|
|
66
|
+
label: 'Example'
|
|
67
|
+
};
|
|
31
68
|
|
|
32
69
|
var TemplateSelectInput = function TemplateSelectInput(args) {
|
|
33
70
|
return /*#__PURE__*/_react.default.createElement(_DesignSelectInput.default, args);
|
|
@@ -12,7 +12,7 @@ var _Spacing = _interopRequireDefault(require("./Spacing"));
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
14
|
var _default = {
|
|
15
|
-
title: '
|
|
15
|
+
title: 'Components/Spacing',
|
|
16
16
|
component: _Spacing.default,
|
|
17
17
|
argTypes: {}
|
|
18
18
|
};
|
|
@@ -87,7 +87,7 @@ Stars.propTypes = {
|
|
|
87
87
|
lowStars: _propTypes.default.bool,
|
|
88
88
|
onClick: _propTypes.default.func,
|
|
89
89
|
value: _propTypes.default.number,
|
|
90
|
-
error: _propTypes.default.
|
|
90
|
+
error: _propTypes.default.bool,
|
|
91
91
|
disabled: _propTypes.default.bool,
|
|
92
92
|
lengthtStars: _propTypes.default.number,
|
|
93
93
|
variant: _propTypes.default.string
|
|
@@ -14,7 +14,7 @@ var _DesignStars = _interopRequireDefault(require("./DesignStars"));
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
|
-
title: '
|
|
17
|
+
title: 'Components/Stars',
|
|
18
18
|
component: _Stars.default,
|
|
19
19
|
argTypes: {}
|
|
20
20
|
};
|
|
@@ -14,7 +14,7 @@ var _DesignTabs = _interopRequireDefault(require("./DesignTabs"));
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
|
-
title: '
|
|
17
|
+
title: 'Components/Tabs',
|
|
18
18
|
component: _Tabs.default,
|
|
19
19
|
argTypes: {}
|
|
20
20
|
};
|
|
@@ -14,7 +14,7 @@ var _DesignTags = _interopRequireDefault(require("./DesignTags.stories"));
|
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
|
|
16
16
|
var _default = {
|
|
17
|
-
title: '
|
|
17
|
+
title: 'Components/Tag',
|
|
18
18
|
component: _Tag.default,
|
|
19
19
|
argTypes: {
|
|
20
20
|
variant: {
|
|
@@ -12,7 +12,7 @@ var _TextInput = _interopRequireDefault(require("./TextInput"));
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
14
|
var _default = {
|
|
15
|
-
title: '
|
|
15
|
+
title: 'Components/TextInput',
|
|
16
16
|
component: _TextInput.default,
|
|
17
17
|
argTypes: {}
|
|
18
18
|
};
|
|
@@ -12,7 +12,7 @@ var _Toggle = _interopRequireDefault(require("./Toggle"));
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
14
|
var _default = {
|
|
15
|
-
title: '
|
|
15
|
+
title: 'Components/Toggle',
|
|
16
16
|
component: _Toggle.default,
|
|
17
17
|
argTypes: {}
|
|
18
18
|
};
|
|
@@ -12,7 +12,7 @@ var _Typography = _interopRequireDefault(require("./Typography"));
|
|
|
12
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
13
|
|
|
14
14
|
var _default = {
|
|
15
|
-
title: '
|
|
15
|
+
title: 'Components/Typography',
|
|
16
16
|
component: _Typography.default,
|
|
17
17
|
argTypes: {
|
|
18
18
|
variant: {
|