@wistia/ui 0.4.10-beta.f4fe6fa2.2799dfc → 0.4.10
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 +61 -67
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +215 -32
- package/dist/index.d.ts +215 -32
- package/dist/index.mjs +98 -104
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.4.10
|
|
3
|
+
* @license @wistia/ui v0.4.10
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -6074,13 +6074,6 @@ Badge.displayName = "Badge";
|
|
|
6074
6074
|
var import_react16 = require("react");
|
|
6075
6075
|
var import_styled_components23 = __toESM(require("styled-components"));
|
|
6076
6076
|
var import_type_guards15 = require("@wistia/type-guards");
|
|
6077
|
-
|
|
6078
|
-
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
6079
|
-
var makePolymorphic = (component) => {
|
|
6080
|
-
return component;
|
|
6081
|
-
};
|
|
6082
|
-
|
|
6083
|
-
// src/components/Box/Box.tsx
|
|
6084
6077
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
6085
6078
|
var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
|
|
6086
6079
|
var getGapStyle = (gap) => {
|
|
@@ -6124,7 +6117,7 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
6124
6117
|
}
|
|
6125
6118
|
return void 0;
|
|
6126
6119
|
};
|
|
6127
|
-
var
|
|
6120
|
+
var BoxComponent = import_styled_components23.default.div`
|
|
6128
6121
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
6129
6122
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
6130
6123
|
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
@@ -6158,56 +6151,50 @@ var wrapChildren = (children) => {
|
|
|
6158
6151
|
}
|
|
6159
6152
|
return null;
|
|
6160
6153
|
};
|
|
6161
|
-
var
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6182
|
-
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
}
|
|
6206
|
-
);
|
|
6207
|
-
}
|
|
6208
|
-
);
|
|
6209
|
-
BoxComponent.displayName = "Box";
|
|
6210
|
-
var Box = makePolymorphic(BoxComponent);
|
|
6154
|
+
var Box = ({
|
|
6155
|
+
alignContent = "stretch",
|
|
6156
|
+
alignItems = "flex-start",
|
|
6157
|
+
alignSelf,
|
|
6158
|
+
basis,
|
|
6159
|
+
children,
|
|
6160
|
+
direction = "row",
|
|
6161
|
+
fill = false,
|
|
6162
|
+
fillViewport = false,
|
|
6163
|
+
gap,
|
|
6164
|
+
grow,
|
|
6165
|
+
hasBoxParent = false,
|
|
6166
|
+
// eslint-disable-line @typescript-eslint/no-unused-vars
|
|
6167
|
+
inline = false,
|
|
6168
|
+
justifyContent = "flex-start",
|
|
6169
|
+
order,
|
|
6170
|
+
shrink,
|
|
6171
|
+
wrapItems = false,
|
|
6172
|
+
...otherProps
|
|
6173
|
+
}) => {
|
|
6174
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
6175
|
+
BoxComponent,
|
|
6176
|
+
{
|
|
6177
|
+
$alignContent: alignContent,
|
|
6178
|
+
$alignItems: alignItems,
|
|
6179
|
+
$alignSelf: alignSelf,
|
|
6180
|
+
$basis: basis,
|
|
6181
|
+
$fillBox: fill,
|
|
6182
|
+
$fillViewport: fillViewport,
|
|
6183
|
+
$flexDirection: direction,
|
|
6184
|
+
$gap: gap,
|
|
6185
|
+
$grow: grow,
|
|
6186
|
+
$inline: inline,
|
|
6187
|
+
$justifyContent: justifyContent,
|
|
6188
|
+
$order: order,
|
|
6189
|
+
$shrink: shrink,
|
|
6190
|
+
$wrapItems: wrapItems,
|
|
6191
|
+
as: "div",
|
|
6192
|
+
...otherProps,
|
|
6193
|
+
children: wrapChildren(children)
|
|
6194
|
+
}
|
|
6195
|
+
);
|
|
6196
|
+
};
|
|
6197
|
+
Box.displayName = "Box";
|
|
6211
6198
|
|
|
6212
6199
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
6213
6200
|
var import_styled_components24 = __toESM(require("styled-components"));
|
|
@@ -6377,6 +6364,13 @@ var import_styled_components28 = __toESM(require("styled-components"));
|
|
|
6377
6364
|
// src/components/Heading/Heading.tsx
|
|
6378
6365
|
var import_react17 = require("react");
|
|
6379
6366
|
var import_styled_components27 = __toESM(require("styled-components"));
|
|
6367
|
+
|
|
6368
|
+
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
6369
|
+
var makePolymorphic = (component) => {
|
|
6370
|
+
return component;
|
|
6371
|
+
};
|
|
6372
|
+
|
|
6373
|
+
// src/components/Heading/Heading.tsx
|
|
6380
6374
|
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
6381
6375
|
var heroStyle = import_styled_components27.css`
|
|
6382
6376
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
@@ -6429,7 +6423,7 @@ var variantStyleMap = {
|
|
|
6429
6423
|
heading5: heading5TextStyle,
|
|
6430
6424
|
heading6: heading6TextStyle
|
|
6431
6425
|
};
|
|
6432
|
-
var
|
|
6426
|
+
var DEFAULT_ELEMENT = "h1";
|
|
6433
6427
|
var StyledHeading = import_styled_components27.default.div`
|
|
6434
6428
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6435
6429
|
font-family: var(--font-family);
|
|
@@ -6454,8 +6448,8 @@ var StyledHeading = import_styled_components27.default.div`
|
|
|
6454
6448
|
margin: 0;
|
|
6455
6449
|
`;
|
|
6456
6450
|
var variantElementMap = {
|
|
6457
|
-
hero:
|
|
6458
|
-
heading1:
|
|
6451
|
+
hero: DEFAULT_ELEMENT,
|
|
6452
|
+
heading1: DEFAULT_ELEMENT,
|
|
6459
6453
|
heading2: "h2",
|
|
6460
6454
|
heading3: "h3",
|
|
6461
6455
|
heading4: "h4",
|
|
@@ -6757,7 +6751,7 @@ var import_type_guards19 = require("@wistia/type-guards");
|
|
|
6757
6751
|
var import_react19 = require("react");
|
|
6758
6752
|
var import_styled_components32 = __toESM(require("styled-components"));
|
|
6759
6753
|
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
6760
|
-
var
|
|
6754
|
+
var DEFAULT_ELEMENT2 = "div";
|
|
6761
6755
|
var StyledStack = import_styled_components32.default.div`
|
|
6762
6756
|
display: flex;
|
|
6763
6757
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
@@ -6773,7 +6767,7 @@ var StackComponent = (0, import_react19.forwardRef)(
|
|
|
6773
6767
|
ref,
|
|
6774
6768
|
$direction: responsiveDirection,
|
|
6775
6769
|
$gap: responsiveGap,
|
|
6776
|
-
as: renderAs ??
|
|
6770
|
+
as: renderAs ?? DEFAULT_ELEMENT2,
|
|
6777
6771
|
...props
|
|
6778
6772
|
}
|
|
6779
6773
|
);
|
|
@@ -7094,7 +7088,7 @@ var StyledText = import_styled_components34.default.div`
|
|
|
7094
7088
|
display: block;
|
|
7095
7089
|
`}
|
|
7096
7090
|
`;
|
|
7097
|
-
var
|
|
7091
|
+
var DEFAULT_ELEMENT3 = "div";
|
|
7098
7092
|
var TextComponent = (0, import_react23.forwardRef)(
|
|
7099
7093
|
({
|
|
7100
7094
|
align = "left",
|
|
@@ -7120,7 +7114,7 @@ var TextComponent = (0, import_react23.forwardRef)(
|
|
|
7120
7114
|
$preventUserSelect: preventUserSelect,
|
|
7121
7115
|
$prominence: prominence,
|
|
7122
7116
|
$variant: variant,
|
|
7123
|
-
as: renderAs ??
|
|
7117
|
+
as: renderAs ?? DEFAULT_ELEMENT3,
|
|
7124
7118
|
...otherProps
|
|
7125
7119
|
}
|
|
7126
7120
|
);
|
|
@@ -8207,7 +8201,6 @@ var ModalContent = (0, import_react36.forwardRef)(
|
|
|
8207
8201
|
ref,
|
|
8208
8202
|
$fullHeight: fullHeight,
|
|
8209
8203
|
$width: width,
|
|
8210
|
-
"aria-describedby": void 0,
|
|
8211
8204
|
...otherProps,
|
|
8212
8205
|
children
|
|
8213
8206
|
}
|
|
@@ -8303,6 +8296,7 @@ var Modal = (0, import_react38.forwardRef)(
|
|
|
8303
8296
|
ModalContent,
|
|
8304
8297
|
{
|
|
8305
8298
|
ref,
|
|
8299
|
+
"aria-describedby": void 0,
|
|
8306
8300
|
fullHeight,
|
|
8307
8301
|
onOpenAutoFocus: (event) => {
|
|
8308
8302
|
if ((0, import_type_guards28.isNotNil)(initialFocusRef) && initialFocusRef.current) {
|