@powered-by-array/ui 1.90.1 → 1.92.0

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 (117) hide show
  1. package/dist/components/ArtifactCard/ArtifactCard.d.ts +7 -0
  2. package/dist/components/ArtifactCard/ArtifactCard.d.ts.map +1 -0
  3. package/dist/components/ArtifactCard/ArtifactCard.js +26 -0
  4. package/dist/components/ArtifactCard/ArtifactCard.js.map +1 -0
  5. package/dist/components/ArtifactCard/ArtifactCard.types.d.ts +25 -0
  6. package/dist/components/ArtifactCard/ArtifactCard.types.d.ts.map +1 -0
  7. package/dist/components/ArtifactCard/ArtifactCard.types.js +2 -0
  8. package/dist/components/ArtifactCard/ArtifactCard.types.js.map +1 -0
  9. package/dist/components/ArtifactCard/ArtifactCard.variants.d.ts +19 -0
  10. package/dist/components/ArtifactCard/ArtifactCard.variants.d.ts.map +1 -0
  11. package/dist/components/ArtifactCard/ArtifactCard.variants.js +40 -0
  12. package/dist/components/ArtifactCard/ArtifactCard.variants.js.map +1 -0
  13. package/dist/components/ArtifactCard/index.d.ts +3 -0
  14. package/dist/components/ArtifactCard/index.d.ts.map +1 -0
  15. package/dist/components/ArtifactCard/index.js +2 -0
  16. package/dist/components/ArtifactCard/index.js.map +1 -0
  17. package/dist/components/Calendar/Calendar.types.d.ts +18 -0
  18. package/dist/components/Calendar/Calendar.types.d.ts.map +1 -0
  19. package/dist/components/Calendar/Calendar.types.js +2 -0
  20. package/dist/components/Calendar/Calendar.types.js.map +1 -0
  21. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.d.ts +3 -0
  22. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.d.ts.map +1 -0
  23. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.js +35 -0
  24. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.js.map +1 -0
  25. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.types.d.ts +8 -0
  26. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.types.d.ts.map +1 -0
  27. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.types.js +2 -0
  28. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.types.js.map +1 -0
  29. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.utils.d.ts +17 -0
  30. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.utils.d.ts.map +1 -0
  31. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.utils.js +59 -0
  32. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.utils.js.map +1 -0
  33. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.variants.d.ts +8 -0
  34. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.variants.d.ts.map +1 -0
  35. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.variants.js +8 -0
  36. package/dist/components/Calendar/CalendarEventModal/CalendarEventModal.variants.js.map +1 -0
  37. package/dist/components/Calendar/CalendarEventModal/index.d.ts +3 -0
  38. package/dist/components/Calendar/CalendarEventModal/index.d.ts.map +1 -0
  39. package/dist/components/Calendar/CalendarEventModal/index.js +2 -0
  40. package/dist/components/Calendar/CalendarEventModal/index.js.map +1 -0
  41. package/dist/components/Calendar/CalendarFilter/CalendarFilter.d.ts +3 -0
  42. package/dist/components/Calendar/CalendarFilter/CalendarFilter.d.ts.map +1 -0
  43. package/dist/components/Calendar/CalendarFilter/CalendarFilter.js +18 -0
  44. package/dist/components/Calendar/CalendarFilter/CalendarFilter.js.map +1 -0
  45. package/dist/components/Calendar/CalendarFilter/CalendarFilter.types.d.ts +14 -0
  46. package/dist/components/Calendar/CalendarFilter/CalendarFilter.types.d.ts.map +1 -0
  47. package/dist/components/Calendar/CalendarFilter/CalendarFilter.types.js +2 -0
  48. package/dist/components/Calendar/CalendarFilter/CalendarFilter.types.js.map +1 -0
  49. package/dist/components/Calendar/CalendarFilter/CalendarFilter.variants.d.ts +5 -0
  50. package/dist/components/Calendar/CalendarFilter/CalendarFilter.variants.d.ts.map +1 -0
  51. package/dist/components/Calendar/CalendarFilter/CalendarFilter.variants.js +20 -0
  52. package/dist/components/Calendar/CalendarFilter/CalendarFilter.variants.js.map +1 -0
  53. package/dist/components/Calendar/CalendarFilter/index.d.ts +3 -0
  54. package/dist/components/Calendar/CalendarFilter/index.d.ts.map +1 -0
  55. package/dist/components/Calendar/CalendarFilter/index.js +2 -0
  56. package/dist/components/Calendar/CalendarFilter/index.js.map +1 -0
  57. package/dist/components/Calendar/CalendarGrid/CalendarGrid.css +126 -0
  58. package/dist/components/Calendar/CalendarGrid/CalendarGrid.d.ts +3 -0
  59. package/dist/components/Calendar/CalendarGrid/CalendarGrid.d.ts.map +1 -0
  60. package/dist/components/Calendar/CalendarGrid/CalendarGrid.js +26 -0
  61. package/dist/components/Calendar/CalendarGrid/CalendarGrid.js.map +1 -0
  62. package/dist/components/Calendar/CalendarGrid/CalendarGrid.types.d.ts +8 -0
  63. package/dist/components/Calendar/CalendarGrid/CalendarGrid.types.d.ts.map +1 -0
  64. package/dist/components/Calendar/CalendarGrid/CalendarGrid.types.js +2 -0
  65. package/dist/components/Calendar/CalendarGrid/CalendarGrid.types.js.map +1 -0
  66. package/dist/components/Calendar/CalendarGrid/CalendarGrid.variants.d.ts +9 -0
  67. package/dist/components/Calendar/CalendarGrid/CalendarGrid.variants.d.ts.map +1 -0
  68. package/dist/components/Calendar/CalendarGrid/CalendarGrid.variants.js +12 -0
  69. package/dist/components/Calendar/CalendarGrid/CalendarGrid.variants.js.map +1 -0
  70. package/dist/components/Calendar/CalendarGrid/index.d.ts +3 -0
  71. package/dist/components/Calendar/CalendarGrid/index.d.ts.map +1 -0
  72. package/dist/components/Calendar/CalendarGrid/index.js +2 -0
  73. package/dist/components/Calendar/CalendarGrid/index.js.map +1 -0
  74. package/dist/components/Calendar/CalendarNav/CalendarNav.d.ts +3 -0
  75. package/dist/components/Calendar/CalendarNav/CalendarNav.d.ts.map +1 -0
  76. package/dist/components/Calendar/CalendarNav/CalendarNav.js +14 -0
  77. package/dist/components/Calendar/CalendarNav/CalendarNav.js.map +1 -0
  78. package/dist/components/Calendar/CalendarNav/CalendarNav.types.d.ts +9 -0
  79. package/dist/components/Calendar/CalendarNav/CalendarNav.types.d.ts.map +1 -0
  80. package/dist/components/Calendar/CalendarNav/CalendarNav.types.js +2 -0
  81. package/dist/components/Calendar/CalendarNav/CalendarNav.types.js.map +1 -0
  82. package/dist/components/Calendar/CalendarNav/CalendarNav.variants.d.ts +11 -0
  83. package/dist/components/Calendar/CalendarNav/CalendarNav.variants.d.ts.map +1 -0
  84. package/dist/components/Calendar/CalendarNav/CalendarNav.variants.js +18 -0
  85. package/dist/components/Calendar/CalendarNav/CalendarNav.variants.js.map +1 -0
  86. package/dist/components/Calendar/CalendarNav/index.d.ts +3 -0
  87. package/dist/components/Calendar/CalendarNav/index.d.ts.map +1 -0
  88. package/dist/components/Calendar/CalendarNav/index.js +2 -0
  89. package/dist/components/Calendar/CalendarNav/index.js.map +1 -0
  90. package/dist/components/Calendar/index.d.ts +4 -0
  91. package/dist/components/Calendar/index.d.ts.map +1 -0
  92. package/dist/components/Calendar/index.js +2 -0
  93. package/dist/components/Calendar/index.js.map +1 -0
  94. package/dist/components/ChipPicker/ChipPicker.d.ts +3 -0
  95. package/dist/components/ChipPicker/ChipPicker.d.ts.map +1 -0
  96. package/dist/components/ChipPicker/ChipPicker.js +24 -0
  97. package/dist/components/ChipPicker/ChipPicker.js.map +1 -0
  98. package/dist/components/ChipPicker/ChipPicker.types.d.ts +21 -0
  99. package/dist/components/ChipPicker/ChipPicker.types.d.ts.map +1 -0
  100. package/dist/components/ChipPicker/ChipPicker.types.js +2 -0
  101. package/dist/components/ChipPicker/ChipPicker.types.js.map +1 -0
  102. package/dist/components/ChipPicker/ChipPicker.variants.d.ts +7 -0
  103. package/dist/components/ChipPicker/ChipPicker.variants.d.ts.map +1 -0
  104. package/dist/components/ChipPicker/ChipPicker.variants.js +7 -0
  105. package/dist/components/ChipPicker/ChipPicker.variants.js.map +1 -0
  106. package/dist/components/ChipPicker/index.d.ts +4 -0
  107. package/dist/components/ChipPicker/index.d.ts.map +1 -0
  108. package/dist/components/ChipPicker/index.js +3 -0
  109. package/dist/components/ChipPicker/index.js.map +1 -0
  110. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  111. package/dist/components/DataTable/DataTable.js +4 -2
  112. package/dist/components/DataTable/DataTable.js.map +1 -1
  113. package/dist/index.d.ts +184 -1
  114. package/dist/index.d.ts.map +1 -1
  115. package/dist/index.js +7 -1
  116. package/dist/index.js.map +1 -1
  117. package/package.json +8 -3
@@ -0,0 +1,7 @@
1
+ import type { ArtifactCardListItemProps, ArtifactCardListProps, ArtifactCardProps } from "./ArtifactCard.types.js";
2
+ export declare function ArtifactCard({ tone, icon, title, children, collapsible, defaultExpanded, expanded, onExpandedChange, className, ref, }: ArtifactCardProps): import("react/jsx-runtime").JSX.Element;
3
+ export declare function ArtifactCardList({ children, className, }: ArtifactCardListProps): import("react/jsx-runtime").JSX.Element;
4
+ export declare function ArtifactCardListItem({ title, meta, className, }: ArtifactCardListItemProps): import("react/jsx-runtime").JSX.Element;
5
+ export { artifactCardVariants } from "./ArtifactCard.variants.js";
6
+ export type { ArtifactCardListItemProps, ArtifactCardListProps, ArtifactCardProps, ArtifactCardTone, } from "./ArtifactCard.types.js";
7
+ //# sourceMappingURL=ArtifactCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArtifactCard.d.ts","sourceRoot":"","sources":["../../../src/components/ArtifactCard/ArtifactCard.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EACV,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EAClB,MAAM,yBAAyB,CAAC;AAejC,wBAAgB,YAAY,CAAC,EAC3B,IAAgB,EAChB,IAAI,EACJ,KAAK,EACL,QAAQ,EACR,WAAW,EACX,eAAuB,EACvB,QAAQ,EACR,gBAAgB,EAChB,SAAS,EACT,GAAG,GACJ,EAAE,iBAAiB,2CAgDnB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,QAAQ,EACR,SAAS,GACV,EAAE,qBAAqB,2CASvB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,EACL,IAAI,EACJ,SAAS,GACV,EAAE,yBAAyB,2CAY3B;AAED,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,26 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import * as React from "react";
3
+ import { CheckCircle, ChevronDown } from "lucide-react";
4
+ import { cn } from "../../lib/cn.js";
5
+ import { Collapsible, CollapsibleContent, CollapsibleTrigger, } from "../collapsible.js";
6
+ import { artifactCardIconVariants, artifactCardVariants, artifactCardVariantsParts, } from "./ArtifactCard.variants.js";
7
+ function DefaultIcon({ tone, }) {
8
+ return (_jsx(CheckCircle, { "aria-hidden": true, className: artifactCardIconVariants({ tone }) }));
9
+ }
10
+ export function ArtifactCard({ tone = "success", icon, title, children, collapsible, defaultExpanded = false, expanded, onExpandedChange, className, ref, }) {
11
+ const hasBody = children != null;
12
+ const isCollapsible = hasBody && (collapsible ?? true);
13
+ const resolvedIcon = icon ?? _jsx(DefaultIcon, { tone: tone });
14
+ if (!isCollapsible) {
15
+ return (_jsx("div", { ref: ref, "data-slot": "artifact-card", "data-tone": tone, className: cn(artifactCardVariants({ tone }), className), children: _jsxs("div", { className: artifactCardVariantsParts.headerStatic, children: [resolvedIcon, _jsx("div", { className: artifactCardVariantsParts.title, children: title })] }) }));
16
+ }
17
+ return (_jsx(Collapsible, { open: expanded, defaultOpen: expanded === undefined ? defaultExpanded : undefined, onOpenChange: onExpandedChange, className: cn(artifactCardVariants({ tone }), className), children: _jsxs("div", { ref: ref, "data-slot": "artifact-card", "data-tone": tone, children: [_jsxs(CollapsibleTrigger, { "data-slot": "artifact-card-trigger", className: cn(artifactCardVariantsParts.header, "group"), children: [resolvedIcon, _jsx("div", { className: cn(artifactCardVariantsParts.title, "min-w-0 flex-1"), children: title }), _jsx(ChevronDown, { "aria-hidden": true, className: artifactCardVariantsParts.chevron })] }), _jsx(CollapsibleContent, { "data-slot": "artifact-card-content", children: children })] }) }));
18
+ }
19
+ export function ArtifactCardList({ children, className, }) {
20
+ return (_jsx("ul", { "data-slot": "artifact-card-list", className: cn(artifactCardVariantsParts.list, className), children: children }));
21
+ }
22
+ export function ArtifactCardListItem({ title, meta, className, }) {
23
+ return (_jsxs("li", { "data-slot": "artifact-card-list-item", className: cn(artifactCardVariantsParts.listItem, className), children: [_jsx("p", { className: artifactCardVariantsParts.listItemTitle, children: title }), meta ? (_jsx("p", { className: artifactCardVariantsParts.listItemMeta, children: meta })) : null] }));
24
+ }
25
+ export { artifactCardVariants } from "./ArtifactCard.variants.js";
26
+ //# sourceMappingURL=ArtifactCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArtifactCard.js","sourceRoot":"","sources":["../../../src/components/ArtifactCard/ArtifactCard.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAExD,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AACrC,OAAO,EACL,WAAW,EACX,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,wBAAwB,EACxB,oBAAoB,EACpB,yBAAyB,GAC1B,MAAM,4BAA4B,CAAC;AAOpC,SAAS,WAAW,CAAC,EACnB,IAAI,GAGL;IACC,OAAO,CACL,KAAC,WAAW,yBAEV,SAAS,EAAE,wBAAwB,CAAC,EAAE,IAAI,EAAE,CAAC,GAC7C,CACH,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,EAC3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AAE,yBAAyB,CAAC,OAAO,GAC5C,IACiB,EACrB,KAAC,kBAAkB,iBAAW,uBAAuB,YAClD,QAAQ,GACU,IACjB,GACM,CACf,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,EAC/B,QAAQ,EACR,SAAS,GACa;IACtB,OAAO,CACL,0BACY,oBAAoB,EAC9B,SAAS,EAAE,EAAE,CAAC,yBAAyB,CAAC,IAAI,EAAE,SAAS,CAAC,YAEvD,QAAQ,GACN,CACN,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,EACnC,KAAK,EACL,IAAI,EACJ,SAAS,GACiB;IAC1B,OAAO,CACL,2BACY,yBAAyB,EACnC,SAAS,EAAE,EAAE,CAAC,yBAAyB,CAAC,QAAQ,EAAE,SAAS,CAAC,aAE5D,YAAG,SAAS,EAAE,yBAAyB,CAAC,aAAa,YAAG,KAAK,GAAK,EACjE,IAAI,CAAC,CAAC,CAAC,CACN,YAAG,SAAS,EAAE,yBAAyB,CAAC,YAAY,YAAG,IAAI,GAAK,CACjE,CAAC,CAAC,CAAC,IAAI,IACL,CACN,CAAC;AACJ,CAAC;AAED,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,25 @@
1
+ import type { ReactNode, Ref } from "react";
2
+ export type ArtifactCardTone = "success" | "neutral";
3
+ export type ArtifactCardProps = {
4
+ tone?: ArtifactCardTone;
5
+ icon?: ReactNode;
6
+ title: ReactNode;
7
+ children?: ReactNode;
8
+ /** When true and `children` is set, the body expands/collapses. Defaults to true when children exist. */
9
+ collapsible?: boolean;
10
+ defaultExpanded?: boolean;
11
+ expanded?: boolean;
12
+ onExpandedChange?: (expanded: boolean) => void;
13
+ className?: string;
14
+ ref?: Ref<HTMLDivElement>;
15
+ };
16
+ export type ArtifactCardListProps = {
17
+ children: ReactNode;
18
+ className?: string;
19
+ };
20
+ export type ArtifactCardListItemProps = {
21
+ title: ReactNode;
22
+ meta?: ReactNode;
23
+ className?: string;
24
+ };
25
+ //# sourceMappingURL=ArtifactCard.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArtifactCard.types.d.ts","sourceRoot":"","sources":["../../../src/components/ArtifactCard/ArtifactCard.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5C,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,SAAS,CAAC;AAErD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yGAAyG;IACzG,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ArtifactCard.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArtifactCard.types.js","sourceRoot":"","sources":["../../../src/components/ArtifactCard/ArtifactCard.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import { type VariantProps } from "class-variance-authority";
2
+ export declare const artifactCardVariants: (props?: ({
3
+ tone?: "success" | "neutral" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ export declare const artifactCardIconVariants: (props?: ({
6
+ tone?: "success" | "neutral" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export declare const artifactCardVariantsParts: {
9
+ readonly header: "flex w-full items-center gap-2 p-4 text-left";
10
+ readonly headerStatic: "flex items-center gap-2 p-4";
11
+ readonly title: "text-sm leading-5 text-[var(--color-semantic-artifact-card-title)]";
12
+ readonly chevron: "ml-auto size-4 shrink-0 text-[var(--color-semantic-artifact-card-chevron)] transition-transform group-data-[state=open]:rotate-180";
13
+ readonly list: "max-h-60 divide-y divide-[var(--color-semantic-artifact-card-divider)] overflow-y-auto border-t border-[var(--color-semantic-artifact-card-divider)] px-4";
14
+ readonly listItem: "py-2.5";
15
+ readonly listItemTitle: "text-sm font-medium leading-5 text-[var(--color-semantic-artifact-card-title)]";
16
+ readonly listItemMeta: "text-xs leading-snug text-[var(--color-semantic-artifact-card-meta)]";
17
+ };
18
+ export type ArtifactCardVariants = VariantProps<typeof artifactCardVariants>;
19
+ //# sourceMappingURL=ArtifactCard.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArtifactCard.variants.d.ts","sourceRoot":"","sources":["../../../src/components/ArtifactCard/ArtifactCard.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,oBAAoB;;8EAmBhC,CAAC;AAEF,eAAO,MAAM,wBAAwB;;8EAUnC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;CAY5B,CAAC;AAEX,MAAM,MAAM,oBAAoB,GAAG,YAAY,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,40 @@
1
+ import { cva } from "class-variance-authority";
2
+ export const artifactCardVariants = cva("my-2 overflow-hidden rounded-xl border transition-colors", {
3
+ variants: {
4
+ tone: {
5
+ success: [
6
+ "bg-[var(--color-semantic-artifact-card-success-bg)]",
7
+ "border-[var(--color-semantic-artifact-card-success-border)]",
8
+ ],
9
+ neutral: [
10
+ "bg-[var(--color-semantic-artifact-card-neutral-bg)]",
11
+ "border-[var(--color-semantic-artifact-card-neutral-border)]",
12
+ ],
13
+ },
14
+ },
15
+ defaultVariants: {
16
+ tone: "success",
17
+ },
18
+ });
19
+ export const artifactCardIconVariants = cva("size-4 shrink-0", {
20
+ variants: {
21
+ tone: {
22
+ success: "text-[var(--color-semantic-artifact-card-success-icon)]",
23
+ neutral: "text-[var(--color-semantic-artifact-card-neutral-icon)]",
24
+ },
25
+ },
26
+ defaultVariants: {
27
+ tone: "success",
28
+ },
29
+ });
30
+ export const artifactCardVariantsParts = {
31
+ header: "flex w-full items-center gap-2 p-4 text-left",
32
+ headerStatic: "flex items-center gap-2 p-4",
33
+ title: "text-sm leading-5 text-[var(--color-semantic-artifact-card-title)]",
34
+ chevron: "ml-auto size-4 shrink-0 text-[var(--color-semantic-artifact-card-chevron)] transition-transform group-data-[state=open]:rotate-180",
35
+ list: "max-h-60 divide-y divide-[var(--color-semantic-artifact-card-divider)] overflow-y-auto border-t border-[var(--color-semantic-artifact-card-divider)] px-4",
36
+ listItem: "py-2.5",
37
+ listItemTitle: "text-sm font-medium leading-5 text-[var(--color-semantic-artifact-card-title)]",
38
+ listItemMeta: "text-xs leading-snug text-[var(--color-semantic-artifact-card-meta)]",
39
+ };
40
+ //# sourceMappingURL=ArtifactCard.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ArtifactCard.variants.js","sourceRoot":"","sources":["../../../src/components/ArtifactCard/ArtifactCard.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CACrC,0DAA0D,EAC1D;IACE,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE;gBACP,qDAAqD;gBACrD,6DAA6D;aAC9D;YACD,OAAO,EAAE;gBACP,qDAAqD;gBACrD,6DAA6D;aAC9D;SACF;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,SAAS;KAChB;CACF,CACF,CAAC;AAEF,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAC,iBAAiB,EAAE;IAC7D,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,yDAAyD;YAClE,OAAO,EAAE,yDAAyD;SACnE;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,SAAS;KAChB;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,MAAM,EAAE,8CAA8C;IACtD,YAAY,EAAE,6BAA6B;IAC3C,KAAK,EAAE,oEAAoE;IAC3E,OAAO,EACL,oIAAoI;IACtI,IAAI,EAAE,2JAA2J;IACjK,QAAQ,EAAE,QAAQ;IAClB,aAAa,EACX,gFAAgF;IAClF,YAAY,EACV,sEAAsE;CAChE,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { ArtifactCard, ArtifactCardList, ArtifactCardListItem, artifactCardVariants, } from "./ArtifactCard.js";
2
+ export type { ArtifactCardListItemProps, ArtifactCardListProps, ArtifactCardProps, ArtifactCardTone, } from "./ArtifactCard.types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/ArtifactCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC;AAC3B,YAAY,EACV,yBAAyB,EACzB,qBAAqB,EACrB,iBAAiB,EACjB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { ArtifactCard, ArtifactCardList, ArtifactCardListItem, artifactCardVariants, } from "./ArtifactCard.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ArtifactCard/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,mBAAmB,CAAC"}
@@ -0,0 +1,18 @@
1
+ export interface CalendarParticipant {
2
+ name: string;
3
+ role: string;
4
+ }
5
+ export interface CalendarEvent {
6
+ id: string;
7
+ title: string;
8
+ start: Date;
9
+ end: Date;
10
+ isInterview: boolean;
11
+ participants: CalendarParticipant[];
12
+ location?: string;
13
+ meetingProvider?: string;
14
+ timeZone?: string;
15
+ category?: string;
16
+ meetingLink?: string;
17
+ }
18
+ //# sourceMappingURL=Calendar.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Calendar.types.d.ts","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;IACV,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,mBAAmB,EAAE,CAAC;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=Calendar.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Calendar.types.js","sourceRoot":"","sources":["../../../src/components/Calendar/Calendar.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { CalendarEventModalProps } from "./CalendarEventModal.types.js";
2
+ export declare function CalendarEventModal({ event, open, onOpenChange }: CalendarEventModalProps): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=CalendarEventModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarEventModal.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarEventModal/CalendarEventModal.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAa7E,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,uBAAuB,2CAsKxF"}
@@ -0,0 +1,35 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Check, Clock, Copy, Video } from "lucide-react";
3
+ import * as React from "react";
4
+ import { cn } from "../../../lib/cn.js";
5
+ import { Avatar, AvatarFallback } from "../../Avatar/index.js";
6
+ import { Button } from "../../Button/index.js";
7
+ import { Dialog, DialogContent, DialogDescription, DialogHeader, DialogTitle, } from "../../dialog.js";
8
+ import { Separator } from "../../Separator/index.js";
9
+ import { formatEventDate, getInitials, getMeetingHost, getProviderLabel, getSubtitle, getTimeZoneLabel, } from "./CalendarEventModal.utils.js";
10
+ import { calendarEventModalClasses as classes } from "./CalendarEventModal.variants.js";
11
+ const COPIED_RESET_MS = 2000;
12
+ export function CalendarEventModal({ event, open, onOpenChange }) {
13
+ const [copied, setCopied] = React.useState(false);
14
+ const handleCopy = React.useCallback(async () => {
15
+ if (!event?.meetingLink)
16
+ return;
17
+ try {
18
+ await navigator.clipboard.writeText(event.meetingLink);
19
+ setCopied(true);
20
+ window.setTimeout(() => setCopied(false), COPIED_RESET_MS);
21
+ }
22
+ catch {
23
+ // Clipboard unavailable (e.g. insecure context) — silently ignore.
24
+ }
25
+ }, [event]);
26
+ if (!event) {
27
+ return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsx(DialogContent, { "data-slot": "calendar-event-modal", className: "max-w-md", "aria-describedby": undefined, children: _jsx(DialogTitle, { className: "sr-only", children: "Event details" }) }) }));
28
+ }
29
+ const subtitle = getSubtitle(event);
30
+ const date = formatEventDate(event.start, event.end);
31
+ const timeZoneLabel = getTimeZoneLabel(event.timeZone);
32
+ const providerLabel = getProviderLabel(event.meetingProvider);
33
+ return (_jsx(Dialog, { open: open, onOpenChange: onOpenChange, children: _jsxs(DialogContent, { "data-slot": "calendar-event-modal", className: "max-w-md gap-0 overflow-hidden p-0 [&>*]:min-w-0", children: [_jsxs(DialogHeader, { className: "space-y-3 p-6 pb-5", children: [_jsx(DialogTitle, { className: "pr-6 text-[var(--color-semantic-fg-primary)]", children: event.title }), subtitle ? (_jsx(DialogDescription, { className: "text-[var(--color-semantic-fg-muted)]", children: subtitle })) : null] }), _jsx(Separator, {}), _jsxs("div", { "data-slot": "calendar-event-modal-date", className: "flex items-center gap-4 p-6", children: [_jsxs("div", { className: cn(classes.inset, "flex size-16 shrink-0 flex-col items-center justify-center"), children: [_jsx("span", { className: "text-[10px] font-semibold uppercase tracking-[0.2em] text-[var(--color-semantic-fg-muted)]", children: date.month }), _jsx("span", { className: "text-2xl leading-none font-semibold text-[var(--color-semantic-fg-primary)]", children: date.day })] }), _jsxs("div", { className: "space-y-1", children: [_jsx("p", { className: "text-sm font-semibold text-[var(--color-semantic-fg-primary)]", children: date.weekday }), _jsx("p", { className: "text-sm text-[var(--color-semantic-fg-muted)]", children: date.fullDate }), _jsxs("p", { className: "flex items-center gap-1.5 text-sm text-[var(--color-semantic-fg-primary)]", children: [_jsx(Clock, { className: "size-3.5 shrink-0 text-[var(--color-semantic-fg-muted)]" }), date.timeRange, timeZoneLabel ? ` ${timeZoneLabel}` : ""] })] })] }), _jsx(Separator, {}), event.participants.length > 0 ? (_jsxs(_Fragment, { children: [_jsx("ul", { "data-slot": "calendar-event-modal-participants", className: "space-y-3 p-6", children: event.participants.map((participant) => (_jsxs("li", { className: "flex items-center gap-3", children: [_jsx(Avatar, { className: "size-9", children: _jsx(AvatarFallback, { className: "text-xs text-[var(--color-semantic-fg-primary)]", children: getInitials(participant.name) }) }), _jsxs("div", { className: "min-w-0", children: [_jsx("p", { className: "truncate text-sm font-medium text-[var(--color-semantic-fg-primary)]", children: participant.name }), _jsx("p", { className: "text-xs text-[var(--color-semantic-fg-muted)]", children: participant.role })] })] }, `${participant.role}-${participant.name}`))) }), _jsx(Separator, {})] })) : null, _jsxs("div", { "data-slot": "calendar-event-modal-meeting", className: "space-y-3 p-6 pt-5", children: [_jsx("span", { className: "text-[10px] font-semibold uppercase tracking-[0.2em] text-[var(--color-semantic-fg-muted)]", children: "Meeting" }), event.meetingLink ? (_jsxs(_Fragment, { children: [_jsx("div", { className: cn(classes.inset, "flex items-center gap-3 px-3 py-2.5"), children: _jsxs("div", { className: "min-w-0", children: [_jsx("p", { className: "truncate text-sm font-medium text-[var(--color-semantic-fg-primary)]", children: providerLabel }), _jsx("p", { className: "truncate text-xs text-[var(--color-semantic-fg-muted)]", children: getMeetingHost(event.meetingLink) })] }) }), _jsxs("div", { className: "flex items-center gap-2", children: [_jsxs(Button, { className: "flex-1", "aria-label": "Join the online meeting", onClick: () => window.open(event.meetingLink, "_blank", "noopener,noreferrer"), children: [_jsx(Video, {}), "Join meeting"] }), _jsx(Button, { variant: "secondary", className: "shrink-0", "aria-label": copied ? "Meeting link copied" : "Copy meeting link", onClick: handleCopy, children: copied ? _jsx(Check, {}) : _jsx(Copy, {}) })] })] })) : (_jsx("p", { className: cn(classes.inset, "border-dashed px-3 py-2.5 text-xs text-[var(--color-semantic-fg-muted)]"), children: "The join link will appear here once it has been provisioned." }))] })] }) }));
34
+ }
35
+ //# sourceMappingURL=CalendarEventModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarEventModal.js","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarEventModal/CalendarEventModal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EACL,MAAM,EACN,aAAa,EACb,iBAAiB,EACjB,YAAY,EACZ,WAAW,GACZ,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAErD,OAAO,EACL,eAAe,EACf,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,gBAAgB,GACjB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,yBAAyB,IAAI,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAExF,MAAM,eAAe,GAAG,IAAI,CAAC;AAE7B,MAAM,UAAU,kBAAkB,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,EAA2B;IACvF,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAElD,MAAM,UAAU,GAAG,KAAK,CAAC,WAAW,CAAC,KAAK,IAAI,EAAE;QAC9C,IAAI,CAAC,KAAK,EAAE,WAAW;YAAE,OAAO;QAChC,IAAI,CAAC;YACH,MAAM,SAAS,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;YACvD,SAAS,CAAC,IAAI,CAAC,CAAC;YAChB,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,S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AS,EAAC,4FAA4F,wBAErG,EAEN,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CACnB,8BACE,cAAK,SAAS,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,EAAE,qCAAqC,CAAC,YACtE,eAAK,SAAS,EAAC,SAAS,aACtB,YAAG,SAAS,EAAC,sEAAsE,YAChF,aAAa,GACZ,EACJ,YAAG,SAAS,EAAC,wDAAwD,YAClE,cAAc,CAAC,KAAK,CAAC,WAAW,CAAC,GAChC,IACA,GACF,EAEN,eAAK,SAAS,EAAC,yBAAyB,aACtC,MAAC,MAAM,IACL,SAAS,EAAC,QAAQ,gBACP,yBAAyB,EACpC,OAAO,EAAE,GAAG,EAAE,CACZ,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,QAAQ,EAAE,qBAAqB,CAAC,aAGjE,KAAC,KAAK,KAAG,oBAEF,EACT,KAAC,MAAM,IACL,OAAO,EAAC,WAAW,EACnB,SAAS,EAAC,UAAU,gBACR,MAAM,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,mBAAmB,EAChE,OAAO,EAAE,UAAU,YAElB,MAAM,CAAC,CAAC,CAAC,KAAC,KAAK,KAAG,CAAC,CAAC,CAAC,KAAC,IAAI,KAAG,GACvB,IACL,IACL,CACJ,CAAC,CAAC,CAAC,CACF,YACE,SAAS,EAAE,EAAE,CACX,OAAO,CAAC,KAAK,EACb,yEAAyE,CAC1E,6EAGC,CACL,IACG,IACQ,GACT,CACV,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { CalendarEvent } from "../Calendar.types.js";
2
+ export interface CalendarEventModalProps {
3
+ /** The event to display. When `null` the dialog renders an empty shell. */
4
+ event: CalendarEvent | null;
5
+ open: boolean;
6
+ onOpenChange: (open: boolean) => void;
7
+ }
8
+ //# sourceMappingURL=CalendarEventModal.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarEventModal.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarEventModal/CalendarEventModal.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAE1D,MAAM,WAAW,uBAAuB;IACtC,2EAA2E;IAC3E,KAAK,EAAE,aAAa,GAAG,IAAI,CAAC;IAC5B,IAAI,EAAE,OAAO,CAAC;IACd,YAAY,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;CACvC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CalendarEventModal.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarEventModal.types.js","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarEventModal/CalendarEventModal.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,17 @@
1
+ import type { CalendarEvent } from "../Calendar.types.js";
2
+ export interface FormattedEventDate {
3
+ month: string;
4
+ day: string;
5
+ weekday: string;
6
+ fullDate: string;
7
+ timeRange: string;
8
+ }
9
+ export declare function formatEventDate(start: Date, end: Date): FormattedEventDate;
10
+ /** First two name parts, uppercased — used for the avatar fallback. */
11
+ export declare function getInitials(name: string): string;
12
+ /** host + path of a meeting link, falling back to the raw string. */
13
+ export declare function getMeetingHost(link: string): string;
14
+ export declare function getTimeZoneLabel(timeZone: string | undefined): string | undefined;
15
+ export declare function getProviderLabel(meetingProvider: string | undefined): string;
16
+ export declare function getSubtitle(event: CalendarEvent): string | undefined;
17
+ //# sourceMappingURL=CalendarEventModal.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarEventModal.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarEventModal/CalendarEventModal.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAyB1D,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,GAAG,kBAAkB,CAQ1E;AAED,uEAAuE;AACvE,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOhD;AAED,qEAAqE;AACrE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAOnD;AAED,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAEjF;AAED,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAE5E;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,aAAa,GAAG,MAAM,GAAG,SAAS,CAEpE"}
@@ -0,0 +1,59 @@
1
+ /** Maps common Windows/IANA time-zone strings to a short display label. */
2
+ const TIME_ZONE_LABELS = {
3
+ "Eastern Standard Time": "ET",
4
+ "Central Standard Time": "CT",
5
+ "Mountain Standard Time": "MT",
6
+ "Pacific Standard Time": "PT",
7
+ "GMT Standard Time": "GMT",
8
+ };
9
+ const monthFormat = new Intl.DateTimeFormat("en-US", { month: "short" });
10
+ const dayFormat = new Intl.DateTimeFormat("en-US", { day: "numeric" });
11
+ const weekdayFormat = new Intl.DateTimeFormat("en-US", { weekday: "long" });
12
+ const fullDateFormat = new Intl.DateTimeFormat("en-US", {
13
+ month: "long",
14
+ day: "numeric",
15
+ year: "numeric",
16
+ });
17
+ const timeFormat = new Intl.DateTimeFormat("en-US", {
18
+ hour: "numeric",
19
+ minute: "2-digit",
20
+ hour12: true,
21
+ });
22
+ export function formatEventDate(start, end) {
23
+ return {
24
+ month: monthFormat.format(start),
25
+ day: dayFormat.format(start),
26
+ weekday: weekdayFormat.format(start),
27
+ fullDate: fullDateFormat.format(start),
28
+ timeRange: `${timeFormat.format(start)} – ${timeFormat.format(end)}`,
29
+ };
30
+ }
31
+ /** First two name parts, uppercased — used for the avatar fallback. */
32
+ export function getInitials(name) {
33
+ return name
34
+ .split(/\s+/)
35
+ .filter(Boolean)
36
+ .slice(0, 2)
37
+ .map((part) => part[0]?.toUpperCase() ?? "")
38
+ .join("");
39
+ }
40
+ /** host + path of a meeting link, falling back to the raw string. */
41
+ export function getMeetingHost(link) {
42
+ try {
43
+ const url = new URL(link);
44
+ return `${url.host}${url.pathname}`;
45
+ }
46
+ catch {
47
+ return link;
48
+ }
49
+ }
50
+ export function getTimeZoneLabel(timeZone) {
51
+ return timeZone ? TIME_ZONE_LABELS[timeZone] : undefined;
52
+ }
53
+ export function getProviderLabel(meetingProvider) {
54
+ return meetingProvider ?? "Online meeting";
55
+ }
56
+ export function getSubtitle(event) {
57
+ return event.isInterview ? "Interview · Recruiting" : event.category;
58
+ }
59
+ //# sourceMappingURL=CalendarEventModal.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarEventModal.utils.js","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarEventModal/CalendarEventModal.utils.ts"],"names":[],"mappings":"AAEA,2EAA2E;AAC3E,MAAM,gBAAgB,GAA2B;IAC/C,uBAAuB,EAAE,IAAI;IAC7B,uBAAuB,EAAE,IAAI;IAC7B,wBAAwB,EAAE,IAAI;IAC9B,uBAAuB,EAAE,IAAI;IAC7B,mBAAmB,EAAE,KAAK;CAC3B,CAAC;AAEF,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;AACzE,MAAM,SAAS,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,CAAC;AACvE,MAAM,aAAa,GAAG,IAAI,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,EAAE,O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,IAAI,GAAG,GAAG,CAAC,QAAQ,EAAE,CAAC;IACtC,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,QAA4B;IAC3D,OAAO,QAAQ,CAAC,CAAC,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;AAC3D,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,eAAmC;IAClE,OAAO,eAAe,IAAI,gBAAgB,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,KAAoB;IAC9C,OAAO,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;AACvE,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Inset surface shared by the date block, the meeting panel, and the no-link
3
+ * placeholder. Re-tokenizes the hackathon's `border-input bg-muted/40`.
4
+ */
5
+ export declare const calendarEventModalClasses: {
6
+ inset: string;
7
+ };
8
+ //# sourceMappingURL=CalendarEventModal.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarEventModal.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarEventModal/CalendarEventModal.variants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,yBAAyB;;CAGrC,CAAC"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Inset surface shared by the date block, the meeting panel, and the no-link
3
+ * placeholder. Re-tokenizes the hackathon's `border-input bg-muted/40`.
4
+ */
5
+ export const calendarEventModalClasses = {
6
+ inset: "rounded-lg border border-[var(--color-semantic-calendar-inset-border)] bg-[var(--color-semantic-calendar-inset-bg)]",
7
+ };
8
+ //# sourceMappingURL=CalendarEventModal.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarEventModal.variants.js","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarEventModal/CalendarEventModal.variants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACvC,KAAK,EACH,qHAAqH;CACxH,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { CalendarEventModal } from "./CalendarEventModal.js";
2
+ export type { CalendarEventModalProps } from "./CalendarEventModal.types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarEventModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,YAAY,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CalendarEventModal } from "./CalendarEventModal.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarEventModal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { CalendarFilterProps } from "./CalendarFilter.types.js";
2
+ export declare function CalendarFilter({ "aria-label": ariaLabel, options, value: controlledValue, defaultValue, onValueChange, ref, }: CalendarFilterProps): import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=CalendarFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarFilter.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarFilter/CalendarFilter.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGrE,wBAAgB,cAAc,CAAC,EAC7B,YAAY,EAAE,SAAS,EACvB,OAAO,EACP,KAAK,EAAE,eAAe,EACtB,YAAY,EACZ,aAAa,EACb,GAAG,GACJ,EAAE,mBAAmB,2CA+BrB"}
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
3
+ import { useState } from "react";
4
+ import { cn } from "../../../lib/cn.js";
5
+ import { calendarFilterVariants } from "./CalendarFilter.variants.js";
6
+ export function CalendarFilter({ "aria-label": ariaLabel, options, value: controlledValue, defaultValue, onValueChange, ref, }) {
7
+ const isControlled = controlledValue !== undefined;
8
+ const [internalValue, setInternalValue] = useState(defaultValue ?? "");
9
+ const currentValue = isControlled ? controlledValue : internalValue;
10
+ return (_jsx(ToggleGroupPrimitive.Root, { ref: ref, "data-slot": "calendar-filter", type: "single", "aria-label": ariaLabel, value: currentValue, className: cn(calendarFilterVariants.root), onValueChange: (val) => {
11
+ if (!val)
12
+ return;
13
+ if (!isControlled)
14
+ setInternalValue(val);
15
+ onValueChange?.(val);
16
+ }, children: options.map((option) => (_jsx(ToggleGroupPrimitive.Item, { value: option.value, "data-slot": "calendar-filter-item", className: cn(calendarFilterVariants.item), children: option.label }, option.value))) }));
17
+ }
18
+ //# sourceMappingURL=CalendarFilter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarFilter.js","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarFilter/CalendarFilter.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAExC,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE,MAAM,UAAU,cAAc,CAAC,EAC7B,YAAY,EAAE,SAAS,EACvB,OAAO,EACP,KAAK,EAAE,eAAe,EACtB,YAAY,EACZ,aAAa,EACb,GAAG,GACiB;IACpB,MAAM,YAAY,GAAG,eAAe,KAAK,SAAS,CAAC;IACnD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;IACvE,MAAM,YAAY,GAAG,YAAY,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,aAAa,CAAC;IAEpE,OAAO,CACL,KAAC,oBAAoB,CAAC,IAAI,IACxB,GAAG,EAAE,GAAG,eACE,iBAAiB,EAC3B,IAAI,EAAC,QAAQ,gBACD,SAAS,EACrB,KAAK,EAAE,YAAY,EACnB,SAAS,EAAE,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,EAC1C,aAAa,EAAE,CAAC,GAAG,EAAE,EAAE;YACrB,IAAI,CAAC,GAAG;gBAAE,OAAO;YACjB,IAAI,CAAC,YAAY;gBAAE,gBAAgB,CAAC,GAAG,CAAC,CAAC;YACzC,aAAa,EAAE,CAAC,GAAG,CAAC,CAAC;QACvB,CAAC,YAEA,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,KAAC,oBAAoB,CAAC,IAAI,IAExB,KAAK,EAAE,MAAM,CAAC,KAAK,eACT,sBAAsB,EAChC,SAAS,EAAE,EAAE,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAEzC,MAAM,CAAC,KAAK,IALR,MAAM,CAAC,KAAK,CAMS,CAC7B,CAAC,GACwB,CAC7B,CAAC;AACJ,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { Ref } from "react";
2
+ export interface CalendarFilterOption {
3
+ value: string;
4
+ label: string;
5
+ }
6
+ export interface CalendarFilterProps {
7
+ "aria-label": string;
8
+ options: CalendarFilterOption[];
9
+ value?: string;
10
+ defaultValue?: string;
11
+ onValueChange?: (value: string) => void;
12
+ ref?: Ref<HTMLDivElement>;
13
+ }
14
+ //# sourceMappingURL=CalendarFilter.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarFilter.types.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarFilter/CalendarFilter.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,oBAAoB,EAAE,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=CalendarFilter.types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarFilter.types.js","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarFilter/CalendarFilter.types.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ export declare const calendarFilterVariants: {
2
+ readonly root: readonly ["inline-flex items-center gap-1 rounded-full p-1", "border border-[var(--color-semantic-calendar-filter-track-border)]", "bg-[var(--color-semantic-calendar-filter-track-bg)]"];
3
+ readonly item: readonly ["inline-flex items-center justify-center h-[34px] px-[12px] rounded-full", "text-sm leading-5 font-medium whitespace-nowrap", "cursor-pointer outline-none transition-colors", "text-[var(--color-semantic-calendar-filter-inactive-fg)]", "hover:opacity-80", "focus-visible:ring-2 focus-visible:ring-[var(--color-semantic-calendar-filter-focus)] focus-visible:ring-offset-2", "data-[state=on]:bg-[var(--color-semantic-calendar-filter-active-bg)]", "data-[state=on]:text-[var(--color-semantic-calendar-filter-active-fg)]", "data-[state=on]:hover:opacity-90", "data-[state=on]:active:opacity-80"];
4
+ };
5
+ //# sourceMappingURL=CalendarFilter.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarFilter.variants.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarFilter/CalendarFilter.variants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB;;;CAkBzB,CAAC"}
@@ -0,0 +1,20 @@
1
+ export const calendarFilterVariants = {
2
+ root: [
3
+ "inline-flex items-center gap-1 rounded-full p-1",
4
+ "border border-[var(--color-semantic-calendar-filter-track-border)]",
5
+ "bg-[var(--color-semantic-calendar-filter-track-bg)]",
6
+ ],
7
+ item: [
8
+ "inline-flex items-center justify-center h-[34px] px-[12px] rounded-full",
9
+ "text-sm leading-5 font-medium whitespace-nowrap",
10
+ "cursor-pointer outline-none transition-colors",
11
+ "text-[var(--color-semantic-calendar-filter-inactive-fg)]",
12
+ "hover:opacity-80",
13
+ "focus-visible:ring-2 focus-visible:ring-[var(--color-semantic-calendar-filter-focus)] focus-visible:ring-offset-2",
14
+ "data-[state=on]:bg-[var(--color-semantic-calendar-filter-active-bg)]",
15
+ "data-[state=on]:text-[var(--color-semantic-calendar-filter-active-fg)]",
16
+ "data-[state=on]:hover:opacity-90",
17
+ "data-[state=on]:active:opacity-80",
18
+ ],
19
+ };
20
+ //# sourceMappingURL=CalendarFilter.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CalendarFilter.variants.js","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarFilter/CalendarFilter.variants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE;QACJ,iDAAiD;QACjD,oEAAoE;QACpE,qDAAqD;KACtD;IACD,IAAI,EAAE;QACJ,yEAAyE;QACzE,iDAAiD;QACjD,+CAA+C;QAC/C,0DAA0D;QAC1D,kBAAkB;QAClB,mHAAmH;QACnH,sEAAsE;QACtE,wEAAwE;QACxE,kCAAkC;QAClC,mCAAmC;KACpC;CACO,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { CalendarFilter } from "./CalendarFilter.js";
2
+ export type { CalendarFilterOption, CalendarFilterProps, } from "./CalendarFilter.types.js";
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,YAAY,EACV,oBAAoB,EACpB,mBAAmB,GACpB,MAAM,2BAA2B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { CalendarFilter } from "./CalendarFilter.js";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/Calendar/CalendarFilter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC"}