@primer/view-components 0.0.121-rc.efa37730 → 0.0.121

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.
@@ -8,8 +8,8 @@ import './alpha/tool_tip';
8
8
  import './alpha/x_banner';
9
9
  import './beta/auto_complete/auto_complete';
10
10
  import './beta/clipboard_copy';
11
+ import './beta/relative_time';
11
12
  import './alpha/tab_container';
12
- import './time_ago_component';
13
13
  import '../../../lib/primer/forms/primer_multi_input';
14
14
  import '../../../lib/primer/forms/primer_text_field';
15
15
  import '../../../lib/primer/forms/toggle_switch_input';
@@ -8,8 +8,8 @@ import './alpha/tool_tip';
8
8
  import './alpha/x_banner';
9
9
  import './beta/auto_complete/auto_complete';
10
10
  import './beta/clipboard_copy';
11
+ import './beta/relative_time';
11
12
  import './alpha/tab_container';
12
- import './time_ago_component';
13
13
  import '../../../lib/primer/forms/primer_multi_input';
14
14
  import '../../../lib/primer/forms/primer_text_field';
15
15
  import '../../../lib/primer/forms/toggle_switch_input';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.0.121-rc.efa37730",
3
+ "version": "0.0.121",
4
4
  "description": "ViewComponents for the Primer Design System",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",
@@ -859,6 +859,12 @@
859
859
  "default": "N/A",
860
860
  "description": "System arugments passed to the Rails builder's `#label` method. These arguments will appear as HTML attributes on the `<label>` tag."
861
861
  },
862
+ {
863
+ "name": "auto_check_src",
864
+ "type": "String",
865
+ "default": "N/A",
866
+ "description": "When provided, makes a request to the given URL whenever the contents of the text field changes. If the server responds with a non-2xx status code, the response body is used as the validation message."
867
+ },
862
868
  {
863
869
  "name": "system_arguments",
864
870
  "type": "Hash",
@@ -2375,32 +2381,6 @@
2375
2381
  }
2376
2382
  ]
2377
2383
  },
2378
- {
2379
- "component": "TimeAgo",
2380
- "status": "deprecated",
2381
- "source": "https://github.com/primer/view_components/tree/main/app/components/primer/time_ago_component.rb",
2382
- "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/time_ago/default/",
2383
- "parameters": [
2384
- {
2385
- "name": "time",
2386
- "type": "Time",
2387
- "default": "N/A",
2388
- "description": "The time to be formatted"
2389
- },
2390
- {
2391
- "name": "micro",
2392
- "type": "Boolean",
2393
- "default": "`false`",
2394
- "description": "If true then the text will be formatted in \"micro\" mode, using as few characters as possible"
2395
- },
2396
- {
2397
- "name": "system_arguments",
2398
- "type": "Hash",
2399
- "default": "N/A",
2400
- "description": "[System arguments](/system-arguments)"
2401
- }
2402
- ]
2403
- },
2404
2384
  {
2405
2385
  "component": "Tooltip",
2406
2386
  "status": "deprecated",
@@ -79,7 +79,6 @@
79
79
  "Primer::IconButton": "",
80
80
  "Primer::LayoutComponent": "",
81
81
  "Primer::Navigation::TabComponent": "",
82
- "Primer::TimeAgoComponent": "",
83
82
  "Primer::Tooltip": "",
84
83
  "Primer::Truncate": ""
85
84
  }
@@ -1073,8 +1073,6 @@
1073
1073
  ],
1074
1074
  "DEFAULT_ARIA_CURRENT_FOR_ANCHOR": "page"
1075
1075
  },
1076
- "Primer::TimeAgoComponent": {
1077
- },
1078
1076
  "Primer::Tooltip": {
1079
1077
  "ALIGN_DEFAULT": "default",
1080
1078
  "ALIGN_MAPPING": {