@wistia/ui 0.0.13 → 0.0.15

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.d.mts CHANGED
@@ -89,7 +89,7 @@ declare const Avatar: {
89
89
  displayName: string;
90
90
  };
91
91
 
92
- declare const colorSchemeOptions: readonly ["inherit", "default", "info", "success", "warning", "error", "blue", "green", "orange", "pink", "purple", "yellow"];
92
+ declare const colorSchemeOptions: readonly ["inherit", "default", "info", "success", "warning", "error", "blue", "green", "orange", "pink", "purple", "yellow", "vendor-hubspot", "vendor-marketo", "vendor-pardot"];
93
93
  type ColorSchemeTypes = (typeof colorSchemeOptions)[number];
94
94
  type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
95
95
  /**
package/dist/index.d.ts CHANGED
@@ -89,7 +89,7 @@ declare const Avatar: {
89
89
  displayName: string;
90
90
  };
91
91
 
92
- declare const colorSchemeOptions: readonly ["inherit", "default", "info", "success", "warning", "error", "blue", "green", "orange", "pink", "purple", "yellow"];
92
+ declare const colorSchemeOptions: readonly ["inherit", "default", "info", "success", "warning", "error", "blue", "green", "orange", "pink", "purple", "yellow", "vendor-hubspot", "vendor-marketo", "vendor-pardot"];
93
93
  type ColorSchemeTypes = (typeof colorSchemeOptions)[number];
94
94
  type ColorSchemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
95
95
  /**
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.0.13
3
+ * @license @wistia/ui v0.0.15
4
4
  *
5
5
  * Copyright (c) 2024-2024, Wistia, Inc. and its affiliates.
6
6
  *
@@ -440,6 +440,48 @@ var lightGlobalTokens = css3`
440
440
  --gray-alpha-10: #0000117d;
441
441
  --gray-alpha-11: #00000a9c;
442
442
  --gray-alpha-12: #000005de;
443
+ --vendor-hubspot-1: #fefcfb;
444
+ --vendor-hubspot-2: #fff5f2;
445
+ --vendor-hubspot-3: #ffe9e2;
446
+ --vendor-hubspot-4: #ffd7c9;
447
+ --vendor-hubspot-5: #ffc8b7;
448
+ --vendor-hubspot-6: #ffb8a3;
449
+ --vendor-hubspot-7: #ffa48d;
450
+ --vendor-hubspot-8: #f68a70;
451
+ --vendor-hubspot-9: #ff5c36;
452
+ --vendor-hubspot-10: #f24d25;
453
+ --vendor-hubspot-11: #d93a0f;
454
+ --vendor-hubspot-12: #5b2a1e;
455
+ --vendor-hubspot-surface: #fff3efcc;
456
+ --vendor-hubspot-contrast: #ffffff;
457
+ --vendor-marketo-1: #fdfdff;
458
+ --vendor-marketo-2: #f7f8ff;
459
+ --vendor-marketo-3: #eff2ff;
460
+ --vendor-marketo-4: #e3e8ff;
461
+ --vendor-marketo-5: #d5ddff;
462
+ --vendor-marketo-6: #c5cfff;
463
+ --vendor-marketo-7: #b0bcfa;
464
+ --vendor-marketo-8: #93a0f2;
465
+ --vendor-marketo-9: #4c50cc;
466
+ --vendor-marketo-10: #4040bb;
467
+ --vendor-marketo-11: #4f55c7;
468
+ --vendor-marketo-12: #252a62;
469
+ --vendor-marketo-surface: #f5f6ffcc;
470
+ --vendor-marketo-contrast: #ffffff;
471
+ --vendor-pardot-1: #fafdff;
472
+ --vendor-pardot-2: #f3fafe;
473
+ --vendor-pardot-3: #e1f5ff;
474
+ --vendor-pardot-4: #ceeeff;
475
+ --vendor-pardot-5: #bae5ff;
476
+ --vendor-pardot-6: #a4d9fa;
477
+ --vendor-pardot-7: #85c9f1;
478
+ --vendor-pardot-8: #4fb3e8;
479
+ --vendor-pardot-9: #00a1e0;
480
+ --vendor-pardot-10: #0094cf;
481
+ --vendor-pardot-11: #0079b5;
482
+ --vendor-pardot-12: #0c3a51;
483
+ --vendor-pardot-surface: #f0f9fecc;
484
+ --vendor-pardot-contrast: #ffffff;
443
485
  `;
444
486
  var darkGlobalTokens = css3`
445
487
  --app-background: #101629;
@@ -729,6 +771,48 @@ var darkGlobalTokens = css3`
729
771
  --gray-alpha-10: #a4bffe96;
730
772
  --gray-alpha-11: #b4caffde;
731
773
  --gray-alpha-12: #e4eeff;
774
+ --vendor-hubspot-1: #1d1513;
775
+ --vendor-hubspot-2: #231815;
776
+ --vendor-hubspot-3: #3b1a12;
777
+ --vendor-hubspot-4: #511609;
778
+ --vendor-hubspot-5: #601d0d;
779
+ --vendor-hubspot-6: #702a1a;
780
+ --vendor-hubspot-7: #883a27;
781
+ --vendor-hubspot-8: #af4a33;
782
+ --vendor-hubspot-9: #ff5c36;
783
+ --vendor-hubspot-10: #f14f28;
784
+ --vendor-hubspot-11: #ff9578;
785
+ --vendor-hubspot-12: #ffd5ca;
786
+ --vendor-hubspot-surface: #361a0280;
787
+ --vendor-hubspot-contrast: #ffffff;
788
+ --vendor-marketo-1: #141621;
789
+ --vendor-marketo-2: #161827;
790
+ --vendor-marketo-3: #1f234a;
791
+ --vendor-marketo-4: #262a66;
792
+ --vendor-marketo-5: #2f3476;
793
+ --vendor-marketo-6: #383f83;
794
+ --vendor-marketo-7: #444c97;
795
+ --vendor-marketo-8: #515ab4;
796
+ --vendor-marketo-9: #4c50cc;
797
+ --vendor-marketo-10: #4040bb;
798
+ --vendor-marketo-11: #9faeff;
799
+ --vendor-marketo-12: #dae1ff;
800
+ --vendor-marketo-surface: #1c1a2680;
801
+ --vendor-marketo-contrast: #ffffff;
802
+ --vendor-pardot-1: #0e191f;
803
+ --vendor-pardot-2: #111d24;
804
+ --vendor-pardot-3: #092c3d;
805
+ --vendor-pardot-4: #003752;
806
+ --vendor-pardot-5: #004463;
807
+ --vendor-pardot-6: #055274;
808
+ --vendor-pardot-7: #15648a;
809
+ --vendor-pardot-8: #197ba9;
810
+ --vendor-pardot-9: #00a1e0;
811
+ --vendor-pardot-10: #0095d3;
812
+ --vendor-pardot-11: #62c3f8;
813
+ --vendor-pardot-12: #bfe7ff;
814
+ --vendor-pardot-surface: #12242080;
815
+ --vendor-pardot-contrast: #ffffff;
732
816
  `;
733
817
 
734
818
  // src/css/designTokens/colorAlias.tsx
@@ -1471,6 +1555,7 @@ var defaultScheme = css9`
1471
1555
  --color-bg-fill-hover: var(--blue-10);
1472
1556
  --color-bg-fill-active: var(--blue-12);
1473
1557
  --color-text: var(--gray-12);
1558
+ --color-text-high-contrast: var(--gray-12);
1474
1559
  --color-text-link: var(--blue-9);
1475
1560
  --color-text-secondary: var(--gray-11);
1476
1561
  --color-text-on-fill: var(--gray-contrast);
@@ -1511,7 +1596,10 @@ var colorSchemeOptions = [
1511
1596
  "orange",
1512
1597
  "pink",
1513
1598
  "purple",
1514
- "yellow"
1599
+ "yellow",
1600
+ "vendor-hubspot",
1601
+ "vendor-marketo",
1602
+ "vendor-pardot"
1515
1603
  ];
1516
1604
  var StyledColorSchemeWrapper = styled.div`
1517
1605
  ${({ $colorScheme }) => getColorScheme($colorScheme)};
@@ -1707,8 +1795,8 @@ import { Children, cloneElement } from "react";
1707
1795
  import styled4 from "styled-components";
1708
1796
  import { isNotNil as isNotNil2, isNil as isNil5, isRecord } from "@wistia/type-guards";
1709
1797
  import { jsx as jsx6 } from "react/jsx-runtime";
1710
- var isDev = process.env["NODE_ENV"] === "development";
1711
- var PROPS_FOR_FLEX_CHILDREN = /* @__PURE__ */ new Set(["alignSelf", "basis", "grow", "order", "shrink"]);
1798
+ var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
1799
+ var propsForFlexChildren = /* @__PURE__ */ new Set(["alignSelf", "basis", "grow", "order", "shrink"]);
1712
1800
  var getGapStyle = (gap) => {
1713
1801
  if (isNotNil2(gap)) {
1714
1802
  if (isRecord(gap)) {
@@ -1798,7 +1886,7 @@ var Box = ({
1798
1886
  }) => {
1799
1887
  if (isDev && !hasBoxParent) {
1800
1888
  Object.keys(otherProps).forEach((prop) => {
1801
- if (PROPS_FOR_FLEX_CHILDREN.has(prop)) {
1889
+ if (propsForFlexChildren.has(prop)) {
1802
1890
  console.warn(`${prop} only has an effect on <Box> instances that are children of a <Box>`);
1803
1891
  }
1804
1892
  });
@@ -5533,7 +5621,7 @@ var getAlignment = (align) => {
5533
5621
  if (align === "right") {
5534
5622
  return "flex-end";
5535
5623
  }
5536
- return void 0;
5624
+ return "flex-start";
5537
5625
  };
5538
5626
  var ButtonGroupComponent = styled8.div`
5539
5627
  display: flex;
@@ -5958,11 +6046,12 @@ var disabledStyle = css15`
5958
6046
  `;
5959
6047
  var SPACE_BETWEEN_LABEL_AND_INPUT = "var(--space-02)";
5960
6048
  var StyledLabel = styled14.label`
5961
- display: block;
6049
+ display: inline-block;
5962
6050
  font-size: var(--typography-label-1-size);
5963
6051
  font-weight: var(--typography-label-1-weight);
5964
6052
  line-height: var(--typography-label-1-line-height);
5965
6053
  margin-bottom: ${SPACE_BETWEEN_LABEL_AND_INPUT};
6054
+ cursor: inherit;
5966
6055
  width: 100%;
5967
6056
 
5968
6057
  /* if label is wrapping an input this ensures it appears beneath the label with a nice margin */
@@ -5992,6 +6081,7 @@ var Label = ({
5992
6081
  StyledLabel,
5993
6082
  {
5994
6083
  disabled,
6084
+ htmlFor,
5995
6085
  required,
5996
6086
  screenReaderOnly,
5997
6087
  ...otherProps,