bianic-ui 2.1.0-beta.4 → 2.2.0-beta.0

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.
@@ -6,9 +6,12 @@ export interface AlertProps extends ComponentPropsWithoutRef<'div'> {
6
6
  visible?: boolean;
7
7
  setVisible?: (arg0: boolean) => void;
8
8
  visibleIcon?: boolean;
9
+ visibleMiniIcon?: boolean;
10
+ customIcon?: React.ReactNode;
11
+ customMiniIcon?: React.ReactNode;
9
12
  visibleClose?: boolean;
10
13
  }
11
- declare function Alert({ title, caption, variant, visible, setVisible, visibleIcon, visibleClose, children, }: AlertProps): false | React.JSX.Element;
14
+ declare function Alert({ title, caption, variant, visible, setVisible, visibleIcon, visibleClose, customIcon, customMiniIcon, children, }: AlertProps): false | React.JSX.Element;
12
15
  declare namespace Alert {
13
16
  var defaultProps: {
14
17
  title: string;
@@ -7,6 +7,7 @@ interface BadgeProps extends ComponentPropsWithoutRef<'span'> {
7
7
  declare function Badge({ type, children, color, isInverted, className, }: BadgeProps): React.JSX.Element;
8
8
  declare namespace Badge {
9
9
  var defaultProps: {
10
+ type: string;
10
11
  isInverted: boolean;
11
12
  color: undefined;
12
13
  };
@@ -36,6 +36,12 @@ export declare const iconOnlySizeConfig: {
36
36
  sm: string;
37
37
  tn: string;
38
38
  };
39
+ export declare const doubleIconSizeConfig: {
40
+ lg: string;
41
+ md: string;
42
+ sm: string;
43
+ tn: string;
44
+ };
39
45
  export declare const variantConfig: {
40
46
  default: string;
41
47
  primary: string;
@@ -9,6 +9,7 @@ export interface DropdownContainerProps extends ComponentPropsWithRef<'div'> {
9
9
  size?: 'sm' | 'md';
10
10
  zIndex?: number;
11
11
  anchorRef?: React.RefObject<HTMLElement>;
12
+ matchAnchorWidth?: undefined | 'min' | 'exact';
12
13
  onClickItem?: (event: React.MouseEvent<HTMLDivElement>, val: string | number | object) => void;
13
14
  }
14
15
  declare const DropdownContainer: {
@@ -8,6 +8,7 @@ interface MenuContainerProps extends ComponentPropsWithRef<'div'> {
8
8
  zIndex?: number;
9
9
  onClickItem?: () => void;
10
10
  anchorRef?: React.RefObject<HTMLElement>;
11
+ matchAnchorWidth?: undefined | 'min' | 'exact';
11
12
  }
12
13
  import React, { ComponentPropsWithRef } from 'react';
13
14
  declare const MenuContainer: {
@@ -12,3 +12,4 @@ declare const meta: {
12
12
  export default meta;
13
13
  type Story = StoryObj<typeof meta>;
14
14
  export declare const Demo: Story;
15
+ export declare const MiniIconDemo: Story;
@@ -28,5 +28,6 @@ export declare const WarningOutlined: Story;
28
28
  export declare const DemoWithIconLeft: Story;
29
29
  export declare const DemoWithIconRight: Story;
30
30
  export declare const DemoWithIconBoth: Story;
31
+ export declare const DemoWithIconOnlyBoth: Story;
31
32
  export declare const DemoWithIconOnly: Story;
32
33
  export declare const DemoWithMovingIcon: Story;
package/dist/index.d.ts CHANGED
@@ -13,9 +13,12 @@ interface AlertProps extends ComponentPropsWithoutRef<'div'> {
13
13
  visible?: boolean;
14
14
  setVisible?: (arg0: boolean) => void;
15
15
  visibleIcon?: boolean;
16
+ visibleMiniIcon?: boolean;
17
+ customIcon?: React$1.ReactNode;
18
+ customMiniIcon?: React$1.ReactNode;
16
19
  visibleClose?: boolean;
17
20
  }
18
- declare function Alert({ title, caption, variant, visible, setVisible, visibleIcon, visibleClose, children, }: AlertProps): false | React$1.JSX.Element;
21
+ declare function Alert({ title, caption, variant, visible, setVisible, visibleIcon, visibleClose, customIcon, customMiniIcon, children, }: AlertProps): false | React$1.JSX.Element;
19
22
  declare namespace Alert {
20
23
  var defaultProps: {
21
24
  title: string;
@@ -48,6 +51,7 @@ interface BadgeProps extends ComponentPropsWithoutRef<'span'> {
48
51
  declare function Badge({ type, children, color, isInverted, className, }: BadgeProps): React$1.JSX.Element;
49
52
  declare namespace Badge {
50
53
  var defaultProps: {
54
+ type: string;
51
55
  isInverted: boolean;
52
56
  color: undefined;
53
57
  };
@@ -162,6 +166,7 @@ interface MenuContainerProps extends ComponentPropsWithRef<'div'> {
162
166
  zIndex?: number;
163
167
  onClickItem?: () => void;
164
168
  anchorRef?: React$1.RefObject<HTMLElement>;
169
+ matchAnchorWidth?: undefined | 'min' | 'exact';
165
170
  }
166
171
 
167
172
  declare const MenuContainer: {
@@ -292,6 +297,7 @@ interface DropdownContainerProps extends ComponentPropsWithRef<'div'> {
292
297
  size?: 'sm' | 'md';
293
298
  zIndex?: number;
294
299
  anchorRef?: React$1.RefObject<HTMLElement>;
300
+ matchAnchorWidth?: undefined | 'min' | 'exact';
295
301
  onClickItem?: (event: React$1.MouseEvent<HTMLDivElement>, val: string | number | object) => void;
296
302
  }
297
303
  declare const DropdownContainer: {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "@biaenergi:registry": "https://gitlab.com/api/v4/projects/50905269/packages/npm/"
5
5
  },
6
- "version": "2.1.0-beta.4",
6
+ "version": "2.2.0-beta.0",
7
7
  "description": "Design Language System develop by BIAENERGI",
8
8
  "scripts": {
9
9
  "rollup": "rollup -c",