@stenajs-webui/elements 19.0.0-next.2 → 19.0.0-next.20
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/components/ui/action-menu/ActionMenuItemContent.d.ts +1 -1
- package/dist/components/ui/buttons/FlatButton.d.ts +3 -6
- package/dist/components/ui/buttons/menu-button/IconMenuButton.d.ts +10 -0
- package/dist/components/ui/buttons/menu-button/IconMenuButtonLink.d.ts +25 -0
- package/dist/components/ui/buttons/menu-button/MenuButton.d.ts +2 -0
- package/dist/components/ui/buttons/menu-button/MenuButtonContent.d.ts +2 -0
- package/dist/components/ui/icon/CircledIcon.d.ts +2 -4
- package/dist/icons/ui/IconsUi.d.ts +6 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +1930 -1772
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
|
@@ -3,7 +3,7 @@ import * as React from "react";
|
|
|
3
3
|
import { ReactNode } from "react";
|
|
4
4
|
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
5
5
|
import { MenuButtonContentProps } from "../buttons/menu-button/MenuButtonContent";
|
|
6
|
-
export interface ActionMenuItemContentProps extends DivProps, MenuButtonContentProps {
|
|
6
|
+
export interface ActionMenuItemContentProps extends DivProps, Omit<MenuButtonContentProps, "left"> {
|
|
7
7
|
leftIcon?: IconDefinition;
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
right?: ReactNode;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { PrimaryButtonProps } from "./PrimaryButton";
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare const FlatButton: React.ForwardRefExoticComponent<PrimaryButtonProps & {
|
|
7
|
-
inverted?: boolean | undefined;
|
|
8
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
3
|
+
export interface FlatButtonProps extends PrimaryButtonProps {
|
|
4
|
+
}
|
|
5
|
+
export declare const FlatButton: React.ForwardRefExoticComponent<FlatButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { ButtonElementProps } from "@stenajs-webui/core";
|
|
3
|
+
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
4
|
+
import { MenuButtonVariant } from "./MenuButton";
|
|
5
|
+
export interface IconMenuButtonProps extends ButtonElementProps {
|
|
6
|
+
selected?: boolean;
|
|
7
|
+
icon: IconDefinition;
|
|
8
|
+
variant?: MenuButtonVariant;
|
|
9
|
+
}
|
|
10
|
+
export declare const IconMenuButton: React.ForwardRefExoticComponent<IconMenuButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { AnchorElementProps } from "@stenajs-webui/core";
|
|
3
|
+
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
4
|
+
import { MenuButtonVariant } from "./MenuButton";
|
|
5
|
+
import { MenuButtonLinkRenderer } from "./MenuButtonLink";
|
|
6
|
+
export declare type IconMenuButtonLinkProps = IconMenuButtonLinkNotSelectedProps | IconMenuButtonLinkWithSelectedProps | IconMenuButtonLinkWithRenderLinkProps;
|
|
7
|
+
interface IconMenuButtonCommonProps extends AnchorElementProps {
|
|
8
|
+
icon: IconDefinition;
|
|
9
|
+
variant?: MenuButtonVariant;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
}
|
|
12
|
+
export interface IconMenuButtonLinkNotSelectedProps extends IconMenuButtonCommonProps {
|
|
13
|
+
renderLink?: never;
|
|
14
|
+
selected?: never;
|
|
15
|
+
}
|
|
16
|
+
export interface IconMenuButtonLinkWithSelectedProps extends IconMenuButtonCommonProps {
|
|
17
|
+
renderLink?: never;
|
|
18
|
+
selected?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface IconMenuButtonLinkWithRenderLinkProps extends IconMenuButtonCommonProps {
|
|
21
|
+
renderLink?: MenuButtonLinkRenderer;
|
|
22
|
+
selected?: never;
|
|
23
|
+
}
|
|
24
|
+
export declare const IconMenuButtonLink: React.ForwardRefExoticComponent<IconMenuButtonLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
25
|
+
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { IconDefinition } from "@fortawesome/fontawesome-svg-core";
|
|
3
|
+
import { ReactNode } from "react";
|
|
3
4
|
export interface MenuButtonContentProps {
|
|
4
5
|
leftIcon?: IconDefinition;
|
|
6
|
+
left?: ReactNode;
|
|
5
7
|
label: string;
|
|
6
8
|
}
|
|
7
9
|
export declare const MenuButtonContent: React.FC<MenuButtonContentProps>;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { CssPropColor } from "@stenajs-webui/theme";
|
|
3
3
|
import { IconProps } from "./Icon";
|
|
4
|
-
declare type
|
|
4
|
+
export declare type CircledIconSizeVariant = "medium" | "small";
|
|
5
5
|
export interface CircledIconProps extends Omit<IconProps, "size" | "color"> {
|
|
6
|
-
iconSize?: number;
|
|
7
6
|
backgroundColor?: CssPropColor;
|
|
8
7
|
iconColor?: CssPropColor;
|
|
9
|
-
|
|
8
|
+
size?: CircledIconSizeVariant;
|
|
10
9
|
}
|
|
11
10
|
export declare const CircledIcon: React.FC<CircledIconProps>;
|
|
12
|
-
export {};
|
|
@@ -69,8 +69,10 @@ export declare const stenaDotsVertical: IconDefinition;
|
|
|
69
69
|
export declare const stenaDots: IconDefinition;
|
|
70
70
|
export declare const stenaDownloadPdf: IconDefinition;
|
|
71
71
|
export declare const stenaDownload: IconDefinition;
|
|
72
|
+
export declare const stenaDrag: IconDefinition;
|
|
72
73
|
export declare const stenaEditColumns: IconDefinition;
|
|
73
74
|
export declare const stenaEdit: IconDefinition;
|
|
75
|
+
export declare const stenaEmptyRead: IconDefinition;
|
|
74
76
|
export declare const stenaExclamationCircleFilled: IconDefinition;
|
|
75
77
|
export declare const stenaExclamationCircle: IconDefinition;
|
|
76
78
|
export declare const stenaExclamationTriangleFilled: IconDefinition;
|
|
@@ -109,6 +111,7 @@ export declare const stenaInfoMegaphone: IconDefinition;
|
|
|
109
111
|
export declare const stenaInfoSpeechAlert: IconDefinition;
|
|
110
112
|
export declare const stenaInfoSpeech: IconDefinition;
|
|
111
113
|
export declare const stenaIntermodal: IconDefinition;
|
|
114
|
+
export declare const stenaKeyboard: IconDefinition;
|
|
112
115
|
export declare const stenaLanguage: IconDefinition;
|
|
113
116
|
export declare const stenaLightbulb: IconDefinition;
|
|
114
117
|
export declare const stenaLightning: IconDefinition;
|
|
@@ -146,6 +149,7 @@ export declare const stenaQuestionCircle: IconDefinition;
|
|
|
146
149
|
export declare const stenaRateThumbDown: IconDefinition;
|
|
147
150
|
export declare const stenaRateThumbUp: IconDefinition;
|
|
148
151
|
export declare const stenaRefresh: IconDefinition;
|
|
152
|
+
export declare const stenaRobot: IconDefinition;
|
|
149
153
|
export declare const stenaSailingBus: IconDefinition;
|
|
150
154
|
export declare const stenaSailingCar: IconDefinition;
|
|
151
155
|
export declare const stenaSailingCargo: IconDefinition;
|
|
@@ -159,6 +163,7 @@ export declare const stenaSailingOnQuay: IconDefinition;
|
|
|
159
163
|
export declare const stenaSailingOnRoute: IconDefinition;
|
|
160
164
|
export declare const stenaSailingPeak: IconDefinition;
|
|
161
165
|
export declare const stenaSailingRoundTrip: IconDefinition;
|
|
166
|
+
export declare const stenaSailingRouteAlt: IconDefinition;
|
|
162
167
|
export declare const stenaSailingRoute: IconDefinition;
|
|
163
168
|
export declare const stenaSailingShip: IconDefinition;
|
|
164
169
|
export declare const stenaSailingShoulder: IconDefinition;
|
|
@@ -191,6 +196,7 @@ export declare const stenaStack: IconDefinition;
|
|
|
191
196
|
export declare const stenaStar: IconDefinition;
|
|
192
197
|
export declare const stenaStatisticsBar: IconDefinition;
|
|
193
198
|
export declare const stenaStatisticsLine: IconDefinition;
|
|
199
|
+
export declare const stenaStatisticsPie: IconDefinition;
|
|
194
200
|
export declare const stenaStatusActive: IconDefinition;
|
|
195
201
|
export declare const stenaStatusBlock: IconDefinition;
|
|
196
202
|
export declare const stenaStatusCanceled: IconDefinition;
|
package/dist/index.d.ts
CHANGED
|
@@ -16,13 +16,16 @@ export * from "./components/ui/buttons/SecondaryButton";
|
|
|
16
16
|
export * from "./components/ui/buttons/common/ButtonCommon";
|
|
17
17
|
export * from "./components/ui/buttons/common/ButtonContent";
|
|
18
18
|
export * from "./components/ui/buttons/menu-button/MenuButton";
|
|
19
|
+
export * from "./components/ui/buttons/menu-button/IconMenuButton";
|
|
19
20
|
export * from "./components/ui/buttons/menu-button/MenuButtonLink";
|
|
21
|
+
export * from "./components/ui/buttons/menu-button/IconMenuButtonLink";
|
|
20
22
|
export * from "./components/ui/button-links/FlatButtonLink";
|
|
21
23
|
export * from "./components/ui/button-links/PrimaryButtonLink";
|
|
22
24
|
export * from "./components/ui/button-links/SecondaryButtonLink";
|
|
23
25
|
export * from "./components/ui/button-group/ButtonGroup";
|
|
24
26
|
export * from "./components/ui/up-down-buttons/UpDownButtons";
|
|
25
27
|
export * from "./components/ui/icon/Icon";
|
|
28
|
+
export * from "./components/ui/icon/CircledIcon";
|
|
26
29
|
export * from "./components/ui/card/Card";
|
|
27
30
|
export * from "./components/ui/card/CardHeader";
|
|
28
31
|
export * from "./components/ui/card/CardBody";
|