@primer/view-components 0.35.0-rc.9bea5b2d → 0.35.0-rc.a50fd5c0
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/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/app/assets/styles/primer_view_components.css +1 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/alpha/action_bar_element.d.ts +17 -0
- package/app/components/primer/alpha/action_list.css +1 -1
- package/app/components/primer/alpha/action_list.d.ts +16 -0
- package/app/components/primer/alpha/action_menu/action_menu_element.d.ts +42 -0
- package/app/components/primer/alpha/dialog.css +1 -1
- package/app/components/primer/alpha/dialog.css.json +2 -1
- package/app/components/primer/alpha/dropdown/menu.d.ts +1 -0
- package/app/components/primer/alpha/dropdown.d.ts +1 -0
- package/app/components/primer/alpha/image_crop.d.ts +1 -0
- package/app/components/primer/alpha/modal_dialog.d.ts +18 -0
- package/app/components/primer/alpha/segmented_control.d.ts +12 -0
- package/app/components/primer/alpha/select_panel_element.d.ts +63 -0
- package/app/components/primer/alpha/tab_container.d.ts +1 -0
- package/app/components/primer/alpha/text_field.css +1 -1
- package/app/components/primer/alpha/toggle_switch.d.ts +34 -0
- package/app/components/primer/alpha/tool_tip.d.ts +27 -0
- package/app/components/primer/alpha/x_banner.d.ts +18 -0
- package/app/components/primer/anchored_position.d.ts +27 -0
- package/app/components/primer/aria_live.d.ts +8 -0
- package/app/components/primer/beta/auto_complete/auto_complete.d.ts +1 -0
- package/app/components/primer/beta/clipboard_copy.d.ts +1 -0
- package/app/components/primer/beta/nav_list.d.ts +20 -0
- package/app/components/primer/beta/nav_list_group_element.d.ts +19 -0
- package/app/components/primer/beta/relative_time.d.ts +1 -0
- package/app/components/primer/dialog_helper.d.ts +15 -0
- package/app/components/primer/dialog_helper.js +0 -1
- package/app/components/primer/focus_group.d.ts +19 -0
- package/app/components/primer/primer.d.ts +28 -0
- package/app/components/primer/scrollable_region.d.ts +13 -0
- package/app/components/primer/shared_events.d.ts +11 -0
- package/package.json +6 -8
- package/static/arguments.json +92 -0
- package/static/audited_at.json +2 -0
- package/static/constants.json +24 -0
- package/static/info_arch.json +191 -0
- package/static/previews.json +81 -0
- package/static/statuses.json +2 -0
- package/lib/primer/forms/primer_multi_input.d.ts +0 -10
- package/lib/primer/forms/primer_text_field.d.ts +0 -28
- package/lib/primer/forms/toggle_switch_input.d.ts +0 -5
@@ -0,0 +1,28 @@
|
|
1
|
+
import '@github/include-fragment-element';
|
2
|
+
import '@github/remote-input-element';
|
3
|
+
import './alpha/action_list';
|
4
|
+
import './alpha/action_bar_element';
|
5
|
+
import './alpha/dropdown';
|
6
|
+
import './anchored_position';
|
7
|
+
import './dialog_helper';
|
8
|
+
import './focus_group';
|
9
|
+
import './scrollable_region';
|
10
|
+
import './aria_live';
|
11
|
+
import './shared_events';
|
12
|
+
import './alpha/image_crop';
|
13
|
+
import './alpha/modal_dialog';
|
14
|
+
import './beta/nav_list';
|
15
|
+
import './beta/nav_list_group_element';
|
16
|
+
import './alpha/segmented_control';
|
17
|
+
import './alpha/toggle_switch';
|
18
|
+
import './alpha/tool_tip';
|
19
|
+
import './alpha/x_banner';
|
20
|
+
import './beta/auto_complete/auto_complete';
|
21
|
+
import './beta/clipboard_copy';
|
22
|
+
import './beta/relative_time';
|
23
|
+
import './alpha/tab_container';
|
24
|
+
import '../../lib/primer/forms/primer_multi_input';
|
25
|
+
import '../../lib/primer/forms/primer_text_field';
|
26
|
+
import '../../lib/primer/forms/toggle_switch_input';
|
27
|
+
import './alpha/action_menu/action_menu_element';
|
28
|
+
import './alpha/select_panel_element';
|
@@ -0,0 +1,13 @@
|
|
1
|
+
export declare class ScrollableRegionElement extends HTMLElement {
|
2
|
+
hasOverflow: boolean;
|
3
|
+
labelledBy: string;
|
4
|
+
observer: ResizeObserver;
|
5
|
+
connectedCallback(): void;
|
6
|
+
disconnectedCallback(): void;
|
7
|
+
attributeChangedCallback(name: string): void;
|
8
|
+
}
|
9
|
+
declare global {
|
10
|
+
interface Window {
|
11
|
+
ScrollableRegionElement: typeof ScrollableRegionElement;
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export type ItemActivatedEvent = {
|
2
|
+
item: Element;
|
3
|
+
checked: boolean;
|
4
|
+
value: string | null;
|
5
|
+
};
|
6
|
+
declare global {
|
7
|
+
interface HTMLElementEventMap {
|
8
|
+
itemActivated: CustomEvent<ItemActivatedEvent>;
|
9
|
+
beforeItemActivated: CustomEvent<ItemActivatedEvent>;
|
10
|
+
}
|
11
|
+
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.35.0-rc.
|
3
|
+
"version": "0.35.0-rc.a50fd5c0",
|
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",
|
@@ -27,16 +27,14 @@
|
|
27
27
|
"app/components/primer/**/*.css.json",
|
28
28
|
"app/components/primer/**/*.d.ts",
|
29
29
|
"app/lib/primer/forms/**/*.js",
|
30
|
-
"app/lib/primer/forms/**/*.d.ts"
|
31
|
-
"lib/primer/forms/**/*.js",
|
32
|
-
"lib/primer/forms/**/*.d.ts"
|
30
|
+
"app/lib/primer/forms/**/*.d.ts"
|
33
31
|
],
|
34
32
|
"scripts": {
|
35
33
|
"clean": "git clean -fdX -- app/",
|
36
34
|
"prepare": "script/build-assets",
|
37
35
|
"lint": "npm run lint:stylelint && npm run lint:eslint",
|
38
|
-
"lint:stylelint": "stylelint 'app/components/**/*.pcss'",
|
39
|
-
"lint:stylelint:fix": "stylelint
|
36
|
+
"lint:stylelint": "stylelint --rd -q 'app/components/**/*.pcss'",
|
37
|
+
"lint:stylelint:fix": "npm run lint:stylelint -- --fix",
|
40
38
|
"lint:eslint": "eslint 'app/components/**/*.ts'",
|
41
39
|
"lint:eslint:fix": "eslint 'app/components/**/*.ts' --fix",
|
42
40
|
"changeset:version": "changeset version && script/version",
|
@@ -66,9 +64,9 @@
|
|
66
64
|
"@github/markdownlint-github": "^0.6.0",
|
67
65
|
"@github/prettier-config": "0.0.6",
|
68
66
|
"@playwright/test": "^1.35.1",
|
69
|
-
"@primer/css": "21.
|
67
|
+
"@primer/css": "21.5.0",
|
70
68
|
"@primer/primitives": "^9.0.2",
|
71
|
-
"@primer/stylelint-config": "^13.
|
69
|
+
"@primer/stylelint-config": "^13.1.1",
|
72
70
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
73
71
|
"@rollup/plugin-typescript": "^8.3.3",
|
74
72
|
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
package/static/arguments.json
CHANGED
@@ -974,6 +974,12 @@
|
|
974
974
|
"default": "`false`",
|
975
975
|
"description": "If true will hide the heading title, while still making it available to Screen Readers."
|
976
976
|
},
|
977
|
+
{
|
978
|
+
"name": "disable_scroll",
|
979
|
+
"type": "Boolean",
|
980
|
+
"default": "`true`",
|
981
|
+
"description": "When true, disables scrolling the page when the dialog is open."
|
982
|
+
},
|
977
983
|
{
|
978
984
|
"name": "system_arguments",
|
979
985
|
"type": "Hash",
|
@@ -2510,6 +2516,92 @@
|
|
2510
2516
|
}
|
2511
2517
|
]
|
2512
2518
|
},
|
2519
|
+
{
|
2520
|
+
"component": "Stack",
|
2521
|
+
"status": "alpha",
|
2522
|
+
"a11y_reviewed": false,
|
2523
|
+
"short_name": "Stack",
|
2524
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack.rb",
|
2525
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack/default/",
|
2526
|
+
"parameters": [
|
2527
|
+
{
|
2528
|
+
"name": "tag",
|
2529
|
+
"type": "Symbol",
|
2530
|
+
"default": "`:div`",
|
2531
|
+
"description": "Customize the element type of the rendered container."
|
2532
|
+
},
|
2533
|
+
{
|
2534
|
+
"name": "gap",
|
2535
|
+
"type": "Symbol",
|
2536
|
+
"default": "`GapArg::DEFAULT`",
|
2537
|
+
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:normal`, or `:spacious`."
|
2538
|
+
},
|
2539
|
+
{
|
2540
|
+
"name": "direction",
|
2541
|
+
"type": "Symbol",
|
2542
|
+
"default": "`:vertical`",
|
2543
|
+
"description": "Specify the direction for the stack container. One of `nil`, `:horizontal`, or `:vertical`."
|
2544
|
+
},
|
2545
|
+
{
|
2546
|
+
"name": "align",
|
2547
|
+
"type": "Symbol",
|
2548
|
+
"default": "`:stretch`",
|
2549
|
+
"description": "Specify the alignment between items in the cross-axis of the direction. One of `nil`, `:baseline`, `:center`, `:end`, `:start`, or `:stretch`."
|
2550
|
+
},
|
2551
|
+
{
|
2552
|
+
"name": "wrap",
|
2553
|
+
"type": "Symbol",
|
2554
|
+
"default": "`:nowrap`",
|
2555
|
+
"description": "Specify whether items are forced onto one line or can wrap onto multiple lines. One of `nil`, `:nowrap`, or `:wrap`."
|
2556
|
+
},
|
2557
|
+
{
|
2558
|
+
"name": "justify",
|
2559
|
+
"type": "Symbol",
|
2560
|
+
"default": "`:start`",
|
2561
|
+
"description": "Specify how items will be distributed in the stacking direction. One of `nil`, `:center`, `:end`, `:space_between`, `:space_evenly`, or `:start`."
|
2562
|
+
},
|
2563
|
+
{
|
2564
|
+
"name": "padding",
|
2565
|
+
"type": "Symbol",
|
2566
|
+
"default": "`:none`",
|
2567
|
+
"description": "Specify the padding of the stack container. One of `nil`, `:condensed`, `:none`, `:normal`, or `:spacious`."
|
2568
|
+
},
|
2569
|
+
{
|
2570
|
+
"name": "system_arguments",
|
2571
|
+
"type": "Hash",
|
2572
|
+
"default": "N/A",
|
2573
|
+
"description": "[System arguments](/system-arguments)"
|
2574
|
+
}
|
2575
|
+
]
|
2576
|
+
},
|
2577
|
+
{
|
2578
|
+
"component": "StackItem",
|
2579
|
+
"status": "alpha",
|
2580
|
+
"a11y_reviewed": false,
|
2581
|
+
"short_name": "StackItem",
|
2582
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack_item.rb",
|
2583
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack_item/default/",
|
2584
|
+
"parameters": [
|
2585
|
+
{
|
2586
|
+
"name": "tag",
|
2587
|
+
"type": "Symbol",
|
2588
|
+
"default": "`:div`",
|
2589
|
+
"description": "Customize the element type of the rendered container."
|
2590
|
+
},
|
2591
|
+
{
|
2592
|
+
"name": "grow",
|
2593
|
+
"type": "Boolean",
|
2594
|
+
"default": "`false`",
|
2595
|
+
"description": "Allow item to keep size or expand to fill the available space."
|
2596
|
+
},
|
2597
|
+
{
|
2598
|
+
"name": "system_arguments",
|
2599
|
+
"type": "Hash",
|
2600
|
+
"default": "N/A",
|
2601
|
+
"description": "[System arguments](/system-arguments)"
|
2602
|
+
}
|
2603
|
+
]
|
2604
|
+
},
|
2513
2605
|
{
|
2514
2606
|
"component": "SubmitButton",
|
2515
2607
|
"status": "alpha",
|
package/static/audited_at.json
CHANGED
@@ -54,6 +54,8 @@
|
|
54
54
|
"Primer::Alpha::Select": "",
|
55
55
|
"Primer::Alpha::SelectPanel": "",
|
56
56
|
"Primer::Alpha::SelectPanel::ItemList": "2023-07-10",
|
57
|
+
"Primer::Alpha::Stack": "",
|
58
|
+
"Primer::Alpha::StackItem": "",
|
57
59
|
"Primer::Alpha::SubmitButton": "",
|
58
60
|
"Primer::Alpha::TabContainer": "",
|
59
61
|
"Primer::Alpha::TabNav": "",
|
package/static/constants.json
CHANGED
@@ -621,6 +621,30 @@
|
|
621
621
|
},
|
622
622
|
"Primer::Alpha::SelectPanel::ItemList": {
|
623
623
|
},
|
624
|
+
"Primer::Alpha::Stack": {
|
625
|
+
"ARG_CLASSES": [
|
626
|
+
"Primer::Alpha::Stack::JustifyArg",
|
627
|
+
"Primer::Alpha::Stack::DirectionArg",
|
628
|
+
"Primer::Alpha::Stack::AlignArg",
|
629
|
+
"Primer::Alpha::Stack::WrapArg",
|
630
|
+
"Primer::Alpha::Stack::PaddingArg",
|
631
|
+
"Primer::Alpha::Stack::GapArg"
|
632
|
+
],
|
633
|
+
"AlignArg": "Primer::Alpha::Stack::AlignArg",
|
634
|
+
"DEFAULT_TAG": "div",
|
635
|
+
"DirectionArg": "Primer::Alpha::Stack::DirectionArg",
|
636
|
+
"GapArg": "Primer::Alpha::Stack::GapArg",
|
637
|
+
"JustifyArg": "Primer::Alpha::Stack::JustifyArg",
|
638
|
+
"PaddingArg": "Primer::Alpha::Stack::PaddingArg",
|
639
|
+
"WrapArg": "Primer::Alpha::Stack::WrapArg"
|
640
|
+
},
|
641
|
+
"Primer::Alpha::StackItem": {
|
642
|
+
"ARG_CLASSES": [
|
643
|
+
"Primer::Alpha::StackItem::GrowArg"
|
644
|
+
],
|
645
|
+
"DEFAULT_TAG": "div",
|
646
|
+
"GrowArg": "Primer::Alpha::StackItem::GrowArg"
|
647
|
+
},
|
624
648
|
"Primer::Alpha::SubmitButton": {
|
625
649
|
},
|
626
650
|
"Primer::Alpha::TabContainer": {
|
package/static/info_arch.json
CHANGED
@@ -3306,6 +3306,12 @@
|
|
3306
3306
|
"default": "`false`",
|
3307
3307
|
"description": "If true will hide the heading title, while still making it available to Screen Readers."
|
3308
3308
|
},
|
3309
|
+
{
|
3310
|
+
"name": "disable_scroll",
|
3311
|
+
"type": "Boolean",
|
3312
|
+
"default": "`true`",
|
3313
|
+
"description": "When true, disables scrolling the page when the dialog is open."
|
3314
|
+
},
|
3309
3315
|
{
|
3310
3316
|
"name": "system_arguments",
|
3311
3317
|
"type": "Hash",
|
@@ -8185,6 +8191,19 @@
|
|
8185
8191
|
"color-contrast"
|
8186
8192
|
]
|
8187
8193
|
}
|
8194
|
+
},
|
8195
|
+
{
|
8196
|
+
"preview_path": "primer/alpha/select_panel/scroll_container",
|
8197
|
+
"name": "scroll_container",
|
8198
|
+
"snapshot": "false",
|
8199
|
+
"skip_rules": {
|
8200
|
+
"wont_fix": [
|
8201
|
+
"region"
|
8202
|
+
],
|
8203
|
+
"will_fix": [
|
8204
|
+
"color-contrast"
|
8205
|
+
]
|
8206
|
+
}
|
8188
8207
|
}
|
8189
8208
|
],
|
8190
8209
|
"subcomponents": [
|
@@ -8248,6 +8267,178 @@
|
|
8248
8267
|
}
|
8249
8268
|
]
|
8250
8269
|
},
|
8270
|
+
{
|
8271
|
+
"fully_qualified_name": "Primer::Alpha::Stack",
|
8272
|
+
"description": "Stack is a layout component that creates responsive horizontal and vertical flows.",
|
8273
|
+
"accessibility_docs": null,
|
8274
|
+
"is_form_component": false,
|
8275
|
+
"is_published": true,
|
8276
|
+
"requires_js": false,
|
8277
|
+
"component": "Stack",
|
8278
|
+
"status": "alpha",
|
8279
|
+
"a11y_reviewed": false,
|
8280
|
+
"short_name": "Stack",
|
8281
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack.rb",
|
8282
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack/default/",
|
8283
|
+
"parameters": [
|
8284
|
+
{
|
8285
|
+
"name": "tag",
|
8286
|
+
"type": "Symbol",
|
8287
|
+
"default": "`:div`",
|
8288
|
+
"description": "Customize the element type of the rendered container."
|
8289
|
+
},
|
8290
|
+
{
|
8291
|
+
"name": "gap",
|
8292
|
+
"type": "Symbol",
|
8293
|
+
"default": "`GapArg::DEFAULT`",
|
8294
|
+
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:normal`, or `:spacious`."
|
8295
|
+
},
|
8296
|
+
{
|
8297
|
+
"name": "direction",
|
8298
|
+
"type": "Symbol",
|
8299
|
+
"default": "`:vertical`",
|
8300
|
+
"description": "Specify the direction for the stack container. One of `nil`, `:horizontal`, or `:vertical`."
|
8301
|
+
},
|
8302
|
+
{
|
8303
|
+
"name": "align",
|
8304
|
+
"type": "Symbol",
|
8305
|
+
"default": "`:stretch`",
|
8306
|
+
"description": "Specify the alignment between items in the cross-axis of the direction. One of `nil`, `:baseline`, `:center`, `:end`, `:start`, or `:stretch`."
|
8307
|
+
},
|
8308
|
+
{
|
8309
|
+
"name": "wrap",
|
8310
|
+
"type": "Symbol",
|
8311
|
+
"default": "`:nowrap`",
|
8312
|
+
"description": "Specify whether items are forced onto one line or can wrap onto multiple lines. One of `nil`, `:nowrap`, or `:wrap`."
|
8313
|
+
},
|
8314
|
+
{
|
8315
|
+
"name": "justify",
|
8316
|
+
"type": "Symbol",
|
8317
|
+
"default": "`:start`",
|
8318
|
+
"description": "Specify how items will be distributed in the stacking direction. One of `nil`, `:center`, `:end`, `:space_between`, `:space_evenly`, or `:start`."
|
8319
|
+
},
|
8320
|
+
{
|
8321
|
+
"name": "padding",
|
8322
|
+
"type": "Symbol",
|
8323
|
+
"default": "`:none`",
|
8324
|
+
"description": "Specify the padding of the stack container. One of `nil`, `:condensed`, `:none`, `:normal`, or `:spacious`."
|
8325
|
+
},
|
8326
|
+
{
|
8327
|
+
"name": "system_arguments",
|
8328
|
+
"type": "Hash",
|
8329
|
+
"default": "N/A",
|
8330
|
+
"description": "{{link_to_system_arguments_docs}}"
|
8331
|
+
}
|
8332
|
+
],
|
8333
|
+
"slots": [
|
8334
|
+
|
8335
|
+
],
|
8336
|
+
"methods": [
|
8337
|
+
|
8338
|
+
],
|
8339
|
+
"previews": [
|
8340
|
+
{
|
8341
|
+
"preview_path": "primer/alpha/stack/default",
|
8342
|
+
"name": "default",
|
8343
|
+
"snapshot": "false",
|
8344
|
+
"skip_rules": {
|
8345
|
+
"wont_fix": [
|
8346
|
+
"region"
|
8347
|
+
],
|
8348
|
+
"will_fix": [
|
8349
|
+
"color-contrast"
|
8350
|
+
]
|
8351
|
+
}
|
8352
|
+
},
|
8353
|
+
{
|
8354
|
+
"preview_path": "primer/alpha/stack/playground",
|
8355
|
+
"name": "playground",
|
8356
|
+
"snapshot": "false",
|
8357
|
+
"skip_rules": {
|
8358
|
+
"wont_fix": [
|
8359
|
+
"region"
|
8360
|
+
],
|
8361
|
+
"will_fix": [
|
8362
|
+
"color-contrast"
|
8363
|
+
]
|
8364
|
+
}
|
8365
|
+
}
|
8366
|
+
],
|
8367
|
+
"subcomponents": [
|
8368
|
+
|
8369
|
+
]
|
8370
|
+
},
|
8371
|
+
{
|
8372
|
+
"fully_qualified_name": "Primer::Alpha::StackItem",
|
8373
|
+
"description": "StackItem is a layout component designed to be used as the child of a Stack.",
|
8374
|
+
"accessibility_docs": null,
|
8375
|
+
"is_form_component": false,
|
8376
|
+
"is_published": true,
|
8377
|
+
"requires_js": false,
|
8378
|
+
"component": "StackItem",
|
8379
|
+
"status": "alpha",
|
8380
|
+
"a11y_reviewed": false,
|
8381
|
+
"short_name": "StackItem",
|
8382
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack_item.rb",
|
8383
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack_item/default/",
|
8384
|
+
"parameters": [
|
8385
|
+
{
|
8386
|
+
"name": "tag",
|
8387
|
+
"type": "Symbol",
|
8388
|
+
"default": "`:div`",
|
8389
|
+
"description": "Customize the element type of the rendered container."
|
8390
|
+
},
|
8391
|
+
{
|
8392
|
+
"name": "grow",
|
8393
|
+
"type": "Boolean",
|
8394
|
+
"default": "`false`",
|
8395
|
+
"description": "Allow item to keep size or expand to fill the available space."
|
8396
|
+
},
|
8397
|
+
{
|
8398
|
+
"name": "system_arguments",
|
8399
|
+
"type": "Hash",
|
8400
|
+
"default": "N/A",
|
8401
|
+
"description": "{{link_to_system_arguments_docs}}"
|
8402
|
+
}
|
8403
|
+
],
|
8404
|
+
"slots": [
|
8405
|
+
|
8406
|
+
],
|
8407
|
+
"methods": [
|
8408
|
+
|
8409
|
+
],
|
8410
|
+
"previews": [
|
8411
|
+
{
|
8412
|
+
"preview_path": "primer/alpha/stack_item/default",
|
8413
|
+
"name": "default",
|
8414
|
+
"snapshot": "false",
|
8415
|
+
"skip_rules": {
|
8416
|
+
"wont_fix": [
|
8417
|
+
"region"
|
8418
|
+
],
|
8419
|
+
"will_fix": [
|
8420
|
+
"color-contrast"
|
8421
|
+
]
|
8422
|
+
}
|
8423
|
+
},
|
8424
|
+
{
|
8425
|
+
"preview_path": "primer/alpha/stack_item/playground",
|
8426
|
+
"name": "playground",
|
8427
|
+
"snapshot": "false",
|
8428
|
+
"skip_rules": {
|
8429
|
+
"wont_fix": [
|
8430
|
+
"region"
|
8431
|
+
],
|
8432
|
+
"will_fix": [
|
8433
|
+
"color-contrast"
|
8434
|
+
]
|
8435
|
+
}
|
8436
|
+
}
|
8437
|
+
],
|
8438
|
+
"subcomponents": [
|
8439
|
+
|
8440
|
+
]
|
8441
|
+
},
|
8251
8442
|
{
|
8252
8443
|
"fully_qualified_name": "Primer::Alpha::SubmitButton",
|
8253
8444
|
"description": "A submit button input rendered using the HTML `<button type=\"submit\">` tag.\n\nThis component wraps the Primer button component and supports the same slots and arguments.",
|
package/static/previews.json
CHANGED
@@ -6212,6 +6212,19 @@
|
|
6212
6212
|
"color-contrast"
|
6213
6213
|
]
|
6214
6214
|
}
|
6215
|
+
},
|
6216
|
+
{
|
6217
|
+
"preview_path": "primer/alpha/select_panel/scroll_container",
|
6218
|
+
"name": "scroll_container",
|
6219
|
+
"snapshot": "false",
|
6220
|
+
"skip_rules": {
|
6221
|
+
"wont_fix": [
|
6222
|
+
"region"
|
6223
|
+
],
|
6224
|
+
"will_fix": [
|
6225
|
+
"color-contrast"
|
6226
|
+
]
|
6227
|
+
}
|
6215
6228
|
}
|
6216
6229
|
]
|
6217
6230
|
},
|
@@ -6249,6 +6262,74 @@
|
|
6249
6262
|
}
|
6250
6263
|
]
|
6251
6264
|
},
|
6265
|
+
{
|
6266
|
+
"name": "stack",
|
6267
|
+
"component": "Stack",
|
6268
|
+
"status": "alpha",
|
6269
|
+
"lookup_path": "primer/alpha/stack",
|
6270
|
+
"examples": [
|
6271
|
+
{
|
6272
|
+
"preview_path": "primer/alpha/stack/default",
|
6273
|
+
"name": "default",
|
6274
|
+
"snapshot": "false",
|
6275
|
+
"skip_rules": {
|
6276
|
+
"wont_fix": [
|
6277
|
+
"region"
|
6278
|
+
],
|
6279
|
+
"will_fix": [
|
6280
|
+
"color-contrast"
|
6281
|
+
]
|
6282
|
+
}
|
6283
|
+
},
|
6284
|
+
{
|
6285
|
+
"preview_path": "primer/alpha/stack/playground",
|
6286
|
+
"name": "playground",
|
6287
|
+
"snapshot": "false",
|
6288
|
+
"skip_rules": {
|
6289
|
+
"wont_fix": [
|
6290
|
+
"region"
|
6291
|
+
],
|
6292
|
+
"will_fix": [
|
6293
|
+
"color-contrast"
|
6294
|
+
]
|
6295
|
+
}
|
6296
|
+
}
|
6297
|
+
]
|
6298
|
+
},
|
6299
|
+
{
|
6300
|
+
"name": "stack_item",
|
6301
|
+
"component": "StackItem",
|
6302
|
+
"status": "alpha",
|
6303
|
+
"lookup_path": "primer/alpha/stack_item",
|
6304
|
+
"examples": [
|
6305
|
+
{
|
6306
|
+
"preview_path": "primer/alpha/stack_item/default",
|
6307
|
+
"name": "default",
|
6308
|
+
"snapshot": "false",
|
6309
|
+
"skip_rules": {
|
6310
|
+
"wont_fix": [
|
6311
|
+
"region"
|
6312
|
+
],
|
6313
|
+
"will_fix": [
|
6314
|
+
"color-contrast"
|
6315
|
+
]
|
6316
|
+
}
|
6317
|
+
},
|
6318
|
+
{
|
6319
|
+
"preview_path": "primer/alpha/stack_item/playground",
|
6320
|
+
"name": "playground",
|
6321
|
+
"snapshot": "false",
|
6322
|
+
"skip_rules": {
|
6323
|
+
"wont_fix": [
|
6324
|
+
"region"
|
6325
|
+
],
|
6326
|
+
"will_fix": [
|
6327
|
+
"color-contrast"
|
6328
|
+
]
|
6329
|
+
}
|
6330
|
+
}
|
6331
|
+
]
|
6332
|
+
},
|
6252
6333
|
{
|
6253
6334
|
"name": "state",
|
6254
6335
|
"component": "State",
|
package/static/statuses.json
CHANGED
@@ -54,6 +54,8 @@
|
|
54
54
|
"Primer::Alpha::Select": "alpha",
|
55
55
|
"Primer::Alpha::SelectPanel": "alpha",
|
56
56
|
"Primer::Alpha::SelectPanel::ItemList": "alpha",
|
57
|
+
"Primer::Alpha::Stack": "alpha",
|
58
|
+
"Primer::Alpha::StackItem": "alpha",
|
57
59
|
"Primer::Alpha::SubmitButton": "alpha",
|
58
60
|
"Primer::Alpha::TabContainer": "alpha",
|
59
61
|
"Primer::Alpha::TabNav": "alpha",
|
@@ -1,10 +0,0 @@
|
|
1
|
-
export declare class PrimerMultiInputElement extends HTMLElement {
|
2
|
-
fields: HTMLInputElement[];
|
3
|
-
activateField(name: string): void;
|
4
|
-
private findField;
|
5
|
-
}
|
6
|
-
declare global {
|
7
|
-
interface Window {
|
8
|
-
PrimerMultiInputElement: typeof PrimerMultiInputElement;
|
9
|
-
}
|
10
|
-
}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
import '@github/auto-check-element';
|
2
|
-
import type { AutoCheckErrorEvent, AutoCheckSuccessEvent } from '@github/auto-check-element';
|
3
|
-
declare global {
|
4
|
-
interface HTMLElementEventMap {
|
5
|
-
'auto-check-success': AutoCheckSuccessEvent;
|
6
|
-
'auto-check-error': AutoCheckErrorEvent;
|
7
|
-
}
|
8
|
-
}
|
9
|
-
export declare class PrimerTextFieldElement extends HTMLElement {
|
10
|
-
#private;
|
11
|
-
inputElement: HTMLInputElement;
|
12
|
-
validationElement: HTMLElement;
|
13
|
-
validationMessageElement: HTMLElement;
|
14
|
-
validationSuccessIcon: HTMLElement;
|
15
|
-
validationErrorIcon: HTMLElement;
|
16
|
-
leadingVisual: HTMLElement;
|
17
|
-
leadingSpinner: HTMLElement;
|
18
|
-
connectedCallback(): void;
|
19
|
-
disconnectedCallback(): void;
|
20
|
-
clearContents(): void;
|
21
|
-
clearError(): void;
|
22
|
-
setValidationMessage(message: string): void;
|
23
|
-
toggleValidationStyling(isError: boolean): void;
|
24
|
-
setSuccess(message: string): void;
|
25
|
-
setError(message: string): void;
|
26
|
-
showLeadingSpinner(): void;
|
27
|
-
hideLeadingSpinner(): void;
|
28
|
-
}
|