@allxsmith/bestax-bulma 5.3.0 → 5.4.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/dist/bestax.css +1 -1
- package/dist/bestax.css.map +1 -1
- package/dist/extras.css +1 -1
- package/dist/extras.css.map +1 -1
- package/dist/index.cjs.js +210 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +208 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/types/components/Avatar.d.ts +25 -0
- package/dist/types/components/Avatars.d.ts +17 -0
- package/dist/types/components/Badge.d.ts +22 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/versions/bestax-no-dark-mode.css +1 -1
- package/dist/versions/bestax-no-dark-mode.css.map +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css +1 -1
- package/dist/versions/bestax-no-helpers-prefixed.css.map +1 -1
- package/dist/versions/bestax-no-helpers.css +1 -1
- package/dist/versions/bestax-no-helpers.css.map +1 -1
- package/dist/versions/bestax-prefixed.css +1 -1
- package/dist/versions/bestax-prefixed.css.map +1 -1
- package/package.json +1 -1
- package/src/scss/CLAUDE.md +6 -1
- package/src/scss/components/_avatar.scss +121 -0
- package/src/scss/components/_avatars.scss +75 -0
- package/src/scss/components/_badge.scss +194 -0
- package/src/scss/components/_index.scss +3 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps } from '../helpers/useBulmaClasses';
|
|
3
|
+
declare const avatarColors: readonly ["primary", "link", "info", "success", "warning", "danger", "black", "dark", "light", "white"];
|
|
4
|
+
export type AvatarColor = (typeof avatarColors)[number];
|
|
5
|
+
declare const avatarSizes: readonly ["16x16", "24x24", "32x32", "48x48", "64x64", "96x96", "128x128"];
|
|
6
|
+
export type AvatarSize = (typeof avatarSizes)[number];
|
|
7
|
+
export type AvatarShape = 'circle' | 'rounded' | 'square';
|
|
8
|
+
export interface AvatarProps extends Omit<React.HTMLAttributes<HTMLElement>, 'color'>, Omit<BulmaClassesProps, 'color'> {
|
|
9
|
+
className?: string;
|
|
10
|
+
src?: string;
|
|
11
|
+
alt?: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
initials?: string;
|
|
14
|
+
icon?: React.ReactNode;
|
|
15
|
+
size?: AvatarSize | number;
|
|
16
|
+
shape?: AvatarShape;
|
|
17
|
+
color?: AvatarColor;
|
|
18
|
+
as?: React.ElementType;
|
|
19
|
+
href?: string;
|
|
20
|
+
target?: string;
|
|
21
|
+
rel?: string;
|
|
22
|
+
imageProps?: React.ImgHTMLAttributes<HTMLImageElement>;
|
|
23
|
+
}
|
|
24
|
+
export declare const Avatar: React.FC<AvatarProps>;
|
|
25
|
+
export default Avatar;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps } from '../helpers/useBulmaClasses';
|
|
3
|
+
import { Avatar, AvatarProps } from './Avatar';
|
|
4
|
+
export type AvatarsSpacing = 'sm' | 'md' | 'lg';
|
|
5
|
+
export interface AvatarsProps extends Omit<React.HTMLAttributes<HTMLDivElement>, 'color'>, Omit<BulmaClassesProps, 'backgroundColor' | 'color'> {
|
|
6
|
+
className?: string;
|
|
7
|
+
max?: number;
|
|
8
|
+
size?: AvatarProps['size'];
|
|
9
|
+
shape?: AvatarProps['shape'];
|
|
10
|
+
spacing?: AvatarsSpacing | number;
|
|
11
|
+
spaced?: boolean;
|
|
12
|
+
children?: React.ReactNode;
|
|
13
|
+
}
|
|
14
|
+
export declare const Avatars: React.FC<AvatarsProps> & {
|
|
15
|
+
Avatar: typeof Avatar;
|
|
16
|
+
};
|
|
17
|
+
export default Avatars;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { BulmaClassesProps } from '../helpers/useBulmaClasses';
|
|
3
|
+
declare const badgeColors: readonly ["primary", "link", "info", "success", "warning", "danger", "black", "dark", "light", "white"];
|
|
4
|
+
export type BadgeColor = (typeof badgeColors)[number];
|
|
5
|
+
export type BadgePosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
6
|
+
export type BadgeOverlap = 'circle' | 'square';
|
|
7
|
+
export interface BadgeProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'color' | 'content'>, Omit<BulmaClassesProps, 'color'> {
|
|
8
|
+
className?: string;
|
|
9
|
+
badgeClassName?: string;
|
|
10
|
+
content?: React.ReactNode;
|
|
11
|
+
max?: number;
|
|
12
|
+
dot?: boolean;
|
|
13
|
+
showZero?: boolean;
|
|
14
|
+
color?: BadgeColor;
|
|
15
|
+
position?: BadgePosition;
|
|
16
|
+
overlap?: BadgeOverlap;
|
|
17
|
+
pulse?: boolean;
|
|
18
|
+
invisible?: boolean;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare const Badge: React.FC<BadgeProps>;
|
|
22
|
+
export default Badge;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export * from './columns/Column';
|
|
2
2
|
export * from './columns/Columns';
|
|
3
|
+
export * from './components/Avatar';
|
|
4
|
+
export * from './components/Avatars';
|
|
5
|
+
export * from './components/Badge';
|
|
3
6
|
export * from './components/Breadcrumb';
|
|
4
7
|
export * from './components/Card';
|
|
5
8
|
export * from './components/Dropdown';
|