@wirecore/wirelayer-react 0.5.0 → 0.6.0
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/Button-Cd7lufvJ.js +60 -0
- package/dist/{ContextMenu-qh-bB9Lw.js → ContextMenu-CjDI7Jy5.js} +459 -451
- package/dist/{Field-hc416yJx.js → Field-DkYxlVar.js} +5 -2
- package/dist/{Highlight-DdTridk2.js → Highlight-CX30-nP7.js} +22 -18
- package/dist/{Input-OPRvjIYt.js → Input-D8U-Auys.js} +20 -19
- package/dist/{InputStatus-DS38XEkX.js → InputStatus-hVzkU_4q.js} +4 -1
- package/dist/{PasswordInput-B9k0GuSx.js → PasswordInput-DivSjtN8.js} +1 -1
- package/dist/{Select-PbxrUYi1.js → Select-Cx3KwSzU.js} +84 -83
- package/dist/{Tree-eqv4DIQn.js → Tree-BiPIkmwT.js} +2 -2
- package/dist/chart/Chart.d.ts +11 -5
- package/dist/chart/Chart.d.ts.map +1 -1
- package/dist/chart/index.d.ts +2 -0
- package/dist/chart/index.d.ts.map +1 -1
- package/dist/chart.js +43 -36
- package/dist/code.js +1 -1
- package/dist/components/Badge/Badge.d.ts +3 -1
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Button/Button.d.ts +6 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/ChipGroup/ChipGroup.d.ts +1 -1
- package/dist/components/ChipGroup/ChipGroup.d.ts.map +1 -1
- package/dist/components/Combobox/Combobox.d.ts +7 -2
- package/dist/components/Combobox/Combobox.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +2 -0
- package/dist/components/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePickerBase.d.ts +3 -1
- package/dist/components/DatePicker/DatePickerBase.d.ts.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.d.ts +2 -0
- package/dist/components/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +5 -1
- package/dist/components/Dialog/Dialog.d.ts.map +1 -1
- package/dist/components/Field/context.d.ts +3 -1
- package/dist/components/Field/context.d.ts.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +9 -2
- package/dist/components/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/components/IconButton/IconButton.d.ts +3 -1
- package/dist/components/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/MonthPicker/MonthPicker.d.ts +2 -0
- package/dist/components/MonthPicker/MonthPicker.d.ts.map +1 -1
- package/dist/components/MultiSelect/MultiSelect.d.ts +7 -2
- package/dist/components/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +3 -3
- package/dist/components/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/components/Select/Select.d.ts +9 -2
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Toast/Toaster.d.ts +10 -2
- package/dist/components/Toast/Toaster.d.ts.map +1 -1
- package/dist/components/ToggleButton/ToggleButton.d.ts +7 -1
- package/dist/components/ToggleButton/ToggleButton.d.ts.map +1 -1
- package/dist/components/YearPicker/YearPicker.d.ts +2 -0
- package/dist/components/YearPicker/YearPicker.d.ts.map +1 -1
- package/dist/data-table/DataTable.d.ts +20 -2
- package/dist/data-table/DataTable.d.ts.map +1 -1
- package/dist/data-table/FilterMenu.d.ts +7 -1
- package/dist/data-table/FilterMenu.d.ts.map +1 -1
- package/dist/data-table/ValueInput.d.ts +8 -1
- package/dist/data-table/ValueInput.d.ts.map +1 -1
- package/dist/data-table/index.d.ts +1 -1
- package/dist/data-table/index.d.ts.map +1 -1
- package/dist/data-table/types.d.ts +29 -1
- package/dist/data-table/types.d.ts.map +1 -1
- package/dist/data-table.js +1214 -1139
- package/dist/editor.js +1 -1
- package/dist/form.js +3 -3
- package/dist/index.js +2606 -2578
- package/dist/pdf.js +5 -5
- package/dist/virtual.js +2 -2
- package/llms-full.txt +35 -11
- package/package.json +2 -2
- package/dist/Button-DFVVqBuY.js +0 -58
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { n as e } from "./RecipesProvider-0idafuGm.js";
|
|
3
|
+
import { button as t, buttonColorKey as n, formatCount as r, spinner as i } from "@wirecore/wirelayer-recipes";
|
|
4
|
+
import { LoaderCircle as a } from "lucide-react";
|
|
5
|
+
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
import { ark as l } from "@ark-ui/react/factory";
|
|
7
|
+
//#region src/components/Button/Button.tsx
|
|
8
|
+
function u({ classes: u, variant: d, color: f, size: p, shape: m, block: h, leadingIcon: g, trailingIcon: _, iconProps: v, loading: y = !1, disabled: b = !1, type: x = "button", badge: S = !1, badgeLabel: C = (e) => e === null ? "new" : `${e} new`, asChild: w = !1, className: T, children: E, onClick: D, ...O }) {
|
|
9
|
+
let k = e("button", t, u), A = e("spinner", i), j = k({
|
|
10
|
+
variant: d,
|
|
11
|
+
color: n(f),
|
|
12
|
+
size: p,
|
|
13
|
+
shape: m,
|
|
14
|
+
block: h
|
|
15
|
+
}), M = typeof S == "number" && S > 0 ? S : 0;
|
|
16
|
+
return /* @__PURE__ */ s(l.button, {
|
|
17
|
+
...O,
|
|
18
|
+
className: j.base({ class: T }),
|
|
19
|
+
asChild: w,
|
|
20
|
+
type: w ? void 0 : x,
|
|
21
|
+
disabled: w ? void 0 : b,
|
|
22
|
+
"aria-disabled": y || void 0,
|
|
23
|
+
"aria-busy": y || void 0,
|
|
24
|
+
onClick: (e) => {
|
|
25
|
+
y ? e.preventDefault() : D?.(e);
|
|
26
|
+
},
|
|
27
|
+
children: w ? E : /* @__PURE__ */ c(o, { children: [
|
|
28
|
+
y ? /* @__PURE__ */ s(a, {
|
|
29
|
+
className: A().icon({ class: j.icon() }),
|
|
30
|
+
"aria-hidden": "true"
|
|
31
|
+
}) : g && /* @__PURE__ */ s(g, {
|
|
32
|
+
...v,
|
|
33
|
+
className: j.icon(),
|
|
34
|
+
"aria-hidden": "true"
|
|
35
|
+
}),
|
|
36
|
+
E,
|
|
37
|
+
_ && /* @__PURE__ */ s(_, {
|
|
38
|
+
...v,
|
|
39
|
+
className: j.icon(),
|
|
40
|
+
"aria-hidden": "true"
|
|
41
|
+
}),
|
|
42
|
+
M ? /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("span", {
|
|
43
|
+
className: j.badge(),
|
|
44
|
+
"aria-hidden": "true",
|
|
45
|
+
children: r(M)
|
|
46
|
+
}), /* @__PURE__ */ s("span", {
|
|
47
|
+
className: j.badgeLabel(),
|
|
48
|
+
children: ` ${C(r(M))}`
|
|
49
|
+
})] }) : S === !0 && /* @__PURE__ */ c(o, { children: [/* @__PURE__ */ s("span", {
|
|
50
|
+
className: j.dot(),
|
|
51
|
+
"aria-hidden": "true"
|
|
52
|
+
}), /* @__PURE__ */ s("span", {
|
|
53
|
+
className: j.badgeLabel(),
|
|
54
|
+
children: ` ${C(null)}`
|
|
55
|
+
})] })
|
|
56
|
+
] })
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { u as t };
|