@autoguru/overdrive 4.3.6 → 4.4.2

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 (33) hide show
  1. package/dist/components/AutoSuggest/AutoSuggest.js +4 -4
  2. package/dist/components/AutoSuggest/stories.js +31 -1
  3. package/dist/components/Badge/Badge.d.ts.map +1 -1
  4. package/dist/components/Badge/Badge.js +1 -2
  5. package/dist/components/DateInput/DateInput.d.ts.map +1 -1
  6. package/dist/components/DateInput/DateInput.js +1 -1
  7. package/dist/components/DateInput/stories.js +36 -2
  8. package/dist/components/NumberInput/NumberInput.d.ts.map +1 -1
  9. package/dist/components/NumberInput/NumberInput.js +1 -1
  10. package/dist/components/NumberInput/stories.js +36 -2
  11. package/dist/components/SelectInput/SelectInput.d.ts.map +1 -1
  12. package/dist/components/SelectInput/SelectInput.js +2 -2
  13. package/dist/components/SelectInput/stories.js +35 -1
  14. package/dist/components/TextAreaInput/TextAreaInput.d.ts.map +1 -1
  15. package/dist/components/TextAreaInput/TextAreaInput.js +1 -1
  16. package/dist/components/TextAreaInput/stories.js +27 -2
  17. package/dist/components/TextInput/TextInput.d.ts.map +1 -1
  18. package/dist/components/TextInput/TextInput.js +1 -1
  19. package/dist/components/TextInput/stories.js +36 -2
  20. package/dist/components/private/InputBase/NotchedBase.css.d.ts +1 -1
  21. package/dist/components/private/InputBase/NotchedBase.css.d.ts.map +1 -1
  22. package/dist/components/private/InputBase/NotchedBase.css.js +34 -16
  23. package/dist/components/private/InputBase/NotchedBase.d.ts +2 -0
  24. package/dist/components/private/InputBase/NotchedBase.d.ts.map +1 -1
  25. package/dist/components/private/InputBase/NotchedBase.js +4 -4
  26. package/dist/components/private/InputBase/withEnhancedInput.css.d.ts +25 -5
  27. package/dist/components/private/InputBase/withEnhancedInput.css.d.ts.map +1 -1
  28. package/dist/components/private/InputBase/withEnhancedInput.css.js +89 -20
  29. package/dist/components/private/InputBase/withEnhancedInput.d.ts +4 -1
  30. package/dist/components/private/InputBase/withEnhancedInput.d.ts.map +1 -1
  31. package/dist/components/private/InputBase/withEnhancedInput.js +12 -9
  32. package/package.json +9 -9
  33. package/CHANGELOG.md +0 -1421
package/CHANGELOG.md DELETED
@@ -1,1421 +0,0 @@
1
- # @autoguru/overdrive
2
-
3
- ## 4.3.6
4
-
5
- ### Patch Changes
6
-
7
- - 200e67e: Inline: Gets width prop
8
-
9
- ## 4.3.5
10
-
11
- ### Patch Changes
12
-
13
- - 5300772: Fixed type definitions
14
-
15
- ## 4.3.4
16
-
17
- ### Patch Changes
18
-
19
- - 86f955b: Dependency upgrades
20
-
21
- ## 4.3.3
22
-
23
- ### Patch Changes
24
-
25
- - 33c6c71: Inputs: Get theme standard line height
26
- - 28252fb: NumberInput: Fixes paasive events being prevented
27
-
28
- ## 4.3.2
29
-
30
- ### Patch Changes
31
-
32
- - 5930dd5: NumberBubble: Suppoertsa larger numbers
33
-
34
- ## 4.3.1
35
-
36
- ### Patch Changes
37
-
38
- - 3b81bdc: Button: Fixes warning and information text colours
39
-
40
- ## 4.3.0
41
-
42
- ### Minor Changes
43
-
44
- - ff5cd80: Button: Gets new colour variants
45
-
46
- ## 4.2.1
47
-
48
- ### Patch Changes
49
-
50
- - 5d20ae8: NumberBuble: Fixed wrong sizing for the value of 10
51
-
52
- ## 4.2.0
53
-
54
- ### Minor Changes
55
-
56
- - b6959f7: NumberBubble component intoduced
57
-
58
- ## 4.1.18
59
-
60
- ### Patch Changes
61
-
62
- - 5e2efa2: Checkbox: Removes extra right padding when it has no label Radio:
63
- Removes extra right padding when it has no label
64
-
65
- ## 4.1.17
66
-
67
- ### Patch Changes
68
-
69
- - 5fc3db9: Radio: Can have empty children Checkbox: Can have empty children
70
-
71
- ## 4.1.16
72
-
73
- ### Patch Changes
74
-
75
- - 11d9730: Button: Gets new intent border colours for border colour
76
-
77
- ## 4.1.15
78
-
79
- ### Patch Changes
80
-
81
- - 5293616: NumberInput: Changed event lister to passive TabList: Changed event
82
- lister to passive useMedia: Changed event lister to passive
83
-
84
- ## 4.1.14
85
-
86
- ### Patch Changes
87
-
88
- - 14ee239: Tooltip: Gets test size option
89
-
90
- ## 4.1.13
91
-
92
- ### Patch Changes
93
-
94
- - 7dbf75b: Tooltip: Gets auto closing timeout option
95
-
96
- ## 4.1.12
97
-
98
- ### Patch Changes
99
-
100
- - 834f5bd: Button: Keep its layout unchanged in loading mode
101
-
102
- ## 4.1.11
103
-
104
- ### Patch Changes
105
-
106
- - 5448c8a: base theme: Link colour updated to blue 500 TextLink: get link
107
- colour
108
-
109
- ## 4.1.10
110
-
111
- ### Patch Changes
112
-
113
- - e1f5773: Heading: Gets wordBreak prop
114
-
115
- ## 4.1.9
116
-
117
- ### Patch Changes
118
-
119
- - e1dc659: Text: Gets word-break option Meta: Gets word-break option
120
-
121
- ## 4.1.8
122
-
123
- ### Patch Changes
124
-
125
- - e67fd78: Image: Updated prop types
126
-
127
- ## 4.1.7
128
-
129
- ### Patch Changes
130
-
131
- - f5843b0: Image component: Gets exported from root
132
-
133
- ## 4.1.6
134
-
135
- ### Patch Changes
136
-
137
- - 13acf79: AutoSuggest: Calls onEnter with current value
138
-
139
- ## 4.1.5
140
-
141
- ### Patch Changes
142
-
143
- - 6ae288e: AutoSuggest: Type fixes
144
-
145
- ## 4.1.4
146
-
147
- ### Patch Changes
148
-
149
- - Overdrive: Fixed input ref type
150
-
151
- ## 4.1.3
152
-
153
- ### Patch Changes
154
-
155
- - 9884f4c: Autosuggest: Closes results when enter key is pressed
156
-
157
- ## 4.1.2
158
-
159
- ### Patch Changes
160
-
161
- - e825a3d: useResponsiveValue Accepts any generic type
162
-
163
- ## 4.1.1
164
-
165
- ### Patch Changes
166
-
167
- - 4bae7d0: AutoSuggest accepts an 'onEnter' event callback
168
-
169
- ## 4.1.0
170
-
171
- ### Minor Changes
172
-
173
- - af65bd3: New responsive Image component
174
-
175
- ## 4.0.4
176
-
177
- ### Patch Changes
178
-
179
- - 1ac5083: Adds babel preset env
180
-
181
- ## 4.0.3
182
-
183
- ### Patch Changes
184
-
185
- - 7f65be1: TextArea: Fixed min height
186
-
187
- ## 4.0.2
188
-
189
- ### Patch Changes
190
-
191
- - f7bfcdb: Tabs Get a more distinct colour for unselected tab labels
192
-
193
- ## 4.0.1
194
-
195
- ### Patch Changes
196
-
197
- - e2cebc8: Applies type fixes
198
-
199
- ## 4.0.0
200
-
201
- ### Major Changes
202
-
203
- - dd12f20: Migrates Overdrive to vanilla extract
204
-
205
- ## 3.0.0
206
-
207
- ### Major Changes
208
-
209
- - eb36462: Overdrive: Migrates styling away from treat to vanilla extract
210
- - aaac596: Migrate to vanilla extract
211
-
212
- ### Patch Changes
213
-
214
- - 4324095: OverdriveProvider: Imports reset styles
215
- - 4324095: OverdriveProvider: Imports global fonts
216
- - 2623174: fixes list of files with side effects
217
- - 03ca973: Autosuggest: Replaces deprecated fill-available with stretch
218
- - 56edcaf: Overdrive: Gets file extentions for imports
219
- - 2fbe7bf: OverdriveProvider: Accepts runtime breakpoint token
220
- - 4324095: Compiles released package to JS
221
- - 4858d44: Compiles Overdrive package into JS
222
- - 36736c3: useMedia
223
- - ec17939: Adds babel react preset
224
- - 965c7ed: Portal: Makes theme wrapping optional
225
- - 19d14a1: Multiple theming fixes
226
- - aa5d74b: Portal: Removes memo
227
- - 4324095: Reverts compiling to js
228
- - 713b1a3: Oderdrive: Fixed type generation for released package
229
- - 4b3b1ec: Adds inhouse babel config
230
- - ca4e971: Portal: Fixes unwrapped version
231
- - 158d3bb: Accept custom runtime breakpoint tokens
232
-
233
- ## 3.0.0-next.18
234
-
235
- ### Patch Changes
236
-
237
- - Fixes type generation for released package
238
-
239
- ## 3.0.0-next.17
240
-
241
- ### Patch Changes
242
-
243
- - useMedia
244
-
245
- ## 3.0.0-next.16
246
-
247
- ### Patch Changes
248
-
249
- - Portal: Removes memo
250
-
251
- ## 3.0.0-next.15
252
-
253
- ### Patch Changes
254
-
255
- - Portal: Fixes unwrapped version
256
-
257
- ## 3.0.0-next.14
258
-
259
- ### Patch Changes
260
-
261
- - Portal: Makes theme wrapping optional
262
-
263
- ## 3.0.0-next.13
264
-
265
- ### Patch Changes
266
-
267
- - OverdriveProvider: Accepts runtime breakpoint token
268
-
269
- ## 3.0.0-next.12
270
-
271
- ### Patch Changes
272
-
273
- - Accept custom runtime breakpoint tokens
274
-
275
- ## 3.0.0-next.11
276
-
277
- ### Patch Changes
278
-
279
- - Autosuggest: Replaces deprecated fill-available with stretch
280
-
281
- ## 3.0.0-next.10
282
-
283
- ### Patch Changes
284
-
285
- - fixes list of files with sideeffects
286
-
287
- ## 3.0.0-next.9
288
-
289
- ### Patch Changes
290
-
291
- - ec17939: Adds babel react preset
292
-
293
- ## 3.0.0-next.8
294
-
295
- ### Patch Changes
296
-
297
- - Overdrive: Gets file extentions for imports
298
-
299
- ## 3.0.0-next.7
300
-
301
- ### Patch Changes
302
-
303
- - Adds inhouse babel config
304
-
305
- ## 3.0.0-next.6
306
-
307
- ### Patch Changes
308
-
309
- - OverdriveProvider: Imports global fonts
310
-
311
- ## 3.0.0-next.5
312
-
313
- ### Patch Changes
314
-
315
- - OverdriveProvider: Imports reset styles
316
-
317
- ## 3.0.0-next.4
318
-
319
- ### Patch Changes
320
-
321
- - Compiles released package to JS
322
-
323
- ## 3.0.0-next.3
324
-
325
- ### Patch Changes
326
-
327
- - Reverts compiling to js
328
-
329
- ## 3.0.0-next.2
330
-
331
- ### Patch Changes
332
-
333
- - Compiles Overdrive package into JS
334
-
335
- ## 3.0.0-next.1
336
-
337
- ### Patch Changes
338
-
339
- - Multiple theming fixes
340
-
341
- ## 3.0.0-next.0
342
-
343
- ### Major Changes
344
-
345
- - eb36462: Overdrive: Migrates styling away from treat to vanilla extract
346
- - aaac596: Migrate to vanilla extract
347
-
348
- ## 3.0.0-next.1
349
-
350
- ### Major Changes
351
-
352
- - Migrate to vanilla extract
353
-
354
- ## 3.0.0-next.0
355
-
356
- ### Major Changes
357
-
358
- - Overdrive: Migrates styling away from treat to vanilla extract
359
-
360
- ## 2.7.0
361
-
362
- ### Minor Changes
363
-
364
- - f982d1c: Upgraded to react v18 alpha
365
- - 0fa7afd: Overdsrive: Gets compiled into javascripts and typescript types
366
- - 7033333: Hooks: New useAttachedBoxes helper hook
367
- - f15d951: Hooks: New useResponsiveValue value hook
368
-
369
- ### Patch Changes
370
-
371
- - b7e6aae: Adds relese script
372
- - 25dda76: Attached Boxes: Accept default box props
373
- - 85e9ceb: StandardModal: Hides it's frame overflow
374
- - d08c689: Badge: Gets new large size
375
- - 96a8299: NumberInput: Gets new preventMouseWheel prop to prevent value
376
- change while scrolling
377
- - fd3cea4: AttachedBoxes: Do not get default paddings
378
- - 7f2122b: Adds more utils root export
379
- - b7e6aae: Overdrive: Gets files list added to package.json
380
- - b7e6aae: Fixes main file
381
- - 006435e: StandardModal: Gets narrow and skinny sizes
382
- - d89cd04: LoadingBox Accepts default Box props
383
- - b7e6aae: Overdrive index main index files fixed
384
- - ded7b5d: Inputs: Get their hover states going to a darker shade
385
- - 8b1f6df: useResponsiveValue: Gets exported from libs root
386
- - fd3cea4: AttachedBoxes: Accept external classnames
387
- - ff9a789: Sets index.ts as main entry file
388
- - ba85147: Overdrive: Multiple export changes
389
- - 5c1b018: Publish command: Nolonger compiles to JS
390
-
391
- ## 2.7.0-next.18
392
-
393
- ### Patch Changes
394
-
395
- - Overdrive: Multiple export changes
396
-
397
- ## 2.7.0-next.17
398
-
399
- ### Patch Changes
400
-
401
- - Badge: Gets new large size
402
-
403
- ## 2.7.0-next.16
404
-
405
- ### Patch Changes
406
-
407
- - Publish command: Nolonger compiles to JS
408
-
409
- ## 2.7.0-next.15
410
-
411
- ### Patch Changes
412
-
413
- - Adds more utils root export
414
-
415
- ## 2.7.0-next.14
416
-
417
- ### Patch Changes
418
-
419
- - Sets index.ts as main entry file
420
-
421
- ## 2.7.0-next.13
422
-
423
- ### Patch Changes
424
-
425
- - Fixes main file
426
-
427
- ## 2.7.0-next.12
428
-
429
- ### Patch Changes
430
-
431
- - Overdrive index main index files fixed
432
-
433
- ## 2.7.0-next.11
434
-
435
- ### Patch Changes
436
-
437
- - Overdrive: Gets files list added to package.json
438
-
439
- ## 2.7.0-next.10
440
-
441
- ### Patch Changes
442
-
443
- - Adds relese script
444
-
445
- ## 2.7.0-next.9
446
-
447
- ### Minor Changes
448
-
449
- - Overdsrive: Gets compiled into javascripts and typescript types
450
-
451
- ## 2.7.0-next.8
452
-
453
- ### Patch Changes
454
-
455
- - NumberInput: Gets new preventMouseWheel prop to prevent value change while
456
- scrolling
457
-
458
- ## 2.7.0-next.7
459
-
460
- ### Patch Changes
461
-
462
- - StandardModal: Hides it's frame overflow
463
-
464
- ## 2.7.0-next.6
465
-
466
- ### Patch Changes
467
-
468
- - StandardModal: Gets narrow and skinny sizes
469
-
470
- ## 2.7.0-next.5
471
-
472
- ### Patch Changes
473
-
474
- - LoadingBox Accepts default Box props
475
-
476
- ## 2.7.0-next.4
477
-
478
- ### Patch Changes
479
-
480
- - AttachedBoxes: Do not get default paddings
481
- - AttachedBoxes: Accept external classnames
482
-
483
- ## 2.7.0-next.3
484
-
485
- ### Patch Changes
486
-
487
- - Attached Boxes: Accept default box props
488
- - 8b1f6df: useResponsiveValue: Gets exported from libs root
489
-
490
- ## 2.7.0-next.2
491
-
492
- ### Minor Changes
493
-
494
- - 7033333: Hooks: New useAttachedBoxes helper hook
495
- - f15d951: Hooks: New useResponsiveValue value hook
496
-
497
- ## 2.7.0-next.1
498
-
499
- ### Patch Changes
500
-
501
- - ded7b5d: Inputs: Get their hover states going to a darker shade
502
-
503
- ## 2.7.0-next.0
504
-
505
- ### Minor Changes
506
-
507
- - Upgraded to react v18 alpha
508
-
509
- ## 2.6.3
510
-
511
- ### Patch Changes
512
-
513
- - f6e8135: AutoSuggest: Gets increased results fylout maxHeight value
514
-
515
- ## 2.6.2
516
-
517
- ### Patch Changes
518
-
519
- - 23780cc: Autosuggest: Gets a fix for white background under round edges
520
-
521
- ## 2.6.1
522
-
523
- ### Patch Changes
524
-
525
- - d2ba68a: AutoSuggest: Gets white background for results ul element
526
-
527
- ## 2.6.0
528
-
529
- ### Minor Changes
530
-
531
- - b625d7c: AutoSuggest: Gets a clear input button when with value
532
- - b625d7c: AutoSuggest: Gets enforced inline options view
533
-
534
- ## 2.5.1
535
-
536
- ### Patch Changes
537
-
538
- - 7072055: Toaster: gets primary, secondary and shine variants
539
-
540
- ## 2.5.0
541
-
542
- ### Minor Changes
543
-
544
- - 9411d17: MinimalModal: New MinimalModal component with StandardModal
545
- features but without any baked in UI
546
-
547
- ## 2.4.4
548
-
549
- ### Patch Changes
550
-
551
- - 97f8b2d: Button: Uses theme secondary colour for secondary variation border
552
-
553
- ## 2.4.3
554
-
555
- ### Patch Changes
556
-
557
- - a3908d9: AutoSuggest: Gets fix for fullscreen veiw resizing html tag width
558
- to 0
559
-
560
- ## 2.4.2
561
-
562
- ### Patch Changes
563
-
564
- - e7fe560: Inputs: Get stories with no notch
565
-
566
- ## 2.4.1
567
-
568
- ### Patch Changes
569
-
570
- - dd39f3a: Overdrive Themes: Gets a new flat theme added
571
-
572
- ## 2.4.0
573
-
574
- ### Minor Changes
575
-
576
- - 4c96195: Theming: All explicitly set component colours now use theme based
577
- colours
578
-
579
- ## 2.3.1
580
-
581
- ### Patch Changes
582
-
583
- - a631d85: SelectInput: Gets option to be passed a custom field icon
584
-
585
- AutoSuggest: Gets option to be passed a custom field icon
586
-
587
- ## 2.3.0
588
-
589
- ### Minor Changes
590
-
591
- - f4eb420: Input fields: Get a loading state
592
-
593
- ## 2.2.8
594
-
595
- ### Patch Changes
596
-
597
- - 75d6708: Checkbox: Accepts ref
598
-
599
- RadioGroup: Accepts ref
600
-
601
- Radio: Accepts ref
602
-
603
- ## 2.2.7
604
-
605
- ### Patch Changes
606
-
607
- - e004bff: Text: Gets capitalise text transform prop
608
-
609
- ## 2.2.6
610
-
611
- ### Patch Changes
612
-
613
- - b328760: Box: Gets padding reset for field and fieldset elements
614
-
615
- AutoSuggest: Gets fix for exception when clicking outside an open
616
- AutoSuggest
617
-
618
- ## 2.2.5
619
-
620
- ### Patch Changes
621
-
622
- - 075e32e: useBoxStyles: Borders paddings and margins are no longer rest on
623
- block elements
624
- - 075e32e: Heading: Gets explicit reset styles
625
- - 6068142: AutoSuggest: Fixed undefined error caused by blurring out of
626
- AutoSuggest
627
-
628
- ## 2.2.4
629
-
630
- ### Patch Changes
631
-
632
- - ee67f76: TextLink: Gets inline reset styles
633
-
634
- ProgressSpinner: Gets svg and block resets for the animates SVG
635
-
636
- ## 2.2.3
637
-
638
- ### Patch Changes
639
-
640
- - 340da9a: Text: Gets explicit reset styles for span and p
641
-
642
- field: Gets explicit reset styles
643
-
644
- fieldset: Gets explicit reset styles
645
-
646
- ## 2.2.2
647
-
648
- ### Patch Changes
649
-
650
- - a3274cb: useBoxStyles: Applies base reset styles to div elements
651
- - a3274cb: TextAreaInput: Gets base input reset styles
652
-
653
- ## 2.2.1
654
-
655
- ### Patch Changes
656
-
657
- - 0e10140: useBoxStyles: Base reset styles now spread individually into
658
- element type reset styles
659
-
660
- ## 2.2.0
661
-
662
- ### Minor Changes
663
-
664
- - 667876a: **Checkboxes**: Disabled mode gets reduced opacity
665
-
666
- **Radio**: Disabled mode gets reduced opacity
667
-
668
- ## 2.1.9
669
-
670
- ### Patch Changes
671
-
672
- - 252f512: Upgrades treat to latest
673
- - ca5cb40: **Heading**: Heading component _should_ pass all text style props
674
- down
675
-
676
- ## 2.1.8
677
-
678
- ### Patch Changes
679
-
680
- - d9b96c6: **StandardModal**: Fixes mobile view to be pinned to the bottom and
681
- table view is all rounded corners
682
- - 99bc4f9: **Stepper**: Fixes extra re-render on each change
683
-
684
- ## 2.1.7
685
-
686
- ### Patch Changes
687
-
688
- - 977a99f: **Section**: Introduces a new small option for width values
689
-
690
- ## 2.1.6
691
-
692
- ### Patch Changes
693
-
694
- - 463422c: **Badge**: Fixes default text style colour incorrect style ordering
695
- ordering
696
-
697
- ## 2.1.5
698
-
699
- ### Patch Changes
700
-
701
- - 42057f4: **Badge**: Fixes inverted text style colours and incorrect ordering
702
- caused by [treat](https://github.com/seek-oss/treat)
703
-
704
- ## 2.1.4
705
-
706
- ### Patch Changes
707
-
708
- - a54636d: **AutoSuggest**: Fix's it so if Suggestions is ever undefined or
709
- empty, that the nextFn doesnt fail
710
- - dec98ef: **StandardModal**: The main region to be wrapped in a flex to allow
711
- stretching children
712
-
713
- ## 2.1.3
714
-
715
- ### Patch Changes
716
-
717
- - c81a433: **SelectInput**: Fixes wrong prop type needed
718
-
719
- ## 2.1.2
720
-
721
- ### Patch Changes
722
-
723
- - 1d4b39e: **SelectInput**: Increases target click area to cover the full
724
- width of component.
725
-
726
- ## 2.1.1
727
-
728
- ### Minor Changes
729
-
730
- - 052a024: Corrected types to be more type safe and accurate.
731
-
732
- Notably `<Box>`. Seeing as we `createElement`, we fixed types to only allow
733
- `IntrinsicElements | JSXElementConstructor`. As such, any `"button"` or
734
- `TextLink` prop values will work. However, `<TextLink />` will not.
735
-
736
- ## 2.0.27
737
-
738
- ### Patch Changes
739
-
740
- - 648ec6a: **Inputs:** Introduces `reserveHintSpace` prop—to _reserve_ the
741
- space that would otherwise be occupied by the hint text.
742
-
743
- Super useful in stacked forms with validation, so that page layout shifts
744
- don't occur.
745
-
746
- ## 2.0.26
747
-
748
- ### Patch Changes
749
-
750
- - dd3da7e: **Modal:** Introduces a focus-trap as well as correct some
751
- Concurrent Mode flickering.
752
- - dd3da7e: **Box:** Adds `opacity` prop
753
-
754
- ## 2.0.25
755
-
756
- ### Patch Changes
757
-
758
- - 4ce4fc6: **NumberInput:** Adds support for the html `step` attribute.
759
-
760
- ## 2.0.24
761
-
762
- ### Patch Changes
763
-
764
- - 8914008: **Box:** Adds `inlineFlex` as a display prop
765
- - 5bbe87a: **Tabs:** Adds new renderInactivePanes prop to render tabs that are
766
- inactive.
767
-
768
- By default, TabPanes themselves only render when they are active. Sometimes
769
- in certain cases you'd want to preserve the local state within those tabs as
770
- a user switches between tabs. Setting `renderInactivePanes` on TabPanes will
771
- be rendered but visually hidden.
772
-
773
- **Example:**
774
-
775
- ```jsx
776
- <Tabs active={0}>> > > > > > > } t > ></Tabs>
777
- ```
778
-
779
- - 7131a5f: **Tabs:** Fixes a visual quirk when indications are mixed with
780
- non-indicators
781
-
782
- ## 2.0.23
783
-
784
- ### Patch Changes
785
-
786
- - c585765: **Heading:** Adds an `id` prop which is applied directly to the
787
- underlying element
788
-
789
- ## 2.0.22
790
-
791
- ### Patch Changes
792
-
793
- - 5c913cc: Box: Allow non-intrinsics as Box `is` prop as well. With this
794
- change you can send things in like `svg`'s, or other components themselves.
795
- - e11909f: Text: Adds a `text-transform` prop to allow uppercasing text
796
-
797
- ## 2.0.21
798
-
799
- ### Patch Changes
800
-
801
- - 47335f6: Meta: FIxed issue where the icon and label would wrap
802
- - 230367f: SimplePagination: Should be centered in it's parent. Seeing as it's
803
- parent spans 100% width, this centering is now explicit.
804
-
805
- ## 2.0.20
806
-
807
- ### Patch Changes
808
-
809
- - bf51bbe: Fix: Added missing re-exports from our "to-monorepo" migration
810
-
811
- ## 2.0.19
812
-
813
- ### Patch Changes
814
-
815
- - c13df61: StandardModal: Fixes the issue where a mouseup on the backdrop
816
- triggered the requestClose callback. Despite the click originating on the
817
- modal itself. So now the callback will not fire.
818
-
819
- ## 2.0.18
820
-
821
- ### Patch Changes
822
-
823
- - 63d81e5: Major refactor of how `treat` files get used in our project.
824
- Instead of a redefinition of _shared_ styles such as margin/padding. We now
825
- instead prefer the usage of `useBoxStyles` or the `Box` component.
826
-
827
- There _should_ be no real regression in terms of usage api.
828
-
829
- - 63d81e5: Box: pointerEvents value can now be passed to `Box` and
830
- `useBoxStyles` as 'none' or undefined.
831
- - 63d81e5: BulletText: Now accepts an `is` prop, such that it's element can be
832
- changed. This is really because 9/10 times you'd be rendering this in a
833
- `Stack`, which already handles the `ul/li` couple.
834
-
835
- **FEATURES**
836
-
837
- ```jsx
838
- <Stack is="ul">> ></Stack>
839
- ```
840
-
841
- which already wraps each child in an `li`.
842
-
843
- ## 2.0.17
844
-
845
- ### Patch Changes
846
-
847
- - fbee5c0: AutoSuggest: Now has a full width wrapping box
848
-
849
- ## 2.0.16
850
-
851
- ### Patch Changes
852
-
853
- - 6d9e5b5: Reset: Table reset is no longer global. So use `<Box is="table" />`
854
-
855
- ```diff
856
- -<table>
857
- +<Box is="table">
858
- ```
859
-
860
- - 6d9e5b5: Inline: Supports alignX to position items on the x axis aka;
861
- `justifyContent`.
862
- - 6d9e5b5: Reset: Globally set overflowX to hidden
863
- - c90d645: Stepper: When pressing Home/End it should no longer jump to the end
864
- of the page.
865
- - 6d9e5b5: Table: Introduces Tables
866
-
867
- Implemented as a css-grid, so column widths are to be defined in
868
- gridTemplateColumns. All components in this scope accept a ref property.
869
-
870
- Please note! In order to remain structurally WAI-ARIA compliant; the
871
- `TableRowGroup` must be placed around the _traditional_ `tbody` and `thead`.
872
-
873
- **FEATURES**
874
-
875
- ### Example
876
-
877
- ```jsx
878
- <Table columnTemplate="repeat(2, auto)">></Table>
879
- ```
880
-
881
- ### Sticky Header
882
-
883
- ```diff
884
- -<Table columnTemplate="repeat(2, auto)">
885
- +<Table stickyHead columnTemplate="repeat(2, auto)">
886
- >
887
- >
888
- >
889
- ```
890
-
891
- ### Sorting Columns
892
-
893
- ```diff
894
- <Table columnTemplate="repeat(2, auto)">
895
- >
896
- >
897
- - <TableHeadCell>Col 1</TableHeadCell>
898
- + <TableHeadCell sort="asc" onSortChange={}>Col 1</TableHeadCell>
899
- ```
900
-
901
- A column can only have _sort_ functionality when the `sort` prop is set to
902
- either `asc | desc | none`. An `onSortChange` callback when applied to the
903
- cell that allows observing this. This callback will send the _new_ sort to
904
- have applied to it. This is a stateless component, so make sure you wire the
905
- value back into `sort`.
906
-
907
- ### Row Clicking
908
-
909
- ```diff
910
- <Table columnTemplate="repeat(2, auto)">
911
- >
912
- - <TableRow>
913
- + <TableRow onClick={}>
914
- >
915
- ```
916
-
917
- Please note; that if you're also tracking clicks of cell buttons, to check
918
- the currentTarget of whether to apply the callback.
919
-
920
- ## 2.0.15
921
-
922
- ### Patch Changes
923
-
924
- - 5353a1a: Box: Added textAlign as a prop
925
-
926
- Worth noting that we want to deprecate the use of `align` in our
927
- `useTextStyles`. As it's now shifted to our box. The `align` prop will still
928
- remain on the `Text` component.
929
-
930
- **FEATURES**
931
-
932
- ```jsx
933
- <Box textAlign="center" />
934
- ```
935
-
936
- - 715b035: Box: Added userSelect prop to disable selecting its content
937
- - 987a68b: VisuallyHidden: Added brand-new component to visually hide content
938
-
939
- **FEATURES**
940
-
941
- ```jsx
942
- <VisuallyHidden>hello screen reader</VisuallyHidden>
943
- <Text>
944
- o
945
- >
946
- </Text>
947
- ```
948
-
949
- - e2f4a5b: Text: Allow setting a display override
950
-
951
- **FEATURES**
952
-
953
- ```jsx
954
- <Text is="span" display="inlineBlock">
955
- k
956
- </Text>
957
- ```
958
-
959
- - 175cb09: Icon: Child svg's are cloned and positioned to the size of the
960
- parent
961
-
962
- ## 2.0.14
963
-
964
- ### Patch Changes
965
-
966
- - 5428b9e: LoadingBox: Exposes height and display box props
967
-
968
- **FEATURES**
969
-
970
- ```jsx
971
- <LoadingBox height="full" display="inlineBlock" />
972
- ```
973
-
974
- - e3e5aa9: Box: Display prop inline-block renamed to inlineBlock to be more
975
- consistent
976
- - a6530d5: Box: Supports sending in a height prop
977
-
978
- ## 2.0.13
979
-
980
- ### Patch Changes
981
-
982
- - df453b2: Badge: Applies a whiteSpace nowrap to badges, and now truncates
983
- - 292692f: Section: Typing update such that width prop is actually optional
984
- - 52c424f: Inline: Now wrap properly, and support a prop to enable/disable it.
985
- - e0a4291: Box: Introduces flex style props to `Box` and `useBoxStyles`
986
-
987
- **FEATURES**
988
-
989
- You can now send in `alignItems`,`flexDirection`, `flexGrow`, `flexShrink`,
990
- `flexWrap`, `justifyContent` to Box and useBoxStyles for whatever you like.
991
-
992
- We have specifically chosen `alignItems`, `flexDirection`, `justifyContent`
993
- as Responsive candidates as we've found the others won't have a responsive
994
- use case.
995
-
996
- ```jsx
997
- <Box display="flex" width="full" justifyContent="center">
998
- >
999
- </Box>
1000
- ```
1001
-
1002
- ## 2.0.12
1003
-
1004
- ### Patch Changes
1005
-
1006
- - 62c7111: Stack: A Renamed prop from spacing to space
1007
-
1008
- eg:
1009
-
1010
- ```diff
1011
- <Stack is="ul"
1012
- - spacing="3">
1013
- + space="3">
1014
- >
1015
- >
1016
- >
1017
- </Stack>
1018
- ```
1019
-
1020
- - 822863d: Inline: Supports inline dividers between elements.
1021
-
1022
- Supports, text, numbers or elements.
1023
-
1024
- **FEATURES**
1025
-
1026
- ```jsx
1027
- <Inline dividers>> > > ></Inline>
1028
- ```
1029
-
1030
- - a0fce92: Text: Exposes a new white-space nowrap prop
1031
-
1032
- This is an **experimental** prop, we know of one use-case where this can be
1033
- used, but will likely also appear on the Box.
1034
-
1035
- So do let us know if you're using this, and it hasnt worked in your
1036
- use-case.
1037
-
1038
- **FEATURES**
1039
-
1040
- You can now pass a `noWrap` prop to any `<Text />` which applies a
1041
- `white-space: nowrap` to itself.
1042
-
1043
- ```jsx
1044
- <Text noWrap>I wont wrap</Text>
1045
- ```
1046
-
1047
- ## 2.0.11
1048
-
1049
- ### Patch Changes
1050
-
1051
- - 358fb4b: Tabs: Incorrectly importing treat files inside treat
1052
-
1053
- ## 2.0.10
1054
-
1055
- ### Patch Changes
1056
-
1057
- - 0b6c621: Tabs: Adds `scrollable`, which scrolls the tabs horizontally on
1058
- smaller devices.
1059
-
1060
- **FEATURES**
1061
-
1062
- ```jsx
1063
- <Tabs>> > > > > ></Tabs>
1064
- ```
1065
-
1066
- - 729dfdd: Input: Notchless inputs will no longer break when part of a flex
1067
- container
1068
-
1069
- ## 2.0.9
1070
-
1071
- ### Patch Changes
1072
-
1073
- - 0b59110: Flatten fragments when provided as children
1074
-
1075
- Will now support fragments and otherwise boolean children that previously
1076
- would not have worked:
1077
-
1078
- ```jsx
1079
- <Stack>> ( > > > > > } ></Stack>
1080
- ```
1081
-
1082
- > which would have the past not had lines 1-3 spaced evenly.
1083
-
1084
- this was also true for: `Actions`, `Inline`, `TabList`, `TabPanes` and
1085
- `Stack`. Which have been rectified.
1086
-
1087
- ## 2.0.8
1088
-
1089
- ### Patch Changes
1090
-
1091
- - 55ee559: Positioner: Removes usingPositioner
1092
-
1093
- **FEATURES**
1094
-
1095
- Removes the usingPositioner HoC in favour of a plain-old component that'll
1096
- gives us the ability to send _all_ our Box props onto it. It also aids in
1097
- corrected aria-\* props.
1098
-
1099
- ## 2.0.7
1100
-
1101
- ### Patch Changes
1102
-
1103
- - b9a2c45: InputBase: Allow for notchless inputs
1104
-
1105
- **FEATURES**
1106
-
1107
- Sometimes the notch behavior won't work because of its context - much like
1108
- an input that sits within a table, where the column already denotes what
1109
- should be entered into the input.
1110
-
1111
- > Please be aware that this should be avoided, as in most cases we should
1112
- > notch, so a user knows what's in the input especially when its defaulted.
1113
-
1114
- - 7736914: Box: Adds an overflow prop and allows className to be clsx
1115
- compatible
1116
-
1117
- **FEATURES**
1118
-
1119
- `ClassName` can now be sent in directly to Box instead of through clsx.
1120
-
1121
- eg.
1122
-
1123
- ```diff
1124
- - <Box className={clsx(styles.one, styles.two)}>
1125
- + <Box className={[styles.one, styles.two]}>
1126
- o
1127
- </Box>
1128
-
1129
- - <Box className={clsx({[styles.one]: maybeDoMe}, styles.two)}>
1130
- + <Box className={[{[styles.one]: maybeDoMe}, styles.two]}>
1131
- o
1132
- </Box>
1133
- ```
1134
-
1135
- - 17d2354: Stack: Expose the Box width on Stack
1136
- - 475601c: Tabs: Now always fills the width of its parent
1137
-
1138
- ## 2.0.6
1139
-
1140
- ### Patch Changes
1141
-
1142
- - d1c6b09: responsiveProps: Fix argument where void is not the same as
1143
- undefined
1144
-
1145
- ## 2.0.5
1146
-
1147
- ### Patch Changes
1148
-
1149
- - 4df7e83: AutoSuggest: Introduce a autoWidth prop that either will size the
1150
- flyout to either the width of the children, or the input.
1151
-
1152
- **FEATURES**
1153
-
1154
- `<AutoSuggest>` can now be given a `autoWidth` prop that will auto the width
1155
- in relation to setting the width, or for it to be automatic.
1156
-
1157
- - `autoWidth={true}` means, size the flyout to the width of flyout children "automatically"
1158
- - `autoWidth={false}` means to set to the width of the select input.
1159
-
1160
- eg:
1161
-
1162
- ```jsx
1163
-
1164
- // size to the width of the flyout children
1165
- <AutoSuggest
1166
- "
1167
- }
1168
- h
1169
- />
1170
-
1171
- // size to the width of the input (current behaviour)
1172
- <AutoSuggest
1173
- "
1174
- }
1175
- />
1176
-
1177
- ```
1178
-
1179
- - 378e5da: AutoSuggest: Input search types to remove the webkit clear button
1180
-
1181
- **FEATURES**
1182
-
1183
- When we reset input type searches, we incorrectly "hid" the webkit search
1184
- buttons, this aims to correct that.
1185
-
1186
- - eb3cf9d: AutoSuggest: Support the usage of passing a ref down to the
1187
- implemented input
1188
-
1189
- **FEATURES**
1190
-
1191
- `<AutoSuggest>` can now be given a ref which will be passed down to the
1192
- underlying input.
1193
-
1194
- eg:
1195
-
1196
- ```tsx
1197
- const myRef = useRef<HTMLInputElement | null>(null);
1198
-
1199
- <AutoSuggest ref={myRef} value={null} placeholder={'My AutoSuggest'} />;
1200
- ```
1201
-
1202
- - bab9cd2: InputBase: Always full width the input wrapper
1203
-
1204
- ## 2.0.4
1205
-
1206
- ### Patch Changes
1207
-
1208
- - 801c254: Positioner: Uses Popper.js to run the flyouts.
1209
-
1210
- **FEATURES**
1211
-
1212
- **`<Positioner />`** uses Popper.js, as it offers a wide array of
1213
- performance improvements and caters for some edge-cases, like when the'yre
1214
- nested etc.
1215
-
1216
- Few stats: we use popper-lite which is rated at 3.73Kb minified and
1217
- compressed. Now getOptimalPosition was about 1.3Kb minified and compressed.
1218
- However, it had a few holes, and when I looked at what it'll take to
1219
- implement the features to solve the holes - we'd probably still beat the
1220
- file size, but not by much...
1221
-
1222
- So with that once internal bandwidth increase this'll likely be revisited -
1223
- and perhaps utilize `detectOverflow` as a roll-your-own solution.
1224
-
1225
- - 0964a1d: useNegativeMargin: Correctly fill columns to their parents width
1226
-
1227
- **BUG FIXES** Columns were not completely filling its parent due to negative
1228
- margins
1229
-
1230
- ## 2.0.3
1231
-
1232
- ### Patch Changes
1233
-
1234
- - 15f486c: Modals: Now uses a shared `<Portal />` component.
1235
-
1236
- **FEATURES**
1237
-
1238
- **`<Portal />`** component allowing for shared Portaling of components to
1239
- inside a container.
1240
-
1241
- Responsibility: Rendering a child into a container, which by default is
1242
- `window.body`.
1243
-
1244
- eg:
1245
-
1246
- ```jsx
1247
- // Input
1248
- <div>
1249
- g
1250
- >
1251
- >
1252
- >
1253
- </div>
1254
-
1255
- // Result
1256
- <body>
1257
- >
1258
- >
1259
- </body>
1260
- ```
1261
-
1262
- **`<Modal />`** is in charge of handling a backdrop - which also directly
1263
- uses the new `<Portal>` component.
1264
-
1265
- Responsibility: Renders a child into a Portal, with a backdrop and correct
1266
- aria attributes applied.
1267
-
1268
- You can give this component `hideBackdrop?: boolean` prop to disable the
1269
- backdrop. Also; if you wish to remove the fadeIn/fadeOut animation, a
1270
- `transition?: boolean` can also be provided.
1271
-
1272
- - Removes `<ModalPortal />` in favor of `<Modal />`
1273
- - Deprecated `withModal`, which could simply just use the Modal component
1274
-
1275
- Worth noting that a `role="presentation"` is applied to the `Modal`, so
1276
- consumers should be applying a `role="none presentation"` to their direct
1277
- parent, if you wish content to be read out.
1278
-
1279
- eg:
1280
-
1281
- ```jsx
1282
- <Modal isOpen={true} onRequestClose={function() {}}>
1283
- >
1284
- </Modal>
1285
- ```
1286
-
1287
- ## 2.0.2
1288
-
1289
- ### Patch Changes
1290
-
1291
- - 6c3ae76: Tabs: Support stretching tablist items to the width of the
1292
- container
1293
-
1294
- **FEATURES**
1295
-
1296
- **`<TabList />`**
1297
-
1298
- In small contexts, like sidebars, or mobile viewports with minimal tablist
1299
- items. It makes sense to stretch items to meet the width of the container.
1300
-
1301
- eg:
1302
-
1303
- ```
1304
- <Tabs>
1305
- >
1306
- >
1307
- >
1308
- >
1309
- </Tabs>
1310
- ```
1311
-
1312
- - 302405b: Alert: Inline is now full width
1313
-
1314
- **Features**
1315
-
1316
- `<Alert />`
1317
-
1318
- When passing the `inline` prop, in the past it was maxWidth 640px - which in
1319
- inline contexts, you'd want to span the entire width of its container.
1320
-
1321
- - 3bcf649: Adds the Inline and Section layout components
1322
-
1323
- **Features**
1324
-
1325
- Breakpoints have been amended to follow (mobile first):
1326
-
1327
- - `tablet` is iPad Mini width less 25%, so any device greater than 768px
1328
- - `desktop` we are considering as iPad Pro width less 25%, so any device larger than 1024px
1329
- - `largeDesktop` is taken as a 1920x1080 less 25%, so any device larger than 1440px
1330
-
1331
- all at landscape.
1332
-
1333
- **`<Inline />`**
1334
-
1335
- When you're wanting to `inline` something. Like a badge list; you can use
1336
- use the `<Inline />` component to solve this.
1337
-
1338
- eg:
1339
-
1340
- ```jsx
1341
- <Inline>> > ></Inline>
1342
- ```
1343
-
1344
- **`<Section />`**
1345
-
1346
- A component that wraps its children, setting a `max-width` and centering on
1347
- the screen. This will generally sit high up in the component tree. It offers
1348
- 2 widths `medium` and `large`. The medium width is intended for smaller more
1349
- concise layouts - like our Afterpay landing, or Uber landing. Were as the
1350
- `large` will probably be more for our Leads or Bookings list screens.
1351
-
1352
- When coupled with `Columns` we effectively have a full fletched layout
1353
- system, that can 🤷‍ replace our `ContainedLayout` and `ContentOnlyLayout`
1354
- internal components.
1355
-
1356
- To solve the `ThreeColumnLayout` and `TwoColumnLayout` we can build internal
1357
- abstractions that extend this perhaps.
1358
-
1359
- eg:
1360
-
1361
- ```jsx
1362
- <Section width="medium" paddingX={['3', , 'none']}>
1363
- >
1364
- </Section>
1365
- ```
1366
-
1367
- - f9dac97: Inline: Supporting alignY responsive prop StarRating: Consumes
1368
- `<Inline />`
1369
-
1370
- **FEATURES**
1371
-
1372
- **`<Inline />`**
1373
-
1374
- Now supports an alignY responsive prop to vertically center its items to
1375
- either `top | center | bottom`, eg: `<Inline alignY="center">`
1376
-
1377
- **`<StarRating />`**
1378
-
1379
- Uses the `<Inline />` component instead of columns, so should use less DOM
1380
-
1381
- ## 2.0.1
1382
-
1383
- ### Patch Changes
1384
-
1385
- - c66b727: Anchors are now cursor pointer by default
1386
-
1387
- Seeing as we use `<TextLink />` or `<Box is="a" href="" />` in a few places,
1388
- it only makes sense to use `a { cursor: pointer }`.
1389
-
1390
- - 57b8cf3: Actions now filters out undefined or null children
1391
-
1392
- **`<Actions />`**
1393
-
1394
- Removed the className prop, this will slowly start happening across the
1395
- stack.
1396
-
1397
- ```diff
1398
- -<Actions className="test">
1399
- +<Actions>
1400
- .
1401
- </Actions>
1402
- ```
1403
-
1404
- ## 2.0.0
1405
-
1406
- ### Major Changes
1407
-
1408
- - 8881bdd: Styles are now `treat` driven.
1409
-
1410
- **A few changes**
1411
-
1412
- - `OverdriveProvider` must now be provider
1413
- - `ToastProvider` must also be provided when using a `useToast`
1414
- - `@autoguru/overdrive/reset` must be given first.
1415
-
1416
- ... and a whole series of other things. Please consult to the PR (#273) to
1417
- get a better idea of what's changed.
1418
-
1419
- ### Patch Changes
1420
-
1421
- - 230a3cd: Forces explicit text colours to Button hover and active states