@graphysdk/react-renderer 0.0.1-plugins.9 → 1.8.1-beta.1786024899180
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/LICENSE.md +17 -0
- package/README.md +42 -3
- package/dist/editable.cjs +1 -0
- package/dist/editable.css +1 -0
- package/dist/editable.d.ts +4034 -0
- package/dist/editable.mjs +2829 -0
- package/dist/font-values-BOsqFcT9.js +425 -0
- package/dist/font-values-DAorZ_7T.cjs +2 -0
- package/dist/graph-config.cjs +1 -0
- package/dist/graph-config.d.ts +285 -0
- package/dist/graph-config.mjs +58 -0
- package/dist/history-chords-HlgDDT-6.js +8955 -0
- package/dist/history-chords-xdwpWM21.cjs +1 -0
- package/dist/history-chords.css +1 -0
- package/dist/index.cjs +1 -3
- package/dist/index.css +1 -1
- package/dist/index.d.ts +885 -338
- package/dist/index.mjs +682 -4708
- package/package.json +48 -20
|
@@ -0,0 +1,425 @@
|
|
|
1
|
+
import { NAMED_WEIGHTS as d } from "@graphysdk/viz-engine";
|
|
2
|
+
var H = [
|
|
3
|
+
"canvasDefault",
|
|
4
|
+
"canvasBlue",
|
|
5
|
+
"canvasCyan",
|
|
6
|
+
"canvasGreen",
|
|
7
|
+
"canvasYellow",
|
|
8
|
+
"canvasOrange",
|
|
9
|
+
"canvasRed",
|
|
10
|
+
"canvasPink",
|
|
11
|
+
"canvasPurple",
|
|
12
|
+
"canvasGray",
|
|
13
|
+
"canvasInverse"
|
|
14
|
+
], t = {
|
|
15
|
+
white: "var(--graphy-white)",
|
|
16
|
+
black: "var(--graphy-black)",
|
|
17
|
+
transparent: "var(--graphy-transparent)",
|
|
18
|
+
grey100: "var(--graphy-grey-100)",
|
|
19
|
+
grey95: "var(--graphy-grey-95)",
|
|
20
|
+
grey90: "var(--graphy-grey-90)",
|
|
21
|
+
grey85: "var(--graphy-grey-85)",
|
|
22
|
+
grey80: "var(--graphy-grey-80)",
|
|
23
|
+
grey75: "var(--graphy-grey-75)",
|
|
24
|
+
grey70: "var(--graphy-grey-70)",
|
|
25
|
+
grey60: "var(--graphy-grey-60)",
|
|
26
|
+
grey50: "var(--graphy-grey-50)",
|
|
27
|
+
grey0: "var(--graphy-grey-0)",
|
|
28
|
+
greyGradient80: "var(--graphy-grey-gradient-80)",
|
|
29
|
+
green60: "var(--graphy-green-60)",
|
|
30
|
+
green50: "var(--graphy-green-50)",
|
|
31
|
+
red60: "var(--graphy-red-60)",
|
|
32
|
+
red50: "var(--graphy-red-50)",
|
|
33
|
+
amber70: "var(--graphy-amber-70)",
|
|
34
|
+
amber50: "var(--graphy-amber-50)",
|
|
35
|
+
amber40: "var(--graphy-amber-40)",
|
|
36
|
+
amber30: "var(--graphy-amber-30)",
|
|
37
|
+
blue80: "var(--graphy-blue-80)",
|
|
38
|
+
blue60: "var(--graphy-blue-60)",
|
|
39
|
+
purple50: "var(--graphy-purple-50)",
|
|
40
|
+
purple30: "var(--graphy-purple-30)",
|
|
41
|
+
brand: "var(--graphy-brand)",
|
|
42
|
+
success: "var(--graphy-success)",
|
|
43
|
+
warning: "var(--graphy-warning)",
|
|
44
|
+
alert: "var(--graphy-alert)",
|
|
45
|
+
textPrimary: "var(--graphy-text-primary)",
|
|
46
|
+
textSecondary: "var(--graphy-text-secondary)",
|
|
47
|
+
textDisabled: "var(--graphy-text-disabled)",
|
|
48
|
+
iconPrimary: "var(--graphy-icon-primary)",
|
|
49
|
+
iconSecondary: "var(--graphy-icon-secondary)",
|
|
50
|
+
iconStickerBackground: "var(--graphy-icon-sticker-background)",
|
|
51
|
+
border100: "var(--graphy-border-100)",
|
|
52
|
+
border50: "var(--graphy-border-50)",
|
|
53
|
+
border10: "var(--graphy-border-10)",
|
|
54
|
+
sunkenBackground: "var(--graphy-sunken-background)",
|
|
55
|
+
defaultBackground: "var(--graphy-default-background)",
|
|
56
|
+
raisedBackground: "var(--graphy-raised-background)",
|
|
57
|
+
overlayBackground: "var(--graphy-overlay-background)",
|
|
58
|
+
overlayBorderGradient: "var(--graphy-overlay-border-gradient)",
|
|
59
|
+
graphBackground: "var(--graphy-graph-background)",
|
|
60
|
+
gridLineColor: "var(--graphy-grid-line-color)",
|
|
61
|
+
originLineColor: "var(--graphy-origin-line-color)",
|
|
62
|
+
legendBackground: "var(--graphy-legend-background)",
|
|
63
|
+
legendBorderColor: "var(--graphy-legend-border-color)",
|
|
64
|
+
legendFocusOutlineColor: "var(--graphy-legend-focus-outline-color)",
|
|
65
|
+
legendTextColor: "var(--graphy-legend-text-color)",
|
|
66
|
+
dimmedSeriesLabelTextColor: "var(--graphy-dimmed-series-label-text-color)",
|
|
67
|
+
dimmedSeriesLabelLineColor: "var(--graphy-dimmed-series-label-line-color)",
|
|
68
|
+
trendNegativeColor: "var(--graphy-trend-negative-color)",
|
|
69
|
+
trendPositiveColor: "var(--graphy-trend-positive-color)",
|
|
70
|
+
trendNeutralColor: "var(--graphy-trend-neutral-color)",
|
|
71
|
+
defaultAnnotationArrowStroke: "var(--graphy-default-annotation-arrow-stroke)",
|
|
72
|
+
defaultAnnotationShapeStroke: "var(--graphy-default-annotation-shape-stroke)",
|
|
73
|
+
defaultAnnotationShapeFill: "var(--graphy-default-annotation-shape-fill)",
|
|
74
|
+
arrowAnnotationStickerOutlineColor: "var(--graphy-arrow-annotation-sticker-outline-color)",
|
|
75
|
+
arrowAnnotationStickerOutlineColorInverse: "var(--graphy-arrow-annotation-sticker-outline-color-inverse)",
|
|
76
|
+
annotationFrameBorderColor: "var(--graphy-annotation-frame-border-color)",
|
|
77
|
+
editMenuTriggerIconColor: "var(--graphy-edit-menu-trigger-icon-color)",
|
|
78
|
+
heatmapEmptyTileBackground: "var(--graphy-heatmap-empty-tile-background)",
|
|
79
|
+
dataLabelOutsideBackground: "var(--graphy-data-label-outside-background)",
|
|
80
|
+
dataLabelTextColor: "var(--graphy-data-label-text-color)",
|
|
81
|
+
dataLabelInsideTextColor: "var(--graphy-data-label-inside-text-color)",
|
|
82
|
+
stackTotalTextColor: "var(--graphy-stack-total-text-color)",
|
|
83
|
+
stackTotalBackground: "var(--graphy-stack-total-background)",
|
|
84
|
+
stackTotalStroke: "var(--graphy-stack-total-stroke)",
|
|
85
|
+
gridLineWidth: "var(--graphy-grid-line-width)",
|
|
86
|
+
gridLineDash: "var(--graphy-grid-line-dash)",
|
|
87
|
+
gridLineDotted: "var(--graphy-grid-line-dotted)",
|
|
88
|
+
tooltipBorderRadius: "var(--graphy-tooltip-border-radius)",
|
|
89
|
+
tooltipBorderWidth: "var(--graphy-tooltip-border-width)",
|
|
90
|
+
tooltipPaddingBlock: "var(--graphy-tooltip-padding-block)",
|
|
91
|
+
tooltipPaddingInline: "var(--graphy-tooltip-padding-inline)",
|
|
92
|
+
tooltipRowGap: "var(--graphy-tooltip-row-gap)",
|
|
93
|
+
tooltipShadow: "var(--graphy-tooltip-shadow)",
|
|
94
|
+
editorControlHeight: "var(--graphy-editor-control-height)",
|
|
95
|
+
tickLabelOffset: "var(--graphy-tick-label-offset)",
|
|
96
|
+
legendItemGap: "var(--graphy-legend-item-gap)",
|
|
97
|
+
legendSwatchGap: "var(--graphy-legend-swatch-gap)",
|
|
98
|
+
legendSwatchWidth: "var(--graphy-legend-swatch-width)",
|
|
99
|
+
legendSwatchHeight: "var(--graphy-legend-swatch-height)",
|
|
100
|
+
legendPillPaddingInline: "var(--graphy-legend-pill-padding-inline)",
|
|
101
|
+
legendPillPaddingBlock: "var(--graphy-legend-pill-padding-block)",
|
|
102
|
+
legendPillBorderWidth: "var(--graphy-legend-pill-border-width)",
|
|
103
|
+
headlineRowGap: "var(--graphy-headline-row-gap)",
|
|
104
|
+
headlineItemGap: "var(--graphy-headline-item-gap)",
|
|
105
|
+
canvasDefault: "var(--graphy-canvas-default)",
|
|
106
|
+
canvasBlue: "var(--graphy-canvas-blue)",
|
|
107
|
+
canvasCyan: "var(--graphy-canvas-cyan)",
|
|
108
|
+
canvasGreen: "var(--graphy-canvas-green)",
|
|
109
|
+
canvasYellow: "var(--graphy-canvas-yellow)",
|
|
110
|
+
canvasOrange: "var(--graphy-canvas-orange)",
|
|
111
|
+
canvasRed: "var(--graphy-canvas-red)",
|
|
112
|
+
canvasPink: "var(--graphy-canvas-pink)",
|
|
113
|
+
canvasPurple: "var(--graphy-canvas-purple)",
|
|
114
|
+
canvasGray: "var(--graphy-canvas-gray)",
|
|
115
|
+
canvasInverse: "var(--graphy-canvas-inverse)",
|
|
116
|
+
elevationXs: "var(--graphy-elevation-xs)",
|
|
117
|
+
elevationSm: "var(--graphy-elevation-sm)",
|
|
118
|
+
elevationMd: "var(--graphy-elevation-md)",
|
|
119
|
+
elevationLg: "var(--graphy-elevation-lg)",
|
|
120
|
+
radiiXs: "var(--graphy-radii-xs)",
|
|
121
|
+
radiiSm: "var(--graphy-radii-sm)",
|
|
122
|
+
radiiMd: "var(--graphy-radii-md)",
|
|
123
|
+
radiiLg: "var(--graphy-radii-lg)",
|
|
124
|
+
spaceXxs: "var(--graphy-space-xxs)",
|
|
125
|
+
spaceXs: "var(--graphy-space-xs)",
|
|
126
|
+
spaceSm: "var(--graphy-space-sm)",
|
|
127
|
+
spaceMd: "var(--graphy-space-md)",
|
|
128
|
+
spaceLg: "var(--graphy-space-lg)",
|
|
129
|
+
spaceXl: "var(--graphy-space-xl)",
|
|
130
|
+
zIndexToolbar: "var(--graphy-z-index-toolbar)",
|
|
131
|
+
zIndexToolbarTooltip: "var(--graphy-z-index-toolbar-tooltip)",
|
|
132
|
+
zIndexToolbarPopover: "var(--graphy-z-index-toolbar-popover)",
|
|
133
|
+
zIndexEditorPopover: "var(--graphy-z-index-editor-popover)",
|
|
134
|
+
toolbarBackgroundColor: "var(--graphy-toolbar-background-color)",
|
|
135
|
+
toolbarButtonBackgroundColor: "var(--graphy-toolbar-button-background-color)",
|
|
136
|
+
toolbarButtonBackgroundColorHovered: "var(--graphy-toolbar-button-background-color-hovered)",
|
|
137
|
+
toolbarButtonBackgroundColorSelected: "var(--graphy-toolbar-button-background-color-selected)",
|
|
138
|
+
toolbarSeparatorColor: "var(--graphy-toolbar-separator-color)",
|
|
139
|
+
tooltipBackground: "var(--graphy-tooltip-background)",
|
|
140
|
+
tooltipBorderColor: "var(--graphy-tooltip-border-color)",
|
|
141
|
+
tooltipHeadingTextColor: "var(--graphy-tooltip-heading-text-color)",
|
|
142
|
+
tooltipLabelTextColor: "var(--graphy-tooltip-label-text-color)",
|
|
143
|
+
tooltipValueTextColor: "var(--graphy-tooltip-value-text-color)",
|
|
144
|
+
tooltipPrimaryRowColor: "var(--graphy-tooltip-primary-row-color)",
|
|
145
|
+
hoverGuideLineColor: "var(--graphy-hover-guide-line-color)",
|
|
146
|
+
hoverGuideFillColor: "var(--graphy-hover-guide-fill-color)",
|
|
147
|
+
fontFamilyDefault: "var(--graphy-font-family-default)",
|
|
148
|
+
fontFamilyHeading: "var(--graphy-font-family-heading)",
|
|
149
|
+
fontWeightRegular: "var(--graphy-font-weight-regular)",
|
|
150
|
+
fontWeightMedium: "var(--graphy-font-weight-medium)",
|
|
151
|
+
fontWeightSemibold: "var(--graphy-font-weight-semibold)",
|
|
152
|
+
fontWeightBold: "var(--graphy-font-weight-bold)",
|
|
153
|
+
fontWeightExtraBold: "var(--graphy-font-weight-extra-bold)",
|
|
154
|
+
fontWeightBlack: "var(--graphy-font-weight-black)",
|
|
155
|
+
textScale: "var(--graphy-text-scale)",
|
|
156
|
+
fontSizeXxs: "var(--graphy-font-size-xxs)",
|
|
157
|
+
fontSizeXs: "var(--graphy-font-size-xs)",
|
|
158
|
+
fontSizeSm: "var(--graphy-font-size-sm)",
|
|
159
|
+
fontSizeMd: "var(--graphy-font-size-md)",
|
|
160
|
+
fontSizeLg: "var(--graphy-font-size-lg)",
|
|
161
|
+
fontSizeXl: "var(--graphy-font-size-xl)",
|
|
162
|
+
fontLineHeightXxs: "var(--graphy-font-line-height-xxs)",
|
|
163
|
+
fontLineHeightXs: "var(--graphy-font-line-height-xs)",
|
|
164
|
+
fontLineHeightSm: "var(--graphy-font-line-height-sm)",
|
|
165
|
+
fontLineHeightMd: "var(--graphy-font-line-height-md)",
|
|
166
|
+
fontLineHeightLg: "var(--graphy-font-line-height-lg)",
|
|
167
|
+
fontLineHeightXl: "var(--graphy-font-line-height-xl)",
|
|
168
|
+
fontSizeEditorBody: "var(--graphy-font-size-editor-body)",
|
|
169
|
+
fontSizeHeadingSm: "var(--graphy-font-size-heading-sm)",
|
|
170
|
+
fontSizeHeadingMd: "var(--graphy-font-size-heading-md)",
|
|
171
|
+
fontSizeHeadingLg: "var(--graphy-font-size-heading-lg)",
|
|
172
|
+
fontLineHeightEditorBody: "var(--graphy-font-line-height-editor-body)",
|
|
173
|
+
fontLineHeightHeadingSm: "var(--graphy-font-line-height-heading-sm)",
|
|
174
|
+
fontLineHeightHeadingMd: "var(--graphy-font-line-height-heading-md)",
|
|
175
|
+
fontLineHeightHeadingLg: "var(--graphy-font-line-height-heading-lg)",
|
|
176
|
+
fontTickLabel: "var(--graphy-font-tick-label)",
|
|
177
|
+
fontAxisLabel: "var(--graphy-font-axis-label)",
|
|
178
|
+
fontDataLabel: "var(--graphy-font-data-label)",
|
|
179
|
+
fontStackTotal: "var(--graphy-font-stack-total)",
|
|
180
|
+
fontCategoryLabel: "var(--graphy-font-category-label)",
|
|
181
|
+
fontLegendLabel: "var(--graphy-font-legend-label)",
|
|
182
|
+
fontSeriesLabel: "var(--graphy-font-series-label)",
|
|
183
|
+
fontTooltipLabel: "var(--graphy-font-tooltip-label)",
|
|
184
|
+
fontTooltipHeading: "var(--graphy-font-tooltip-heading)",
|
|
185
|
+
fontTooltipFooter: "var(--graphy-font-tooltip-footer)",
|
|
186
|
+
fontJumboTooltipLabel: "var(--graphy-font-jumbo-tooltip-label)",
|
|
187
|
+
fontJumboTooltip: "var(--graphy-font-jumbo-tooltip)",
|
|
188
|
+
fontMiniTooltipLabel: "var(--graphy-font-mini-tooltip-label)",
|
|
189
|
+
fontMiniTooltipFooter: "var(--graphy-font-mini-tooltip-footer)",
|
|
190
|
+
fontTooltipCaption: "var(--graphy-font-tooltip-caption)",
|
|
191
|
+
fontTooltipCaptionSmall: "var(--graphy-font-tooltip-caption-small)",
|
|
192
|
+
fontTrendTag: "var(--graphy-font-trend-tag)",
|
|
193
|
+
fontTrendTagSmall: "var(--graphy-font-trend-tag-small)",
|
|
194
|
+
fontGoalLineLabel: "var(--graphy-font-goal-line-label)",
|
|
195
|
+
fontPieLabel: "var(--graphy-font-pie-label)",
|
|
196
|
+
fontPieChartTotal: "var(--graphy-font-pie-chart-total)",
|
|
197
|
+
fontDifferenceArrowSmall: "var(--graphy-font-difference-arrow-small)",
|
|
198
|
+
fontDifferenceArrowMedium: "var(--graphy-font-difference-arrow-medium)",
|
|
199
|
+
fontDifferenceArrowLarge: "var(--graphy-font-difference-arrow-large)",
|
|
200
|
+
fontButton: "var(--graphy-font-button)",
|
|
201
|
+
fontInput: "var(--graphy-font-input)",
|
|
202
|
+
fontInputLabel: "var(--graphy-font-input-label)",
|
|
203
|
+
fontSelectLabel: "var(--graphy-font-select-label)",
|
|
204
|
+
fontSelectDescription: "var(--graphy-font-select-description)",
|
|
205
|
+
fontColorSelectLabel: "var(--graphy-font-color-select-label)",
|
|
206
|
+
fontMenuTitle: "var(--graphy-font-menu-title)",
|
|
207
|
+
fontMenuGroupTitle: "var(--graphy-font-menu-group-title)",
|
|
208
|
+
fontMenuItemLabel: "var(--graphy-font-menu-item-label)",
|
|
209
|
+
fontMenuItemLabelSecondary: "var(--graphy-font-menu-item-label-secondary)",
|
|
210
|
+
fontUITooltip: "var(--graphy-font-uitooltip)",
|
|
211
|
+
fontUITooltipSecondary: "var(--graphy-font-uitooltip-secondary)",
|
|
212
|
+
fontErrorBoundaryTitle: "var(--graphy-font-error-boundary-title)",
|
|
213
|
+
fontErrorBoundaryMessage: "var(--graphy-font-error-boundary-message)",
|
|
214
|
+
fontTableCell: "var(--graphy-font-table-cell)",
|
|
215
|
+
fontTableHeaderCell: "var(--graphy-font-table-header-cell)",
|
|
216
|
+
fontSourceLabel: "var(--graphy-font-source-label)",
|
|
217
|
+
fontSourceLink: "var(--graphy-font-source-link)",
|
|
218
|
+
fontTextEditorH1: "var(--graphy-font-text-editor-h1)",
|
|
219
|
+
fontTextEditorH2: "var(--graphy-font-text-editor-h2)",
|
|
220
|
+
fontTextEditorH3: "var(--graphy-font-text-editor-h3)",
|
|
221
|
+
fontTextEditorH6: "var(--graphy-font-text-editor-h6)",
|
|
222
|
+
fontTextEditorBody: "var(--graphy-font-text-editor-body)",
|
|
223
|
+
fontTextEditorLink: "var(--graphy-font-text-editor-link)",
|
|
224
|
+
fontHighlightModeTitle: "var(--graphy-font-highlight-mode-title)",
|
|
225
|
+
fontHighlightModeSubtitle: "var(--graphy-font-highlight-mode-subtitle)",
|
|
226
|
+
fontEditorControlLabel: "var(--graphy-font-editor-control-label)",
|
|
227
|
+
fontEditorControlValue: "var(--graphy-font-editor-control-value)",
|
|
228
|
+
fontEditorSectionTitle: "var(--graphy-font-editor-section-title)",
|
|
229
|
+
fontEditorCaption: "var(--graphy-font-editor-caption)"
|
|
230
|
+
}, v = `'Inter', -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI', 'Roboto', 'Oxygen-Sans', 'Ubuntu',
|
|
231
|
+
'Cantarell', 'Helvetica Neue', 'NotoSansArabic', 'NotoSansJP', 'NotoSansSC', 'NotoSansKR', 'NotoSerifKR', sans-serif, 'Apple Color Emoji', 'NotoColorEmoji'`, S = v, p = {
|
|
232
|
+
regular: d.regular,
|
|
233
|
+
medium: d.medium,
|
|
234
|
+
semibold: d.semiBold,
|
|
235
|
+
bold: d.bold,
|
|
236
|
+
extraBold: d.extraBold,
|
|
237
|
+
black: d.black
|
|
238
|
+
}, n = {
|
|
239
|
+
xxs: 1,
|
|
240
|
+
xs: 1.1,
|
|
241
|
+
sm: 1.2,
|
|
242
|
+
md: 1.4,
|
|
243
|
+
lg: 1.6,
|
|
244
|
+
xl: 2,
|
|
245
|
+
editorBody: 1.5,
|
|
246
|
+
headingSm: 1.8,
|
|
247
|
+
headingMd: 2.2,
|
|
248
|
+
headingLg: 2.8
|
|
249
|
+
}, i = {
|
|
250
|
+
xxs: 1,
|
|
251
|
+
xs: 1,
|
|
252
|
+
sm: 1.3,
|
|
253
|
+
md: 1.43,
|
|
254
|
+
lg: 1,
|
|
255
|
+
xl: 1,
|
|
256
|
+
editorBody: 1.47,
|
|
257
|
+
headingSm: 1.25,
|
|
258
|
+
headingMd: 1.41,
|
|
259
|
+
headingLg: 1.29
|
|
260
|
+
}, l = {
|
|
261
|
+
fontTickLabel: {
|
|
262
|
+
weight: "fontWeightMedium",
|
|
263
|
+
size: "fontSizeSm",
|
|
264
|
+
lineHeight: "fontLineHeightSm"
|
|
265
|
+
},
|
|
266
|
+
fontAxisLabel: {
|
|
267
|
+
weight: "fontWeightMedium",
|
|
268
|
+
size: "fontSizeSm",
|
|
269
|
+
lineHeight: "fontLineHeightSm"
|
|
270
|
+
},
|
|
271
|
+
fontDataLabel: {
|
|
272
|
+
weight: "fontWeightMedium",
|
|
273
|
+
size: "fontSizeXs",
|
|
274
|
+
lineHeight: "fontLineHeightXs"
|
|
275
|
+
},
|
|
276
|
+
fontStackTotal: {
|
|
277
|
+
weight: "fontWeightSemibold",
|
|
278
|
+
size: "fontSizeXs",
|
|
279
|
+
lineHeight: "fontLineHeightXs"
|
|
280
|
+
},
|
|
281
|
+
fontCategoryLabel: {
|
|
282
|
+
weight: "fontWeightMedium",
|
|
283
|
+
size: "fontSizeXs",
|
|
284
|
+
lineHeight: "fontLineHeightXs"
|
|
285
|
+
},
|
|
286
|
+
fontLegendLabel: {
|
|
287
|
+
weight: "fontWeightMedium",
|
|
288
|
+
size: "fontSizeSm",
|
|
289
|
+
lineHeight: "fontLineHeightSm"
|
|
290
|
+
},
|
|
291
|
+
fontGoalLineLabel: {
|
|
292
|
+
weight: "fontWeightMedium",
|
|
293
|
+
size: "fontSizeXs",
|
|
294
|
+
lineHeight: "fontLineHeightXs"
|
|
295
|
+
}
|
|
296
|
+
}, s = `var(--typography-chart-font-family, ${t.fontFamilyDefault})`, y = `var(--typography-chart-heading-font-family, ${t.fontFamilyHeading})`, M = (a) => a in l, T = (a, o) => {
|
|
297
|
+
const r = l[a], h = e(o.weight?.toString() ?? t[r.weight], o.size === void 0 ? t[r.size] : `${o.size.value}${o.size.unit}`, o.lineHeight?.toString() ?? t[r.lineHeight], o.family ?? s);
|
|
298
|
+
return o.style === void 0 || o.style === "normal" ? h : `${o.style} ${h}`;
|
|
299
|
+
}, g = (a) => `${a}em`, x = {
|
|
300
|
+
textScale: "1",
|
|
301
|
+
fontFamilyDefault: v,
|
|
302
|
+
fontFamilyHeading: S,
|
|
303
|
+
fontWeightRegular: p.regular.toString(),
|
|
304
|
+
fontWeightMedium: p.medium.toString(),
|
|
305
|
+
fontWeightSemibold: p.semibold.toString(),
|
|
306
|
+
fontWeightBold: p.bold.toString(),
|
|
307
|
+
fontWeightExtraBold: p.extraBold.toString(),
|
|
308
|
+
fontWeightBlack: p.black.toString(),
|
|
309
|
+
fontSizeXxs: g(n.xxs),
|
|
310
|
+
fontSizeXs: g(n.xs),
|
|
311
|
+
fontSizeSm: g(n.sm),
|
|
312
|
+
fontSizeMd: g(n.md),
|
|
313
|
+
fontSizeLg: g(n.lg),
|
|
314
|
+
fontSizeXl: g(n.xl),
|
|
315
|
+
fontLineHeightXxs: i.xxs.toString(),
|
|
316
|
+
fontLineHeightXs: i.xs.toString(),
|
|
317
|
+
fontLineHeightSm: i.sm.toString(),
|
|
318
|
+
fontLineHeightMd: i.md.toString(),
|
|
319
|
+
fontLineHeightLg: i.lg.toString(),
|
|
320
|
+
fontLineHeightXl: i.xl.toString()
|
|
321
|
+
}, z = {
|
|
322
|
+
fontSizeEditorBody: g(n.editorBody),
|
|
323
|
+
fontSizeHeadingSm: g(n.headingSm),
|
|
324
|
+
fontSizeHeadingMd: g(n.headingMd),
|
|
325
|
+
fontSizeHeadingLg: g(n.headingLg),
|
|
326
|
+
fontLineHeightEditorBody: i.editorBody.toString(),
|
|
327
|
+
fontLineHeightHeadingSm: i.headingSm.toString(),
|
|
328
|
+
fontLineHeightHeadingMd: i.headingMd.toString(),
|
|
329
|
+
fontLineHeightHeadingLg: i.headingLg.toString()
|
|
330
|
+
}, e = (a, o, r, h = s) => `${a} ${o}/${r} ${h}`, f = ({ weight: a, size: o, lineHeight: r }) => e(t[a], t[o], t[r]), k = {
|
|
331
|
+
fontTickLabel: f(l.fontTickLabel),
|
|
332
|
+
fontAxisLabel: f(l.fontAxisLabel),
|
|
333
|
+
fontDataLabel: f(l.fontDataLabel),
|
|
334
|
+
fontStackTotal: f(l.fontStackTotal),
|
|
335
|
+
fontCategoryLabel: f(l.fontCategoryLabel),
|
|
336
|
+
fontLegendLabel: f(l.fontLegendLabel),
|
|
337
|
+
fontSeriesLabel: e(t.fontWeightSemibold, t.fontSizeSm, t.fontLineHeightSm),
|
|
338
|
+
fontTooltipLabel: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
|
|
339
|
+
fontTooltipHeading: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
340
|
+
fontTooltipFooter: e(t.fontWeightRegular, t.fontSizeSm, t.fontLineHeightSm),
|
|
341
|
+
fontJumboTooltipLabel: e(t.fontWeightRegular, t.fontSizeSm, t.fontLineHeightSm),
|
|
342
|
+
fontJumboTooltip: e(t.fontWeightMedium, t.fontSizeHeadingMd, t.fontLineHeightHeadingMd),
|
|
343
|
+
fontMiniTooltipLabel: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
344
|
+
fontMiniTooltipFooter: e(t.fontWeightRegular, t.fontSizeSm, t.fontLineHeightSm),
|
|
345
|
+
fontTooltipCaption: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
346
|
+
fontTooltipCaptionSmall: e(t.fontWeightMedium, t.fontSizeXxs, t.fontLineHeightXxs),
|
|
347
|
+
fontUITooltip: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
|
|
348
|
+
fontUITooltipSecondary: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
349
|
+
fontTrendTag: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
|
|
350
|
+
fontTrendTagSmall: e(t.fontWeightMedium, t.fontSizeXs, t.fontLineHeightXs),
|
|
351
|
+
fontGoalLineLabel: f(l.fontGoalLineLabel),
|
|
352
|
+
fontPieLabel: e(t.fontWeightMedium, t.fontSizeXs, t.fontLineHeightXs),
|
|
353
|
+
fontPieChartTotal: e(t.fontWeightBold, t.fontSizeHeadingLg, t.fontLineHeightHeadingLg),
|
|
354
|
+
fontDifferenceArrowSmall: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
355
|
+
fontDifferenceArrowMedium: e(t.fontWeightMedium, t.fontSizeLg, t.fontLineHeightLg),
|
|
356
|
+
fontDifferenceArrowLarge: e(t.fontWeightSemibold, t.fontSizeXl, t.fontLineHeightXl),
|
|
357
|
+
fontButton: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
|
|
358
|
+
fontInput: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
|
|
359
|
+
fontInputLabel: e(t.fontWeightMedium, t.fontSizeXxs, t.fontLineHeightXxs),
|
|
360
|
+
fontSelectLabel: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
|
|
361
|
+
fontSelectDescription: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
362
|
+
fontColorSelectLabel: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
363
|
+
fontMenuTitle: e(t.fontWeightSemibold, t.fontSizeMd, t.fontLineHeightMd),
|
|
364
|
+
fontMenuGroupTitle: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
365
|
+
fontMenuItemLabel: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
|
|
366
|
+
fontMenuItemLabelSecondary: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
367
|
+
fontErrorBoundaryTitle: e(t.fontWeightSemibold, t.fontSizeHeadingSm, t.fontLineHeightHeadingSm),
|
|
368
|
+
fontErrorBoundaryMessage: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
|
|
369
|
+
fontTableCell: e(t.fontWeightMedium, t.fontSizeMd, t.fontLineHeightMd),
|
|
370
|
+
fontTableHeaderCell: e(t.fontWeightSemibold, t.fontSizeSm, t.fontLineHeightSm),
|
|
371
|
+
fontSourceLabel: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
372
|
+
fontSourceLink: e(t.fontWeightRegular, t.fontSizeSm, t.fontLineHeightSm),
|
|
373
|
+
fontTextEditorH1: e(t.fontWeightBold, t.fontSizeHeadingLg, t.fontLineHeightHeadingLg, y),
|
|
374
|
+
fontTextEditorH2: e(t.fontWeightBold, t.fontSizeHeadingMd, t.fontLineHeightHeadingMd, y),
|
|
375
|
+
fontTextEditorH3: e(t.fontWeightSemibold, t.fontSizeHeadingSm, t.fontLineHeightHeadingSm, y),
|
|
376
|
+
fontTextEditorH6: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
377
|
+
fontTextEditorBody: e(t.fontWeightMedium, t.fontSizeEditorBody, t.fontLineHeightEditorBody),
|
|
378
|
+
fontTextEditorLink: e(t.fontWeightRegular, t.fontSizeMd, t.fontLineHeightMd),
|
|
379
|
+
fontHighlightModeTitle: e(t.fontWeightBold, t.fontSizeMd, t.fontLineHeightMd),
|
|
380
|
+
fontHighlightModeSubtitle: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
381
|
+
fontEditorControlLabel: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
382
|
+
fontEditorControlValue: e(t.fontWeightMedium, t.fontSizeSm, t.fontLineHeightSm),
|
|
383
|
+
fontEditorSectionTitle: e(t.fontWeightSemibold, t.fontSizeSm, t.fontLineHeightSm),
|
|
384
|
+
fontEditorCaption: e(t.fontWeightMedium, t.fontSizeXxs, t.fontLineHeightXxs)
|
|
385
|
+
}, c = [
|
|
386
|
+
"normal",
|
|
387
|
+
"italic",
|
|
388
|
+
"oblique"
|
|
389
|
+
], u = /^(\d*\.?\d+)(px|em)$/, m = /^\d*\.?\d+$/, b = {
|
|
390
|
+
normal: d.normal,
|
|
391
|
+
bold: d.bold
|
|
392
|
+
}, W = (a) => c.includes(a), B = (a) => {
|
|
393
|
+
const o = u.exec(a.trim());
|
|
394
|
+
return o === null || o[1] === void 0 || o[2] === void 0 ? null : {
|
|
395
|
+
value: Number.parseFloat(o[1]),
|
|
396
|
+
unit: o[2] === "px" ? "px" : "em"
|
|
397
|
+
};
|
|
398
|
+
}, C = (a) => {
|
|
399
|
+
const o = a.trim(), r = b[o];
|
|
400
|
+
if (r !== void 0) return r;
|
|
401
|
+
if (!m.test(o)) return null;
|
|
402
|
+
const h = Number.parseFloat(o);
|
|
403
|
+
return h >= 1 && h <= 1e3 ? h : null;
|
|
404
|
+
}, E = (a) => {
|
|
405
|
+
const o = a.trim();
|
|
406
|
+
return m.test(o) ? Number.parseFloat(o) : null;
|
|
407
|
+
};
|
|
408
|
+
export {
|
|
409
|
+
v as a,
|
|
410
|
+
p as c,
|
|
411
|
+
T as d,
|
|
412
|
+
k as f,
|
|
413
|
+
t as g,
|
|
414
|
+
H as h,
|
|
415
|
+
E as i,
|
|
416
|
+
l,
|
|
417
|
+
z as m,
|
|
418
|
+
B as n,
|
|
419
|
+
i as o,
|
|
420
|
+
M as p,
|
|
421
|
+
C as r,
|
|
422
|
+
n as s,
|
|
423
|
+
W as t,
|
|
424
|
+
x as u
|
|
425
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
let d=require("@graphysdk/viz-engine");var m=["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)",gridLineColor:"var(--graphy-grid-line-color)",originLineColor:"var(--graphy-origin-line-color)",legendBackground:"var(--graphy-legend-background)",legendBorderColor:"var(--graphy-legend-border-color)",legendFocusOutlineColor:"var(--graphy-legend-focus-outline-color)",legendTextColor:"var(--graphy-legend-text-color)",dimmedSeriesLabelTextColor:"var(--graphy-dimmed-series-label-text-color)",dimmedSeriesLabelLineColor:"var(--graphy-dimmed-series-label-line-color)",trendNegativeColor:"var(--graphy-trend-negative-color)",trendPositiveColor:"var(--graphy-trend-positive-color)",trendNeutralColor:"var(--graphy-trend-neutral-color)",defaultAnnotationArrowStroke:"var(--graphy-default-annotation-arrow-stroke)",defaultAnnotationShapeStroke:"var(--graphy-default-annotation-shape-stroke)",defaultAnnotationShapeFill:"var(--graphy-default-annotation-shape-fill)",arrowAnnotationStickerOutlineColor:"var(--graphy-arrow-annotation-sticker-outline-color)",arrowAnnotationStickerOutlineColorInverse:"var(--graphy-arrow-annotation-sticker-outline-color-inverse)",annotationFrameBorderColor:"var(--graphy-annotation-frame-border-color)",editMenuTriggerIconColor:"var(--graphy-edit-menu-trigger-icon-color)",heatmapEmptyTileBackground:"var(--graphy-heatmap-empty-tile-background)",dataLabelOutsideBackground:"var(--graphy-data-label-outside-background)",dataLabelTextColor:"var(--graphy-data-label-text-color)",dataLabelInsideTextColor:"var(--graphy-data-label-inside-text-color)",stackTotalTextColor:"var(--graphy-stack-total-text-color)",stackTotalBackground:"var(--graphy-stack-total-background)",stackTotalStroke:"var(--graphy-stack-total-stroke)",gridLineWidth:"var(--graphy-grid-line-width)",gridLineDash:"var(--graphy-grid-line-dash)",gridLineDotted:"var(--graphy-grid-line-dotted)",tooltipBorderRadius:"var(--graphy-tooltip-border-radius)",tooltipBorderWidth:"var(--graphy-tooltip-border-width)",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)",tickLabelOffset:"var(--graphy-tick-label-offset)",legendItemGap:"var(--graphy-legend-item-gap)",legendSwatchGap:"var(--graphy-legend-swatch-gap)",legendSwatchWidth:"var(--graphy-legend-swatch-width)",legendSwatchHeight:"var(--graphy-legend-swatch-height)",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)",headlineItemGap:"var(--graphy-headline-item-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)",tooltipHeadingTextColor:"var(--graphy-tooltip-heading-text-color)",tooltipLabelTextColor:"var(--graphy-tooltip-label-text-color)",tooltipValueTextColor:"var(--graphy-tooltip-value-text-color)",tooltipPrimaryRowColor:"var(--graphy-tooltip-primary-row-color)",hoverGuideLineColor:"var(--graphy-hover-guide-line-color)",hoverGuideFillColor:"var(--graphy-hover-guide-fill-color)",fontFamilyDefault:"var(--graphy-font-family-default)",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)",fontWeightBlack:"var(--graphy-font-weight-black)",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)",fontTickLabel:"var(--graphy-font-tick-label)",fontAxisLabel:"var(--graphy-font-axis-label)",fontDataLabel:"var(--graphy-font-data-label)",fontStackTotal:"var(--graphy-font-stack-total)",fontCategoryLabel:"var(--graphy-font-category-label)",fontLegendLabel:"var(--graphy-font-legend-label)",fontSeriesLabel:"var(--graphy-font-series-label)",fontTooltipLabel:"var(--graphy-font-tooltip-label)",fontTooltipHeading:"var(--graphy-font-tooltip-heading)",fontTooltipFooter:"var(--graphy-font-tooltip-footer)",fontJumboTooltipLabel:"var(--graphy-font-jumbo-tooltip-label)",fontJumboTooltip:"var(--graphy-font-jumbo-tooltip)",fontMiniTooltipLabel:"var(--graphy-font-mini-tooltip-label)",fontMiniTooltipFooter:"var(--graphy-font-mini-tooltip-footer)",fontTooltipCaption:"var(--graphy-font-tooltip-caption)",fontTooltipCaptionSmall:"var(--graphy-font-tooltip-caption-small)",fontTrendTag:"var(--graphy-font-trend-tag)",fontTrendTagSmall:"var(--graphy-font-trend-tag-small)",fontGoalLineLabel:"var(--graphy-font-goal-line-label)",fontPieLabel:"var(--graphy-font-pie-label)",fontPieChartTotal:"var(--graphy-font-pie-chart-total)",fontDifferenceArrowSmall:"var(--graphy-font-difference-arrow-small)",fontDifferenceArrowMedium:"var(--graphy-font-difference-arrow-medium)",fontDifferenceArrowLarge:"var(--graphy-font-difference-arrow-large)",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)"},v=`'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'`,c=v,p={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,black:d.NAMED_WEIGHTS.black},a={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},n={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},g={fontTickLabel:{weight:"fontWeightMedium",size:"fontSizeSm",lineHeight:"fontLineHeightSm"},fontAxisLabel:{weight:"fontWeightMedium",size:"fontSizeSm",lineHeight:"fontLineHeightSm"},fontDataLabel:{weight:"fontWeightMedium",size:"fontSizeXs",lineHeight:"fontLineHeightXs"},fontStackTotal:{weight:"fontWeightSemibold",size:"fontSizeXs",lineHeight:"fontLineHeightXs"},fontCategoryLabel:{weight:"fontWeightMedium",size:"fontSizeXs",lineHeight:"fontLineHeightXs"},fontLegendLabel:{weight:"fontWeightMedium",size:"fontSizeSm",lineHeight:"fontLineHeightSm"},fontGoalLineLabel:{weight:"fontWeightMedium",size:"fontSizeXs",lineHeight:"fontLineHeightXs"}},u=`var(--typography-chart-font-family, ${e.fontFamilyDefault})`,y=`var(--typography-chart-heading-font-family, ${e.fontFamilyHeading})`,S=r=>r in g,b=(r,o)=>{const i=g[r],f=t(o.weight?.toString()??e[i.weight],o.size===void 0?e[i.size]:`${o.size.value}${o.size.unit}`,o.lineHeight?.toString()??e[i.lineHeight],o.family??u);return o.style===void 0||o.style==="normal"?f:`${o.style} ${f}`},l=r=>`${r}em`,L={textScale:"1",fontFamilyDefault:v,fontFamilyHeading:c,fontWeightRegular:p.regular.toString(),fontWeightMedium:p.medium.toString(),fontWeightSemibold:p.semibold.toString(),fontWeightBold:p.bold.toString(),fontWeightExtraBold:p.extraBold.toString(),fontWeightBlack:p.black.toString(),fontSizeXxs:l(a.xxs),fontSizeXs:l(a.xs),fontSizeSm:l(a.sm),fontSizeMd:l(a.md),fontSizeLg:l(a.lg),fontSizeXl:l(a.xl),fontLineHeightXxs:n.xxs.toString(),fontLineHeightXs:n.xs.toString(),fontLineHeightSm:n.sm.toString(),fontLineHeightMd:n.md.toString(),fontLineHeightLg:n.lg.toString(),fontLineHeightXl:n.xl.toString()},H={fontSizeEditorBody:l(a.editorBody),fontSizeHeadingSm:l(a.headingSm),fontSizeHeadingMd:l(a.headingMd),fontSizeHeadingLg:l(a.headingLg),fontLineHeightEditorBody:n.editorBody.toString(),fontLineHeightHeadingSm:n.headingSm.toString(),fontLineHeightHeadingMd:n.headingMd.toString(),fontLineHeightHeadingLg:n.headingLg.toString()},t=(r,o,i,f=u)=>`${r} ${o}/${i} ${f}`,h=({weight:r,size:o,lineHeight:i})=>t(e[r],e[o],e[i]),T={fontTickLabel:h(g.fontTickLabel),fontAxisLabel:h(g.fontAxisLabel),fontDataLabel:h(g.fontDataLabel),fontStackTotal:h(g.fontStackTotal),fontCategoryLabel:h(g.fontCategoryLabel),fontLegendLabel:h(g.fontLegendLabel),fontSeriesLabel:t(e.fontWeightSemibold,e.fontSizeSm,e.fontLineHeightSm),fontTooltipLabel:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTooltipHeading:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTooltipFooter:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontJumboTooltipLabel:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontJumboTooltip:t(e.fontWeightMedium,e.fontSizeHeadingMd,e.fontLineHeightHeadingMd),fontMiniTooltipLabel:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontMiniTooltipFooter:t(e.fontWeightRegular,e.fontSizeSm,e.fontLineHeightSm),fontTooltipCaption:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTooltipCaptionSmall:t(e.fontWeightMedium,e.fontSizeXxs,e.fontLineHeightXxs),fontUITooltip:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontUITooltipSecondary:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontTrendTag:t(e.fontWeightMedium,e.fontSizeMd,e.fontLineHeightMd),fontTrendTagSmall:t(e.fontWeightMedium,e.fontSizeXs,e.fontLineHeightXs),fontGoalLineLabel:h(g.fontGoalLineLabel),fontPieLabel:t(e.fontWeightMedium,e.fontSizeXs,e.fontLineHeightXs),fontPieChartTotal:t(e.fontWeightBold,e.fontSizeHeadingLg,e.fontLineHeightHeadingLg),fontDifferenceArrowSmall:t(e.fontWeightMedium,e.fontSizeSm,e.fontLineHeightSm),fontDifferenceArrowMedium:t(e.fontWeightMedium,e.fontSizeLg,e.fontLineHeightLg),fontDifferenceArrowLarge:t(e.fontWeightSemibold,e.fontSizeXl,e.fontLineHeightXl),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,y),fontTextEditorH2:t(e.fontWeightBold,e.fontSizeHeadingMd,e.fontLineHeightHeadingMd,y),fontTextEditorH3:t(e.fontWeightSemibold,e.fontSizeHeadingSm,e.fontLineHeightHeadingSm,y),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)},M=["normal","italic","oblique"],x=/^(\d*\.?\d+)(px|em)$/,s=/^\d*\.?\d+$/,z={normal:d.NAMED_WEIGHTS.normal,bold:d.NAMED_WEIGHTS.bold},k=r=>M.includes(r),E=r=>{const o=x.exec(r.trim());return o===null||o[1]===void 0||o[2]===void 0?null:{value:Number.parseFloat(o[1]),unit:o[2]==="px"?"px":"em"}},W=r=>{const o=r.trim(),i=z[o];if(i!==void 0)return i;if(!s.test(o))return null;const f=Number.parseFloat(o);return f>=1&&f<=1e3?f:null},B=r=>{const o=r.trim();return s.test(o)?Number.parseFloat(o):null};Object.defineProperty(exports,"CANVAS_COLOR_KEYS",{enumerable:!0,get:function(){return m}});Object.defineProperty(exports,"DEFAULT_FONT_FAMILY",{enumerable:!0,get:function(){return v}});Object.defineProperty(exports,"FONT_LINE_HEIGHT",{enumerable:!0,get:function(){return n}});Object.defineProperty(exports,"FONT_SIZE_EM",{enumerable:!0,get:function(){return a}});Object.defineProperty(exports,"FONT_WEIGHT",{enumerable:!0,get:function(){return p}});Object.defineProperty(exports,"MEASURED_ELEMENT_FONT_DEFINITIONS",{enumerable:!0,get:function(){return g}});Object.defineProperty(exports,"baseTypographyTokens",{enumerable:!0,get:function(){return L}});Object.defineProperty(exports,"buildFontShorthand",{enumerable:!0,get:function(){return b}});Object.defineProperty(exports,"elementTypographyTokens",{enumerable:!0,get:function(){return T}});Object.defineProperty(exports,"isFontStyle",{enumerable:!0,get:function(){return k}});Object.defineProperty(exports,"isMeasuredFontTokenKey",{enumerable:!0,get:function(){return S}});Object.defineProperty(exports,"parseFontLength",{enumerable:!0,get:function(){return E}});Object.defineProperty(exports,"parseFontWeight",{enumerable:!0,get:function(){return W}});Object.defineProperty(exports,"parseUnitlessLineHeight",{enumerable:!0,get:function(){return B}});Object.defineProperty(exports,"semanticTypographyTokens",{enumerable:!0,get:function(){return H}});Object.defineProperty(exports,"vars",{enumerable:!0,get:function(){return e}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./font-values-DAorZ_7T.cjs");var h=(r,e)=>{const n=r.appearance?.textStyle;return{...m(r.themeOverrides),...e&&n?g(n,e):void 0}},p=r=>{const e=r.trim().replace(/\s*\/\s*/g,"/").split(/\s+/);let n="normal",o=400,t=0;for(;t<e.length;){const l=e[t];if(l===void 0)return null;if(l==="normal")t++;else if(s.isFontStyle(l))n=l,t++;else{const v=s.parseFontWeight(l);if(v===null)break;o=v,t++}}const i=e[t];if(i===void 0)return null;const[a="",d]=i.split("/"),u=s.parseFontLength(a);if(u===null)return null;const c=d===void 0?null:s.parseUnitlessLineHeight(d),f=e.slice(t+1).join(" ").trim();return f===""?null:{style:n,weight:o,size:u,family:f,...c!==null?{lineHeight:c}:{}}},g=(r,e)=>{const n=i=>i===void 0?void 0:e.find(a=>a.id===i)?.fontFamily,o=n(r.body?.fontId),t=n(r.heading?.fontId);return{...o?{fontFamilyDefault:o}:void 0,...t?{fontFamilyHeading:t}:void 0}},m=r=>{if(r===void 0)return;const e={};for(const[n,o]of Object.entries(r))if(s.isMeasuredFontTokenKey(n)&&typeof o=="string"){const t=p(o);if(t===null){y(n,o);continue}e[n]=t}else e[n]=o;return e},y=(r,e)=>{process.env.NODE_ENV!=="production"&&console.warn(`[react-renderer] Ignoring GraphConfig themeOverrides."${r}": "${e}" is not a measurable font shorthand (needs a px/em size and a family).`)};exports.convertGraphConfigTheme=h;
|