@primer/view-components 0.35.0-rc.bb4f3d24 → 0.35.0-rc.bfaf3f99
Sign up to get free protection for your applications and to get access to all the features.
- package/app/assets/javascripts/components/primer/primer.d.ts +0 -1
- 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.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/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 +27 -0
- package/app/components/primer/primer.js +0 -1
- package/app/components/primer/scrollable_region.d.ts +13 -0
- package/app/components/primer/shared_events.d.ts +11 -0
- 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 +2 -2
- package/static/arguments.json +6 -28
- package/static/audited_at.json +0 -1
- package/static/constants.json +124 -7
- package/static/info_arch.json +19 -95
- package/static/previews.json +13 -47
- package/static/statuses.json +0 -1
- package/app/assets/javascripts/components/primer/alpha/image_crop.d.ts +0 -1
- package/app/components/primer/alpha/image_crop.js +0 -1
@@ -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.bfaf3f99",
|
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",
|
@@ -64,7 +64,7 @@
|
|
64
64
|
"@github/markdownlint-github": "^0.6.0",
|
65
65
|
"@github/prettier-config": "0.0.6",
|
66
66
|
"@playwright/test": "^1.35.1",
|
67
|
-
"@primer/css": "21.
|
67
|
+
"@primer/css": "21.5.0",
|
68
68
|
"@primer/primitives": "^9.0.2",
|
69
69
|
"@primer/stylelint-config": "^13.1.1",
|
70
70
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
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",
|
@@ -1345,34 +1351,6 @@
|
|
1345
1351
|
}
|
1346
1352
|
]
|
1347
1353
|
},
|
1348
|
-
{
|
1349
|
-
"component": "ImageCrop",
|
1350
|
-
"status": "alpha",
|
1351
|
-
"a11y_reviewed": false,
|
1352
|
-
"short_name": "ImageCrop",
|
1353
|
-
"source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/image_crop.rb",
|
1354
|
-
"lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/image_crop/default/",
|
1355
|
-
"parameters": [
|
1356
|
-
{
|
1357
|
-
"name": "src",
|
1358
|
-
"type": "String",
|
1359
|
-
"default": "N/A",
|
1360
|
-
"description": "The path of the image to crop."
|
1361
|
-
},
|
1362
|
-
{
|
1363
|
-
"name": "rounded",
|
1364
|
-
"type": "Boolean",
|
1365
|
-
"default": "`true`",
|
1366
|
-
"description": "If the crop mask should be a circle. Defaults to true."
|
1367
|
-
},
|
1368
|
-
{
|
1369
|
-
"name": "system_arguments",
|
1370
|
-
"type": "Hash",
|
1371
|
-
"default": "N/A",
|
1372
|
-
"description": "[System arguments](/system-arguments)"
|
1373
|
-
}
|
1374
|
-
]
|
1375
|
-
},
|
1376
1354
|
{
|
1377
1355
|
"component": "Layout",
|
1378
1356
|
"status": "alpha",
|
package/static/audited_at.json
CHANGED