@selectwin/kit 0.1.225 → 0.1.226
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/SelectCombobox.d.ts +5 -0
- package/dist/SelectCombobox.js +92 -84
- package/dist/SelectFilterBar.js +14 -14
- package/dist/internal/listChrome.js +5 -5
- package/package.json +67 -67
package/dist/SelectCombobox.d.ts
CHANGED
|
@@ -40,6 +40,11 @@ type SelectComboboxOwnProps = {
|
|
|
40
40
|
* troca e empurraria o resto da barra. Um comprimento CSS (`'16rem'`).
|
|
41
41
|
*/
|
|
42
42
|
minWidth?: string;
|
|
43
|
+
/**
|
|
44
|
+
* 0.1.226: o nome do campo para o leitor de tela quando não há `label` visível (o seletor numa barra ou numa célula).
|
|
45
|
+
* Ignorado com `label`.
|
|
46
|
+
*/
|
|
47
|
+
ariaLabel?: string;
|
|
43
48
|
};
|
|
44
49
|
export type SelectComboboxProps = SelectComboboxOwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof SelectComboboxOwnProps>;
|
|
45
50
|
export declare const SelectCombobox: import('react').ForwardRefExoticComponent<SelectComboboxOwnProps & Omit<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref">, keyof SelectComboboxOwnProps> & import('react').RefAttributes<HTMLDivElement>>;
|
package/dist/SelectCombobox.js
CHANGED
|
@@ -1,142 +1,150 @@
|
|
|
1
1
|
import { CheckIcon as e, ChevronDownIcon as t } from "./icons.js";
|
|
2
2
|
import { useSelectMessages as n } from "./SelectLocale.js";
|
|
3
3
|
import { SelectInfoTip as r } from "./SelectInfoTip.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
4
|
+
import { moveInOptions as i, useOptionListFocus as a } from "./internal/optionList.js";
|
|
5
|
+
import { useSelectReveal as o } from "./internal/useSelectReveal.js";
|
|
6
|
+
import { SelectPopover as s } from "./SelectPopover.js";
|
|
7
|
+
import { forwardRef as c, useId as l, useMemo as u, useRef as d, useState as f } from "react";
|
|
8
|
+
import { jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
8
9
|
//#region src/SelectCombobox.tsx
|
|
9
|
-
function
|
|
10
|
-
let n = e > 0 ? Math.min(.03, .35 / e) : 0, r =
|
|
10
|
+
function h({ count: e, children: t }) {
|
|
11
|
+
let n = e > 0 ? Math.min(.03, .35 / e) : 0, r = o({
|
|
11
12
|
selector: ".select-combobox__option",
|
|
12
13
|
y: 6,
|
|
13
14
|
duration: .3,
|
|
14
15
|
stagger: n
|
|
15
16
|
});
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
+
return /* @__PURE__ */ p("div", {
|
|
17
18
|
className: "select-combobox__list",
|
|
18
19
|
ref: r,
|
|
19
20
|
children: t
|
|
20
21
|
});
|
|
21
22
|
}
|
|
22
|
-
var
|
|
23
|
-
let
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
var g = c(function({ label: o, value: c, onChange: g, options: _, placeholder: v, searchPlaceholder: y, labelAction: b, help: x, hint: S, error: C, emptyText: ee, disabled: w, required: T, size: E = "md", searchable: D = !0, allowCustom: O = !1, customLabel: k, minWidth: A, ariaLabel: j, className: M, style: N, ...P }, F) {
|
|
24
|
+
let I = n(), L = v ?? I.common.selectPlaceholder, R = y ?? I.common.searchPlaceholder, z = ee ?? I.common.noResults, B = l(), [V, H] = f(!1), [U, W] = f(""), G = d(null);
|
|
25
|
+
a(V, G);
|
|
26
|
+
let K = _.find((e) => e.value === c), q = K ? K.label : O && c ? c : null, J = u(() => {
|
|
27
|
+
let e = U.trim().toLowerCase();
|
|
28
|
+
return !D || !e ? _ : _.filter((t) => {
|
|
26
29
|
var n;
|
|
27
30
|
return t.label.toLowerCase().includes(e) || ((n = t.secondary) == null ? void 0 : n.toLowerCase().includes(e));
|
|
28
31
|
});
|
|
29
32
|
}, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
]),
|
|
34
|
-
|
|
35
|
-
},
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
-
ref:
|
|
40
|
-
...
|
|
41
|
-
style:
|
|
42
|
-
minWidth:
|
|
43
|
-
...
|
|
44
|
-
} :
|
|
45
|
-
className: `select-field${
|
|
33
|
+
_,
|
|
34
|
+
U,
|
|
35
|
+
D
|
|
36
|
+
]), Y = U.trim(), X = Y ? _.find((e) => e.label.toLowerCase() === Y.toLowerCase()) : void 0, Z = O && D && Y !== "" && !X, Q = () => {
|
|
37
|
+
H(!1), W("");
|
|
38
|
+
}, $ = (e) => {
|
|
39
|
+
g(e), Q();
|
|
40
|
+
}, te = C ? `${B}-err` : S ? `${B}-hint` : void 0;
|
|
41
|
+
return /* @__PURE__ */ m("div", {
|
|
42
|
+
ref: F,
|
|
43
|
+
...P,
|
|
44
|
+
style: A ? {
|
|
45
|
+
minWidth: A,
|
|
46
|
+
...N
|
|
47
|
+
} : N,
|
|
48
|
+
className: `select-field${E === "sm" ? " select-field--sm" : ""}${M ? " " + M : ""}`,
|
|
46
49
|
children: [
|
|
47
|
-
(
|
|
50
|
+
(o || x || b) && /* @__PURE__ */ m("div", {
|
|
48
51
|
className: "select-field__labelrow",
|
|
49
|
-
children: [/* @__PURE__ */
|
|
52
|
+
children: [/* @__PURE__ */ m("span", {
|
|
50
53
|
className: "select-field__labelwrap",
|
|
51
|
-
children: [
|
|
54
|
+
children: [o && /* @__PURE__ */ p("label", {
|
|
52
55
|
className: "select-field__label",
|
|
53
|
-
htmlFor:
|
|
54
|
-
children:
|
|
55
|
-
}),
|
|
56
|
-
}),
|
|
56
|
+
htmlFor: B,
|
|
57
|
+
children: o
|
|
58
|
+
}), x != null && x !== "" && /* @__PURE__ */ p(r, { content: x })]
|
|
59
|
+
}), b]
|
|
57
60
|
}),
|
|
58
|
-
/* @__PURE__ */
|
|
61
|
+
/* @__PURE__ */ p("div", {
|
|
59
62
|
className: "select-combobox",
|
|
60
|
-
children: /* @__PURE__ */
|
|
61
|
-
active:
|
|
62
|
-
onClose:
|
|
63
|
+
children: /* @__PURE__ */ p(s, {
|
|
64
|
+
active: V,
|
|
65
|
+
onClose: Q,
|
|
63
66
|
placement: "bottom-start",
|
|
64
67
|
role: "listbox",
|
|
65
68
|
matchWidth: !0,
|
|
66
|
-
activator: /* @__PURE__ */
|
|
67
|
-
id:
|
|
69
|
+
activator: /* @__PURE__ */ m("button", {
|
|
70
|
+
id: B,
|
|
68
71
|
type: "button",
|
|
69
|
-
className: `select-combobox__trigger${
|
|
70
|
-
onClick: () =>
|
|
71
|
-
disabled:
|
|
72
|
+
className: `select-combobox__trigger${C ? " select-input--error" : ""}${V ? " is-open" : ""}`,
|
|
73
|
+
onClick: () => V ? Q() : H(!0),
|
|
74
|
+
disabled: w,
|
|
72
75
|
"aria-haspopup": "listbox",
|
|
73
|
-
"aria-
|
|
74
|
-
"
|
|
75
|
-
"aria-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
"aria-label": o ? void 0 : j,
|
|
77
|
+
"data-value": c,
|
|
78
|
+
"aria-expanded": V,
|
|
79
|
+
"aria-required": T || void 0,
|
|
80
|
+
"aria-describedby": te,
|
|
81
|
+
"aria-invalid": C ? !0 : void 0,
|
|
82
|
+
children: [/* @__PURE__ */ p("span", {
|
|
83
|
+
className: `select-combobox__value${q == null ? " is-placeholder" : ""}`,
|
|
84
|
+
children: q ?? L
|
|
85
|
+
}), /* @__PURE__ */ p("span", {
|
|
80
86
|
className: "select-combobox__caret",
|
|
81
87
|
"aria-hidden": "true",
|
|
82
|
-
children: /* @__PURE__ */
|
|
88
|
+
children: /* @__PURE__ */ p(t, {})
|
|
83
89
|
})]
|
|
84
90
|
}),
|
|
85
|
-
children: /* @__PURE__ */
|
|
91
|
+
children: /* @__PURE__ */ m("div", {
|
|
86
92
|
className: "select-combobox__panel",
|
|
87
|
-
|
|
93
|
+
ref: G,
|
|
94
|
+
onKeyDown: i,
|
|
95
|
+
children: [D && /* @__PURE__ */ p("div", {
|
|
88
96
|
className: "select-combobox__search",
|
|
89
|
-
children: /* @__PURE__ */
|
|
97
|
+
children: /* @__PURE__ */ p("input", {
|
|
90
98
|
className: "select-combobox__searchinput",
|
|
91
99
|
type: "text",
|
|
92
|
-
value:
|
|
93
|
-
onChange: (e) =>
|
|
100
|
+
value: U,
|
|
101
|
+
onChange: (e) => W(e.target.value),
|
|
94
102
|
onKeyDown: (e) => {
|
|
95
|
-
e.key === "Enter" &&
|
|
103
|
+
e.key === "Enter" && O && Y !== "" && (e.preventDefault(), $(X ? X.value : Y));
|
|
96
104
|
},
|
|
97
|
-
placeholder:
|
|
98
|
-
autoFocus: !0
|
|
105
|
+
placeholder: R
|
|
99
106
|
})
|
|
100
|
-
}), /* @__PURE__ */
|
|
101
|
-
count:
|
|
102
|
-
children: [
|
|
107
|
+
}), /* @__PURE__ */ m(h, {
|
|
108
|
+
count: J.length + +!!Z,
|
|
109
|
+
children: [Z && /* @__PURE__ */ p("button", {
|
|
103
110
|
type: "button",
|
|
104
111
|
role: "option",
|
|
105
112
|
"aria-selected": !1,
|
|
106
113
|
className: "select-combobox__option select-combobox__option--custom",
|
|
107
|
-
onClick: () => Y
|
|
108
|
-
children: /* @__PURE__ */
|
|
114
|
+
onClick: () => $(Y),
|
|
115
|
+
children: /* @__PURE__ */ p("span", {
|
|
109
116
|
className: "select-combobox__optiontext",
|
|
110
|
-
children: /* @__PURE__ */
|
|
117
|
+
children: /* @__PURE__ */ p("span", {
|
|
111
118
|
className: "select-combobox__optionlabel",
|
|
112
|
-
children:
|
|
119
|
+
children: k ? k(Y) : `Usar “${Y}”`
|
|
113
120
|
})
|
|
114
121
|
})
|
|
115
|
-
}),
|
|
122
|
+
}), J.length === 0 ? Z ? null : /* @__PURE__ */ p("div", {
|
|
116
123
|
className: "select-combobox__empty",
|
|
117
|
-
children:
|
|
118
|
-
}) :
|
|
119
|
-
let n = t.value ===
|
|
120
|
-
return /* @__PURE__ */
|
|
124
|
+
children: z
|
|
125
|
+
}) : J.map((t) => {
|
|
126
|
+
let n = t.value === c;
|
|
127
|
+
return /* @__PURE__ */ m("button", {
|
|
121
128
|
type: "button",
|
|
122
129
|
role: "option",
|
|
123
130
|
"aria-selected": n,
|
|
131
|
+
"data-value": t.value,
|
|
124
132
|
disabled: t.disabled,
|
|
125
133
|
className: `select-combobox__option${n ? " is-selected" : ""}`,
|
|
126
|
-
onClick: () =>
|
|
127
|
-
children: [/* @__PURE__ */
|
|
134
|
+
onClick: () => $(t.value),
|
|
135
|
+
children: [/* @__PURE__ */ m("span", {
|
|
128
136
|
className: "select-combobox__optiontext",
|
|
129
|
-
children: [/* @__PURE__ */
|
|
137
|
+
children: [/* @__PURE__ */ p("span", {
|
|
130
138
|
className: "select-combobox__optionlabel",
|
|
131
139
|
children: t.label
|
|
132
|
-
}), t.secondary && /* @__PURE__ */
|
|
140
|
+
}), t.secondary && /* @__PURE__ */ p("span", {
|
|
133
141
|
className: "select-combobox__optionsecondary",
|
|
134
142
|
children: t.secondary
|
|
135
143
|
})]
|
|
136
|
-
}), n && /* @__PURE__ */
|
|
144
|
+
}), n && /* @__PURE__ */ p("span", {
|
|
137
145
|
className: "select-combobox__check",
|
|
138
146
|
"aria-hidden": "true",
|
|
139
|
-
children: /* @__PURE__ */
|
|
147
|
+
children: /* @__PURE__ */ p(e, {})
|
|
140
148
|
})]
|
|
141
149
|
}, t.value);
|
|
142
150
|
})]
|
|
@@ -144,19 +152,19 @@ var p = o(function({ label: i, value: o, onChange: p, options: m, placeholder: h
|
|
|
144
152
|
})
|
|
145
153
|
})
|
|
146
154
|
}),
|
|
147
|
-
|
|
148
|
-
id: `${
|
|
155
|
+
C ? /* @__PURE__ */ p("p", {
|
|
156
|
+
id: `${B}-err`,
|
|
149
157
|
className: "select-field__error",
|
|
150
|
-
children:
|
|
151
|
-
}) :
|
|
152
|
-
id: `${
|
|
158
|
+
children: C
|
|
159
|
+
}) : S ? /* @__PURE__ */ p("p", {
|
|
160
|
+
id: `${B}-hint`,
|
|
153
161
|
className: "select-field__hint",
|
|
154
|
-
children:
|
|
162
|
+
children: S
|
|
155
163
|
}) : null
|
|
156
164
|
]
|
|
157
165
|
});
|
|
158
166
|
});
|
|
159
167
|
//#endregion
|
|
160
|
-
export {
|
|
168
|
+
export { g as SelectCombobox };
|
|
161
169
|
|
|
162
170
|
//# sourceMappingURL=SelectCombobox.js.map
|
package/dist/SelectFilterBar.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { CheckIcon as e, ChevronDownIcon as t, CloseIcon as n, PlusIcon as r, SearchIcon as i } from "./icons.js";
|
|
2
2
|
import { useSelectMessages as a } from "./SelectLocale.js";
|
|
3
3
|
import { SelectField as o } from "./SelectField.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
4
|
+
import { moveInOptions as s, useOptionListFocus as c } from "./internal/optionList.js";
|
|
5
|
+
import { SelectPopover as l } from "./SelectPopover.js";
|
|
6
|
+
import { SelectSearchInput as u } from "./SelectSearchInput.js";
|
|
7
7
|
import { SelectDateField as d } from "./SelectDateField.js";
|
|
8
8
|
import { formatDateValue as f } from "./internal/dateValue.js";
|
|
9
9
|
import { forwardRef as p, useEffect as m, useRef as h, useState as g } from "react";
|
|
@@ -30,11 +30,11 @@ function x(e, t) {
|
|
|
30
30
|
}
|
|
31
31
|
function S({ filter: n, value: r, onChange: i, open: f, onToggle: p, onClose: S, disabled: C }) {
|
|
32
32
|
let w = a(), [T, E] = g(""), D = h(null);
|
|
33
|
-
|
|
33
|
+
c(f && (n.type === "select" || n.type === "multiselect"), D), m(() => {
|
|
34
34
|
f || E("");
|
|
35
35
|
}, [f]);
|
|
36
36
|
let O = r.trim() !== "", k = O ? x(n, r) : null, A = O && !!n.error, j = n.options ?? [], M = j.length > 7, N = M ? j.filter((e) => e.label.toLowerCase().includes(T.trim().toLowerCase())) : j;
|
|
37
|
-
return /* @__PURE__ */ v(
|
|
37
|
+
return /* @__PURE__ */ v(l, {
|
|
38
38
|
active: f,
|
|
39
39
|
onClose: S,
|
|
40
40
|
placement: "bottom-start",
|
|
@@ -59,10 +59,10 @@ function S({ filter: n, value: r, onChange: i, open: f, onToggle: p, onClose: S,
|
|
|
59
59
|
n.type === "multiselect" ? /* @__PURE__ */ v("div", {
|
|
60
60
|
className: "select-facet__panel",
|
|
61
61
|
ref: D,
|
|
62
|
-
onKeyDown:
|
|
62
|
+
onKeyDown: s,
|
|
63
63
|
children: [M && /* @__PURE__ */ _("div", {
|
|
64
64
|
className: "select-facet__search",
|
|
65
|
-
children: /* @__PURE__ */ _(
|
|
65
|
+
children: /* @__PURE__ */ _(u, {
|
|
66
66
|
value: T,
|
|
67
67
|
onChange: E,
|
|
68
68
|
placeholder: w.filterBar.searchOption
|
|
@@ -93,10 +93,10 @@ function S({ filter: n, value: r, onChange: i, open: f, onToggle: p, onClose: S,
|
|
|
93
93
|
}) : n.type === "select" ? /* @__PURE__ */ v("div", {
|
|
94
94
|
className: "select-facet__panel",
|
|
95
95
|
ref: D,
|
|
96
|
-
onKeyDown:
|
|
96
|
+
onKeyDown: s,
|
|
97
97
|
children: [M && /* @__PURE__ */ _("div", {
|
|
98
98
|
className: "select-facet__search",
|
|
99
|
-
children: /* @__PURE__ */ _(
|
|
99
|
+
children: /* @__PURE__ */ _(u, {
|
|
100
100
|
value: T,
|
|
101
101
|
onChange: E,
|
|
102
102
|
placeholder: w.filterBar.searchOption
|
|
@@ -165,11 +165,11 @@ function S({ filter: n, value: r, onChange: i, open: f, onToggle: p, onClose: S,
|
|
|
165
165
|
]
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
-
var C = p(function({ filters: e, values: t, onChange: o, onClearAll:
|
|
168
|
+
var C = p(function({ filters: e, values: t, onChange: o, onClearAll: u, search: d, leading: f, disabled: p, className: m, ...y }, b) {
|
|
169
169
|
let C = a(), [w, T] = g([]), [E, D] = g(null), [O, k] = g(!1), A = h(null);
|
|
170
|
-
|
|
170
|
+
c(O, A);
|
|
171
171
|
let j = (e) => (t[e.key] ?? "").trim() !== "", M = (e) => !!e.pinned || j(e) || w.includes(e.key), N = e.filter(M), P = e.filter((e) => !M(e)), F = e.filter(j), I = () => {
|
|
172
|
-
T([]), D(null),
|
|
172
|
+
T([]), D(null), u();
|
|
173
173
|
}, L = (e) => {
|
|
174
174
|
T((t) => t.includes(e) ? t : [...t, e]), k(!1), D(e);
|
|
175
175
|
};
|
|
@@ -231,7 +231,7 @@ var C = p(function({ filters: e, values: t, onChange: o, onClearAll: c, search:
|
|
|
231
231
|
onClose: () => D((t) => t === e.key ? null : t),
|
|
232
232
|
disabled: p
|
|
233
233
|
}, e.key)),
|
|
234
|
-
P.length > 0 && /* @__PURE__ */ _(
|
|
234
|
+
P.length > 0 && /* @__PURE__ */ _(l, {
|
|
235
235
|
active: O,
|
|
236
236
|
onClose: () => k(!1),
|
|
237
237
|
placement: "bottom-start",
|
|
@@ -251,7 +251,7 @@ var C = p(function({ filters: e, values: t, onChange: o, onClearAll: c, search:
|
|
|
251
251
|
className: "select-facet__options",
|
|
252
252
|
role: "menu",
|
|
253
253
|
ref: A,
|
|
254
|
-
onKeyDown:
|
|
254
|
+
onKeyDown: s,
|
|
255
255
|
children: P.map((e) => /* @__PURE__ */ _("button", {
|
|
256
256
|
type: "button",
|
|
257
257
|
role: "menuitem",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { CheckIcon as e, ChevronDownIcon as t } from "../icons.js";
|
|
2
2
|
import { formatSelectNumber as n, useSelectLocale as r, useSelectMessages as i } from "../SelectLocale.js";
|
|
3
3
|
import { SelectInfoTip as a } from "../SelectInfoTip.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { moveInOptions as o, useOptionListFocus as s } from "./optionList.js";
|
|
5
|
+
import { SelectPopover as c } from "../SelectPopover.js";
|
|
6
6
|
import { SelectPagination as l } from "../SelectPagination.js";
|
|
7
7
|
import { useRef as u, useState as d } from "react";
|
|
8
8
|
import { Fragment as f, jsx as p, jsxs as m } from "react/jsx-runtime";
|
|
@@ -81,13 +81,13 @@ function _(e, t, n) {
|
|
|
81
81
|
}
|
|
82
82
|
function v({ pagination: a, className: f }) {
|
|
83
83
|
let h = i().pagination, g = r(), [v, y] = d(!1), b = u(null);
|
|
84
|
-
|
|
84
|
+
s(v, b);
|
|
85
85
|
let x = _(a.pageSizeOptions, a.total, a.pageSize), S = x.length > 1 && a.onPageSizeChange != null;
|
|
86
86
|
return !S && !a.hasPrevious && !a.hasNext ? null : /* @__PURE__ */ m("div", {
|
|
87
87
|
className: `select-datatable__pagination${f ? " " + f : ""}`,
|
|
88
88
|
children: [S && a.onPageSizeChange && /* @__PURE__ */ p("div", {
|
|
89
89
|
className: "select-datatable__pagesize",
|
|
90
|
-
children: /* @__PURE__ */ p(
|
|
90
|
+
children: /* @__PURE__ */ p(c, {
|
|
91
91
|
active: v,
|
|
92
92
|
onClose: () => y(!1),
|
|
93
93
|
placement: "top-start",
|
|
@@ -110,7 +110,7 @@ function v({ pagination: a, className: f }) {
|
|
|
110
110
|
children: /* @__PURE__ */ p("div", {
|
|
111
111
|
className: "select-facet__panel",
|
|
112
112
|
ref: b,
|
|
113
|
-
onKeyDown:
|
|
113
|
+
onKeyDown: o,
|
|
114
114
|
children: /* @__PURE__ */ p("div", {
|
|
115
115
|
className: "select-facet__options",
|
|
116
116
|
role: "listbox",
|
package/package.json
CHANGED
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@selectwin/kit",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Selectwin design-system kit — primitivos React, charts SVG e tokens (theme-aware, sem dependência de biblioteca de chart).",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/selectwin/select-kit.git"
|
|
9
|
-
},
|
|
10
|
-
"sideEffects": [
|
|
11
|
-
"**/*.css"
|
|
12
|
-
],
|
|
13
|
-
"files": [
|
|
14
|
-
"dist",
|
|
15
|
-
"!dist/**/*.map"
|
|
16
|
-
],
|
|
17
|
-
"exports": {
|
|
18
|
-
".": {
|
|
19
|
-
"types": "./dist/index.d.ts",
|
|
20
|
-
"import": "./dist/index.js"
|
|
21
|
-
},
|
|
22
|
-
"./styles.css": "./dist/style.css"
|
|
23
|
-
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"build": "vite build --config vite.config.ts",
|
|
26
|
-
"codemod": "tsx scripts/codemods/select-escape-hatch.ts",
|
|
27
|
-
"test": "vitest run",
|
|
28
|
-
"prepublishOnly": "npm run build"
|
|
29
|
-
},
|
|
30
|
-
"peerDependencies": {
|
|
31
|
-
"gsap": "^3",
|
|
32
|
-
"react": "^18.3 || ^19",
|
|
33
|
-
"react-dom": "^18.3 || ^19",
|
|
34
|
-
"react-router-dom": "^6 || ^7"
|
|
35
|
-
},
|
|
36
|
-
"peerDependenciesMeta": {
|
|
37
|
-
"gsap": {
|
|
38
|
-
"optional": true
|
|
39
|
-
},
|
|
40
|
-
"react-router-dom": {
|
|
41
|
-
"optional": true
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
"devDependencies": {
|
|
45
|
-
"@types/react": "^18.3.12",
|
|
46
|
-
"@types/react-dom": "^18.3.1",
|
|
47
|
-
"@vitejs/plugin-react": "^6.1.1",
|
|
48
|
-
"gsap": "^3.15.0",
|
|
49
|
-
"jsdom": "^25.0.1",
|
|
50
|
-
"react": "^18.3.1",
|
|
51
|
-
"react-dom": "^18.3.1",
|
|
52
|
-
"react-router-dom": "^7.18.4",
|
|
53
|
-
"ts-morph": "^28.0.0",
|
|
54
|
-
"tsx": "^4.19.2",
|
|
55
|
-
"typescript": "^5.6.3",
|
|
56
|
-
"vite": "^8.3.0",
|
|
57
|
-
"vite-plugin-dts": "^5.1.0",
|
|
58
|
-
"vitest": "^5.0.1"
|
|
59
|
-
},
|
|
60
|
-
"publishConfig": {
|
|
61
|
-
"registry": "https://registry.npmjs.org",
|
|
62
|
-
"access": "public"
|
|
63
|
-
},
|
|
64
|
-
"dependencies": {
|
|
65
|
-
"qrcode-generator": "2.0.4"
|
|
66
|
-
}
|
|
67
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@selectwin/kit",
|
|
3
|
+
"version": "0.1.226",
|
|
4
|
+
"description": "Selectwin design-system kit — primitivos React, charts SVG e tokens (theme-aware, sem dependência de biblioteca de chart).",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/selectwin/select-kit.git"
|
|
9
|
+
},
|
|
10
|
+
"sideEffects": [
|
|
11
|
+
"**/*.css"
|
|
12
|
+
],
|
|
13
|
+
"files": [
|
|
14
|
+
"dist",
|
|
15
|
+
"!dist/**/*.map"
|
|
16
|
+
],
|
|
17
|
+
"exports": {
|
|
18
|
+
".": {
|
|
19
|
+
"types": "./dist/index.d.ts",
|
|
20
|
+
"import": "./dist/index.js"
|
|
21
|
+
},
|
|
22
|
+
"./styles.css": "./dist/style.css"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "vite build --config vite.config.ts",
|
|
26
|
+
"codemod": "tsx scripts/codemods/select-escape-hatch.ts",
|
|
27
|
+
"test": "vitest run",
|
|
28
|
+
"prepublishOnly": "npm run build"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"gsap": "^3",
|
|
32
|
+
"react": "^18.3 || ^19",
|
|
33
|
+
"react-dom": "^18.3 || ^19",
|
|
34
|
+
"react-router-dom": "^6 || ^7"
|
|
35
|
+
},
|
|
36
|
+
"peerDependenciesMeta": {
|
|
37
|
+
"gsap": {
|
|
38
|
+
"optional": true
|
|
39
|
+
},
|
|
40
|
+
"react-router-dom": {
|
|
41
|
+
"optional": true
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/react": "^18.3.12",
|
|
46
|
+
"@types/react-dom": "^18.3.1",
|
|
47
|
+
"@vitejs/plugin-react": "^6.1.1",
|
|
48
|
+
"gsap": "^3.15.0",
|
|
49
|
+
"jsdom": "^25.0.1",
|
|
50
|
+
"react": "^18.3.1",
|
|
51
|
+
"react-dom": "^18.3.1",
|
|
52
|
+
"react-router-dom": "^7.18.4",
|
|
53
|
+
"ts-morph": "^28.0.0",
|
|
54
|
+
"tsx": "^4.19.2",
|
|
55
|
+
"typescript": "^5.6.3",
|
|
56
|
+
"vite": "^8.3.0",
|
|
57
|
+
"vite-plugin-dts": "^5.1.0",
|
|
58
|
+
"vitest": "^5.0.1"
|
|
59
|
+
},
|
|
60
|
+
"publishConfig": {
|
|
61
|
+
"registry": "https://registry.npmjs.org",
|
|
62
|
+
"access": "public"
|
|
63
|
+
},
|
|
64
|
+
"dependencies": {
|
|
65
|
+
"qrcode-generator": "2.0.4"
|
|
66
|
+
}
|
|
67
|
+
}
|