karsten-design-system 2.0.17 → 2.0.19
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/assets/flags/py.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +50 -8
- package/dist/index.js.map +1 -1
- package/dist/stories/components/countryDropdown.d.ts +12 -0
- package/dist/stories/components/header.d.ts +2 -1
- package/dist/stories/components/languageDropdown.d.ts +2 -1
- package/dist/types/assets/flags/py.d.ts +3 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stories/components/countryDropdown.d.ts +12 -0
- package/dist/types/stories/components/header.d.ts +2 -1
- package/dist/types/stories/components/languageDropdown.d.ts +2 -1
- package/dist/types/utils/countryOptions.d.ts +2 -0
- package/dist/utils/countryOptions.d.ts +2 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type CountryOption = {
|
|
2
|
+
country: 'BR' | 'PY';
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
type CountryDropdownProps = {
|
|
7
|
+
selected: 'BR' | 'PY';
|
|
8
|
+
onChange: (countryOpt: CountryOption) => void;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function CountryDropdown({ selected, onChange, disabled, }: CountryDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -8,9 +8,10 @@ export type MenubarProps = {
|
|
|
8
8
|
setOpenNotifications: (value: boolean) => void;
|
|
9
9
|
isRenderNotifications?: boolean;
|
|
10
10
|
rightActions?: React.ReactNode;
|
|
11
|
+
rightActionsLogo?: React.ReactNode;
|
|
11
12
|
redirect?: string;
|
|
12
13
|
helloTranslation?: string;
|
|
13
14
|
favoritesTranslation?: string;
|
|
14
15
|
homeTranslation?: string;
|
|
15
16
|
};
|
|
16
|
-
export declare function Header({ sidebarItems, sidebarTopItems, username, userConfigItems, setOpenNotifications, isRenderNotifications, rightActions, redirect, helloTranslation, favoritesTranslation, homeTranslation, }: MenubarProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function Header({ sidebarItems, sidebarTopItems, username, userConfigItems, setOpenNotifications, isRenderNotifications, rightActions, rightActionsLogo, redirect, helloTranslation, favoritesTranslation, homeTranslation, }: MenubarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,6 +6,7 @@ export type LanguageOption = {
|
|
|
6
6
|
type LanguageDropdownProps = {
|
|
7
7
|
selected: 'pt' | 'en' | 'es';
|
|
8
8
|
onChange: (lang: LanguageOption) => void;
|
|
9
|
+
showIcon?: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare function LanguageDropdown({ selected, onChange, }: LanguageDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function LanguageDropdown({ selected, onChange, showIcon, }: LanguageDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './stories/components/cardButton';
|
|
|
9
9
|
export * from './stories/components/cardIconsButton';
|
|
10
10
|
export * from './stories/components/charts';
|
|
11
11
|
export * from './stories/components/checkbox';
|
|
12
|
+
export * from './stories/components/countryDropdown';
|
|
12
13
|
export * from './stories/components/divider';
|
|
13
14
|
export * from './stories/components/emptyContent';
|
|
14
15
|
export * from './stories/components/expandablePanel';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type CountryOption = {
|
|
2
|
+
country: 'BR' | 'PY';
|
|
3
|
+
label: string;
|
|
4
|
+
icon?: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
type CountryDropdownProps = {
|
|
7
|
+
selected: 'BR' | 'PY';
|
|
8
|
+
onChange: (countryOpt: CountryOption) => void;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare function CountryDropdown({ selected, onChange, disabled, }: CountryDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -8,9 +8,10 @@ export type MenubarProps = {
|
|
|
8
8
|
setOpenNotifications: (value: boolean) => void;
|
|
9
9
|
isRenderNotifications?: boolean;
|
|
10
10
|
rightActions?: React.ReactNode;
|
|
11
|
+
rightActionsLogo?: React.ReactNode;
|
|
11
12
|
redirect?: string;
|
|
12
13
|
helloTranslation?: string;
|
|
13
14
|
favoritesTranslation?: string;
|
|
14
15
|
homeTranslation?: string;
|
|
15
16
|
};
|
|
16
|
-
export declare function Header({ sidebarItems, sidebarTopItems, username, userConfigItems, setOpenNotifications, isRenderNotifications, rightActions, redirect, helloTranslation, favoritesTranslation, homeTranslation, }: MenubarProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function Header({ sidebarItems, sidebarTopItems, username, userConfigItems, setOpenNotifications, isRenderNotifications, rightActions, rightActionsLogo, redirect, helloTranslation, favoritesTranslation, homeTranslation, }: MenubarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -6,6 +6,7 @@ export type LanguageOption = {
|
|
|
6
6
|
type LanguageDropdownProps = {
|
|
7
7
|
selected: 'pt' | 'en' | 'es';
|
|
8
8
|
onChange: (lang: LanguageOption) => void;
|
|
9
|
+
showIcon?: boolean;
|
|
9
10
|
};
|
|
10
|
-
export declare function LanguageDropdown({ selected, onChange, }: LanguageDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function LanguageDropdown({ selected, onChange, showIcon, }: LanguageDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
export {};
|