anysystem-design 0.0.29 → 0.0.31
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/AutoComplete/AutoCompleteBase.d.ts +1 -0
- package/dist/components/AutoComplete/AutoCompleteBase.js +81 -59
- package/dist/components/AutoComplete/AutoCompleteMultiple.js +8 -7
- package/dist/components/Checkbox/CheckboxBase.js +55 -30
- package/dist/components/Checkbox/FormCheckbox.js +1 -1
- package/dist/components/Column/Column.d.ts +1 -1
- package/dist/components/Column/Column.js +20 -10
- package/dist/components/DataTable/components/FieldSelectbox.js +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.js +101 -6662
- package/dist/components/FormControl/FormComponent.d.ts +5 -3
- package/dist/components/FormControl/FormComponent.js +38 -11
- package/dist/components/FormControl/FormContent.d.ts +13 -0
- package/dist/components/FormControl/FormContent.js +87 -0
- package/dist/components/FormControl/FormControl.d.ts +4 -29
- package/dist/components/FormControl/FormControl.js +48 -20
- package/dist/components/FormControl/helpers.d.ts +9 -0
- package/dist/components/FormControl/helpers.js +90 -0
- package/dist/components/FormControl/index.d.ts +3 -0
- package/dist/components/FormControl/index.js +8 -4
- package/dist/components/FormControl/type.d.ts +87 -0
- package/dist/components/FormControl/type.js +1 -0
- package/dist/components/Icon/Icon.js +1 -1
- package/dist/components/Input/FormInput.js +9 -9
- package/dist/components/Input/Input.d.ts +2 -4
- package/dist/components/Input/Input.js +3 -4
- package/dist/components/Input/InputTel.d.ts +5 -16
- package/dist/components/Input/InputTel.js +24 -25
- package/dist/components/Label/FormLabel.js +3 -3
- package/dist/components/PasswordInput/FormPasswordInput.js +5 -5
- package/dist/components/Row/Row.d.ts +1 -0
- package/dist/components/Row/Row.js +2 -1
- package/dist/components/Row/index.js +3 -2
- package/dist/components/Selectbox/FormSelectbox.js +1 -1
- package/dist/components/Selectbox/SelectboxMultiple.js +18 -17
- package/dist/components/TelephoneInput/TelephoneInput.d.ts +17 -0
- package/dist/components/TelephoneInput/TelephoneInput.js +68 -0
- package/dist/components/TelephoneInput/index.d.ts +2 -2
- package/dist/components/TelephoneInput/index.js +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +46 -41
- package/dist/core.esm-Cdxdv0vp.js +2718 -0
- package/dist/features/FormBuilder/FormBuilder.d.ts +8 -0
- package/dist/features/FormBuilder/FormBuilder.js +190 -0
- package/dist/features/FormBuilder/components/BuilderColumn.d.ts +10 -0
- package/dist/features/FormBuilder/components/BuilderColumn.js +14 -0
- package/dist/features/FormBuilder/components/BuilderRow.d.ts +10 -0
- package/dist/features/FormBuilder/components/BuilderRow.js +56 -0
- package/dist/features/FormBuilder/components/Controller.d.ts +8 -0
- package/dist/features/FormBuilder/components/Controller.js +63 -0
- package/dist/features/FormBuilder/components/Draggable.d.ts +10 -0
- package/dist/features/FormBuilder/components/Draggable.js +36 -0
- package/dist/features/FormBuilder/components/DraggableFormControl.d.ts +8 -0
- package/dist/features/FormBuilder/components/DraggableFormControl.js +35 -0
- package/dist/features/FormBuilder/components/Droppable.d.ts +9 -0
- package/dist/features/FormBuilder/components/Droppable.js +22 -0
- package/dist/features/FormBuilder/components/RowController.d.ts +9 -0
- package/dist/features/FormBuilder/components/RowController.js +24 -0
- package/dist/features/FormBuilder/constants/component_type.d.ts +106 -0
- package/dist/features/FormBuilder/constants/component_type.js +227 -0
- package/dist/features/FormBuilder/contexts/FormBuilderContext.d.ts +15 -0
- package/dist/features/FormBuilder/contexts/FormBuilderContext.js +29 -0
- package/dist/features/FormBuilder/index.d.ts +3 -0
- package/dist/features/FormBuilder/index.js +4 -0
- package/dist/features/FormBuilder/type.d.ts +13 -0
- package/dist/features/FormBuilder/type.js +1 -0
- package/dist/features/index.d.ts +2 -0
- package/dist/features/index.js +4 -0
- package/dist/{formik.esm-C1r1xebq.js → formik.esm-C4MFRNh0.js} +8 -7
- package/dist/headless-datepicker-BV7tOa5a.js +6568 -0
- package/dist/{index-DUypCuzD.js → index-CHNNgawm.js} +3 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.esm-tvWIpiMA.js +1720 -0
- package/dist/index.js +54 -47
- package/dist/sortable.esm-CtIsNNOX.js +406 -0
- package/package.json +34 -31
|
@@ -13,6 +13,7 @@ export type AutoCompleteBaseProps<ListOption extends SelectOption> = {
|
|
|
13
13
|
readOnly?: boolean;
|
|
14
14
|
className?: string;
|
|
15
15
|
placeholder?: string;
|
|
16
|
+
closeButton?: boolean;
|
|
16
17
|
onChange?: (value: string) => void;
|
|
17
18
|
onSearch?: (query: string) => void;
|
|
18
19
|
valueField?: ValueField<ListOption>;
|
|
@@ -1,91 +1,113 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { t as
|
|
4
|
-
import { H as
|
|
5
|
-
import { c as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
import { jsx as r, jsxs as m } from "react/jsx-runtime";
|
|
2
|
+
import y, { Fragment as h } from "react";
|
|
3
|
+
import { t as f } from "../../bundle-mjs-SHnj3fHy.js";
|
|
4
|
+
import { H as E } from "../../index-BVp57yIc.js";
|
|
5
|
+
import { c as C } from "../../index-CBEJ8A3p.js";
|
|
6
|
+
import { G as w } from "../../iconBase-Bipuk9tK.js";
|
|
7
|
+
import { getValue as c } from "../Selectbox/helper.js";
|
|
8
|
+
import { N, G as A, H as L, z as S, K as H } from "../../combobox-DcjIgW1K.js";
|
|
9
|
+
import { X as T } from "../../transition-6o20faRl.js";
|
|
10
|
+
function R(t) {
|
|
11
|
+
return w({ tag: "svg", attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z" }, child: [] }] })(t);
|
|
12
|
+
}
|
|
13
|
+
const k = (t, a) => a.type === "SEARCH" ? {
|
|
10
14
|
...t,
|
|
11
|
-
query:
|
|
12
|
-
filterList: t.list.filter((l) => l.label.toLowerCase().includes(
|
|
13
|
-
} :
|
|
15
|
+
query: a.query,
|
|
16
|
+
filterList: t.list.filter((l) => l.label.toLowerCase().includes(a.query.toLowerCase()))
|
|
17
|
+
} : a.type === "SETVALUE" ? {
|
|
14
18
|
...t,
|
|
15
|
-
value:
|
|
16
|
-
selected: t.list.find((l) =>
|
|
17
|
-
} :
|
|
19
|
+
value: a.value,
|
|
20
|
+
selected: t.list.find((l) => c(l, t.valueField) === a.value) || null
|
|
21
|
+
} : a.type === "SETSELECT" ? {
|
|
18
22
|
...t,
|
|
19
|
-
selected:
|
|
20
|
-
value:
|
|
21
|
-
} : t,
|
|
23
|
+
selected: a.selected,
|
|
24
|
+
value: c(a.selected, t.valueField) + ""
|
|
25
|
+
} : t, q = ({
|
|
22
26
|
id: t,
|
|
23
|
-
name:
|
|
27
|
+
name: a,
|
|
24
28
|
options: l,
|
|
25
29
|
value: i = "",
|
|
26
|
-
valueField:
|
|
27
|
-
onChange:
|
|
28
|
-
onSearch:
|
|
29
|
-
placeholder: v
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
valueField: d = "value",
|
|
31
|
+
onChange: u,
|
|
32
|
+
onSearch: p,
|
|
33
|
+
placeholder: v,
|
|
34
|
+
closeButton: g = !0
|
|
35
|
+
}, b) => {
|
|
36
|
+
const [n, s] = y.useReducer(k, {
|
|
32
37
|
list: l,
|
|
33
38
|
query: "",
|
|
34
39
|
filterList: l,
|
|
35
40
|
value: i,
|
|
36
|
-
valueField:
|
|
41
|
+
valueField: d,
|
|
37
42
|
selected: l.find((e) => {
|
|
38
|
-
const
|
|
39
|
-
return i ?
|
|
43
|
+
const o = c(e, d);
|
|
44
|
+
return i ? o === i : !1;
|
|
40
45
|
}) || null
|
|
41
46
|
});
|
|
42
|
-
return
|
|
47
|
+
return y.useImperativeHandle(b, () => ({
|
|
43
48
|
search: (e) => s({ type: "SEARCH", query: e }),
|
|
44
49
|
setValue: (e) => s({ type: "SETVALUE", value: e })
|
|
45
|
-
})), /* @__PURE__ */
|
|
46
|
-
|
|
50
|
+
})), /* @__PURE__ */ r(
|
|
51
|
+
N,
|
|
47
52
|
{
|
|
48
|
-
value:
|
|
53
|
+
value: n.selected,
|
|
49
54
|
onChange: (e) => {
|
|
50
55
|
s({
|
|
51
56
|
type: "SETSELECT",
|
|
52
57
|
selected: e
|
|
53
|
-
}),
|
|
58
|
+
}), u && u(e ? c(e, d) : "");
|
|
54
59
|
},
|
|
55
|
-
children: /* @__PURE__ */
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
|
|
60
|
+
children: /* @__PURE__ */ m("div", { className: "relative", children: [
|
|
61
|
+
/* @__PURE__ */ r(
|
|
62
|
+
A,
|
|
58
63
|
{
|
|
59
64
|
placeholder: v,
|
|
60
65
|
onChange: (e) => {
|
|
61
|
-
s({ type: "SEARCH", query: e.target.value }),
|
|
66
|
+
s({ type: "SEARCH", query: e.target.value }), p && p(e.target.value);
|
|
62
67
|
},
|
|
63
68
|
autoComplete: "off",
|
|
64
69
|
displayValue: (e) => (e == null ? void 0 : e.label) || ""
|
|
65
70
|
}
|
|
66
71
|
),
|
|
67
|
-
/* @__PURE__ */
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
72
|
+
/* @__PURE__ */ m("div", { className: "absolute inset-y-0 right-0 flex items-center pr-2", children: [
|
|
73
|
+
/* @__PURE__ */ r(
|
|
74
|
+
"button",
|
|
75
|
+
{
|
|
76
|
+
type: "button",
|
|
77
|
+
className: f(
|
|
78
|
+
"size-5 text-gray-400 hover:text-gray-500 rounded-full hover:bg-gray-200 items-center flex justify-center",
|
|
79
|
+
n.value ? "" : "hidden",
|
|
80
|
+
g ? "" : "!hidden"
|
|
81
|
+
),
|
|
82
|
+
onClick: () => {
|
|
83
|
+
s({ type: "SETVALUE", value: "" }), s({ type: "SEARCH", query: "" }), u && u("");
|
|
84
|
+
},
|
|
85
|
+
children: /* @__PURE__ */ r(R, {})
|
|
86
|
+
}
|
|
87
|
+
),
|
|
88
|
+
/* @__PURE__ */ r(L, { className: "items-center", children: /* @__PURE__ */ r(
|
|
89
|
+
E,
|
|
90
|
+
{
|
|
91
|
+
className: "text-gray-400 size-5",
|
|
92
|
+
"aria-hidden": "true"
|
|
93
|
+
}
|
|
94
|
+
) })
|
|
95
|
+
] }),
|
|
96
|
+
/* @__PURE__ */ r(
|
|
75
97
|
"input",
|
|
76
98
|
{
|
|
77
99
|
className: "!hidden",
|
|
78
100
|
type: "text",
|
|
79
101
|
id: t,
|
|
80
|
-
name:
|
|
102
|
+
name: a,
|
|
81
103
|
readOnly: !0,
|
|
82
|
-
value:
|
|
104
|
+
value: n.value + ""
|
|
83
105
|
}
|
|
84
106
|
),
|
|
85
|
-
/* @__PURE__ */
|
|
86
|
-
|
|
107
|
+
/* @__PURE__ */ r(
|
|
108
|
+
T,
|
|
87
109
|
{
|
|
88
|
-
as:
|
|
110
|
+
as: h,
|
|
89
111
|
enter: "transition duration-100 ease-out",
|
|
90
112
|
enterFrom: "scale-95 transform opacity-0",
|
|
91
113
|
enterTo: "scale-100 transform opacity-100",
|
|
@@ -93,23 +115,23 @@ const A = (t, r) => r.type === "SEARCH" ? {
|
|
|
93
115
|
leaveFrom: "scale-100 transform opacity-100",
|
|
94
116
|
leaveTo: "scale-95 transform opacity-0",
|
|
95
117
|
afterLeave: () => s({ type: "SEARCH", query: "" }),
|
|
96
|
-
children: /* @__PURE__ */
|
|
118
|
+
children: /* @__PURE__ */ r(S, { className: "absolute z-50 w-full py-1 mt-5 overflow-auto text-base bg-white shadow-lg max-h-60 rounded-md ring-1 ring-black/5 focus:outline-none dark:bg-gray-900 sm:text-sm", children: n.filterList.map((e) => /* @__PURE__ */ r(H, { as: h, value: e, children: ({ selected: o, focus: x }) => /* @__PURE__ */ m(
|
|
97
119
|
"li",
|
|
98
120
|
{
|
|
99
|
-
className:
|
|
121
|
+
className: f(
|
|
100
122
|
"relative flex cursor-pointer justify-between px-5 py-4 text-black hover:bg-primary-100 dark:text-white",
|
|
101
|
-
(
|
|
123
|
+
(o || x) && "bg-primary-100 dark:bg-gray-700",
|
|
102
124
|
e.enable === !1 && "cursor-not-allowed opacity-50"
|
|
103
125
|
),
|
|
104
126
|
children: [
|
|
105
|
-
/* @__PURE__ */
|
|
106
|
-
|
|
127
|
+
/* @__PURE__ */ r("span", { className: "pl-5", children: e.label }),
|
|
128
|
+
o ? /* @__PURE__ */ r(
|
|
107
129
|
"span",
|
|
108
130
|
{
|
|
109
|
-
className:
|
|
131
|
+
className: f(
|
|
110
132
|
"absolute inset-y-0 left-0 flex items-center pl-3 text-primary-600"
|
|
111
133
|
),
|
|
112
|
-
children: /* @__PURE__ */
|
|
134
|
+
children: /* @__PURE__ */ r(C, { className: "w-5 h-5", "aria-hidden": "true" })
|
|
113
135
|
}
|
|
114
136
|
) : null
|
|
115
137
|
]
|
|
@@ -120,7 +142,7 @@ const A = (t, r) => r.type === "SEARCH" ? {
|
|
|
120
142
|
] })
|
|
121
143
|
}
|
|
122
144
|
);
|
|
123
|
-
},
|
|
145
|
+
}, X = y.forwardRef(q);
|
|
124
146
|
export {
|
|
125
|
-
|
|
147
|
+
X as default
|
|
126
148
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { jsx as l, jsxs as m } from "react/jsx-runtime";
|
|
2
2
|
import p, { Fragment as v } from "react";
|
|
3
|
-
import { _ as
|
|
3
|
+
import { _ as x } from "../../lodash-DH2GRwR5.js";
|
|
4
4
|
import { t as E } from "../../bundle-mjs-SHnj3fHy.js";
|
|
5
5
|
import { H as C } from "../../index-BVp57yIc.js";
|
|
6
6
|
import { c as w } from "../../index-CBEJ8A3p.js";
|
|
7
|
-
import {
|
|
7
|
+
import { f as N } from "../../index-CHNNgawm.js";
|
|
8
8
|
import { getValue as o } from "../Selectbox/helper.js";
|
|
9
9
|
import { N as L, G as S, H as T, z as q, K as A } from "../../combobox-DcjIgW1K.js";
|
|
10
10
|
import { X as R } from "../../transition-6o20faRl.js";
|
|
@@ -50,7 +50,7 @@ const k = (r, t) => {
|
|
|
50
50
|
onChange: f,
|
|
51
51
|
onSearch: y,
|
|
52
52
|
placeholder: g
|
|
53
|
-
},
|
|
53
|
+
}, b) => {
|
|
54
54
|
var h;
|
|
55
55
|
const [s, c] = p.useReducer(k, {
|
|
56
56
|
query: "",
|
|
@@ -60,10 +60,10 @@ const k = (r, t) => {
|
|
|
60
60
|
valueField: n,
|
|
61
61
|
selected: u.filter((e) => {
|
|
62
62
|
const i = o(e, n);
|
|
63
|
-
return
|
|
63
|
+
return x.some(a, (d) => d + "" == i + "");
|
|
64
64
|
}) || []
|
|
65
65
|
});
|
|
66
|
-
return p.useImperativeHandle(
|
|
66
|
+
return p.useImperativeHandle(b, () => ({
|
|
67
67
|
search: (e) => {
|
|
68
68
|
c({ type: "SEARCH", query: e });
|
|
69
69
|
},
|
|
@@ -89,6 +89,7 @@ const k = (r, t) => {
|
|
|
89
89
|
/* @__PURE__ */ l(
|
|
90
90
|
"button",
|
|
91
91
|
{
|
|
92
|
+
type: "button",
|
|
92
93
|
onClick: () => c({ type: "REMOVESELECT", selected: e }),
|
|
93
94
|
children: /* @__PURE__ */ l(N, { fontSize: 12, className: "font-bold" })
|
|
94
95
|
}
|
|
@@ -114,7 +115,7 @@ const k = (r, t) => {
|
|
|
114
115
|
/* @__PURE__ */ l(T, { className: "absolute inset-y-0 right-0 flex items-center pr-2", children: /* @__PURE__ */ l(
|
|
115
116
|
C,
|
|
116
117
|
{
|
|
117
|
-
className: "
|
|
118
|
+
className: "w-5 h-5 text-gray-400",
|
|
118
119
|
"aria-hidden": "true"
|
|
119
120
|
}
|
|
120
121
|
) }),
|
|
@@ -140,7 +141,7 @@ const k = (r, t) => {
|
|
|
140
141
|
leaveFrom: "scale-100 transform opacity-100",
|
|
141
142
|
leaveTo: "scale-95 transform opacity-0",
|
|
142
143
|
afterLeave: () => c({ type: "SEARCH", query: "" }),
|
|
143
|
-
children: /* @__PURE__ */ l(q, { className: "absolute
|
|
144
|
+
children: /* @__PURE__ */ l(q, { className: "absolute w-full py-1 mt-10 overflow-auto text-base bg-white shadow-lg max-h-60 rounded-md ring-1 ring-black/5 focus:outline-none dark:bg-gray-900 sm:text-sm", children: s.filterList.map((e) => /* @__PURE__ */ l(A, { as: v, value: e, children: ({ selected: i, focus: d }) => /* @__PURE__ */ m(
|
|
144
145
|
"li",
|
|
145
146
|
{
|
|
146
147
|
className: E(
|
|
@@ -1,32 +1,57 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
1
|
+
import { jsxs as i, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import d from "react";
|
|
3
|
+
import { b as s, c as u } from "../../index-CHNNgawm.js";
|
|
4
|
+
import { t as f } from "../../bundle-mjs-SHnj3fHy.js";
|
|
5
|
+
const w = ({
|
|
6
|
+
className: n,
|
|
7
|
+
isError: c,
|
|
8
|
+
inputProps: t,
|
|
9
|
+
intermediate: o = !1,
|
|
10
|
+
...l
|
|
11
|
+
}) => {
|
|
12
|
+
const a = d.useRef(null);
|
|
13
|
+
return /* @__PURE__ */ i("div", { className: "relative w-5 h-5 overflow-hidden rounded", children: [
|
|
14
|
+
/* @__PURE__ */ r(
|
|
15
|
+
"input",
|
|
16
|
+
{
|
|
17
|
+
ref: a,
|
|
18
|
+
type: "checkbox",
|
|
19
|
+
className: f(
|
|
20
|
+
"relative ",
|
|
21
|
+
"peer block h-full w-full cursor-pointer appearance-none rounded border-2 border-gray-400 focus:outline-4 focus:outline-blue-500 bg-transparent",
|
|
22
|
+
"checked:border-primary-600",
|
|
23
|
+
o && "border-primary-600",
|
|
24
|
+
c && "border-red-500",
|
|
25
|
+
n
|
|
26
|
+
),
|
|
27
|
+
value: (t == null ? void 0 : t.value) || (l == null ? void 0 : l.value) || "",
|
|
28
|
+
...l
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
o === !0 && /* @__PURE__ */ r(
|
|
32
|
+
"span",
|
|
33
|
+
{
|
|
34
|
+
className: "absolute left-1/2 top-1/2 flex h-[150%] w-[150%] -translate-x-1/2 -translate-y-1/2 transform items-center justify-center overflow-hidden rounded font-bold text-primary-600 dark:fill-primary-600 bg-white cursor-pointer",
|
|
35
|
+
onClick: () => {
|
|
36
|
+
var e;
|
|
37
|
+
return (e = a.current) == null ? void 0 : e.click();
|
|
38
|
+
},
|
|
39
|
+
children: /* @__PURE__ */ r(s, { className: "w-full h-full rounded" })
|
|
40
|
+
}
|
|
41
|
+
),
|
|
42
|
+
/* @__PURE__ */ r(
|
|
43
|
+
"span",
|
|
44
|
+
{
|
|
45
|
+
className: "absolute left-1/2 top-1/2 hidden h-[150%] w-[150%] -translate-x-1/2 -translate-y-1/2 transform items-center justify-center overflow-hidden rounded font-bold text-primary-600 peer-checked:flex dark:fill-primary-600 bg-white cursor-pointer",
|
|
46
|
+
onClick: () => {
|
|
47
|
+
var e;
|
|
48
|
+
return (e = a.current) == null ? void 0 : e.click();
|
|
49
|
+
},
|
|
50
|
+
children: /* @__PURE__ */ r(u, { className: "w-full h-full rounded" })
|
|
51
|
+
}
|
|
52
|
+
)
|
|
53
|
+
] });
|
|
54
|
+
};
|
|
30
55
|
export {
|
|
31
|
-
|
|
56
|
+
w as CheckboxBase
|
|
32
57
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ResponsiveColumn } from '../Row';
|
|
3
3
|
|
|
4
|
-
export type ColumnProps = {
|
|
4
|
+
export type ColumnProps = React.HtmlHTMLAttributes<HTMLDivElement> & {
|
|
5
5
|
className?: string;
|
|
6
6
|
span?: ResponsiveColumn;
|
|
7
7
|
children: React.ReactNode;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { t as
|
|
3
|
-
const
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { t as r } from "../../bundle-mjs-SHnj3fHy.js";
|
|
3
|
+
const n = (a) => {
|
|
4
4
|
if (!a)
|
|
5
5
|
return "";
|
|
6
6
|
const s = [];
|
|
@@ -119,14 +119,24 @@ const o = (a) => {
|
|
|
119
119
|
break;
|
|
120
120
|
}
|
|
121
121
|
return s.join(" ");
|
|
122
|
-
},
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
122
|
+
}, h = ({
|
|
123
|
+
id: a,
|
|
124
|
+
span: s = { sm: 1, md: 1 },
|
|
125
|
+
className: e,
|
|
126
|
+
children: c,
|
|
127
|
+
...p
|
|
126
128
|
}) => {
|
|
127
|
-
const
|
|
128
|
-
return /* @__PURE__ */
|
|
129
|
+
const l = n(s);
|
|
130
|
+
return /* @__PURE__ */ o(
|
|
131
|
+
"div",
|
|
132
|
+
{
|
|
133
|
+
className: r("my-col", l, e),
|
|
134
|
+
id: a,
|
|
135
|
+
...p,
|
|
136
|
+
children: c
|
|
137
|
+
}
|
|
138
|
+
);
|
|
129
139
|
};
|
|
130
140
|
export {
|
|
131
|
-
|
|
141
|
+
h as default
|
|
132
142
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as n, jsx as s, Fragment as F } from "react/jsx-runtime";
|
|
2
2
|
import w, { Fragment as k } from "react";
|
|
3
|
-
import { A as N, a as T } from "../../../index-
|
|
3
|
+
import { A as N, a as T } from "../../../index-CHNNgawm.js";
|
|
4
4
|
import { t as c } from "../../../bundle-mjs-SHnj3fHy.js";
|
|
5
5
|
import { u as C, a as D, b as S, c as j, d as M, e as R } from "../../../calculate-active-index-xXUBsarF.js";
|
|
6
6
|
import { DataTableContext as A } from "../contexts/DataTableContext.js";
|