@lazar-ui/kit 0.4.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/dist/Button-BYnrV9av.mjs +52 -0
- package/dist/Chip-DLfYGIQG.mjs +51 -0
- package/dist/Chip.css +1 -0
- package/dist/button.js +2 -50
- package/dist/chip.d.ts +37 -0
- package/dist/chip.js +4 -0
- package/dist/dialog.js +2 -2
- package/dist/drawer.js +21 -21
- package/dist/input.d.ts +16 -0
- package/dist/input.js +162 -71
- package/dist/lazar-ui-provider.d.ts +29 -9
- package/dist/lazar-ui-provider.js +2 -2
- package/dist/pagination.js +19 -19
- package/dist/select.js +28 -28
- package/dist/table.css +1 -1
- package/dist/table.d.ts +59 -9
- package/dist/table.js +71 -32
- package/dist/useLocale-CJh-krrY.mjs +106 -0
- package/package.json +3 -5
- package/dist/useLocale-DdHNhmvT.mjs +0 -70
- /package/dist/{button.css → Button.css} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.5.1] - 2026-06-09
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
- **Build**: fix lucide-react icons leaking into dist — externalize deep imports (`lucide-react/dynamic`) plus all peerDeps in rollup config ([c64e4f2](https://github.com/lazar-ui/lazar-ui/commit/c64e4f2))
|
|
8
|
+
|
|
9
|
+
## [0.5.0] - 2026-06-08
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
- **Chip**: add new Chip component with multiple variants, sizes, and deletable state
|
|
14
|
+
- **Input.Date**: add Date variant for Input component with `inputMode="numeric"` and date validation
|
|
15
|
+
- **Table.ActiveFilters**: add ActiveFilters sub-component for displaying and clearing active column filters
|
|
16
|
+
- **Table.Toolbar**: add Toolbar sub-component for Table with action slots
|
|
17
|
+
- **i18n**: restructure locale system for better extensibility and component-scoped translations
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
- **CI**: fix vitest processes hang and excessive RAM consumption (4GB) by setting `NODE_OPTIONS="--max-old-space-size=8192"` in CI config
|
|
22
|
+
|
|
23
|
+
### Chores
|
|
24
|
+
|
|
25
|
+
- **CI**: run TSM once instead of per package to speed up type declaration generation
|
|
26
|
+
- **styles**: apply prettier fixes across the codebase
|
|
27
|
+
|
|
3
28
|
## [0.4.0] - 2026-06-05
|
|
4
29
|
|
|
5
30
|
### ⚠ BREAKING CHANGES
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { jsxs as z, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import v from "clsx";
|
|
3
|
+
import { I as y } from "./Icon-DsTlU3j3.mjs";
|
|
4
|
+
import { g as o } from "./getVariantClassName-D7Nhpuec.mjs";
|
|
5
|
+
import './Button.css';const g = "Button", h = "_root_1lm86_21", x = "_modeFilled_1lm86_32", S = "_variantPrimary_1lm86_32", b = "_pressed_1lm86_36", N = "_variantSecondary_1lm86_42", W = "_variantDanger_1lm86_52", C = "_disabled_1lm86_62", D = "_modeOutlined_1lm86_69", L = "_modeText_1lm86_94", M = "_fullWidth_1lm86_118", P = "_sizeSm_1lm86_121", B = "_sizeMd_1lm86_128", F = "_sizeLg_1lm86_135", I = "_icon_1lm86_143", e = {
|
|
6
|
+
root: h,
|
|
7
|
+
modeFilled: x,
|
|
8
|
+
variantPrimary: S,
|
|
9
|
+
pressed: b,
|
|
10
|
+
variantSecondary: N,
|
|
11
|
+
variantDanger: W,
|
|
12
|
+
disabled: C,
|
|
13
|
+
modeOutlined: D,
|
|
14
|
+
modeText: L,
|
|
15
|
+
fullWidth: M,
|
|
16
|
+
sizeSm: P,
|
|
17
|
+
sizeMd: B,
|
|
18
|
+
sizeLg: F,
|
|
19
|
+
icon: I
|
|
20
|
+
}, O = (a) => {
|
|
21
|
+
const {
|
|
22
|
+
children: t,
|
|
23
|
+
disabled: i = !1,
|
|
24
|
+
fullWidth: l = !1,
|
|
25
|
+
icon: n,
|
|
26
|
+
mode: r = "filled",
|
|
27
|
+
onClick: d,
|
|
28
|
+
size: m = "md",
|
|
29
|
+
variant: _ = "primary",
|
|
30
|
+
pressed: c,
|
|
31
|
+
as: p = "button",
|
|
32
|
+
...f
|
|
33
|
+
} = a, u = v(
|
|
34
|
+
e.root,
|
|
35
|
+
o("size", m, e),
|
|
36
|
+
o("variant", _, e),
|
|
37
|
+
o("mode", r, e),
|
|
38
|
+
{
|
|
39
|
+
[e.fullWidth]: l,
|
|
40
|
+
[e.pressed]: c,
|
|
41
|
+
[e.disabled]: i
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
return /* @__PURE__ */ z(p, { className: u, disabled: i, onClick: d, ...f, children: [
|
|
45
|
+
n && /* @__PURE__ */ s("span", { className: e.icon, children: /* @__PURE__ */ s(y, { name: n, size: 16 }) }),
|
|
46
|
+
t && /* @__PURE__ */ s("span", { children: t })
|
|
47
|
+
] });
|
|
48
|
+
};
|
|
49
|
+
O.displayName = g;
|
|
50
|
+
export {
|
|
51
|
+
O as B
|
|
52
|
+
};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { jsxs as m, jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import _ from "clsx";
|
|
3
|
+
import { I as p } from "./Icon-DsTlU3j3.mjs";
|
|
4
|
+
import { u as g } from "./useLocale-CJh-krrY.mjs";
|
|
5
|
+
import "react";
|
|
6
|
+
import { g as u } from "./getVariantClassName-D7Nhpuec.mjs";
|
|
7
|
+
import './Chip.css';const b = "Chip", h = "_root_1nzgz_6", f = "_disabled_1nzgz_20", C = "_content_1nzgz_25", N = "_deleteButton_1nzgz_30", x = "_sizeLg_1nzgz_56", y = "_sizeMd_1nzgz_62", L = "_sizeSm_1nzgz_68", e = {
|
|
8
|
+
root: h,
|
|
9
|
+
disabled: f,
|
|
10
|
+
content: C,
|
|
11
|
+
deleteButton: N,
|
|
12
|
+
sizeLg: x,
|
|
13
|
+
sizeMd: y,
|
|
14
|
+
sizeSm: L
|
|
15
|
+
}, B = (n) => {
|
|
16
|
+
const { children: a, color: i, disabled: o = !1, onDelete: t, size: l = "md" } = n, c = g(), r = _(
|
|
17
|
+
e.root,
|
|
18
|
+
u("size", l, e),
|
|
19
|
+
{
|
|
20
|
+
[e.disabled]: o
|
|
21
|
+
}
|
|
22
|
+
), d = (z) => {
|
|
23
|
+
z.stopPropagation(), !o && t && t();
|
|
24
|
+
};
|
|
25
|
+
return /* @__PURE__ */ m(
|
|
26
|
+
"span",
|
|
27
|
+
{
|
|
28
|
+
className: r,
|
|
29
|
+
style: { "--chip-color": i ?? "var(--lui-color-text-secondary)" },
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ s("span", { className: e.content, children: a }),
|
|
32
|
+
t && /* @__PURE__ */ s(
|
|
33
|
+
"button",
|
|
34
|
+
{
|
|
35
|
+
"aria-disabled": o || void 0,
|
|
36
|
+
"aria-label": c.Chip.remove,
|
|
37
|
+
className: e.deleteButton,
|
|
38
|
+
disabled: o,
|
|
39
|
+
onClick: d,
|
|
40
|
+
type: "button",
|
|
41
|
+
children: /* @__PURE__ */ s(p, { name: "x", size: 14 })
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
};
|
|
48
|
+
B.displayName = b;
|
|
49
|
+
export {
|
|
50
|
+
B as C
|
|
51
|
+
};
|
package/dist/Chip.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{--chip-radius: var(--lui-radius-full);--chip-font-weight: var(--lui-font-weight-medium)}._root_1nzgz_6{align-items:center;background:color-mix(in sRGB,var(--chip-color) 12%,transparent);border:1px solid color-mix(in sRGB,var(--chip-color) 24%,transparent);border-radius:var(--chip-radius);color:var(--chip-color);display:inline-flex;font-weight:var(--chip-font-weight);gap:var(--lui-space-1);justify-content:center;line-height:1;white-space:nowrap;width:fit-content}._root_1nzgz_6._disabled_1nzgz_20{opacity:.5;pointer-events:none}._content_1nzgz_25{overflow:hidden;text-overflow:ellipsis}._deleteButton_1nzgz_30{align-items:center;appearance:none;background:none;border:none;border-radius:var(--lui-radius-full);color:inherit;cursor:pointer;display:inline-flex;flex-shrink:0;justify-content:center;margin-inline-end:calc(var(--lui-space-1) * -1);padding:var(--lui-space-1)}._deleteButton_1nzgz_30:hover{background:color-mix(in sRGB,var(--chip-color) 20%,transparent)}._deleteButton_1nzgz_30:focus-visible{outline:2px solid var(--chip-color);outline-offset:-2px}._deleteButton_1nzgz_30:disabled{cursor:default;pointer-events:none}._sizeLg_1nzgz_56{font-size:var(--lui-font-size-md);line-height:var(--line-height-md);padding:3px var(--lui-space-4)}._sizeMd_1nzgz_62{font-size:var(--lui-font-size-sm);line-height:var(--line-height-sm);padding:1px var(--lui-space-3)}._sizeSm_1nzgz_68{font-size:var(--lui-font-size-xs);line-height:var(--line-height-xs);padding:1px var(--lui-space-2)}
|
package/dist/button.js
CHANGED
|
@@ -1,52 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import v from "clsx";
|
|
3
|
-
import { I as y } from "./Icon-DsTlU3j3.mjs";
|
|
4
|
-
import { g as o } from "./getVariantClassName-D7Nhpuec.mjs";
|
|
5
|
-
import './button.css';const g = "Button", h = "_root_1lm86_21", x = "_modeFilled_1lm86_32", S = "_variantPrimary_1lm86_32", b = "_pressed_1lm86_36", N = "_variantSecondary_1lm86_42", W = "_variantDanger_1lm86_52", C = "_disabled_1lm86_62", D = "_modeOutlined_1lm86_69", L = "_modeText_1lm86_94", M = "_fullWidth_1lm86_118", P = "_sizeSm_1lm86_121", F = "_sizeMd_1lm86_128", I = "_sizeLg_1lm86_135", O = "_icon_1lm86_143", e = {
|
|
6
|
-
root: h,
|
|
7
|
-
modeFilled: x,
|
|
8
|
-
variantPrimary: S,
|
|
9
|
-
pressed: b,
|
|
10
|
-
variantSecondary: N,
|
|
11
|
-
variantDanger: W,
|
|
12
|
-
disabled: C,
|
|
13
|
-
modeOutlined: D,
|
|
14
|
-
modeText: L,
|
|
15
|
-
fullWidth: M,
|
|
16
|
-
sizeSm: P,
|
|
17
|
-
sizeMd: F,
|
|
18
|
-
sizeLg: I,
|
|
19
|
-
icon: O
|
|
20
|
-
}, T = (a) => {
|
|
21
|
-
const {
|
|
22
|
-
children: t,
|
|
23
|
-
disabled: i = !1,
|
|
24
|
-
fullWidth: l = !1,
|
|
25
|
-
icon: n,
|
|
26
|
-
mode: r = "filled",
|
|
27
|
-
onClick: d,
|
|
28
|
-
size: m = "md",
|
|
29
|
-
variant: _ = "primary",
|
|
30
|
-
pressed: c,
|
|
31
|
-
as: p = "button",
|
|
32
|
-
...f
|
|
33
|
-
} = a, u = v(
|
|
34
|
-
e.root,
|
|
35
|
-
o("size", m, e),
|
|
36
|
-
o("variant", _, e),
|
|
37
|
-
o("mode", r, e),
|
|
38
|
-
{
|
|
39
|
-
[e.fullWidth]: l,
|
|
40
|
-
[e.pressed]: c,
|
|
41
|
-
[e.disabled]: i
|
|
42
|
-
}
|
|
43
|
-
);
|
|
44
|
-
return /* @__PURE__ */ z(p, { className: u, disabled: i, onClick: d, ...f, children: [
|
|
45
|
-
n && /* @__PURE__ */ s("span", { className: e.icon, children: /* @__PURE__ */ s(y, { name: n, size: 16 }) }),
|
|
46
|
-
t && /* @__PURE__ */ s("span", { children: t })
|
|
47
|
-
] });
|
|
48
|
-
};
|
|
49
|
-
T.displayName = g;
|
|
1
|
+
import { B as r } from "./Button-BYnrV9av.mjs";
|
|
50
2
|
export {
|
|
51
|
-
|
|
3
|
+
r as Button
|
|
52
4
|
};
|
package/dist/chip.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { default as default_2 } from 'react';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Chip component. A small interactive element that displays content and optionally can be removed.
|
|
5
|
+
*
|
|
6
|
+
* Background is computed via CSS `color-mix()` — pass any CSS color value as `color` and
|
|
7
|
+
* the component automatically generates a tinted background and subtle border.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```tsx
|
|
11
|
+
* <Chip>Readonly chip</Chip>
|
|
12
|
+
* <Chip onDelete={() => {}}>Status: Active</Chip>
|
|
13
|
+
* <Chip size="sm" color="var(--lui-palette-orange-500)" onDelete={fn}>Tag</Chip>
|
|
14
|
+
* ```
|
|
15
|
+
*/
|
|
16
|
+
export declare const Chip: default_2.FC<IProps>;
|
|
17
|
+
|
|
18
|
+
declare enum EChipSize {
|
|
19
|
+
LG = "lg",
|
|
20
|
+
MD = "md",
|
|
21
|
+
SM = "sm"
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare interface IProps extends default_2.PropsWithChildren {
|
|
25
|
+
/** CSS color value. Background is derived via `color-mix()`. Default: `var(--lui-color-text-secondary)`. */
|
|
26
|
+
color?: string;
|
|
27
|
+
/** Disable the chip. */
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
/** When provided, renders a delete ("×") icon button. */
|
|
30
|
+
onDelete?: () => void;
|
|
31
|
+
/** Size. Default: `'md'`. */
|
|
32
|
+
size?: TChipSize;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
declare type TChipSize = `${EChipSize.LG | EChipSize.MD | EChipSize.SM}`;
|
|
36
|
+
|
|
37
|
+
export { }
|
package/dist/chip.js
ADDED
package/dist/dialog.js
CHANGED
|
@@ -5,7 +5,7 @@ import { $ as S, a as A } from "./useModalOverlay-C311Y5HK.mjs";
|
|
|
5
5
|
import { s as E, i as M } from "./Overlay-OYo7gW8m.mjs";
|
|
6
6
|
import { a as P } from "./useOverlayTriggerState-DK8Xy6Kr.mjs";
|
|
7
7
|
import { I as R } from "./Icon-DsTlU3j3.mjs";
|
|
8
|
-
import { u as X } from "./useLocale-
|
|
8
|
+
import { u as X } from "./useLocale-CJh-krrY.mjs";
|
|
9
9
|
import { g as k } from "./getComponentSlots-DwAYUFNk.mjs";
|
|
10
10
|
import { g as w } from "./getVariantClassName-D7Nhpuec.mjs";
|
|
11
11
|
import './dialog.css';var e = /* @__PURE__ */ ((o) => (o.ACTIONS = "Dialog.Actions", o.CONTENT = "Dialog.Content", o.TITLE = "Dialog.Title", o))(e || {});
|
|
@@ -52,7 +52,7 @@ const B = "Dialog", F = [e.ACTIONS, e.CONTENT, e.TITLE], G = "_underlay_100vj_25
|
|
|
52
52
|
return /* @__PURE__ */ s(E, { portalContainer: u, children: /* @__PURE__ */ s("div", { className: a.underlay, ...z, children: /* @__PURE__ */ s("div", { className: a.modal, ...y, ref: n, children: /* @__PURE__ */ s(M, { getContainer: () => n.current, children: /* @__PURE__ */ _("div", { className: I, ...b, ref: c, children: [
|
|
53
53
|
/* @__PURE__ */ _("div", { className: a.header, children: [
|
|
54
54
|
j,
|
|
55
|
-
/* @__PURE__ */ s("button", { "aria-label": h.
|
|
55
|
+
/* @__PURE__ */ s("button", { "aria-label": h.Dialog.close, className: a.close, onClick: D, children: /* @__PURE__ */ s(R, { name: "x", size: 16 }) })
|
|
56
56
|
] }),
|
|
57
57
|
m && /* @__PURE__ */ s("div", { children: m }),
|
|
58
58
|
d && /* @__PURE__ */ s("div", { className: a.actions, children: d })
|
package/dist/drawer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as t, jsxs as T } from "react/jsx-runtime";
|
|
2
|
-
import M, { cloneElement as H, createContext as P, useContext as B, useRef as p, useState as
|
|
2
|
+
import M, { cloneElement as H, createContext as P, useContext as B, useRef as p, useState as h, useEffect as j, useMemo as F } from "react";
|
|
3
3
|
import { i as V } from "./isValidReactNode-CmYwTWCE.mjs";
|
|
4
4
|
import "./camelCase-PtIYufW8.mjs";
|
|
5
5
|
import U from "clsx";
|
|
@@ -7,13 +7,13 @@ import { $ as K, a as Y } from "./useModalOverlay-C311Y5HK.mjs";
|
|
|
7
7
|
import { s as G, i as J } from "./Overlay-OYo7gW8m.mjs";
|
|
8
8
|
import { a as Q } from "./useOverlayTriggerState-DK8Xy6Kr.mjs";
|
|
9
9
|
import { g as W } from "./getComponentSlots-DwAYUFNk.mjs";
|
|
10
|
-
import { g as
|
|
10
|
+
import { g as A } from "./getVariantClassName-D7Nhpuec.mjs";
|
|
11
11
|
import { I as X } from "./Icon-DsTlU3j3.mjs";
|
|
12
|
-
import { u as Z } from "./useLocale-
|
|
12
|
+
import { u as Z } from "./useLocale-CJh-krrY.mjs";
|
|
13
13
|
import './drawer.css';var o = /* @__PURE__ */ ((e) => (e.ACTIONS = "Drawer.Actions", e.CONTENT = "Drawer.Content", e.HEADER = "Drawer.Header", e))(o || {});
|
|
14
14
|
const ee = "_root_1m4yu_1", te = {
|
|
15
15
|
root: ee
|
|
16
|
-
},
|
|
16
|
+
}, w = ({ children: e }) => {
|
|
17
17
|
const r = M.Children.toArray(e), l = r.map((s, c) => {
|
|
18
18
|
if (!V("Button", s))
|
|
19
19
|
return s;
|
|
@@ -25,14 +25,14 @@ const ee = "_root_1m4yu_1", te = {
|
|
|
25
25
|
});
|
|
26
26
|
return r.length === 0 ? null : /* @__PURE__ */ t("div", { className: te.root, children: l });
|
|
27
27
|
};
|
|
28
|
-
|
|
28
|
+
w.displayName = o.ACTIONS;
|
|
29
29
|
const oe = "_root_jagsa_1", re = {
|
|
30
30
|
root: oe
|
|
31
|
-
},
|
|
31
|
+
}, g = (e) => {
|
|
32
32
|
const { children: r } = e;
|
|
33
33
|
return /* @__PURE__ */ t("div", { className: re.root, children: r });
|
|
34
34
|
};
|
|
35
|
-
|
|
35
|
+
g.displayName = o.CONTENT;
|
|
36
36
|
const ne = "Drawer", se = [o.ACTIONS, o.CONTENT, o.HEADER], q = P(null), ae = () => {
|
|
37
37
|
const e = B(q);
|
|
38
38
|
if (!e)
|
|
@@ -56,19 +56,19 @@ const ne = "Drawer", se = [o.ACTIONS, o.CONTENT, o.HEADER], q = P(null), ae = ()
|
|
|
56
56
|
{ isDismissable: s, isKeyboardDismissDisabled: !1 },
|
|
57
57
|
N,
|
|
58
58
|
i
|
|
59
|
-
), [C, b] =
|
|
59
|
+
), [C, b] = h(n || !1), [R, D] = h(!1), m = p(C);
|
|
60
60
|
j(() => {
|
|
61
61
|
if (n) {
|
|
62
62
|
m.current = !0, b(!0);
|
|
63
63
|
const d = requestAnimationFrame(() => {
|
|
64
64
|
requestAnimationFrame(() => {
|
|
65
|
-
|
|
65
|
+
D(!0);
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
return () => cancelAnimationFrame(d);
|
|
69
69
|
}
|
|
70
70
|
if (m.current) {
|
|
71
|
-
|
|
71
|
+
D(!1);
|
|
72
72
|
const d = setTimeout(() => {
|
|
73
73
|
m.current = !1, b(!1);
|
|
74
74
|
}, be);
|
|
@@ -77,12 +77,12 @@ const ne = "Drawer", se = [o.ACTIONS, o.CONTENT, o.HEADER], q = P(null), ae = ()
|
|
|
77
77
|
}, [n]);
|
|
78
78
|
const {
|
|
79
79
|
[o.ACTIONS]: z,
|
|
80
|
-
[o.CONTENT]:
|
|
80
|
+
[o.CONTENT]: $,
|
|
81
81
|
[o.HEADER]: S
|
|
82
82
|
} = F(() => W(r, se), [r]), L = U(
|
|
83
83
|
a.drawer,
|
|
84
|
-
|
|
85
|
-
|
|
84
|
+
A("size", v, a),
|
|
85
|
+
A("placement", f, a),
|
|
86
86
|
{ [a.entered]: R }
|
|
87
87
|
);
|
|
88
88
|
return C ? /* @__PURE__ */ t(G, { portalContainer: l, children: /* @__PURE__ */ t("div", { className: a.underlay, ...O, children: /* @__PURE__ */ t("div", { className: a.modal, ...I, ref: i, children: /* @__PURE__ */ t(J, { getContainer: () => i.current, children: /* @__PURE__ */ t(q.Provider, { value: { close: () => N.close() }, children: /* @__PURE__ */ T(
|
|
@@ -96,30 +96,30 @@ const ne = "Drawer", se = [o.ACTIONS, o.CONTENT, o.HEADER], q = P(null), ae = ()
|
|
|
96
96
|
ref: y,
|
|
97
97
|
children: [
|
|
98
98
|
S,
|
|
99
|
-
|
|
99
|
+
$ && /* @__PURE__ */ t("div", { className: a.content, children: $ }),
|
|
100
100
|
z
|
|
101
101
|
]
|
|
102
102
|
}
|
|
103
103
|
) }) }) }) }) }) : null;
|
|
104
104
|
};
|
|
105
105
|
k.displayName = ne;
|
|
106
|
-
const
|
|
107
|
-
root:
|
|
108
|
-
title:
|
|
109
|
-
close:
|
|
106
|
+
const De = "_root_1mypq_13", $e = "_title_1mypq_21", he = "_close_1mypq_31", u = {
|
|
107
|
+
root: De,
|
|
108
|
+
title: $e,
|
|
109
|
+
close: he
|
|
110
110
|
}, E = (e) => {
|
|
111
111
|
const { children: r } = e, { close: l } = ae(), s = Z(), c = (n) => {
|
|
112
112
|
n.preventDefault(), l();
|
|
113
113
|
};
|
|
114
114
|
return /* @__PURE__ */ T("div", { className: u.root, children: [
|
|
115
115
|
/* @__PURE__ */ t("div", { className: u.title, children: r }),
|
|
116
|
-
/* @__PURE__ */ t("button", { "aria-label": s.
|
|
116
|
+
/* @__PURE__ */ t("button", { "aria-label": s.Drawer.Header.close, className: u.close, onClick: c, type: "button", children: /* @__PURE__ */ t(X, { name: "x", size: 16 }) })
|
|
117
117
|
] });
|
|
118
118
|
};
|
|
119
119
|
E.displayName = o.HEADER;
|
|
120
120
|
const _ = k;
|
|
121
|
-
_.Actions =
|
|
122
|
-
_.Content =
|
|
121
|
+
_.Actions = w;
|
|
122
|
+
_.Content = g;
|
|
123
123
|
_.Header = E;
|
|
124
124
|
export {
|
|
125
125
|
_ as Drawer,
|
package/dist/input.d.ts
CHANGED
|
@@ -1,6 +1,19 @@
|
|
|
1
1
|
import { default as default_2 } from 'react';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
|
|
4
|
+
declare enum EDateFormat {
|
|
5
|
+
DD_MM_YYYY = "DD/MM/YYYY",
|
|
6
|
+
DD_MM_YYYY_DOT = "DD.MM.YYYY",
|
|
7
|
+
MM_DD_YYYY = "MM/DD/YYYY",
|
|
8
|
+
MM_DD_YYYY_DOT = "MM.DD.YYYY",
|
|
9
|
+
YYYY_MM_DD = "YYYY-MM-DD"
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare interface IInputDateProps extends Omit<IInputProps, 'type'> {
|
|
13
|
+
/** Date format pattern that determines separator and digit order. */
|
|
14
|
+
format: TDateFormat;
|
|
15
|
+
}
|
|
16
|
+
|
|
4
17
|
export declare interface IInputEmailProps extends Omit<IInputProps, 'type'> {
|
|
5
18
|
}
|
|
6
19
|
|
|
@@ -28,12 +41,15 @@ export declare interface IInputProps extends Omit<default_2.InputHTMLAttributes<
|
|
|
28
41
|
}
|
|
29
42
|
|
|
30
43
|
export declare const Input: FC<IInputProps> & {
|
|
44
|
+
Date: FC<IInputDateProps>;
|
|
31
45
|
Email: FC<IInputEmailProps>;
|
|
32
46
|
Number: FC<IInputNumberProps>;
|
|
33
47
|
Password: FC<IInputPasswordProps>;
|
|
34
48
|
Phone: FC<IInputPhoneProps>;
|
|
35
49
|
};
|
|
36
50
|
|
|
51
|
+
declare type TDateFormat = `${EDateFormat.DD_MM_YYYY}` | `${EDateFormat.DD_MM_YYYY_DOT}` | `${EDateFormat.MM_DD_YYYY}` | `${EDateFormat.MM_DD_YYYY_DOT}` | `${EDateFormat.YYYY_MM_DD}`;
|
|
52
|
+
|
|
37
53
|
declare type TInputSize = 'sm' | 'md' | 'lg';
|
|
38
54
|
|
|
39
55
|
export { }
|