@itcase/ui 1.1.4 → 1.1.5

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.
@@ -1098,7 +1098,7 @@ function DadataHintField(props) {
1098
1098
  const dadataInputProps = React.useMemo(() => {
1099
1099
  return {
1100
1100
  ...inputProps,
1101
- className: clsx__default.default('react-dadata__input', meta.active && 'input_state_focus', meta.error && meta.touched && 'input_state_error'),
1101
+ className: clsx__default.default('react-dadata__input', meta.active && 'input_state_focus', meta.error && meta.touched && `input_state_${meta.error.key || 'error'}`),
1102
1102
  // https://www.npmjs.com/package/react-dadata
1103
1103
  // "Свойство value игнорируется."
1104
1104
  // value: input.value,
@@ -110,13 +110,13 @@ const Input = /*#__PURE__*/React__default.default.forwardRef(function Input(prop
110
110
  });
111
111
  return /*#__PURE__*/React__default.default.createElement("input", {
112
112
  className: clsx__default.default(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || weightClass) && 'text', caretClass, !isDisabled ? fillClass : fillDisabledClass, shapeClass || inputConfig.appearance[appearance] && `input_shape_${inputConfig.appearance[appearance].shape}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textSizeClass || inputConfig.appearance[appearance] && `text_size_${inputConfig.appearance[appearance].textSize}`.replace(/([A-Z])/g, '-$1').toLowerCase(), weightClass, widthClass, !isDisabled ? borderWidthClass : borderWidthDisabledClass, sizeClass || inputConfig.appearance[appearance] && `input_size_${inputConfig.appearance[appearance].size}`.replace(/([A-Z])/g, '-$1').toLowerCase(), borderColorClass || inputConfig.appearance[appearance]?.borderColor && `border-color_${inputConfig.appearance[appearance].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), placeholderTextColorClass || inputConfig.appearance[appearance]?.placeholderTextColor && `placeholder-text-color_${inputConfig.appearance[appearance].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), textColorClass || inputConfig.appearance[appearance]?.textColor && `text-color_${inputConfig.appearance[appearance].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), !isDisabled ? borderColorClass || inputConfig.state[state]?.borderColor && `border-color_${inputConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : borderColorDisabledClass || inputConfig.state[state]?.borderColor && `border-color_disabled_${inputConfig.state[state].borderColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), !isDisabled ? placeholderTextColorClass || inputConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${inputConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : placeholderTextColorDisabledClass || inputConfig.state[state]?.placeholderTextColor && `placeholder-text-color_${inputConfig.state[state].placeholderTextColor}`.replace(/([A-Z])/g, '-$1').toLowerCase(), !isDisabled ? textColorClass || inputConfig.state[state]?.textColor && `text-color_${inputConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase() : textColorDisabledClass || inputConfig.state[state]?.textColor && `text-color_${inputConfig.state[state].textColor}`.replace(/([A-Z])/g, '-$1').toLowerCase()),
113
- type: type,
113
+ "data-test-id": dataTestId || (name ? `${name}Input` : 'input'),
114
+ disabled: isDisabled,
114
115
  id: id,
115
116
  index: index,
116
- ref: ref,
117
- disabled: isDisabled,
118
117
  placeholder: placeholder,
119
- "data-test-id": dataTestId || (name ? `${name}Input` : 'input'),
118
+ ref: ref,
119
+ type: type,
120
120
  value: value,
121
121
  onBlur: onBlur,
122
122
  onChange: onChange,
@@ -125,16 +125,16 @@ const Input = /*#__PURE__*/React__default.default.forwardRef(function Input(prop
125
125
  });
126
126
  });
127
127
  Input.propTypes = {
128
- id: PropTypes__default.default.string,
128
+ checked: PropTypes__default.default.bool,
129
129
  className: PropTypes__default.default.string,
130
+ id: PropTypes__default.default.string,
131
+ isDisabled: PropTypes__default.default.bool,
130
132
  placeholder: PropTypes__default.default.string,
133
+ type: PropTypes__default.default.string,
131
134
  value: PropTypes__default.default.string,
132
- checked: PropTypes__default.default.bool,
133
- isDisabled: PropTypes__default.default.bool,
134
135
  onBlur: PropTypes__default.default.func,
135
136
  onChange: PropTypes__default.default.func,
136
- onKeyDown: PropTypes__default.default.func,
137
- type: PropTypes__default.default.string
137
+ onKeyDown: PropTypes__default.default.func
138
138
  };
139
139
  Input.defaultProps = {
140
140
  size: 'm',
@@ -163,10 +163,10 @@ Input.__docgenInfo = {
163
163
  },
164
164
  "required": false
165
165
  },
166
- "id": {
166
+ "checked": {
167
167
  "description": "",
168
168
  "type": {
169
- "name": "string"
169
+ "name": "bool"
170
170
  },
171
171
  "required": false
172
172
  },
@@ -177,31 +177,31 @@ Input.__docgenInfo = {
177
177
  },
178
178
  "required": false
179
179
  },
180
- "placeholder": {
180
+ "id": {
181
181
  "description": "",
182
182
  "type": {
183
183
  "name": "string"
184
184
  },
185
185
  "required": false
186
186
  },
187
- "value": {
187
+ "isDisabled": {
188
188
  "description": "",
189
189
  "type": {
190
- "name": "string"
190
+ "name": "bool"
191
191
  },
192
192
  "required": false
193
193
  },
194
- "checked": {
194
+ "placeholder": {
195
195
  "description": "",
196
196
  "type": {
197
- "name": "bool"
197
+ "name": "string"
198
198
  },
199
199
  "required": false
200
200
  },
201
- "isDisabled": {
201
+ "value": {
202
202
  "description": "",
203
203
  "type": {
204
- "name": "bool"
204
+ "name": "string"
205
205
  },
206
206
  "required": false
207
207
  },
@@ -41,21 +41,20 @@ const radioConfig = {
41
41
  function Radio(props) {
42
42
  const {
43
43
  appearance,
44
- state,
45
- id,
46
- className,
47
44
  checked,
48
- onChange,
49
- disabled,
45
+ className,
46
+ desc,
47
+ descTextColor,
50
48
  descTextSize,
51
49
  descTextWidth,
52
- descTextColor,
53
- desc,
50
+ disabled,
51
+ id,
54
52
  label,
53
+ labelTextColor,
55
54
  labelTextSize,
56
55
  labelTextWidth,
57
- labelTextColor,
58
- tag: Tag
56
+ tag: Tag,
57
+ onChange
59
58
  } = props;
60
59
  const fillClass = useDeviceTargetClass.useDeviceTargetClass(props, {
61
60
  prefix: 'fill_',
@@ -98,8 +97,8 @@ function Radio(props) {
98
97
  propsKey: checked ? 'stateBorderColorDisabledChecked' : 'stateBorderColorDisabled'
99
98
  });
100
99
  return /*#__PURE__*/React__default.default.createElement(Tag, {
101
- htmlFor: id,
102
- className: clsx__default.default(className, 'radio', fillClass, shapeClass)
100
+ className: clsx__default.default(className, 'radio', fillClass, shapeClass),
101
+ htmlFor: id
103
102
  }, /*#__PURE__*/React__default.default.createElement("div", {
104
103
  className: clsx__default.default('radio__item', stateCheckmarkFillClass || radioConfig.appearance[appearance] && `radio_checkmark_fill_${radioConfig.appearance[appearance].stateCheckmarkFill}`.replace(/([A-Z])/g, '-$1').toLowerCase())
105
104
  }, /*#__PURE__*/React__default.default.createElement("input", {
@@ -126,7 +125,21 @@ function Radio(props) {
126
125
  }, desc));
127
126
  }
128
127
  Radio.propTypes = {
129
- className: PropTypes__default.default.string
128
+ appearance: PropTypes__default.default.string,
129
+ checked: PropTypes__default.default.bool,
130
+ className: PropTypes__default.default.string,
131
+ desc: PropTypes__default.default.string,
132
+ descTextColor: PropTypes__default.default.string,
133
+ descTextSize: PropTypes__default.default.string,
134
+ descTextWidth: PropTypes__default.default.string,
135
+ disabled: PropTypes__default.default.bool,
136
+ id: PropTypes__default.default.string,
137
+ label: PropTypes__default.default.string,
138
+ labelTextColor: PropTypes__default.default.string,
139
+ labelTextSize: PropTypes__default.default.string,
140
+ labelTextWidth: PropTypes__default.default.string,
141
+ tag: PropTypes__default.default.string,
142
+ onChange: PropTypes__default.default.func
130
143
  };
131
144
  Radio.defaultProps = {
132
145
  shape: 'circular',
@@ -149,6 +162,24 @@ Radio.__docgenInfo = {
149
162
  "value": "'label'",
150
163
  "computed": false
151
164
  },
165
+ "description": "",
166
+ "type": {
167
+ "name": "string"
168
+ },
169
+ "required": false
170
+ },
171
+ "appearance": {
172
+ "description": "",
173
+ "type": {
174
+ "name": "string"
175
+ },
176
+ "required": false
177
+ },
178
+ "checked": {
179
+ "description": "",
180
+ "type": {
181
+ "name": "bool"
182
+ },
152
183
  "required": false
153
184
  },
154
185
  "className": {
@@ -157,6 +188,83 @@ Radio.__docgenInfo = {
157
188
  "name": "string"
158
189
  },
159
190
  "required": false
191
+ },
192
+ "desc": {
193
+ "description": "",
194
+ "type": {
195
+ "name": "string"
196
+ },
197
+ "required": false
198
+ },
199
+ "descTextColor": {
200
+ "description": "",
201
+ "type": {
202
+ "name": "string"
203
+ },
204
+ "required": false
205
+ },
206
+ "descTextSize": {
207
+ "description": "",
208
+ "type": {
209
+ "name": "string"
210
+ },
211
+ "required": false
212
+ },
213
+ "descTextWidth": {
214
+ "description": "",
215
+ "type": {
216
+ "name": "string"
217
+ },
218
+ "required": false
219
+ },
220
+ "disabled": {
221
+ "description": "",
222
+ "type": {
223
+ "name": "bool"
224
+ },
225
+ "required": false
226
+ },
227
+ "id": {
228
+ "description": "",
229
+ "type": {
230
+ "name": "string"
231
+ },
232
+ "required": false
233
+ },
234
+ "label": {
235
+ "description": "",
236
+ "type": {
237
+ "name": "string"
238
+ },
239
+ "required": false
240
+ },
241
+ "labelTextColor": {
242
+ "description": "",
243
+ "type": {
244
+ "name": "string"
245
+ },
246
+ "required": false
247
+ },
248
+ "labelTextSize": {
249
+ "description": "",
250
+ "type": {
251
+ "name": "string"
252
+ },
253
+ "required": false
254
+ },
255
+ "labelTextWidth": {
256
+ "description": "",
257
+ "type": {
258
+ "name": "string"
259
+ },
260
+ "required": false
261
+ },
262
+ "onChange": {
263
+ "description": "",
264
+ "type": {
265
+ "name": "func"
266
+ },
267
+ "required": false
160
268
  }
161
269
  }
162
270
  };
@@ -76,7 +76,7 @@ const Segmented = /*#__PURE__*/React__default.default.forwardRef((props, ref) =>
76
76
  });
77
77
  const borderColorClass = useDeviceTargetClass.useDeviceTargetClass(props, {
78
78
  prefix: 'border-color_',
79
- propsKey: 'borderColor'
79
+ propsKey: 'inputBorderColor'
80
80
  });
81
81
  const borderWidthClass = useDeviceTargetClass.useDeviceTargetClass(props, {
82
82
  prefix: 'border-width_',
@@ -8223,19 +8223,37 @@ const SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(functio
8223
8223
  }
8224
8224
  };
8225
8225
  }, []);
8226
+ const selectAppearanceItem = selectConfig.appearance[appearance] || {};
8226
8227
  return /*#__PURE__*/React__namespace.default.createElement(SelectComponent, {
8227
- className: clsx__default.default(className, 'select', fillClass, fillHoverClass, shapeClass, borderColorClass, sizeClass || selectConfig.appearance[appearance]?.size && `select_size_${selectConfig.appearance[appearance].size}`.replace(/([A-Z])/g, '-$1').toLowerCase(), hideValueContainer && 'select_state_hide-value-container', set && `select_set_${set}`),
8228
- classNamePrefix: "select",
8229
- styles: clearStyle,
8230
8228
  after: after,
8231
8229
  badgeAppearance: badgeAppearance,
8232
8230
  badgeSize: badgeSize,
8233
8231
  badgeTextSize: badgeTextSize,
8234
8232
  before: before,
8233
+ className: clsx__default.default(className, 'select', fillClass, fillHoverClass, shapeClass, borderColorClass, sizeClass || selectAppearanceItem.size && `select_size_${selectAppearanceItem.size}`.replace(/([A-Z])/g, '-$1').toLowerCase(), hideValueContainer && 'select_state_hide-value-container', set && `select_set_${set}`),
8234
+ classNamePrefix: "select",
8235
8235
  clearIcon: clearIcon,
8236
8236
  clearIconFill: clearIconFill,
8237
8237
  clearIconStroke: clearIconStroke,
8238
8238
  closeMenuOnSelect: closeMenuOnSelect ?? false,
8239
+ components: {
8240
+ Control: SelectControl,
8241
+ IndicatorsContainer: SelectIndicatorsContainer,
8242
+ ClearIndicator: SelectClearIndicator,
8243
+ DropdownIndicator: SelectDropdownIndicator,
8244
+ IndicatorSeparator: () => null,
8245
+ Input: SelectInput,
8246
+ Menu: SelectMenu,
8247
+ MultiValueContainer: SelectMultiValueContainer,
8248
+ MultiValueRemove: SelectMultiValueRemove,
8249
+ MultiValueLabel: SelectMultiValueLabel,
8250
+ Option: SelectOption,
8251
+ SingleValue: SelectSingleValue,
8252
+ Placeholder: SelectPlaceholder,
8253
+ ValueContainer: SelectValueContainer,
8254
+ NoOptionsMessage: SelectNoOptions,
8255
+ GroupHeading: SelectGroupHeading
8256
+ },
8239
8257
  defaultValue: initialValue,
8240
8258
  dividerDirection: dividerDirection,
8241
8259
  dividerFill: dividerFill,
@@ -8243,7 +8261,7 @@ const SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(functio
8243
8261
  dropdownIcon: dropdownIcon,
8244
8262
  dropdownIconFill: dropdownIconFill,
8245
8263
  dropdownIconStroke: dropdownIconStroke,
8246
- elevation: elevation || selectConfig.appearance[appearance].elevation,
8264
+ elevation: elevation || selectAppearanceItem.elevation,
8247
8265
  filterOption: filterOption,
8248
8266
  headingFill: headingFillClass,
8249
8267
  headingFillHover: headingFillHoverClass,
@@ -8253,13 +8271,16 @@ const SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(functio
8253
8271
  hideSelectedOptions: hideSelectedOptions,
8254
8272
  inputAfter: inputAfter,
8255
8273
  inputBefore: inputBefore,
8256
- inputBorderColor: inputBorderColorClass || selectConfig.appearance[appearance]?.inputBorderColor.replace(/([A-Z])/g, '-$1').toLowerCase(),
8257
- inputBorderColorHover: inputBorderColorHoverClass || selectConfig.appearance[appearance]?.inputBorderColorHover.replace(/([A-Z])/g, '-$1').toLowerCase(),
8274
+ inputBorderColor: inputBorderColorClass || selectAppearanceItem.inputBorderColor && selectAppearanceItem.inputBorderColor.replace(/([A-Z])/g, '-$1').toLowerCase(),
8275
+ inputBorderColorHover: inputBorderColorHoverClass || selectAppearanceItem.inputBorderColorHover && selectAppearanceItem.inputBorderColorHover.replace(/([A-Z])/g, '-$1').toLowerCase(),
8258
8276
  inputCaretColor: inputCaretColorClass,
8259
- inputFill: inputFillClass || selectConfig.appearance[appearance]?.inputFill && `select__control_fill_${selectConfig.appearance[appearance].inputFill}`.replace(/([A-Z])/g, '-$1').toLowerCase(),
8260
- inputShape: inputShapeClass || selectConfig.appearance[appearance]?.inputShape && `select__control_shape_${selectConfig.appearance[appearance].inputShape}`.replace(/([A-Z])/g, '-$1').toLowerCase(),
8261
- inputTextColor: inputTextColorClass || selectConfig.appearance[appearance].inputTextColor,
8262
- inputTextSize: inputTextSizeClass || selectConfig.appearance[appearance].inputTextSize,
8277
+ inputFill: inputFillClass || selectAppearanceItem.inputFill && `select__control_fill_${selectAppearanceItem.inputFill}`.replace(/([A-Z])/g, '-$1').toLowerCase(),
8278
+ inputShape: inputShapeClass || selectAppearanceItem.inputShape && `select__control_shape_${selectAppearanceItem.inputShape}`.replace(/([A-Z])/g, '-$1').toLowerCase(),
8279
+ inputTextColor: inputTextColorClass || selectAppearanceItem.inputTextColor,
8280
+ inputTextSize: inputTextSizeClass || selectAppearanceItem.inputTextSize,
8281
+ isClearable: isClearable,
8282
+ isMulti: isMulti,
8283
+ isSearchable: isSearchable,
8263
8284
  menuAfter: menuAfter,
8264
8285
  menuBefore: menuBefore,
8265
8286
  menuItemSize: menuItemSize,
@@ -8272,50 +8293,30 @@ const SelectContainer = /*#__PURE__*/React__namespace.default.forwardRef(functio
8272
8293
  noOptionBorder: optionBorderClass,
8273
8294
  noOptionBorderType: optionBorderTypeClass,
8274
8295
  noOptionsFill: optionFillClass,
8275
- noOptionsText: noOptionsText || selectConfig.appearance[appearance].noOptionsText,
8276
- noOptionsTextColor: noOptionsTextColorClass || selectConfig.appearance[appearance].noOptionsTextColor,
8277
- noOptionsTextSize: noOptionsTextSizeClass || selectConfig.appearance[appearance].noOptionsTextSize,
8296
+ noOptionsText: noOptionsText || selectAppearanceItem.noOptionsText,
8297
+ noOptionsTextColor: noOptionsTextColorClass || selectAppearanceItem.noOptionsTextColor,
8298
+ noOptionsTextSize: noOptionsTextSizeClass || selectAppearanceItem.noOptionsTextSize,
8278
8299
  openMenuOnClick: openMenuOnClick,
8279
8300
  optionAfter: optionAfter,
8280
8301
  optionBefore: optionBefore,
8281
8302
  optionBorder: optionBorderClass,
8282
8303
  optionBorderType: optionBorderTypeClass,
8283
- optionFill: optionFillClass || selectConfig.appearance[appearance]?.optionFill && `fill_${selectConfig.appearance[appearance].optionFill}`.replace(/([A-Z])/g, '-$1').toLowerCase(),
8284
- optionFillHover: optionFillHoverClass || selectConfig.appearance[appearance]?.optionFillHover && `fill_hover_${selectConfig.appearance[appearance].optionFillHover}`.replace(/([A-Z])/g, '-$1').toLowerCase(),
8304
+ optionFill: optionFillClass || selectAppearanceItem.optionFill && `fill_${selectAppearanceItem.optionFill}`.replace(/([A-Z])/g, '-$1').toLowerCase(),
8305
+ optionFillHover: optionFillHoverClass || selectAppearanceItem.optionFillHover && `fill_hover_${selectAppearanceItem.optionFillHover}`.replace(/([A-Z])/g, '-$1').toLowerCase(),
8285
8306
  options: options,
8286
8307
  optionSelected: optionSelected,
8287
8308
  optionShape: optionShapeClass,
8288
- optionTextColor: optionTextColorClass || selectConfig.appearance[appearance].optionTextColor,
8289
- optionTextSize: optionTextSizeClass || selectConfig.appearance[appearance].optionTextSize,
8290
- placeholder: placeholder || selectConfig.appearance[appearance].placeholder,
8291
- placeholderTextColor: placeholderTextColor || selectConfig.appearance[appearance].placeholderTextColor,
8292
- placeholderTextSize: placeholderTextSize || selectConfig.appearance[appearance].placeholderTextSize,
8309
+ optionTextColor: optionTextColorClass || selectAppearanceItem.optionTextColor,
8310
+ optionTextSize: optionTextSizeClass || selectAppearanceItem.optionTextSize,
8311
+ placeholder: placeholder || selectAppearanceItem.placeholder,
8312
+ placeholderTextColor: placeholderTextColor || selectAppearanceItem.placeholderTextColor,
8313
+ placeholderTextSize: placeholderTextSize || selectAppearanceItem.placeholderTextSize,
8293
8314
  ref: selectRef,
8294
8315
  set: set,
8295
- showDivider: showDivider,
8296
8316
  showBadge: showBadge,
8317
+ showDivider: showDivider,
8318
+ styles: clearStyle,
8297
8319
  value: value,
8298
- components: {
8299
- Control: SelectControl,
8300
- IndicatorsContainer: SelectIndicatorsContainer,
8301
- ClearIndicator: SelectClearIndicator,
8302
- DropdownIndicator: SelectDropdownIndicator,
8303
- IndicatorSeparator: () => null,
8304
- Input: SelectInput,
8305
- Menu: SelectMenu,
8306
- MultiValueContainer: SelectMultiValueContainer,
8307
- MultiValueRemove: SelectMultiValueRemove,
8308
- MultiValueLabel: SelectMultiValueLabel,
8309
- Option: SelectOption,
8310
- SingleValue: SelectSingleValue,
8311
- Placeholder: SelectPlaceholder,
8312
- ValueContainer: SelectValueContainer,
8313
- NoOptionsMessage: SelectNoOptions,
8314
- GroupHeading: SelectGroupHeading
8315
- },
8316
- isClearable: isClearable,
8317
- isMulti: isMulti,
8318
- isSearchable: isSearchable,
8319
8320
  onChange: onChange
8320
8321
  });
8321
8322
  });
@@ -36,6 +36,14 @@
36
36
  background: var(--input-state-focus-background);
37
37
  border: solid 1px var(--input-state-focus-border);
38
38
  }
39
+ &_required {
40
+ background: var(--input-state-required-background);
41
+ border: solid 1px var(--input-state-required-border);
42
+ }
43
+ &_custom {
44
+ background: var(--input-state-custom-background);
45
+ border: solid 1px var(--input-state-custom-border);
46
+ }
39
47
  }
40
48
  }
41
49
  .input {
@@ -1,46 +1,4 @@
1
1
  .title {}
2
- .title {
3
- &_size_h1 {
4
- @mixin h1;
5
- padding: 0;
6
- margin: 0;
7
- }
8
- }
9
- .title {
10
- &_size_h2 {
11
- @mixin h2;
12
- padding: 0;
13
- margin: 0;
14
- }
15
- }
16
- .title {
17
- &_size_h3 {
18
- @mixin h3;
19
- padding: 0;
20
- margin: 0;
21
- }
22
- }
23
- .title {
24
- &_size_h4 {
25
- @mixin h4;
26
- padding: 0;
27
- margin: 0;
28
- }
29
- }
30
- .title {
31
- &_size_h5 {
32
- @mixin h5;
33
- padding: 0;
34
- margin: 0;
35
- }
36
- }
37
- .title {
38
- &_size_h6 {
39
- @mixin h6;
40
- padding: 0;
41
- margin: 0;
42
- }
43
- }
44
2
  .title.title {
45
3
  &_mode {
46
4
  &_skeleton {
@@ -65,39 +23,20 @@
65
23
  background-position: -200%;
66
24
  }
67
25
  }
68
- .title {
69
- &&_type {
70
- &_accent {
71
- color: var(--color-accent-text-secondary);
26
+ .title_size {
27
+ @each $size in h1, h2, h3, h4, h5, h6 {
28
+ &_$(size) {
29
+ padding: 0;
30
+ margin: 0;
31
+ @mixin $(size);
72
32
  }
73
33
  }
74
34
  }
75
35
  .title {
76
36
  &&_type {
77
- &_primary {
78
- color: var(--color-primary-text-secondary);
79
- }
80
- }
81
- }
82
- .title {
83
- &&_type {
84
- &_secondary {
85
- color: var(--color-secondary-text-secondary);
86
- }
87
- }
88
- }
89
- .title {
90
- &&_type {
91
- &_tertiary {
92
- color: var(--color-tertiary-text-tertiary);
93
- }
94
- }
95
- }
96
- .title {
97
- &.text-style {
98
- &_italic {
99
- ^^&__wrapper {
100
- font-style: italic;
37
+ @each $type in accent, primary, secondary, tertiary, surface, success, error {
38
+ &_$(type) {
39
+ color: var(--color-$(type)-text-$(type));
101
40
  }
102
41
  }
103
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/ui",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "UI components (Modal, Loader, Popup, etc)",
5
5
  "keywords": [
6
6
  "Modal",
@@ -55,6 +55,7 @@
55
55
  "react-dom": "^18.2.0",
56
56
  "react-inlinesvg": "^4.1.3",
57
57
  "react-modern-drawer": "^1.2.2",
58
+ "react-datepicker": "^6.2.0",
58
59
  "react-otp-input": "^3.1.1",
59
60
  "react-paginate": "^8.2.0",
60
61
  "react-responsive": "^9.0.2",
@@ -121,7 +122,6 @@
121
122
  "postcss-responsive-type": "github:ITCase/postcss-responsive-type",
122
123
  "postcss-sort-media-queries": "^5.2.0",
123
124
  "prettier": "^3.2.5",
124
- "react-datepicker": "^6.2.0",
125
125
  "rollup": "^4.12.0",
126
126
  "rollup-plugin-copy": "^3.5.0",
127
127
  "rollup-plugin-peer-deps-external": "^2.2.4",