@primer-io/primer-js 1.1.0 → 1.2.0
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/CHANGELOG.md +18 -0
- package/dist/custom-elements.json +287 -287
- package/dist/jsx/index.d.ts +16 -16
- package/dist/primer-loader.js +12 -12
- package/dist/vscode.html-custom-data.json +17 -17
- package/dist/web-types.json +37 -37
- package/package.json +1 -1
package/dist/jsx/index.d.ts
CHANGED
|
@@ -150,15 +150,6 @@ export type DialogComponentProps = {
|
|
|
150
150
|
"onprimer:dialog-close"?: (e: CustomEvent<CustomEvent>) => void;
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
export type PrimerIconComponentProps = {
|
|
154
|
-
/** */
|
|
155
|
-
color?: string;
|
|
156
|
-
/** */
|
|
157
|
-
size?: "lg" | "md" | "sm";
|
|
158
|
-
/** The name of the icon to draw - available names can be found under library.ts file */
|
|
159
|
-
name?: IconName | undefined;
|
|
160
|
-
};
|
|
161
|
-
|
|
162
153
|
export type ErrorMessageComponentProps = {
|
|
163
154
|
/** The error message text to display */
|
|
164
155
|
message?: string;
|
|
@@ -170,6 +161,15 @@ export type ErrorMessageComponentProps = {
|
|
|
170
161
|
role?: string;
|
|
171
162
|
};
|
|
172
163
|
|
|
164
|
+
export type PrimerIconComponentProps = {
|
|
165
|
+
/** */
|
|
166
|
+
color?: string;
|
|
167
|
+
/** */
|
|
168
|
+
size?: "lg" | "md" | "sm";
|
|
169
|
+
/** The name of the icon to draw - available names can be found under library.ts file */
|
|
170
|
+
name?: IconName | undefined;
|
|
171
|
+
};
|
|
172
|
+
|
|
173
173
|
export type InputComponentProps = {
|
|
174
174
|
/** */
|
|
175
175
|
value?: string;
|
|
@@ -740,13 +740,6 @@ export type CustomElements = {
|
|
|
740
740
|
*/
|
|
741
741
|
"primer-dialog": Partial<DialogComponentProps & BaseProps & BaseEvents>;
|
|
742
742
|
|
|
743
|
-
/**
|
|
744
|
-
*
|
|
745
|
-
* ---
|
|
746
|
-
*
|
|
747
|
-
*/
|
|
748
|
-
"primer-icon": Partial<PrimerIconComponentProps & BaseProps & BaseEvents>;
|
|
749
|
-
|
|
750
743
|
/**
|
|
751
744
|
* A reusable atomic error message component that displays error information
|
|
752
745
|
* with appropriate styling and accessibility attributes.
|
|
@@ -763,6 +756,13 @@ export type CustomElements = {
|
|
|
763
756
|
*/
|
|
764
757
|
"primer-error-message": Partial<ErrorMessageComponentProps & BaseProps & BaseEvents>;
|
|
765
758
|
|
|
759
|
+
/**
|
|
760
|
+
*
|
|
761
|
+
* ---
|
|
762
|
+
*
|
|
763
|
+
*/
|
|
764
|
+
"primer-icon": Partial<PrimerIconComponentProps & BaseProps & BaseEvents>;
|
|
765
|
+
|
|
766
766
|
/**
|
|
767
767
|
* A fully type-safe input component that wraps the native HTML input element
|
|
768
768
|
* while providing additional functionality and styling.
|