@weing-dev/ui-kit-primitive 0.3.1 → 0.4.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/Divider-m-B4TrPH.js +29 -0
- package/dist/Divider.css +1 -0
- package/dist/Icon-DExqF865.js +1166 -0
- package/dist/bind-D3ZJ5k4I.js +47 -0
- package/dist/calendar.css +1 -0
- package/dist/calendar.d.ts +10 -0
- package/dist/calendar.js +4075 -0
- package/dist/chart.d.ts +2 -0
- package/dist/chart.js +94 -0
- package/dist/color-B71xRiyK.js +384 -0
- package/dist/compiler-runtime-BFrE5JtX.js +326 -0
- package/dist/components/Form/Dropdown/Dropdown.d.ts +2 -1
- package/dist/components/LNB/LNB.context.d.ts +14 -14
- package/dist/components/LNB/LNB.d.ts +8 -6
- package/dist/components/LNB/makeNavigation.d.ts +11 -6
- package/dist/display.css +1 -0
- package/dist/display.d.ts +15 -0
- package/dist/display.js +5280 -0
- package/dist/editor-style.css +7 -0
- package/dist/editor-style.d.ts +0 -0
- package/dist/editor-style.js +1 -0
- package/dist/editor.css +1 -0
- package/dist/editor.d.ts +5 -0
- package/dist/editor.js +338 -0
- package/dist/entry/calendar.d.ts +10 -0
- package/dist/entry/chart.d.ts +2 -0
- package/dist/entry/display.d.ts +15 -0
- package/dist/entry/editor-style.d.ts +0 -0
- package/dist/entry/editor.d.ts +5 -0
- package/dist/entry/feedback.d.ts +6 -0
- package/dist/entry/form.d.ts +17 -0
- package/dist/entry/icon.d.ts +5 -0
- package/dist/entry/navigation.d.ts +9 -0
- package/dist/entry/table.d.ts +3 -0
- package/dist/entry/types.d.ts +1 -1
- package/dist/entry/video-player-style.d.ts +0 -0
- package/dist/entry/video-player.d.ts +3 -0
- package/dist/feedback.css +1 -0
- package/dist/feedback.d.ts +6 -0
- package/dist/feedback.js +385 -0
- package/dist/form.css +1 -0
- package/dist/form.d.ts +17 -0
- package/dist/form.js +3548 -0
- package/dist/icon.d.ts +5 -0
- package/dist/icon.js +18 -0
- package/dist/index.css +1 -7
- package/dist/index.js +3947 -3931
- package/dist/index.umd.cjs +26 -26
- package/dist/navigation.css +1 -0
- package/dist/navigation.d.ts +9 -0
- package/dist/navigation.js +1036 -0
- package/dist/table.css +1 -0
- package/dist/table.d.ts +3 -0
- package/dist/table.js +184 -0
- package/dist/usePopper-DvYrGFkh.js +1038 -0
- package/dist/video-player-style.css +1 -0
- package/dist/video-player-style.d.ts +0 -0
- package/dist/video-player-style.js +1 -0
- package/dist/video-player.css +1 -0
- package/dist/video-player.d.ts +3 -0
- package/dist/video-player.js +1751 -0
- package/package.json +44 -2
- package/dist/components/GlobalStyle/GlobalStyle.d.ts +0 -2
package/dist/table.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@layer Table{._Cell_xud2b_2{background-color:transparent;padding:12px;border-bottom:1px dashed var(--grey20, rgba(145, 158, 171, .2));color:var(--textPrimary, #1c252e);text-align:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400;font-size:14px;line-height:24px}[data-typography=senior] ._Cell_xud2b_2{font-size:18px}[data-typography=mobile] ._Cell_xud2b_2{font-size:10px}[data-typography=senior] ._Cell_xud2b_2{line-height:30px}[data-typography=mobile] ._Cell_xud2b_2{line-height:24px}._Cell_xud2b_2._bordered_xud2b_28{border:1px solid #ddd}._Cell_xud2b_2._compact_xud2b_31{padding:8px}._HeaderCell_xud2b_34{color:var(--textSecondary, #637381);text-align:center;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:12px;position:relative;background-color:var(--grey8, rgba(145, 158, 171, .08));font-weight:700;font-size:14px;line-height:24px}[data-typography=senior] ._HeaderCell_xud2b_34{font-size:18px}[data-typography=mobile] ._HeaderCell_xud2b_34{font-size:10px}[data-typography=senior] ._HeaderCell_xud2b_34{line-height:30px}[data-typography=mobile] ._HeaderCell_xud2b_34{line-height:24px}._HeaderCell_xud2b_34._bordered_xud2b_28{border:1px solid #ddd}._HeaderCell_xud2b_34._compact_xud2b_31{padding:8px}._Row_xud2b_66:hover ._Cell_xud2b_2:not(._isSelected_xud2b_66){background-color:var(--grey4, rgba(145, 158, 171, .04))}._Row_xud2b_66._striped_xud2b_69:nth-child(2n) ._Cell_xud2b_2:not(._isSelected_xud2b_66){background-color:var(--grey4, rgba(145, 158, 171, .04))}._Row_xud2b_66 ._Cell_xud2b_2._isSelected_xud2b_66{background-color:var(--p4, rgba(0, 167, 111, .04))}._Row_xud2b_66:first-child ._HeaderCell_xud2b_34:not(._bordered_xud2b_28):first-child{border-top-left-radius:8px}._Row_xud2b_66:first-child ._HeaderCell_xud2b_34:not(._bordered_xud2b_28):last-child{border-top-right-radius:8px}._Root_xud2b_81{border-collapse:collapse;width:100%;table-layout:fixed}._Root_xud2b_81 *{box-sizing:border-box}}
|
package/dist/table.d.ts
ADDED
package/dist/table.js
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { c as _, j as m } from "./compiler-runtime-BFrE5JtX.js";
|
|
2
|
+
import x from "react";
|
|
3
|
+
import { c as b } from "./bind-D3ZJ5k4I.js";
|
|
4
|
+
const $ = "_Cell_xud2b_2", j = "_bordered_xud2b_28", H = "_compact_xud2b_31", E = "_HeaderCell_xud2b_34", g = "_Row_xud2b_66", M = "_isSelected_xud2b_66", X = "_striped_xud2b_69", L = "_Root_xud2b_81", B = {
|
|
5
|
+
Cell: $,
|
|
6
|
+
bordered: j,
|
|
7
|
+
compact: H,
|
|
8
|
+
HeaderCell: E,
|
|
9
|
+
Row: g,
|
|
10
|
+
isSelected: M,
|
|
11
|
+
striped: X,
|
|
12
|
+
Root: L
|
|
13
|
+
}, T = {
|
|
14
|
+
variant: "default"
|
|
15
|
+
}, v = x.createContext(T), A = (i) => {
|
|
16
|
+
const e = _.c(10);
|
|
17
|
+
let l;
|
|
18
|
+
if (e[0] !== i) {
|
|
19
|
+
let r;
|
|
20
|
+
e[2] !== i.options ? (r = () => {
|
|
21
|
+
var u;
|
|
22
|
+
return ((u = i.options.defaultColumn) == null ? void 0 : u.size) ?? 150;
|
|
23
|
+
}, e[2] = i.options, e[3] = r) : r = e[3], l = Array.from({
|
|
24
|
+
length: i.getRowModel().rows.length + 1
|
|
25
|
+
}, r), e[0] = i, e[1] = l;
|
|
26
|
+
} else
|
|
27
|
+
l = e[1];
|
|
28
|
+
const [t, n] = x.useState(l), [s, o] = x.useState(!1);
|
|
29
|
+
let c;
|
|
30
|
+
e[4] !== t ? (c = (r) => {
|
|
31
|
+
const u = t[r];
|
|
32
|
+
let f;
|
|
33
|
+
const h = (y) => {
|
|
34
|
+
if (!f) {
|
|
35
|
+
f = y.clientX;
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
const z = y.clientX - f, N = Math.max(50, u + z);
|
|
39
|
+
n((S) => {
|
|
40
|
+
const w = [...S];
|
|
41
|
+
return w[r] = N, w;
|
|
42
|
+
});
|
|
43
|
+
}, C = () => {
|
|
44
|
+
document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", C), o(!1);
|
|
45
|
+
};
|
|
46
|
+
document.addEventListener("mousemove", h), document.addEventListener("mouseup", C), o(!0);
|
|
47
|
+
}, e[4] = t, e[5] = c) : c = e[5];
|
|
48
|
+
const d = c;
|
|
49
|
+
let a;
|
|
50
|
+
return e[6] !== t || e[7] !== d || e[8] !== s ? (a = {
|
|
51
|
+
columnsSize: t,
|
|
52
|
+
isResizing: s,
|
|
53
|
+
handleResize: d
|
|
54
|
+
}, e[6] = t, e[7] = d, e[8] = s, e[9] = a) : a = e[9], a;
|
|
55
|
+
}, R = b.bind(B), U = (i) => {
|
|
56
|
+
const e = _.c(13);
|
|
57
|
+
let l, t, n, s;
|
|
58
|
+
e[0] !== i ? ({
|
|
59
|
+
className: t,
|
|
60
|
+
children: l,
|
|
61
|
+
ref: n,
|
|
62
|
+
...s
|
|
63
|
+
} = i, e[0] = i, e[1] = l, e[2] = t, e[3] = n, e[4] = s) : (l = e[1], t = e[2], n = e[3], s = e[4]);
|
|
64
|
+
const {
|
|
65
|
+
variant: o
|
|
66
|
+
} = x.use(v);
|
|
67
|
+
let c;
|
|
68
|
+
e[5] !== t || e[6] !== o ? (c = R("Row", o, t), e[5] = t, e[6] = o, e[7] = c) : c = e[7];
|
|
69
|
+
let d;
|
|
70
|
+
return e[8] !== l || e[9] !== n || e[10] !== s || e[11] !== c ? (d = /* @__PURE__ */ m.jsx("tr", { ...s, className: c, ref: n, children: l }), e[8] = l, e[9] = n, e[10] = s, e[11] = c, e[12] = d) : d = e[12], d;
|
|
71
|
+
}, V = (i) => {
|
|
72
|
+
const e = _.c(22);
|
|
73
|
+
let l, t, n, s, o, c;
|
|
74
|
+
e[0] !== i ? ({
|
|
75
|
+
className: t,
|
|
76
|
+
children: l,
|
|
77
|
+
size: c,
|
|
78
|
+
ref: s,
|
|
79
|
+
isSelected: n,
|
|
80
|
+
...o
|
|
81
|
+
} = i, e[0] = i, e[1] = l, e[2] = t, e[3] = n, e[4] = s, e[5] = o, e[6] = c) : (l = e[1], t = e[2], n = e[3], s = e[4], o = e[5], c = e[6]);
|
|
82
|
+
const {
|
|
83
|
+
variant: d
|
|
84
|
+
} = x.use(v);
|
|
85
|
+
let a;
|
|
86
|
+
e[7] !== t || e[8] !== n || e[9] !== d ? (a = R("Cell", d, t, {
|
|
87
|
+
isSelected: n
|
|
88
|
+
}), e[7] = t, e[8] = n, e[9] = d, e[10] = a) : a = e[10];
|
|
89
|
+
let r;
|
|
90
|
+
e[11] !== c ? (r = c ? {
|
|
91
|
+
width: c
|
|
92
|
+
} : {}, e[11] = c, e[12] = r) : r = e[12];
|
|
93
|
+
let u;
|
|
94
|
+
e[13] !== o.style || e[14] !== r ? (u = {
|
|
95
|
+
...o.style,
|
|
96
|
+
...r
|
|
97
|
+
}, e[13] = o.style, e[14] = r, e[15] = u) : u = e[15];
|
|
98
|
+
let f;
|
|
99
|
+
return e[16] !== l || e[17] !== s || e[18] !== o || e[19] !== a || e[20] !== u ? (f = /* @__PURE__ */ m.jsx("td", { ...o, ref: s, className: a, style: u, children: l }), e[16] = l, e[17] = s, e[18] = o, e[19] = a, e[20] = u, e[21] = f) : f = e[21], f;
|
|
100
|
+
}, k = (i) => {
|
|
101
|
+
const e = _.c(12);
|
|
102
|
+
let l, t, n, s;
|
|
103
|
+
e[0] !== i ? ({
|
|
104
|
+
className: t,
|
|
105
|
+
children: l,
|
|
106
|
+
ref: n,
|
|
107
|
+
...s
|
|
108
|
+
} = i, e[0] = i, e[1] = l, e[2] = t, e[3] = n, e[4] = s) : (l = e[1], t = e[2], n = e[3], s = e[4]);
|
|
109
|
+
let o;
|
|
110
|
+
e[5] !== t ? (o = R("Body", t), e[5] = t, e[6] = o) : o = e[6];
|
|
111
|
+
let c;
|
|
112
|
+
return e[7] !== l || e[8] !== n || e[9] !== s || e[10] !== o ? (c = /* @__PURE__ */ m.jsx("tbody", { ...s, ref: n, className: o, children: l }), e[7] = l, e[8] = n, e[9] = s, e[10] = o, e[11] = c) : c = e[11], c;
|
|
113
|
+
}, q = (i) => {
|
|
114
|
+
const e = _.c(20);
|
|
115
|
+
let l, t, n, s, o;
|
|
116
|
+
e[0] !== i ? ({
|
|
117
|
+
className: t,
|
|
118
|
+
children: l,
|
|
119
|
+
size: o,
|
|
120
|
+
ref: n,
|
|
121
|
+
...s
|
|
122
|
+
} = i, e[0] = i, e[1] = l, e[2] = t, e[3] = n, e[4] = s, e[5] = o) : (l = e[1], t = e[2], n = e[3], s = e[4], o = e[5]);
|
|
123
|
+
const {
|
|
124
|
+
variant: c
|
|
125
|
+
} = x.use(v);
|
|
126
|
+
let d;
|
|
127
|
+
e[6] !== t || e[7] !== c ? (d = R("HeaderCell", c, t), e[6] = t, e[7] = c, e[8] = d) : d = e[8];
|
|
128
|
+
let a;
|
|
129
|
+
e[9] !== o ? (a = o ? {
|
|
130
|
+
width: o
|
|
131
|
+
} : {}, e[9] = o, e[10] = a) : a = e[10];
|
|
132
|
+
let r;
|
|
133
|
+
e[11] !== s.style || e[12] !== a ? (r = {
|
|
134
|
+
...s.style,
|
|
135
|
+
...a
|
|
136
|
+
}, e[11] = s.style, e[12] = a, e[13] = r) : r = e[13];
|
|
137
|
+
let u;
|
|
138
|
+
return e[14] !== l || e[15] !== n || e[16] !== s || e[17] !== d || e[18] !== r ? (u = /* @__PURE__ */ m.jsx("th", { ...s, ref: n, className: d, style: r, children: l }), e[14] = l, e[15] = n, e[16] = s, e[17] = d, e[18] = r, e[19] = u) : u = e[19], u;
|
|
139
|
+
}, D = (i) => {
|
|
140
|
+
const e = _.c(12);
|
|
141
|
+
let l, t, n, s;
|
|
142
|
+
e[0] !== i ? ({
|
|
143
|
+
className: t,
|
|
144
|
+
children: l,
|
|
145
|
+
ref: n,
|
|
146
|
+
...s
|
|
147
|
+
} = i, e[0] = i, e[1] = l, e[2] = t, e[3] = n, e[4] = s) : (l = e[1], t = e[2], n = e[3], s = e[4]);
|
|
148
|
+
let o;
|
|
149
|
+
e[5] !== t ? (o = R("Header", t), e[5] = t, e[6] = o) : o = e[6];
|
|
150
|
+
let c;
|
|
151
|
+
return e[7] !== l || e[8] !== n || e[9] !== s || e[10] !== o ? (c = /* @__PURE__ */ m.jsx("thead", { ...s, ref: n, className: o, children: l }), e[7] = l, e[8] = n, e[9] = s, e[10] = o, e[11] = c) : c = e[11], c;
|
|
152
|
+
}, F = (i) => {
|
|
153
|
+
const e = _.c(16);
|
|
154
|
+
let l, t, n, s;
|
|
155
|
+
e[0] !== i ? ({
|
|
156
|
+
children: l,
|
|
157
|
+
className: t,
|
|
158
|
+
variant: s,
|
|
159
|
+
...n
|
|
160
|
+
} = i, e[0] = i, e[1] = l, e[2] = t, e[3] = n, e[4] = s) : (l = e[1], t = e[2], n = e[3], s = e[4]);
|
|
161
|
+
const o = s === void 0 ? "default" : s;
|
|
162
|
+
let c;
|
|
163
|
+
e[5] !== o ? (c = {
|
|
164
|
+
variant: o
|
|
165
|
+
}, e[5] = o, e[6] = c) : c = e[6];
|
|
166
|
+
const d = c;
|
|
167
|
+
let a;
|
|
168
|
+
e[7] !== t ? (a = R("Root", t), e[7] = t, e[8] = a) : a = e[8];
|
|
169
|
+
let r;
|
|
170
|
+
e[9] !== l || e[10] !== n || e[11] !== a ? (r = /* @__PURE__ */ m.jsx("table", { ...n, className: a, children: l }), e[9] = l, e[10] = n, e[11] = a, e[12] = r) : r = e[12];
|
|
171
|
+
let u;
|
|
172
|
+
return e[13] !== d || e[14] !== r ? (u = /* @__PURE__ */ m.jsx(v, { value: d, children: r }), e[13] = d, e[14] = r, e[15] = u) : u = e[15], u;
|
|
173
|
+
}, O = {
|
|
174
|
+
Root: F,
|
|
175
|
+
Header: D,
|
|
176
|
+
Body: k,
|
|
177
|
+
Row: U,
|
|
178
|
+
Cell: V,
|
|
179
|
+
HeaderCell: q,
|
|
180
|
+
useRowResize: A
|
|
181
|
+
};
|
|
182
|
+
export {
|
|
183
|
+
O as Table
|
|
184
|
+
};
|