@primer/view-components 0.0.112 → 0.0.113

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 (32) hide show
  1. package/app/assets/javascripts/primer_view_components.js +1 -1
  2. package/app/assets/javascripts/primer_view_components.js.map +1 -1
  3. package/app/assets/styles/primer_view_components.css +3 -1
  4. package/app/assets/styles/primer_view_components.css.map +1 -1
  5. package/app/components/primer/alpha/action_list.css +1 -1
  6. package/app/components/primer/alpha/action_list.css.json +1 -1
  7. package/app/components/primer/alpha/auto_complete.css +1 -1
  8. package/app/components/primer/alpha/banner.css +1 -1
  9. package/app/components/primer/alpha/dialog.css +1 -0
  10. package/app/components/primer/alpha/dialog.css.json +1 -0
  11. package/app/components/primer/alpha/segmented_control.css +1 -1
  12. package/app/components/primer/alpha/text_field.css +3 -0
  13. package/app/components/primer/alpha/text_field.css.json +1 -0
  14. package/app/components/primer/alpha/toggle_switch.d.ts +1 -1
  15. package/app/components/primer/alpha/toggle_switch.js +7 -4
  16. package/app/components/primer/beta/button_group.css +1 -0
  17. package/app/components/primer/beta/button_group.css.json +1 -0
  18. package/app/components/primer/{clipboard_copy.d.ts → beta/clipboard_copy.d.ts} +0 -0
  19. package/app/components/primer/{clipboard_copy.js → beta/clipboard_copy.js} +0 -0
  20. package/app/components/primer/button_component.css +1 -0
  21. package/app/components/primer/button_component.css.json +1 -0
  22. package/app/components/primer/local_time.d.ts +1 -1
  23. package/app/components/primer/local_time.js +1 -1
  24. package/app/components/primer/primer.d.ts +1 -1
  25. package/app/components/primer/primer.js +1 -1
  26. package/app/components/primer/time_ago_component.d.ts +1 -1
  27. package/app/components/primer/time_ago_component.js +1 -1
  28. package/package.json +2 -2
  29. package/static/arguments.json +143 -33
  30. package/static/audited_at.json +6 -4
  31. package/static/constants.json +124 -0
  32. package/static/statuses.json +4 -2
@@ -1387,6 +1387,38 @@
1387
1387
  }
1388
1388
  ]
1389
1389
  },
1390
+ {
1391
+ "component": "ClipboardCopy",
1392
+ "status": "beta",
1393
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/clipboard_copy.rb",
1394
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/clipboard_copy/default/",
1395
+ "parameters": [
1396
+ {
1397
+ "name": "aria-label",
1398
+ "type": "String",
1399
+ "default": "N/A",
1400
+ "description": "String that will be read to screenreaders when the component is focused"
1401
+ },
1402
+ {
1403
+ "name": "value",
1404
+ "type": "String",
1405
+ "default": "`nil`",
1406
+ "description": "Text to copy into the users clipboard when they click the component."
1407
+ },
1408
+ {
1409
+ "name": "for",
1410
+ "type": "String",
1411
+ "default": "N/A",
1412
+ "description": "Element id from where to get the copied value."
1413
+ },
1414
+ {
1415
+ "name": "system_arguments",
1416
+ "type": "Hash",
1417
+ "default": "N/A",
1418
+ "description": "[System arguments](/system-arguments)"
1419
+ }
1420
+ ]
1421
+ },
1390
1422
  {
1391
1423
  "component": "CloseButton",
1392
1424
  "status": "beta",
@@ -1743,6 +1775,116 @@
1743
1775
  }
1744
1776
  ]
1745
1777
  },
1778
+ {
1779
+ "component": "RelativeTime",
1780
+ "status": "beta",
1781
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/beta/relative_time.rb",
1782
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/beta/relative_time/default/",
1783
+ "parameters": [
1784
+ {
1785
+ "name": "datetime",
1786
+ "type": "Time",
1787
+ "default": "N/A",
1788
+ "description": "The time to be formatted."
1789
+ },
1790
+ {
1791
+ "name": "tense",
1792
+ "type": "Symbol",
1793
+ "default": "`:auto`",
1794
+ "description": "Which tense to use. One of `:auto`, `:future`, or `:past`."
1795
+ },
1796
+ {
1797
+ "name": "prefix",
1798
+ "type": "sring",
1799
+ "default": "`nil`",
1800
+ "description": "What to prefix the relative ime display with."
1801
+ },
1802
+ {
1803
+ "name": "second",
1804
+ "type": "Symbol",
1805
+ "default": "`SECOND_DEFAULT`",
1806
+ "description": "What format seconds should take. One of `nil`, `:numeric`, or `:two_digit`."
1807
+ },
1808
+ {
1809
+ "name": "minute",
1810
+ "type": "Symbol",
1811
+ "default": "`MINUTE_DEFAULT`",
1812
+ "description": "What format minues should take. One of `nil`, `:numeric`, or `:two_digit`."
1813
+ },
1814
+ {
1815
+ "name": "hour",
1816
+ "type": "Symbol",
1817
+ "default": "`HOUR_DEFAULT`",
1818
+ "description": "What format hours should take. One of `nil`, `:numeric`, or `:two_digit`."
1819
+ },
1820
+ {
1821
+ "name": "weekday",
1822
+ "type": "Symbol",
1823
+ "default": "`WEEKDAY_DEFAULT`",
1824
+ "description": "What format weekdays should take. One of `nil`, `:long`, `:narrow`, or `:short`."
1825
+ },
1826
+ {
1827
+ "name": "day",
1828
+ "type": "Symbol",
1829
+ "default": "`DAY_DEFAULT`",
1830
+ "description": "What format days should take. One of `nil`, `:numeric`, or `:two_digit`."
1831
+ },
1832
+ {
1833
+ "name": "month",
1834
+ "type": "Symbol",
1835
+ "default": "`MONTH_DEFAULT`",
1836
+ "description": "What format months should take. One of `nil`, `:long`, `:narrow`, `:numeric`, `:short`, or `:two_digit`."
1837
+ },
1838
+ {
1839
+ "name": "year",
1840
+ "type": "Symbol",
1841
+ "default": "`YEAR_DEFAULT`",
1842
+ "description": "What format years should take. One of `nil`, `:numeric`, or `:two_digit`."
1843
+ },
1844
+ {
1845
+ "name": "time_zone_name",
1846
+ "type": "Symbol",
1847
+ "default": "`TIMEZONENAME_DEFAULT`",
1848
+ "description": "What format the time zone should take. One of `nil`, `:long`, `:long_generic`, `:long_offset`, `:short`, `:short_generic`, or `:short_offset`."
1849
+ },
1850
+ {
1851
+ "name": "threshold",
1852
+ "type": "string",
1853
+ "default": "`nil`",
1854
+ "description": "The threshold at which relative time displays become absolute."
1855
+ },
1856
+ {
1857
+ "name": "precision",
1858
+ "type": "Symbol",
1859
+ "default": "`PRECISION_DEFAULT`",
1860
+ "description": "The precision elapsed time should display. One of `nil`, `:day`, `:hour`, `:minute`, `:month`, `:second`, or `:year`."
1861
+ },
1862
+ {
1863
+ "name": "format",
1864
+ "type": "Symbol",
1865
+ "default": "`nil`",
1866
+ "description": "The format the display should take. One of `:auto`, `:elapsed`, or `:micro`."
1867
+ },
1868
+ {
1869
+ "name": "lang",
1870
+ "type": "string",
1871
+ "default": "`nil`",
1872
+ "description": "The language to use."
1873
+ },
1874
+ {
1875
+ "name": "title",
1876
+ "type": "string",
1877
+ "default": "`nil`",
1878
+ "description": "Provide a custom title to the element."
1879
+ },
1880
+ {
1881
+ "name": "system_arguments",
1882
+ "type": "Hash",
1883
+ "default": "N/A",
1884
+ "description": "[System arguments](/system-arguments)"
1885
+ }
1886
+ ]
1887
+ },
1746
1888
  {
1747
1889
  "component": "Text",
1748
1890
  "status": "beta",
@@ -1793,7 +1935,7 @@
1793
1935
  },
1794
1936
  {
1795
1937
  "component": "Button",
1796
- "status": "beta",
1938
+ "status": "deprecated",
1797
1939
  "source": "https://github.com/primer/view_components/tree/main/app/components/primer/button_component.rb",
1798
1940
  "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/button/default/",
1799
1941
  "parameters": [
@@ -1853,38 +1995,6 @@
1853
1995
  }
1854
1996
  ]
1855
1997
  },
1856
- {
1857
- "component": "ClipboardCopy",
1858
- "status": "beta",
1859
- "source": "https://github.com/primer/view_components/tree/main/app/components/primer/clipboard_copy.rb",
1860
- "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/clipboard_copy/default/",
1861
- "parameters": [
1862
- {
1863
- "name": "aria-label",
1864
- "type": "String",
1865
- "default": "N/A",
1866
- "description": "String that will be read to screenreaders when the component is focused"
1867
- },
1868
- {
1869
- "name": "value",
1870
- "type": "String",
1871
- "default": "`nil`",
1872
- "description": "Text to copy into the users clipboard when they click the component."
1873
- },
1874
- {
1875
- "name": "for",
1876
- "type": "String",
1877
- "default": "N/A",
1878
- "description": "Element id from where to get the copied value."
1879
- },
1880
- {
1881
- "name": "system_arguments",
1882
- "type": "Hash",
1883
- "default": "N/A",
1884
- "description": "[System arguments](/system-arguments)"
1885
- }
1886
- ]
1887
- },
1888
1998
  {
1889
1999
  "component": "DropdownMenu",
1890
2000
  "status": "deprecated",
@@ -7,10 +7,10 @@
7
7
  "Primer::Alpha::AutoComplete::Item": "",
8
8
  "Primer::Alpha::Banner": "",
9
9
  "Primer::Alpha::ButtonMarketing": "",
10
- "Primer::Alpha::Dialog": "",
11
- "Primer::Alpha::Dialog::Body": "",
12
- "Primer::Alpha::Dialog::Footer": "",
13
- "Primer::Alpha::Dialog::Header": "",
10
+ "Primer::Alpha::Dialog": "2022-10-10",
11
+ "Primer::Alpha::Dialog::Body": "2022-10-10",
12
+ "Primer::Alpha::Dialog::Footer": "2022-10-10",
13
+ "Primer::Alpha::Dialog::Header": "2022-10-10",
14
14
  "Primer::Alpha::Dropdown": "",
15
15
  "Primer::Alpha::Dropdown::Menu": "",
16
16
  "Primer::Alpha::Dropdown::Menu::Item": "",
@@ -45,6 +45,7 @@
45
45
  "Primer::Beta::Breadcrumbs::Item": "",
46
46
  "Primer::Beta::Button": "",
47
47
  "Primer::Beta::ButtonGroup": "",
48
+ "Primer::Beta::ClipboardCopy": "",
48
49
  "Primer::Beta::CloseButton": "",
49
50
  "Primer::Beta::Counter": "",
50
51
  "Primer::Beta::Details": "",
@@ -55,6 +56,7 @@
55
56
  "Primer::Beta::Link": "",
56
57
  "Primer::Beta::Popover": "",
57
58
  "Primer::Beta::ProgressBar": "",
59
+ "Primer::Beta::RelativeTime": "",
58
60
  "Primer::Beta::Text": "",
59
61
  "Primer::Beta::Truncate": "",
60
62
  "Primer::Beta::Truncate::TruncateText": "",
@@ -558,6 +558,8 @@
558
558
  },
559
559
  "Primer::Beta::ButtonGroup": {
560
560
  },
561
+ "Primer::Beta::ClipboardCopy": {
562
+ },
561
563
  "Primer::Beta::CloseButton": {
562
564
  "DEFAULT_TYPE": "button",
563
565
  "TYPE_OPTIONS": [
@@ -738,6 +740,128 @@
738
740
  "large"
739
741
  ]
740
742
  },
743
+ "Primer::Beta::RelativeTime": {
744
+ "DAY_DEFAULT": null,
745
+ "DAY_MAPPINGS": {
746
+ "": null,
747
+ "numeric": "numeric",
748
+ "two_digit": "2-digit"
749
+ },
750
+ "DAY_OPTIONS": [
751
+ null,
752
+ "numeric",
753
+ "two_digit"
754
+ ],
755
+ "FORMAT_DEFAULT": "auto",
756
+ "FORMAT_OPTIONS": [
757
+ "auto",
758
+ "micro",
759
+ "elapsed"
760
+ ],
761
+ "HOUR_DEFAULT": null,
762
+ "HOUR_MAPPINGS": {
763
+ "": null,
764
+ "numeric": "numeric",
765
+ "two_digit": "2-digit"
766
+ },
767
+ "HOUR_OPTIONS": [
768
+ null,
769
+ "numeric",
770
+ "two_digit"
771
+ ],
772
+ "MINUTE_DEFAULT": null,
773
+ "MINUTE_MAPPINGS": {
774
+ "": null,
775
+ "numeric": "numeric",
776
+ "two_digit": "2-digit"
777
+ },
778
+ "MINUTE_OPTIONS": [
779
+ null,
780
+ "numeric",
781
+ "two_digit"
782
+ ],
783
+ "MONTH_DEFAULT": null,
784
+ "MONTH_MAPPINGS": {
785
+ "": null,
786
+ "numeric": "numeric",
787
+ "two_digit": "2-digit",
788
+ "short": "short",
789
+ "long": "long",
790
+ "narrow": "narrow"
791
+ },
792
+ "MONTH_OPTIONS": [
793
+ null,
794
+ "numeric",
795
+ "two_digit",
796
+ "short",
797
+ "long",
798
+ "narrow"
799
+ ],
800
+ "PRECISION_DEFAULT": null,
801
+ "PRECISION_OPTIONS": [
802
+ null,
803
+ "second",
804
+ "minute",
805
+ "hour",
806
+ "day",
807
+ "month",
808
+ "year"
809
+ ],
810
+ "SECOND_DEFAULT": null,
811
+ "SECOND_MAPPINGS": {
812
+ "": null,
813
+ "numeric": "numeric",
814
+ "two_digit": "2-digit"
815
+ },
816
+ "SECOND_OPTIONS": [
817
+ null,
818
+ "numeric",
819
+ "two_digit"
820
+ ],
821
+ "TENSE_DEFAULT": "auto",
822
+ "TENSE_OPTIONS": [
823
+ "auto",
824
+ "past",
825
+ "future"
826
+ ],
827
+ "TIMEZONENAME_DEFAULT": null,
828
+ "TIMEZONENAME_OPTIONS": [
829
+ null,
830
+ "long",
831
+ "short",
832
+ "short_offset",
833
+ "long_offset",
834
+ "short_generic",
835
+ "long_generic"
836
+ ],
837
+ "TIMEZONE_MAPPINGS": {
838
+ "": null,
839
+ "long": "long",
840
+ "short": "short",
841
+ "short_offset": "shortOffset",
842
+ "long_offset": "longOffset",
843
+ "short_generic": "shortGeneric",
844
+ "long_generic": "longGeneric"
845
+ },
846
+ "WEEKDAY_DEFAULT": null,
847
+ "WEEKDAY_OPTIONS": [
848
+ null,
849
+ "long",
850
+ "short",
851
+ "narrow"
852
+ ],
853
+ "YEAR_DEFAULT": null,
854
+ "YEAR_MAPPINGS": {
855
+ "": null,
856
+ "numeric": "numeric",
857
+ "two_digit": "2-digit"
858
+ },
859
+ "YEAR_OPTIONS": [
860
+ null,
861
+ "numeric",
862
+ "two_digit"
863
+ ]
864
+ },
741
865
  "Primer::Beta::Text": {
742
866
  "DEFAULT_TAG": "span"
743
867
  },
@@ -45,6 +45,7 @@
45
45
  "Primer::Beta::Breadcrumbs::Item": "alpha",
46
46
  "Primer::Beta::Button": "beta",
47
47
  "Primer::Beta::ButtonGroup": "beta",
48
+ "Primer::Beta::ClipboardCopy": "beta",
48
49
  "Primer::Beta::CloseButton": "beta",
49
50
  "Primer::Beta::Counter": "beta",
50
51
  "Primer::Beta::Details": "beta",
@@ -55,14 +56,15 @@
55
56
  "Primer::Beta::Link": "beta",
56
57
  "Primer::Beta::Popover": "beta",
57
58
  "Primer::Beta::ProgressBar": "beta",
59
+ "Primer::Beta::RelativeTime": "beta",
58
60
  "Primer::Beta::Text": "beta",
59
61
  "Primer::Beta::Truncate": "beta",
60
62
  "Primer::Beta::Truncate::TruncateText": "alpha",
61
63
  "Primer::BlankslateComponent": "deprecated",
62
64
  "Primer::Box": "stable",
63
65
  "Primer::BoxComponent": "deprecated",
64
- "Primer::ButtonComponent": "beta",
65
- "Primer::ClipboardCopy": "beta",
66
+ "Primer::ButtonComponent": "deprecated",
67
+ "Primer::ClipboardCopy": "deprecated",
66
68
  "Primer::ConditionalWrapper": "alpha",
67
69
  "Primer::Content": "stable",
68
70
  "Primer::Dropdown": "deprecated",