@ikatec/nebula-react 0.0.1-alpha.25 → 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 +54 -3
- package/dist/index.d.ts +54 -3
- package/dist/index.js +299 -28
- package/dist/index.mjs +290 -29
- package/package.json +2 -1
- package/dist/tokens.css +0 -521
package/dist/index.mjs
CHANGED
|
@@ -19,6 +19,7 @@ import * as SwitchPrimitives from '@radix-ui/react-switch';
|
|
|
19
19
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
20
20
|
import * as AccordionPrimitive from '@radix-ui/react-accordion';
|
|
21
21
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
22
|
+
import { Toaster as Toaster$1, toast as toast$1 } from 'sonner';
|
|
22
23
|
|
|
23
24
|
// src/button.tsx
|
|
24
25
|
|
|
@@ -557,28 +558,35 @@ var __iconNode6 = [
|
|
|
557
558
|
];
|
|
558
559
|
var ChevronsRight = createLucideIcon("ChevronsRight", __iconNode6);
|
|
559
560
|
|
|
560
|
-
// ../../node_modules/lucide-react/dist/esm/icons/circle-
|
|
561
|
+
// ../../node_modules/lucide-react/dist/esm/icons/circle-check-big.js
|
|
561
562
|
var __iconNode7 = [
|
|
563
|
+
["path", { d: "M21.801 10A10 10 0 1 1 17 3.335", key: "yps3ct" }],
|
|
564
|
+
["path", { d: "m9 11 3 3L22 4", key: "1pflzl" }]
|
|
565
|
+
];
|
|
566
|
+
var CircleCheckBig = createLucideIcon("CircleCheckBig", __iconNode7);
|
|
567
|
+
|
|
568
|
+
// ../../node_modules/lucide-react/dist/esm/icons/circle-x.js
|
|
569
|
+
var __iconNode8 = [
|
|
562
570
|
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
563
571
|
["path", { d: "m15 9-6 6", key: "1uzhvr" }],
|
|
564
572
|
["path", { d: "m9 9 6 6", key: "z0biqf" }]
|
|
565
573
|
];
|
|
566
|
-
var CircleX = createLucideIcon("CircleX",
|
|
574
|
+
var CircleX = createLucideIcon("CircleX", __iconNode8);
|
|
567
575
|
|
|
568
576
|
// ../../node_modules/lucide-react/dist/esm/icons/circle.js
|
|
569
|
-
var
|
|
570
|
-
var Circle = createLucideIcon("Circle",
|
|
577
|
+
var __iconNode9 = [["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }]];
|
|
578
|
+
var Circle = createLucideIcon("Circle", __iconNode9);
|
|
571
579
|
|
|
572
580
|
// ../../node_modules/lucide-react/dist/esm/icons/ellipsis.js
|
|
573
|
-
var
|
|
581
|
+
var __iconNode10 = [
|
|
574
582
|
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
575
583
|
["circle", { cx: "19", cy: "12", r: "1", key: "1wjl8i" }],
|
|
576
584
|
["circle", { cx: "5", cy: "12", r: "1", key: "1pcz8c" }]
|
|
577
585
|
];
|
|
578
|
-
var Ellipsis = createLucideIcon("Ellipsis",
|
|
586
|
+
var Ellipsis = createLucideIcon("Ellipsis", __iconNode10);
|
|
579
587
|
|
|
580
588
|
// ../../node_modules/lucide-react/dist/esm/icons/eye-off.js
|
|
581
|
-
var
|
|
589
|
+
var __iconNode11 = [
|
|
582
590
|
[
|
|
583
591
|
"path",
|
|
584
592
|
{
|
|
@@ -596,10 +604,10 @@ var __iconNode10 = [
|
|
|
596
604
|
],
|
|
597
605
|
["path", { d: "m2 2 20 20", key: "1ooewy" }]
|
|
598
606
|
];
|
|
599
|
-
var EyeOff = createLucideIcon("EyeOff",
|
|
607
|
+
var EyeOff = createLucideIcon("EyeOff", __iconNode11);
|
|
600
608
|
|
|
601
609
|
// ../../node_modules/lucide-react/dist/esm/icons/eye.js
|
|
602
|
-
var
|
|
610
|
+
var __iconNode12 = [
|
|
603
611
|
[
|
|
604
612
|
"path",
|
|
605
613
|
{
|
|
@@ -609,18 +617,26 @@ var __iconNode11 = [
|
|
|
609
617
|
],
|
|
610
618
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
611
619
|
];
|
|
612
|
-
var Eye = createLucideIcon("Eye",
|
|
620
|
+
var Eye = createLucideIcon("Eye", __iconNode12);
|
|
621
|
+
|
|
622
|
+
// ../../node_modules/lucide-react/dist/esm/icons/info.js
|
|
623
|
+
var __iconNode13 = [
|
|
624
|
+
["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
|
|
625
|
+
["path", { d: "M12 16v-4", key: "1dtifu" }],
|
|
626
|
+
["path", { d: "M12 8h.01", key: "e9boi3" }]
|
|
627
|
+
];
|
|
628
|
+
var Info = createLucideIcon("Info", __iconNode13);
|
|
613
629
|
|
|
614
630
|
// ../../node_modules/lucide-react/dist/esm/icons/minus.js
|
|
615
|
-
var
|
|
616
|
-
var Minus = createLucideIcon("Minus",
|
|
631
|
+
var __iconNode14 = [["path", { d: "M5 12h14", key: "1ays0h" }]];
|
|
632
|
+
var Minus = createLucideIcon("Minus", __iconNode14);
|
|
617
633
|
|
|
618
634
|
// ../../node_modules/lucide-react/dist/esm/icons/x.js
|
|
619
|
-
var
|
|
635
|
+
var __iconNode15 = [
|
|
620
636
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
621
637
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
622
638
|
];
|
|
623
|
-
var X = createLucideIcon("X",
|
|
639
|
+
var X = createLucideIcon("X", __iconNode15);
|
|
624
640
|
var DropdownMenu = DropdownMenuPrimitive.Root;
|
|
625
641
|
var DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;
|
|
626
642
|
var DropdownMenuGroup = DropdownMenuPrimitive.Group;
|
|
@@ -2122,10 +2138,7 @@ function Accordion({
|
|
|
2122
2138
|
AccordionPrimitive.Root,
|
|
2123
2139
|
{
|
|
2124
2140
|
collapsible: true,
|
|
2125
|
-
className: cn(
|
|
2126
|
-
"w-full bg-accordion-background rounded-3xl p-6",
|
|
2127
|
-
className
|
|
2128
|
-
),
|
|
2141
|
+
className: cn("w-full", className),
|
|
2129
2142
|
...props,
|
|
2130
2143
|
children
|
|
2131
2144
|
}
|
|
@@ -2141,7 +2154,7 @@ function AccordionItem({
|
|
|
2141
2154
|
{
|
|
2142
2155
|
"data-slot": "accordion-item",
|
|
2143
2156
|
className: cn(
|
|
2144
|
-
"transition-all duration-300 border-b last:border-b-0 last:pb-0 last:mb-0 pb-6 mb-6 border-
|
|
2157
|
+
"transition-all duration-300 border-b last:border-b-0 last:pb-0 last:mb-0 pb-6 mb-6 border-accordion-border",
|
|
2145
2158
|
className
|
|
2146
2159
|
),
|
|
2147
2160
|
...props,
|
|
@@ -2159,15 +2172,21 @@ function AccordionTrigger({
|
|
|
2159
2172
|
{
|
|
2160
2173
|
"data-slot": "accordion-trigger",
|
|
2161
2174
|
className: cn(
|
|
2162
|
-
"flex items-
|
|
2163
|
-
"[&[data-state=open]
|
|
2175
|
+
"flex items-start justify-between w-full transition-all",
|
|
2176
|
+
"[&[data-state=open]_[data-slot=accordion-icon]]:rotate-180 [&_[data-slot=accordion-icon]]:transition-all duration-200",
|
|
2164
2177
|
"data-[state=open]:mb-6",
|
|
2165
2178
|
className
|
|
2166
2179
|
),
|
|
2167
2180
|
...props,
|
|
2168
2181
|
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2169
|
-
children,
|
|
2170
|
-
/* @__PURE__ */ jsx(
|
|
2182
|
+
/* @__PURE__ */ jsx("div", { className: "nebula-ds flex flex-col gap-2", children }),
|
|
2183
|
+
/* @__PURE__ */ jsx("div", { className: "nebula-ds flex items-center justify-center w-5 h-5", children: /* @__PURE__ */ jsx(
|
|
2184
|
+
ChevronDown,
|
|
2185
|
+
{
|
|
2186
|
+
"data-slot": "accordion-icon",
|
|
2187
|
+
className: "nebula-ds text-accordion-icon w-4 h-4"
|
|
2188
|
+
}
|
|
2189
|
+
) })
|
|
2171
2190
|
] })
|
|
2172
2191
|
}
|
|
2173
2192
|
) });
|
|
@@ -2175,6 +2194,7 @@ function AccordionTrigger({
|
|
|
2175
2194
|
function AccordionContent({
|
|
2176
2195
|
className,
|
|
2177
2196
|
children,
|
|
2197
|
+
separator = false,
|
|
2178
2198
|
...props
|
|
2179
2199
|
}) {
|
|
2180
2200
|
return /* @__PURE__ */ jsx(
|
|
@@ -2185,6 +2205,9 @@ function AccordionContent({
|
|
|
2185
2205
|
"overflow-hidden transition-all",
|
|
2186
2206
|
"data-[state=closed]:animate-accordion-up",
|
|
2187
2207
|
"data-[state=open]:animate-accordion-down",
|
|
2208
|
+
{
|
|
2209
|
+
"data-[state=open]:border-t border-accordion-border py-4": separator
|
|
2210
|
+
},
|
|
2188
2211
|
className
|
|
2189
2212
|
),
|
|
2190
2213
|
...props,
|
|
@@ -2201,7 +2224,7 @@ function AccordionTitle({
|
|
|
2201
2224
|
{
|
|
2202
2225
|
...props,
|
|
2203
2226
|
className: cn(
|
|
2204
|
-
"text-start !text-accordion-text-title font-semibold text-xl",
|
|
2227
|
+
"text-start !text-accordion-text-title font-semibold text-xl leading-none",
|
|
2205
2228
|
className
|
|
2206
2229
|
)
|
|
2207
2230
|
}
|
|
@@ -2216,7 +2239,7 @@ function AccordionDescription({
|
|
|
2216
2239
|
{
|
|
2217
2240
|
...props,
|
|
2218
2241
|
className: cn(
|
|
2219
|
-
"text-start !text-accordion-text-description font-normal text-sm
|
|
2242
|
+
"text-start !text-accordion-text-description font-normal text-sm leading-none",
|
|
2220
2243
|
className
|
|
2221
2244
|
)
|
|
2222
2245
|
}
|
|
@@ -2232,6 +2255,7 @@ var TabsContext = React8.createContext({});
|
|
|
2232
2255
|
var Tabs = React8.forwardRef(({ isFitted, children, ...props }, ref) => /* @__PURE__ */ jsx(TabsContext.Provider, { value: { isFitted }, children: /* @__PURE__ */ jsx(TabsPrimitive.Root, { ref, ...props, children }) }));
|
|
2233
2256
|
Tabs.displayName = TabsPrimitive.Root.displayName;
|
|
2234
2257
|
var TabsList = React8.forwardRef(({ className, ...props }, ref) => {
|
|
2258
|
+
const { isFitted } = React8.useContext(TabsContext);
|
|
2235
2259
|
return /* @__PURE__ */ jsx(
|
|
2236
2260
|
TabsPrimitive.List,
|
|
2237
2261
|
{
|
|
@@ -2240,9 +2264,11 @@ var TabsList = React8.forwardRef(({ className, ...props }, ref) => {
|
|
|
2240
2264
|
`
|
|
2241
2265
|
inline-flex
|
|
2242
2266
|
items-center
|
|
2243
|
-
|
|
2267
|
+
border-b-[1px]
|
|
2268
|
+
border-tabs-border-default
|
|
2244
2269
|
w-full
|
|
2245
2270
|
`,
|
|
2271
|
+
{ "justify-center": isFitted },
|
|
2246
2272
|
className
|
|
2247
2273
|
),
|
|
2248
2274
|
...props
|
|
@@ -2266,12 +2292,13 @@ var TabsTrigger = React8.forwardRef(({ className, ...props }, ref) => {
|
|
|
2266
2292
|
min-h-10
|
|
2267
2293
|
min-w-[125px]
|
|
2268
2294
|
gap-2
|
|
2295
|
+
border-b-[2px]
|
|
2296
|
+
border-transparent
|
|
2297
|
+
-mb-[1px]
|
|
2269
2298
|
text-sm
|
|
2270
2299
|
font-semibold
|
|
2271
2300
|
ring-offset-background
|
|
2272
2301
|
transition-all
|
|
2273
|
-
border-b-2
|
|
2274
|
-
border-tabs-border-default
|
|
2275
2302
|
text-tabs-text-default
|
|
2276
2303
|
focus-visible:outline-none
|
|
2277
2304
|
disabled:pointer-events-none
|
|
@@ -2304,6 +2331,238 @@ var TabsContent = React8.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
2304
2331
|
}
|
|
2305
2332
|
));
|
|
2306
2333
|
TabsContent.displayName = TabsPrimitive.Content.displayName;
|
|
2334
|
+
var Box = ({
|
|
2335
|
+
className,
|
|
2336
|
+
paddingSize = "md",
|
|
2337
|
+
border = false,
|
|
2338
|
+
shadow = "sm",
|
|
2339
|
+
variant: variant3 = "primary",
|
|
2340
|
+
children,
|
|
2341
|
+
...rest
|
|
2342
|
+
}) => {
|
|
2343
|
+
return /* @__PURE__ */ jsx(
|
|
2344
|
+
"div",
|
|
2345
|
+
{
|
|
2346
|
+
...rest,
|
|
2347
|
+
className: cn(
|
|
2348
|
+
"w-full rounded-2xl",
|
|
2349
|
+
{
|
|
2350
|
+
"bg-box-background": variant3 === "primary",
|
|
2351
|
+
"bg-box-secondary-background": variant3 === "secondary"
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"p-4": paddingSize === "sm",
|
|
2355
|
+
"p-6": paddingSize === "md",
|
|
2356
|
+
"p-8": paddingSize === "lg"
|
|
2357
|
+
},
|
|
2358
|
+
{
|
|
2359
|
+
"border border-box-border": border
|
|
2360
|
+
},
|
|
2361
|
+
{
|
|
2362
|
+
"shadow-sm": shadow === "sm",
|
|
2363
|
+
"shadow-md": shadow === "md",
|
|
2364
|
+
"shadow-lg": shadow === "lg"
|
|
2365
|
+
},
|
|
2366
|
+
className
|
|
2367
|
+
),
|
|
2368
|
+
children
|
|
2369
|
+
}
|
|
2370
|
+
);
|
|
2371
|
+
};
|
|
2372
|
+
function Toaster() {
|
|
2373
|
+
return /* @__PURE__ */ jsx(Toaster$1, { position: "top-right" });
|
|
2374
|
+
}
|
|
2375
|
+
function ToastComponent({
|
|
2376
|
+
type,
|
|
2377
|
+
message,
|
|
2378
|
+
options,
|
|
2379
|
+
t
|
|
2380
|
+
}) {
|
|
2381
|
+
const CustomIcon = React8__default.isValidElement(options?.icon) ? React8__default.cloneElement(options.icon, {
|
|
2382
|
+
className: cn("text-toast-icon-default", options.icon.props.className),
|
|
2383
|
+
size: 20
|
|
2384
|
+
}) : null;
|
|
2385
|
+
const typeIcons = {
|
|
2386
|
+
success: /* @__PURE__ */ jsx(CircleCheckBig, { className: "nebula-ds text-toast-icon-default", size: 20 }),
|
|
2387
|
+
error: /* @__PURE__ */ jsx(CircleX, { className: "nebula-ds text-toast-icon-error", size: 20 }),
|
|
2388
|
+
info: /* @__PURE__ */ jsx(Info, { className: "nebula-ds text-toast-icon-default", size: 20 }),
|
|
2389
|
+
custom: CustomIcon
|
|
2390
|
+
};
|
|
2391
|
+
return /* @__PURE__ */ 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: [
|
|
2392
|
+
/* @__PURE__ */ jsx("div", { children: typeIcons[type] }),
|
|
2393
|
+
/* @__PURE__ */ jsxs("div", { className: "nebula-ds flex flex-col gap-2 mr-auto", children: [
|
|
2394
|
+
/* @__PURE__ */ jsxs("div", { className: "nebula-ds flex flex-col", children: [
|
|
2395
|
+
/* @__PURE__ */ jsx("span", { className: "nebula-ds text-toast-title text-sm font-semibold", children: message }),
|
|
2396
|
+
options?.description && /* @__PURE__ */ jsx("span", { className: "nebula-ds text-toast-description text-sm font-medium", children: options.description })
|
|
2397
|
+
] }),
|
|
2398
|
+
options?.action && /* @__PURE__ */ jsx("div", { className: "nebula-ds flex gap-2", children: /* @__PURE__ */ jsx(
|
|
2399
|
+
Button,
|
|
2400
|
+
{
|
|
2401
|
+
size: "sm",
|
|
2402
|
+
variant: options.action.variant || "secondary",
|
|
2403
|
+
onClick: options.action.onClick,
|
|
2404
|
+
children: options.action.label
|
|
2405
|
+
}
|
|
2406
|
+
) })
|
|
2407
|
+
] }),
|
|
2408
|
+
/* @__PURE__ */ jsx("button", { onClick: () => toast$1.dismiss(t), children: /* @__PURE__ */ jsx(X, { className: "nebula-ds text-toast-icon-default", size: 20 }) })
|
|
2409
|
+
] });
|
|
2410
|
+
}
|
|
2411
|
+
function success(message, options) {
|
|
2412
|
+
toast$1.custom(
|
|
2413
|
+
(t) => /* @__PURE__ */ jsx(
|
|
2414
|
+
ToastComponent,
|
|
2415
|
+
{
|
|
2416
|
+
type: "success",
|
|
2417
|
+
message,
|
|
2418
|
+
options,
|
|
2419
|
+
t
|
|
2420
|
+
}
|
|
2421
|
+
),
|
|
2422
|
+
{
|
|
2423
|
+
duration: 4e3
|
|
2424
|
+
// 4 seconds
|
|
2425
|
+
}
|
|
2426
|
+
);
|
|
2427
|
+
}
|
|
2428
|
+
function error(message, options) {
|
|
2429
|
+
toast$1.custom(
|
|
2430
|
+
(t) => /* @__PURE__ */ jsx(ToastComponent, { type: "error", message, options, t }),
|
|
2431
|
+
{
|
|
2432
|
+
duration: 6e3
|
|
2433
|
+
// 6 seconds
|
|
2434
|
+
}
|
|
2435
|
+
);
|
|
2436
|
+
}
|
|
2437
|
+
function info(message, options) {
|
|
2438
|
+
toast$1.custom(
|
|
2439
|
+
(t) => /* @__PURE__ */ jsx(ToastComponent, { type: "info", message, options, t }),
|
|
2440
|
+
{
|
|
2441
|
+
duration: 4e3
|
|
2442
|
+
// 4 seconds
|
|
2443
|
+
}
|
|
2444
|
+
);
|
|
2445
|
+
}
|
|
2446
|
+
function custom(message, options) {
|
|
2447
|
+
toast$1.custom(
|
|
2448
|
+
(t) => /* @__PURE__ */ jsx(ToastComponent, { type: "custom", message, options, t }),
|
|
2449
|
+
{
|
|
2450
|
+
duration: 4e3
|
|
2451
|
+
// 4 seconds
|
|
2452
|
+
}
|
|
2453
|
+
);
|
|
2454
|
+
}
|
|
2455
|
+
async function promise(promise2, messages8, options) {
|
|
2456
|
+
const loadingToast = toast$1.custom(
|
|
2457
|
+
(t) => /* @__PURE__ */ jsx(
|
|
2458
|
+
ToastComponent,
|
|
2459
|
+
{
|
|
2460
|
+
type: "info",
|
|
2461
|
+
message: messages8.loading,
|
|
2462
|
+
options,
|
|
2463
|
+
t
|
|
2464
|
+
}
|
|
2465
|
+
),
|
|
2466
|
+
{ duration: Infinity }
|
|
2467
|
+
);
|
|
2468
|
+
return promise2.then((result) => {
|
|
2469
|
+
toast$1.dismiss(loadingToast);
|
|
2470
|
+
toast$1.custom(
|
|
2471
|
+
(t) => /* @__PURE__ */ jsx(
|
|
2472
|
+
ToastComponent,
|
|
2473
|
+
{
|
|
2474
|
+
type: "success",
|
|
2475
|
+
message: messages8.success,
|
|
2476
|
+
options,
|
|
2477
|
+
t
|
|
2478
|
+
}
|
|
2479
|
+
),
|
|
2480
|
+
{ duration: 4e3 }
|
|
2481
|
+
);
|
|
2482
|
+
return result;
|
|
2483
|
+
}).catch((error2) => {
|
|
2484
|
+
toast$1.dismiss(loadingToast);
|
|
2485
|
+
toast$1.custom(
|
|
2486
|
+
(t) => /* @__PURE__ */ jsx(
|
|
2487
|
+
ToastComponent,
|
|
2488
|
+
{
|
|
2489
|
+
type: "error",
|
|
2490
|
+
message: messages8.error,
|
|
2491
|
+
options,
|
|
2492
|
+
t
|
|
2493
|
+
}
|
|
2494
|
+
),
|
|
2495
|
+
{ duration: 6e3 }
|
|
2496
|
+
);
|
|
2497
|
+
return Promise.reject(error2);
|
|
2498
|
+
});
|
|
2499
|
+
}
|
|
2500
|
+
var toast = {
|
|
2501
|
+
success,
|
|
2502
|
+
error,
|
|
2503
|
+
info,
|
|
2504
|
+
custom,
|
|
2505
|
+
promise
|
|
2506
|
+
};
|
|
2507
|
+
var ActionBar = React8.forwardRef(({ ...props }) => /* @__PURE__ */ jsx(DialogPrimitive.Root, { modal: false, ...props }));
|
|
2508
|
+
ActionBar.displayName = "ActionBar";
|
|
2509
|
+
var ActionBarTrigger = React8.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ref, ...props }));
|
|
2510
|
+
ActionBarTrigger.displayName = "ActionBarTrigger";
|
|
2511
|
+
var ActionBarPortal = (props) => /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...props });
|
|
2512
|
+
ActionBarPortal.displayName = "ActionBarPortal";
|
|
2513
|
+
var ActionBarClose = React8.forwardRef(({ ...props }, ref) => /* @__PURE__ */ jsx(DialogPrimitive.Close, { ref, ...props }));
|
|
2514
|
+
ActionBarClose.displayName = "ActionBarClose";
|
|
2515
|
+
var ActionBarButton = React8.forwardRef(
|
|
2516
|
+
({ className, ...props }, ref) => {
|
|
2517
|
+
return /* @__PURE__ */ jsx(
|
|
2518
|
+
Button,
|
|
2519
|
+
{
|
|
2520
|
+
ref,
|
|
2521
|
+
variant: "primary",
|
|
2522
|
+
className: cn(className, "rounded-none !text-sm"),
|
|
2523
|
+
tabIndex: -1,
|
|
2524
|
+
...props
|
|
2525
|
+
}
|
|
2526
|
+
);
|
|
2527
|
+
}
|
|
2528
|
+
);
|
|
2529
|
+
ActionBarButton.displayName = "ActionBarButton";
|
|
2530
|
+
var ActionBarDivider = React8.forwardRef(({ className, ...props }, ref) => {
|
|
2531
|
+
return /* @__PURE__ */ jsx(
|
|
2532
|
+
Separator2,
|
|
2533
|
+
{
|
|
2534
|
+
ref,
|
|
2535
|
+
className: cn("bg-actionBar-divider h-6", className),
|
|
2536
|
+
orientation: "vertical",
|
|
2537
|
+
...props
|
|
2538
|
+
}
|
|
2539
|
+
);
|
|
2540
|
+
});
|
|
2541
|
+
ActionBarDivider.displayName = "ActionBarDivider";
|
|
2542
|
+
var ActionBarContent = React8.forwardRef(({ className, children, portal = false, ...props }, ref) => {
|
|
2543
|
+
const Comp = portal ? ActionBarPortal : React8.Fragment;
|
|
2544
|
+
return /* @__PURE__ */ jsx(Comp, { children: /* @__PURE__ */ jsxs(
|
|
2545
|
+
DialogPrimitive.Content,
|
|
2546
|
+
{
|
|
2547
|
+
ref,
|
|
2548
|
+
onInteractOutside: (e) => e.preventDefault(),
|
|
2549
|
+
className: cn(
|
|
2550
|
+
"fixed left-1/2 bottom-[24px] z-50 -translate-x-1/2",
|
|
2551
|
+
"flex items-center justify-items-center rounded-full shadow-lg shadow-actionBar-shadow",
|
|
2552
|
+
"data-[state=open]:animate-slide-up-center data-[state=closed]:animate-slide-down-center",
|
|
2553
|
+
"bg-button-primary-background-default",
|
|
2554
|
+
"overflow-hidden",
|
|
2555
|
+
className
|
|
2556
|
+
),
|
|
2557
|
+
...props,
|
|
2558
|
+
children: [
|
|
2559
|
+
/* @__PURE__ */ jsx(DialogPrimitive.Title, { className: "nebula-ds sr-only" }),
|
|
2560
|
+
children
|
|
2561
|
+
]
|
|
2562
|
+
}
|
|
2563
|
+
) });
|
|
2564
|
+
});
|
|
2565
|
+
ActionBarContent.displayName = "ActionBarContent";
|
|
2307
2566
|
|
|
2308
2567
|
// src/tailwind.ts
|
|
2309
2568
|
function content({ base = "./" } = {}) {
|
|
@@ -2326,11 +2585,13 @@ lucide-react/dist/esm/icons/chevron-left.js:
|
|
|
2326
2585
|
lucide-react/dist/esm/icons/chevron-right.js:
|
|
2327
2586
|
lucide-react/dist/esm/icons/chevrons-left.js:
|
|
2328
2587
|
lucide-react/dist/esm/icons/chevrons-right.js:
|
|
2588
|
+
lucide-react/dist/esm/icons/circle-check-big.js:
|
|
2329
2589
|
lucide-react/dist/esm/icons/circle-x.js:
|
|
2330
2590
|
lucide-react/dist/esm/icons/circle.js:
|
|
2331
2591
|
lucide-react/dist/esm/icons/ellipsis.js:
|
|
2332
2592
|
lucide-react/dist/esm/icons/eye-off.js:
|
|
2333
2593
|
lucide-react/dist/esm/icons/eye.js:
|
|
2594
|
+
lucide-react/dist/esm/icons/info.js:
|
|
2334
2595
|
lucide-react/dist/esm/icons/minus.js:
|
|
2335
2596
|
lucide-react/dist/esm/icons/x.js:
|
|
2336
2597
|
lucide-react/dist/esm/lucide-react.js:
|
|
@@ -2342,4 +2603,4 @@ lucide-react/dist/esm/lucide-react.js:
|
|
|
2342
2603
|
*)
|
|
2343
2604
|
*/
|
|
2344
2605
|
|
|
2345
|
-
export { Accordion, AccordionContent, AccordionDescription, AccordionItem, AccordionTitle, AccordionTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Badge, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Checkbox, StyledCreatable as Creatable, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, InputText, Label, NebulaI18nProvider, Pagination, Popover, PopoverContent, PopoverTrigger, StyledSelect as Select, Separator2 as Separator, Space, SpaceDirectionEnum, SpaceSizeEnum, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Tooltip, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, getNebulaLanguage, messages7 as messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, useNebulaI18n };
|
|
2606
|
+
export { Accordion, AccordionContent, AccordionDescription, AccordionItem, AccordionTitle, AccordionTrigger, ActionBar, ActionBarButton, ActionBarClose, ActionBarContent, ActionBarDivider, ActionBarPortal, ActionBarTrigger, Alert, AlertButton, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle, AlertDialogTrigger, AlertTitle, StyledAsync as Async, StyledAsyncCreatable as AsyncCreatable, Badge, Box, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Checkbox, StyledCreatable as Creatable, Dialog, DialogBody, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, InputText, Label, NebulaI18nProvider, Pagination, Popover, PopoverContent, PopoverTrigger, StyledSelect as Select, Separator2 as Separator, Space, SpaceDirectionEnum, SpaceSizeEnum, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Tag, Toaster, Tooltip, alertVariants, badgeSizeEnum, badgeVariantEnum, buttonSizeEnum, buttonVariantEnum, buttonVariantsConfig, getNebulaLanguage, messages7 as messages, separatorVariants, setNebulaLanguage, tagVariantsEnum, tailwind, toast, useNebulaI18n };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ikatec/nebula-react",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "React components",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -52,6 +52,7 @@
|
|
|
52
52
|
"@radix-ui/react-tooltip": "^1.2.6",
|
|
53
53
|
"class-variance-authority": "^0.7.1",
|
|
54
54
|
"react-select": "^5.10.1",
|
|
55
|
+
"sonner": "^2.0.5",
|
|
55
56
|
"tailwind-merge": "^2.6.0"
|
|
56
57
|
},
|
|
57
58
|
"peerDependencies": {
|