@syscore/ui-library 2.0.0-beta-publish-workflow-beta.6 → 2.0.0-beta-publish-workflow-beta.8
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/layout.tsx +5 -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 +247 -13
- 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 +160 -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
|
|
@@ -5093,6 +5131,7 @@ const Stack = React.forwardRef(
|
|
|
5093
5131
|
vAlign,
|
|
5094
5132
|
wrap = false,
|
|
5095
5133
|
padding,
|
|
5134
|
+
marginY,
|
|
5096
5135
|
width,
|
|
5097
5136
|
height,
|
|
5098
5137
|
maxWidth,
|
|
@@ -5121,6 +5160,8 @@ const Stack = React.forwardRef(
|
|
|
5121
5160
|
style: {
|
|
5122
5161
|
gap: gapCss(gap),
|
|
5123
5162
|
padding: gapCss(padding),
|
|
5163
|
+
marginTop: gapCss(marginY),
|
|
5164
|
+
marginBottom: gapCss(marginY),
|
|
5124
5165
|
width: toCssSize(width),
|
|
5125
5166
|
height: toCssSize(height),
|
|
5126
5167
|
maxWidth: toCssSize(maxWidth),
|
|
@@ -8280,6 +8321,16 @@ const CheckIcon = () => /* @__PURE__ */ jsx("svg", { width: "14", height: "14",
|
|
|
8280
8321
|
strokeLinejoin: "round"
|
|
8281
8322
|
}
|
|
8282
8323
|
) });
|
|
8324
|
+
const PlusIcon = () => /* @__PURE__ */ jsx("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", "aria-hidden": "true", children: /* @__PURE__ */ jsx(
|
|
8325
|
+
"path",
|
|
8326
|
+
{
|
|
8327
|
+
d: "M7 2.5V11.5M2.5 7H11.5",
|
|
8328
|
+
stroke: "currentColor",
|
|
8329
|
+
strokeWidth: "2",
|
|
8330
|
+
strokeLinecap: "round",
|
|
8331
|
+
strokeLinejoin: "round"
|
|
8332
|
+
}
|
|
8333
|
+
) });
|
|
8283
8334
|
const Stepper = React.forwardRef(
|
|
8284
8335
|
({
|
|
8285
8336
|
steps,
|
|
@@ -8331,7 +8382,7 @@ const Stepper = React.forwardRef(
|
|
|
8331
8382
|
isClickable && "stepper-indicator--clickable"
|
|
8332
8383
|
),
|
|
8333
8384
|
"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 })
|
|
8385
|
+
children: status === "complete" ? /* @__PURE__ */ jsx(CheckIcon, {}) : status === "current" ? /* @__PURE__ */ jsx(PlusIcon, {}) : /* @__PURE__ */ jsx("span", { className: "stepper-indicator-number", children: index + 1 })
|
|
8335
8386
|
}
|
|
8336
8387
|
),
|
|
8337
8388
|
!isLast && /* @__PURE__ */ jsx(
|
|
@@ -11845,12 +11896,21 @@ const SealWorksWithWell = ({
|
|
|
11845
11896
|
}
|
|
11846
11897
|
);
|
|
11847
11898
|
};
|
|
11848
|
-
const
|
|
11899
|
+
const SIZES = {
|
|
11900
|
+
default: { width: 277, height: 180 },
|
|
11901
|
+
medium: { width: 100, height: 65 },
|
|
11902
|
+
small: { width: 64, height: 42 }
|
|
11903
|
+
};
|
|
11904
|
+
const IWBILogo = ({
|
|
11905
|
+
className,
|
|
11906
|
+
size = "default"
|
|
11907
|
+
}) => {
|
|
11908
|
+
const { width, height } = SIZES[size];
|
|
11849
11909
|
return /* @__PURE__ */ jsxs(
|
|
11850
11910
|
"svg",
|
|
11851
11911
|
{
|
|
11852
|
-
width
|
|
11853
|
-
height
|
|
11912
|
+
width,
|
|
11913
|
+
height,
|
|
11854
11914
|
viewBox: "0 0 277 180",
|
|
11855
11915
|
fill: "none",
|
|
11856
11916
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -16430,8 +16490,22 @@ const X = ({ className = "", color = "#71747D" }) => {
|
|
|
16430
16490
|
};
|
|
16431
16491
|
const StandardLogo = ({
|
|
16432
16492
|
className = "",
|
|
16433
|
-
dark = false
|
|
16493
|
+
dark = false,
|
|
16494
|
+
variant = "standard"
|
|
16434
16495
|
}) => {
|
|
16496
|
+
if (variant === "well") {
|
|
16497
|
+
return /* @__PURE__ */ jsx(
|
|
16498
|
+
"span",
|
|
16499
|
+
{
|
|
16500
|
+
className: cn(
|
|
16501
|
+
"standard-logo-wordmark",
|
|
16502
|
+
dark ? "text-gray-700" : "text-white",
|
|
16503
|
+
className
|
|
16504
|
+
),
|
|
16505
|
+
children: "WELL"
|
|
16506
|
+
}
|
|
16507
|
+
);
|
|
16508
|
+
}
|
|
16435
16509
|
return /* @__PURE__ */ jsxs(
|
|
16436
16510
|
"svg",
|
|
16437
16511
|
{
|
|
@@ -16805,13 +16879,32 @@ const StandardNavigation = ({
|
|
|
16805
16879
|
}
|
|
16806
16880
|
)
|
|
16807
16881
|
] }),
|
|
16808
|
-
|
|
16882
|
+
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
16883
|
"li",
|
|
16810
16884
|
{
|
|
16811
16885
|
className: "navigation-nav-item",
|
|
16812
16886
|
onMouseEnter: () => handleNavItemMouseEnter(index),
|
|
16813
16887
|
children: [
|
|
16814
|
-
item.href ? /* @__PURE__ */ jsx(
|
|
16888
|
+
item.href ? /* @__PURE__ */ jsx(
|
|
16889
|
+
NavLink,
|
|
16890
|
+
{
|
|
16891
|
+
href: item.href,
|
|
16892
|
+
className: cn(
|
|
16893
|
+
"navigation-nav-link",
|
|
16894
|
+
isStrategy && "navigation-nav-link--strategy"
|
|
16895
|
+
),
|
|
16896
|
+
children: item.label
|
|
16897
|
+
}
|
|
16898
|
+
) : /* @__PURE__ */ jsx(
|
|
16899
|
+
"span",
|
|
16900
|
+
{
|
|
16901
|
+
className: cn(
|
|
16902
|
+
"navigation-nav-link",
|
|
16903
|
+
isStrategy && "navigation-nav-link--strategy"
|
|
16904
|
+
),
|
|
16905
|
+
children: item.label
|
|
16906
|
+
}
|
|
16907
|
+
),
|
|
16815
16908
|
activeItem === index + 1 && /* @__PURE__ */ jsx(
|
|
16816
16909
|
motion.div,
|
|
16817
16910
|
{
|
|
@@ -17063,6 +17156,7 @@ const SectionHeading = React.forwardRef(
|
|
|
17063
17156
|
);
|
|
17064
17157
|
SectionHeading.displayName = "SectionHeading";
|
|
17065
17158
|
const sizeClass = {
|
|
17159
|
+
large: "body-large",
|
|
17066
17160
|
base: "body-base",
|
|
17067
17161
|
small: "body-small"
|
|
17068
17162
|
};
|
|
@@ -17648,6 +17742,24 @@ function ResourceThumbnail({
|
|
|
17648
17742
|
}
|
|
17649
17743
|
);
|
|
17650
17744
|
}
|
|
17745
|
+
const HeroSplitImage = React.forwardRef(
|
|
17746
|
+
({ src, alt = "" }, ref) => /* @__PURE__ */ jsx("span", { className: "hero-split-image-frame", children: /* @__PURE__ */ jsx("img", { ref, src, alt, className: "hero-split-image" }) })
|
|
17747
|
+
);
|
|
17748
|
+
HeroSplitImage.displayName = "HeroSplitImage";
|
|
17749
|
+
const PriceTag = React.forwardRef(
|
|
17750
|
+
({ amount, currency = "$", tone = "brand" }, ref) => /* @__PURE__ */ jsxs(
|
|
17751
|
+
"span",
|
|
17752
|
+
{
|
|
17753
|
+
ref,
|
|
17754
|
+
className: cn("price-tag", tone === "neutral" && "price-tag--neutral"),
|
|
17755
|
+
children: [
|
|
17756
|
+
currency,
|
|
17757
|
+
amount
|
|
17758
|
+
]
|
|
17759
|
+
}
|
|
17760
|
+
)
|
|
17761
|
+
);
|
|
17762
|
+
PriceTag.displayName = "PriceTag";
|
|
17651
17763
|
export {
|
|
17652
17764
|
Accordion,
|
|
17653
17765
|
AccordionContainer,
|
|
@@ -17857,6 +17969,7 @@ export {
|
|
|
17857
17969
|
HStack,
|
|
17858
17970
|
HeightContainer,
|
|
17859
17971
|
HeroSection,
|
|
17972
|
+
HeroSplitImage,
|
|
17860
17973
|
Hide,
|
|
17861
17974
|
HoverCard,
|
|
17862
17975
|
HoverCardContent,
|
|
@@ -17957,6 +18070,7 @@ export {
|
|
|
17957
18070
|
PopoverContent,
|
|
17958
18071
|
PopoverTrigger,
|
|
17959
18072
|
Positioned,
|
|
18073
|
+
PriceTag,
|
|
17960
18074
|
ProfileAvatar,
|
|
17961
18075
|
ProfileRow,
|
|
17962
18076
|
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.8",
|
|
4
4
|
"description": "A comprehensive React component library built with Radix UI, Tailwind CSS, and TypeScript",
|
|
5
5
|
"private": false,
|
|
6
6
|
"type": "module",
|