@syntrologie/adapt-nav 2.8.0-canary.31 → 2.8.0-canary.310

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.
Files changed (144) hide show
  1. package/dist/NavWidgetLit.d.ts +56 -0
  2. package/dist/NavWidgetLit.d.ts.map +1 -0
  3. package/dist/NavWidgetLit.editable.d.ts +151 -0
  4. package/dist/NavWidgetLit.editable.d.ts.map +1 -0
  5. package/dist/NavWidgetLit.test.d.ts +8 -0
  6. package/dist/NavWidgetLit.test.d.ts.map +1 -0
  7. package/dist/chunk-SX36IHRC.js +640 -0
  8. package/dist/chunk-SX36IHRC.js.map +7 -0
  9. package/dist/editor.d.ts +66 -21
  10. package/dist/editor.d.ts.map +1 -1
  11. package/dist/editor.js +5627 -307
  12. package/dist/editor.js.map +7 -0
  13. package/dist/nav-item-editor.d.ts +43 -0
  14. package/dist/nav-item-editor.d.ts.map +1 -0
  15. package/dist/resolveNavTarget.d.ts +61 -0
  16. package/dist/resolveNavTarget.d.ts.map +1 -0
  17. package/dist/resolveNavTarget.test.d.ts +2 -0
  18. package/dist/resolveNavTarget.test.d.ts.map +1 -0
  19. package/dist/runtime.d.ts +22 -6
  20. package/dist/runtime.d.ts.map +1 -1
  21. package/dist/runtime.js +643 -142
  22. package/dist/runtime.js.map +7 -0
  23. package/dist/schema.d.ts +316 -174
  24. package/dist/schema.d.ts.map +1 -1
  25. package/dist/schema.js +155 -125
  26. package/dist/schema.js.map +7 -0
  27. package/dist/types.d.ts +7 -0
  28. package/dist/types.d.ts.map +1 -1
  29. package/package.json +12 -16
  30. package/dist/NavWidget.d.ts +0 -31
  31. package/dist/NavWidget.d.ts.map +0 -1
  32. package/dist/NavWidget.js +0 -491
  33. package/dist/cdn.d.ts +0 -62
  34. package/dist/cdn.d.ts.map +0 -1
  35. package/dist/cdn.js +0 -48
  36. package/dist/summarize.js +0 -51
  37. package/dist/types.js +0 -18
  38. package/node_modules/@syntro/design-system/README.md +0 -335
  39. package/node_modules/@syntro/design-system/dist/assets/syntrologie-logo.svg +0 -21
  40. package/node_modules/@syntro/design-system/dist/assets/syntrologie-logomark.svg +0 -10
  41. package/node_modules/@syntro/design-system/dist/index.d.ts +0 -8
  42. package/node_modules/@syntro/design-system/dist/index.d.ts.map +0 -1
  43. package/node_modules/@syntro/design-system/dist/index.js +0 -7
  44. package/node_modules/@syntro/design-system/dist/tailwind-preset.d.ts +0 -19
  45. package/node_modules/@syntro/design-system/dist/tailwind-preset.d.ts.map +0 -1
  46. package/node_modules/@syntro/design-system/dist/tailwind-preset.js +0 -453
  47. package/node_modules/@syntro/design-system/dist/tokens/colors.css +0 -464
  48. package/node_modules/@syntro/design-system/dist/tokens/colors.d.ts +0 -874
  49. package/node_modules/@syntro/design-system/dist/tokens/colors.d.ts.map +0 -1
  50. package/node_modules/@syntro/design-system/dist/tokens/colors.js +0 -564
  51. package/node_modules/@syntro/design-system/dist/tokens/effects.css +0 -43
  52. package/node_modules/@syntro/design-system/dist/tokens/effects.d.ts +0 -85
  53. package/node_modules/@syntro/design-system/dist/tokens/effects.d.ts.map +0 -1
  54. package/node_modules/@syntro/design-system/dist/tokens/effects.js +0 -77
  55. package/node_modules/@syntro/design-system/dist/tokens/index.d.ts +0 -10
  56. package/node_modules/@syntro/design-system/dist/tokens/index.d.ts.map +0 -1
  57. package/node_modules/@syntro/design-system/dist/tokens/index.js +0 -9
  58. package/node_modules/@syntro/design-system/package.json +0 -55
  59. package/node_modules/@syntro/design-system/src/assets/syntrologie-logo.svg +0 -21
  60. package/node_modules/@syntro/design-system/src/assets/syntrologie-logomark.svg +0 -10
  61. package/node_modules/@syntrologie/sdk-contracts/dist/index.d.ts +0 -129
  62. package/node_modules/@syntrologie/sdk-contracts/dist/index.js +0 -15
  63. package/node_modules/@syntrologie/sdk-contracts/dist/schemas.d.ts +0 -2225
  64. package/node_modules/@syntrologie/sdk-contracts/dist/schemas.js +0 -162
  65. package/node_modules/@syntrologie/sdk-contracts/package.json +0 -33
  66. package/node_modules/@syntrologie/shared-editor-ui/dist/cn.d.ts +0 -2
  67. package/node_modules/@syntrologie/shared-editor-ui/dist/cn.d.ts.map +0 -1
  68. package/node_modules/@syntrologie/shared-editor-ui/dist/cn.js +0 -3
  69. package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.d.ts +0 -34
  70. package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.d.ts.map +0 -1
  71. package/node_modules/@syntrologie/shared-editor-ui/dist/components/AnchorPicker.js +0 -158
  72. package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.d.ts +0 -7
  73. package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.d.ts.map +0 -1
  74. package/node_modules/@syntrologie/shared-editor-ui/dist/components/BeforeAfterToggle.js +0 -9
  75. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts +0 -23
  76. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.d.ts.map +0 -1
  77. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ConditionStatusLine.js +0 -40
  78. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts +0 -7
  79. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.d.ts.map +0 -1
  80. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DetectionBadge.js +0 -22
  81. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.d.ts +0 -8
  82. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.d.ts.map +0 -1
  83. package/node_modules/@syntrologie/shared-editor-ui/dist/components/DismissedSection.js +0 -9
  84. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.d.ts +0 -7
  85. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.d.ts.map +0 -1
  86. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditBackButton.js +0 -4
  87. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.d.ts +0 -7
  88. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.d.ts.map +0 -1
  89. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorBody.js +0 -4
  90. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.d.ts +0 -13
  91. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.d.ts.map +0 -1
  92. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorCard.js +0 -15
  93. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.d.ts +0 -7
  94. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.d.ts.map +0 -1
  95. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorFooter.js +0 -4
  96. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.d.ts +0 -9
  97. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.d.ts.map +0 -1
  98. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorHeader.js +0 -4
  99. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.d.ts +0 -8
  100. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.d.ts.map +0 -1
  101. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorInput.js +0 -8
  102. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.d.ts +0 -7
  103. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.d.ts.map +0 -1
  104. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorLayout.js +0 -4
  105. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts +0 -25
  106. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.d.ts.map +0 -1
  107. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorPanelShell.js +0 -379
  108. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.d.ts +0 -8
  109. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.d.ts.map +0 -1
  110. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorSelect.js +0 -8
  111. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.d.ts +0 -8
  112. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.d.ts.map +0 -1
  113. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EditorTextarea.js +0 -17
  114. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.d.ts +0 -32
  115. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.d.ts.map +0 -1
  116. package/node_modules/@syntrologie/shared-editor-ui/dist/components/ElementHighlight.js +0 -85
  117. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.d.ts +0 -6
  118. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.d.ts.map +0 -1
  119. package/node_modules/@syntrologie/shared-editor-ui/dist/components/EmptyState.js +0 -4
  120. package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.d.ts +0 -8
  121. package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.d.ts.map +0 -1
  122. package/node_modules/@syntrologie/shared-editor-ui/dist/components/GroupHeader.js +0 -5
  123. package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts +0 -12
  124. package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.d.ts.map +0 -1
  125. package/node_modules/@syntrologie/shared-editor-ui/dist/components/TriggerJourney.js +0 -40
  126. package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts +0 -26
  127. package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.d.ts.map +0 -1
  128. package/node_modules/@syntrologie/shared-editor-ui/dist/formatConditionLabel.js +0 -202
  129. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.d.ts +0 -8
  130. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.d.ts.map +0 -1
  131. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useElementRect.js +0 -46
  132. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts +0 -24
  133. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.d.ts.map +0 -1
  134. package/node_modules/@syntrologie/shared-editor-ui/dist/hooks/useTriggerWhenStatus.js +0 -86
  135. package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts +0 -34
  136. package/node_modules/@syntrologie/shared-editor-ui/dist/index.d.ts.map +0 -1
  137. package/node_modules/@syntrologie/shared-editor-ui/dist/index.js +0 -25
  138. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.d.ts +0 -37
  139. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.d.ts.map +0 -1
  140. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/elementChainRecommender.js +0 -52
  141. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.d.ts +0 -22
  142. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.d.ts.map +0 -1
  143. package/node_modules/@syntrologie/shared-editor-ui/dist/utils/selectorGenerator.js +0 -143
  144. package/node_modules/@syntrologie/shared-editor-ui/package.json +0 -45
@@ -1,453 +0,0 @@
1
- /**
2
- * Syntro Design System - Tailwind Preset
3
- *
4
- * Import and extend this preset in your Tailwind config to use the design system.
5
- *
6
- * @example
7
- * ```typescript
8
- * import { syntroPreset } from '@syntro/design-system/tailwind-preset';
9
- *
10
- * export default {
11
- * presets: [syntroPreset],
12
- * content: ['./src/**\/*.{ts,tsx}'],
13
- * };
14
- * ```
15
- */
16
- import { colors } from './tokens/colors';
17
- import { backdropBlur, focusRings, overlay, shadows } from './tokens/effects';
18
- export const syntroPreset = {
19
- darkMode: ['class'],
20
- theme: {
21
- extend: {
22
- colors: {
23
- // Base colors
24
- white: colors.base.white,
25
- black: colors.base.black,
26
- // Brand scale
27
- brand: {
28
- 0: colors.brand[0],
29
- 1: colors.brand[1],
30
- 2: colors.brand[2],
31
- 3: colors.brand[3],
32
- 4: colors.brand[4],
33
- 5: colors.brand[5],
34
- 6: colors.brand[6],
35
- 7: colors.brand[7],
36
- 8: colors.brand[8],
37
- 9: colors.brand[9],
38
- DEFAULT: colors.brand[3],
39
- },
40
- // Neutral scale (Slate Grey)
41
- 'slate-grey': {
42
- 0: colors.slateGrey[0],
43
- 1: colors.slateGrey[1],
44
- 2: colors.slateGrey[2],
45
- 3: colors.slateGrey[3],
46
- 4: colors.slateGrey[4],
47
- 5: colors.slateGrey[5],
48
- 6: colors.slateGrey[6],
49
- 7: colors.slateGrey[7],
50
- 8: colors.slateGrey[8],
51
- 9: colors.slateGrey[9],
52
- 10: colors.slateGrey[10],
53
- 11: colors.slateGrey[11],
54
- 12: colors.slateGrey[12],
55
- DEFAULT: colors.slateGrey[6],
56
- },
57
- // Semantic color scales
58
- green: {
59
- 0: colors.green[0],
60
- 1: colors.green[1],
61
- 2: colors.green[2],
62
- 3: colors.green[3],
63
- 4: colors.green[4],
64
- 5: colors.green[5],
65
- 6: colors.green[6],
66
- 7: colors.green[7],
67
- 8: colors.green[8],
68
- 9: colors.green[9],
69
- DEFAULT: colors.green[4],
70
- },
71
- yellow: {
72
- 0: colors.yellow[0],
73
- 1: colors.yellow[1],
74
- 2: colors.yellow[2],
75
- 3: colors.yellow[3],
76
- 4: colors.yellow[4],
77
- 5: colors.yellow[5],
78
- 6: colors.yellow[6],
79
- 7: colors.yellow[7],
80
- 8: colors.yellow[8],
81
- 9: colors.yellow[9],
82
- DEFAULT: colors.yellow[4],
83
- },
84
- red: {
85
- 0: colors.red[0],
86
- 1: colors.red[1],
87
- 2: colors.red[2],
88
- 3: colors.red[3],
89
- 4: colors.red[4],
90
- 5: colors.red[5],
91
- 6: colors.red[6],
92
- 7: colors.red[7],
93
- 8: colors.red[8],
94
- 9: colors.red[9],
95
- DEFAULT: colors.red[4],
96
- },
97
- blue: {
98
- 0: colors.blue[0],
99
- 1: colors.blue[1],
100
- 2: colors.blue[2],
101
- 3: colors.blue[3],
102
- 4: colors.blue[4],
103
- 5: colors.blue[5],
104
- 6: colors.blue[6],
105
- 7: colors.blue[7],
106
- 8: colors.blue[8],
107
- 9: colors.blue[9],
108
- DEFAULT: colors.blue[4],
109
- },
110
- orange: {
111
- 0: colors.orange[0],
112
- 1: colors.orange[1],
113
- 2: colors.orange[2],
114
- 3: colors.orange[3],
115
- 4: colors.orange[4],
116
- 5: colors.orange[5],
117
- 6: colors.orange[6],
118
- 7: colors.orange[7],
119
- 8: colors.orange[8],
120
- 9: colors.orange[9],
121
- DEFAULT: colors.orange[3],
122
- },
123
- purple: {
124
- 0: colors.purple[0],
125
- 1: colors.purple[1],
126
- 2: colors.purple[2],
127
- 3: colors.purple[3],
128
- 4: colors.purple[4],
129
- 5: colors.purple[5],
130
- 6: colors.purple[6],
131
- 7: colors.purple[7],
132
- 8: colors.purple[8],
133
- 9: colors.purple[9],
134
- DEFAULT: colors.purple[4],
135
- },
136
- pink: {
137
- 0: colors.pink[0],
138
- 1: colors.pink[1],
139
- 2: colors.pink[2],
140
- 3: colors.pink[3],
141
- 4: colors.pink[4],
142
- 5: colors.pink[5],
143
- 6: colors.pink[6],
144
- 7: colors.pink[7],
145
- 8: colors.pink[8],
146
- 9: colors.pink[9],
147
- DEFAULT: colors.pink[4],
148
- },
149
- // Semantic tokens
150
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
151
- text: {
152
- primary: colors.text.primary,
153
- secondary: colors.text.secondary,
154
- tertiary: colors.text.tertiary,
155
- DEFAULT: colors.text.primary,
156
- },
157
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
158
- background: {
159
- primary: colors.background.primary,
160
- secondary: colors.background.secondary,
161
- DEFAULT: colors.background.primary,
162
- },
163
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
164
- border: {
165
- primary: colors.border.primary,
166
- secondary: colors.border.secondary,
167
- DEFAULT: colors.border.primary,
168
- },
169
- // Component tokens - Button
170
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
171
- 'btn-primary': {
172
- DEFAULT: colors.button.primary.backgroundDefault,
173
- hover: colors.button.primary.backgroundHover,
174
- text: colors.button.primary.text,
175
- border: colors.button.primary.border,
176
- },
177
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
178
- 'btn-neutral': {
179
- DEFAULT: colors.button.neutral.background,
180
- text: colors.button.neutral.text,
181
- 'text-hover': colors.button.neutral.textHover,
182
- border: colors.button.neutral.border,
183
- },
184
- 'btn-link': {
185
- text: colors.button.link.text,
186
- hover: colors.button.link.hover,
187
- },
188
- 'btn-error': {
189
- text: colors.button.error.text,
190
- hover: colors.button.error.hover,
191
- },
192
- 'btn-success': {
193
- text: colors.button.success.text,
194
- hover: colors.button.success.hover,
195
- },
196
- // Component tokens - Card
197
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
198
- card: {
199
- bg: colors.card.background,
200
- content: colors.card.content,
201
- border: colors.card.border,
202
- },
203
- // Component tokens - Modal
204
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
205
- modal: {
206
- bg: colors.modal.background,
207
- content: colors.modal.content,
208
- border: colors.modal.border,
209
- },
210
- // Component tokens - Sidebar
211
- sidebar: {
212
- DEFAULT: colors.sidebar.backgroundDefault,
213
- hover: colors.sidebar.backgroundHover,
214
- active: colors.sidebar.backgroundActive,
215
- border: colors.sidebar.border,
216
- 'content-primary': colors.sidebar.contentPrimary,
217
- 'content-secondary': colors.sidebar.contentSecondary,
218
- 'content-tertiary': colors.sidebar.contentTertiary,
219
- },
220
- // Component tokens - Tab
221
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
222
- tab: {
223
- 'active-bg': colors.tab.activeBackground,
224
- 'active-content': colors.tab.activeContent,
225
- 'inactive-content': colors.tab.inactiveContent,
226
- border: colors.tab.border,
227
- },
228
- // Component tokens - Table
229
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
230
- 'table-header': {
231
- text: colors.table.header.textDefault,
232
- 'text-hover': colors.table.header.textHover,
233
- bg: colors.table.header.backgroundDefault,
234
- },
235
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
236
- 'table-cell': {
237
- // biome-ignore lint: Tailwind preset defines semantic token names, not usage of shadcn color classes
238
- 'text-primary': colors.table.cell.textPrimary,
239
- // biome-ignore lint: Tailwind preset defines semantic token names, not usage of shadcn color classes
240
- 'text-secondary': colors.table.cell.textSecondary,
241
- bg: colors.table.cell.backgroundDefault,
242
- 'bg-hover': colors.table.cell.backgroundHover,
243
- },
244
- 'table-border': colors.table.border,
245
- // Component tokens - Input
246
- 'input-field': {
247
- bg: colors.inputField.backgroundDefault,
248
- 'bg-disabled': colors.inputField.backgroundDisabled,
249
- 'text-label': colors.inputField.textLabel,
250
- 'text-placeholder': colors.inputField.textPlaceholder,
251
- 'text-hint': colors.inputField.textHint,
252
- 'text-error': colors.inputField.textError,
253
- border: colors.inputField.borderDefault,
254
- 'border-selected': colors.inputField.borderSelected,
255
- 'border-error': colors.inputField.borderError,
256
- },
257
- // Component tokens - Badge (9 variants)
258
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
259
- 'badge-slate': {
260
- content: colors.badge.slateGrey.content,
261
- outline: colors.badge.slateGrey.pillOutline,
262
- border: colors.badge.slateGrey.borderPrimary,
263
- bg: colors.badge.slateGrey.background,
264
- },
265
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
266
- 'badge-brand': {
267
- content: colors.badge.brand.content,
268
- outline: colors.badge.brand.pillOutline,
269
- border: colors.badge.brand.borderPrimary,
270
- bg: colors.badge.brand.background,
271
- },
272
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
273
- 'badge-green': {
274
- content: colors.badge.green.content,
275
- outline: colors.badge.green.pillOutline,
276
- border: colors.badge.green.borderPrimary,
277
- bg: colors.badge.green.background,
278
- },
279
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
280
- 'badge-yellow': {
281
- content: colors.badge.yellow.content,
282
- outline: colors.badge.yellow.pillOutline,
283
- border: colors.badge.yellow.borderPrimary,
284
- bg: colors.badge.yellow.background,
285
- },
286
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
287
- 'badge-red': {
288
- content: colors.badge.red.content,
289
- outline: colors.badge.red.pillOutline,
290
- border: colors.badge.red.borderPrimary,
291
- bg: colors.badge.red.background,
292
- },
293
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
294
- 'badge-blue': {
295
- content: colors.badge.blue.content,
296
- outline: colors.badge.blue.pillOutline,
297
- border: colors.badge.blue.borderPrimary,
298
- bg: colors.badge.blue.background,
299
- },
300
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
301
- 'badge-purple': {
302
- content: colors.badge.purple.content,
303
- outline: colors.badge.purple.pillOutline,
304
- border: colors.badge.purple.borderPrimary,
305
- bg: colors.badge.purple.background,
306
- },
307
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
308
- 'badge-orange': {
309
- content: colors.badge.orange.content,
310
- outline: colors.badge.orange.pillOutline,
311
- border: colors.badge.orange.borderPrimary,
312
- bg: colors.badge.orange.background,
313
- },
314
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
315
- 'badge-pink': {
316
- content: colors.badge.pink.content,
317
- outline: colors.badge.pink.pillOutline,
318
- border: colors.badge.pink.borderPrimary,
319
- bg: colors.badge.pink.background,
320
- },
321
- // Component tokens - Toggle
322
- toggle: {
323
- handle: colors.toggle.handleDefault,
324
- 'handle-disabled': colors.toggle.handleDisabled,
325
- 'off-bg': colors.toggle.off.backgroundDefault,
326
- 'off-bg-hover': colors.toggle.off.backgroundHover,
327
- 'on-bg': colors.toggle.on.backgroundDefault,
328
- 'on-bg-hover': colors.toggle.on.backgroundHover,
329
- },
330
- // Component tokens - Menu
331
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
332
- menu: {
333
- DEFAULT: colors.menu.backgroundDefault,
334
- hover: colors.menu.backgroundHover,
335
- selected: colors.menu.selected,
336
- },
337
- // Component tokens - Alert
338
- 'alert-green': {
339
- content: colors.alert.green.content,
340
- bg: colors.alert.green.background,
341
- },
342
- 'alert-yellow': {
343
- content: colors.alert.yellow.content,
344
- bg: colors.alert.yellow.background,
345
- },
346
- 'alert-red': {
347
- content: colors.alert.red.content,
348
- bg: colors.alert.red.background,
349
- },
350
- },
351
- // Typography
352
- fontSize: {
353
- xs: ['0.75rem', { lineHeight: '1rem' }],
354
- sm: ['0.875rem', { lineHeight: '1.25rem' }],
355
- base: ['1rem', { lineHeight: '1.5rem' }],
356
- lg: ['1.125rem', { lineHeight: '1.75rem' }],
357
- xl: ['1.25rem', { lineHeight: '1.75rem' }],
358
- '2xl': ['1.5rem', { lineHeight: '2rem' }],
359
- '3xl': ['1.875rem', { lineHeight: '2.25rem' }],
360
- '4xl': ['2.25rem', { lineHeight: '2.5rem' }],
361
- '5xl': ['3rem', { lineHeight: '1' }],
362
- '6xl': ['3.75rem', { lineHeight: '1' }],
363
- },
364
- // Spacing
365
- spacing: {
366
- 0: '0',
367
- 1: '0.25rem',
368
- 2: '0.5rem',
369
- 3: '0.75rem',
370
- 4: '1rem',
371
- 5: '1.25rem',
372
- 6: '1.5rem',
373
- 8: '2rem',
374
- 10: '2.5rem',
375
- 12: '3rem',
376
- 16: '4rem',
377
- 20: '5rem',
378
- 24: '6rem',
379
- 32: '8rem',
380
- },
381
- // Border radius
382
- borderRadius: {
383
- none: '0',
384
- sm: '0.125rem',
385
- DEFAULT: '0.25rem',
386
- md: '0.375rem',
387
- lg: '0.5rem',
388
- xl: '0.75rem',
389
- '2xl': '1rem',
390
- '3xl': '1.5rem',
391
- full: '9999px',
392
- },
393
- // Box shadow — Figma shadow scale
394
- boxShadow: {
395
- ...shadows,
396
- DEFAULT: shadows.sm,
397
- // Focus rings (4px spread + xs shadow)
398
- 'focus-primary': focusRings.primary,
399
- 'focus-neutral': focusRings.neutral,
400
- 'focus-error': focusRings.error,
401
- },
402
- // Backdrop blur — Figma scale
403
- // biome-ignore lint: Tailwind preset intentionally maps design tokens from source
404
- backdropBlur: {
405
- sm: backdropBlur.sm,
406
- md: backdropBlur.md,
407
- lg: backdropBlur.lg,
408
- xl: backdropBlur.xl,
409
- },
410
- // Overlay background colors
411
- backgroundColor: {
412
- 'overlay-solid': overlay.solid,
413
- 'overlay-blur': overlay.blur,
414
- },
415
- // Animation
416
- keyframes: {
417
- 'fade-in': {
418
- '0%': { opacity: '0' },
419
- '100%': { opacity: '1' },
420
- },
421
- 'fade-out': {
422
- '0%': { opacity: '1' },
423
- '100%': { opacity: '0' },
424
- },
425
- 'slide-in-from-top': {
426
- '0%': { transform: 'translateY(-100%)' },
427
- '100%': { transform: 'translateY(0)' },
428
- },
429
- 'slide-in-from-bottom': {
430
- '0%': { transform: 'translateY(100%)' },
431
- '100%': { transform: 'translateY(0)' },
432
- },
433
- 'slide-in-from-left': {
434
- '0%': { transform: 'translateX(-100%)' },
435
- '100%': { transform: 'translateX(0)' },
436
- },
437
- 'slide-in-from-right': {
438
- '0%': { transform: 'translateX(100%)' },
439
- '100%': { transform: 'translateX(0)' },
440
- },
441
- },
442
- animation: {
443
- 'fade-in': 'fade-in 0.2s ease-out',
444
- 'fade-out': 'fade-out 0.2s ease-out',
445
- 'slide-in-from-top': 'slide-in-from-top 0.3s ease-out',
446
- 'slide-in-from-bottom': 'slide-in-from-bottom 0.3s ease-out',
447
- 'slide-in-from-left': 'slide-in-from-left 0.3s ease-out',
448
- 'slide-in-from-right': 'slide-in-from-right 0.3s ease-out',
449
- },
450
- },
451
- },
452
- };
453
- export default syntroPreset;