@syscore/ui-library 2.0.0-beta-publish-workflow-beta.6 → 2.0.0-beta-publish-workflow-beta.7
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/StandardLogo.tsx +16 -0
- package/client/components/icons/seals/IWBILogo.tsx +16 -3
- package/client/components/ui/card.tsx +26 -12
- package/client/components/ui/copy.tsx +3 -2
- package/client/components/ui/dialog.tsx +23 -3
- package/client/components/ui/hero-split-image.tsx +15 -0
- package/client/components/ui/price-tag.tsx +21 -0
- package/client/components/ui/section-badge.tsx +3 -0
- package/client/components/ui/standard-navigation.tsx +16 -3
- package/client/components/ui/stepper.tsx +14 -0
- package/client/global.css +241 -11
- package/client/ui/Dialog.stories.tsx +26 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.es.js +157 -46
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -255,6 +255,7 @@ import { GridSpan } from '../client/components/ui/layout';
|
|
|
255
255
|
import { GridSpanProps } from '../client/components/ui/layout';
|
|
256
256
|
import { HeightContainer } from '../client/components/ui/height-container';
|
|
257
257
|
import { HeroSection } from '../client/components/ui/hero-section';
|
|
258
|
+
import { HeroSplitImage } from '../client/components/ui/hero-split-image';
|
|
258
259
|
import { Hide } from '../client/components/ui/layout';
|
|
259
260
|
import { HideProps } from '../client/components/ui/layout';
|
|
260
261
|
import { HoverCard } from '../client/components/ui/hover-card';
|
|
@@ -372,6 +373,7 @@ import { PopoverContent } from '../client/components/ui/popover';
|
|
|
372
373
|
import { PopoverTrigger } from '../client/components/ui/popover';
|
|
373
374
|
import { Positioned } from '../client/components/ui/layout';
|
|
374
375
|
import { PositionedProps } from '../client/components/ui/layout';
|
|
376
|
+
import { PriceTag } from '../client/components/ui/price-tag';
|
|
375
377
|
import { ProfileAvatar } from '../client/components/ui/profile-avatar';
|
|
376
378
|
import { ProfileRow } from '../client/components/ui/profile-avatar';
|
|
377
379
|
import { Progress } from '../client/components/ui/progress';
|
|
@@ -1115,6 +1117,8 @@ export { HeightContainer }
|
|
|
1115
1117
|
|
|
1116
1118
|
export { HeroSection }
|
|
1117
1119
|
|
|
1120
|
+
export { HeroSplitImage }
|
|
1121
|
+
|
|
1118
1122
|
export { Hide }
|
|
1119
1123
|
|
|
1120
1124
|
export { HideProps }
|
|
@@ -1349,6 +1353,8 @@ export { Positioned }
|
|
|
1349
1353
|
|
|
1350
1354
|
export { PositionedProps }
|
|
1351
1355
|
|
|
1356
|
+
export { PriceTag }
|
|
1357
|
+
|
|
1352
1358
|
export { ProfileAvatar }
|
|
1353
1359
|
|
|
1354
1360
|
export { ProfileRow }
|
package/dist/index.es.js
CHANGED
|
@@ -1195,18 +1195,23 @@ const cardVariants = cva("card", {
|
|
|
1195
1195
|
elevated: "card--elevated",
|
|
1196
1196
|
filled: "card--filled",
|
|
1197
1197
|
interactive: "card--interactive"
|
|
1198
|
+
},
|
|
1199
|
+
padding: {
|
|
1200
|
+
default: "",
|
|
1201
|
+
spacious: "card--padding-spacious"
|
|
1198
1202
|
}
|
|
1199
1203
|
},
|
|
1200
1204
|
defaultVariants: {
|
|
1201
|
-
variant: "default"
|
|
1205
|
+
variant: "default",
|
|
1206
|
+
padding: "default"
|
|
1202
1207
|
}
|
|
1203
1208
|
});
|
|
1204
1209
|
const Card = React.forwardRef(
|
|
1205
|
-
({ className, variant, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1210
|
+
({ className, variant, padding, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1206
1211
|
"div",
|
|
1207
1212
|
{
|
|
1208
1213
|
ref,
|
|
1209
|
-
className: cn(cardVariants({ variant }), className),
|
|
1214
|
+
className: cn(cardVariants({ variant, padding }), className),
|
|
1210
1215
|
...props
|
|
1211
1216
|
}
|
|
1212
1217
|
)
|
|
@@ -1232,14 +1237,21 @@ const CardDescription = React.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
1232
1237
|
}
|
|
1233
1238
|
));
|
|
1234
1239
|
CardDescription.displayName = "CardDescription";
|
|
1235
|
-
const CardContent = React.forwardRef(
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1240
|
+
const CardContent = React.forwardRef(
|
|
1241
|
+
({ className, tinted = false, pinBottom = false, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1242
|
+
"div",
|
|
1243
|
+
{
|
|
1244
|
+
ref,
|
|
1245
|
+
className: cn(
|
|
1246
|
+
"card-content body-base",
|
|
1247
|
+
tinted && "card-content--tinted",
|
|
1248
|
+
pinBottom && "card-content--pin-bottom",
|
|
1249
|
+
className
|
|
1250
|
+
),
|
|
1251
|
+
...props
|
|
1252
|
+
}
|
|
1253
|
+
)
|
|
1254
|
+
);
|
|
1243
1255
|
CardContent.displayName = "CardContent";
|
|
1244
1256
|
const CardFooter = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
|
|
1245
1257
|
"div",
|
|
@@ -4605,38 +4617,62 @@ function DialogContent({
|
|
|
4605
4617
|
closeClassName,
|
|
4606
4618
|
children,
|
|
4607
4619
|
showCloseButton = true,
|
|
4620
|
+
size = "default",
|
|
4608
4621
|
...props
|
|
4609
4622
|
}) {
|
|
4610
|
-
return /* @__PURE__ */ jsx(DialogPortal, { "data-slot": "dialog-portal", children: /* @__PURE__ */ jsx(
|
|
4611
|
-
|
|
4623
|
+
return /* @__PURE__ */ jsx(DialogPortal, { "data-slot": "dialog-portal", children: /* @__PURE__ */ jsx(
|
|
4624
|
+
DialogOverlay,
|
|
4612
4625
|
{
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4626
|
+
className: cn(
|
|
4627
|
+
"overflow-y-auto",
|
|
4628
|
+
size === "fullscreen" && "dialog-overlay--fullscreen"
|
|
4629
|
+
),
|
|
4630
|
+
children: /* @__PURE__ */ jsx(
|
|
4631
|
+
SheetPrimitive.Content,
|
|
4632
|
+
{
|
|
4633
|
+
"data-slot": "dialog-content",
|
|
4634
|
+
className: cn(
|
|
4635
|
+
"dialog-content",
|
|
4636
|
+
size === "fullscreen" && "dialog-content--fullscreen",
|
|
4637
|
+
className
|
|
4638
|
+
),
|
|
4639
|
+
...props,
|
|
4640
|
+
children: /* @__PURE__ */ jsxs("div", { className: "dialog-content-wrapper", children: [
|
|
4641
|
+
/* @__PURE__ */ jsx(
|
|
4642
|
+
"div",
|
|
4643
|
+
{
|
|
4644
|
+
className: cn(
|
|
4645
|
+
"dialog-content-inner",
|
|
4646
|
+
size === "fullscreen" && "dialog-content-inner--fullscreen",
|
|
4647
|
+
innerClassName
|
|
4648
|
+
),
|
|
4649
|
+
children
|
|
4650
|
+
}
|
|
4651
|
+
),
|
|
4652
|
+
showCloseButton && /* @__PURE__ */ jsxs(
|
|
4653
|
+
SheetPrimitive.Close,
|
|
4654
|
+
{
|
|
4655
|
+
"data-slot": "dialog-close",
|
|
4656
|
+
className: "dialog-close",
|
|
4657
|
+
children: [
|
|
4658
|
+
/* @__PURE__ */ jsx(
|
|
4659
|
+
UtilityClose,
|
|
4660
|
+
{
|
|
4661
|
+
className: cn(
|
|
4662
|
+
"dialog-close-icon text-gray-400 hover:text-gray-600 transition-colors duration-200 ",
|
|
4663
|
+
closeClassName
|
|
4664
|
+
)
|
|
4665
|
+
}
|
|
4666
|
+
),
|
|
4667
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
4668
|
+
]
|
|
4669
|
+
}
|
|
4670
|
+
)
|
|
4671
|
+
] })
|
|
4672
|
+
}
|
|
4673
|
+
)
|
|
4638
4674
|
}
|
|
4639
|
-
) })
|
|
4675
|
+
) });
|
|
4640
4676
|
}
|
|
4641
4677
|
function DialogHeader({ className, ...props }) {
|
|
4642
4678
|
return /* @__PURE__ */ jsx(
|
|
@@ -4848,6 +4884,7 @@ const SearchField = ({
|
|
|
4848
4884
|
};
|
|
4849
4885
|
function SectionBadge({
|
|
4850
4886
|
children,
|
|
4887
|
+
size = "default",
|
|
4851
4888
|
className
|
|
4852
4889
|
}) {
|
|
4853
4890
|
return /* @__PURE__ */ jsx(
|
|
@@ -4855,6 +4892,7 @@ function SectionBadge({
|
|
|
4855
4892
|
{
|
|
4856
4893
|
className: cn(
|
|
4857
4894
|
"section-badge overline-large",
|
|
4895
|
+
size === "compact" && "section-badge--compact",
|
|
4858
4896
|
className
|
|
4859
4897
|
),
|
|
4860
4898
|
children
|
|
@@ -8280,6 +8318,16 @@ const CheckIcon = () => /* @__PURE__ */ jsx("svg", { width: "14", height: "14",
|
|
|
8280
8318
|
strokeLinejoin: "round"
|
|
8281
8319
|
}
|
|
8282
8320
|
) });
|
|
8321
|
+
const PlusIcon = () => /* @__PURE__ */ jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
8322
|
+
"path",
|
|
8323
|
+
{
|
|
8324
|
+
d: "M7 2.5V11.5M2.5 7H11.5",
|
|
8325
|
+
stroke: "currentColor",
|
|
8326
|
+
strokeWidth: "2",
|
|
8327
|
+
strokeLinecap: "round",
|
|
8328
|
+
strokeLinejoin: "round"
|
|
8329
|
+
}
|
|
8330
|
+
) });
|
|
8283
8331
|
const Stepper = React.forwardRef(
|
|
8284
8332
|
({
|
|
8285
8333
|
steps,
|
|
@@ -8331,7 +8379,7 @@ const Stepper = React.forwardRef(
|
|
|
8331
8379
|
isClickable && "stepper-indicator--clickable"
|
|
8332
8380
|
),
|
|
8333
8381
|
"aria-label": `Step ${index + 1}: ${step.title} (${status})`,
|
|
8334
|
-
children: status === "complete" ? /* @__PURE__ */ jsx(CheckIcon, {}) : /* @__PURE__ */ jsx("span", { className: "stepper-indicator-number", children: index + 1 })
|
|
8382
|
+
children: status === "complete" ? /* @__PURE__ */ jsx(CheckIcon, {}) : status === "current" ? /* @__PURE__ */ jsx(PlusIcon, {}) : /* @__PURE__ */ jsx("span", { className: "stepper-indicator-number", children: index + 1 })
|
|
8335
8383
|
}
|
|
8336
8384
|
),
|
|
8337
8385
|
!isLast && /* @__PURE__ */ jsx(
|
|
@@ -11845,12 +11893,21 @@ const SealWorksWithWell = ({
|
|
|
11845
11893
|
}
|
|
11846
11894
|
);
|
|
11847
11895
|
};
|
|
11848
|
-
const
|
|
11896
|
+
const SIZES = {
|
|
11897
|
+
default: { width: 277, height: 180 },
|
|
11898
|
+
medium: { width: 100, height: 65 },
|
|
11899
|
+
small: { width: 64, height: 42 }
|
|
11900
|
+
};
|
|
11901
|
+
const IWBILogo = ({
|
|
11902
|
+
className,
|
|
11903
|
+
size = "default"
|
|
11904
|
+
}) => {
|
|
11905
|
+
const { width, height } = SIZES[size];
|
|
11849
11906
|
return /* @__PURE__ */ jsxs(
|
|
11850
11907
|
"svg",
|
|
11851
11908
|
{
|
|
11852
|
-
width
|
|
11853
|
-
height
|
|
11909
|
+
width,
|
|
11910
|
+
height,
|
|
11854
11911
|
viewBox: "0 0 277 180",
|
|
11855
11912
|
fill: "none",
|
|
11856
11913
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -16430,8 +16487,22 @@ const X = ({ className = "", color = "#71747D" }) => {
|
|
|
16430
16487
|
};
|
|
16431
16488
|
const StandardLogo = ({
|
|
16432
16489
|
className = "",
|
|
16433
|
-
dark = false
|
|
16490
|
+
dark = false,
|
|
16491
|
+
variant = "standard"
|
|
16434
16492
|
}) => {
|
|
16493
|
+
if (variant === "well") {
|
|
16494
|
+
return /* @__PURE__ */ jsx(
|
|
16495
|
+
"span",
|
|
16496
|
+
{
|
|
16497
|
+
className: cn(
|
|
16498
|
+
"standard-logo-wordmark",
|
|
16499
|
+
dark ? "text-gray-700" : "text-white",
|
|
16500
|
+
className
|
|
16501
|
+
),
|
|
16502
|
+
children: "WELL"
|
|
16503
|
+
}
|
|
16504
|
+
);
|
|
16505
|
+
}
|
|
16435
16506
|
return /* @__PURE__ */ jsxs(
|
|
16436
16507
|
"svg",
|
|
16437
16508
|
{
|
|
@@ -16805,13 +16876,32 @@ const StandardNavigation = ({
|
|
|
16805
16876
|
}
|
|
16806
16877
|
)
|
|
16807
16878
|
] }),
|
|
16808
|
-
|
|
16879
|
+
navLinks.length > 0 ? /* @__PURE__ */ jsx("div", { className: "navigation-nav-container", children: /* @__PURE__ */ jsx("ul", { className: "navigation-nav-list", children: navLinks.map((item, index) => /* @__PURE__ */ jsxs(
|
|
16809
16880
|
"li",
|
|
16810
16881
|
{
|
|
16811
16882
|
className: "navigation-nav-item",
|
|
16812
16883
|
onMouseEnter: () => handleNavItemMouseEnter(index),
|
|
16813
16884
|
children: [
|
|
16814
|
-
item.href ? /* @__PURE__ */ jsx(
|
|
16885
|
+
item.href ? /* @__PURE__ */ jsx(
|
|
16886
|
+
NavLink,
|
|
16887
|
+
{
|
|
16888
|
+
href: item.href,
|
|
16889
|
+
className: cn(
|
|
16890
|
+
"navigation-nav-link",
|
|
16891
|
+
isStrategy && "navigation-nav-link--strategy"
|
|
16892
|
+
),
|
|
16893
|
+
children: item.label
|
|
16894
|
+
}
|
|
16895
|
+
) : /* @__PURE__ */ jsx(
|
|
16896
|
+
"span",
|
|
16897
|
+
{
|
|
16898
|
+
className: cn(
|
|
16899
|
+
"navigation-nav-link",
|
|
16900
|
+
isStrategy && "navigation-nav-link--strategy"
|
|
16901
|
+
),
|
|
16902
|
+
children: item.label
|
|
16903
|
+
}
|
|
16904
|
+
),
|
|
16815
16905
|
activeItem === index + 1 && /* @__PURE__ */ jsx(
|
|
16816
16906
|
motion.div,
|
|
16817
16907
|
{
|
|
@@ -17063,6 +17153,7 @@ const SectionHeading = React.forwardRef(
|
|
|
17063
17153
|
);
|
|
17064
17154
|
SectionHeading.displayName = "SectionHeading";
|
|
17065
17155
|
const sizeClass = {
|
|
17156
|
+
large: "body-large",
|
|
17066
17157
|
base: "body-base",
|
|
17067
17158
|
small: "body-small"
|
|
17068
17159
|
};
|
|
@@ -17648,6 +17739,24 @@ function ResourceThumbnail({
|
|
|
17648
17739
|
}
|
|
17649
17740
|
);
|
|
17650
17741
|
}
|
|
17742
|
+
const HeroSplitImage = React.forwardRef(
|
|
17743
|
+
({ src, alt = "" }, ref) => /* @__PURE__ */ jsx("span", { className: "hero-split-image-frame", children: /* @__PURE__ */ jsx("img", { ref, src, alt, className: "hero-split-image" }) })
|
|
17744
|
+
);
|
|
17745
|
+
HeroSplitImage.displayName = "HeroSplitImage";
|
|
17746
|
+
const PriceTag = React.forwardRef(
|
|
17747
|
+
({ amount, currency = "$", tone = "brand" }, ref) => /* @__PURE__ */ jsxs(
|
|
17748
|
+
"span",
|
|
17749
|
+
{
|
|
17750
|
+
ref,
|
|
17751
|
+
className: cn("price-tag", tone === "neutral" && "price-tag--neutral"),
|
|
17752
|
+
children: [
|
|
17753
|
+
currency,
|
|
17754
|
+
amount
|
|
17755
|
+
]
|
|
17756
|
+
}
|
|
17757
|
+
)
|
|
17758
|
+
);
|
|
17759
|
+
PriceTag.displayName = "PriceTag";
|
|
17651
17760
|
export {
|
|
17652
17761
|
Accordion,
|
|
17653
17762
|
AccordionContainer,
|
|
@@ -17857,6 +17966,7 @@ export {
|
|
|
17857
17966
|
HStack,
|
|
17858
17967
|
HeightContainer,
|
|
17859
17968
|
HeroSection,
|
|
17969
|
+
HeroSplitImage,
|
|
17860
17970
|
Hide,
|
|
17861
17971
|
HoverCard,
|
|
17862
17972
|
HoverCardContent,
|
|
@@ -17957,6 +18067,7 @@ export {
|
|
|
17957
18067
|
PopoverContent,
|
|
17958
18068
|
PopoverTrigger,
|
|
17959
18069
|
Positioned,
|
|
18070
|
+
PriceTag,
|
|
17960
18071
|
ProfileAvatar,
|
|
17961
18072
|
ProfileRow,
|
|
17962
18073
|
Progress,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syscore/ui-library",
|
|
3
|
-
"version": "2.0.0-beta-publish-workflow-beta.
|
|
3
|
+
"version": "2.0.0-beta-publish-workflow-beta.7",
|
|
4
4
|
"description": "A comprehensive React component library built with Radix UI, Tailwind CSS, and TypeScript",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|