@clickhouse/click-ui 0.0.145 → 0.0.146
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
|
@@ -10220,13 +10220,20 @@ const HeaderLeft = styled.div.withConfig({
|
|
|
10220
10220
|
const Content$3 = styled.div.withConfig({
|
|
10221
10221
|
componentId: "sc-1drx130-2"
|
|
10222
10222
|
})(["display:flex;flex-direction:column;flex:1;"]);
|
|
10223
|
-
const
|
|
10223
|
+
const CustomIcon = styled.img.withConfig({
|
|
10224
10224
|
componentId: "sc-1drx130-3"
|
|
10225
|
+
})(["height:", ";width:", ";"], ({
|
|
10226
|
+
theme: theme2
|
|
10227
|
+
}) => theme2.click.image.lg.size.height, ({
|
|
10228
|
+
theme: theme2
|
|
10229
|
+
}) => theme2.click.image.lg.size.width);
|
|
10230
|
+
const InfoLink = styled.a.withConfig({
|
|
10231
|
+
componentId: "sc-1drx130-4"
|
|
10225
10232
|
})(["display:flex;align-items:center;color:", ";text-decoration:none;"], ({
|
|
10226
10233
|
theme: theme2
|
|
10227
10234
|
}) => theme2.click.card.secondary.color.link.default);
|
|
10228
10235
|
const ArrowContainer = styled(SvgImage).withConfig({
|
|
10229
|
-
componentId: "sc-1drx130-
|
|
10236
|
+
componentId: "sc-1drx130-5"
|
|
10230
10237
|
})(["color:", ";height:", ";width:", ";"], ({
|
|
10231
10238
|
theme: theme2
|
|
10232
10239
|
}) => theme2.click.card.secondary.color.link.default, ({
|
|
@@ -10235,13 +10242,13 @@ const ArrowContainer = styled(SvgImage).withConfig({
|
|
|
10235
10242
|
theme: theme2
|
|
10236
10243
|
}) => theme2.click.image.md.size.width);
|
|
10237
10244
|
const LinkText = styled(Text).withConfig({
|
|
10238
|
-
componentId: "sc-1drx130-
|
|
10245
|
+
componentId: "sc-1drx130-6"
|
|
10239
10246
|
})([""]);
|
|
10240
10247
|
const LinkArrow = styled(ArrowContainer).withConfig({
|
|
10241
|
-
componentId: "sc-1drx130-
|
|
10248
|
+
componentId: "sc-1drx130-7"
|
|
10242
10249
|
})([""]);
|
|
10243
10250
|
const Wrapper$a = styled.div.withConfig({
|
|
10244
|
-
componentId: "sc-1drx130-
|
|
10251
|
+
componentId: "sc-1drx130-8"
|
|
10245
10252
|
})(["background-color:", ";border-radius:", ";border:", ";max-width:420px;min-width:320px;display:flex;flex-direction:column;padding:", ";gap:", ";box-shadow:", ";&:hover,:focus{background-color:", ";cursor:pointer;", ",", "{color:", ';}}&[aria-disabled="true"],&[aria-disabled="true"]:hover,&[aria-disabled="true"]:focus,&[aria-disabled="true"]:active{', "}"], ({
|
|
10246
10253
|
theme: theme2
|
|
10247
10254
|
}) => theme2.click.card.secondary.color.background.default, ({
|
|
@@ -10275,6 +10282,7 @@ const Wrapper$a = styled.div.withConfig({
|
|
|
10275
10282
|
const CardSecondary = ({
|
|
10276
10283
|
title,
|
|
10277
10284
|
icon,
|
|
10285
|
+
iconUrl,
|
|
10278
10286
|
badgeState,
|
|
10279
10287
|
badgeText = "",
|
|
10280
10288
|
hasShadow = false,
|
|
@@ -10287,7 +10295,7 @@ const CardSecondary = ({
|
|
|
10287
10295
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$a, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
|
|
10288
10296
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Header$4, { children: [
|
|
10289
10297
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(HeaderLeft, { $disabled: disabled, children: [
|
|
10290
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10298
|
+
iconUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(CustomIcon, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
|
|
10291
10299
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Title$2, { type: "h3", children: title })
|
|
10292
10300
|
] }),
|
|
10293
10301
|
badgeText && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
|
|
@@ -10445,7 +10453,7 @@ const Wrapper$8 = styled.div.withConfig({
|
|
|
10445
10453
|
}) => $isSelected ? `border-color: ${theme2.click.button.basic.color.primary.stroke.active};` : "");
|
|
10446
10454
|
const Header$3 = styled.div.withConfig({
|
|
10447
10455
|
componentId: "sc-2dguvi-1"
|
|
10448
|
-
})(["display:flex;flex-direction:column;align-items:", ";gap:", ";h3{color:", ";}svg{height:", ";width:", ";}"], ({
|
|
10456
|
+
})(["display:flex;flex-direction:column;align-items:", ";gap:", ";h3{color:", ";}svg,img{height:", ";width:", ";}"], ({
|
|
10449
10457
|
$alignContent = "center"
|
|
10450
10458
|
}) => ["start", "end"].includes($alignContent) ? `flex-${$alignContent}` : $alignContent, ({
|
|
10451
10459
|
$size = "md",
|
|
@@ -10478,6 +10486,7 @@ const Card = ({
|
|
|
10478
10486
|
alignContent,
|
|
10479
10487
|
title,
|
|
10480
10488
|
icon,
|
|
10489
|
+
iconUrl,
|
|
10481
10490
|
hasShadow = false,
|
|
10482
10491
|
description,
|
|
10483
10492
|
infoUrl,
|
|
@@ -10500,7 +10509,7 @@ const Card = ({
|
|
|
10500
10509
|
const Component2 = !!infoUrl || typeof onButtonClick === "function" ? Button : "div";
|
|
10501
10510
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$8, { $alignContent: alignContent, $hasShadow: hasShadow, $size: size2, "aria-disabled": disabled, $isSelected: isSelected, tabIndex: 0, ...props, children: [
|
|
10502
10511
|
(icon || title) && /* @__PURE__ */ jsxRuntimeExports.jsxs(Header$3, { $size: size2, $disabled: disabled, $alignContent: alignContent, children: [
|
|
10503
|
-
icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true }),
|
|
10512
|
+
iconUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true }),
|
|
10504
10513
|
title && /* @__PURE__ */ jsxRuntimeExports.jsx(Title$2, { type: "h3", children: title })
|
|
10505
10514
|
] }),
|
|
10506
10515
|
(description || children) && /* @__PURE__ */ jsxRuntimeExports.jsxs(Content$2, { $size: size2, $alignContent: alignContent, children: [
|
|
@@ -38392,7 +38401,7 @@ const Thead = ({
|
|
|
38392
38401
|
};
|
|
38393
38402
|
const TableRow = styled.tr.withConfig({
|
|
38394
38403
|
componentId: "sc-1q458rb-3"
|
|
38395
|
-
})(["overflow:hidden;", " &:last-of-type{border-bottom:none;}@media (max-width:768px){position:relative;display:flex;flex-wrap:wrap;", "}"], ({
|
|
38404
|
+
})(["overflow:hidden;", " &:last-of-type,&:last-child{border-bottom:none;}@media (max-width:768px){position:relative;display:flex;flex-wrap:wrap;", "}"], ({
|
|
38396
38405
|
theme: theme2,
|
|
38397
38406
|
$isDeleted,
|
|
38398
38407
|
$isDisabled,
|
|
@@ -38438,9 +38447,12 @@ const StyledColGroup = styled.colgroup.withConfig({
|
|
|
38438
38447
|
})(["@media (max-width:768px){display:none;}"]);
|
|
38439
38448
|
const StyledThead = styled.thead.withConfig({
|
|
38440
38449
|
componentId: "sc-1q458rb-6"
|
|
38441
|
-
})(["tr{overflow:hidden;background-color:", ";}@media (max-width:768px){display:none;}"], ({
|
|
38450
|
+
})(["tr{overflow:hidden;background-color:", ";", "}@media (max-width:768px){display:none;}"], ({
|
|
38451
|
+
theme: theme2
|
|
38452
|
+
}) => theme2.click.table.header.color.background.default, ({
|
|
38442
38453
|
theme: theme2
|
|
38443
|
-
}) => theme2.click.table.
|
|
38454
|
+
}) => ` border-bottom: ${theme2.click.table.cell.stroke} solid ${theme2.click.table.row.color.stroke.default};
|
|
38455
|
+
`);
|
|
38444
38456
|
const MobileHeader = styled.div.withConfig({
|
|
38445
38457
|
componentId: "sc-1q458rb-7"
|
|
38446
38458
|
})(["display:none;", " @media (max-width:768px){display:block;}"], ({
|
|
@@ -38487,7 +38499,12 @@ const ActionsContainer = styled.div.withConfig({
|
|
|
38487
38499
|
})(["display:flex;flex-wrap:wrap;gap:0.5rem;overflow:hidden;@media (max-width:768px){flex-direction:column;overflow:auto;flex-wrap:nowrap;}"]);
|
|
38488
38500
|
const TableWrapper = styled.div.withConfig({
|
|
38489
38501
|
componentId: "sc-1q458rb-12"
|
|
38490
|
-
})(["width:100%;height:100%;overflow:auto;"]
|
|
38502
|
+
})(["width:100%;height:100%;overflow:auto;", ""], ({
|
|
38503
|
+
theme: theme2
|
|
38504
|
+
}) => `
|
|
38505
|
+
border: ${theme2.click.table.cell.stroke} solid ${theme2.click.table.global.color.stroke.default};
|
|
38506
|
+
border-radius: ${theme2.click.table.radii.all}
|
|
38507
|
+
`);
|
|
38491
38508
|
const TableOuterContainer = styled.div.withConfig({
|
|
38492
38509
|
componentId: "sc-1q458rb-13"
|
|
38493
38510
|
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
@@ -38630,12 +38647,7 @@ const Table = forwardRef(({
|
|
|
38630
38647
|
});
|
|
38631
38648
|
const StyledTable = styled.table.withConfig({
|
|
38632
38649
|
componentId: "sc-1q458rb-19"
|
|
38633
|
-
})(["width:100%;border-
|
|
38634
|
-
theme: theme2
|
|
38635
|
-
}) => `
|
|
38636
|
-
border-radius: ${theme2.click.table.radii.all};
|
|
38637
|
-
border: ${theme2.click.table.cell.stroke} solid ${theme2.click.table.global.color.stroke.default};
|
|
38638
|
-
`);
|
|
38650
|
+
})(["width:100%;border-collapse:collapse;overflow:hidden;table-layout:fixed;@media (max-width:768px){border:none;table-layout:auto;}"]);
|
|
38639
38651
|
const TextAreaField = forwardRef(({
|
|
38640
38652
|
rows,
|
|
38641
38653
|
disabled,
|
package/dist/click-ui.umd.js
CHANGED
|
@@ -10237,13 +10237,20 @@ var __publicField = (obj, key, value) => {
|
|
|
10237
10237
|
const Content$3 = styled.div.withConfig({
|
|
10238
10238
|
componentId: "sc-1drx130-2"
|
|
10239
10239
|
})(["display:flex;flex-direction:column;flex:1;"]);
|
|
10240
|
-
const
|
|
10240
|
+
const CustomIcon = styled.img.withConfig({
|
|
10241
10241
|
componentId: "sc-1drx130-3"
|
|
10242
|
+
})(["height:", ";width:", ";"], ({
|
|
10243
|
+
theme: theme2
|
|
10244
|
+
}) => theme2.click.image.lg.size.height, ({
|
|
10245
|
+
theme: theme2
|
|
10246
|
+
}) => theme2.click.image.lg.size.width);
|
|
10247
|
+
const InfoLink = styled.a.withConfig({
|
|
10248
|
+
componentId: "sc-1drx130-4"
|
|
10242
10249
|
})(["display:flex;align-items:center;color:", ";text-decoration:none;"], ({
|
|
10243
10250
|
theme: theme2
|
|
10244
10251
|
}) => theme2.click.card.secondary.color.link.default);
|
|
10245
10252
|
const ArrowContainer = styled(SvgImage).withConfig({
|
|
10246
|
-
componentId: "sc-1drx130-
|
|
10253
|
+
componentId: "sc-1drx130-5"
|
|
10247
10254
|
})(["color:", ";height:", ";width:", ";"], ({
|
|
10248
10255
|
theme: theme2
|
|
10249
10256
|
}) => theme2.click.card.secondary.color.link.default, ({
|
|
@@ -10252,13 +10259,13 @@ var __publicField = (obj, key, value) => {
|
|
|
10252
10259
|
theme: theme2
|
|
10253
10260
|
}) => theme2.click.image.md.size.width);
|
|
10254
10261
|
const LinkText = styled(Text).withConfig({
|
|
10255
|
-
componentId: "sc-1drx130-
|
|
10262
|
+
componentId: "sc-1drx130-6"
|
|
10256
10263
|
})([""]);
|
|
10257
10264
|
const LinkArrow = styled(ArrowContainer).withConfig({
|
|
10258
|
-
componentId: "sc-1drx130-
|
|
10265
|
+
componentId: "sc-1drx130-7"
|
|
10259
10266
|
})([""]);
|
|
10260
10267
|
const Wrapper$a = styled.div.withConfig({
|
|
10261
|
-
componentId: "sc-1drx130-
|
|
10268
|
+
componentId: "sc-1drx130-8"
|
|
10262
10269
|
})(["background-color:", ";border-radius:", ";border:", ";max-width:420px;min-width:320px;display:flex;flex-direction:column;padding:", ";gap:", ";box-shadow:", ";&:hover,:focus{background-color:", ";cursor:pointer;", ",", "{color:", ';}}&[aria-disabled="true"],&[aria-disabled="true"]:hover,&[aria-disabled="true"]:focus,&[aria-disabled="true"]:active{', "}"], ({
|
|
10263
10270
|
theme: theme2
|
|
10264
10271
|
}) => theme2.click.card.secondary.color.background.default, ({
|
|
@@ -10292,6 +10299,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10292
10299
|
const CardSecondary = ({
|
|
10293
10300
|
title,
|
|
10294
10301
|
icon,
|
|
10302
|
+
iconUrl,
|
|
10295
10303
|
badgeState,
|
|
10296
10304
|
badgeText = "",
|
|
10297
10305
|
hasShadow = false,
|
|
@@ -10304,7 +10312,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10304
10312
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$a, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
|
|
10305
10313
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Header$4, { children: [
|
|
10306
10314
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(HeaderLeft, { $disabled: disabled, children: [
|
|
10307
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
10315
|
+
iconUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(CustomIcon, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
|
|
10308
10316
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Title$2, { type: "h3", children: title })
|
|
10309
10317
|
] }),
|
|
10310
10318
|
badgeText && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
|
|
@@ -10462,7 +10470,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10462
10470
|
}) => $isSelected ? `border-color: ${theme2.click.button.basic.color.primary.stroke.active};` : "");
|
|
10463
10471
|
const Header$3 = styled.div.withConfig({
|
|
10464
10472
|
componentId: "sc-2dguvi-1"
|
|
10465
|
-
})(["display:flex;flex-direction:column;align-items:", ";gap:", ";h3{color:", ";}svg{height:", ";width:", ";}"], ({
|
|
10473
|
+
})(["display:flex;flex-direction:column;align-items:", ";gap:", ";h3{color:", ";}svg,img{height:", ";width:", ";}"], ({
|
|
10466
10474
|
$alignContent = "center"
|
|
10467
10475
|
}) => ["start", "end"].includes($alignContent) ? `flex-${$alignContent}` : $alignContent, ({
|
|
10468
10476
|
$size = "md",
|
|
@@ -10495,6 +10503,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10495
10503
|
alignContent,
|
|
10496
10504
|
title,
|
|
10497
10505
|
icon,
|
|
10506
|
+
iconUrl,
|
|
10498
10507
|
hasShadow = false,
|
|
10499
10508
|
description,
|
|
10500
10509
|
infoUrl,
|
|
@@ -10517,7 +10526,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10517
10526
|
const Component = !!infoUrl || typeof onButtonClick === "function" ? Button : "div";
|
|
10518
10527
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$8, { $alignContent: alignContent, $hasShadow: hasShadow, $size: size2, "aria-disabled": disabled, $isSelected: isSelected, tabIndex: 0, ...props, children: [
|
|
10519
10528
|
(icon || title) && /* @__PURE__ */ jsxRuntimeExports.jsxs(Header$3, { $size: size2, $disabled: disabled, $alignContent: alignContent, children: [
|
|
10520
|
-
icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true }),
|
|
10529
|
+
iconUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true }),
|
|
10521
10530
|
title && /* @__PURE__ */ jsxRuntimeExports.jsx(Title$2, { type: "h3", children: title })
|
|
10522
10531
|
] }),
|
|
10523
10532
|
(description || children) && /* @__PURE__ */ jsxRuntimeExports.jsxs(Content$2, { $size: size2, $alignContent: alignContent, children: [
|
|
@@ -38409,7 +38418,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
38409
38418
|
};
|
|
38410
38419
|
const TableRow = styled.tr.withConfig({
|
|
38411
38420
|
componentId: "sc-1q458rb-3"
|
|
38412
|
-
})(["overflow:hidden;", " &:last-of-type{border-bottom:none;}@media (max-width:768px){position:relative;display:flex;flex-wrap:wrap;", "}"], ({
|
|
38421
|
+
})(["overflow:hidden;", " &:last-of-type,&:last-child{border-bottom:none;}@media (max-width:768px){position:relative;display:flex;flex-wrap:wrap;", "}"], ({
|
|
38413
38422
|
theme: theme2,
|
|
38414
38423
|
$isDeleted,
|
|
38415
38424
|
$isDisabled,
|
|
@@ -38455,9 +38464,12 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
38455
38464
|
})(["@media (max-width:768px){display:none;}"]);
|
|
38456
38465
|
const StyledThead = styled.thead.withConfig({
|
|
38457
38466
|
componentId: "sc-1q458rb-6"
|
|
38458
|
-
})(["tr{overflow:hidden;background-color:", ";}@media (max-width:768px){display:none;}"], ({
|
|
38467
|
+
})(["tr{overflow:hidden;background-color:", ";", "}@media (max-width:768px){display:none;}"], ({
|
|
38468
|
+
theme: theme2
|
|
38469
|
+
}) => theme2.click.table.header.color.background.default, ({
|
|
38459
38470
|
theme: theme2
|
|
38460
|
-
}) => theme2.click.table.
|
|
38471
|
+
}) => ` border-bottom: ${theme2.click.table.cell.stroke} solid ${theme2.click.table.row.color.stroke.default};
|
|
38472
|
+
`);
|
|
38461
38473
|
const MobileHeader = styled.div.withConfig({
|
|
38462
38474
|
componentId: "sc-1q458rb-7"
|
|
38463
38475
|
})(["display:none;", " @media (max-width:768px){display:block;}"], ({
|
|
@@ -38504,7 +38516,12 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
38504
38516
|
})(["display:flex;flex-wrap:wrap;gap:0.5rem;overflow:hidden;@media (max-width:768px){flex-direction:column;overflow:auto;flex-wrap:nowrap;}"]);
|
|
38505
38517
|
const TableWrapper = styled.div.withConfig({
|
|
38506
38518
|
componentId: "sc-1q458rb-12"
|
|
38507
|
-
})(["width:100%;height:100%;overflow:auto;"]
|
|
38519
|
+
})(["width:100%;height:100%;overflow:auto;", ""], ({
|
|
38520
|
+
theme: theme2
|
|
38521
|
+
}) => `
|
|
38522
|
+
border: ${theme2.click.table.cell.stroke} solid ${theme2.click.table.global.color.stroke.default};
|
|
38523
|
+
border-radius: ${theme2.click.table.radii.all}
|
|
38524
|
+
`);
|
|
38508
38525
|
const TableOuterContainer = styled.div.withConfig({
|
|
38509
38526
|
componentId: "sc-1q458rb-13"
|
|
38510
38527
|
})(["display:flex;flex-direction:column;gap:1rem;width:100%;"]);
|
|
@@ -38647,12 +38664,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
38647
38664
|
});
|
|
38648
38665
|
const StyledTable = styled.table.withConfig({
|
|
38649
38666
|
componentId: "sc-1q458rb-19"
|
|
38650
|
-
})(["width:100%;border-
|
|
38651
|
-
theme: theme2
|
|
38652
|
-
}) => `
|
|
38653
|
-
border-radius: ${theme2.click.table.radii.all};
|
|
38654
|
-
border: ${theme2.click.table.cell.stroke} solid ${theme2.click.table.global.color.stroke.default};
|
|
38655
|
-
`);
|
|
38667
|
+
})(["width:100%;border-collapse:collapse;overflow:hidden;table-layout:fixed;@media (max-width:768px){border:none;table-layout:auto;}"]);
|
|
38656
38668
|
const TextAreaField = React.forwardRef(({
|
|
38657
38669
|
rows,
|
|
38658
38670
|
disabled,
|
|
@@ -7,6 +7,7 @@ type ContentAlignment = "start" | "center" | "end";
|
|
|
7
7
|
export interface CardPrimaryProps extends HTMLAttributes<HTMLDivElement>, WithTopBadgeProps {
|
|
8
8
|
title?: string;
|
|
9
9
|
icon?: IconName;
|
|
10
|
+
iconUrl?: string;
|
|
10
11
|
hasShadow?: boolean;
|
|
11
12
|
disabled?: boolean;
|
|
12
13
|
description?: ReactNode;
|
|
@@ -4,7 +4,8 @@ import { HTMLAttributes, ReactNode } from 'react';
|
|
|
4
4
|
export type BadgeState = "default" | "success" | "neutral" | "danger" | "disabled" | "warning" | "info";
|
|
5
5
|
export interface CardSecondaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
6
6
|
title: string;
|
|
7
|
-
icon
|
|
7
|
+
icon?: IconName;
|
|
8
|
+
iconUrl?: string;
|
|
8
9
|
badgeState?: BadgeState;
|
|
9
10
|
hasShadow?: boolean;
|
|
10
11
|
disabled?: boolean;
|
|
@@ -13,4 +14,4 @@ export interface CardSecondaryProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
13
14
|
infoUrl?: string;
|
|
14
15
|
infoText?: string;
|
|
15
16
|
}
|
|
16
|
-
export declare const CardSecondary: ({ title, icon, badgeState, badgeText, hasShadow, disabled, description, infoUrl, infoText, ...props }: CardSecondaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const CardSecondary: ({ title, icon, iconUrl, badgeState, badgeText, hasShadow, disabled, description, infoUrl, infoText, ...props }: CardSecondaryProps) => import("react/jsx-runtime").JSX.Element;
|