@justin_evo/evo-ui 1.1.0 β 1.2.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/README.md +3 -3
- package/dist/TopNav/TopNav.d.ts +19 -0
- package/dist/declarations.d.ts +6 -6
- package/dist/evo-ui.css +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +3301 -3197
- package/package.json +52 -52
- package/src/Alert/Alert.tsx +49 -49
- package/src/AutoComplete/AutoComplete.tsx +810 -810
- package/src/Badge/Badge.tsx +53 -53
- package/src/Breadcrumb/Breadcrumb.tsx +53 -53
- package/src/Button/Button.tsx +125 -125
- package/src/Card/Card.tsx +257 -257
- package/src/Checkbox/Checkbox.tsx +59 -59
- package/src/CommandPalette/CommandPalette.tsx +185 -185
- package/src/Container/Container.tsx +31 -31
- package/src/Divider/Divider.tsx +31 -31
- package/src/Form/Form.tsx +185 -185
- package/src/Grid/Grid.tsx +66 -66
- package/src/ImageCropper/ImageCropper.tsx +911 -911
- package/src/Input/Input.tsx +74 -74
- package/src/Modal/Modal.tsx +77 -77
- package/src/Nav/Nav.tsx +708 -708
- package/src/Notification/Notification.tsx +1503 -1503
- package/src/Pagination/Pagination.tsx +76 -76
- package/src/Radio/Radio.tsx +69 -69
- package/src/RichTextArea/RichTextArea.tsx +886 -869
- package/src/Select/Select.tsx +515 -515
- package/src/Skeleton/Skeleton.tsx +70 -70
- package/src/Stack/Stack.tsx +52 -52
- package/src/Table/Table.tsx +335 -335
- package/src/Tabs/Tabs.tsx +90 -90
- package/src/Theme/ThemeProvider.tsx +253 -253
- package/src/Theme/ThemeToggle.tsx +79 -79
- package/src/Toggle/Toggle.tsx +48 -48
- package/src/Tooltip/Tooltip.tsx +38 -38
- package/src/TopNav/TopNav.tsx +1163 -994
- package/src/TreeSelect/TreeSelect.tsx +825 -825
- package/src/css/alert.module.scss +93 -93
- package/src/css/autocomplete.module.scss +416 -416
- package/src/css/badge.module.scss +82 -82
- package/src/css/base/_color.scss +159 -159
- package/src/css/base/_theme.scss +237 -237
- package/src/css/base/_variables.scss +161 -161
- package/src/css/breadcrumb.module.scss +50 -50
- package/src/css/button.module.scss +385 -385
- package/src/css/card.module.scss +217 -217
- package/src/css/checkbox.module.scss +123 -120
- package/src/css/commandpalette.module.scss +211 -211
- package/src/css/container.module.scss +18 -18
- package/src/css/divider.module.scss +41 -41
- package/src/css/form.module.scss +245 -245
- package/src/css/imagecropper.module.scss +397 -397
- package/src/css/input.module.scss +89 -89
- package/src/css/modal.module.scss +105 -105
- package/src/css/nav.module.scss +494 -494
- package/src/css/notification.module.scss +691 -691
- package/src/css/pagination.module.scss +63 -63
- package/src/css/radio.module.scss +89 -89
- package/src/css/richtextarea.module.scss +307 -307
- package/src/css/select.module.scss +525 -525
- package/src/css/skeleton.module.scss +30 -30
- package/src/css/table.module.scss +386 -386
- package/src/css/tabs.module.scss +63 -63
- package/src/css/theme-toggle.module.scss +83 -83
- package/src/css/toggle.module.scss +54 -54
- package/src/css/tooltip.module.scss +97 -97
- package/src/css/topnav.module.scss +568 -396
- package/src/css/treeselect.module.scss +558 -558
- package/src/css/utilities/_borders.scss +111 -111
- package/src/css/utilities/_colors.scss +66 -66
- package/src/css/utilities/_effects.scss +216 -216
- package/src/css/utilities/_layout.scss +181 -181
- package/src/css/utilities/_position.scss +75 -75
- package/src/css/utilities/_sizing.scss +138 -138
- package/src/css/utilities/_spacing.scss +99 -99
- package/src/css/utilities/_typography.scss +121 -121
- package/src/css/utilities/index.scss +24 -24
- package/src/declarations.d.ts +6 -6
- package/src/index.ts +60 -60
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Evo UI ships 30+ accessible, themeable React components β with built-in light
|
|
|
6
6
|
dark mode, full TypeScript types, `forwardRef` + native attribute pass-through,
|
|
7
7
|
and **zero runtime dependencies**.
|
|
8
8
|
|
|
9
|
-
- π **Documentation:** https://elevora
|
|
9
|
+
- π **Documentation:** https://docs.elevora.com.my
|
|
10
10
|
- π» **GitHub:** https://github.com/jinchuen/evo
|
|
11
11
|
- π¦ **npm:** https://www.npmjs.com/package/@justin_evo/evo-ui
|
|
12
12
|
|
|
@@ -47,7 +47,7 @@ export default function App() {
|
|
|
47
47
|
## Components
|
|
48
48
|
|
|
49
49
|
Full props, variants, and live examples for every component live in the
|
|
50
|
-
[documentation](https://elevora
|
|
50
|
+
[documentation](https://docs.elevora.com.my).
|
|
51
51
|
|
|
52
52
|
| Category | Components |
|
|
53
53
|
| ---------------------- | ---------------------------------------------------------------------------------------------------------- |
|
|
@@ -63,7 +63,7 @@ Full props, variants, and live examples for every component live in the
|
|
|
63
63
|
## Documentation
|
|
64
64
|
|
|
65
65
|
Browse the full component catalogue, prop tables, and copy-paste examples at
|
|
66
|
-
**https://elevora
|
|
66
|
+
**https://docs.elevora.com.my**.
|
|
67
67
|
|
|
68
68
|
## License
|
|
69
69
|
|
package/dist/TopNav/TopNav.d.ts
CHANGED
|
@@ -6,6 +6,14 @@ export interface EvoTopNavProps extends Omit<React.HTMLAttributes<HTMLElement>,
|
|
|
6
6
|
onOpenChange?: (open: boolean) => void;
|
|
7
7
|
/** Width in px below which Menu collapses into the drawer. @default 768 */
|
|
8
8
|
collapseBelow?: number;
|
|
9
|
+
/** Staggered mount animation for the bar's contents. @default 'none' */
|
|
10
|
+
entrance?: 'none' | 'rise' | 'fade';
|
|
11
|
+
/** Pin the bar with position: sticky; top: 0. @default false */
|
|
12
|
+
sticky?: boolean;
|
|
13
|
+
/** On-scroll treatment of a sticky bar. @default 'none' */
|
|
14
|
+
scrollBehavior?: 'none' | 'elevate' | 'shrink' | 'hide';
|
|
15
|
+
/** Render a thin scroll-progress accent line along the bottom edge. @default false */
|
|
16
|
+
showProgress?: boolean;
|
|
9
17
|
className?: string;
|
|
10
18
|
}
|
|
11
19
|
export interface EvoTopNavBrandProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
@@ -35,6 +43,15 @@ export interface EvoTopNavToggleProps extends Omit<React.ButtonHTMLAttributes<HT
|
|
|
35
43
|
icon?: React.ReactNode;
|
|
36
44
|
className?: string;
|
|
37
45
|
}
|
|
46
|
+
export interface EvoTopNavSearchProps extends Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'children'> {
|
|
47
|
+
/** Placeholder text shown inside the trigger. @default 'Searchβ¦' */
|
|
48
|
+
placeholder?: string;
|
|
49
|
+
/** Opt-in global hotkey, e.g. 'mod+k' (mod = β on macOS, Ctrl elsewhere). Default: none. */
|
|
50
|
+
shortcut?: string;
|
|
51
|
+
/** Override the kbd hint. @default platform-aware βK / Ctrl K */
|
|
52
|
+
shortcutHint?: React.ReactNode;
|
|
53
|
+
className?: string;
|
|
54
|
+
}
|
|
38
55
|
export interface EvoTopNavDropdownProps {
|
|
39
56
|
label: React.ReactNode;
|
|
40
57
|
icon?: React.ReactNode;
|
|
@@ -62,6 +79,7 @@ declare const EvoTopNavMenu: React.ForwardRefExoticComponent<EvoTopNavMenuProps
|
|
|
62
79
|
declare const EvoTopNavItem: React.ForwardRefExoticComponent<EvoTopNavItemProps & React.RefAttributes<HTMLElement>>;
|
|
63
80
|
declare const EvoTopNavActions: React.ForwardRefExoticComponent<EvoTopNavActionsProps & React.RefAttributes<HTMLDivElement>>;
|
|
64
81
|
declare const EvoTopNavToggle: React.ForwardRefExoticComponent<EvoTopNavToggleProps & React.RefAttributes<HTMLButtonElement>>;
|
|
82
|
+
declare const EvoTopNavSearch: React.ForwardRefExoticComponent<EvoTopNavSearchProps & React.RefAttributes<HTMLButtonElement>>;
|
|
65
83
|
declare const EvoTopNavDropdown: React.FC<EvoTopNavDropdownProps>;
|
|
66
84
|
declare const EvoTopNavDropdownItem: React.ForwardRefExoticComponent<EvoTopNavDropdownItemProps & React.RefAttributes<HTMLElement>>;
|
|
67
85
|
export declare const EvoTopNav: React.ForwardRefExoticComponent<EvoTopNavProps & React.RefAttributes<HTMLElement>> & {
|
|
@@ -70,6 +88,7 @@ export declare const EvoTopNav: React.ForwardRefExoticComponent<EvoTopNavProps &
|
|
|
70
88
|
Item: typeof EvoTopNavItem;
|
|
71
89
|
Actions: typeof EvoTopNavActions;
|
|
72
90
|
Toggle: typeof EvoTopNavToggle;
|
|
91
|
+
Search: typeof EvoTopNavSearch;
|
|
73
92
|
Dropdown: typeof EvoTopNavDropdown;
|
|
74
93
|
DropdownItem: typeof EvoTopNavDropdownItem;
|
|
75
94
|
};
|
package/dist/declarations.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
declare module '*.module.scss' {
|
|
2
|
-
const classes: Record<string, string>;
|
|
3
|
-
export default classes;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
declare module '*.scss' {}
|
|
1
|
+
declare module '*.module.scss' {
|
|
2
|
+
const classes: Record<string, string>;
|
|
3
|
+
export default classes;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
declare module '*.scss' {}
|