@iit/precision-ui 0.7.3 → 0.8.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 (85) hide show
  1. package/dist/components/ui/carousel.d.ts +1 -0
  2. package/dist/components/ui/carousel.d.ts.map +1 -1
  3. package/dist/components/ui/combobox.d.ts +19 -0
  4. package/dist/components/ui/combobox.d.ts.map +1 -0
  5. package/dist/components/ui/command.d.ts +81 -0
  6. package/dist/components/ui/command.d.ts.map +1 -0
  7. package/dist/index.d.ts +1 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.es.js +51 -49
  10. package/dist/index.es.js.map +1 -1
  11. package/dist/index.es10.js +1 -1
  12. package/dist/index.es11.js +1 -1
  13. package/dist/index.es14.js +1 -1
  14. package/dist/index.es15.js +1 -1
  15. package/dist/index.es17.js +1 -1
  16. package/dist/index.es18.js +2 -2
  17. package/dist/index.es2.js +1 -1
  18. package/dist/index.es20.js +1 -1
  19. package/dist/index.es21.js +1 -1
  20. package/dist/index.es22.js +1 -1
  21. package/dist/index.es23.js +2 -2
  22. package/dist/index.es24.js +3 -3
  23. package/dist/index.es25.js +3 -3
  24. package/dist/index.es26.js +3 -3
  25. package/dist/index.es27.js +1 -1
  26. package/dist/index.es28.js +1 -1
  27. package/dist/index.es29.js +3 -3
  28. package/dist/index.es3.js +2 -2
  29. package/dist/index.es30.js +3 -3
  30. package/dist/index.es31.js +3 -3
  31. package/dist/index.es32.js +3 -3
  32. package/dist/index.es33.js +3 -3
  33. package/dist/index.es34.js +3 -3
  34. package/dist/index.es35.js +1 -1
  35. package/dist/index.es36.js +1 -1
  36. package/dist/index.es37.js +1 -1
  37. package/dist/index.es38.js +1 -1
  38. package/dist/index.es39.js +2 -2
  39. package/dist/index.es4.js +1 -1
  40. package/dist/index.es40.js +4 -4
  41. package/dist/index.es41.js +2 -2
  42. package/dist/index.es42.js +3 -3
  43. package/dist/index.es44.js +2 -2
  44. package/dist/index.es45.js +59 -18
  45. package/dist/index.es45.js.map +1 -1
  46. package/dist/index.es46.js +10 -9
  47. package/dist/index.es46.js.map +1 -1
  48. package/dist/index.es47.js +19 -91
  49. package/dist/index.es47.js.map +1 -1
  50. package/dist/index.es48.js +90 -89
  51. package/dist/index.es48.js.map +1 -1
  52. package/dist/index.es49.js +82 -25
  53. package/dist/index.es49.js.map +1 -1
  54. package/dist/index.es5.js +1 -1
  55. package/dist/index.es50.js +27 -71
  56. package/dist/index.es50.js.map +1 -1
  57. package/dist/index.es51.js +70 -36
  58. package/dist/index.es51.js.map +1 -1
  59. package/dist/index.es52.js +42 -10
  60. package/dist/index.es52.js.map +1 -1
  61. package/dist/index.es53.js +11 -6
  62. package/dist/index.es53.js.map +1 -1
  63. package/dist/index.es54.js +6 -22
  64. package/dist/index.es54.js.map +1 -1
  65. package/dist/index.es55.js +21 -19
  66. package/dist/index.es55.js.map +1 -1
  67. package/dist/index.es56.js +17 -17
  68. package/dist/index.es56.js.map +1 -1
  69. package/dist/index.es57.js +20 -4
  70. package/dist/index.es57.js.map +1 -1
  71. package/dist/index.es58.js +3 -247
  72. package/dist/index.es58.js.map +1 -1
  73. package/dist/index.es59.js +247 -24
  74. package/dist/index.es59.js.map +1 -1
  75. package/dist/index.es6.js +1 -1
  76. package/dist/index.es60.js +86 -16
  77. package/dist/index.es60.js.map +1 -1
  78. package/dist/index.es61.js +30 -0
  79. package/dist/index.es61.js.map +1 -0
  80. package/dist/index.es62.js +19 -0
  81. package/dist/index.es62.js.map +1 -0
  82. package/dist/index.es7.js +1 -1
  83. package/dist/index.es8.js +1 -1
  84. package/dist/styles.css +128 -0
  85. package/package.json +3 -2
@@ -1,30 +1,253 @@
1
- import { cva as t } from "class-variance-authority";
2
- const i = t("", {
3
- variants: {
4
- variant: {
5
- factoid: "typo_variant_factoid",
6
- h1: "typo_variant_h1",
7
- h2: "typo_variant_h2",
8
- h3: "typo_variant_h3",
9
- h4: "typo_variant_h4",
10
- h5: "typo_variant_h5",
11
- h6: "typo_variant_h6",
12
- "subtitle-1": "typo_variant_subtitle-1",
13
- "subtitle-2": "typo_variant_subtitle-2",
14
- overline: "typo_variant_overline",
15
- "lead-text": "typo_variant_lead-text",
16
- body: "typo_variant_body",
17
- "small-body": "typo_variant_small-body",
18
- caption: "typo_variant_caption",
19
- button: "typo_variant_button",
20
- link: "typo_variant_link"
1
+ import e from "react";
2
+ import B from "embla-carousel-react";
3
+ import { ChevronLeft as K, ChevronRight as L } from "lucide-react";
4
+ import { cn as s } from "./index.es54.js";
5
+ import { Slot as V } from "@radix-ui/react-slot";
6
+ import { cva as X } from "class-variance-authority";
7
+ const $ = X(
8
+ "inline-flex items-center justify-center whitespace-nowrap rounded-full typo_variant_button ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed border-none",
9
+ {
10
+ variants: {
11
+ variant: {
12
+ default: "bg-white text-navy hover:bg-navy-opacity-4",
13
+ destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/90",
14
+ outline: "border border-input bg-background hover:bg-accent hover:text-accent-foreground",
15
+ ghost: "hover:bg-accent hover:text-accent-foreground",
16
+ link: "text-primary underline-offset-4 hover:underline"
17
+ },
18
+ size: {
19
+ default: "h-10 px-4 py-2",
20
+ sm: "h-9 rounded-md px-3",
21
+ lg: "h-11 rounded-md px-8",
22
+ icon: "h-10 w-10"
23
+ }
24
+ },
25
+ defaultVariants: {
26
+ // variant: "default",
27
+ // size: "default",
21
28
  }
22
- },
23
- defaultVariants: {
24
- variant: "body"
25
29
  }
30
+ ), p = e.forwardRef(
31
+ ({ className: r, variant: o, size: l, asChild: a = !1, ...c }, u) => {
32
+ const i = a ? V : "button";
33
+ return /* @__PURE__ */ e.createElement(
34
+ i,
35
+ {
36
+ className: s($({ variant: o, size: l }), r),
37
+ ref: u,
38
+ ...c
39
+ }
40
+ );
41
+ }
42
+ );
43
+ p.displayName = "Button";
44
+ const w = e.createContext(null);
45
+ function h() {
46
+ const r = e.useContext(w);
47
+ if (!r)
48
+ throw new Error("useCarousel must be used within a <Carousel />");
49
+ return r;
50
+ }
51
+ const q = e.forwardRef(
52
+ ({
53
+ orientation: r = "horizontal",
54
+ opts: o,
55
+ setApi: l,
56
+ plugins: a,
57
+ className: c,
58
+ children: u,
59
+ hideControlsOnDesktop: i = !1,
60
+ variant: d = "default",
61
+ controlsAlign: g = "center",
62
+ progressClass: N,
63
+ ...E
64
+ }, S) => {
65
+ const [P, t] = B(
66
+ {
67
+ ...o,
68
+ axis: r === "horizontal" ? "x" : "y"
69
+ },
70
+ a
71
+ ), [k, R] = e.useState(!1), [z, _] = e.useState(!1), [I, D] = e.useState(0), m = e.useCallback(() => {
72
+ if (!t)
73
+ return;
74
+ const n = t.scrollProgress();
75
+ console.log("progress", n), D(n * 100);
76
+ }, [t]), f = e.useCallback(
77
+ (n) => {
78
+ n && (R(n.canScrollPrev()), _(n.canScrollNext()), m());
79
+ },
80
+ [m]
81
+ ), v = e.useCallback(() => {
82
+ t?.scrollPrev();
83
+ }, [t]), b = e.useCallback(() => {
84
+ t?.scrollNext();
85
+ }, [t]), j = e.useCallback(
86
+ (n) => {
87
+ n.key === "ArrowLeft" ? (n.preventDefault(), v()) : n.key === "ArrowRight" && (n.preventDefault(), b());
88
+ },
89
+ [v, b]
90
+ );
91
+ e.useEffect(() => {
92
+ !t || !l || l(t);
93
+ }, [t, l]), e.useEffect(() => {
94
+ if (t)
95
+ return f(t), t.on("reInit", f), t.on("select", f), t.on("scroll", m), () => {
96
+ t?.off("reInit", f), t?.off("select", f), t?.off("scroll", m);
97
+ };
98
+ }, [t, f, m]);
99
+ const x = s(
100
+ "relative left-auto top-auto right-auto translate-y-0 border border-solid rounded-lg bg-transparent hover:rounded-[24px] transition-all duration-200 h-10 w-10",
101
+ d === "white" ? "hover:bg-whitish border-whitish-opacity-32" : "hover:bg-navy hover:text-white border-navy-opacity-32"
102
+ );
103
+ return /* @__PURE__ */ e.createElement(
104
+ w.Provider,
105
+ {
106
+ value: {
107
+ carouselRef: P,
108
+ api: t,
109
+ opts: o,
110
+ orientation: r || (o?.axis === "y" ? "vertical" : "horizontal"),
111
+ scrollPrev: v,
112
+ scrollNext: b,
113
+ canScrollPrev: k,
114
+ canScrollNext: z
115
+ }
116
+ },
117
+ /* @__PURE__ */ e.createElement(
118
+ "div",
119
+ {
120
+ ref: S,
121
+ onKeyDownCapture: j,
122
+ className: s("relative", c),
123
+ role: "region",
124
+ "aria-roledescription": "carousel",
125
+ ...E
126
+ },
127
+ u,
128
+ /* @__PURE__ */ e.createElement(
129
+ "div",
130
+ {
131
+ className: s(
132
+ "relative w-full mt-8 rounded-full overflow-hidden",
133
+ i ? "lg:hidden" : "",
134
+ d === "white" ? "bg-whitish-opacity-16 h-0.5" : "bg-gray-300 h-0.5",
135
+ g === "center" ? "mx-auto md:max-w-2xl" : "md:max-w-xl",
136
+ N
137
+ )
138
+ },
139
+ /* @__PURE__ */ e.createElement(
140
+ "div",
141
+ {
142
+ className: s(
143
+ "absolute top-0 left-0 h-full w-full rounded-full transition-transform duration-0",
144
+ d === "white" ? "bg-whitish" : "bg-navy"
145
+ ),
146
+ style: {
147
+ transform: `translateX(${I - 100}%)`
148
+ }
149
+ }
150
+ )
151
+ ),
152
+ /* @__PURE__ */ e.createElement(
153
+ "div",
154
+ {
155
+ className: s(
156
+ "embla__controls max-w-sm mt-6 flex gap-4",
157
+ i ? "lg:hidden" : "",
158
+ g === "center" ? "mx-auto flex justify-center" : ""
159
+ )
160
+ },
161
+ /* @__PURE__ */ e.createElement("div", { className: "embla__buttons space-x-2" }, /* @__PURE__ */ e.createElement(y, { className: x }), /* @__PURE__ */ e.createElement(C, { className: x }))
162
+ )
163
+ )
164
+ );
165
+ }
166
+ );
167
+ q.displayName = "Carousel";
168
+ const F = e.forwardRef(({ className: r, ...o }, l) => {
169
+ const { carouselRef: a, orientation: c } = h();
170
+ return /* @__PURE__ */ e.createElement("div", { ref: a, className: "overflow-hidden" }, /* @__PURE__ */ e.createElement(
171
+ "div",
172
+ {
173
+ ref: l,
174
+ className: s(
175
+ "flex",
176
+ c === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
177
+ r
178
+ ),
179
+ ...o
180
+ }
181
+ ));
182
+ });
183
+ F.displayName = "CarouselContent";
184
+ const G = e.forwardRef(({ className: r, ...o }, l) => {
185
+ const { orientation: a } = h();
186
+ return /* @__PURE__ */ e.createElement(
187
+ "div",
188
+ {
189
+ ref: l,
190
+ role: "group",
191
+ "aria-roledescription": "slide",
192
+ className: s(
193
+ "min-w-0 shrink-0 grow-0 basis-full",
194
+ a === "horizontal" ? "pl-4" : "pt-4",
195
+ r
196
+ ),
197
+ ...o
198
+ }
199
+ );
200
+ });
201
+ G.displayName = "CarouselItem";
202
+ const y = e.forwardRef(({ className: r, variant: o = "outline", size: l = "icon", ...a }, c) => {
203
+ const { orientation: u, scrollPrev: i, canScrollPrev: d } = h();
204
+ return /* @__PURE__ */ e.createElement(
205
+ p,
206
+ {
207
+ ref: c,
208
+ variant: o,
209
+ size: l,
210
+ className: s(
211
+ "absolute h-8 w-8 rounded-full",
212
+ u === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
213
+ r
214
+ ),
215
+ disabled: !d,
216
+ onClick: i,
217
+ ...a
218
+ },
219
+ /* @__PURE__ */ e.createElement(K, { className: "h-5 w-5" }),
220
+ /* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "Previous slide")
221
+ );
222
+ });
223
+ y.displayName = "CarouselPrevious";
224
+ const C = e.forwardRef(({ className: r, variant: o = "outline", size: l = "icon", ...a }, c) => {
225
+ const { orientation: u, scrollNext: i, canScrollNext: d } = h();
226
+ return /* @__PURE__ */ e.createElement(
227
+ p,
228
+ {
229
+ ref: c,
230
+ variant: o,
231
+ size: l,
232
+ className: s(
233
+ "absolute h-8 w-8 rounded-full",
234
+ u === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
235
+ r
236
+ ),
237
+ disabled: !d,
238
+ onClick: i,
239
+ ...a
240
+ },
241
+ /* @__PURE__ */ e.createElement(L, { className: "h-5 w-5" }),
242
+ /* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "Next slide")
243
+ );
26
244
  });
245
+ C.displayName = "CarouselNext";
27
246
  export {
28
- i as typeVariants
247
+ q as Carousel,
248
+ F as CarouselContent,
249
+ G as CarouselItem,
250
+ C as CarouselNext,
251
+ y as CarouselPrevious
29
252
  };
30
253
  //# sourceMappingURL=index.es59.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es59.js","sources":["../src/components/core/typography/typeVariants.ts"],"sourcesContent":["import { cva } from \"class-variance-authority\";\r\n\r\nexport const typeVariants = cva(\"\", {\r\n variants: {\r\n variant: {\r\n factoid: \"typo_variant_factoid\",\r\n h1: \"typo_variant_h1\",\r\n h2: \"typo_variant_h2\",\r\n h3: \"typo_variant_h3\",\r\n h4: \"typo_variant_h4\",\r\n h5: \"typo_variant_h5\",\r\n h6: \"typo_variant_h6\",\r\n \"subtitle-1\": \"typo_variant_subtitle-1\",\r\n \"subtitle-2\": \"typo_variant_subtitle-2\",\r\n overline: \"typo_variant_overline\",\r\n \"lead-text\": \"typo_variant_lead-text\",\r\n body: \"typo_variant_body\",\r\n \"small-body\": \"typo_variant_small-body\",\r\n caption: \"typo_variant_caption\",\r\n button: \"typo_variant_button\",\r\n link: \"typo_variant_link\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"body\",\r\n },\r\n});\r\n"],"names":["typeVariants","cva"],"mappings":";AAEa,MAAAA,IAAeC,EAAI,IAAI;AAAA,EAClC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,cAAc;AAAA,MACd,cAAc;AAAA,MACd,UAAU;AAAA,MACV,aAAa;AAAA,MACb,MAAM;AAAA,MACN,cAAc;AAAA,MACd,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,EACX;AACF,CAAC;"}
1
+ {"version":3,"file":"index.es59.js","sources":["../src/components/ui/carousel.tsx"],"sourcesContent":["import React from 'react'\r\nimport useEmblaCarousel, {\r\n type UseEmblaCarouselType,\r\n} from 'embla-carousel-react'\r\nimport { ChevronLeft, ChevronRight } from 'lucide-react'\r\n\r\nimport { cn } from '@/lib/utils/cn'\r\n// import { Button } from './button'\r\n\r\n// Button here to reuse\r\nimport { Slot } from '@radix-ui/react-slot'\r\nimport { cva, type VariantProps } from 'class-variance-authority'\r\n// import { DotButton, useDotButton } from '../CarouselDotButton'\r\n\r\nconst buttonVariants = cva(\r\n 'inline-flex items-center justify-center whitespace-nowrap rounded-full typo_variant_button ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed border-none',\r\n {\r\n variants: {\r\n variant: {\r\n default: 'bg-white text-navy hover:bg-navy-opacity-4',\r\n destructive:\r\n 'bg-destructive text-destructive-foreground hover:bg-destructive/90',\r\n outline:\r\n 'border border-input bg-background hover:bg-accent hover:text-accent-foreground',\r\n ghost: 'hover:bg-accent hover:text-accent-foreground',\r\n link: 'text-primary underline-offset-4 hover:underline',\r\n },\r\n size: {\r\n default: 'h-10 px-4 py-2',\r\n sm: 'h-9 rounded-md px-3',\r\n lg: 'h-11 rounded-md px-8',\r\n icon: 'h-10 w-10',\r\n },\r\n },\r\n defaultVariants: {\r\n // variant: \"default\",\r\n // size: \"default\",\r\n },\r\n }\r\n)\r\n\r\nexport interface ButtonProps\r\n extends React.ButtonHTMLAttributes<HTMLButtonElement>,\r\n VariantProps<typeof buttonVariants> {\r\n asChild?: boolean\r\n}\r\n\r\nconst Button = React.forwardRef<HTMLButtonElement, ButtonProps>(\r\n ({ className, variant, size, asChild = false, ...props }, ref) => {\r\n const Comp = asChild ? Slot : 'button'\r\n return (\r\n <Comp\r\n className={cn(buttonVariants({ variant, size }), className)}\r\n ref={ref}\r\n {...props}\r\n />\r\n )\r\n }\r\n)\r\nButton.displayName = 'Button'\r\n\r\n// end of Button\r\n\r\ntype CarouselApi = UseEmblaCarouselType[1]\r\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>\r\ntype CarouselOptions = UseCarouselParameters[0]\r\ntype CarouselPlugin = UseCarouselParameters[1]\r\n\r\ntype CarouselProps = {\r\n opts?: CarouselOptions\r\n plugins?: CarouselPlugin\r\n orientation?: 'horizontal' | 'vertical'\r\n setApi?: (api: CarouselApi) => void\r\n}\r\n\r\ntype CarouselContextProps = {\r\n carouselRef: ReturnType<typeof useEmblaCarousel>[0]\r\n api: ReturnType<typeof useEmblaCarousel>[1]\r\n scrollPrev: () => void\r\n scrollNext: () => void\r\n canScrollPrev: boolean\r\n canScrollNext: boolean\r\n} & CarouselProps\r\n\r\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null)\r\n\r\nfunction useCarousel() {\r\n const context = React.useContext(CarouselContext)\r\n\r\n if (!context) {\r\n throw new Error('useCarousel must be used within a <Carousel />')\r\n }\r\n\r\n return context\r\n}\r\n\r\ninterface CustomProps {\r\n hideControlsOnDesktop?: boolean\r\n variant?: 'default' | 'white'\r\n controlsAlign?: 'left' | 'center'\r\n progressClass?: string\r\n}\r\n\r\nconst Carousel = React.forwardRef<\r\n HTMLDivElement,\r\n React.HTMLAttributes<HTMLDivElement> & CarouselProps & CustomProps\r\n>(\r\n (\r\n {\r\n orientation = 'horizontal',\r\n opts,\r\n setApi,\r\n plugins,\r\n className,\r\n children,\r\n hideControlsOnDesktop = false,\r\n variant = 'default',\r\n controlsAlign = 'center',\r\n progressClass,\r\n ...props\r\n },\r\n ref\r\n ) => {\r\n const [carouselRef, api] = useEmblaCarousel(\r\n {\r\n ...opts,\r\n axis: orientation === 'horizontal' ? 'x' : 'y',\r\n },\r\n plugins\r\n )\r\n const [canScrollPrev, setCanScrollPrev] = React.useState(false)\r\n const [canScrollNext, setCanScrollNext] = React.useState(false)\r\n const [scrollProgress, setScrollProgress] = React.useState(0)\r\n\r\n const onScroll = React.useCallback(() => {\r\n if (!api) return\r\n const progress = api.scrollProgress()\r\n console.log('progress', progress)\r\n setScrollProgress(progress * 100) // Convert to percentage\r\n }, [api])\r\n\r\n const onSelect = React.useCallback(\r\n (api: CarouselApi) => {\r\n if (!api) return\r\n setCanScrollPrev(api.canScrollPrev())\r\n setCanScrollNext(api.canScrollNext())\r\n onScroll() // Update scroll progress when selection changes\r\n },\r\n [onScroll]\r\n )\r\n\r\n const scrollPrev = React.useCallback(() => {\r\n api?.scrollPrev()\r\n }, [api])\r\n\r\n const scrollNext = React.useCallback(() => {\r\n api?.scrollNext()\r\n }, [api])\r\n\r\n const handleKeyDown = React.useCallback(\r\n (event: React.KeyboardEvent<HTMLDivElement>) => {\r\n if (event.key === 'ArrowLeft') {\r\n event.preventDefault()\r\n scrollPrev()\r\n } else if (event.key === 'ArrowRight') {\r\n event.preventDefault()\r\n scrollNext()\r\n }\r\n },\r\n [scrollPrev, scrollNext]\r\n )\r\n\r\n React.useEffect(() => {\r\n if (!api || !setApi) return\r\n setApi(api)\r\n }, [api, setApi])\r\n\r\n React.useEffect(() => {\r\n if (!api) return\r\n onSelect(api)\r\n api.on('reInit', onSelect)\r\n api.on('select', onSelect)\r\n api.on('scroll', onScroll) // Update on scroll events\r\n\r\n return () => {\r\n api?.off('reInit', onSelect)\r\n api?.off('select', onSelect)\r\n api?.off('scroll', onScroll)\r\n }\r\n }, [api, onSelect, onScroll])\r\n\r\n // const { selectedIndex, scrollSnaps, onDotButtonClick } = useDotButton(api)\r\n\r\n const buttonClasses = cn(\r\n 'relative left-auto top-auto right-auto translate-y-0 border border-solid rounded-lg bg-transparent hover:rounded-[24px] transition-all duration-200 h-10 w-10',\r\n variant === 'white'\r\n ? 'hover:bg-whitish border-whitish-opacity-32'\r\n : 'hover:bg-navy hover:text-white border-navy-opacity-32'\r\n )\r\n\r\n return (\r\n <CarouselContext.Provider\r\n value={{\r\n carouselRef,\r\n api: api,\r\n opts,\r\n orientation:\r\n orientation || (opts?.axis === 'y' ? 'vertical' : 'horizontal'),\r\n scrollPrev,\r\n scrollNext,\r\n canScrollPrev,\r\n canScrollNext,\r\n }}\r\n >\r\n <div\r\n ref={ref}\r\n onKeyDownCapture={handleKeyDown}\r\n className={cn('relative', className)}\r\n role=\"region\"\r\n aria-roledescription=\"carousel\"\r\n {...props}\r\n >\r\n {children}\r\n\r\n {/* Scroll Progress Indicator */}\r\n <div\r\n className={cn(\r\n 'relative w-full mt-8 rounded-full overflow-hidden',\r\n hideControlsOnDesktop ? 'lg:hidden' : '',\r\n variant === 'white'\r\n ? 'bg-whitish-opacity-16 h-0.5'\r\n : 'bg-gray-300 h-0.5',\r\n controlsAlign === 'center'\r\n ? 'mx-auto md:max-w-2xl'\r\n : 'md:max-w-xl',\r\n progressClass\r\n )}\r\n >\r\n <div\r\n className={cn(\r\n 'absolute top-0 left-0 h-full w-full rounded-full transition-transform duration-0',\r\n variant === 'white' ? 'bg-whitish' : 'bg-navy'\r\n )}\r\n style={{\r\n transform: `translateX(${scrollProgress - 100}%)`,\r\n }}\r\n ></div>\r\n </div>\r\n\r\n <div\r\n className={cn(\r\n 'embla__controls max-w-sm mt-6 flex gap-4',\r\n hideControlsOnDesktop ? 'lg:hidden' : '',\r\n controlsAlign === 'center' ? 'mx-auto flex justify-center' : ''\r\n )}\r\n >\r\n <div className=\"embla__buttons space-x-2\">\r\n <CarouselPrevious className={buttonClasses} />\r\n <CarouselNext className={buttonClasses} />\r\n </div>\r\n\r\n {/* <div className=\"embla__progress\">\r\n <div\r\n className=\"embla__progress__bar\"\r\n style={{ transform: `translate3d(${scrollProgress}%,0px,0px)` }}\r\n />\r\n </div> */}\r\n </div>\r\n\r\n {/* Dots: not used */}\r\n {/* <div className=\"embla__controls\">\r\n <div className=\"embla__buttons\">\r\n <CarouselPrevious className=\"relative left-auto top-auto right-auto translate-y-0\" />\r\n <CarouselNext className=\"relative left-auto top-auto right-auto translate-y-0\" />\r\n </div>\r\n\r\n <div className=\"embla__dots\">\r\n {scrollSnaps.map((_: unknown, index: number) => (\r\n <DotButton\r\n key={index}\r\n onClick={() => onDotButtonClick(index)}\r\n className={'embla__dot'.concat(\r\n index === selectedIndex ? ' embla__dot--selected' : ''\r\n )}\r\n />\r\n ))}\r\n </div>\r\n </div> */}\r\n </div>\r\n </CarouselContext.Provider>\r\n )\r\n }\r\n)\r\nCarousel.displayName = 'Carousel'\r\n\r\nconst CarouselContent = React.forwardRef<\r\n HTMLDivElement,\r\n React.HTMLAttributes<HTMLDivElement>\r\n>(({ className, ...props }, ref) => {\r\n const { carouselRef, orientation } = useCarousel()\r\n\r\n return (\r\n <div ref={carouselRef} className=\"overflow-hidden\">\r\n <div\r\n ref={ref}\r\n className={cn(\r\n 'flex',\r\n orientation === 'horizontal' ? '-ml-4' : '-mt-4 flex-col',\r\n className\r\n )}\r\n {...props}\r\n />\r\n </div>\r\n )\r\n})\r\nCarouselContent.displayName = 'CarouselContent'\r\n\r\nconst CarouselItem = React.forwardRef<\r\n HTMLDivElement,\r\n React.HTMLAttributes<HTMLDivElement>\r\n>(({ className, ...props }, ref) => {\r\n const { orientation } = useCarousel()\r\n\r\n return (\r\n <div\r\n ref={ref}\r\n role=\"group\"\r\n aria-roledescription=\"slide\"\r\n className={cn(\r\n 'min-w-0 shrink-0 grow-0 basis-full',\r\n orientation === 'horizontal' ? 'pl-4' : 'pt-4',\r\n className\r\n )}\r\n {...props}\r\n />\r\n )\r\n})\r\nCarouselItem.displayName = 'CarouselItem'\r\n\r\nconst CarouselPrevious = React.forwardRef<\r\n HTMLButtonElement,\r\n React.ComponentProps<typeof Button>\r\n>(({ className, variant = 'outline', size = 'icon', ...props }, ref) => {\r\n const { orientation, scrollPrev, canScrollPrev } = useCarousel()\r\n\r\n return (\r\n <Button\r\n ref={ref}\r\n variant={variant}\r\n size={size}\r\n className={cn(\r\n 'absolute h-8 w-8 rounded-full',\r\n orientation === 'horizontal'\r\n ? '-left-12 top-1/2 -translate-y-1/2'\r\n : '-top-12 left-1/2 -translate-x-1/2 rotate-90',\r\n className\r\n )}\r\n disabled={!canScrollPrev}\r\n onClick={scrollPrev}\r\n {...props}\r\n >\r\n <ChevronLeft className=\"h-5 w-5\" />\r\n <span className=\"sr-only\">Previous slide</span>\r\n </Button>\r\n )\r\n})\r\nCarouselPrevious.displayName = 'CarouselPrevious'\r\n\r\nconst CarouselNext = React.forwardRef<\r\n HTMLButtonElement,\r\n React.ComponentProps<typeof Button>\r\n>(({ className, variant = 'outline', size = 'icon', ...props }, ref) => {\r\n const { orientation, scrollNext, canScrollNext } = useCarousel()\r\n\r\n return (\r\n <Button\r\n ref={ref}\r\n variant={variant}\r\n size={size}\r\n className={cn(\r\n 'absolute h-8 w-8 rounded-full',\r\n orientation === 'horizontal'\r\n ? '-right-12 top-1/2 -translate-y-1/2'\r\n : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\r\n className\r\n )}\r\n disabled={!canScrollNext}\r\n onClick={scrollNext}\r\n {...props}\r\n >\r\n <ChevronRight className=\"h-5 w-5\" />\r\n <span className=\"sr-only\">Next slide</span>\r\n </Button>\r\n )\r\n})\r\nCarouselNext.displayName = 'CarouselNext'\r\n\r\nexport {\r\n type CarouselApi,\r\n Carousel,\r\n CarouselContent,\r\n CarouselItem,\r\n CarouselPrevious,\r\n CarouselNext,\r\n}\r\n"],"names":["buttonVariants","cva","Button","React","className","variant","size","asChild","props","ref","Comp","Slot","cn","CarouselContext","useCarousel","context","Carousel","orientation","opts","setApi","plugins","children","hideControlsOnDesktop","controlsAlign","progressClass","carouselRef","api","useEmblaCarousel","canScrollPrev","setCanScrollPrev","canScrollNext","setCanScrollNext","scrollProgress","setScrollProgress","onScroll","progress","onSelect","scrollPrev","scrollNext","handleKeyDown","event","buttonClasses","CarouselPrevious","CarouselNext","CarouselContent","CarouselItem","ChevronLeft","ChevronRight"],"mappings":";;;;;;AAcA,MAAMA,IAAiBC;AAAA,EACrB;AAAA,EACA;AAAA,IACE,UAAU;AAAA,MACR,SAAS;AAAA,QACP,SAAS;AAAA,QACT,aACE;AAAA,QACF,SACE;AAAA,QACF,OAAO;AAAA,QACP,MAAM;AAAA,MACR;AAAA,MACA,MAAM;AAAA,QACJ,SAAS;AAAA,QACT,IAAI;AAAA,QACJ,IAAI;AAAA,QACJ,MAAM;AAAA,MACR;AAAA,IACF;AAAA,IACA,iBAAiB;AAAA;AAAA;AAAA,IAGjB;AAAA,EACF;AACF,GAQMC,IAASC,EAAM;AAAA,EACnB,CAAC,EAAE,WAAAC,GAAW,SAAAC,GAAS,MAAAC,GAAM,SAAAC,IAAU,IAAO,GAAGC,EAAM,GAAGC,MAAQ;AAC1D,UAAAC,IAAOH,IAAUI,IAAO;AAE5B,WAAAR,gBAAAA,EAAA;AAAA,MAACO;AAAA,MAAA;AAAA,QACC,WAAWE,EAAGZ,EAAe,EAAE,SAAAK,GAAS,MAAAC,EAAK,CAAC,GAAGF,CAAS;AAAA,QAC1D,KAAAK;AAAA,QACC,GAAGD;AAAA,MAAA;AAAA,IAAA;AAAA,EAGV;AACF;AACAN,EAAO,cAAc;AAyBrB,MAAMW,IAAkBV,EAAM,cAA2C,IAAI;AAE7E,SAASW,IAAc;AACf,QAAAC,IAAUZ,EAAM,WAAWU,CAAe;AAEhD,MAAI,CAACE;AACG,UAAA,IAAI,MAAM,gDAAgD;AAG3D,SAAAA;AACT;AASA,MAAMC,IAAWb,EAAM;AAAA,EAIrB,CACE;AAAA,IACE,aAAAc,IAAc;AAAA,IACd,MAAAC;AAAA,IACA,QAAAC;AAAA,IACA,SAAAC;AAAA,IACA,WAAAhB;AAAA,IACA,UAAAi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AAA,QACJb;AAAA,MACF;AAAA,MACA,UAAU,CAAC0B;AAAA,MACX,SAASQ;AAAA,MACR,GAAG9B;AAAA,IAAA;AAAA,IAEJL,gBAAAA,EAAA,cAAC4C,GAAa,EAAA,WAAU,UAAU,CAAA;AAAA,IACjC5C,gBAAAA,EAAA,cAAA,QAAA,EAAK,WAAU,UAAA,GAAU,YAAU;AAAA,EAAA;AAG1C,CAAC;AACDwC,EAAa,cAAc;"}
package/dist/index.es6.js CHANGED
@@ -2,7 +2,7 @@ import e from "react";
2
2
  import { Button as m } from "./index.es2.js";
3
3
  import { LessLink16X16 as d, MoreLink16X16 as f, ArrowLinkRight16X16 as h } from "@iit/precision-ui-icons";
4
4
  import { cva as i } from "class-variance-authority";
5
- import { cn as n } from "./index.es53.js";
5
+ import { cn as n } from "./index.es54.js";
6
6
  import { ArrowDownToLine as p } from "lucide-react";
7
7
  import { getAdapter as g } from "./index.es9.js";
8
8
  const w = i("bg-link-gradient-container hover:cursor-pointer", {
@@ -1,19 +1,89 @@
1
- import t from "react";
2
- import a from "./index.es46.js";
3
- import { getAdapter as o } from "./index.es9.js";
4
- import i from "./index.es57.js";
5
- const l = ({ title: e, href: r }) => {
6
- const m = o("LinkWrapper");
7
- return r ? /* @__PURE__ */ t.createElement(a, { variant: "small-body", className: "text-whitish-opacity-32" }, /* @__PURE__ */ t.createElement(
8
- m,
9
- {
10
- href: r,
11
- className: "breadcrumb hover:text-whitish-opacity-60 duration-200"
12
- },
13
- i(e, 55)
14
- )) : /* @__PURE__ */ t.createElement(a, { variant: "link", className: "text-whitish breadcrumb" }, i(e, 55));
15
- };
1
+ import * as e from "react";
2
+ import { Command as a } from "cmdk";
3
+ import { Search as d } from "lucide-react";
4
+ import { cn as m } from "./index.es54.js";
5
+ const n = e.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ e.createElement(
6
+ a,
7
+ {
8
+ ref: o,
9
+ className: m(
10
+ "flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",
11
+ t
12
+ ),
13
+ ...r
14
+ }
15
+ ));
16
+ n.displayName = a.displayName;
17
+ const s = e.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ e.createElement("div", { className: "flex items-center border-b px-3", "cmdk-input-wrapper": "" }, /* @__PURE__ */ e.createElement(d, { className: "mr-2 h-4 w-4 shrink-0 opacity-50" }), /* @__PURE__ */ e.createElement(
18
+ a.Input,
19
+ {
20
+ ref: o,
21
+ className: m(
22
+ "flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",
23
+ t
24
+ ),
25
+ ...r
26
+ }
27
+ )));
28
+ s.displayName = a.Input.displayName;
29
+ const l = e.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ e.createElement(
30
+ a.List,
31
+ {
32
+ ref: o,
33
+ className: m("", t),
34
+ ...r
35
+ }
36
+ ));
37
+ l.displayName = a.List.displayName;
38
+ const p = e.forwardRef((t, r) => /* @__PURE__ */ e.createElement(
39
+ a.Empty,
40
+ {
41
+ ref: r,
42
+ className: "py-6 text-center text-sm",
43
+ ...t
44
+ }
45
+ ));
46
+ p.displayName = a.Empty.displayName;
47
+ const c = e.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ e.createElement(
48
+ a.Group,
49
+ {
50
+ ref: o,
51
+ className: m(
52
+ "overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",
53
+ t
54
+ ),
55
+ ...r
56
+ }
57
+ ));
58
+ c.displayName = a.Group.displayName;
59
+ const i = e.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ e.createElement(
60
+ a.Separator,
61
+ {
62
+ ref: o,
63
+ className: m("-mx-1 h-px bg-border", t),
64
+ ...r
65
+ }
66
+ ));
67
+ i.displayName = a.Separator.displayName;
68
+ const f = e.forwardRef(({ className: t, ...r }, o) => /* @__PURE__ */ e.createElement(
69
+ a.Item,
70
+ {
71
+ ref: o,
72
+ className: m(
73
+ "relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
74
+ t
75
+ ),
76
+ ...r
77
+ }
78
+ ));
79
+ f.displayName = a.Item.displayName;
16
80
  export {
17
- l as default
81
+ n as Command,
82
+ p as CommandEmpty,
83
+ c as CommandGroup,
84
+ s as CommandInput,
85
+ f as CommandItem,
86
+ l as CommandList,
87
+ i as CommandSeparator
18
88
  };
19
89
  //# sourceMappingURL=index.es60.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.es60.js","sources":["../src/components/breadcrumbs/Breadcrumb.tsx"],"sourcesContent":["import React from 'react'\r\nimport Text from '../core/typography/Text'\r\nimport { getAdapter } from '@/Adapters'\r\nimport truncateText from '@/lib/utils/truncateText'\r\n\r\nexport interface BreadcrumbProps {\r\n title: string\r\n href?: string\r\n}\r\n\r\nconst Breadcrumb: React.FC<BreadcrumbProps> = ({ title, href }) => {\r\n const LinkWrapper = getAdapter('LinkWrapper')\r\n\r\n if (!href)\r\n return (\r\n <Text variant=\"link\" className=\"text-whitish breadcrumb\">\r\n {truncateText(title, 55)}\r\n </Text>\r\n )\r\n\r\n return (\r\n <Text variant=\"small-body\" className=\"text-whitish-opacity-32\">\r\n <LinkWrapper\r\n href={href}\r\n className=\"breadcrumb hover:text-whitish-opacity-60 duration-200\"\r\n >\r\n {truncateText(title, 55)}\r\n </LinkWrapper>\r\n </Text>\r\n )\r\n}\r\n\r\nexport default Breadcrumb\r\n"],"names":["Breadcrumb","title","href","LinkWrapper","getAdapter","React","Text","truncateText"],"mappings":";;;;AAUA,MAAMA,IAAwC,CAAC,EAAE,OAAAC,GAAO,MAAAC,QAAW;AAC3D,QAAAC,IAAcC,EAAW,aAAa;AAE5C,SAAKF,IAQFG,gBAAAA,EAAA,cAAAC,GAAA,EAAK,SAAQ,cAAa,WAAU,6BACnCD,gBAAAA,EAAA;AAAA,IAACF;AAAA,IAAA;AAAA,MACC,MAAAD;AAAA,MACA,WAAU;AAAA,IAAA;AAAA,IAETK,EAAaN,GAAO,EAAE;AAAA,EAAA,CAE3B,IAbEI,gBAAAA,EAAA,cAACC,KAAK,SAAQ,QAAO,WAAU,0BAC5B,GAAAC,EAAaN,GAAO,EAAE,CACzB;AAaN;"}
1
+ {"version":3,"file":"index.es60.js","sources":["../src/components/ui/command.tsx"],"sourcesContent":["import * as React from 'react'\nimport { type DialogProps } from '@radix-ui/react-dialog'\nimport { Command as CommandPrimitive } from 'cmdk'\nimport { Search } from 'lucide-react'\n\nimport { cn } from '@/lib/utils/cn'\nimport { Dialog, DialogContent } from '@/components/ui/dialog'\n\nconst Command = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive\n ref={ref}\n className={cn(\n 'flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground',\n className\n )}\n {...props}\n />\n))\nCommand.displayName = CommandPrimitive.displayName\n\nconst CommandDialog = ({ children, ...props }: DialogProps) => {\n return (\n <Dialog {...props}>\n <DialogContent className=\"overflow-hidden p-0 shadow-lg\">\n <Command className=\"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5\">\n {children}\n </Command>\n </DialogContent>\n </Dialog>\n )\n}\n\nconst CommandInput = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Input>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Input>\n>(({ className, ...props }, ref) => (\n <div className=\"flex items-center border-b px-3\" cmdk-input-wrapper=\"\">\n <Search className=\"mr-2 h-4 w-4 shrink-0 opacity-50\" />\n <CommandPrimitive.Input\n ref={ref}\n className={cn(\n 'flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n />\n </div>\n))\n\nCommandInput.displayName = CommandPrimitive.Input.displayName\n\nconst CommandList = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.List>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.List>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.List\n ref={ref}\n // className={cn('max-h-[300px] overflow-y-auto overflow-x-hidden', className)}\n className={cn('', className)}\n {...props}\n />\n))\n\nCommandList.displayName = CommandPrimitive.List.displayName\n\nconst CommandEmpty = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Empty>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Empty>\n>((props, ref) => (\n <CommandPrimitive.Empty\n ref={ref}\n className=\"py-6 text-center text-sm\"\n {...props}\n />\n))\n\nCommandEmpty.displayName = CommandPrimitive.Empty.displayName\n\nconst CommandGroup = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Group>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Group>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Group\n ref={ref}\n className={cn(\n 'overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground',\n className\n )}\n {...props}\n />\n))\n\nCommandGroup.displayName = CommandPrimitive.Group.displayName\n\nconst CommandSeparator = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Separator>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Separator>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Separator\n ref={ref}\n className={cn('-mx-1 h-px bg-border', className)}\n {...props}\n />\n))\nCommandSeparator.displayName = CommandPrimitive.Separator.displayName\n\nconst CommandItem = React.forwardRef<\n React.ElementRef<typeof CommandPrimitive.Item>,\n React.ComponentPropsWithoutRef<typeof CommandPrimitive.Item>\n>(({ className, ...props }, ref) => (\n <CommandPrimitive.Item\n ref={ref}\n className={cn(\n \"relative flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0\",\n className\n )}\n {...props}\n />\n))\n\nCommandItem.displayName = CommandPrimitive.Item.displayName\n\nconst CommandShortcut = ({\n className,\n ...props\n}: React.HTMLAttributes<HTMLSpanElement>) => {\n return (\n <span\n className={cn(\n 'ml-auto text-xs tracking-widest text-muted-foreground',\n className\n )}\n {...props}\n />\n )\n}\nCommandShortcut.displayName = 'CommandShortcut'\n\nexport {\n Command,\n CommandDialog,\n CommandInput,\n CommandList,\n CommandEmpty,\n CommandGroup,\n CommandItem,\n CommandShortcut,\n CommandSeparator,\n}\n"],"names":["Command","React","className","props","ref","CommandPrimitive","cn","CommandInput","Search","CommandList","CommandEmpty","CommandGroup","CommandSeparator","CommandItem"],"mappings":";;;;AAQM,MAAAA,IAAUC,EAAM,WAGpB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAACI;AAAAA,EAAA;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IACF;AAAA,I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GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAACI,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE,EAAG,wBAAwBJ,CAAS;AAAA,IAC9C,GAAGC;AAAA,EAAA;AACN,CACD;AACDS,EAAiB,cAAcP,EAAiB,UAAU;AAEpD,MAAAQ,IAAcZ,EAAM,WAGxB,CAAC,EAAE,WAAAC,GAAW,GAAGC,EAAM,GAAGC,MAC1B,gBAAAH,EAAA;AAAA,EAACI,EAAiB;AAAA,EAAjB;AAAA,IACC,KAAAD;AAAA,IACA,WAAWE;AAAA,MACT;AAAA,MACAJ;AAAA,IACF;AAAA,IACC,GAAGC;AAAA,EAAA;AACN,CACD;AAEDU,EAAY,cAAcR,EAAiB,KAAK;"}
@@ -0,0 +1,30 @@
1
+ import { cva as t } from "class-variance-authority";
2
+ const i = t("", {
3
+ variants: {
4
+ variant: {
5
+ factoid: "typo_variant_factoid",
6
+ h1: "typo_variant_h1",
7
+ h2: "typo_variant_h2",
8
+ h3: "typo_variant_h3",
9
+ h4: "typo_variant_h4",
10
+ h5: "typo_variant_h5",
11
+ h6: "typo_variant_h6",
12
+ "subtitle-1": "typo_variant_subtitle-1",
13
+ "subtitle-2": "typo_variant_subtitle-2",
14
+ overline: "typo_variant_overline",
15
+ "lead-text": "typo_variant_lead-text",
16
+ body: "typo_variant_body",
17
+ "small-body": "typo_variant_small-body",
18
+ caption: "typo_variant_caption",
19
+ button: "typo_variant_button",
20
+ link: "typo_variant_link"
21
+ }
22
+ },
23
+ defaultVariants: {
24
+ variant: "body"
25
+ }
26
+ });
27
+ export {
28
+ i as typeVariants
29
+ };
30
+ //# sourceMappingURL=index.es61.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es61.js","sources":["../src/components/core/typography/typeVariants.ts"],"sourcesContent":["import { cva } from \"class-variance-authority\";\r\n\r\nexport const typeVariants = cva(\"\", {\r\n variants: {\r\n variant: {\r\n factoid: \"typo_variant_factoid\",\r\n h1: \"typo_variant_h1\",\r\n h2: \"typo_variant_h2\",\r\n h3: \"typo_variant_h3\",\r\n h4: \"typo_variant_h4\",\r\n h5: \"typo_variant_h5\",\r\n h6: \"typo_variant_h6\",\r\n \"subtitle-1\": \"typo_variant_subtitle-1\",\r\n \"subtitle-2\": \"typo_variant_subtitle-2\",\r\n overline: \"typo_variant_overline\",\r\n \"lead-text\": \"typo_variant_lead-text\",\r\n body: \"typo_variant_body\",\r\n \"small-body\": \"typo_variant_small-body\",\r\n caption: \"typo_variant_caption\",\r\n button: \"typo_variant_button\",\r\n link: \"typo_variant_link\",\r\n },\r\n },\r\n defaultVariants: {\r\n variant: \"body\",\r\n },\r\n});\r\n"],"names":["typeVariants","cva"],"mappings":";AAEa,MAAAA,IAAeC,EAAI,IAAI;AAAA,EAClC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAAS;AAAA,MACT,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,cAAc;AAAA,MACd,cAAc;AAAA,MACd,UAAU;AAAA,MACV,aAAa;AAAA,MACb,MAAM;AAAA,MACN,cAAc;AAAA,MACd,SAAS;AAAA,MACT,QAAQ;AAAA,MACR,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,EACX;AACF,CAAC;"}
@@ -0,0 +1,19 @@
1
+ import t from "react";
2
+ import a from "./index.es47.js";
3
+ import { getAdapter as o } from "./index.es9.js";
4
+ import i from "./index.es58.js";
5
+ const l = ({ title: e, href: r }) => {
6
+ const m = o("LinkWrapper");
7
+ return r ? /* @__PURE__ */ t.createElement(a, { variant: "small-body", className: "text-whitish-opacity-32" }, /* @__PURE__ */ t.createElement(
8
+ m,
9
+ {
10
+ href: r,
11
+ className: "breadcrumb hover:text-whitish-opacity-60 duration-200"
12
+ },
13
+ i(e, 55)
14
+ )) : /* @__PURE__ */ t.createElement(a, { variant: "link", className: "text-whitish breadcrumb" }, i(e, 55));
15
+ };
16
+ export {
17
+ l as default
18
+ };
19
+ //# sourceMappingURL=index.es62.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.es62.js","sources":["../src/components/breadcrumbs/Breadcrumb.tsx"],"sourcesContent":["import React from 'react'\r\nimport Text from '../core/typography/Text'\r\nimport { getAdapter } from '@/Adapters'\r\nimport truncateText from '@/lib/utils/truncateText'\r\n\r\nexport interface BreadcrumbProps {\r\n title: string\r\n href?: string\r\n}\r\n\r\nconst Breadcrumb: React.FC<BreadcrumbProps> = ({ title, href }) => {\r\n const LinkWrapper = getAdapter('LinkWrapper')\r\n\r\n if (!href)\r\n return (\r\n <Text variant=\"link\" className=\"text-whitish breadcrumb\">\r\n {truncateText(title, 55)}\r\n </Text>\r\n )\r\n\r\n return (\r\n <Text variant=\"small-body\" className=\"text-whitish-opacity-32\">\r\n <LinkWrapper\r\n href={href}\r\n className=\"breadcrumb hover:text-whitish-opacity-60 duration-200\"\r\n >\r\n {truncateText(title, 55)}\r\n </LinkWrapper>\r\n </Text>\r\n )\r\n}\r\n\r\nexport default Breadcrumb\r\n"],"names":["Breadcrumb","title","href","LinkWrapper","getAdapter","React","Text","truncateText"],"mappings":";;;;AAUA,MAAMA,IAAwC,CAAC,EAAE,OAAAC,GAAO,MAAAC,QAAW;AAC3D,QAAAC,IAAcC,EAAW,aAAa;AAE5C,SAAKF,IAQFG,gBAAAA,EAAA,cAAAC,GAAA,EAAK,SAAQ,cAAa,WAAU,6BACnCD,gBAAAA,EAAA;AAAA,IAACF;AAAA,IAAA;AAAA,MACC,MAAAD;AAAA,MACA,WAAU;AAAA,IAAA;AAAA,IAETK,EAAaN,GAAO,EAAE;AAAA,EAAA,CAE3B,IAbEI,gBAAAA,EAAA,cAACC,KAAK,SAAQ,QAAO,WAAU,0BAC5B,GAAAC,EAAaN,GAAO,EAAE,CACzB;AAaN;"}
package/dist/index.es7.js CHANGED
@@ -2,7 +2,7 @@ import t from "react";
2
2
  import { Button as s } from "./index.es2.js";
3
3
  import { ServicesModal16X16 as u, Login16X16 as c } from "@iit/precision-ui-icons";
4
4
  import { cva as i } from "class-variance-authority";
5
- import { cn as n } from "./index.es53.js";
5
+ import { cn as n } from "./index.es54.js";
6
6
  const m = i("bg-link-gradient-container group cursor-pointer", {
7
7
  variants: {
8
8
  variant: {
package/dist/index.es8.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import l from "react";
2
2
  import { cva as s } from "class-variance-authority";
3
- import { cn as c } from "./index.es53.js";
3
+ import { cn as c } from "./index.es54.js";
4
4
  import { getAdapter as v } from "./index.es9.js";
5
5
  const f = s("duration-200 transition-colors", {
6
6
  variants: {