bianic-ui 2.2.0-beta.1 → 2.2.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.
@@ -1,8 +1,16 @@
1
1
  import React from 'react';
2
- import { PopoverProps } from './PropInterface';
3
- declare function Popover({ className, children, content, direction, maxWidth, title, style, zIndex, }: PopoverProps): React.JSX.Element;
2
+ interface PopoverProps {
3
+ children: React.ReactNode;
4
+ content: string;
5
+ delay?: number;
6
+ direction?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
7
+ title?: string;
8
+ maxWidth?: string;
9
+ }
10
+ declare function Popover({ children, content, delay, direction, title, maxWidth, }: PopoverProps): React.JSX.Element;
4
11
  declare namespace Popover {
5
12
  var defaultProps: {
13
+ delay: number;
6
14
  direction: string;
7
15
  title: string;
8
16
  };
@@ -1,20 +1,16 @@
1
- import { ComponentPropsWithoutRef, ComponentPropsWithRef, ReactNode, RefObject } from 'react';
1
+ import { ComponentPropsWithoutRef, ReactNode, RefObject } from 'react';
2
2
  interface TooltipProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'> {
3
3
  children: ReactNode;
4
4
  content: ReactNode | string;
5
5
  delay?: number;
6
6
  maxWidth?: string;
7
- zIndex?: number;
8
7
  direction?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
9
8
  }
10
9
  interface TooltipItemProps {
11
10
  anchorRef: RefObject<HTMLDivElement>;
12
- className?: string;
11
+ direction?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
13
12
  content: ReactNode | string;
14
13
  tooltipContainerRef: React.RefObject<HTMLDivElement>;
15
14
  tooltipContainerStyle: React.CSSProperties;
16
- style?: ComponentPropsWithRef<'div'>['style'];
17
- zIndex: number;
18
- direction?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
19
15
  }
20
16
  export { TooltipProps, TooltipItemProps };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import React$1, { ComponentPropsWithoutRef, ComponentPropsWithRef, ChangeEvent, ReactNode, MouseEvent, HTMLAttributes } from 'react';
3
2
 
4
3
  interface AccordionsProps extends ComponentPropsWithoutRef<'div'> {
@@ -606,20 +605,17 @@ declare namespace Pills {
606
605
  }
607
606
 
608
607
  interface PopoverProps {
609
- className?: string;
610
- children: React.ReactNode;
608
+ children: React$1.ReactNode;
611
609
  content: string;
612
610
  delay?: number;
613
- maxWidth?: string;
614
- title?: string;
615
- style?: React.CSSProperties;
616
- zIndex?: number;
617
611
  direction?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
612
+ title?: string;
613
+ maxWidth?: string;
618
614
  }
619
-
620
- declare function Popover({ className, children, content, direction, maxWidth, title, style, zIndex, }: PopoverProps): React$1.JSX.Element;
615
+ declare function Popover({ children, content, delay, direction, title, maxWidth, }: PopoverProps): React$1.JSX.Element;
621
616
  declare namespace Popover {
622
617
  var defaultProps: {
618
+ delay: number;
623
619
  direction: string;
624
620
  title: string;
625
621
  };
@@ -743,7 +739,6 @@ interface TooltipProps extends Omit<ComponentPropsWithoutRef<'div'>, 'content'>
743
739
  content: ReactNode | string;
744
740
  delay?: number;
745
741
  maxWidth?: string;
746
- zIndex?: number;
747
742
  direction?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
748
743
  }
749
744
 
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.2.0-beta.1",
6
+ "version": "2.2.0",
7
7
  "description": "Design Language System develop by BIAENERGI",
8
8
  "scripts": {
9
9
  "rollup": "rollup -c",
@@ -12,7 +12,45 @@
12
12
  "publish-storybook": "npx chromatic --project-token=chpt_2ced61576f9e1e6",
13
13
  "lint": "npx eslint src/components",
14
14
  "lint:fix": "npx eslint src/components --fix",
15
- "prepare": "husky install"
15
+ "prepare": "husky install",
16
+ "release": "standard-version"
17
+ },
18
+ "standard-version": {
19
+ "types": [
20
+ {
21
+ "type": "feat",
22
+ "section": "✨ Features",
23
+ "hidden": false
24
+ },
25
+ {
26
+ "type": "fix",
27
+ "section": "🐛 Bug Fixes",
28
+ "hidden": false
29
+ },
30
+ {
31
+ "type": "perf",
32
+ "section": "🚀 Performance Improvements",
33
+ "hidden": false
34
+ },
35
+ {
36
+ "type": "style",
37
+ "section": "🎨 Styling Changes",
38
+ "hidden": false
39
+ },
40
+ {
41
+ "type": "docs",
42
+ "section": "📖 Documentation",
43
+ "hidden": false
44
+ },
45
+ {
46
+ "type": "chore",
47
+ "hidden": true
48
+ },
49
+ {
50
+ "type": "refactor",
51
+ "hidden": true
52
+ }
53
+ ]
16
54
  },
17
55
  "author": {
18
56
  "name": "Biaenergi"
@@ -59,8 +97,9 @@
59
97
  "postcss-url": "^10.1.3",
60
98
  "prettier": "^3.3.2",
61
99
  "prettier-plugin-tailwindcss": "^0.5.6",
62
- "react-icons": "^5.2.1",
63
100
  "react-dom": "^18.0.0 || ^19.0.0-beta",
101
+ "react-draggable": "^4.5.0",
102
+ "react-icons": "^5.2.1",
64
103
  "rollup": "^3.29.4",
65
104
  "rollup-plugin-copy": "^3.5.0",
66
105
  "rollup-plugin-dts": "^6.0.2",
@@ -68,6 +107,7 @@
68
107
  "rollup-plugin-postcss": "^4.0.2",
69
108
  "sass": "^1.77.6",
70
109
  "sass-loader": "^14.2.1",
110
+ "standard-version": "^9.5.0",
71
111
  "storybook": "^8.1.6",
72
112
  "style-loader": "^4.0.0",
73
113
  "tailwindcss": "^3.4.4",
@@ -75,8 +115,7 @@
75
115
  "typescript": "^5.2.2",
76
116
  "typescript-eslint": "^7.13.1",
77
117
  "url-loader": "^4.1.1",
78
- "webpack": "^5.88.2",
79
- "react-draggable": "^4.5.0"
118
+ "webpack": "^5.88.2"
80
119
  },
81
120
  "main": "dist/cjs/index.js",
82
121
  "module": "dist/esm/index.js",
@@ -92,6 +131,5 @@
92
131
  "react-dom": "^18.0.0 || ^19.0.0-beta",
93
132
  "react-icons": "^5.2.1"
94
133
  },
95
- "types": "dist/index.d.ts",
96
- "dependencies": {}
134
+ "types": "dist/index.d.ts"
97
135
  }
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- export interface PopoverProps {
3
- className?: string;
4
- children: React.ReactNode;
5
- content: string;
6
- delay?: number;
7
- maxWidth?: string;
8
- title?: string;
9
- style?: React.CSSProperties;
10
- zIndex?: number;
11
- direction?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
12
- }
13
- export interface PopoverItemProps {
14
- anchorRef: React.RefObject<HTMLElement>;
15
- className?: string;
16
- content: string;
17
- style?: React.CSSProperties;
18
- title: string;
19
- zIndex?: number;
20
- direction: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
21
- }
@@ -1,21 +0,0 @@
1
- /// <reference types="react" />
2
- export interface PopoverProps {
3
- className?: string;
4
- children: React.ReactNode;
5
- content: string;
6
- delay?: number;
7
- maxWidth?: string;
8
- title?: string;
9
- style?: React.CSSProperties;
10
- zIndex?: number;
11
- direction?: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
12
- }
13
- export interface PopoverItemProps {
14
- anchorRef: React.RefObject<HTMLElement>;
15
- className?: string;
16
- content: string;
17
- style?: React.CSSProperties;
18
- title: string;
19
- zIndex?: number;
20
- direction: 'top' | 'right' | 'bottom' | 'left' | 'bottom-right' | 'bottom-left' | 'top-right' | 'top-left';
21
- }