@primer/view-components 0.35.0-rc.03ac8a4d → 0.35.0-rc.04d28044
Sign up to get free protection for your applications and to get access to all the features.
- package/app/assets/javascripts/{app/components → components}/primer/primer.d.ts +3 -3
- 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.js +0 -3
- package/app/components/primer/alpha/action_list.css +1 -1
- package/app/components/primer/alpha/auto_complete.css +1 -1
- package/app/components/primer/alpha/banner.css +1 -1
- package/app/components/primer/alpha/dropdown.css +1 -1
- package/app/components/primer/alpha/stack.css +1 -0
- package/app/components/primer/alpha/stack.css.json +90 -0
- package/app/components/primer/alpha/stack_item.css +1 -0
- package/app/components/primer/alpha/stack_item.css.json +12 -0
- package/app/components/primer/alpha/tab_nav.css +1 -1
- package/app/components/primer/alpha/text_field.css +1 -1
- package/app/components/primer/alpha/toggle_switch.css +1 -1
- package/app/components/primer/alpha/underline_nav.css +1 -1
- package/app/components/primer/beta/avatar.css +1 -1
- package/app/components/primer/beta/avatar_stack.css +1 -1
- package/app/components/primer/beta/blankslate.css +1 -1
- package/app/components/primer/beta/border_box.css +1 -1
- package/app/components/primer/beta/button.css +1 -1
- package/app/components/primer/beta/counter.css +1 -1
- package/app/components/primer/beta/popover.css +1 -1
- package/app/components/primer/beta/progress_bar.css +1 -1
- package/app/components/primer/beta/state.css +1 -1
- package/app/components/primer/primer.js +3 -3
- package/app/lib/primer/forms/primer_multi_input.d.ts +10 -0
- package/app/lib/primer/forms/primer_text_field.d.ts +28 -0
- package/app/lib/primer/forms/toggle_switch_input.d.ts +5 -0
- package/package.json +6 -5
- package/static/arguments.json +86 -0
- package/static/audited_at.json +2 -0
- package/static/classes.json +6 -0
- package/static/constants.json +24 -0
- package/static/info_arch.json +172 -0
- package/static/previews.json +68 -0
- package/static/statuses.json +2 -0
- package/app/components/primer/alpha/action_bar_element.d.ts +0 -17
- package/app/components/primer/alpha/action_list.d.ts +0 -16
- package/app/components/primer/alpha/action_menu/action_menu_element.d.ts +0 -42
- package/app/components/primer/alpha/dropdown/menu.d.ts +0 -1
- package/app/components/primer/alpha/dropdown.d.ts +0 -1
- package/app/components/primer/alpha/image_crop.d.ts +0 -1
- package/app/components/primer/alpha/modal_dialog.d.ts +0 -18
- package/app/components/primer/alpha/segmented_control.d.ts +0 -12
- package/app/components/primer/alpha/select_panel_element.d.ts +0 -63
- package/app/components/primer/alpha/tab_container.d.ts +0 -1
- package/app/components/primer/alpha/toggle_switch.d.ts +0 -34
- package/app/components/primer/alpha/tool_tip.d.ts +0 -27
- package/app/components/primer/alpha/x_banner.d.ts +0 -18
- package/app/components/primer/anchored_position.d.ts +0 -27
- package/app/components/primer/aria_live.d.ts +0 -8
- package/app/components/primer/beta/auto_complete/auto_complete.d.ts +0 -1
- package/app/components/primer/beta/clipboard_copy.d.ts +0 -1
- package/app/components/primer/beta/nav_list.d.ts +0 -20
- package/app/components/primer/beta/nav_list_group_element.d.ts +0 -19
- package/app/components/primer/beta/relative_time.d.ts +0 -1
- package/app/components/primer/dialog_helper.d.ts +0 -15
- package/app/components/primer/focus_group.d.ts +0 -19
- package/app/components/primer/primer.d.ts +0 -28
- package/app/components/primer/scrollable_region.d.ts +0 -13
- package/app/components/primer/shared_events.d.ts +0 -11
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/action_bar_element.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/action_list.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/action_menu/action_menu_element.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/dropdown/menu.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/dropdown.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/image_crop.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/modal_dialog.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/segmented_control.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/select_panel_element.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/tab_container.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/toggle_switch.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/tool_tip.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/alpha/x_banner.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/anchored_position.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/aria_live.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/beta/auto_complete/auto_complete.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/beta/clipboard_copy.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/beta/nav_list.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/beta/nav_list_group_element.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/beta/relative_time.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/dialog_helper.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/focus_group.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/scrollable_region.d.ts +0 -0
- /package/app/assets/javascripts/{app/components → components}/primer/shared_events.d.ts +0 -0
- /package/{lib → app/lib}/primer/forms/primer_multi_input.js +0 -0
- /package/{lib → app/lib}/primer/forms/primer_text_field.js +0 -0
- /package/{lib → app/lib}/primer/forms/toggle_switch_input.js +0 -0
@@ -0,0 +1,28 @@
|
|
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
|
+
}
|
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.04d28044",
|
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",
|
@@ -26,6 +26,8 @@
|
|
26
26
|
"app/components/primer/**/*.css",
|
27
27
|
"app/components/primer/**/*.css.json",
|
28
28
|
"app/components/primer/**/*.d.ts",
|
29
|
+
"app/lib/primer/forms/**/*.js",
|
30
|
+
"app/lib/primer/forms/**/*.d.ts",
|
29
31
|
"lib/primer/forms/**/*.js",
|
30
32
|
"lib/primer/forms/**/*.d.ts"
|
31
33
|
],
|
@@ -66,7 +68,7 @@
|
|
66
68
|
"@playwright/test": "^1.35.1",
|
67
69
|
"@primer/css": "21.3.6",
|
68
70
|
"@primer/primitives": "^9.0.2",
|
69
|
-
"@primer/stylelint-config": "^
|
71
|
+
"@primer/stylelint-config": "^13.0.1",
|
70
72
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
71
73
|
"@rollup/plugin-typescript": "^8.3.3",
|
72
74
|
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
@@ -84,13 +86,12 @@
|
|
84
86
|
"postcss": "^8.4.16",
|
85
87
|
"postcss-cli": "^11.0.0",
|
86
88
|
"postcss-import": "^16.0.0",
|
87
|
-
"postcss-mixins": "^
|
89
|
+
"postcss-mixins": "^11.0.1",
|
88
90
|
"postcss-preset-env": "^10.0.2",
|
89
91
|
"prettier": "^3.3.2",
|
90
92
|
"rollup": "^2.79.1",
|
91
93
|
"rollup-plugin-terser": "^7.0.2",
|
92
|
-
"stylelint": "^16.1
|
93
|
-
"stylelint-config-standard": "^36.0.0",
|
94
|
+
"stylelint-actions-formatters": "^16.3.1",
|
94
95
|
"tslib": "^2.4.0",
|
95
96
|
"typescript": "^5.2.2",
|
96
97
|
"vite": "^5.4.3",
|
package/static/arguments.json
CHANGED
@@ -2510,6 +2510,92 @@
|
|
2510
2510
|
}
|
2511
2511
|
]
|
2512
2512
|
},
|
2513
|
+
{
|
2514
|
+
"component": "Stack",
|
2515
|
+
"status": "alpha",
|
2516
|
+
"a11y_reviewed": false,
|
2517
|
+
"short_name": "Stack",
|
2518
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack.rb",
|
2519
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack/default/",
|
2520
|
+
"parameters": [
|
2521
|
+
{
|
2522
|
+
"name": "tag",
|
2523
|
+
"type": "Symbol",
|
2524
|
+
"default": "`:div`",
|
2525
|
+
"description": "Customize the element type of the rendered container."
|
2526
|
+
},
|
2527
|
+
{
|
2528
|
+
"name": "gap",
|
2529
|
+
"type": "Symbol",
|
2530
|
+
"default": "`GapArg::DEFAULT`",
|
2531
|
+
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:normal`, or `:spacious`."
|
2532
|
+
},
|
2533
|
+
{
|
2534
|
+
"name": "direction",
|
2535
|
+
"type": "Symbol",
|
2536
|
+
"default": "`:vertical`",
|
2537
|
+
"description": "Specify the direction for the stack container. One of `nil`, `:horizontal`, or `:vertical`."
|
2538
|
+
},
|
2539
|
+
{
|
2540
|
+
"name": "align",
|
2541
|
+
"type": "Symbol",
|
2542
|
+
"default": "`:stretch`",
|
2543
|
+
"description": "Specify the alignment between items in the cross-axis of the direction. One of `nil`, `:baseline`, `:center`, `:end`, `:start`, or `:stretch`."
|
2544
|
+
},
|
2545
|
+
{
|
2546
|
+
"name": "wrap",
|
2547
|
+
"type": "Symbol",
|
2548
|
+
"default": "`:nowrap`",
|
2549
|
+
"description": "Specify whether items are forced onto one line or can wrap onto multiple lines. One of `nil`, `:nowrap`, or `:wrap`."
|
2550
|
+
},
|
2551
|
+
{
|
2552
|
+
"name": "justify",
|
2553
|
+
"type": "Symbol",
|
2554
|
+
"default": "`:start`",
|
2555
|
+
"description": "Specify how items will be distributed in the stacking direction. One of `nil`, `:center`, `:end`, `:space_between`, `:space_evenly`, or `:start`."
|
2556
|
+
},
|
2557
|
+
{
|
2558
|
+
"name": "padding",
|
2559
|
+
"type": "Symbol",
|
2560
|
+
"default": "`:none`",
|
2561
|
+
"description": "Specify the padding of the stack container. One of `nil`, `:condensed`, `:none`, `:normal`, or `:spacious`."
|
2562
|
+
},
|
2563
|
+
{
|
2564
|
+
"name": "system_arguments",
|
2565
|
+
"type": "Hash",
|
2566
|
+
"default": "N/A",
|
2567
|
+
"description": "[System arguments](/system-arguments)"
|
2568
|
+
}
|
2569
|
+
]
|
2570
|
+
},
|
2571
|
+
{
|
2572
|
+
"component": "StackItem",
|
2573
|
+
"status": "alpha",
|
2574
|
+
"a11y_reviewed": false,
|
2575
|
+
"short_name": "StackItem",
|
2576
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack_item.rb",
|
2577
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack_item/default/",
|
2578
|
+
"parameters": [
|
2579
|
+
{
|
2580
|
+
"name": "tag",
|
2581
|
+
"type": "Symbol",
|
2582
|
+
"default": "`:div`",
|
2583
|
+
"description": "Customize the element type of the rendered container."
|
2584
|
+
},
|
2585
|
+
{
|
2586
|
+
"name": "grow",
|
2587
|
+
"type": "Boolean",
|
2588
|
+
"default": "`false`",
|
2589
|
+
"description": "Allow item to keep size or expand to fill the available space."
|
2590
|
+
},
|
2591
|
+
{
|
2592
|
+
"name": "system_arguments",
|
2593
|
+
"type": "Hash",
|
2594
|
+
"default": "N/A",
|
2595
|
+
"description": "[System arguments](/system-arguments)"
|
2596
|
+
}
|
2597
|
+
]
|
2598
|
+
},
|
2513
2599
|
{
|
2514
2600
|
"component": "SubmitButton",
|
2515
2601
|
"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/classes.json
CHANGED
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
@@ -8248,6 +8248,178 @@
|
|
8248
8248
|
}
|
8249
8249
|
]
|
8250
8250
|
},
|
8251
|
+
{
|
8252
|
+
"fully_qualified_name": "Primer::Alpha::Stack",
|
8253
|
+
"description": "Stack is a layout component that creates responsive horizontal and vertical flows.",
|
8254
|
+
"accessibility_docs": null,
|
8255
|
+
"is_form_component": false,
|
8256
|
+
"is_published": true,
|
8257
|
+
"requires_js": false,
|
8258
|
+
"component": "Stack",
|
8259
|
+
"status": "alpha",
|
8260
|
+
"a11y_reviewed": false,
|
8261
|
+
"short_name": "Stack",
|
8262
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack.rb",
|
8263
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack/default/",
|
8264
|
+
"parameters": [
|
8265
|
+
{
|
8266
|
+
"name": "tag",
|
8267
|
+
"type": "Symbol",
|
8268
|
+
"default": "`:div`",
|
8269
|
+
"description": "Customize the element type of the rendered container."
|
8270
|
+
},
|
8271
|
+
{
|
8272
|
+
"name": "gap",
|
8273
|
+
"type": "Symbol",
|
8274
|
+
"default": "`GapArg::DEFAULT`",
|
8275
|
+
"description": "Specify the gap between children elements in the stack. One of `nil`, `:condensed`, `:normal`, or `:spacious`."
|
8276
|
+
},
|
8277
|
+
{
|
8278
|
+
"name": "direction",
|
8279
|
+
"type": "Symbol",
|
8280
|
+
"default": "`:vertical`",
|
8281
|
+
"description": "Specify the direction for the stack container. One of `nil`, `:horizontal`, or `:vertical`."
|
8282
|
+
},
|
8283
|
+
{
|
8284
|
+
"name": "align",
|
8285
|
+
"type": "Symbol",
|
8286
|
+
"default": "`:stretch`",
|
8287
|
+
"description": "Specify the alignment between items in the cross-axis of the direction. One of `nil`, `:baseline`, `:center`, `:end`, `:start`, or `:stretch`."
|
8288
|
+
},
|
8289
|
+
{
|
8290
|
+
"name": "wrap",
|
8291
|
+
"type": "Symbol",
|
8292
|
+
"default": "`:nowrap`",
|
8293
|
+
"description": "Specify whether items are forced onto one line or can wrap onto multiple lines. One of `nil`, `:nowrap`, or `:wrap`."
|
8294
|
+
},
|
8295
|
+
{
|
8296
|
+
"name": "justify",
|
8297
|
+
"type": "Symbol",
|
8298
|
+
"default": "`:start`",
|
8299
|
+
"description": "Specify how items will be distributed in the stacking direction. One of `nil`, `:center`, `:end`, `:space_between`, `:space_evenly`, or `:start`."
|
8300
|
+
},
|
8301
|
+
{
|
8302
|
+
"name": "padding",
|
8303
|
+
"type": "Symbol",
|
8304
|
+
"default": "`:none`",
|
8305
|
+
"description": "Specify the padding of the stack container. One of `nil`, `:condensed`, `:none`, `:normal`, or `:spacious`."
|
8306
|
+
},
|
8307
|
+
{
|
8308
|
+
"name": "system_arguments",
|
8309
|
+
"type": "Hash",
|
8310
|
+
"default": "N/A",
|
8311
|
+
"description": "{{link_to_system_arguments_docs}}"
|
8312
|
+
}
|
8313
|
+
],
|
8314
|
+
"slots": [
|
8315
|
+
|
8316
|
+
],
|
8317
|
+
"methods": [
|
8318
|
+
|
8319
|
+
],
|
8320
|
+
"previews": [
|
8321
|
+
{
|
8322
|
+
"preview_path": "primer/alpha/stack/default",
|
8323
|
+
"name": "default",
|
8324
|
+
"snapshot": "false",
|
8325
|
+
"skip_rules": {
|
8326
|
+
"wont_fix": [
|
8327
|
+
"region"
|
8328
|
+
],
|
8329
|
+
"will_fix": [
|
8330
|
+
"color-contrast"
|
8331
|
+
]
|
8332
|
+
}
|
8333
|
+
},
|
8334
|
+
{
|
8335
|
+
"preview_path": "primer/alpha/stack/playground",
|
8336
|
+
"name": "playground",
|
8337
|
+
"snapshot": "false",
|
8338
|
+
"skip_rules": {
|
8339
|
+
"wont_fix": [
|
8340
|
+
"region"
|
8341
|
+
],
|
8342
|
+
"will_fix": [
|
8343
|
+
"color-contrast"
|
8344
|
+
]
|
8345
|
+
}
|
8346
|
+
}
|
8347
|
+
],
|
8348
|
+
"subcomponents": [
|
8349
|
+
|
8350
|
+
]
|
8351
|
+
},
|
8352
|
+
{
|
8353
|
+
"fully_qualified_name": "Primer::Alpha::StackItem",
|
8354
|
+
"description": "StackItem is a layout component designed to be used as the child of a Stack.",
|
8355
|
+
"accessibility_docs": null,
|
8356
|
+
"is_form_component": false,
|
8357
|
+
"is_published": true,
|
8358
|
+
"requires_js": false,
|
8359
|
+
"component": "StackItem",
|
8360
|
+
"status": "alpha",
|
8361
|
+
"a11y_reviewed": false,
|
8362
|
+
"short_name": "StackItem",
|
8363
|
+
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/stack_item.rb",
|
8364
|
+
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/stack_item/default/",
|
8365
|
+
"parameters": [
|
8366
|
+
{
|
8367
|
+
"name": "tag",
|
8368
|
+
"type": "Symbol",
|
8369
|
+
"default": "`:div`",
|
8370
|
+
"description": "Customize the element type of the rendered container."
|
8371
|
+
},
|
8372
|
+
{
|
8373
|
+
"name": "grow",
|
8374
|
+
"type": "Boolean",
|
8375
|
+
"default": "`false`",
|
8376
|
+
"description": "Allow item to keep size or expand to fill the available space."
|
8377
|
+
},
|
8378
|
+
{
|
8379
|
+
"name": "system_arguments",
|
8380
|
+
"type": "Hash",
|
8381
|
+
"default": "N/A",
|
8382
|
+
"description": "{{link_to_system_arguments_docs}}"
|
8383
|
+
}
|
8384
|
+
],
|
8385
|
+
"slots": [
|
8386
|
+
|
8387
|
+
],
|
8388
|
+
"methods": [
|
8389
|
+
|
8390
|
+
],
|
8391
|
+
"previews": [
|
8392
|
+
{
|
8393
|
+
"preview_path": "primer/alpha/stack_item/default",
|
8394
|
+
"name": "default",
|
8395
|
+
"snapshot": "false",
|
8396
|
+
"skip_rules": {
|
8397
|
+
"wont_fix": [
|
8398
|
+
"region"
|
8399
|
+
],
|
8400
|
+
"will_fix": [
|
8401
|
+
"color-contrast"
|
8402
|
+
]
|
8403
|
+
}
|
8404
|
+
},
|
8405
|
+
{
|
8406
|
+
"preview_path": "primer/alpha/stack_item/playground",
|
8407
|
+
"name": "playground",
|
8408
|
+
"snapshot": "false",
|
8409
|
+
"skip_rules": {
|
8410
|
+
"wont_fix": [
|
8411
|
+
"region"
|
8412
|
+
],
|
8413
|
+
"will_fix": [
|
8414
|
+
"color-contrast"
|
8415
|
+
]
|
8416
|
+
}
|
8417
|
+
}
|
8418
|
+
],
|
8419
|
+
"subcomponents": [
|
8420
|
+
|
8421
|
+
]
|
8422
|
+
},
|
8251
8423
|
{
|
8252
8424
|
"fully_qualified_name": "Primer::Alpha::SubmitButton",
|
8253
8425
|
"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
@@ -6249,6 +6249,74 @@
|
|
6249
6249
|
}
|
6250
6250
|
]
|
6251
6251
|
},
|
6252
|
+
{
|
6253
|
+
"name": "stack",
|
6254
|
+
"component": "Stack",
|
6255
|
+
"status": "alpha",
|
6256
|
+
"lookup_path": "primer/alpha/stack",
|
6257
|
+
"examples": [
|
6258
|
+
{
|
6259
|
+
"preview_path": "primer/alpha/stack/default",
|
6260
|
+
"name": "default",
|
6261
|
+
"snapshot": "false",
|
6262
|
+
"skip_rules": {
|
6263
|
+
"wont_fix": [
|
6264
|
+
"region"
|
6265
|
+
],
|
6266
|
+
"will_fix": [
|
6267
|
+
"color-contrast"
|
6268
|
+
]
|
6269
|
+
}
|
6270
|
+
},
|
6271
|
+
{
|
6272
|
+
"preview_path": "primer/alpha/stack/playground",
|
6273
|
+
"name": "playground",
|
6274
|
+
"snapshot": "false",
|
6275
|
+
"skip_rules": {
|
6276
|
+
"wont_fix": [
|
6277
|
+
"region"
|
6278
|
+
],
|
6279
|
+
"will_fix": [
|
6280
|
+
"color-contrast"
|
6281
|
+
]
|
6282
|
+
}
|
6283
|
+
}
|
6284
|
+
]
|
6285
|
+
},
|
6286
|
+
{
|
6287
|
+
"name": "stack_item",
|
6288
|
+
"component": "StackItem",
|
6289
|
+
"status": "alpha",
|
6290
|
+
"lookup_path": "primer/alpha/stack_item",
|
6291
|
+
"examples": [
|
6292
|
+
{
|
6293
|
+
"preview_path": "primer/alpha/stack_item/default",
|
6294
|
+
"name": "default",
|
6295
|
+
"snapshot": "false",
|
6296
|
+
"skip_rules": {
|
6297
|
+
"wont_fix": [
|
6298
|
+
"region"
|
6299
|
+
],
|
6300
|
+
"will_fix": [
|
6301
|
+
"color-contrast"
|
6302
|
+
]
|
6303
|
+
}
|
6304
|
+
},
|
6305
|
+
{
|
6306
|
+
"preview_path": "primer/alpha/stack_item/playground",
|
6307
|
+
"name": "playground",
|
6308
|
+
"snapshot": "false",
|
6309
|
+
"skip_rules": {
|
6310
|
+
"wont_fix": [
|
6311
|
+
"region"
|
6312
|
+
],
|
6313
|
+
"will_fix": [
|
6314
|
+
"color-contrast"
|
6315
|
+
]
|
6316
|
+
}
|
6317
|
+
}
|
6318
|
+
]
|
6319
|
+
},
|
6252
6320
|
{
|
6253
6321
|
"name": "state",
|
6254
6322
|
"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,17 +0,0 @@
|
|
1
|
-
import { ActionMenuElement } from './action_menu/action_menu_element';
|
2
|
-
declare class ActionBarElement extends HTMLElement {
|
3
|
-
#private;
|
4
|
-
items: HTMLElement[];
|
5
|
-
itemContainer: HTMLElement;
|
6
|
-
moreMenu: ActionMenuElement;
|
7
|
-
connectedCallback(): void;
|
8
|
-
disconnectedCallback(): void;
|
9
|
-
menuItemClick(event: Event): void;
|
10
|
-
update(): void;
|
11
|
-
}
|
12
|
-
declare global {
|
13
|
-
interface Window {
|
14
|
-
ActionBarElement: typeof ActionBarElement;
|
15
|
-
}
|
16
|
-
}
|
17
|
-
export {};
|
@@ -1,16 +0,0 @@
|
|
1
|
-
export declare class ActionListTruncationObserver {
|
2
|
-
resizeObserver: ResizeObserver;
|
3
|
-
constructor(el: HTMLElement);
|
4
|
-
unobserve(el: HTMLElement): void;
|
5
|
-
update(el: HTMLElement): void;
|
6
|
-
}
|
7
|
-
export declare class ActionListElement extends HTMLElement {
|
8
|
-
#private;
|
9
|
-
connectedCallback(): void;
|
10
|
-
disconnectedCallback(): void;
|
11
|
-
}
|
12
|
-
declare global {
|
13
|
-
interface Window {
|
14
|
-
ActionListElement: typeof ActionListElement;
|
15
|
-
}
|
16
|
-
}
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import '@oddbird/popover-polyfill';
|
2
|
-
import type { IncludeFragmentElement } from '@github/include-fragment-element';
|
3
|
-
type SelectVariant = 'none' | 'single' | 'multiple' | null;
|
4
|
-
type SelectedItem = {
|
5
|
-
label: string | null | undefined;
|
6
|
-
value: string | null | undefined;
|
7
|
-
element: Element;
|
8
|
-
};
|
9
|
-
export declare class ActionMenuElement extends HTMLElement {
|
10
|
-
#private;
|
11
|
-
includeFragment: IncludeFragmentElement;
|
12
|
-
get selectVariant(): SelectVariant;
|
13
|
-
set selectVariant(variant: SelectVariant);
|
14
|
-
get dynamicLabelPrefix(): string;
|
15
|
-
set dynamicLabelPrefix(value: string);
|
16
|
-
get dynamicLabel(): boolean;
|
17
|
-
set dynamicLabel(value: boolean);
|
18
|
-
get popoverElement(): HTMLElement | null;
|
19
|
-
get invokerElement(): HTMLButtonElement | null;
|
20
|
-
get invokerLabel(): HTMLElement | null;
|
21
|
-
get selectedItems(): SelectedItem[];
|
22
|
-
connectedCallback(): void;
|
23
|
-
disconnectedCallback(): void;
|
24
|
-
handleEvent(event: Event): void;
|
25
|
-
get items(): HTMLElement[];
|
26
|
-
getItemById(itemId: string): HTMLElement | null;
|
27
|
-
isItemDisabled(item: Element | null): boolean;
|
28
|
-
disableItem(item: Element | null): void;
|
29
|
-
enableItem(item: Element | null): void;
|
30
|
-
isItemHidden(item: Element | null): boolean;
|
31
|
-
hideItem(item: Element | null): void;
|
32
|
-
showItem(item: Element | null): void;
|
33
|
-
isItemChecked(item: Element | null): boolean;
|
34
|
-
checkItem(item: Element | null): void;
|
35
|
-
uncheckItem(item: Element | null): void;
|
36
|
-
}
|
37
|
-
declare global {
|
38
|
-
interface Window {
|
39
|
-
ActionMenuElement: typeof ActionMenuElement;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/details-menu-element';
|
@@ -1 +0,0 @@
|
|
1
|
-
import './dropdown/menu';
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/image-crop-element';
|
@@ -1,18 +0,0 @@
|
|
1
|
-
export declare class ModalDialogElement extends HTMLElement {
|
2
|
-
#private;
|
3
|
-
openButton: HTMLButtonElement | null;
|
4
|
-
get open(): boolean;
|
5
|
-
set open(value: boolean);
|
6
|
-
get showButtons(): NodeList;
|
7
|
-
connectedCallback(): void;
|
8
|
-
show(): void;
|
9
|
-
close(closedNotCancelled?: boolean): void;
|
10
|
-
}
|
11
|
-
declare global {
|
12
|
-
interface Window {
|
13
|
-
ModalDialogElement: typeof ModalDialogElement;
|
14
|
-
}
|
15
|
-
interface HTMLElementTagNameMap {
|
16
|
-
'modal-dialog': ModalDialogElement;
|
17
|
-
}
|
18
|
-
}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
declare class SegmentedControlElement extends HTMLElement {
|
2
|
-
#private;
|
3
|
-
items: HTMLElement[];
|
4
|
-
connectedCallback(): void;
|
5
|
-
select(event: Event): void;
|
6
|
-
}
|
7
|
-
declare global {
|
8
|
-
interface Window {
|
9
|
-
SegmentedControlElement: typeof SegmentedControlElement;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
export {};
|
@@ -1,63 +0,0 @@
|
|
1
|
-
import { IncludeFragmentElement } from '@github/include-fragment-element';
|
2
|
-
import type { AnchorAlignment, AnchorSide } from '@primer/behaviors';
|
3
|
-
import '@oddbird/popover-polyfill';
|
4
|
-
type SelectVariant = 'none' | 'single' | 'multiple' | null;
|
5
|
-
type SelectedItem = {
|
6
|
-
label: string | null | undefined;
|
7
|
-
value: string | null | undefined;
|
8
|
-
inputName: string | null | undefined;
|
9
|
-
};
|
10
|
-
export type SelectPanelItem = HTMLLIElement;
|
11
|
-
export type FilterFn = (item: SelectPanelItem, query: string) => boolean;
|
12
|
-
export declare class SelectPanelElement extends HTMLElement {
|
13
|
-
#private;
|
14
|
-
includeFragment: IncludeFragmentElement;
|
15
|
-
dialog: HTMLDialogElement;
|
16
|
-
filterInputTextField: HTMLInputElement;
|
17
|
-
remoteInput: HTMLElement;
|
18
|
-
list: HTMLElement;
|
19
|
-
ariaLiveContainer: HTMLElement;
|
20
|
-
noResults: HTMLElement;
|
21
|
-
fragmentErrorElement: HTMLElement;
|
22
|
-
bannerErrorElement: HTMLElement;
|
23
|
-
bodySpinner: HTMLElement;
|
24
|
-
filterFn?: FilterFn;
|
25
|
-
get open(): boolean;
|
26
|
-
get selectVariant(): SelectVariant;
|
27
|
-
get ariaSelectionType(): string;
|
28
|
-
set selectVariant(variant: SelectVariant);
|
29
|
-
get dynamicLabelPrefix(): string;
|
30
|
-
get dynamicAriaLabelPrefix(): string;
|
31
|
-
set dynamicLabelPrefix(value: string);
|
32
|
-
get dynamicLabel(): boolean;
|
33
|
-
set dynamicLabel(value: boolean);
|
34
|
-
get invokerElement(): HTMLButtonElement | null;
|
35
|
-
get closeButton(): HTMLButtonElement | null;
|
36
|
-
get invokerLabel(): HTMLElement | null;
|
37
|
-
get selectedItems(): SelectedItem[];
|
38
|
-
get align(): AnchorAlignment;
|
39
|
-
get side(): AnchorSide;
|
40
|
-
updateAnchorPosition(): void;
|
41
|
-
connectedCallback(): void;
|
42
|
-
disconnectedCallback(): void;
|
43
|
-
handleEvent(event: Event): void;
|
44
|
-
show(): void;
|
45
|
-
hide(): void;
|
46
|
-
get visibleItems(): SelectPanelItem[];
|
47
|
-
get items(): SelectPanelItem[];
|
48
|
-
get focusableItem(): HTMLElement | undefined;
|
49
|
-
getItemById(itemId: string): SelectPanelItem | null;
|
50
|
-
isItemDisabled(item: SelectPanelItem | null): boolean;
|
51
|
-
disableItem(item: SelectPanelItem | null): void;
|
52
|
-
enableItem(item: SelectPanelItem | null): void;
|
53
|
-
isItemHidden(item: SelectPanelItem | null): boolean;
|
54
|
-
isItemChecked(item: SelectPanelItem | null): boolean;
|
55
|
-
checkItem(item: SelectPanelItem | null): void;
|
56
|
-
uncheckItem(item: SelectPanelItem | null): void;
|
57
|
-
}
|
58
|
-
declare global {
|
59
|
-
interface Window {
|
60
|
-
SelectPanelElement: typeof SelectPanelElement;
|
61
|
-
}
|
62
|
-
}
|
63
|
-
export {};
|
@@ -1 +0,0 @@
|
|
1
|
-
import '@github/tab-container-element';
|