@jobber/components 4.85.3 → 4.85.4-CJS-to-ESM.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 (139) hide show
  1. package/dist/index.cjs.js +6721 -0
  2. package/dist/index.d.ts +73 -0
  3. package/dist/index.esm.js +6603 -0
  4. package/package.json +371 -3
  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,377 @@
1
1
  {
2
2
  "name": "@jobber/components",
3
- "version": "4.85.3",
3
+ "version": "4.85.4-CJS-to-ESM.0+fdec90f6",
4
4
  "license": "MIT",
5
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
+ "require": "./dist/index.cjs.js"
13
+ },
14
+ "./AnimatedPresence": {
15
+ "types": "./dist/AnimatedPresence/index.d.ts",
16
+ "import": "./dist/index.esm.js",
17
+ "require": "./dist/index.cjs.js"
18
+ },
19
+ "./AnimatedSwitcher": {
20
+ "types": "./dist/AnimatedSwitcher/index.d.ts",
21
+ "import": "./dist/index.esm.js",
22
+ "require": "./dist/index.cjs.js"
23
+ },
24
+ "./Autocomplete": {
25
+ "types": "./dist/Autocomplete/index.d.ts",
26
+ "import": "./dist/index.esm.js",
27
+ "require": "./dist/index.cjs.js"
28
+ },
29
+ "./Avatar": {
30
+ "types": "./dist/Avatar/index.d.ts",
31
+ "import": "./dist/index.esm.js",
32
+ "require": "./dist/index.cjs.js"
33
+ },
34
+ "./Banner": {
35
+ "types": "./dist/Banner/index.d.ts",
36
+ "import": "./dist/index.esm.js",
37
+ "require": "./dist/index.cjs.js"
38
+ },
39
+ "./Button": {
40
+ "types": "./dist/Button/index.d.ts",
41
+ "import": "./dist/index.esm.js",
42
+ "require": "./dist/index.cjs.js"
43
+ },
44
+ "./ButtonDismiss": {
45
+ "types": "./dist/ButtonDismiss/index.d.ts",
46
+ "import": "./dist/index.esm.js",
47
+ "require": "./dist/index.cjs.js"
48
+ },
49
+ "./Card": {
50
+ "types": "./dist/Card/index.d.ts",
51
+ "import": "./dist/index.esm.js",
52
+ "require": "./dist/index.cjs.js"
53
+ },
54
+ "./Checkbox": {
55
+ "types": "./dist/Checkbox/index.d.ts",
56
+ "import": "./dist/index.esm.js",
57
+ "require": "./dist/index.cjs.js"
58
+ },
59
+ "./Chip": {
60
+ "types": "./dist/Chip/index.d.ts",
61
+ "import": "./dist/index.esm.js",
62
+ "require": "./dist/index.cjs.js"
63
+ },
64
+ "./Chips": {
65
+ "types": "./dist/Chips/index.d.ts",
66
+ "import": "./dist/index.esm.js",
67
+ "require": "./dist/index.cjs.js"
68
+ },
69
+ "./Combobox": {
70
+ "types": "./dist/Combobox/index.d.ts",
71
+ "import": "./dist/index.esm.js",
72
+ "require": "./dist/index.cjs.js"
73
+ },
74
+ "./ConfirmationModal": {
75
+ "types": "./dist/ConfirmationModal/index.d.ts",
76
+ "import": "./dist/index.esm.js",
77
+ "require": "./dist/index.cjs.js"
78
+ },
79
+ "./Content": {
80
+ "types": "./dist/Content/index.d.ts",
81
+ "import": "./dist/index.esm.js",
82
+ "require": "./dist/index.cjs.js"
83
+ },
84
+ "./Countdown": {
85
+ "types": "./dist/Countdown/index.d.ts",
86
+ "import": "./dist/index.esm.js",
87
+ "require": "./dist/index.cjs.js"
88
+ },
89
+ "./DataDump": {
90
+ "types": "./dist/DataDump/index.d.ts",
91
+ "import": "./dist/index.esm.js",
92
+ "require": "./dist/index.cjs.js"
93
+ },
94
+ "./DataList": {
95
+ "types": "./dist/DataList/index.d.ts",
96
+ "import": "./dist/index.esm.js",
97
+ "require": "./dist/index.cjs.js"
98
+ },
99
+ "./DataTable": {
100
+ "types": "./dist/DataTable/index.d.ts",
101
+ "import": "./dist/index.esm.js",
102
+ "require": "./dist/index.cjs.js"
103
+ },
104
+ "./DatePicker": {
105
+ "types": "./dist/DatePicker/index.d.ts",
106
+ "import": "./dist/index.esm.js",
107
+ "require": "./dist/index.cjs.js"
108
+ },
109
+ "./DescriptionList": {
110
+ "types": "./dist/DescriptionList/index.d.ts",
111
+ "import": "./dist/index.esm.js",
112
+ "require": "./dist/index.cjs.js"
113
+ },
114
+ "./Disclosure": {
115
+ "types": "./dist/Disclosure/index.d.ts",
116
+ "import": "./dist/index.esm.js",
117
+ "require": "./dist/index.cjs.js"
118
+ },
119
+ "./Divider": {
120
+ "types": "./dist/Divider/index.d.ts",
121
+ "import": "./dist/index.esm.js",
122
+ "require": "./dist/index.cjs.js"
123
+ },
124
+ "./Drawer": {
125
+ "types": "./dist/Drawer/index.d.ts",
126
+ "import": "./dist/index.esm.js",
127
+ "require": "./dist/index.cjs.js"
128
+ },
129
+ "./Emphasis": {
130
+ "types": "./dist/Emphasis/index.d.ts",
131
+ "import": "./dist/index.esm.js",
132
+ "require": "./dist/index.cjs.js"
133
+ },
134
+ "./FeatureSwitch": {
135
+ "types": "./dist/FeatureSwitch/index.d.ts",
136
+ "import": "./dist/index.esm.js",
137
+ "require": "./dist/index.cjs.js"
138
+ },
139
+ "./Flex": {
140
+ "types": "./dist/Flex/index.d.ts",
141
+ "import": "./dist/index.esm.js",
142
+ "require": "./dist/index.cjs.js"
143
+ },
144
+ "./Form": {
145
+ "types": "./dist/Form/index.d.ts",
146
+ "import": "./dist/index.esm.js",
147
+ "require": "./dist/index.cjs.js"
148
+ },
149
+ "./FormField": {
150
+ "types": "./dist/FormField/index.d.ts",
151
+ "import": "./dist/index.esm.js",
152
+ "require": "./dist/index.cjs.js"
153
+ },
154
+ "./FormatDate": {
155
+ "types": "./dist/FormatDate/index.d.ts",
156
+ "import": "./dist/index.esm.js",
157
+ "require": "./dist/index.cjs.js"
158
+ },
159
+ "./FormatEmail": {
160
+ "types": "./dist/FormatEmail/index.d.ts",
161
+ "import": "./dist/index.esm.js",
162
+ "require": "./dist/index.cjs.js"
163
+ },
164
+ "./FormatFile": {
165
+ "types": "./dist/FormatFile/index.d.ts",
166
+ "import": "./dist/index.esm.js",
167
+ "require": "./dist/index.cjs.js"
168
+ },
169
+ "./FormatRelativeDateTime": {
170
+ "types": "./dist/FormatRelativeDateTime/index.d.ts",
171
+ "import": "./dist/index.esm.js",
172
+ "require": "./dist/index.cjs.js"
173
+ },
174
+ "./FormatTime": {
175
+ "types": "./dist/FormatTime/index.d.ts",
176
+ "import": "./dist/index.esm.js",
177
+ "require": "./dist/index.cjs.js"
178
+ },
179
+ "./Gallery": {
180
+ "types": "./dist/Gallery/index.d.ts",
181
+ "import": "./dist/index.esm.js",
182
+ "require": "./dist/index.cjs.js"
183
+ },
184
+ "./Glimmer": {
185
+ "types": "./dist/Glimmer/index.d.ts",
186
+ "import": "./dist/index.esm.js",
187
+ "require": "./dist/index.cjs.js"
188
+ },
189
+ "./Grid": {
190
+ "types": "./dist/Grid/index.d.ts",
191
+ "import": "./dist/index.esm.js",
192
+ "require": "./dist/index.cjs.js"
193
+ },
194
+ "./Heading": {
195
+ "types": "./dist/Heading/index.d.ts",
196
+ "import": "./dist/index.esm.js",
197
+ "require": "./dist/index.cjs.js"
198
+ },
199
+ "./Icon": {
200
+ "types": "./dist/Icon/index.d.ts",
201
+ "import": "./dist/index.esm.js",
202
+ "require": "./dist/index.cjs.js"
203
+ },
204
+ "./InlineLabel": {
205
+ "types": "./dist/InlineLabel/index.d.ts",
206
+ "import": "./dist/index.esm.js",
207
+ "require": "./dist/index.cjs.js"
208
+ },
209
+ "./InputAvatar": {
210
+ "types": "./dist/InputAvatar/index.d.ts",
211
+ "import": "./dist/index.esm.js",
212
+ "require": "./dist/index.cjs.js"
213
+ },
214
+ "./InputDate": {
215
+ "types": "./dist/InputDate/index.d.ts",
216
+ "import": "./dist/index.esm.js",
217
+ "require": "./dist/index.cjs.js"
218
+ },
219
+ "./InputEmail": {
220
+ "types": "./dist/InputEmail/index.d.ts",
221
+ "import": "./dist/index.esm.js",
222
+ "require": "./dist/index.cjs.js"
223
+ },
224
+ "./InputFile": {
225
+ "types": "./dist/InputFile/index.d.ts",
226
+ "import": "./dist/index.esm.js",
227
+ "require": "./dist/index.cjs.js"
228
+ },
229
+ "./InputGroup": {
230
+ "types": "./dist/InputGroup/index.d.ts",
231
+ "import": "./dist/index.esm.js",
232
+ "require": "./dist/index.cjs.js"
233
+ },
234
+ "./InputNumber": {
235
+ "types": "./dist/InputNumber/index.d.ts",
236
+ "import": "./dist/index.esm.js",
237
+ "require": "./dist/index.cjs.js"
238
+ },
239
+ "./InputPassword": {
240
+ "types": "./dist/InputPassword/index.d.ts",
241
+ "import": "./dist/index.esm.js",
242
+ "require": "./dist/index.cjs.js"
243
+ },
244
+ "./InputPhoneNumber": {
245
+ "types": "./dist/InputPhoneNumber/index.d.ts",
246
+ "import": "./dist/index.esm.js",
247
+ "require": "./dist/index.cjs.js"
248
+ },
249
+ "./InputText": {
250
+ "types": "./dist/InputText/index.d.ts",
251
+ "import": "./dist/index.esm.js",
252
+ "require": "./dist/index.cjs.js"
253
+ },
254
+ "./InputTime": {
255
+ "types": "./dist/InputTime/index.d.ts",
256
+ "import": "./dist/index.esm.js",
257
+ "require": "./dist/index.cjs.js"
258
+ },
259
+ "./InputValidation": {
260
+ "types": "./dist/InputValidation/index.d.ts",
261
+ "import": "./dist/index.esm.js",
262
+ "require": "./dist/index.cjs.js"
263
+ },
264
+ "./LightBox": {
265
+ "types": "./dist/LightBox/index.d.ts",
266
+ "import": "./dist/index.esm.js",
267
+ "require": "./dist/index.cjs.js"
268
+ },
269
+ "./Link": {
270
+ "types": "./dist/Link/index.d.ts",
271
+ "import": "./dist/index.esm.js",
272
+ "require": "./dist/index.cjs.js"
273
+ },
274
+ "./List": {
275
+ "types": "./dist/List/index.d.ts",
276
+ "import": "./dist/index.esm.js",
277
+ "require": "./dist/index.cjs.js"
278
+ },
279
+ "./Markdown": {
280
+ "types": "./dist/Markdown/index.d.ts",
281
+ "import": "./dist/index.esm.js",
282
+ "require": "./dist/index.cjs.js"
283
+ },
284
+ "./Menu": {
285
+ "types": "./dist/Menu/index.d.ts",
286
+ "import": "./dist/index.esm.js",
287
+ "require": "./dist/index.cjs.js"
288
+ },
289
+ "./Modal": {
290
+ "types": "./dist/Modal/index.d.ts",
291
+ "import": "./dist/index.esm.js",
292
+ "require": "./dist/index.cjs.js"
293
+ },
294
+ "./MultiSelect": {
295
+ "types": "./dist/MultiSelect/index.d.ts",
296
+ "import": "./dist/index.esm.js",
297
+ "require": "./dist/index.cjs.js"
298
+ },
299
+ "./Page": {
300
+ "types": "./dist/Page/index.d.ts",
301
+ "import": "./dist/index.esm.js",
302
+ "require": "./dist/index.cjs.js"
303
+ },
304
+ "./Popover": {
305
+ "types": "./dist/Popover/index.d.ts",
306
+ "import": "./dist/index.esm.js",
307
+ "require": "./dist/index.cjs.js"
308
+ },
309
+ "./ProgressBar": {
310
+ "types": "./dist/ProgressBar/index.d.ts",
311
+ "import": "./dist/index.esm.js",
312
+ "require": "./dist/index.cjs.js"
313
+ },
314
+ "./RadioGroup": {
315
+ "types": "./dist/RadioGroup/index.d.ts",
316
+ "import": "./dist/index.esm.js",
317
+ "require": "./dist/index.cjs.js"
318
+ },
319
+ "./RecurringSelect": {
320
+ "types": "./dist/RecurringSelect/index.d.ts",
321
+ "import": "./dist/index.esm.js",
322
+ "require": "./dist/index.cjs.js"
323
+ },
324
+ "./Select": {
325
+ "types": "./dist/Select/index.d.ts",
326
+ "import": "./dist/index.esm.js",
327
+ "require": "./dist/index.cjs.js"
328
+ },
329
+ "./Spinner": {
330
+ "types": "./dist/Spinner/index.d.ts",
331
+ "import": "./dist/index.esm.js",
332
+ "require": "./dist/index.cjs.js"
333
+ },
334
+ "./StatusLabel": {
335
+ "types": "./dist/StatusLabel/index.d.ts",
336
+ "import": "./dist/index.esm.js",
337
+ "require": "./dist/index.cjs.js"
338
+ },
339
+ "./Switch": {
340
+ "types": "./dist/Switch/index.d.ts",
341
+ "import": "./dist/index.esm.js",
342
+ "require": "./dist/index.cjs.js"
343
+ },
344
+ "./Table": {
345
+ "types": "./dist/Table/index.d.ts",
346
+ "import": "./dist/index.esm.js",
347
+ "require": "./dist/index.cjs.js"
348
+ },
349
+ "./Tabs": {
350
+ "types": "./dist/Tabs/index.d.ts",
351
+ "import": "./dist/index.esm.js",
352
+ "require": "./dist/index.cjs.js"
353
+ },
354
+ "./Text": {
355
+ "types": "./dist/Text/index.d.ts",
356
+ "import": "./dist/index.esm.js",
357
+ "require": "./dist/index.cjs.js"
358
+ },
359
+ "./Toast": {
360
+ "types": "./dist/Toast/index.d.ts",
361
+ "import": "./dist/index.esm.js",
362
+ "require": "./dist/index.cjs.js"
363
+ },
364
+ "./Tooltip": {
365
+ "types": "./dist/Tooltip/index.d.ts",
366
+ "import": "./dist/index.esm.js",
367
+ "require": "./dist/index.cjs.js"
368
+ },
369
+ "./Typography": {
370
+ "types": "./dist/Typography/index.d.ts",
371
+ "import": "./dist/index.esm.js",
372
+ "require": "./dist/index.cjs.js"
373
+ }
374
+ },
7
375
  "scripts": {
8
376
  "build": "rollup --config",
9
377
  "bootstrap": "npm run clean; npm run build",
@@ -20,7 +388,7 @@
20
388
  ],
21
389
  "dependencies": {
22
390
  "@jobber/design": "^0.55.1",
23
- "@jobber/formatters": "*",
391
+ "@jobber/formatters": "^0.2.2",
24
392
  "@jobber/hooks": "^2.9.1",
25
393
  "@popperjs/core": "^2.0.6",
26
394
  "@std-proposal/temporal": "0.0.1",
@@ -80,5 +448,5 @@
80
448
  "> 1%",
81
449
  "IE 10"
82
450
  ],
83
- "gitHead": "455afb03326e0a0e5b175acf72fae6bdd71b866b"
451
+ "gitHead": "fdec90f6ed694d63a6fd5a746cc22dd10236cd70"
84
452
  }
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.js",
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;