@wistia/ui 0.14.8 → 0.14.9
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 +20 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +20 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.14.
|
|
3
|
+
* @license @wistia/ui v0.14.9
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -14154,6 +14154,13 @@ var Header = styled69.header`
|
|
|
14154
14154
|
/* DialogTitle creates an h2 element which inherits some margin */
|
|
14155
14155
|
h2 {
|
|
14156
14156
|
margin: 0 0 var(--wui-space-03);
|
|
14157
|
+
padding-right: ${({ $hideCloseButon }) => $hideCloseButon ? "0" : "var(--wui-space-03)"};
|
|
14158
|
+
}
|
|
14159
|
+
|
|
14160
|
+
button {
|
|
14161
|
+
position: absolute;
|
|
14162
|
+
right: var(--wui-space-03);
|
|
14163
|
+
top: var(--wui-space-03);
|
|
14157
14164
|
}
|
|
14158
14165
|
`;
|
|
14159
14166
|
var Title = styled69(DialogTitle)`
|
|
@@ -14168,10 +14175,17 @@ var ModalHeader = ({
|
|
|
14168
14175
|
hideCloseButton
|
|
14169
14176
|
}) => {
|
|
14170
14177
|
const TitleComponent = hideTitle ? /* @__PURE__ */ jsx280(ScreenReaderOnly, { children: /* @__PURE__ */ jsx280(Title, { children: title }) }) : /* @__PURE__ */ jsx280(Title, { children: title });
|
|
14171
|
-
return /* @__PURE__ */ jsxs47(
|
|
14172
|
-
|
|
14173
|
-
|
|
14174
|
-
|
|
14178
|
+
return /* @__PURE__ */ jsxs47(
|
|
14179
|
+
Header,
|
|
14180
|
+
{
|
|
14181
|
+
$hideCloseButon: hideCloseButton,
|
|
14182
|
+
$hideTitle: hideTitle,
|
|
14183
|
+
children: [
|
|
14184
|
+
TitleComponent,
|
|
14185
|
+
hideCloseButton ? null : /* @__PURE__ */ jsx280(ModalCloseButton, {})
|
|
14186
|
+
]
|
|
14187
|
+
}
|
|
14188
|
+
);
|
|
14175
14189
|
};
|
|
14176
14190
|
|
|
14177
14191
|
// src/components/Modal/ModalContent.tsx
|
|
@@ -14425,7 +14439,7 @@ var Modal = forwardRef24(
|
|
|
14425
14439
|
...props,
|
|
14426
14440
|
children: [
|
|
14427
14441
|
/* @__PURE__ */ jsx282(ModalBody, { children }),
|
|
14428
|
-
/* @__PURE__ */ jsx282(
|
|
14442
|
+
hideCloseButton && hideTitle ? null : /* @__PURE__ */ jsx282(
|
|
14429
14443
|
ModalHeader,
|
|
14430
14444
|
{
|
|
14431
14445
|
hideCloseButton,
|