design-zystem 1.0.225 → 1.0.227

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.d.mts CHANGED
@@ -677,7 +677,7 @@ interface IconTabsProps extends HTMLAttributes<HTMLDivElement> {
677
677
  declare const IconTabs: ({ items, selectedColor, onTabChange, disabledTabs, defaultTabIndex, }: IconTabsProps) => react_jsx_runtime.JSX.Element;
678
678
 
679
679
  interface PopoverItem {
680
- label: string;
680
+ label: string | ReactNode;
681
681
  action: () => void;
682
682
  }
683
683
  interface PopoverProps {
@@ -778,6 +778,7 @@ declare const Spinner: ({ size, color }: SpinnerProps) => react_jsx_runtime.JSX.
778
778
  * - "weekdayDay": short weekday + day
779
779
  * - "weekdayYear": short weekday + day + month + year
780
780
  * - "weekdayTime": weekday/date + time (24h)
781
+ * - "longDate": day + full month + year, no weekday (ex: 16 mai 2024)
781
782
  * - "dateISO": ISO format YYYY-MM-DD (timezone-safe for backend)
782
783
  */
783
784
  declare const formatDate: (dateString: Date | string | number | null | undefined, type?: string, language?: string) => string;
package/dist/index.d.ts CHANGED
@@ -677,7 +677,7 @@ interface IconTabsProps extends HTMLAttributes<HTMLDivElement> {
677
677
  declare const IconTabs: ({ items, selectedColor, onTabChange, disabledTabs, defaultTabIndex, }: IconTabsProps) => react_jsx_runtime.JSX.Element;
678
678
 
679
679
  interface PopoverItem {
680
- label: string;
680
+ label: string | ReactNode;
681
681
  action: () => void;
682
682
  }
683
683
  interface PopoverProps {
@@ -778,6 +778,7 @@ declare const Spinner: ({ size, color }: SpinnerProps) => react_jsx_runtime.JSX.
778
778
  * - "weekdayDay": short weekday + day
779
779
  * - "weekdayYear": short weekday + day + month + year
780
780
  * - "weekdayTime": weekday/date + time (24h)
781
+ * - "longDate": day + full month + year, no weekday (ex: 16 mai 2024)
781
782
  * - "dateISO": ISO format YYYY-MM-DD (timezone-safe for backend)
782
783
  */
783
784
  declare const formatDate: (dateString: Date | string | number | null | undefined, type?: string, language?: string) => string;
package/dist/index.js CHANGED
@@ -4408,7 +4408,7 @@ var Popover = ({ items = [], children }) => {
4408
4408
  onMouseDown: (e) => e.preventDefault(),
4409
4409
  children: item.label
4410
4410
  },
4411
- item.label
4411
+ typeof item.label === "string" ? item.label : idx
4412
4412
  ))
4413
4413
  }
4414
4414
  ),
@@ -5050,6 +5050,8 @@ var formatDate = (dateString, type = "date", language = "en") => {
5050
5050
  });
5051
5051
  return `${dayPart} ${formatTime()}`;
5052
5052
  }
5053
+ case "longDate":
5054
+ return format({ day: "numeric", month: "long", year: "numeric" });
5053
5055
  default:
5054
5056
  return format({ day: "2-digit", month: "2-digit", year: "numeric" });
5055
5057
  }
package/dist/index.mjs CHANGED
@@ -4331,7 +4331,7 @@ var Popover = ({ items = [], children }) => {
4331
4331
  onMouseDown: (e) => e.preventDefault(),
4332
4332
  children: item.label
4333
4333
  },
4334
- item.label
4334
+ typeof item.label === "string" ? item.label : idx
4335
4335
  ))
4336
4336
  }
4337
4337
  ),
@@ -4973,6 +4973,8 @@ var formatDate = (dateString, type = "date", language = "en") => {
4973
4973
  });
4974
4974
  return `${dayPart} ${formatTime()}`;
4975
4975
  }
4976
+ case "longDate":
4977
+ return format({ day: "numeric", month: "long", year: "numeric" });
4976
4978
  default:
4977
4979
  return format({ day: "2-digit", month: "2-digit", year: "numeric" });
4978
4980
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.225",
3
+ "version": "1.0.227",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",