mimir-ui-kit 1.35.1 → 1.35.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- ._button_1kw2t_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(--mimir-font-weight-text-semibold);font-size:var(--button-font-size);font-family:var(--mimir-font-inter);line-height:var(--mimir-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_1kw2t_2:hover{color:var(--button-color-hover);background:var(--button-bg-color-hover);border-color:var(--border-color-hover)}._button_1kw2t_2:active{color:var(--button-color-active);background:var(--button-bg-color-active);border-color:var(--border-color-active)}._button_1kw2t_2:focus-visible{box-shadow:0 0 2px var(--sapphire-normal)}._button_1kw2t_2._clear_1kw2t_42:focus{box-shadow:none}._button_1kw2t_2 svg{color:currentcolor;fill:currentcolor}._button_1kw2t_2 svg path{color:currentcolor;fill:currentcolor}._default-button_1kw2t_54._primary-sapphire_1kw2t_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_1kw2t_54._primary-citrine_1kw2t_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_1kw2t_54._secondary-asphalt_1kw2t_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_1kw2t_54._secondary-gray_1kw2t_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_1kw2t_54._secondary-white_1kw2t_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_1kw2t_54._secondary-red_1kw2t_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_1kw2t_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(--mimir-space-s);--button-space-m: var(--mimir-space-xs);--button-space-s: var(--mimir-space-xs);--button-space-xs: var(--mimir-space-2xs);border-radius:var(--button-border-radius)}._round-button_1kw2t_109._black_1kw2t_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_1kw2t_109._gray_1kw2t_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_1kw2t_109._white_1kw2t_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_1kw2t_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_1kw2t_148._outline-asphalt_1kw2t_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_1kw2t_148._outline-gray_1kw2t_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_1kw2t_148._outline-white_1kw2t_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_1kw2t_148._outline-red_1kw2t_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)}._borderless-button_1kw2t_191{--button-bg-color: transparent;--button-bg-color-hover: transparent;--button-bg-color-active: transparent;--button-bg-color-focus: transparent}._borderless-button_1kw2t_191._borderless-asphalt_1kw2t_197{--button-color: var(--black-80);--button-color-hover: var(--counter-text);--button-color-active: var(--black-100)}._borderless-button_1kw2t_191._borderless-gray_1kw2t_202{--button-color: var(--black-5);--button-color-hover: var(--counter-text);--button-color-active: var(--black-80)}._borderless-button_1kw2t_191._borderless-white_1kw2t_207{--button-color: var(--white);--button-color-hover: var(--counter-text);--button-color-active: var(--black-80)}._borderless-button_1kw2t_191._borderless-red_1kw2t_212{--button-color: var(--error-normal);--button-color-hover: var(--red-hover);--button-color-active: var(--red-active)}._default-button_1kw2t_54,._outline-button_1kw2t_148,._borderless-button_1kw2t_191{--button-space-xxl: var(--mimir-control-space-xxl);--button-space-xl: var(--mimir-control-space-l);--button-space-l: var(--mimir-space-m);--button-space-m: var(--mimir-space-m);--button-space-s: var(--mimir-space-xs);--button-space-xs: var(--mimir-space-2xs);--button-border-radius-xxl: var(--mimir-control-radius-s);--button-border-radius-xl: var(--mimir-control-radius-s);--button-border-radius-l: var(--mimir-control-radius);--button-border-radius-m: var(--mimir-control-radius);--button-border-radius-s: var(--mimir-control-radius-xs);--button-border-radius-xs: var(--mimir-control-radius-xs);border-radius:var(--button-border-radius)}._xs_1kw2t_236{--button-height: var(--button-height-xs);--button-font-size: var(--mimir-control-text-size-xs);--button-space: var(--button-space-xs);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s)}._m-s_1kw2t_244{--button-height: var(--button-height-ms);--button-border-radius: var(--button-border-radius-s);font-weight:var(--mimir-font-weight-text-regular);--button-gap: var(--mimir-space-2xs);--button-font-size: var(--mimir-size-text-s)}._s_1kw2t_72{--button-height: var(--button-height-s);--button-font-size: var(--mimir-control-text-size-s);--button-space: var(--button-space-s);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s)}._m_1kw2t_244{--button-height: var(--button-height-m);--button-font-size: var(--mimir-size-text-m);--button-space: var(--button-space-m);--button-gap: 8px;--button-border-radius: var(--button-border-radius-m)}._l_1kw2t_268{--button-height: var(--button-height-l);--button-font-size: var(--mimir-size-text-m);--button-space: var(--button-space-l);--button-gap: 8px;--button-border-radius: var(--button-border-radius-l)}._xl_1kw2t_276{--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(--mimir-size-text-m);font-weight:var(--mimir-font-weight-text-medium)}._xxl_1kw2t_285{--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(--mimir-font-weight-text-medium);--button-font-size: var(--mimir-size-text-m)}._full_1kw2t_294{display:flex;justify-content:center;width:100%}._disabled_1kw2t_300{--button-cursor: not-allowed;color:var(--light-text);background-color:var(--disabled)}._disabled_1kw2t_300:hover,._disabled_1kw2t_300:active,._disabled_1kw2t_300:focus{color:var(--light-text);background-color:var(--disabled);box-shadow:none}._disabled_1kw2t_300._outline-button_1kw2t_148{color:var(--disabled);background-color:transparent;border:1px solid var(--disabled)}._disabled_1kw2t_300._borderless-button_1kw2t_191{color:var(--disabled-color);background-color:transparent}._icon-button_1kw2t_320{justify-content:center;min-width:var(--button-height);padding:0}
1
+ ._button_1qnsv_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(--mimir-font-weight-text-semibold);font-size:var(--button-font-size);font-family:var(--mimir-font-inter);line-height:var(--mimir-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_1qnsv_2:hover{color:var(--button-color-hover);background:var(--button-bg-color-hover);border-color:var(--border-color-hover)}._button_1qnsv_2:active{color:var(--button-color-active);background:var(--button-bg-color-active);border-color:var(--border-color-active)}._button_1qnsv_2:focus-visible{box-shadow:0 0 2px var(--sapphire-normal)}._button_1qnsv_2._clear_1qnsv_42:focus{box-shadow:none}._button_1qnsv_2 svg{color:currentcolor;fill:currentcolor}._button_1qnsv_2 svg path{color:currentcolor;fill:currentcolor}._button_1qnsv_2 ._count_1qnsv_53{color:var(--button-count-color);font-weight:var(--mimir-font-weight-text-bold);font-size:var(--button-count-font-size);border:none;outline:none}._default-button_1qnsv_61{--button-count-color: var(--counter-text)}._default-button_1qnsv_61._primary-sapphire_1qnsv_64{--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_1qnsv_61._primary-citrine_1qnsv_73{--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;--button-count-color: var(--dark-text)}._default-button_1qnsv_61._secondary-asphalt_1qnsv_83{--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_1qnsv_61._secondary-gray_1qnsv_92{--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_1qnsv_61._secondary-white_1qnsv_101{--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_1qnsv_61._secondary-red_1qnsv_110{--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_1qnsv_120{--button-border-radius-l: 24px;--button-border-radius-m: 20px;--button-border-radius-s: 16px;--button-border-radius-xs: 12px;--button-space-l: var(--mimir-space-s);--button-space-m: var(--mimir-space-xs);--button-space-s: var(--mimir-space-xs);--button-space-xs: var(--mimir-space-2xs);--button-count-color: var(--counter-text);border-radius:var(--button-border-radius)}._round-button_1qnsv_120._black_1qnsv_132{--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_1qnsv_120._gray_1qnsv_141{--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_1qnsv_120._white_1qnsv_150{--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_1qnsv_160{--button-bg-color: transparent;--button-bg-color-hover: transparent;--button-bg-color-active: transparent;--button-bg-color-focus: transparent;--button-count-color: var(--counter-text);border:1px solid var(--border-color)}._outline-button_1qnsv_160._outline-asphalt_1qnsv_168{--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_1qnsv_160._outline-gray_1qnsv_176{--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_1qnsv_160._outline-white_1qnsv_185{--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_1qnsv_160._outline-red_1qnsv_194{--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)}._borderless-button_1qnsv_204{--button-bg-color: transparent;--button-bg-color-hover: transparent;--button-bg-color-active: transparent;--button-bg-color-focus: transparent;--button-count-color: var(--counter-text)}._borderless-button_1qnsv_204._borderless-asphalt_1qnsv_211{--button-color: var(--black-80);--button-color-hover: var(--counter-text);--button-color-active: var(--black-100)}._borderless-button_1qnsv_204._borderless-gray_1qnsv_216{--button-color: var(--black-5);--button-color-hover: var(--counter-text);--button-color-active: var(--black-80)}._borderless-button_1qnsv_204._borderless-white_1qnsv_221{--button-color: var(--white);--button-color-hover: var(--counter-text);--button-color-active: var(--black-80)}._borderless-button_1qnsv_204._borderless-red_1qnsv_226{--button-color: var(--error-normal);--button-color-hover: var(--red-hover);--button-color-active: var(--red-active)}._default-button_1qnsv_61,._outline-button_1qnsv_160,._borderless-button_1qnsv_204{--button-space-xxl: var(--mimir-control-space-xxl);--button-space-xl: var(--mimir-control-space-l);--button-space-l: var(--mimir-space-m);--button-space-m: var(--mimir-space-m);--button-space-s: var(--mimir-space-xs);--button-space-xs: var(--mimir-space-2xs);--button-border-radius-xxl: var(--mimir-control-radius-s);--button-border-radius-xl: var(--mimir-control-radius-s);--button-border-radius-l: var(--mimir-control-radius);--button-border-radius-m: var(--mimir-control-radius);--button-border-radius-s: var(--mimir-control-radius-xs);--button-border-radius-xs: var(--mimir-control-radius-xs);border-radius:var(--button-border-radius)}._xs_1qnsv_250{--button-height: var(--button-height-xs);--button-font-size: var(--mimir-control-text-size-xs);--button-space: var(--button-space-xs);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s);--button-count-font-size: var(--mimir-size-text-xs)}._m-s_1qnsv_259{--button-height: var(--button-height-ms);--button-border-radius: var(--button-border-radius-s);--button-gap: var(--mimir-space-2xs);--button-font-size: var(--mimir-size-text-s)}._s_1qnsv_83{--button-height: var(--button-height-s);--button-font-size: var(--mimir-control-text-size-s);--button-space: var(--button-space-s);--button-gap: 4px;--button-border-radius: var(--button-border-radius-s);--button-count-font-size: var(--mimir-size-text-s)}._m_1qnsv_259{--button-height: var(--button-height-m);--button-font-size: var(--mimir-size-text-m);--button-space: var(--button-space-m);--button-gap: 8px;--button-border-radius: var(--button-border-radius-m)}._l_1qnsv_283{--button-height: var(--button-height-l);--button-font-size: var(--mimir-size-text-m);--button-space: var(--button-space-l);--button-gap: 8px;--button-border-radius: var(--button-border-radius-l)}._xl_1qnsv_291{--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(--mimir-size-text-m)}._xxl_1qnsv_299{--button-height: var(--button-height-xxl);--button-space: var(--button-space-xxl);--button-border-radius: var(--button-border-radius-xxl);--button-gap: 8px;--button-font-size: var(--mimir-size-text-m)}._xxl_1qnsv_299,._xl_1qnsv_291,._l_1qnsv_283,._m_1qnsv_259{--button-count-font-size: var(--mimir-size-text-m)}._full_1qnsv_314{display:flex;justify-content:center;width:100%}._disabled_1qnsv_320{--button-cursor: not-allowed;--button-count-color: var(--light-text);color:var(--light-text);background-color:var(--disabled)}._disabled_1qnsv_320:hover,._disabled_1qnsv_320:active,._disabled_1qnsv_320:focus{color:var(--light-text);background-color:var(--disabled);box-shadow:none}._disabled_1qnsv_320._outline-button_1qnsv_160{color:var(--disabled);background-color:transparent;border:1px solid var(--disabled)}._disabled_1qnsv_320._borderless-button_1qnsv_204{color:var(--disabled-color);background-color:transparent}._icon-button_1qnsv_341{justify-content:center;min-width:var(--button-height);padding:0}
@@ -19,6 +19,10 @@ export type TProps = TCommonButtonProps & ComponentProps<'button'> & {
19
19
  * Флаг, отключащий абсолютно все модификации кнопки (variant, size).
20
20
  */
21
21
  clear?: boolean;
22
+ /**
23
+ * Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
24
+ */
25
+ count?: string | number;
22
26
  /**
23
27
  * Идентификатор формы, к которой привязана кнопка.
24
28
  */
@@ -49,6 +53,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
49
53
  * Флаг, отключащий абсолютно все модификации кнопки (variant, size).
50
54
  */
51
55
  clear?: boolean;
56
+ /**
57
+ * Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
58
+ */
59
+ count?: string | number;
52
60
  /**
53
61
  * Идентификатор формы, к которой привязана кнопка.
54
62
  */
@@ -75,6 +83,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
75
83
  * Флаг, отключащий абсолютно все модификации кнопки (variant, size).
76
84
  */
77
85
  clear?: boolean;
86
+ /**
87
+ * Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
88
+ */
89
+ count?: string | number;
78
90
  /**
79
91
  * Идентификатор формы, к которой привязана кнопка.
80
92
  */
@@ -101,6 +113,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
101
113
  * Флаг, отключащий абсолютно все модификации кнопки (variant, size).
102
114
  */
103
115
  clear?: boolean;
116
+ /**
117
+ * Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
118
+ */
119
+ count?: string | number;
104
120
  /**
105
121
  * Идентификатор формы, к которой привязана кнопка.
106
122
  */
@@ -127,6 +143,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
127
143
  * Флаг, отключащий абсолютно все модификации кнопки (variant, size).
128
144
  */
129
145
  clear?: boolean;
146
+ /**
147
+ * Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
148
+ */
149
+ count?: string | number;
130
150
  /**
131
151
  * Идентификатор формы, к которой привязана кнопка.
132
152
  */
@@ -153,6 +173,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
153
173
  * Флаг, отключащий абсолютно все модификации кнопки (variant, size).
154
174
  */
155
175
  clear?: boolean;
176
+ /**
177
+ * Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
178
+ */
179
+ count?: string | number;
156
180
  /**
157
181
  * Идентификатор формы, к которой привязана кнопка.
158
182
  */
@@ -179,6 +203,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
179
203
  * Флаг, отключащий абсолютно все модификации кнопки (variant, size).
180
204
  */
181
205
  clear?: boolean;
206
+ /**
207
+ * Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
208
+ */
209
+ count?: string | number;
182
210
  /**
183
211
  * Идентификатор формы, к которой привязана кнопка.
184
212
  */
@@ -205,6 +233,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
205
233
  * Флаг, отключащий абсолютно все модификации кнопки (variant, size).
206
234
  */
207
235
  clear?: boolean;
236
+ /**
237
+ * Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
238
+ */
239
+ count?: string | number;
208
240
  /**
209
241
  * Идентификатор формы, к которой привязана кнопка.
210
242
  */
@@ -231,6 +263,10 @@ export declare const Button: import('react').ForwardRefExoticComponent<(Omit<imp
231
263
  * Флаг, отключащий абсолютно все модификации кнопки (variant, size).
232
264
  */
233
265
  clear?: boolean;
266
+ /**
267
+ * Информация о кол-ве тех или иных элементов списка или текста, к которым привязана кнопка.
268
+ */
269
+ count?: string | number;
234
270
  /**
235
271
  * Идентификатор формы, к которой привязана кнопка.
236
272
  */
@@ -1,91 +1,99 @@
1
- import { jsxs as f, jsx as x } from "react/jsx-runtime";
2
- import { c as g } from "../../index-DIxK0V-G.js";
1
+ import { jsxs as N, jsx as l } from "react/jsx-runtime";
2
+ import { c } from "../../index-DIxK0V-G.js";
3
3
  import { forwardRef as B } from "react";
4
- import { EButtonVariantDefault as N, EButtonForm as I } from "./constants.js";
4
+ import { EButtonVariantDefault as I, EButtonForm as k } from "./constants.js";
5
5
  import { Icon as j } from "../../icons/Icon.js";
6
- import '../../assets/Button.css';const D = "_button_1kw2t_2", E = "_clear_1kw2t_42", P = "_black_1kw2t_120", v = "_gray_1kw2t_129", z = "_white_1kw2t_138", C = "_xs_1kw2t_236", F = "_s_1kw2t_72", R = "_m_1kw2t_244", S = "_l_1kw2t_268", V = "_xl_1kw2t_276", q = "_xxl_1kw2t_285", A = "_full_1kw2t_294", G = "_disabled_1kw2t_300", t = {
7
- button: D,
8
- clear: E,
9
- "default-button": "_default-button_1kw2t_54",
10
- "primary-sapphire": "_primary-sapphire_1kw2t_54",
11
- "primary-citrine": "_primary-citrine_1kw2t_63",
12
- "secondary-asphalt": "_secondary-asphalt_1kw2t_72",
13
- "secondary-gray": "_secondary-gray_1kw2t_81",
14
- "secondary-white": "_secondary-white_1kw2t_90",
15
- "secondary-red": "_secondary-red_1kw2t_99",
16
- "round-button": "_round-button_1kw2t_109",
6
+ import '../../assets/Button.css';const C = "_button_1qnsv_2", D = "_clear_1qnsv_42", E = "_count_1qnsv_53", P = "_black_1qnsv_132", z = "_gray_1qnsv_141", F = "_white_1qnsv_150", R = "_xs_1qnsv_250", S = "_s_1qnsv_83", V = "_m_1qnsv_259", A = "_l_1qnsv_283", G = "_xl_1qnsv_291", H = "_xxl_1qnsv_299", J = "_full_1qnsv_314", K = "_disabled_1qnsv_320", s = {
7
+ button: C,
8
+ clear: D,
9
+ count: E,
10
+ "default-button": "_default-button_1qnsv_61",
11
+ "primary-sapphire": "_primary-sapphire_1qnsv_64",
12
+ "primary-citrine": "_primary-citrine_1qnsv_73",
13
+ "secondary-asphalt": "_secondary-asphalt_1qnsv_83",
14
+ "secondary-gray": "_secondary-gray_1qnsv_92",
15
+ "secondary-white": "_secondary-white_1qnsv_101",
16
+ "secondary-red": "_secondary-red_1qnsv_110",
17
+ "round-button": "_round-button_1qnsv_120",
17
18
  black: P,
18
- gray: v,
19
- white: z,
20
- "outline-button": "_outline-button_1kw2t_148",
21
- "outline-asphalt": "_outline-asphalt_1kw2t_155",
22
- "outline-gray": "_outline-gray_1kw2t_163",
23
- "outline-white": "_outline-white_1kw2t_172",
24
- "outline-red": "_outline-red_1kw2t_181",
25
- "borderless-button": "_borderless-button_1kw2t_191",
26
- "borderless-asphalt": "_borderless-asphalt_1kw2t_197",
27
- "borderless-gray": "_borderless-gray_1kw2t_202",
28
- "borderless-white": "_borderless-white_1kw2t_207",
29
- "borderless-red": "_borderless-red_1kw2t_212",
30
- xs: C,
31
- "m-s": "_m-s_1kw2t_244",
32
- s: F,
33
- m: R,
34
- l: S,
35
- xl: V,
36
- xxl: q,
37
- full: A,
38
- disabled: G,
39
- "icon-button": "_icon-button_1kw2t_320"
40
- }, H = B(
41
- (e, s) => {
19
+ gray: z,
20
+ white: F,
21
+ "outline-button": "_outline-button_1qnsv_160",
22
+ "outline-asphalt": "_outline-asphalt_1qnsv_168",
23
+ "outline-gray": "_outline-gray_1qnsv_176",
24
+ "outline-white": "_outline-white_1qnsv_185",
25
+ "outline-red": "_outline-red_1qnsv_194",
26
+ "borderless-button": "_borderless-button_1qnsv_204",
27
+ "borderless-asphalt": "_borderless-asphalt_1qnsv_211",
28
+ "borderless-gray": "_borderless-gray_1qnsv_216",
29
+ "borderless-white": "_borderless-white_1qnsv_221",
30
+ "borderless-red": "_borderless-red_1qnsv_226",
31
+ xs: R,
32
+ "m-s": "_m-s_1qnsv_259",
33
+ s: S,
34
+ m: V,
35
+ l: A,
36
+ xl: G,
37
+ xxl: H,
38
+ full: J,
39
+ disabled: K,
40
+ "icon-button": "_icon-button_1qnsv_341"
41
+ }, L = B(
42
+ (i, u) => {
42
43
  const {
43
- size: n = "m",
44
- variant: a = N.PrimarySapphire,
45
- form: l = I.DefaultButton,
46
- full: i,
47
- clear: o,
44
+ size: o = "m",
45
+ variant: d = I.PrimarySapphire,
46
+ form: _ = k.DefaultButton,
47
+ full: b,
48
+ clear: n,
48
49
  isIconButton: r = !1,
49
- iconName: c,
50
- children: u,
51
- className: d,
52
- formId: w,
53
- type: b = "button",
54
- rightIcon: k,
55
- leftIcon: m,
56
- disabled: _,
57
- ...p
58
- } = e, y = {
59
- [t.full]: i && !o,
60
- [t.disabled]: _ && !o,
61
- [t.clear]: o,
62
- [t[a ?? ""]]: !_ || o,
63
- [t["icon-button"]]: r
64
- }, h = g(
65
- d,
66
- t.button,
67
- y,
68
- o ? [] : [t[l ?? ""], t[n]]
50
+ iconName: v,
51
+ children: m,
52
+ className: q,
53
+ formId: p,
54
+ type: y = "button",
55
+ rightIcon: h,
56
+ count: e,
57
+ leftIcon: f,
58
+ disabled: t,
59
+ ...x
60
+ } = i, a = {
61
+ [s.full]: b && !n,
62
+ [s.disabled]: t && !n,
63
+ [s.clear]: n,
64
+ [s[d ?? ""]]: !t || n,
65
+ [s["icon-button"]]: r
66
+ }, g = c(
67
+ q,
68
+ s.button,
69
+ a,
70
+ n ? [] : [s[_ ?? ""], s[o]]
71
+ ), w = c(
72
+ s.count,
73
+ a,
74
+ s[o],
75
+ s[_ ?? ""]
69
76
  );
70
- return /* @__PURE__ */ f(
77
+ return /* @__PURE__ */ N(
71
78
  "button",
72
79
  {
73
- type: b,
74
- form: w,
75
- ...p,
76
- disabled: _,
77
- ref: s,
78
- className: h,
80
+ type: y,
81
+ form: p,
82
+ ...x,
83
+ disabled: t,
84
+ ref: u,
85
+ className: g,
79
86
  children: [
80
- m,
81
- r ? /* @__PURE__ */ x(j, { iconName: c }) : u,
82
- k
87
+ f,
88
+ r ? /* @__PURE__ */ l(j, { iconName: v }) : m,
89
+ h,
90
+ !!e && /* @__PURE__ */ l("span", { className: w, children: e })
83
91
  ]
84
92
  }
85
93
  );
86
94
  }
87
95
  );
88
- H.displayName = "Button";
96
+ L.displayName = "Button";
89
97
  export {
90
- H as Button
98
+ L as Button
91
99
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.35.1",
4
+ "version": "1.35.2",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {