@wistia/ui 0.18.17-beta.c1f00b80.e6809d4 → 0.18.17-beta.f239f323.365cbcc

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
@@ -4354,7 +4354,7 @@ declare const SplitButton: {
4354
4354
  displayName: string;
4355
4355
  };
4356
4356
 
4357
- type CustomizableTokens = '--wui-color-backdrop' | '--wui-color-bg-app' | '--wui-color-bg-fill-active' | '--wui-color-bg-fill-hover' | '--wui-color-bg-fill-white ' | '--wui-color-bg-fill' | '--wui-color-bg-surface-active' | '--wui-color-bg-surface-disabled' | '--wui-color-bg-surface-hover' | '--wui-color-bg-surface-secondary-active' | '--wui-color-bg-surface-secondary-hover' | '--wui-color-bg-surface-secondary' | '--wui-color-bg-surface-selected-active' | '--wui-color-bg-surface-selected-hover' | '--wui-color-bg-surface-selected' | '--wui-color-bg-surface-tertiary' | '--wui-color-bg-surface' | '--wui-color-bg-tooltip' | '--wui-color-border-active-selected' | '--wui-color-border-active' | '--wui-color-border-disabled' | '--wui-color-border-hover-selected' | '--wui-color-border-hover' | '--wui-color-border-secondary-active' | '--wui-color-border-secondary-hover' | '--wui-color-border-secondary' | '--wui-color-border-selected' | '--wui-color-border' | '--wui-color-drop-shadow' | '--wui-color-focus-color' | '--wui-color-focus-ring-disabled' | '--wui-color-focus-ring' | '--wui-color-icon-disabled' | '--wui-color-icon-on-fill' | '--wui-color-icon-selected' | '--wui-color-icon' | '--wui-color-invalid-indicator' | '--wui-color-notification-pill-color' | '--wui-color-segmented-control-checked-background' | '--wui-color-text-button' | '--wui-color-text-disabled' | '--wui-color-text-link' | '--wui-color-text-on-fill-white-selected' | '--wui-color-text-on-fill' | '--wui-color-text-secondary' | '--wui-color-text-selected' | '--wui-color-text';
4357
+ type CustomizableTokens = '--wui-color-backdrop' | '--wui-color-bg-app' | '--wui-color-bg-fill-active' | '--wui-color-bg-fill-hover' | '--wui-color-bg-fill-white ' | '--wui-color-bg-fill' | '--wui-color-bg-surface-active' | '--wui-color-bg-surface-disabled' | '--wui-color-bg-surface-hover' | '--wui-color-bg-surface-secondary-active' | '--wui-color-bg-surface-secondary-hover' | '--wui-color-bg-surface-secondary' | '--wui-color-bg-surface-selected-active' | '--wui-color-bg-surface-selected-hover' | '--wui-color-bg-surface-selected' | '--wui-color-bg-surface-tertiary' | '--wui-color-bg-surface' | '--wui-color-bg-tooltip' | '--wui-color-border-active-selected' | '--wui-color-border-active' | '--wui-color-border-disabled' | '--wui-color-border-hover-selected' | '--wui-color-border-hover' | '--wui-color-border-secondary-active' | '--wui-color-border-secondary-hover' | '--wui-color-border-secondary' | '--wui-color-border-selected' | '--wui-color-border' | '--wui-color-drop-shadow' | '--wui-color-focus-color' | '--wui-color-focus-ring-disabled' | '--wui-color-focus-ring' | '--wui-color-icon-disabled' | '--wui-color-icon-on-fill' | '--wui-color-icon-selected' | '--wui-color-icon' | '--wui-color-invalid-indicator' | '--wui-color-notification-pill-color' | '--wui-color-segmented-control-checked-background' | '--wui-color-text-button' | '--wui-color-text-disabled' | '--wui-color-text-link' | '--wui-color-text-on-fill-white-selected' | '--wui-color-text-on-fill' | '--wui-color-text-secondary' | '--wui-color-text-selected' | '--wui-color-text' | '--wui-typography-family-brand' | '--wui-typography-family-mono' | `--wui-typography-family-default` | `--wui-typography-weight-body-bold` | `--wui-typography-weight-body` | `--wui-typography-weight-heading` | `--wui-typography-weight-label-bold` | `--wui-typography-weight-label`;
4358
4358
  type CustomizableThemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
4359
4359
  children: ReactNode;
4360
4360
  overrides: Partial<Record<CustomizableTokens, number | string>>;
package/dist/index.d.ts CHANGED
@@ -4354,7 +4354,7 @@ declare const SplitButton: {
4354
4354
  displayName: string;
4355
4355
  };
4356
4356
 
4357
- type CustomizableTokens = '--wui-color-backdrop' | '--wui-color-bg-app' | '--wui-color-bg-fill-active' | '--wui-color-bg-fill-hover' | '--wui-color-bg-fill-white ' | '--wui-color-bg-fill' | '--wui-color-bg-surface-active' | '--wui-color-bg-surface-disabled' | '--wui-color-bg-surface-hover' | '--wui-color-bg-surface-secondary-active' | '--wui-color-bg-surface-secondary-hover' | '--wui-color-bg-surface-secondary' | '--wui-color-bg-surface-selected-active' | '--wui-color-bg-surface-selected-hover' | '--wui-color-bg-surface-selected' | '--wui-color-bg-surface-tertiary' | '--wui-color-bg-surface' | '--wui-color-bg-tooltip' | '--wui-color-border-active-selected' | '--wui-color-border-active' | '--wui-color-border-disabled' | '--wui-color-border-hover-selected' | '--wui-color-border-hover' | '--wui-color-border-secondary-active' | '--wui-color-border-secondary-hover' | '--wui-color-border-secondary' | '--wui-color-border-selected' | '--wui-color-border' | '--wui-color-drop-shadow' | '--wui-color-focus-color' | '--wui-color-focus-ring-disabled' | '--wui-color-focus-ring' | '--wui-color-icon-disabled' | '--wui-color-icon-on-fill' | '--wui-color-icon-selected' | '--wui-color-icon' | '--wui-color-invalid-indicator' | '--wui-color-notification-pill-color' | '--wui-color-segmented-control-checked-background' | '--wui-color-text-button' | '--wui-color-text-disabled' | '--wui-color-text-link' | '--wui-color-text-on-fill-white-selected' | '--wui-color-text-on-fill' | '--wui-color-text-secondary' | '--wui-color-text-selected' | '--wui-color-text';
4357
+ type CustomizableTokens = '--wui-color-backdrop' | '--wui-color-bg-app' | '--wui-color-bg-fill-active' | '--wui-color-bg-fill-hover' | '--wui-color-bg-fill-white ' | '--wui-color-bg-fill' | '--wui-color-bg-surface-active' | '--wui-color-bg-surface-disabled' | '--wui-color-bg-surface-hover' | '--wui-color-bg-surface-secondary-active' | '--wui-color-bg-surface-secondary-hover' | '--wui-color-bg-surface-secondary' | '--wui-color-bg-surface-selected-active' | '--wui-color-bg-surface-selected-hover' | '--wui-color-bg-surface-selected' | '--wui-color-bg-surface-tertiary' | '--wui-color-bg-surface' | '--wui-color-bg-tooltip' | '--wui-color-border-active-selected' | '--wui-color-border-active' | '--wui-color-border-disabled' | '--wui-color-border-hover-selected' | '--wui-color-border-hover' | '--wui-color-border-secondary-active' | '--wui-color-border-secondary-hover' | '--wui-color-border-secondary' | '--wui-color-border-selected' | '--wui-color-border' | '--wui-color-drop-shadow' | '--wui-color-focus-color' | '--wui-color-focus-ring-disabled' | '--wui-color-focus-ring' | '--wui-color-icon-disabled' | '--wui-color-icon-on-fill' | '--wui-color-icon-selected' | '--wui-color-icon' | '--wui-color-invalid-indicator' | '--wui-color-notification-pill-color' | '--wui-color-segmented-control-checked-background' | '--wui-color-text-button' | '--wui-color-text-disabled' | '--wui-color-text-link' | '--wui-color-text-on-fill-white-selected' | '--wui-color-text-on-fill' | '--wui-color-text-secondary' | '--wui-color-text-selected' | '--wui-color-text' | '--wui-typography-family-brand' | '--wui-typography-family-mono' | `--wui-typography-family-default` | `--wui-typography-weight-body-bold` | `--wui-typography-weight-body` | `--wui-typography-weight-heading` | `--wui-typography-weight-label-bold` | `--wui-typography-weight-label`;
4358
4358
  type CustomizableThemeWrapperProps = ComponentPropsWithoutRef<'div'> & {
4359
4359
  children: ReactNode;
4360
4360
  overrides: Partial<Record<CustomizableTokens, number | string>>;
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.18.17-beta.c1f00b80.e6809d4
3
+ * @license @wistia/ui v0.18.17-beta.f239f323.365cbcc
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -1675,43 +1675,64 @@ var typographyTokens = css7`
1675
1675
  --wui-typography-heading-hero-family: var(--wui-typography-family-brand);
1676
1676
  --wui-typography-heading-hero-line-height: 58px;
1677
1677
  --wui-typography-heading-hero-size: 48px;
1678
- --wui-typography-heading-hero-weight: var(--wui-typography-weight-brand-black);
1678
+ --wui-typography-heading-hero-weight: var(
1679
+ --wui-typography-weight-heading,
1680
+ var(--wui-typography-weight-brand-black)
1681
+ );
1679
1682
 
1680
1683
  /* Heading 1 */
1681
1684
  --wui-typography-heading-1-family: var(--wui-typography-family-brand);
1682
1685
  --wui-typography-heading-1-line-height: 44px;
1683
1686
  --wui-typography-heading-1-size: 36px;
1684
- --wui-typography-heading-1-weight: var(--wui-typography-weight-brand-black);
1687
+ --wui-typography-heading-1-weight: var(
1688
+ --wui-typography-weight-heading,
1689
+ var(--wui-typography-weight-brand-black)
1690
+ );
1685
1691
 
1686
1692
  /* Heading 2 */
1687
1693
  --wui-typography-heading-2-family: var(--wui-typography-family-brand);
1688
1694
  --wui-typography-heading-2-line-height: 38px;
1689
1695
  --wui-typography-heading-2-size: 32px;
1690
- --wui-typography-heading-2-weight: var(--wui-typography-weight-brand-black);
1696
+ --wui-typography-heading-2-weight: var(
1697
+ --wui-typography-weight-heading,
1698
+ var(--wui-typography-weight-brand-black)
1699
+ );
1691
1700
 
1692
1701
  /* Heading 3 */
1693
1702
  --wui-typography-heading-3-family: var(--wui-typography-family-brand);
1694
1703
  --wui-typography-heading-3-line-height: 30px;
1695
1704
  --wui-typography-heading-3-size: 24px;
1696
- --wui-typography-heading-3-weight: var(--wui-typography-weight-brand-bold);
1705
+ --wui-typography-heading-3-weight: var(
1706
+ --wui-typography-weight-heading,
1707
+ var(--wui-typography-weight-brand-bold)
1708
+ );
1697
1709
 
1698
1710
  /* Heading 4 */
1699
1711
  --wui-typography-heading-4-family: var(--wui-typography-family-brand);
1700
1712
  --wui-typography-heading-4-line-height: 24px;
1701
1713
  --wui-typography-heading-4-size: 18px;
1702
- --wui-typography-heading-4-weight: var(--wui-typography-weight-brand-bold);
1714
+ --wui-typography-heading-4-weight: var(
1715
+ --wui-typography-weight-heading,
1716
+ var(--wui-typography-weight-brand-bold)
1717
+ );
1703
1718
 
1704
1719
  /* Heading 5 */
1705
1720
  --wui-typography-heading-5-family: var(--wui-typography-family-brand);
1706
1721
  --wui-typography-heading-5-line-height: 22px;
1707
1722
  --wui-typography-heading-5-size: 16px;
1708
- --wui-typography-heading-5-weight: var(--wui-typography-weight-brand-bold);
1723
+ --wui-typography-heading-5-weight: var(
1724
+ --wui-typography-weight-heading,
1725
+ var(--wui-typography-weight-brand-bold)
1726
+ );
1709
1727
 
1710
1728
  /* Heading 6 */
1711
1729
  --wui-typography-heading-6-family: var(--wui-typography-family-brand);
1712
1730
  --wui-typography-heading-6-line-height: 18px;
1713
1731
  --wui-typography-heading-6-size: 14px;
1714
- --wui-typography-heading-6-weight: var(--wui-typography-weight-brand-bold);
1732
+ --wui-typography-heading-6-weight: var(
1733
+ --wui-typography-weight-heading,
1734
+ var(--wui-typography-weight-brand-bold)
1735
+ );
1715
1736
 
1716
1737
  /* Body Weight */
1717
1738
  --wui-typography-weight-body: 425;
@@ -1834,7 +1855,8 @@ var colorTokens = css11`
1834
1855
  ${colorAliasTokens}
1835
1856
  `;
1836
1857
  var designTokens = css11`
1837
- :root {
1858
+ :root,
1859
+ [data-wui-theme='true'] {
1838
1860
  ${borderRadiusTokens}
1839
1861
  ${colorTokens}
1840
1862
  ${elevationTokens}
@@ -13958,22 +13980,12 @@ import { useRef as useRef15 } from "react";
13958
13980
  import { styled as styled58, keyframes as keyframes4 } from "styled-components";
13959
13981
  import { isNotNil as isNotNil25 } from "@wistia/type-guards";
13960
13982
  import { jsx as jsx278, jsxs as jsxs41 } from "react/jsx-runtime";
13961
- var pulse = keyframes4`
13962
- 0%,
13963
- 100% {
13964
- opacity: 1;
13965
- }
13966
- 50% {
13967
- opacity: 0.5;
13968
- }
13969
- `;
13970
13983
  var StyledDataCard = styled58.div`
13971
13984
  --wui-data-card-text: var(--wui-color-text-button);
13972
13985
  --wui-color-text: var(--wui-data-card-text);
13973
13986
  --wui-data-card-background: var(--wui-color-bg-surface-secondary);
13974
13987
  --wui-data-card-background-hover: var(--wui-color-bg-surface-secondary-hover);
13975
13988
  --wui-data-card-background-active: var(--wui-color-bg-surface-secondary-active);
13976
- --wui-data-card-skeleton-color: var(--wui-color-bg-surface-tertiary);
13977
13989
 
13978
13990
  display: grid;
13979
13991
  grid-template-areas: 'label slot' 'value value';
@@ -14001,17 +14013,6 @@ var StyledDataCard = styled58.div`
14001
14013
  grid-template-rows: auto auto auto;
14002
14014
  }
14003
14015
 
14004
- [data-wui-data-card-skeleton='true'] {
14005
- pointer-events: none;
14006
- background-color: var(--wui-data-card-skeleton-color);
14007
- animation: ${pulse} 1.5s var(--wui-motion-ease-in-out) 0.5s infinite;
14008
- color: transparent;
14009
- user-select: none;
14010
- pointer-events: none;
14011
- border-radius: var(--wui-border-radius-01);
14012
- width: fit-content;
14013
- }
14014
-
14015
14016
  &[data-click-region] {
14016
14017
  &:not([disabled]) {
14017
14018
  cursor: pointer;
@@ -14043,7 +14044,6 @@ var StyledDataCard = styled58.div`
14043
14044
  --wui-data-card-background-hover: var(--wui-color-bg-surface-selected-hover);
14044
14045
  --wui-data-card-background-active: var(--wui-color-bg-surface-selected-active);
14045
14046
  --wui-data-card-focus-ring: var(--wui-color-border-selected);
14046
- --wui-data-card-skeleton-color: var(--wui-color-bg-surface-selected-active);
14047
14047
  }
14048
14048
  }
14049
14049
 
@@ -14054,17 +14054,38 @@ var StyledDataCard = styled58.div`
14054
14054
  ${({ $colorScheme }) => getColorScheme($colorScheme)}
14055
14055
  }
14056
14056
  `;
14057
+ var shimmer = keyframes4`
14058
+ 0% {
14059
+ background-position: 200% 0;
14060
+ }
14061
+ 100% {
14062
+ background-position: -200% 0;
14063
+ }
14064
+ `;
14065
+ var LoadingBackground = styled58.div`
14066
+ background: linear-gradient(
14067
+ 90deg,
14068
+ var(--wui-color-bg-surface-tertiary) 25%,
14069
+ var(--wui-color-bg-surface-secondary) 37%,
14070
+ var(--wui-color-bg-surface-tertiary) 63%
14071
+ );
14072
+ background-size: 200% 100%;
14073
+ animation: ${shimmer} 1.5s infinite;
14074
+ border-radius: var(--wui-border-radius-01);
14075
+ `;
14076
+ var StyledLoadingLabel = styled58(LoadingBackground)`
14077
+ width: 80px;
14078
+ height: var(--wui-typography-heading-6-line-height);
14079
+ `;
14080
+ var StyledLoadingValue = styled58(LoadingBackground)`
14081
+ width: 90%;
14082
+ height: var(--wui-typography-heading-3-line-height);
14083
+ `;
14057
14084
  var StyledLabel3 = styled58(Heading)`
14058
14085
  grid-area: label;
14059
- &[data-wui-data-card-skeleton='true'] {
14060
- width: 80px;
14061
- }
14062
14086
  `;
14063
14087
  var StyledValue = styled58(Heading)`
14064
14088
  grid-area: value;
14065
- &[data-wui-data-card-skeleton='true'] {
14066
- width: min(90%, 156px);
14067
- }
14068
14089
  `;
14069
14090
  var StyledSlot = styled58.div`
14070
14091
  display: flex;
@@ -14098,19 +14119,17 @@ var DataCardInner = ({
14098
14119
  /* @__PURE__ */ jsx278(
14099
14120
  StyledLabel3,
14100
14121
  {
14101
- "data-wui-data-card-skeleton": isLoading,
14102
14122
  renderAs: "dt",
14103
14123
  variant: "heading6",
14104
- children: label
14124
+ children: isLoading ? /* @__PURE__ */ jsx278(StyledLoadingLabel, {}) : label
14105
14125
  }
14106
14126
  ),
14107
14127
  /* @__PURE__ */ jsx278(
14108
14128
  StyledValue,
14109
14129
  {
14110
- "data-wui-data-card-skeleton": isLoading,
14111
14130
  renderAs: "dd",
14112
14131
  variant: "heading3",
14113
- children: value
14132
+ children: isLoading ? /* @__PURE__ */ jsx278(StyledLoadingValue, {}) : value
14114
14133
  }
14115
14134
  ),
14116
14135
  isNotNil25(upperRightSlot) && !isLoading && /* @__PURE__ */ jsx278(StyledSlot, { children: upperRightSlot }),
@@ -18722,6 +18741,7 @@ var CustomizableThemeWrapper = ({
18722
18741
  {
18723
18742
  ...props,
18724
18743
  $overrides: overrides,
18744
+ "data-wui-theme": "true",
18725
18745
  children
18726
18746
  }
18727
18747
  );