@iit/precision-ui 0.7.2 → 0.7.3
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/components/cards/License.d.ts.map +1 -1
- package/dist/components/ui/carousel.d.ts +2 -1
- package/dist/components/ui/carousel.d.ts.map +1 -1
- package/dist/decorators/CarouselWrapper.d.ts +2 -1
- package/dist/decorators/CarouselWrapper.d.ts.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.es.js +51 -49
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es14.js +1 -1
- package/dist/index.es15.js +1 -1
- package/dist/index.es17.js +1 -1
- package/dist/index.es18.js +2 -2
- package/dist/index.es2.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es21.js +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es23.js +2 -2
- package/dist/index.es24.js +3 -3
- package/dist/index.es25.js +3 -3
- package/dist/index.es26.js +3 -3
- package/dist/index.es27.js +1 -1
- package/dist/index.es28.js +1 -1
- package/dist/index.es29.js +3 -3
- package/dist/index.es3.js +2 -2
- package/dist/index.es30.js +10 -9
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es31.js +3 -3
- package/dist/index.es32.js +3 -3
- package/dist/index.es33.js +3 -3
- package/dist/index.es34.js +3 -3
- package/dist/index.es35.js +1 -1
- package/dist/index.es36.js +1 -1
- package/dist/index.es37.js +1 -1
- package/dist/index.es38.js +2 -2
- package/dist/index.es39.js +2 -2
- package/dist/index.es4.js +1 -1
- package/dist/index.es40.js +4 -4
- package/dist/index.es41.js +2 -2
- package/dist/index.es42.js +3 -3
- package/dist/index.es44.js +47 -18
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js +10 -9
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js +19 -91
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js +90 -89
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js +82 -25
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js +27 -71
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es5.js +1 -1
- package/dist/index.es50.js +70 -36
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js +42 -10
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js +11 -6
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js +6 -22
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js +21 -19
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js +17 -17
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js +20 -47
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js +4 -27
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js +246 -14
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js +24 -239
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es60.js +16 -4
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es7.js +1 -1
- package/dist/index.es8.js +1 -1
- package/package.json +1 -1
package/dist/index.es59.js
CHANGED
|
@@ -1,245 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
lg: "h-11 rounded-md px-8",
|
|
22
|
-
icon: "h-10 w-10"
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
defaultVariants: {
|
|
26
|
-
// variant: "default",
|
|
27
|
-
// size: "default",
|
|
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"
|
|
28
21
|
}
|
|
22
|
+
},
|
|
23
|
+
defaultVariants: {
|
|
24
|
+
variant: "body"
|
|
29
25
|
}
|
|
30
|
-
), g = e.forwardRef(
|
|
31
|
-
({ className: r, variant: o, size: l, asChild: a = !1, ...s }, u) => {
|
|
32
|
-
const c = a ? K : "button";
|
|
33
|
-
return /* @__PURE__ */ e.createElement(
|
|
34
|
-
c,
|
|
35
|
-
{
|
|
36
|
-
className: i(V({ variant: o, size: l }), r),
|
|
37
|
-
ref: u,
|
|
38
|
-
...s
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
);
|
|
43
|
-
g.displayName = "Button";
|
|
44
|
-
const x = e.createContext(null);
|
|
45
|
-
function h() {
|
|
46
|
-
const r = e.useContext(x);
|
|
47
|
-
if (!r)
|
|
48
|
-
throw new Error("useCarousel must be used within a <Carousel />");
|
|
49
|
-
return r;
|
|
50
|
-
}
|
|
51
|
-
const $ = e.forwardRef(
|
|
52
|
-
({
|
|
53
|
-
orientation: r = "horizontal",
|
|
54
|
-
opts: o,
|
|
55
|
-
setApi: l,
|
|
56
|
-
plugins: a,
|
|
57
|
-
className: s,
|
|
58
|
-
children: u,
|
|
59
|
-
hideControlsOnDesktop: c = !1,
|
|
60
|
-
variant: d = "default",
|
|
61
|
-
...C
|
|
62
|
-
}, N) => {
|
|
63
|
-
const [E, t] = D(
|
|
64
|
-
{
|
|
65
|
-
...o,
|
|
66
|
-
axis: r === "horizontal" ? "x" : "y"
|
|
67
|
-
},
|
|
68
|
-
a
|
|
69
|
-
), [S, P] = e.useState(!1), [k, R] = e.useState(!1), [z, _] = e.useState(0), m = e.useCallback(() => {
|
|
70
|
-
if (!t)
|
|
71
|
-
return;
|
|
72
|
-
const n = t.scrollProgress();
|
|
73
|
-
console.log("progress", n), _(n * 100);
|
|
74
|
-
}, [t]), f = e.useCallback(
|
|
75
|
-
(n) => {
|
|
76
|
-
n && (P(n.canScrollPrev()), R(n.canScrollNext()), m());
|
|
77
|
-
},
|
|
78
|
-
[m]
|
|
79
|
-
), v = e.useCallback(() => {
|
|
80
|
-
t?.scrollPrev();
|
|
81
|
-
}, [t]), b = e.useCallback(() => {
|
|
82
|
-
t?.scrollNext();
|
|
83
|
-
}, [t]), I = e.useCallback(
|
|
84
|
-
(n) => {
|
|
85
|
-
n.key === "ArrowLeft" ? (n.preventDefault(), v()) : n.key === "ArrowRight" && (n.preventDefault(), b());
|
|
86
|
-
},
|
|
87
|
-
[v, b]
|
|
88
|
-
);
|
|
89
|
-
e.useEffect(() => {
|
|
90
|
-
!t || !l || l(t);
|
|
91
|
-
}, [t, l]), e.useEffect(() => {
|
|
92
|
-
if (t)
|
|
93
|
-
return f(t), t.on("reInit", f), t.on("select", f), t.on("scroll", m), () => {
|
|
94
|
-
t?.off("reInit", f), t?.off("select", f), t?.off("scroll", m);
|
|
95
|
-
};
|
|
96
|
-
}, [t, f, m]);
|
|
97
|
-
const p = i(
|
|
98
|
-
"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",
|
|
99
|
-
d === "white" ? "hover:bg-whitish border-whitish-opacity-32" : "hover:bg-navy hover:text-white border-navy-opacity-32"
|
|
100
|
-
);
|
|
101
|
-
return /* @__PURE__ */ e.createElement(
|
|
102
|
-
x.Provider,
|
|
103
|
-
{
|
|
104
|
-
value: {
|
|
105
|
-
carouselRef: E,
|
|
106
|
-
api: t,
|
|
107
|
-
opts: o,
|
|
108
|
-
orientation: r || (o?.axis === "y" ? "vertical" : "horizontal"),
|
|
109
|
-
scrollPrev: v,
|
|
110
|
-
scrollNext: b,
|
|
111
|
-
canScrollPrev: S,
|
|
112
|
-
canScrollNext: k
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
/* @__PURE__ */ e.createElement(
|
|
116
|
-
"div",
|
|
117
|
-
{
|
|
118
|
-
ref: N,
|
|
119
|
-
onKeyDownCapture: I,
|
|
120
|
-
className: i("relative", s),
|
|
121
|
-
role: "region",
|
|
122
|
-
"aria-roledescription": "carousel",
|
|
123
|
-
...C
|
|
124
|
-
},
|
|
125
|
-
u,
|
|
126
|
-
/* @__PURE__ */ e.createElement(
|
|
127
|
-
"div",
|
|
128
|
-
{
|
|
129
|
-
className: i(
|
|
130
|
-
"relative w-full mt-8 rounded-full overflow-hidden md:max-w-2xl mx-auto",
|
|
131
|
-
c ? "lg:hidden" : "",
|
|
132
|
-
d === "white" ? "bg-whitish-opacity-16 h-0.5" : "bg-gray-300 h-0.5"
|
|
133
|
-
)
|
|
134
|
-
},
|
|
135
|
-
/* @__PURE__ */ e.createElement(
|
|
136
|
-
"div",
|
|
137
|
-
{
|
|
138
|
-
className: i(
|
|
139
|
-
"absolute top-0 left-0 h-full w-full rounded-full transition-transform duration-0",
|
|
140
|
-
d === "white" ? "bg-whitish" : "bg-navy"
|
|
141
|
-
),
|
|
142
|
-
style: {
|
|
143
|
-
transform: `translateX(${z - 100}%)`
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
)
|
|
147
|
-
),
|
|
148
|
-
/* @__PURE__ */ e.createElement(
|
|
149
|
-
"div",
|
|
150
|
-
{
|
|
151
|
-
className: `embla__controls max-w-sm mx-auto mt-6 flex justify-center gap-4 ${c ? "lg:hidden" : ""}`
|
|
152
|
-
},
|
|
153
|
-
/* @__PURE__ */ e.createElement("div", { className: "embla__buttons space-x-2" }, /* @__PURE__ */ e.createElement(w, { className: p }), /* @__PURE__ */ e.createElement(y, { className: p }))
|
|
154
|
-
)
|
|
155
|
-
)
|
|
156
|
-
);
|
|
157
|
-
}
|
|
158
|
-
);
|
|
159
|
-
$.displayName = "Carousel";
|
|
160
|
-
const X = e.forwardRef(({ className: r, ...o }, l) => {
|
|
161
|
-
const { carouselRef: a, orientation: s } = h();
|
|
162
|
-
return /* @__PURE__ */ e.createElement("div", { ref: a, className: "overflow-hidden" }, /* @__PURE__ */ e.createElement(
|
|
163
|
-
"div",
|
|
164
|
-
{
|
|
165
|
-
ref: l,
|
|
166
|
-
className: i(
|
|
167
|
-
"flex",
|
|
168
|
-
s === "horizontal" ? "-ml-4" : "-mt-4 flex-col",
|
|
169
|
-
r
|
|
170
|
-
),
|
|
171
|
-
...o
|
|
172
|
-
}
|
|
173
|
-
));
|
|
174
|
-
});
|
|
175
|
-
X.displayName = "CarouselContent";
|
|
176
|
-
const q = e.forwardRef(({ className: r, ...o }, l) => {
|
|
177
|
-
const { orientation: a } = h();
|
|
178
|
-
return /* @__PURE__ */ e.createElement(
|
|
179
|
-
"div",
|
|
180
|
-
{
|
|
181
|
-
ref: l,
|
|
182
|
-
role: "group",
|
|
183
|
-
"aria-roledescription": "slide",
|
|
184
|
-
className: i(
|
|
185
|
-
"min-w-0 shrink-0 grow-0 basis-full",
|
|
186
|
-
a === "horizontal" ? "pl-4" : "pt-4",
|
|
187
|
-
r
|
|
188
|
-
),
|
|
189
|
-
...o
|
|
190
|
-
}
|
|
191
|
-
);
|
|
192
|
-
});
|
|
193
|
-
q.displayName = "CarouselItem";
|
|
194
|
-
const w = e.forwardRef(({ className: r, variant: o = "outline", size: l = "icon", ...a }, s) => {
|
|
195
|
-
const { orientation: u, scrollPrev: c, canScrollPrev: d } = h();
|
|
196
|
-
return /* @__PURE__ */ e.createElement(
|
|
197
|
-
g,
|
|
198
|
-
{
|
|
199
|
-
ref: s,
|
|
200
|
-
variant: o,
|
|
201
|
-
size: l,
|
|
202
|
-
className: i(
|
|
203
|
-
"absolute h-8 w-8 rounded-full",
|
|
204
|
-
u === "horizontal" ? "-left-12 top-1/2 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
205
|
-
r
|
|
206
|
-
),
|
|
207
|
-
disabled: !d,
|
|
208
|
-
onClick: c,
|
|
209
|
-
...a
|
|
210
|
-
},
|
|
211
|
-
/* @__PURE__ */ e.createElement(j, { className: "h-5 w-5" }),
|
|
212
|
-
/* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "Previous slide")
|
|
213
|
-
);
|
|
214
|
-
});
|
|
215
|
-
w.displayName = "CarouselPrevious";
|
|
216
|
-
const y = e.forwardRef(({ className: r, variant: o = "outline", size: l = "icon", ...a }, s) => {
|
|
217
|
-
const { orientation: u, scrollNext: c, canScrollNext: d } = h();
|
|
218
|
-
return /* @__PURE__ */ e.createElement(
|
|
219
|
-
g,
|
|
220
|
-
{
|
|
221
|
-
ref: s,
|
|
222
|
-
variant: o,
|
|
223
|
-
size: l,
|
|
224
|
-
className: i(
|
|
225
|
-
"absolute h-8 w-8 rounded-full",
|
|
226
|
-
u === "horizontal" ? "-right-12 top-1/2 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
227
|
-
r
|
|
228
|
-
),
|
|
229
|
-
disabled: !d,
|
|
230
|
-
onClick: c,
|
|
231
|
-
...a
|
|
232
|
-
},
|
|
233
|
-
/* @__PURE__ */ e.createElement(B, { className: "h-5 w-5" }),
|
|
234
|
-
/* @__PURE__ */ e.createElement("span", { className: "sr-only" }, "Next slide")
|
|
235
|
-
);
|
|
236
26
|
});
|
|
237
|
-
y.displayName = "CarouselNext";
|
|
238
27
|
export {
|
|
239
|
-
|
|
240
|
-
X as CarouselContent,
|
|
241
|
-
q as CarouselItem,
|
|
242
|
-
y as CarouselNext,
|
|
243
|
-
w as CarouselPrevious
|
|
28
|
+
i as typeVariants
|
|
244
29
|
};
|
|
245
30
|
//# sourceMappingURL=index.es59.js.map
|
package/dist/index.es59.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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\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}\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 ...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 md:max-w-2xl mx-auto\",\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 )}\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={`embla__controls max-w-sm mx-auto mt-6 flex justify-center gap-4 ${\r\n hideControlsOnDesktop ? 'lg:hidden' : ''\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((_, index) => (\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","carouselRef","api","useEmblaCarousel","canScrollPrev","setCanScrollPrev","canScrollNext","setCanScrollNext","scrollProgress","setScrollProgress","onScroll","progress","onSelect","scrollPrev","scrollNext","handleKeyDown","event","buttonClasses","CarouselPrevious","CarouselNext","CarouselContent","CarouselItem","ChevronLeft","ChevronRight"],"mappings":";;;;;;AAaA,MAAMA,IAAiB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.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;"}
|
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.
|
|
5
|
+
import { cn as n } from "./index.es53.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", {
|
package/dist/index.es60.js
CHANGED
|
@@ -1,7 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
}
|
|
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
|
+
};
|
|
4
16
|
export {
|
|
5
|
-
|
|
17
|
+
l as default
|
|
6
18
|
};
|
|
7
19
|
//# sourceMappingURL=index.es60.js.map
|
package/dist/index.es60.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es60.js","sources":["../src/
|
|
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;"}
|
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.
|
|
5
|
+
import { cn as n } from "./index.es53.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.
|
|
3
|
+
import { cn as c } from "./index.es53.js";
|
|
4
4
|
import { getAdapter as v } from "./index.es9.js";
|
|
5
5
|
const f = s("duration-200 transition-colors", {
|
|
6
6
|
variants: {
|