@golemui/gui-react 0.0.2 → 0.12.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/Accordion-Btp_b0xA.js +59 -0
- package/{Alert-B71lVm89.js → Alert-CBgIsMKO.js} +1 -1
- package/Button-DN0G-MUb.js +21 -0
- package/CHANGELOG.md +2 -528
- package/{Calendar-BtYEcLJH.js → Calendar-Dxavv2c7.js} +12 -12
- package/Checkbox-ViM9MktI.js +30 -0
- package/Currency-C4QFWO7Y.js +37 -0
- package/{DateInput-B4S5ssKR.js → DateInput-CdkyyAhc.js} +4 -4
- package/DatePicker-TkMCndrw.js +138 -0
- package/Dropdown-jKk4TyOa.js +201 -0
- package/Errors-D7gxq0y6.js +16 -0
- package/Flex-gD893rrB.js +19 -0
- package/Grid-DREMTVQI.js +30 -0
- package/List-BjMIo577.js +103 -0
- package/Markdown-Ck_88HOR.js +47 -0
- package/MarkdownText-kJVkmihW.js +9 -0
- package/Number-CnQ95aLO.js +35 -0
- package/Password-Bg97DYW3.js +36 -0
- package/README.md +17 -4
- package/RadioGroup-Dldom5ja.js +33 -0
- package/RangeCalendar-u2vxIhna.js +49 -0
- package/RangeDateInput-CopLdb6J.js +54 -0
- package/RangeDatePicker-DXpV-B_G.js +146 -0
- package/Renderer-B6WmwKDv.js +9 -0
- package/Repeater-BYgXVfbl.js +111 -0
- package/Select-BLUX_W91.js +55 -0
- package/Tabs-C2qqi8xO.js +129 -0
- package/TextArea-cw3Q2v97.js +35 -0
- package/TextInput-geLoAA0c.js +32 -0
- package/{Toggle-CCzdFjkq.js → Toggle-a7L71GwR.js} +5 -5
- package/index.js +790 -698
- package/index.umd.cjs +2 -2
- package/lib/components/Form.d.ts +7 -13
- package/lib/components/Grid.d.ts +2 -0
- package/lib/components/Markdown.d.ts +2 -0
- package/lib/components/MarkdownText.d.ts +2 -0
- package/lib/components/RangeDateInput.d.ts +2 -0
- package/lib/components/RangeDatePicker.d.ts +2 -0
- package/lib/widget.loaders.d.ts +2 -2
- package/package.json +11 -6
- package/Accordion-F768Nqhg.js +0 -58
- package/Button-BctTVpNg.js +0 -20
- package/Checkbox-CezJrTAx.js +0 -30
- package/Currency-Bj2yx0JY.js +0 -36
- package/DatePicker-C1Qiridi.js +0 -130
- package/Dropdown-Dd50Psea.js +0 -196
- package/Flex-DPIzOItG.js +0 -11
- package/List-CLplkkLa.js +0 -103
- package/Number-DsIN4V1r.js +0 -34
- package/Password-B_QkZ1WU.js +0 -35
- package/RadioGroup-BPhyHxKf.js +0 -32
- package/RangeCalendar-B-FeEowl.js +0 -47
- package/Renderer-CRWbM4oE.js +0 -9
- package/Repeater-D1koXq-v.js +0 -46
- package/Select-DvFmJB1_.js +0 -54
- package/Tabs-CsmJz1Vs.js +0 -115
- package/TextArea-z99jVJ4-.js +0 -35
- package/TextInput-BTkEyMEv.js +0 -31
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useInputWidget as C } from "@golemui/react";
|
|
3
|
+
import { useCallback as D } from "react";
|
|
4
|
+
/* empty css */
|
|
5
|
+
function M(a) {
|
|
6
|
+
const i = a.widget, { uid: n, errors: l, value: r, isTouched: d, templateData: e, onValueChanged: t, onBlur: s } = C(i), u = D(
|
|
7
|
+
(q) => t(q.nativeEvent.detail.value),
|
|
8
|
+
[t]
|
|
9
|
+
), c = e.label, m = e.hint, h = e.placeholder, p = e.validator?.maxLength, g = e.counterMode, v = e.autocomplete, x = e.autoGrow, b = e.minimumHeight, f = e.disabled, w = e.readonly, y = e.validator?.required;
|
|
10
|
+
return /* @__PURE__ */ o("div", { className: "gui-textarea gui-field", style: { flex: e.size }, children: /* @__PURE__ */ o(
|
|
11
|
+
"gui-textarea",
|
|
12
|
+
{
|
|
13
|
+
uid: n,
|
|
14
|
+
label: c,
|
|
15
|
+
errors: l,
|
|
16
|
+
touched: d,
|
|
17
|
+
required: y,
|
|
18
|
+
disabled: f,
|
|
19
|
+
readOnly: w,
|
|
20
|
+
value: r,
|
|
21
|
+
hint: m,
|
|
22
|
+
placeholder: h,
|
|
23
|
+
autocomplete: v ?? void 0,
|
|
24
|
+
counterMode: g,
|
|
25
|
+
minimumHeight: b,
|
|
26
|
+
autoGrow: x,
|
|
27
|
+
maxLength: p,
|
|
28
|
+
onInput: u,
|
|
29
|
+
onBlur: s
|
|
30
|
+
}
|
|
31
|
+
) });
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
M as TextArea
|
|
35
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { useInputWidget as y } from "@golemui/react";
|
|
3
|
+
import { useCallback as q } from "react";
|
|
4
|
+
/* empty css */
|
|
5
|
+
function R(i) {
|
|
6
|
+
const n = i.widget, { uid: l, errors: a, value: d, isTouched: r, templateData: e, onValueChanged: t, onBlur: s } = y(n), c = q(
|
|
7
|
+
(x) => t(x.nativeEvent.detail.value),
|
|
8
|
+
[t]
|
|
9
|
+
), u = e.label, p = e.hint, m = e.placeholder, h = e.autocomplete, g = e.icon, v = e.disabled, b = e.readonly, f = e.validator?.required;
|
|
10
|
+
return /* @__PURE__ */ o("div", { className: "gui-textinput gui-field", style: { flex: e.size }, children: /* @__PURE__ */ o(
|
|
11
|
+
"gui-textinput",
|
|
12
|
+
{
|
|
13
|
+
uid: l,
|
|
14
|
+
label: u,
|
|
15
|
+
hint: p,
|
|
16
|
+
errors: a,
|
|
17
|
+
touched: r,
|
|
18
|
+
required: f,
|
|
19
|
+
disabled: v,
|
|
20
|
+
readOnly: b,
|
|
21
|
+
value: d,
|
|
22
|
+
icon: g,
|
|
23
|
+
placeholder: m ?? void 0,
|
|
24
|
+
autocomplete: h ?? void 0,
|
|
25
|
+
onInput: c,
|
|
26
|
+
onBlur: s
|
|
27
|
+
}
|
|
28
|
+
) });
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
R as TextInput
|
|
32
|
+
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import { useInputWidget as
|
|
2
|
+
import { useInputWidget as v } from "@golemui/react";
|
|
3
3
|
import { useCallback as y } from "react";
|
|
4
4
|
/* empty css */
|
|
5
5
|
function D(i) {
|
|
6
|
-
const
|
|
7
|
-
(
|
|
6
|
+
const l = i.widget, { uid: n, errors: a, value: s, onValueChanged: t, onBlur: d, templateData: e, isTouched: r } = v(l), g = y(
|
|
7
|
+
(f) => t(f.nativeEvent.detail.value),
|
|
8
8
|
[t]
|
|
9
9
|
), u = e.label, c = e.hint, h = e.togglePosition, m = e.disabled, p = e.readonly, b = e.validator?.required;
|
|
10
|
-
return /* @__PURE__ */ o("div", { className: "gui-toggle", style: { flex: e.size }, children: /* @__PURE__ */ o(
|
|
10
|
+
return /* @__PURE__ */ o("div", { className: "gui-toggle gui-field", style: { flex: e.size }, children: /* @__PURE__ */ o(
|
|
11
11
|
"gui-toggle",
|
|
12
12
|
{
|
|
13
|
-
uid:
|
|
13
|
+
uid: n,
|
|
14
14
|
label: u,
|
|
15
15
|
errors: a,
|
|
16
16
|
touched: r,
|