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