@ikatec/nebula-react 0.0.1-alpha.24 → 1.0.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.
- package/dist/index.d.mts +91 -2
- package/dist/index.d.ts +91 -2
- package/dist/index.js +490 -14
- package/dist/index.mjs +470 -16
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -18,6 +18,9 @@ var AlertDialogPrimitive = require('@radix-ui/react-alert-dialog');
|
|
|
18
18
|
var CheckboxPrimitive = require('@radix-ui/react-checkbox');
|
|
19
19
|
var SwitchPrimitives = require('@radix-ui/react-switch');
|
|
20
20
|
var TooltipPrimitive = require('@radix-ui/react-tooltip');
|
|
21
|
+
var AccordionPrimitive = require('@radix-ui/react-accordion');
|
|
22
|
+
var TabsPrimitive = require('@radix-ui/react-tabs');
|
|
23
|
+
var sonner = require('sonner');
|
|
21
24
|
|
|
22
25
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
23
26
|
|
|
@@ -53,6 +56,8 @@ var AlertDialogPrimitive__namespace = /*#__PURE__*/_interopNamespace(AlertDialog
|
|
|
53
56
|
var CheckboxPrimitive__namespace = /*#__PURE__*/_interopNamespace(CheckboxPrimitive);
|
|
54
57
|
var SwitchPrimitives__namespace = /*#__PURE__*/_interopNamespace(SwitchPrimitives);
|
|
55
58
|
var TooltipPrimitive__namespace = /*#__PURE__*/_interopNamespace(TooltipPrimitive);
|
|
59
|
+
var AccordionPrimitive__namespace = /*#__PURE__*/_interopNamespace(AccordionPrimitive);
|
|
60
|
+
var TabsPrimitive__namespace = /*#__PURE__*/_interopNamespace(TabsPrimitive);
|
|
56
61
|
|
|
57
62
|
// src/button.tsx
|
|
58
63
|
|
|
@@ -591,28 +596,35 @@ var __iconNode6 = [
|
|
|
591
596
|
];
|
|
592
597
|
var ChevronsRight = createLucideIcon("ChevronsRight", __iconNode6);
|
|
593
598
|
|
|
594
|
-
// ../../node_modules/lucide-react/dist/esm/icons/circle-
|
|
599
|
+
// ../../node_modules/lucide-react/dist/esm/icons/circle-check-big.js
|
|
595
600
|
var __iconNode7 = [
|
|
601
|
+
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
602
|
+
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
603
|
+
];
|
|
604
|
+
var CircleCheckBig = createLucideIcon("CircleCheckBig", __iconNode7);
|
|
605
|
+
|
|
606
|
+
// ../../node_modules/lucide-react/dist/esm/icons/circle-x.js
|
|
607
|
+
var __iconNode8 = [
|
|
596
608
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
597
609
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
598
610
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
599
611
|
];
|
|
600
|
-
var CircleX = createLucideIcon("CircleX",
|
|
612
|
+
var CircleX = createLucideIcon("CircleX", __iconNode8);
|
|
601
613
|
|
|
602
614
|
// ../../node_modules/lucide-react/dist/esm/icons/circle.js
|
|
603
|
-
var
|
|
604
|
-
var Circle = createLucideIcon("Circle",
|
|
615
|
+
var __iconNode9 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
|
|
616
|
+
var Circle = createLucideIcon("Circle", __iconNode9);
|
|
605
617
|
|
|
606
618
|
// ../../node_modules/lucide-react/dist/esm/icons/ellipsis.js
|
|
607
|
-
var
|
|
619
|
+
var __iconNode10 = [
|
|
608
620
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
609
621
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
610
622
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
611
623
|
];
|
|
612
|
-
var Ellipsis = createLucideIcon("Ellipsis",
|
|
624
|
+
var Ellipsis = createLucideIcon("Ellipsis", __iconNode10);
|
|
613
625
|
|
|
614
626
|
// ../../node_modules/lucide-react/dist/esm/icons/eye-off.js
|
|
615
|
-
var
|
|
627
|
+
var __iconNode11 = [
|
|
616
628
|
[
|
|
617
629
|
"path",
|
|
618
630
|
{
|
|
@@ -630,10 +642,10 @@ var __iconNode10 = [
|
|
|
630
642
|
],
|
|
631
643
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
632
644
|
];
|
|
633
|
-
var EyeOff = createLucideIcon("EyeOff",
|
|
645
|
+
var EyeOff = createLucideIcon("EyeOff", __iconNode11);
|
|
634
646
|
|
|
635
647
|
// ../../node_modules/lucide-react/dist/esm/icons/eye.js
|
|
636
|
-
var
|
|
648
|
+
var __iconNode12 = [
|
|
637
649
|
[
|
|
638
650
|
"path",
|
|
639
651
|
{
|
|
@@ -643,18 +655,26 @@ var __iconNode11 = [
|
|
|
643
655
|
],
|
|
644
656
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
645
657
|
];
|
|
646
|
-
var Eye = createLucideIcon("Eye",
|
|
658
|
+
var Eye = createLucideIcon("Eye", __iconNode12);
|
|
659
|
+
|
|
660
|
+
// ../../node_modules/lucide-react/dist/esm/icons/info.js
|
|
661
|
+
var __iconNode13 = [
|
|
662
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
663
|
+
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
664
|
+
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
665
|
+
];
|
|
666
|
+
var Info = createLucideIcon("Info", __iconNode13);
|
|
647
667
|
|
|
648
668
|
// ../../node_modules/lucide-react/dist/esm/icons/minus.js
|
|
649
|
-
var
|
|
650
|
-
var Minus = createLucideIcon("Minus",
|
|
669
|
+
var __iconNode14 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
|
|
670
|
+
var Minus = createLucideIcon("Minus", __iconNode14);
|
|
651
671
|
|
|
652
672
|
// ../../node_modules/lucide-react/dist/esm/icons/x.js
|
|
653
|
-
var
|
|
673
|
+
var __iconNode15 = [
|
|
654
674
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
655
675
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
656
676
|
];
|
|
657
|
-
var X = createLucideIcon("X",
|
|
677
|
+
var X = createLucideIcon("X", __iconNode15);
|
|
658
678
|
var DropdownMenu = DropdownMenuPrimitive__namespace.Root;
|
|
659
679
|
var DropdownMenuTrigger = DropdownMenuPrimitive__namespace.Trigger;
|
|
660
680
|
var DropdownMenuGroup = DropdownMenuPrimitive__namespace.Group;
|
|
@@ -2147,6 +2167,440 @@ var Tooltip = React8__namespace.forwardRef(
|
|
|
2147
2167
|
}
|
|
2148
2168
|
);
|
|
2149
2169
|
Tooltip.displayName = "Tooltip";
|
|
2170
|
+
function Accordion({
|
|
2171
|
+
className,
|
|
2172
|
+
children,
|
|
2173
|
+
...props
|
|
2174
|
+
}) {
|
|
2175
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2176
|
+
AccordionPrimitive__namespace.Root,
|
|
2177
|
+
{
|
|
2178
|
+
collapsible: true,
|
|
2179
|
+
className: cn("w-full", className),
|
|
2180
|
+
...props,
|
|
2181
|
+
children
|
|
2182
|
+
}
|
|
2183
|
+
);
|
|
2184
|
+
}
|
|
2185
|
+
function AccordionItem({
|
|
2186
|
+
className,
|
|
2187
|
+
children,
|
|
2188
|
+
...props
|
|
2189
|
+
}) {
|
|
2190
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2191
|
+
AccordionPrimitive__namespace.Item,
|
|
2192
|
+
{
|
|
2193
|
+
"data-slot": "accordion-item",
|
|
2194
|
+
className: cn(
|
|
2195
|
+
"transition-all duration-300 border-b last:border-b-0 last:pb-0 last:mb-0 pb-6 mb-6 border-accordion-border",
|
|
2196
|
+
className
|
|
2197
|
+
),
|
|
2198
|
+
...props,
|
|
2199
|
+
children
|
|
2200
|
+
}
|
|
2201
|
+
);
|
|
2202
|
+
}
|
|
2203
|
+
function AccordionTrigger({
|
|
2204
|
+
className,
|
|
2205
|
+
children,
|
|
2206
|
+
...props
|
|
2207
|
+
}) {
|
|
2208
|
+
return /* @__PURE__ */ jsxRuntime.jsx(AccordionPrimitive__namespace.Header, { className: "nebula-ds flex", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2209
|
+
AccordionPrimitive__namespace.Trigger,
|
|
2210
|
+
{
|
|
2211
|
+
"data-slot": "accordion-trigger",
|
|
2212
|
+
className: cn(
|
|
2213
|
+
"flex items-start justify-between w-full transition-all",
|
|
2214
|
+
"[&[data-state=open]_[data-slot=accordion-icon]]:rotate-180 [&_[data-slot=accordion-icon]]:transition-all duration-200",
|
|
2215
|
+
"data-[state=open]:mb-6",
|
|
2216
|
+
className
|
|
2217
|
+
),
|
|
2218
|
+
...props,
|
|
2219
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2220
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds flex flex-col gap-2", children }),
|
|
2221
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds flex items-center justify-center w-5 h-5", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2222
|
+
ChevronDown,
|
|
2223
|
+
{
|
|
2224
|
+
"data-slot": "accordion-icon",
|
|
2225
|
+
className: "nebula-ds text-accordion-icon w-4 h-4"
|
|
2226
|
+
}
|
|
2227
|
+
) })
|
|
2228
|
+
] })
|
|
2229
|
+
}
|
|
2230
|
+
) });
|
|
2231
|
+
}
|
|
2232
|
+
function AccordionContent({
|
|
2233
|
+
className,
|
|
2234
|
+
children,
|
|
2235
|
+
separator = false,
|
|
2236
|
+
...props
|
|
2237
|
+
}) {
|
|
2238
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2239
|
+
AccordionPrimitive__namespace.Content,
|
|
2240
|
+
{
|
|
2241
|
+
"data-slot": "accordion-content",
|
|
2242
|
+
className: cn(
|
|
2243
|
+
"overflow-hidden transition-all",
|
|
2244
|
+
"data-[state=closed]:animate-accordion-up",
|
|
2245
|
+
"data-[state=open]:animate-accordion-down",
|
|
2246
|
+
{
|
|
2247
|
+
"data-[state=open]:border-t border-accordion-border py-4": separator
|
|
2248
|
+
},
|
|
2249
|
+
className
|
|
2250
|
+
),
|
|
2251
|
+
...props,
|
|
2252
|
+
children
|
|
2253
|
+
}
|
|
2254
|
+
);
|
|
2255
|
+
}
|
|
2256
|
+
function AccordionTitle({
|
|
2257
|
+
className,
|
|
2258
|
+
...props
|
|
2259
|
+
}) {
|
|
2260
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2261
|
+
"h2",
|
|
2262
|
+
{
|
|
2263
|
+
...props,
|
|
2264
|
+
className: cn(
|
|
2265
|
+
"text-start !text-accordion-text-title font-semibold text-xl leading-none",
|
|
2266
|
+
className
|
|
2267
|
+
)
|
|
2268
|
+
}
|
|
2269
|
+
);
|
|
2270
|
+
}
|
|
2271
|
+
function AccordionDescription({
|
|
2272
|
+
className,
|
|
2273
|
+
...props
|
|
2274
|
+
}) {
|
|
2275
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2276
|
+
"p",
|
|
2277
|
+
{
|
|
2278
|
+
...props,
|
|
2279
|
+
className: cn(
|
|
2280
|
+
"text-start !text-accordion-text-description font-normal text-sm leading-none",
|
|
2281
|
+
className
|
|
2282
|
+
)
|
|
2283
|
+
}
|
|
2284
|
+
);
|
|
2285
|
+
}
|
|
2286
|
+
Accordion.displayName = "Accordion";
|
|
2287
|
+
AccordionItem.displayName = "AccordionItem";
|
|
2288
|
+
AccordionContent.displayName = "AccordionContent";
|
|
2289
|
+
AccordionTrigger.displayName = "AccordionTrigger";
|
|
2290
|
+
AccordionTitle.displayName = "AccordionTitle";
|
|
2291
|
+
AccordionDescription.displayName = "AccordionDescription";
|
|
2292
|
+
var TabsContext = React8__namespace.createContext({});
|
|
2293
|
+
var Tabs = React8__namespace.forwardRef(({ isFitted, children, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(TabsContext.Provider, { value: { isFitted }, children: /* @__PURE__ */ jsxRuntime.jsx(TabsPrimitive__namespace.Root, { ref, ...props, children }) }));
|
|
2294
|
+
Tabs.displayName = TabsPrimitive__namespace.Root.displayName;
|
|
2295
|
+
var TabsList = React8__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
2296
|
+
const { isFitted } = React8__namespace.useContext(TabsContext);
|
|
2297
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2298
|
+
TabsPrimitive__namespace.List,
|
|
2299
|
+
{
|
|
2300
|
+
ref,
|
|
2301
|
+
className: cn(
|
|
2302
|
+
`
|
|
2303
|
+
inline-flex
|
|
2304
|
+
items-center
|
|
2305
|
+
border-b-[1px]
|
|
2306
|
+
border-tabs-border-default
|
|
2307
|
+
w-full
|
|
2308
|
+
`,
|
|
2309
|
+
{ "justify-center": isFitted },
|
|
2310
|
+
className
|
|
2311
|
+
),
|
|
2312
|
+
...props
|
|
2313
|
+
}
|
|
2314
|
+
);
|
|
2315
|
+
});
|
|
2316
|
+
TabsList.displayName = TabsPrimitive__namespace.List.displayName;
|
|
2317
|
+
var TabsTrigger = React8__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
2318
|
+
const { isFitted } = React8__namespace.useContext(TabsContext);
|
|
2319
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2320
|
+
TabsPrimitive__namespace.Trigger,
|
|
2321
|
+
{
|
|
2322
|
+
ref,
|
|
2323
|
+
className: cn(
|
|
2324
|
+
`
|
|
2325
|
+
inline-flex
|
|
2326
|
+
items-center
|
|
2327
|
+
justify-center
|
|
2328
|
+
whitespace-nowrap
|
|
2329
|
+
px-2
|
|
2330
|
+
min-h-10
|
|
2331
|
+
min-w-[125px]
|
|
2332
|
+
gap-2
|
|
2333
|
+
border-b-[2px]
|
|
2334
|
+
border-transparent
|
|
2335
|
+
-mb-[1px]
|
|
2336
|
+
text-sm
|
|
2337
|
+
font-semibold
|
|
2338
|
+
ring-offset-background
|
|
2339
|
+
transition-all
|
|
2340
|
+
text-tabs-text-default
|
|
2341
|
+
focus-visible:outline-none
|
|
2342
|
+
disabled:pointer-events-none
|
|
2343
|
+
disabled:opacity-50
|
|
2344
|
+
data-[state=active]:text-tabs-text-active
|
|
2345
|
+
data-[state=active]:border-tabs-border-active
|
|
2346
|
+
[&>svg]:h-4
|
|
2347
|
+
[&>svg]:w-4
|
|
2348
|
+
`,
|
|
2349
|
+
isFitted && "w-full",
|
|
2350
|
+
className
|
|
2351
|
+
),
|
|
2352
|
+
...props
|
|
2353
|
+
}
|
|
2354
|
+
);
|
|
2355
|
+
});
|
|
2356
|
+
TabsTrigger.displayName = TabsPrimitive__namespace.Trigger.displayName;
|
|
2357
|
+
var TabsContent = React8__namespace.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2358
|
+
TabsPrimitive__namespace.Content,
|
|
2359
|
+
{
|
|
2360
|
+
ref,
|
|
2361
|
+
className: cn(
|
|
2362
|
+
`
|
|
2363
|
+
mt-2
|
|
2364
|
+
focus-visible:outline-none
|
|
2365
|
+
`,
|
|
2366
|
+
className
|
|
2367
|
+
),
|
|
2368
|
+
...props
|
|
2369
|
+
}
|
|
2370
|
+
));
|
|
2371
|
+
TabsContent.displayName = TabsPrimitive__namespace.Content.displayName;
|
|
2372
|
+
var Box = ({
|
|
2373
|
+
className,
|
|
2374
|
+
paddingSize = "md",
|
|
2375
|
+
border = false,
|
|
2376
|
+
shadow = "sm",
|
|
2377
|
+
variant: variant3 = "primary",
|
|
2378
|
+
children,
|
|
2379
|
+
...rest
|
|
2380
|
+
}) => {
|
|
2381
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2382
|
+
"div",
|
|
2383
|
+
{
|
|
2384
|
+
...rest,
|
|
2385
|
+
className: cn(
|
|
2386
|
+
"w-full rounded-2xl",
|
|
2387
|
+
{
|
|
2388
|
+
"bg-box-background": variant3 === "primary",
|
|
2389
|
+
"bg-box-secondary-background": variant3 === "secondary"
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
"p-4": paddingSize === "sm",
|
|
2393
|
+
"p-6": paddingSize === "md",
|
|
2394
|
+
"p-8": paddingSize === "lg"
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
"border border-box-border": border
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
"shadow-sm": shadow === "sm",
|
|
2401
|
+
"shadow-md": shadow === "md",
|
|
2402
|
+
"shadow-lg": shadow === "lg"
|
|
2403
|
+
},
|
|
2404
|
+
className
|
|
2405
|
+
),
|
|
2406
|
+
children
|
|
2407
|
+
}
|
|
2408
|
+
);
|
|
2409
|
+
};
|
|
2410
|
+
function Toaster() {
|
|
2411
|
+
return /* @__PURE__ */ jsxRuntime.jsx(sonner.Toaster, { position: "top-right" });
|
|
2412
|
+
}
|
|
2413
|
+
function ToastComponent({
|
|
2414
|
+
type,
|
|
2415
|
+
message,
|
|
2416
|
+
options,
|
|
2417
|
+
t
|
|
2418
|
+
}) {
|
|
2419
|
+
const CustomIcon = React8__namespace.default.isValidElement(options?.icon) ? React8__namespace.default.cloneElement(options.icon, {
|
|
2420
|
+
className: cn("text-toast-icon-default", options.icon.props.className),
|
|
2421
|
+
size: 20
|
|
2422
|
+
}) : null;
|
|
2423
|
+
const typeIcons = {
|
|
2424
|
+
success: /* @__PURE__ */ jsxRuntime.jsx(CircleCheckBig, { className: "nebula-ds text-toast-icon-default", size: 20 }),
|
|
2425
|
+
error: /* @__PURE__ */ jsxRuntime.jsx(CircleX, { className: "nebula-ds text-toast-icon-error", size: 20 }),
|
|
2426
|
+
info: /* @__PURE__ */ jsxRuntime.jsx(Info, { className: "nebula-ds text-toast-icon-default", size: 20 }),
|
|
2427
|
+
custom: CustomIcon
|
|
2428
|
+
};
|
|
2429
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds w-[400px] bg-toast-background border border-toast-border rounded-xl p-4 flex items-start justify-start gap-2 shadow-md", children: [
|
|
2430
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { children: typeIcons[type] }),
|
|
2431
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds flex flex-col gap-2 mr-auto", children: [
|
|
2432
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "nebula-ds flex flex-col", children: [
|
|
2433
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds text-toast-title text-sm font-semibold", children: message }),
|
|
2434
|
+
options?.description && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "nebula-ds text-toast-description text-sm font-medium", children: options.description })
|
|
2435
|
+
] }),
|
|
2436
|
+
options?.action && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "nebula-ds flex gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2437
|
+
Button,
|
|
2438
|
+
{
|
|
2439
|
+
size: "sm",
|
|
2440
|
+
variant: options.action.variant || "secondary",
|
|
2441
|
+
onClick: options.action.onClick,
|
|
2442
|
+
children: options.action.label
|
|
2443
|
+
}
|
|
2444
|
+
) })
|
|
2445
|
+
] }),
|
|
2446
|
+
/* @__PURE__ */ jsxRuntime.jsx("button", { onClick: () => sonner.toast.dismiss(t), children: /* @__PURE__ */ jsxRuntime.jsx(X, { className: "nebula-ds text-toast-icon-default", size: 20 }) })
|
|
2447
|
+
] });
|
|
2448
|
+
}
|
|
2449
|
+
function success(message, options) {
|
|
2450
|
+
sonner.toast.custom(
|
|
2451
|
+
(t) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2452
|
+
ToastComponent,
|
|
2453
|
+
{
|
|
2454
|
+
type: "success",
|
|
2455
|
+
message,
|
|
2456
|
+
options,
|
|
2457
|
+
t
|
|
2458
|
+
}
|
|
2459
|
+
),
|
|
2460
|
+
{
|
|
2461
|
+
duration: 4e3
|
|
2462
|
+
// 4 seconds
|
|
2463
|
+
}
|
|
2464
|
+
);
|
|
2465
|
+
}
|
|
2466
|
+
function error(message, options) {
|
|
2467
|
+
sonner.toast.custom(
|
|
2468
|
+
(t) => /* @__PURE__ */ jsxRuntime.jsx(ToastComponent, { type: "error", message, options, t }),
|
|
2469
|
+
{
|
|
2470
|
+
duration: 6e3
|
|
2471
|
+
// 6 seconds
|
|
2472
|
+
}
|
|
2473
|
+
);
|
|
2474
|
+
}
|
|
2475
|
+
function info(message, options) {
|
|
2476
|
+
sonner.toast.custom(
|
|
2477
|
+
(t) => /* @__PURE__ */ jsxRuntime.jsx(ToastComponent, { type: "info", message, options, t }),
|
|
2478
|
+
{
|
|
2479
|
+
duration: 4e3
|
|
2480
|
+
// 4 seconds
|
|
2481
|
+
}
|
|
2482
|
+
);
|
|
2483
|
+
}
|
|
2484
|
+
function custom(message, options) {
|
|
2485
|
+
sonner.toast.custom(
|
|
2486
|
+
(t) => /* @__PURE__ */ jsxRuntime.jsx(ToastComponent, { type: "custom", message, options, t }),
|
|
2487
|
+
{
|
|
2488
|
+
duration: 4e3
|
|
2489
|
+
// 4 seconds
|
|
2490
|
+
}
|
|
2491
|
+
);
|
|
2492
|
+
}
|
|
2493
|
+
async function promise(promise2, messages8, options) {
|
|
2494
|
+
const loadingToast = sonner.toast.custom(
|
|
2495
|
+
(t) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2496
|
+
ToastComponent,
|
|
2497
|
+
{
|
|
2498
|
+
type: "info",
|
|
2499
|
+
message: messages8.loading,
|
|
2500
|
+
options,
|
|
2501
|
+
t
|
|
2502
|
+
}
|
|
2503
|
+
),
|
|
2504
|
+
{ duration: Infinity }
|
|
2505
|
+
);
|
|
2506
|
+
return promise2.then((result) => {
|
|
2507
|
+
sonner.toast.dismiss(loadingToast);
|
|
2508
|
+
sonner.toast.custom(
|
|
2509
|
+
(t) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2510
|
+
ToastComponent,
|
|
2511
|
+
{
|
|
2512
|
+
type: "success",
|
|
2513
|
+
message: messages8.success,
|
|
2514
|
+
options,
|
|
2515
|
+
t
|
|
2516
|
+
}
|
|
2517
|
+
),
|
|
2518
|
+
{ duration: 4e3 }
|
|
2519
|
+
);
|
|
2520
|
+
return result;
|
|
2521
|
+
}).catch((error2) => {
|
|
2522
|
+
sonner.toast.dismiss(loadingToast);
|
|
2523
|
+
sonner.toast.custom(
|
|
2524
|
+
(t) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2525
|
+
ToastComponent,
|
|
2526
|
+
{
|
|
2527
|
+
type: "error",
|
|
2528
|
+
message: messages8.error,
|
|
2529
|
+
options,
|
|
2530
|
+
t
|
|
2531
|
+
}
|
|
2532
|
+
),
|
|
2533
|
+
{ duration: 6e3 }
|
|
2534
|
+
);
|
|
2535
|
+
return Promise.reject(error2);
|
|
2536
|
+
});
|
|
2537
|
+
}
|
|
2538
|
+
var toast = {
|
|
2539
|
+
success,
|
|
2540
|
+
error,
|
|
2541
|
+
info,
|
|
2542
|
+
custom,
|
|
2543
|
+
promise
|
|
2544
|
+
};
|
|
2545
|
+
var ActionBar = React8__namespace.forwardRef(({ ...props }) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Root, { modal: false, ...props }));
|
|
2546
|
+
ActionBar.displayName = "ActionBar";
|
|
2547
|
+
var ActionBarTrigger = React8__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Trigger, { ref, ...props }));
|
|
2548
|
+
ActionBarTrigger.displayName = "ActionBarTrigger";
|
|
2549
|
+
var ActionBarPortal = (props) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Portal, { ...props });
|
|
2550
|
+
ActionBarPortal.displayName = "ActionBarPortal";
|
|
2551
|
+
var ActionBarClose = React8__namespace.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Close, { ref, ...props }));
|
|
2552
|
+
ActionBarClose.displayName = "ActionBarClose";
|
|
2553
|
+
var ActionBarButton = React8__namespace.forwardRef(
|
|
2554
|
+
({ className, ...props }, ref) => {
|
|
2555
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2556
|
+
Button,
|
|
2557
|
+
{
|
|
2558
|
+
ref,
|
|
2559
|
+
variant: "primary",
|
|
2560
|
+
className: cn(className, "rounded-none !text-sm"),
|
|
2561
|
+
tabIndex: -1,
|
|
2562
|
+
...props
|
|
2563
|
+
}
|
|
2564
|
+
);
|
|
2565
|
+
}
|
|
2566
|
+
);
|
|
2567
|
+
ActionBarButton.displayName = "ActionBarButton";
|
|
2568
|
+
var ActionBarDivider = React8__namespace.forwardRef(({ className, ...props }, ref) => {
|
|
2569
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2570
|
+
Separator2,
|
|
2571
|
+
{
|
|
2572
|
+
ref,
|
|
2573
|
+
className: cn("bg-actionBar-divider h-6", className),
|
|
2574
|
+
orientation: "vertical",
|
|
2575
|
+
...props
|
|
2576
|
+
}
|
|
2577
|
+
);
|
|
2578
|
+
});
|
|
2579
|
+
ActionBarDivider.displayName = "ActionBarDivider";
|
|
2580
|
+
var ActionBarContent = React8__namespace.forwardRef(({ className, children, portal = false, ...props }, ref) => {
|
|
2581
|
+
const Comp = portal ? ActionBarPortal : React8__namespace.Fragment;
|
|
2582
|
+
return /* @__PURE__ */ jsxRuntime.jsx(Comp, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2583
|
+
DialogPrimitive__namespace.Content,
|
|
2584
|
+
{
|
|
2585
|
+
ref,
|
|
2586
|
+
onInteractOutside: (e) => e.preventDefault(),
|
|
2587
|
+
className: cn(
|
|
2588
|
+
"fixed left-1/2 bottom-[24px] z-50 -translate-x-1/2",
|
|
2589
|
+
"flex items-center justify-items-center rounded-full shadow-lg shadow-actionBar-shadow",
|
|
2590
|
+
"data-[state=open]:animate-slide-up-center data-[state=closed]:animate-slide-down-center",
|
|
2591
|
+
"bg-button-primary-background-default",
|
|
2592
|
+
"overflow-hidden",
|
|
2593
|
+
className
|
|
2594
|
+
),
|
|
2595
|
+
...props,
|
|
2596
|
+
children: [
|
|
2597
|
+
/* @__PURE__ */ jsxRuntime.jsx(DialogPrimitive__namespace.Title, { className: "nebula-ds sr-only" }),
|
|
2598
|
+
children
|
|
2599
|
+
]
|
|
2600
|
+
}
|
|
2601
|
+
) });
|
|
2602
|
+
});
|
|
2603
|
+
ActionBarContent.displayName = "ActionBarContent";
|
|
2150
2604
|
|
|
2151
2605
|
// src/tailwind.ts
|
|
2152
2606
|
function content({ base = "./" } = {}) {
|
|
@@ -2169,11 +2623,13 @@ lucide-react/dist/esm/icons/chevron-left.js:
|
|
|
2169
2623
|
lucide-react/dist/esm/icons/chevron-right.js:
|
|
2170
2624
|
lucide-react/dist/esm/icons/chevrons-left.js:
|
|
2171
2625
|
lucide-react/dist/esm/icons/chevrons-right.js:
|
|
2626
|
+
lucide-react/dist/esm/icons/circle-check-big.js:
|
|
2172
2627
|
lucide-react/dist/esm/icons/circle-x.js:
|
|
2173
2628
|
lucide-react/dist/esm/icons/circle.js:
|
|
2174
2629
|
lucide-react/dist/esm/icons/ellipsis.js:
|
|
2175
2630
|
lucide-react/dist/esm/icons/eye-off.js:
|
|
2176
2631
|
lucide-react/dist/esm/icons/eye.js:
|
|
2632
|
+
lucide-react/dist/esm/icons/info.js:
|
|
2177
2633
|
lucide-react/dist/esm/icons/minus.js:
|
|
2178
2634
|
lucide-react/dist/esm/icons/x.js:
|
|
2179
2635
|
lucide-react/dist/esm/lucide-react.js:
|
|
@@ -2185,6 +2641,19 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
2185
2641
|
*)
|
|
2186
2642
|
*/
|
|
2187
2643
|
|
|
2644
|
+
exports.Accordion = Accordion;
|
|
2645
|
+
exports.AccordionContent = AccordionContent;
|
|
2646
|
+
exports.AccordionDescription = AccordionDescription;
|
|
2647
|
+
exports.AccordionItem = AccordionItem;
|
|
2648
|
+
exports.AccordionTitle = AccordionTitle;
|
|
2649
|
+
exports.AccordionTrigger = AccordionTrigger;
|
|
2650
|
+
exports.ActionBar = ActionBar;
|
|
2651
|
+
exports.ActionBarButton = ActionBarButton;
|
|
2652
|
+
exports.ActionBarClose = ActionBarClose;
|
|
2653
|
+
exports.ActionBarContent = ActionBarContent;
|
|
2654
|
+
exports.ActionBarDivider = ActionBarDivider;
|
|
2655
|
+
exports.ActionBarPortal = ActionBarPortal;
|
|
2656
|
+
exports.ActionBarTrigger = ActionBarTrigger;
|
|
2188
2657
|
exports.Alert = Alert;
|
|
2189
2658
|
exports.AlertButton = AlertButton;
|
|
2190
2659
|
exports.AlertDescription = AlertDescription;
|
|
@@ -2201,6 +2670,7 @@ exports.AlertTitle = AlertTitle;
|
|
|
2201
2670
|
exports.Async = StyledAsync;
|
|
2202
2671
|
exports.AsyncCreatable = StyledAsyncCreatable;
|
|
2203
2672
|
exports.Badge = Badge;
|
|
2673
|
+
exports.Box = Box;
|
|
2204
2674
|
exports.Breadcrumb = Breadcrumb;
|
|
2205
2675
|
exports.BreadcrumbEllipsis = BreadcrumbEllipsis;
|
|
2206
2676
|
exports.BreadcrumbItem = BreadcrumbItem;
|
|
@@ -2266,7 +2736,12 @@ exports.TableFooter = TableFooter;
|
|
|
2266
2736
|
exports.TableHead = TableHead;
|
|
2267
2737
|
exports.TableHeader = TableHeader;
|
|
2268
2738
|
exports.TableRow = TableRow;
|
|
2739
|
+
exports.Tabs = Tabs;
|
|
2740
|
+
exports.TabsContent = TabsContent;
|
|
2741
|
+
exports.TabsList = TabsList;
|
|
2742
|
+
exports.TabsTrigger = TabsTrigger;
|
|
2269
2743
|
exports.Tag = Tag;
|
|
2744
|
+
exports.Toaster = Toaster;
|
|
2270
2745
|
exports.Tooltip = Tooltip;
|
|
2271
2746
|
exports.alertVariants = alertVariants;
|
|
2272
2747
|
exports.badgeSizeEnum = badgeSizeEnum;
|
|
@@ -2280,4 +2755,5 @@ exports.separatorVariants = separatorVariants;
|
|
|
2280
2755
|
exports.setNebulaLanguage = setNebulaLanguage;
|
|
2281
2756
|
exports.tagVariantsEnum = tagVariantsEnum;
|
|
2282
2757
|
exports.tailwind = tailwind;
|
|
2758
|
+
exports.toast = toast;
|
|
2283
2759
|
exports.useNebulaI18n = useNebulaI18n;
|