@graphysdk/react-renderer 1.9.0-beta.1789034907363 → 1.9.0-beta.1789110714410

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.
@@ -1,5 +1,4 @@
1
- import { NAMED_WEIGHTS as d } from "@graphysdk/viz-engine";
2
- import './dev.css';var S = [
1
+ import './theme.contract.css';var a = [
3
2
  "canvasDefault",
4
3
  "canvasBlue",
5
4
  "canvasCyan",
@@ -11,7 +10,7 @@ import './dev.css';var S = [
11
10
  "canvasPurple",
12
11
  "canvasGray",
13
12
  "canvasInverse"
14
- ], e = {
13
+ ], r = {
15
14
  white: "var(--graphy-white)",
16
15
  black: "var(--graphy-black)",
17
16
  transparent: "var(--graphy-transparent)",
@@ -57,22 +56,12 @@ import './dev.css';var S = [
57
56
  overlayBackground: "var(--graphy-overlay-background)",
58
57
  overlayBorderGradient: "var(--graphy-overlay-border-gradient)",
59
58
  graphBackground: "var(--graphy-graph-background)",
60
- legendBackground: "var(--graphy-legend-background)",
61
- legendBorderColor: "var(--graphy-legend-border-color)",
62
59
  legendFocusOutlineColor: "var(--graphy-legend-focus-outline-color)",
63
- legendTextColor: "var(--graphy-legend-text-color)",
64
60
  annotationFrameBorderColor: "var(--graphy-annotation-frame-border-color)",
65
61
  editMenuTriggerIconColor: "var(--graphy-edit-menu-trigger-icon-color)",
66
- tooltipBorderRadius: "var(--graphy-tooltip-border-radius)",
67
- tooltipPaddingBlock: "var(--graphy-tooltip-padding-block)",
68
- tooltipPaddingInline: "var(--graphy-tooltip-padding-inline)",
69
62
  tooltipRowGap: "var(--graphy-tooltip-row-gap)",
70
- tooltipShadow: "var(--graphy-tooltip-shadow)",
71
63
  editorControlHeight: "var(--graphy-editor-control-height)",
72
64
  legendSwatchGap: "var(--graphy-legend-swatch-gap)",
73
- legendPillPaddingInline: "var(--graphy-legend-pill-padding-inline)",
74
- legendPillPaddingBlock: "var(--graphy-legend-pill-padding-block)",
75
- legendPillBorderWidth: "var(--graphy-legend-pill-border-width)",
76
65
  headlineRowGap: "var(--graphy-headline-row-gap)",
77
66
  canvasDefault: "var(--graphy-canvas-default)",
78
67
  canvasBlue: "var(--graphy-canvas-blue)",
@@ -108,8 +97,6 @@ import './dev.css';var S = [
108
97
  toolbarButtonBackgroundColorHovered: "var(--graphy-toolbar-button-background-color-hovered)",
109
98
  toolbarButtonBackgroundColorSelected: "var(--graphy-toolbar-button-background-color-selected)",
110
99
  toolbarSeparatorColor: "var(--graphy-toolbar-separator-color)",
111
- tooltipBackground: "var(--graphy-tooltip-background)",
112
- tooltipBorderColor: "var(--graphy-tooltip-border-color)",
113
100
  fontFamily: "var(--graphy-font-family)",
114
101
  fontFamilyHeading: "var(--graphy-font-family-heading)",
115
102
  fontWeightRegular: "var(--graphy-font-weight-regular)",
@@ -138,7 +125,6 @@ import './dev.css';var S = [
138
125
  fontLineHeightHeadingSm: "var(--graphy-font-line-height-heading-sm)",
139
126
  fontLineHeightHeadingMd: "var(--graphy-font-line-height-heading-md)",
140
127
  fontLineHeightHeadingLg: "var(--graphy-font-line-height-heading-lg)",
141
- fontLegendLabel: "var(--graphy-font-legend-label)",
142
128
  fontButton: "var(--graphy-font-button)",
143
129
  fontInput: "var(--graphy-font-input)",
144
130
  fontInputLabel: "var(--graphy-font-input-label)",
@@ -169,115 +155,8 @@ import './dev.css';var S = [
169
155
  fontEditorControlValue: "var(--graphy-font-editor-control-value)",
170
156
  fontEditorSectionTitle: "var(--graphy-font-editor-section-title)",
171
157
  fontEditorCaption: "var(--graphy-font-editor-caption)"
172
- }, p = `"Stack Sans Text", 'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
173
- 'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`, y = p, l = {
174
- regular: d.regular,
175
- medium: d.medium,
176
- semibold: d.semiBold,
177
- bold: d.bold,
178
- extraBold: d.extraBold
179
- }, o = {
180
- xxs: 1,
181
- xs: 1.1,
182
- sm: 1.2,
183
- md: 1.4,
184
- lg: 1.6,
185
- xl: 2,
186
- editorBody: 1.5,
187
- headingSm: 1.8,
188
- headingMd: 2.2,
189
- headingLg: 2.8
190
- }, r = {
191
- xxs: 1,
192
- xs: 1,
193
- sm: 1.3,
194
- md: 1.43,
195
- lg: 1,
196
- xl: 1,
197
- editorBody: 1.47,
198
- headingSm: 1.25,
199
- headingMd: 1.41,
200
- headingLg: 1.29
201
- }, f = { fontLegendLabel: {
202
- weight: "fontWeightMedium",
203
- size: "fontSizeSm",
204
- lineHeight: "fontLineHeightSm"
205
- } }, m = (i) => i in f, c = (i, a) => {
206
- const g = f[i], h = t(a.weight?.toString() ?? e[g.weight], a.size === void 0 ? e[g.size] : `${a.size.value}${a.size.unit}`, a.lineHeight?.toString() ?? e[g.lineHeight], a.family ?? e.fontFamily);
207
- return a.style === void 0 || a.style === "normal" ? h : `${a.style} ${h}`;
208
- }, n = (i) => `${i}em`, u = {
209
- textScale: "1",
210
- fontFamily: p,
211
- fontFamilyHeading: y,
212
- fontWeightRegular: l.regular.toString(),
213
- fontWeightMedium: l.medium.toString(),
214
- fontWeightSemibold: l.semibold.toString(),
215
- fontWeightBold: l.bold.toString(),
216
- fontWeightExtraBold: l.extraBold.toString(),
217
- fontSizeXxs: n(o.xxs),
218
- fontSizeXs: n(o.xs),
219
- fontSizeSm: n(o.sm),
220
- fontSizeMd: n(o.md),
221
- fontSizeLg: n(o.lg),
222
- fontSizeXl: n(o.xl),
223
- fontLineHeightXxs: r.xxs.toString(),
224
- fontLineHeightXs: r.xs.toString(),
225
- fontLineHeightSm: r.sm.toString(),
226
- fontLineHeightMd: r.md.toString(),
227
- fontLineHeightLg: r.lg.toString(),
228
- fontLineHeightXl: r.xl.toString()
229
- }, b = {
230
- fontSizeEditorBody: n(o.editorBody),
231
- fontSizeHeadingSm: n(o.headingSm),
232
- fontSizeHeadingMd: n(o.headingMd),
233
- fontSizeHeadingLg: n(o.headingLg),
234
- fontLineHeightEditorBody: r.editorBody.toString(),
235
- fontLineHeightHeadingSm: r.headingSm.toString(),
236
- fontLineHeightHeadingMd: r.headingMd.toString(),
237
- fontLineHeightHeadingLg: r.headingLg.toString()
238
- }, t = (i, a, g, h = e.fontFamily) => `${i} ${a}/${g} ${h}`, v = ({ weight: i, size: a, lineHeight: g }) => t(e[i], e[a], e[g]), H = {
239
- fontLegendLabel: v(f.fontLegendLabel),
240
- fontUITooltip: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
241
- fontUITooltipSecondary: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
242
- fontButton: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
243
- fontInput: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
244
- fontInputLabel: t(e.fontWeightMedium, e.fontSizeXxs, e.fontLineHeightXxs),
245
- fontSelectLabel: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
246
- fontSelectDescription: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
247
- fontColorSelectLabel: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
248
- fontMenuTitle: t(e.fontWeightSemibold, e.fontSizeMd, e.fontLineHeightMd),
249
- fontMenuGroupTitle: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
250
- fontMenuItemLabel: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
251
- fontMenuItemLabelSecondary: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
252
- fontErrorBoundaryTitle: t(e.fontWeightSemibold, e.fontSizeHeadingSm, e.fontLineHeightHeadingSm),
253
- fontErrorBoundaryMessage: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
254
- fontTableCell: t(e.fontWeightMedium, e.fontSizeMd, e.fontLineHeightMd),
255
- fontTableHeaderCell: t(e.fontWeightSemibold, e.fontSizeSm, e.fontLineHeightSm),
256
- fontSourceLabel: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
257
- fontSourceLink: t(e.fontWeightRegular, e.fontSizeSm, e.fontLineHeightSm),
258
- fontTextEditorH1: t(e.fontWeightBold, e.fontSizeHeadingLg, e.fontLineHeightHeadingLg, e.fontFamilyHeading),
259
- fontTextEditorH2: t(e.fontWeightBold, e.fontSizeHeadingMd, e.fontLineHeightHeadingMd, e.fontFamilyHeading),
260
- fontTextEditorH3: t(e.fontWeightSemibold, e.fontSizeHeadingSm, e.fontLineHeightHeadingSm, e.fontFamilyHeading),
261
- fontTextEditorH6: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
262
- fontTextEditorBody: t(e.fontWeightMedium, e.fontSizeEditorBody, e.fontLineHeightEditorBody),
263
- fontTextEditorLink: t(e.fontWeightRegular, e.fontSizeMd, e.fontLineHeightMd),
264
- fontHighlightModeTitle: t(e.fontWeightBold, e.fontSizeMd, e.fontLineHeightMd),
265
- fontHighlightModeSubtitle: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
266
- fontEditorControlLabel: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
267
- fontEditorControlValue: t(e.fontWeightMedium, e.fontSizeSm, e.fontLineHeightSm),
268
- fontEditorSectionTitle: t(e.fontWeightSemibold, e.fontSizeSm, e.fontLineHeightSm),
269
- fontEditorCaption: t(e.fontWeightMedium, e.fontSizeXxs, e.fontLineHeightXxs)
270
- }, L = process.env.NODE_ENV !== "production";
158
+ };
271
159
  export {
272
- u as a,
273
- m as c,
274
- e as d,
275
- f as i,
276
- b as l,
277
- p as n,
278
- c as o,
279
- r,
280
- H as s,
281
- L as t,
282
- S as u
160
+ r as n,
161
+ a as t
283
162
  };
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "visualization",
12
12
  "renderer"
13
13
  ],
14
- "version": "1.9.0-beta.1789034907363",
14
+ "version": "1.9.0-beta.1789110714410",
15
15
  "type": "module",
16
16
  "sideEffects": [
17
17
  "**/*.css.ts",
@@ -55,7 +55,7 @@
55
55
  "react-colorful": "^5.6.1",
56
56
  "react-intl": "^8.1.3",
57
57
  "zustand": "^5.0.12",
58
- "@graphysdk/viz-engine": "1.9.0-beta.1789034907363"
58
+ "@graphysdk/viz-engine": "1.9.0-beta.1789110714410"
59
59
  },
60
60
  "peerDependencies": {
61
61
  "@tiptap/core": "^3.0.0",
@@ -1,2 +0,0 @@
1
- require('./dev.css');let d=require("@graphysdk/viz-engine");var y=["canvasDefault","canvasBlue","canvasCyan","canvasGreen","canvasYellow","canvasOrange","canvasRed","canvasPink","canvasPurple","canvasGray","canvasInverse"],e={white:"var(--graphy-white)",black:"var(--graphy-black)",transparent:"var(--graphy-transparent)",grey100:"var(--graphy-grey-100)",grey95:"var(--graphy-grey-95)",grey90:"var(--graphy-grey-90)",grey85:"var(--graphy-grey-85)",grey80:"var(--graphy-grey-80)",grey75:"var(--graphy-grey-75)",grey70:"var(--graphy-grey-70)",grey60:"var(--graphy-grey-60)",grey50:"var(--graphy-grey-50)",grey0:"var(--graphy-grey-0)",greyGradient80:"var(--graphy-grey-gradient-80)",green60:"var(--graphy-green-60)",green50:"var(--graphy-green-50)",red60:"var(--graphy-red-60)",red50:"var(--graphy-red-50)",amber70:"var(--graphy-amber-70)",amber50:"var(--graphy-amber-50)",amber40:"var(--graphy-amber-40)",amber30:"var(--graphy-amber-30)",blue80:"var(--graphy-blue-80)",blue60:"var(--graphy-blue-60)",purple50:"var(--graphy-purple-50)",purple30:"var(--graphy-purple-30)",brand:"var(--graphy-brand)",success:"var(--graphy-success)",warning:"var(--graphy-warning)",alert:"var(--graphy-alert)",textPrimary:"var(--graphy-text-primary)",textSecondary:"var(--graphy-text-secondary)",textDisabled:"var(--graphy-text-disabled)",iconPrimary:"var(--graphy-icon-primary)",iconSecondary:"var(--graphy-icon-secondary)",iconStickerBackground:"var(--graphy-icon-sticker-background)",border100:"var(--graphy-border-100)",border50:"var(--graphy-border-50)",border10:"var(--graphy-border-10)",sunkenBackground:"var(--graphy-sunken-background)",defaultBackground:"var(--graphy-default-background)",raisedBackground:"var(--graphy-raised-background)",overlayBackground:"var(--graphy-overlay-background)",overlayBorderGradient:"var(--graphy-overlay-border-gradient)",graphBackground:"var(--graphy-graph-background)",legendBackground:"var(--graphy-legend-background)",legendBorderColor:"var(--graphy-legend-border-color)",legendFocusOutlineColor:"var(--graphy-legend-focus-outline-color)",legendTextColor:"var(--graphy-legend-text-color)",annotationFrameBorderColor:"var(--graphy-annotation-frame-border-color)",editMenuTriggerIconColor:"var(--graphy-edit-menu-trigger-icon-color)",tooltipBorderRadius:"var(--graphy-tooltip-border-radius)",tooltipPaddingBlock:"var(--graphy-tooltip-padding-block)",tooltipPaddingInline:"var(--graphy-tooltip-padding-inline)",tooltipRowGap:"var(--graphy-tooltip-row-gap)",tooltipShadow:"var(--graphy-tooltip-shadow)",editorControlHeight:"var(--graphy-editor-control-height)",legendSwatchGap:"var(--graphy-legend-swatch-gap)",legendPillPaddingInline:"var(--graphy-legend-pill-padding-inline)",legendPillPaddingBlock:"var(--graphy-legend-pill-padding-block)",legendPillBorderWidth:"var(--graphy-legend-pill-border-width)",headlineRowGap:"var(--graphy-headline-row-gap)",canvasDefault:"var(--graphy-canvas-default)",canvasBlue:"var(--graphy-canvas-blue)",canvasCyan:"var(--graphy-canvas-cyan)",canvasGreen:"var(--graphy-canvas-green)",canvasYellow:"var(--graphy-canvas-yellow)",canvasOrange:"var(--graphy-canvas-orange)",canvasRed:"var(--graphy-canvas-red)",canvasPink:"var(--graphy-canvas-pink)",canvasPurple:"var(--graphy-canvas-purple)",canvasGray:"var(--graphy-canvas-gray)",canvasInverse:"var(--graphy-canvas-inverse)",elevationXs:"var(--graphy-elevation-xs)",elevationSm:"var(--graphy-elevation-sm)",elevationMd:"var(--graphy-elevation-md)",elevationLg:"var(--graphy-elevation-lg)",radiiXs:"var(--graphy-radii-xs)",radiiSm:"var(--graphy-radii-sm)",radiiMd:"var(--graphy-radii-md)",radiiLg:"var(--graphy-radii-lg)",spaceXxs:"var(--graphy-space-xxs)",spaceXs:"var(--graphy-space-xs)",spaceSm:"var(--graphy-space-sm)",spaceMd:"var(--graphy-space-md)",spaceLg:"var(--graphy-space-lg)",spaceXl:"var(--graphy-space-xl)",zIndexToolbar:"var(--graphy-z-index-toolbar)",zIndexToolbarTooltip:"var(--graphy-z-index-toolbar-tooltip)",zIndexToolbarPopover:"var(--graphy-z-index-toolbar-popover)",zIndexEditorPopover:"var(--graphy-z-index-editor-popover)",toolbarBackgroundColor:"var(--graphy-toolbar-background-color)",toolbarButtonBackgroundColor:"var(--graphy-toolbar-button-background-color)",toolbarButtonBackgroundColorHovered:"var(--graphy-toolbar-button-background-color-hovered)",toolbarButtonBackgroundColorSelected:"var(--graphy-toolbar-button-background-color-selected)",toolbarSeparatorColor:"var(--graphy-toolbar-separator-color)",tooltipBackground:"var(--graphy-tooltip-background)",tooltipBorderColor:"var(--graphy-tooltip-border-color)",fontFamily:"var(--graphy-font-family)",fontFamilyHeading:"var(--graphy-font-family-heading)",fontWeightRegular:"var(--graphy-font-weight-regular)",fontWeightMedium:"var(--graphy-font-weight-medium)",fontWeightSemibold:"var(--graphy-font-weight-semibold)",fontWeightBold:"var(--graphy-font-weight-bold)",fontWeightExtraBold:"var(--graphy-font-weight-extra-bold)",textScale:"var(--graphy-text-scale)",fontSizeXxs:"var(--graphy-font-size-xxs)",fontSizeXs:"var(--graphy-font-size-xs)",fontSizeSm:"var(--graphy-font-size-sm)",fontSizeMd:"var(--graphy-font-size-md)",fontSizeLg:"var(--graphy-font-size-lg)",fontSizeXl:"var(--graphy-font-size-xl)",fontLineHeightXxs:"var(--graphy-font-line-height-xxs)",fontLineHeightXs:"var(--graphy-font-line-height-xs)",fontLineHeightSm:"var(--graphy-font-line-height-sm)",fontLineHeightMd:"var(--graphy-font-line-height-md)",fontLineHeightLg:"var(--graphy-font-line-height-lg)",fontLineHeightXl:"var(--graphy-font-line-height-xl)",fontSizeEditorBody:"var(--graphy-font-size-editor-body)",fontSizeHeadingSm:"var(--graphy-font-size-heading-sm)",fontSizeHeadingMd:"var(--graphy-font-size-heading-md)",fontSizeHeadingLg:"var(--graphy-font-size-heading-lg)",fontLineHeightEditorBody:"var(--graphy-font-line-height-editor-body)",fontLineHeightHeadingSm:"var(--graphy-font-line-height-heading-sm)",fontLineHeightHeadingMd:"var(--graphy-font-line-height-heading-md)",fontLineHeightHeadingLg:"var(--graphy-font-line-height-heading-lg)",fontLegendLabel:"var(--graphy-font-legend-label)",fontButton:"var(--graphy-font-button)",fontInput:"var(--graphy-font-input)",fontInputLabel:"var(--graphy-font-input-label)",fontSelectLabel:"var(--graphy-font-select-label)",fontSelectDescription:"var(--graphy-font-select-description)",fontColorSelectLabel:"var(--graphy-font-color-select-label)",fontMenuTitle:"var(--graphy-font-menu-title)",fontMenuGroupTitle:"var(--graphy-font-menu-group-title)",fontMenuItemLabel:"var(--graphy-font-menu-item-label)",fontMenuItemLabelSecondary:"var(--graphy-font-menu-item-label-secondary)",fontUITooltip:"var(--graphy-font-uitooltip)",fontUITooltipSecondary:"var(--graphy-font-uitooltip-secondary)",fontErrorBoundaryTitle:"var(--graphy-font-error-boundary-title)",fontErrorBoundaryMessage:"var(--graphy-font-error-boundary-message)",fontTableCell:"var(--graphy-font-table-cell)",fontTableHeaderCell:"var(--graphy-font-table-header-cell)",fontSourceLabel:"var(--graphy-font-source-label)",fontSourceLink:"var(--graphy-font-source-link)",fontTextEditorH1:"var(--graphy-font-text-editor-h1)",fontTextEditorH2:"var(--graphy-font-text-editor-h2)",fontTextEditorH3:"var(--graphy-font-text-editor-h3)",fontTextEditorH6:"var(--graphy-font-text-editor-h6)",fontTextEditorBody:"var(--graphy-font-text-editor-body)",fontTextEditorLink:"var(--graphy-font-text-editor-link)",fontHighlightModeTitle:"var(--graphy-font-highlight-mode-title)",fontHighlightModeSubtitle:"var(--graphy-font-highlight-mode-subtitle)",fontEditorControlLabel:"var(--graphy-font-editor-control-label)",fontEditorControlValue:"var(--graphy-font-editor-control-value)",fontEditorSectionTitle:"var(--graphy-font-editor-section-title)",fontEditorCaption:"var(--graphy-font-editor-caption)"},p=`"Stack Sans Text", 'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
2
- 'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`,v=p,l={regular:d.NAMED_WEIGHTS.regular,medium:d.NAMED_WEIGHTS.medium,semibold:d.NAMED_WEIGHTS.semiBold,bold:d.NAMED_WEIGHTS.bold,extraBold:d.NAMED_WEIGHTS.extraBold},n={xxs:1,xs:1.1,sm:1.2,md:1.4,lg:1.6,xl:2,editorBody:1.5,headingSm:1.8,headingMd:2.2,headingLg:2.8},o={xxs:1,xs:1,sm:1.3,md:1.43,lg:1,xl:1,editorBody:1.47,headingSm:1.25,headingMd:1.41,headingLg:1.29},f={fontLegendLabel:{weight:"fontWeightMedium",size:"fontSizeSm",lineHeight:"fontLineHeightSm"}},u=i=>i in f,s=(i,r)=>{const g=f[i],h=t(r.weight?.toString()??e[g.weight],r.size===void 0?e[g.size]:`${r.size.value}${r.size.unit}`,r.lineHeight?.toString()??e[g.lineHeight],r.family??e.fontFamily);return r.style===void 0||r.style==="normal"?h:`${r.style} ${h}`},a=i=>`${i}em`,c={textScale:"1",fontFamily:p,fontFamilyHeading:v,fontWeightRegular:l.regular.toString(),fontWeightMedium:l.medium.toString(),fontWeightSemibold:l.semibold.toString(),fontWeightBold:l.bold.toString(),fontWeightExtraBold:l.extraBold.toString(),fontSizeXxs:a(n.xxs),fontSizeXs:a(n.xs),fontSizeSm:a(n.sm),fontSizeMd:a(n.md),fontSizeLg:a(n.lg),fontSizeXl:a(n.xl),fontLineHeightXxs:o.xxs.toString(),fontLineHeightXs:o.xs.toString(),fontLineHeightSm:o.sm.toString(),fontLineHeightMd:o.md.toString(),fontLineHeightLg:o.lg.toString(),fontLineHeightXl:o.xl.toString()},S={fontSizeEditorBody:a(n.editorBody),fontSizeHeadingSm:a(n.headingSm),fontSizeHeadingMd:a(n.headingMd),fontSizeHeadingLg:a(n.headingLg),fontLineHeightEditorBody:o.editorBody.toString(),fontLineHeightHeadingSm:o.headingSm.toString(),fontLineHeightHeadingMd:o.headingMd.toString(),fontLineHeightHeadingLg:o.headingLg.toString()},t=(i,r,g,h=e.fontFamily)=>`${i} ${r}/${g} ${h}`,m=({weight:i,size:r,lineHeight:g})=>t(e[i],e[r],e[g]),b={fontLegendLabel:m(f.fontLegendLabel),fontUITooltip:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontUITooltipSecondary:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontButton:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontInput:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontInputLabel:t(e.fontWeightMedium,e.fontSizeXxs,e.fontLineHeightXxs),fontSelectLabel:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontSelectDescription:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontColorSelectLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontMenuTitle:t(e.fontWeightSemibold,e.fontSizeMd,e.fontLineHeightMd),fontMenuGroupTitle:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontMenuItemLabel:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontMenuItemLabelSecondary:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontErrorBoundaryTitle:t(e.fontWeightSemibold,e.fontSizeHeadingSm,e.fontLineHeightHeadingSm),fontErrorBoundaryMessage:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTableCell:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTableHeaderCell:t(e.fontWeightSemibold,e.fontSizeSm,e.fontLineHeightSm),fontSourceLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontSourceLink:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontTextEditorH1:t(e.fontWeightBold,e.fontSizeHeadingLg,e.fontLineHeightHeadingLg,e.fontFamilyHeading),fontTextEditorH2:t(e.fontWeightBold,e.fontSizeHeadingMd,e.fontLineHeightHeadingMd,e.fontFamilyHeading),fontTextEditorH3:t(e.fontWeightSemibold,e.fontSizeHeadingSm,e.fontLineHeightHeadingSm,e.fontFamilyHeading),fontTextEditorH6:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTextEditorBody:t(e.fontWeightMedium,e.fontSizeEditorBody,e.fontLineHeightEditorBody),fontTextEditorLink:t(e.fontWeightRegular,e.fontSizeMd,e.fontLineHeightMd),fontHighlightModeTitle:t(e.fontWeightBold,e.fontSizeMd,e.fontLineHeightMd),fontHighlightModeSubtitle:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontEditorControlLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontEditorControlValue:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontEditorSectionTitle:t(e.fontWeightSemibold,e.fontSizeSm,e.fontLineHeightSm),fontEditorCaption:t(e.fontWeightMedium,e.fontSizeXxs,e.fontLineHeightXxs)},H=process.env.NODE_ENV!=="production";Object.defineProperty(exports,"CANVAS_COLOR_KEYS",{enumerable:!0,get:function(){return y}});Object.defineProperty(exports,"DEFAULT_FONT_FAMILY",{enumerable:!0,get:function(){return p}});Object.defineProperty(exports,"FONT_LINE_HEIGHT",{enumerable:!0,get:function(){return o}});Object.defineProperty(exports,"IS_DEV",{enumerable:!0,get:function(){return H}});Object.defineProperty(exports,"MEASURED_ELEMENT_FONT_DEFINITIONS",{enumerable:!0,get:function(){return f}});Object.defineProperty(exports,"baseTypographyTokens",{enumerable:!0,get:function(){return c}});Object.defineProperty(exports,"buildFontShorthand",{enumerable:!0,get:function(){return s}});Object.defineProperty(exports,"elementTypographyTokens",{enumerable:!0,get:function(){return b}});Object.defineProperty(exports,"isMeasuredFontTokenKey",{enumerable:!0,get:function(){return u}});Object.defineProperty(exports,"semanticTypographyTokens",{enumerable:!0,get:function(){return S}});Object.defineProperty(exports,"vars",{enumerable:!0,get:function(){return e}});