@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.
Files changed (80) hide show
  1. package/README.md +3 -3
  2. package/dist/TopNav/TopNav.d.ts +19 -0
  3. package/dist/declarations.d.ts +6 -6
  4. package/dist/evo-ui.css +1 -1
  5. package/dist/index.cjs.js +1 -1
  6. package/dist/index.es.js +3301 -3197
  7. package/package.json +52 -52
  8. package/src/Alert/Alert.tsx +49 -49
  9. package/src/AutoComplete/AutoComplete.tsx +810 -810
  10. package/src/Badge/Badge.tsx +53 -53
  11. package/src/Breadcrumb/Breadcrumb.tsx +53 -53
  12. package/src/Button/Button.tsx +125 -125
  13. package/src/Card/Card.tsx +257 -257
  14. package/src/Checkbox/Checkbox.tsx +59 -59
  15. package/src/CommandPalette/CommandPalette.tsx +185 -185
  16. package/src/Container/Container.tsx +31 -31
  17. package/src/Divider/Divider.tsx +31 -31
  18. package/src/Form/Form.tsx +185 -185
  19. package/src/Grid/Grid.tsx +66 -66
  20. package/src/ImageCropper/ImageCropper.tsx +911 -911
  21. package/src/Input/Input.tsx +74 -74
  22. package/src/Modal/Modal.tsx +77 -77
  23. package/src/Nav/Nav.tsx +708 -708
  24. package/src/Notification/Notification.tsx +1503 -1503
  25. package/src/Pagination/Pagination.tsx +76 -76
  26. package/src/Radio/Radio.tsx +69 -69
  27. package/src/RichTextArea/RichTextArea.tsx +886 -869
  28. package/src/Select/Select.tsx +515 -515
  29. package/src/Skeleton/Skeleton.tsx +70 -70
  30. package/src/Stack/Stack.tsx +52 -52
  31. package/src/Table/Table.tsx +335 -335
  32. package/src/Tabs/Tabs.tsx +90 -90
  33. package/src/Theme/ThemeProvider.tsx +253 -253
  34. package/src/Theme/ThemeToggle.tsx +79 -79
  35. package/src/Toggle/Toggle.tsx +48 -48
  36. package/src/Tooltip/Tooltip.tsx +38 -38
  37. package/src/TopNav/TopNav.tsx +1163 -994
  38. package/src/TreeSelect/TreeSelect.tsx +825 -825
  39. package/src/css/alert.module.scss +93 -93
  40. package/src/css/autocomplete.module.scss +416 -416
  41. package/src/css/badge.module.scss +82 -82
  42. package/src/css/base/_color.scss +159 -159
  43. package/src/css/base/_theme.scss +237 -237
  44. package/src/css/base/_variables.scss +161 -161
  45. package/src/css/breadcrumb.module.scss +50 -50
  46. package/src/css/button.module.scss +385 -385
  47. package/src/css/card.module.scss +217 -217
  48. package/src/css/checkbox.module.scss +123 -120
  49. package/src/css/commandpalette.module.scss +211 -211
  50. package/src/css/container.module.scss +18 -18
  51. package/src/css/divider.module.scss +41 -41
  52. package/src/css/form.module.scss +245 -245
  53. package/src/css/imagecropper.module.scss +397 -397
  54. package/src/css/input.module.scss +89 -89
  55. package/src/css/modal.module.scss +105 -105
  56. package/src/css/nav.module.scss +494 -494
  57. package/src/css/notification.module.scss +691 -691
  58. package/src/css/pagination.module.scss +63 -63
  59. package/src/css/radio.module.scss +89 -89
  60. package/src/css/richtextarea.module.scss +307 -307
  61. package/src/css/select.module.scss +525 -525
  62. package/src/css/skeleton.module.scss +30 -30
  63. package/src/css/table.module.scss +386 -386
  64. package/src/css/tabs.module.scss +63 -63
  65. package/src/css/theme-toggle.module.scss +83 -83
  66. package/src/css/toggle.module.scss +54 -54
  67. package/src/css/tooltip.module.scss +97 -97
  68. package/src/css/topnav.module.scss +568 -396
  69. package/src/css/treeselect.module.scss +558 -558
  70. package/src/css/utilities/_borders.scss +111 -111
  71. package/src/css/utilities/_colors.scss +66 -66
  72. package/src/css/utilities/_effects.scss +216 -216
  73. package/src/css/utilities/_layout.scss +181 -181
  74. package/src/css/utilities/_position.scss +75 -75
  75. package/src/css/utilities/_sizing.scss +138 -138
  76. package/src/css/utilities/_spacing.scss +99 -99
  77. package/src/css/utilities/_typography.scss +121 -121
  78. package/src/css/utilities/index.scss +24 -24
  79. package/src/declarations.d.ts +6 -6
  80. 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-ui-document-3fb80.web.app
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-ui-document-3fb80.web.app).
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-ui-document-3fb80.web.app**.
66
+ **https://docs.elevora.com.my**.
67
67
 
68
68
  ## License
69
69
 
@@ -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
  };
@@ -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' {}