@simoncomputing/mui-bueno-v2 0.23.0 → 0.23.2
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/CHANGELOG.md +14 -0
- package/dist/components/TextIcon/TextIcon.d.ts +25 -0
- package/dist/index.cjs.js +93 -93
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +2998 -3003
- package/dist/index.umd.js +98 -98
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
11
11
|
- Minor increment --> singlular/minor changes. Minimal breaking changes.
|
|
12
12
|
- Patch increment --> singlular/minor changes. Zero breaking changes.
|
|
13
13
|
|
|
14
|
+
## [0.23.2] - 2026-01-29
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- `TextIcon`
|
|
19
|
+
- New component to easily align icons with text
|
|
20
|
+
|
|
21
|
+
## [0.23.1] - 2026-01-23
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- `TextField`
|
|
26
|
+
- Fixed trim on blur not applying
|
|
27
|
+
|
|
14
28
|
## [0.23.0] - 2026-01-23
|
|
15
29
|
|
|
16
30
|
### Fixed
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SvgIcon, SvgIconProps } from '@mui/material';
|
|
2
|
+
export type TextIconProps = {
|
|
3
|
+
/**
|
|
4
|
+
* MUI Icon
|
|
5
|
+
*/
|
|
6
|
+
icon: typeof SvgIcon;
|
|
7
|
+
/**
|
|
8
|
+
* Vertical alignment, from the top, of the icon. This will depend on the
|
|
9
|
+
* specific icon you are using since MUI Icons are SVGs are aren't guaranteed
|
|
10
|
+
* to be centered the same way.
|
|
11
|
+
*
|
|
12
|
+
* @default '3px'
|
|
13
|
+
*/
|
|
14
|
+
offset?: string;
|
|
15
|
+
} & Omit<SvgIconProps, 'fontSize'>;
|
|
16
|
+
/**
|
|
17
|
+
* Intended to be used to render an icon next to text.
|
|
18
|
+
*
|
|
19
|
+
* MUI icons are SVGs so they always need slight alignment adjustments
|
|
20
|
+
* when displayed with text. This component is intended to help you align your
|
|
21
|
+
* icon with text. Keep in mind you will likely need to tweak the `offset`
|
|
22
|
+
* prop.
|
|
23
|
+
*/
|
|
24
|
+
export declare const TextIcon: ({ icon: Icon, offset, ...rest }: TextIconProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export default TextIcon;
|