@primer/view-components 0.35.0-rc.8f715f71 → 0.35.0-rc.93d4cb69
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 +5 -7
- 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.93d4cb69",
|
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",
|
@@ -68,7 +66,7 @@
|
|
68
66
|
"@playwright/test": "^1.35.1",
|
69
67
|
"@primer/css": "21.3.6",
|
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",
|
@@ -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
|
-
}
|