mimir-ui-kit 1.34.0 → 1.34.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. package/dist/{Input-DspsU5F4.js → Input-ChCIy5oY.js} +23 -27
  2. package/dist/{ProgressBar-DWKyrXzd.js → ProgressBar-CwLwhaeM.js} +23 -23
  3. package/dist/assets/Accordion.css +1 -1
  4. package/dist/assets/AccordionItem.css +1 -1
  5. package/dist/assets/Button.css +1 -1
  6. package/dist/assets/CheckboxMimir.css +1 -1
  7. package/dist/assets/Chip.css +1 -1
  8. package/dist/assets/Drawer.css +1 -1
  9. package/dist/assets/Input.css +1 -1
  10. package/dist/assets/InputPassword.css +1 -1
  11. package/dist/assets/Link.css +1 -1
  12. package/dist/assets/ListFiles.css +1 -1
  13. package/dist/assets/ListPhotos.css +1 -1
  14. package/dist/assets/MergedButton.css +1 -1
  15. package/dist/assets/NotificationBadge.css +1 -1
  16. package/dist/assets/OtpInput.css +1 -1
  17. package/dist/assets/Pagination.css +1 -1
  18. package/dist/assets/ProgressBar2.css +1 -1
  19. package/dist/assets/RadioGroup.css +1 -1
  20. package/dist/assets/SelectSearch.css +1 -1
  21. package/dist/assets/Slider.css +1 -1
  22. package/dist/assets/TabTrail.css +1 -1
  23. package/dist/assets/Tag.css +1 -1
  24. package/dist/assets/TextArea.css +1 -1
  25. package/dist/assets/Timer.css +1 -1
  26. package/dist/assets/Uploader.css +1 -1
  27. package/dist/assets/UploaderPhotos.css +1 -1
  28. package/dist/assets/Vote.css +1 -1
  29. package/dist/assets/index.css +1 -1
  30. package/dist/assets/styles.css +1 -1
  31. package/dist/components/Accordion/Accordion.js +16 -24
  32. package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
  33. package/dist/components/AnchorLink/Link.js +9 -9
  34. package/dist/components/Button/Button.js +33 -33
  35. package/dist/components/Button/types.js +1 -0
  36. package/dist/components/CheckboxMimir/CheckboxMimir.js +19 -16
  37. package/dist/components/Chip/Chip.js +12 -12
  38. package/dist/components/DatePicker/DatePicker.d.ts +18 -36
  39. package/dist/components/DatePicker/DatePicker.js +6 -46
  40. package/dist/components/DatePicker/DatePickerModal.js +60 -76
  41. package/dist/components/DatePicker/MonthPickerModal.js +6 -14
  42. package/dist/components/DatePicker/YearPickerModal.js +2 -2
  43. package/dist/components/Drawer/Drawer.d.ts +1 -1
  44. package/dist/components/Drawer/Drawer.js +20 -20
  45. package/dist/components/Input/Input.d.ts +1 -5
  46. package/dist/components/Input/Input.js +1 -1
  47. package/dist/components/Input/constants.d.ts +3 -5
  48. package/dist/components/Input/constants.js +3 -7
  49. package/dist/components/Input/index.d.ts +2 -2
  50. package/dist/components/Input/index.js +2 -3
  51. package/dist/components/Input/types.d.ts +6 -2
  52. package/dist/components/Input/types.js +1 -0
  53. package/dist/components/InputPassword/InputPassword.js +8 -8
  54. package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
  55. package/dist/components/ListFiles/ListFiles.js +7 -7
  56. package/dist/components/ListPhotos/ListPhotos.js +4 -4
  57. package/dist/components/MergedButton/MergedButton.js +6 -6
  58. package/dist/components/NotificationBadge/NotificationBadge.js +4 -4
  59. package/dist/components/NotificationBadge/types.js +1 -0
  60. package/dist/components/OtpInput/OtpInput.js +5 -5
  61. package/dist/components/Pagination/Pagination.d.ts +3 -1
  62. package/dist/components/Pagination/Pagination.js +11 -7
  63. package/dist/components/Pagination/types.js +1 -0
  64. package/dist/components/RadioGroup/RadioGroup.js +9 -9
  65. package/dist/components/SelectSearch/SelectSearch.d.ts +2 -18
  66. package/dist/components/SelectSearch/SelectSearch.js +31 -47
  67. package/dist/components/SelectSearch/types.d.ts +4 -2
  68. package/dist/components/SelectSearch/types.js +1 -0
  69. package/dist/components/Slider/Slider.d.ts +2 -3
  70. package/dist/components/Slider/Slider.js +10 -12
  71. package/dist/components/Steps/Steps.d.ts +0 -4
  72. package/dist/components/Steps/Steps.js +1 -5
  73. package/dist/components/Steps/types.js +1 -0
  74. package/dist/components/TabTrail/TabTrail.d.ts +0 -8
  75. package/dist/components/TabTrail/TabTrail.js +17 -33
  76. package/dist/components/Tag/Tag.js +6 -6
  77. package/dist/components/Tag/types.js +1 -0
  78. package/dist/components/TextArea/TextArea.js +12 -14
  79. package/dist/components/TextArea/hooks.js +0 -4
  80. package/dist/components/TextArea/types.js +1 -0
  81. package/dist/components/Timer/Timer.js +1 -1
  82. package/dist/components/Toasts/ProgressBar.js +1 -1
  83. package/dist/components/Toasts/Toast.js +1 -1
  84. package/dist/components/Toasts/ToastList.js +1 -1
  85. package/dist/components/Toasts/ToastsProvider.js +1 -1
  86. package/dist/components/Toasts/types.js +1 -0
  87. package/dist/components/UniversalUploader/UniversalUploader.js +35 -21
  88. package/dist/components/UniversalUploader/types.js +1 -0
  89. package/dist/components/Uploader/Uploader.js +3 -3
  90. package/dist/components/UploaderFiles/UploaderFiles.js +1 -1
  91. package/dist/components/UploaderPhotos/UploaderPhotos.js +1 -1
  92. package/dist/components/Vote/Vote.d.ts +0 -8
  93. package/dist/components/Vote/Vote.js +4 -6
  94. package/dist/components/Vote/types.js +1 -0
  95. package/dist/components/index.d.ts +2 -14
  96. package/dist/components/index.js +2 -31
  97. package/dist/icons/Icon.js +1 -1
  98. package/dist/icons/components/types.js +1 -0
  99. package/dist/index.js +2 -31
  100. package/dist/{label-P7Xsi5N7.js → label-BTEGh6O_.js} +2 -2
  101. package/dist/styles.module-Ugsf0AOb.js +38 -0
  102. package/package.json +1 -1
  103. package/dist/assets/Avatar.css +0 -1
  104. package/dist/assets/GosZnak.css +0 -1
  105. package/dist/assets/InputRangeSlider.css +0 -1
  106. package/dist/assets/SkeletonCircle.css +0 -1
  107. package/dist/assets/SkeletonText.css +0 -1
  108. package/dist/assets/Switcher.css +0 -1
  109. package/dist/assets/TwinSwitcher.css +0 -1
  110. package/dist/assets/variant.css +0 -1
  111. package/dist/components/Avatar/Avatar.d.ts +0 -3
  112. package/dist/components/Avatar/Avatar.js +0 -62
  113. package/dist/components/Avatar/constants.d.ts +0 -5
  114. package/dist/components/Avatar/constants.js +0 -9
  115. package/dist/components/Avatar/index.d.ts +0 -3
  116. package/dist/components/Avatar/index.js +0 -6
  117. package/dist/components/Avatar/types.d.ts +0 -10
  118. package/dist/components/DatePicker/utils.d.ts +0 -2
  119. package/dist/components/DatePicker/utils.js +0 -16
  120. package/dist/components/GosZnak/GosZnak.d.ts +0 -4
  121. package/dist/components/GosZnak/GosZnak.js +0 -76
  122. package/dist/components/GosZnak/constants.d.ts +0 -11
  123. package/dist/components/GosZnak/constants.js +0 -17
  124. package/dist/components/GosZnak/index.d.ts +0 -3
  125. package/dist/components/GosZnak/index.js +0 -7
  126. package/dist/components/GosZnak/types.d.ts +0 -26
  127. package/dist/components/InputRangeSlider/InputRangeSlider.d.ts +0 -3
  128. package/dist/components/InputRangeSlider/InputRangeSlider.js +0 -219
  129. package/dist/components/InputRangeSlider/constants.d.ts +0 -10
  130. package/dist/components/InputRangeSlider/constants.js +0 -18
  131. package/dist/components/InputRangeSlider/index.d.ts +0 -3
  132. package/dist/components/InputRangeSlider/index.js +0 -7
  133. package/dist/components/InputRangeSlider/types.d.ts +0 -33
  134. package/dist/components/Skeleton/SkeletonBrick/SkeletonBrick.d.ts +0 -12
  135. package/dist/components/Skeleton/SkeletonBrick/SkeletonBrick.js +0 -34
  136. package/dist/components/Skeleton/SkeletonCircle/SkeletonCircle.d.ts +0 -9
  137. package/dist/components/Skeleton/SkeletonCircle/SkeletonCircle.js +0 -31
  138. package/dist/components/Skeleton/SkeletonText/SkeletonText.d.ts +0 -10
  139. package/dist/components/Skeleton/SkeletonText/SkeletonText.js +0 -49
  140. package/dist/components/Skeleton/constants.d.ts +0 -5
  141. package/dist/components/Skeleton/constants.js +0 -9
  142. package/dist/components/Skeleton/index.d.ts +0 -4
  143. package/dist/components/Skeleton/index.js +0 -10
  144. package/dist/components/Switcher/Switcher.d.ts +0 -3
  145. package/dist/components/Switcher/Switcher.js +0 -118
  146. package/dist/components/Switcher/constants.d.ts +0 -4
  147. package/dist/components/Switcher/constants.js +0 -8
  148. package/dist/components/Switcher/index.d.ts +0 -3
  149. package/dist/components/Switcher/index.js +0 -6
  150. package/dist/components/Switcher/types.d.ts +0 -30
  151. package/dist/components/TwinSwitcher/TwinSwitcher.d.ts +0 -10
  152. package/dist/components/TwinSwitcher/TwinSwitcher.js +0 -65
  153. package/dist/components/TwinSwitcher/index.d.ts +0 -1
  154. package/dist/components/TwinSwitcher/index.js +0 -4
  155. package/dist/field-bS4z9Sdl.js +0 -12
  156. package/dist/styles.module-B9L4B63y.js +0 -40
  157. package/dist/variant.module-BinTBzAV.js +0 -15
@@ -1,4 +0,0 @@
1
- export declare enum ELabelPositions {
2
- LEFT = "left",
3
- RIGHT = "right"
4
- }
@@ -1,8 +0,0 @@
1
- var ELabelPositions = /* @__PURE__ */ ((ELabelPositions2) => {
2
- ELabelPositions2["LEFT"] = "left";
3
- ELabelPositions2["RIGHT"] = "right";
4
- return ELabelPositions2;
5
- })(ELabelPositions || {});
6
- export {
7
- ELabelPositions
8
- };
@@ -1,3 +0,0 @@
1
- export { Switcher } from './Switcher';
2
- export type { TProps as TSwitcherProps } from './types';
3
- export { ELabelPositions } from './constants';
@@ -1,6 +0,0 @@
1
- import { Switcher } from "./Switcher.js";
2
- import { ELabelPositions } from "./constants.js";
3
- export {
4
- ELabelPositions,
5
- Switcher
6
- };
@@ -1,30 +0,0 @@
1
- import { SwitchProps } from '@headlessui/react';
2
- import { ReactNode } from 'react';
3
- import { ELabelPositions } from './constants';
4
-
5
- export type SwitchRenderPropArg = {
6
- checked?: boolean;
7
- hover?: boolean;
8
- focus?: boolean;
9
- active?: boolean;
10
- autofocus?: boolean;
11
- changing?: boolean;
12
- disabled?: boolean;
13
- };
14
- type TLabelProps = {
15
- hasLabel: true;
16
- label: ReactNode;
17
- labelClassName?: string;
18
- labelPosition?: ELabelPositions | `${ELabelPositions}`;
19
- } | {
20
- hasLabel: false;
21
- label?: never;
22
- labelClassName?: never;
23
- labelPosition?: never;
24
- };
25
- export type TProps = SwitchProps & TLabelProps & {
26
- className?: string;
27
- switcherThumbClassName?: string;
28
- wrapperClassName?: string;
29
- };
30
- export {};
@@ -1,10 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { TSwitcherProps } from '../Switcher';
3
-
4
- type TProps = TSwitcherProps & {
5
- leftIcon: ReactNode;
6
- rightIcon: ReactNode;
7
- className?: string;
8
- };
9
- export declare const TwinSwitcher: import('react').ForwardRefExoticComponent<TProps & import('react').RefAttributes<HTMLButtonElement>>;
10
- export {};
@@ -1,65 +0,0 @@
1
- import { jsxs, jsx } from "react/jsx-runtime";
2
- import { c as classNames } from "../../index-CweZ_OcN.js";
3
- import { forwardRef } from "react";
4
- import { Switcher } from "../Switcher/Switcher.js";
5
- import '../../assets/TwinSwitcher.css';const icon = "_icon_1r3h0_30";
6
- const cls = {
7
- "twin-switcher": "_twin-switcher_1r3h0_2",
8
- "twin-switcher-checked": "_twin-switcher-checked_1r3h0_18",
9
- "twin-switcher-thumb": "_twin-switcher-thumb_1r3h0_27",
10
- "twin-switcher-checked-thumb": "_twin-switcher-checked-thumb_1r3h0_27",
11
- icon,
12
- "left-icon": "_left-icon_1r3h0_43",
13
- "right-icon": "_right-icon_1r3h0_46"
14
- };
15
- const TwinSwitcher = forwardRef(
16
- ({
17
- id,
18
- checked,
19
- leftIcon,
20
- rightIcon,
21
- disabled = false,
22
- className,
23
- ...props
24
- }, ref) => {
25
- return /* @__PURE__ */ jsxs(
26
- Switcher,
27
- {
28
- ...props,
29
- id: `twin-switcher-${id}`,
30
- ref,
31
- checked,
32
- disabled,
33
- className: classNames(cls["twin-switcher"], className, {
34
- [cls["twin-switcher-checked"]]: checked
35
- }),
36
- switcherThumbClassName: classNames(cls["twin-switcher-thumb"], {
37
- [cls["twin-switcher-checked-thumb"]]: checked
38
- }),
39
- children: [
40
- /* @__PURE__ */ jsx(
41
- "span",
42
- {
43
- className: classNames(cls.icon, cls["left-icon"], {
44
- [cls["icon-visible"]]: !checked
45
- }),
46
- children: leftIcon
47
- }
48
- ),
49
- /* @__PURE__ */ jsx(
50
- "span",
51
- {
52
- className: classNames(cls.icon, cls["right-icon"], {
53
- [cls["icon-visible"]]: checked
54
- }),
55
- children: rightIcon
56
- }
57
- )
58
- ]
59
- }
60
- );
61
- }
62
- );
63
- export {
64
- TwinSwitcher
65
- };
@@ -1 +0,0 @@
1
- export { TwinSwitcher } from './TwinSwitcher';
@@ -1,4 +0,0 @@
1
- import { TwinSwitcher } from "./TwinSwitcher.js";
2
- export {
3
- TwinSwitcher
4
- };
@@ -1,12 +0,0 @@
1
- import React__default, { useId, useMemo } from "react";
2
- import { z, U, a, l, f, W as W$1 } from "./label-P7Xsi5N7.js";
3
- import { W, H as H$1 } from "./keyboard-B256ZoM-.js";
4
- let A = "div";
5
- function L(d, l$1) {
6
- let t = `headlessui-control-${useId()}`, [s, p] = z(), [n, a$1] = U(), m = a(), { disabled: e = m || false, ...o } = d, i = useMemo(() => ({ disabled: e }), [e]);
7
- return React__default.createElement(l, { value: e }, React__default.createElement(p, { value: s }, React__default.createElement(a$1, { value: n }, React__default.createElement(f, { id: t }, H$1({ ourProps: { ref: l$1, disabled: e || void 0, "aria-disabled": e || void 0 }, theirProps: { ...o, children: React__default.createElement(W$1, null, typeof o.children == "function" ? o.children(i) : o.children) }, slot: i, defaultTag: A, name: "Field" })))));
8
- }
9
- let H = W(L);
10
- export {
11
- H
12
- };
@@ -1,40 +0,0 @@
1
- import './assets/styles.css';const input = "_input_ot5z6_2";
2
- const inputBorderControl = "_inputBorderControl_ot5z6_14";
3
- const editable = "_editable_ot5z6_27";
4
- const wrapper = "_wrapper_ot5z6_50";
5
- const active = "_active_ot5z6_56";
6
- const button = "_button_ot5z6_44";
7
- const h = "_h_ot5z6_107";
8
- const b = "_b_ot5z6_44";
9
- const d = "_d_ot5z6_10";
10
- const m = "_m_ot5z6_128";
11
- const a = "_a_ot5z6_56";
12
- const prev = "_prev_ot5z6_130";
13
- const orange = "_orange_ot5z6_146";
14
- const current = "_current_ot5z6_171";
15
- const monthGrid = "_monthGrid_ot5z6_176";
16
- const cls = {
17
- input,
18
- "input-wrapper": "_input-wrapper_ot5z6_6",
19
- "date-wrapper": "_date-wrapper_ot5z6_10",
20
- inputBorderControl,
21
- editable,
22
- "button-wrapper": "_button-wrapper_ot5z6_44",
23
- wrapper,
24
- active,
25
- button,
26
- "field-overlow": "_field-overlow_ot5z6_78",
27
- "calendar-block": "_calendar-block_ot5z6_84",
28
- h,
29
- b,
30
- d,
31
- m,
32
- a,
33
- prev,
34
- orange,
35
- current,
36
- monthGrid
37
- };
38
- export {
39
- cls as c
40
- };
@@ -1,15 +0,0 @@
1
- import './assets/variant.css';const skeleton = "_skeleton_c8ueu_53";
2
- const white = "_white_c8ueu_57";
3
- const black = "_black_c8ueu_61";
4
- const variantCls = {
5
- skeleton,
6
- white,
7
- "wave-white": "_wave-white_c8ueu_1",
8
- black,
9
- "wave-black": "_wave-black_c8ueu_1",
10
- "dark-gray": "_dark-gray_c8ueu_65",
11
- "wave-dark-gray": "_wave-dark-gray_c8ueu_1"
12
- };
13
- export {
14
- variantCls as v
15
- };