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.
- package/dist/{Input-DspsU5F4.js → Input-ChCIy5oY.js} +23 -27
- package/dist/{ProgressBar-DWKyrXzd.js → ProgressBar-CwLwhaeM.js} +23 -23
- package/dist/assets/Accordion.css +1 -1
- package/dist/assets/AccordionItem.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/CheckboxMimir.css +1 -1
- package/dist/assets/Chip.css +1 -1
- package/dist/assets/Drawer.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputPassword.css +1 -1
- package/dist/assets/Link.css +1 -1
- package/dist/assets/ListFiles.css +1 -1
- package/dist/assets/ListPhotos.css +1 -1
- package/dist/assets/MergedButton.css +1 -1
- package/dist/assets/NotificationBadge.css +1 -1
- package/dist/assets/OtpInput.css +1 -1
- package/dist/assets/Pagination.css +1 -1
- package/dist/assets/ProgressBar2.css +1 -1
- package/dist/assets/RadioGroup.css +1 -1
- package/dist/assets/SelectSearch.css +1 -1
- package/dist/assets/Slider.css +1 -1
- package/dist/assets/TabTrail.css +1 -1
- package/dist/assets/Tag.css +1 -1
- package/dist/assets/TextArea.css +1 -1
- package/dist/assets/Timer.css +1 -1
- package/dist/assets/Uploader.css +1 -1
- package/dist/assets/UploaderPhotos.css +1 -1
- package/dist/assets/Vote.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/components/Accordion/Accordion.js +16 -24
- package/dist/components/Accordion/AccordionItem/AccordionItem.js +3 -3
- package/dist/components/AnchorLink/Link.js +9 -9
- package/dist/components/Button/Button.js +33 -33
- package/dist/components/Button/types.js +1 -0
- package/dist/components/CheckboxMimir/CheckboxMimir.js +19 -16
- package/dist/components/Chip/Chip.js +12 -12
- package/dist/components/DatePicker/DatePicker.d.ts +18 -36
- package/dist/components/DatePicker/DatePicker.js +6 -46
- package/dist/components/DatePicker/DatePickerModal.js +60 -76
- package/dist/components/DatePicker/MonthPickerModal.js +6 -14
- package/dist/components/DatePicker/YearPickerModal.js +2 -2
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/Drawer/Drawer.js +20 -20
- package/dist/components/Input/Input.d.ts +1 -5
- package/dist/components/Input/Input.js +1 -1
- package/dist/components/Input/constants.d.ts +3 -5
- package/dist/components/Input/constants.js +3 -7
- package/dist/components/Input/index.d.ts +2 -2
- package/dist/components/Input/index.js +2 -3
- package/dist/components/Input/types.d.ts +6 -2
- package/dist/components/Input/types.js +1 -0
- package/dist/components/InputPassword/InputPassword.js +8 -8
- package/dist/components/InputPhoneNumber/InputPhoneNumber.js +1 -1
- package/dist/components/ListFiles/ListFiles.js +7 -7
- package/dist/components/ListPhotos/ListPhotos.js +4 -4
- package/dist/components/MergedButton/MergedButton.js +6 -6
- package/dist/components/NotificationBadge/NotificationBadge.js +4 -4
- package/dist/components/NotificationBadge/types.js +1 -0
- package/dist/components/OtpInput/OtpInput.js +5 -5
- package/dist/components/Pagination/Pagination.d.ts +3 -1
- package/dist/components/Pagination/Pagination.js +11 -7
- package/dist/components/Pagination/types.js +1 -0
- package/dist/components/RadioGroup/RadioGroup.js +9 -9
- package/dist/components/SelectSearch/SelectSearch.d.ts +2 -18
- package/dist/components/SelectSearch/SelectSearch.js +31 -47
- package/dist/components/SelectSearch/types.d.ts +4 -2
- package/dist/components/SelectSearch/types.js +1 -0
- package/dist/components/Slider/Slider.d.ts +2 -3
- package/dist/components/Slider/Slider.js +10 -12
- package/dist/components/Steps/Steps.d.ts +0 -4
- package/dist/components/Steps/Steps.js +1 -5
- package/dist/components/Steps/types.js +1 -0
- package/dist/components/TabTrail/TabTrail.d.ts +0 -8
- package/dist/components/TabTrail/TabTrail.js +17 -33
- package/dist/components/Tag/Tag.js +6 -6
- package/dist/components/Tag/types.js +1 -0
- package/dist/components/TextArea/TextArea.js +12 -14
- package/dist/components/TextArea/hooks.js +0 -4
- package/dist/components/TextArea/types.js +1 -0
- package/dist/components/Timer/Timer.js +1 -1
- package/dist/components/Toasts/ProgressBar.js +1 -1
- package/dist/components/Toasts/Toast.js +1 -1
- package/dist/components/Toasts/ToastList.js +1 -1
- package/dist/components/Toasts/ToastsProvider.js +1 -1
- package/dist/components/Toasts/types.js +1 -0
- package/dist/components/UniversalUploader/UniversalUploader.js +35 -21
- package/dist/components/UniversalUploader/types.js +1 -0
- package/dist/components/Uploader/Uploader.js +3 -3
- package/dist/components/UploaderFiles/UploaderFiles.js +1 -1
- package/dist/components/UploaderPhotos/UploaderPhotos.js +1 -1
- package/dist/components/Vote/Vote.d.ts +0 -8
- package/dist/components/Vote/Vote.js +4 -6
- package/dist/components/Vote/types.js +1 -0
- package/dist/components/index.d.ts +2 -14
- package/dist/components/index.js +2 -31
- package/dist/icons/Icon.js +1 -1
- package/dist/icons/components/types.js +1 -0
- package/dist/index.js +2 -31
- package/dist/{label-P7Xsi5N7.js → label-BTEGh6O_.js} +2 -2
- package/dist/styles.module-Ugsf0AOb.js +38 -0
- package/package.json +1 -1
- package/dist/assets/Avatar.css +0 -1
- package/dist/assets/GosZnak.css +0 -1
- package/dist/assets/InputRangeSlider.css +0 -1
- package/dist/assets/SkeletonCircle.css +0 -1
- package/dist/assets/SkeletonText.css +0 -1
- package/dist/assets/Switcher.css +0 -1
- package/dist/assets/TwinSwitcher.css +0 -1
- package/dist/assets/variant.css +0 -1
- package/dist/components/Avatar/Avatar.d.ts +0 -3
- package/dist/components/Avatar/Avatar.js +0 -62
- package/dist/components/Avatar/constants.d.ts +0 -5
- package/dist/components/Avatar/constants.js +0 -9
- package/dist/components/Avatar/index.d.ts +0 -3
- package/dist/components/Avatar/index.js +0 -6
- package/dist/components/Avatar/types.d.ts +0 -10
- package/dist/components/DatePicker/utils.d.ts +0 -2
- package/dist/components/DatePicker/utils.js +0 -16
- package/dist/components/GosZnak/GosZnak.d.ts +0 -4
- package/dist/components/GosZnak/GosZnak.js +0 -76
- package/dist/components/GosZnak/constants.d.ts +0 -11
- package/dist/components/GosZnak/constants.js +0 -17
- package/dist/components/GosZnak/index.d.ts +0 -3
- package/dist/components/GosZnak/index.js +0 -7
- package/dist/components/GosZnak/types.d.ts +0 -26
- package/dist/components/InputRangeSlider/InputRangeSlider.d.ts +0 -3
- package/dist/components/InputRangeSlider/InputRangeSlider.js +0 -219
- package/dist/components/InputRangeSlider/constants.d.ts +0 -10
- package/dist/components/InputRangeSlider/constants.js +0 -18
- package/dist/components/InputRangeSlider/index.d.ts +0 -3
- package/dist/components/InputRangeSlider/index.js +0 -7
- package/dist/components/InputRangeSlider/types.d.ts +0 -33
- package/dist/components/Skeleton/SkeletonBrick/SkeletonBrick.d.ts +0 -12
- package/dist/components/Skeleton/SkeletonBrick/SkeletonBrick.js +0 -34
- package/dist/components/Skeleton/SkeletonCircle/SkeletonCircle.d.ts +0 -9
- package/dist/components/Skeleton/SkeletonCircle/SkeletonCircle.js +0 -31
- package/dist/components/Skeleton/SkeletonText/SkeletonText.d.ts +0 -10
- package/dist/components/Skeleton/SkeletonText/SkeletonText.js +0 -49
- package/dist/components/Skeleton/constants.d.ts +0 -5
- package/dist/components/Skeleton/constants.js +0 -9
- package/dist/components/Skeleton/index.d.ts +0 -4
- package/dist/components/Skeleton/index.js +0 -10
- package/dist/components/Switcher/Switcher.d.ts +0 -3
- package/dist/components/Switcher/Switcher.js +0 -118
- package/dist/components/Switcher/constants.d.ts +0 -4
- package/dist/components/Switcher/constants.js +0 -8
- package/dist/components/Switcher/index.d.ts +0 -3
- package/dist/components/Switcher/index.js +0 -6
- package/dist/components/Switcher/types.d.ts +0 -30
- package/dist/components/TwinSwitcher/TwinSwitcher.d.ts +0 -10
- package/dist/components/TwinSwitcher/TwinSwitcher.js +0 -65
- package/dist/components/TwinSwitcher/index.d.ts +0 -1
- package/dist/components/TwinSwitcher/index.js +0 -4
- package/dist/field-bS4z9Sdl.js +0 -12
- package/dist/styles.module-B9L4B63y.js +0 -40
- package/dist/variant.module-BinTBzAV.js +0 -15
@@ -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';
|
package/dist/field-bS4z9Sdl.js
DELETED
@@ -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
|
-
};
|