@syscore/ui-library 1.9.0 → 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/icons/UtilityTriangleInfo.tsx +30 -0
- 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 +9 -0
- package/dist/index.es.js +137 -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';
|
|
@@ -323,6 +325,7 @@ import { UtilitySort } from '../client/components/icons/UtilitySort';
|
|
|
323
325
|
import { UtilityTarget } from '../client/components/icons/UtilityTarget';
|
|
324
326
|
import { UtilityTargetActive } from '../client/components/icons/UtilityTargetActive';
|
|
325
327
|
import { UtilityText } from '../client/components/icons/UtilityText';
|
|
328
|
+
import { UtilityTriangleInfo } from '../client/components/icons/UtilityTriangleInfo';
|
|
326
329
|
import { WatermarkMemberOrg } from '../client/components/icons/WatermarkMemberOrg';
|
|
327
330
|
import { WaterMarkWellProjects } from '../client/components/icons/WaterMarkWellProjects';
|
|
328
331
|
import { WaterMarkWWWProducts } from '../client/components/icons/WaterMarkWWWProducts';
|
|
@@ -477,10 +480,14 @@ export { CommandSeparator }
|
|
|
477
480
|
|
|
478
481
|
export { CommandShortcut }
|
|
479
482
|
|
|
483
|
+
export { CONCEPT_ICONS }
|
|
484
|
+
|
|
480
485
|
export { ConceptColor }
|
|
481
486
|
|
|
482
487
|
export { conceptColors }
|
|
483
488
|
|
|
489
|
+
export { conceptOrder }
|
|
490
|
+
|
|
484
491
|
export { ContextMenu }
|
|
485
492
|
|
|
486
493
|
export { ContextMenuCheckboxItem }
|
|
@@ -979,6 +986,8 @@ export { UtilityTargetActive }
|
|
|
979
986
|
|
|
980
987
|
export { UtilityText }
|
|
981
988
|
|
|
989
|
+
export { UtilityTriangleInfo }
|
|
990
|
+
|
|
982
991
|
export { WatermarkMemberOrg }
|
|
983
992
|
|
|
984
993
|
export { WaterMarkWellProjects }
|
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
|
}) => {
|
|
@@ -6565,6 +6598,32 @@ function UtilityRevisionsHide({ className }) {
|
|
|
6565
6598
|
}
|
|
6566
6599
|
);
|
|
6567
6600
|
}
|
|
6601
|
+
const UtilityTriangleInfo = ({
|
|
6602
|
+
className
|
|
6603
|
+
}) => {
|
|
6604
|
+
return /* @__PURE__ */ jsx(
|
|
6605
|
+
"svg",
|
|
6606
|
+
{
|
|
6607
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6608
|
+
width: "14",
|
|
6609
|
+
height: "13",
|
|
6610
|
+
viewBox: "0 0 14 13",
|
|
6611
|
+
fill: "none",
|
|
6612
|
+
className: cn(className),
|
|
6613
|
+
children: /* @__PURE__ */ jsx(
|
|
6614
|
+
"path",
|
|
6615
|
+
{
|
|
6616
|
+
d: "M7.78821 1.348C7.6827 1.16611 7.53127 1.01514 7.34906 0.910189C7.16685 0.80524 6.96027 0.75 6.75 0.75C6.53973 0.75 6.33315 0.80524 6.15094 0.910189C5.96873 1.01514 5.8173 1.16611 5.71179 1.348L0.910803 9.74972C0.805511 9.93209 0.750054 10.139 0.75 10.3495C0.749946 10.5601 0.805297 10.767 0.910495 10.9494C1.01569 11.1319 1.16703 11.2834 1.34932 11.3888C1.53161 11.4943 1.73843 11.5499 1.94902 11.5501H11.551C11.7616 11.5499 11.9684 11.4943 12.1507 11.3888C12.333 11.2834 12.4843 11.1319 12.5895 10.9494C12.6947 10.767 12.7501 10.5601 12.75 10.3495C12.7499 10.139 12.6945 9.93209 12.5892 9.74972L7.78821 1.348Z",
|
|
6617
|
+
fill: "#50E7CA",
|
|
6618
|
+
stroke: "#1BC5A3",
|
|
6619
|
+
strokeWidth: "1.5",
|
|
6620
|
+
strokeLinecap: "round",
|
|
6621
|
+
strokeLinejoin: "round"
|
|
6622
|
+
}
|
|
6623
|
+
)
|
|
6624
|
+
}
|
|
6625
|
+
);
|
|
6626
|
+
};
|
|
6568
6627
|
const SealWell = ({ className }) => {
|
|
6569
6628
|
return /* @__PURE__ */ jsxs(
|
|
6570
6629
|
"svg",
|
|
@@ -9575,6 +9634,7 @@ export {
|
|
|
9575
9634
|
BreadcrumbPage,
|
|
9576
9635
|
BreadcrumbSeparator,
|
|
9577
9636
|
Button,
|
|
9637
|
+
CONCEPT_ICONS,
|
|
9578
9638
|
Calendar,
|
|
9579
9639
|
Card,
|
|
9580
9640
|
CardContent,
|
|
@@ -9841,6 +9901,7 @@ export {
|
|
|
9841
9901
|
UtilityTarget,
|
|
9842
9902
|
UtilityTargetActive,
|
|
9843
9903
|
UtilityText,
|
|
9904
|
+
UtilityTriangleInfo,
|
|
9844
9905
|
WaterMarkWWWProducts,
|
|
9845
9906
|
WaterMarkWellProjects,
|
|
9846
9907
|
WatermarkMemberOrg,
|
|
@@ -9851,6 +9912,7 @@ export {
|
|
|
9851
9912
|
capitalize,
|
|
9852
9913
|
cn,
|
|
9853
9914
|
conceptColors,
|
|
9915
|
+
conceptOrder,
|
|
9854
9916
|
navigationMenuTriggerStyle,
|
|
9855
9917
|
useAccordion,
|
|
9856
9918
|
useAccordionItem,
|