@trsys-tech/matrix-library 0.5.1-alpha.0 → 0.5.1-alpha.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/dist/components/duration/Duration.d.ts +61 -0
- package/dist/components/duration/Duration.d.ts.map +1 -0
- package/dist/components/form-duration/FormDuration.d.ts +21 -0
- package/dist/components/form-duration/FormDuration.d.ts.map +1 -0
- package/dist/duration.es.js +116 -0
- package/dist/duration.es.js.map +1 -0
- package/dist/formduration.es.js +40 -0
- package/dist/formduration.es.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +155 -151
- package/dist/index.es.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { VariantProps, TVReturnType } from 'tailwind-variants';
|
|
2
|
+
import { TVConfig } from 'tailwind-variants/dist/config';
|
|
3
|
+
import * as React from "react";
|
|
4
|
+
declare const textFieldVariants: TVReturnType<{
|
|
5
|
+
size: {
|
|
6
|
+
sm: string;
|
|
7
|
+
md: string;
|
|
8
|
+
lg: string;
|
|
9
|
+
};
|
|
10
|
+
}, undefined, string[], TVConfig<{
|
|
11
|
+
size: {
|
|
12
|
+
sm: string;
|
|
13
|
+
md: string;
|
|
14
|
+
lg: string;
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
size: {
|
|
18
|
+
sm: string;
|
|
19
|
+
md: string;
|
|
20
|
+
lg: string;
|
|
21
|
+
};
|
|
22
|
+
}>, {
|
|
23
|
+
size: {
|
|
24
|
+
sm: string;
|
|
25
|
+
md: string;
|
|
26
|
+
lg: string;
|
|
27
|
+
};
|
|
28
|
+
}, undefined, TVReturnType<{
|
|
29
|
+
size: {
|
|
30
|
+
sm: string;
|
|
31
|
+
md: string;
|
|
32
|
+
lg: string;
|
|
33
|
+
};
|
|
34
|
+
}, undefined, string[], TVConfig<{
|
|
35
|
+
size: {
|
|
36
|
+
sm: string;
|
|
37
|
+
md: string;
|
|
38
|
+
lg: string;
|
|
39
|
+
};
|
|
40
|
+
}, {
|
|
41
|
+
size: {
|
|
42
|
+
sm: string;
|
|
43
|
+
md: string;
|
|
44
|
+
lg: string;
|
|
45
|
+
};
|
|
46
|
+
}>, unknown, unknown, undefined>>;
|
|
47
|
+
interface DurationProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof textFieldVariants> {
|
|
48
|
+
disabled?: boolean;
|
|
49
|
+
endAdornment?: React.ReactNode;
|
|
50
|
+
startAdornment?: React.ReactNode;
|
|
51
|
+
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
52
|
+
value?: string;
|
|
53
|
+
defaultValue?: string;
|
|
54
|
+
showSeconds?: boolean;
|
|
55
|
+
slotProps?: {
|
|
56
|
+
inputProps?: React.InputHTMLAttributes<HTMLInputElement>;
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
declare const Duration: React.ForwardRefExoticComponent<DurationProps & React.RefAttributes<HTMLInputElement>>;
|
|
60
|
+
export { Duration, type DurationProps };
|
|
61
|
+
//# sourceMappingURL=Duration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Duration.d.ts","sourceRoot":"","sources":["../../../src/components/duration/Duration.tsx"],"names":[],"mappings":";AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAM,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAIrD,QAAA,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAgBrB,CAAC;AAEH,UAAU,aAAc,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,YAAY,CAAC,OAAO,iBAAiB,CAAC;IAC1G,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC/B,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACjC,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACtD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE;QACV,UAAU,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;KAC1D,CAAC;CACH;AAED,QAAA,MAAM,QAAQ,wFA8Lb,CAAC;AAGF,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { SlotProps } from '@radix-ui/react-slot';
|
|
2
|
+
import { Control, ControllerProps, FieldPath, FieldValues } from 'react-hook-form';
|
|
3
|
+
import { DurationProps } from '../duration/Duration';
|
|
4
|
+
import { FormItem } from '../form/Form';
|
|
5
|
+
type FormDurationProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = Omit<ControllerProps<TFieldValues, TName>, "render"> & React.ComponentProps<typeof FormItem> & {
|
|
6
|
+
label: string;
|
|
7
|
+
control: Control<TFieldValues>;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
readOnly?: boolean;
|
|
10
|
+
showSeconds?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
slotProps?: {
|
|
13
|
+
formLabelProps?: React.HTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>;
|
|
14
|
+
formMessageProps?: React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>;
|
|
15
|
+
formControlProps?: Omit<SlotProps & React.RefAttributes<HTMLElement>, "ref"> & React.RefAttributes<HTMLElement>;
|
|
16
|
+
durationProps?: Omit<DurationProps, "ref"> & React.RefAttributes<HTMLInputElement>;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare const FormDuration: <TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>(props: FormDurationProps<TFieldValues, TName>) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export { FormDuration, type FormDurationProps };
|
|
21
|
+
//# sourceMappingURL=FormDuration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FormDuration.d.ts","sourceRoot":"","sources":["../../../src/components/form-duration/FormDuration.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEnF,OAAO,EAAY,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAA0B,QAAQ,EAA0B,MAAM,cAAc,CAAC;AAExF,KAAK,iBAAiB,CAAC,YAAY,SAAS,WAAW,EAAE,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,IAAI,IAAI,CACpG,eAAe,CAAC,YAAY,EAAE,KAAK,CAAC,EACpC,QAAQ,CACT,GACC,KAAK,CAAC,cAAc,CAAC,OAAO,QAAQ,CAAC,GAAG;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE;QACV,cAAc,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;QAChG,gBAAgB,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,oBAAoB,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC;QAC1G,gBAAgB,CAAC,EAAE,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,EAAE,KAAK,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC;QAChH,aAAa,CAAC,EAAE,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,GAAG,KAAK,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;KACpF,CAAC;CACH,CAAC;AAEJ,QAAA,MAAM,YAAY,GAAI,YAAY,SAAS,WAAW,EAAE,KAAK,SAAS,SAAS,CAAC,YAAY,CAAC,SAAS,iBAAiB,CAAC,YAAY,EAAE,KAAK,CAAC,4CAoC3I,CAAC;AACF,OAAO,EAAE,YAAY,EAAE,KAAK,iBAAiB,EAAE,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { jsxs as $, jsx as E } from "react/jsx-runtime";
|
|
2
|
+
import * as p from "react";
|
|
3
|
+
import { tv as F } from "tailwind-variants";
|
|
4
|
+
import { cn as y } from "./utils.es.js";
|
|
5
|
+
const H = F({
|
|
6
|
+
base: [
|
|
7
|
+
"flex items-center w-full rounded-sm border border-input text-text bg-transparent p-0 text-xs font-medium shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground",
|
|
8
|
+
"placeholder:text-text-300 hover:border-primary-400 focus-within:border-primary-400 focus-within:outline-none focus-within:ring focus-within:ring-primary-100",
|
|
9
|
+
"aria-disabled:text-text-300 aria-disabled:bg-gray-100 aria-disabled:border-gray-100"
|
|
10
|
+
],
|
|
11
|
+
variants: {
|
|
12
|
+
size: {
|
|
13
|
+
sm: "h-7",
|
|
14
|
+
md: "h-8",
|
|
15
|
+
lg: "h-11"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
defaultVariants: {
|
|
19
|
+
size: "md"
|
|
20
|
+
}
|
|
21
|
+
}), T = p.forwardRef(
|
|
22
|
+
({ className: v, slotProps: g, endAdornment: w, startAdornment: x, size: D, value: d, onChange: c, defaultValue: A, disabled: b, showSeconds: u = !1, ...R }, V) => {
|
|
23
|
+
const f = p.useCallback(
|
|
24
|
+
(e) => {
|
|
25
|
+
const r = e.replace(/\D/g, ""), n = u ? 6 : 4, a = r.substring(0, n).padEnd(n, "0");
|
|
26
|
+
let t = a.substring(0, 2), o = a.substring(2, 4), s = u ? a.substring(4, 6) : "";
|
|
27
|
+
parseInt(t, 10) > 23 && (t = "23"), parseInt(o, 10) > 59 && (o = "59"), u && parseInt(s, 10) > 59 && (s = "59");
|
|
28
|
+
let i = t;
|
|
29
|
+
return n >= 4 && (i += `:${o}`), u && (i += `:${s}`), i;
|
|
30
|
+
},
|
|
31
|
+
[u]
|
|
32
|
+
), [l, m] = p.useState(() => f(A || "")), h = p.useRef(null);
|
|
33
|
+
p.useImperativeHandle(V, () => h.current), p.useEffect(() => {
|
|
34
|
+
d !== void 0 && m(f(d));
|
|
35
|
+
}, [d, f]);
|
|
36
|
+
const M = (e) => {
|
|
37
|
+
e.preventDefault();
|
|
38
|
+
const r = e.currentTarget, { key: n } = e, a = r.selectionStart ?? 0, t = l.substring(0, a) + n + l.substring(a + 1), o = f(t);
|
|
39
|
+
if (m(o), c) {
|
|
40
|
+
const s = { ...e, target: { ...e.target, value: o } };
|
|
41
|
+
c(s);
|
|
42
|
+
}
|
|
43
|
+
requestAnimationFrame(() => {
|
|
44
|
+
let s = a + 1;
|
|
45
|
+
o[s] === ":" && s++, r.setSelectionRange(s, s);
|
|
46
|
+
});
|
|
47
|
+
}, S = (e) => {
|
|
48
|
+
e.preventDefault();
|
|
49
|
+
const r = e.currentTarget, n = r.selectionStart ?? 0;
|
|
50
|
+
if (n === 0) return;
|
|
51
|
+
let a = "", t = n - 1;
|
|
52
|
+
if (l[n - 1] === ":")
|
|
53
|
+
a = `${l.substring(0, n - 2)}0${l.substring(n - 1)}`, t = n - 2;
|
|
54
|
+
else {
|
|
55
|
+
const s = l.replace(/\D/g, ""), i = n - Math.floor((n - 1) / 3), N = `${s.substring(0, i - 1)}0${s.substring(i)}`;
|
|
56
|
+
a = f(N);
|
|
57
|
+
}
|
|
58
|
+
const o = f(a);
|
|
59
|
+
if (m(o), c) {
|
|
60
|
+
const s = { ...e, target: { ...e.target, value: o } };
|
|
61
|
+
c(s);
|
|
62
|
+
}
|
|
63
|
+
requestAnimationFrame(() => {
|
|
64
|
+
r.setSelectionRange(t, t);
|
|
65
|
+
});
|
|
66
|
+
}, k = (e) => {
|
|
67
|
+
e.preventDefault();
|
|
68
|
+
const r = e.currentTarget, { key: n } = e, a = n === "ArrowUp" ? 1 : -1, t = l.split(":").map(Number), o = r.selectionStart ?? 0;
|
|
69
|
+
if (o <= 2)
|
|
70
|
+
t[0] = (t[0] + a + 24) % 24;
|
|
71
|
+
else if (o >= 3 && o <= 5) {
|
|
72
|
+
const i = t[1] + a;
|
|
73
|
+
i >= 60 ? (t[0] = (t[0] + 1) % 24, t[1] = i % 60) : i < 0 ? (t[0] = (t[0] - 1 + 24) % 24, t[1] = 59) : t[1] = i;
|
|
74
|
+
} else if (u && o >= 6) {
|
|
75
|
+
const i = t[2] + a;
|
|
76
|
+
i >= 60 ? (t[1] += 1, t[2] = i % 60) : i < 0 ? (t[1] -= 1, t[2] = 59) : t[2] = i, t[1] >= 60 ? (t[0] = (t[0] + 1) % 24, t[1] %= 60) : t[1] < 0 && (t[0] = (t[0] - 1 + 24) % 24, t[1] = 59);
|
|
77
|
+
}
|
|
78
|
+
const s = t.map((i) => String(i).padStart(2, "0")).join(":");
|
|
79
|
+
m(s), c && c({ target: { value: s } }), requestAnimationFrame(() => {
|
|
80
|
+
r.setSelectionRange(o, o);
|
|
81
|
+
});
|
|
82
|
+
}, I = (e) => {
|
|
83
|
+
const { key: r, currentTarget: n } = e, { selectionStart: a, selectionEnd: t } = n;
|
|
84
|
+
r.length === 1 && /\d/.test(r) ? M(e) : r === "Backspace" ? S(e) : r === "ArrowUp" || r === "ArrowDown" ? k(e) : r === "ArrowRight" || r === "ArrowLeft" || r.length > 1 || a !== t || e.preventDefault();
|
|
85
|
+
};
|
|
86
|
+
return /* @__PURE__ */ $("div", { ...R, className: y(H({ size: D, className: v })), "aria-disabled": b, children: [
|
|
87
|
+
x,
|
|
88
|
+
/* @__PURE__ */ E(
|
|
89
|
+
"input",
|
|
90
|
+
{
|
|
91
|
+
type: "text",
|
|
92
|
+
inputMode: "numeric",
|
|
93
|
+
ref: h,
|
|
94
|
+
onKeyDown: I,
|
|
95
|
+
onChange: () => {
|
|
96
|
+
},
|
|
97
|
+
value: l,
|
|
98
|
+
placeholder: u ? "HH:MM:SS" : "HH:MM",
|
|
99
|
+
disabled: b,
|
|
100
|
+
...g?.inputProps ?? {},
|
|
101
|
+
className: y(
|
|
102
|
+
"focus:outline-none w-full h-full py-1 rounded-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-300",
|
|
103
|
+
x ? "ps-1 pe-3" : "px-3",
|
|
104
|
+
g?.inputProps?.className
|
|
105
|
+
)
|
|
106
|
+
}
|
|
107
|
+
),
|
|
108
|
+
w
|
|
109
|
+
] });
|
|
110
|
+
}
|
|
111
|
+
);
|
|
112
|
+
T.displayName = "Duration";
|
|
113
|
+
export {
|
|
114
|
+
T as Duration
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=duration.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"duration.es.js","sources":["../src/components/duration/Duration.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as React from \"react\";\r\nimport { tv, VariantProps } from \"tailwind-variants\";\r\n\r\nimport { cn } from \"../../lib/utils\";\r\n\r\nconst textFieldVariants = tv({\r\n base: [\r\n \"flex items-center w-full rounded-sm border border-input text-text bg-transparent p-0 text-xs font-medium shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground\",\r\n \"placeholder:text-text-300 hover:border-primary-400 focus-within:border-primary-400 focus-within:outline-none focus-within:ring focus-within:ring-primary-100\",\r\n \"aria-disabled:text-text-300 aria-disabled:bg-gray-100 aria-disabled:border-gray-100\",\r\n ],\r\n variants: {\r\n size: {\r\n sm: \"h-7\",\r\n md: \"h-8\",\r\n lg: \"h-11\",\r\n },\r\n },\r\n defaultVariants: {\r\n size: \"md\",\r\n },\r\n});\r\n\r\ninterface DurationProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof textFieldVariants> {\r\n disabled?: boolean;\r\n endAdornment?: React.ReactNode;\r\n startAdornment?: React.ReactNode;\r\n onChange?: React.ChangeEventHandler<HTMLInputElement>;\r\n value?: string;\r\n defaultValue?: string;\r\n showSeconds?: boolean;\r\n slotProps?: {\r\n inputProps?: React.InputHTMLAttributes<HTMLInputElement>;\r\n };\r\n}\r\n\r\nconst Duration = React.forwardRef<HTMLInputElement, DurationProps>(\r\n (\r\n { className, slotProps, endAdornment, startAdornment, size, value: _value, onChange, defaultValue, disabled, showSeconds = false, ...props },\r\n ref,\r\n ) => {\r\n const getFormattedValue = React.useCallback(\r\n (val: string) => {\r\n const digits = val.replace(/\\D/g, \"\");\r\n const maxLength = showSeconds ? 6 : 4;\r\n const limitedDigits = digits.substring(0, maxLength).padEnd(maxLength, \"0\");\r\n\r\n let hours = limitedDigits.substring(0, 2);\r\n let minutes = limitedDigits.substring(2, 4);\r\n let seconds = showSeconds ? limitedDigits.substring(4, 6) : \"\";\r\n\r\n if (parseInt(hours, 10) > 23) hours = \"23\";\r\n if (parseInt(minutes, 10) > 59) minutes = \"59\";\r\n if (showSeconds && parseInt(seconds, 10) > 59) seconds = \"59\";\r\n\r\n let formatted = hours;\r\n if (maxLength >= 4) formatted += `:${minutes}`;\r\n if (showSeconds) formatted += `:${seconds}`;\r\n\r\n return formatted;\r\n },\r\n [showSeconds],\r\n );\r\n\r\n const [value, setValue] = React.useState(() => getFormattedValue(defaultValue || \"\"));\r\n const inputRef = React.useRef<HTMLInputElement>(null);\r\n\r\n React.useImperativeHandle(ref, () => inputRef.current as HTMLInputElement);\r\n\r\n React.useEffect(() => {\r\n if (_value !== undefined) {\r\n setValue(getFormattedValue(_value));\r\n }\r\n }, [_value, getFormattedValue]);\r\n\r\n const handleNumericInput = (e: React.KeyboardEvent<HTMLInputElement>) => {\r\n e.preventDefault();\r\n const input = e.currentTarget;\r\n const { key } = e;\r\n const selection = input.selectionStart ?? 0;\r\n const nextValue = value.substring(0, selection) + key + value.substring(selection + 1);\r\n const formatted = getFormattedValue(nextValue);\r\n setValue(formatted);\r\n\r\n if (onChange) {\r\n const syntheticEvent = { ...e, target: { ...e.target, value: formatted } };\r\n onChange(syntheticEvent as unknown as React.ChangeEvent<HTMLInputElement>);\r\n }\r\n\r\n requestAnimationFrame(() => {\r\n let nextCursor = selection + 1;\r\n if (formatted[nextCursor] === \":\") {\r\n nextCursor++;\r\n }\r\n input.setSelectionRange(nextCursor, nextCursor);\r\n });\r\n };\r\n\r\n const handleBackspace = (e: React.KeyboardEvent<HTMLInputElement>) => {\r\n e.preventDefault();\r\n const input = e.currentTarget;\r\n const selection = input.selectionStart ?? 0;\r\n if (selection === 0) return;\r\n\r\n let nextValue = \"\";\r\n let nextCursor = selection - 1;\r\n\r\n if (value[selection - 1] === \":\") {\r\n nextValue = `${value.substring(0, selection - 2)}0${value.substring(selection - 1)}`;\r\n nextCursor = selection - 2;\r\n } else {\r\n const currentValue = value.replace(/\\D/g, \"\");\r\n const cursorIndex = selection - Math.floor((selection - 1) / 3);\r\n const nextDigits = `${currentValue.substring(0, cursorIndex - 1)}0${currentValue.substring(cursorIndex)}`;\r\n nextValue = getFormattedValue(nextDigits);\r\n }\r\n\r\n const formatted = getFormattedValue(nextValue);\r\n setValue(formatted);\r\n\r\n if (onChange) {\r\n const syntheticEvent = { ...e, target: { ...e.target, value: formatted } };\r\n onChange(syntheticEvent as unknown as React.ChangeEvent<HTMLInputElement>);\r\n }\r\n\r\n requestAnimationFrame(() => {\r\n input.setSelectionRange(nextCursor, nextCursor);\r\n });\r\n };\r\n\r\n const handleArrowKey = (e: React.KeyboardEvent<HTMLInputElement>) => {\r\n e.preventDefault();\r\n const input = e.currentTarget;\r\n const { key } = e;\r\n const increment = key === \"ArrowUp\" ? 1 : -1;\r\n const parts = value.split(\":\").map(Number);\r\n const selection = input.selectionStart ?? 0;\r\n\r\n if (selection <= 2) {\r\n // Hours\r\n parts[0] = (parts[0] + increment + 24) % 24;\r\n } else if (selection >= 3 && selection <= 5) {\r\n // Minutes\r\n const newMinutes = parts[1] + increment;\r\n if (newMinutes >= 60) {\r\n parts[0] = (parts[0] + 1) % 24;\r\n parts[1] = newMinutes % 60;\r\n } else if (newMinutes < 0) {\r\n parts[0] = (parts[0] - 1 + 24) % 24;\r\n parts[1] = 59;\r\n } else {\r\n parts[1] = newMinutes;\r\n }\r\n } else if (showSeconds && selection >= 6) {\r\n // Seconds\r\n const newSeconds = parts[2] + increment;\r\n if (newSeconds >= 60) {\r\n parts[1] += 1;\r\n parts[2] = newSeconds % 60;\r\n } else if (newSeconds < 0) {\r\n parts[1] -= 1;\r\n parts[2] = 59;\r\n } else {\r\n parts[2] = newSeconds;\r\n }\r\n\r\n if (parts[1] >= 60) {\r\n parts[0] = (parts[0] + 1) % 24;\r\n parts[1] %= 60;\r\n } else if (parts[1] < 0) {\r\n parts[0] = (parts[0] - 1 + 24) % 24;\r\n parts[1] = 59;\r\n }\r\n }\r\n\r\n const newValue = parts.map(part => String(part).padStart(2, \"0\")).join(\":\");\r\n setValue(newValue);\r\n if (onChange) {\r\n onChange({ target: { value: newValue } } as React.ChangeEvent<HTMLInputElement>);\r\n }\r\n requestAnimationFrame(() => {\r\n input.setSelectionRange(selection, selection);\r\n });\r\n };\r\n\r\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\r\n const { key, currentTarget } = e;\r\n const { selectionStart, selectionEnd } = currentTarget;\r\n\r\n if (key.length === 1 && /\\d/.test(key)) {\r\n handleNumericInput(e);\r\n } else if (key === \"Backspace\") {\r\n handleBackspace(e);\r\n } else if (key === \"ArrowUp\" || key === \"ArrowDown\") {\r\n handleArrowKey(e);\r\n } else if (key === \"ArrowRight\" || key === \"ArrowLeft\" || key.length > 1 || selectionStart !== selectionEnd) {\r\n // Allow navigation, control keys, and replacing a selection\r\n } else {\r\n e.preventDefault();\r\n }\r\n };\r\n\r\n return (\r\n <div {...props} className={cn(textFieldVariants({ size, className }))} aria-disabled={disabled}>\r\n {startAdornment}\r\n <input\r\n type=\"text\"\r\n inputMode=\"numeric\"\r\n ref={inputRef}\r\n onKeyDown={handleKeyDown}\r\n onChange={() => {}}\r\n value={value}\r\n placeholder={showSeconds ? \"HH:MM:SS\" : \"HH:MM\"}\r\n disabled={disabled}\r\n {...(slotProps?.inputProps ?? {})}\r\n className={cn(\r\n \"focus:outline-none w-full h-full py-1 rounded-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-text-300\",\r\n !startAdornment ? \"px-3\" : \"ps-1 pe-3\",\r\n slotProps?.inputProps?.className,\r\n )}\r\n />\r\n\r\n {endAdornment}\r\n </div>\r\n );\r\n },\r\n);\r\nDuration.displayName = \"Duration\";\r\n\r\nexport { Duration, type DurationProps };\r\n"],"names":["textFieldVariants","tv","Duration","React","className","slotProps","endAdornment","startAdornment","size","_value","onChange","defaultValue","disabled","showSeconds","props","ref","getFormattedValue","val","digits","maxLength","limitedDigits","hours","minutes","seconds","formatted","value","setValue","inputRef","handleNumericInput","input","key","selection","nextValue","syntheticEvent","nextCursor","handleBackspace","currentValue","cursorIndex","nextDigits","handleArrowKey","increment","parts","newMinutes","newSeconds","newValue","part","handleKeyDown","currentTarget","selectionStart","selectionEnd","jsxs","cn","jsx"],"mappings":";;;;AAOA,MAAMA,IAAoBC,EAAG;AAAA,EAC3B,MAAM;AAAA,IACJ;AAAA,IACA;AAAA,IACA;AAAA,EAAA;AAAA,EAEF,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,IAAA;AAAA,EACN;AAAA,EAEF,iBAAiB;AAAA,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AJ,EAAS,cAAc;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx as o, jsxs as l } from "react/jsx-runtime";
|
|
2
|
+
import { Duration as b } from "./duration.es.js";
|
|
3
|
+
import { FormField as g, FormItem as x, FormLabel as j, FormControl as q, FormMessage as C } from "./form.es.js";
|
|
4
|
+
const M = (n) => {
|
|
5
|
+
const { name: a, control: i, defaultValue: e, disabled: s, readOnly: d, showSeconds: m, rules: p, shouldUnregister: u, label: P, slotProps: r, required: t, ...c } = n;
|
|
6
|
+
return /* @__PURE__ */ o(
|
|
7
|
+
g,
|
|
8
|
+
{
|
|
9
|
+
control: i,
|
|
10
|
+
name: a,
|
|
11
|
+
defaultValue: e,
|
|
12
|
+
disabled: s,
|
|
13
|
+
rules: p,
|
|
14
|
+
shouldUnregister: u,
|
|
15
|
+
render: ({ field: { onChange: f, value: F, ...h } }) => /* @__PURE__ */ l(x, { ...c, children: [
|
|
16
|
+
/* @__PURE__ */ l(j, { ...r?.formLabelProps ?? {}, children: [
|
|
17
|
+
P,
|
|
18
|
+
t && /* @__PURE__ */ o("span", { className: "text-danger text-sm leading-4", children: "*" })
|
|
19
|
+
] }),
|
|
20
|
+
/* @__PURE__ */ o(q, { ...r?.formControlProps ?? {}, children: /* @__PURE__ */ o(
|
|
21
|
+
b,
|
|
22
|
+
{
|
|
23
|
+
...r?.durationProps ?? {},
|
|
24
|
+
disabled: s || d,
|
|
25
|
+
value: F,
|
|
26
|
+
defaultValue: e,
|
|
27
|
+
showSeconds: m,
|
|
28
|
+
onChange: f,
|
|
29
|
+
slotProps: { inputProps: { ...r?.durationProps?.slotProps?.inputProps, ...h, "aria-required": t } }
|
|
30
|
+
}
|
|
31
|
+
) }),
|
|
32
|
+
/* @__PURE__ */ o(C, { ...r?.formMessageProps ?? {} })
|
|
33
|
+
] })
|
|
34
|
+
}
|
|
35
|
+
);
|
|
36
|
+
};
|
|
37
|
+
export {
|
|
38
|
+
M as FormDuration
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=formduration.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formduration.es.js","sources":["../src/components/form-duration/FormDuration.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport { SlotProps } from \"@radix-ui/react-slot\";\r\nimport { Control, ControllerProps, FieldPath, FieldValues } from \"react-hook-form\";\r\n\r\nimport { Duration, DurationProps } from \"../duration/Duration\";\r\nimport { FormControl, FormField, FormItem, FormLabel, FormMessage } from \"../form/Form\";\r\n\r\ntype FormDurationProps<TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>> = Omit<\r\n ControllerProps<TFieldValues, TName>,\r\n \"render\"\r\n> &\r\n React.ComponentProps<typeof FormItem> & {\r\n label: string;\r\n control: Control<TFieldValues>;\r\n required?: boolean;\r\n readOnly?: boolean;\r\n showSeconds?: boolean;\r\n disabled?: boolean;\r\n slotProps?: {\r\n formLabelProps?: React.HTMLAttributes<HTMLLabelElement> & React.RefAttributes<HTMLLabelElement>;\r\n formMessageProps?: React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>;\r\n formControlProps?: Omit<SlotProps & React.RefAttributes<HTMLElement>, \"ref\"> & React.RefAttributes<HTMLElement>;\r\n durationProps?: Omit<DurationProps, \"ref\"> & React.RefAttributes<HTMLInputElement>;\r\n };\r\n };\r\n\r\nconst FormDuration = <TFieldValues extends FieldValues, TName extends FieldPath<TFieldValues>>(props: FormDurationProps<TFieldValues, TName>) => {\r\n const { name, control, defaultValue, disabled, readOnly, showSeconds, rules, shouldUnregister, label, slotProps, required, ...formItemProps } =\r\n props;\r\n\r\n return (\r\n <FormField\r\n control={control}\r\n name={name}\r\n defaultValue={defaultValue}\r\n disabled={disabled}\r\n rules={rules}\r\n shouldUnregister={shouldUnregister}\r\n render={({ field: { onChange, value, ...restField } }) => {\r\n return (\r\n <FormItem {...formItemProps}>\r\n <FormLabel {...(slotProps?.formLabelProps ?? {})}>\r\n {label}\r\n {required && <span className=\"text-danger text-sm leading-4\">*</span>}\r\n </FormLabel>\r\n <FormControl {...(slotProps?.formControlProps ?? {})}>\r\n <Duration\r\n {...(slotProps?.durationProps ?? {})}\r\n disabled={disabled || readOnly}\r\n value={value}\r\n defaultValue={defaultValue}\r\n showSeconds={showSeconds}\r\n onChange={onChange}\r\n slotProps={{ inputProps: { ...slotProps?.durationProps?.slotProps?.inputProps, ...restField, \"aria-required\": required } }}\r\n />\r\n </FormControl>\r\n <FormMessage {...(slotProps?.formMessageProps ?? {})} />\r\n </FormItem>\r\n );\r\n }}\r\n />\r\n );\r\n};\r\nexport { FormDuration, type FormDurationProps };\r\n"],"names":["FormDuration","props","name","control","defaultValue","disabled","readOnly","showSeconds","rules","shouldUnregister","label","slotProps","required","formItemProps","jsx","FormField","onChange","value","restField","jsxs","FormItem","FormLabel","FormControl","Duration","FormMessage"],"mappings":";;;AA2BA,MAAMA,IAAe,CAA0EC,MAAkD;AAC/I,QAAM,EAAE,MAAAC,GAAM,SAAAC,GAAS,cAAAC,GAAc,UAAAC,GAAU,UAAAC,GAAU,aAAAC,GAAa,OAAAC,GAAO,kBAAAC,GAAkB,OAAAC,GAAO,WAAAC,GAAW,UAAAC,GAAU,GAAGC,MAC5HZ;AAEF,SACE,gBAAAa;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAAAZ;AAAA,MACA,MAAAD;AAAA,MACA,cAAAE;AAAA,MACA,UAAAC;AAAA,MACA,OAAAG;AAAA,MACA,kBAAAC;AAAA,MACA,QAAQ,CAAC,EAAE,OAAO,EAAE,UAAAO,GAAU,OAAAC,GAAO,GAAGC,EAAA,QAEpC,gBAAAC,EAACC,GAAA,EAAU,GAAGP,GACZ,UAAA;AAAA,QAAA,gBAAAM,EAACE,GAAA,EAAW,GAAIV,GAAW,kBAAkB,CAAA,GAC1C,UAAA;AAAA,UAAAD;AAAA,UACAE,KAAY,gBAAAE,EAAC,QAAA,EAAK,WAAU,iCAAgC,UAAA,IAAA,CAAC;AAAA,QAAA,GAChE;AAAA,0BACCQ,GAAA,EAAa,GAAIX,GAAW,oBAAoB,CAAA,GAC/C,UAAA,gBAAAG;AAAA,UAACS;AAAA,UAAA;AAAA,YACE,GAAIZ,GAAW,iBAAiB,CAAA;AAAA,YACjC,UAAUN,KAAYC;AAAA,YACtB,OAAAW;AAAA,YACA,cAAAb;AAAA,YACA,aAAAG;AAAA,YACA,UAAAS;AAAA,YACA,WAAW,EAAE,YAAY,EAAE,GAAGL,GAAW,eAAe,WAAW,YAAY,GAAGO,GAAW,iBAAiBN,IAAS;AAAA,UAAE;AAAA,QAAA,GAE7H;AAAA,0BACCY,GAAA,EAAa,GAAIb,GAAW,oBAAoB,CAAA,EAAC,CAAI;AAAA,MAAA,GACxD;AAAA,IAEJ;AAAA,EAAA;AAGN;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -18,12 +18,14 @@ export { DateRangePicker, DesktopDateRangePicker, MobileDateRangePicker, type Da
|
|
|
18
18
|
export { TimePicker, MobileTimePicker, DesktopTimePicker, type Time, type TimePickerProps, type MobileTimePickerProps, type DesktopTimePickerProps, } from './components/date-picker/TimePicker';
|
|
19
19
|
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, type DialogCloseProps, type DialogContentProps, type DialogDescriptionProps, type DialogOverlayProps, type DialogPortalProps, type DialogProps, type DialogTitleProps, type DialogTriggerProps, } from './components/dialog/Dialog';
|
|
20
20
|
export { Drawer, DrawerContent, DrawerMain, type DrawerContentProps, type DrawerMainProps, type DrawerProps } from './components/drawer/Drawer';
|
|
21
|
+
export { Duration, type DurationProps } from './components/duration/Duration';
|
|
21
22
|
export { SwipableDrawer, SwipableDrawerTrigger, SwipableDrawerClose, SwipableDrawerContent, SwipableDrawerHeader, SwipableDrawerFooter, SwipableDrawerTitle, SwipableDrawerDescription, type SwipableDrawerProps, type SwipableDrawerTriggerProps, type SwipableDrawerCloseProps, type SwipableDrawerContentProps, type SwipableDrawerHeaderProps, type SwipableDrawerFooterProps, type SwipableDrawerTitleProps, type SwipableDrawerDescriptionProps, } from './components/drawer/SwipableDrawer';
|
|
22
23
|
export { Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage } from './components/form/Form';
|
|
23
24
|
export { FormCheckbox, type FormCheckboxProps } from './components/form-checkbox/FormCheckbox';
|
|
24
25
|
export { FormCombobox, type FormComboboxProps } from './components/form-combobox/FormCombobox';
|
|
25
26
|
export { FormDatePicker, type FormDatePickerProps } from './components/form-date-picker/FormDatePicker';
|
|
26
27
|
export { FormDateRangePicker, type FormDateRangePickerProps } from './components/form-date-range-picker/FormDateRangePicker';
|
|
28
|
+
export { FormDuration, type FormDurationProps } from './components/form-duration/FormDuration';
|
|
27
29
|
export { FormInput, type FormInputProps } from './components/form-input/FormInput';
|
|
28
30
|
export { FormMultiSelect, type FormMultiSelectProps } from './components/form-multi-select/FormMultiSelect';
|
|
29
31
|
export { FormRating, type FormRatingProps } from './components/form-rating/FormRating';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAC;AAErB,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAChH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,cAAc,EACd,cAAc,EACd,cAAc,EACd,cAAc,EACd,mBAAmB,GACpB,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AACtF,OAAO,EAA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,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EACL,OAAO,EACP,cAAc,EACd,cAAc,EACd,eAAe,EACf,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,GAC1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { Accordion as t, AccordionContent as a, AccordionItem as i, AccordionTrigger as
|
|
2
|
+
import { Accordion as t, AccordionContent as a, AccordionItem as i, AccordionTrigger as m } from "./accordion.es.js";
|
|
3
3
|
import { Avatar as p, AvatarFallback as l, AvatarImage as x } from "./avatar.es.js";
|
|
4
4
|
import { Badge as d } from "./badge.es.js";
|
|
5
5
|
import { Breadcrumb as c, BreadcrumbEllipsis as u, BreadcrumbItem as f, BreadcrumbLink as C, BreadcrumbList as g, BreadcrumbPage as D, BreadcrumbSeparator as s } from "./breadcrumb.es.js";
|
|
@@ -12,59 +12,61 @@ import { Collapsible as O, CollapsibleContent as V, CollapsibleTrigger as z } fr
|
|
|
12
12
|
import { Combobox as j } from "./combobox.es.js";
|
|
13
13
|
import { Command as J, CommandDialog as K, CommandEmpty as N, CommandGroup as Q, CommandInput as W, CommandItem as X, CommandList as Y, CommandSeparator as Z, CommandShortcut as _ } from "./command.es.js";
|
|
14
14
|
import { ConfirmProvider as ee, useConfirm as re } from "./confirm.es.js";
|
|
15
|
-
import { ContextMenu as te, ContextMenuCheckboxItem as ae, ContextMenuContent as ie, ContextMenuGroup as
|
|
15
|
+
import { ContextMenu as te, ContextMenuCheckboxItem as ae, ContextMenuContent as ie, ContextMenuGroup as me, ContextMenuItem as ne, ContextMenuLabel as pe, ContextMenuPortal as le, ContextMenuRadioGroup as xe, ContextMenuRadioItem as Se, ContextMenuSeparator as de, ContextMenuShortcut as be, ContextMenuSub as ce, ContextMenuSubContent as ue, ContextMenuSubTrigger as fe, ContextMenuTrigger as Ce } from "./contextmenu.es.js";
|
|
16
16
|
import { DataGrid as De, DataGridActionBar as se, DataGridContent as Me, DeleteAction as Te, ExtraActions as Fe, FreezeAction as Pe, PrintAction as he, RefreshAction as ke, SearchAction as we, dataGridDefaultTheme as Ae, useDataGrid as Ie } from "./datagrid.es.js";
|
|
17
17
|
import { DatePicker as Ge } from "./datepicker.es.js";
|
|
18
18
|
import { DateRangePicker as Re } from "./daterangepicker.es.js";
|
|
19
19
|
import { TimePicker as He } from "./timepicker.es.js";
|
|
20
20
|
import { Dialog as Ee, DialogClose as Oe, DialogContent as Ve, DialogDescription as ze, DialogFooter as Ue, DialogHeader as je, DialogOverlay as qe, DialogPortal as Je, DialogTitle as Ke, DialogTrigger as Ne } from "./dialog.es.js";
|
|
21
21
|
import { Drawer as We, DrawerContent as Xe, DrawerMain as Ye } from "./drawer.es.js";
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import {
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import {
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
44
|
-
import {
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
22
|
+
import { Duration as _e } from "./duration.es.js";
|
|
23
|
+
import { SwipableDrawer as er, SwipableDrawerClose as rr, SwipableDrawerContent as or, SwipableDrawerDescription as tr, SwipableDrawerFooter as ar, SwipableDrawerHeader as ir, SwipableDrawerTitle as mr, SwipableDrawerTrigger as nr } from "./swipabledrawer.es.js";
|
|
24
|
+
import { Form as lr, FormControl as xr, FormDescription as Sr, FormField as dr, FormItem as br, FormLabel as cr, FormMessage as ur } from "./form.es.js";
|
|
25
|
+
import { FormCheckbox as Cr } from "./formcheckbox.es.js";
|
|
26
|
+
import { FormCombobox as Dr } from "./formcombobox.es.js";
|
|
27
|
+
import { FormDatePicker as Mr } from "./formdatepicker.es.js";
|
|
28
|
+
import { FormDateRangePicker as Fr } from "./formdaterangepicker.es.js";
|
|
29
|
+
import { FormDuration as hr } from "./formduration.es.js";
|
|
30
|
+
import { FormInput as wr } from "./forminput.es.js";
|
|
31
|
+
import { FormMultiSelect as Ir } from "./formmultiselect.es.js";
|
|
32
|
+
import { FormRating as Gr } from "./formrating.es.js";
|
|
33
|
+
import { FormSelect as Rr } from "./formselect.es.js";
|
|
34
|
+
import { FormSwitch as Hr } from "./formswitch.es.js";
|
|
35
|
+
import { FormTextarea as Er } from "./formtextarea.es.js";
|
|
36
|
+
import { FormTimePicker as Vr } from "./formtimepicker.es.js";
|
|
37
|
+
import { IconButton as Ur } from "./iconbutton.es.js";
|
|
38
|
+
import { Label as qr } from "./label.es.js";
|
|
39
|
+
import { Modal as Kr, ModalFooter as Nr } from "./modal.es.js";
|
|
40
|
+
import { MultiSelect as Wr } from "./multiselect.es.js";
|
|
41
|
+
import { Popover as Yr, PopoverAnchor as Zr, PopoverContent as _r, PopoverTrigger as $r } from "./popover.es.js";
|
|
42
|
+
import { Progress as ro } from "./progress.es.js";
|
|
43
|
+
import { RadioGroup as to, RadioGroupItem as ao } from "./radiogroup.es.js";
|
|
44
|
+
import { Rating as mo } from "./rating.es.js";
|
|
45
|
+
import { Select as po, SelectContent as lo, SelectGroup as xo, SelectItem as So, SelectLabel as bo, SelectScrollDownButton as co, SelectScrollUpButton as uo, SelectSeparator as fo, SelectTrigger as Co, SelectValue as go } from "./select.es.js";
|
|
46
|
+
import { Separator as so } from "./separator.es.js";
|
|
47
|
+
import { Sheet as To, SheetClose as Fo, SheetContent as Po, SheetDescription as ho, SheetFooter as ko, SheetHeader as wo, SheetOverlay as Ao, SheetPortal as Io, SheetTitle as Bo, SheetTrigger as Go } from "./sheet.es.js";
|
|
48
|
+
import { Sidebar as Ro, SidebarContent as Lo, SidebarFooter as Ho, SidebarGroup as yo, SidebarGroupAction as Eo, SidebarGroupContent as Oo, SidebarGroupLabel as Vo, SidebarHeader as zo, SidebarInset as Uo, SidebarMenu as jo, SidebarMenuAction as qo, SidebarMenuBadge as Jo, SidebarMenuButton as Ko, SidebarMenuItem as No, SidebarMenuSkeleton as Qo, SidebarMenuSub as Wo, SidebarMenuSubButton as Xo, SidebarMenuSubItem as Yo, SidebarProvider as Zo, SidebarRail as _o, SidebarSeparator as $o, SidebarTrigger as et, useSidebar as rt } from "./sidebar.es.js";
|
|
49
|
+
import { Skeleton as tt } from "./skeleton.es.js";
|
|
50
|
+
import { Switch as it } from "./switch.es.js";
|
|
51
|
+
import { Tabs as nt, TabsContent as pt, TabsList as lt, TabsTrigger as xt } from "./tabs.es.js";
|
|
52
|
+
import { TextField as dt } from "./textfield.es.js";
|
|
53
|
+
import { Textarea as ct } from "./textarea.es.js";
|
|
54
|
+
import { Toast as ft } from "./toast.es.js";
|
|
55
|
+
import { toast as gt } from "./use-toast.es.js";
|
|
56
|
+
import { Tooltip as st, TooltipContent as Mt, TooltipProvider as Tt, TooltipTrigger as Ft } from "./tooltip.es.js";
|
|
57
|
+
import { useIsMobile as ht } from "./use-mobile.es.js";
|
|
58
|
+
import { cn as wt } from "./utils.es.js";
|
|
59
|
+
import { DesktopDatePicker as It } from "./desktopdatepicker.es.js";
|
|
60
|
+
import { MobileDatePicker as Gt } from "./mobiledatepicker.es.js";
|
|
61
|
+
import { DesktopDateRangePicker as Rt } from "./desktopdaterangepicker.es.js";
|
|
62
|
+
import { MobileDateRangePicker as Ht } from "./mobiledaterangepicker.es.js";
|
|
63
|
+
import { MobileTimePicker as Et } from "./mobiletimepicker.es.js";
|
|
64
|
+
import { DesktopTimePicker as Vt } from "./desktoptimepicker.es.js";
|
|
63
65
|
export {
|
|
64
66
|
t as Accordion,
|
|
65
67
|
a as AccordionContent,
|
|
66
68
|
i as AccordionItem,
|
|
67
|
-
|
|
69
|
+
m as AccordionTrigger,
|
|
68
70
|
p as Avatar,
|
|
69
71
|
l as AvatarFallback,
|
|
70
72
|
x as AvatarImage,
|
|
@@ -103,8 +105,8 @@ export {
|
|
|
103
105
|
te as ContextMenu,
|
|
104
106
|
ae as ContextMenuCheckboxItem,
|
|
105
107
|
ie as ContextMenuContent,
|
|
106
|
-
|
|
107
|
-
|
|
108
|
+
me as ContextMenuGroup,
|
|
109
|
+
ne as ContextMenuItem,
|
|
108
110
|
pe as ContextMenuLabel,
|
|
109
111
|
le as ContextMenuPortal,
|
|
110
112
|
xe as ContextMenuRadioGroup,
|
|
@@ -121,9 +123,9 @@ export {
|
|
|
121
123
|
Ge as DatePicker,
|
|
122
124
|
Re as DateRangePicker,
|
|
123
125
|
Te as DeleteAction,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
It as DesktopDatePicker,
|
|
127
|
+
Rt as DesktopDateRangePicker,
|
|
128
|
+
Vt as DesktopTimePicker,
|
|
127
129
|
Ee as Dialog,
|
|
128
130
|
Oe as DialogClose,
|
|
129
131
|
Ve as DialogContent,
|
|
@@ -137,117 +139,119 @@ export {
|
|
|
137
139
|
We as Drawer,
|
|
138
140
|
Xe as DrawerContent,
|
|
139
141
|
Ye as DrawerMain,
|
|
142
|
+
_e as Duration,
|
|
140
143
|
Fe as ExtraActions,
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
144
|
+
lr as Form,
|
|
145
|
+
Cr as FormCheckbox,
|
|
146
|
+
Dr as FormCombobox,
|
|
147
|
+
xr as FormControl,
|
|
148
|
+
Mr as FormDatePicker,
|
|
149
|
+
Fr as FormDateRangePicker,
|
|
150
|
+
Sr as FormDescription,
|
|
151
|
+
hr as FormDuration,
|
|
152
|
+
dr as FormField,
|
|
153
|
+
wr as FormInput,
|
|
154
|
+
br as FormItem,
|
|
155
|
+
cr as FormLabel,
|
|
156
|
+
ur as FormMessage,
|
|
157
|
+
Ir as FormMultiSelect,
|
|
158
|
+
Gr as FormRating,
|
|
159
|
+
Rr as FormSelect,
|
|
160
|
+
Hr as FormSwitch,
|
|
161
|
+
Er as FormTextarea,
|
|
162
|
+
Vr as FormTimePicker,
|
|
159
163
|
Pe as FreezeAction,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
164
|
+
Ur as IconButton,
|
|
165
|
+
qr as Label,
|
|
166
|
+
Gt as MobileDatePicker,
|
|
167
|
+
Ht as MobileDateRangePicker,
|
|
168
|
+
Et as MobileTimePicker,
|
|
169
|
+
Kr as Modal,
|
|
170
|
+
Nr as ModalFooter,
|
|
171
|
+
Wr as MultiSelect,
|
|
172
|
+
Yr as Popover,
|
|
173
|
+
Zr as PopoverAnchor,
|
|
174
|
+
_r as PopoverContent,
|
|
175
|
+
$r as PopoverTrigger,
|
|
172
176
|
he as PrintAction,
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
+
ro as Progress,
|
|
178
|
+
to as RadioGroup,
|
|
179
|
+
ao as RadioGroupItem,
|
|
180
|
+
mo as Rating,
|
|
177
181
|
ke as RefreshAction,
|
|
178
182
|
we as SearchAction,
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
183
|
+
po as Select,
|
|
184
|
+
lo as SelectContent,
|
|
185
|
+
xo as SelectGroup,
|
|
186
|
+
So as SelectItem,
|
|
187
|
+
bo as SelectLabel,
|
|
188
|
+
co as SelectScrollDownButton,
|
|
189
|
+
uo as SelectScrollUpButton,
|
|
190
|
+
fo as SelectSeparator,
|
|
191
|
+
Co as SelectTrigger,
|
|
192
|
+
go as SelectValue,
|
|
193
|
+
so as Separator,
|
|
194
|
+
To as Sheet,
|
|
195
|
+
Fo as SheetClose,
|
|
196
|
+
Po as SheetContent,
|
|
197
|
+
ho as SheetDescription,
|
|
198
|
+
ko as SheetFooter,
|
|
199
|
+
wo as SheetHeader,
|
|
200
|
+
Ao as SheetOverlay,
|
|
201
|
+
Io as SheetPortal,
|
|
202
|
+
Bo as SheetTitle,
|
|
203
|
+
Go as SheetTrigger,
|
|
204
|
+
Ro as Sidebar,
|
|
205
|
+
Lo as SidebarContent,
|
|
206
|
+
Ho as SidebarFooter,
|
|
207
|
+
yo as SidebarGroup,
|
|
208
|
+
Eo as SidebarGroupAction,
|
|
209
|
+
Oo as SidebarGroupContent,
|
|
210
|
+
Vo as SidebarGroupLabel,
|
|
211
|
+
zo as SidebarHeader,
|
|
212
|
+
Uo as SidebarInset,
|
|
213
|
+
jo as SidebarMenu,
|
|
214
|
+
qo as SidebarMenuAction,
|
|
215
|
+
Jo as SidebarMenuBadge,
|
|
216
|
+
Ko as SidebarMenuButton,
|
|
217
|
+
No as SidebarMenuItem,
|
|
218
|
+
Qo as SidebarMenuSkeleton,
|
|
219
|
+
Wo as SidebarMenuSub,
|
|
220
|
+
Xo as SidebarMenuSubButton,
|
|
221
|
+
Yo as SidebarMenuSubItem,
|
|
222
|
+
Zo as SidebarProvider,
|
|
223
|
+
_o as SidebarRail,
|
|
224
|
+
$o as SidebarSeparator,
|
|
225
|
+
et as SidebarTrigger,
|
|
226
|
+
tt as Skeleton,
|
|
227
|
+
er as SwipableDrawer,
|
|
228
|
+
rr as SwipableDrawerClose,
|
|
229
|
+
or as SwipableDrawerContent,
|
|
230
|
+
tr as SwipableDrawerDescription,
|
|
231
|
+
ar as SwipableDrawerFooter,
|
|
232
|
+
ir as SwipableDrawerHeader,
|
|
233
|
+
mr as SwipableDrawerTitle,
|
|
234
|
+
nr as SwipableDrawerTrigger,
|
|
235
|
+
it as Switch,
|
|
236
|
+
nt as Tabs,
|
|
237
|
+
pt as TabsContent,
|
|
238
|
+
lt as TabsList,
|
|
239
|
+
xt as TabsTrigger,
|
|
240
|
+
dt as TextField,
|
|
241
|
+
ct as Textarea,
|
|
238
242
|
He as TimePicker,
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
243
|
+
ft as Toast,
|
|
244
|
+
st as Tooltip,
|
|
245
|
+
Mt as TooltipContent,
|
|
246
|
+
Tt as TooltipProvider,
|
|
247
|
+
Ft as TooltipTrigger,
|
|
244
248
|
F as buttonVariants,
|
|
245
|
-
|
|
249
|
+
wt as cn,
|
|
246
250
|
Ae as dataGridDefaultTheme,
|
|
247
|
-
|
|
251
|
+
gt as toast,
|
|
248
252
|
re as useConfirm,
|
|
249
253
|
Ie as useDataGrid,
|
|
250
|
-
|
|
251
|
-
|
|
254
|
+
ht as useIsMobile,
|
|
255
|
+
rt as useSidebar
|
|
252
256
|
};
|
|
253
257
|
//# sourceMappingURL=index.es.js.map
|
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@trsys-tech/matrix-library",
|
|
3
3
|
"description": "MatrixUI Library",
|
|
4
4
|
"private": false,
|
|
5
|
-
"version": "0.5.1-alpha.
|
|
5
|
+
"version": "0.5.1-alpha.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"module": "dist/index.es.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"./package.json": "./package.json",
|
|
18
18
|
"./dist/*": "./dist/*",
|
|
19
|
-
"./
|
|
19
|
+
"./styles.css": "./dist/styles.css"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist"
|