bianic-ui 1.0.0-beta.2 → 1.0.0-beta.21

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.
Files changed (52) hide show
  1. package/dist/cjs/index.js +188 -843
  2. package/dist/cjs/lib.css +1 -1
  3. package/dist/cjs/types/components/Button/Button.d.ts +12 -0
  4. package/dist/cjs/types/components/Button/configs.d.ts +0 -6
  5. package/dist/cjs/types/components/Button/index.d.ts +5 -1
  6. package/dist/cjs/types/components/Dump/Dump.d.ts +3 -0
  7. package/dist/cjs/types/components/Dump/index.d.ts +1 -0
  8. package/dist/cjs/types/components/Forms/Checkbox.d.ts +7 -0
  9. package/dist/cjs/types/components/Forms/LiveSearch.d.ts +13 -0
  10. package/dist/cjs/types/components/Forms/Radio.d.ts +8 -0
  11. package/dist/cjs/types/components/Forms/SelectInput.d.ts +13 -0
  12. package/dist/cjs/types/components/Forms/TextArea.d.ts +10 -0
  13. package/dist/cjs/types/components/Forms/TextInput.d.ts +14 -0
  14. package/dist/cjs/types/components/Forms/Toggle.d.ts +8 -0
  15. package/dist/cjs/types/components/Modal/ModalBody.d.ts +10 -0
  16. package/dist/cjs/types/components/Modal/ModalFooter.d.ts +7 -0
  17. package/dist/cjs/types/components/Modal/index.d.ts +3 -0
  18. package/dist/cjs/types/components/Tag/TagLabel.d.ts +14 -0
  19. package/dist/cjs/types/components/Tag/index.d.ts +1 -0
  20. package/dist/cjs/types/components/TagLabel/TagLabelBlockSimulation.d.ts +15 -0
  21. package/dist/cjs/types/components/TagLabel/configs.d.ts +35 -651
  22. package/dist/cjs/types/components/TagLabel/index.d.ts +21 -7
  23. package/dist/cjs/types/components/Typography/Text.d.ts +7 -0
  24. package/dist/cjs/types/utility/helper.d.ts +3 -0
  25. package/dist/esm/index.js +188 -843
  26. package/dist/esm/lib.css +1 -1
  27. package/dist/esm/types/components/Button/Button.d.ts +12 -0
  28. package/dist/esm/types/components/Button/configs.d.ts +0 -6
  29. package/dist/esm/types/components/Button/index.d.ts +5 -1
  30. package/dist/esm/types/components/Dump/Dump.d.ts +3 -0
  31. package/dist/esm/types/components/Dump/index.d.ts +1 -0
  32. package/dist/esm/types/components/Forms/Checkbox.d.ts +7 -0
  33. package/dist/esm/types/components/Forms/LiveSearch.d.ts +13 -0
  34. package/dist/esm/types/components/Forms/Radio.d.ts +8 -0
  35. package/dist/esm/types/components/Forms/SelectInput.d.ts +13 -0
  36. package/dist/esm/types/components/Forms/TextArea.d.ts +10 -0
  37. package/dist/esm/types/components/Forms/TextInput.d.ts +14 -0
  38. package/dist/esm/types/components/Forms/Toggle.d.ts +8 -0
  39. package/dist/esm/types/components/Modal/ModalBody.d.ts +10 -0
  40. package/dist/esm/types/components/Modal/ModalFooter.d.ts +7 -0
  41. package/dist/esm/types/components/Modal/index.d.ts +3 -0
  42. package/dist/esm/types/components/Tag/TagLabel.d.ts +14 -0
  43. package/dist/esm/types/components/Tag/index.d.ts +1 -0
  44. package/dist/esm/types/components/TagLabel/TagLabelBlockSimulation.d.ts +15 -0
  45. package/dist/esm/types/components/TagLabel/configs.d.ts +35 -651
  46. package/dist/esm/types/components/TagLabel/index.d.ts +21 -7
  47. package/dist/esm/types/components/Typography/Text.d.ts +7 -0
  48. package/dist/esm/types/utility/helper.d.ts +3 -0
  49. package/dist/index.d.ts +126 -569
  50. package/package.json +1 -1
  51. package/src/style/color.css +12 -0
  52. package/tailwind.config.js +21 -0
@@ -0,0 +1,12 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ export interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
3
+ label?: any;
4
+ variant?: string;
5
+ size?: string;
6
+ radius?: string;
7
+ left?: any;
8
+ right?: any;
9
+ shadow?: boolean;
10
+ }
11
+ declare const Button: ({ label, variant, size, radius, left, shadow, right, ...rest }: ButtonProps) => React.JSX.Element;
12
+ export default Button;
@@ -24,12 +24,6 @@ export declare const iconOnlySizeConfig: {
24
24
  sm: string;
25
25
  tn: string;
26
26
  };
27
- export declare const textConfig: {
28
- lg: string;
29
- md: string;
30
- sm: string;
31
- tn: string;
32
- };
33
27
  export declare const variantConfig: {
34
28
  default: string;
35
29
  primary: string;
@@ -4,12 +4,14 @@ interface ButtonProps extends ComponentPropsWithoutRef<'button'> {
4
4
  disabled?: boolean;
5
5
  iconRight?: React.ReactNode;
6
6
  iconLeft?: React.ReactNode;
7
+ right?: React.ReactNode;
8
+ left?: React.ReactNode;
7
9
  label?: string;
8
10
  radius?: 'default' | 'full-rounded';
9
11
  size?: 'lg' | 'md' | 'sm' | 'tn';
10
12
  variant?: 'default' | 'danger' | 'info' | 'link' | 'primary' | 'subtle' | 'subtle-link' | 'success' | 'warning' | 'default-outlined' | 'danger-outlined' | 'info-outlined' | 'primary-outlined' | 'success-outlined' | 'warning-outlined';
11
13
  }
12
- declare function Button({ label, className, disabled, radius, size, variant, iconLeft, iconRight, ...props }: ButtonProps): React.JSX.Element;
14
+ declare function Button({ label, className, disabled, radius, size, variant, iconLeft, iconRight, left, right, ...props }: ButtonProps): React.JSX.Element;
13
15
  declare namespace Button {
14
16
  var defaultProps: {
15
17
  label: null;
@@ -20,6 +22,8 @@ declare namespace Button {
20
22
  variant: string;
21
23
  iconLeft: null;
22
24
  iconRight: null;
25
+ left: null;
26
+ right: null;
23
27
  };
24
28
  }
25
29
  export default Button;
@@ -0,0 +1,3 @@
1
+ import React from "react";
2
+ declare const Dump: () => React.JSX.Element;
3
+ export default Dump;
@@ -0,0 +1 @@
1
+ export { default } from "./Dump";
@@ -0,0 +1,7 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ export interface CheckboxProps extends ComponentPropsWithoutRef<"input"> {
3
+ label: string;
4
+ inputSize: string;
5
+ }
6
+ declare const Checkbox: ({ label, inputSize, ...rest }: CheckboxProps) => React.JSX.Element;
7
+ export default Checkbox;
@@ -0,0 +1,13 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ export interface LiveSearchProps extends ComponentPropsWithoutRef<"input"> {
3
+ label: string;
4
+ inputSize: string;
5
+ searchData: any;
6
+ isOpen: boolean;
7
+ setIsOpen: any;
8
+ value: any;
9
+ setValue: any;
10
+ descText: string;
11
+ }
12
+ declare const LiveSearch: ({ isOpen, setIsOpen, value, setValue, inputSize, ...rest }: LiveSearchProps) => React.JSX.Element;
13
+ export default LiveSearch;
@@ -0,0 +1,8 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ export interface RadioProps extends ComponentPropsWithoutRef<"input"> {
3
+ data: any;
4
+ label: string;
5
+ InputSize: string;
6
+ }
7
+ declare const Radio: ({ label, data, InputSize, ...rest }: RadioProps) => React.JSX.Element;
8
+ export default Radio;
@@ -0,0 +1,13 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ export interface SelectInputProps extends ComponentPropsWithoutRef<"input"> {
3
+ label: string;
4
+ descText: string;
5
+ isOpen: boolean;
6
+ setIsOpen: any;
7
+ options: any;
8
+ selected: object;
9
+ setSelected: any;
10
+ inputSize: string;
11
+ }
12
+ declare const SelectInput: ({ label, descText, isOpen, setIsOpen, options, selected, setSelected, inputSize, ...rest }: SelectInputProps) => React.JSX.Element;
13
+ export default SelectInput;
@@ -0,0 +1,10 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ export interface TextAreaProps extends ComponentPropsWithoutRef<"textarea"> {
3
+ state: string;
4
+ label: string;
5
+ important: boolean;
6
+ descText: string;
7
+ errText: string;
8
+ }
9
+ declare const TextArea: ({ label, important, descText, errText, ...rest }: TextAreaProps) => React.JSX.Element;
10
+ export default TextArea;
@@ -0,0 +1,14 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ export interface TextInputProps extends ComponentPropsWithoutRef<"input"> {
3
+ variant: string;
4
+ state: string;
5
+ label: string;
6
+ important: boolean;
7
+ descText: string;
8
+ errText: string;
9
+ placeholder: string;
10
+ icon: string;
11
+ inputSize: string;
12
+ }
13
+ declare const TextInput: ({ variant, label, important, descText, errText, icon, inputSize, ...rest }: TextInputProps) => React.JSX.Element;
14
+ export default TextInput;
@@ -0,0 +1,8 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ export interface CheckboxProps extends ComponentPropsWithoutRef<"input"> {
3
+ label: string;
4
+ inputSize: string;
5
+ data: string;
6
+ }
7
+ declare const Toggle: ({ label, inputSize, onClick, ...rest }: CheckboxProps) => React.JSX.Element;
8
+ export default Toggle;
@@ -0,0 +1,10 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ export interface ModalProps extends ComponentPropsWithoutRef<"div"> {
3
+ modalSize: string;
4
+ title: string;
5
+ isShow: boolean;
6
+ setIsShow: any;
7
+ atribut: any;
8
+ }
9
+ declare const ModalBody: ({ ...rest }: ModalProps) => React.JSX.Element;
10
+ export default ModalBody;
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import { ComponentPropsWithoutRef } from "react";
3
+ export interface ModalFooterProps extends ComponentPropsWithoutRef<"div"> {
4
+ position?: string;
5
+ }
6
+ declare const ModalFooter: ({ ...rest }: ModalFooterProps) => React.JSX.Element;
7
+ export default ModalFooter;
@@ -0,0 +1,3 @@
1
+ export { default as ModalBody } from "./ModalBody";
2
+ export { default as ModalContent } from "./ModalContent";
3
+ export { default as ModalFooter } from "./ModalFooter";
@@ -0,0 +1,14 @@
1
+ import React, { ComponentPropsWithoutRef } from "react";
2
+ export interface TagLabelProps extends ComponentPropsWithoutRef<"span"> {
3
+ text: string;
4
+ variant: string;
5
+ size: string;
6
+ color: string;
7
+ capitalize: boolean;
8
+ textColor: string;
9
+ closeHandler?: any;
10
+ right?: any;
11
+ left?: any;
12
+ }
13
+ declare const TagLabel: ({ text, variant, size, color, right, left, closeHandler, capitalize, textColor, ...rest }: TagLabelProps) => React.JSX.Element;
14
+ export default TagLabel;
@@ -0,0 +1 @@
1
+ export { default as TagLabel } from "./TagLabel";
@@ -0,0 +1,15 @@
1
+ import React, { ComponentPropsWithoutRef } from 'react';
2
+ interface TagLabelProps extends ComponentPropsWithoutRef<'div'> {
3
+ variant: 'label' | 'icon' | 'closeable';
4
+ size: 'md' | 'sm' | 'tn';
5
+ isBlock?: boolean;
6
+ }
7
+ declare const TagLabelBlockSimulation: {
8
+ ({ variant, size, isBlock }: TagLabelProps): React.JSX.Element;
9
+ defaultProps: {
10
+ variant: string;
11
+ size: string;
12
+ isBlock: boolean;
13
+ };
14
+ };
15
+ export default TagLabelBlockSimulation;