@jobber/components 4.85.4-CJS-to-ESM.1 → 4.85.4

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 (139) hide show
  1. package/.eslintrc.js +10 -0
  2. package/dist/AnimatedPresence/index.js +12 -0
  3. package/dist/AnimatedPresence-20a02aaa.js +104 -0
  4. package/dist/AnimatedSwitcher/index.js +13 -0
  5. package/dist/AnimatedSwitcher-3d45ec5d.js +96 -0
  6. package/dist/Autocomplete/index.js +209 -0
  7. package/dist/Avatar/index.js +15 -0
  8. package/dist/Avatar-76a799fa.js +78 -0
  9. package/dist/Banner/index.js +110 -0
  10. package/dist/Button/index.js +16 -0
  11. package/dist/Button-b73a5e01.js +57 -0
  12. package/dist/ButtonDismiss/index.js +17 -0
  13. package/dist/ButtonDismiss-350af163.js +14 -0
  14. package/dist/Card/colors.css.d.ts +89 -0
  15. package/dist/Card/index.js +24 -0
  16. package/dist/Card-e3144022.js +93 -0
  17. package/dist/Checkbox/index.js +18 -0
  18. package/dist/Checkbox-787e2e47.js +63 -0
  19. package/dist/Chip/index.js +41 -0
  20. package/dist/Chip-3d1bfddc.js +89 -0
  21. package/dist/Chips/index.js +524 -0
  22. package/dist/Combobox/index.js +40 -0
  23. package/dist/Combobox-a24c8241.js +479 -0
  24. package/dist/ConfirmationModal/index.js +31 -0
  25. package/dist/ConfirmationModal-52e16873.js +100 -0
  26. package/dist/Content/Spacing.css.d.ts +13 -0
  27. package/dist/Content/index.js +12 -0
  28. package/dist/Content-e3f7b6fc.js +24 -0
  29. package/dist/Countdown/index.js +72 -0
  30. package/dist/DataDump/index.js +37 -0
  31. package/dist/DataList/index.js +1335 -0
  32. package/dist/DataTable/index.js +301 -0
  33. package/dist/DatePicker/index.js +20 -0
  34. package/dist/DatePicker-64c5ab1a.js +134 -0
  35. package/dist/DescriptionList/index.js +24 -0
  36. package/dist/Disclosure/index.js +46 -0
  37. package/dist/Divider/index.js +29 -0
  38. package/dist/Drawer/index.js +49 -0
  39. package/dist/Emphasis/index.js +13 -0
  40. package/dist/Emphasis-bda56d3b.js +19 -0
  41. package/dist/FeatureSwitch/index.js +70 -0
  42. package/dist/Flex/index.js +12 -0
  43. package/dist/Flex-d490c4db.js +38 -0
  44. package/dist/Form/index.js +56 -0
  45. package/dist/FormField/index.js +24 -0
  46. package/dist/FormField-6ff183f8.js +253 -0
  47. package/dist/FormatDate/index.js +11 -0
  48. package/dist/FormatDate-70ea5b43.js +34 -0
  49. package/dist/FormatEmail/index.js +23 -0
  50. package/dist/FormatFile/index.js +36 -0
  51. package/dist/FormatFile-f036902d.js +162 -0
  52. package/dist/FormatRelativeDateTime/index.js +72 -0
  53. package/dist/FormatTime/index.js +36 -0
  54. package/dist/Gallery/Gallery.css.d.ts +9 -0
  55. package/dist/Gallery/index.js +99 -0
  56. package/dist/Glimmer/index.js +15 -0
  57. package/dist/Glimmer/style/Shape.css.d.ts +9 -0
  58. package/dist/Glimmer/style/Sizes.css.d.ts +10 -0
  59. package/dist/Glimmer/style/Timing.css.d.ts +6 -0
  60. package/dist/Glimmer-84dee1ed.js +77 -0
  61. package/dist/Grid/GridAlign.css.d.ts +8 -0
  62. package/dist/Grid/index.js +76 -0
  63. package/dist/Heading/index.js +14 -0
  64. package/dist/Heading-1e8e4bd3.js +55 -0
  65. package/dist/Icon/index.js +11 -0
  66. package/dist/Icon-405a216c.js +40 -0
  67. package/dist/InlineLabel/index.js +13 -0
  68. package/dist/InlineLabel-a6557829.js +28 -0
  69. package/dist/InputAvatar/index.js +70 -0
  70. package/dist/InputDate/index.js +57 -0
  71. package/dist/InputEmail/index.js +43 -0
  72. package/dist/InputFile/index.js +25 -0
  73. package/dist/InputFile-bb945071.js +190 -0
  74. package/dist/InputGroup/index.js +12 -0
  75. package/dist/InputGroup-8d4fd4eb.js +33 -0
  76. package/dist/InputNumber/index.js +25 -0
  77. package/dist/InputNumber-d451b52e.js +62 -0
  78. package/dist/InputPassword/index.js +41 -0
  79. package/dist/InputPhoneNumber/index.js +116 -0
  80. package/dist/InputText/index.js +26 -0
  81. package/dist/InputText-55b6cb65.js +102 -0
  82. package/dist/InputTime/index.js +209 -0
  83. package/dist/InputValidation/index.js +17 -0
  84. package/dist/InputValidation-05e839fa.js +29 -0
  85. package/dist/LightBox/index.js +24 -0
  86. package/dist/LightBox-a89d8863.js +117 -0
  87. package/dist/Link/index.js +15 -0
  88. package/dist/List/index.js +93 -0
  89. package/dist/Markdown/index.js +19 -0
  90. package/dist/Markdown-f7c55304.js +62 -0
  91. package/dist/Menu/index.js +21 -0
  92. package/dist/Menu-083fc4c4.js +139 -0
  93. package/dist/Modal/Sizes.css.d.ts +6 -0
  94. package/dist/Modal/index.js +25 -0
  95. package/dist/Modal-c336cac6.js +71 -0
  96. package/dist/MultiSelect/index.js +182 -0
  97. package/dist/Option-3c4d377e.js +19 -0
  98. package/dist/Page/index.js +78 -0
  99. package/dist/Popover/index.js +61 -0
  100. package/dist/ProgressBar/Sizes.css.d.ts +7 -0
  101. package/dist/ProgressBar/index.js +12 -0
  102. package/dist/ProgressBar-b68edc8f.js +43 -0
  103. package/dist/RadioGroup/index.js +15 -0
  104. package/dist/RadioGroup-17b67ade.js +46 -0
  105. package/dist/RecurringSelect/index.js +227 -0
  106. package/dist/Select/index.js +26 -0
  107. package/dist/Spinner/index.js +12 -0
  108. package/dist/Spinner-9d8fc7ff.js +24 -0
  109. package/dist/StatusIndicator/index.js +11 -0
  110. package/dist/StatusIndicator-b179d06e.js +18 -0
  111. package/dist/StatusLabel/index.js +29 -0
  112. package/dist/Switch/index.js +13 -0
  113. package/dist/Switch-7d4aa7c3.js +56 -0
  114. package/dist/Table/index.js +66 -0
  115. package/dist/Tabs/index.js +80 -0
  116. package/dist/Text/index.js +13 -0
  117. package/dist/Text-259af966.js +31 -0
  118. package/dist/Toast/index.js +111 -0
  119. package/dist/Tooltip/index.js +16 -0
  120. package/dist/Tooltip-ef3d6ef4.js +112 -0
  121. package/dist/Typography/css/Emphasis.css.d.ts +6 -0
  122. package/dist/Typography/css/FontFamilies.css.d.ts +6 -0
  123. package/dist/Typography/css/FontSizes.css.d.ts +12 -0
  124. package/dist/Typography/css/FontWeights.css.d.ts +10 -0
  125. package/dist/Typography/css/TextAlignment.css.d.ts +7 -0
  126. package/dist/Typography/css/TextCases.css.d.ts +7 -0
  127. package/dist/Typography/css/TextColors.css.d.ts +22 -0
  128. package/dist/Typography/css/Truncate.css.d.ts +5 -0
  129. package/dist/Typography/css/Typography.css.d.ts +5 -0
  130. package/dist/Typography/index.js +12 -0
  131. package/dist/Typography-c45bf216.js +62 -0
  132. package/dist/getAtlantisConfig-0f3e8af2.js +13 -0
  133. package/dist/style-inject.es-9d2f5f4e.js +30 -0
  134. package/dist/tslib.es6-754e2961.js +46 -0
  135. package/package.json +4 -371
  136. package/rollup.config.js +77 -21
  137. package/dist/index.cjs +0 -6721
  138. package/dist/index.d.ts +0 -73
  139. package/dist/index.esm.js +0 -6603
package/package.json CHANGED
@@ -1,376 +1,9 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.85.4-CJS-to-ESM.1+529ec338",
3
+ "version": "4.85.4",
4
4
  "license": "MIT",
5
- "main": "dist/index.esm.js",
5
+ "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
- "type": "module",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/index.d.ts",
11
- "import": "./dist/index.esm.js"
12
- },
13
- "./AnimatedPresence": {
14
- "types": "./dist/AnimatedPresence/index.d.ts",
15
- "import": "./dist/index.esm.js",
16
- "require": "./dist/index.cjs"
17
- },
18
- "./AnimatedSwitcher": {
19
- "types": "./dist/AnimatedSwitcher/index.d.ts",
20
- "import": "./dist/index.esm.js",
21
- "require": "./dist/index.cjs"
22
- },
23
- "./Autocomplete": {
24
- "types": "./dist/Autocomplete/index.d.ts",
25
- "import": "./dist/index.esm.js",
26
- "require": "./dist/index.cjs"
27
- },
28
- "./Avatar": {
29
- "types": "./dist/Avatar/index.d.ts",
30
- "import": "./dist/index.esm.js",
31
- "require": "./dist/index.cjs"
32
- },
33
- "./Banner": {
34
- "types": "./dist/Banner/index.d.ts",
35
- "import": "./dist/index.esm.js",
36
- "require": "./dist/index.cjs"
37
- },
38
- "./Button": {
39
- "types": "./dist/Button/index.d.ts",
40
- "import": "./dist/index.esm.js",
41
- "require": "./dist/index.cjs"
42
- },
43
- "./ButtonDismiss": {
44
- "types": "./dist/ButtonDismiss/index.d.ts",
45
- "import": "./dist/index.esm.js",
46
- "require": "./dist/index.cjs"
47
- },
48
- "./Card": {
49
- "types": "./dist/Card/index.d.ts",
50
- "import": "./dist/index.esm.js",
51
- "require": "./dist/index.cjs"
52
- },
53
- "./Checkbox": {
54
- "types": "./dist/Checkbox/index.d.ts",
55
- "import": "./dist/index.esm.js",
56
- "require": "./dist/index.cjs"
57
- },
58
- "./Chip": {
59
- "types": "./dist/Chip/index.d.ts",
60
- "import": "./dist/index.esm.js",
61
- "require": "./dist/index.cjs"
62
- },
63
- "./Chips": {
64
- "types": "./dist/Chips/index.d.ts",
65
- "import": "./dist/index.esm.js",
66
- "require": "./dist/index.cjs"
67
- },
68
- "./Combobox": {
69
- "types": "./dist/Combobox/index.d.ts",
70
- "import": "./dist/index.esm.js",
71
- "require": "./dist/index.cjs"
72
- },
73
- "./ConfirmationModal": {
74
- "types": "./dist/ConfirmationModal/index.d.ts",
75
- "import": "./dist/index.esm.js",
76
- "require": "./dist/index.cjs"
77
- },
78
- "./Content": {
79
- "types": "./dist/Content/index.d.ts",
80
- "import": "./dist/index.esm.js",
81
- "require": "./dist/index.cjs"
82
- },
83
- "./Countdown": {
84
- "types": "./dist/Countdown/index.d.ts",
85
- "import": "./dist/index.esm.js",
86
- "require": "./dist/index.cjs"
87
- },
88
- "./DataDump": {
89
- "types": "./dist/DataDump/index.d.ts",
90
- "import": "./dist/index.esm.js",
91
- "require": "./dist/index.cjs"
92
- },
93
- "./DataList": {
94
- "types": "./dist/DataList/index.d.ts",
95
- "import": "./dist/index.esm.js",
96
- "require": "./dist/index.cjs"
97
- },
98
- "./DataTable": {
99
- "types": "./dist/DataTable/index.d.ts",
100
- "import": "./dist/index.esm.js",
101
- "require": "./dist/index.cjs"
102
- },
103
- "./DatePicker": {
104
- "types": "./dist/DatePicker/index.d.ts",
105
- "import": "./dist/index.esm.js",
106
- "require": "./dist/index.cjs"
107
- },
108
- "./DescriptionList": {
109
- "types": "./dist/DescriptionList/index.d.ts",
110
- "import": "./dist/index.esm.js",
111
- "require": "./dist/index.cjs"
112
- },
113
- "./Disclosure": {
114
- "types": "./dist/Disclosure/index.d.ts",
115
- "import": "./dist/index.esm.js",
116
- "require": "./dist/index.cjs"
117
- },
118
- "./Divider": {
119
- "types": "./dist/Divider/index.d.ts",
120
- "import": "./dist/index.esm.js",
121
- "require": "./dist/index.cjs"
122
- },
123
- "./Drawer": {
124
- "types": "./dist/Drawer/index.d.ts",
125
- "import": "./dist/index.esm.js",
126
- "require": "./dist/index.cjs"
127
- },
128
- "./Emphasis": {
129
- "types": "./dist/Emphasis/index.d.ts",
130
- "import": "./dist/index.esm.js",
131
- "require": "./dist/index.cjs"
132
- },
133
- "./FeatureSwitch": {
134
- "types": "./dist/FeatureSwitch/index.d.ts",
135
- "import": "./dist/index.esm.js",
136
- "require": "./dist/index.cjs"
137
- },
138
- "./Flex": {
139
- "types": "./dist/Flex/index.d.ts",
140
- "import": "./dist/index.esm.js",
141
- "require": "./dist/index.cjs"
142
- },
143
- "./Form": {
144
- "types": "./dist/Form/index.d.ts",
145
- "import": "./dist/index.esm.js",
146
- "require": "./dist/index.cjs"
147
- },
148
- "./FormField": {
149
- "types": "./dist/FormField/index.d.ts",
150
- "import": "./dist/index.esm.js",
151
- "require": "./dist/index.cjs"
152
- },
153
- "./FormatDate": {
154
- "types": "./dist/FormatDate/index.d.ts",
155
- "import": "./dist/index.esm.js",
156
- "require": "./dist/index.cjs"
157
- },
158
- "./FormatEmail": {
159
- "types": "./dist/FormatEmail/index.d.ts",
160
- "import": "./dist/index.esm.js",
161
- "require": "./dist/index.cjs"
162
- },
163
- "./FormatFile": {
164
- "types": "./dist/FormatFile/index.d.ts",
165
- "import": "./dist/index.esm.js",
166
- "require": "./dist/index.cjs"
167
- },
168
- "./FormatRelativeDateTime": {
169
- "types": "./dist/FormatRelativeDateTime/index.d.ts",
170
- "import": "./dist/index.esm.js",
171
- "require": "./dist/index.cjs"
172
- },
173
- "./FormatTime": {
174
- "types": "./dist/FormatTime/index.d.ts",
175
- "import": "./dist/index.esm.js",
176
- "require": "./dist/index.cjs"
177
- },
178
- "./Gallery": {
179
- "types": "./dist/Gallery/index.d.ts",
180
- "import": "./dist/index.esm.js",
181
- "require": "./dist/index.cjs"
182
- },
183
- "./Glimmer": {
184
- "types": "./dist/Glimmer/index.d.ts",
185
- "import": "./dist/index.esm.js",
186
- "require": "./dist/index.cjs"
187
- },
188
- "./Grid": {
189
- "types": "./dist/Grid/index.d.ts",
190
- "import": "./dist/index.esm.js",
191
- "require": "./dist/index.cjs"
192
- },
193
- "./Heading": {
194
- "types": "./dist/Heading/index.d.ts",
195
- "import": "./dist/index.esm.js",
196
- "require": "./dist/index.cjs"
197
- },
198
- "./Icon": {
199
- "types": "./dist/Icon/index.d.ts",
200
- "import": "./dist/index.esm.js",
201
- "require": "./dist/index.cjs"
202
- },
203
- "./InlineLabel": {
204
- "types": "./dist/InlineLabel/index.d.ts",
205
- "import": "./dist/index.esm.js",
206
- "require": "./dist/index.cjs"
207
- },
208
- "./InputAvatar": {
209
- "types": "./dist/InputAvatar/index.d.ts",
210
- "import": "./dist/index.esm.js",
211
- "require": "./dist/index.cjs"
212
- },
213
- "./InputDate": {
214
- "types": "./dist/InputDate/index.d.ts",
215
- "import": "./dist/index.esm.js",
216
- "require": "./dist/index.cjs"
217
- },
218
- "./InputEmail": {
219
- "types": "./dist/InputEmail/index.d.ts",
220
- "import": "./dist/index.esm.js",
221
- "require": "./dist/index.cjs"
222
- },
223
- "./InputFile": {
224
- "types": "./dist/InputFile/index.d.ts",
225
- "import": "./dist/index.esm.js",
226
- "require": "./dist/index.cjs"
227
- },
228
- "./InputGroup": {
229
- "types": "./dist/InputGroup/index.d.ts",
230
- "import": "./dist/index.esm.js",
231
- "require": "./dist/index.cjs"
232
- },
233
- "./InputNumber": {
234
- "types": "./dist/InputNumber/index.d.ts",
235
- "import": "./dist/index.esm.js",
236
- "require": "./dist/index.cjs"
237
- },
238
- "./InputPassword": {
239
- "types": "./dist/InputPassword/index.d.ts",
240
- "import": "./dist/index.esm.js",
241
- "require": "./dist/index.cjs"
242
- },
243
- "./InputPhoneNumber": {
244
- "types": "./dist/InputPhoneNumber/index.d.ts",
245
- "import": "./dist/index.esm.js",
246
- "require": "./dist/index.cjs"
247
- },
248
- "./InputText": {
249
- "types": "./dist/InputText/index.d.ts",
250
- "import": "./dist/index.esm.js",
251
- "require": "./dist/index.cjs"
252
- },
253
- "./InputTime": {
254
- "types": "./dist/InputTime/index.d.ts",
255
- "import": "./dist/index.esm.js",
256
- "require": "./dist/index.cjs"
257
- },
258
- "./InputValidation": {
259
- "types": "./dist/InputValidation/index.d.ts",
260
- "import": "./dist/index.esm.js",
261
- "require": "./dist/index.cjs"
262
- },
263
- "./LightBox": {
264
- "types": "./dist/LightBox/index.d.ts",
265
- "import": "./dist/index.esm.js",
266
- "require": "./dist/index.cjs"
267
- },
268
- "./Link": {
269
- "types": "./dist/Link/index.d.ts",
270
- "import": "./dist/index.esm.js",
271
- "require": "./dist/index.cjs"
272
- },
273
- "./List": {
274
- "types": "./dist/List/index.d.ts",
275
- "import": "./dist/index.esm.js",
276
- "require": "./dist/index.cjs"
277
- },
278
- "./Markdown": {
279
- "types": "./dist/Markdown/index.d.ts",
280
- "import": "./dist/index.esm.js",
281
- "require": "./dist/index.cjs"
282
- },
283
- "./Menu": {
284
- "types": "./dist/Menu/index.d.ts",
285
- "import": "./dist/index.esm.js",
286
- "require": "./dist/index.cjs"
287
- },
288
- "./Modal": {
289
- "types": "./dist/Modal/index.d.ts",
290
- "import": "./dist/index.esm.js",
291
- "require": "./dist/index.cjs"
292
- },
293
- "./MultiSelect": {
294
- "types": "./dist/MultiSelect/index.d.ts",
295
- "import": "./dist/index.esm.js",
296
- "require": "./dist/index.cjs"
297
- },
298
- "./Page": {
299
- "types": "./dist/Page/index.d.ts",
300
- "import": "./dist/index.esm.js",
301
- "require": "./dist/index.cjs"
302
- },
303
- "./Popover": {
304
- "types": "./dist/Popover/index.d.ts",
305
- "import": "./dist/index.esm.js",
306
- "require": "./dist/index.cjs"
307
- },
308
- "./ProgressBar": {
309
- "types": "./dist/ProgressBar/index.d.ts",
310
- "import": "./dist/index.esm.js",
311
- "require": "./dist/index.cjs"
312
- },
313
- "./RadioGroup": {
314
- "types": "./dist/RadioGroup/index.d.ts",
315
- "import": "./dist/index.esm.js",
316
- "require": "./dist/index.cjs"
317
- },
318
- "./RecurringSelect": {
319
- "types": "./dist/RecurringSelect/index.d.ts",
320
- "import": "./dist/index.esm.js",
321
- "require": "./dist/index.cjs"
322
- },
323
- "./Select": {
324
- "types": "./dist/Select/index.d.ts",
325
- "import": "./dist/index.esm.js",
326
- "require": "./dist/index.cjs"
327
- },
328
- "./Spinner": {
329
- "types": "./dist/Spinner/index.d.ts",
330
- "import": "./dist/index.esm.js",
331
- "require": "./dist/index.cjs"
332
- },
333
- "./StatusLabel": {
334
- "types": "./dist/StatusLabel/index.d.ts",
335
- "import": "./dist/index.esm.js",
336
- "require": "./dist/index.cjs"
337
- },
338
- "./Switch": {
339
- "types": "./dist/Switch/index.d.ts",
340
- "import": "./dist/index.esm.js",
341
- "require": "./dist/index.cjs"
342
- },
343
- "./Table": {
344
- "types": "./dist/Table/index.d.ts",
345
- "import": "./dist/index.esm.js",
346
- "require": "./dist/index.cjs"
347
- },
348
- "./Tabs": {
349
- "types": "./dist/Tabs/index.d.ts",
350
- "import": "./dist/index.esm.js",
351
- "require": "./dist/index.cjs"
352
- },
353
- "./Text": {
354
- "types": "./dist/Text/index.d.ts",
355
- "import": "./dist/index.esm.js",
356
- "require": "./dist/index.cjs"
357
- },
358
- "./Toast": {
359
- "types": "./dist/Toast/index.d.ts",
360
- "import": "./dist/index.esm.js",
361
- "require": "./dist/index.cjs"
362
- },
363
- "./Tooltip": {
364
- "types": "./dist/Tooltip/index.d.ts",
365
- "import": "./dist/index.esm.js",
366
- "require": "./dist/index.cjs"
367
- },
368
- "./Typography": {
369
- "types": "./dist/Typography/index.d.ts",
370
- "import": "./dist/index.esm.js",
371
- "require": "./dist/index.cjs"
372
- }
373
- },
374
7
  "scripts": {
375
8
  "build": "rollup --config",
376
9
  "bootstrap": "npm run clean; npm run build",
@@ -387,7 +20,7 @@
387
20
  ],
388
21
  "dependencies": {
389
22
  "@jobber/design": "^0.55.1",
390
- "@jobber/formatters": "^0.2.2",
23
+ "@jobber/formatters": "*",
391
24
  "@jobber/hooks": "^2.9.1",
392
25
  "@popperjs/core": "^2.0.6",
393
26
  "@std-proposal/temporal": "0.0.1",
@@ -447,5 +80,5 @@
447
80
  "> 1%",
448
81
  "IE 10"
449
82
  ],
450
- "gitHead": "529ec338f2de49703778b52457b0533cf7c16fa3"
83
+ "gitHead": "615f364735ac965736352b7582c17e5902ff670e"
451
84
  }
package/rollup.config.js CHANGED
@@ -1,13 +1,19 @@
1
+ /* eslint-disable import/no-default-export */
2
+ import multiInput from "rollup-plugin-multi-input";
1
3
  import typescript from "@rollup/plugin-typescript";
2
4
  import postcss from "rollup-plugin-postcss";
3
- import postcssImport from "postcss-import";
4
- import autoprefixer from "autoprefixer";
5
- import postcssPresetEnv from "postcss-preset-env";
5
+ import commonjs from "@rollup/plugin-commonjs";
6
+ import copy from "rollup-plugin-copy";
6
7
 
7
- // eslint-disable-next-line import/no-default-export
8
8
  export default {
9
- input: `src/index.tsx`,
9
+ input: `src/*/index.{ts,tsx}`,
10
10
  plugins: [
11
+ multiInput(),
12
+ typescript({
13
+ tsconfig: "./tsconfig.rollup.json",
14
+ declarationDir: "dist",
15
+ noEmitOnError: true,
16
+ }),
11
17
  postcss({
12
18
  modules: {
13
19
  generateScopedName: "[hash:base64]",
@@ -15,33 +21,83 @@ export default {
15
21
  },
16
22
  autoModules: false,
17
23
  plugins: [
18
- postcssImport({
19
- path: [
20
- "@jobber/design/foundation.css",
21
- "@jobber/design/src/responsiveBreakpoints.css",
24
+ require("postcss-import"),
25
+ require("autoprefixer"),
26
+ require("@csstools/postcss-global-data")({
27
+ files: [
28
+ require.resolve("@jobber/design/foundation.css"),
29
+ require.resolve("@jobber/design/src/responsiveBreakpoints.css"),
22
30
  ],
23
31
  }),
24
- autoprefixer,
25
- postcssPresetEnv({
32
+ require("postcss-preset-env")({
26
33
  stage: 1,
27
34
  preserve: true,
28
35
  }),
29
36
  ],
30
37
  }),
31
-
32
- typescript({
33
- tsconfig: "./tsconfig.rollup.json",
34
- outputToFilesystem: true,
35
- noEmitOnError: true,
38
+ commonjs({
39
+ ignore: ["time-input-polyfill", "time-input-polyfill/supportsTime"],
40
+ }),
41
+ copy({
42
+ targets: [
43
+ { src: "src/Card/colors.css.d.ts", dest: "dist/Card" },
44
+ { src: "src/Content/Spacing.css.d.ts", dest: "dist/Content" },
45
+ { src: "src/Gallery/Gallery.css.d.ts", dest: "dist/Gallery" },
46
+ { src: "src/Grid/GridAlign.css.d.ts", dest: "dist/Grid" },
47
+ { src: "src/Modal/Sizes.css.d.ts", dest: "dist/Modal" },
48
+ { src: "src/ProgressBar/Sizes.css.d.ts", dest: "dist/ProgressBar" },
49
+ {
50
+ src: "src/Typography/css/Emphasis.css.d.ts",
51
+ dest: "dist/Typography/css",
52
+ },
53
+ {
54
+ src: "src/Typography/css/FontFamilies.css.d.ts",
55
+ dest: "dist/Typography/css",
56
+ },
57
+ {
58
+ src: "src/Typography/css/FontSizes.css.d.ts",
59
+ dest: "dist/Typography/css",
60
+ },
61
+ {
62
+ src: "src/Typography/css/FontWeights.css.d.ts",
63
+ dest: "dist/Typography/css",
64
+ },
65
+ {
66
+ src: "src/Typography/css/TextAlignment.css.d.ts",
67
+ dest: "dist/Typography/css",
68
+ },
69
+ {
70
+ src: "src/Typography/css/TextCases.css.d.ts",
71
+ dest: "dist/Typography/css",
72
+ },
73
+ {
74
+ src: "src/Typography/css/TextColors.css.d.ts",
75
+ dest: "dist/Typography/css",
76
+ },
77
+ {
78
+ src: "src/Typography/css/Truncate.css.d.ts",
79
+ dest: "dist/Typography/css",
80
+ },
81
+ {
82
+ src: "src/Typography/css/Typography.css.d.ts",
83
+ dest: "dist/Typography/css",
84
+ },
85
+ { src: "src/Glimmer/style/Shape.css.d.ts", dest: "dist/Glimmer/style" },
86
+ { src: "src/Glimmer/style/Sizes.css.d.ts", dest: "dist/Glimmer/style" },
87
+ {
88
+ src: "src/Glimmer/style/Timing.css.d.ts",
89
+ dest: "dist/Glimmer/style",
90
+ },
91
+ {
92
+ src: "src/Combobox/components/ComboboxContent/ComboboxContentList/ComboboxContent.css.d.ts",
93
+ dest: "dist/Combobox/components/ComboboxContent/ComboboxContentList",
94
+ },
95
+ ],
36
96
  }),
37
97
  ],
38
98
  output: [
39
99
  {
40
- file: "dist/index.esm.js",
41
- format: "esm",
42
- },
43
- {
44
- file: "dist/index.cjs",
100
+ dir: "dist",
45
101
  format: "cjs",
46
102
  },
47
103
  ],