mimir-ui-kit 1.17.0 → 1.17.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- ._link_12t08_2{--link-color: var(--dark-text);display:inline-flex;align-items:center;color:var(--link-color);font-size:var(--link-font-size);font-family:var(--font-inter);line-height:var(--link-line-height);-moz-column-gap:var(--link-gap);column-gap:var(--link-gap);transition:all .15s ease}._link_12t08_2:hover{--link-color: var(--sapphire-hover)}._link_12t08_2:active{--link-color: var(--sapphire-active)}._link_12t08_2._sample_12t08_19:hover{-webkit-text-decoration:underline var(--link-color);text-decoration:underline var(--link-color);text-underline-offset:4px}._link_12t08_2._anchor_12t08_23:hover{-webkit-text-decoration:underline dashed var(--link-color);text-decoration:underline dashed var(--link-color);text-underline-offset:4px}._link_12t08_2._disabled_12t08_27{--link-color: var(--disabled);-webkit-text-decoration:none;text-decoration:none}._link_12t08_2._disabled_12t08_27:hover,._link_12t08_2._disabled_12t08_27:active{-webkit-text-decoration:none;text-decoration:none;--link-color: var(--disabled)}._link_12t08_2 ._icon_12t08_35{color:currentcolor;fill:currentcolor}._link_12t08_2 ._icon_12t08_35 path{color:currentcolor;fill:currentcolor}._xs_12t08_44{--link-font-size: var(--size-text-s);--link-line-height: var(--size-text-s);--link-gap: var(--space-2xs)}._s_12t08_19{--link-font-size: var(--size-text-m);--link-line-height: var(--size-text-s);--link-gap: var(--space-2xs)}._m_12t08_56{--link-font-size: var(--size-text-l);--link-line-height: var(--size-text-s);--link-gap: var(--space-2xs)}._l_12t08_2{--link-font-size: var(--size-text-l2);--link-line-height: var(--size-text-s);--link-gap: var(--space-xs)}
1
+ ._link_miwq0_2{--link-color: var(--dark-text);display:inline-flex;align-items:center;color:var(--link-color);font-size:var(--link-font-size);font-family:var(--font-inter);line-height:var(--link-line-height);-moz-column-gap:var(--link-gap);column-gap:var(--link-gap);transition:all .15s ease}._link_miwq0_2:hover{--link-color: var(--sapphire-hover)}._link_miwq0_2:active{--link-color: var(--sapphire-active)}._link_miwq0_2._sample_miwq0_19:hover{-webkit-text-decoration:underline var(--link-color);text-decoration:underline var(--link-color);text-underline-offset:4px}._link_miwq0_2._anchor_miwq0_23{-webkit-text-decoration:underline dashed var(--link-color);text-decoration:underline dashed var(--link-color);text-underline-offset:4px}._link_miwq0_2._disabled_miwq0_27{--link-color: var(--disabled);-webkit-text-decoration:none;text-decoration:none}._link_miwq0_2._disabled_miwq0_27:hover,._link_miwq0_2._disabled_miwq0_27:active{-webkit-text-decoration:none;text-decoration:none;--link-color: var(--disabled)}._link_miwq0_2 ._icon_miwq0_35{color:currentcolor;fill:currentcolor}._link_miwq0_2 ._icon_miwq0_35 path{color:currentcolor;fill:currentcolor}._xs_miwq0_44{--link-font-size: var(--size-text-s);--link-line-height: var(--size-text-s);--link-gap: var(--space-2xs)}._s_miwq0_19{--link-font-size: var(--size-text-m);--link-line-height: var(--size-text-s);--link-gap: var(--space-2xs)}._m_miwq0_56{--link-font-size: var(--size-text-l);--link-line-height: var(--size-text-s);--link-gap: var(--space-2xs)}._l_miwq0_2{--link-font-size: var(--size-text-l2);--link-line-height: var(--size-text-s);--link-gap: var(--space-xs)}
@@ -158,10 +158,11 @@ const Accordion = forwardRef(
158
158
  const buttonIcon = size === EAccordionSize.S ? EAccordionButtonIconSize.S : EAccordionButtonIconSize.M;
159
159
  const linkIcon = size === EAccordionSize.S ? EAccordionLinkIconSize.S : EAccordionLinkIconSize.M;
160
160
  switch (buttonType) {
161
- case "link": {
161
+ case EAccordionButtonType.LINK: {
162
162
  return /* @__PURE__ */ jsx(
163
163
  Link,
164
164
  {
165
+ variant: "anchor",
165
166
  size: isMobile ? "s" : "l",
166
167
  rightIcon: {
167
168
  iconName: linkIcon,
@@ -173,7 +174,7 @@ const Accordion = forwardRef(
173
174
  }
174
175
  );
175
176
  }
176
- case "button": {
177
+ case EAccordionButtonType.BUTTON: {
177
178
  return /* @__PURE__ */ jsxs(Fragment$1, { children: [
178
179
  /* @__PURE__ */ jsx(
179
180
  "span",
@@ -203,8 +204,8 @@ const Accordion = forwardRef(
203
204
  /* @__PURE__ */ jsx(
204
205
  Ce,
205
206
  {
206
- as: isLink ? Fragment : "button",
207
- className: cls.header,
207
+ as: isLink ? Fragment : EAccordionButtonType.BUTTON,
208
+ className: isLink ? "" : cls.header,
208
209
  children: renderButton(open2)
209
210
  }
210
211
  ),
@@ -3,15 +3,15 @@ import { c as classNames } from "../../index-CweZ_OcN.js";
3
3
  import { forwardRef } from "react";
4
4
  import { ELinkSize, ELinkVariant } from "./constants.js";
5
5
  import { Icon } from "../../icons/Icon.js";
6
- import '../../assets/AnchorLink.css';const link = "_link_12t08_2";
7
- const sample = "_sample_12t08_19";
8
- const anchor = "_anchor_12t08_23";
9
- const disabled = "_disabled_12t08_27";
10
- const icon = "_icon_12t08_35";
11
- const xs = "_xs_12t08_44";
12
- const s = "_s_12t08_19";
13
- const m = "_m_12t08_56";
14
- const l = "_l_12t08_2";
6
+ import '../../assets/AnchorLink.css';const link = "_link_miwq0_2";
7
+ const sample = "_sample_miwq0_19";
8
+ const anchor = "_anchor_miwq0_23";
9
+ const disabled = "_disabled_miwq0_27";
10
+ const icon = "_icon_miwq0_35";
11
+ const xs = "_xs_miwq0_44";
12
+ const s = "_s_miwq0_19";
13
+ const m = "_m_miwq0_56";
14
+ const l = "_l_miwq0_2";
15
15
  const cls = {
16
16
  link,
17
17
  sample,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.17.0",
4
+ "version": "1.17.2",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {