@wistia/ui 0.15.14-beta.e265d8c2.8a1d576 → 0.15.14-beta.ffa23602.f498000

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.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  /*
3
- * @license @wistia/ui v0.15.14-beta.e265d8c2.8a1d576
3
+ * @license @wistia/ui v0.15.14-beta.ffa23602.f498000
4
4
  *
5
5
  * Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
6
6
  *
@@ -14178,10 +14178,44 @@ import { createContext as createContext7, useMemo as useMemo13, useState as useS
14178
14178
  import { isNonEmptyString as isNonEmptyString6 } from "@wistia/type-guards";
14179
14179
  import styled63 from "styled-components";
14180
14180
  import { jsx as jsx277 } from "react/jsx-runtime";
14181
+ var LARGE_PADDING = "var(--wui-space-02)";
14182
+ var SMALL_PADDING = "var(--wui-space-01)";
14183
+ var getPaddingForVariant = (variant) => {
14184
+ const largePaddingVariants = [
14185
+ "hero",
14186
+ "heading1",
14187
+ "heading2",
14188
+ "heading3",
14189
+ "body1",
14190
+ "label1",
14191
+ "body1Mono"
14192
+ ];
14193
+ const smallPaddingVariants = [
14194
+ "heading4",
14195
+ "heading5",
14196
+ "heading6",
14197
+ "body2",
14198
+ "body3",
14199
+ "body4",
14200
+ "label2",
14201
+ "label3",
14202
+ "label4",
14203
+ "body2Mono",
14204
+ "body3Mono",
14205
+ "body4Mono"
14206
+ ];
14207
+ if (largePaddingVariants.includes(variant)) {
14208
+ return LARGE_PADDING;
14209
+ }
14210
+ if (smallPaddingVariants.includes(variant)) {
14211
+ return SMALL_PADDING;
14212
+ }
14213
+ return SMALL_PADDING;
14214
+ };
14181
14215
  var StyledEditableTextRoot = styled63.div`
14182
14216
  display: contents;
14183
14217
 
14184
- --wui-editable-text-padding: var(--wui-space-01);
14218
+ --wui-editable-text-padding: ${({ $typographicVariant }) => getPaddingForVariant($typographicVariant)};
14185
14219
  --wui-editable-text-border-radius: var(--wui-border-radius-01);
14186
14220
  `;
14187
14221
  var EditableTextContext = createContext7(null);
@@ -14279,6 +14313,7 @@ var EditableTextRoot = ({
14279
14313
  return /* @__PURE__ */ jsx277(
14280
14314
  StyledEditableTextRoot,
14281
14315
  {
14316
+ $typographicVariant: typographicVariant,
14282
14317
  "data-testid": "editable-text-root",
14283
14318
  "data-wui-editable-text-root": true,
14284
14319
  "data-wui-editable-text-state": getState(),