@wistia/ui 0.14.8 → 0.14.9-beta.e233b049.da5734b

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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.14.8
3
+ * @license @wistia/ui v0.14.9-beta.e233b049.da5734b
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -14277,6 +14277,13 @@ var Header = import_styled_components86.default.header`
14277
14277
  /* DialogTitle creates an h2 element which inherits some margin */
14278
14278
  h2 {
14279
14279
  margin: 0 0 var(--wui-space-03);
14280
+ padding-right: ${({ $hideCloseButon }) => $hideCloseButon ? "0" : "var(--wui-space-03)"};
14281
+ }
14282
+
14283
+ button {
14284
+ position: absolute;
14285
+ right: var(--wui-space-03);
14286
+ top: var(--wui-space-03);
14280
14287
  }
14281
14288
  `;
14282
14289
  var Title = (0, import_styled_components86.default)(import_react_dialog2.Title)`
@@ -14291,10 +14298,17 @@ var ModalHeader = ({
14291
14298
  hideCloseButton
14292
14299
  }) => {
14293
14300
  const TitleComponent = hideTitle ? /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(ScreenReaderOnly, { children: /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(Title, { children: title }) }) : /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(Title, { children: title });
14294
- return /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)(Header, { $hideTitle: hideTitle, children: [
14295
- TitleComponent,
14296
- hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(ModalCloseButton, {})
14297
- ] });
14301
+ return /* @__PURE__ */ (0, import_jsx_runtime280.jsxs)(
14302
+ Header,
14303
+ {
14304
+ $hideCloseButon: hideCloseButton,
14305
+ $hideTitle: hideTitle,
14306
+ children: [
14307
+ TitleComponent,
14308
+ hideCloseButton ? null : /* @__PURE__ */ (0, import_jsx_runtime280.jsx)(ModalCloseButton, {})
14309
+ ]
14310
+ }
14311
+ );
14298
14312
  };
14299
14313
 
14300
14314
  // src/components/Modal/ModalContent.tsx
@@ -14548,7 +14562,7 @@ var Modal = (0, import_react71.forwardRef)(
14548
14562
  ...props,
14549
14563
  children: [
14550
14564
  /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(ModalBody, { children }),
14551
- /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
14565
+ hideCloseButton && hideTitle ? null : /* @__PURE__ */ (0, import_jsx_runtime282.jsx)(
14552
14566
  ModalHeader,
14553
14567
  {
14554
14568
  hideCloseButton,
@@ -15045,13 +15059,14 @@ var StyledCard2 = import_styled_components94.default.label`
15045
15059
  --wui-radio-card-border-radius: var(--wui-border-radius-02);
15046
15060
 
15047
15061
  position: relative;
15048
- display: flex;
15062
+ display: inline-flex;
15049
15063
  padding: ${({ $padding }) => `var(--wui-${$padding})`};
15050
15064
  aspect-ratio: ${({ $aspectRatio }) => $aspectRatio};
15051
15065
  border: var(--wui-radio-card-border-width) solid var(--wui-radio-card-border-color);
15052
15066
  border-radius: var(--wui-radio-card-border-radius);
15053
15067
  background-color: var(--wui-radio-card-background-color);
15054
15068
  cursor: var(--wui-radio-card-cursor);
15069
+ overflow: hidden;
15055
15070
  transition: all var(--wui-motion-duration-03) var(--wui-motion-ease);
15056
15071
 
15057
15072
  svg {
@@ -15229,7 +15244,7 @@ var RadioCardDefaultLayout = ({
15229
15244
  gap: "space-01",
15230
15245
  style: (0, import_type_guards55.isNotNil)(icon) ? { paddingLeft: 2 } : void 0,
15231
15246
  children: [
15232
- /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Text, { variant: "label3", children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("strong", { children: label }) }),
15247
+ (0, import_type_guards55.isNotNil)(label) && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(Text, { variant: "label3", children: /* @__PURE__ */ (0, import_jsx_runtime288.jsx)("strong", { children: label }) }),
15233
15248
  (0, import_type_guards55.isNotNil)(description) && /* @__PURE__ */ (0, import_jsx_runtime288.jsx)(
15234
15249
  Text,
15235
15250
  {
@@ -15249,13 +15264,14 @@ RadioCardDefaultLayout.displayName = "RadioCardDefaultLayout_UI";
15249
15264
  // src/components/RadioCard/RadioCard.tsx
15250
15265
  var import_jsx_runtime289 = require("react/jsx-runtime");
15251
15266
  var RadioCard = (0, import_react74.forwardRef)(
15252
- ({ icon, label, description, showIndicator, ...rootProps }, ref) => {
15267
+ ({ icon, label, description, showIndicator, children, ...rootProps }, ref) => {
15253
15268
  return /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
15254
15269
  RadioCardRoot,
15255
15270
  {
15256
15271
  ref,
15272
+ padding: children != null ? "space-00" : "space-04",
15257
15273
  ...rootProps,
15258
- children: /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
15274
+ children: children != null ? /* @__PURE__ */ (0, import_jsx_runtime289.jsx)("div", { "data-wui-radio-card-image": "cover", children }) : /* @__PURE__ */ (0, import_jsx_runtime289.jsx)(
15259
15275
  RadioCardDefaultLayout,
15260
15276
  {
15261
15277
  description,