@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.
Files changed (58) hide show
  1. package/Accordion-Btp_b0xA.js +59 -0
  2. package/{Alert-B71lVm89.js → Alert-CBgIsMKO.js} +1 -1
  3. package/Button-DN0G-MUb.js +21 -0
  4. package/CHANGELOG.md +2 -528
  5. package/{Calendar-BtYEcLJH.js → Calendar-Dxavv2c7.js} +12 -12
  6. package/Checkbox-ViM9MktI.js +30 -0
  7. package/Currency-C4QFWO7Y.js +37 -0
  8. package/{DateInput-B4S5ssKR.js → DateInput-CdkyyAhc.js} +4 -4
  9. package/DatePicker-TkMCndrw.js +138 -0
  10. package/Dropdown-jKk4TyOa.js +201 -0
  11. package/Errors-D7gxq0y6.js +16 -0
  12. package/Flex-gD893rrB.js +19 -0
  13. package/Grid-DREMTVQI.js +30 -0
  14. package/List-BjMIo577.js +103 -0
  15. package/Markdown-Ck_88HOR.js +47 -0
  16. package/MarkdownText-kJVkmihW.js +9 -0
  17. package/Number-CnQ95aLO.js +35 -0
  18. package/Password-Bg97DYW3.js +36 -0
  19. package/README.md +17 -4
  20. package/RadioGroup-Dldom5ja.js +33 -0
  21. package/RangeCalendar-u2vxIhna.js +49 -0
  22. package/RangeDateInput-CopLdb6J.js +54 -0
  23. package/RangeDatePicker-DXpV-B_G.js +146 -0
  24. package/Renderer-B6WmwKDv.js +9 -0
  25. package/Repeater-BYgXVfbl.js +111 -0
  26. package/Select-BLUX_W91.js +55 -0
  27. package/Tabs-C2qqi8xO.js +129 -0
  28. package/TextArea-cw3Q2v97.js +35 -0
  29. package/TextInput-geLoAA0c.js +32 -0
  30. package/{Toggle-CCzdFjkq.js → Toggle-a7L71GwR.js} +5 -5
  31. package/index.js +790 -698
  32. package/index.umd.cjs +2 -2
  33. package/lib/components/Form.d.ts +7 -13
  34. package/lib/components/Grid.d.ts +2 -0
  35. package/lib/components/Markdown.d.ts +2 -0
  36. package/lib/components/MarkdownText.d.ts +2 -0
  37. package/lib/components/RangeDateInput.d.ts +2 -0
  38. package/lib/components/RangeDatePicker.d.ts +2 -0
  39. package/lib/widget.loaders.d.ts +2 -2
  40. package/package.json +11 -6
  41. package/Accordion-F768Nqhg.js +0 -58
  42. package/Button-BctTVpNg.js +0 -20
  43. package/Checkbox-CezJrTAx.js +0 -30
  44. package/Currency-Bj2yx0JY.js +0 -36
  45. package/DatePicker-C1Qiridi.js +0 -130
  46. package/Dropdown-Dd50Psea.js +0 -196
  47. package/Flex-DPIzOItG.js +0 -11
  48. package/List-CLplkkLa.js +0 -103
  49. package/Number-DsIN4V1r.js +0 -34
  50. package/Password-B_QkZ1WU.js +0 -35
  51. package/RadioGroup-BPhyHxKf.js +0 -32
  52. package/RangeCalendar-B-FeEowl.js +0 -47
  53. package/Renderer-CRWbM4oE.js +0 -9
  54. package/Repeater-D1koXq-v.js +0 -46
  55. package/Select-DvFmJB1_.js +0 -54
  56. package/Tabs-CsmJz1Vs.js +0 -115
  57. package/TextArea-z99jVJ4-.js +0 -35
  58. 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 f } from "@golemui/react";
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 n = i.widget, { uid: l, errors: a, value: s, onValueChanged: t, onBlur: d, templateData: e, isTouched: r } = f(n), g = y(
7
- (v) => t(v.nativeEvent.detail.value),
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: l,
13
+ uid: n,
14
14
  label: u,
15
15
  errors: a,
16
16
  touched: r,