mimir-ui-kit 1.19.3 → 1.20.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -91,6 +91,8 @@ const Input = memo(
91
91
  rightAddon,
92
92
  leftAddon,
93
93
  size = "m",
94
+ numbersOnly,
95
+ maxLength,
94
96
  ...otherProps
95
97
  } = props;
96
98
  const [isFocused, setIsFocused] = useState(autofocus);
@@ -128,9 +130,16 @@ const Input = memo(
128
130
  }
129
131
  };
130
132
  const handleChange = (event) => {
131
- const targetValue = event.target.value;
132
- setWithValue(!!targetValue);
133
+ let newValue = event.target.value;
134
+ if (numbersOnly) {
135
+ newValue = newValue.replace(/\D/g, "");
136
+ }
137
+ if (maxLength !== void 0) {
138
+ newValue = newValue.slice(0, maxLength);
139
+ }
140
+ event.target.value = newValue;
133
141
  onChange == null ? void 0 : onChange(event);
142
+ setWithValue(!!newValue);
134
143
  };
135
144
  const currentLeftAddon = renderAddon(leftAddon);
136
145
  const currentRightAddon = renderAddon(rightAddon);
@@ -188,6 +197,8 @@ const Input = memo(
188
197
  readOnly: readonly,
189
198
  value,
190
199
  onChange: handleChange,
200
+ maxLength,
201
+ disabled: disabled2,
191
202
  ...otherProps
192
203
  }
193
204
  ),
@@ -1 +1 @@
1
- ._button_18bdh_2{--button-cursor: pointer;display:inline-flex;flex-shrink:0;align-items:center;box-sizing:border-box;max-width:100%;height:var(--button-height);padding:0 var(--button-space);overflow:hidden;color:var(--button-color);font-weight:var(--font-weight-text-semibold);font-size:var(--button-font-size);font-family:var(--font-inter);line-height:var(--line-height-text-s1);white-space:nowrap;text-transform:uppercase;-webkit-text-decoration:none;text-decoration:none;text-overflow:ellipsis;-moz-column-gap:var(--button-gap);column-gap:var(--button-gap);background:var(--button-bg-color);border:none;border-color:var(--border-color);cursor:pointer;cursor:var(--button-cursor);transition:background-color .3s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none}._button_18bdh_2:hover{color:var(--button-color-hover);background:var(--button-bg-color-hover);border-color:var(--border-color-hover)}._button_18bdh_2:active{color:var(--button-color-active);background:var(--button-bg-color-active);border-color:var(--border-color-active)}._button_18bdh_2:focus{box-shadow:0 0 2px var(--sapphire-normal)}._button_18bdh_2._clear_18bdh_42:focus{box-shadow:none}._button_18bdh_2 svg{color:currentcolor;fill:currentcolor}._button_18bdh_2 svg path{color:currentcolor;fill:currentcolor}._default-button_18bdh_54._primary-sapphire_18bdh_54{--button-bg-color: var(--sapphire-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--sapphire-active);--button-bg-color-hover: var(--sapphire-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_18bdh_54._primary-citrine_18bdh_63{--button-bg-color: var(--citrine-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--citrine-active);--button-bg-color-hover: var(--citrine-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_18bdh_54._secondary-asphalt_18bdh_72{--button-bg-color: var(--asphalt-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--asphalt-active);--button-bg-color-hover: var(--asphalt-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_18bdh_54._secondary-gray_18bdh_81{--button-bg-color: var(--gray-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--gray-active);--button-bg-color-hover: var(--gray-hover);--button-color: var(--dark-text);--button-border: transparent}._default-button_18bdh_54._secondary-white_18bdh_90{--button-bg-color: var(--white-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--white-active);--button-bg-color-hover: var(--white);--button-color: var(--dark-text);--button-border: transparent}._default-button_18bdh_54._secondary-red_18bdh_99{--button-bg-color: var(--red-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--red-active);--button-bg-color-hover: var(--red-hover);--button-color: var(--light-text);--button-border: transparent}._round-button_18bdh_109{--button-border-radius-l: 24px;--button-border-radius-m: 20px;--button-border-radius-s: 16px;--button-border-radius-xs: 12px;--button-space-l: var(--space-s);--button-space-m: var(--space-xs);--button-space-s: var(--space-xs);--button-space-xs: var(--space-2xs);border-radius:var(--button-border-radius)}._round-button_18bdh_109._black_18bdh_120{--button-bg-color: var(--asphalt-normal);--button-bg-color-hover: var(--asphalt-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--light-text);--button-color-hover: var(--light-text);--button-color-active: var(--light-text)}._round-button_18bdh_109._gray_18bdh_129{--button-bg-color: var(--gray-normal);--button-bg-color-hover: var(--gray-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--asphalt-normal);--button-color-hover: var(--asphalt-hover);--button-color-active: var(--light-text)}._round-button_18bdh_109._white_18bdh_138{--button-bg-color: var(--white-normal);--button-bg-color-hover: var(--white-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--asphalt-normal);--button-color-hover: var(--asphalt-hover);--button-color-active: var(--light-text)}._outline-button_18bdh_148{--button-bg-color: transparent;--button-bg-color-hover: transparent;--button-bg-color-active: transparent;--button-bg-color-focus: transparent;border:1px solid var(--border-color)}._outline-button_18bdh_148._outline-asphalt_18bdh_155{--border-color: var(--disabled-color);--button-color: var(--black-80);--border-color-hover: var(--black-80);--button-color-hover: var(--black-80);--border-color-active: var(--black-100);--button-color-active: var(--black-100)}._outline-button_18bdh_148._outline-gray_18bdh_163{--border-color: var(--black-5);--button-color: var(--black-5);--border-color-hover: var(--black-5);--button-color-hover: var(--counter-text);--border-color-active: var(--black-80);--button-color-active: var(--white);--button-bg-color-active: var(--black-80)}._outline-button_18bdh_148._outline-white_18bdh_172{--border-color: var(--white);--button-color: var(--white);--border-color-hover: var(--white);--button-color-hover: var(--counter-text);--border-color-active: var(--black-80);--button-color-active: var(--white);--button-bg-color-active: var(--black-80)}._outline-button_18bdh_148._outline-red_18bdh_181{--border-color: var(--error-normal);--button-color: var(--error-normal);--border-color-hover: var(--red-hover);--button-color-hover: var(--red-hover);--border-color-active: var(--red-active);--button-color-active: var(--white);--button-bg-color-active: var(--red-active)}._default-button_18bdh_54,._outline-button_18bdh_148{--button-space-xxl: var(--control-space-xxl);--button-space-xl: var(--control-space-l);--button-space-l: var(--space-m);--button-space-m: var(--space-m);--button-space-s: var(--space-xs);--button-space-xs: var(--space-2xs);--button-border-radius-xxl: var(--control-radius-s);--button-border-radius-xl: var(--control-radius-s);--button-border-radius-l: var(--control-radius);--button-border-radius-m: var(--control-radius);--button-border-radius-s: var(--control-radius-xs);--button-border-radius-xs: var(--control-radius-xs);border-radius:var(--button-border-radius)}._xs_18bdh_208{--button-height: var(--button-height-xs);--button-font-size: var(--control-text-size-xs);--button-space: var(--button-space-xs);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s)}._m-s_18bdh_216{--button-height: var(--button-height-ms);--button-border-radius: var(--button-border-radius-s);font-weight:var(--font-weight-text-regular);--button-gap: var(--space-2xs);--button-font-size: var(--size-text-s)}._s_18bdh_72{--button-height: var(--button-height-s);--button-font-size: var(--control-text-size-s);--button-space: var(--button-space-s);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s)}._m_18bdh_216{--button-height: var(--button-height-m);--button-font-size: var(--size-text-m);--button-space: var(--button-space-m);--button-gap: 8px;--button-border-radius: var(--button-border-radius-m)}._l_18bdh_240{--button-height: var(--button-height-l);--button-font-size: var(--size-text-m);--button-space: var(--button-space-l);--button-gap: 8px;--button-border-radius: var(--button-border-radius-l)}._xl_18bdh_248{--button-height: var(--button-height-xl);--button-space: var(--button-space-xl);--button-gap: 8px;--button-border-radius: var(--button-border-radius-xl);--button-font-size: var(--size-text-m);font-weight:var(--font-weight-text-medium)}._xxl_18bdh_257{--button-height: var(--button-height-xxl);--button-space: var(--button-space-xxl);--button-border-radius: var(--button-border-radius-xxl);--button-gap: 8px;font-weight:var(--font-weight-text-medium);--button-font-size: var(--size-text-m)}._full_18bdh_266{display:flex;justify-content:center;width:100%}._disabled_18bdh_272{--button-cursor: not-allowed;color:var(--light-text);background-color:var(--disabled)}._disabled_18bdh_272:hover,._disabled_18bdh_272:active,._disabled_18bdh_272:focus{color:var(--light-text);background-color:var(--disabled);box-shadow:none}._disabled_18bdh_272._outline-button_18bdh_148{color:var(--disabled);background-color:transparent;border:1px solid var(--disabled)}._icon-button_18bdh_288{justify-content:center;min-width:var(--button-height);padding:0}
1
+ ._button_1ezof_2{--button-cursor: pointer;display:inline-flex;flex-shrink:0;align-items:center;box-sizing:border-box;max-width:100%;height:var(--button-height);padding:0 var(--button-space);overflow:hidden;color:var(--button-color);font-weight:var(--font-weight-text-semibold);font-size:var(--button-font-size);font-family:var(--font-inter);line-height:var(--line-height-text-s1);white-space:nowrap;text-transform:uppercase;-webkit-text-decoration:none;text-decoration:none;text-overflow:ellipsis;-moz-column-gap:var(--button-gap);column-gap:var(--button-gap);background:var(--button-bg-color);border:none;border-color:var(--border-color);cursor:pointer;cursor:var(--button-cursor);transition:background-color .3s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none}._button_1ezof_2:hover{color:var(--button-color-hover);background:var(--button-bg-color-hover);border-color:var(--border-color-hover)}._button_1ezof_2:active{color:var(--button-color-active);background:var(--button-bg-color-active);border-color:var(--border-color-active)}._button_1ezof_2:focus-visible{box-shadow:0 0 2px var(--sapphire-normal)}._button_1ezof_2._clear_1ezof_42:focus{box-shadow:none}._button_1ezof_2 svg{color:currentcolor;fill:currentcolor}._button_1ezof_2 svg path{color:currentcolor;fill:currentcolor}._default-button_1ezof_54._primary-sapphire_1ezof_54{--button-bg-color: var(--sapphire-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--sapphire-active);--button-bg-color-hover: var(--sapphire-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_1ezof_54._primary-citrine_1ezof_63{--button-bg-color: var(--citrine-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--citrine-active);--button-bg-color-hover: var(--citrine-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_1ezof_54._secondary-asphalt_1ezof_72{--button-bg-color: var(--asphalt-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--asphalt-active);--button-bg-color-hover: var(--asphalt-hover);--button-color: var(--light-text);--button-border: transparent}._default-button_1ezof_54._secondary-gray_1ezof_81{--button-bg-color: var(--gray-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--gray-active);--button-bg-color-hover: var(--gray-hover);--button-color: var(--dark-text);--button-border: transparent}._default-button_1ezof_54._secondary-white_1ezof_90{--button-bg-color: var(--white-normal);--button-color-hover: var(--counter-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--white-active);--button-bg-color-hover: var(--white);--button-color: var(--dark-text);--button-border: transparent}._default-button_1ezof_54._secondary-red_1ezof_99{--button-bg-color: var(--red-normal);--button-color-hover: var(--light-text);--button-color-active: var(--light-text);--button-bg-color-active: var(--red-active);--button-bg-color-hover: var(--red-hover);--button-color: var(--light-text);--button-border: transparent}._round-button_1ezof_109{--button-border-radius-l: 24px;--button-border-radius-m: 20px;--button-border-radius-s: 16px;--button-border-radius-xs: 12px;--button-space-l: var(--space-s);--button-space-m: var(--space-xs);--button-space-s: var(--space-xs);--button-space-xs: var(--space-2xs);border-radius:var(--button-border-radius)}._round-button_1ezof_109._black_1ezof_120{--button-bg-color: var(--asphalt-normal);--button-bg-color-hover: var(--asphalt-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--light-text);--button-color-hover: var(--light-text);--button-color-active: var(--light-text)}._round-button_1ezof_109._gray_1ezof_129{--button-bg-color: var(--gray-normal);--button-bg-color-hover: var(--gray-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--asphalt-normal);--button-color-hover: var(--asphalt-hover);--button-color-active: var(--light-text)}._round-button_1ezof_109._white_1ezof_138{--button-bg-color: var(--white-normal);--button-bg-color-hover: var(--white-hover);--button-bg-color-active: var(--sapphire-normal);--button-bg-color-focus: var(--sapphire-normal);--button-color: var(--asphalt-normal);--button-color-hover: var(--asphalt-hover);--button-color-active: var(--light-text)}._outline-button_1ezof_148{--button-bg-color: transparent;--button-bg-color-hover: transparent;--button-bg-color-active: transparent;--button-bg-color-focus: transparent;border:1px solid var(--border-color)}._outline-button_1ezof_148._outline-asphalt_1ezof_155{--border-color: var(--disabled-color);--button-color: var(--black-80);--border-color-hover: var(--black-80);--button-color-hover: var(--black-80);--border-color-active: var(--black-100);--button-color-active: var(--black-100)}._outline-button_1ezof_148._outline-gray_1ezof_163{--border-color: var(--black-5);--button-color: var(--black-5);--border-color-hover: var(--black-5);--button-color-hover: var(--counter-text);--border-color-active: var(--black-80);--button-color-active: var(--white);--button-bg-color-active: var(--black-80)}._outline-button_1ezof_148._outline-white_1ezof_172{--border-color: var(--white);--button-color: var(--white);--border-color-hover: var(--white);--button-color-hover: var(--counter-text);--border-color-active: var(--black-80);--button-color-active: var(--white);--button-bg-color-active: var(--black-80)}._outline-button_1ezof_148._outline-red_1ezof_181{--border-color: var(--error-normal);--button-color: var(--error-normal);--border-color-hover: var(--red-hover);--button-color-hover: var(--red-hover);--border-color-active: var(--red-active);--button-color-active: var(--white);--button-bg-color-active: var(--red-active)}._default-button_1ezof_54,._outline-button_1ezof_148{--button-space-xxl: var(--control-space-xxl);--button-space-xl: var(--control-space-l);--button-space-l: var(--space-m);--button-space-m: var(--space-m);--button-space-s: var(--space-xs);--button-space-xs: var(--space-2xs);--button-border-radius-xxl: var(--control-radius-s);--button-border-radius-xl: var(--control-radius-s);--button-border-radius-l: var(--control-radius);--button-border-radius-m: var(--control-radius);--button-border-radius-s: var(--control-radius-xs);--button-border-radius-xs: var(--control-radius-xs);border-radius:var(--button-border-radius)}._xs_1ezof_208{--button-height: var(--button-height-xs);--button-font-size: var(--control-text-size-xs);--button-space: var(--button-space-xs);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s)}._m-s_1ezof_216{--button-height: var(--button-height-ms);--button-border-radius: var(--button-border-radius-s);font-weight:var(--font-weight-text-regular);--button-gap: var(--space-2xs);--button-font-size: var(--size-text-s)}._s_1ezof_72{--button-height: var(--button-height-s);--button-font-size: var(--control-text-size-s);--button-space: var(--button-space-s);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s)}._m_1ezof_216{--button-height: var(--button-height-m);--button-font-size: var(--size-text-m);--button-space: var(--button-space-m);--button-gap: 8px;--button-border-radius: var(--button-border-radius-m)}._l_1ezof_240{--button-height: var(--button-height-l);--button-font-size: var(--size-text-m);--button-space: var(--button-space-l);--button-gap: 8px;--button-border-radius: var(--button-border-radius-l)}._xl_1ezof_248{--button-height: var(--button-height-xl);--button-space: var(--button-space-xl);--button-gap: 8px;--button-border-radius: var(--button-border-radius-xl);--button-font-size: var(--size-text-m);font-weight:var(--font-weight-text-medium)}._xxl_1ezof_257{--button-height: var(--button-height-xxl);--button-space: var(--button-space-xxl);--button-border-radius: var(--button-border-radius-xxl);--button-gap: 8px;font-weight:var(--font-weight-text-medium);--button-font-size: var(--size-text-m)}._full_1ezof_266{display:flex;justify-content:center;width:100%}._disabled_1ezof_272{--button-cursor: not-allowed;color:var(--light-text);background-color:var(--disabled)}._disabled_1ezof_272:hover,._disabled_1ezof_272:active,._disabled_1ezof_272:focus{color:var(--light-text);background-color:var(--disabled);box-shadow:none}._disabled_1ezof_272._outline-button_1ezof_148{color:var(--disabled);background-color:transparent;border:1px solid var(--disabled)}._icon-button_1ezof_288{justify-content:center;min-width:var(--button-height);padding:0}
@@ -0,0 +1 @@
1
+ ._chip_1ckvf_2{--chip-cursor: default;display:inline-flex;align-items:center;height:var(--chip-height);color:var(--chip-color);font-size:var(--chip-font-size);line-height:var(--chip-line-height);-moz-column-gap:var(--space-2xs);column-gap:var(--space-2xs);background-color:var(--chip-bg-color);border-radius:var(--chip-border-radius);cursor:default;cursor:var(--chip-cursor);transition:background-color .3s ease,border-color .15s ease,box-shadow .15s ease,color .15s ease,fill .15s ease;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding-left:var(--chip-space);padding-right:var(--chip-space)}._chip_1ckvf_2._with-action_1ckvf_18{--chip-cursor: pointer}._chip_1ckvf_2._with-action_1ckvf_18:hover{color:var(--chip-color-hover);background-color:var(--chip-bg-color-hover)}._chip_1ckvf_2._with-action_1ckvf_18:active{color:var(--chip-color-active);background-color:var(--chip-bg-color-active)}._chip_1ckvf_2._with-action_1ckvf_18:focus-visible{box-shadow:0 0 2px var(--sapphire-normal)}._chip_1ckvf_2._with-action_1ckvf_18 svg{color:currentcolor;fill:currentcolor}._chip_1ckvf_2._with-action_1ckvf_18 svg path{color:currentcolor;fill:currentcolor}._chip_1ckvf_2._disabled_1ckvf_40{--chip-color: var(--light-text);--chip-bg-color: var(--disabled);--chip-bg-color-hover: var(--disabled-color);--chip-bg-color-active: var(--disabled-color);--chip-cursor: not-allowed}._chip_1ckvf_2._disabled_1ckvf_40:focus-visible{box-shadow:none}._xs_1ckvf_51{--chip-font-size: var(--size-text-s);--chip-line-height: var(--line-height-text-xs);--chip-border-radius: var(--control-radius-m-s);--chip-height: 24px;--chip-space: var(--space-xs)}._s_1ckvf_59{--chip-font-size: var(--size-text-l);--chip-line-height: var(--line-height-text-xs);--chip-border-radius: var(--control-radius-m-s);--chip-height: 28px;--chip-space: var(--space-s)}._m_1ckvf_67{--chip-font-size: var(--size-text-m);--chip-line-height: var(--line-height-text-xs);--chip-border-radius: var(--control-radius-m);--chip-height: 40px;--chip-space: var(--space-m)}._sapphire_1ckvf_75{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--sapphire-normal);--chip-bg-color-hover: var(--sapphire-hover);--chip-bg-color-active: var(--sapphire-active)}._citrine_1ckvf_84{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--citrine-normal);--chip-bg-color-hover: var(--citrine-hover);--chip-bg-color-active: var(--citrine-active)}._asphalt_1ckvf_93{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--asphalt-normal);--chip-bg-color-hover: var(--asphalt-hover);--chip-bg-color-active: var(--asphalt-active)}._gray_1ckvf_102{--chip-color: var(--dark-text);--chip-color-hover: var(--sapphire-normal);--chip-color-active: var(--light-text);--chip-bg-color: var(--gray-normal);--chip-bg-color-hover: var(--gray-normal);--chip-bg-color-active: var(--gray-active)}._white_1ckvf_111{--chip-color: var(--dark-text);--chip-color-hover: var(--sapphire-normal);--chip-color-active: var(--light-text);--chip-bg-color: var(--white-normal);--chip-bg-color-hover: var(--white-normal);--chip-bg-color-active: var(--white-active)}._green_1ckvf_120{--chip-color: var(--light-text);--chip-color-hover: var(--light-text);--chip-color-active: var(--light-text);--chip-bg-color: var(--green-normal);--chip-bg-color-hover: var(--green-hover);--chip-bg-color-active: var(--green-active)}
@@ -1 +1 @@
1
- @font-face{font-weight:400;font-family:Montserrat;font-style:normal;src:url(./fonts/585d10920d676fcd.woff2) format("woff2"),url(./fonts/3b9f59412b17ff93.woff) format("woff")}@font-face{font-weight:700;font-family:Montserrat;font-style:normal;src:url(./fonts/f4d681a788c6d497.woff2) format("woff2"),url(./fonts/43b748f250df0f08.woff) format("woff")}@font-face{font-weight:300;font-family:Montserrat;font-style:normal;src:url(./fonts/ee3db32f0aadef5d.woff2) format("woff2"),url(./fonts/1a738bfdbc1e4d9d.woff) format("woff")}@font-face{font-weight:500;font-family:Montserrat;font-style:normal;src:url(./fonts/e51d2feb30084bc2.woff2) format("woff2"),url(./fonts/badaa6d1837432de.woff) format("woff")}@font-face{font-weight:600;font-family:Montserrat;font-style:normal;src:url(./fonts/63611593e008a77c.woff2) format("woff2"),url(./fonts/3cdd7fabbe89d2b9.woff) format("woff")}@font-face{font-weight:400;font-family:Inter;font-style:normal;src:url(./fonts/d080ae18fd04e52c.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:700;font-family:Inter;font-style:normal;src:url(./fonts/11d5bc9f0cad36d1.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:500;font-family:Inter;font-style:normal;src:url(./fonts/242d04bef81519ae.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:600;font-family:Inter;font-style:normal;src:url(./fonts/cac2ba46e8c8adc9.woff2) format("woff2");font-variant-numeric:slashed-zero}@supports (font-variation-settings: normal){:root{font-family:InterVariable,sans-serif}}:root{font-feature-settings:"zero"}*{margin:0;padding:0;border:0;outline:none}*,:after,:before{box-sizing:border-box}:active,:focus{outline:0}a,a:visited,a:hover{-webkit-text-decoration:none;text-decoration:none}a:active,a:focus{outline:0}aside,footer,header,nav{display:block}body,html{width:100%;height:100%;font-size:100%;line-height:1}button,input,textarea,select{font-family:inherit}input::-ms-clear{display:none}button{background-color:transparent;cursor:pointer}button::-moz-focus-inner{padding:0;border:0}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6{font-weight:inherit;font-size:inherit}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--color-typo-brand);-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}:root{--sapphire-100: #2355d7;--sapphire-90: #3564df;--sapphire-80: #4b75e2;--sapphire-70: #6186e6;--sapphire-60: #7797e9;--sapphire-50: #8da7ed;--sapphire-40: #9fb7f4;--sapphire-30: #b9caf4;--sapphire-20: #cfdaf7;--sapphire-10: #e5ebfb;--citrine-100: #ff7900;--citrine-90: #ff861a;--citrine-80: #ff9433;--citrine-70: #ffa14d;--citrine-60: #ffaf66;--citrine-50: #ffbc80;--citrine-40: #ffc999;--citrine-30: #ffd7b2;--citrine-20: #ffe4cc;--citrine-10: #fff2e5;--magenta-100: #bc2251;--magenta-90: #d8275d;--magenta-80: #dc3d6d;--magenta-70: #e15781;--magenta-60: #e46c91;--magenta-50: #e986a4;--magenta-40: #ed9cb4;--magenta-30: #f2b6c8;--magenta-20: #f6cbd8;--magenta-10: #fae5ec;--black-100: #000;--black-95: #0d0d0d;--black-90: #1a1a1a;--black-85: #262626;--black-80: #333;--black-75: #404040;--black-70: #4d4d4d;--black-65: #595959;--black-60: #666;--black-55: #737373;--black-50: #808080;--black-45: #8c8c8c;--black-40: #999;--black-35: #a6a6a6;--black-30: #b3b3b3;--black-25: #bfbfbf;--black-20: #ccc;--black-15: #d9d9d9;--black-10: #e6e6e6;--black-5: #f2f2f2;--white: #fff;--dark-blue: #0a38af;--blue-40: #a7bbef;--blue-20: #d3ddf7;--green: #1b770c;--red-tag: #f01406;--success-normal: #23b413;--success-bg-hover: #d5fbe2;--success-bg-active: #ebfdf1;--alarm-normal: #fdc023;--alarm-bg-hover: #fff0c7;--alarm-bg-active: #fff6de;--error-normal: #e64646;--error-bg-hover: #fadbdb;--error-bg-active: #fbe3e3;--disabled: #b3b3b3;--disabled-color: #b2b2b2;--light-text: var(--white);--dark-text: var(--black-100);--sapphire-normal: var(--sapphire-100);--sapphire-hover: #1b41a3;--sapphire-active: #122c70;--citrine-normal: var(--citrine-100);--citrine-hover: #e56d00;--citrine-active: #cc6100;--asphalt-border: var(--black-30);--asphalt-normal: var(--black-80);--asphalt-hover: var(--black-90);--asphalt-active: var(--black-100);--gray-normal: var(--black-5);--gray-hover: var(--black-10);--gray-active: var(--black-80);--white-normal: var(--white);--white-hover: var(--black-5);--white-transparent: rgba(255, 255, 255, .4);--white-active: var(--black-80);--red-normal: var(--error-normal);--red-hover: #e33030;--red-active: #dc1e1e;--green-normal: var(--green);--green-hover: #16610a;--green-active: #114a08;--counter-text: #ffa066;--button-height-ms: 16px;--button-height-xs: 24px;--button-height-s: 32px;--button-height-m: 40px;--button-height-l: 48px;--button-height-xl: 56px;--button-height-xxl: 64px;--select-search-height-l: 48px;--select-search-height-xxl: 64px;--select-search-options-height-desktop: 320px;--select-search-options-height-mobile: 264px;--control-default: var(--sapphire-20);--control-hover: var(--sapphire-40);--control-selected: var(--sapphire-100);--control-disabled: var(--black-10);--font-inter: "Inter", sans-serif;--font-montserrat: "Montserrat", sans-serif;--font-weight-text-regular: 400;--font-weight-text-medium: 500;--font-weight-text-semibold: 600;--font-weight-text-bold: 700;--font-weight-text-extrabold: 800;--font-weight-text-black: 900;--size-text-xs2: 8px;--size-text-xs: 10px;--size-text-s: 12px;--size-text-m: 14px;--size-text-l: 16px;--size-text-l2: 18px;--size-text-xl: 20px;--size-text-xl2: 24px;--size-text-3xl: 26px;--size-text-2xl: 28px;--size-text-xl3: 32px;--size-text-xl4: 48px;--size-text-4xl: 52px;--size-text-xl5: 72px;--size-text-xl6: 96px;--line-height-text-2xs: 1em;--line-height-text-xxs: 1.125em;--line-height-text-xs: 1.1em;--line-height-text-s: 1.2em;--line-height-text-s1: 1.25em;--line-height-text-m: 1.3em;--line-height-text-m1: 1.35em;--line-height-text-l: 1.4em;--line-height-text-l1: 1.45em;--line-height-text-xl: 1.5em;--line-height-text-xl1: 1.5em;--control-radius-xs: 4px;--control-radius: 6px;--control-radius-s: 8px;--control-radius-m: 20px;--control-radius-l: 24px;--control-radius-xl: 32px;--control-radius-xxl: 40px;--control-input-radius: 12px;--control-border-width: 1px;--control-height-xl: 60px;--control-height-xxl: 60px;--control-height-l: var(--space-4xl);--control-height-m: var(--space-3xl);--control-height-s: var(--space-2xl);--control-height-xs: var(--space-xl);--control-box-size-s: var(--space-s);--control-box-size-m: var(--space-m);--control-box-size-l: var(--space-l);--control-space-xxl: var(--space-xl);--control-space-l: var(--space-xl);--control-space-m: var(--space-l);--control-space-s: var(--space-m);--control-space-xs: var(--space-s);--control-text-size-2xl: var(--size-text-xl);--control-text-size-xl: var(--size-text-xl3);--control-text-size-l: var(--size-text-l);--control-text-size-m: var(--size-text-m);--control-text-size-s: var(--size-text-s);--control-text-size-xs: var(--size-text-xs);--space-3xs: 2px;--space-2xs: 4px;--space-1xs: 6px;--space-xs: 8px;--space-xss: 10px;--space-s: 12px;--space-2s: 14px;--space-m: 16px;--space-2m: 18px;--space-l: 20px;--space-2l: 22px;--space-xl: 24px;--space-1xl: 28px;--space-2xl: 32px;--space-2xxl: 36px;--space-xxl: 40px;--space-3xl: 44px;--space-4xl: 48px;--space-5xl: 56px;--space-4xxl: 64px;--space-5xxl: 72px;--space-6xl: 96px;--box-shadow-active: 0 0 2px var(--sapphire-normal);--box-shadow-focus: 0px 0px 10px 2px #1389cc;--box-shadow-select-search: 0 3px 15px 0 rgba(31, 32, 35, .15);--select-search-input-top-l: -15%;--select-search-input-top-xxl: -35%;--container-width-xs: 375px;--container-width-s: 767px;--container-width-m: 960px;--container-width-l: 1280px;--container-width-xl: 1440px;--container-width-xxl: 1920px;--zindex-fixed: 1030;--sidebar-width-collapsed: 64px;--sidebar-width-expanded: 256px;--header-height: 64px;--sidebar-form-width-tablet: 369px;--sidebar-form-width-mobile: 309px;--tab-trail-height-m: 58px;--tab-trail-height-s: 36px;--accordion-icon-circle-size-m: 48px;--accordion-icon-circle-size-s: 36px;--accordion-icon-square-size-m: 40px;--accordion-icon-square-size-s: 32px}@supports (font-variation-settings: normal){:root{font-family:Inter,sans-serif}}:root{font-feature-settings:"zero";font-variant-numeric:slashed-zero}body{font-family:Inter,sans-serif;font-feature-settings:"zero";font-variant-numeric:slashed-zero;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
1
+ @font-face{font-weight:400;font-family:Montserrat;font-style:normal;src:url(./fonts/585d10920d676fcd.woff2) format("woff2"),url(./fonts/3b9f59412b17ff93.woff) format("woff")}@font-face{font-weight:700;font-family:Montserrat;font-style:normal;src:url(./fonts/f4d681a788c6d497.woff2) format("woff2"),url(./fonts/43b748f250df0f08.woff) format("woff")}@font-face{font-weight:300;font-family:Montserrat;font-style:normal;src:url(./fonts/ee3db32f0aadef5d.woff2) format("woff2"),url(./fonts/1a738bfdbc1e4d9d.woff) format("woff")}@font-face{font-weight:500;font-family:Montserrat;font-style:normal;src:url(./fonts/e51d2feb30084bc2.woff2) format("woff2"),url(./fonts/badaa6d1837432de.woff) format("woff")}@font-face{font-weight:600;font-family:Montserrat;font-style:normal;src:url(./fonts/63611593e008a77c.woff2) format("woff2"),url(./fonts/3cdd7fabbe89d2b9.woff) format("woff")}@font-face{font-weight:400;font-family:Inter;font-style:normal;src:url(./fonts/d080ae18fd04e52c.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:700;font-family:Inter;font-style:normal;src:url(./fonts/11d5bc9f0cad36d1.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:500;font-family:Inter;font-style:normal;src:url(./fonts/242d04bef81519ae.woff2) format("woff2");font-variant-numeric:slashed-zero}@font-face{font-weight:600;font-family:Inter;font-style:normal;src:url(./fonts/cac2ba46e8c8adc9.woff2) format("woff2");font-variant-numeric:slashed-zero}@supports (font-variation-settings: normal){:root{font-family:InterVariable,sans-serif}}:root{font-feature-settings:"zero"}*{margin:0;padding:0;border:0;outline:none}*,:after,:before{box-sizing:border-box}:active,:focus{outline:0}a,a:visited,a:hover{-webkit-text-decoration:none;text-decoration:none}a:active,a:focus{outline:0}aside,footer,header,nav{display:block}body,html{width:100%;height:100%;font-size:100%;line-height:1}button,input,textarea,select{font-family:inherit}input::-ms-clear{display:none}button{background-color:transparent;cursor:pointer}button::-moz-focus-inner{padding:0;border:0}ul li{list-style:none}img{vertical-align:top}h1,h2,h3,h4,h5,h6{font-weight:inherit;font-size:inherit}input:-webkit-autofill,input:-webkit-autofill:hover,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:var(--color-typo-brand);-webkit-transition:background-color 5000s ease-in-out 0s;transition:background-color 5000s ease-in-out 0s}:root{--sapphire-100: #2355d7;--sapphire-90: #3564df;--sapphire-80: #4b75e2;--sapphire-70: #6186e6;--sapphire-60: #7797e9;--sapphire-50: #8da7ed;--sapphire-40: #9fb7f4;--sapphire-30: #b9caf4;--sapphire-20: #cfdaf7;--sapphire-10: #e5ebfb;--citrine-100: #ff7900;--citrine-90: #ff861a;--citrine-80: #ff9433;--citrine-70: #ffa14d;--citrine-60: #ffaf66;--citrine-50: #ffbc80;--citrine-40: #ffc999;--citrine-30: #ffd7b2;--citrine-20: #ffe4cc;--citrine-10: #fff2e5;--magenta-100: #bc2251;--magenta-90: #d8275d;--magenta-80: #dc3d6d;--magenta-70: #e15781;--magenta-60: #e46c91;--magenta-50: #e986a4;--magenta-40: #ed9cb4;--magenta-30: #f2b6c8;--magenta-20: #f6cbd8;--magenta-10: #fae5ec;--black-100: #000;--black-95: #0d0d0d;--black-90: #1a1a1a;--black-85: #262626;--black-80: #333;--black-75: #404040;--black-70: #4d4d4d;--black-65: #595959;--black-60: #666;--black-55: #737373;--black-50: #808080;--black-45: #8c8c8c;--black-40: #999;--black-35: #a6a6a6;--black-30: #b3b3b3;--black-25: #bfbfbf;--black-20: #ccc;--black-15: #d9d9d9;--black-10: #e6e6e6;--black-5: #f2f2f2;--white: #fff;--dark-blue: #0a38af;--blue-40: #a7bbef;--blue-20: #d3ddf7;--green: #1b770c;--red-tag: #f01406;--success-normal: #23b413;--success-bg-hover: #d5fbe2;--success-bg-active: #ebfdf1;--alarm-normal: #fdc023;--alarm-bg-hover: #fff0c7;--alarm-bg-active: #fff6de;--error-normal: #e64646;--error-bg-hover: #fadbdb;--error-bg-active: #fbe3e3;--disabled: #b3b3b3;--disabled-color: #b2b2b2;--light-text: var(--white);--dark-text: var(--black-100);--sapphire-normal: var(--sapphire-100);--sapphire-hover: #1b41a3;--sapphire-active: #122c70;--citrine-normal: var(--citrine-100);--citrine-hover: #e56d00;--citrine-active: #cc6100;--asphalt-border: var(--black-30);--asphalt-normal: var(--black-80);--asphalt-hover: var(--black-90);--asphalt-active: var(--black-100);--gray-normal: var(--black-5);--gray-hover: var(--black-10);--gray-active: var(--black-80);--white-normal: var(--white);--white-hover: var(--black-5);--white-transparent: rgba(255, 255, 255, .4);--white-active: var(--black-80);--red-normal: var(--error-normal);--red-hover: #e33030;--red-active: #dc1e1e;--green-normal: var(--green);--green-hover: #16610a;--green-active: #114a08;--counter-text: #ffa066;--button-height-ms: 16px;--button-height-xs: 24px;--button-height-s: 32px;--button-height-m: 40px;--button-height-l: 48px;--button-height-xl: 56px;--button-height-xxl: 64px;--select-search-height-l: 48px;--select-search-height-xxl: 64px;--select-search-options-height-desktop: 320px;--select-search-options-height-mobile: 264px;--control-default: var(--sapphire-20);--control-hover: var(--sapphire-40);--control-selected: var(--sapphire-100);--control-disabled: var(--black-10);--font-inter: "Inter", sans-serif;--font-montserrat: "Montserrat", sans-serif;--font-weight-text-regular: 400;--font-weight-text-medium: 500;--font-weight-text-semibold: 600;--font-weight-text-bold: 700;--font-weight-text-extrabold: 800;--font-weight-text-black: 900;--size-text-xs2: 8px;--size-text-xs: 10px;--size-text-s: 12px;--size-text-m: 14px;--size-text-l: 16px;--size-text-l2: 18px;--size-text-xl: 20px;--size-text-xl2: 24px;--size-text-3xl: 26px;--size-text-2xl: 28px;--size-text-xl3: 32px;--size-text-xl4: 48px;--size-text-4xl: 52px;--size-text-xl5: 72px;--size-text-xl6: 96px;--line-height-text-2xs: 1em;--line-height-text-xxs: 1.125em;--line-height-text-xs: 1.1em;--line-height-text-s: 1.2em;--line-height-text-s1: 1.25em;--line-height-text-m: 1.3em;--line-height-text-m1: 1.35em;--line-height-text-l: 1.4em;--line-height-text-l1: 1.45em;--line-height-text-xl: 1.5em;--line-height-text-xl1: 1.5em;--control-radius-xs: 4px;--control-radius: 6px;--control-radius-s: 8px;--control-radius-m-s: 16px;--control-radius-m: 20px;--control-radius-l: 24px;--control-radius-xl: 32px;--control-radius-xxl: 40px;--control-input-radius: 12px;--control-border-width: 1px;--control-height-xl: 60px;--control-height-xxl: 60px;--control-height-l: var(--space-4xl);--control-height-m: var(--space-3xl);--control-height-s: var(--space-2xl);--control-height-xs: var(--space-xl);--control-box-size-s: var(--space-s);--control-box-size-m: var(--space-m);--control-box-size-l: var(--space-l);--control-space-xxl: var(--space-xl);--control-space-l: var(--space-xl);--control-space-m: var(--space-l);--control-space-s: var(--space-m);--control-space-xs: var(--space-s);--control-text-size-2xl: var(--size-text-xl);--control-text-size-xl: var(--size-text-xl3);--control-text-size-l: var(--size-text-l);--control-text-size-m: var(--size-text-m);--control-text-size-s: var(--size-text-s);--control-text-size-xs: var(--size-text-xs);--space-3xs: 2px;--space-2xs: 4px;--space-1xs: 6px;--space-xs: 8px;--space-xss: 10px;--space-s: 12px;--space-2s: 14px;--space-m: 16px;--space-2m: 18px;--space-l: 20px;--space-2l: 22px;--space-xl: 24px;--space-1xl: 28px;--space-2xl: 32px;--space-2xxl: 36px;--space-xxl: 40px;--space-3xl: 44px;--space-4xl: 48px;--space-5xl: 56px;--space-4xxl: 64px;--space-5xxl: 72px;--space-6xl: 96px;--box-shadow-active: 0 0 2px var(--sapphire-normal);--box-shadow-focus: 0px 0px 10px 2px #1389cc;--box-shadow-select-search: 0 3px 15px 0 rgba(31, 32, 35, .15);--select-search-input-top-l: -15%;--select-search-input-top-xxl: -35%;--container-width-xs: 375px;--container-width-s: 767px;--container-width-m: 960px;--container-width-l: 1280px;--container-width-xl: 1440px;--container-width-xxl: 1920px;--zindex-fixed: 1030;--sidebar-width-collapsed: 64px;--sidebar-width-expanded: 256px;--header-height: 64px;--sidebar-form-width-tablet: 369px;--sidebar-form-width-mobile: 309px;--tab-trail-height-m: 58px;--tab-trail-height-s: 36px;--accordion-icon-circle-size-m: 48px;--accordion-icon-circle-size-s: 36px;--accordion-icon-square-size-m: 40px;--accordion-icon-square-size-s: 32px}@supports (font-variation-settings: normal){:root{font-family:Inter,sans-serif}}:root{font-feature-settings:"zero";font-variant-numeric:slashed-zero}body{font-family:Inter,sans-serif;font-feature-settings:"zero";font-variant-numeric:slashed-zero;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
@@ -3,40 +3,40 @@ import { c as classNames } from "../../index-CweZ_OcN.js";
3
3
  import { forwardRef } from "react";
4
4
  import { EButtonVariantDefault, EButtonForm } from "./constants.js";
5
5
  import { Icon } from "../../icons/Icon.js";
6
- import '../../assets/Button.css';const button = "_button_18bdh_2";
7
- const clear = "_clear_18bdh_42";
8
- const black = "_black_18bdh_120";
9
- const gray = "_gray_18bdh_129";
10
- const white = "_white_18bdh_138";
11
- const xs = "_xs_18bdh_208";
12
- const s = "_s_18bdh_72";
13
- const m = "_m_18bdh_216";
14
- const l = "_l_18bdh_240";
15
- const xl = "_xl_18bdh_248";
16
- const xxl = "_xxl_18bdh_257";
17
- const full = "_full_18bdh_266";
18
- const disabled = "_disabled_18bdh_272";
6
+ import '../../assets/Button.css';const button = "_button_1ezof_2";
7
+ const clear = "_clear_1ezof_42";
8
+ const black = "_black_1ezof_120";
9
+ const gray = "_gray_1ezof_129";
10
+ const white = "_white_1ezof_138";
11
+ const xs = "_xs_1ezof_208";
12
+ const s = "_s_1ezof_72";
13
+ const m = "_m_1ezof_216";
14
+ const l = "_l_1ezof_240";
15
+ const xl = "_xl_1ezof_248";
16
+ const xxl = "_xxl_1ezof_257";
17
+ const full = "_full_1ezof_266";
18
+ const disabled = "_disabled_1ezof_272";
19
19
  const cls = {
20
20
  button,
21
21
  clear,
22
- "default-button": "_default-button_18bdh_54",
23
- "primary-sapphire": "_primary-sapphire_18bdh_54",
24
- "primary-citrine": "_primary-citrine_18bdh_63",
25
- "secondary-asphalt": "_secondary-asphalt_18bdh_72",
26
- "secondary-gray": "_secondary-gray_18bdh_81",
27
- "secondary-white": "_secondary-white_18bdh_90",
28
- "secondary-red": "_secondary-red_18bdh_99",
29
- "round-button": "_round-button_18bdh_109",
22
+ "default-button": "_default-button_1ezof_54",
23
+ "primary-sapphire": "_primary-sapphire_1ezof_54",
24
+ "primary-citrine": "_primary-citrine_1ezof_63",
25
+ "secondary-asphalt": "_secondary-asphalt_1ezof_72",
26
+ "secondary-gray": "_secondary-gray_1ezof_81",
27
+ "secondary-white": "_secondary-white_1ezof_90",
28
+ "secondary-red": "_secondary-red_1ezof_99",
29
+ "round-button": "_round-button_1ezof_109",
30
30
  black,
31
31
  gray,
32
32
  white,
33
- "outline-button": "_outline-button_18bdh_148",
34
- "outline-asphalt": "_outline-asphalt_18bdh_155",
35
- "outline-gray": "_outline-gray_18bdh_163",
36
- "outline-white": "_outline-white_18bdh_172",
37
- "outline-red": "_outline-red_18bdh_181",
33
+ "outline-button": "_outline-button_1ezof_148",
34
+ "outline-asphalt": "_outline-asphalt_1ezof_155",
35
+ "outline-gray": "_outline-gray_1ezof_163",
36
+ "outline-white": "_outline-white_1ezof_172",
37
+ "outline-red": "_outline-red_1ezof_181",
38
38
  xs,
39
- "m-s": "_m-s_18bdh_216",
39
+ "m-s": "_m-s_1ezof_216",
40
40
  s,
41
41
  m,
42
42
  l,
@@ -44,7 +44,7 @@ const cls = {
44
44
  xxl,
45
45
  full,
46
46
  disabled,
47
- "icon-button": "_icon-button_18bdh_288"
47
+ "icon-button": "_icon-button_1ezof_288"
48
48
  };
49
49
  const Button = forwardRef(
50
50
  (props, ref) => {
@@ -0,0 +1,30 @@
1
+ import { PropsWithChildren } from 'react';
2
+ import { EChipSize, EChipVariant } from './constants';
3
+
4
+ export type TProps = {
5
+ /**
6
+ * Дополнительный класс для компонента.
7
+ */
8
+ className?: string;
9
+ /**
10
+ * Вариант чипа. Возможные значения определены в перечислении `EChipVariant`.
11
+ */
12
+ variant?: `${EChipVariant}` | EChipVariant;
13
+ /**
14
+ * Размер чипа. Возможные значения определены в перечислении `EChipSize`.
15
+ */
16
+ size?: `${EChipSize}` | EChipSize;
17
+ /**
18
+ * Функция, которая будет вызвана при нажатии на чип.
19
+ */
20
+ onClick?: VoidFunction;
21
+ /**
22
+ * Отключено ли чип.
23
+ */
24
+ disabled?: boolean;
25
+ /**
26
+ * Имеет ли чип действие (например, кнопку закрытия).
27
+ */
28
+ withAction?: boolean;
29
+ };
30
+ export declare const Chip: ({ size, variant, className, onClick, disabled, withAction, children }: PropsWithChildren<TProps>) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,56 @@
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { c as classNames } from "../../index-CweZ_OcN.js";
3
+ import { EChipSize, EChipVariant } from "./constants.js";
4
+ import { Icon } from "../../icons/Icon.js";
5
+ import '../../assets/Chip.css';const chip = "_chip_1ckvf_2";
6
+ const disabled = "_disabled_1ckvf_40";
7
+ const xs = "_xs_1ckvf_51";
8
+ const s = "_s_1ckvf_59";
9
+ const m = "_m_1ckvf_67";
10
+ const sapphire = "_sapphire_1ckvf_75";
11
+ const citrine = "_citrine_1ckvf_84";
12
+ const asphalt = "_asphalt_1ckvf_93";
13
+ const gray = "_gray_1ckvf_102";
14
+ const white = "_white_1ckvf_111";
15
+ const green = "_green_1ckvf_120";
16
+ const cls = {
17
+ chip,
18
+ "with-action": "_with-action_1ckvf_18",
19
+ disabled,
20
+ xs,
21
+ s,
22
+ m,
23
+ sapphire,
24
+ citrine,
25
+ asphalt,
26
+ gray,
27
+ white,
28
+ green
29
+ };
30
+ const Chip = ({
31
+ size = EChipSize.M,
32
+ variant = EChipVariant.Sapphire,
33
+ className,
34
+ onClick,
35
+ disabled: disabled2,
36
+ withAction,
37
+ children
38
+ }) => {
39
+ const classes = classNames(
40
+ cls.chip,
41
+ className,
42
+ {
43
+ [cls["with-action"]]: withAction,
44
+ [cls.disabled]: disabled2
45
+ },
46
+ cls[variant],
47
+ cls[size]
48
+ );
49
+ return /* @__PURE__ */ jsxs("button", { type: "button", onClick, className: classes, children: [
50
+ children,
51
+ withAction && /* @__PURE__ */ jsx(Icon, { iconName: "Close16px" })
52
+ ] });
53
+ };
54
+ export {
55
+ Chip
56
+ };
@@ -0,0 +1,13 @@
1
+ export declare enum EChipSize {
2
+ XS = "xs",
3
+ S = "s",
4
+ M = "m"
5
+ }
6
+ export declare enum EChipVariant {
7
+ Sapphire = "sapphire",
8
+ Citrine = "citrine",
9
+ Asphalt = "asphalt",
10
+ Gray = "gray",
11
+ White = "white",
12
+ Green = "green"
13
+ }
@@ -0,0 +1,19 @@
1
+ var EChipSize = /* @__PURE__ */ ((EChipSize2) => {
2
+ EChipSize2["XS"] = "xs";
3
+ EChipSize2["S"] = "s";
4
+ EChipSize2["M"] = "m";
5
+ return EChipSize2;
6
+ })(EChipSize || {});
7
+ var EChipVariant = /* @__PURE__ */ ((EChipVariant2) => {
8
+ EChipVariant2["Sapphire"] = "sapphire";
9
+ EChipVariant2["Citrine"] = "citrine";
10
+ EChipVariant2["Asphalt"] = "asphalt";
11
+ EChipVariant2["Gray"] = "gray";
12
+ EChipVariant2["White"] = "white";
13
+ EChipVariant2["Green"] = "green";
14
+ return EChipVariant2;
15
+ })(EChipVariant || {});
16
+ export {
17
+ EChipSize,
18
+ EChipVariant
19
+ };
@@ -0,0 +1,2 @@
1
+ export { Chip } from './Chip';
2
+ export { EChipSize, EChipVariant } from './constants';
@@ -0,0 +1,7 @@
1
+ import { Chip } from "./Chip.js";
2
+ import { EChipSize, EChipVariant } from "./constants.js";
3
+ export {
4
+ Chip,
5
+ EChipSize,
6
+ EChipVariant
7
+ };
@@ -5,7 +5,7 @@ import { c as cls, D as DatePickerModal } from "../../DatePickerModal-BM0BgzTb.j
5
5
  import { useClickOutside } from "../../hooks/useClickOutside/useClickOutside.js";
6
6
  import { formating } from "../../utils/index.js";
7
7
  import { Button } from "../Button/Button.js";
8
- import { I as Input } from "../../Input-C8BYj-Cv.js";
8
+ import { I as Input } from "../../Input-DdKAiGfJ.js";
9
9
  const DatePicker = memo(
10
10
  forwardRef(
11
11
  ({ size, value, onChangeValue, name, before, ...props }, ref) => {
@@ -42,6 +42,14 @@ export type TAdditionalProps = {
42
42
  * Флаг, показывающий наличие кнопки очистки.
43
43
  */
44
44
  withClearButton?: boolean;
45
+ /**
46
+ * Разрешить только числовой ввод
47
+ */
48
+ numbersOnly?: boolean;
49
+ /**
50
+ * Максимальная длина ввода
51
+ */
52
+ maxLength?: number;
45
53
  };
46
54
  export type TProps = TInputProps & TAdditionalProps;
47
55
  export declare const Input: import('react').MemoExoticComponent<import('react').ForwardRefExoticComponent<TInputProps & TAdditionalProps & import('react').RefAttributes<HTMLInputElement>>>;
@@ -2,7 +2,7 @@ import "react/jsx-runtime";
2
2
  import "../../index-CweZ_OcN.js";
3
3
  import "react";
4
4
  import "./constants.js";
5
- import { I } from "../../Input-C8BYj-Cv.js";
5
+ import { I } from "../../Input-DdKAiGfJ.js";
6
6
  import "../../hooks/useMergeRefs/useMergeRefs.js";
7
7
  import "../../icons/Icon.js";
8
8
  import "../Button/Button.js";
@@ -1,4 +1,4 @@
1
- import { I } from "../../Input-C8BYj-Cv.js";
1
+ import { I } from "../../Input-DdKAiGfJ.js";
2
2
  import { EInputSize, EInputVariant } from "./constants.js";
3
3
  export {
4
4
  EInputSize,
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "react/jsx-runtime";
2
2
  import { memo, forwardRef, useState } from "react";
3
3
  import { Icon } from "../../icons/Icon.js";
4
4
  import { Button } from "../Button/Button.js";
5
- import { I as Input } from "../../Input-C8BYj-Cv.js";
5
+ import { I as Input } from "../../Input-DdKAiGfJ.js";
6
6
  import '../../assets/InputPassword.css';const input = "_input_mam1g_2";
7
7
  const wrapper = "_wrapper_mam1g_6";
8
8
  const button = "_button_mam1g_17";
@@ -1,7 +1,7 @@
1
1
  import { jsx } from "react/jsx-runtime";
2
2
  import { memo, forwardRef, useState, useCallback, useImperativeHandle } from "react";
3
3
  import { getMaskedInputPhoneValue, getUnmaskedInputValue } from "./utils.js";
4
- import { I as Input } from "../../Input-C8BYj-Cv.js";
4
+ import { I as Input } from "../../Input-DdKAiGfJ.js";
5
5
  const InputPhoneNumber = memo(
6
6
  forwardRef(
7
7
  ({ value = "", onChange, ...props }, ref) => {
@@ -3,7 +3,7 @@ import { c as classNames } from "../../index-CweZ_OcN.js";
3
3
  import { forwardRef, useImperativeHandle, Fragment } from "react";
4
4
  import { ITEMS_PER_SEPARATOR, DEFAULT_VALUE_LENGTH } from "./constants.js";
5
5
  import { useOTPInput } from "./hooks.js";
6
- import { I as Input } from "../../Input-C8BYj-Cv.js";
6
+ import { I as Input } from "../../Input-DdKAiGfJ.js";
7
7
  import '../../assets/OtpInput.css';const otp = "_otp_196ev_3";
8
8
  const input = "_input_196ev_14";
9
9
  const separator = "_separator_196ev_28";
@@ -1,8 +1,9 @@
1
1
  import { RadioGroupProps } from '@headlessui/react';
2
+ import { ReactNode } from 'react';
2
3
 
3
4
  export interface TRadioOption {
4
5
  value: string;
5
- label: string;
6
+ label: ReactNode;
6
7
  }
7
8
  /**
8
9
  * Свойства компонента RadioGroup.
@@ -23,6 +24,11 @@ export type TRadioGroupProps = Omit<RadioGroupProps, 'value'> & {
23
24
  * Может быть необязательным.
24
25
  */
25
26
  label?: string;
27
+ /**
28
+ * Дополнительный класснейм для элементов радиогруппы.
29
+ *
30
+ */
31
+ classNameRadioWrapper?: string;
26
32
  };
27
33
  /**
28
34
  * Компонент RadioGroup для выбора одной опции из нескольких.
@@ -43,4 +49,9 @@ export declare const RadioGroup: import('react').ForwardRefExoticComponent<Omit<
43
49
  * Может быть необязательным.
44
50
  */
45
51
  label?: string;
52
+ /**
53
+ * Дополнительный класснейм для элементов радиогруппы.
54
+ *
55
+ */
56
+ classNameRadioWrapper?: string;
46
57
  } & import('react').RefAttributes<HTMLElement>>;
@@ -120,10 +120,14 @@ const cls = {
120
120
  checked
121
121
  };
122
122
  const RadioGroup = forwardRef(
123
- ({ options, value, onChange, label: label2, ...props }, ref) => {
124
- const radioClasses = classNames(cls["radio-wrapper"], {
125
- [cls.disabled]: props.disabled
126
- });
123
+ ({ options, value, onChange, label: label2, classNameRadioWrapper, ...props }, ref) => {
124
+ const radioClasses = classNames(
125
+ cls["radio-wrapper"],
126
+ classNameRadioWrapper,
127
+ {
128
+ [cls.disabled]: props.disabled
129
+ }
130
+ );
127
131
  return /* @__PURE__ */ jsxs(
128
132
  Tt,
129
133
  {
@@ -163,7 +167,7 @@ const RadioGroup = forwardRef(
163
167
  label22
164
168
  ] })
165
169
  },
166
- label22
170
+ typeof value2 === "string" ? value2 : String(value2)
167
171
  )) })
168
172
  ]
169
173
  }
@@ -4,7 +4,7 @@ import * as React from "react";
4
4
  import React__default, { useReducer, useMemo, useSyncExternalStore, useId as useId$1, useEffect, useCallback, useRef, useLayoutEffect, createContext, useContext, useState, Fragment, createRef, forwardRef } from "react";
5
5
  import { ESelectSearchSize } from "./constants.js";
6
6
  import { Icon } from "../../icons/Icon.js";
7
- import { I as Input } from "../../Input-C8BYj-Cv.js";
7
+ import { I as Input } from "../../Input-DdKAiGfJ.js";
8
8
  import { EInputVariant, EInputSize } from "../Input/constants.js";
9
9
  import { n as n$2, u as u$3, d as o$1, s as s$3, o as o$2, p as p$1, t as t$3, e as s$4, W as W$1, y as y$3, T, H, M as M$1, a as u$5, $ as $f7dceffc5ad7768b$export$4e328f61c538687f, b as $6179b936705e76d3$export$ae780daf29e6d456, D as D$2, c as o$3 } from "../../keyboard-B256ZoM-.js";
10
10
  import * as ReactDOM from "react-dom";
@@ -3798,7 +3798,8 @@ const SelectSearch = forwardRef(
3798
3798
  onSearch,
3799
3799
  variant = EInputVariant.DefaultGray,
3800
3800
  menuPlacement = "bottom",
3801
- disabled: disabled2 = false
3801
+ disabled: disabled2 = false,
3802
+ searchProps
3802
3803
  } = props;
3803
3804
  const [inputValue, setInputValue] = useState("");
3804
3805
  const mapSizeToInputSize = (size22) => {
@@ -3863,7 +3864,8 @@ const SelectSearch = forwardRef(
3863
3864
  onChange: handleInputChange,
3864
3865
  value: inputValue,
3865
3866
  disabled: disabled2,
3866
- variant
3867
+ variant,
3868
+ ...searchProps
3867
3869
  }
3868
3870
  ),
3869
3871
  showArrow && /* @__PURE__ */ jsx(Ho, { className: cls.button, disabled: disabled2, children: /* @__PURE__ */ jsx(
@@ -1,6 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { ESelectSearchSize } from './constants';
3
- import { TVariant } from '../Input';
3
+ import { TInputProps, TVariant } from '../Input';
4
4
 
5
5
  export type TSelectOption = {
6
6
  name: string;
@@ -50,4 +50,6 @@ export type TSelectSearchProps = {
50
50
  menuPlacement?: TMenuPlacement;
51
51
  /** Отключает компонент SelectSearch */
52
52
  disabled?: boolean;
53
+ /** Пропсы для инпута поиска опций */
54
+ searchProps?: Pick<TInputProps, 'numbersOnly' | 'maxLength'>;
53
55
  };
@@ -5,7 +5,7 @@ import { useAutoResizeTextArea } from "./hooks.js";
5
5
  import { useMergeRefs } from "../../hooks/useMergeRefs/useMergeRefs.js";
6
6
  import { Icon } from "../../icons/Icon.js";
7
7
  import { Button } from "../Button/Button.js";
8
- import { c as cls } from "../../Input-C8BYj-Cv.js";
8
+ import { c as cls } from "../../Input-DdKAiGfJ.js";
9
9
  import { EInputVariant } from "../Input/constants.js";
10
10
  import '../../assets/TextArea.css';const textarea = "_textarea_1hbfy_2";
11
11
  const label = "_label_1hbfy_11";
@@ -41,3 +41,4 @@ export { ELinkSize, ELinkVariant, Link } from './AnchorLink';
41
41
  export { NotificationBadge } from './NotificationBadge';
42
42
  export type { TNotificationBadgeProps } from './NotificationBadge';
43
43
  export { ENotificationBadgeSize } from './NotificationBadge';
44
+ export { Chip, EChipSize, EChipVariant } from './Chip';
@@ -1,6 +1,6 @@
1
1
  import { Button } from "./Button/Button.js";
2
2
  import { EButtonForm, EButtonSize, EButtonVariantDefault, EButtonVariantOutline, EButtonVariantRound } from "./Button/constants.js";
3
- import { I } from "../Input-C8BYj-Cv.js";
3
+ import { I } from "../Input-DdKAiGfJ.js";
4
4
  import { EInputSize, EInputVariant } from "./Input/constants.js";
5
5
  import { TextArea } from "./TextArea/TextArea.js";
6
6
  import { InputPassword } from "./InputPassword/InputPassword.js";
@@ -41,10 +41,13 @@ import { Link } from "./AnchorLink/Link.js";
41
41
  import { ELinkSize, ELinkVariant } from "./AnchorLink/constants.js";
42
42
  import { NotificationBadge } from "./NotificationBadge/NotificationBadge.js";
43
43
  import { ENotificationBadgeSize } from "./NotificationBadge/constants.js";
44
+ import { Chip } from "./Chip/Chip.js";
45
+ import { EChipSize, EChipVariant } from "./Chip/constants.js";
44
46
  export {
45
47
  Accordion,
46
48
  AccordionItem,
47
49
  Button,
50
+ Chip,
48
51
  DatePicker,
49
52
  Drawer,
50
53
  EAccordionSize,
@@ -53,6 +56,8 @@ export {
53
56
  EButtonVariantDefault,
54
57
  EButtonVariantOutline,
55
58
  EButtonVariantRound,
59
+ EChipSize,
60
+ EChipVariant,
56
61
  EDrawerPosition,
57
62
  EInputSize,
58
63
  EInputVariant,
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Button } from "./components/Button/Button.js";
2
2
  import { EButtonForm, EButtonSize, EButtonVariantDefault, EButtonVariantOutline, EButtonVariantRound } from "./components/Button/constants.js";
3
- import { I } from "./Input-C8BYj-Cv.js";
3
+ import { I } from "./Input-DdKAiGfJ.js";
4
4
  import { EInputSize, EInputVariant } from "./components/Input/constants.js";
5
5
  import { TextArea } from "./components/TextArea/TextArea.js";
6
6
  import { InputPassword } from "./components/InputPassword/InputPassword.js";
@@ -41,6 +41,8 @@ import { Link } from "./components/AnchorLink/Link.js";
41
41
  import { ELinkSize, ELinkVariant } from "./components/AnchorLink/constants.js";
42
42
  import { NotificationBadge } from "./components/NotificationBadge/NotificationBadge.js";
43
43
  import { ENotificationBadgeSize } from "./components/NotificationBadge/constants.js";
44
+ import { Chip } from "./components/Chip/Chip.js";
45
+ import { EChipSize, EChipVariant } from "./components/Chip/constants.js";
44
46
  import { useMediaQuery } from "./hooks/useMediaQuery/useMediaQuery.js";
45
47
  import { EMediaQuery, EMinMediaQuery } from "./hooks/useMediaQuery/constants.js";
46
48
  import { useLockBodyScroll } from "./hooks/useLockBodyScroll/useLockBodyScroll.js";
@@ -54,6 +56,7 @@ import './assets/index.css';export {
54
56
  Accordion,
55
57
  AccordionItem,
56
58
  Button,
59
+ Chip,
57
60
  DatePicker,
58
61
  Drawer,
59
62
  EAccordionSize,
@@ -62,6 +65,8 @@ import './assets/index.css';export {
62
65
  EButtonVariantDefault,
63
66
  EButtonVariantOutline,
64
67
  EButtonVariantRound,
68
+ EChipSize,
69
+ EChipVariant,
65
70
  EDrawerPosition,
66
71
  EInputSize,
67
72
  EInputVariant,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.19.3",
4
+ "version": "1.20.0",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {