@primer/view-components 0.0.121-rc.7796cfe4 → 0.0.121-rc.897e30dc
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/app/components/primer/{local_time.d.ts → beta/relative_time.d.ts} +0 -0
- package/app/components/primer/{local_time.js → beta/relative_time.js} +0 -0
- package/app/components/primer/primer.d.ts +1 -2
- package/app/components/primer/primer.js +1 -2
- package/package.json +1 -1
- package/static/arguments.json +6 -100
- package/static/audited_at.json +2 -4
- package/static/constants.json +0 -14
- package/static/previews.json +1634 -0
- package/static/statuses.json +0 -2
- package/app/components/primer/time_ago_component.d.ts +0 -1
- package/app/components/primer/time_ago_component.js +0 -1
|
File without changes
|
|
File without changes
|
|
@@ -8,9 +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 './
|
|
11
|
+
import './beta/relative_time';
|
|
12
12
|
import './alpha/tab_container';
|
|
13
|
-
import './time_ago_component';
|
|
14
13
|
import '../../../lib/primer/forms/primer_multi_input';
|
|
15
14
|
import '../../../lib/primer/forms/primer_text_field';
|
|
16
15
|
import '../../../lib/primer/forms/toggle_switch_input';
|
|
@@ -8,9 +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 './
|
|
11
|
+
import './beta/relative_time';
|
|
12
12
|
import './alpha/tab_container';
|
|
13
|
-
import './time_ago_component';
|
|
14
13
|
import '../../../lib/primer/forms/primer_multi_input';
|
|
15
14
|
import '../../../lib/primer/forms/primer_text_field';
|
|
16
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.
|
|
3
|
+
"version": "0.0.121-rc.897e30dc",
|
|
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",
|
package/static/arguments.json
CHANGED
|
@@ -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",
|
|
@@ -2325,80 +2331,6 @@
|
|
|
2325
2331
|
}
|
|
2326
2332
|
]
|
|
2327
2333
|
},
|
|
2328
|
-
{
|
|
2329
|
-
"component": "LocalTime",
|
|
2330
|
-
"status": "deprecated",
|
|
2331
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/local_time.rb",
|
|
2332
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/local_time/default/",
|
|
2333
|
-
"parameters": [
|
|
2334
|
-
{
|
|
2335
|
-
"name": "datetime",
|
|
2336
|
-
"type": "DateTime",
|
|
2337
|
-
"default": "N/A",
|
|
2338
|
-
"description": "The date to parse"
|
|
2339
|
-
},
|
|
2340
|
-
{
|
|
2341
|
-
"name": "initial_text",
|
|
2342
|
-
"type": "String",
|
|
2343
|
-
"default": "`nil`",
|
|
2344
|
-
"description": "Text to render before component is initialized"
|
|
2345
|
-
},
|
|
2346
|
-
{
|
|
2347
|
-
"name": "weekday",
|
|
2348
|
-
"type": "Symbol",
|
|
2349
|
-
"default": "`:short`",
|
|
2350
|
-
"description": "One of `:long` or `:short`."
|
|
2351
|
-
},
|
|
2352
|
-
{
|
|
2353
|
-
"name": "year",
|
|
2354
|
-
"type": "Symbol",
|
|
2355
|
-
"default": "`:numeric`",
|
|
2356
|
-
"description": "One of `:2-digit` or `:numeric`."
|
|
2357
|
-
},
|
|
2358
|
-
{
|
|
2359
|
-
"name": "month",
|
|
2360
|
-
"type": "Symbol",
|
|
2361
|
-
"default": "`:short`",
|
|
2362
|
-
"description": "One of `:long` or `:short`."
|
|
2363
|
-
},
|
|
2364
|
-
{
|
|
2365
|
-
"name": "day",
|
|
2366
|
-
"type": "Symbol",
|
|
2367
|
-
"default": "`:numeric`",
|
|
2368
|
-
"description": "One of `:2-digit` or `:numeric`."
|
|
2369
|
-
},
|
|
2370
|
-
{
|
|
2371
|
-
"name": "hour",
|
|
2372
|
-
"type": "Symbol",
|
|
2373
|
-
"default": "`:numeric`",
|
|
2374
|
-
"description": "One of `:2-digit` or `:numeric`."
|
|
2375
|
-
},
|
|
2376
|
-
{
|
|
2377
|
-
"name": "minute",
|
|
2378
|
-
"type": "Symbol",
|
|
2379
|
-
"default": "`:numeric`",
|
|
2380
|
-
"description": "One of `:2-digit` or `:numeric`."
|
|
2381
|
-
},
|
|
2382
|
-
{
|
|
2383
|
-
"name": "second",
|
|
2384
|
-
"type": "Symbol",
|
|
2385
|
-
"default": "`:numeric`",
|
|
2386
|
-
"description": "One of `:2-digit` or `:numeric`."
|
|
2387
|
-
},
|
|
2388
|
-
{
|
|
2389
|
-
"name": "time_zone_name",
|
|
2390
|
-
"type": "Symbol",
|
|
2391
|
-
"default": "`:short`",
|
|
2392
|
-
"description": "One of `:long` or `:short`."
|
|
2393
|
-
},
|
|
2394
|
-
{
|
|
2395
|
-
"name": "system_arguments",
|
|
2396
|
-
"type": "Hash",
|
|
2397
|
-
"default": "N/A",
|
|
2398
|
-
"description": "[System arguments](/system-arguments)"
|
|
2399
|
-
}
|
|
2400
|
-
]
|
|
2401
|
-
},
|
|
2402
2334
|
{
|
|
2403
2335
|
"component": "Navigation::Tab",
|
|
2404
2336
|
"status": "alpha",
|
|
@@ -2449,32 +2381,6 @@
|
|
|
2449
2381
|
}
|
|
2450
2382
|
]
|
|
2451
2383
|
},
|
|
2452
|
-
{
|
|
2453
|
-
"component": "TimeAgo",
|
|
2454
|
-
"status": "deprecated",
|
|
2455
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/time_ago_component.rb",
|
|
2456
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/time_ago/default/",
|
|
2457
|
-
"parameters": [
|
|
2458
|
-
{
|
|
2459
|
-
"name": "time",
|
|
2460
|
-
"type": "Time",
|
|
2461
|
-
"default": "N/A",
|
|
2462
|
-
"description": "The time to be formatted"
|
|
2463
|
-
},
|
|
2464
|
-
{
|
|
2465
|
-
"name": "micro",
|
|
2466
|
-
"type": "Boolean",
|
|
2467
|
-
"default": "`false`",
|
|
2468
|
-
"description": "If true then the text will be formatted in \"micro\" mode, using as few characters as possible"
|
|
2469
|
-
},
|
|
2470
|
-
{
|
|
2471
|
-
"name": "system_arguments",
|
|
2472
|
-
"type": "Hash",
|
|
2473
|
-
"default": "N/A",
|
|
2474
|
-
"description": "[System arguments](/system-arguments)"
|
|
2475
|
-
}
|
|
2476
|
-
]
|
|
2477
|
-
},
|
|
2478
2384
|
{
|
|
2479
2385
|
"component": "Tooltip",
|
|
2480
2386
|
"status": "deprecated",
|
package/static/audited_at.json
CHANGED
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"Primer::Alpha::NavList::Item": "",
|
|
27
27
|
"Primer::Alpha::NavList::Section": "",
|
|
28
28
|
"Primer::Alpha::OcticonSymbols": "",
|
|
29
|
-
"Primer::Alpha::SegmentedControl": "",
|
|
30
|
-
"Primer::Alpha::SegmentedControl::Item": "",
|
|
29
|
+
"Primer::Alpha::SegmentedControl": "2023-02-01",
|
|
30
|
+
"Primer::Alpha::SegmentedControl::Item": "2023-02-01",
|
|
31
31
|
"Primer::Alpha::TabContainer": "",
|
|
32
32
|
"Primer::Alpha::TabNav": "",
|
|
33
33
|
"Primer::Alpha::TabPanels": "",
|
|
@@ -78,9 +78,7 @@
|
|
|
78
78
|
"Primer::Content": "",
|
|
79
79
|
"Primer::IconButton": "",
|
|
80
80
|
"Primer::LayoutComponent": "",
|
|
81
|
-
"Primer::LocalTime": "",
|
|
82
81
|
"Primer::Navigation::TabComponent": "",
|
|
83
|
-
"Primer::TimeAgoComponent": "",
|
|
84
82
|
"Primer::Tooltip": "",
|
|
85
83
|
"Primer::Truncate": ""
|
|
86
84
|
}
|
package/static/constants.json
CHANGED
|
@@ -1066,18 +1066,6 @@
|
|
|
1066
1066
|
"DEFAULT_SIDEBAR_COL": 3,
|
|
1067
1067
|
"MAX_COL": 12
|
|
1068
1068
|
},
|
|
1069
|
-
"Primer::LocalTime": {
|
|
1070
|
-
"DEFAULT_DIGIT_TYPE": "numeric",
|
|
1071
|
-
"DEFAULT_TEXT_TYPE": "short",
|
|
1072
|
-
"DIGIT_TYPE_OPTIONS": [
|
|
1073
|
-
"numeric",
|
|
1074
|
-
"2-digit"
|
|
1075
|
-
],
|
|
1076
|
-
"TEXT_TYPE_OPTIONS": [
|
|
1077
|
-
"short",
|
|
1078
|
-
"long"
|
|
1079
|
-
]
|
|
1080
|
-
},
|
|
1081
1069
|
"Primer::Navigation::TabComponent": {
|
|
1082
1070
|
"ARIA_CURRENT_OPTIONS_FOR_ANCHOR": [
|
|
1083
1071
|
true,
|
|
@@ -1085,8 +1073,6 @@
|
|
|
1085
1073
|
],
|
|
1086
1074
|
"DEFAULT_ARIA_CURRENT_FOR_ANCHOR": "page"
|
|
1087
1075
|
},
|
|
1088
|
-
"Primer::TimeAgoComponent": {
|
|
1089
|
-
},
|
|
1090
1076
|
"Primer::Tooltip": {
|
|
1091
1077
|
"ALIGN_DEFAULT": "default",
|
|
1092
1078
|
"ALIGN_MAPPING": {
|