@wistia/ui 0.6.0 → 0.6.1-beta.15189fdc.6d80e38

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.6.0
3
+ * @license @wistia/ui v0.6.1-beta.15189fdc.6d80e38
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -68,6 +68,7 @@ __export(index_exports, {
68
68
  Heading: () => Heading,
69
69
  Icon: () => Icon,
70
70
  IconButton: () => IconButton,
71
+ Image: () => Image,
71
72
  Input: () => Input,
72
73
  Label: () => Label,
73
74
  Link: () => Link,
@@ -2282,45 +2283,55 @@ var defaultScheme = import_styled_components14.css`
2282
2283
  --wui-color-focus-ring: var(--wui-blue-9);
2283
2284
  `;
2284
2285
  var navScheme = import_styled_components14.css`
2285
- --wui-color-bg-fill-active: var(--wui-blue-5);
2286
- --wui-color-bg-fill-hover: var(--wui-blue-4);
2286
+ --wui-color-bg-app: #1e3399;
2287
+
2287
2288
  --wui-color-bg-fill: var(--wui-blue-1);
2288
- --wui-color-bg-surface-active: #15246b;
2289
- --wui-color-bg-surface-hover: #18297a;
2290
- --wui-color-bg-surface-secondary-active: #121f5c;
2291
- --wui-color-bg-surface-secondary-hover: #15246b;
2292
- --wui-color-bg-surface-secondary: #18297a;
2293
- --wui-color-bg-surface-tertiary: #3547a3;
2294
- --wui-color-bg-surface: #1e3399;
2295
- --wui-color-border: var(--wui-blue-1);
2296
- --wui-color-border-hover: var(--wui-blue-2);
2297
- --wui-color-border-active: var(--wui-blue-3);
2298
- --wui-color-border-secondary: var(--wui-blue-9);
2299
- --wui-color-border-secondary-hover: var(--wui-blue-10);
2300
- --wui-color-border-secondary-active: var(--wui-blue-12);
2301
- --wui-color-icon-on-fill: var(--wui-blue-9);
2302
- --wui-color-icon: var(--wui-blue-4);
2303
- --wui-color-text-link: var(--wui-blue-4);
2304
- --wui-color-text-on-fill: var(--wui-blue-9);
2305
- --wui-color-text-secondary: var(--wui-blue-4);
2289
+ --wui-color-bg-fill-hover: #e7e9f4;
2290
+ --wui-color-bg-fill-active: #dcdfef;
2291
+
2292
+ --wui-color-bg-surface: transparent;
2293
+ --wui-color-bg-surface-hover: #15267b;
2294
+ --wui-color-bg-surface-active: #122271;
2295
+
2296
+ --wui-color-bg-surface-secondary: #15267b;
2297
+ --wui-color-bg-surface-secondary-hover: #122271;
2298
+ --wui-color-bg-surface-secondary-active: #101e67;
2299
+
2300
+ --wui-color-bg-surface-tertiary: #0d1a5c;
2301
+
2302
+ --wui-color-border: #101e67;
2303
+ --wui-color-border-hover: #0e1c61;
2304
+ --wui-color-border-active: #0d1a5c;
2305
+
2306
+ --wui-color-border-secondary: var(--wui-color-bg-fill);
2307
+ --wui-color-border-secondary-hover: var(--wui-color-bg-fill-hover);
2308
+ --wui-color-border-secondary-active: var(--wui-color-bg-fill-active);
2309
+
2310
+ --wui-color-icon: var(--wui-blue-1);
2311
+ --wui-color-icon-on-fill: var(--wui-color-bg-app);
2312
+
2306
2313
  --wui-color-text: var(--wui-blue-1);
2314
+ --wui-color-text-on-fill: var(--wui-color-bg-app);
2315
+ --wui-color-text-link: var(--wui-blue-4);
2316
+ --wui-color-text-secondary: var(--wui-blue-6);
2307
2317
  --wui-color-text-button: var(--wui-blue-1);
2318
+
2308
2319
  --wui-color-focus-ring: var(--wui-blue-1);
2309
2320
 
2310
2321
  /* Nav - Disabled */
2311
- --wui-color-bg-surface-disabled: var(--wui-blue-12);
2322
+ --wui-color-bg-surface-disabled: transparent;
2312
2323
  --wui-color-icon-disabled: var(--wui-blue-8);
2313
2324
  --wui-color-text-disabled: var(--wui-blue-8);
2314
2325
 
2315
2326
  /* Nav - Selected */
2316
- --wui-color-bg-surface-selected: var(--wui-blue-3);
2317
- --wui-color-bg-surface-selected-active: var(--wui-blue-5);
2318
- --wui-color-bg-surface-selected-hover: var(--wui-blue-4);
2319
- --wui-color-icon-selected: var(--wui-blue-9);
2320
- --wui-color-text-selected: var(--wui-blue-9);
2321
- --wui-color-border-selected: rgba(0, 0, 0, 0);
2322
- --wui-color-border-hover-selected: rgba(0, 0, 0, 0);
2323
- --wui-color-border-active-selected: rgba(0, 0, 0, 0);
2327
+ --wui-color-bg-surface-selected: var(--wui-color-bg-fill);
2328
+ --wui-color-bg-surface-selected-active: var(--wui-color-bg-fill-active);
2329
+ --wui-color-bg-surface-selected-hover: var(--wui-color-bg-fill-hover);
2330
+ --wui-color-icon-selected: var(--wui-color-bg-app);
2331
+ --wui-color-text-selected: var(--wui-color-bg-app);
2332
+ --wui-color-border-selected: transparent;
2333
+ --wui-color-border-hover-selected: transparent;
2334
+ --wui-color-border-active-selected: transparent;
2324
2335
  `;
2325
2336
  var getColorScheme = (colorScheme) => {
2326
2337
  if (colorScheme === "nav") {
@@ -10525,6 +10536,55 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
10525
10536
  children
10526
10537
  ] });
10527
10538
  };
10539
+
10540
+ // src/components/Image/Image.tsx
10541
+ var import_styled_components74 = __toESM(require("styled-components"));
10542
+ var import_type_guards43 = require("@wistia/type-guards");
10543
+ var import_jsx_runtime227 = require("react/jsx-runtime");
10544
+ var getFillStyle2 = (fillContainer) => {
10545
+ if (fillContainer === "horizontal") {
10546
+ return "width: 100%;";
10547
+ }
10548
+ if (fillContainer === "vertical") {
10549
+ return "height: 100%;";
10550
+ }
10551
+ if (fillContainer === true) {
10552
+ return `
10553
+ width: 100%;
10554
+ height: 100%;
10555
+ `;
10556
+ }
10557
+ return void 0;
10558
+ };
10559
+ var StyledImage = import_styled_components74.default.img`
10560
+ border-radius: ${({ $borderRadius }) => (0, import_type_guards43.isNotNil)($borderRadius) ? `var(--wui-${$borderRadius})` : void 0};
10561
+ ${({ $fillContainer }) => getFillStyle2($fillContainer)};
10562
+ object-fit: ${({ $objFit }) => $objFit};
10563
+ object-position: ${({ $objPosition }) => $objPosition};
10564
+ `;
10565
+ var Image = ({
10566
+ src,
10567
+ alt,
10568
+ borderRadius,
10569
+ fill: fillContainer = false,
10570
+ fit: objFit,
10571
+ loading = "lazy",
10572
+ position: objPosition,
10573
+ ...otherProps
10574
+ }) => /* @__PURE__ */ (0, import_jsx_runtime227.jsx)(
10575
+ StyledImage,
10576
+ {
10577
+ $borderRadius: borderRadius,
10578
+ $fillContainer: fillContainer,
10579
+ $objFit: objFit,
10580
+ $objPosition: objPosition,
10581
+ alt,
10582
+ loading,
10583
+ src,
10584
+ ...otherProps
10585
+ }
10586
+ );
10587
+ Image.displayName = "Image";
10528
10588
  // Annotate the CommonJS export names for ESM import in node:
10529
10589
  0 && (module.exports = {
10530
10590
  ActionButton,
@@ -10556,6 +10616,7 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
10556
10616
  Heading,
10557
10617
  Icon,
10558
10618
  IconButton,
10619
+ Image,
10559
10620
  Input,
10560
10621
  Label,
10561
10622
  Link,