@paygreen/pgui 3.1.3 → 3.1.4

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/index.mjs CHANGED
@@ -351,11 +351,7 @@ function J(e) {
351
351
  }
352
352
  function ha(e) {
353
353
  var t = (r) => {
354
- var {
355
- attr: o,
356
- size: n,
357
- title: a
358
- } = e, l = ga(e, da), s = n || r.size || "1em", i;
354
+ var o = e.attr, n = e.size, a = e.title, l = ga(e, da), s = n || r.size || "1em", i;
359
355
  return r.className && (i = r.className), e.className && (i = (i ? i + " " : "") + e.className), /* @__PURE__ */ be.createElement("svg", dt({
360
356
  stroke: "currentColor",
361
357
  fill: "currentColor",
@@ -749,16 +745,16 @@ function Pa(e) {
749
745
  return J({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z" }, child: [] }, { tag: "path", attr: { d: "m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z" }, child: [] }] })(e);
750
746
  }
751
747
  function Ta(e) {
752
- return J({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z" }, child: [] }] })(e);
748
+ return J({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z" }, child: [] }] })(e);
753
749
  }
754
750
  function Da(e) {
755
- return J({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0V0z" }, child: [] }, { tag: "path", attr: { d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z" }, child: [] }] })(e);
751
+ return J({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z" }, child: [] }] })(e);
756
752
  }
757
753
  function ja(e) {
758
754
  return J({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" }, child: [] }] })(e);
759
755
  }
760
756
  function Oa(e) {
761
- return J({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9A7.902 7.902 0 0 1 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1A7.902 7.902 0 0 1 20 12c0 4.42-3.58 8-8 8z" }, child: [] }] })(e);
757
+ return J({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { fill: "none", d: "M0 0h24v24H0z" }, child: [] }, { tag: "path", attr: { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.69L5.69 16.9A7.9 7.9 0 0 1 4 12m8 8c-1.85 0-3.55-.63-4.9-1.69L18.31 7.1A7.9 7.9 0 0 1 20 12c0 4.42-3.58 8-8 8" }, child: [] }] })(e);
762
758
  }
763
759
  function Na({
764
760
  data: e,
@@ -1793,7 +1789,7 @@ function ti(e) {
1793
1789
  return e.hour = ot(e.hour, 24), t;
1794
1790
  }
1795
1791
  function ni(e) {
1796
- e.millisecond = Math.max(0, Math.min(e.millisecond, 1e3)), e.second = Math.max(0, Math.min(e.second, 59)), e.minute = Math.max(0, Math.min(e.minute, 59)), e.hour = Math.max(0, Math.min(e.hour, 23));
1792
+ e.millisecond = Math.max(0, Math.min(e.millisecond, 999)), e.second = Math.max(0, Math.min(e.second, 59)), e.minute = Math.max(0, Math.min(e.minute, 59)), e.hour = Math.max(0, Math.min(e.hour, 23));
1797
1793
  }
1798
1794
  function ot(e, t) {
1799
1795
  let r = e % t;
@@ -2674,7 +2670,7 @@ const Vi = D.forwardRef(
2674
2670
  }
2675
2671
  );
2676
2672
  }
2677
- ), Fc = D.forwardRef(function(t, r) {
2673
+ ), Gc = D.forwardRef(function(t, r) {
2678
2674
  const { max: o = 4, value: n, ...a } = t, l = n / o * 100, { label: s, colorPalette: i } = Mi(l);
2679
2675
  return /* @__PURE__ */ u.jsxs(ar, { align: "flex-end", gap: "1", ref: r, ...a, children: [
2680
2676
  /* @__PURE__ */ u.jsx(je, { width: "full", ...a, children: Array.from({ length: o }).map((c, d) => /* @__PURE__ */ u.jsx(
@@ -3460,7 +3456,7 @@ const Ti = {
3460
3456
  ]
3461
3457
  }
3462
3458
  );
3463
- }, Gc = (e) => ta(e), Ec = (e) => ea(e) || e, Ni = ({
3459
+ }, Ec = (e) => ta(e), Bc = (e) => ea(e) || e, Ni = ({
3464
3460
  locale: e = "en",
3465
3461
  label: t,
3466
3462
  value: r = "",
@@ -3536,7 +3532,7 @@ const Ti = {
3536
3532
  ) });
3537
3533
  };
3538
3534
  Ni.displayName = "InputPhone";
3539
- const Bc = ge(
3535
+ const Rc = ge(
3540
3536
  ({
3541
3537
  value: e,
3542
3538
  defaultValue: t,
@@ -3602,7 +3598,7 @@ const Bc = ge(
3602
3598
  }
3603
3599
  );
3604
3600
  }
3605
- ), Rc = ({
3601
+ ), wc = ({
3606
3602
  color: e = "white",
3607
3603
  width: t = "100%",
3608
3604
  height: r = "100%",
@@ -7398,7 +7394,7 @@ de.Footer = function({
7398
7394
  return /* @__PURE__ */ u.jsx(M, { w: "100%", role: "contentinfo", color: "sidebar.fg", ...r, children: t });
7399
7395
  };
7400
7396
  de.Root = Js;
7401
- const wc = D.forwardRef(
7397
+ const Mc = D.forwardRef(
7402
7398
  function(t, r) {
7403
7399
  const {
7404
7400
  showArrow: o,
@@ -7429,7 +7425,7 @@ const wc = D.forwardRef(
7429
7425
  );
7430
7426
  }
7431
7427
  );
7432
- function Mc(e) {
7428
+ function Vc(e) {
7433
7429
  return /* @__PURE__ */ u.jsx(la, { attribute: "class", disableTransitionOnChange: !0, ...e });
7434
7430
  }
7435
7431
  function Cn() {
@@ -7442,7 +7438,7 @@ function Cn() {
7442
7438
  }
7443
7439
  };
7444
7440
  }
7445
- function Vc(e, t) {
7441
+ function Pc(e, t) {
7446
7442
  const { colorMode: r } = Cn();
7447
7443
  return r === "dark" ? t : e;
7448
7444
  }
@@ -7450,7 +7446,7 @@ function _s() {
7450
7446
  const { colorMode: e } = Cn();
7451
7447
  return e === "dark" ? /* @__PURE__ */ u.jsx(Ei, {}) : /* @__PURE__ */ u.jsx(Gi, {});
7452
7448
  }
7453
- const Pc = be.forwardRef(function(t, r) {
7449
+ const Tc = be.forwardRef(function(t, r) {
7454
7450
  const { toggleColorMode: o } = Cn();
7455
7451
  return /* @__PURE__ */ u.jsx(Oo, { fallback: /* @__PURE__ */ u.jsx(No, { boxSize: "8" }), children: /* @__PURE__ */ u.jsx(
7456
7452
  ce,
@@ -7470,7 +7466,7 @@ const Pc = be.forwardRef(function(t, r) {
7470
7466
  children: /* @__PURE__ */ u.jsx(_s, {})
7471
7467
  }
7472
7468
  ) });
7473
- }), Tc = be.forwardRef(
7469
+ }), Dc = be.forwardRef(
7474
7470
  function(t, r) {
7475
7471
  return /* @__PURE__ */ u.jsx(
7476
7472
  ur,
@@ -7485,7 +7481,7 @@ const Pc = be.forwardRef(function(t, r) {
7485
7481
  }
7486
7482
  );
7487
7483
  }
7488
- ), Dc = be.forwardRef(
7484
+ ), jc = be.forwardRef(
7489
7485
  function(t, r) {
7490
7486
  return /* @__PURE__ */ u.jsx(
7491
7487
  ur,
@@ -7505,7 +7501,7 @@ const Pc = be.forwardRef(function(t, r) {
7505
7501
  pauseOnPageIdle: !0,
7506
7502
  duration: 5e3,
7507
7503
  max: 3
7508
- }), jc = () => /* @__PURE__ */ u.jsx(Xe, { children: /* @__PURE__ */ u.jsx(Xo, { toaster: $s, insetInline: { mdDown: "4" }, children: (e) => /* @__PURE__ */ u.jsxs(
7504
+ }), Oc = () => /* @__PURE__ */ u.jsx(Xe, { children: /* @__PURE__ */ u.jsx(Xo, { toaster: $s, insetInline: { mdDown: "4" }, children: (e) => /* @__PURE__ */ u.jsxs(
7509
7505
  Me.Root,
7510
7506
  {
7511
7507
  width: { md: "sm" },
@@ -8356,7 +8352,7 @@ const Pc = be.forwardRef(function(t, r) {
8356
8352
  fonts: dc,
8357
8353
  sizes: bc,
8358
8354
  zIndex: mc
8359
- }), Oc = Zo(zo, {
8355
+ }), Nc = Zo(zo, {
8360
8356
  preflight: !0,
8361
8357
  theme: {
8362
8358
  recipes: ec,
@@ -8388,23 +8384,34 @@ const Pc = be.forwardRef(function(t, r) {
8388
8384
  opacity: 1
8389
8385
  }
8390
8386
  }
8391
- }), Nc = Yo({
8387
+ });
8388
+ async function fc() {
8389
+ const { createHighlighterCore: e } = await import("shiki/core"), { createOnigurumaEngine: t } = await import("shiki/engine/oniguruma");
8390
+ return e({
8391
+ langs: [
8392
+ import("@shikijs/langs/javascript"),
8393
+ import("@shikijs/langs/tsx"),
8394
+ import("@shikijs/langs/json"),
8395
+ import("@shikijs/langs/bash")
8396
+ ],
8397
+ themes: [
8398
+ import("@shikijs/themes/github-dark"),
8399
+ import("@shikijs/themes/github-light")
8400
+ ],
8401
+ engine: t(import("shiki/wasm"))
8402
+ });
8403
+ }
8404
+ const Wc = Yo({
8392
8405
  theme: "github-dark",
8393
- async load() {
8394
- const { createHighlighter: e } = await import("shiki");
8395
- return e({
8396
- langs: ["js", "tsx", "json", "bash"],
8397
- themes: ["github-dark", "github-light"]
8398
- });
8399
- }
8406
+ load: fc
8400
8407
  });
8401
8408
  export {
8402
8409
  Fa as ActionsButton,
8403
8410
  Ea as CardExpandable,
8404
- Pc as ColorModeButton,
8411
+ Tc as ColorModeButton,
8405
8412
  _s as ColorModeIcon,
8406
- Mc as ColorModeProvider,
8407
- Dc as DarkMode,
8413
+ Vc as ColorModeProvider,
8414
+ jc as DarkMode,
8408
8415
  ve as DataList,
8409
8416
  ka as DataTable,
8410
8417
  Ci as DatePicker,
@@ -8413,31 +8420,31 @@ export {
8413
8420
  Fi as InputMask,
8414
8421
  Pi as InputPassword,
8415
8422
  Ni as InputPhone,
8416
- Bc as InputSearch,
8417
- Tc as LightMode,
8423
+ Rc as InputSearch,
8424
+ Dc as LightMode,
8418
8425
  At as Loader,
8419
- Rc as LogoPayGreenByLemonway,
8426
+ wc as LogoPayGreenByLemonway,
8420
8427
  Wi as Modal,
8421
- Oc as PGUISystemContext,
8428
+ Nc as PGUISystemContext,
8422
8429
  Ut as Pagination,
8423
- Fc as PasswordStrengthMeter,
8430
+ Gc as PasswordStrengthMeter,
8424
8431
  Hi as ScrollShadow,
8425
8432
  zs as Select,
8426
8433
  de as Sidebar,
8427
- jc as Toaster,
8428
- wc as Tooltip,
8434
+ Oc as Toaster,
8435
+ Mc as Tooltip,
8429
8436
  mi as formatDateRange,
8430
8437
  bi as formatDateValue,
8431
- Ec as formatPhoneIntl,
8438
+ Bc as formatPhoneIntl,
8432
8439
  Xt as fromDateValue,
8433
- Gc as isValidPhone,
8440
+ Ec as isValidPhone,
8434
8441
  gi as localeToBcp47,
8435
8442
  pi as parseDateInput,
8436
- Nc as shikiAdapter,
8443
+ Wc as shikiAdapter,
8437
8444
  en as toCalendarDate,
8438
8445
  di as toCalendarDateTime,
8439
8446
  $s as toaster,
8440
8447
  Cn as useColorMode,
8441
- Vc as useColorModeValue,
8448
+ Pc as useColorModeValue,
8442
8449
  yi as useField
8443
8450
  };
@@ -1,2 +1 @@
1
- declare const shikiAdapter: import('@chakra-ui/react').CodeBlockAdapter;
2
- export { shikiAdapter };
1
+ export declare const shikiAdapter: import('@chakra-ui/react').CodeBlockAdapter;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paygreen/pgui",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "core ui for paygreen apps",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -36,43 +36,43 @@
36
36
  "author": "",
37
37
  "license": "ISC",
38
38
  "dependencies": {
39
- "@chakra-ui/react": "^3.36.0",
39
+ "@chakra-ui/react": "^3.36.1",
40
40
  "@emotion/react": "^11.14.0",
41
41
  "@emotion/styled": "^11.14.1",
42
- "@fontsource-variable/geist": "^5.2.9",
43
- "@internationalized/date": "^3.12.2",
42
+ "@fontsource-variable/geist": "^5.3.0",
43
+ "@internationalized/date": "^3.12.3",
44
44
  "@tanstack/react-table": "^8.21.3",
45
45
  "dayjs": "^1.11.21",
46
- "libphonenumber-js": "1.12.39",
46
+ "libphonenumber-js": "1.13.10",
47
47
  "next-themes": "^0.4.6",
48
48
  "react": "^18.0.0 || ^19.0.0",
49
49
  "react-dom": "^18.0.0 || ^19.0.0",
50
- "react-icons": "^5.6.0",
50
+ "react-icons": "^5.7.0",
51
51
  "react-phone-number-input": "^3.4.16",
52
52
  "react-select": "^5.10.2",
53
53
  "shiki": "^3.20.0",
54
54
  "use-mask-input": "^3.7.4"
55
55
  },
56
56
  "devDependencies": {
57
- "@storybook/addon-a11y": "^10.4.6",
58
- "@storybook/addon-docs": "^10.4.6",
59
- "@storybook/addon-links": "^10.4.6",
60
- "@storybook/addon-themes": "^10.4.6",
61
- "@storybook/addon-vitest": "^10.4.6",
62
- "@storybook/builder-vite": "^10.4.6",
63
- "@storybook/react-vite": "^10.4.6",
57
+ "@storybook/addon-a11y": "^10.5.8",
58
+ "@storybook/addon-docs": "^10.5.8",
59
+ "@storybook/addon-links": "^10.5.8",
60
+ "@storybook/addon-themes": "^10.5.8",
61
+ "@storybook/addon-vitest": "^10.5.8",
62
+ "@storybook/builder-vite": "^10.5.8",
63
+ "@storybook/react-vite": "^10.5.8",
64
64
  "@testing-library/react": "^16.3.2",
65
65
  "@trivago/prettier-plugin-sort-imports": "^5.2.2",
66
- "@types/node": "^24.13.2",
67
- "@types/react": "^19.2.17",
68
- "@types/react-dom": "^19.2.3",
66
+ "@types/node": "^24.13.3",
67
+ "@types/react": "^19.2.18",
68
+ "@types/react-dom": "^19.2.4",
69
69
  "@typescript-eslint/eslint-plugin": "^7.0.0",
70
70
  "@typescript-eslint/parser": "^7.0.0",
71
71
  "@vitejs/plugin-react": "^4.5.2",
72
- "@vitest/browser": "^4.1.9",
73
- "@vitest/browser-playwright": "^4.1.9",
74
- "@vitest/coverage-istanbul": "^4.1.9",
75
- "@vitest/coverage-v8": "^4.1.9",
72
+ "@vitest/browser": "^4.1.10",
73
+ "@vitest/browser-playwright": "^4.1.10",
74
+ "@vitest/coverage-istanbul": "^4.1.10",
75
+ "@vitest/coverage-v8": "^4.1.10",
76
76
  "eslint": "^8.2.0",
77
77
  "eslint-config-airbnb": "^19.0.4",
78
78
  "eslint-config-airbnb-typescript": "^18.0.0",
@@ -80,22 +80,22 @@
80
80
  "eslint-plugin-import": "^2.32.0",
81
81
  "eslint-plugin-jsx-a11y": "^6.10.2",
82
82
  "eslint-plugin-react": "^7.37.5",
83
- "eslint-plugin-storybook": "^10.4.6",
83
+ "eslint-plugin-storybook": "^10.5.8",
84
84
  "globals": "^16.2.0",
85
85
  "husky": "^9.1.7",
86
86
  "jsdom": "^29.1.1",
87
87
  "lint-staged": "^16.3.2",
88
- "playwright": "^1.61.0",
89
- "prettier": "^3.8.4",
88
+ "playwright": "^1.62.1",
89
+ "prettier": "^3.9.6",
90
90
  "prop-types": "^15.8.1",
91
- "storybook": "^10.4.6",
91
+ "storybook": "^10.5.8",
92
92
  "typescript": "^5.9.3",
93
93
  "vite-plugin-dts": "^4.5.4",
94
94
  "vite-tsconfig-paths": "^5.1.4",
95
- "vitest": "^4.1.9"
95
+ "vitest": "^4.1.10"
96
96
  },
97
97
  "peerDependencies": {
98
- "@chakra-ui/react": "^3.36.0",
98
+ "@chakra-ui/react": "^3.36.1",
99
99
  "@emotion/react": "^11.14.0",
100
100
  "@emotion/styled": "^11.14.1",
101
101
  "@tanstack/react-table": "^8.21.3",
@@ -111,6 +111,6 @@
111
111
  }
112
112
  },
113
113
  "overrides": {
114
- "esbuild": "0.28.1"
114
+ "esbuild": "0.28.2"
115
115
  }
116
116
  }