@wistia/ui 0.18.14-beta.cfcb41da.a0c17d8 → 0.18.14-beta.e9acbfe3.e18434d
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 +49 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.mjs +48 -14
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.14-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.14-beta.e9acbfe3.e18434d
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -73,6 +73,7 @@ __export(index_exports, {
|
|
|
73
73
|
ComboboxOption: () => ComboboxOption,
|
|
74
74
|
ContextMenu: () => ContextMenu,
|
|
75
75
|
ContrastControls: () => ContrastControls,
|
|
76
|
+
CustomizableThemeWrapper: () => CustomizableThemeWrapper,
|
|
76
77
|
DataCard: () => DataCard,
|
|
77
78
|
DataCardHoverArrow: () => DataCardHoverArrow,
|
|
78
79
|
DataCardTrend: () => DataCardTrend,
|
|
@@ -208,8 +209,6 @@ var import_styled_components13 = require("styled-components");
|
|
|
208
209
|
// src/css/globalStyleAdjustmentsCss.tsx
|
|
209
210
|
var import_styled_components = require("styled-components");
|
|
210
211
|
var globalStyleAdjustmentsCss = import_styled_components.css`
|
|
211
|
-
/* stylelint-disable property-no-vendor-prefix */
|
|
212
|
-
|
|
213
212
|
/**
|
|
214
213
|
* 1. Change from 'content-box' so that 'width' calculations are unaffected by 'padding' or 'border'
|
|
215
214
|
See: https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/
|
|
@@ -8242,7 +8241,7 @@ var StyledActionButton = (0, import_styled_components24.styled)(Button)`
|
|
|
8242
8241
|
min-width: 96px;
|
|
8243
8242
|
padding: var(--wui-space-03);
|
|
8244
8243
|
background: var(--wui-color-bg-surface-secondary);
|
|
8245
|
-
|
|
8244
|
+
row-gap: var(--wui-space-02);
|
|
8246
8245
|
border-radius: var(--wui-border-radius-03);
|
|
8247
8246
|
flex: 0 0 auto;
|
|
8248
8247
|
transition: background-color var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
@@ -10365,9 +10364,9 @@ var isClickableElement = (element) => {
|
|
|
10365
10364
|
};
|
|
10366
10365
|
var ClickRegion = ({ children, targetRef }) => {
|
|
10367
10366
|
(0, import_react39.useEffect)(() => {
|
|
10368
|
-
if (targetRef.current
|
|
10367
|
+
if (targetRef.current?.tagName === "A") {
|
|
10369
10368
|
targetRef.current.setAttribute("data-click-region-target-link", "");
|
|
10370
|
-
} else if (targetRef.current
|
|
10369
|
+
} else if (targetRef.current?.tagName === "BUTTON") {
|
|
10371
10370
|
targetRef.current.setAttribute("data-click-region-target-button", "");
|
|
10372
10371
|
} else {
|
|
10373
10372
|
}
|
|
@@ -12465,7 +12464,9 @@ var Root = (0, import_styled_components66.styled)(import_react_slider.Root)`
|
|
|
12465
12464
|
var Track = (0, import_styled_components66.styled)(import_react_slider.Track)`
|
|
12466
12465
|
width: 100%;
|
|
12467
12466
|
`;
|
|
12468
|
-
var Thumb = (0, import_styled_components66.styled)(import_react_slider.Thumb)
|
|
12467
|
+
var Thumb = (0, import_styled_components66.styled)(import_react_slider.Thumb)`
|
|
12468
|
+
position: relative;
|
|
12469
|
+
`;
|
|
12469
12470
|
var ThumbInner = import_styled_components66.styled.div`
|
|
12470
12471
|
cursor: pointer;
|
|
12471
12472
|
display: block;
|
|
@@ -13683,8 +13684,12 @@ MenuItemButton.displayName = "MenuItemButton_UI";
|
|
|
13683
13684
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
13684
13685
|
var import_styled_components75 = require("styled-components");
|
|
13685
13686
|
var import_jsx_runtime269 = require("react/jsx-runtime");
|
|
13686
|
-
var StyledMenuItemLabel = import_styled_components75.styled.span
|
|
13687
|
-
|
|
13687
|
+
var StyledMenuItemLabel = import_styled_components75.styled.span`
|
|
13688
|
+
/* avoid no-empty-source rule */
|
|
13689
|
+
`;
|
|
13690
|
+
var StyledMenuItemDescription = (0, import_styled_components75.styled)(Text)`
|
|
13691
|
+
/* avoid no-empty-source rule */
|
|
13692
|
+
`;
|
|
13688
13693
|
var MenuItemLabel = ({ children }) => {
|
|
13689
13694
|
return /* @__PURE__ */ (0, import_jsx_runtime269.jsx)(StyledMenuItemLabel, { children });
|
|
13690
13695
|
};
|
|
@@ -14816,7 +14821,8 @@ var StyledEditableTextDisplay = import_styled_components85.styled.div`
|
|
|
14816
14821
|
${({ $minLines }) => (0, import_type_guards46.isNotNil)($minLines) && import_styled_components85.css`
|
|
14817
14822
|
min-height: calc(${$minLines}lh + calc(var(--wui-editable-text-padding) * 2));
|
|
14818
14823
|
`}
|
|
14819
|
-
word-break:
|
|
14824
|
+
word-break: normal;
|
|
14825
|
+
overflow-wrap: anywhere;
|
|
14820
14826
|
|
|
14821
14827
|
&[data-wui-editable-text-display='placeholder'] {
|
|
14822
14828
|
color: var(--wui-color-text-secondary);
|
|
@@ -17755,7 +17761,9 @@ var TableSectionContext = (0, import_react92.createContext)(null);
|
|
|
17755
17761
|
|
|
17756
17762
|
// src/components/Table/TableBody.tsx
|
|
17757
17763
|
var import_jsx_runtime324 = require("react/jsx-runtime");
|
|
17758
|
-
var StyledTableBody = import_styled_components117.styled.tbody
|
|
17764
|
+
var StyledTableBody = import_styled_components117.styled.tbody`
|
|
17765
|
+
width: 100%;
|
|
17766
|
+
`;
|
|
17759
17767
|
var TableBody = ({ children, ...props }) => {
|
|
17760
17768
|
return /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ (0, import_jsx_runtime324.jsx)(StyledTableBody, { ...props, children }) });
|
|
17761
17769
|
};
|
|
@@ -17792,7 +17800,9 @@ var TableCell = ({ children, ...props }) => {
|
|
|
17792
17800
|
// src/components/Table/TableFoot.tsx
|
|
17793
17801
|
var import_styled_components119 = require("styled-components");
|
|
17794
17802
|
var import_jsx_runtime326 = require("react/jsx-runtime");
|
|
17795
|
-
var StyledTableFoot = import_styled_components119.styled.tfoot
|
|
17803
|
+
var StyledTableFoot = import_styled_components119.styled.tfoot`
|
|
17804
|
+
width: 100%;
|
|
17805
|
+
`;
|
|
17796
17806
|
var TableFoot = ({ children, ...props }) => {
|
|
17797
17807
|
return /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ (0, import_jsx_runtime326.jsx)(StyledTableFoot, { ...props, children }) });
|
|
17798
17808
|
};
|
|
@@ -17800,7 +17810,9 @@ var TableFoot = ({ children, ...props }) => {
|
|
|
17800
17810
|
// src/components/Table/TableHead.tsx
|
|
17801
17811
|
var import_styled_components120 = require("styled-components");
|
|
17802
17812
|
var import_jsx_runtime327 = require("react/jsx-runtime");
|
|
17803
|
-
var StyledThead = import_styled_components120.styled.thead
|
|
17813
|
+
var StyledThead = import_styled_components120.styled.thead`
|
|
17814
|
+
width: 100%;
|
|
17815
|
+
`;
|
|
17804
17816
|
var TableHead = ({ children, ...props }) => {
|
|
17805
17817
|
return /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ (0, import_jsx_runtime327.jsx)(StyledThead, { ...props, children }) });
|
|
17806
17818
|
};
|
|
@@ -17808,7 +17820,9 @@ var TableHead = ({ children, ...props }) => {
|
|
|
17808
17820
|
// src/components/Table/TableRow.tsx
|
|
17809
17821
|
var import_styled_components121 = require("styled-components");
|
|
17810
17822
|
var import_jsx_runtime328 = require("react/jsx-runtime");
|
|
17811
|
-
var StyledTableRow = import_styled_components121.styled.tr
|
|
17823
|
+
var StyledTableRow = import_styled_components121.styled.tr`
|
|
17824
|
+
width: 100%;
|
|
17825
|
+
`;
|
|
17812
17826
|
var TableRow = ({ children, ...props }) => {
|
|
17813
17827
|
return /* @__PURE__ */ (0, import_jsx_runtime328.jsx)(StyledTableRow, { ...props, children });
|
|
17814
17828
|
};
|
|
@@ -18809,6 +18823,26 @@ var SplitButton = ({
|
|
|
18809
18823
|
] });
|
|
18810
18824
|
};
|
|
18811
18825
|
SplitButton.displayName = "SplitButton_UI";
|
|
18826
|
+
|
|
18827
|
+
// src/components/CustomizableThemeWrapper/CustomizableThemeWrapper.tsx
|
|
18828
|
+
var import_styled_components132 = require("styled-components");
|
|
18829
|
+
var import_jsx_runtime340 = require("react/jsx-runtime");
|
|
18830
|
+
var StyledCustomizableThemeWrapper = import_styled_components132.styled.div(
|
|
18831
|
+
(props) => props.$overrides
|
|
18832
|
+
);
|
|
18833
|
+
var CustomizableThemeWrapper = ({
|
|
18834
|
+
children,
|
|
18835
|
+
overrides,
|
|
18836
|
+
...props
|
|
18837
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime340.jsx)(
|
|
18838
|
+
StyledCustomizableThemeWrapper,
|
|
18839
|
+
{
|
|
18840
|
+
...props,
|
|
18841
|
+
$overrides: overrides,
|
|
18842
|
+
children
|
|
18843
|
+
}
|
|
18844
|
+
);
|
|
18845
|
+
CustomizableThemeWrapper.displayName = "CustomizableThemeWrapper_UI";
|
|
18812
18846
|
// Annotate the CommonJS export names for ESM import in node:
|
|
18813
18847
|
0 && (module.exports = {
|
|
18814
18848
|
ActionButton,
|
|
@@ -18845,6 +18879,7 @@ SplitButton.displayName = "SplitButton_UI";
|
|
|
18845
18879
|
ComboboxOption,
|
|
18846
18880
|
ContextMenu,
|
|
18847
18881
|
ContrastControls,
|
|
18882
|
+
CustomizableThemeWrapper,
|
|
18848
18883
|
DataCard,
|
|
18849
18884
|
DataCardHoverArrow,
|
|
18850
18885
|
DataCardTrend,
|