@cerberus-design/react 0.13.2-next-46f23d2 → 0.13.2-next-b5a889e

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 (120) hide show
  1. package/build/legacy/_tsup-dts-rollup.d.cts +297 -1
  2. package/build/legacy/components/Accordion.cjs.map +1 -1
  3. package/build/legacy/components/AccordionItemGroup.cjs.map +1 -1
  4. package/build/legacy/components/Admonition.cjs +3 -0
  5. package/build/legacy/components/Admonition.cjs.map +1 -1
  6. package/build/legacy/components/Avatar.cjs +3 -0
  7. package/build/legacy/components/Avatar.cjs.map +1 -1
  8. package/build/legacy/components/Checkbox.cjs +3 -0
  9. package/build/legacy/components/Checkbox.cjs.map +1 -1
  10. package/build/legacy/components/DatePicker.client.cjs +525 -0
  11. package/build/legacy/components/DatePicker.client.cjs.map +1 -0
  12. package/build/legacy/components/DatePicker.server.cjs +364 -0
  13. package/build/legacy/components/DatePicker.server.cjs.map +1 -0
  14. package/build/legacy/components/FileStatus.cjs +3 -0
  15. package/build/legacy/components/FileStatus.cjs.map +1 -1
  16. package/build/legacy/components/FileUploader.cjs +3 -0
  17. package/build/legacy/components/FileUploader.cjs.map +1 -1
  18. package/build/legacy/components/Input.cjs +3 -0
  19. package/build/legacy/components/Input.cjs.map +1 -1
  20. package/build/legacy/components/Notification.cjs +3 -0
  21. package/build/legacy/components/Notification.cjs.map +1 -1
  22. package/build/legacy/components/Select.cjs +3 -0
  23. package/build/legacy/components/Select.cjs.map +1 -1
  24. package/build/legacy/components/Tag.cjs +3 -0
  25. package/build/legacy/components/Tag.cjs.map +1 -1
  26. package/build/legacy/components/Toggle.cjs +3 -0
  27. package/build/legacy/components/Toggle.cjs.map +1 -1
  28. package/build/legacy/config/cerbIcons.cjs +3 -0
  29. package/build/legacy/config/cerbIcons.cjs.map +1 -1
  30. package/build/legacy/config/defineIcons.cjs +3 -0
  31. package/build/legacy/config/defineIcons.cjs.map +1 -1
  32. package/build/legacy/context/confirm-modal.cjs +3 -0
  33. package/build/legacy/context/confirm-modal.cjs.map +1 -1
  34. package/build/legacy/context/cta-modal.cjs +3 -0
  35. package/build/legacy/context/cta-modal.cjs.map +1 -1
  36. package/build/legacy/context/notification-center.cjs +3 -0
  37. package/build/legacy/context/notification-center.cjs.map +1 -1
  38. package/build/legacy/context/prompt-modal.cjs +3 -0
  39. package/build/legacy/context/prompt-modal.cjs.map +1 -1
  40. package/build/legacy/hooks/useDate.cjs +8 -0
  41. package/build/legacy/hooks/useDate.cjs.map +1 -1
  42. package/build/legacy/index.cjs +909 -613
  43. package/build/legacy/index.cjs.map +1 -1
  44. package/build/modern/_tsup-dts-rollup.d.ts +297 -1
  45. package/build/modern/{chunk-ZTYKIWYQ.js → chunk-34E3UFFB.js} +1 -1
  46. package/build/modern/chunk-34E3UFFB.js.map +1 -0
  47. package/build/modern/{chunk-CZND26FC.js → chunk-3BM6MZ4A.js} +8 -1
  48. package/build/modern/{chunk-CZND26FC.js.map → chunk-3BM6MZ4A.js.map} +1 -1
  49. package/build/modern/{chunk-67KLFLNR.js → chunk-4IMOKN2D.js} +3 -3
  50. package/build/modern/{chunk-XNX3OTJK.js → chunk-5KHU6MM5.js} +7 -1
  51. package/build/modern/chunk-5KHU6MM5.js.map +1 -0
  52. package/build/modern/{chunk-C3HYHH3H.js → chunk-BU5JK37R.js} +2 -2
  53. package/build/modern/{chunk-UBN2CZLV.js → chunk-DDOTCGGA.js} +2 -2
  54. package/build/modern/{chunk-CMDPTXHB.js → chunk-ECKJGCNH.js} +6 -6
  55. package/build/modern/{chunk-W3YI64C5.js → chunk-F4LTOZAN.js} +2 -2
  56. package/build/modern/{chunk-SVFZJYLV.js → chunk-F7EWTOML.js} +2 -2
  57. package/build/modern/{chunk-CSMPRYNC.js → chunk-F7XWOSN3.js} +2 -2
  58. package/build/modern/{chunk-NF5WV3OW.js → chunk-FRWNAVDM.js} +6 -6
  59. package/build/modern/{chunk-42RVVWGM.js → chunk-G7AGKII3.js} +11 -11
  60. package/build/modern/{chunk-RET4YOBV.js → chunk-GI6CSUU4.js} +6 -6
  61. package/build/modern/{chunk-35L6DOHE.js → chunk-HP4ZN473.js} +2 -2
  62. package/build/modern/chunk-IP5VFOPZ.js +132 -0
  63. package/build/modern/chunk-IP5VFOPZ.js.map +1 -0
  64. package/build/modern/{chunk-RHHFH6JJ.js → chunk-M73ECA25.js} +2 -2
  65. package/build/modern/{chunk-OFAATLPF.js → chunk-O7QVCF3H.js} +3 -3
  66. package/build/modern/chunk-QX4V5V74.js +169 -0
  67. package/build/modern/chunk-QX4V5V74.js.map +1 -0
  68. package/build/modern/{chunk-3DGV4ESI.js → chunk-S25RHYZV.js} +2 -2
  69. package/build/modern/{chunk-PGXJJDPH.js → chunk-W2LSPRQ3.js} +2 -2
  70. package/build/modern/{chunk-MRH2EO3L.js → chunk-XVU2NQCW.js} +2 -2
  71. package/build/modern/components/Accordion.js +1 -1
  72. package/build/modern/components/AccordionItemGroup.js +2 -2
  73. package/build/modern/components/Admonition.js +4 -4
  74. package/build/modern/components/Avatar.js +3 -3
  75. package/build/modern/components/Checkbox.js +3 -3
  76. package/build/modern/components/DatePicker.client.js +32 -0
  77. package/build/modern/components/DatePicker.client.js.map +1 -0
  78. package/build/modern/components/DatePicker.server.js +31 -0
  79. package/build/modern/components/DatePicker.server.js.map +1 -0
  80. package/build/modern/components/FileStatus.js +5 -5
  81. package/build/modern/components/FileUploader.js +4 -4
  82. package/build/modern/components/Input.js +3 -3
  83. package/build/modern/components/Notification.js +3 -3
  84. package/build/modern/components/Select.js +3 -3
  85. package/build/modern/components/Tag.js +3 -3
  86. package/build/modern/components/Toggle.js +3 -3
  87. package/build/modern/config/cerbIcons.js +1 -1
  88. package/build/modern/config/defineIcons.js +2 -2
  89. package/build/modern/context/confirm-modal.js +5 -5
  90. package/build/modern/context/cta-modal.js +5 -5
  91. package/build/modern/context/notification-center.js +4 -4
  92. package/build/modern/context/prompt-modal.js +8 -8
  93. package/build/modern/hooks/useDate.js +3 -1
  94. package/build/modern/index.js +110 -68
  95. package/build/modern/index.js.map +1 -1
  96. package/package.json +2 -2
  97. package/src/components/Accordion.tsx +0 -1
  98. package/src/components/DatePicker.client.tsx +364 -0
  99. package/src/components/DatePicker.server.tsx +229 -0
  100. package/src/config/cerbIcons.ts +9 -0
  101. package/src/hooks/useDate.ts +12 -0
  102. package/src/index.ts +2 -0
  103. package/build/modern/chunk-XNX3OTJK.js.map +0 -1
  104. package/build/modern/chunk-ZTYKIWYQ.js.map +0 -1
  105. /package/build/modern/{chunk-67KLFLNR.js.map → chunk-4IMOKN2D.js.map} +0 -0
  106. /package/build/modern/{chunk-C3HYHH3H.js.map → chunk-BU5JK37R.js.map} +0 -0
  107. /package/build/modern/{chunk-UBN2CZLV.js.map → chunk-DDOTCGGA.js.map} +0 -0
  108. /package/build/modern/{chunk-CMDPTXHB.js.map → chunk-ECKJGCNH.js.map} +0 -0
  109. /package/build/modern/{chunk-W3YI64C5.js.map → chunk-F4LTOZAN.js.map} +0 -0
  110. /package/build/modern/{chunk-SVFZJYLV.js.map → chunk-F7EWTOML.js.map} +0 -0
  111. /package/build/modern/{chunk-CSMPRYNC.js.map → chunk-F7XWOSN3.js.map} +0 -0
  112. /package/build/modern/{chunk-NF5WV3OW.js.map → chunk-FRWNAVDM.js.map} +0 -0
  113. /package/build/modern/{chunk-42RVVWGM.js.map → chunk-G7AGKII3.js.map} +0 -0
  114. /package/build/modern/{chunk-RET4YOBV.js.map → chunk-GI6CSUU4.js.map} +0 -0
  115. /package/build/modern/{chunk-35L6DOHE.js.map → chunk-HP4ZN473.js.map} +0 -0
  116. /package/build/modern/{chunk-RHHFH6JJ.js.map → chunk-M73ECA25.js.map} +0 -0
  117. /package/build/modern/{chunk-OFAATLPF.js.map → chunk-O7QVCF3H.js.map} +0 -0
  118. /package/build/modern/{chunk-3DGV4ESI.js.map → chunk-S25RHYZV.js.map} +0 -0
  119. /package/build/modern/{chunk-PGXJJDPH.js.map → chunk-W2LSPRQ3.js.map} +0 -0
  120. /package/build/modern/{chunk-MRH2EO3L.js.map → chunk-XVU2NQCW.js.map} +0 -0
@@ -22,6 +22,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
22
22
  var useDate_exports = {};
23
23
  __export(useDate_exports, {
24
24
  DateFormats: () => DateFormats,
25
+ formatISOToMilitary: () => formatISOToMilitary,
25
26
  formatMilitaryDate: () => formatMilitaryDate,
26
27
  formatMilitaryToISO: () => formatMilitaryToISO,
27
28
  useDate: () => useDate
@@ -87,6 +88,12 @@ function formatMilitaryDate(input) {
87
88
  }
88
89
  return [day, month, year].filter(Boolean).join(" ");
89
90
  }
91
+ function formatISOToMilitary(date) {
92
+ const [year, month, day] = date.split("-");
93
+ const monthIndex = parseInt(month, 10) - 1;
94
+ const monthStr = MONTHS[monthIndex];
95
+ return `${day} ${monthStr} ${year}`;
96
+ }
90
97
  var DateFormats = {
91
98
  get ISO() {
92
99
  return "YYYY-MM-DD";
@@ -115,6 +122,7 @@ var MONTHS = [
115
122
  // Annotate the CommonJS export names for ESM import in node:
116
123
  0 && (module.exports = {
117
124
  DateFormats,
125
+ formatISOToMilitary,
118
126
  formatMilitaryDate,
119
127
  formatMilitaryToISO,
120
128
  useDate
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/hooks/useDate.ts"],"sourcesContent":["'use client'\n\nimport {\n useState,\n useCallback,\n ChangeEvent,\n useMemo,\n type InputHTMLAttributes,\n} from 'react'\n\nexport interface UseDateBase {\n /**\n * The format of the date input\n */\n format?: string\n /**\n * The callback to run when the date input changes\n */\n onChange?: InputHTMLAttributes<HTMLInputElement>['onChange']\n}\n\nexport interface UseDateOptions extends UseDateBase {\n /**\n * The initial value of the date input\n */\n initialValue?: string\n}\n\nexport interface UseDateReturn extends UseDateBase {\n /**\n * The ISO formatted date string\n */\n ISO: string\n /**\n * The value of the date input\n */\n value: string\n}\n\n/**\n * A hook for formatting and validating date inputs. The date format defaults to US Military format.\n * @example\n * ```tsx\n * const MyComponent = () => {\n * const date = useDate({ initialValue: '01 JAN 2024' })\n * return <input onChange={date.onChange} type=\"text\" value={date.value} />\n * }\n */\nexport function useDate(options?: UseDateOptions): UseDateReturn {\n const initialValue = options?.initialValue ?? ''\n const format = options?.format ?? DateFormats.USMilitary\n const onChange = options?.onChange\n const [value, setValue] = useState(initialValue)\n\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const newValue = formatMilitaryDate(e.currentTarget.value)\n if (onChange) onChange(e)\n setValue(newValue)\n },\n [onChange],\n )\n\n return useMemo(\n () => ({\n format,\n value,\n ISO: formatMilitaryToISO(value),\n onChange: handleChange,\n }),\n [format, value, handleChange],\n )\n}\n\n// helpers\n\n/**\n * Converts a string in US Military format to ISO format. Used within the `useDate` hook.\n * @param input The string to format\n * @returns The formatted string in ISO format (YYYY-MM-DD)\n */\nexport function formatMilitaryToISO(input: string) {\n const [day, month, year] = input.split(' ')\n const monthIndex = MONTHS.findIndex((m) => m.startsWith(month))\n const monthNum = monthIndex + 1\n return `${year ?? '0000'}-${monthNum.toString().padStart(2, '0')}-${day.padStart(\n 2,\n '0',\n )}`\n}\n\n/**\n * Converts a string to US Military format. Used within the `useDate` hook.\n * @param input The string to format\n * @returns The formatted string in US Military format (DD MMM YYYY)\n */\nexport function formatMilitaryDate(input: string): string {\n let formatted = input.toUpperCase().replace(/[^0-9A-Z]/g, '')\n let day = ''\n let month = ''\n let year = ''\n\n // Format day\n if (formatted.length >= 2) {\n day = formatted.replace(/[^0-9]/g, '').slice(0, 2)\n const dayNum = parseInt(day, 10)\n if (dayNum > 31) day = '31'\n else if (dayNum === 0) day = '01'\n formatted = formatted.slice(2)\n }\n\n // Format month\n if (formatted.length >= 3) {\n month = formatted.slice(0, 3)\n const monthIndex = MONTHS.findIndex((m) => m.startsWith(month))\n if (monthIndex !== -1) {\n month = MONTHS[monthIndex]\n } else {\n month = month.replace(/[^A-Z]/g, '')\n }\n formatted = formatted.slice(3)\n }\n\n // Format year\n if (formatted.length > 0) {\n year = formatted.slice(0, 4)\n }\n\n return [day, month, year].filter(Boolean).join(' ')\n}\n\n/**\n * Date formatting options\n * @example\n * ```tsx\n * const date = new Date()\n * const formatted = date.format(DateFormats.USMilitary)\n */\nexport const DateFormats = {\n get ISO() {\n return 'YYYY-MM-DD'\n },\n get USMilitary() {\n return 'DD MMM YYYY'\n },\n get Months() {\n return MONTHS\n },\n}\n\nconst MONTHS = [\n 'JAN',\n 'FEB',\n 'MAR',\n 'APR',\n 'MAY',\n 'JUN',\n 'JUL',\n 'AUG',\n 'SEP',\n 'OCT',\n 'NOV',\n 'DEC',\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAMO;AAwCA,SAAS,QAAQ,SAAyC;AAC/D,QAAM,gBAAe,mCAAS,iBAAgB;AAC9C,QAAM,UAAS,mCAAS,WAAU,YAAY;AAC9C,QAAM,WAAW,mCAAS;AAC1B,QAAM,CAAC,OAAO,QAAQ,QAAI,uBAAS,YAAY;AAE/C,QAAM,mBAAe;AAAA,IACnB,CAAC,MAAqC;AACpC,YAAM,WAAW,mBAAmB,EAAE,cAAc,KAAK;AACzD,UAAI,SAAU,UAAS,CAAC;AACxB,eAAS,QAAQ;AAAA,IACnB;AAAA,IACA,CAAC,QAAQ;AAAA,EACX;AAEA,aAAO;AAAA,IACL,OAAO;AAAA,MACL;AAAA,MACA;AAAA,MACA,KAAK,oBAAoB,KAAK;AAAA,MAC9B,UAAU;AAAA,IACZ;AAAA,IACA,CAAC,QAAQ,OAAO,YAAY;AAAA,EAC9B;AACF;AASO,SAAS,oBAAoB,OAAe;AACjD,QAAM,CAAC,KAAK,OAAO,IAAI,IAAI,MAAM,MAAM,GAAG;AAC1C,QAAM,aAAa,OAAO,UAAU,CAAC,MAAM,EAAE,WAAW,KAAK,CAAC;AAC9D,QAAM,WAAW,aAAa;AAC9B,SAAO,GAAG,QAAQ,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AAA,EACA;AACF;","names":[]}
1
+ {"version":3,"sources":["../../../src/hooks/useDate.ts"],"sourcesContent":["'use client'\n\nimport {\n useState,\n useCallback,\n ChangeEvent,\n useMemo,\n type InputHTMLAttributes,\n} from 'react'\n\nexport interface UseDateBase {\n /**\n * The format of the date input\n */\n format?: string\n /**\n * The callback to run when the date input changes\n */\n onChange?: InputHTMLAttributes<HTMLInputElement>['onChange']\n}\n\nexport interface UseDateOptions extends UseDateBase {\n /**\n * The initial value of the date input\n */\n initialValue?: string\n}\n\nexport interface UseDateReturn extends UseDateBase {\n /**\n * The ISO formatted date string\n */\n ISO: string\n /**\n * The value of the date input\n */\n value: string\n}\n\n/**\n * A hook for formatting and validating date inputs. The date format defaults to US Military format.\n * @example\n * ```tsx\n * const MyComponent = () => {\n * const date = useDate({ initialValue: '01 JAN 2024' })\n * return <input onChange={date.onChange} type=\"text\" value={date.value} />\n * }\n */\nexport function useDate(options?: UseDateOptions): UseDateReturn {\n const initialValue = options?.initialValue ?? ''\n const format = options?.format ?? DateFormats.USMilitary\n const onChange = options?.onChange\n const [value, setValue] = useState(initialValue)\n\n const handleChange = useCallback(\n (e: ChangeEvent<HTMLInputElement>) => {\n const newValue = formatMilitaryDate(e.currentTarget.value)\n if (onChange) onChange(e)\n setValue(newValue)\n },\n [onChange],\n )\n\n return useMemo(\n () => ({\n format,\n value,\n ISO: formatMilitaryToISO(value),\n onChange: handleChange,\n }),\n [format, value, handleChange],\n )\n}\n\n// helpers\n\n/**\n * Converts a string in US Military format to ISO format. Used within the `useDate` hook.\n * @param input The string to format\n * @returns The formatted string in ISO format (YYYY-MM-DD)\n */\nexport function formatMilitaryToISO(input: string) {\n const [day, month, year] = input.split(' ')\n const monthIndex = MONTHS.findIndex((m) => m.startsWith(month))\n const monthNum = monthIndex + 1\n return `${year ?? '0000'}-${monthNum.toString().padStart(2, '0')}-${day.padStart(\n 2,\n '0',\n )}`\n}\n\n/**\n * Converts a string to US Military format. Used within the `useDate` hook.\n * @param input The string to format\n * @returns The formatted string in US Military format (DD MMM YYYY)\n */\nexport function formatMilitaryDate(input: string): string {\n let formatted = input.toUpperCase().replace(/[^0-9A-Z]/g, '')\n let day = ''\n let month = ''\n let year = ''\n\n // Format day\n if (formatted.length >= 2) {\n day = formatted.replace(/[^0-9]/g, '').slice(0, 2)\n const dayNum = parseInt(day, 10)\n if (dayNum > 31) day = '31'\n else if (dayNum === 0) day = '01'\n formatted = formatted.slice(2)\n }\n\n // Format month\n if (formatted.length >= 3) {\n month = formatted.slice(0, 3)\n const monthIndex = MONTHS.findIndex((m) => m.startsWith(month))\n if (monthIndex !== -1) {\n month = MONTHS[monthIndex]\n } else {\n month = month.replace(/[^A-Z]/g, '')\n }\n formatted = formatted.slice(3)\n }\n\n // Format year\n if (formatted.length > 0) {\n year = formatted.slice(0, 4)\n }\n\n return [day, month, year].filter(Boolean).join(' ')\n}\n\n/**\n * Formats a date string to US Military format.\n * @param date The date string to format (i.e., '2024-01-01')\n * @returns The formatted date string in US Military format (DD MMM YYYY)\n */\nexport function formatISOToMilitary(date: string): string {\n const [year, month, day] = date.split('-')\n const monthIndex = parseInt(month, 10) - 1\n const monthStr = MONTHS[monthIndex]\n return `${day} ${monthStr} ${year}`\n}\n\n/**\n * Date formatting options\n * @example\n * ```tsx\n * const date = new Date()\n * const formatted = date.format(DateFormats.USMilitary)\n */\nexport const DateFormats = {\n get ISO() {\n return 'YYYY-MM-DD'\n },\n get USMilitary() {\n return 'DD MMM YYYY'\n },\n get Months() {\n return MONTHS\n },\n}\n\nconst MONTHS = [\n 'JAN',\n 'FEB',\n 'MAR',\n 'APR',\n 'MAY',\n 'JUN',\n 'JUL',\n 'AUG',\n 'SEP',\n 'OCT',\n 'NOV',\n 'DEC',\n]\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAEA,mBAMO;AAwCA,SAAS,QAAQ,SAAyC;AAC/D,QAAM,gBAAe,mC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