@protonradio/proton-ui 0.4.3 → 0.5.1
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/dist/proton-ui.es.d.ts +14 -14
- package/dist/proton-ui.es.js +411 -411
- package/dist/proton-ui.es.js.map +1 -1
- package/dist/proton-ui.umd.js +7 -7
- package/dist/proton-ui.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/proton-ui.es.d.ts
CHANGED
|
@@ -35,14 +35,7 @@ export declare interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>
|
|
|
35
35
|
|
|
36
36
|
export declare type BadgeVariant = "primary" | "secondary" | "transparent" | "success" | "warning" | "danger";
|
|
37
37
|
|
|
38
|
-
export declare const BadgeVariants:
|
|
39
|
-
readonly primary: "primary";
|
|
40
|
-
readonly secondary: "secondary";
|
|
41
|
-
readonly transparent: "transparent";
|
|
42
|
-
readonly success: "success";
|
|
43
|
-
readonly warning: "warning";
|
|
44
|
-
readonly danger: "danger";
|
|
45
|
-
};
|
|
38
|
+
export declare const BadgeVariants: Record<BadgeVariant, BadgeVariant>;
|
|
46
39
|
|
|
47
40
|
export declare const Banner: {
|
|
48
41
|
({ variant, rounded, icon, compact, children, ...props }: BannerProps): JSX_2.Element;
|
|
@@ -171,10 +164,6 @@ declare interface ButtonProps {
|
|
|
171
164
|
* The URL that the button should link to. Turns the element into an `a` tag.
|
|
172
165
|
*/
|
|
173
166
|
href?: string;
|
|
174
|
-
/**
|
|
175
|
-
* Should the button show an external link icon?
|
|
176
|
-
*/
|
|
177
|
-
external?: boolean;
|
|
178
167
|
/**
|
|
179
168
|
* Called when the button is pressed (on release, not keydown).
|
|
180
169
|
*/
|
|
@@ -185,7 +174,7 @@ declare interface ButtonProps {
|
|
|
185
174
|
children?: React.ReactNode;
|
|
186
175
|
}
|
|
187
176
|
|
|
188
|
-
export declare type ButtonVariant = "primary" | "secondary" | "danger" | "translucent";
|
|
177
|
+
export declare type ButtonVariant = "primary" | "secondary" | "success" | "danger" | "translucent";
|
|
189
178
|
|
|
190
179
|
export declare const Cell: <T>(props: ProtonColumnProps<T>) => JSX.Element;
|
|
191
180
|
|
|
@@ -342,10 +331,21 @@ declare type TableProps = AriaTableProps & TableStateProps<object>;
|
|
|
342
331
|
export declare const TextEmphasis: ({ to, children, tooltipProps, "data-testid": testId, }: TextEmphasisProps) => JSX_2.Element;
|
|
343
332
|
|
|
344
333
|
declare interface TextEmphasisProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
334
|
+
/**
|
|
335
|
+
* The URL that the text emphasis should link to. Turns the element into an `a` tag.
|
|
336
|
+
*/
|
|
345
337
|
to?: string;
|
|
346
|
-
|
|
338
|
+
/**
|
|
339
|
+
* The content to display within the text emphasis.
|
|
340
|
+
*/
|
|
347
341
|
children: ReactNode;
|
|
342
|
+
/**
|
|
343
|
+
* Props to pass to the tooltip trigger. When provided, the text emphasis will be wrapped in a tooltip trigger.
|
|
344
|
+
*/
|
|
348
345
|
tooltipProps?: Omit<TooltipTriggerProps, "children">;
|
|
346
|
+
/**
|
|
347
|
+
* A test ID.
|
|
348
|
+
*/
|
|
349
349
|
"data-testid"?: string;
|
|
350
350
|
}
|
|
351
351
|
|