@wistia/ui 0.6.21 → 0.6.22
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/index.cjs +150 -143
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +19 -7
- package/dist/index.d.ts +19 -7
- package/dist/index.mjs +102 -95
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.22
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -2233,6 +2233,7 @@ var ellipsisStyle = import_styled_components14.css`
|
|
|
2233
2233
|
overflow: hidden;
|
|
2234
2234
|
text-overflow: ellipsis;
|
|
2235
2235
|
white-space: nowrap;
|
|
2236
|
+
display: block;
|
|
2236
2237
|
|
|
2237
2238
|
/*
|
|
2238
2239
|
Using feature detection (i.e., -webkit-named-image) we only target Safari browsers
|
|
@@ -2255,7 +2256,7 @@ var ellipsisStyle = import_styled_components14.css`
|
|
|
2255
2256
|
var ellipsisFlexParentStyle = import_styled_components14.css`
|
|
2256
2257
|
min-width: 0;
|
|
2257
2258
|
`;
|
|
2258
|
-
var EllipsisComponent = import_styled_components14.default.
|
|
2259
|
+
var EllipsisComponent = import_styled_components14.default.span`
|
|
2259
2260
|
${ellipsisStyle};
|
|
2260
2261
|
${({ $lines }) => {
|
|
2261
2262
|
if ((0, import_type_guards8.isNotNil)($lines)) {
|
|
@@ -7531,12 +7532,12 @@ Card.displayName = "Card";
|
|
|
7531
7532
|
|
|
7532
7533
|
// src/components/Checkbox/Checkbox.tsx
|
|
7533
7534
|
var import_react18 = require("react");
|
|
7534
|
-
var
|
|
7535
|
-
var
|
|
7535
|
+
var import_styled_components34 = __toESM(require("styled-components"));
|
|
7536
|
+
var import_type_guards22 = require("@wistia/type-guards");
|
|
7536
7537
|
|
|
7537
7538
|
// src/private/components/FormControlLabel/FormControlLabel.tsx
|
|
7538
|
-
var
|
|
7539
|
-
var
|
|
7539
|
+
var import_styled_components33 = __toESM(require("styled-components"));
|
|
7540
|
+
var import_type_guards21 = require("@wistia/type-guards");
|
|
7540
7541
|
|
|
7541
7542
|
// src/private/components/FormControlLabel/FormControlLabelDescription.tsx
|
|
7542
7543
|
var import_styled_components31 = __toESM(require("styled-components"));
|
|
@@ -7574,16 +7575,38 @@ var FormControlLabelDescription = ({
|
|
|
7574
7575
|
};
|
|
7575
7576
|
FormControlLabelDescription.displayName = "FormControlLabelDescription";
|
|
7576
7577
|
|
|
7577
|
-
// src/
|
|
7578
|
+
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
7579
|
+
var import_styled_components32 = __toESM(require("styled-components"));
|
|
7580
|
+
var import_type_guards20 = require("@wistia/type-guards");
|
|
7578
7581
|
var import_jsx_runtime200 = require("react/jsx-runtime");
|
|
7579
|
-
var
|
|
7582
|
+
var VisuallyHidden = import_styled_components32.default.div({ ...visuallyHiddenStyle });
|
|
7583
|
+
var VisuallyHiddenButFocusable = import_styled_components32.default.div({
|
|
7584
|
+
"&:not(:focus-within)": visuallyHiddenStyle
|
|
7585
|
+
});
|
|
7586
|
+
var ScreenReaderOnly = ({
|
|
7587
|
+
text,
|
|
7588
|
+
children,
|
|
7589
|
+
focusable = false,
|
|
7590
|
+
...otherProps
|
|
7591
|
+
}) => {
|
|
7592
|
+
const accessibleText = (0, import_type_guards20.isNotNil)(text) ? text : children;
|
|
7593
|
+
if (focusable) {
|
|
7594
|
+
return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
|
|
7595
|
+
}
|
|
7596
|
+
return /* @__PURE__ */ (0, import_jsx_runtime200.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
|
|
7597
|
+
};
|
|
7598
|
+
ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
7599
|
+
|
|
7600
|
+
// src/private/components/FormControlLabel/FormControlLabel.tsx
|
|
7601
|
+
var import_jsx_runtime201 = require("react/jsx-runtime");
|
|
7602
|
+
var disabledStyle2 = import_styled_components33.css`
|
|
7580
7603
|
color: var(--wui-color-text-disabled);
|
|
7581
7604
|
`;
|
|
7582
|
-
var StyledLabelWrapper =
|
|
7605
|
+
var StyledLabelWrapper = import_styled_components33.default.div`
|
|
7583
7606
|
display: flex;
|
|
7584
7607
|
flex-direction: column;
|
|
7585
7608
|
`;
|
|
7586
|
-
var StyledFormControlLabel =
|
|
7609
|
+
var StyledFormControlLabel = import_styled_components33.default.label`
|
|
7587
7610
|
cursor: pointer;
|
|
7588
7611
|
display: flex;
|
|
7589
7612
|
align-items: center;
|
|
@@ -7602,23 +7625,25 @@ var FormControlLabel = ({
|
|
|
7602
7625
|
disabled = false,
|
|
7603
7626
|
controlSlot,
|
|
7604
7627
|
htmlFor,
|
|
7628
|
+
hideLabel = false,
|
|
7605
7629
|
...props
|
|
7606
7630
|
}) => {
|
|
7607
|
-
if ((0,
|
|
7631
|
+
if ((0, import_type_guards21.isNil)(label)) {
|
|
7608
7632
|
return null;
|
|
7609
7633
|
}
|
|
7610
|
-
|
|
7634
|
+
const labelContent = hideLabel ? /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)(StyledLabelWrapper, { children: [
|
|
7635
|
+
label,
|
|
7636
|
+
/* @__PURE__ */ (0, import_jsx_runtime201.jsx)(FormControlLabelDescription, { children: description })
|
|
7637
|
+
] });
|
|
7638
|
+
return /* @__PURE__ */ (0, import_jsx_runtime201.jsxs)(
|
|
7611
7639
|
StyledFormControlLabel,
|
|
7612
7640
|
{
|
|
7613
7641
|
$disabled: disabled,
|
|
7614
7642
|
htmlFor,
|
|
7615
7643
|
...props,
|
|
7616
7644
|
children: [
|
|
7617
|
-
(0,
|
|
7618
|
-
|
|
7619
|
-
label,
|
|
7620
|
-
/* @__PURE__ */ (0, import_jsx_runtime200.jsx)(FormControlLabelDescription, { children: description })
|
|
7621
|
-
] })
|
|
7645
|
+
(0, import_type_guards21.isNotNil)(controlSlot) ? controlSlot : null,
|
|
7646
|
+
labelContent
|
|
7622
7647
|
]
|
|
7623
7648
|
}
|
|
7624
7649
|
);
|
|
@@ -7626,8 +7651,8 @@ var FormControlLabel = ({
|
|
|
7626
7651
|
FormControlLabel.displayName = "FormControlLabel";
|
|
7627
7652
|
|
|
7628
7653
|
// src/components/Checkbox/Checkbox.tsx
|
|
7629
|
-
var
|
|
7630
|
-
var CheckIcon = () => /* @__PURE__ */ (0,
|
|
7654
|
+
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
7655
|
+
var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
7631
7656
|
"svg",
|
|
7632
7657
|
{
|
|
7633
7658
|
fill: "inherit",
|
|
@@ -7635,7 +7660,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
|
7635
7660
|
viewBox: "0 0 10 8",
|
|
7636
7661
|
width: "10",
|
|
7637
7662
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7638
|
-
children: /* @__PURE__ */ (0,
|
|
7663
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
7639
7664
|
"path",
|
|
7640
7665
|
{
|
|
7641
7666
|
d: "M3.47281 7.19303L0.377565 4.07999C0.191609 3.89297 0.191609 3.58973 0.377565 3.40268L1.05098 2.72537C1.23694 2.53833 1.53847 2.53833 1.72442 2.72537L3.80953 4.82245L8.27558 0.330729C8.46154 0.143704 8.76306 0.143704 8.94902 0.330729L9.62244 1.00804C9.8084 1.19506 9.8084 1.49831 9.62244 1.68535L4.14624 7.19305C3.96027 7.38008 3.65876 7.38008 3.47281 7.19303Z",
|
|
@@ -7644,29 +7669,29 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime201.jsx)(
|
|
|
7644
7669
|
)
|
|
7645
7670
|
}
|
|
7646
7671
|
);
|
|
7647
|
-
var disabledStyle3 =
|
|
7672
|
+
var disabledStyle3 = import_styled_components34.css`
|
|
7648
7673
|
cursor: not-allowed;
|
|
7649
7674
|
opacity: 0.5;
|
|
7650
7675
|
`;
|
|
7651
|
-
var inputSizeSmall =
|
|
7676
|
+
var inputSizeSmall = import_styled_components34.css`
|
|
7652
7677
|
width: 14px;
|
|
7653
7678
|
height: 14px;
|
|
7654
7679
|
min-width: 14px;
|
|
7655
7680
|
min-height: 14px;
|
|
7656
7681
|
`;
|
|
7657
|
-
var inputSizeMedium =
|
|
7682
|
+
var inputSizeMedium = import_styled_components34.css`
|
|
7658
7683
|
width: 16px;
|
|
7659
7684
|
height: 16px;
|
|
7660
7685
|
min-width: 16px;
|
|
7661
7686
|
min-height: 16px;
|
|
7662
7687
|
`;
|
|
7663
|
-
var inputSizeLarge =
|
|
7688
|
+
var inputSizeLarge = import_styled_components34.css`
|
|
7664
7689
|
width: 20px;
|
|
7665
7690
|
height: 20px;
|
|
7666
7691
|
min-width: 20px;
|
|
7667
7692
|
min-height: 20px;
|
|
7668
7693
|
`;
|
|
7669
|
-
var StyledCheckboxWrapper =
|
|
7694
|
+
var StyledCheckboxWrapper = import_styled_components34.default.div`
|
|
7670
7695
|
display: flex;
|
|
7671
7696
|
margin: 0;
|
|
7672
7697
|
|
|
@@ -7680,7 +7705,7 @@ var getSizeCss = (size) => {
|
|
|
7680
7705
|
if (size === "lg") return inputSizeLarge;
|
|
7681
7706
|
return inputSizeMedium;
|
|
7682
7707
|
};
|
|
7683
|
-
var StyledCheckboxInput =
|
|
7708
|
+
var StyledCheckboxInput = import_styled_components34.default.div`
|
|
7684
7709
|
${({ $size }) => getSizeCss($size)}
|
|
7685
7710
|
line-height: 0;
|
|
7686
7711
|
margin: 0;
|
|
@@ -7699,7 +7724,7 @@ var StyledCheckboxInput = import_styled_components33.default.div`
|
|
|
7699
7724
|
}
|
|
7700
7725
|
}
|
|
7701
7726
|
`;
|
|
7702
|
-
var StyledHiddenCheckboxInput =
|
|
7727
|
+
var StyledHiddenCheckboxInput = import_styled_components34.default.input`
|
|
7703
7728
|
${visuallyHiddenStyle}
|
|
7704
7729
|
|
|
7705
7730
|
/* toggles display of faux-input background-color */
|
|
@@ -7724,17 +7749,18 @@ var Checkbox = (0, import_react18.forwardRef)(
|
|
|
7724
7749
|
size = "md",
|
|
7725
7750
|
value,
|
|
7726
7751
|
required = false,
|
|
7752
|
+
hideLabel = false,
|
|
7727
7753
|
...props
|
|
7728
7754
|
}, ref) => {
|
|
7729
7755
|
const generatedId = (0, import_react18.useId)();
|
|
7730
|
-
const computedId = (0,
|
|
7731
|
-
return /* @__PURE__ */ (0,
|
|
7756
|
+
const computedId = (0, import_type_guards22.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-${generatedId}`;
|
|
7757
|
+
return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(
|
|
7732
7758
|
StyledCheckboxWrapper,
|
|
7733
7759
|
{
|
|
7734
7760
|
ref,
|
|
7735
7761
|
disabled,
|
|
7736
7762
|
children: [
|
|
7737
|
-
/* @__PURE__ */ (0,
|
|
7763
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
7738
7764
|
StyledHiddenCheckboxInput,
|
|
7739
7765
|
{
|
|
7740
7766
|
...props,
|
|
@@ -7749,18 +7775,19 @@ var Checkbox = (0, import_react18.forwardRef)(
|
|
|
7749
7775
|
value
|
|
7750
7776
|
}
|
|
7751
7777
|
),
|
|
7752
|
-
/* @__PURE__ */ (0,
|
|
7778
|
+
/* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
7753
7779
|
FormControlLabel,
|
|
7754
7780
|
{
|
|
7755
|
-
controlSlot: /* @__PURE__ */ (0,
|
|
7781
|
+
controlSlot: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(
|
|
7756
7782
|
StyledCheckboxInput,
|
|
7757
7783
|
{
|
|
7758
7784
|
$size: size,
|
|
7759
7785
|
"data-wui-faux-input": "true",
|
|
7760
|
-
children: /* @__PURE__ */ (0,
|
|
7786
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime202.jsx)(CheckIcon, {})
|
|
7761
7787
|
}
|
|
7762
7788
|
),
|
|
7763
7789
|
description,
|
|
7790
|
+
hideLabel,
|
|
7764
7791
|
htmlFor: computedId,
|
|
7765
7792
|
label
|
|
7766
7793
|
}
|
|
@@ -7809,10 +7836,10 @@ ClickRegion.displayName = "ClickRegion";
|
|
|
7809
7836
|
|
|
7810
7837
|
// src/components/Collapsible/Collapsible.tsx
|
|
7811
7838
|
var import_react_collapsible = require("@radix-ui/react-collapsible");
|
|
7812
|
-
var
|
|
7813
|
-
var
|
|
7814
|
-
var
|
|
7815
|
-
var StyledRoot = (0,
|
|
7839
|
+
var import_type_guards23 = require("@wistia/type-guards");
|
|
7840
|
+
var import_styled_components35 = __toESM(require("styled-components"));
|
|
7841
|
+
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
7842
|
+
var StyledRoot = (0, import_styled_components35.default)(import_react_collapsible.Root)`
|
|
7816
7843
|
&[data-state='closed'] [data-wui-collapsible-content] {
|
|
7817
7844
|
display: -webkit-box;
|
|
7818
7845
|
-webkit-box-orient: vertical;
|
|
@@ -7826,84 +7853,84 @@ var Collapsible = ({
|
|
|
7826
7853
|
onOpenChange
|
|
7827
7854
|
}) => {
|
|
7828
7855
|
const controlProps = {
|
|
7829
|
-
...(0,
|
|
7856
|
+
...(0, import_type_guards23.isNotNil)(onOpenChange) && (0, import_type_guards23.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
|
|
7830
7857
|
};
|
|
7831
|
-
return /* @__PURE__ */ (0,
|
|
7858
|
+
return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(StyledRoot, { ...controlProps, children });
|
|
7832
7859
|
};
|
|
7833
7860
|
Collapsible.displayName = "Collapsible";
|
|
7834
7861
|
|
|
7835
7862
|
// src/components/Collapsible/CollapsibleTrigger.tsx
|
|
7836
7863
|
var import_react20 = require("react");
|
|
7837
7864
|
var import_react_collapsible2 = require("@radix-ui/react-collapsible");
|
|
7838
|
-
var
|
|
7865
|
+
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
7839
7866
|
var CollapsibleTrigger = ({ children }) => {
|
|
7840
7867
|
import_react20.Children.only(children);
|
|
7841
|
-
return /* @__PURE__ */ (0,
|
|
7868
|
+
return /* @__PURE__ */ (0, import_jsx_runtime204.jsx)(import_react_collapsible2.Trigger, { asChild: true, children });
|
|
7842
7869
|
};
|
|
7843
7870
|
|
|
7844
7871
|
// src/components/Collapsible/CollapsibleContent.tsx
|
|
7845
|
-
var
|
|
7872
|
+
var import_styled_components36 = __toESM(require("styled-components"));
|
|
7846
7873
|
var import_react_collapsible3 = require("@radix-ui/react-collapsible");
|
|
7847
|
-
var
|
|
7848
|
-
var
|
|
7849
|
-
var ClampedContent =
|
|
7874
|
+
var import_type_guards24 = require("@wistia/type-guards");
|
|
7875
|
+
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
7876
|
+
var ClampedContent = import_styled_components36.default.div.attrs({ "data-wui-collapsible-content": true })`
|
|
7850
7877
|
--wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
|
|
7851
7878
|
`;
|
|
7852
7879
|
var CollapsibleContent = ({ clamp, children }) => {
|
|
7853
|
-
if ((0,
|
|
7854
|
-
return /* @__PURE__ */ (0,
|
|
7880
|
+
if ((0, import_type_guards24.isNotUndefined)(clamp)) {
|
|
7881
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(ClampedContent, { $clamp: clamp, children });
|
|
7855
7882
|
}
|
|
7856
|
-
return /* @__PURE__ */ (0,
|
|
7883
|
+
return /* @__PURE__ */ (0, import_jsx_runtime205.jsx)(import_react_collapsible3.Content, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(import_jsx_runtime205.Fragment, { children: [
|
|
7857
7884
|
children,
|
|
7858
7885
|
" "
|
|
7859
7886
|
] }) });
|
|
7860
7887
|
};
|
|
7861
7888
|
|
|
7862
7889
|
// src/components/DataCards/DataCard.tsx
|
|
7863
|
-
var
|
|
7864
|
-
var
|
|
7890
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
7891
|
+
var import_type_guards25 = require("@wistia/type-guards");
|
|
7865
7892
|
|
|
7866
7893
|
// src/components/Heading/Heading.tsx
|
|
7867
7894
|
var import_react21 = require("react");
|
|
7868
|
-
var
|
|
7869
|
-
var
|
|
7870
|
-
var heroStyle =
|
|
7895
|
+
var import_styled_components37 = __toESM(require("styled-components"));
|
|
7896
|
+
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
7897
|
+
var heroStyle = import_styled_components37.css`
|
|
7871
7898
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
7872
7899
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
7873
7900
|
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
7874
7901
|
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
7875
7902
|
`;
|
|
7876
|
-
var heading1TextStyle =
|
|
7903
|
+
var heading1TextStyle = import_styled_components37.css`
|
|
7877
7904
|
--font-family: var(--wui-typography-heading-1-family);
|
|
7878
7905
|
--font-size: var(--wui-typography-heading-1-size);
|
|
7879
7906
|
--font-weight: var(--wui-typography-heading-1-weight);
|
|
7880
7907
|
--line-height: var(--wui-typography-heading-1-line-height);
|
|
7881
7908
|
`;
|
|
7882
|
-
var heading2TextStyle =
|
|
7909
|
+
var heading2TextStyle = import_styled_components37.css`
|
|
7883
7910
|
--font-family: var(--wui-typography-heading-2-family);
|
|
7884
7911
|
--font-size: var(--wui-typography-heading-2-size);
|
|
7885
7912
|
--font-weight: var(--wui-typography-heading-2-weight);
|
|
7886
7913
|
--line-height: var(--wui-typography-heading-2-line-height);
|
|
7887
7914
|
`;
|
|
7888
|
-
var heading3TextStyle =
|
|
7915
|
+
var heading3TextStyle = import_styled_components37.css`
|
|
7889
7916
|
--font-family: var(--wui-typography-heading-3-family);
|
|
7890
7917
|
--font-size: var(--wui-typography-heading-3-size);
|
|
7891
7918
|
--font-weight: var(--wui-typography-heading-3-weight);
|
|
7892
7919
|
--line-height: var(--wui-typography-heading-3-line-height);
|
|
7893
7920
|
`;
|
|
7894
|
-
var heading4TextStyle =
|
|
7921
|
+
var heading4TextStyle = import_styled_components37.css`
|
|
7895
7922
|
--font-family: var(--wui-typography-heading-4-family);
|
|
7896
7923
|
--font-size: var(--wui-typography-heading-4-size);
|
|
7897
7924
|
--font-weight: var(--wui-typography-heading-4-weight);
|
|
7898
7925
|
--line-height: var(--wui-typography-heading-4-line-height);
|
|
7899
7926
|
`;
|
|
7900
|
-
var heading5TextStyle =
|
|
7927
|
+
var heading5TextStyle = import_styled_components37.css`
|
|
7901
7928
|
--font-family: var(--wui-typography-heading-5-family);
|
|
7902
7929
|
--font-size: var(--wui-typography-heading-5-size);
|
|
7903
7930
|
--font-weight: var(--wui-typography-heading-5-weight);
|
|
7904
7931
|
--line-height: var(--wui-typography-heading-5-line-height);
|
|
7905
7932
|
`;
|
|
7906
|
-
var heading6TextStyle =
|
|
7933
|
+
var heading6TextStyle = import_styled_components37.css`
|
|
7907
7934
|
--font-family: var(--wui-typography-heading-6-family);
|
|
7908
7935
|
--font-size: var(--wui-typography-heading-6-size);
|
|
7909
7936
|
--font-weight: var(--wui-typography-heading-6-weight);
|
|
@@ -7919,7 +7946,7 @@ var variantStyleMap = {
|
|
|
7919
7946
|
heading6: heading6TextStyle
|
|
7920
7947
|
};
|
|
7921
7948
|
var DEFAULT_ELEMENT2 = "h1";
|
|
7922
|
-
var StyledHeading =
|
|
7949
|
+
var StyledHeading = import_styled_components37.default.div`
|
|
7923
7950
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7924
7951
|
font-family: var(--font-family);
|
|
7925
7952
|
font-size: var(--font-size);
|
|
@@ -7928,16 +7955,16 @@ var StyledHeading = import_styled_components36.default.div`
|
|
|
7928
7955
|
color: var(--wui-color-text);
|
|
7929
7956
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
7930
7957
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7931
|
-
${({ $inline }) => $inline &&
|
|
7958
|
+
${({ $inline }) => $inline && import_styled_components37.css`
|
|
7932
7959
|
display: inline-block;
|
|
7933
7960
|
`}
|
|
7934
|
-
${({ $disabled }) => $disabled &&
|
|
7961
|
+
${({ $disabled }) => $disabled && import_styled_components37.css`
|
|
7935
7962
|
color: var(--wui-color-text-disabled);
|
|
7936
7963
|
`}
|
|
7937
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
7964
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components37.css`
|
|
7938
7965
|
user-select: none;
|
|
7939
7966
|
`}
|
|
7940
|
-
${({ $align }) =>
|
|
7967
|
+
${({ $align }) => import_styled_components37.css`
|
|
7941
7968
|
text-align: ${$align};
|
|
7942
7969
|
`}
|
|
7943
7970
|
margin: 0;
|
|
@@ -7962,7 +7989,7 @@ var HeadingComponent = (0, import_react21.forwardRef)(
|
|
|
7962
7989
|
variant = "heading1",
|
|
7963
7990
|
renderAs,
|
|
7964
7991
|
...otherProps
|
|
7965
|
-
}, ref) => /* @__PURE__ */ (0,
|
|
7992
|
+
}, ref) => /* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
7966
7993
|
StyledHeading,
|
|
7967
7994
|
{
|
|
7968
7995
|
ref,
|
|
@@ -7982,8 +8009,8 @@ HeadingComponent.displayName = "Heading";
|
|
|
7982
8009
|
var Heading = makePolymorphic(HeadingComponent);
|
|
7983
8010
|
|
|
7984
8011
|
// src/components/DataCards/DataCard.tsx
|
|
7985
|
-
var
|
|
7986
|
-
var StyledDataCard =
|
|
8012
|
+
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
8013
|
+
var StyledDataCard = import_styled_components38.default.div`
|
|
7987
8014
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
7988
8015
|
display: grid;
|
|
7989
8016
|
grid-template-areas: 'label slot' 'value value';
|
|
@@ -7996,7 +8023,7 @@ var StyledDataCard = import_styled_components37.default.div`
|
|
|
7996
8023
|
border-radius: var(--wui-border-radius-02);
|
|
7997
8024
|
position: relative;
|
|
7998
8025
|
`;
|
|
7999
|
-
var shimmer =
|
|
8026
|
+
var shimmer = import_styled_components38.keyframes`
|
|
8000
8027
|
0% {
|
|
8001
8028
|
background-position: 200% 0;
|
|
8002
8029
|
}
|
|
@@ -8004,7 +8031,7 @@ var shimmer = import_styled_components37.keyframes`
|
|
|
8004
8031
|
background-position: -200% 0;
|
|
8005
8032
|
}
|
|
8006
8033
|
`;
|
|
8007
|
-
var LoadingBackground =
|
|
8034
|
+
var LoadingBackground = import_styled_components38.default.div`
|
|
8008
8035
|
background: linear-gradient(
|
|
8009
8036
|
90deg,
|
|
8010
8037
|
var(--wui-color-bg-surface-tertiary) 25%,
|
|
@@ -8015,27 +8042,27 @@ var LoadingBackground = import_styled_components37.default.div`
|
|
|
8015
8042
|
animation: ${shimmer} 1.5s infinite;
|
|
8016
8043
|
border-radius: var(--wui-border-radius-01);
|
|
8017
8044
|
`;
|
|
8018
|
-
var StyledLoadingLabel = (0,
|
|
8045
|
+
var StyledLoadingLabel = (0, import_styled_components38.default)(LoadingBackground)`
|
|
8019
8046
|
width: 80px;
|
|
8020
8047
|
height: var(--wui-typography-heading-6-line-height);
|
|
8021
8048
|
`;
|
|
8022
|
-
var StyledLoadingValue = (0,
|
|
8049
|
+
var StyledLoadingValue = (0, import_styled_components38.default)(LoadingBackground)`
|
|
8023
8050
|
width: 90%;
|
|
8024
8051
|
height: var(--wui-typography-heading-3-line-height);
|
|
8025
8052
|
`;
|
|
8026
|
-
var StyledLabel2 = (0,
|
|
8053
|
+
var StyledLabel2 = (0, import_styled_components38.default)(Heading)`
|
|
8027
8054
|
grid-area: label;
|
|
8028
8055
|
`;
|
|
8029
|
-
var StyledValue = (0,
|
|
8056
|
+
var StyledValue = (0, import_styled_components38.default)(Heading)`
|
|
8030
8057
|
grid-area: value;
|
|
8031
8058
|
`;
|
|
8032
|
-
var StyledSlot =
|
|
8059
|
+
var StyledSlot = import_styled_components38.default.div`
|
|
8033
8060
|
display: flex;
|
|
8034
8061
|
justify-content: flex-end;
|
|
8035
8062
|
grid-area: slot;
|
|
8036
8063
|
align-self: center;
|
|
8037
8064
|
`;
|
|
8038
|
-
var StyledDataCardTrendContainer =
|
|
8065
|
+
var StyledDataCardTrendContainer = import_styled_components38.default.div`
|
|
8039
8066
|
position: absolute;
|
|
8040
8067
|
bottom: var(--wui-space-01);
|
|
8041
8068
|
right: var(--wui-space-01);
|
|
@@ -8048,39 +8075,39 @@ var DataCard = ({
|
|
|
8048
8075
|
isLoading = false,
|
|
8049
8076
|
trend,
|
|
8050
8077
|
...props
|
|
8051
|
-
}) => /* @__PURE__ */ (0,
|
|
8078
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime207.jsxs)(
|
|
8052
8079
|
StyledDataCard,
|
|
8053
8080
|
{
|
|
8054
8081
|
$colorScheme: colorScheme,
|
|
8055
8082
|
...props,
|
|
8056
8083
|
children: [
|
|
8057
|
-
/* @__PURE__ */ (0,
|
|
8084
|
+
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
8058
8085
|
StyledLabel2,
|
|
8059
8086
|
{
|
|
8060
8087
|
renderAs: "dt",
|
|
8061
8088
|
variant: "heading6",
|
|
8062
|
-
children: isLoading ? /* @__PURE__ */ (0,
|
|
8089
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(StyledLoadingLabel, {}) : label
|
|
8063
8090
|
}
|
|
8064
8091
|
),
|
|
8065
|
-
/* @__PURE__ */ (0,
|
|
8092
|
+
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)(
|
|
8066
8093
|
StyledValue,
|
|
8067
8094
|
{
|
|
8068
8095
|
renderAs: "dd",
|
|
8069
8096
|
variant: "heading3",
|
|
8070
|
-
children: isLoading ? /* @__PURE__ */ (0,
|
|
8097
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(StyledLoadingValue, {}) : value
|
|
8071
8098
|
}
|
|
8072
8099
|
),
|
|
8073
|
-
(0,
|
|
8074
|
-
(0,
|
|
8100
|
+
(0, import_type_guards25.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(StyledSlot, { children: upperRightSlot }),
|
|
8101
|
+
(0, import_type_guards25.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime207.jsx)(StyledDataCardTrendContainer, { children: trend })
|
|
8075
8102
|
]
|
|
8076
8103
|
}
|
|
8077
8104
|
);
|
|
8078
8105
|
DataCard.displayName = "DataCard";
|
|
8079
8106
|
|
|
8080
8107
|
// src/components/DataCards/DataCards.tsx
|
|
8081
|
-
var
|
|
8082
|
-
var
|
|
8083
|
-
var StyledDataCards = (0,
|
|
8108
|
+
var import_styled_components39 = __toESM(require("styled-components"));
|
|
8109
|
+
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
8110
|
+
var StyledDataCards = (0, import_styled_components39.default)(Box)`
|
|
8084
8111
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8085
8112
|
margin-top: 0; /* Remove default <dl> style */
|
|
8086
8113
|
> * {
|
|
@@ -8094,7 +8121,7 @@ var DataCards = ({
|
|
|
8094
8121
|
colorScheme = "inherit",
|
|
8095
8122
|
...props
|
|
8096
8123
|
}) => {
|
|
8097
|
-
return /* @__PURE__ */ (0,
|
|
8124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime208.jsx)(
|
|
8098
8125
|
StyledDataCards,
|
|
8099
8126
|
{
|
|
8100
8127
|
...props,
|
|
@@ -8112,25 +8139,25 @@ var DataCards = ({
|
|
|
8112
8139
|
DataCards.displayName = "DataCards";
|
|
8113
8140
|
|
|
8114
8141
|
// src/components/DataCards/DataCardTrend.tsx
|
|
8115
|
-
var
|
|
8142
|
+
var import_styled_components41 = __toESM(require("styled-components"));
|
|
8116
8143
|
|
|
8117
8144
|
// src/components/Text/Text.tsx
|
|
8118
8145
|
var import_react22 = require("react");
|
|
8119
|
-
var
|
|
8120
|
-
var
|
|
8121
|
-
var bodyBoldStyles =
|
|
8146
|
+
var import_styled_components40 = __toESM(require("styled-components"));
|
|
8147
|
+
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
8148
|
+
var bodyBoldStyles = import_styled_components40.css`
|
|
8122
8149
|
> strong,
|
|
8123
8150
|
b {
|
|
8124
8151
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
8125
8152
|
}
|
|
8126
8153
|
`;
|
|
8127
|
-
var labelBoldStyles =
|
|
8154
|
+
var labelBoldStyles = import_styled_components40.css`
|
|
8128
8155
|
> strong,
|
|
8129
8156
|
b {
|
|
8130
8157
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
8131
8158
|
}
|
|
8132
8159
|
`;
|
|
8133
|
-
var body1TextStyle =
|
|
8160
|
+
var body1TextStyle = import_styled_components40.css`
|
|
8134
8161
|
--font-family: var(--wui-typography-body-1-family);
|
|
8135
8162
|
--font-size: var(--wui-typography-body-1-size);
|
|
8136
8163
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
@@ -8138,7 +8165,7 @@ var body1TextStyle = import_styled_components39.css`
|
|
|
8138
8165
|
--paragraph-spacing: var(--wui-typography-body-1-paragraph-spacing);
|
|
8139
8166
|
${bodyBoldStyles}
|
|
8140
8167
|
`;
|
|
8141
|
-
var body2TextStyle =
|
|
8168
|
+
var body2TextStyle = import_styled_components40.css`
|
|
8142
8169
|
--font-family: var(--wui-typography-body-2-family);
|
|
8143
8170
|
--font-size: var(--wui-typography-body-2-size);
|
|
8144
8171
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
@@ -8146,7 +8173,7 @@ var body2TextStyle = import_styled_components39.css`
|
|
|
8146
8173
|
--paragraph-spacing: var(--wui-typography-body-2-paragraph-spacing);
|
|
8147
8174
|
${bodyBoldStyles}
|
|
8148
8175
|
`;
|
|
8149
|
-
var body3TextStyle =
|
|
8176
|
+
var body3TextStyle = import_styled_components40.css`
|
|
8150
8177
|
--font-family: var(--wui-typography-body-3-family);
|
|
8151
8178
|
--font-size: var(--wui-typography-body-3-size);
|
|
8152
8179
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
@@ -8154,7 +8181,7 @@ var body3TextStyle = import_styled_components39.css`
|
|
|
8154
8181
|
--paragraph-spacing: var(--wui-typography-body-3-paragraph-spacing);
|
|
8155
8182
|
${bodyBoldStyles}
|
|
8156
8183
|
`;
|
|
8157
|
-
var body4TextStyle =
|
|
8184
|
+
var body4TextStyle = import_styled_components40.css`
|
|
8158
8185
|
--font-family: var(--wui-typography-body-4-family);
|
|
8159
8186
|
--font-size: var(--wui-typography-body-4-size);
|
|
8160
8187
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -8162,47 +8189,47 @@ var body4TextStyle = import_styled_components39.css`
|
|
|
8162
8189
|
--paragraph-spacing: var(--wui-typography-body-4-paragraph-spacing);
|
|
8163
8190
|
${bodyBoldStyles}
|
|
8164
8191
|
`;
|
|
8165
|
-
var label1TextStyle =
|
|
8192
|
+
var label1TextStyle = import_styled_components40.css`
|
|
8166
8193
|
--font-family: var(--wui-typography-label-1-family);
|
|
8167
8194
|
--font-size: var(--wui-typography-label-1-size);
|
|
8168
8195
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
8169
8196
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
8170
8197
|
${labelBoldStyles}
|
|
8171
8198
|
`;
|
|
8172
|
-
var label2TextStyle =
|
|
8199
|
+
var label2TextStyle = import_styled_components40.css`
|
|
8173
8200
|
--font-family: var(--wui-typography-label-2-family);
|
|
8174
8201
|
--font-size: var(--wui-typography-label-2-size);
|
|
8175
8202
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
8176
8203
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
8177
8204
|
${labelBoldStyles}
|
|
8178
8205
|
`;
|
|
8179
|
-
var label3TextStyle =
|
|
8206
|
+
var label3TextStyle = import_styled_components40.css`
|
|
8180
8207
|
--font-family: var(--wui-typography-label-3-family);
|
|
8181
8208
|
--font-size: var(--wui-typography-label-3-size);
|
|
8182
8209
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
8183
8210
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
8184
8211
|
${labelBoldStyles}
|
|
8185
8212
|
`;
|
|
8186
|
-
var label4TextStyle =
|
|
8213
|
+
var label4TextStyle = import_styled_components40.css`
|
|
8187
8214
|
--font-family: var(--wui-typography-label-4-family);
|
|
8188
8215
|
--font-size: var(--wui-typography-label-4-size);
|
|
8189
8216
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
8190
8217
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
8191
8218
|
${labelBoldStyles}
|
|
8192
8219
|
`;
|
|
8193
|
-
var body1MonoTextStyle =
|
|
8220
|
+
var body1MonoTextStyle = import_styled_components40.css`
|
|
8194
8221
|
${body1TextStyle};
|
|
8195
8222
|
--font-family: var(--wui-typography-family-mono);
|
|
8196
8223
|
`;
|
|
8197
|
-
var body2MonoTextStyle =
|
|
8224
|
+
var body2MonoTextStyle = import_styled_components40.css`
|
|
8198
8225
|
${body2TextStyle};
|
|
8199
8226
|
--font-family: var(--wui-typography-family-mono);
|
|
8200
8227
|
`;
|
|
8201
|
-
var body3MonoTextStyle =
|
|
8228
|
+
var body3MonoTextStyle = import_styled_components40.css`
|
|
8202
8229
|
${body3TextStyle};
|
|
8203
8230
|
--font-family: var(--wui-typography-family-mono);
|
|
8204
8231
|
`;
|
|
8205
|
-
var body4MonoTextStyle =
|
|
8232
|
+
var body4MonoTextStyle = import_styled_components40.css`
|
|
8206
8233
|
${body4TextStyle};
|
|
8207
8234
|
--font-family: var(--wui-typography-family-mono);
|
|
8208
8235
|
`;
|
|
@@ -8237,7 +8264,7 @@ var variantElementMap2 = {
|
|
|
8237
8264
|
label3: labelElement,
|
|
8238
8265
|
label4: labelElement
|
|
8239
8266
|
};
|
|
8240
|
-
var StyledText =
|
|
8267
|
+
var StyledText = import_styled_components40.default.div`
|
|
8241
8268
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8242
8269
|
--text-color: ${({ $prominence, $disabled }) => {
|
|
8243
8270
|
if ($disabled) {
|
|
@@ -8261,19 +8288,19 @@ var StyledText = import_styled_components39.default.div`
|
|
|
8261
8288
|
margin: 0;
|
|
8262
8289
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
8263
8290
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
8264
|
-
${({ $inline }) => $inline &&
|
|
8291
|
+
${({ $inline }) => $inline && import_styled_components40.css`
|
|
8265
8292
|
display: inline-block;
|
|
8266
8293
|
`}
|
|
8267
|
-
${({ $disabled }) => $disabled &&
|
|
8294
|
+
${({ $disabled }) => $disabled && import_styled_components40.css`
|
|
8268
8295
|
--text-color: var(--wui-color-text-disabled);
|
|
8269
8296
|
`}
|
|
8270
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
8297
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components40.css`
|
|
8271
8298
|
user-select: none;
|
|
8272
8299
|
`}
|
|
8273
|
-
${({ $align }) =>
|
|
8300
|
+
${({ $align }) => import_styled_components40.css`
|
|
8274
8301
|
text-align: ${$align};
|
|
8275
8302
|
`}
|
|
8276
|
-
${({ as }) => as === "p" &&
|
|
8303
|
+
${({ as }) => as === "p" && import_styled_components40.css`
|
|
8277
8304
|
display: block;
|
|
8278
8305
|
|
|
8279
8306
|
+ p {
|
|
@@ -8294,7 +8321,7 @@ var TextComponent = (0, import_react22.forwardRef)(
|
|
|
8294
8321
|
renderAs,
|
|
8295
8322
|
...otherProps
|
|
8296
8323
|
}, ref) => {
|
|
8297
|
-
return /* @__PURE__ */ (0,
|
|
8324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime209.jsx)(
|
|
8298
8325
|
StyledText,
|
|
8299
8326
|
{
|
|
8300
8327
|
ref,
|
|
@@ -8316,8 +8343,8 @@ TextComponent.displayName = "Text";
|
|
|
8316
8343
|
var Text = makePolymorphic(TextComponent);
|
|
8317
8344
|
|
|
8318
8345
|
// src/components/DataCards/DataCardTrend.tsx
|
|
8319
|
-
var
|
|
8320
|
-
var StyledDataCardTrend =
|
|
8346
|
+
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
8347
|
+
var StyledDataCardTrend = import_styled_components41.default.div`
|
|
8321
8348
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
8322
8349
|
background: var(--wui-color-bg-app);
|
|
8323
8350
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8332,8 +8359,8 @@ var DataCardTrend = ({
|
|
|
8332
8359
|
children,
|
|
8333
8360
|
...props
|
|
8334
8361
|
}) => {
|
|
8335
|
-
return /* @__PURE__ */ (0,
|
|
8336
|
-
/* @__PURE__ */ (0,
|
|
8362
|
+
return /* @__PURE__ */ (0, import_jsx_runtime210.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
|
|
8363
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
8337
8364
|
Icon,
|
|
8338
8365
|
{
|
|
8339
8366
|
size: "md",
|
|
@@ -8341,7 +8368,7 @@ var DataCardTrend = ({
|
|
|
8341
8368
|
...props
|
|
8342
8369
|
}
|
|
8343
8370
|
),
|
|
8344
|
-
/* @__PURE__ */ (0,
|
|
8371
|
+
/* @__PURE__ */ (0, import_jsx_runtime210.jsx)(
|
|
8345
8372
|
Text,
|
|
8346
8373
|
{
|
|
8347
8374
|
prominence: "secondary",
|
|
@@ -8353,22 +8380,22 @@ var DataCardTrend = ({
|
|
|
8353
8380
|
};
|
|
8354
8381
|
|
|
8355
8382
|
// src/components/Divider/Divider.tsx
|
|
8356
|
-
var
|
|
8357
|
-
var
|
|
8358
|
-
var horizontalBorderCss =
|
|
8383
|
+
var import_styled_components42 = __toESM(require("styled-components"));
|
|
8384
|
+
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
8385
|
+
var horizontalBorderCss = import_styled_components42.css`
|
|
8359
8386
|
border-top-color: var(--wui-color-border);
|
|
8360
8387
|
border-top-style: solid;
|
|
8361
8388
|
border-top-width: 1px;
|
|
8362
8389
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
8363
8390
|
height: 0;
|
|
8364
8391
|
`;
|
|
8365
|
-
var verticalBorderCss =
|
|
8392
|
+
var verticalBorderCss = import_styled_components42.css`
|
|
8366
8393
|
background-color: var(--wui-color-border);
|
|
8367
8394
|
max-width: 1px;
|
|
8368
8395
|
min-height: 100%;
|
|
8369
8396
|
width: 1px;
|
|
8370
8397
|
`;
|
|
8371
|
-
var DividerComponent =
|
|
8398
|
+
var DividerComponent = import_styled_components42.default.div`
|
|
8372
8399
|
${({ $orientation }) => {
|
|
8373
8400
|
switch ($orientation) {
|
|
8374
8401
|
case "vertical":
|
|
@@ -8383,7 +8410,7 @@ var Divider = ({
|
|
|
8383
8410
|
orientation = "horizontal",
|
|
8384
8411
|
...otherProps
|
|
8385
8412
|
}) => {
|
|
8386
|
-
return /* @__PURE__ */ (0,
|
|
8413
|
+
return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
8387
8414
|
DividerComponent,
|
|
8388
8415
|
{
|
|
8389
8416
|
$orientation: orientation,
|
|
@@ -8399,28 +8426,6 @@ Divider.displayName = "Divider";
|
|
|
8399
8426
|
var import_styled_components45 = __toESM(require("styled-components"));
|
|
8400
8427
|
var import_react24 = require("react");
|
|
8401
8428
|
|
|
8402
|
-
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
8403
|
-
var import_styled_components42 = __toESM(require("styled-components"));
|
|
8404
|
-
var import_type_guards25 = require("@wistia/type-guards");
|
|
8405
|
-
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
8406
|
-
var VisuallyHidden = import_styled_components42.default.div({ ...visuallyHiddenStyle });
|
|
8407
|
-
var VisuallyHiddenButFocusable = import_styled_components42.default.div({
|
|
8408
|
-
"&:not(:focus-within)": visuallyHiddenStyle
|
|
8409
|
-
});
|
|
8410
|
-
var ScreenReaderOnly = ({
|
|
8411
|
-
text,
|
|
8412
|
-
children,
|
|
8413
|
-
focusable = false,
|
|
8414
|
-
...otherProps
|
|
8415
|
-
}) => {
|
|
8416
|
-
const accessibleText = (0, import_type_guards25.isNotNil)(text) ? text : children;
|
|
8417
|
-
if (focusable) {
|
|
8418
|
-
return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
|
|
8419
|
-
}
|
|
8420
|
-
return /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
|
|
8421
|
-
};
|
|
8422
|
-
ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
8423
|
-
|
|
8424
8429
|
// src/components/Tooltip/Tooltip.tsx
|
|
8425
8430
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
8426
8431
|
var import_styled_components43 = __toESM(require("styled-components"));
|
|
@@ -10456,6 +10461,7 @@ var Radio = (0, import_react43.forwardRef)(
|
|
|
10456
10461
|
size = "md",
|
|
10457
10462
|
value = "false",
|
|
10458
10463
|
required = false,
|
|
10464
|
+
hideLabel = false,
|
|
10459
10465
|
...props
|
|
10460
10466
|
}, ref) => {
|
|
10461
10467
|
const generatedId = (0, import_react43.useId)();
|
|
@@ -10493,6 +10499,7 @@ var Radio = (0, import_react43.forwardRef)(
|
|
|
10493
10499
|
}
|
|
10494
10500
|
),
|
|
10495
10501
|
description,
|
|
10502
|
+
hideLabel,
|
|
10496
10503
|
htmlFor: computedId,
|
|
10497
10504
|
label
|
|
10498
10505
|
}
|