@clickhouse/click-ui 0.0.142 → 0.0.143
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/dist/click-ui.es.js
CHANGED
|
@@ -10291,9 +10291,83 @@ const CardSecondary = ({
|
|
|
10291
10291
|
] })
|
|
10292
10292
|
] });
|
|
10293
10293
|
};
|
|
10294
|
-
const
|
|
10294
|
+
const _Container = ({
|
|
10295
|
+
component,
|
|
10296
|
+
alignItems,
|
|
10297
|
+
children,
|
|
10298
|
+
fillWidth = true,
|
|
10299
|
+
gap = "none",
|
|
10300
|
+
grow,
|
|
10301
|
+
shrink,
|
|
10302
|
+
isResponsive,
|
|
10303
|
+
justifyContent = "start",
|
|
10304
|
+
maxWidth,
|
|
10305
|
+
minWidth,
|
|
10306
|
+
orientation = "horizontal",
|
|
10307
|
+
padding = "none",
|
|
10308
|
+
wrap = "nowrap",
|
|
10309
|
+
fillHeight,
|
|
10310
|
+
maxHeight,
|
|
10311
|
+
minHeight,
|
|
10312
|
+
overflow,
|
|
10313
|
+
...props
|
|
10314
|
+
}, ref) => {
|
|
10315
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper$9, { ref, as: component ?? "div", $alignItems: alignItems ?? (orientation === "vertical" ? "start" : "center"), $fillWidth: fillWidth, $gapSize: gap, $grow: grow, $shrink: shrink, $isResponsive: isResponsive, $justifyContent: justifyContent, $maxWidth: maxWidth, $minWidth: minWidth, $orientation: orientation, $paddingSize: padding, $wrap: wrap, $fillHeight: fillHeight, $maxHeight: maxHeight, $minHeight: minHeight, $overflow: overflow, "data-testid": "container", ...props, children });
|
|
10316
|
+
};
|
|
10317
|
+
const Wrapper$9 = styled.div.withConfig({
|
|
10318
|
+
componentId: "sc-bcplth-0"
|
|
10319
|
+
})(["display:flex;", " ", " ", " flex-wrap:", ";gap:", ";max-width:", ";min-width:", ";padding:", ";width:", ";flex-direction:", ";align-items:", ";justify-content:", ";@media (max-width:", "){width:", ";max-width:", ";flex-direction:", ";}"], ({
|
|
10320
|
+
$grow,
|
|
10321
|
+
$shrink
|
|
10322
|
+
}) => `
|
|
10323
|
+
${$grow && `flex: ${$grow}`};
|
|
10324
|
+
${$shrink && `flex-shrink: ${$shrink}`};
|
|
10325
|
+
`, ({
|
|
10326
|
+
$fillHeight,
|
|
10327
|
+
$maxHeight,
|
|
10328
|
+
$minHeight
|
|
10329
|
+
}) => `
|
|
10330
|
+
${$fillHeight && "height: 100%"};
|
|
10331
|
+
${$maxHeight && `max-height: ${$maxHeight}`};
|
|
10332
|
+
${$minHeight && `min-height: ${$minHeight}`};
|
|
10333
|
+
`, ({
|
|
10334
|
+
$overflow
|
|
10335
|
+
}) => `
|
|
10336
|
+
${$overflow && `overflow: ${$overflow}`};
|
|
10337
|
+
`, ({
|
|
10338
|
+
$wrap = "nowrap"
|
|
10339
|
+
}) => $wrap, ({
|
|
10340
|
+
theme: theme2,
|
|
10341
|
+
$gapSize
|
|
10342
|
+
}) => theme2.click.container.gap[$gapSize], ({
|
|
10343
|
+
$maxWidth
|
|
10344
|
+
}) => $maxWidth ?? "none", ({
|
|
10345
|
+
$minWidth
|
|
10346
|
+
}) => $minWidth ?? "none", ({
|
|
10347
|
+
theme: theme2,
|
|
10348
|
+
$paddingSize
|
|
10349
|
+
}) => theme2.click.container.space[$paddingSize], ({
|
|
10350
|
+
$fillWidth = true
|
|
10351
|
+
}) => $fillWidth === true ? "100%" : "auto", ({
|
|
10352
|
+
$orientation = "horizontal"
|
|
10353
|
+
}) => $orientation === "horizontal" ? "row" : "column", ({
|
|
10354
|
+
$alignItems = "center"
|
|
10355
|
+
}) => $alignItems, ({
|
|
10356
|
+
$justifyContent = "left"
|
|
10357
|
+
}) => $justifyContent === "start" ? "start" : `${$justifyContent}`, ({
|
|
10358
|
+
theme: theme2
|
|
10359
|
+
}) => theme2.breakpoint.sizes.md, ({
|
|
10360
|
+
$isResponsive = true,
|
|
10361
|
+
$fillWidth = true
|
|
10362
|
+
}) => $isResponsive === true ? "100%" : $fillWidth === true ? "100%" : "auto", ({
|
|
10363
|
+
$isResponsive = true
|
|
10364
|
+
}) => $isResponsive === true ? "none" : "auto", ({
|
|
10365
|
+
$isResponsive = true
|
|
10366
|
+
}) => $isResponsive === true ? "column" : "auto");
|
|
10367
|
+
const Container = forwardRef(_Container);
|
|
10368
|
+
const TopBadgeWrapper = styled(Container).withConfig({
|
|
10295
10369
|
componentId: "sc-1d5pqpo-0"
|
|
10296
|
-
})(["position:relative;
|
|
10370
|
+
})(["position:relative;"]);
|
|
10297
10371
|
const CardPrimaryTopBadge = styled(Badge).withConfig({
|
|
10298
10372
|
componentId: "sc-1d5pqpo-1"
|
|
10299
10373
|
})(["position:absolute;top:0;left:50%;transform:translate(-50%,-50%);", " div:active + &{border-color:", ";}"], ({
|
|
@@ -10306,12 +10380,12 @@ const withTopBadge = (Component2) => ({
|
|
|
10306
10380
|
topBadgeText,
|
|
10307
10381
|
...props
|
|
10308
10382
|
}) => {
|
|
10309
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(TopBadgeWrapper, { children: [
|
|
10383
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(TopBadgeWrapper, { alignItems: "stretch", fillWidth: true, children: [
|
|
10310
10384
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Component2, { ...props }),
|
|
10311
10385
|
topBadgeText && /* @__PURE__ */ jsxRuntimeExports.jsx(CardPrimaryTopBadge, { "data-testid": "card-top-badge", text: topBadgeText, $isSelected: props.isSelected || false })
|
|
10312
10386
|
] });
|
|
10313
10387
|
};
|
|
10314
|
-
const Wrapper$
|
|
10388
|
+
const Wrapper$8 = styled.div.withConfig({
|
|
10315
10389
|
componentId: "sc-2dguvi-0"
|
|
10316
10390
|
})(["background-color:", ";border-radius:", ";border:", ";display:flex;width:100%;max-width:100%;text-align:", ";flex-direction:column;padding:", ";gap:", ";box-shadow:", ";&:hover,&:focus{background-color:", ";cursor:pointer;button{background-color:", ";border-color:", ";&:active{background-color:", ";border-color:", ";}}}&:active{border-color:", ';}&[aria-disabled="true"],&[aria-disabled="true"]:hover,&[aria-disabled="true"]:focus,&[aria-disabled="true"]:active{', "}", ""], ({
|
|
10317
10391
|
theme: theme2
|
|
@@ -10416,7 +10490,7 @@ const Card = ({
|
|
|
10416
10490
|
}
|
|
10417
10491
|
};
|
|
10418
10492
|
const Component2 = !!infoUrl || typeof onButtonClick === "function" ? Button : "div";
|
|
10419
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$
|
|
10493
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$8, { $alignContent: alignContent, $hasShadow: hasShadow, $size: size2, "aria-disabled": disabled, $isSelected: isSelected, tabIndex: 0, ...props, children: [
|
|
10420
10494
|
(icon || title) && /* @__PURE__ */ jsxRuntimeExports.jsxs(Header$3, { $size: size2, $disabled: disabled, $alignContent: alignContent, children: [
|
|
10421
10495
|
icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true }),
|
|
10422
10496
|
title && /* @__PURE__ */ jsxRuntimeExports.jsx(Title$2, { type: "h3", children: title })
|
|
@@ -10438,7 +10512,7 @@ const Description = styled.div.withConfig({
|
|
|
10438
10512
|
})(["display:flex;flex-direction:column;align-self:center;gap:", ";flex:1;"], ({
|
|
10439
10513
|
theme: theme2
|
|
10440
10514
|
}) => theme2.click.card.horizontal.space.gap);
|
|
10441
|
-
const Wrapper$
|
|
10515
|
+
const Wrapper$7 = styled.div.withConfig({
|
|
10442
10516
|
componentId: "sc-1qnbjoa-2"
|
|
10443
10517
|
})(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
|
|
10444
10518
|
theme: theme2,
|
|
@@ -10517,7 +10591,7 @@ const CardHorizontal = ({
|
|
|
10517
10591
|
color = "default",
|
|
10518
10592
|
...props
|
|
10519
10593
|
}) => {
|
|
10520
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$
|
|
10594
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$7, { $disabled: disabled, $isSelected: isSelected, $color: color, tabIndex: 0, ...props, children: [
|
|
10521
10595
|
icon && /* @__PURE__ */ jsxRuntimeExports.jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
|
|
10522
10596
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(ContentWrapper, { children: [
|
|
10523
10597
|
title && /* @__PURE__ */ jsxRuntimeExports.jsx(Header$2, { children: title }),
|
|
@@ -10541,7 +10615,7 @@ const Background = styled.div.withConfig({
|
|
|
10541
10615
|
background: ${theme2.click.card.promotion.color.stroke.focus};
|
|
10542
10616
|
}
|
|
10543
10617
|
`);
|
|
10544
|
-
const Wrapper$
|
|
10618
|
+
const Wrapper$6 = styled.div.withConfig({
|
|
10545
10619
|
componentId: "sc-6jamj6-1"
|
|
10546
10620
|
})(["display:flex;width:100%;align-items:center;justify-content:flex-start;cursor:pointer;", ""], ({
|
|
10547
10621
|
theme: theme2
|
|
@@ -10582,7 +10656,7 @@ const CardPromotion = ({
|
|
|
10582
10656
|
...props
|
|
10583
10657
|
}) => {
|
|
10584
10658
|
const [isVisible, setIsVisible] = useState(true);
|
|
10585
|
-
return isVisible ? /* @__PURE__ */ jsxRuntimeExports.jsx(Background, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$
|
|
10659
|
+
return isVisible ? /* @__PURE__ */ jsxRuntimeExports.jsx(Background, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$6, { $dismissible: dismissible, ...props, children: [
|
|
10586
10660
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CardIcon, { name: icon, "aria-hidden": true }),
|
|
10587
10661
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: label }),
|
|
10588
10662
|
dismissible && /* @__PURE__ */ jsxRuntimeExports.jsx(DismissWrapper, { "data-testid": "click-alert-dismiss-button", onClick: () => setIsVisible(false), children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "cross", "aria-label": "close" }) })
|
|
@@ -10739,7 +10813,7 @@ function $e698a72e93240346$var$getState(checked) {
|
|
|
10739
10813
|
}
|
|
10740
10814
|
const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;
|
|
10741
10815
|
const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
|
|
10742
|
-
const Wrapper$
|
|
10816
|
+
const Wrapper$5 = styled(FormRoot).withConfig({
|
|
10743
10817
|
componentId: "sc-1sck1ja-0"
|
|
10744
10818
|
})(["align-items:center;max-width:fit-content;"]);
|
|
10745
10819
|
const Checkbox = ({
|
|
@@ -10751,7 +10825,7 @@ const Checkbox = ({
|
|
|
10751
10825
|
...delegated
|
|
10752
10826
|
}) => {
|
|
10753
10827
|
const defaultId = useId();
|
|
10754
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$
|
|
10828
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$5, { $orientation: orientation ?? "horizontal", $dir: dir ?? "end", children: [
|
|
10755
10829
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CheckInput, { id: id ?? defaultId, "data-testid": "checkbox", disabled, "aria-label": `${label}`, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "check", size: "sm" }) }) }),
|
|
10756
10830
|
label && /* @__PURE__ */ jsxRuntimeExports.jsx(GenericLabel, { htmlFor: id ?? defaultId, disabled, children: label })
|
|
10757
10831
|
] });
|
|
@@ -14299,80 +14373,6 @@ const CodeBlock = ({
|
|
|
14299
14373
|
}, showLineNumbers, wrapLines: wrap || wrapLines, wrapLongLines: wrap || wrapLines, children })
|
|
14300
14374
|
] });
|
|
14301
14375
|
};
|
|
14302
|
-
const _Container = ({
|
|
14303
|
-
component,
|
|
14304
|
-
alignItems,
|
|
14305
|
-
children,
|
|
14306
|
-
fillWidth = true,
|
|
14307
|
-
gap = "none",
|
|
14308
|
-
grow,
|
|
14309
|
-
shrink,
|
|
14310
|
-
isResponsive,
|
|
14311
|
-
justifyContent = "start",
|
|
14312
|
-
maxWidth,
|
|
14313
|
-
minWidth,
|
|
14314
|
-
orientation = "horizontal",
|
|
14315
|
-
padding = "none",
|
|
14316
|
-
wrap = "nowrap",
|
|
14317
|
-
fillHeight,
|
|
14318
|
-
maxHeight,
|
|
14319
|
-
minHeight,
|
|
14320
|
-
overflow,
|
|
14321
|
-
...props
|
|
14322
|
-
}, ref) => {
|
|
14323
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper$5, { ref, as: component ?? "div", $alignItems: alignItems ?? (orientation === "vertical" ? "start" : "center"), $fillWidth: fillWidth, $gapSize: gap, $grow: grow, $shrink: shrink, $isResponsive: isResponsive, $justifyContent: justifyContent, $maxWidth: maxWidth, $minWidth: minWidth, $orientation: orientation, $paddingSize: padding, $wrap: wrap, $fillHeight: fillHeight, $maxHeight: maxHeight, $minHeight: minHeight, $overflow: overflow, "data-testid": "container", ...props, children });
|
|
14324
|
-
};
|
|
14325
|
-
const Wrapper$5 = styled.div.withConfig({
|
|
14326
|
-
componentId: "sc-bcplth-0"
|
|
14327
|
-
})(["display:flex;", " ", " ", " flex-wrap:", ";gap:", ";max-width:", ";min-width:", ";padding:", ";width:", ";flex-direction:", ";align-items:", ";justify-content:", ";@media (max-width:", "){width:", ";max-width:", ";flex-direction:", ";}"], ({
|
|
14328
|
-
$grow,
|
|
14329
|
-
$shrink
|
|
14330
|
-
}) => `
|
|
14331
|
-
${$grow && `flex: ${$grow}`};
|
|
14332
|
-
${$shrink && `flex-shrink: ${$shrink}`};
|
|
14333
|
-
`, ({
|
|
14334
|
-
$fillHeight,
|
|
14335
|
-
$maxHeight,
|
|
14336
|
-
$minHeight
|
|
14337
|
-
}) => `
|
|
14338
|
-
${$fillHeight && "height: 100%"};
|
|
14339
|
-
${$maxHeight && `max-height: ${$maxHeight}`};
|
|
14340
|
-
${$minHeight && `min-height: ${$minHeight}`};
|
|
14341
|
-
`, ({
|
|
14342
|
-
$overflow
|
|
14343
|
-
}) => `
|
|
14344
|
-
${$overflow && `overflow: ${$overflow}`};
|
|
14345
|
-
`, ({
|
|
14346
|
-
$wrap = "nowrap"
|
|
14347
|
-
}) => $wrap, ({
|
|
14348
|
-
theme: theme2,
|
|
14349
|
-
$gapSize
|
|
14350
|
-
}) => theme2.click.container.gap[$gapSize], ({
|
|
14351
|
-
$maxWidth
|
|
14352
|
-
}) => $maxWidth ?? "none", ({
|
|
14353
|
-
$minWidth
|
|
14354
|
-
}) => $minWidth ?? "none", ({
|
|
14355
|
-
theme: theme2,
|
|
14356
|
-
$paddingSize
|
|
14357
|
-
}) => theme2.click.container.space[$paddingSize], ({
|
|
14358
|
-
$fillWidth = true
|
|
14359
|
-
}) => $fillWidth === true ? "100%" : "auto", ({
|
|
14360
|
-
$orientation = "horizontal"
|
|
14361
|
-
}) => $orientation === "horizontal" ? "row" : "column", ({
|
|
14362
|
-
$alignItems = "center"
|
|
14363
|
-
}) => $alignItems, ({
|
|
14364
|
-
$justifyContent = "left"
|
|
14365
|
-
}) => $justifyContent === "start" ? "start" : `${$justifyContent}`, ({
|
|
14366
|
-
theme: theme2
|
|
14367
|
-
}) => theme2.breakpoint.sizes.md, ({
|
|
14368
|
-
$isResponsive = true,
|
|
14369
|
-
$fillWidth = true
|
|
14370
|
-
}) => $isResponsive === true ? "100%" : $fillWidth === true ? "100%" : "auto", ({
|
|
14371
|
-
$isResponsive = true
|
|
14372
|
-
}) => $isResponsive === true ? "none" : "auto", ({
|
|
14373
|
-
$isResponsive = true
|
|
14374
|
-
}) => $isResponsive === true ? "column" : "auto");
|
|
14375
|
-
const Container = forwardRef(_Container);
|
|
14376
14376
|
const $5d3850c4d0b4e6c7$var$DIALOG_NAME = "Dialog";
|
|
14377
14377
|
const [$5d3850c4d0b4e6c7$var$createDialogContext, $5d3850c4d0b4e6c7$export$cc702773b8ea3e41] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($5d3850c4d0b4e6c7$var$DIALOG_NAME);
|
|
14378
14378
|
const [$5d3850c4d0b4e6c7$var$DialogProvider, $5d3850c4d0b4e6c7$var$useDialogContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME);
|
package/dist/click-ui.umd.js
CHANGED
|
@@ -10308,9 +10308,83 @@ var __publicField = (obj, key, value) => {
|
|
|
10308
10308
|
] })
|
|
10309
10309
|
] });
|
|
10310
10310
|
};
|
|
10311
|
-
const
|
|
10311
|
+
const _Container = ({
|
|
10312
|
+
component,
|
|
10313
|
+
alignItems,
|
|
10314
|
+
children,
|
|
10315
|
+
fillWidth = true,
|
|
10316
|
+
gap = "none",
|
|
10317
|
+
grow,
|
|
10318
|
+
shrink,
|
|
10319
|
+
isResponsive,
|
|
10320
|
+
justifyContent = "start",
|
|
10321
|
+
maxWidth,
|
|
10322
|
+
minWidth,
|
|
10323
|
+
orientation = "horizontal",
|
|
10324
|
+
padding = "none",
|
|
10325
|
+
wrap = "nowrap",
|
|
10326
|
+
fillHeight,
|
|
10327
|
+
maxHeight,
|
|
10328
|
+
minHeight,
|
|
10329
|
+
overflow,
|
|
10330
|
+
...props
|
|
10331
|
+
}, ref) => {
|
|
10332
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper$9, { ref, as: component ?? "div", $alignItems: alignItems ?? (orientation === "vertical" ? "start" : "center"), $fillWidth: fillWidth, $gapSize: gap, $grow: grow, $shrink: shrink, $isResponsive: isResponsive, $justifyContent: justifyContent, $maxWidth: maxWidth, $minWidth: minWidth, $orientation: orientation, $paddingSize: padding, $wrap: wrap, $fillHeight: fillHeight, $maxHeight: maxHeight, $minHeight: minHeight, $overflow: overflow, "data-testid": "container", ...props, children });
|
|
10333
|
+
};
|
|
10334
|
+
const Wrapper$9 = styled.div.withConfig({
|
|
10335
|
+
componentId: "sc-bcplth-0"
|
|
10336
|
+
})(["display:flex;", " ", " ", " flex-wrap:", ";gap:", ";max-width:", ";min-width:", ";padding:", ";width:", ";flex-direction:", ";align-items:", ";justify-content:", ";@media (max-width:", "){width:", ";max-width:", ";flex-direction:", ";}"], ({
|
|
10337
|
+
$grow,
|
|
10338
|
+
$shrink
|
|
10339
|
+
}) => `
|
|
10340
|
+
${$grow && `flex: ${$grow}`};
|
|
10341
|
+
${$shrink && `flex-shrink: ${$shrink}`};
|
|
10342
|
+
`, ({
|
|
10343
|
+
$fillHeight,
|
|
10344
|
+
$maxHeight,
|
|
10345
|
+
$minHeight
|
|
10346
|
+
}) => `
|
|
10347
|
+
${$fillHeight && "height: 100%"};
|
|
10348
|
+
${$maxHeight && `max-height: ${$maxHeight}`};
|
|
10349
|
+
${$minHeight && `min-height: ${$minHeight}`};
|
|
10350
|
+
`, ({
|
|
10351
|
+
$overflow
|
|
10352
|
+
}) => `
|
|
10353
|
+
${$overflow && `overflow: ${$overflow}`};
|
|
10354
|
+
`, ({
|
|
10355
|
+
$wrap = "nowrap"
|
|
10356
|
+
}) => $wrap, ({
|
|
10357
|
+
theme: theme2,
|
|
10358
|
+
$gapSize
|
|
10359
|
+
}) => theme2.click.container.gap[$gapSize], ({
|
|
10360
|
+
$maxWidth
|
|
10361
|
+
}) => $maxWidth ?? "none", ({
|
|
10362
|
+
$minWidth
|
|
10363
|
+
}) => $minWidth ?? "none", ({
|
|
10364
|
+
theme: theme2,
|
|
10365
|
+
$paddingSize
|
|
10366
|
+
}) => theme2.click.container.space[$paddingSize], ({
|
|
10367
|
+
$fillWidth = true
|
|
10368
|
+
}) => $fillWidth === true ? "100%" : "auto", ({
|
|
10369
|
+
$orientation = "horizontal"
|
|
10370
|
+
}) => $orientation === "horizontal" ? "row" : "column", ({
|
|
10371
|
+
$alignItems = "center"
|
|
10372
|
+
}) => $alignItems, ({
|
|
10373
|
+
$justifyContent = "left"
|
|
10374
|
+
}) => $justifyContent === "start" ? "start" : `${$justifyContent}`, ({
|
|
10375
|
+
theme: theme2
|
|
10376
|
+
}) => theme2.breakpoint.sizes.md, ({
|
|
10377
|
+
$isResponsive = true,
|
|
10378
|
+
$fillWidth = true
|
|
10379
|
+
}) => $isResponsive === true ? "100%" : $fillWidth === true ? "100%" : "auto", ({
|
|
10380
|
+
$isResponsive = true
|
|
10381
|
+
}) => $isResponsive === true ? "none" : "auto", ({
|
|
10382
|
+
$isResponsive = true
|
|
10383
|
+
}) => $isResponsive === true ? "column" : "auto");
|
|
10384
|
+
const Container = React.forwardRef(_Container);
|
|
10385
|
+
const TopBadgeWrapper = styled(Container).withConfig({
|
|
10312
10386
|
componentId: "sc-1d5pqpo-0"
|
|
10313
|
-
})(["position:relative;
|
|
10387
|
+
})(["position:relative;"]);
|
|
10314
10388
|
const CardPrimaryTopBadge = styled(Badge).withConfig({
|
|
10315
10389
|
componentId: "sc-1d5pqpo-1"
|
|
10316
10390
|
})(["position:absolute;top:0;left:50%;transform:translate(-50%,-50%);", " div:active + &{border-color:", ";}"], ({
|
|
@@ -10323,12 +10397,12 @@ var __publicField = (obj, key, value) => {
|
|
|
10323
10397
|
topBadgeText,
|
|
10324
10398
|
...props
|
|
10325
10399
|
}) => {
|
|
10326
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(TopBadgeWrapper, { children: [
|
|
10400
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(TopBadgeWrapper, { alignItems: "stretch", fillWidth: true, children: [
|
|
10327
10401
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...props }),
|
|
10328
10402
|
topBadgeText && /* @__PURE__ */ jsxRuntimeExports.jsx(CardPrimaryTopBadge, { "data-testid": "card-top-badge", text: topBadgeText, $isSelected: props.isSelected || false })
|
|
10329
10403
|
] });
|
|
10330
10404
|
};
|
|
10331
|
-
const Wrapper$
|
|
10405
|
+
const Wrapper$8 = styled.div.withConfig({
|
|
10332
10406
|
componentId: "sc-2dguvi-0"
|
|
10333
10407
|
})(["background-color:", ";border-radius:", ";border:", ";display:flex;width:100%;max-width:100%;text-align:", ";flex-direction:column;padding:", ";gap:", ";box-shadow:", ";&:hover,&:focus{background-color:", ";cursor:pointer;button{background-color:", ";border-color:", ";&:active{background-color:", ";border-color:", ";}}}&:active{border-color:", ';}&[aria-disabled="true"],&[aria-disabled="true"]:hover,&[aria-disabled="true"]:focus,&[aria-disabled="true"]:active{', "}", ""], ({
|
|
10334
10408
|
theme: theme2
|
|
@@ -10433,7 +10507,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10433
10507
|
}
|
|
10434
10508
|
};
|
|
10435
10509
|
const Component = !!infoUrl || typeof onButtonClick === "function" ? Button : "div";
|
|
10436
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$
|
|
10510
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$8, { $alignContent: alignContent, $hasShadow: hasShadow, $size: size2, "aria-disabled": disabled, $isSelected: isSelected, tabIndex: 0, ...props, children: [
|
|
10437
10511
|
(icon || title) && /* @__PURE__ */ jsxRuntimeExports.jsxs(Header$3, { $size: size2, $disabled: disabled, $alignContent: alignContent, children: [
|
|
10438
10512
|
icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true }),
|
|
10439
10513
|
title && /* @__PURE__ */ jsxRuntimeExports.jsx(Title$2, { type: "h3", children: title })
|
|
@@ -10455,7 +10529,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10455
10529
|
})(["display:flex;flex-direction:column;align-self:center;gap:", ";flex:1;"], ({
|
|
10456
10530
|
theme: theme2
|
|
10457
10531
|
}) => theme2.click.card.horizontal.space.gap);
|
|
10458
|
-
const Wrapper$
|
|
10532
|
+
const Wrapper$7 = styled.div.withConfig({
|
|
10459
10533
|
componentId: "sc-1qnbjoa-2"
|
|
10460
10534
|
})(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
|
|
10461
10535
|
theme: theme2,
|
|
@@ -10534,7 +10608,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10534
10608
|
color = "default",
|
|
10535
10609
|
...props
|
|
10536
10610
|
}) => {
|
|
10537
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$
|
|
10611
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$7, { $disabled: disabled, $isSelected: isSelected, $color: color, tabIndex: 0, ...props, children: [
|
|
10538
10612
|
icon && /* @__PURE__ */ jsxRuntimeExports.jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
|
|
10539
10613
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(ContentWrapper, { children: [
|
|
10540
10614
|
title && /* @__PURE__ */ jsxRuntimeExports.jsx(Header$2, { children: title }),
|
|
@@ -10558,7 +10632,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10558
10632
|
background: ${theme2.click.card.promotion.color.stroke.focus};
|
|
10559
10633
|
}
|
|
10560
10634
|
`);
|
|
10561
|
-
const Wrapper$
|
|
10635
|
+
const Wrapper$6 = styled.div.withConfig({
|
|
10562
10636
|
componentId: "sc-6jamj6-1"
|
|
10563
10637
|
})(["display:flex;width:100%;align-items:center;justify-content:flex-start;cursor:pointer;", ""], ({
|
|
10564
10638
|
theme: theme2
|
|
@@ -10599,7 +10673,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10599
10673
|
...props
|
|
10600
10674
|
}) => {
|
|
10601
10675
|
const [isVisible, setIsVisible] = React.useState(true);
|
|
10602
|
-
return isVisible ? /* @__PURE__ */ jsxRuntimeExports.jsx(Background, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$
|
|
10676
|
+
return isVisible ? /* @__PURE__ */ jsxRuntimeExports.jsx(Background, { children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$6, { $dismissible: dismissible, ...props, children: [
|
|
10603
10677
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CardIcon, { name: icon, "aria-hidden": true }),
|
|
10604
10678
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { children: label }),
|
|
10605
10679
|
dismissible && /* @__PURE__ */ jsxRuntimeExports.jsx(DismissWrapper, { "data-testid": "click-alert-dismiss-button", onClick: () => setIsVisible(false), children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "cross", "aria-label": "close" }) })
|
|
@@ -10756,7 +10830,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10756
10830
|
}
|
|
10757
10831
|
const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;
|
|
10758
10832
|
const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
|
|
10759
|
-
const Wrapper$
|
|
10833
|
+
const Wrapper$5 = styled(FormRoot).withConfig({
|
|
10760
10834
|
componentId: "sc-1sck1ja-0"
|
|
10761
10835
|
})(["align-items:center;max-width:fit-content;"]);
|
|
10762
10836
|
const Checkbox = ({
|
|
@@ -10768,7 +10842,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10768
10842
|
...delegated
|
|
10769
10843
|
}) => {
|
|
10770
10844
|
const defaultId = React.useId();
|
|
10771
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$
|
|
10845
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$5, { $orientation: orientation ?? "horizontal", $dir: dir ?? "end", children: [
|
|
10772
10846
|
/* @__PURE__ */ jsxRuntimeExports.jsx(CheckInput, { id: id ?? defaultId, "data-testid": "checkbox", disabled, "aria-label": `${label}`, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "check", size: "sm" }) }) }),
|
|
10773
10847
|
label && /* @__PURE__ */ jsxRuntimeExports.jsx(GenericLabel, { htmlFor: id ?? defaultId, disabled, children: label })
|
|
10774
10848
|
] });
|
|
@@ -14316,80 +14390,6 @@ var __publicField = (obj, key, value) => {
|
|
|
14316
14390
|
}, showLineNumbers, wrapLines: wrap || wrapLines, wrapLongLines: wrap || wrapLines, children })
|
|
14317
14391
|
] });
|
|
14318
14392
|
};
|
|
14319
|
-
const _Container = ({
|
|
14320
|
-
component,
|
|
14321
|
-
alignItems,
|
|
14322
|
-
children,
|
|
14323
|
-
fillWidth = true,
|
|
14324
|
-
gap = "none",
|
|
14325
|
-
grow,
|
|
14326
|
-
shrink,
|
|
14327
|
-
isResponsive,
|
|
14328
|
-
justifyContent = "start",
|
|
14329
|
-
maxWidth,
|
|
14330
|
-
minWidth,
|
|
14331
|
-
orientation = "horizontal",
|
|
14332
|
-
padding = "none",
|
|
14333
|
-
wrap = "nowrap",
|
|
14334
|
-
fillHeight,
|
|
14335
|
-
maxHeight,
|
|
14336
|
-
minHeight,
|
|
14337
|
-
overflow,
|
|
14338
|
-
...props
|
|
14339
|
-
}, ref) => {
|
|
14340
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(Wrapper$5, { ref, as: component ?? "div", $alignItems: alignItems ?? (orientation === "vertical" ? "start" : "center"), $fillWidth: fillWidth, $gapSize: gap, $grow: grow, $shrink: shrink, $isResponsive: isResponsive, $justifyContent: justifyContent, $maxWidth: maxWidth, $minWidth: minWidth, $orientation: orientation, $paddingSize: padding, $wrap: wrap, $fillHeight: fillHeight, $maxHeight: maxHeight, $minHeight: minHeight, $overflow: overflow, "data-testid": "container", ...props, children });
|
|
14341
|
-
};
|
|
14342
|
-
const Wrapper$5 = styled.div.withConfig({
|
|
14343
|
-
componentId: "sc-bcplth-0"
|
|
14344
|
-
})(["display:flex;", " ", " ", " flex-wrap:", ";gap:", ";max-width:", ";min-width:", ";padding:", ";width:", ";flex-direction:", ";align-items:", ";justify-content:", ";@media (max-width:", "){width:", ";max-width:", ";flex-direction:", ";}"], ({
|
|
14345
|
-
$grow,
|
|
14346
|
-
$shrink
|
|
14347
|
-
}) => `
|
|
14348
|
-
${$grow && `flex: ${$grow}`};
|
|
14349
|
-
${$shrink && `flex-shrink: ${$shrink}`};
|
|
14350
|
-
`, ({
|
|
14351
|
-
$fillHeight,
|
|
14352
|
-
$maxHeight,
|
|
14353
|
-
$minHeight
|
|
14354
|
-
}) => `
|
|
14355
|
-
${$fillHeight && "height: 100%"};
|
|
14356
|
-
${$maxHeight && `max-height: ${$maxHeight}`};
|
|
14357
|
-
${$minHeight && `min-height: ${$minHeight}`};
|
|
14358
|
-
`, ({
|
|
14359
|
-
$overflow
|
|
14360
|
-
}) => `
|
|
14361
|
-
${$overflow && `overflow: ${$overflow}`};
|
|
14362
|
-
`, ({
|
|
14363
|
-
$wrap = "nowrap"
|
|
14364
|
-
}) => $wrap, ({
|
|
14365
|
-
theme: theme2,
|
|
14366
|
-
$gapSize
|
|
14367
|
-
}) => theme2.click.container.gap[$gapSize], ({
|
|
14368
|
-
$maxWidth
|
|
14369
|
-
}) => $maxWidth ?? "none", ({
|
|
14370
|
-
$minWidth
|
|
14371
|
-
}) => $minWidth ?? "none", ({
|
|
14372
|
-
theme: theme2,
|
|
14373
|
-
$paddingSize
|
|
14374
|
-
}) => theme2.click.container.space[$paddingSize], ({
|
|
14375
|
-
$fillWidth = true
|
|
14376
|
-
}) => $fillWidth === true ? "100%" : "auto", ({
|
|
14377
|
-
$orientation = "horizontal"
|
|
14378
|
-
}) => $orientation === "horizontal" ? "row" : "column", ({
|
|
14379
|
-
$alignItems = "center"
|
|
14380
|
-
}) => $alignItems, ({
|
|
14381
|
-
$justifyContent = "left"
|
|
14382
|
-
}) => $justifyContent === "start" ? "start" : `${$justifyContent}`, ({
|
|
14383
|
-
theme: theme2
|
|
14384
|
-
}) => theme2.breakpoint.sizes.md, ({
|
|
14385
|
-
$isResponsive = true,
|
|
14386
|
-
$fillWidth = true
|
|
14387
|
-
}) => $isResponsive === true ? "100%" : $fillWidth === true ? "100%" : "auto", ({
|
|
14388
|
-
$isResponsive = true
|
|
14389
|
-
}) => $isResponsive === true ? "none" : "auto", ({
|
|
14390
|
-
$isResponsive = true
|
|
14391
|
-
}) => $isResponsive === true ? "column" : "auto");
|
|
14392
|
-
const Container = React.forwardRef(_Container);
|
|
14393
14393
|
const $5d3850c4d0b4e6c7$var$DIALOG_NAME = "Dialog";
|
|
14394
14394
|
const [$5d3850c4d0b4e6c7$var$createDialogContext, $5d3850c4d0b4e6c7$export$cc702773b8ea3e41] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($5d3850c4d0b4e6c7$var$DIALOG_NAME);
|
|
14395
14395
|
const [$5d3850c4d0b4e6c7$var$DialogProvider, $5d3850c4d0b4e6c7$var$useDialogContext] = $5d3850c4d0b4e6c7$var$createDialogContext($5d3850c4d0b4e6c7$var$DIALOG_NAME);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const TopBadgeWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').
|
|
2
|
+
export declare const TopBadgeWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<Omit<any, never> & import('../Container/Container').ContainerProps<import('react').ElementType>, never>> & string & Omit<(<T extends import('react').ElementType = "div">(props: Omit<import('react').ComponentProps<T>, keyof T> & import('../Container/Container').ContainerProps<T>) => import('react').ReactNode), keyof import('react').Component<any, {}, any>>;
|
|
3
3
|
export declare const CardPrimaryTopBadge: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('../Badge/Badge').DismissibleBadge | import('../Badge/Badge').NonDismissibleBadge, {
|
|
4
4
|
$isSelected?: boolean | undefined;
|
|
5
5
|
}>> & string & Omit<({ icon, iconDir, text, state, size, dismissible, onClose, ...props }: import('../Badge/Badge').BadgeProps) => import("react/jsx-runtime").JSX.Element, keyof import('react').Component<any, {}, any>>;
|