@primer/view-components 0.26.0-rc.39ec0275 → 0.26.0-rc.4b9be17c
Sign up to get free protection for your applications and to get access to all the features.
- package/app/assets/javascripts/lib/primer/forms/primer_text_field.d.ts +0 -27
- package/app/assets/javascripts/primer_view_components.js +1 -1
- package/app/assets/javascripts/primer_view_components.js.map +1 -1
- package/lib/primer/forms/primer_text_field.d.ts +0 -27
- package/lib/primer/forms/primer_text_field.js +5 -17
- package/package.json +3 -3
- package/static/arguments.json +0 -6
- package/static/info_arch.json +0 -6
@@ -1,28 +1 @@
|
|
1
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
|
-
}
|
@@ -1,4 +1,3 @@
|
|
1
|
-
/* eslint-disable custom-elements/expose-class-on-global */
|
2
1
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
3
2
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
4
3
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
@@ -19,7 +18,10 @@ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (
|
|
19
18
|
var _PrimerTextFieldElement_abortController;
|
20
19
|
import '@github/auto-check-element';
|
21
20
|
import { controller, target } from '@github/catalyst';
|
22
|
-
|
21
|
+
// eslint-disable-next-line custom-elements/expose-class-on-global
|
22
|
+
let PrimerTextFieldElement =
|
23
|
+
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
24
|
+
class PrimerTextFieldElement extends HTMLElement {
|
23
25
|
constructor() {
|
24
26
|
super(...arguments);
|
25
27
|
_PrimerTextFieldElement_abortController.set(this, void 0);
|
@@ -81,14 +83,6 @@ let PrimerTextFieldElement = class PrimerTextFieldElement extends HTMLElement {
|
|
81
83
|
this.setValidationMessage(message);
|
82
84
|
this.validationElement.hidden = false;
|
83
85
|
}
|
84
|
-
showLeadingSpinner() {
|
85
|
-
this.leadingSpinner?.removeAttribute('hidden');
|
86
|
-
this.leadingVisual?.setAttribute('hidden', '');
|
87
|
-
}
|
88
|
-
hideLeadingSpinner() {
|
89
|
-
this.leadingSpinner?.setAttribute('hidden', '');
|
90
|
-
this.leadingVisual?.removeAttribute('hidden');
|
91
|
-
}
|
92
86
|
};
|
93
87
|
_PrimerTextFieldElement_abortController = new WeakMap();
|
94
88
|
__decorate([
|
@@ -106,13 +100,7 @@ __decorate([
|
|
106
100
|
__decorate([
|
107
101
|
target
|
108
102
|
], PrimerTextFieldElement.prototype, "validationErrorIcon", void 0);
|
109
|
-
__decorate([
|
110
|
-
target
|
111
|
-
], PrimerTextFieldElement.prototype, "leadingVisual", void 0);
|
112
|
-
__decorate([
|
113
|
-
target
|
114
|
-
], PrimerTextFieldElement.prototype, "leadingSpinner", void 0);
|
115
103
|
PrimerTextFieldElement = __decorate([
|
116
104
|
controller
|
105
|
+
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
117
106
|
], PrimerTextFieldElement);
|
118
|
-
export { PrimerTextFieldElement };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@primer/view-components",
|
3
|
-
"version": "0.26.0-rc.
|
3
|
+
"version": "0.26.0-rc.4b9be17c",
|
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",
|
@@ -74,7 +74,7 @@
|
|
74
74
|
"cssnano": "^7.0.1",
|
75
75
|
"eslint": "^8.23.1",
|
76
76
|
"eslint-plugin-custom-elements": "^0.0.8",
|
77
|
-
"eslint-plugin-github": "^
|
77
|
+
"eslint-plugin-github": "^4.9.2",
|
78
78
|
"eslint-plugin-prettier": "^5.0.0",
|
79
79
|
"markdownlint-cli2": "^0.13.0",
|
80
80
|
"mocha": "^10.0.0",
|
@@ -84,7 +84,7 @@
|
|
84
84
|
"postcss-import": "^16.0.0",
|
85
85
|
"postcss-mixins": "^10.0.0",
|
86
86
|
"postcss-preset-env": "^9.3.0",
|
87
|
-
"prettier": "
|
87
|
+
"prettier": "3.3.1",
|
88
88
|
"rollup": "^2.79.1",
|
89
89
|
"rollup-plugin-terser": "^7.0.2",
|
90
90
|
"stylelint": "^16.1.0",
|
package/static/arguments.json
CHANGED
@@ -2752,12 +2752,6 @@
|
|
2752
2752
|
"default": "N/A",
|
2753
2753
|
"description": "Renders a leading visual icon before the text field's cursor. The hash will be passed to Primer's [Octicon](/components/beta/octicon) component."
|
2754
2754
|
},
|
2755
|
-
{
|
2756
|
-
"name": "leading_spinner",
|
2757
|
-
"type": "Boolean",
|
2758
|
-
"default": "N/A",
|
2759
|
-
"description": "If `true`, a leading spinner will be included in the markup. The spinner can be shown via the `showLeadingSpinner()` JavaScript method, and hidden via `hideLeadingSpinner()`. If this argument is `true`, a leading visual must also be provided."
|
2760
|
-
},
|
2761
2755
|
{
|
2762
2756
|
"name": "show_clear_button",
|
2763
2757
|
"type": "Boolean",
|
package/static/info_arch.json
CHANGED
@@ -8143,12 +8143,6 @@
|
|
8143
8143
|
"default": "N/A",
|
8144
8144
|
"description": "Renders a leading visual icon before the text field's cursor. The hash will be passed to Primer's {{#link_to_component}}Primer::Beta::Octicon{{/link_to_component}} component."
|
8145
8145
|
},
|
8146
|
-
{
|
8147
|
-
"name": "leading_spinner",
|
8148
|
-
"type": "Boolean",
|
8149
|
-
"default": "N/A",
|
8150
|
-
"description": "If `true`, a leading spinner will be included in the markup. The spinner can be shown via the `showLeadingSpinner()` JavaScript method, and hidden via `hideLeadingSpinner()`. If this argument is `true`, a leading visual must also be provided."
|
8151
|
-
},
|
8152
8146
|
{
|
8153
8147
|
"name": "show_clear_button",
|
8154
8148
|
"type": "Boolean",
|