@ya-accelerators/nextjs-framework 0.0.142 → 0.0.144

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 (103) hide show
  1. package/dist/i18n/index.d.ts +1 -3
  2. package/dist/i18n/index.js +1 -36
  3. package/dist/i18n/index.js.map +1 -1
  4. package/dist/i18n/normalize-messages.d.ts +5 -0
  5. package/dist/i18n/normalize-messages.js +37 -0
  6. package/dist/i18n/normalize-messages.js.map +1 -0
  7. package/dist/i18n/strings/ja-JP.json +4 -2
  8. package/dist/lib/index.d.ts +2 -0
  9. package/dist/lib/index.js +2 -0
  10. package/dist/lib/index.js.map +1 -1
  11. package/dist/lib/licenses/index.d.ts +1 -0
  12. package/dist/lib/licenses/index.js +2 -0
  13. package/dist/lib/licenses/index.js.map +1 -0
  14. package/dist/lib/licenses/page.d.ts +12 -0
  15. package/dist/lib/licenses/page.jsx +105 -0
  16. package/dist/lib/licenses/page.jsx.map +1 -0
  17. package/dist/styles/tailwind.config.d.ts +24 -5
  18. package/dist/styles/tailwind.config.js +27 -7
  19. package/dist/styles/tailwind.config.js.map +1 -1
  20. package/dist/styles/tailwind.config.ts +28 -7
  21. package/dist/tsconfig.tsbuildinfo +1 -1
  22. package/dist/ui/component/index.d.ts +1 -1
  23. package/dist/ui/component/loading/index.d.ts +2 -1
  24. package/dist/ui/component/loading/index.jsx +4 -4
  25. package/dist/ui/component/loading/index.jsx.map +1 -1
  26. package/dist/ui/component/skeleton/index.jsx +1 -1
  27. package/dist/ui/composite/avatar/index.jsx +1 -1
  28. package/dist/ui/composite/dropdown/index.jsx +1 -1
  29. package/dist/ui/composite/dropdown/index.jsx.map +1 -1
  30. package/dist/ui/composite/form/index.d.ts +3 -2
  31. package/dist/ui/composite/form/index.jsx +5 -4
  32. package/dist/ui/composite/form/index.jsx.map +1 -1
  33. package/dist/ui/composite/index.d.ts +7 -6
  34. package/dist/ui/composite/input/attachment/index.d.ts +1 -1
  35. package/dist/ui/composite/input/attachment/index.jsx +5 -5
  36. package/dist/ui/composite/input/attachment/index.jsx.map +1 -1
  37. package/dist/ui/composite/input/datePicker/index.jsx +62 -29
  38. package/dist/ui/composite/input/datePicker/index.jsx.map +1 -1
  39. package/dist/ui/composite/input/datePicker/locales.d.ts +1 -0
  40. package/dist/ui/composite/input/datePicker/locales.js +98 -0
  41. package/dist/ui/composite/input/datePicker/locales.js.map +1 -0
  42. package/dist/ui/composite/input/dateRange/index.jsx +19 -6
  43. package/dist/ui/composite/input/dateRange/index.jsx.map +1 -1
  44. package/dist/ui/composite/input/dateTimePicker/index.jsx +26 -34
  45. package/dist/ui/composite/input/dateTimePicker/index.jsx.map +1 -1
  46. package/dist/ui/composite/input/dateTimeRange/index.jsx +18 -16
  47. package/dist/ui/composite/input/dateTimeRange/index.jsx.map +1 -1
  48. package/dist/ui/composite/input/file/index.jsx +18 -9
  49. package/dist/ui/composite/input/file/index.jsx.map +1 -1
  50. package/dist/ui/composite/input/index.d.ts +3 -2
  51. package/dist/ui/composite/input/search/index.jsx +3 -1
  52. package/dist/ui/composite/input/search/index.jsx.map +1 -1
  53. package/dist/ui/composite/input/select/Option/index.d.ts +1 -1
  54. package/dist/ui/composite/input/select/Option/index.jsx +6 -10
  55. package/dist/ui/composite/input/select/Option/index.jsx.map +1 -1
  56. package/dist/ui/composite/input/select/SelectContainer/index.jsx +37 -33
  57. package/dist/ui/composite/input/select/SelectContainer/index.jsx.map +1 -1
  58. package/dist/ui/composite/input/select/SingleValue/index.d.ts +1 -1
  59. package/dist/ui/composite/input/select/SingleValue/index.jsx +2 -3
  60. package/dist/ui/composite/input/select/SingleValue/index.jsx.map +1 -1
  61. package/dist/ui/composite/input/select/index.d.ts +5 -4
  62. package/dist/ui/composite/input/select/index.jsx +2 -2
  63. package/dist/ui/composite/input/select/index.jsx.map +1 -1
  64. package/dist/ui/composite/input/select/types.d.ts +2 -0
  65. package/dist/ui/composite/input/select/types.js +9 -0
  66. package/dist/ui/composite/input/select/types.js.map +1 -1
  67. package/dist/ui/composite/input/switch/index.jsx +2 -2
  68. package/dist/ui/composite/input/switch/index.jsx.map +1 -1
  69. package/dist/ui/composite/input/text/index.jsx +7 -3
  70. package/dist/ui/composite/input/text/index.jsx.map +1 -1
  71. package/dist/ui/composite/input/timeRange/index.jsx +1 -1
  72. package/dist/ui/composite/object/index.d.ts +1 -1
  73. package/dist/ui/composite/object/index.jsx +1 -1
  74. package/dist/ui/composite/object/index.jsx.map +1 -1
  75. package/dist/ui/composite/recordPanel/index.jsx +6 -5
  76. package/dist/ui/composite/recordPanel/index.jsx.map +1 -1
  77. package/dist/ui/composite/stepper/index.jsx +10 -6
  78. package/dist/ui/composite/stepper/index.jsx.map +1 -1
  79. package/dist/ui/composite/table/index.d.ts +1 -2
  80. package/dist/ui/composite/table/index.jsx +56 -41
  81. package/dist/ui/composite/table/index.jsx.map +1 -1
  82. package/dist/ui/functional/oauthSignIn/index.jsx +1 -1
  83. package/dist/ui/layout/app/component.jsx +22 -37
  84. package/dist/ui/layout/app/component.jsx.map +1 -1
  85. package/dist/ui/layout/app/index.d.ts +4 -4
  86. package/dist/ui/layout/app/index.jsx +9 -9
  87. package/dist/ui/layout/app/index.jsx.map +1 -1
  88. package/dist/ui/layout/drawer/index.d.ts +1 -1
  89. package/dist/ui/layout/drawer/index.jsx +2 -2
  90. package/dist/ui/layout/drawer/index.jsx.map +1 -1
  91. package/dist/ui/layout/index.d.ts +5 -5
  92. package/dist/ui/layout/root/index.d.ts +1 -1
  93. package/dist/ui/layout/root/index.jsx +1 -4
  94. package/dist/ui/layout/root/index.jsx.map +1 -1
  95. package/dist/ui/theme/border/index.js +106 -21
  96. package/dist/ui/theme/border/index.js.map +1 -1
  97. package/dist/ui/theme/rounded/index.d.ts +0 -1
  98. package/dist/ui/theme/rounded/index.js +0 -2
  99. package/dist/ui/theme/rounded/index.js.map +1 -1
  100. package/dist/util/date/zoned.d.ts +2 -0
  101. package/dist/util/date/zoned.js +28 -0
  102. package/dist/util/date/zoned.js.map +1 -0
  103. package/package.json +3 -3
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/theme/rounded/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,MAAM;IACZ,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;CACJ,CAAA;AAEV,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAiB,EAAE,EAAE,CAAC;IACxD,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,eAAe;IACxC,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,gBAAgB;IACzC,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,eAAe;IACxC,OAAO,KAAK,OAAO,CAAC,IAAI,IAAI,cAAc;IAC1C,OAAO,KAAK,OAAO,CAAC,IAAI,IAAI,eAAe;CAC5C,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/theme/rounded/index.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,MAAM;IACZ,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,CAAC,EAAE,GAAG;IACN,IAAI,EAAE,MAAM;CACJ,CAAA;AAEV,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAiB,EAAE,EAAE,CAAC;IACxD,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,eAAe;IACxC,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,gBAAgB;IACzC,OAAO,KAAK,OAAO,CAAC,CAAC,IAAI,eAAe;IACxC,OAAO,KAAK,OAAO,CAAC,IAAI,IAAI,cAAc;CAC3C,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const wallClockAsUtc: (instant: Date, timeZone?: string) => Date;
2
+ export declare const instantOfWallClockAsUtc: (wallClock: Date, timeZone?: string) => Date;
@@ -0,0 +1,28 @@
1
+ export const wallClockAsUtc = (instant, timeZone) => {
2
+ const parts = new Intl.DateTimeFormat('en-US', {
3
+ timeZone,
4
+ hourCycle: 'h23',
5
+ year: 'numeric',
6
+ month: 'numeric',
7
+ day: 'numeric',
8
+ hour: 'numeric',
9
+ minute: 'numeric',
10
+ second: 'numeric',
11
+ }).formatToParts(instant);
12
+ const get = (type) => Number(parts.find((p) => p.type === type)?.value);
13
+ const ret = new Date(0);
14
+ ret.setUTCFullYear(get('year'), get('month') - 1, get('day'));
15
+ ret.setUTCHours(get('hour'), get('minute'), get('second'), instant.getUTCMilliseconds());
16
+ return ret;
17
+ };
18
+ const offsetAt = (instant, timeZone) => wallClockAsUtc(new Date(instant), timeZone).getTime() - instant;
19
+ const DAY_MS = 24 * 60 * 60 * 1000;
20
+ // A wall clock in a DST overlap resolves to the earlier instant, and one in a DST gap is read with the
21
+ // offset in force before the gap, which lands after it (Temporal's `compatible` disambiguation).
22
+ export const instantOfWallClockAsUtc = (wallClock, timeZone) => {
23
+ const utc = wallClock.getTime();
24
+ const before = utc - offsetAt(utc - DAY_MS, timeZone);
25
+ const matches = [before, utc - offsetAt(utc + DAY_MS, timeZone)].filter((candidate) => wallClockAsUtc(new Date(candidate), timeZone).getTime() === utc);
26
+ return new Date(matches.length > 0 ? Math.min(...matches) : before);
27
+ };
28
+ //# sourceMappingURL=zoned.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoned.js","sourceRoot":"","sources":["../../../../src/util/date/zoned.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,OAAa,EAAE,QAAiB,EAAE,EAAE;IACjE,MAAM,KAAK,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE;QAC7C,QAAQ;QACR,SAAS,EAAE,KAAK;QAChB,IAAI,EAAE,SAAS;QACf,KAAK,EAAE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AAM,OAAO,GAAG,CAAC,MAAM,EAAE,GAAG,GAAG,QAAQ,CAAC,GAAG,GAAG,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,MAAM,CACrE,CAAC,SAAS,EAAE,EAAE,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC,CAAC,OAAO,EAAE,KAAK,GAAG,CAC/E,CAAA;IACD,OAAO,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAA;AACrE,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ya-accelerators/nextjs-framework",
3
- "version": "0.0.142",
3
+ "version": "0.0.144",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "author": "YA Technologies OÜ",
@@ -89,9 +89,9 @@
89
89
  "@mui/material": "^9.4.0",
90
90
  "@mui/material-nextjs": "^9.4.0",
91
91
  "@svgr/webpack": "^8.1.0",
92
- "@tanstack/react-table": "^9.2.4",
92
+ "@tanstack/react-table": "^9.2.5",
93
93
  "date-fns": "^4.4.0",
94
- "framer-motion": "^13.4.5",
94
+ "framer-motion": "^14.0.0",
95
95
  "next-client-cookies": "^2.1.2",
96
96
  "nextjs-toploader": "^3.9.17",
97
97
  "parse-nested-form-data": "^1.0.1",