@bug-on/md3-react 2.0.1 → 2.0.3
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/hooks/index.d.ts +1 -0
- package/dist/hooks/useClickOutside.d.ts +8 -0
- package/dist/index.css +23 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +11316 -9210
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11262 -9187
- package/dist/index.mjs.map +1 -1
- package/dist/ui/app-bar/app-bar-column.d.ts +28 -0
- package/dist/ui/app-bar/app-bar-item-button.d.ts +16 -0
- package/dist/ui/app-bar/app-bar-overflow-indicator.d.ts +18 -0
- package/dist/ui/app-bar/app-bar-row.d.ts +36 -0
- package/dist/ui/app-bar/app-bar.tokens.d.ts +184 -0
- package/dist/ui/app-bar/app-bar.types.d.ts +392 -0
- package/dist/ui/app-bar/bottom-app-bar.d.ts +31 -0
- package/dist/ui/app-bar/docked-toolbar.d.ts +25 -0
- package/dist/ui/app-bar/hooks/use-app-bar-scroll.d.ts +42 -0
- package/dist/ui/app-bar/hooks/use-flexible-app-bar.d.ts +37 -0
- package/dist/ui/app-bar/index.d.ts +39 -0
- package/dist/ui/app-bar/large-flexible-app-bar.d.ts +26 -0
- package/dist/ui/app-bar/medium-flexible-app-bar.d.ts +28 -0
- package/dist/ui/app-bar/search-app-bar.d.ts +43 -0
- package/dist/ui/app-bar/search-view.d.ts +54 -0
- package/dist/ui/app-bar/small-app-bar.d.ts +37 -0
- package/dist/ui/search/animated-placeholder.d.ts +54 -0
- package/dist/ui/search/hooks/use-search-keyboard.d.ts +32 -0
- package/dist/ui/search/hooks/use-search-view-focus.d.ts +6 -0
- package/dist/ui/search/index.d.ts +27 -0
- package/dist/ui/search/search-bar.d.ts +32 -0
- package/dist/ui/search/search-context.d.ts +24 -0
- package/dist/ui/search/search-view-docked.d.ts +25 -0
- package/dist/ui/search/search-view-fullscreen.d.ts +36 -0
- package/dist/ui/search/search.d.ts +50 -0
- package/dist/ui/search/search.tokens.d.ts +112 -0
- package/dist/ui/search/search.types.d.ts +131 -0
- package/dist/ui/search/trailing-action.d.ts +9 -0
- package/dist/ui/snackbar/snackbar.d.ts +1 -0
- package/dist/ui/theme-provider/index.d.ts +31 -1
- package/dist/ui/toc.d.ts +7 -1
- package/package.json +2 -1
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hook to detect clicks outside of a specified element.
|
|
3
|
+
*
|
|
4
|
+
* @param handler - Callback function to execute when a click outside occurs.
|
|
5
|
+
* @param enabled - Whether the listener is active.
|
|
6
|
+
* @returns A RefObject to be attached to the target element.
|
|
7
|
+
*/
|
|
8
|
+
export declare function useClickOutside<T extends HTMLElement>(handler: () => void, enabled?: boolean): import("react").RefObject<T | null>;
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* @bug-on/md3-react - Base Reset Styles */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Hide default browser UI elements that conflict with MD3 custom UI.
|
|
5
|
+
* - Hide search clear/decoration buttons in WebKit/Blink (Chrome, Safari, Edge).
|
|
6
|
+
* - Hide IE/Edge specific clear and reveal (password) buttons.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/* Hide default search clear button and related decorations */
|
|
10
|
+
input[type="search"]::-webkit-search-decoration,
|
|
11
|
+
input[type="search"]::-webkit-search-cancel-button,
|
|
12
|
+
input[type="search"]::-webkit-search-results-button,
|
|
13
|
+
input[type="search"]::-webkit-search-results-decoration {
|
|
14
|
+
-webkit-appearance: none;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* Hide IE/Edge clear and reveal (password toggle) buttons */
|
|
18
|
+
input::-ms-clear,
|
|
19
|
+
input::-ms-reveal {
|
|
20
|
+
display: none;
|
|
21
|
+
width: 0;
|
|
22
|
+
height: 0;
|
|
23
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export type { MD3ColorScheme, ThemeMode } from "./lib/theme-utils";
|
|
|
6
6
|
export { applyTheme, generateM3Theme } from "./lib/theme-utils";
|
|
7
7
|
export { cn } from "./lib/utils";
|
|
8
8
|
export type { MD3ColorStyle, MD3Shape, MD3Size, PolymorphicProps, PolymorphicRef, } from "./types/md3";
|
|
9
|
+
export type { AppBarColors, AppBarColumnProps, AppBarItem, AppBarItemType, AppBarMenuState, AppBarOverflowIndicatorProps, AppBarRowProps, AppBarScrollBehavior, BaseAppBarProps, BottomAppBarProps, DockedToolbarProps, FlexibleAppBarProps, SearchAppBarProps, SearchBarVariant, SearchViewProps, SmallAppBarProps, TitleAlignment, UseAppBarScrollReturn, } from "./ui/app-bar";
|
|
10
|
+
export { APP_BAR_BOTTOM_SPRING, APP_BAR_COLOR_TRANSITION, APP_BAR_COLORS, APP_BAR_ENTER_ALWAYS_SPRING, APP_BAR_TITLE_FADE, AppBarColumn, AppBarOverflowIndicator, AppBarRow, AppBarTokens, appBarTypography, BottomAppBar, DockedToolbar, LargeFlexibleAppBar, MediumFlexibleAppBar, SEARCH_VIEW_SPRING, SearchAppBar, SearchView, SearchViewContainer, SmallAppBar, useAppBarScroll, } from "./ui/app-bar";
|
|
9
11
|
export type { BadgedBoxProps, BadgeProps } from "./ui/badge";
|
|
10
12
|
export { Badge, BadgedBox } from "./ui/badge";
|
|
11
13
|
export type { BaseButtonProps, ButtonProps } from "./ui/button";
|
|
@@ -47,6 +49,8 @@ export type { RippleOrigin, RippleProps, UseRippleStateOptions, } from "./ui/rip
|
|
|
47
49
|
export { Ripple, useRipple, useRippleState } from "./ui/ripple";
|
|
48
50
|
export type { ScrollAreaOrientation, ScrollAreaProps, ScrollAreaType, } from "./ui/scroll-area";
|
|
49
51
|
export { ScrollArea, ScrollAreaScrollbar, } from "./ui/scroll-area";
|
|
52
|
+
export type { SearchProps, SearchStyleType, SearchVariant, } from "./ui/search";
|
|
53
|
+
export { SEARCH_BAR_EXPAND_SPRING, SEARCH_COLORS, SEARCH_DOCKED_REVEAL_SPRING, SEARCH_FULLSCREEN_SPRING, SEARCH_TYPOGRAPHY, Search, SearchBar, SearchTokens, SearchViewDocked, SearchViewFullScreen, useSearchKeyboard, } from "./ui/search";
|
|
50
54
|
export type { RangeSliderProps, SliderOrientation, SliderProps, SliderTrackSize, SliderVariant, } from "./ui/slider";
|
|
51
55
|
export { RangeSlider, Slider, SliderColors, SliderTokens } from "./ui/slider";
|
|
52
56
|
export type { SnackbarData, SnackbarDuration, SnackbarHostProps, SnackbarProps, SnackbarResult, SnackbarVisuals, UseSnackbarStateReturn, } from "./ui/snackbar";
|