@niagads/ui 1.0.1-alpha.0 → 1.1.0-alpha.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/dist/ActionButton.js +2 -0
- package/dist/ActionButton.js.map +1 -0
- package/dist/Alert.js +1 -1
- package/dist/Alert.js.map +1 -1
- package/dist/Badge.js +2 -0
- package/dist/Badge.js.map +1 -0
- package/dist/Button.js +1 -1
- package/dist/Button.js.map +1 -1
- package/dist/Card.js +1 -1
- package/dist/Card.js.map +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/Checkbox.js.map +1 -1
- package/dist/Common/dist/utils.js +1 -1
- package/dist/Common/dist/utils.js.map +1 -1
- package/dist/FilterChip.js +2 -0
- package/dist/FilterChip.js.map +1 -0
- package/dist/Footer.js +2 -0
- package/dist/Footer.js.map +1 -0
- package/dist/HelpIcon.js +2 -0
- package/dist/HelpIcon.js.map +1 -0
- package/dist/InlineIcon.js +2 -0
- package/dist/InlineIcon.js.map +1 -0
- package/dist/LoadingSpinner.js +2 -0
- package/dist/LoadingSpinner.js.map +1 -0
- package/dist/Navigation.js +1 -1
- package/dist/Navigation.js.map +1 -1
- package/dist/RadioButton.js +1 -1
- package/dist/RadioButton.js.map +1 -1
- package/dist/Select.js +1 -1
- package/dist/Select.js.map +1 -1
- package/dist/SimpleTooltip.js +2 -0
- package/dist/SimpleTooltip.js.map +1 -0
- package/dist/Skeleton.js +1 -1
- package/dist/Skeleton.js.map +1 -1
- package/dist/TextInput.js +1 -1
- package/dist/TextInput.js.map +1 -1
- package/dist/Toggle.js +2 -0
- package/dist/Toggle.js.map +1 -0
- package/dist/Tooltip.js +2 -0
- package/dist/Tooltip.js.map +1 -0
- package/dist/client/ActionMenu.js +2 -0
- package/dist/client/ActionMenu.js.map +1 -0
- package/dist/client/Autocomplete.js +2 -0
- package/dist/client/Autocomplete.js.map +1 -0
- package/dist/client/Dropdown.js +1 -1
- package/dist/client/Dropdown.js.map +1 -1
- package/dist/client/Footer.js +2 -0
- package/dist/client/Footer.js.map +1 -0
- package/dist/client/HelpIcon.js.map +1 -1
- package/dist/client/Slider.js +1 -1
- package/dist/client/Slider.js.map +1 -1
- package/dist/client/Tabs.js +1 -1
- package/dist/client/Tabs.js.map +1 -1
- package/dist/client/Tooltip.js.map +1 -1
- package/dist/client/TooltipClient.js +2 -0
- package/dist/client/TooltipClient.js.map +1 -0
- package/dist/client/index.d.ts +39 -32
- package/dist/client/index.js +1 -1
- package/dist/index.d.ts +143 -41
- package/dist/index.js +1 -1
- package/dist/layouts/RootLayout.js +1 -1
- package/dist/layouts/RootLayout.js.map +1 -1
- package/dist/layouts/index.d.ts +0 -1
- package/dist/layouts/index.js +1 -1
- package/dist/layouts/utils.js.map +1 -1
- package/dist/loading-spinner.js +2 -0
- package/dist/loading-spinner.js.map +1 -0
- package/dist/niagads-ui.css +424 -110
- package/dist/niagads-ui.css.map +1 -1
- package/dist/styles/actionmenu.module.css.js +2 -0
- package/dist/styles/actionmenu.module.css.js.map +1 -0
- package/dist/styles/alert.module.css.js +2 -0
- package/dist/styles/alert.module.css.js.map +1 -0
- package/dist/styles/autocomplete.module.css.js +2 -0
- package/dist/styles/autocomplete.module.css.js.map +1 -0
- package/dist/styles/badge.module.css.js +2 -0
- package/dist/styles/badge.module.css.js.map +1 -0
- package/dist/styles/button.module.css.js +2 -0
- package/dist/styles/button.module.css.js.map +1 -0
- package/dist/styles/card.module.css.js +2 -0
- package/dist/styles/card.module.css.js.map +1 -0
- package/dist/styles/checkbox.module.css.js +2 -0
- package/dist/styles/checkbox.module.css.js.map +1 -0
- package/dist/styles/filterchip.module.css.js +2 -0
- package/dist/styles/filterchip.module.css.js.map +1 -0
- package/dist/styles/footer.module.css.js +2 -0
- package/dist/styles/footer.module.css.js.map +1 -0
- package/dist/styles/global.css.js +2 -0
- package/dist/styles/global.css.js.map +1 -0
- package/dist/styles/inline-icon.module.css.js +2 -0
- package/dist/styles/inline-icon.module.css.js.map +1 -0
- package/dist/styles/loading-spinner.module.css.js +2 -0
- package/dist/styles/loading-spinner.module.css.js.map +1 -0
- package/dist/styles/navigation.module.css.js +2 -0
- package/dist/styles/navigation.module.css.js.map +1 -0
- package/dist/styles/select.module.css.js +2 -0
- package/dist/styles/select.module.css.js.map +1 -0
- package/dist/styles/skeleton.module.css.js +2 -0
- package/dist/styles/skeleton.module.css.js.map +1 -0
- package/dist/styles/slider.module.css.js +2 -0
- package/dist/styles/slider.module.css.js.map +1 -0
- package/dist/styles/tabs.module.css.js +2 -0
- package/dist/styles/tabs.module.css.js.map +1 -0
- package/dist/styles/textinput.module.css.js +2 -0
- package/dist/styles/textinput.module.css.js.map +1 -0
- package/dist/styles/toggle.module.css.js +2 -0
- package/dist/styles/toggle.module.css.js.map +1 -0
- package/dist/styles/tooltip.module.css.js +2 -0
- package/dist/styles/tooltip.module.css.js.map +1 -0
- package/package.json +7 -9
package/dist/client/index.d.ts
CHANGED
|
@@ -1,50 +1,57 @@
|
|
|
1
|
-
import React, { ReactNode } from 'react';
|
|
2
|
-
import { VariantType, PlacesType } from 'react-tooltip';
|
|
1
|
+
import React$1, { ReactNode } from 'react';
|
|
3
2
|
|
|
4
|
-
interface
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
interface Suggestion {
|
|
4
|
+
id: string;
|
|
5
|
+
display: string;
|
|
6
|
+
matched_term: string;
|
|
7
7
|
}
|
|
8
|
-
interface
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
interface AutocompleteProps {
|
|
9
|
+
suggestions: Suggestion[];
|
|
10
|
+
onSearch: (query: string) => void;
|
|
11
|
+
onClick: (suggestion: Suggestion) => void;
|
|
12
|
+
onValueChange: (value: string) => void;
|
|
13
|
+
error: string;
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
showTypeHints?: boolean;
|
|
16
|
+
autoRoute?: boolean;
|
|
12
17
|
}
|
|
13
|
-
declare const
|
|
18
|
+
declare const Autocomplete: ({ suggestions, onSearch, onClick, onValueChange, error, placeholder, showTypeHints, autoRoute, }: AutocompleteProps) => React$1.JSX.Element;
|
|
14
19
|
|
|
15
|
-
interface
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
20
|
+
interface StylingProps {
|
|
21
|
+
className?: string;
|
|
22
|
+
style?: React.CSSProperties;
|
|
23
|
+
id?: string;
|
|
19
24
|
}
|
|
20
|
-
declare const HelpIcon: ({ anchorId, message, type }: HelpIconProps) => React.JSX.Element;
|
|
21
|
-
declare const renderHelpIcon: (anchorId: string, message: ReactNode | string, type?: "question" | "info") => React.JSX.Element;
|
|
22
|
-
declare const getIconElement: (key: string) => any;
|
|
23
|
-
declare const renderWithHelpIcon: (textElement: ReactNode | string, type: "question" | "info", message: string, anchorId: string) => React.JSX.Element;
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
type ButtonColorVariants = "default" | "primary" | "white";
|
|
27
|
+
|
|
28
|
+
interface ActionMenuProps extends StylingProps {
|
|
29
|
+
label: string;
|
|
30
|
+
icon: React$1.ElementType;
|
|
31
|
+
children: ReactNode;
|
|
32
|
+
buttonColor?: ButtonColorVariants;
|
|
33
|
+
}
|
|
34
|
+
declare const ActionMenu: ({ label, icon, children, className, buttonColor, style, ...rest }: ActionMenuProps & React$1.HTMLAttributes<HTMLDivElement>) => React$1.JSX.Element;
|
|
35
|
+
|
|
36
|
+
interface TooltipClientProps {
|
|
27
37
|
content: string | ReactNode;
|
|
28
|
-
children:
|
|
29
|
-
|
|
30
|
-
place?: PlacesType;
|
|
38
|
+
children: ReactNode;
|
|
39
|
+
position?: "top" | "bottom" | "left" | "right";
|
|
31
40
|
openOnClick?: boolean;
|
|
32
41
|
}
|
|
33
|
-
declare function
|
|
34
|
-
declare const renderTooltip: (anchorId: string, children: any, message: any) => React.JSX.Element;
|
|
42
|
+
declare function TooltipClient({ content, children, position, openOnClick }: TooltipClientProps): React$1.JSX.Element;
|
|
35
43
|
|
|
36
44
|
interface TabDef {
|
|
37
|
-
label:
|
|
45
|
+
label: ReactNode;
|
|
38
46
|
id: string;
|
|
39
47
|
info?: string;
|
|
40
48
|
content: ReactNode;
|
|
41
49
|
}
|
|
42
|
-
interface TabsProps {
|
|
43
|
-
sectionId?: string;
|
|
50
|
+
interface TabsProps extends StylingProps {
|
|
44
51
|
tabs: TabDef[];
|
|
45
52
|
width: string;
|
|
46
53
|
}
|
|
47
|
-
declare const Tabs: ({
|
|
54
|
+
declare const Tabs: ({ tabs, width }: TabsProps) => React$1.JSX.Element | null;
|
|
48
55
|
|
|
49
56
|
interface SliderProps {
|
|
50
57
|
name: string;
|
|
@@ -57,7 +64,7 @@ interface SliderProps {
|
|
|
57
64
|
onChange: (v: number[]) => void;
|
|
58
65
|
}
|
|
59
66
|
type SliderVariants = "default" | "primary" | "secondary" | "accent";
|
|
60
|
-
declare const Slider: ({ variant, name, label, value, min, max, step, onChange }: SliderProps) => React.JSX.Element;
|
|
67
|
+
declare const Slider: ({ variant, name, label, value, min, max, step, onChange }: SliderProps) => React$1.JSX.Element;
|
|
61
68
|
|
|
62
|
-
export {
|
|
63
|
-
export type {
|
|
69
|
+
export { ActionMenu, Autocomplete, Slider, Tabs, TooltipClient };
|
|
70
|
+
export type { TabDef };
|
package/dist/client/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{
|
|
1
|
+
import"../styles/global.css.js";export{Autocomplete}from"./Autocomplete.js";export{ActionMenu}from"./ActionMenu.js";export{TooltipClient}from"./TooltipClient.js";export{Tabs}from"./Tabs.js";export{Slider}from"./Slider.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/index.d.ts
CHANGED
|
@@ -1,48 +1,68 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as lucide_react from 'lucide-react';
|
|
2
|
+
import React$1, { ReactNode } from 'react';
|
|
2
3
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
interface StylingProps {
|
|
5
|
+
className?: string;
|
|
6
|
+
style?: React.CSSProperties;
|
|
7
|
+
id?: string;
|
|
8
|
+
}
|
|
9
|
+
type ThemeVariant = "secondary" | "light" | "dark" | "accent";
|
|
10
|
+
|
|
11
|
+
declare const ICONS$1: {
|
|
12
|
+
info: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
13
|
+
error: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
14
|
+
warning: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
15
|
+
success: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
16
|
+
construction: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
17
|
+
};
|
|
18
|
+
type AlertVariants = keyof typeof ICONS$1;
|
|
19
|
+
interface Alert extends StylingProps {
|
|
6
20
|
variant?: AlertVariants;
|
|
7
21
|
message: string;
|
|
8
|
-
children?: ReactNode
|
|
22
|
+
children?: ReactNode;
|
|
9
23
|
}
|
|
10
|
-
declare const Alert: ({ variant, message, children }: Alert) => React.JSX.Element;
|
|
24
|
+
declare const Alert: ({ variant, message, children, className, style }: Alert) => React$1.JSX.Element;
|
|
11
25
|
|
|
12
|
-
type ButtonVariants = "default" | "
|
|
13
|
-
type
|
|
14
|
-
interface ButtonProps {
|
|
26
|
+
type ButtonVariants = "default" | "icon";
|
|
27
|
+
type ButtonColorVariants = "default" | "primary" | "white";
|
|
28
|
+
interface ButtonProps extends StylingProps {
|
|
15
29
|
variant?: ButtonVariants;
|
|
16
|
-
|
|
17
|
-
children: ReactNode
|
|
30
|
+
color?: ButtonColorVariants;
|
|
31
|
+
children: ReactNode;
|
|
18
32
|
disabled?: boolean;
|
|
19
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void | null;
|
|
33
|
+
onClick?: (event: React$1.MouseEvent<HTMLButtonElement>) => void | null;
|
|
20
34
|
}
|
|
21
|
-
declare const Button: ({
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
interface StylingProps {
|
|
25
|
-
colorVariant?: "primary" | "secondary" | "accent" | "default" | "transparent";
|
|
26
|
-
size?: "sm" | "md" | "lg";
|
|
27
|
-
className?: string;
|
|
35
|
+
declare const Button: ({ children, onClick, variant, color, disabled, className, id, ...rest }: ButtonProps & React$1.HTMLAttributes<HTMLButtonElement>) => React$1.JSX.Element;
|
|
36
|
+
interface ButtonWrapperProps {
|
|
37
|
+
children: ReactNode;
|
|
28
38
|
}
|
|
39
|
+
declare const ButtonGroup: ({ children, className }: ButtonWrapperProps & StylingProps) => React$1.JSX.Element;
|
|
40
|
+
declare const ActionToolbar: ({ children, className }: ButtonWrapperProps & StylingProps) => React$1.JSX.Element;
|
|
29
41
|
|
|
30
42
|
interface CardBodyProps {
|
|
31
|
-
children: ReactNode
|
|
43
|
+
children: ReactNode;
|
|
32
44
|
}
|
|
33
45
|
interface CardHeaderProps {
|
|
34
|
-
children: ReactNode
|
|
46
|
+
children: ReactNode;
|
|
35
47
|
}
|
|
36
|
-
|
|
37
|
-
|
|
48
|
+
type CardVariant = "half" | "third" | "two-thirds" | "full";
|
|
49
|
+
interface CardProps extends StylingProps {
|
|
38
50
|
href?: string;
|
|
39
|
-
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void | null;
|
|
40
|
-
|
|
41
|
-
|
|
51
|
+
onClick?: (event: React$1.MouseEvent<HTMLButtonElement>) => void | null;
|
|
52
|
+
children: ReactNode;
|
|
53
|
+
variant: CardVariant;
|
|
54
|
+
hover?: boolean;
|
|
55
|
+
outline?: boolean;
|
|
56
|
+
}
|
|
57
|
+
declare const CardBody: ({ children }: CardBodyProps) => React$1.JSX.Element;
|
|
58
|
+
declare const CardHeader: ({ children }: CardHeaderProps) => React$1.JSX.Element;
|
|
59
|
+
declare const Card: ({ href, onClick, children, className, variant, hover, outline, ...rest }: CardProps & React$1.HTMLAttributes<HTMLDivElement>) => React$1.JSX.Element;
|
|
60
|
+
interface FeatureCardProps extends Omit<CardProps, "children">, StylingProps {
|
|
61
|
+
icon: React$1.ElementType;
|
|
62
|
+
title: string;
|
|
63
|
+
description: string;
|
|
42
64
|
}
|
|
43
|
-
declare const
|
|
44
|
-
declare const CardHeader: ({ children }: CardHeaderProps) => React.JSX.Element;
|
|
45
|
-
declare const Card: ({ shadow, radius, href, onClick, children, className, }: CardProps & StylingProps) => React.JSX.Element;
|
|
65
|
+
declare const FeatureCard: ({ icon, title, description, className, ...cardProps }: FeatureCardProps & React$1.HTMLAttributes<HTMLDivElement>) => React$1.JSX.Element;
|
|
46
66
|
|
|
47
67
|
type CheckboxVariants = "default" | "primary" | "secondary" | "pink" | "accent";
|
|
48
68
|
interface CheckboxProps {
|
|
@@ -52,15 +72,15 @@ interface CheckboxProps {
|
|
|
52
72
|
checked?: boolean;
|
|
53
73
|
value?: string;
|
|
54
74
|
defaultChecked?: boolean;
|
|
55
|
-
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void | null;
|
|
75
|
+
onChange?: (event: React$1.ChangeEvent<HTMLInputElement>) => void | null;
|
|
56
76
|
disabled?: boolean;
|
|
57
77
|
alignCenter?: boolean;
|
|
58
78
|
}
|
|
59
|
-
declare const Checkbox: ({ variant, name, value, label, onChange, disabled, checked, defaultChecked, alignCenter, }: CheckboxProps) => React.JSX.Element;
|
|
79
|
+
declare const Checkbox: ({ variant, name, value, label, onChange, disabled, checked, defaultChecked, alignCenter, }: CheckboxProps) => React$1.JSX.Element;
|
|
60
80
|
|
|
61
81
|
interface MenuItemConfig {
|
|
62
82
|
label: string;
|
|
63
|
-
target?: React.HTMLAttributeAnchorTarget;
|
|
83
|
+
target?: React$1.HTMLAttributeAnchorTarget;
|
|
64
84
|
href: string;
|
|
65
85
|
}
|
|
66
86
|
interface BrandItemConfig extends MenuItemConfig {
|
|
@@ -77,15 +97,15 @@ interface NavigationProps {
|
|
|
77
97
|
children?: ReactNode;
|
|
78
98
|
bannerMsg?: string;
|
|
79
99
|
}
|
|
80
|
-
declare const Navigation: ({ variant, children, config, bannerMsg }: NavigationProps) => React.JSX.Element;
|
|
100
|
+
declare const Navigation: ({ variant, children, config, bannerMsg }: NavigationProps) => React$1.JSX.Element;
|
|
81
101
|
|
|
82
|
-
declare const RadioButton: ({ variant, label, onChange, disabled, checked, alignCenter, }: CheckboxProps) => React.JSX.Element;
|
|
102
|
+
declare const RadioButton: ({ variant, label, onChange, disabled, checked, alignCenter, }: CheckboxProps) => React$1.JSX.Element;
|
|
83
103
|
|
|
84
104
|
type SkeletonTypes = "default" | "card" | "table";
|
|
85
105
|
interface SkeletonProps {
|
|
86
106
|
type: SkeletonTypes;
|
|
87
107
|
}
|
|
88
|
-
declare const Skeleton: ({ type }: SkeletonProps) => React.JSX.Element;
|
|
108
|
+
declare const Skeleton: ({ type }: SkeletonProps) => React$1.JSX.Element;
|
|
89
109
|
|
|
90
110
|
interface SelectProps {
|
|
91
111
|
fields: string[] | {
|
|
@@ -96,18 +116,100 @@ interface SelectProps {
|
|
|
96
116
|
label?: string;
|
|
97
117
|
defaultValue?: string;
|
|
98
118
|
inline?: boolean;
|
|
99
|
-
onChange?: React.ChangeEventHandler<HTMLSelectElement>;
|
|
119
|
+
onChange?: React$1.ChangeEventHandler<HTMLSelectElement>;
|
|
100
120
|
variant?: "outline" | "underline" | "plain";
|
|
101
121
|
}
|
|
102
|
-
declare const Select: ({ fields, id, label, name, defaultValue, inline, onChange, variant, }: SelectProps) => React.JSX.Element;
|
|
122
|
+
declare const Select: ({ fields, id, label, name, defaultValue, inline, onChange, variant, }: SelectProps) => React$1.JSX.Element;
|
|
103
123
|
|
|
104
|
-
interface TextInputProps {
|
|
124
|
+
interface TextInputProps extends StylingProps {
|
|
105
125
|
value: string;
|
|
106
126
|
onChange: (val: string) => void;
|
|
107
127
|
placeholder?: string;
|
|
108
128
|
label?: string;
|
|
109
129
|
}
|
|
110
|
-
declare const TextInput: ({ value, onChange, placeholder }: TextInputProps) => React.JSX.Element;
|
|
130
|
+
declare const TextInput: ({ value, onChange, placeholder, className, style }: TextInputProps) => React$1.JSX.Element;
|
|
131
|
+
|
|
132
|
+
interface LoadingSpinnerProps {
|
|
133
|
+
message?: string;
|
|
134
|
+
size?: "sm" | "md" | "lg";
|
|
135
|
+
}
|
|
136
|
+
declare const LoadingSpinner: ({ message, size }: LoadingSpinnerProps) => React$1.JSX.Element;
|
|
137
|
+
|
|
138
|
+
interface InlineIconProps {
|
|
139
|
+
icon: ReactNode;
|
|
140
|
+
children: ReactNode;
|
|
141
|
+
iconPosition?: "start" | "end";
|
|
142
|
+
}
|
|
143
|
+
declare const InlineIcon: ({ icon, children, iconPosition, className, }: InlineIconProps & StylingProps) => React$1.JSX.Element;
|
|
144
|
+
|
|
145
|
+
interface BadgeProps extends StylingProps {
|
|
146
|
+
children: ReactNode;
|
|
147
|
+
icon?: ReactNode;
|
|
148
|
+
iconPosition?: "start" | "end";
|
|
149
|
+
variant?: "badge" | "pill";
|
|
150
|
+
}
|
|
151
|
+
declare const Badge: ({ children, icon, iconPosition, variant, className, style, }: BadgeProps) => React$1.JSX.Element;
|
|
152
|
+
|
|
153
|
+
type ToggleVariant = "default" | "primary";
|
|
154
|
+
interface ToggleProps extends StylingProps {
|
|
155
|
+
checked: boolean;
|
|
156
|
+
onChange: (checked: boolean) => void;
|
|
157
|
+
disabled?: boolean;
|
|
158
|
+
label?: string;
|
|
159
|
+
variant: ToggleVariant;
|
|
160
|
+
truncateLabel?: boolean;
|
|
161
|
+
}
|
|
162
|
+
declare const Toggle: ({ checked, onChange, disabled, label, variant, truncateLabel, className, style, }: ToggleProps) => React$1.JSX.Element;
|
|
163
|
+
interface ToggleGroupProps extends StylingProps {
|
|
164
|
+
children: ReactNode;
|
|
165
|
+
asGrid: boolean;
|
|
166
|
+
}
|
|
167
|
+
declare const ToggleGroup: ({ children, asGrid, className, style }: ToggleGroupProps) => React$1.JSX.Element;
|
|
168
|
+
|
|
169
|
+
interface FilterChipProps extends StylingProps {
|
|
170
|
+
label: string;
|
|
171
|
+
onRemove?: () => void;
|
|
172
|
+
selected?: boolean;
|
|
173
|
+
disabled?: boolean;
|
|
174
|
+
}
|
|
175
|
+
declare const FilterChip: ({ label, onRemove, selected, className, style, disabled, }: FilterChipProps) => React$1.JSX.Element;
|
|
176
|
+
interface FilterChipBarProps extends StylingProps {
|
|
177
|
+
children: ReactNode;
|
|
178
|
+
label?: string;
|
|
179
|
+
}
|
|
180
|
+
declare const FilterChipBar: ({ label, children, className, style }: FilterChipBarProps) => React$1.JSX.Element;
|
|
181
|
+
|
|
182
|
+
type TooltipPosition = "top" | "bottom" | "left" | "right";
|
|
183
|
+
interface TooltipProps {
|
|
184
|
+
content: string | ReactNode;
|
|
185
|
+
children: ReactNode;
|
|
186
|
+
position?: TooltipPosition;
|
|
187
|
+
}
|
|
188
|
+
declare function Tooltip({ content, children, position }: TooltipProps): React$1.JSX.Element;
|
|
189
|
+
declare const renderTooltip: (children: any, message: any, position?: TooltipPosition) => React$1.JSX.Element;
|
|
190
|
+
|
|
191
|
+
declare const ICONS: {
|
|
192
|
+
alert: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
193
|
+
question: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
194
|
+
info: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
195
|
+
shield: React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
196
|
+
};
|
|
197
|
+
type HelpIconVariant = keyof typeof ICONS;
|
|
198
|
+
interface HelpIconProps {
|
|
199
|
+
message: ReactNode;
|
|
200
|
+
variant: HelpIconVariant;
|
|
201
|
+
className?: string;
|
|
202
|
+
tooltipPosition?: TooltipPosition;
|
|
203
|
+
}
|
|
204
|
+
declare const HelpIcon: ({ message, variant, tooltipPosition, className }: HelpIconProps & StylingProps) => React$1.JSX.Element;
|
|
205
|
+
declare const renderHelpIcon: (message: ReactNode, variant: HelpIconVariant, className: string, tooltipPosition?: TooltipPosition) => React$1.JSX.Element;
|
|
206
|
+
declare const getIconElement: (key: string) => React$1.ForwardRefExoticComponent<Omit<lucide_react.LucideProps, "ref"> & React$1.RefAttributes<SVGSVGElement>>;
|
|
207
|
+
interface HelpIconWrapperProps extends HelpIconProps {
|
|
208
|
+
children: ReactNode;
|
|
209
|
+
}
|
|
210
|
+
declare const HelpIconWrapper: ({ children, variant, message, tooltipPosition, className, }: HelpIconWrapperProps) => React$1.JSX.Element;
|
|
211
|
+
|
|
212
|
+
declare const Footer: () => React$1.JSX.Element;
|
|
111
213
|
|
|
112
|
-
export { Alert, Button, Card, CardBody, CardHeader, Checkbox, Navigation, RadioButton, Select, Skeleton, TextInput,
|
|
113
|
-
export type { CheckboxProps, CheckboxVariants, MenuItemConfig, NavigationConfig };
|
|
214
|
+
export { ActionToolbar, Alert, Badge, Button, ButtonGroup, Card, CardBody, CardHeader, Checkbox, FeatureCard, FilterChip, FilterChipBar, Footer, HelpIcon, HelpIconWrapper, InlineIcon, LoadingSpinner, Navigation, RadioButton, Select, Skeleton, TextInput, Toggle, ToggleGroup, Tooltip, getIconElement, renderHelpIcon, renderTooltip };
|
|
215
|
+
export type { ButtonColorVariants, CheckboxProps, CheckboxVariants, FilterChipBarProps, FilterChipProps, InlineIconProps, MenuItemConfig, NavigationConfig, StylingProps, ThemeVariant, ToggleGroupProps, TooltipPosition };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{Alert
|
|
1
|
+
import"./styles/global.css.js";export{Alert}from"./Alert.js";export{ActionToolbar,Button,ButtonGroup}from"./Button.js";export{Card,CardBody,CardHeader,FeatureCard}from"./Card.js";export{Checkbox}from"./Checkbox.js";export{Navigation}from"./Navigation.js";export{RadioButton}from"./RadioButton.js";export{Skeleton}from"./Skeleton.js";export{Select}from"./Select.js";export{TextInput}from"./TextInput.js";export{LoadingSpinner}from"./LoadingSpinner.js";export{InlineIcon}from"./InlineIcon.js";export{Badge}from"./Badge.js";export{Toggle,ToggleGroup}from"./Toggle.js";export{FilterChip,FilterChipBar}from"./FilterChip.js";export{HelpIcon,HelpIconWrapper,getIconElement,renderHelpIcon}from"./HelpIcon.js";export{Tooltip,renderTooltip}from"./Tooltip.js";export{Footer}from"./Footer.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import{Navigation as e}from"../Navigation.js";import t from"react";import{isNavigationConfig as a}from"./utils.js";function n({theme:n="light",children:r,navigationContent:i,fullWidth:l=!1,bannerMsg:m}){return t.createElement("div",{className:"min-h-full"},t.createElement("header",{className:"bg-white shadow-accent shadow-md"},a(i)?t.createElement(e,{variant:n,config:i,bannerMsg:m}):t.createElement(e,{variant:n,bannerMsg:m},i)),t.createElement("main",null,t.createElement("div",{className:"ui-container "+(l?"full":"")},r)))}export{n as RootLayout};
|
|
2
2
|
//# sourceMappingURL=RootLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootLayout.js","sources":["../../src/layouts/RootLayout.tsx"],"sourcesContent":[null],"names":["RootLayout","theme","children","navigationContent","fullWidth","bannerMsg","React","createElement","className","isNavigationConfig","Navigation","variant","config"],"mappings":"4HAkBgBA,GAAWC,MACvBA,EAAQ,QAAOC,SACfA,EAAQC,kBACRA,EAAiBC,UACjBA,GAAY,EAAKC,UACjBA,IAEA,OACIC,EAAAC,cAAA,MAAA,CAAKC,UAAU,cACXF,
|
|
1
|
+
{"version":3,"file":"RootLayout.js","sources":["../../src/layouts/RootLayout.tsx"],"sourcesContent":[null],"names":["RootLayout","theme","children","navigationContent","fullWidth","bannerMsg","React","createElement","className","isNavigationConfig","Navigation","variant","config"],"mappings":"4HAkBgBA,GAAWC,MACvBA,EAAQ,QAAOC,SACfA,EAAQC,kBACRA,EAAiBC,UACjBA,GAAY,EAAKC,UACjBA,IAEA,OACIC,EAAAC,cAAA,MAAA,CAAKC,UAAU,cACXF,EAAAC,cAAA,SAAA,CAAQC,UAAU,oCACbC,EAAmBN,GAChBG,EAAAC,cAACG,EAAU,CAACC,QAASV,EAAOW,OAAQT,EAAmBE,UAAWA,IAElEC,gBAACI,EAAU,CAACC,QAASV,EAAOI,UAAWA,GAClCF,IAIbG,EAAAC,cAAA,OAAA,KACID,EAAAC,cAAA,MAAA,CAAKC,UAAW,iBAAgBJ,EAAY,OAAS,KAAOF,IAI5E"}
|
package/dist/layouts/index.d.ts
CHANGED
package/dist/layouts/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export{RootLayout}from"./RootLayout.js";
|
|
1
|
+
import"../styles/global.css.js";export{RootLayout}from"./RootLayout.js";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../src/layouts/utils.tsx"],"sourcesContent":[null],"names":["isNavigationConfig","obj","React","isValidElement"],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../src/layouts/utils.tsx"],"sourcesContent":[null],"names":["isNavigationConfig","obj","React","isValidElement"],"mappings":"qBAIO,MAAMA,EAAsBC,GACvB,OAARA,GAA+B,iBAARA,IAAqBC,EAAMC,eAAeF"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import e from"react";const a=({message:a="Loading...",size:t="md"})=>e.createElement("div",{className:"loading-container"},e.createElement("div",{className:`spinner ${{sm:"w-4 h-4",md:"w-8 h-8",lg:"w-12 h-12"}[t]}`,"aria-hidden":"true"}),e.createElement("p",{className:"text-sm text-secondary",role:"status","aria-live":"polite"},a));export{a as LoadingSpinner};
|
|
2
|
+
//# sourceMappingURL=loading-spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loading-spinner.js","sources":["../src/loading-spinner.tsx"],"sourcesContent":[null],"names":["LoadingSpinner","message","size","React","createElement","className","sm","md","lg","role"],"mappings":"qBAOO,MAAMA,EAAiB,EAAGC,UAAU,aAAcC,OAAO,QAQxDC,EAAAC,cAAA,MAAA,CAAKC,UAAU,qBACXF,EAAAC,cAAA,MAAA,CAAKC,UAAW,WARJ,CAChBC,GAAI,UACJC,GAAI,UACJC,GAAI,aAKuCN,KAAO,cAAc,SAC5DC,EAAAC,cAAA,IAAA,CAAGC,UAAU,yBAAyBI,KAAK,SAAQ,YAAW,UACzDR"}
|