@pyck/react 0.0.5 → 0.0.7

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 (88) hide show
  1. package/dist/checkmark-rF75Pk98.js +75 -0
  2. package/dist/close-button-DAgpEZYq.js +172 -0
  3. package/dist/components/avatar/index.js +118 -20
  4. package/dist/components/button/index.js +1 -1
  5. package/dist/components/carousel/index.js +52 -12
  6. package/dist/components/checkbox/index.d.ts +1 -1
  7. package/dist/components/checkbox/index.js +151 -34
  8. package/dist/components/checkmark/index.js +1 -1
  9. package/dist/components/clipboard/index.js +3 -2
  10. package/dist/components/combobox/index.js +46 -9
  11. package/dist/components/data-list/index.d.ts +3 -2
  12. package/dist/components/data-list/index.js +23 -8
  13. package/dist/components/date-picker/index.js +17 -10
  14. package/dist/components/dialog/index.d.ts +1 -1
  15. package/dist/components/dialog/index.js +156 -95
  16. package/dist/components/display-date-value/index.d.ts +1 -1
  17. package/dist/components/display-date-value/index.js +2 -2
  18. package/dist/components/display-value/index.js +1 -1
  19. package/dist/components/drawer/index.d.ts +1 -1
  20. package/dist/components/drawer/index.js +22 -1
  21. package/dist/components/drilldown-menu/index.js +268 -87
  22. package/dist/components/field/index.js +110 -27
  23. package/dist/components/floating-panel/index.d.ts +1 -1
  24. package/dist/components/floating-panel/index.js +91 -43
  25. package/dist/components/form/index.d.ts +1 -1
  26. package/dist/components/form/index.js +142 -26
  27. package/dist/components/highlight/index.d.ts +1 -1
  28. package/dist/components/highlight/index.js +63 -14
  29. package/dist/components/icon/index.d.ts +1 -1
  30. package/dist/components/icon/index.js +1 -1
  31. package/dist/components/image/index.js +33 -2
  32. package/dist/components/input/index.d.ts +1 -1
  33. package/dist/components/input/index.js +67 -4
  34. package/dist/components/input-group/index.js +79 -14
  35. package/dist/components/json-form-builder/index.d.ts +1 -1
  36. package/dist/components/json-form-builder/index.js +383 -99
  37. package/dist/components/loader/index.js +35 -15
  38. package/dist/components/logo/index.js +97 -19
  39. package/dist/components/menu/index.d.ts +1 -1
  40. package/dist/components/menu/index.js +41 -7
  41. package/dist/components/number-input/index.d.ts +1 -1
  42. package/dist/components/number-input/index.js +68 -13
  43. package/dist/components/page-header/index.js +67 -12
  44. package/dist/components/pagination/index.d.ts +1 -1
  45. package/dist/components/pagination/index.js +52 -13
  46. package/dist/components/picker/index.js +56 -28
  47. package/dist/components/popover/index.d.ts +1 -1
  48. package/dist/components/popover/index.js +2 -1
  49. package/dist/components/progress/index.js +57 -23
  50. package/dist/components/progress-circle/index.js +82 -30
  51. package/dist/components/radio-group/index.js +60 -19
  52. package/dist/components/scroll-area/index.js +80 -19
  53. package/dist/components/segment-group/index.d.ts +1 -1
  54. package/dist/components/segment-group/index.js +40 -5
  55. package/dist/components/select/index.d.ts +1 -1
  56. package/dist/components/select/index.js +119 -22
  57. package/dist/components/show/index.js +1 -1
  58. package/dist/components/skeleton/index.js +55 -4
  59. package/dist/components/slider/index.d.ts +1 -0
  60. package/dist/components/slider/index.js +174 -55
  61. package/dist/components/spotlight/index.js +447 -126
  62. package/dist/components/steps/index.js +35 -13
  63. package/dist/components/switch/index.d.ts +1 -1
  64. package/dist/components/switch/index.js +210 -43
  65. package/dist/components/table/index.d.ts +1 -1
  66. package/dist/components/table/index.js +435 -67
  67. package/dist/components/tags-input/index.d.ts +1 -1
  68. package/dist/components/tags-input/index.js +25 -9
  69. package/dist/components/textarea/index.d.ts +1 -1
  70. package/dist/components/textarea/index.js +66 -4
  71. package/dist/components/toast/index.d.ts +1 -1
  72. package/dist/components/toast/index.js +56 -22
  73. package/dist/components/tooltip/index.d.ts +1 -1
  74. package/dist/components/tooltip/index.js +87 -25
  75. package/dist/components/tree-view/index.d.ts +1 -1
  76. package/dist/components/tree-view/index.js +64 -8
  77. package/dist/display-date-value-CSPbdE60.js +45 -0
  78. package/dist/{display-date-value-CdfgVuB7.d.ts → display-date-value-RbzRgYHt.d.ts} +1 -1
  79. package/dist/display-value-R2nHrGQo.js +81 -0
  80. package/dist/{featured-icon-DPysOpSf.js → featured-icon-DBnAKGXC.js} +31 -4
  81. package/dist/show-B7zG1Vci.js +28 -0
  82. package/dist/utils/index.js +164 -73
  83. package/package.json +6 -3
  84. package/dist/checkmark-CW-yHMvN.js +0 -18
  85. package/dist/close-button-BM7ikbYh.js +0 -52
  86. package/dist/display-date-value-gTlidtNz.js +0 -21
  87. package/dist/display-value-BNKxQ99u.js +0 -37
  88. package/dist/show-IaI-36v9.js +0 -12
@@ -1,27 +1,47 @@
1
1
  import { forwardRef } from "react";
2
2
  import { styled } from "@pyck/styled-system/jsx";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
3
4
  import { AbsoluteCenter } from "@pyck/react/absolute-center";
4
5
  import { Spinner } from "@pyck/react/spinner";
5
6
 
6
7
  //#region src/components/loader/loader.tsx
7
8
  const Span = styled("span");
8
9
  const Loader = forwardRef(function Loader(props, ref) {
9
- const { spinner = <Spinner size="inherit" borderWidth="0.125em" color="inherit" />, spinnerPlacement = "start", children, text, visible = true, ...rest } = props;
10
+ const { spinner = /* @__PURE__ */ jsx(Spinner, {
11
+ size: "inherit",
12
+ borderWidth: "0.125em",
13
+ color: "inherit"
14
+ }), spinnerPlacement = "start", children, text, visible = true, ...rest } = props;
10
15
  if (!visible) return children;
11
- if (text) return <Span ref={ref} display="contents" {...rest}>
12
- {spinnerPlacement === "start" && spinner}
13
- {text}
14
- {spinnerPlacement === "end" && spinner}
15
- </Span>;
16
- if (spinner) return <Span ref={ref} display="contents" {...rest}>
17
- <AbsoluteCenter display="inline-flex">{spinner}</AbsoluteCenter>
18
- <Span visibility="hidden" display="contents">
19
- {children}
20
- </Span>
21
- </Span>;
22
- return <Span ref={ref} display="contents" {...rest}>
23
- {children}
24
- </Span>;
16
+ if (text) return /* @__PURE__ */ jsxs(Span, {
17
+ ref,
18
+ display: "contents",
19
+ ...rest,
20
+ children: [
21
+ spinnerPlacement === "start" && spinner,
22
+ text,
23
+ spinnerPlacement === "end" && spinner
24
+ ]
25
+ });
26
+ if (spinner) return /* @__PURE__ */ jsxs(Span, {
27
+ ref,
28
+ display: "contents",
29
+ ...rest,
30
+ children: [/* @__PURE__ */ jsx(AbsoluteCenter, {
31
+ display: "inline-flex",
32
+ children: spinner
33
+ }), /* @__PURE__ */ jsx(Span, {
34
+ visibility: "hidden",
35
+ display: "contents",
36
+ children
37
+ })]
38
+ });
39
+ return /* @__PURE__ */ jsx(Span, {
40
+ ref,
41
+ display: "contents",
42
+ ...rest,
43
+ children
44
+ });
25
45
  });
26
46
 
27
47
  //#endregion
@@ -1,25 +1,103 @@
1
+ import { c } from "react/compiler-runtime";
2
+ import { jsx, jsxs } from "react/jsx-runtime";
3
+
1
4
  //#region src/components/logo/logo.tsx
2
5
  const Logo = (props) => {
3
- return <svg viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
4
- <title>Pyck Logo</title>
5
- <path d="M23.9648 14.7432C22.7094 20.0485 17.8934 23.9999 12.1426 24C9.3075 24 6.70113 23.0371 4.63477 21.4277C8.9098 20.4307 12.9283 17.3733 16.9268 16.2139C19.3145 16.0313 21.6543 15.4633 23.9648 14.7432ZM12.1426 0C17.9528 0.000132398 22.8082 4.03376 24.002 9.42188C18.9357 11.5198 12.7029 11.8905 14.5098 4.35352C13.4466 4.78152 12.6277 5.72995 11.6211 6.28809C10.4736 6.91121 9.73972 6.64161 7.73633 7.81348C7.30352 8.06454 6.75768 8.53945 6.31543 8.93945C5.91107 9.31137 5.6004 9.71109 5.29004 10.0088C4.28369 10.883 3.80445 11.4415 3.7666 11.9531C3.71952 12.5299 3.82299 12.7996 4.04883 13.0693C4.99889 14.2323 7.56671 14.7726 10.6807 15.0703C12.7798 16.3801 5.94935 19.3806 3.05176 19.9512C1.15419 17.8338 0 15.0509 0 12C5.21518e-07 5.37258 5.43658 0 12.1426 0ZM8.71484 9.45117C9.45796 8.60498 10.8212 9.76692 10.0508 10.5947H10.0596C9.30688 11.4321 7.9434 10.2977 8.71484 9.45117Z" fill="currentColor" />
6
- </svg>;
6
+ const $ = c(4);
7
+ let t0;
8
+ let t1;
9
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
10
+ t0 = /* @__PURE__ */ jsx("title", { children: "Pyck Logo" });
11
+ t1 = /* @__PURE__ */ jsx("path", {
12
+ d: "M23.9648 14.7432C22.7094 20.0485 17.8934 23.9999 12.1426 24C9.3075 24 6.70113 23.0371 4.63477 21.4277C8.9098 20.4307 12.9283 17.3733 16.9268 16.2139C19.3145 16.0313 21.6543 15.4633 23.9648 14.7432ZM12.1426 0C17.9528 0.000132398 22.8082 4.03376 24.002 9.42188C18.9357 11.5198 12.7029 11.8905 14.5098 4.35352C13.4466 4.78152 12.6277 5.72995 11.6211 6.28809C10.4736 6.91121 9.73972 6.64161 7.73633 7.81348C7.30352 8.06454 6.75768 8.53945 6.31543 8.93945C5.91107 9.31137 5.6004 9.71109 5.29004 10.0088C4.28369 10.883 3.80445 11.4415 3.7666 11.9531C3.71952 12.5299 3.82299 12.7996 4.04883 13.0693C4.99889 14.2323 7.56671 14.7726 10.6807 15.0703C12.7798 16.3801 5.94935 19.3806 3.05176 19.9512C1.15419 17.8338 0 15.0509 0 12C5.21518e-07 5.37258 5.43658 0 12.1426 0ZM8.71484 9.45117C9.45796 8.60498 10.8212 9.76692 10.0508 10.5947H10.0596C9.30688 11.4321 7.9434 10.2977 8.71484 9.45117Z",
13
+ fill: "currentColor"
14
+ });
15
+ $[0] = t0;
16
+ $[1] = t1;
17
+ } else {
18
+ t0 = $[0];
19
+ t1 = $[1];
20
+ }
21
+ let t2;
22
+ if ($[2] !== props) {
23
+ t2 = /* @__PURE__ */ jsxs("svg", {
24
+ viewBox: "0 0 24 24",
25
+ fill: "none",
26
+ xmlns: "http://www.w3.org/2000/svg",
27
+ ...props,
28
+ children: [t0, t1]
29
+ });
30
+ $[2] = props;
31
+ $[3] = t2;
32
+ } else t2 = $[3];
33
+ return t2;
34
+ };
35
+ const FullLogo = (props) => {
36
+ const $ = c(5);
37
+ let t0;
38
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
39
+ t0 = /* @__PURE__ */ jsx("title", { children: "Pyck Logo" });
40
+ $[0] = t0;
41
+ } else t0 = $[0];
42
+ let t1;
43
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
44
+ t1 = /* @__PURE__ */ jsxs("g", {
45
+ clipPath: "url(#clip0_14004_29403)",
46
+ children: [
47
+ /* @__PURE__ */ jsx("path", {
48
+ d: "M10.8098 24.5945C9.85325 24.0459 8.76308 23.7716 7.53928 23.7716C6.44207 23.7716 5.49257 24.0107 4.6767 24.482C4.24766 24.7352 3.86786 25.0587 3.54433 25.4455V23.9545H-0.000488281V41.362H3.70609V35.3767C4.00853 35.7143 4.34613 35.9956 4.72593 36.2207C5.53477 36.6989 6.47021 36.931 7.53224 36.931C8.75605 36.931 9.84622 36.6567 10.8028 36.1081C11.7593 35.5595 12.5259 34.7999 13.0886 33.8223C13.6513 32.8446 13.9326 31.6841 13.9326 30.3408C13.9326 28.9974 13.6513 27.851 13.0886 26.8663C12.5259 25.8816 11.7663 25.115 10.8028 24.5734L10.8098 24.5945ZM9.74072 32.2538C9.44532 32.7884 9.05848 33.1963 8.57318 33.4776C8.08788 33.766 7.53928 33.9067 6.92034 33.9067C6.30141 33.9067 5.74577 33.766 5.25343 33.4776C4.7611 33.1893 4.36723 32.7813 4.07886 32.2538C3.78346 31.7193 3.63576 31.0933 3.63576 30.3619C3.63576 29.6304 3.78346 28.9833 4.07886 28.4629C4.37426 27.9424 4.7611 27.5415 5.25343 27.2602C5.74577 26.9859 6.30141 26.8452 6.92034 26.8452C7.53928 26.8452 8.08788 26.9859 8.57318 27.2602C9.05848 27.5345 9.44532 27.9354 9.74072 28.4629C10.0361 28.9833 10.1838 29.6234 10.1838 30.3619C10.1838 31.1004 10.0361 31.7193 9.74072 32.2538Z",
49
+ fill: "currentcolor"
50
+ }),
51
+ /* @__PURE__ */ jsx("path", {
52
+ d: "M21.5786 32.6474L17.9775 23.9682H14.1725L19.6866 36.8674L19.6374 36.9729C19.3842 37.5426 19.1028 37.9505 18.7934 38.1967C18.4839 38.4429 18.076 38.5624 17.5696 38.5624C17.1898 38.5624 16.81 38.4921 16.4372 38.3514C16.0644 38.2108 15.7339 37.9998 15.4525 37.7325L14.0951 40.3982C14.5241 40.7639 15.0587 41.0452 15.7128 41.2562C16.3598 41.4602 17.0139 41.5657 17.661 41.5657C18.4347 41.5657 19.145 41.4461 19.7921 41.207C20.4322 40.9679 21.023 40.5599 21.5505 39.9832C22.085 39.4064 22.5562 38.5906 22.9642 37.5426L28.7456 23.9612H25.2008L21.5716 32.6404L21.5786 32.6474Z",
53
+ fill: "currentcolor"
54
+ }),
55
+ /* @__PURE__ */ jsx("path", {
56
+ d: "M34.386 27.2531C34.8924 26.9788 35.455 26.8382 36.074 26.8382C36.6577 26.8382 37.1993 26.9788 37.6917 27.2531C38.184 27.5274 38.606 27.9705 38.9506 28.5754L41.8062 27.007C41.3631 25.9801 40.6386 25.1783 39.6329 24.6156C38.6271 24.0529 37.4455 23.7716 36.1021 23.7716C34.7587 23.7716 33.4998 24.06 32.4307 24.6297C31.3616 25.1994 30.5176 25.9801 29.9127 26.9577C29.3008 27.9424 28.9984 29.0748 28.9984 30.3548C28.9984 31.6349 29.3008 32.7602 29.9127 33.759C30.5247 34.7577 31.3616 35.5384 32.4307 36.1011C33.4998 36.6638 34.7236 36.9451 36.1021 36.9451C37.4807 36.9451 38.6271 36.6567 39.6329 36.087C40.6386 35.5173 41.3631 34.7226 41.8062 33.7097L38.9506 32.1413C38.599 32.7602 38.184 33.2104 37.6917 33.4847C37.1993 33.759 36.6577 33.8997 36.074 33.8997C35.455 33.8997 34.8924 33.759 34.386 33.4847C33.8796 33.2104 33.4716 32.8024 33.1762 32.2749C32.8738 31.7404 32.7261 31.1074 32.7261 30.3619C32.7261 29.6163 32.8738 28.9833 33.1762 28.4629C33.4787 27.9424 33.8796 27.5415 34.386 27.2602V27.2531Z",
57
+ fill: "currentcolor"
58
+ }),
59
+ /* @__PURE__ */ jsx("path", {
60
+ d: "M57.4346 23.9623H53.0106L47.5879 29.0826V19.1093H43.8743V36.756H47.5879V33.5136L49.3884 31.7623L53.4115 36.756H57.9058L52.1033 29.378L57.4346 23.9623Z",
61
+ fill: "currentcolor"
62
+ }),
63
+ /* @__PURE__ */ jsx("path", {
64
+ d: "M77.9997 2.27797C77.8027 2.33423 77.3596 2.3905 77.1627 2.41863H77.1697C60.0294 5.36561 53.6502 -6.64034 38.7535 5.66805C32.2758 1.89816 26.3185 7.29979 21.1982 10.7743C17.6042 13.243 9.69164 15.5992 11.4007 8.38996C10.606 8.71349 9.99407 9.4309 9.2415 9.8529C8.38343 10.3241 7.83483 10.1202 6.33672 11.0064C6.01319 11.1963 5.60525 11.555 5.27468 11.8574C4.97225 12.1387 4.74015 12.4412 4.50805 12.6662C3.75548 13.3274 3.39678 13.7494 3.36864 14.1362C3.33348 14.5723 3.41084 14.7763 3.57964 14.9802C4.29001 15.8594 6.21012 16.2673 8.53817 16.4924C10.3668 17.6459 3.13654 20.5366 2.04637 20.2341C1.336 19.8895 0.414631 19.6363 -0.0144043 20.5225C0.400564 21.0781 1.27973 21.4861 1.96197 21.5423C5.94285 21.5916 9.58614 18.4195 13.2083 17.3575C19.8478 16.8441 25.995 12.3216 32.3461 12.7014C36.3692 13.046 38.9856 16.2392 42.9665 17.0551C47.1443 17.6599 51.9059 16.4361 56.1751 16.9214C56.773 16.9214 58.8337 16.8722 57.406 15.8172C56.3861 14.8114 55.1412 15.4163 53.9034 15.5148C51.5823 15.6414 49.2121 15.5077 46.87 14.5301C43.1986 12.9968 42.1365 8.23522 39.0981 5.87905C51.4417 3.47364 57.8842 18.2437 77.9926 2.2639L77.9997 2.27797ZM8.07396 13.1093C7.51129 13.7423 6.49146 12.8843 7.06819 12.2442C7.62383 11.6042 8.64367 12.4834 8.06693 13.1093H8.07396Z",
65
+ fill: "currentcolor"
66
+ })
67
+ ]
68
+ });
69
+ $[1] = t1;
70
+ } else t1 = $[1];
71
+ let t2;
72
+ if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
73
+ t2 = /* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", {
74
+ id: "clip0_14004_29403",
75
+ children: /* @__PURE__ */ jsx("rect", {
76
+ width: "78",
77
+ height: "41.5601",
78
+ fill: "white"
79
+ })
80
+ }) });
81
+ $[2] = t2;
82
+ } else t2 = $[2];
83
+ let t3;
84
+ if ($[3] !== props) {
85
+ t3 = /* @__PURE__ */ jsxs("svg", {
86
+ viewBox: "0 0 78 42",
87
+ fill: "none",
88
+ xmlns: "http://www.w3.org/2000/svg",
89
+ ...props,
90
+ children: [
91
+ t0,
92
+ t1,
93
+ t2
94
+ ]
95
+ });
96
+ $[3] = props;
97
+ $[4] = t3;
98
+ } else t3 = $[4];
99
+ return t3;
7
100
  };
8
- const FullLogo = (props) => <svg viewBox="0 0 78 42" fill="none" xmlns="http://www.w3.org/2000/svg" {...props}>
9
- <title>Pyck Logo</title>
10
- <g clipPath="url(#clip0_14004_29403)">
11
- <path d="M10.8098 24.5945C9.85325 24.0459 8.76308 23.7716 7.53928 23.7716C6.44207 23.7716 5.49257 24.0107 4.6767 24.482C4.24766 24.7352 3.86786 25.0587 3.54433 25.4455V23.9545H-0.000488281V41.362H3.70609V35.3767C4.00853 35.7143 4.34613 35.9956 4.72593 36.2207C5.53477 36.6989 6.47021 36.931 7.53224 36.931C8.75605 36.931 9.84622 36.6567 10.8028 36.1081C11.7593 35.5595 12.5259 34.7999 13.0886 33.8223C13.6513 32.8446 13.9326 31.6841 13.9326 30.3408C13.9326 28.9974 13.6513 27.851 13.0886 26.8663C12.5259 25.8816 11.7663 25.115 10.8028 24.5734L10.8098 24.5945ZM9.74072 32.2538C9.44532 32.7884 9.05848 33.1963 8.57318 33.4776C8.08788 33.766 7.53928 33.9067 6.92034 33.9067C6.30141 33.9067 5.74577 33.766 5.25343 33.4776C4.7611 33.1893 4.36723 32.7813 4.07886 32.2538C3.78346 31.7193 3.63576 31.0933 3.63576 30.3619C3.63576 29.6304 3.78346 28.9833 4.07886 28.4629C4.37426 27.9424 4.7611 27.5415 5.25343 27.2602C5.74577 26.9859 6.30141 26.8452 6.92034 26.8452C7.53928 26.8452 8.08788 26.9859 8.57318 27.2602C9.05848 27.5345 9.44532 27.9354 9.74072 28.4629C10.0361 28.9833 10.1838 29.6234 10.1838 30.3619C10.1838 31.1004 10.0361 31.7193 9.74072 32.2538Z" fill="currentcolor" />
12
- <path d="M21.5786 32.6474L17.9775 23.9682H14.1725L19.6866 36.8674L19.6374 36.9729C19.3842 37.5426 19.1028 37.9505 18.7934 38.1967C18.4839 38.4429 18.076 38.5624 17.5696 38.5624C17.1898 38.5624 16.81 38.4921 16.4372 38.3514C16.0644 38.2108 15.7339 37.9998 15.4525 37.7325L14.0951 40.3982C14.5241 40.7639 15.0587 41.0452 15.7128 41.2562C16.3598 41.4602 17.0139 41.5657 17.661 41.5657C18.4347 41.5657 19.145 41.4461 19.7921 41.207C20.4322 40.9679 21.023 40.5599 21.5505 39.9832C22.085 39.4064 22.5562 38.5906 22.9642 37.5426L28.7456 23.9612H25.2008L21.5716 32.6404L21.5786 32.6474Z" fill="currentcolor" />
13
- <path d="M34.386 27.2531C34.8924 26.9788 35.455 26.8382 36.074 26.8382C36.6577 26.8382 37.1993 26.9788 37.6917 27.2531C38.184 27.5274 38.606 27.9705 38.9506 28.5754L41.8062 27.007C41.3631 25.9801 40.6386 25.1783 39.6329 24.6156C38.6271 24.0529 37.4455 23.7716 36.1021 23.7716C34.7587 23.7716 33.4998 24.06 32.4307 24.6297C31.3616 25.1994 30.5176 25.9801 29.9127 26.9577C29.3008 27.9424 28.9984 29.0748 28.9984 30.3548C28.9984 31.6349 29.3008 32.7602 29.9127 33.759C30.5247 34.7577 31.3616 35.5384 32.4307 36.1011C33.4998 36.6638 34.7236 36.9451 36.1021 36.9451C37.4807 36.9451 38.6271 36.6567 39.6329 36.087C40.6386 35.5173 41.3631 34.7226 41.8062 33.7097L38.9506 32.1413C38.599 32.7602 38.184 33.2104 37.6917 33.4847C37.1993 33.759 36.6577 33.8997 36.074 33.8997C35.455 33.8997 34.8924 33.759 34.386 33.4847C33.8796 33.2104 33.4716 32.8024 33.1762 32.2749C32.8738 31.7404 32.7261 31.1074 32.7261 30.3619C32.7261 29.6163 32.8738 28.9833 33.1762 28.4629C33.4787 27.9424 33.8796 27.5415 34.386 27.2602V27.2531Z" fill="currentcolor" />
14
- <path d="M57.4346 23.9623H53.0106L47.5879 29.0826V19.1093H43.8743V36.756H47.5879V33.5136L49.3884 31.7623L53.4115 36.756H57.9058L52.1033 29.378L57.4346 23.9623Z" fill="currentcolor" />
15
- <path d="M77.9997 2.27797C77.8027 2.33423 77.3596 2.3905 77.1627 2.41863H77.1697C60.0294 5.36561 53.6502 -6.64034 38.7535 5.66805C32.2758 1.89816 26.3185 7.29979 21.1982 10.7743C17.6042 13.243 9.69164 15.5992 11.4007 8.38996C10.606 8.71349 9.99407 9.4309 9.2415 9.8529C8.38343 10.3241 7.83483 10.1202 6.33672 11.0064C6.01319 11.1963 5.60525 11.555 5.27468 11.8574C4.97225 12.1387 4.74015 12.4412 4.50805 12.6662C3.75548 13.3274 3.39678 13.7494 3.36864 14.1362C3.33348 14.5723 3.41084 14.7763 3.57964 14.9802C4.29001 15.8594 6.21012 16.2673 8.53817 16.4924C10.3668 17.6459 3.13654 20.5366 2.04637 20.2341C1.336 19.8895 0.414631 19.6363 -0.0144043 20.5225C0.400564 21.0781 1.27973 21.4861 1.96197 21.5423C5.94285 21.5916 9.58614 18.4195 13.2083 17.3575C19.8478 16.8441 25.995 12.3216 32.3461 12.7014C36.3692 13.046 38.9856 16.2392 42.9665 17.0551C47.1443 17.6599 51.9059 16.4361 56.1751 16.9214C56.773 16.9214 58.8337 16.8722 57.406 15.8172C56.3861 14.8114 55.1412 15.4163 53.9034 15.5148C51.5823 15.6414 49.2121 15.5077 46.87 14.5301C43.1986 12.9968 42.1365 8.23522 39.0981 5.87905C51.4417 3.47364 57.8842 18.2437 77.9926 2.2639L77.9997 2.27797ZM8.07396 13.1093C7.51129 13.7423 6.49146 12.8843 7.06819 12.2442C7.62383 11.6042 8.64367 12.4834 8.06693 13.1093H8.07396Z" fill="currentcolor" />
16
- </g>
17
- <defs>
18
- <clipPath id="clip0_14004_29403">
19
- <rect width="78" height="41.5601" fill="white" />
20
- </clipPath>
21
- </defs>
22
- </svg>;
23
101
 
24
102
  //#endregion
25
103
  export { FullLogo, Logo };
@@ -3,8 +3,8 @@ import { ComponentProps } from "react";
3
3
  import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
4
4
  import { HTMLStyledProps } from "@pyck/styled-system/jsx";
5
5
  import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
6
- import { Menu, MenuContext as Context, MenuSelectionDetails as SelectionDetails } from "@ark-ui/react/menu";
7
6
  import * as react_jsx_runtime0 from "react/jsx-runtime";
7
+ import { Menu, MenuContext as Context, MenuSelectionDetails as SelectionDetails } from "@ark-ui/react/menu";
8
8
 
9
9
  //#region src/components/menu/menu.d.ts
10
10
  declare namespace menu_d_exports {
@@ -1,10 +1,12 @@
1
1
  import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
- import { t as Show } from "../../show-IaI-36v9.js";
2
+ import { t as Show } from "../../show-B7zG1Vci.js";
3
3
  import "../show/index.js";
4
+ import { c } from "react/compiler-runtime";
4
5
  import { forwardRef } from "react";
5
6
  import { createStyleContext } from "@pyck/styled-system/jsx";
6
7
  import { menu } from "@pyck/styled-system/recipes";
7
8
  import { CheckIcon, ChevronDownIcon } from "lucide-react";
9
+ import { jsx } from "react/jsx-runtime";
8
10
  import { Menu, MenuContext as Context, useMenuItemContext } from "@ark-ui/react/menu";
9
11
 
10
12
  //#region src/components/menu/menu.tsx
@@ -44,7 +46,7 @@ const ArrowTip = withContext(Menu.ArrowTip, "arrowTip");
44
46
  const CheckboxItem = withContext(Menu.CheckboxItem, "item");
45
47
  const Content = withContext(Menu.Content, "content");
46
48
  const ContextTrigger = withContext(Menu.ContextTrigger, "contextTrigger");
47
- const Indicator = withContext(Menu.Indicator, "indicator", { defaultProps: { children: <ChevronDownIcon /> } });
49
+ const Indicator = withContext(Menu.Indicator, "indicator", { defaultProps: { children: /* @__PURE__ */ jsx(ChevronDownIcon, {}) } });
48
50
  const Item = withContext(Menu.Item, "item");
49
51
  const ItemGroup = withContext(Menu.ItemGroup, "itemGroup");
50
52
  const ItemGroupLabel = withContext(Menu.ItemGroupLabel, "itemGroupLabel");
@@ -57,12 +59,44 @@ const Trigger = withContext(Menu.Trigger, "trigger");
57
59
  const TriggerItem = withContext(Menu.TriggerItem, "item");
58
60
  const StyledItemIndicator = withContext(Menu.ItemIndicator, "itemIndicator");
59
61
  const ItemIndicator = forwardRef(function ItemIndicator(props, ref) {
62
+ const $ = c(8);
60
63
  const item = useMenuItemContext();
61
- return <Show when={item.checked} fallback={<svg aria-hidden="true" focusable="false" />}>
62
- <StyledItemIndicator ref={ref} {...props}>
63
- <CheckIcon />
64
- </StyledItemIndicator>
65
- </Show>;
64
+ let t0;
65
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
66
+ t0 = /* @__PURE__ */ jsx("svg", {
67
+ "aria-hidden": "true",
68
+ focusable: "false"
69
+ });
70
+ $[0] = t0;
71
+ } else t0 = $[0];
72
+ let t1;
73
+ if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
74
+ t1 = /* @__PURE__ */ jsx(CheckIcon, {});
75
+ $[1] = t1;
76
+ } else t1 = $[1];
77
+ let t2;
78
+ if ($[2] !== props || $[3] !== ref) {
79
+ t2 = /* @__PURE__ */ jsx(StyledItemIndicator, {
80
+ ref,
81
+ ...props,
82
+ children: t1
83
+ });
84
+ $[2] = props;
85
+ $[3] = ref;
86
+ $[4] = t2;
87
+ } else t2 = $[4];
88
+ let t3;
89
+ if ($[5] !== item.checked || $[6] !== t2) {
90
+ t3 = /* @__PURE__ */ jsx(Show, {
91
+ when: item.checked,
92
+ fallback: t0,
93
+ children: t2
94
+ });
95
+ $[5] = item.checked;
96
+ $[6] = t2;
97
+ $[7] = t3;
98
+ } else t3 = $[7];
99
+ return t3;
66
100
  });
67
101
 
68
102
  //#endregion
@@ -2,11 +2,11 @@ import * as react from "react";
2
2
  import { ComponentProps } from "react";
3
3
  import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
4
4
  import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
5
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
5
6
  import { FieldProps } from "@pyck/react/field";
6
7
  import { FieldPath, FieldValues } from "react-hook-form";
7
8
  import { NumberInput } from "@pyck/react/number-input";
8
9
  import { NumberInput as NumberInput$1, NumberInputContext as Context } from "@ark-ui/react/number-input";
9
- import * as react_jsx_runtime0 from "react/jsx-runtime";
10
10
 
11
11
  //#region src/components/number-input/number-input.d.ts
12
12
  declare namespace number_input_d_exports {
@@ -1,7 +1,9 @@
1
1
  import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { createStyleContext } from "@pyck/styled-system/jsx";
3
4
  import { numberInput } from "@pyck/styled-system/recipes";
4
5
  import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
6
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
7
  import { Field } from "@pyck/react/field";
6
8
  import { Controller, useFormContext } from "react-hook-form";
7
9
  import { NumberInput } from "@pyck/react/number-input";
@@ -23,28 +25,81 @@ var number_input_exports = /* @__PURE__ */ __exportAll({
23
25
  const { withProvider, withContext } = createStyleContext(numberInput);
24
26
  const Root = withProvider(NumberInput$1.Root, "root");
25
27
  const RootProvider = withProvider(NumberInput$1.RootProvider, "root");
26
- const DecrementTrigger = withContext(NumberInput$1.DecrementTrigger, "decrementTrigger", { defaultProps: { children: <ChevronDownIcon /> } });
27
- const IncrementTrigger = withContext(NumberInput$1.IncrementTrigger, "incrementTrigger", { defaultProps: { children: <ChevronUpIcon /> } });
28
+ const DecrementTrigger = withContext(NumberInput$1.DecrementTrigger, "decrementTrigger", { defaultProps: { children: /* @__PURE__ */ jsx(ChevronDownIcon, {}) } });
29
+ const IncrementTrigger = withContext(NumberInput$1.IncrementTrigger, "incrementTrigger", { defaultProps: { children: /* @__PURE__ */ jsx(ChevronUpIcon, {}) } });
28
30
  const Input = withContext(NumberInput$1.Input, "input");
29
31
  const Label = withContext(NumberInput$1.Label, "label");
30
32
  const Scrubber = withContext(NumberInput$1.Scrubber, "scrubber");
31
33
  const ValueText = withContext(NumberInput$1.ValueText, "valueText");
32
- const Control = withContext(NumberInput$1.Control, "control", { defaultProps: { children: <>
33
- <IncrementTrigger />
34
- <DecrementTrigger />
35
- </> } });
34
+ const Control = withContext(NumberInput$1.Control, "control", { defaultProps: { children: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(IncrementTrigger, {}), /* @__PURE__ */ jsx(DecrementTrigger, {})] }) } });
36
35
 
37
36
  //#endregion
38
37
  //#region src/components/number-input/number-input.field.tsx
39
38
  const NumberInputField = (props) => {
40
- const { name, label, helperText, disabled, ...numberInputProps } = props;
39
+ const $ = c(15);
40
+ let disabled;
41
+ let helperText;
42
+ let label;
43
+ let name;
44
+ let numberInputProps;
45
+ if ($[0] !== props) {
46
+ ({name, label, helperText, disabled, ...numberInputProps} = props);
47
+ $[0] = props;
48
+ $[1] = disabled;
49
+ $[2] = helperText;
50
+ $[3] = label;
51
+ $[4] = name;
52
+ $[5] = numberInputProps;
53
+ } else {
54
+ disabled = $[1];
55
+ helperText = $[2];
56
+ label = $[3];
57
+ name = $[4];
58
+ numberInputProps = $[5];
59
+ }
41
60
  const { control } = useFormContext();
42
- return <Controller name={name} control={control} render={({ field, fieldState }) => <Field label={label} helperText={helperText} disabled={field.disabled || disabled} invalid={!!fieldState.error} errorText={fieldState.error?.message} required={numberInputProps.required}>
43
- <NumberInput.Root {...numberInputProps} name={field.name} value={field.value} onValueChange={({ valueAsNumber }) => field.onChange(valueAsNumber)}>
44
- <NumberInput.Control />
45
- <NumberInput.Input onBlur={field.onBlur} />
46
- </NumberInput.Root>
47
- </Field>} />;
61
+ let t0;
62
+ if ($[6] !== disabled || $[7] !== helperText || $[8] !== label || $[9] !== numberInputProps) {
63
+ t0 = (t1) => {
64
+ const { field, fieldState } = t1;
65
+ return /* @__PURE__ */ jsx(Field, {
66
+ label,
67
+ helperText,
68
+ disabled: field.disabled || disabled,
69
+ invalid: !!fieldState.error,
70
+ errorText: fieldState.error?.message,
71
+ required: numberInputProps.required,
72
+ children: /* @__PURE__ */ jsxs(NumberInput.Root, {
73
+ ...numberInputProps,
74
+ name: field.name,
75
+ value: field.value,
76
+ onValueChange: (t2) => {
77
+ const { valueAsNumber } = t2;
78
+ return field.onChange(valueAsNumber);
79
+ },
80
+ children: [/* @__PURE__ */ jsx(NumberInput.Control, {}), /* @__PURE__ */ jsx(NumberInput.Input, { onBlur: field.onBlur })]
81
+ })
82
+ });
83
+ };
84
+ $[6] = disabled;
85
+ $[7] = helperText;
86
+ $[8] = label;
87
+ $[9] = numberInputProps;
88
+ $[10] = t0;
89
+ } else t0 = $[10];
90
+ let t1;
91
+ if ($[11] !== control || $[12] !== name || $[13] !== t0) {
92
+ t1 = /* @__PURE__ */ jsx(Controller, {
93
+ name,
94
+ control,
95
+ render: t0
96
+ });
97
+ $[11] = control;
98
+ $[12] = name;
99
+ $[13] = t0;
100
+ $[14] = t1;
101
+ } else t1 = $[14];
102
+ return t1;
48
103
  };
49
104
 
50
105
  //#endregion
@@ -1,21 +1,76 @@
1
+ import { c } from "react/compiler-runtime";
1
2
  import { Stack } from "@pyck/styled-system/jsx";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
2
4
  import { Show } from "@pyck/react/show";
3
5
  import { Heading } from "@pyck/react/heading";
4
6
  import { Text } from "@pyck/react/text";
5
7
 
6
8
  //#region src/components/page-header/page-header.tsx
7
- const PageHeader = ({ title, description, tagline, textAlign }) => {
8
- return <Stack gap="4" textAlign={textAlign}>
9
- <Show when={tagline}>{tagline}</Show>
10
- <Stack gap="1">
11
- <Heading as="h1" textStyle="2xl" fontWeight="semibold">
12
- {title}
13
- </Heading>
14
- <Show when={description}>
15
- <Text color="fg.muted">{description}</Text>
16
- </Show>
17
- </Stack>
18
- </Stack>;
9
+ const PageHeader = (t0) => {
10
+ const $ = c(16);
11
+ const { title, description, tagline, textAlign } = t0;
12
+ let t1;
13
+ if ($[0] !== tagline) {
14
+ t1 = /* @__PURE__ */ jsx(Show, {
15
+ when: tagline,
16
+ children: tagline
17
+ });
18
+ $[0] = tagline;
19
+ $[1] = t1;
20
+ } else t1 = $[1];
21
+ let t2;
22
+ if ($[2] !== title) {
23
+ t2 = /* @__PURE__ */ jsx(Heading, {
24
+ as: "h1",
25
+ textStyle: "2xl",
26
+ fontWeight: "semibold",
27
+ children: title
28
+ });
29
+ $[2] = title;
30
+ $[3] = t2;
31
+ } else t2 = $[3];
32
+ let t3;
33
+ if ($[4] !== description) {
34
+ t3 = /* @__PURE__ */ jsx(Text, {
35
+ color: "fg.muted",
36
+ children: description
37
+ });
38
+ $[4] = description;
39
+ $[5] = t3;
40
+ } else t3 = $[5];
41
+ let t4;
42
+ if ($[6] !== description || $[7] !== t3) {
43
+ t4 = /* @__PURE__ */ jsx(Show, {
44
+ when: description,
45
+ children: t3
46
+ });
47
+ $[6] = description;
48
+ $[7] = t3;
49
+ $[8] = t4;
50
+ } else t4 = $[8];
51
+ let t5;
52
+ if ($[9] !== t2 || $[10] !== t4) {
53
+ t5 = /* @__PURE__ */ jsxs(Stack, {
54
+ gap: "1",
55
+ children: [t2, t4]
56
+ });
57
+ $[9] = t2;
58
+ $[10] = t4;
59
+ $[11] = t5;
60
+ } else t5 = $[11];
61
+ let t6;
62
+ if ($[12] !== t1 || $[13] !== t5 || $[14] !== textAlign) {
63
+ t6 = /* @__PURE__ */ jsxs(Stack, {
64
+ gap: "4",
65
+ textAlign,
66
+ children: [t1, t5]
67
+ });
68
+ $[12] = t1;
69
+ $[13] = t5;
70
+ $[14] = textAlign;
71
+ $[15] = t6;
72
+ } else t6 = $[15];
73
+ return t6;
19
74
  };
20
75
 
21
76
  //#endregion
@@ -2,8 +2,8 @@ import * as react from "react";
2
2
  import { ComponentProps, ReactElement, ReactNode } from "react";
3
3
  import * as _pyck_styled_system_jsx0 from "@pyck/styled-system/jsx";
4
4
  import * as _pyck_styled_system_recipes0 from "@pyck/styled-system/recipes";
5
- import { Pagination, PaginationContext as Context } from "@ark-ui/react/pagination";
6
5
  import * as react_jsx_runtime0 from "react/jsx-runtime";
6
+ import { Pagination, PaginationContext as Context } from "@ark-ui/react/pagination";
7
7
 
8
8
  //#region src/components/pagination/pagination.d.ts
9
9
  declare namespace pagination_d_exports {
@@ -1,7 +1,9 @@
1
1
  import { t as __exportAll } from "../../chunk-BYypO7fO.js";
2
+ import { c } from "react/compiler-runtime";
2
3
  import { createStyleContext } from "@pyck/styled-system/jsx";
3
4
  import { pagination } from "@pyck/styled-system/recipes";
4
5
  import { EllipsisIcon } from "lucide-react";
6
+ import { jsx } from "react/jsx-runtime";
5
7
  import { IconButton } from "@pyck/react/button";
6
8
  import { For } from "@pyck/react/for";
7
9
  import { Pagination, PaginationContext as Context, usePaginationContext } from "@ark-ui/react/pagination";
@@ -25,20 +27,57 @@ const Ellipsis = withContext(Pagination.Ellipsis, "ellipsis");
25
27
  const PrevTrigger = withContext(Pagination.PrevTrigger, "prevTrigger");
26
28
  const NextTrigger = withContext(Pagination.NextTrigger, "nextTrigger");
27
29
  const Items = (props) => {
30
+ const $ = c(11);
28
31
  const { pages } = usePaginationContext();
29
- const { render, ellipsis, ...rest } = props;
30
- return <For each={pages}>
31
- {(page, index) => {
32
- if (page.type === "ellipsis") return <Ellipsis asChild key={index} index={index}>
33
- {ellipsis || <IconButton as="span">
34
- <EllipsisIcon />
35
- </IconButton>}
36
- </Ellipsis>;
37
- return <Item asChild key={index} type="page" value={page.value} {...rest}>
38
- {render(page)}
39
- </Item>;
40
- }}
41
- </For>;
32
+ let ellipsis;
33
+ let render;
34
+ let rest;
35
+ if ($[0] !== props) {
36
+ ({render, ellipsis, ...rest} = props);
37
+ $[0] = props;
38
+ $[1] = ellipsis;
39
+ $[2] = render;
40
+ $[3] = rest;
41
+ } else {
42
+ ellipsis = $[1];
43
+ render = $[2];
44
+ rest = $[3];
45
+ }
46
+ let t0;
47
+ if ($[4] !== ellipsis || $[5] !== render || $[6] !== rest) {
48
+ t0 = (page, index) => {
49
+ if (page.type === "ellipsis") return /* @__PURE__ */ jsx(Ellipsis, {
50
+ asChild: true,
51
+ index,
52
+ children: ellipsis || /* @__PURE__ */ jsx(IconButton, {
53
+ as: "span",
54
+ children: /* @__PURE__ */ jsx(EllipsisIcon, {})
55
+ })
56
+ }, index);
57
+ return /* @__PURE__ */ jsx(Item, {
58
+ asChild: true,
59
+ type: "page",
60
+ value: page.value,
61
+ ...rest,
62
+ children: render(page)
63
+ }, index);
64
+ };
65
+ $[4] = ellipsis;
66
+ $[5] = render;
67
+ $[6] = rest;
68
+ $[7] = t0;
69
+ } else t0 = $[7];
70
+ let t1;
71
+ if ($[8] !== pages || $[9] !== t0) {
72
+ t1 = /* @__PURE__ */ jsx(For, {
73
+ each: pages,
74
+ children: t0
75
+ });
76
+ $[8] = pages;
77
+ $[9] = t0;
78
+ $[10] = t1;
79
+ } else t1 = $[10];
80
+ return t1;
42
81
  };
43
82
 
44
83
  //#endregion