@mintlify/components 0.3.15 → 0.4.0

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 (60) hide show
  1. package/README.md +22 -123
  2. package/dist/components/badge/badge.css +1 -0
  3. package/dist/components/badge/badge.js +52 -0
  4. package/dist/components/icon/icon.css +1 -0
  5. package/dist/components/icon/icon.js +47 -0
  6. package/dist/index.d.ts +401 -16
  7. package/dist/index.js +12 -2
  8. package/dist/styles/design-tokens.js +339 -0
  9. package/dist/styles/theme.css +1 -0
  10. package/dist/utils/cn.js +7 -0
  11. package/package.json +62 -89
  12. package/.eslintrc.json +0 -11
  13. package/.github/dependabot.yml +0 -10
  14. package/.github/workflows/chromatic.yaml +0 -27
  15. package/.github/workflows/code-style-checks.yaml +0 -13
  16. package/.github/workflows/sanity.yml +0 -13
  17. package/.husky/pre-commit +0 -4
  18. package/.prettierignore +0 -49
  19. package/.prettierrc +0 -1
  20. package/CODEOWNERS +0 -1
  21. package/LICENSE +0 -21
  22. package/dist/Accordion/Accordion.d.ts +0 -18
  23. package/dist/Accordion/AccordionCover.d.ts +0 -10
  24. package/dist/Accordion/AccordionGroup.d.ts +0 -5
  25. package/dist/Accordion/getAccordionStyleFromType.d.ts +0 -5
  26. package/dist/Accordion/index.d.ts +0 -3
  27. package/dist/Api/ApiPlayground.d.ts +0 -22
  28. package/dist/Api/BaseUrlDropdown.d.ts +0 -9
  29. package/dist/Api/RequestMethodBubble.d.ts +0 -4
  30. package/dist/Api/RequestPathHeader.d.ts +0 -13
  31. package/dist/Api/index.d.ts +0 -4
  32. package/dist/Api/inputs/AddArrayItemButton.d.ts +0 -4
  33. package/dist/Api/inputs/ApiInput.d.ts +0 -15
  34. package/dist/Api/inputs/InputDropdown.d.ts +0 -5
  35. package/dist/Api/types.d.ts +0 -16
  36. package/dist/AppearFromTop.d.ts +0 -6
  37. package/dist/Button.d.ts +0 -42
  38. package/dist/Callouts.d.ts +0 -10
  39. package/dist/Card.d.ts +0 -33
  40. package/dist/CardGroup.d.ts +0 -5
  41. package/dist/Code/CodeBlock.d.ts +0 -19
  42. package/dist/Code/CodeGroup.d.ts +0 -29
  43. package/dist/Code/CopyToClipboardButton.d.ts +0 -7
  44. package/dist/Code/index.d.ts +0 -4
  45. package/dist/Expandable/Expandable.d.ts +0 -9
  46. package/dist/Expandable/ExpandableCover.d.ts +0 -11
  47. package/dist/Expandable/index.d.ts +0 -2
  48. package/dist/Frame.d.ts +0 -14
  49. package/dist/Param.d.ts +0 -14
  50. package/dist/PillSelect.d.ts +0 -11
  51. package/dist/Tabs/Tab.d.ts +0 -6
  52. package/dist/Tabs/Tabs.d.ts +0 -4
  53. package/dist/Tabs/index.d.ts +0 -3
  54. package/dist/Tooltip.d.ts +0 -5
  55. package/dist/index.js.LICENSE.txt +0 -9
  56. package/dist/main.css +0 -1
  57. package/dist/utils/apiPlaygroundColors.d.ts +0 -4
  58. package/dist/utils/copyToClipboard.d.ts +0 -2
  59. package/dist/utils/delay.d.ts +0 -1
  60. package/dist/utils/getNodeText.d.ts +0 -1
@@ -0,0 +1,339 @@
1
+ const e = {
2
+ "base-white": "#ffffff",
3
+ "base-dark-1": "#0B0C0E",
4
+ "base-transparent": "#FFFFFF02",
5
+ "icon-gray-2": "#757575",
6
+ "icon-gray-3": "#525252",
7
+ "gray-13-shadow": "#14151A0D",
8
+ "gray-13-shadow-2": "#14151A05",
9
+ "red-1-focus": "#FFB2B299",
10
+ "gray-1": "#F9F9F9",
11
+ "gray-2": "#F5F5F5",
12
+ "gray-3": "#E9E9EA",
13
+ "gray-4": "#D7D7D7",
14
+ "gray-5": "#BBBBBC",
15
+ "gray-6": "#9B9B9C",
16
+ "gray-7": "#78787A",
17
+ "gray-8": "#585859",
18
+ "gray-9": "#3C3C3D",
19
+ "gray-10": "#262727",
20
+ "gray-11": "#191A1B",
21
+ "gray-12": "#0F1011",
22
+ "gray-13": "#0B0C0E",
23
+ "gray-1a": "#0B0C0E0A",
24
+ "gray-2a": "#0B0C0E14",
25
+ "gray-5a": "#0B0C0E40",
26
+ "gray-5a-solid": "#C2C2C2",
27
+ "gray-7a": "#0B0C0E66",
28
+ "gray-9a": "#0B0C0E80",
29
+ "gray-9a-solid": "#6D6D6E",
30
+ "white-1": "#FFFFFF14",
31
+ "white-2": "#FFFFFF24",
32
+ "white-3": "#FFFFFF2E",
33
+ "white-4": "#FFFFFF3D",
34
+ "white-5": "#FFFFFF52",
35
+ "white-5-solid": "#B2B2B4",
36
+ "white-6": "#FFFFFF66",
37
+ "white-7": "#FFFFFF75",
38
+ "white-9": "#FFFFFF99",
39
+ "white-9-solid": "#a0a1a3",
40
+ "white-13": "#FFFFFFF2",
41
+ "blue-1": "#F0F4FE",
42
+ "blue-2": "#E3EAFD",
43
+ "blue-6": "#7196F4",
44
+ "blue-8": "#4778F5",
45
+ "blue-9": "#1D54E2",
46
+ "blue-12": "#07296A",
47
+ "blue-11": "#133A9A",
48
+ "blue-3a": "#3368F033",
49
+ "blue-5a": "#3368F04D",
50
+ "blue-7a": "#3368F080",
51
+ "green-1": "#EDFDF4",
52
+ "green-2": "#D1FAE4",
53
+ "green-3": "#C3F8DC",
54
+ "green-4": "#9AF4C3",
55
+ "green-6": "#6AE1A1",
56
+ "green-7": "#40D986",
57
+ "green-8": "#26BD6C",
58
+ "green-9": "#21A65E",
59
+ "green-10": "#1D9052",
60
+ "green-11": "#166E3F",
61
+ "green-12": "#0F4C2C",
62
+ "green-13": "#072213",
63
+ "green-1a": "#26BD6C1A",
64
+ "green-3a": "#26BD6C33",
65
+ "green-4a": "#26BD6C40",
66
+ "green-5a": "#26BD6C4D",
67
+ "green-7a": "#26BD6C80",
68
+ "green-11a": "#26BD6CE6",
69
+ "orange-1": "#FEF4EC",
70
+ "orange-2": "#FDEAD8",
71
+ "orange-4": "#FAD0A9",
72
+ "orange-6": "#F8B577",
73
+ "orange-8": "#F48E2F",
74
+ "orange-9": "#E9760C",
75
+ "orange-11": "#AE590A",
76
+ "orange-12": "#613105",
77
+ "orange-13": "#301903",
78
+ "orange-3a": "#F48E2F33",
79
+ "orange-4a": "#F48E2F40",
80
+ "orange-5a": "#F48E2F4D",
81
+ "orange-7a": "#F48E2F80",
82
+ "red-1": "#FDF2F1",
83
+ "red-2": "#FCE5E4",
84
+ "red-4": "#F7C3C0",
85
+ "red-5": "#F5B2AD",
86
+ "red-6": "#F08B85",
87
+ "red-8": "#E6483D",
88
+ "red-9": "#D9281C",
89
+ "red-11": "#9A1C13",
90
+ "red-12": "#64120D",
91
+ "red-13": "#360A07",
92
+ "red-1a": "#E6483D1A",
93
+ "red-2a": "#E6483D26",
94
+ "red-3a": "#E6483D33",
95
+ "red-4a": "#E6483D40",
96
+ "red-5a": "#E6483D4D",
97
+ "red-6a": "#E6483D66",
98
+ "red-7a": "#E6483D80",
99
+ "red-9a": "#E6483DB3",
100
+ "purple-1": "#F7F1FD",
101
+ "purple-2": "#ECDFFB",
102
+ "purple-6": "#B78AF0",
103
+ "purple-8": "#924FE8",
104
+ "purple-11": "#5314A3",
105
+ "purple-12": "#3A0F71",
106
+ "purple-13": "#1C0736",
107
+ "purple-3a": "#873DE633",
108
+ "purple-5a": "#873DE64D",
109
+ "purple-7a": "#873DE680"
110
+ }, a = {
111
+ "xs-light": `0px 1px 2px 0px ${e["gray-13-shadow"]}`,
112
+ "xs-dark": "0px 1px 2px 0px rgba(255, 255, 255, 0)",
113
+ "tooltip-sm-light": `0px 10px 16px -3px ${e["gray-13-shadow"]}, 0px 3px 10px -2px ${e["gray-13-shadow-2"]}`,
114
+ "tooltip-sm-dark": "0px 10px 16px -3px rgba(20, 21, 26, 0.05), 0px 3px 10px -2px rgba(20, 21, 26, 0.02)"
115
+ }, r = {
116
+ "light-light": `0px 0px 0px 2px ${e["gray-2a"]}`,
117
+ "light-dark": `0px 0px 0px 2px ${e["white-2"]}`,
118
+ "accent-light": `0px 0px 0px 2px ${e["green-8"]}`,
119
+ "accent-dark": `0px 0px 0px 2px ${e["green-8"]}`,
120
+ "light-destructive-light": `0px 0px 0px 2px ${e["red-1-focus"]}`,
121
+ "light-destructive-dark": `0px 0px 0px 2px ${e["red-1-focus"]}`
122
+ }, t = {
123
+ light: {
124
+ "red-1-focus": e["red-1-focus"],
125
+ "brand-7": e["green-7"],
126
+ "brand-1a": e["green-1a"],
127
+ "brand-10": e["green-10"],
128
+ "brand-4a": e["green-4a"],
129
+ "brand-11a": e["green-11a"],
130
+ "surface-neutral": e["gray-1"],
131
+ "surface-neutral-subtle": e["gray-2"],
132
+ "surface-warning": e["orange-1"],
133
+ "surface-info-accent": e["blue-8"],
134
+ "primary-hover": e["gray-12"],
135
+ "primary-disabled": e["gray-2"],
136
+ "button-secondary": e["base-white"],
137
+ "button-secondary-hover": e["gray-1"],
138
+ "button-tertiary": e["gray-1a"],
139
+ "tertiary-hover": e["gray-2a"],
140
+ ghost: e["base-transparent"],
141
+ "ghost-hover": e["gray-1a"],
142
+ "destructive-hover": e["red-9"],
143
+ "destructive-disabled": e["red-2"],
144
+ "destructive-secondary-hover": e["red-1"],
145
+ "button-destructive-tertiary": e["red-1a"],
146
+ "destructive-tertiary-hover": e["red-2a"],
147
+ "destructive-ghost-hover": e["red-1a"],
148
+ "badge-gray": e["gray-2"],
149
+ "badge-gray-accent": e["gray-9"],
150
+ "badge-blue": e["blue-2"],
151
+ "badge-blue-disabled": e["blue-1"],
152
+ "badge-green": e["green-2"],
153
+ "badge-green-disabled": e["green-1"],
154
+ "badge-orange": e["orange-2"],
155
+ "badge-orange-disabled": e["orange-1"],
156
+ "badge-red": e["red-2"],
157
+ "badge-red-disabled": e["red-1"],
158
+ "badge-purple": e["purple-2"],
159
+ "badge-purple-disabled": e["purple-1"],
160
+ "badge-purple-accent": e["purple-8"],
161
+ "badge-white-disabled": e["base-white"],
162
+ "badge-surface": e["base-white"],
163
+ "accent-blue-accent": e["blue-8"],
164
+ "accent-blue-subtle": e["blue-2"],
165
+ "accent-gray-accent": e["gray-8"],
166
+ "accent-green": e["green-1"],
167
+ "accent-green-accent": e["green-8"],
168
+ "accent-green-subtle": e["green-2"],
169
+ "accent-orange-subtle": e["orange-2"],
170
+ "accent-orange-accent": e["orange-8"],
171
+ "accent-red": e["red-1"],
172
+ "accent-red-subtle": e["red-2"],
173
+ "accent-red-accent": e["red-8"],
174
+ "accent-purple": e["purple-1"],
175
+ "accent-purple-subtle": e["purple-2"],
176
+ "accent-purple-accent": e["purple-8"],
177
+ "checkbox-disabled": e["gray-3"],
178
+ "toggle-default": e["gray-5"],
179
+ "toggle-hover": e["gray-6"],
180
+ "toggle-active-hover": e["green-9"],
181
+ "toggle-active-disabled": e["green-3"],
182
+ "toggle-handle-disabled": e["gray-4"],
183
+ "border-action-normal": e["gray-3"],
184
+ "border-action-hover": e["gray-4"],
185
+ "border-action-focus": e["gray-13"],
186
+ "border-action-focus-destructive-light": e["red-6"],
187
+ "border-action-destructive": e["red-4"],
188
+ "border-action-destructive-hover": e["red-5"],
189
+ "border-base-warning": e["orange-4"],
190
+ "border-base-destructive": e["red-4"],
191
+ "border-base-alpha": e["gray-2a"],
192
+ "border-base-alpha-white": e["white-3"],
193
+ "text-primary": e["gray-13"],
194
+ "text-secondary": e["gray-9a"],
195
+ "text-secondary-solid": e["gray-9a-solid"],
196
+ "text-tertiary": e["gray-7a"],
197
+ "text-quaternary": e["gray-5a"],
198
+ "text-quaternary-solid": e["gray-5a-solid"],
199
+ "text-inverted": e["base-white"],
200
+ "text-static-dark": e["gray-13"],
201
+ "text-static-dark-secondary": e["gray-9a"],
202
+ "text-destructive": e["red-8"],
203
+ "text-destructive-secondary": e["red-9a"],
204
+ "text-destructive-tertiary": e["red-5a"],
205
+ "text-success": e["green-8"],
206
+ "text-warning": e["orange-8"],
207
+ "text-accent-blue-inverted": e["blue-11"],
208
+ "text-accent-blue-secondary": e["blue-7a"],
209
+ "text-accent-blue-tertiary": e["blue-5a"],
210
+ "text-accent-green": e["green-11"],
211
+ "text-accent-green-inverted": e["green-11"],
212
+ "text-accent-green-secondary": e["green-7a"],
213
+ "text-accent-orange-inverted": e["orange-11"],
214
+ "text-accent-orange-secondary": e["orange-7a"],
215
+ "text-accent-red-inverted": e["red-11"],
216
+ "text-accent-red-secondary": e["red-7a"],
217
+ "text-accent-purple-inverted": e["purple-11"],
218
+ "text-accent-purple-secondary": e["purple-7a"],
219
+ "icon-tertiary": e["gray-6"],
220
+ "icon-quaternary": e["gray-4"],
221
+ "shadow-xs": a["xs-light"],
222
+ "shadow-tooltip-sm": a["tooltip-sm-light"],
223
+ "focus-light": r["light-light"],
224
+ "focus-accent": r["accent-light"],
225
+ "focus-light-destructive": r["light-destructive-light"]
226
+ },
227
+ dark: {
228
+ "red-1-focus": e["red-1-focus"],
229
+ "brand-1a": e["green-1"],
230
+ "brand-7": e["green-7"],
231
+ "brand-10": e["green-4"],
232
+ "brand-4a": e["green-4"],
233
+ "brand-11a": e["green-11"],
234
+ "surface-inverted": e["base-white"],
235
+ "surface-neutral": e["gray-13"],
236
+ "surface-neutral-subtle": e["gray-12"],
237
+ "surface-warning": e["orange-13"],
238
+ "surface-info-accent": e["blue-8"],
239
+ "primary-hover": e["gray-2"],
240
+ "primary-disabled": e["white-2"],
241
+ "button-secondary": e["gray-13"],
242
+ "button-secondary-hover": e["gray-12"],
243
+ "button-tertiary": e["white-1"],
244
+ "tertiary-hover": e["white-2"],
245
+ ghost: e["base-transparent"],
246
+ "ghost-hover": e["white-2"],
247
+ "destructive-hover": e["red-9"],
248
+ "destructive-disabled": e["red-2a"],
249
+ "destructive-secondary-hover": e["gray-13"],
250
+ "button-destructive-tertiary": e["white-1"],
251
+ "destructive-tertiary-hover": e["white-2"],
252
+ "destructive-ghost-hover": e["white-1"],
253
+ "badge-gray": e["white-3"],
254
+ "badge-gray-accent": e["gray-7"],
255
+ "badge-blue": e["blue-5a"],
256
+ "badge-blue-disabled": e["blue-3a"],
257
+ "badge-green": e["green-5a"],
258
+ "badge-green-disabled": e["green-3a"],
259
+ "badge-orange": e["orange-4a"],
260
+ "badge-orange-disabled": e["orange-3a"],
261
+ "badge-red": e["red-5a"],
262
+ "badge-red-disabled": e["red-3a"],
263
+ "badge-purple": e["purple-5a"],
264
+ "badge-purple-disabled": e["purple-3a"],
265
+ "badge-purple-accent": e["purple-8"],
266
+ "badge-white-disabled": e["white-6"],
267
+ "badge-surface": e["gray-12"],
268
+ "accent-blue-accent": e["blue-9"],
269
+ "accent-blue-subtle": e["blue-12"],
270
+ "accent-gray-accent": e["gray-9"],
271
+ "accent-green": e["green-13"],
272
+ "accent-green-accent": e["green-9"],
273
+ "accent-green-subtle": e["green-12"],
274
+ "accent-orange-subtle": e["orange-12"],
275
+ "accent-orange-accent": e["orange-9"],
276
+ "accent-red": e["red-13"],
277
+ "accent-red-subtle": e["red-12"],
278
+ "accent-red-accent": e["red-9"],
279
+ "accent-purple": e["purple-13"],
280
+ "accent-purple-subtle": e["purple-12"],
281
+ "accent-purple-accent": e["purple-8"],
282
+ "checkbox-disabled": e["gray-11"],
283
+ "toggle-default": e["gray-9"],
284
+ "toggle-hover": e["gray-8"],
285
+ "toggle-active-hover": e["green-9"],
286
+ "toggle-active-disabled": e["green-11"],
287
+ "toggle-handle-disabled": e["gray-10"],
288
+ "border-action-normal": e["white-3"],
289
+ "border-action-hover": e["white-4"],
290
+ "border-action-focus": e["white-13"],
291
+ "border-action-focus-destructive-light": e["red-6"],
292
+ "border-action-destructive": e["red-4a"],
293
+ "border-action-destructive-hover": e["red-5a"],
294
+ "border-action-success": e["green-4a"],
295
+ "border-base-warning": e["orange-4a"],
296
+ "border-base-destructive": e["red-4a"],
297
+ "border-base-alpha": e["gray-2a"],
298
+ "border-base-alpha-white": e["white-3"],
299
+ "text-primary": e["base-white"],
300
+ "text-secondary": e["gray-4"],
301
+ "text-secondary-solid": e["gray-5a-solid"],
302
+ "text-tertiary": e["white-7"],
303
+ "text-quaternary": e["white-5"],
304
+ "text-quaternary-solid": e["white-5-solid"],
305
+ "text-inverted": e["base-dark-1"],
306
+ "text-static-dark": e["gray-13"],
307
+ "text-static-dark-secondary": e["gray-9a"],
308
+ "text-destructive": e["red-8"],
309
+ "text-destructive-secondary": e["red-9a"],
310
+ "text-destructive-tertiary": e["red-6a"],
311
+ "text-success": e["green-8"],
312
+ "text-warning": e["orange-8"],
313
+ "text-accent-blue-inverted": e["blue-6"],
314
+ "text-accent-blue-secondary": e["blue-5a"],
315
+ "text-accent-blue-tertiary": e["blue-3a"],
316
+ "text-accent-green": e["green-9"],
317
+ "text-accent-green-inverted": e["green-6"],
318
+ "text-accent-green-secondary": e["green-5a"],
319
+ "text-accent-orange-inverted": e["orange-6"],
320
+ "text-accent-orange-secondary": e["orange-5a"],
321
+ "text-accent-red-inverted": e["red-6"],
322
+ "text-accent-red-secondary": e["red-5a"],
323
+ "text-accent-purple-inverted": e["purple-6"],
324
+ "text-accent-purple-secondary": e["purple-5a"],
325
+ "icon-tertiary": e["icon-gray-2"],
326
+ "icon-quaternary": e["icon-gray-3"],
327
+ "shadow-xs": a["xs-dark"],
328
+ "shadow-tooltip-sm": a["tooltip-sm-dark"],
329
+ "focus-light": r["light-dark"],
330
+ "focus-accent": r["accent-dark"],
331
+ "focus-light-destructive": r["light-destructive-dark"]
332
+ }
333
+ };
334
+ export {
335
+ e as colors,
336
+ t as designTokens,
337
+ r as focus,
338
+ a as shadows
339
+ };
@@ -0,0 +1 @@
1
+ :root{--mt-color-base-white: #ffffff;--mt-color-base-dark-1: #0b0c0e;--mt-color-base-transparent: #ffffff02;--mt-color-icon-gray-2: #757575;--mt-color-icon-gray-3: #525252;--mt-color-gray-13-shadow: #14151a0d;--mt-color-gray-13-shadow-2: #14151a05;--mt-color-red-1-focus: #ffb2b299;--mt-color-gray-1: #f9f9f9;--mt-color-gray-2: #f5f5f5;--mt-color-gray-3: #e9e9ea;--mt-color-gray-4: #d7d7d7;--mt-color-gray-5: #bbbbbc;--mt-color-gray-6: #9b9b9c;--mt-color-gray-7: #78787a;--mt-color-gray-8: #585859;--mt-color-gray-9: #3c3c3d;--mt-color-gray-10: #262727;--mt-color-gray-11: #191a1b;--mt-color-gray-12: #0f1011;--mt-color-gray-13: #0b0c0e;--mt-color-gray-1a: #0b0c0e0a;--mt-color-gray-2a: #0b0c0e14;--mt-color-gray-5a: #0b0c0e40;--mt-color-gray-5a-solid: #c2c2c2;--mt-color-gray-7a: #0b0c0e66;--mt-color-gray-9a: #0b0c0e80;--mt-color-gray-9a-solid: #6d6d6e;--mt-color-white-1: #ffffff14;--mt-color-white-2: #ffffff24;--mt-color-white-3: #ffffff2e;--mt-color-white-4: #ffffff3d;--mt-color-white-5: #ffffff52;--mt-color-white-5-solid: #b2b2b4;--mt-color-white-6: #ffffff66;--mt-color-white-7: #ffffff75;--mt-color-white-9: #ffffff99;--mt-color-white-9-solid: #a0a1a3;--mt-color-white-13: #fffffff2;--mt-color-blue-1: #f0f4fe;--mt-color-blue-2: #e3eafd;--mt-color-blue-6: #7196f4;--mt-color-blue-8: #4778f5;--mt-color-blue-9: #1d54e2;--mt-color-blue-12: #07296a;--mt-color-blue-11: #133a9a;--mt-color-blue-3a: #3368f033;--mt-color-blue-5a: #3368f04d;--mt-color-blue-7a: #3368f080;--mt-color-green-1: #edfdf4;--mt-color-green-2: #d1fae4;--mt-color-green-3: #c3f8dc;--mt-color-green-4: #9af4c3;--mt-color-green-6: #6ae1a1;--mt-color-green-7: #40d986;--mt-color-green-8: #26bd6c;--mt-color-green-9: #21a65e;--mt-color-green-10: #1d9052;--mt-color-green-11: #166e3f;--mt-color-green-12: #0f4c2c;--mt-color-green-13: #072213;--mt-color-green-1a: #26bd6c1a;--mt-color-green-3a: #26bd6c33;--mt-color-green-4a: #26bd6c40;--mt-color-green-5a: #26bd6c4d;--mt-color-green-7a: #26bd6c80;--mt-color-green-11a: #26bd6ce6;--mt-color-orange-1: #fef4ec;--mt-color-orange-2: #fdead8;--mt-color-orange-4: #fad0a9;--mt-color-orange-6: #f8b577;--mt-color-orange-8: #f48e2f;--mt-color-orange-9: #e9760c;--mt-color-orange-11: #ae590a;--mt-color-orange-12: #613105;--mt-color-orange-13: #301903;--mt-color-orange-3a: #f48e2f33;--mt-color-orange-4a: #f48e2f40;--mt-color-orange-5a: #f48e2f4d;--mt-color-orange-7a: #f48e2f80;--mt-color-red-1: #fdf2f1;--mt-color-red-2: #fce5e4;--mt-color-red-4: #f7c3c0;--mt-color-red-5: #f5b2ad;--mt-color-red-6: #f08b85;--mt-color-red-8: #e6483d;--mt-color-red-9: #d9281c;--mt-color-red-11: #9a1c13;--mt-color-red-12: #64120d;--mt-color-red-13: #360a07;--mt-color-red-1a: #e6483d1a;--mt-color-red-2a: #e6483d26;--mt-color-red-3a: #e6483d33;--mt-color-red-4a: #e6483d40;--mt-color-red-5a: #e6483d4d;--mt-color-red-6a: #e6483d66;--mt-color-red-7a: #e6483d80;--mt-color-red-9a: #e6483db3;--mt-color-purple-1: #f7f1fd;--mt-color-purple-2: #ecdffb;--mt-color-purple-6: #b78af0;--mt-color-purple-8: #924fe8;--mt-color-purple-11: #5314a3;--mt-color-purple-12: #3a0f71;--mt-color-purple-13: #1c0736;--mt-color-purple-3a: #873de633;--mt-color-purple-5a: #873de64d;--mt-color-purple-7a: #873de680;--mt-shadow-xs-light: 0px 1px 2px 0px var(--mt-color-gray-13-shadow);--mt-shadow-xs-dark: 0px 1px 2px 0px rgb(255 255 255 / 0%);--mt-shadow-tooltip-sm-light: 0px 10px 16px -3px var(--mt-color-gray-13-shadow), 0px 3px 10px -2px var(--mt-color-gray-13-shadow-2);--mt-shadow-tooltip-sm-dark: 0px 10px 16px -3px rgb(20 21 26 / 5%), 0px 3px 10px -2px rgb(20 21 26 / 2%);--mt-focus-light-light: 0px 0px 0px 2px var(--mt-color-gray-2a);--mt-focus-light-dark: 0px 0px 0px 2px var(--mt-color-white-2);--mt-focus-accent-light: 0px 0px 0px 2px var(--mt-color-green-8);--mt-focus-accent-dark: 0px 0px 0px 2px var(--mt-color-green-8);--mt-focus-light-destructive-light: 0px 0px 0px 2px var(--mt-color-red-1-focus);--mt-focus-light-destructive-dark: 0px 0px 0px 2px var(--mt-color-red-1-focus);--mt-color-brand-7: var(--mt-color-green-7);--mt-color-brand-1a: var(--mt-color-green-1a);--mt-color-brand-10: var(--mt-color-green-10);--mt-color-brand-4a: var(--mt-color-green-4a);--mt-color-brand-11a: var(--mt-color-green-11a);--mt-color-surface-neutral: var(--mt-color-gray-1);--mt-color-surface-neutral-subtle: var(--mt-color-gray-2);--mt-color-surface-warning: var(--mt-color-orange-1);--mt-color-surface-info-accent: var(--mt-color-blue-8);--mt-color-primary-hover: var(--mt-color-gray-12);--mt-color-primary-disabled: var(--mt-color-gray-2);--mt-color-button-secondary: var(--mt-color-base-white);--mt-color-button-secondary-hover: var(--mt-color-gray-1);--mt-color-button-tertiary: var(--mt-color-gray-1a);--mt-color-tertiary-hover: var(--mt-color-gray-2a);--mt-color-ghost: var(--mt-color-base-transparent);--mt-color-ghost-hover: var(--mt-color-gray-1a);--mt-color-destructive-hover: var(--mt-color-red-9);--mt-color-destructive-disabled: var(--mt-color-red-2);--mt-color-destructive-secondary-hover: var(--mt-color-red-1);--mt-color-button-destructive-tertiary: var(--mt-color-red-1a);--mt-color-destructive-tertiary-hover: var(--mt-color-red-2a);--mt-color-destructive-ghost-hover: var(--mt-color-red-1a);--mt-color-badge-gray: var(--mt-color-gray-2);--mt-color-badge-gray-accent: var(--mt-color-gray-9);--mt-color-badge-blue: var(--mt-color-blue-2);--mt-color-badge-blue-disabled: var(--mt-color-blue-1);--mt-color-badge-green: var(--mt-color-green-2);--mt-color-badge-green-disabled: var(--mt-color-green-1);--mt-color-badge-orange: var(--mt-color-orange-2);--mt-color-badge-orange-disabled: var(--mt-color-orange-1);--mt-color-badge-red: var(--mt-color-red-2);--mt-color-badge-red-disabled: var(--mt-color-red-1);--mt-color-badge-purple: var(--mt-color-purple-2);--mt-color-badge-purple-disabled: var(--mt-color-purple-1);--mt-color-badge-purple-accent: var(--mt-color-purple-8);--mt-color-badge-white-disabled: var(--mt-color-base-white);--mt-color-badge-surface: var(--mt-color-base-white);--mt-color-accent-blue-accent: var(--mt-color-blue-8);--mt-color-accent-blue-subtle: var(--mt-color-blue-2);--mt-color-accent-gray-accent: var(--mt-color-gray-8);--mt-color-accent-green: var(--mt-color-green-1);--mt-color-accent-green-accent: var(--mt-color-green-8);--mt-color-accent-green-subtle: var(--mt-color-green-2);--mt-color-accent-orange-subtle: var(--mt-color-orange-2);--mt-color-accent-orange-accent: var(--mt-color-orange-8);--mt-color-accent-red: var(--mt-color-red-1);--mt-color-accent-red-subtle: var(--mt-color-red-2);--mt-color-accent-red-accent: var(--mt-color-red-8);--mt-color-accent-purple: var(--mt-color-purple-1);--mt-color-accent-purple-subtle: var(--mt-color-purple-2);--mt-color-accent-purple-accent: var(--mt-color-purple-8);--mt-color-checkbox-disabled: var(--mt-color-gray-3);--mt-color-toggle-default: var(--mt-color-gray-5);--mt-color-toggle-hover: var(--mt-color-gray-6);--mt-color-toggle-active-hover: var(--mt-color-green-9);--mt-color-toggle-active-disabled: var(--mt-color-green-3);--mt-color-toggle-handle-disabled: var(--mt-color-gray-4);--mt-color-border-action-normal: var(--mt-color-gray-3);--mt-color-border-action-hover: var(--mt-color-gray-4);--mt-color-border-action-focus: var(--mt-color-gray-13);--mt-color-border-action-focus-destructive-light: var(--mt-color-red-6);--mt-color-border-action-destructive: var(--mt-color-red-4);--mt-color-border-action-destructive-hover: var(--mt-color-red-5);--mt-color-border-base-warning: var(--mt-color-orange-4);--mt-color-border-base-destructive: var(--mt-color-red-4);--mt-color-border-base-alpha: var(--mt-color-gray-2a);--mt-color-border-base-alpha-white: var(--mt-color-white-3);--mt-color-text-primary: var(--mt-color-gray-13);--mt-color-text-secondary: var(--mt-color-gray-9a);--mt-color-text-secondary-solid: var(--mt-color-gray-9a-solid);--mt-color-text-tertiary: var(--mt-color-gray-7a);--mt-color-text-quaternary: var(--mt-color-gray-5a);--mt-color-text-quaternary-solid: var(--mt-color-gray-5a-solid);--mt-color-text-inverted: var(--mt-color-base-white);--mt-color-text-static-dark: var(--mt-color-gray-13);--mt-color-text-static-dark-secondary: var(--mt-color-gray-9a);--mt-color-text-destructive: var(--mt-color-red-8);--mt-color-text-destructive-secondary: var(--mt-color-red-9a);--mt-color-text-destructive-tertiary: var(--mt-color-red-5a);--mt-color-text-success: var(--mt-color-green-8);--mt-color-text-warning: var(--mt-color-orange-8);--mt-color-text-accent-blue-inverted: var(--mt-color-blue-11);--mt-color-text-accent-blue-secondary: var(--mt-color-blue-7a);--mt-color-text-accent-blue-tertiary: var(--mt-color-blue-5a);--mt-color-text-accent-green: var(--mt-color-green-11);--mt-color-text-accent-green-inverted: var(--mt-color-green-11);--mt-color-text-accent-green-secondary: var(--mt-color-green-7a);--mt-color-text-accent-orange-inverted: var(--mt-color-orange-11);--mt-color-text-accent-orange-secondary: var(--mt-color-orange-7a);--mt-color-text-accent-red-inverted: var(--mt-color-red-11);--mt-color-text-accent-red-secondary: var(--mt-color-red-7a);--mt-color-text-accent-purple-inverted: var(--mt-color-purple-11);--mt-color-text-accent-purple-secondary: var(--mt-color-purple-7a);--mt-color-icon-tertiary: var(--mt-color-gray-6);--mt-color-icon-quaternary: var(--mt-color-gray-4);--mt-color-shadow-xs: var(--mt-shadow-xs-light);--mt-color-shadow-tooltip-sm: var(--mt-shadow-tooltip-sm-light);--mt-color-focus-light: var(--mt-focus-light-light);--mt-color-focus-accent: var(--mt-focus-accent-light);--mt-color-focus-light-destructive: var(--mt-focus-light-destructive-light)}:is(.dark,.dark-theme){--mt-color-red-1-focus: var(--mt-color-red-1-focus);--mt-color-brand-1a: var(--mt-color-green-1);--mt-color-brand-7: var(--mt-color-green-7);--mt-color-brand-10: var(--mt-color-green-4);--mt-color-brand-4a: var(--mt-color-green-4);--mt-color-brand-11a: var(--mt-color-green-11);--mt-color-surface-inverted: var(--mt-color-base-white);--mt-color-surface-neutral: var(--mt-color-gray-13);--mt-color-surface-neutral-subtle: var(--mt-color-gray-12);--mt-color-surface-warning: var(--mt-color-orange-13);--mt-color-surface-info-accent: var(--mt-color-blue-8);--mt-color-primary-hover: var(--mt-color-gray-2);--mt-color-primary-disabled: var(--mt-color-white-2);--mt-color-button-secondary: var(--mt-color-gray-13);--mt-color-button-secondary-hover: var(--mt-color-gray-12);--mt-color-button-tertiary: var(--mt-color-white-1);--mt-color-tertiary-hover: var(--mt-color-white-2);--mt-color-ghost: var(--mt-color-base-transparent);--mt-color-ghost-hover: var(--mt-color-white-2);--mt-color-destructive-hover: var(--mt-color-red-9);--mt-color-destructive-disabled: var(--mt-color-red-2a);--mt-color-destructive-secondary-hover: var(--mt-color-gray-13);--mt-color-button-destructive-tertiary: var(--mt-color-white-1);--mt-color-destructive-tertiary-hover: var(--mt-color-white-2);--mt-color-destructive-ghost-hover: var(--mt-color-white-1);--mt-color-badge-gray: var(--mt-color-white-3);--mt-color-badge-gray-accent: var(--mt-color-gray-7);--mt-color-badge-blue: var(--mt-color-blue-5a);--mt-color-badge-blue-disabled: var(--mt-color-blue-3a);--mt-color-badge-green: var(--mt-color-green-5a);--mt-color-badge-green-disabled: var(--mt-color-green-3a);--mt-color-badge-orange: var(--mt-color-orange-4a);--mt-color-badge-orange-disabled: var(--mt-color-orange-3a);--mt-color-badge-red: var(--mt-color-red-5a);--mt-color-badge-red-disabled: var(--mt-color-red-3a);--mt-color-badge-purple: var(--mt-color-purple-5a);--mt-color-badge-purple-disabled: var(--mt-color-purple-3a);--mt-color-badge-purple-accent: var(--mt-color-purple-8);--mt-color-badge-white-disabled: var(--mt-color-white-6);--mt-color-badge-surface: var(--mt-color-gray-12);--mt-color-accent-blue-accent: var(--mt-color-blue-9);--mt-color-accent-blue-subtle: var(--mt-color-blue-12);--mt-color-accent-gray-accent: var(--mt-color-gray-9);--mt-color-accent-green: var(--mt-color-green-13);--mt-color-accent-green-accent: var(--mt-color-green-9);--mt-color-accent-green-subtle: var(--mt-color-green-12);--mt-color-accent-orange-subtle: var(--mt-color-orange-12);--mt-color-accent-orange-accent: var(--mt-color-orange-9);--mt-color-accent-red: var(--mt-color-red-13);--mt-color-accent-red-subtle: var(--mt-color-red-12);--mt-color-accent-red-accent: var(--mt-color-red-9);--mt-color-accent-purple: var(--mt-color-purple-13);--mt-color-accent-purple-subtle: var(--mt-color-purple-12);--mt-color-accent-purple-accent: var(--mt-color-purple-8);--mt-color-checkbox-disabled: var(--mt-color-gray-11);--mt-color-toggle-default: var(--mt-color-gray-9);--mt-color-toggle-hover: var(--mt-color-gray-8);--mt-color-toggle-active-hover: var(--mt-color-green-9);--mt-color-toggle-active-disabled: var(--mt-color-green-11);--mt-color-toggle-handle-disabled: var(--mt-color-gray-10);--mt-color-border-action-normal: var(--mt-color-white-3);--mt-color-border-action-hover: var(--mt-color-white-4);--mt-color-border-action-focus: var(--mt-color-white-13);--mt-color-border-action-focus-destructive-light: var(--mt-color-red-6);--mt-color-border-action-destructive: var(--mt-color-red-4a);--mt-color-border-action-destructive-hover: var(--mt-color-red-5a);--mt-color-border-action-success: var(--mt-color-green-4a);--mt-color-border-base-warning: var(--mt-color-orange-4a);--mt-color-border-base-destructive: var(--mt-color-red-4a);--mt-color-border-base-alpha: var(--mt-color-gray-2a);--mt-color-border-base-alpha-white: var(--mt-color-white-3);--mt-color-text-primary: var(--mt-color-base-white);--mt-color-text-secondary: var(--mt-color-gray-4);--mt-color-text-secondary-solid: var(--mt-color-gray-5a-solid);--mt-color-text-tertiary: var(--mt-color-white-7);--mt-color-text-quaternary: var(--mt-color-white-5);--mt-color-text-quaternary-solid: var(--mt-color-white-5-solid);--mt-color-text-inverted: var(--mt-color-base-dark-1);--mt-color-text-static-dark: var(--mt-color-gray-13);--mt-color-text-static-dark-secondary: var(--mt-color-gray-9a);--mt-color-text-destructive: var(--mt-color-red-8);--mt-color-text-destructive-secondary: var(--mt-color-red-9a);--mt-color-text-destructive-tertiary: var(--mt-color-red-6a);--mt-color-text-success: var(--mt-color-green-8);--mt-color-text-warning: var(--mt-color-orange-8);--mt-color-text-accent-blue-inverted: var(--mt-color-blue-6);--mt-color-text-accent-blue-secondary: var(--mt-color-blue-5a);--mt-color-text-accent-blue-tertiary: var(--mt-color-blue-3a);--mt-color-text-accent-green: var(--mt-color-green-9);--mt-color-text-accent-green-inverted: var(--mt-color-green-6);--mt-color-text-accent-green-secondary: var(--mt-color-green-5a);--mt-color-text-accent-orange-inverted: var(--mt-color-orange-6);--mt-color-text-accent-orange-secondary: var(--mt-color-orange-5a);--mt-color-text-accent-red-inverted: var(--mt-color-red-6);--mt-color-text-accent-red-secondary: var(--mt-color-red-5a);--mt-color-text-accent-purple-inverted: var(--mt-color-purple-6);--mt-color-text-accent-purple-secondary: var(--mt-color-purple-5a);--mt-color-icon-tertiary: var(--mt-color-icon-gray-2);--mt-color-icon-quaternary: var(--mt-color-icon-gray-3);--mt-color-shadow-xs: var(--mt-shadow-xs-dark);--mt-color-shadow-tooltip-sm: var(--mt-shadow-tooltip-sm-dark);--mt-color-focus-light: var(--mt-focus-light-dark);--mt-color-focus-accent: var(--mt-focus-accent-dark);--mt-color-focus-light-destructive: var(--mt-focus-light-destructive-dark)}:is(.dark,.dark-theme),:is(.dark,.dark-theme) :where(:root){color-scheme:dark}
@@ -0,0 +1,7 @@
1
+ import n from "clsx";
2
+ function t(...r) {
3
+ return n(r);
4
+ }
5
+ export {
6
+ t as cn
7
+ };
package/package.json CHANGED
@@ -1,107 +1,80 @@
1
1
  {
2
2
  "name": "@mintlify/components",
3
- "version": "0.3.15",
4
- "description": "Open-source library of UI components made with React and TailwindCSS.",
5
- "main": "./dist/index.js",
3
+ "version": "0.4.0",
4
+ "description": "Mintlify Headless UI components",
5
+ "type": "module",
6
+ "main": "./dist/index.cjs",
7
+ "module": "./dist/index.js",
6
8
  "types": "./dist/index.d.ts",
7
- "style": "./dist/main.css",
9
+ "sideEffects": false,
10
+ "files": [
11
+ "dist",
12
+ "README.md",
13
+ "LICENSE"
14
+ ],
8
15
  "repository": {
9
16
  "type": "git",
10
- "url": "https://github.com/mintlify/components"
17
+ "url": "https://github.com/mintlify/components.git",
18
+ "directory": "components/packages/react"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/mintlify/components/issues"
11
22
  },
23
+ "homepage": "https://github.com/mintlify/components#readme",
24
+ "license": "MIT",
25
+ "author": "Mintlify, Inc.",
12
26
  "keywords": [
13
27
  "react",
28
+ "components",
29
+ "ui",
30
+ "headless",
31
+ "mintlify",
32
+ "design-system",
14
33
  "tailwindcss"
15
34
  ],
16
- "license": "MIT",
17
- "scripts": {
18
- "build": "webpack",
19
- "format": "prettier \"**/*.{css,js,ts,tsx,md}\" --write",
20
- "format:check": "prettier \"**/*.{css,js,ts,tsx,md}\" --check",
21
- "prepare": "husky install && yarn build",
22
- "storybook": "start-storybook -p 6006",
23
- "build-storybook": "build-storybook",
24
- "test-storybook": "test-storybook",
25
- "lint": "eslint src --cache"
35
+ "engines": {
36
+ "node": ">=20.0.0"
26
37
  },
27
- "author": "Mintlify",
28
- "bugs": {
29
- "url": "https://github.com/mintlify/components/issues"
38
+ "scripts": {
39
+ "dev": "pnpm generate:theme && vite build --watch",
40
+ "build": "pnpm generate:theme && tsc && vite build",
41
+ "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
42
+ "lint:css": "stylelint '**/*.css'",
43
+ "lint:all": "pnpm lint && pnpm lint:css",
44
+ "storybook": "storybook dev -p 6006",
45
+ "build-storybook": "storybook build",
46
+ "generate:theme": "tsx scripts/generate-theme-css.ts"
30
47
  },
31
48
  "peerDependencies": {
32
- "@headlessui/react": "^1.7",
33
- "react": "^17.0.0 || ^18.0.0",
34
- "react-dom": "^17.0.0 || ^18.0.0"
35
- },
36
- "devDependencies": {
37
- "@babel/core": "^7.20.5",
38
- "@babel/preset-env": "^7.20.2",
39
- "@babel/preset-react": "^7.18.6",
40
- "@babel/preset-typescript": "^7.18.6",
41
- "@headlessui/react": "^1.7.11",
42
- "@mintlify/eslint-config": "^1.0.3",
43
- "@mintlify/eslint-config-typescript": "^1.0.7",
44
- "@mintlify/prettier-config": "1.0.2",
45
- "@storybook/addon-actions": "^6.5.13",
46
- "@storybook/addon-essentials": "^6.5.13",
47
- "@storybook/addon-interactions": "^6.5.13",
48
- "@storybook/addon-links": "^6.5.13",
49
- "@storybook/addon-postcss": "^2.0.0",
50
- "@storybook/builder-webpack5": "^6.5.13",
51
- "@storybook/jest": "^0.0.10",
52
- "@storybook/manager-webpack5": "^6.5.13",
53
- "@storybook/react": "^6.5.13",
54
- "@storybook/test-runner": "^0.9.4",
55
- "@storybook/testing-library": "^0.0.13",
56
- "@tailwindcss/typography": "^0.5.7",
57
- "@trivago/prettier-plugin-sort-imports": "3.x",
58
- "@types/lodash.set": "^4.3.7",
59
- "@types/react": "^18.0.21",
60
- "@types/uuid": "^9.0.0",
61
- "@typescript-eslint/eslint-plugin": "^5.52.0",
62
- "@typescript-eslint/parser": "^5.52.0",
63
- "autoprefixer": "^10.4.8",
64
- "babel-loader": "^8.3.0",
65
- "chromatic": "^6.9.0",
66
- "css-loader": "^6.7.2",
67
- "cssnano": "^5.1.14",
68
- "eslint": "^8.34.0",
69
- "eslint-config-prettier": "^8.6.0",
70
- "eslint-plugin-react": "^7.32.2",
71
- "eslint-plugin-react-hooks": "^4.6.0",
72
- "eslint-plugin-unused-imports": "^2.0.0",
73
- "glob-parent": "^6.0.2",
74
- "husky": "^8.0.3",
75
- "lint-staged": "^13.1.1",
76
- "mini-css-extract-plugin": "^2.6.1",
77
- "mini-svg-data-uri": "^1.4.4",
78
- "postcss": "^8.4.19",
79
- "postcss-loader": "^7.0.2",
80
- "postcss-preset-env": "^7.8.3",
81
- "prettier": "2.x",
82
- "react": "^18.0.0",
83
- "react-dom": "^18.0.0",
84
- "source-map-loader": "^4.0.0",
85
- "storybook-addon-themes": "^6.1.0",
86
- "style-loader": "^3.3.1",
87
- "tailwind-children": "^0.5.0",
88
- "tailwindcss": "^3.2.4",
89
- "trim": "^1.0.1",
90
- "trim-newlines": "^4.0.2",
91
- "ts-loader": "^9.3.1",
92
- "typescript": "^4.9.4",
93
- "uuid": "^9.0.0",
94
- "webpack": "^5.75.0",
95
- "webpack-cli": "^4.10.0"
49
+ "react": "^18.0.0 || ^19.0.0",
50
+ "react-dom": "^18.0.0 || ^19.0.0"
96
51
  },
97
52
  "dependencies": {
98
- "assert": "^2.0.0",
99
- "clsx": "^1.2.1",
100
- "is-absolute-url": "^4.0.1",
101
- "lodash.set": "^4.3.2"
53
+ "clsx": "^2.1.1"
102
54
  },
103
- "lint-staged": {
104
- "*.+(ts|tsx)": "eslint --cache --fix --max-warnings 0",
105
- "*.{css,js,ts,tsx,md}": "prettier --write"
55
+ "devDependencies": {
56
+ "@storybook/addon-docs": "^10.0.8",
57
+ "@storybook/react-vite": "^10.0.8",
58
+ "@tailwindcss/postcss": "^4.1.17",
59
+ "@types/node": "^22.10.1",
60
+ "@types/react": "^18.3.12",
61
+ "@types/react-dom": "^18.3.1",
62
+ "@typescript-eslint/eslint-plugin": "^8.15.0",
63
+ "@typescript-eslint/parser": "^8.15.0",
64
+ "@vitejs/plugin-react": "^4.3.4",
65
+ "autoprefixer": "^10.4.22",
66
+ "eslint": "^9.15.0",
67
+ "eslint-plugin-react-hooks": "^5.0.0",
68
+ "eslint-plugin-react-refresh": "^0.4.14",
69
+ "eslint-plugin-storybook": "^10.0.8",
70
+ "next-themes": "^0.4.6",
71
+ "postcss": "^8.5.6",
72
+ "react": "^18.3.1",
73
+ "react-dom": "^18.3.1",
74
+ "storybook": "^10.0.8",
75
+ "tailwindcss": "^4.1.17",
76
+ "typescript": "^5.7.2",
77
+ "vite": "^6.0.1",
78
+ "vite-plugin-dts": "^4.3.0"
106
79
  }
107
80
  }
package/.eslintrc.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "extends": [
3
- "eslint:recommended",
4
- "plugin:react/recommended",
5
- "plugin:react-hooks/recommended",
6
- "@mintlify/eslint-config-typescript"
7
- ],
8
- "rules": {
9
- "react/prop-types": "off"
10
- }
11
- }
@@ -1,10 +0,0 @@
1
- # https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
2
-
3
- version: 2
4
- updates:
5
- - package-ecosystem: "npm" # See documentation for possible values
6
- directory: "/" # Location of package manifests
7
- schedule:
8
- interval: "daily"
9
- allow:
10
- - dependency-name: "@mintlify/*"
@@ -1,27 +0,0 @@
1
- # Workflow name
2
- name: "Chromatic"
3
-
4
- # Event for the workflow
5
- on: push
6
-
7
- # List of jobs
8
- jobs:
9
- chromatic-deployment:
10
- # Operating System
11
- runs-on: ubuntu-latest
12
- # Job steps
13
- steps:
14
- - uses: actions/checkout@v1
15
- - name: Install dependencies
16
- run: yarn
17
- - name: Publish to Chromatic
18
- if: github.ref != 'refs/heads/main'
19
- uses: chromaui/action@v1
20
- with:
21
- projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
22
- - name: Publish to Chromatic auto-accepting changes
23
- if: github.ref == 'refs/heads/main'
24
- uses: chromaui/action@v1
25
- with:
26
- projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
27
- autoAcceptChanges: true
@@ -1,13 +0,0 @@
1
- name: Code Style Checks
2
-
3
- on: push
4
-
5
- jobs:
6
- style-checks:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v3
10
- - name: Install modules
11
- run: yarn
12
- - name: Check formatting
13
- run: yarn format:check
@@ -1,13 +0,0 @@
1
- name: Sanity Check
2
-
3
- on: push
4
-
5
- jobs:
6
- sanity-check:
7
- runs-on: ubuntu-latest
8
- steps:
9
- - uses: actions/checkout@v3
10
- - name: Install modules
11
- run: yarn
12
- - name: Check build
13
- run: yarn build
package/.husky/pre-commit DELETED
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env sh
2
- . "$(dirname -- "$0")/_/husky.sh"
3
-
4
- yarn lint-staged