@popgrids/ui 0.0.28 → 0.0.30
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/banner-notification.cjs.map +1 -1
- package/dist/banner-notification.js.map +1 -1
- package/dist/button-link.cjs +10 -4
- package/dist/button-link.cjs.map +1 -1
- package/dist/button-link.d.cts +8 -4
- package/dist/button-link.d.ts +8 -4
- package/dist/button-link.js +10 -4
- package/dist/button-link.js.map +1 -1
- package/dist/button.cjs +63 -25
- package/dist/button.cjs.map +1 -1
- package/dist/button.d.cts +2 -2
- package/dist/button.d.ts +2 -2
- package/dist/button.js +63 -25
- package/dist/button.js.map +1 -1
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.cjs.map +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/checkbox.js.map +1 -1
- package/dist/content-block.cjs +4 -4
- package/dist/content-block.cjs.map +1 -1
- package/dist/content-block.js +5 -5
- package/dist/content-block.js.map +1 -1
- package/dist/default-header.cjs +59 -0
- package/dist/default-header.cjs.map +1 -0
- package/dist/default-header.d.cts +19 -0
- package/dist/default-header.d.ts +19 -0
- package/dist/default-header.js +57 -0
- package/dist/default-header.js.map +1 -0
- package/dist/dialog.cjs +81 -47
- package/dist/dialog.cjs.map +1 -1
- package/dist/dialog.js +81 -47
- package/dist/dialog.js.map +1 -1
- package/dist/dropdown-menu-B_GCzleM.d.cts +32 -0
- package/dist/dropdown-menu-B_GCzleM.d.ts +32 -0
- package/dist/dropdown-menu.cjs +17 -32
- package/dist/dropdown-menu.cjs.map +1 -1
- package/dist/dropdown-menu.d.cts +43 -29
- package/dist/dropdown-menu.d.ts +43 -29
- package/dist/dropdown-menu.js +17 -32
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/footer.cjs +35 -155
- package/dist/footer.cjs.map +1 -1
- package/dist/footer.d.cts +7 -6
- package/dist/footer.d.ts +7 -6
- package/dist/footer.js +36 -156
- package/dist/footer.js.map +1 -1
- package/dist/index.cjs +695 -310
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +686 -311
- package/dist/index.js.map +1 -1
- package/dist/input-group.cjs +182 -0
- package/dist/input-group.cjs.map +1 -0
- package/dist/input-group.d.cts +42 -0
- package/dist/input-group.d.ts +42 -0
- package/dist/input-group.js +175 -0
- package/dist/input-group.js.map +1 -0
- package/dist/input.cjs +3 -3
- package/dist/input.cjs.map +1 -1
- package/dist/input.js +3 -3
- package/dist/input.js.map +1 -1
- package/dist/label.cjs +1 -1
- package/dist/label.cjs.map +1 -1
- package/dist/label.js +1 -1
- package/dist/label.js.map +1 -1
- package/dist/loader.cjs +12 -15
- package/dist/loader.cjs.map +1 -1
- package/dist/loader.js +13 -16
- package/dist/loader.js.map +1 -1
- package/dist/logo.cjs +311 -0
- package/dist/logo.cjs.map +1 -0
- package/dist/logo.d.cts +39 -0
- package/dist/logo.d.ts +39 -0
- package/dist/logo.js +309 -0
- package/dist/logo.js.map +1 -0
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/dist/notification-badge.cjs.map +1 -1
- package/dist/notification-badge.js.map +1 -1
- package/dist/section-header.cjs +28 -45
- package/dist/section-header.cjs.map +1 -1
- package/dist/section-header.d.cts +1 -1
- package/dist/section-header.d.ts +1 -1
- package/dist/section-header.js +28 -45
- package/dist/section-header.js.map +1 -1
- package/dist/tag.cjs +6 -6
- package/dist/tag.cjs.map +1 -1
- package/dist/tag.js +6 -6
- package/dist/tag.js.map +1 -1
- package/dist/template-header.cjs +28 -0
- package/dist/template-header.cjs.map +1 -0
- package/dist/template-header.d.cts +13 -0
- package/dist/template-header.d.ts +13 -0
- package/dist/template-header.js +26 -0
- package/dist/template-header.js.map +1 -0
- package/dist/textarea.cjs +27 -0
- package/dist/textarea.cjs.map +1 -0
- package/dist/textarea.d.cts +10 -0
- package/dist/textarea.d.ts +10 -0
- package/dist/textarea.js +25 -0
- package/dist/textarea.js.map +1 -0
- package/dist/theme.css +229 -27
- package/dist/tooltip.cjs +5 -15
- package/dist/tooltip.cjs.map +1 -1
- package/dist/tooltip.d.cts +1 -1
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.js +5 -15
- package/dist/tooltip.js.map +1 -1
- package/package.json +75 -15
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { cva } from 'class-variance-authority';
|
|
2
|
+
import { clsx } from 'clsx';
|
|
3
|
+
import { twMerge } from 'tailwind-merge';
|
|
4
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
|
+
|
|
6
|
+
// src/components/template-header/template-header.tsx
|
|
7
|
+
function cn(...inputs) {
|
|
8
|
+
return twMerge(clsx(inputs));
|
|
9
|
+
}
|
|
10
|
+
var templateHeaderVariants = cva(
|
|
11
|
+
"mx-auto flex w-full max-w-2xl flex-col items-center justify-center gap-2.5 py-12"
|
|
12
|
+
);
|
|
13
|
+
function TemplateHeader({ className, image }) {
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
"header",
|
|
16
|
+
{
|
|
17
|
+
"data-slot": "template-header",
|
|
18
|
+
className: cn("drop-shadow-3xl drop-shadow-primary/30", templateHeaderVariants(), className),
|
|
19
|
+
children: /* @__PURE__ */ jsx("div", { className: "mx-auto flex aspect-146/85 max-h-[596px] max-w-2xl shrink-0 items-center justify-between self-stretch", children: image })
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { TemplateHeader };
|
|
25
|
+
//# sourceMappingURL=template-header.js.map
|
|
26
|
+
//# sourceMappingURL=template-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts","../src/components/template-header/template-header.tsx"],"names":[],"mappings":";;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACAA,IAAM,sBAAA,GAAyB,GAAA;AAAA,EAC7B;AACF,CAAA;AAEO,SAAS,cAAA,CAAe,EAAE,SAAA,EAAW,KAAA,EAAM,EAAwB;AACxE,EAAA,uBACE,GAAA;AAAA,IAAC,QAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,iBAAA;AAAA,MACV,SAAA,EAAW,EAAA,CAAG,wCAAA,EAA0C,sBAAA,IAA0B,SAAS,CAAA;AAAA,MAE3F,QAAA,kBAAA,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAU,uGAAA,EACZ,QAAA,EAAA,KAAA,EACH;AAAA;AAAA,GACF;AAEJ","file":"template-header.js","sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import { cva } from \"class-variance-authority\";\n\nimport { cn } from \"../../lib/utils\";\nimport type { TemplateHeaderProps } from \"./types\";\n\nconst templateHeaderVariants = cva(\n \"mx-auto flex w-full max-w-2xl flex-col items-center justify-center gap-2.5 py-12\",\n);\n\nexport function TemplateHeader({ className, image }: TemplateHeaderProps) {\n return (\n <header\n data-slot=\"template-header\"\n className={cn(\"drop-shadow-3xl drop-shadow-primary/30\", templateHeaderVariants(), className)}\n >\n <div className=\"mx-auto flex aspect-146/85 max-h-[596px] max-w-2xl shrink-0 items-center justify-between self-stretch\">\n {image}\n </div>\n </header>\n );\n}\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var clsx = require('clsx');
|
|
4
|
+
var tailwindMerge = require('tailwind-merge');
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
|
|
7
|
+
// src/lib/utils.ts
|
|
8
|
+
function cn(...inputs) {
|
|
9
|
+
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
10
|
+
}
|
|
11
|
+
function Textarea({ className, ...props }) {
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
13
|
+
"textarea",
|
|
14
|
+
{
|
|
15
|
+
"data-slot": "textarea",
|
|
16
|
+
className: cn(
|
|
17
|
+
"field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
|
|
18
|
+
className
|
|
19
|
+
),
|
|
20
|
+
...props
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
exports.Textarea = Textarea;
|
|
26
|
+
//# sourceMappingURL=textarea.cjs.map
|
|
27
|
+
//# sourceMappingURL=textarea.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts","../src/components/textarea/textarea.tsx"],"names":["twMerge","clsx","jsx"],"mappings":";;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACFA,SAAS,QAAA,CAAS,EAAE,SAAA,EAAW,GAAG,OAAM,EAAkB;AACxD,EAAA,uBACEC,cAAA;AAAA,IAAC,UAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,UAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACT,qcAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA,GACN;AAEJ","file":"textarea.cjs","sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import { cn } from \"../../lib/utils\";\nimport type { TextareaProps } from \"./types\";\n\nfunction Textarea({ className, ...props }: TextareaProps) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn(\n \"field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Textarea };\n"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
interface TextareaProps extends React.ComponentProps<"textarea"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare function Textarea({ className, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Textarea, type TextareaProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
interface TextareaProps extends React.ComponentProps<"textarea"> {
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
declare function Textarea({ className, ...props }: TextareaProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
export { Textarea, type TextareaProps };
|
package/dist/textarea.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { clsx } from 'clsx';
|
|
2
|
+
import { twMerge } from 'tailwind-merge';
|
|
3
|
+
import { jsx } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
// src/lib/utils.ts
|
|
6
|
+
function cn(...inputs) {
|
|
7
|
+
return twMerge(clsx(inputs));
|
|
8
|
+
}
|
|
9
|
+
function Textarea({ className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(
|
|
11
|
+
"textarea",
|
|
12
|
+
{
|
|
13
|
+
"data-slot": "textarea",
|
|
14
|
+
className: cn(
|
|
15
|
+
"field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",
|
|
16
|
+
className
|
|
17
|
+
),
|
|
18
|
+
...props
|
|
19
|
+
}
|
|
20
|
+
);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { Textarea };
|
|
24
|
+
//# sourceMappingURL=textarea.js.map
|
|
25
|
+
//# sourceMappingURL=textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts","../src/components/textarea/textarea.tsx"],"names":[],"mappings":";;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACFA,SAAS,QAAA,CAAS,EAAE,SAAA,EAAW,GAAG,OAAM,EAAkB;AACxD,EAAA,uBACE,GAAA;AAAA,IAAC,UAAA;AAAA,IAAA;AAAA,MACC,WAAA,EAAU,UAAA;AAAA,MACV,SAAA,EAAW,EAAA;AAAA,QACT,qcAAA;AAAA,QACA;AAAA,OACF;AAAA,MACC,GAAG;AAAA;AAAA,GACN;AAEJ","file":"textarea.js","sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","import { cn } from \"../../lib/utils\";\nimport type { TextareaProps } from \"./types\";\n\nfunction Textarea({ className, ...props }: TextareaProps) {\n return (\n <textarea\n data-slot=\"textarea\"\n className={cn(\n \"field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs outline-none transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40\",\n className,\n )}\n {...props}\n />\n );\n}\n\nexport { Textarea };\n"]}
|
package/dist/theme.css
CHANGED
|
@@ -160,9 +160,11 @@
|
|
|
160
160
|
--animate-shake: shake 150ms 2 linear;
|
|
161
161
|
--animate-smooth-bounce-in: smooth-bounce-in 800ms ease 1;
|
|
162
162
|
--animate-smooth-pulse: smooth-pulse 1200ms ease-in-out infinite;
|
|
163
|
-
--animate-notification-badge-ping: notification-badge-ping 1s
|
|
163
|
+
--animate-notification-badge-ping: notification-badge-ping 1s
|
|
164
|
+
cubic-bezier(0, 0, 0.2, 1) infinite;
|
|
164
165
|
--animate-glowing-border: glowing-border 3s linear infinite;
|
|
165
|
-
--animate-loader-wave: loader-wave 0.75s cubic-bezier(0.56, -0.01, 0.48, 1)
|
|
166
|
+
--animate-loader-wave: loader-wave 0.75s cubic-bezier(0.56, -0.01, 0.48, 1)
|
|
167
|
+
infinite alternate;
|
|
166
168
|
|
|
167
169
|
/* Blur */
|
|
168
170
|
--blur-xs: 4px;
|
|
@@ -176,11 +178,12 @@
|
|
|
176
178
|
--breakpoint-2xl: 87.5rem;
|
|
177
179
|
|
|
178
180
|
/* Color: Brand */
|
|
181
|
+
--color-brand-midnight-100: oklch(0.9658 0.0161 262.75);
|
|
179
182
|
--color-brand-midnight-900: oklch(0.15 0.03 255.43);
|
|
180
183
|
--color-brand-midnight-800: oklch(0.19 0.05 255.43);
|
|
181
184
|
--color-brand-ocean-400: oklch(0.63 0.19 255.43);
|
|
182
185
|
--color-brand-ocean-100: oklch(0.91 0.05 255.43);
|
|
183
|
-
--color-brand-forest-900: oklch(0.
|
|
186
|
+
--color-brand-forest-900: oklch(0.3866 0.0698 180.75);
|
|
184
187
|
--color-brand-forest-700: oklch(0.45 0.15 165.43);
|
|
185
188
|
--color-brand-forest-100: oklch(0.97 0.04 165.43);
|
|
186
189
|
--color-brand-highlight-400: oklch(0.88 0.25 105.43);
|
|
@@ -314,28 +317,217 @@
|
|
|
314
317
|
|
|
315
318
|
/* Easing */
|
|
316
319
|
/* prettier-ignore */
|
|
317
|
-
--ease-bouncy: linear(
|
|
320
|
+
--ease-bouncy: linear(
|
|
321
|
+
0,
|
|
322
|
+
0.011,
|
|
323
|
+
0.045 1.3%,
|
|
324
|
+
0.184 2.7%,
|
|
325
|
+
0.911 7.4%,
|
|
326
|
+
1.153 9.4%,
|
|
327
|
+
1.301 11.2%,
|
|
328
|
+
1.342,
|
|
329
|
+
1.362 13%,
|
|
330
|
+
1.363,
|
|
331
|
+
1.355 14.4%,
|
|
332
|
+
1.306 16%,
|
|
333
|
+
1.028 21%,
|
|
334
|
+
0.939 23%,
|
|
335
|
+
0.89 24.7%,
|
|
336
|
+
0.876,
|
|
337
|
+
0.868 26.4%,
|
|
338
|
+
0.869,
|
|
339
|
+
0.882 29%,
|
|
340
|
+
0.907 30.5%,
|
|
341
|
+
1.014 35.9%,
|
|
342
|
+
1.038,
|
|
343
|
+
1.048 39.8% 41.1%,
|
|
344
|
+
1.043 42.5%,
|
|
345
|
+
0.995 49.3%,
|
|
346
|
+
0.987,
|
|
347
|
+
0.983 53.2%,
|
|
348
|
+
0.984 55.9%,
|
|
349
|
+
1.002 62.7%,
|
|
350
|
+
1.006 66.4%,
|
|
351
|
+
0.998 79.7%,
|
|
352
|
+
1
|
|
353
|
+
);
|
|
318
354
|
/* prettier-ignore */
|
|
319
|
-
--ease-card-highlight: linear(
|
|
355
|
+
--ease-card-highlight: linear(
|
|
356
|
+
0,
|
|
357
|
+
0.008,
|
|
358
|
+
0.031 1.8%,
|
|
359
|
+
0.127 3.9%,
|
|
360
|
+
0.671 11.8%,
|
|
361
|
+
0.881 15.5%,
|
|
362
|
+
0.959,
|
|
363
|
+
1.02 19.2%,
|
|
364
|
+
1.064,
|
|
365
|
+
1.093 23.2%,
|
|
366
|
+
1.102,
|
|
367
|
+
1.108,
|
|
368
|
+
1.108,
|
|
369
|
+
1.104 28.7%,
|
|
370
|
+
1.089 31.4%,
|
|
371
|
+
1.038 38.1%,
|
|
372
|
+
1.016 41.5%,
|
|
373
|
+
0.999 45.4%,
|
|
374
|
+
0.99 49.6%,
|
|
375
|
+
0.989 55.3%,
|
|
376
|
+
1.001 74.9%,
|
|
377
|
+
1
|
|
378
|
+
);
|
|
320
379
|
/* prettier-ignore */
|
|
321
|
-
--ease-gentle: linear(
|
|
380
|
+
--ease-gentle: linear(
|
|
381
|
+
0,
|
|
382
|
+
0.007,
|
|
383
|
+
0.026,
|
|
384
|
+
0.059 4.5%,
|
|
385
|
+
0.106 6.3%,
|
|
386
|
+
0.209 9.5%,
|
|
387
|
+
0.558 19.3%,
|
|
388
|
+
0.658,
|
|
389
|
+
0.742,
|
|
390
|
+
0.812,
|
|
391
|
+
0.87,
|
|
392
|
+
0.918,
|
|
393
|
+
0.957,
|
|
394
|
+
0.986 41.6%,
|
|
395
|
+
1.007 45.3%,
|
|
396
|
+
1.021 49.4%,
|
|
397
|
+
1.027 54% 60.9%,
|
|
398
|
+
1.007 83.2%,
|
|
399
|
+
1
|
|
400
|
+
);
|
|
322
401
|
/* prettier-ignore */
|
|
323
|
-
--ease-menu: linear(
|
|
402
|
+
--ease-menu: linear(
|
|
403
|
+
0,
|
|
404
|
+
0.0034 0.81%,
|
|
405
|
+
0.0278 2.42%,
|
|
406
|
+
0.097 4.84%,
|
|
407
|
+
0.5361 15.32%,
|
|
408
|
+
0.655 18.55%,
|
|
409
|
+
0.7314,
|
|
410
|
+
0.7964 23.39%,
|
|
411
|
+
0.8662,
|
|
412
|
+
0.9185,
|
|
413
|
+
0.9561,
|
|
414
|
+
0.9818,
|
|
415
|
+
0.9984,
|
|
416
|
+
1.0083 42.74%,
|
|
417
|
+
1.014 46.77%,
|
|
418
|
+
1.0145 53.22%,
|
|
419
|
+
1.0053 68.55%,
|
|
420
|
+
1.0019 77.42%,
|
|
421
|
+
0.9998 100%
|
|
422
|
+
);
|
|
324
423
|
/* prettier-ignore */
|
|
325
|
-
--ease-pop-hover: linear(
|
|
424
|
+
--ease-pop-hover: linear(
|
|
425
|
+
0,
|
|
426
|
+
0.008,
|
|
427
|
+
0.031 1.8%,
|
|
428
|
+
0.127 3.9%,
|
|
429
|
+
0.671 11.8%,
|
|
430
|
+
0.881 15.5%,
|
|
431
|
+
0.959,
|
|
432
|
+
1.02 19.2%,
|
|
433
|
+
1.064,
|
|
434
|
+
1.093 23.2%,
|
|
435
|
+
1.102,
|
|
436
|
+
1.108,
|
|
437
|
+
1.108,
|
|
438
|
+
1.104 28.7%,
|
|
439
|
+
1.089 31.4%,
|
|
440
|
+
1.038 38.1%,
|
|
441
|
+
1.016 41.5%,
|
|
442
|
+
0.999 45.4%,
|
|
443
|
+
0.99 49.6%,
|
|
444
|
+
0.989 55.3%,
|
|
445
|
+
1.001 74.9%,
|
|
446
|
+
1
|
|
447
|
+
);
|
|
326
448
|
/* prettier-ignore */
|
|
327
|
-
--ease-pop-text: linear(
|
|
449
|
+
--ease-pop-text: linear(
|
|
450
|
+
0,
|
|
451
|
+
0.0051 0.99%,
|
|
452
|
+
0.0261,
|
|
453
|
+
0.0607 3.61%,
|
|
454
|
+
0.1192 5.26%,
|
|
455
|
+
0.2531 8.21%,
|
|
456
|
+
0.6509 16.1%,
|
|
457
|
+
0.7652 18.73%,
|
|
458
|
+
0.8512,
|
|
459
|
+
0.9232 23.33%,
|
|
460
|
+
0.9881 25.96%,
|
|
461
|
+
1.0305 28.26%,
|
|
462
|
+
1.0642 30.88%,
|
|
463
|
+
1.0782 32.53%,
|
|
464
|
+
1.089,
|
|
465
|
+
1.094 36.47%,
|
|
466
|
+
1.0942,
|
|
467
|
+
1.0896 41.07%,
|
|
468
|
+
1.0804 43.7%,
|
|
469
|
+
1.0354 53.23%,
|
|
470
|
+
1.0181 57.5%,
|
|
471
|
+
1.0061 61.44%,
|
|
472
|
+
0.9974 65.71%,
|
|
473
|
+
0.9925 70.31%,
|
|
474
|
+
0.991 75.9%,
|
|
475
|
+
0.9996 99.88%
|
|
476
|
+
);
|
|
328
477
|
/* prettier-ignore */
|
|
329
|
-
--ease-quick: linear(
|
|
478
|
+
--ease-quick: linear(
|
|
479
|
+
0,
|
|
480
|
+
0.008,
|
|
481
|
+
0.031 1.8%,
|
|
482
|
+
0.127 3.9%,
|
|
483
|
+
0.671 11.8%,
|
|
484
|
+
0.881 15.5%,
|
|
485
|
+
0.959,
|
|
486
|
+
1.02 19.2%,
|
|
487
|
+
1.064,
|
|
488
|
+
1.093 23.2%,
|
|
489
|
+
1.102,
|
|
490
|
+
1.108,
|
|
491
|
+
1.108,
|
|
492
|
+
1.104 28.7%,
|
|
493
|
+
1.089 31.4%,
|
|
494
|
+
1.038 38.1%,
|
|
495
|
+
1.016 41.5%,
|
|
496
|
+
0.999 45.4%,
|
|
497
|
+
0.99 49.6%,
|
|
498
|
+
0.989 55.3%,
|
|
499
|
+
1.001 74.9%,
|
|
500
|
+
1
|
|
501
|
+
);
|
|
330
502
|
/* prettier-ignore */
|
|
331
|
-
--ease-slow: linear(
|
|
503
|
+
--ease-slow: linear(
|
|
504
|
+
0,
|
|
505
|
+
0.005,
|
|
506
|
+
0.02 2%,
|
|
507
|
+
0.081 4.5%,
|
|
508
|
+
0.469 15.2%,
|
|
509
|
+
0.567,
|
|
510
|
+
0.65,
|
|
511
|
+
0.722 24.4%,
|
|
512
|
+
0.784,
|
|
513
|
+
0.835 31.1%,
|
|
514
|
+
0.878 34.9%,
|
|
515
|
+
0.914 39.1%,
|
|
516
|
+
0.942 43.8%,
|
|
517
|
+
0.964 49.1%,
|
|
518
|
+
0.979 55.4%,
|
|
519
|
+
0.989 62.4%,
|
|
520
|
+
0.995 71.1%,
|
|
521
|
+
1
|
|
522
|
+
);
|
|
332
523
|
|
|
333
524
|
/* Brand Font Settings */
|
|
334
525
|
--font--feature-settings: "kern" 1, "liga" 1, "calt" 1, "rlig" 1;
|
|
335
526
|
--font--variation-settings: "opsz" 14;
|
|
336
527
|
|
|
337
528
|
--font-decor: "Poppins", sans-serif;
|
|
338
|
-
--font-decor--feature-settings:
|
|
529
|
+
--font-decor--feature-settings:
|
|
530
|
+
"cv08", "ss01" 1, "ss03" 1, "kern" 1, "liga" 1;
|
|
339
531
|
--font-decor--variation-settings: "opsz" 32;
|
|
340
532
|
|
|
341
533
|
/* Radius */
|
|
@@ -352,10 +544,18 @@
|
|
|
352
544
|
|
|
353
545
|
/* Shadows */
|
|
354
546
|
--shadow-xs: 0px 1px 2px 0px rgba(16, 24, 40, 0.05);
|
|
355
|
-
--shadow-sm:
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
--shadow-
|
|
547
|
+
--shadow-sm:
|
|
548
|
+
0px 1px 3px 0px rgba(16, 24, 40, 0.1), 0px 1px 2px 0px
|
|
549
|
+
rgba(16, 24, 40, 0.06);
|
|
550
|
+
--shadow-md:
|
|
551
|
+
0px 4px 8px -2px rgba(16, 24, 40, 0.1), 0px 2px 4px -2px
|
|
552
|
+
rgba(16, 24, 40, 0.06);
|
|
553
|
+
--shadow-lg:
|
|
554
|
+
0px 12px 16px -4px rgba(16, 24, 40, 0.08), 0px 4px 6px -2px
|
|
555
|
+
rgba(16, 24, 40, 0.03);
|
|
556
|
+
--shadow-xl:
|
|
557
|
+
0px 20px 24px -4px rgba(16, 24, 40, 0.08), 0px 8px 8px -4px
|
|
558
|
+
rgba(16, 24, 40, 0.03);
|
|
359
559
|
--shadow-2xl: 0px 24px 48px -12px rgba(16, 24, 40, 0.18);
|
|
360
560
|
--shadow-3xl: 0px 32px 48px rgba(16, 24, 40, 0.14);
|
|
361
561
|
--shadow-4xl: 0px 24px 20px rgba(16, 24, 40, 0.28);
|
|
@@ -444,51 +644,53 @@
|
|
|
444
644
|
}
|
|
445
645
|
|
|
446
646
|
@keyframes appear-then-fade {
|
|
447
|
-
0%,
|
|
647
|
+
0%,
|
|
648
|
+
100% {
|
|
448
649
|
opacity: 0;
|
|
449
650
|
}
|
|
450
|
-
5%,
|
|
651
|
+
5%,
|
|
652
|
+
80% {
|
|
451
653
|
opacity: 1;
|
|
452
654
|
}
|
|
453
655
|
}
|
|
454
656
|
|
|
455
657
|
@keyframes fade-in {
|
|
456
|
-
0
|
|
658
|
+
0% {
|
|
457
659
|
opacity: 0;
|
|
458
660
|
}
|
|
459
|
-
100
|
|
661
|
+
100% {
|
|
460
662
|
opacity: 100;
|
|
461
663
|
}
|
|
462
664
|
}
|
|
463
665
|
|
|
464
666
|
@keyframes fade-out {
|
|
465
|
-
0
|
|
667
|
+
0% {
|
|
466
668
|
opacity: 100;
|
|
467
669
|
}
|
|
468
|
-
100
|
|
670
|
+
100% {
|
|
469
671
|
opacity: 0;
|
|
470
672
|
}
|
|
471
673
|
}
|
|
472
674
|
|
|
473
675
|
@keyframes smooth-bounce-in {
|
|
474
|
-
0
|
|
676
|
+
0% {
|
|
475
677
|
transform: scale(0.3);
|
|
476
678
|
opacity: 0;
|
|
477
679
|
}
|
|
478
|
-
50
|
|
680
|
+
50% {
|
|
479
681
|
transform: scale(1.05);
|
|
480
682
|
opacity: 1;
|
|
481
683
|
}
|
|
482
|
-
70
|
|
684
|
+
70% {
|
|
483
685
|
transform: scale(0.9);
|
|
484
686
|
}
|
|
485
|
-
100
|
|
687
|
+
100% {
|
|
486
688
|
transform: scale(1);
|
|
487
689
|
}
|
|
488
690
|
}
|
|
489
691
|
|
|
490
692
|
@keyframes smooth-pulse {
|
|
491
|
-
100
|
|
693
|
+
100% {
|
|
492
694
|
transform: scale(1.8);
|
|
493
695
|
opacity: 0;
|
|
494
696
|
}
|
package/dist/tooltip.cjs
CHANGED
|
@@ -8,18 +8,8 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
8
8
|
function cn(...inputs) {
|
|
9
9
|
return tailwindMerge.twMerge(clsx.clsx(inputs));
|
|
10
10
|
}
|
|
11
|
-
function TooltipProvider({
|
|
12
|
-
delay
|
|
13
|
-
...props
|
|
14
|
-
}) {
|
|
15
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16
|
-
tooltip.Tooltip.Provider,
|
|
17
|
-
{
|
|
18
|
-
"data-slot": "tooltip-provider",
|
|
19
|
-
delay,
|
|
20
|
-
...props
|
|
21
|
-
}
|
|
22
|
-
);
|
|
11
|
+
function TooltipProvider({ delay = 0, ...props }) {
|
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Provider, { "data-slot": "tooltip-provider", delay, ...props });
|
|
23
13
|
}
|
|
24
14
|
function Tooltip({ ...props }) {
|
|
25
15
|
return /* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Root, { "data-slot": "tooltip", ...props });
|
|
@@ -49,20 +39,20 @@ function TooltipContent({
|
|
|
49
39
|
{
|
|
50
40
|
"data-slot": "tooltip-content",
|
|
51
41
|
className: cn(
|
|
52
|
-
"data-open:
|
|
42
|
+
"data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in",
|
|
53
43
|
className
|
|
54
44
|
),
|
|
55
45
|
...props,
|
|
56
46
|
children: [
|
|
57
47
|
children,
|
|
58
|
-
/* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Arrow, { className: "flex data-[side=bottom]:-top-[6px] data-[side=
|
|
48
|
+
/* @__PURE__ */ jsxRuntime.jsx(tooltip.Tooltip.Arrow, { className: "flex data-[side=bottom]:-top-[6px] data-[side=left]:right-[-13px] data-[side=top]:-bottom-[6px] data-[side=right]:left-[-13px] data-[side=bottom]:rotate-0 data-[side=left]:rotate-90 data-[side=right]:-rotate-90 data-[side=top]:rotate-180", children: /* @__PURE__ */ jsxRuntime.jsx(TooltipArrow, {}) })
|
|
59
49
|
]
|
|
60
50
|
}
|
|
61
51
|
)
|
|
62
52
|
}
|
|
63
53
|
) });
|
|
64
54
|
}
|
|
65
|
-
var TooltipArrow = (
|
|
55
|
+
var TooltipArrow = (_props) => {
|
|
66
56
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
67
57
|
"svg",
|
|
68
58
|
{
|
package/dist/tooltip.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/utils.ts","../src/components/tooltip/tooltip.tsx"],"names":["twMerge","clsx","jsx","TooltipPrimitive","jsxs"],"mappings":";;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACCA,SAAS,
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts","../src/components/tooltip/tooltip.tsx"],"names":["twMerge","clsx","jsx","TooltipPrimitive","jsxs"],"mappings":";;;;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAOA,qBAAA,CAAQC,SAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACCA,SAAS,gBAAgB,EAAE,KAAA,GAAQ,CAAA,EAAG,GAAG,OAAM,EAAoC;AACjF,EAAA,uBAAOC,cAAA,CAACC,gBAAiB,QAAA,EAAjB,EAA0B,aAAU,kBAAA,EAAmB,KAAA,EAAe,GAAG,KAAA,EAAO,CAAA;AAC1F;AAEA,SAAS,OAAA,CAAQ,EAAE,GAAG,KAAA,EAAM,EAAgC;AAC1D,EAAA,sCAAQA,eAAA,CAAiB,IAAA,EAAjB,EAAsB,WAAA,EAAU,SAAA,EAAW,GAAG,KAAA,EAAO,CAAA;AAC/D;AAEA,SAAS,cAAA,CAAe,EAAE,GAAG,KAAA,EAAM,EAAmC;AACpE,EAAA,sCAAQA,eAAA,CAAiB,OAAA,EAAjB,EAAyB,WAAA,EAAU,iBAAA,EAAmB,GAAG,KAAA,EAAO,CAAA;AAC1E;AAEA,SAAS,cAAA,CAAe;AAAA,EACtB,SAAA;AAAA,EACA,IAAA,GAAO,KAAA;AAAA,EACP,UAAA,GAAa,CAAA;AAAA,EACb,KAAA,GAAQ,QAAA;AAAA,EACR,WAAA,GAAc,CAAA;AAAA,EACd,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAC4F;AAC1F,EAAA,uBACED,cAAA,CAACC,eAAA,CAAiB,MAAA,EAAjB,EACC,QAAA,kBAAAD,cAAA;AAAA,IAACC,eAAA,CAAiB,UAAA;AAAA,IAAjB;AAAA,MACC,KAAA;AAAA,MACA,WAAA;AAAA,MACA,IAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA,EAAU,cAAA;AAAA,MAEV,QAAA,kBAAAC,eAAA;AAAA,QAACD,eAAA,CAAiB,KAAA;AAAA,QAAjB;AAAA,UACC,WAAA,EAAU,iBAAA;AAAA,UACV,SAAA,EAAW,EAAA;AAAA,YACT,wlBAAA;AAAA,YACA;AAAA,WACF;AAAA,UACC,GAAG,KAAA;AAAA,UAEH,QAAA,EAAA;AAAA,YAAA,QAAA;AAAA,4BACDD,cAAA,CAACC,gBAAiB,KAAA,EAAjB,EAAuB,WAAU,+OAAA,EAChC,QAAA,kBAAAD,cAAA,CAAC,gBAAa,CAAA,EAChB;AAAA;AAAA;AAAA;AACF;AAAA,GACF,EACF,CAAA;AAEJ;AAEO,IAAM,YAAA,GAAe,CAAC,MAAA,KAAwC;AACnE,EAAA,uBACEE,eAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,GAAA;AAAA,MACP,OAAA,EAAQ,sBAAA;AAAA,MACR,IAAA,EAAK,MAAA;AAAA,MACL,KAAA,EAAM,4BAAA;AAAA,MAEN,QAAA,EAAA;AAAA,wBAAAF,cAAA,CAAC,WAAM,QAAA,EAAA,eAAA,EAAa,CAAA;AAAA,wBACpBA,cAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YACC,SAAA,EAAU,iBAAA;AAAA,YACV,CAAA,EAAE;AAAA;AAAA;AACJ;AAAA;AAAA,GACF;AAEJ","file":"tooltip.cjs","sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","\"use client\";\n\nimport { Tooltip as TooltipPrimitive } from \"@base-ui/react/tooltip\";\n\nimport { cn } from \"../../lib/utils\";\n\nfunction TooltipProvider({ delay = 0, ...props }: TooltipPrimitive.Provider.Props) {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" delay={delay} {...props} />;\n}\n\nfunction Tooltip({ ...props }: TooltipPrimitive.Root.Props) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\n\nfunction TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nfunction TooltipContent({\n className,\n side = \"top\",\n sideOffset = 4,\n align = \"center\",\n alignOffset = 0,\n children,\n ...props\n}: TooltipPrimitive.Popup.Props &\n Pick<TooltipPrimitive.Positioner.Props, \"align\" | \"alignOffset\" | \"side\" | \"sideOffset\">) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Positioner\n align={align}\n alignOffset={alignOffset}\n side={side}\n sideOffset={sideOffset}\n className=\"isolate z-50\"\n >\n <TooltipPrimitive.Popup\n data-slot=\"tooltip-content\"\n className={cn(\n \"data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in\",\n className,\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow className=\"flex data-[side=bottom]:-top-[6px] data-[side=left]:right-[-13px] data-[side=top]:-bottom-[6px] data-[side=right]:left-[-13px] data-[side=bottom]:rotate-0 data-[side=left]:rotate-90 data-[side=right]:-rotate-90 data-[side=top]:rotate-180\">\n <TooltipArrow />\n </TooltipPrimitive.Arrow>\n </TooltipPrimitive.Popup>\n </TooltipPrimitive.Positioner>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport const TooltipArrow = (_props: React.ComponentProps<\"svg\">) => {\n return (\n <svg\n width=\"20\"\n height=\"6\"\n viewBox=\"382.134 241.548 20 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>Tooltip Arrow</title>\n <path\n className=\"fill-foreground\"\n d=\"M 382.134 247.548 C 390.116 247.548 389.506 241.548 392.134 241.548 C 394.762 241.548 394.152 247.548 402.134 247.548\"\n />\n </svg>\n );\n};\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };\n"]}
|
package/dist/tooltip.d.cts
CHANGED
|
@@ -5,6 +5,6 @@ declare function TooltipProvider({ delay, ...props }: Tooltip$1.Provider.Props):
|
|
|
5
5
|
declare function Tooltip({ ...props }: Tooltip$1.Root.Props): react_jsx_runtime.JSX.Element;
|
|
6
6
|
declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): react_jsx_runtime.JSX.Element;
|
|
7
7
|
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): react_jsx_runtime.JSX.Element;
|
|
8
|
-
declare const TooltipArrow: (
|
|
8
|
+
declare const TooltipArrow: (_props: React.ComponentProps<"svg">) => react_jsx_runtime.JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };
|
package/dist/tooltip.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ declare function TooltipProvider({ delay, ...props }: Tooltip$1.Provider.Props):
|
|
|
5
5
|
declare function Tooltip({ ...props }: Tooltip$1.Root.Props): react_jsx_runtime.JSX.Element;
|
|
6
6
|
declare function TooltipTrigger({ ...props }: Tooltip$1.Trigger.Props): react_jsx_runtime.JSX.Element;
|
|
7
7
|
declare function TooltipContent({ className, side, sideOffset, align, alignOffset, children, ...props }: Tooltip$1.Popup.Props & Pick<Tooltip$1.Positioner.Props, "align" | "alignOffset" | "side" | "sideOffset">): react_jsx_runtime.JSX.Element;
|
|
8
|
-
declare const TooltipArrow: (
|
|
8
|
+
declare const TooltipArrow: (_props: React.ComponentProps<"svg">) => react_jsx_runtime.JSX.Element;
|
|
9
9
|
|
|
10
10
|
export { Tooltip, TooltipArrow, TooltipContent, TooltipProvider, TooltipTrigger };
|
package/dist/tooltip.js
CHANGED
|
@@ -6,18 +6,8 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
6
6
|
function cn(...inputs) {
|
|
7
7
|
return twMerge(clsx(inputs));
|
|
8
8
|
}
|
|
9
|
-
function TooltipProvider({
|
|
10
|
-
delay
|
|
11
|
-
...props
|
|
12
|
-
}) {
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
Tooltip$1.Provider,
|
|
15
|
-
{
|
|
16
|
-
"data-slot": "tooltip-provider",
|
|
17
|
-
delay,
|
|
18
|
-
...props
|
|
19
|
-
}
|
|
20
|
-
);
|
|
9
|
+
function TooltipProvider({ delay = 0, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Tooltip$1.Provider, { "data-slot": "tooltip-provider", delay, ...props });
|
|
21
11
|
}
|
|
22
12
|
function Tooltip({ ...props }) {
|
|
23
13
|
return /* @__PURE__ */ jsx(Tooltip$1.Root, { "data-slot": "tooltip", ...props });
|
|
@@ -47,20 +37,20 @@ function TooltipContent({
|
|
|
47
37
|
{
|
|
48
38
|
"data-slot": "tooltip-content",
|
|
49
39
|
className: cn(
|
|
50
|
-
"data-open:
|
|
40
|
+
"data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in",
|
|
51
41
|
className
|
|
52
42
|
),
|
|
53
43
|
...props,
|
|
54
44
|
children: [
|
|
55
45
|
children,
|
|
56
|
-
/* @__PURE__ */ jsx(Tooltip$1.Arrow, { className: "flex data-[side=bottom]:-top-[6px] data-[side=
|
|
46
|
+
/* @__PURE__ */ jsx(Tooltip$1.Arrow, { className: "flex data-[side=bottom]:-top-[6px] data-[side=left]:right-[-13px] data-[side=top]:-bottom-[6px] data-[side=right]:left-[-13px] data-[side=bottom]:rotate-0 data-[side=left]:rotate-90 data-[side=right]:-rotate-90 data-[side=top]:rotate-180", children: /* @__PURE__ */ jsx(TooltipArrow, {}) })
|
|
57
47
|
]
|
|
58
48
|
}
|
|
59
49
|
)
|
|
60
50
|
}
|
|
61
51
|
) });
|
|
62
52
|
}
|
|
63
|
-
var TooltipArrow = (
|
|
53
|
+
var TooltipArrow = (_props) => {
|
|
64
54
|
return /* @__PURE__ */ jsxs(
|
|
65
55
|
"svg",
|
|
66
56
|
{
|
package/dist/tooltip.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/lib/utils.ts","../src/components/tooltip/tooltip.tsx"],"names":["TooltipPrimitive"],"mappings":";;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACCA,SAAS,
|
|
1
|
+
{"version":3,"sources":["../src/lib/utils.ts","../src/components/tooltip/tooltip.tsx"],"names":["TooltipPrimitive"],"mappings":";;;;;AAGO,SAAS,MAAM,MAAA,EAAsB;AAC1C,EAAA,OAAO,OAAA,CAAQ,IAAA,CAAK,MAAM,CAAC,CAAA;AAC7B;ACCA,SAAS,gBAAgB,EAAE,KAAA,GAAQ,CAAA,EAAG,GAAG,OAAM,EAAoC;AACjF,EAAA,uBAAO,GAAA,CAACA,UAAiB,QAAA,EAAjB,EAA0B,aAAU,kBAAA,EAAmB,KAAA,EAAe,GAAG,KAAA,EAAO,CAAA;AAC1F;AAEA,SAAS,OAAA,CAAQ,EAAE,GAAG,KAAA,EAAM,EAAgC;AAC1D,EAAA,2BAAQA,SAAA,CAAiB,IAAA,EAAjB,EAAsB,WAAA,EAAU,SAAA,EAAW,GAAG,KAAA,EAAO,CAAA;AAC/D;AAEA,SAAS,cAAA,CAAe,EAAE,GAAG,KAAA,EAAM,EAAmC;AACpE,EAAA,2BAAQA,SAAA,CAAiB,OAAA,EAAjB,EAAyB,WAAA,EAAU,iBAAA,EAAmB,GAAG,KAAA,EAAO,CAAA;AAC1E;AAEA,SAAS,cAAA,CAAe;AAAA,EACtB,SAAA;AAAA,EACA,IAAA,GAAO,KAAA;AAAA,EACP,UAAA,GAAa,CAAA;AAAA,EACb,KAAA,GAAQ,QAAA;AAAA,EACR,WAAA,GAAc,CAAA;AAAA,EACd,QAAA;AAAA,EACA,GAAG;AACL,CAAA,EAC4F;AAC1F,EAAA,uBACE,GAAA,CAACA,SAAA,CAAiB,MAAA,EAAjB,EACC,QAAA,kBAAA,GAAA;AAAA,IAACA,SAAA,CAAiB,UAAA;AAAA,IAAjB;AAAA,MACC,KAAA;AAAA,MACA,WAAA;AAAA,MACA,IAAA;AAAA,MACA,UAAA;AAAA,MACA,SAAA,EAAU,cAAA;AAAA,MAEV,QAAA,kBAAA,IAAA;AAAA,QAACA,SAAA,CAAiB,KAAA;AAAA,QAAjB;AAAA,UACC,WAAA,EAAU,iBAAA;AAAA,UACV,SAAA,EAAW,EAAA;AAAA,YACT,wlBAAA;AAAA,YACA;AAAA,WACF;AAAA,UACC,GAAG,KAAA;AAAA,UAEH,QAAA,EAAA;AAAA,YAAA,QAAA;AAAA,4BACD,GAAA,CAACA,UAAiB,KAAA,EAAjB,EAAuB,WAAU,+OAAA,EAChC,QAAA,kBAAA,GAAA,CAAC,gBAAa,CAAA,EAChB;AAAA;AAAA;AAAA;AACF;AAAA,GACF,EACF,CAAA;AAEJ;AAEO,IAAM,YAAA,GAAe,CAAC,MAAA,KAAwC;AACnE,EAAA,uBACE,IAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,KAAA,EAAM,IAAA;AAAA,MACN,MAAA,EAAO,GAAA;AAAA,MACP,OAAA,EAAQ,sBAAA;AAAA,MACR,IAAA,EAAK,MAAA;AAAA,MACL,KAAA,EAAM,4BAAA;AAAA,MAEN,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,WAAM,QAAA,EAAA,eAAA,EAAa,CAAA;AAAA,wBACpB,GAAA;AAAA,UAAC,MAAA;AAAA,UAAA;AAAA,YACC,SAAA,EAAU,iBAAA;AAAA,YACV,CAAA,EAAE;AAAA;AAAA;AACJ;AAAA;AAAA,GACF;AAEJ","file":"tooltip.js","sourcesContent":["import { clsx, type ClassValue } from \"clsx\";\nimport { twMerge } from \"tailwind-merge\";\n\nexport function cn(...inputs: ClassValue[]) {\n return twMerge(clsx(inputs));\n}\n","\"use client\";\n\nimport { Tooltip as TooltipPrimitive } from \"@base-ui/react/tooltip\";\n\nimport { cn } from \"../../lib/utils\";\n\nfunction TooltipProvider({ delay = 0, ...props }: TooltipPrimitive.Provider.Props) {\n return <TooltipPrimitive.Provider data-slot=\"tooltip-provider\" delay={delay} {...props} />;\n}\n\nfunction Tooltip({ ...props }: TooltipPrimitive.Root.Props) {\n return <TooltipPrimitive.Root data-slot=\"tooltip\" {...props} />;\n}\n\nfunction TooltipTrigger({ ...props }: TooltipPrimitive.Trigger.Props) {\n return <TooltipPrimitive.Trigger data-slot=\"tooltip-trigger\" {...props} />;\n}\n\nfunction TooltipContent({\n className,\n side = \"top\",\n sideOffset = 4,\n align = \"center\",\n alignOffset = 0,\n children,\n ...props\n}: TooltipPrimitive.Popup.Props &\n Pick<TooltipPrimitive.Positioner.Props, \"align\" | \"alignOffset\" | \"side\" | \"sideOffset\">) {\n return (\n <TooltipPrimitive.Portal>\n <TooltipPrimitive.Positioner\n align={align}\n alignOffset={alignOffset}\n side={side}\n sideOffset={sideOffset}\n className=\"isolate z-50\"\n >\n <TooltipPrimitive.Popup\n data-slot=\"tooltip-content\"\n className={cn(\n \"data-open:fade-in-0 data-open:zoom-in-95 data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=inline-end]:slide-in-from-left-2 z-50 w-fit max-w-xs origin-(--transform-origin) rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=delayed-open]:animate-in data-closed:animate-out data-open:animate-in\",\n className,\n )}\n {...props}\n >\n {children}\n <TooltipPrimitive.Arrow className=\"flex data-[side=bottom]:-top-[6px] data-[side=left]:right-[-13px] data-[side=top]:-bottom-[6px] data-[side=right]:left-[-13px] data-[side=bottom]:rotate-0 data-[side=left]:rotate-90 data-[side=right]:-rotate-90 data-[side=top]:rotate-180\">\n <TooltipArrow />\n </TooltipPrimitive.Arrow>\n </TooltipPrimitive.Popup>\n </TooltipPrimitive.Positioner>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport const TooltipArrow = (_props: React.ComponentProps<\"svg\">) => {\n return (\n <svg\n width=\"20\"\n height=\"6\"\n viewBox=\"382.134 241.548 20 6\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <title>Tooltip Arrow</title>\n <path\n className=\"fill-foreground\"\n d=\"M 382.134 247.548 C 390.116 247.548 389.506 241.548 392.134 241.548 C 394.762 241.548 394.152 247.548 402.134 247.548\"\n />\n </svg>\n );\n};\n\nexport { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };\n"]}
|