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

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/dist/index.cjs +6721 -0
  2. package/dist/index.d.ts +73 -0
  3. package/dist/index.esm.js +6603 -0
  4. package/package.json +371 -4
  5. package/rollup.config.js +21 -77
  6. package/.eslintrc.js +0 -10
  7. package/dist/AnimatedPresence/index.js +0 -12
  8. package/dist/AnimatedPresence-20a02aaa.js +0 -104
  9. package/dist/AnimatedSwitcher/index.js +0 -13
  10. package/dist/AnimatedSwitcher-3d45ec5d.js +0 -96
  11. package/dist/Autocomplete/index.js +0 -209
  12. package/dist/Avatar/index.js +0 -15
  13. package/dist/Avatar-76a799fa.js +0 -78
  14. package/dist/Banner/index.js +0 -110
  15. package/dist/Button/index.js +0 -16
  16. package/dist/Button-b73a5e01.js +0 -57
  17. package/dist/ButtonDismiss/index.js +0 -17
  18. package/dist/ButtonDismiss-350af163.js +0 -14
  19. package/dist/Card/colors.css.d.ts +0 -89
  20. package/dist/Card/index.js +0 -24
  21. package/dist/Card-e3144022.js +0 -93
  22. package/dist/Checkbox/index.js +0 -18
  23. package/dist/Checkbox-787e2e47.js +0 -63
  24. package/dist/Chip/index.js +0 -41
  25. package/dist/Chip-3d1bfddc.js +0 -89
  26. package/dist/Chips/index.js +0 -524
  27. package/dist/Combobox/index.js +0 -40
  28. package/dist/Combobox-a24c8241.js +0 -479
  29. package/dist/ConfirmationModal/index.js +0 -31
  30. package/dist/ConfirmationModal-52e16873.js +0 -100
  31. package/dist/Content/Spacing.css.d.ts +0 -13
  32. package/dist/Content/index.js +0 -12
  33. package/dist/Content-e3f7b6fc.js +0 -24
  34. package/dist/Countdown/index.js +0 -72
  35. package/dist/DataDump/index.js +0 -37
  36. package/dist/DataList/index.js +0 -1335
  37. package/dist/DataTable/index.js +0 -301
  38. package/dist/DatePicker/index.js +0 -20
  39. package/dist/DatePicker-64c5ab1a.js +0 -134
  40. package/dist/DescriptionList/index.js +0 -24
  41. package/dist/Disclosure/index.js +0 -46
  42. package/dist/Divider/index.js +0 -29
  43. package/dist/Drawer/index.js +0 -49
  44. package/dist/Emphasis/index.js +0 -13
  45. package/dist/Emphasis-bda56d3b.js +0 -19
  46. package/dist/FeatureSwitch/index.js +0 -70
  47. package/dist/Flex/index.js +0 -12
  48. package/dist/Flex-d490c4db.js +0 -38
  49. package/dist/Form/index.js +0 -56
  50. package/dist/FormField/index.js +0 -24
  51. package/dist/FormField-6ff183f8.js +0 -253
  52. package/dist/FormatDate/index.js +0 -11
  53. package/dist/FormatDate-70ea5b43.js +0 -34
  54. package/dist/FormatEmail/index.js +0 -23
  55. package/dist/FormatFile/index.js +0 -36
  56. package/dist/FormatFile-f036902d.js +0 -162
  57. package/dist/FormatRelativeDateTime/index.js +0 -72
  58. package/dist/FormatTime/index.js +0 -36
  59. package/dist/Gallery/Gallery.css.d.ts +0 -9
  60. package/dist/Gallery/index.js +0 -99
  61. package/dist/Glimmer/index.js +0 -15
  62. package/dist/Glimmer/style/Shape.css.d.ts +0 -9
  63. package/dist/Glimmer/style/Sizes.css.d.ts +0 -10
  64. package/dist/Glimmer/style/Timing.css.d.ts +0 -6
  65. package/dist/Glimmer-84dee1ed.js +0 -77
  66. package/dist/Grid/GridAlign.css.d.ts +0 -8
  67. package/dist/Grid/index.js +0 -76
  68. package/dist/Heading/index.js +0 -14
  69. package/dist/Heading-1e8e4bd3.js +0 -55
  70. package/dist/Icon/index.js +0 -11
  71. package/dist/Icon-405a216c.js +0 -40
  72. package/dist/InlineLabel/index.js +0 -13
  73. package/dist/InlineLabel-a6557829.js +0 -28
  74. package/dist/InputAvatar/index.js +0 -70
  75. package/dist/InputDate/index.js +0 -57
  76. package/dist/InputEmail/index.js +0 -43
  77. package/dist/InputFile/index.js +0 -25
  78. package/dist/InputFile-bb945071.js +0 -190
  79. package/dist/InputGroup/index.js +0 -12
  80. package/dist/InputGroup-8d4fd4eb.js +0 -33
  81. package/dist/InputNumber/index.js +0 -25
  82. package/dist/InputNumber-d451b52e.js +0 -62
  83. package/dist/InputPassword/index.js +0 -41
  84. package/dist/InputPhoneNumber/index.js +0 -116
  85. package/dist/InputText/index.js +0 -26
  86. package/dist/InputText-55b6cb65.js +0 -102
  87. package/dist/InputTime/index.js +0 -209
  88. package/dist/InputValidation/index.js +0 -17
  89. package/dist/InputValidation-05e839fa.js +0 -29
  90. package/dist/LightBox/index.js +0 -24
  91. package/dist/LightBox-a89d8863.js +0 -117
  92. package/dist/Link/index.js +0 -15
  93. package/dist/List/index.js +0 -93
  94. package/dist/Markdown/index.js +0 -19
  95. package/dist/Markdown-f7c55304.js +0 -62
  96. package/dist/Menu/index.js +0 -21
  97. package/dist/Menu-083fc4c4.js +0 -139
  98. package/dist/Modal/Sizes.css.d.ts +0 -6
  99. package/dist/Modal/index.js +0 -25
  100. package/dist/Modal-c336cac6.js +0 -71
  101. package/dist/MultiSelect/index.js +0 -182
  102. package/dist/Option-3c4d377e.js +0 -19
  103. package/dist/Page/index.js +0 -78
  104. package/dist/Popover/index.js +0 -61
  105. package/dist/ProgressBar/Sizes.css.d.ts +0 -7
  106. package/dist/ProgressBar/index.js +0 -12
  107. package/dist/ProgressBar-b68edc8f.js +0 -43
  108. package/dist/RadioGroup/index.js +0 -15
  109. package/dist/RadioGroup-17b67ade.js +0 -46
  110. package/dist/RecurringSelect/index.js +0 -227
  111. package/dist/Select/index.js +0 -26
  112. package/dist/Spinner/index.js +0 -12
  113. package/dist/Spinner-9d8fc7ff.js +0 -24
  114. package/dist/StatusIndicator/index.js +0 -11
  115. package/dist/StatusIndicator-b179d06e.js +0 -18
  116. package/dist/StatusLabel/index.js +0 -29
  117. package/dist/Switch/index.js +0 -13
  118. package/dist/Switch-7d4aa7c3.js +0 -56
  119. package/dist/Table/index.js +0 -66
  120. package/dist/Tabs/index.js +0 -80
  121. package/dist/Text/index.js +0 -13
  122. package/dist/Text-259af966.js +0 -31
  123. package/dist/Toast/index.js +0 -111
  124. package/dist/Tooltip/index.js +0 -16
  125. package/dist/Tooltip-ef3d6ef4.js +0 -112
  126. package/dist/Typography/css/Emphasis.css.d.ts +0 -6
  127. package/dist/Typography/css/FontFamilies.css.d.ts +0 -6
  128. package/dist/Typography/css/FontSizes.css.d.ts +0 -12
  129. package/dist/Typography/css/FontWeights.css.d.ts +0 -10
  130. package/dist/Typography/css/TextAlignment.css.d.ts +0 -7
  131. package/dist/Typography/css/TextCases.css.d.ts +0 -7
  132. package/dist/Typography/css/TextColors.css.d.ts +0 -22
  133. package/dist/Typography/css/Truncate.css.d.ts +0 -5
  134. package/dist/Typography/css/Typography.css.d.ts +0 -5
  135. package/dist/Typography/index.js +0 -12
  136. package/dist/Typography-c45bf216.js +0 -62
  137. package/dist/getAtlantisConfig-0f3e8af2.js +0 -13
  138. package/dist/style-inject.es-9d2f5f4e.js +0 -30
  139. package/dist/tslib.es6-754e2961.js +0 -46
package/package.json CHANGED
@@ -1,9 +1,376 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.85.3",
3
+ "version": "4.85.4-CJS-to-ESM.1+529ec338",
4
4
  "license": "MIT",
5
- "main": "dist/index.js",
5
+ "main": "dist/index.esm.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
+ },
7
374
  "scripts": {
8
375
  "build": "rollup --config",
9
376
  "bootstrap": "npm run clean; npm run build",
@@ -20,7 +387,7 @@
20
387
  ],
21
388
  "dependencies": {
22
389
  "@jobber/design": "^0.55.1",
23
- "@jobber/formatters": "*",
390
+ "@jobber/formatters": "^0.2.2",
24
391
  "@jobber/hooks": "^2.9.1",
25
392
  "@popperjs/core": "^2.0.6",
26
393
  "@std-proposal/temporal": "0.0.1",
@@ -80,5 +447,5 @@
80
447
  "> 1%",
81
448
  "IE 10"
82
449
  ],
83
- "gitHead": "455afb03326e0a0e5b175acf72fae6bdd71b866b"
450
+ "gitHead": "529ec338f2de49703778b52457b0533cf7c16fa3"
84
451
  }
package/rollup.config.js CHANGED
@@ -1,19 +1,13 @@
1
- /* eslint-disable import/no-default-export */
2
- import multiInput from "rollup-plugin-multi-input";
3
1
  import typescript from "@rollup/plugin-typescript";
4
2
  import postcss from "rollup-plugin-postcss";
5
- import commonjs from "@rollup/plugin-commonjs";
6
- import copy from "rollup-plugin-copy";
3
+ import postcssImport from "postcss-import";
4
+ import autoprefixer from "autoprefixer";
5
+ import postcssPresetEnv from "postcss-preset-env";
7
6
 
7
+ // eslint-disable-next-line import/no-default-export
8
8
  export default {
9
- input: `src/*/index.{ts,tsx}`,
9
+ input: `src/index.tsx`,
10
10
  plugins: [
11
- multiInput(),
12
- typescript({
13
- tsconfig: "./tsconfig.rollup.json",
14
- declarationDir: "dist",
15
- noEmitOnError: true,
16
- }),
17
11
  postcss({
18
12
  modules: {
19
13
  generateScopedName: "[hash:base64]",
@@ -21,83 +15,33 @@ export default {
21
15
  },
22
16
  autoModules: false,
23
17
  plugins: [
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"),
18
+ postcssImport({
19
+ path: [
20
+ "@jobber/design/foundation.css",
21
+ "@jobber/design/src/responsiveBreakpoints.css",
30
22
  ],
31
23
  }),
32
- require("postcss-preset-env")({
24
+ autoprefixer,
25
+ postcssPresetEnv({
33
26
  stage: 1,
34
27
  preserve: true,
35
28
  }),
36
29
  ],
37
30
  }),
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
- ],
31
+
32
+ typescript({
33
+ tsconfig: "./tsconfig.rollup.json",
34
+ outputToFilesystem: true,
35
+ noEmitOnError: true,
96
36
  }),
97
37
  ],
98
38
  output: [
99
39
  {
100
- dir: "dist",
40
+ file: "dist/index.esm.js",
41
+ format: "esm",
42
+ },
43
+ {
44
+ file: "dist/index.cjs",
101
45
  format: "cjs",
102
46
  },
103
47
  ],
package/.eslintrc.js DELETED
@@ -1,10 +0,0 @@
1
- module.exports = {
2
- rules: {
3
- "import/no-internal-modules": [
4
- "error",
5
- {
6
- allow: ["**"],
7
- },
8
- ],
9
- },
10
- };
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var AnimatedPresence = require('../AnimatedPresence-20a02aaa.js');
6
- require('react');
7
- require('framer-motion');
8
- require('@jobber/design');
9
-
10
-
11
-
12
- exports.AnimatedPresence = AnimatedPresence.AnimatedPresence;
@@ -1,104 +0,0 @@
1
- 'use strict';
2
-
3
- var React = require('react');
4
- var framerMotion = require('framer-motion');
5
- var design = require('@jobber/design');
6
-
7
- function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
-
9
- var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
10
-
11
- const TIMING_QUICK = toSeconds(design.tokens["timing-quick"]);
12
- const TIMING_BASE = toSeconds(design.tokens["timing-base"]);
13
- const baseTransition = {
14
- visible: { opacity: 1 },
15
- hidden: { opacity: 0 },
16
- };
17
- const fade = {
18
- visible: { opacity: 1 },
19
- hidden: { opacity: 0 },
20
- };
21
- const popIn = {
22
- visible: Object.assign({ scale: 1 }, baseTransition.visible),
23
- hidden: Object.assign({ scale: 0.95 }, baseTransition.hidden),
24
- };
25
- const fromTop = {
26
- visible: Object.assign({ y: 0 }, baseTransition.visible),
27
- hidden: Object.assign({ y: -design.tokens["space-base"] }, baseTransition.hidden),
28
- };
29
- const fromBottom = {
30
- visible: Object.assign({ y: 0 }, baseTransition.visible),
31
- hidden: Object.assign({ y: design.tokens["space-base"] }, baseTransition.hidden),
32
- };
33
- const fromLeft = {
34
- visible: Object.assign({ x: 0 }, baseTransition.visible),
35
- hidden: Object.assign({ x: -design.tokens["space-base"] }, baseTransition.hidden),
36
- };
37
- const fromRight = {
38
- visible: Object.assign({ x: 0 }, baseTransition.visible),
39
- hidden: Object.assign({ x: design.tokens["space-base"] }, baseTransition.hidden),
40
- };
41
- const fromLeftToRight = {
42
- initial: Object.assign({ x: -design.tokens["space-base"] }, baseTransition.hidden),
43
- visible: Object.assign({ x: 0 }, baseTransition.visible),
44
- hidden: Object.assign({ x: design.tokens["space-base"] }, baseTransition.hidden),
45
- };
46
- const fromRightToLeft = {
47
- initial: Object.assign({ x: design.tokens["space-base"] }, baseTransition.hidden),
48
- visible: Object.assign({ x: 0 }, baseTransition.visible),
49
- hidden: Object.assign({ x: -design.tokens["space-base"] }, baseTransition.hidden),
50
- };
51
- function toSeconds(ms) {
52
- return ms / 1000;
53
- }
54
-
55
- function usePreviousValue(value) {
56
- const [previousValue, setPreviousValue] = React.useState(value);
57
- React.useEffect(() => {
58
- setPreviousValue(value);
59
- }, [value]);
60
- return [previousValue, setPreviousValue];
61
- }
62
-
63
- const transitions = {
64
- fromBottom,
65
- fromTop,
66
- fromLeft,
67
- fromRight,
68
- popIn,
69
- fromLeftToRight,
70
- fromRightToLeft,
71
- fade,
72
- };
73
- function AnimatedPresence(props) {
74
- const shouldReduceMotion = framerMotion.useReducedMotion();
75
- if (shouldReduceMotion) {
76
- return React__default["default"].createElement(React__default["default"].Fragment, null, props.children);
77
- }
78
- return React__default["default"].createElement(InternalAnimatedPresence, Object.assign({}, props));
79
- }
80
- function InternalAnimatedPresence({ transition = "fromTop", initial = false, children, }) {
81
- const transitionVariation = transitions[transition];
82
- const hasInitialTransition = "initial" in transitionVariation;
83
- const childCount = React.Children.count(children);
84
- // Set the initial value to 0 so it staggers the animation on mount when
85
- // initial is true.
86
- const [lastChildIndex, setLastChildIndex] = usePreviousValue(0);
87
- // Whenever the children count changes, update the last index.
88
- React.useEffect(() => {
89
- setLastChildIndex(childCount - 1);
90
- }, [childCount]);
91
- return (React__default["default"].createElement(framerMotion.AnimatePresence, { initial: initial, mode: "popLayout" }, React.Children.map(children, (child, i) => child && (React__default["default"].createElement(framerMotion.motion.div, { layout: true, variants: transitionVariation, initial: hasInitialTransition ? "initial" : "hidden", animate: "visible", exit: "hidden", transition: {
92
- duration: TIMING_BASE,
93
- delay: generateDelayTime(i),
94
- } }, child)))));
95
- function generateDelayTime(index) {
96
- // Don't add a delay if it's already rendered.
97
- if (lastChildIndex > index)
98
- return 0;
99
- // Stagger the animation starting after the previous last child index.
100
- return (index - lastChildIndex) * TIMING_QUICK;
101
- }
102
- }
103
-
104
- exports.AnimatedPresence = AnimatedPresence;
@@ -1,13 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var AnimatedSwitcher = require('../AnimatedSwitcher-3d45ec5d.js');
6
- require('react');
7
- require('framer-motion');
8
- require('../Icon-405a216c.js');
9
- require('@jobber/design');
10
-
11
-
12
-
13
- exports.AnimatedSwitcher = AnimatedSwitcher.AnimatedSwitcher;