@syscore/ui-library 1.15.1 → 1.15.3
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 +19 -2
- package/client/components/ui/section-badge.tsx +22 -0
- package/client/components/ui/typography.tsx +80 -80
- package/client/global.css +32 -0
- package/client/ui/SectionBadge.stories.tsx +28 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +29 -11
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -249,6 +249,7 @@ import { SealWellCommunity } from '../client/components/icons/seals';
|
|
|
249
249
|
import { SealWellResidence } from '../client/components/icons/seals';
|
|
250
250
|
import { SealWorksWithWell } from '../client/components/icons/seals';
|
|
251
251
|
import { SearchField } from '../client/components/ui/search';
|
|
252
|
+
import { SectionBadge } from '../client/components/ui/section-badge';
|
|
252
253
|
import { Select } from '../client/components/ui/select';
|
|
253
254
|
import { SelectContent } from '../client/components/ui/select';
|
|
254
255
|
import { SelectGroup } from '../client/components/ui/select';
|
|
@@ -861,6 +862,8 @@ export { SealWorksWithWell }
|
|
|
861
862
|
|
|
862
863
|
export { SearchField }
|
|
863
864
|
|
|
865
|
+
export { SectionBadge }
|
|
866
|
+
|
|
864
867
|
export { Select }
|
|
865
868
|
|
|
866
869
|
export { SelectContent }
|
package/dist/index.es.js
CHANGED
|
@@ -453,6 +453,7 @@ const AspectRatio = AspectRatioPrimitive.Root;
|
|
|
453
453
|
const typographyVariants = cva("", {
|
|
454
454
|
variants: {
|
|
455
455
|
variant: {
|
|
456
|
+
"heading-xlarge": "heading-xlarge",
|
|
456
457
|
"heading-large": "heading-large",
|
|
457
458
|
"heading-medium": "heading-medium",
|
|
458
459
|
"heading-small": "heading-small",
|
|
@@ -473,6 +474,7 @@ const typographyVariants = cva("", {
|
|
|
473
474
|
}
|
|
474
475
|
});
|
|
475
476
|
const defaultElementMap = {
|
|
477
|
+
"heading-xlarge": "h1",
|
|
476
478
|
"heading-large": "h1",
|
|
477
479
|
"heading-medium": "h2",
|
|
478
480
|
"heading-small": "h3",
|
|
@@ -503,14 +505,7 @@ const Text = React.forwardRef(
|
|
|
503
505
|
Text.displayName = "Text";
|
|
504
506
|
const List = React.forwardRef(
|
|
505
507
|
({ className, ...props }, ref) => {
|
|
506
|
-
return /* @__PURE__ */ jsx(
|
|
507
|
-
"ul",
|
|
508
|
-
{
|
|
509
|
-
ref,
|
|
510
|
-
className: cn("typography-list", className),
|
|
511
|
-
...props
|
|
512
|
-
}
|
|
513
|
-
);
|
|
508
|
+
return /* @__PURE__ */ jsx("ul", { ref, className: cn("typography-list", className), ...props });
|
|
514
509
|
}
|
|
515
510
|
);
|
|
516
511
|
List.displayName = "List";
|
|
@@ -2670,6 +2665,21 @@ const SearchField = ({
|
|
|
2670
2665
|
) })
|
|
2671
2666
|
] });
|
|
2672
2667
|
};
|
|
2668
|
+
function SectionBadge({
|
|
2669
|
+
children,
|
|
2670
|
+
className
|
|
2671
|
+
}) {
|
|
2672
|
+
return /* @__PURE__ */ jsx(
|
|
2673
|
+
"span",
|
|
2674
|
+
{
|
|
2675
|
+
className: cn(
|
|
2676
|
+
"section-badge overline-large",
|
|
2677
|
+
className
|
|
2678
|
+
),
|
|
2679
|
+
children
|
|
2680
|
+
}
|
|
2681
|
+
);
|
|
2682
|
+
}
|
|
2673
2683
|
const getStatusClass = (status, colorScheme = "light") => {
|
|
2674
2684
|
return `status-tag tag--${colorScheme}-${status}`;
|
|
2675
2685
|
};
|
|
@@ -6809,9 +6819,16 @@ const UtilityTrash = ({ className }) => {
|
|
|
6809
6819
|
}
|
|
6810
6820
|
);
|
|
6811
6821
|
};
|
|
6822
|
+
const VARIANT_COLORS = {
|
|
6823
|
+
low: { fill: "#50E7CA", stroke: "#1BC5A3" },
|
|
6824
|
+
medium: { fill: "#DCADD2", stroke: "#AA6A9B" },
|
|
6825
|
+
high: { fill: "#F0AA99", stroke: "#E67357" }
|
|
6826
|
+
};
|
|
6812
6827
|
const UtilityTriangleInfo = ({
|
|
6813
|
-
className
|
|
6828
|
+
className,
|
|
6829
|
+
variant: variant2 = "low"
|
|
6814
6830
|
}) => {
|
|
6831
|
+
const { fill, stroke } = VARIANT_COLORS[variant2];
|
|
6815
6832
|
return /* @__PURE__ */ jsx(
|
|
6816
6833
|
"svg",
|
|
6817
6834
|
{
|
|
@@ -6825,8 +6842,8 @@ const UtilityTriangleInfo = ({
|
|
|
6825
6842
|
"path",
|
|
6826
6843
|
{
|
|
6827
6844
|
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",
|
|
6828
|
-
fill
|
|
6829
|
-
stroke
|
|
6845
|
+
fill,
|
|
6846
|
+
stroke,
|
|
6830
6847
|
strokeWidth: "1.5",
|
|
6831
6848
|
strokeLinecap: "round",
|
|
6832
6849
|
strokeLinejoin: "round"
|
|
@@ -12990,6 +13007,7 @@ export {
|
|
|
12990
13007
|
SealWellResidence,
|
|
12991
13008
|
SealWorksWithWell,
|
|
12992
13009
|
SearchField,
|
|
13010
|
+
SectionBadge,
|
|
12993
13011
|
Select,
|
|
12994
13012
|
SelectContent,
|
|
12995
13013
|
SelectGroup,
|