@syscore/ui-library 1.9.1 → 1.10.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/client/components/ui/dialog.tsx +25 -21
- package/client/components/ui/tag.tsx +16 -3
- package/client/global.css +17 -27
- package/client/lib/concept-icons.ts +16 -0
- package/client/ui/Dialog.stories.tsx +106 -0
- package/client/ui/Panel.stories.tsx +1 -16
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +110 -75
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -72,8 +72,10 @@ import { CommandItem } from '../client/components/ui/command';
|
|
|
72
72
|
import { CommandList } from '../client/components/ui/command';
|
|
73
73
|
import { CommandSeparator } from '../client/components/ui/command';
|
|
74
74
|
import { CommandShortcut } from '../client/components/ui/command';
|
|
75
|
+
import { CONCEPT_ICONS } from '../client/lib/concept-icons';
|
|
75
76
|
import { ConceptColor } from '../client/components/icons/ConceptIcons';
|
|
76
77
|
import { conceptColors } from '../client/lib/concept-colors';
|
|
78
|
+
import { conceptOrder } from '../client/lib/concept-icons';
|
|
77
79
|
import { ContextMenu } from '../client/components/ui/context-menu';
|
|
78
80
|
import { ContextMenuCheckboxItem } from '../client/components/ui/context-menu';
|
|
79
81
|
import { ContextMenuContent } from '../client/components/ui/context-menu';
|
|
@@ -478,10 +480,14 @@ export { CommandSeparator }
|
|
|
478
480
|
|
|
479
481
|
export { CommandShortcut }
|
|
480
482
|
|
|
483
|
+
export { CONCEPT_ICONS }
|
|
484
|
+
|
|
481
485
|
export { ConceptColor }
|
|
482
486
|
|
|
483
487
|
export { conceptColors }
|
|
484
488
|
|
|
489
|
+
export { conceptOrder }
|
|
490
|
+
|
|
485
491
|
export { ContextMenu }
|
|
486
492
|
|
|
487
493
|
export { ContextMenuCheckboxItem }
|
package/dist/index.es.js
CHANGED
|
@@ -8,7 +8,7 @@ import { cva } from "class-variance-authority";
|
|
|
8
8
|
import * as AspectRatioPrimitive from "@radix-ui/react-aspect-ratio";
|
|
9
9
|
import * as SeparatorPrimitive from "@radix-ui/react-separator";
|
|
10
10
|
import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
|
|
11
|
-
import { GripVertical, X as X$1, PanelLeft, Check, Circle, Dot, ChevronLeft, ChevronRight,
|
|
11
|
+
import { GripVertical, X as X$1, PanelLeft, Check, Circle, Dot, ChevronLeft, ChevronRight, Search, MoreHorizontal, ChevronDown, ArrowLeft, ArrowRight } from "lucide-react";
|
|
12
12
|
import * as ResizablePrimitive from "react-resizable-panels";
|
|
13
13
|
import { Slot } from "@radix-ui/react-slot";
|
|
14
14
|
import * as SheetPrimitive from "@radix-ui/react-dialog";
|
|
@@ -2276,6 +2276,50 @@ function Calendar({
|
|
|
2276
2276
|
);
|
|
2277
2277
|
}
|
|
2278
2278
|
Calendar.displayName = "Calendar";
|
|
2279
|
+
const UtilityClose = ({ className }) => {
|
|
2280
|
+
return /* @__PURE__ */ jsx(
|
|
2281
|
+
"div",
|
|
2282
|
+
{
|
|
2283
|
+
className: cn(
|
|
2284
|
+
"size-4 flex items-center justify-center text-gray-500",
|
|
2285
|
+
className
|
|
2286
|
+
),
|
|
2287
|
+
children: /* @__PURE__ */ jsxs(
|
|
2288
|
+
"svg",
|
|
2289
|
+
{
|
|
2290
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2291
|
+
width: "12",
|
|
2292
|
+
height: "12",
|
|
2293
|
+
viewBox: "0 0 12 12",
|
|
2294
|
+
fill: "none",
|
|
2295
|
+
className: cn("size-3 text-inherit"),
|
|
2296
|
+
children: [
|
|
2297
|
+
/* @__PURE__ */ jsx(
|
|
2298
|
+
"path",
|
|
2299
|
+
{
|
|
2300
|
+
d: "M10.8002 1.19995L1.2002 10.8",
|
|
2301
|
+
stroke: "currentColor",
|
|
2302
|
+
strokeWidth: "1.5",
|
|
2303
|
+
strokeLinecap: "round",
|
|
2304
|
+
strokeLinejoin: "round"
|
|
2305
|
+
}
|
|
2306
|
+
),
|
|
2307
|
+
/* @__PURE__ */ jsx(
|
|
2308
|
+
"path",
|
|
2309
|
+
{
|
|
2310
|
+
d: "M1.2002 1.19995L10.8002 10.8",
|
|
2311
|
+
stroke: "currentColor",
|
|
2312
|
+
strokeWidth: "1.5",
|
|
2313
|
+
strokeLinecap: "round",
|
|
2314
|
+
strokeLinejoin: "round"
|
|
2315
|
+
}
|
|
2316
|
+
)
|
|
2317
|
+
]
|
|
2318
|
+
}
|
|
2319
|
+
)
|
|
2320
|
+
}
|
|
2321
|
+
);
|
|
2322
|
+
};
|
|
2279
2323
|
function Dialog({
|
|
2280
2324
|
...props
|
|
2281
2325
|
}) {
|
|
@@ -2298,6 +2342,7 @@ function DialogClose({
|
|
|
2298
2342
|
}
|
|
2299
2343
|
function DialogOverlay({
|
|
2300
2344
|
className,
|
|
2345
|
+
children,
|
|
2301
2346
|
...props
|
|
2302
2347
|
}) {
|
|
2303
2348
|
return /* @__PURE__ */ jsx(
|
|
@@ -2305,7 +2350,8 @@ function DialogOverlay({
|
|
|
2305
2350
|
{
|
|
2306
2351
|
"data-slot": "dialog-overlay",
|
|
2307
2352
|
className: cn("dialog-overlay", className),
|
|
2308
|
-
...props
|
|
2353
|
+
...props,
|
|
2354
|
+
children
|
|
2309
2355
|
}
|
|
2310
2356
|
);
|
|
2311
2357
|
}
|
|
@@ -2315,31 +2361,28 @@ function DialogContent({
|
|
|
2315
2361
|
showCloseButton = true,
|
|
2316
2362
|
...props
|
|
2317
2363
|
}) {
|
|
2318
|
-
return /* @__PURE__ */
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
children:
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
}
|
|
2341
|
-
)
|
|
2342
|
-
] });
|
|
2364
|
+
return /* @__PURE__ */ jsx(DialogPortal, { "data-slot": "dialog-portal", children: /* @__PURE__ */ jsx(DialogOverlay, { children: /* @__PURE__ */ jsxs(
|
|
2365
|
+
SheetPrimitive.Content,
|
|
2366
|
+
{
|
|
2367
|
+
"data-slot": "dialog-content",
|
|
2368
|
+
className: cn("dialog-content", className),
|
|
2369
|
+
...props,
|
|
2370
|
+
children: [
|
|
2371
|
+
/* @__PURE__ */ jsx("div", { className: "dialog-content-inner", children }),
|
|
2372
|
+
showCloseButton && /* @__PURE__ */ jsxs(
|
|
2373
|
+
SheetPrimitive.Close,
|
|
2374
|
+
{
|
|
2375
|
+
"data-slot": "dialog-close",
|
|
2376
|
+
className: "dialog-close",
|
|
2377
|
+
children: [
|
|
2378
|
+
/* @__PURE__ */ jsx(UtilityClose, {}),
|
|
2379
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
2380
|
+
]
|
|
2381
|
+
}
|
|
2382
|
+
)
|
|
2383
|
+
]
|
|
2384
|
+
}
|
|
2385
|
+
) }) });
|
|
2343
2386
|
}
|
|
2344
2387
|
function DialogHeader({ className, ...props }) {
|
|
2345
2388
|
return /* @__PURE__ */ jsx(
|
|
@@ -2369,7 +2412,7 @@ function DialogTitle({
|
|
|
2369
2412
|
SheetPrimitive.Title,
|
|
2370
2413
|
{
|
|
2371
2414
|
"data-slot": "dialog-title",
|
|
2372
|
-
className: cn("dialog-title heading-xxsmall", className),
|
|
2415
|
+
className: cn("dialog-title heading-xxsmall text-center", className),
|
|
2373
2416
|
...props
|
|
2374
2417
|
}
|
|
2375
2418
|
);
|
|
@@ -2560,10 +2603,17 @@ const Tag = React.forwardRef(
|
|
|
2560
2603
|
status,
|
|
2561
2604
|
colorScheme = "light",
|
|
2562
2605
|
className,
|
|
2606
|
+
minWidth,
|
|
2607
|
+
minHeight,
|
|
2563
2608
|
style,
|
|
2564
2609
|
onClick,
|
|
2565
2610
|
...props
|
|
2566
2611
|
}, ref) => {
|
|
2612
|
+
const mergedStyle = {
|
|
2613
|
+
minWidth,
|
|
2614
|
+
minHeight,
|
|
2615
|
+
...style
|
|
2616
|
+
};
|
|
2567
2617
|
if (status) {
|
|
2568
2618
|
const statusClass = getStatusClass(status, colorScheme);
|
|
2569
2619
|
return /* @__PURE__ */ jsx(
|
|
@@ -2572,7 +2622,7 @@ const Tag = React.forwardRef(
|
|
|
2572
2622
|
ref,
|
|
2573
2623
|
onClick,
|
|
2574
2624
|
className: cn("overline-medium", statusClass, className),
|
|
2575
|
-
style,
|
|
2625
|
+
style: mergedStyle,
|
|
2576
2626
|
...props,
|
|
2577
2627
|
children
|
|
2578
2628
|
}
|
|
@@ -2585,7 +2635,7 @@ const Tag = React.forwardRef(
|
|
|
2585
2635
|
ref,
|
|
2586
2636
|
onClick,
|
|
2587
2637
|
className: cn("tag-code", className),
|
|
2588
|
-
style,
|
|
2638
|
+
style: mergedStyle,
|
|
2589
2639
|
...props,
|
|
2590
2640
|
children: /* @__PURE__ */ jsx("span", { className: "number-small font-semibold", style: { color: "inherit" }, children })
|
|
2591
2641
|
}
|
|
@@ -2601,7 +2651,7 @@ const Tag = React.forwardRef(
|
|
|
2601
2651
|
active ? "tag-general--active" : "tag-general--inactive",
|
|
2602
2652
|
className
|
|
2603
2653
|
),
|
|
2604
|
-
style,
|
|
2654
|
+
style: mergedStyle,
|
|
2605
2655
|
...props,
|
|
2606
2656
|
children
|
|
2607
2657
|
}
|
|
@@ -5478,6 +5528,33 @@ const IconConceptInnovation = ({
|
|
|
5478
5528
|
}
|
|
5479
5529
|
);
|
|
5480
5530
|
};
|
|
5531
|
+
const CONCEPT_ICONS = {
|
|
5532
|
+
air: IconConceptAir,
|
|
5533
|
+
water: IconConceptWater,
|
|
5534
|
+
nourishment: IconConceptNourishment,
|
|
5535
|
+
light: IconConceptLight,
|
|
5536
|
+
movement: IconConceptMovement,
|
|
5537
|
+
thermal: IconConceptThermalComfort,
|
|
5538
|
+
"thermal-comfort": IconConceptThermalComfort,
|
|
5539
|
+
sound: IconConceptSound,
|
|
5540
|
+
materials: IconConceptMaterials,
|
|
5541
|
+
community: IconConceptCommunity,
|
|
5542
|
+
mind: IconConceptMind,
|
|
5543
|
+
innovation: IconConceptInnovation
|
|
5544
|
+
};
|
|
5545
|
+
const conceptOrder = [
|
|
5546
|
+
"air",
|
|
5547
|
+
"water",
|
|
5548
|
+
"nourishment",
|
|
5549
|
+
"light",
|
|
5550
|
+
"movement",
|
|
5551
|
+
"thermal-comfort",
|
|
5552
|
+
"sound",
|
|
5553
|
+
"materials",
|
|
5554
|
+
"community",
|
|
5555
|
+
"mind",
|
|
5556
|
+
"innovation"
|
|
5557
|
+
];
|
|
5481
5558
|
function UtilityAccordion({ className }) {
|
|
5482
5559
|
return /* @__PURE__ */ jsx(
|
|
5483
5560
|
"svg",
|
|
@@ -5549,50 +5626,6 @@ const UtilityClassification = ({
|
|
|
5549
5626
|
}
|
|
5550
5627
|
);
|
|
5551
5628
|
};
|
|
5552
|
-
const UtilityClose = ({ className }) => {
|
|
5553
|
-
return /* @__PURE__ */ jsx(
|
|
5554
|
-
"div",
|
|
5555
|
-
{
|
|
5556
|
-
className: cn(
|
|
5557
|
-
"size-4 flex items-center justify-center text-gray-500",
|
|
5558
|
-
className
|
|
5559
|
-
),
|
|
5560
|
-
children: /* @__PURE__ */ jsxs(
|
|
5561
|
-
"svg",
|
|
5562
|
-
{
|
|
5563
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5564
|
-
width: "12",
|
|
5565
|
-
height: "12",
|
|
5566
|
-
viewBox: "0 0 12 12",
|
|
5567
|
-
fill: "none",
|
|
5568
|
-
className: cn("size-3 text-inherit"),
|
|
5569
|
-
children: [
|
|
5570
|
-
/* @__PURE__ */ jsx(
|
|
5571
|
-
"path",
|
|
5572
|
-
{
|
|
5573
|
-
d: "M10.8002 1.19995L1.2002 10.8",
|
|
5574
|
-
stroke: "currentColor",
|
|
5575
|
-
strokeWidth: "1.5",
|
|
5576
|
-
strokeLinecap: "round",
|
|
5577
|
-
strokeLinejoin: "round"
|
|
5578
|
-
}
|
|
5579
|
-
),
|
|
5580
|
-
/* @__PURE__ */ jsx(
|
|
5581
|
-
"path",
|
|
5582
|
-
{
|
|
5583
|
-
d: "M1.2002 1.19995L10.8002 10.8",
|
|
5584
|
-
stroke: "currentColor",
|
|
5585
|
-
strokeWidth: "1.5",
|
|
5586
|
-
strokeLinecap: "round",
|
|
5587
|
-
strokeLinejoin: "round"
|
|
5588
|
-
}
|
|
5589
|
-
)
|
|
5590
|
-
]
|
|
5591
|
-
}
|
|
5592
|
-
)
|
|
5593
|
-
}
|
|
5594
|
-
);
|
|
5595
|
-
};
|
|
5596
5629
|
const UtilityCompare = ({
|
|
5597
5630
|
className
|
|
5598
5631
|
}) => {
|
|
@@ -9601,6 +9634,7 @@ export {
|
|
|
9601
9634
|
BreadcrumbPage,
|
|
9602
9635
|
BreadcrumbSeparator,
|
|
9603
9636
|
Button,
|
|
9637
|
+
CONCEPT_ICONS,
|
|
9604
9638
|
Calendar,
|
|
9605
9639
|
Card,
|
|
9606
9640
|
CardContent,
|
|
@@ -9878,6 +9912,7 @@ export {
|
|
|
9878
9912
|
capitalize,
|
|
9879
9913
|
cn,
|
|
9880
9914
|
conceptColors,
|
|
9915
|
+
conceptOrder,
|
|
9881
9916
|
navigationMenuTriggerStyle,
|
|
9882
9917
|
useAccordion,
|
|
9883
9918
|
useAccordionItem,
|