@primer/view-components 0.0.62 → 0.0.63

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.
package/CHANGELOG.md DELETED
@@ -1,1528 +0,0 @@
1
- # CHANGELOG
2
-
3
- <!--
4
- Authoring changelog entries
5
-
6
- This file holds all the changes made in previous versions of Primer View Components and the ones coming to the next version.
7
- To add yours, you need to find in which category to write it under the `main` section. `Main` is the first section on top of the document.
8
- There are six categories currently in use, `New`, `Updates`, `Bug fixes`, `Breaking changes`, `Deprecations` and `Misc`.
9
-
10
- - New
11
- Category for new components, system behaviours, options and arguments changes
12
-
13
- - Updates
14
- Every non-breaking change to the source code go there.
15
-
16
- - Bug Fixes
17
- Non-breaking bug fixes to existing code.
18
-
19
- - Breaking Changes
20
- The category for changes creating incompatibilities to code written with previous versions.
21
- It includes any changes to components name, signature and behaviour. Also, include removing tags options or changing file location.
22
- If you are not sure you made breaking changes, ask us in your pull request.
23
-
24
- - Deprecations
25
- For changes that explicitly deprecate part of the code base.
26
-
27
- - Misc
28
- The category for changes related to documentation, testing and tooling. Also, for pull requests that can't fit in other sections.
29
- -->
30
-
31
- ## main
32
-
33
- ## 0.0.62
34
-
35
- ### New
36
-
37
- * Add linter for tracking deprecated `LayoutComponent` callsites
38
-
39
- *Josh Klina*
40
-
41
- ### Updates
42
-
43
- * Update `Button` to add `8px` spacing between icon, text and counter.
44
-
45
- *Manuel Puyol*
46
-
47
- * Update `BlankslateApiMigration` linter to support interpolations.
48
-
49
- *Manuel Puyol*
50
-
51
- * Change spacing in `Blankslate`:
52
- * Between `description` and `primary_action` to `32px`.
53
- * Between `primary_action` and `secondary_action` to `16px`.
54
-
55
- *Manuel Puyol*
56
-
57
- * Improve performance of `Classify#call`.
58
-
59
- *Cameron Dutro*
60
-
61
- ### Breaking Changes
62
-
63
- * Add a warning to users if they try to use `tag:` parameters on a component where the tag is fixed
64
-
65
- *Owen Niblock*
66
-
67
- * Updating to @primer/css@19.0.0 and @primer/primitives@7.1.0. Which removes support for deprecated system color arguments
68
-
69
- *Jon Rohan*
70
-
71
- * Prevent `aria-label` to be used with `:div, :span, :p` tags without an explicit `role`.
72
-
73
- *Manuel Puyol*
74
-
75
- ## 0.0.61
76
-
77
- ### New
78
-
79
- * Adding new Alpha component: `Layout` with `main` and `sidebar` slots
80
-
81
- *Cameron Dutro*
82
-
83
- * Add a two-column layout linter.
84
-
85
- *Cameron Dutro*
86
-
87
- * Add the `HellipButton` component
88
-
89
- *Amélia Chavot*, *Owen Niblock*
90
-
91
- ### Updates
92
-
93
- * Bump Storybook version to include Skip to Content links for keyboard auditors.
94
-
95
- *Katie Foster @inkblotty*
96
-
97
- * Update the `HiddenTextExpander` component to use the `HellipButton`.
98
-
99
- *Amélia Chavot*, *Owen Niblock*
100
-
101
- ### Misc
102
-
103
- * Fix components not rendering in Storybook because of kebab case arguments.
104
-
105
- *Amélia Chavot*, *Manuel Puyol*, *Owen Niblock*
106
-
107
- * Fix a typo on a command on the contribution page.
108
-
109
- *Amélia Chavot*, *Owen Niblock*
110
-
111
- ### Bug Fixes
112
-
113
- * Fix issue where tags were not self-closing when they are void elements.
114
-
115
- *Owen Niblock*
116
-
117
- ### Deprecations
118
-
119
- * Deprecate `Primer::BlankslateComponent` in favor of `Primer::Beta::Blankslate`.
120
-
121
- *Manuel Puyol*
122
-
123
- ### Breaking Changes
124
-
125
- * Require an `aria-label` to be provided for the `HiddenTextExpander` component.
126
-
127
- *Amélia Chavot*, *Owen Niblock*
128
-
129
- * Rename `force_system_arguments` to `raise_on_invalid_options` to better reflect its functionality
130
-
131
- *Owen Niblock*
132
-
133
- * Renamed `Blankslate` `title` slot to `heading`.
134
-
135
- *Manuel Puyol*
136
-
137
- * Removed `Blankslate` `large` variant.
138
-
139
- *Manuel Puyol*
140
-
141
- * Renamed `Blankslate` `graphic` slot to `visual`.
142
-
143
- *Manuel Puyol*
144
-
145
- ## 0.0.60
146
-
147
- ### Updates
148
-
149
- * Adding new Alpha component: BorderBox Header with optional `title` slot
150
-
151
- *Katie Foster @inkblotty*
152
-
153
- * Add note about `Breadcrumbs` not being responsive.
154
-
155
- *Joel Hawksley*
156
-
157
- * Handling arguments that aren't system arguments or string arguments in primer_octicon.
158
-
159
- *Jon Rohan, Manuel Puyol*
160
-
161
- * Improvements to the Procfile so script/dev works as expected.
162
-
163
- *Cameron Dutro*
164
-
165
- * Migrating grid classes to utilities.yml process
166
-
167
- *Jon Rohan*
168
-
169
- * Adding new system color arguments, and deprecating old arguments.
170
-
171
- *Jon Rohan*
172
-
173
- * Make `Spinner` more accessible by adding `sr-only` loading text.
174
-
175
- *Manuel Puyol*
176
-
177
- * Make class name validation configurable instead of relying on the Rails env.
178
-
179
- *Cameron Dutro*
180
-
181
- ### Bug Fixes
182
-
183
- * Removes unwanted bottom border from active tab of `Alpha::TabNav`.
184
-
185
- *Ned Schwartz*
186
-
187
- ### Breaking changes
188
-
189
- * Add size restriction to `Avatar`.
190
-
191
- *Kate Higa*
192
-
193
- * Remove `square` attribute from `Avatar` in favor of `shape`. This change also affects `TimelineItem` `avatar` slot.
194
-
195
- *Manuel Puyol*
196
-
197
- ## 0.0.59
198
-
199
- ### Updates
200
-
201
- * Changed `ClipboardCopy` to use `copy` instead of `paste` icon.
202
-
203
- *Cole Bemis*
204
-
205
- ### Breaking changes
206
-
207
- * `Breadcrumbs` no longer accepts padding and font size system arguments.
208
-
209
- *Joel Hawksley*
210
-
211
- ## 0.0.58
212
-
213
- ### Updates
214
-
215
- * Add accessibility section to `Breadcrumbs` page.
216
-
217
- *Kate Higa*
218
-
219
- * Improve performance of the Classify module, i.e. `Classify.call`.
220
-
221
- *Cameron Dutro*
222
-
223
- * Background arguments are now pulled in through the utilities class.
224
-
225
- *Jon Rohan*
226
-
227
- * Border arguments are now pulled in through the utilities class.
228
-
229
- *Jon Rohan*
230
-
231
- ### Breaking changes
232
-
233
- * `bg:` system argument will no longer accept hex color strings, and deprecated color scale.
234
-
235
- *Jon Rohan*
236
-
237
- ### Bug fixes
238
-
239
- * Fix `ClipboardCopy` octicons not toggling correctly after first click.
240
-
241
- *Manuel Puyol, Kristján Oddsson*
242
-
243
- ## 0.0.57
244
-
245
- ### Bug fixes
246
-
247
- * Don't suggest empty colors for Octicons when autocorrecting.
248
-
249
- *Manuel Puyol*
250
-
251
- ## 0.0.56
252
-
253
- ### Updates
254
-
255
- * `Octicon` linter will autocorrect colors.
256
-
257
- *Manuel Puyol*
258
-
259
- * `Button` linter will autocorrect when button uses `href`, `name`, `value` or `tabindex`.
260
-
261
- *Manuel Puyol*
262
-
263
- * `Flash` linter won't autocorrect flashes with ERB in their content.
264
-
265
- *Manuel Puyol*
266
-
267
- * Eager load components.
268
-
269
- *Cameron Dutro*
270
-
271
- ### Misc
272
-
273
- * Refactor some of the rubocop valid_node? logic into BaseCop class.
274
-
275
- *Jon Rohan*
276
-
277
- * Fix validation checker to use Utilities for color-* classes.
278
-
279
- *Jon Rohan*
280
-
281
- ## 0.0.55
282
-
283
- ### Breaking changes
284
-
285
- * `Primer::Breadcrumbs` requires `href`s for all items and no longer accepts the `selected` argument.
286
-
287
- *Joel Hawksley*
288
-
289
- * Split `TabNav` into `TabNav` and `TabPanels`.
290
-
291
- *Kate Higa*
292
-
293
- ### New
294
-
295
- * Use the allocation_stats gem to count object allocations in our benchmarks.
296
- * Improve performance of Octicon cache key construction.
297
-
298
- *Cameron Dutro*
299
-
300
- * Update `@primer/css` to `17.7.0` which includes a new argument for `word_break`
301
-
302
- *Jon Rohan*
303
-
304
- ### Misc
305
-
306
- * Clean up extra constants in `UnderlineNav`.
307
-
308
- *Kate Higa*
309
-
310
- ## 0.0.54
311
-
312
- ### Breaking changes
313
-
314
- * Rename `BreadcrumbComponent` to `Beta::Breadcrumbs`.
315
-
316
- *Joel Hawksley*
317
-
318
- * Split `UnderlineNavComponent` into `Alpha::UnderlineNav` and `Alpha::UnderlinePanels`.
319
-
320
- *Kate Higa*
321
-
322
- ## 0.0.53
323
-
324
- ### New
325
-
326
- * Add autocorrection to `FlashComponent` linter when the context is basic text.
327
-
328
- *Manuel Puyol*
329
-
330
- ### Updates
331
-
332
- * Linters won't mark offenses when the ignore count is correct unless explicitly configured to do so.
333
-
334
- *Manuel Puyol*
335
-
336
- * Deprecating background and border color presentational arguments
337
-
338
- *Jon Rohan*
339
-
340
- * Map the `for` argument when autofixing `ClipboardCopy` migrations.
341
-
342
- *Kristján Oddsson*
343
-
344
- * Add autocorrection for `CloseButton` linter.
345
-
346
- *Manuel Puyol*
347
-
348
- * Moving text color variables to Utilities class
349
-
350
- *Jon Rohan*
351
-
352
- ### Bug fixes
353
-
354
- * Linters won't convert HTML special elements.
355
-
356
- *Manuel Puyol*
357
-
358
- ### Misc
359
-
360
- * Only run CHANGELOG CI on pull requests.
361
-
362
- *Manuel Puyol*
363
-
364
- * Run CI actions on pushes to main.
365
-
366
- *Cameron Dutro*
367
-
368
- * Get to 100% code coverage.
369
-
370
- *Cameron Dutro*
371
-
372
- ## 0.0.52
373
-
374
- ### New
375
-
376
- * Adding `Primer::Beta::Truncate` component to reflect changes in primer/css component [Truncate](https://primer.style/css/components/truncate).
377
-
378
- *Jon Rohan*
379
-
380
- * Add cop to look for deprecated system arguments and suggest replacements.
381
-
382
- *Jon Rohan*
383
-
384
- * Add cop to use `primer_octicon` in favor of `octicon`.
385
-
386
- *Manuel Puyol*
387
-
388
- * Fix release script so it doesn't loop continuously.
389
-
390
- *Cameron Dutro*
391
-
392
- ### Updates
393
-
394
- * Promote `ClipboardCopy` to beta.
395
-
396
- *Manuel Puyol*
397
-
398
- * PrimerOcticon linter supports `aria-` and `data-` attributes.
399
-
400
- *Manuel Puyol*
401
-
402
- * Linters can:
403
- * convert values with ERB interpolations.
404
- * autocorrect cases with custom classes.
405
-
406
- *Manuel Puyol*
407
-
408
- * Add a `scheme` option to `BorderBoxComponent` rows.
409
-
410
- *Cameron Dutro*
411
-
412
- * Upgrade rubocop and support Ruby 3.0.
413
-
414
- *Cameron Dutro*
415
-
416
- * Linters will not autocorrect cases where a required argument is missing.
417
-
418
- *Manuel Puyol*
419
-
420
- ### Misc
421
-
422
- * Update benchmarks to run in every supported Ruby version.
423
-
424
- *Manuel Puyol*
425
-
426
- * Add a linter generator.
427
-
428
- *Manuel Puyol*
429
-
430
- ## 0.0.51
431
-
432
- ### Breaking changes
433
-
434
- * Rename `width` and `height` System Arguments to `w` and `h`, resolving conflict with HTML attribute names.
435
-
436
- *Manuel Puyol*
437
-
438
- ### Updates
439
-
440
- * `SystemArgumentInsteadOfClass` linter will check for arguments in ViewHelpers.
441
-
442
- *Manuel Puyol*
443
-
444
- ## 0.0.50
445
-
446
- ### Updates
447
-
448
- * Fix incorrect slots syntax in docs.
449
-
450
- *Joel Hawksley*, *Blake Williams*
451
-
452
- ### New
453
-
454
- * Add linter suggestions for `CloseButton` component.
455
-
456
- *Manuel Puyol*
457
-
458
- ### Breaking changes
459
-
460
- * Update to `octicons` `v15`, removing open-ended dependency. See [https://github.com/primer/octicons/releases/tag/v15.0.0] for icon name changes in release.
461
-
462
- *Joel Hawksley*
463
-
464
- ### Updates
465
-
466
- * Don't require `title` for `Label`.
467
-
468
- *Manuel Puyol*
469
-
470
- * Improve autocorrectable linters to convert known SystemArgument classes.
471
-
472
- *Manuel Puyol*
473
-
474
- * Add support for `width: :full` and `height: :full` to System Arguments.
475
-
476
- *Joel Hawksley*
477
-
478
- ### Bug fixes
479
-
480
- * Update linters to not autocorrect attributes with ERB blocks.
481
-
482
- *Manuel Puyol*
483
-
484
- * Fix `:height` and `:width` docs to pull from Utilities
485
-
486
- *Jon Rohan*
487
-
488
- ## 0.0.49
489
-
490
- ### New
491
-
492
- * Add linter suggestions for `Label` component.
493
-
494
- *Manuel Puyol*
495
-
496
- * Add linter suggestions for `ClipboardCopy` component.
497
-
498
- *Manuel Puyol*
499
-
500
- ### Updates
501
-
502
- * Update the `Truncate` component to accept `:strong` as a tag.
503
-
504
- *Amélia Chavot*
505
-
506
- * Improve `Primer::Classify::Utilities.classes_to_hash` performance.
507
-
508
- *Manuel Puyol*
509
-
510
- ### Breaking changes
511
-
512
- * Require tab with panels to have `panel_id` so `aria-controls` can be set.
513
-
514
- *Kate Higa*
515
-
516
- * Renames:
517
- * `Primer::AvatarStackComponent` to `Primer::Beta::AvatarStack`.
518
-
519
- *Manuel Puyol*
520
-
521
- ### Misc
522
-
523
- * Extract example tag parsing into helper.
524
-
525
- *Kate Higa*
526
-
527
- * Generate a static constant JSON and use it when defining linters.
528
-
529
- *Manuel Puyol*
530
-
531
- ## 0.0.48
532
-
533
- ### Breaking changes
534
-
535
- * Ensure panels in `Navigation::Tab` have a label.
536
-
537
- *Kate Higa*
538
-
539
- ### Misc
540
-
541
- * Expose custom cops and default config for erblint.
542
-
543
- *Manuel Puyol*
544
-
545
- * Fix double constant assign.
546
-
547
- *Manuel Puyol*
548
-
549
- ## 0.0.47
550
-
551
- ### Breaking changes
552
-
553
- * Restrict tag for `Popover` to `:div` and `Popover` heading slot to headings.
554
-
555
- *Kate Higa*
556
-
557
- * Renames:
558
- * `Primer::AutoComplete` to `Primer::Beta::AutoComplete`
559
- * `Primer::AutoComplete::Item` to `Primer::Beta::AutoComplete::Item`
560
- * `Primer::AvatarComponent` to `Primer::Beta::Avatar`
561
-
562
- *Manuel Puyol*
563
-
564
- ### Misc
565
-
566
- * Update `doc_examples_axe_test` to exclude non-standalone components and fix `Markdown` example.
567
-
568
- *Kate Higa*
569
-
570
- * Update `DetailsComponent` examples.
571
-
572
- *Manuel Puyol*
573
-
574
- * Add linter to suggest system arguments instead of classes.
575
-
576
- *Manuel Puyol*
577
-
578
- * Update component generator to create components in the right status module.
579
-
580
- *Manuel Puyol*
581
-
582
- * Add example for truncating HTML to `Truncate`.
583
-
584
- *Joel Hawksley*
585
-
586
- * Update docs generation to point to the correct file sources.
587
-
588
- *Manuel Puyol*
589
-
590
- * Add ENV flag to dump linter data into a file.
591
-
592
- *Manuel Puyol*
593
-
594
- ## 0.0.46
595
-
596
- ### Updates
597
-
598
- * Default to matching `name` and `id` of `input`.
599
-
600
- *Kate Higa*
601
-
602
- * Restrict usage of padding system arguments on BorderBox, recommending use of `padding` density instead.
603
-
604
- *Joel Hawksley*
605
-
606
- ### Breaking changes
607
-
608
- * Restrict `TabNav`and `Tab` tags.
609
-
610
- *Kate Higa*
611
-
612
- * Restrict `AvatarStack` body slot tag and `ImageCrop` spinner tag.
613
-
614
- *Kate Higa*
615
-
616
- * Restrict `Details` body slot tags and `UnderlineNav` body slot tags.
617
-
618
- *Kate Higa*
619
-
620
- * Move Primer::Classify from `app/lib/` to `lib/`. This requires an extra `require "primer/classify"` statement for anywhere Classify is needed.
621
-
622
- *Manuel Puyol, Jon Rohan*
623
-
624
- * Restrict `Menu` heading slot tags to heading tags and require `tag` argument.
625
-
626
- *Kate Higa*
627
-
628
- * Adding animation, vertical_align, word_break, display, visibility, & position arguments to the utilities class. `animation: :grow` is now `animation: :hover_grow` this was a change because we changed the class name in primer.
629
-
630
- *Jon Rohan*
631
-
632
- ### Misc
633
-
634
- * Update contributing guidelines with release instructions.
635
-
636
- *Kate Higa*
637
-
638
- * Prevent flexible tag syntax with rubocop rule.
639
-
640
- *Kate Higa*
641
-
642
- * Update linter autocorrection to use `""` instead of `true` for boolean attributes.
643
-
644
- *Manuel Puyol*
645
-
646
- * Update Storybook version.
647
-
648
- *Manuel Puyol*
649
-
650
- * Add a changelog authoring guide to `CHANGELOG.md`.
651
-
652
- *Amélia Chavot*
653
-
654
- ## 0.0.45
655
-
656
- ### Updates
657
-
658
- * Allow copying from elements using `for` in `ClipboardCopy`.
659
-
660
- *Manuel Puyol*
661
-
662
- ### Breaking changes
663
-
664
- * Remove `label` argument in favor of `aria-label` in `ClipboardCopy`.
665
-
666
- *Manuel Puyol*
667
-
668
- ### Misc
669
-
670
- * Add autocorrect for button linters.
671
-
672
- *Manuel Puyol*
673
-
674
- * Unify contributing guidelines.
675
-
676
- *Kate Higa*
677
-
678
- * Rerun flaky system tests.
679
-
680
- *Manuel Puyol*
681
-
682
- * Check if selector is a classify class in Utilities.
683
-
684
- *Jon Rohan*
685
-
686
- ## 0.0.44
687
-
688
- ### Updates
689
-
690
- * Allow `Dropdown` menu items to be rendered outside a list.
691
-
692
- *Manuel Puyol*
693
-
694
- ### Breaking changes
695
-
696
- * Require a label or `aria-label` to be provided for `AutoComplete` component.
697
-
698
- *Kate Higa*
699
-
700
- * Renames:
701
- * `DropdownComponent` to `Dropdown`.
702
- * `Dropdown::MenuComponent` to `Dropdown::Menu`.
703
- * `Primer::ButtonMarketingComponent` to `Primer::Alpha::ButtonMarketing`.
704
- * `Primer::TextComponent` to `Primer::Beta::Text`.
705
-
706
- *Manuel Puyol*
707
-
708
- * Removes `summary_classes` attribute in favor of the `summary` slot in `Dropdown`.
709
-
710
- *Manuel Puyol*
711
-
712
- ### Misc
713
-
714
- * Replace Classify::Spacing class with pre-generated mappings.
715
-
716
- *Jon Rohan*
717
-
718
- * Add linter suggestions for `Button` component.
719
-
720
- *Manuel Puyol*
721
-
722
- * Sort documentation arguments.
723
-
724
- *Jon Rohan*
725
-
726
- * Add validations for docs generation.
727
-
728
- *Manuel Puyol, Kate Higa*
729
-
730
- * Change docs header order.
731
-
732
- *Manuel Puyol, Kate Higa*
733
-
734
- * Add preliminary criteria for new `alpha` components.
735
-
736
- *Joel Hawksley*
737
-
738
- ## 0.0.43
739
-
740
- ### New
741
-
742
- * Add `clearfix` and `container` system arguments.
743
-
744
- *Manuel Puyol*
745
-
746
- ### Updates
747
-
748
- * Promote `TabNav` component to beta.
749
-
750
- *Manuel Puyol*
751
-
752
- * Allow customizing `TabContainer` when using `TabNav` and `UnderlineNav` components.
753
-
754
- *Manuel Puyol*
755
-
756
- ### Breaking changes
757
-
758
- * Restrict `col` system arguments to only accept values between 1 and 12.
759
-
760
- *Manuel Puyol*
761
-
762
- ### Misc
763
-
764
- * Raise an error if `class` is used as a system argument.
765
-
766
- *Manuel Puyol*
767
-
768
- * Don't commit auto-generated component previews.
769
-
770
- *Kate Higa*
771
-
772
- * Provide linters for component migrations.
773
-
774
- *Manuel Puyol*
775
-
776
- * Update docs to accept multiline descriptions.
777
-
778
- *Manuel Puyol*
779
-
780
- * Upgrade primer/css to 17.2.1
781
-
782
- *Jon Rohan*
783
-
784
- ## 0.0.42
785
-
786
- ### New
787
-
788
- * Add `font_family`, `font_style` and `text_transform` system arguments.
789
-
790
- *Manuel Puyol*
791
-
792
- * Add more options for `font_size` and `font_weight`.
793
-
794
- *Manuel Puyol*
795
-
796
- ### Updates
797
-
798
- * Add `align` option to the `TabNav` extra slot to allow HTML ordering.
799
-
800
- *Manuel Puyol*
801
-
802
- ### Misc
803
-
804
- * Auto-generate component previews from doc examples and run integration test checks.
805
-
806
- *Kate Higa, Joel Hawksley*
807
-
808
- * Configure previews controller to allow view helper usage in preview template.
809
-
810
- *Kate Higa*
811
-
812
- * Only include `ViewComponent::SlotableV2` if `ViewComponent::Base` does not already include it.
813
-
814
- *Manuel Puyol*
815
-
816
- * Add `force_system_arguments` option to raise an error if a class is used instead of using System Arguments.
817
-
818
- *Manuel Puyol*
819
-
820
- ### Breaking changes
821
-
822
- * Restrict allowed tags for `Truncate`, `Markdown`, and `HiddenTextExpander`.
823
-
824
- *Kate Higa*
825
-
826
- ## 0.0.41
827
-
828
- ### New
829
-
830
- * Create `LocalTime` component.
831
-
832
- *Kristján Oddsson*
833
-
834
- * Create `Image` component.
835
-
836
- *Manuel Puyol*
837
-
838
- * Add `extra` slot to `TabNav`.
839
-
840
- *Manuel Puyol*
841
-
842
- * Do not raise error if Primer CSS class name is passed to component if `PRIMER_WARNINGS_DISABLED` is set.
843
-
844
- *Joel Hawksley*
845
-
846
- ### Accessibility
847
-
848
- * Accept `aria-current="true"` in tabbed components.
849
-
850
- *Manuel Puyol*
851
-
852
- ### Changes
853
-
854
- * Promote `Tooltip` component to beta.
855
-
856
- *Manuel Puyol*
857
-
858
- ### Bug fixes
859
-
860
- * Ensure that `ClipboardCopy` behaviors only target ViewComponents.
861
-
862
- *Manuel Puyol*
863
-
864
- * Ensure that the `rounded` attribute for `<image-crop>` is represented as a boolean attribute.
865
-
866
- *Kristján Oddsson*
867
-
868
- ### Breaking changes
869
-
870
- * Rename `TooltipComponent` to `Tooltip`.
871
-
872
- *Manuel Puyol*
873
-
874
- * Don't allow `OcticonComponent` height/width values under 16px
875
-
876
- *Jon Rohan*
877
-
878
- * Remove `:large` size option from `OcticonComponent` and change `:medium` to 24px
879
-
880
- *Jon Rohan*
881
-
882
- * Restrict `Label` tag to `span`, `div`, `a`, `summary`.
883
-
884
- *Kate Higa*
885
-
886
- ### Misc
887
-
888
- * Add a CI check for changes to the CHANGELOG file.
889
-
890
- *Kristján Oddsson*
891
-
892
- ## 0.0.40
893
-
894
- ### New
895
-
896
- * Create `ImageCrop` component.
897
-
898
- *Kristján Oddsson*
899
-
900
- ### Changes
901
-
902
- * Promote `IconButton` to beta.
903
-
904
- *Manuel Puyol*
905
-
906
- * Add `box` argument to `IconButton`.
907
-
908
- *Manuel Puyol*
909
-
910
- * Promote `Markdown` to beta.
911
-
912
- *Manuel Puyol*
913
-
914
- ### Bug fixes
915
-
916
- * Fix `IconButton` raising when `aria-label` was provided using an object.
917
-
918
- *Manuel Puyol*
919
-
920
- * Fix disabling of default styles for `SpinnerComponent` via `nil` style parameter.
921
-
922
- *Chris Wilson*
923
-
924
- ### Deprecations
925
-
926
- * Deprecate `Flex` in favor of `BoxComponent`.
927
-
928
- *Manuel Puyol*
929
-
930
- ### Breaking Changes
931
-
932
- * Restrict `ButtonGroup` tag to `:div` and update docs for `Text` tag.
933
-
934
- *Kate Higa*
935
-
936
- * Remove non-functional `width` and `height` `:fill` option.
937
-
938
- *Jon Rohan*, *Joel Hawksley*
939
-
940
- * Restrict `Subhead` `heading` slot tag to `div` and `h1`-`h6`.
941
-
942
- *Kate Higa*
943
-
944
- * Restrict `Blankslate` tag to `div`.
945
-
946
- *Kate Higa*
947
-
948
- * Explicitly limit tag for `AvatarStack` to `:div` and `:span`.
949
-
950
- *Kate Higa*
951
-
952
- * Rename `MarkdownComponent` to `Markdown`.
953
-
954
- *Manuel Puyol*
955
-
956
- ## 0.0.39
957
-
958
- * Promote `CloseButton` to beta.
959
-
960
- *Manuel Puyol*
961
-
962
- * Update `ClipboardCopy` to not toggle icons unless they both exist.
963
-
964
- *Kristján Oddsson*
965
-
966
- * Add `icon` and `counter` slots to `ButtonComponent`.
967
-
968
- *Manuel Puyol*
969
-
970
- * Create `IconButton` component.
971
-
972
- *Manuel Puyol*
973
-
974
- * Removing trailing whitespace from output of `class=""` Classify generation.
975
-
976
- *Jon Rohan*
977
-
978
- * Deprecate `FlexItem` in favor of `BoxComponent`.
979
-
980
- *Manuel Puyol*
981
-
982
- * Dropping requirement of `octicons_helper` and updating `OcticonComponent` to use `octicon` gem directly.
983
-
984
- *Jon Rohan*
985
-
986
- * **Breaking change:** Remove `:overlay` option from `border_color`.
987
-
988
- *Simon Luthi*
989
-
990
- ## 0.0.38
991
-
992
- * Extract `BaseButton` component.
993
-
994
- *Manuel Puyol*
995
-
996
- * Add default `aria-label` of "Close" to `CloseButton` component.
997
-
998
- *Kate Higa*
999
-
1000
- * Set button variants in the `ButtonGroup` parent.
1001
-
1002
- *Manuel Puyol*
1003
-
1004
- * Create `ClipboardCopy` component.
1005
-
1006
- *Kristján Oddsson*
1007
-
1008
- * **Breaking change:** Rename `ButtonGroupComponent` to `ButtonGroup` and promote it to beta.
1009
-
1010
- *Manuel Puyol*
1011
-
1012
- * **Breaking change:** Do not provide default for `Heading` and improve documentation.
1013
-
1014
- *Kate Higa*
1015
-
1016
- * **Breaking change:** Don't allow `StateComponent` to be a link.
1017
-
1018
- *Kate Higa*
1019
-
1020
- ## 0.0.37
1021
-
1022
- * Update NPM package to include subdirectory JS files.
1023
-
1024
- *Manuel Puyol*
1025
-
1026
- ## 0.0.36
1027
-
1028
- * Add `block` flag to `ButtonComponent`.
1029
-
1030
- *Manuel Puyol*
1031
-
1032
- * Add `link` and `invisible` schemes to `ButtonComponent`.
1033
-
1034
- *Manuel Puyol*
1035
-
1036
- * Create `CloseButton` and `HiddenTextExpander` component.
1037
-
1038
- *Manuel Puyol*
1039
-
1040
- * **Breaking change:** Rename `AutoCompleteComponent` to `AutoComplete` and `AutoCompleteItemComponent` to `AutoComplete::Item`.
1041
-
1042
- *Manuel Puyol*
1043
-
1044
- * **Breaking change:** Rename `TruncateComponent` to `Truncate` and promote it to beta.
1045
-
1046
- *Manuel Puyol*
1047
-
1048
- ## 0.0.35
1049
-
1050
- * Promote `AutoCompleteComponent`, `AutoCompleteItemComponent`, `AvatarStackComponent` and `ButtonComponent` to beta.
1051
-
1052
- *Manuel Puyol*
1053
-
1054
- * Allow `UnderlineNav` tabs to be rendered as a `<ul><li>` list.
1055
-
1056
- *Manuel Puyol*
1057
-
1058
- * _Accessibility:_ Don't add tab roles when `UnderlineNav` or `TabNav` use link redirects.
1059
-
1060
- *Manuel Puyol*
1061
-
1062
- * **Breaking change:** Make `label` required for `UnderlineNav` and `TabNav`.
1063
-
1064
- *Manuel Puyol*
1065
-
1066
- ## 0.0.34
1067
-
1068
- * Add `p: :responsive` and `m: :auto` system arguments.
1069
-
1070
- *Manuel Puyol*
1071
-
1072
- * Remove `my: :auto` and negative `m:` system arguments.
1073
-
1074
- *Manuel Puyol*
1075
-
1076
- * **Breaking change:** Rename `FlashComponent` `variant` argument to `scheme`.
1077
-
1078
- *Manuel Puyol*
1079
-
1080
- * **Breaking change:** Rename `LinkComponent` `variant` argument to `scheme`.
1081
-
1082
- *Manuel Puyol*
1083
-
1084
- * **Breaking change:** Rename `ButtonComponent` `button_type` argument to `scheme`.
1085
-
1086
- *Manuel Puyol*
1087
-
1088
- * **Breaking change:** Rename `ButtonMarketing` `button_type` argument to `scheme`.
1089
-
1090
- *Manuel Puyol*
1091
-
1092
- * **Breaking change:** Rename `StateComponent` `color` argument to `scheme`.
1093
-
1094
- *Manuel Puyol*
1095
-
1096
- ## 0.0.33
1097
-
1098
- * Remove `TabbedComponent` validation requiring a tab to be selected.
1099
-
1100
- *Manuel Puyol*
1101
-
1102
- ## 0.0.32
1103
-
1104
- * Allow passing the icon name as a positional argument to `OcticonComponent`.
1105
-
1106
- *Manuel Puyol*
1107
-
1108
- * Promote `TimeAgoComponent` to beta.
1109
-
1110
- *Manuel Puyol*
1111
-
1112
- * **Breaking change:** Update `TabNav#tab` API to accept the tab content as a block and panel content as a slot.
1113
-
1114
- *Manuel Puyol*
1115
-
1116
- * **Breaking change:** Update `UnderlineNavComponent` API be more strict and support `TabContainer`.
1117
-
1118
- *Manuel Puyol*
1119
-
1120
- ## 0.0.31
1121
-
1122
- * Fix `Popover` bug where body was only returning the last line of the HTML.
1123
-
1124
- *Manuel Puyol, Blake Williams*
1125
-
1126
- ## 0.0.30
1127
-
1128
- * Make `color:`, `bg:` and `border_color:` accept string values.
1129
-
1130
- *Manuel Puyol*
1131
-
1132
- ## 0.0.29
1133
-
1134
- * Add `primer_time_ago` helper.
1135
-
1136
- *Simon Taranto*
1137
-
1138
- * Add `silence_deprecations` config to supress deprecation warnings.
1139
-
1140
- *Manuel Puyol*
1141
-
1142
- ## 0.0.28
1143
-
1144
- * Update `CounterComponent` to accept functional schemes `primary` and `secondary`. Deprecate `gray` and `light_gray` schemes.
1145
-
1146
- *Manuel Puyol*
1147
-
1148
- * Add `force_functional_colors` option to convert colors to functional. This change includes a deprecation warning in non-production environments that warns about non functional color usage.
1149
-
1150
- *Manuel Puyol*
1151
-
1152
- * Promote `DetailsComponent`, `HeadingComponent`, `TextComponent`, `TimelineItemComponent`, and
1153
- `PopoverComponent` to beta status.
1154
-
1155
- *Simon Taranto*
1156
-
1157
- * Update `LinkComponent`:
1158
- * use `Link--muted` instead of `muted-link`.
1159
- * accept `variant` and `underline` options.
1160
- * accept `:span` as a tag.
1161
-
1162
- *Manuel Puyol*
1163
-
1164
- * Add `AutoComplete` and `AutoCompleteItem` components.
1165
-
1166
- *Manuel Puyol*
1167
-
1168
- * Publish types with npm package.
1169
-
1170
- *Keith Cirkel* & *Clay Miller*
1171
-
1172
- * Fix `AvatarComponent` to apply classes to the link wrapper if present.
1173
-
1174
- *Steve Richert*
1175
-
1176
- * Fix `AvatarComponent` to apply the `avatar-small` class rather than `avatar--small`.
1177
-
1178
- *Steve Richert*
1179
-
1180
- * **Breaking change:** Updates `PopoverComponent` to use Slots V2.
1181
-
1182
- *Manuel Puyol*
1183
-
1184
- ## 0.0.27
1185
-
1186
- * Promote `BreadcrumbComponent` and `ProgressBarComponent` to beta status.
1187
-
1188
- *Simon Taranto*
1189
-
1190
- * Fix `OcticonComponent` not rendering `data-test-selector` correctly.
1191
-
1192
- *Manuel Puyol*
1193
-
1194
- * Add `TimeAgo` component.
1195
-
1196
- *Keith Cirkel*
1197
-
1198
- * **Breaking change:** Updates `UnderlineNavComponent` to use Slots V2.
1199
-
1200
- *Simon Taranto*
1201
-
1202
- * **Breaking change:** Upgrade `LayoutComponent` to use Slots V2.
1203
-
1204
- *Simon Taranto*
1205
-
1206
- ## 0.0.26
1207
-
1208
- * Fix `DetailsComponent` summary always being rendered as a `btn`.
1209
-
1210
- *Manuel Puyol*
1211
-
1212
- * Promote `BlankslateComponent` and `BaseComponent` to beta status.
1213
-
1214
- *Simon Taranto*
1215
-
1216
- ## 0.0.25
1217
-
1218
- * Promote `SubheadComponent` to beta.
1219
-
1220
- *Simon Taranto*
1221
-
1222
- * Add deprecated `orange` and `purple` schemes to `LabelComponent`.
1223
-
1224
- *Manuel Puyol*
1225
-
1226
- ## 0.0.24
1227
-
1228
- * Fix zeitwerk autoload integration.
1229
-
1230
- *Manuel Puyol*
1231
-
1232
- * **Breaking change:** Upgrade `ProgressBarComponent` to use Slots V2.
1233
-
1234
- *Simon Taranto*
1235
-
1236
- * **Breaking change:** Upgrade `BreadcrumbComponent` to use Slots V2.
1237
-
1238
- *Manuel Puyol*
1239
-
1240
- ## 0.0.23
1241
-
1242
- * Remove node and yarn version requirements from `@primer/view-components`.
1243
-
1244
- *Manuel Puyol*
1245
-
1246
- * **Breaking change:** Upgrade `SubheadComponent` to use Slots V2.
1247
-
1248
- *Simon Taranto*
1249
-
1250
- * **Breaking change:** Update `LabelComponent` to use only functional color
1251
- supportive scheme keys. The component no longer accepts colors (`:gray`, for
1252
- example) but only functional schemes (`primary`, for example).
1253
- `LabelComponent` is promoted to beta status.
1254
-
1255
- *Simon Taranto*
1256
-
1257
- ## 0.0.22
1258
-
1259
- * Add view helpers to easily render Primer components.
1260
-
1261
- *Manuel Puyol*
1262
-
1263
- * Add `TabContainer` and `TabNav` components.
1264
-
1265
- *Manuel Puyol*
1266
-
1267
- * Promote `StateComponent` to beta.
1268
-
1269
- *Simon Taranto*
1270
-
1271
- * **Breaking change:** Upgrade `BorderBoxComponent` to use Slots V2.
1272
-
1273
- *Manuel Puyol*
1274
-
1275
- * **Breaking change:** Upgrade `StateComponent` to support functional colors. This change requires using [@primer/css-next](https://www.npmjs.com/package/@primer/css-next). The required changes will be upstreamed to @primer/css at a later date.
1276
-
1277
- *Simon Taranto*
1278
-
1279
- * **Breaking change:** Upgrade `DetailsComponent` to use Slots V2.
1280
-
1281
- *Simon Taranto*
1282
-
1283
- ## 0.0.21
1284
-
1285
- * **Breaking change:** Upgrade `FlashComponent` to use Slots V2.
1286
-
1287
- *Joel Hawksley, Simon Taranto*
1288
-
1289
- * **Breaking change:** Upgrade `BlankslateComponent` to use Slots V2.
1290
-
1291
- *Manuel Puyol*
1292
-
1293
- * **Breaking change:** Upgrade `TimelineItemComponent` to use Slots V2.
1294
-
1295
- *Manuel Puyol*
1296
-
1297
- ## 0.0.20
1298
-
1299
- * Fix bug when empty string was passed to Classify.
1300
-
1301
- *Manuel Puyol*
1302
-
1303
- ## 0.0.19
1304
-
1305
- * Add support for functional colors to `color` system argument.
1306
-
1307
- *Jake Shorty*
1308
-
1309
- * Add `AvatarStack`, `Dropdown`, `Markdown` and `Menu` components.
1310
-
1311
- *Manuel Puyol*
1312
-
1313
- * Deprecate `DropdownMenuComponent`.
1314
-
1315
- *Manuel Puyol*
1316
-
1317
- * Fix `Avatar` bug when used with links.
1318
-
1319
- *Manuel Puyol*
1320
-
1321
- * Add cache for common Primer values.
1322
-
1323
- *Blake Williams*
1324
-
1325
- * Add support for `octicons_helper` v12.
1326
-
1327
- *Cole Bemis*
1328
-
1329
- * Add support for `border: true` to apply the `border` class.
1330
-
1331
- *Simon Taranto*
1332
-
1333
- * Promote `Avatar`, `Link`, and `Counter` components to beta.
1334
-
1335
- *Simon Taranto*
1336
-
1337
- * **Breaking change:** Drop support for Ruby 2.4.
1338
-
1339
- *Simon Taranto*
1340
-
1341
- ## 0.0.18
1342
-
1343
- * Add `border_radius` system argument.
1344
-
1345
- *Ash Guillaume*
1346
-
1347
- * Add `animation` system argument.
1348
-
1349
- *Manuel Puyol*
1350
-
1351
- * Add `Truncate`, `ButtonGroup` and `ButtonMarketing` components.
1352
-
1353
- *Manuel Puyol*
1354
-
1355
- * Add `Tooltip` component.
1356
-
1357
- *Simon Taranto*
1358
-
1359
- ## 0.0.17
1360
-
1361
- * Ensure all components support inline styles.
1362
-
1363
- *Joel Hawksley*
1364
-
1365
- ## 0.0.16
1366
-
1367
- * Adding a `spinner` slot to the `BlankslateComponent` that uses the `SpinnerComponent` added in `0.0.10`.
1368
-
1369
- *Jon Rohan*
1370
-
1371
- * Bumping node engine to version `15.x`
1372
-
1373
- *Jon Rohan*
1374
-
1375
- ## 0.0.15
1376
-
1377
- * Add ability to disable `limit` on Counter.
1378
-
1379
- *Christian Giordano*
1380
-
1381
- * Rename `v` system argument to `visibility`.
1382
-
1383
- *Joel Hawksley*
1384
-
1385
- ## 0.0.14
1386
-
1387
- * Add functional colors to Label.
1388
-
1389
- *Joel Hawksley*
1390
-
1391
- ## 0.0.13
1392
-
1393
- * Add support for `xl` breakpoint.
1394
-
1395
- *Joel Hawksley*
1396
-
1397
- ## 0.0.12
1398
-
1399
- * Adds support for disabling inline box-sizing style for `SpinnerComponent` via style parameter `Primer::SpinnerComponent.new(style: nil)`.
1400
-
1401
- *Chris Wilson*
1402
-
1403
- ## 0.0.11
1404
-
1405
- * Renames DetailsComponent::OVERLAY_DEFAULT to DetailsComponent::NO_OVERLAY to more correctly describe its value.
1406
-
1407
- *Justin Kenyon*
1408
-
1409
- ## 0.0.10
1410
-
1411
- * Add SpinnerComponent
1412
-
1413
- *Cole Bemis*
1414
-
1415
- ## 0.0.9
1416
-
1417
- * BREAKING CHANGE: OcticonComponent no longer accepts `class` parameter; use `classes` instead.
1418
-
1419
- *heynan0*
1420
-
1421
- ## 0.0.8
1422
-
1423
- * Add support for border margins, such as: `border_top: 0`.
1424
-
1425
- *Natasha Umer*
1426
-
1427
- * Add FlashComponent and OcticonComponent.
1428
-
1429
- *Joel Hawksley*
1430
-
1431
- * BREAKING CHANGE: BlankslateComponent accepts `icon_size` instead of `icon_height`.
1432
-
1433
- *Joel Hawksley*
1434
-
1435
- ## 0.0.7
1436
-
1437
- * Use `octicons_helper` v11.0.0.
1438
-
1439
- *Joel Hawksley*
1440
-
1441
- ## 0.0.6
1442
-
1443
- * Updated the invalid class name error message
1444
-
1445
- *emplums*
1446
-
1447
- * Updated README with testing instructions
1448
-
1449
- *emplums*
1450
-
1451
- * Add large and spacious option to BlankslateComponent
1452
-
1453
- *simurai*
1454
-
1455
- * Add option for `ButtonComponent` to render a `summary` tag
1456
-
1457
- *Manuel Puyol*
1458
-
1459
- * BREAKING CHANGE: Changed `DetailsComponent` summary and body to be slots
1460
-
1461
- *Manuel Puyol*
1462
-
1463
- ## 0.0.5
1464
-
1465
- * Add support for box_shadow
1466
- * Add components:
1467
- * Popover
1468
-
1469
- *Sarah Vessels*
1470
-
1471
- ## 0.0.4
1472
-
1473
- * Added support for mx: and my: :auto.
1474
-
1475
- *Christian Giordano*
1476
-
1477
- * Added support for custom layout sizes.
1478
-
1479
- *Manuel Puyol*
1480
-
1481
- ## 0.0.3
1482
-
1483
- * Add support for responsive `float` system argument.
1484
-
1485
- *Joel Hawksley*
1486
-
1487
- * Add components:
1488
- * Avatar
1489
- * Blankslate
1490
-
1491
- *Manuel Puyol, Ben Emdon*
1492
-
1493
- ## 0.0.1
1494
-
1495
- * Add initial gem configuration.
1496
-
1497
- *Manuel Puyol, Joel Hawksley*
1498
-
1499
- * Add demo app and storybook to test
1500
-
1501
- *Manuel Puyol*
1502
-
1503
- * Add Classify, FetchOrFallback and ClassName helpers
1504
-
1505
- *Manuel Puyol*
1506
-
1507
- * Add components:
1508
- * BorderBox
1509
- * Box
1510
- * Breadcrumb
1511
- * Button
1512
- * Counter
1513
- * Details
1514
- * Dropdown
1515
- * Flex
1516
- * FlexItem
1517
- * Heading
1518
- * Label
1519
- * Layout
1520
- * Link
1521
- * ProgressBar
1522
- * State
1523
- * Subhead
1524
- * Text
1525
- * TimelineItem
1526
- * UnderlineNav
1527
-
1528
- *Manuel Puyol*