mimir-ui-kit 1.29.1 → 1.29.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- ._input_1fczl_2{padding-right:var(--space-3xl)}._input-wrapper_1fczl_6{flex:1}._date-wrapper_1fczl_10{position:relative;width:100%}._date-wrapper_1fczl_10 ._inputBorderControl_1fczl_14{border:transparent}._date-wrapper_1fczl_10:hover ._input-wrapper_1fczl_6{background-color:var(--input-bg-color-hover)}._date-wrapper_1fczl_10:before{position:absolute;top:0;right:60px;bottom:0;left:0;z-index:3;cursor:pointer;content:""}[data-disabled=true] ._date-wrapper_1fczl_10:before{cursor:auto}[data-disabled=true] ._date-wrapper_1fczl_10 ._input-wrapper_1fczl_6{background:var(--black-20)}[data-disabled=true] ._date-wrapper_1fczl_10 ._input-wrapper_1fczl_6 label,[data-disabled=true] ._date-wrapper_1fczl_10 ._input-wrapper_1fczl_6 input{color:var(--white)}[data-disabled=true] ._button-wrapper_1fczl_38 svg{color:var(--white);cursor:default;fill:var(--white)}._wrapper_1fczl_44{position:relative;display:flex;align-items:center;border-radius:var(--control-radius-s)}._wrapper_1fczl_44._active_1fczl_50{border-bottom:1px solid var(--citrine-100)}._button-wrapper_1fczl_38{position:absolute;top:0;right:0;z-index:2;display:flex;width:44px;height:100%;max-height:var(--button-height-xxl)}._button_1fczl_38{align-self:center;background-color:transparent;border-radius:var(--control-radius-s)}._field-overlow_1fczl_71{position:fixed;top:0;right:0;bottom:0;left:0;z-index:3}._calendar-block_1fczl_77{position:absolute;z-index:3;display:flex;flex-direction:column;width:368px;max-height:none;padding:16px;font-weight:var(--font-weight-text-regular);font-size:var(--size-text-l);font-family:var(--font-inter);font-style:normal;line-height:var(--line-height-text-2xs);text-align:center;text-overflow:ellipsis;background:var(--white);border-radius:var(--control-radius-s);box-shadow:0 0 #16172705,0 2px 4px #16172705,0 6px 6px #16172705,0 15px 9px #16172703;opacity:0;transition:height .5s ease-in;font-feature-settings:"zero";font-variant-numeric:slashed-zero}._calendar-block_1fczl_77 ._h_1fczl_100{display:flex;width:100%;color:var(--black-100)}._calendar-block_1fczl_77 ._b_1fczl_38{display:grid;grid-template-columns:repeat(7,1fr)}._calendar-block_1fczl_77 ._d_1fczl_10{display:flex;flex:1;gap:4px;align-items:center;justify-content:center;color:var(--black-100);cursor:pointer}._calendar-block_1fczl_77 ._m_1fczl_121,._calendar-block_1fczl_77 ._a_1fczl_50,._calendar-block_1fczl_77 ._prev_1fczl_123{width:auto;height:48px;overflow:hidden}._calendar-block_1fczl_77 ._m_1fczl_121{display:flex;align-items:center;justify-content:center;color:var(--disabled)}._calendar-block_1fczl_77 ._m_1fczl_121 b{font-weight:var(--font-weight-text-regular)}._calendar-block_1fczl_77 ._orange_1fczl_139{color:var(--citrine-100)}._calendar-block_1fczl_77 ._a_1fczl_50{color:var(--black-100);border-radius:var(--control-radius-s)}._calendar-block_1fczl_77 ._a_1fczl_50 b{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-weight:var(--font-weight-text-regular);cursor:pointer}._calendar-block_1fczl_77 ._a_1fczl_50 b:hover{background:var(--black-10)}._calendar-block_1fczl_77 ._a_1fczl_50 b:active{color:var(--white);background:var(--sapphire-100)}._calendar-block_1fczl_77 ._current_1fczl_164{background:var(--sapphire-10);border-radius:var(--control-radius-s)}._calendar-block_1fczl_77 ._monthGrid_1fczl_169{display:grid;grid-template-columns:repeat(3,1fr)}
1
+ ._input_fbbrm_2{padding-right:var(--space-3xl)}._input-wrapper_fbbrm_6{flex:1}._date-wrapper_fbbrm_10{position:relative;width:100%}._date-wrapper_fbbrm_10 ._inputBorderControl_fbbrm_14{border:transparent}._date-wrapper_fbbrm_10:hover ._input-wrapper_fbbrm_6{background-color:var(--input-bg-color-hover)}._date-wrapper_fbbrm_10:before{position:absolute;top:0;right:60px;bottom:0;left:0;z-index:3;cursor:pointer;content:""}[data-disabled=true] ._date-wrapper_fbbrm_10:before{cursor:auto}[data-disabled=true] ._date-wrapper_fbbrm_10 ._input-wrapper_fbbrm_6{background:var(--black-20)}[data-disabled=true] ._date-wrapper_fbbrm_10 ._input-wrapper_fbbrm_6 label,[data-disabled=true] ._date-wrapper_fbbrm_10 ._input-wrapper_fbbrm_6 input{color:var(--white)}[data-disabled=true] ._button-wrapper_fbbrm_38 svg{color:var(--white);cursor:default;fill:var(--white)}._wrapper_fbbrm_44{position:relative;display:flex;align-items:center;border-radius:var(--control-radius-s)}._wrapper_fbbrm_44._active_fbbrm_50{border-bottom:1px solid var(--citrine-100)}._button-wrapper_fbbrm_38{position:absolute;top:0;right:0;z-index:2;display:flex;justify-content:center;width:44px;height:100%;max-height:var(--button-height-xxl)}._button_fbbrm_38{align-self:center;background-color:transparent;border-radius:var(--control-radius-s)}._field-overlow_fbbrm_72{position:fixed;top:0;right:0;bottom:0;left:0;z-index:3}._calendar-block_fbbrm_78{position:absolute;z-index:3;display:flex;flex-direction:column;width:368px;max-height:none;padding:16px;font-weight:var(--font-weight-text-regular);font-size:var(--size-text-l);font-family:var(--font-inter);font-style:normal;line-height:var(--line-height-text-2xs);text-align:center;text-overflow:ellipsis;background:var(--white);border-radius:var(--control-radius-s);box-shadow:0 0 #16172705,0 2px 4px #16172705,0 6px 6px #16172705,0 15px 9px #16172703;opacity:0;transition:height .5s ease-in;font-feature-settings:"zero";font-variant-numeric:slashed-zero}._calendar-block_fbbrm_78 ._h_fbbrm_101{display:flex;width:100%;color:var(--black-100)}._calendar-block_fbbrm_78 ._b_fbbrm_38{display:grid;grid-template-columns:repeat(7,1fr)}._calendar-block_fbbrm_78 ._d_fbbrm_10{display:flex;flex:1;gap:4px;align-items:center;justify-content:center;color:var(--black-100);cursor:pointer}._calendar-block_fbbrm_78 ._m_fbbrm_122,._calendar-block_fbbrm_78 ._a_fbbrm_50,._calendar-block_fbbrm_78 ._prev_fbbrm_124{width:auto;height:48px;overflow:hidden}._calendar-block_fbbrm_78 ._m_fbbrm_122{display:flex;align-items:center;justify-content:center;color:var(--disabled)}._calendar-block_fbbrm_78 ._m_fbbrm_122 b{font-weight:var(--font-weight-text-regular)}._calendar-block_fbbrm_78 ._orange_fbbrm_140{color:var(--citrine-100)}._calendar-block_fbbrm_78 ._a_fbbrm_50{color:var(--black-100);border-radius:var(--control-radius-s)}._calendar-block_fbbrm_78 ._a_fbbrm_50 b{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-weight:var(--font-weight-text-regular);cursor:pointer}._calendar-block_fbbrm_78 ._a_fbbrm_50 b:hover{background:var(--black-10)}._calendar-block_fbbrm_78 ._a_fbbrm_50 b:active{color:var(--white);background:var(--sapphire-100)}._calendar-block_fbbrm_78 ._current_fbbrm_165{background:var(--sapphire-10);border-radius:var(--control-radius-s)}._calendar-block_fbbrm_78 ._monthGrid_fbbrm_170{display:grid;grid-template-columns:repeat(3,1fr)}
@@ -3,11 +3,10 @@ import { c as classNames } from "../../index-CweZ_OcN.js";
3
3
  import { memo, forwardRef, useState, useEffect } from "react";
4
4
  import { DatePickerModal } from "./DatePickerModal.js";
5
5
  import { MonthPickerModal } from "./MonthPickerModal.js";
6
- import { c as cls } from "../../styles.module-CLBRb2go.js";
6
+ import { c as cls } from "../../styles.module-Ugsf0AOb.js";
7
7
  import { YearPickerModal } from "./YearPickerModal.js";
8
8
  import { useClickOutside } from "../../hooks/useClickOutside/useClickOutside.js";
9
9
  import { formating } from "../../utils/index.js";
10
- import { Button } from "../Button/Button.js";
11
10
  import { I as Input } from "../../Input-ChCIy5oY.js";
12
11
  import { EInputVariant } from "../Input/constants.js";
13
12
  const DatePicker = memo(
@@ -107,23 +106,16 @@ const DatePicker = memo(
107
106
  size,
108
107
  type: "text",
109
108
  variant: isError ? EInputVariant.Error : variant,
110
- value: date && !(typeof date === "string") && !isNaN(date == null ? void 0 : date.getTime()) ? formating.Date(date, "dd.mm.yy") : "",
109
+ value: date && !(typeof date === "string") && !isNaN(date == null ? void 0 : date.getTime()) ? formating.Date(date, "dd/mm/yyyy") : "",
110
+ rightAddon: {
111
+ addonType: "icon",
112
+ addonContent: isActive ? "DropdownArrowUp24px" : "DropdownArrowDown24px"
113
+ },
111
114
  ...props
112
115
  }
113
116
  )
114
117
  }
115
118
  ),
116
- /* @__PURE__ */ jsx("div", { className: cls["button-wrapper"], children: /* @__PURE__ */ jsx(
117
- Button,
118
- {
119
- isIconButton: true,
120
- clear: true,
121
- type: "button",
122
- className: cls.button,
123
- onClick: onOpen,
124
- iconName: isActive ? "DropdownArrowUp16px" : "DropdownArrowBottom16px"
125
- }
126
- ) }),
127
119
  pickerType === "days" && isActive && /* @__PURE__ */ jsx(
128
120
  DatePickerModal,
129
121
  {
@@ -1,7 +1,7 @@
1
1
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
2
  import { useRef, useState, useEffect } from "react";
3
3
  import { week } from "./constants.js";
4
- import { c as cls } from "../../styles.module-CLBRb2go.js";
4
+ import { c as cls } from "../../styles.module-Ugsf0AOb.js";
5
5
  import { Icon } from "../../icons/Icon.js";
6
6
  import { formating } from "../../utils/index.js";
7
7
  import { Button } from "../Button/Button.js";
@@ -1,7 +1,7 @@
1
1
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
2
  import { useRef, useState, useEffect } from "react";
3
3
  import { months } from "./constants.js";
4
- import { c as cls } from "../../styles.module-CLBRb2go.js";
4
+ import { c as cls } from "../../styles.module-Ugsf0AOb.js";
5
5
  import { Icon } from "../../icons/Icon.js";
6
6
  import { formating } from "../../utils/index.js";
7
7
  import { Button } from "../Button/Button.js";
@@ -1,6 +1,6 @@
1
1
  import { jsx, Fragment, jsxs } from "react/jsx-runtime";
2
2
  import { useRef, useState, useEffect } from "react";
3
- import { c as cls } from "../../styles.module-CLBRb2go.js";
3
+ import { c as cls } from "../../styles.module-Ugsf0AOb.js";
4
4
  import { formating } from "../../utils/index.js";
5
5
  import { Button } from "../Button/Button.js";
6
6
  function YearPickerModal({
@@ -0,0 +1,38 @@
1
+ import './assets/styles.css';const input = "_input_fbbrm_2";
2
+ const inputBorderControl = "_inputBorderControl_fbbrm_14";
3
+ const wrapper = "_wrapper_fbbrm_44";
4
+ const active = "_active_fbbrm_50";
5
+ const button = "_button_fbbrm_38";
6
+ const h = "_h_fbbrm_101";
7
+ const b = "_b_fbbrm_38";
8
+ const d = "_d_fbbrm_10";
9
+ const m = "_m_fbbrm_122";
10
+ const a = "_a_fbbrm_50";
11
+ const prev = "_prev_fbbrm_124";
12
+ const orange = "_orange_fbbrm_140";
13
+ const current = "_current_fbbrm_165";
14
+ const monthGrid = "_monthGrid_fbbrm_170";
15
+ const cls = {
16
+ input,
17
+ "input-wrapper": "_input-wrapper_fbbrm_6",
18
+ "date-wrapper": "_date-wrapper_fbbrm_10",
19
+ inputBorderControl,
20
+ "button-wrapper": "_button-wrapper_fbbrm_38",
21
+ wrapper,
22
+ active,
23
+ button,
24
+ "field-overlow": "_field-overlow_fbbrm_72",
25
+ "calendar-block": "_calendar-block_fbbrm_78",
26
+ h,
27
+ b,
28
+ d,
29
+ m,
30
+ a,
31
+ prev,
32
+ orange,
33
+ current,
34
+ monthGrid
35
+ };
36
+ export {
37
+ cls as c
38
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mimir-ui-kit",
3
3
  "private": false,
4
- "version": "1.29.1",
4
+ "version": "1.29.2",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
@@ -1,38 +0,0 @@
1
- import './assets/styles.css';const input = "_input_1fczl_2";
2
- const inputBorderControl = "_inputBorderControl_1fczl_14";
3
- const wrapper = "_wrapper_1fczl_44";
4
- const active = "_active_1fczl_50";
5
- const button = "_button_1fczl_38";
6
- const h = "_h_1fczl_100";
7
- const b = "_b_1fczl_38";
8
- const d = "_d_1fczl_10";
9
- const m = "_m_1fczl_121";
10
- const a = "_a_1fczl_50";
11
- const prev = "_prev_1fczl_123";
12
- const orange = "_orange_1fczl_139";
13
- const current = "_current_1fczl_164";
14
- const monthGrid = "_monthGrid_1fczl_169";
15
- const cls = {
16
- input,
17
- "input-wrapper": "_input-wrapper_1fczl_6",
18
- "date-wrapper": "_date-wrapper_1fczl_10",
19
- inputBorderControl,
20
- "button-wrapper": "_button-wrapper_1fczl_38",
21
- wrapper,
22
- active,
23
- button,
24
- "field-overlow": "_field-overlow_1fczl_71",
25
- "calendar-block": "_calendar-block_1fczl_77",
26
- h,
27
- b,
28
- d,
29
- m,
30
- a,
31
- prev,
32
- orange,
33
- current,
34
- monthGrid
35
- };
36
- export {
37
- cls as c
38
- };