bianic-ui 0.4.5 → 0.4.6

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/cjs/index.js CHANGED
@@ -2847,8 +2847,8 @@ var reactExports = react.exports;
2847
2847
  var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
2848
2848
 
2849
2849
  var Button = function (_a) {
2850
- var label = _a.label, variant = _a.variant, size = _a.size, rounded = _a.rounded, left = _a.left, right = _a.right, rest = __rest(_a, ["label", "variant", "size", "rounded", "left", "right"]);
2851
- var radius; // size
2850
+ var label = _a.label, variant = _a.variant, size = _a.size, radius = _a.radius, left = _a.left, right = _a.right, rest = __rest(_a, ["label", "variant", "size", "radius", "left", "right"]);
2851
+ var buttonRadius; // size
2852
2852
  var text;
2853
2853
  var border = "";
2854
2854
  var padding;
@@ -2928,7 +2928,15 @@ var Button = function (_a) {
2928
2928
  color = "hover:bg-bia-darkgray-pastel bg-primary-white";
2929
2929
  }
2930
2930
  // type
2931
- rounded ? radius = "rounded-[1.5rem]" : radius = "rounded-[0.19rem]";
2931
+ if (radius === "full-rounded") {
2932
+ buttonRadius = "rounded-full";
2933
+ }
2934
+ else if (radius === "rounded") {
2935
+ buttonRadius = "rounded-[1.5rem]";
2936
+ }
2937
+ else {
2938
+ buttonRadius = "rounded-[0.19rem]";
2939
+ }
2932
2940
  // size
2933
2941
  if (size === "large") {
2934
2942
  text += " text-2xl";
@@ -2950,7 +2958,7 @@ var Button = function (_a) {
2950
2958
  if (rest.disabled) {
2951
2959
  shadow = "";
2952
2960
  }
2953
- return React.createElement("button", __assign({}, rest, { className: "button inline-flex p- justify-center align-middle gap-[5px] font-medium font-['Segoe UI'] ".concat(radius, " ").concat(text, " ").concat(padding, " ").concat(color, " ").concat(border, " ").concat(shadow) }),
2961
+ return React.createElement("button", __assign({}, rest, { className: "button inline-flex justify-center align-middle gap-[5px] font-medium font-['Segoe UI'] ".concat(buttonRadius, " ").concat(text, " ").concat(padding, " ").concat(color, " ").concat(border, " ").concat(shadow, " ").concat(rest.className) }),
2954
2962
  left,
2955
2963
  label,
2956
2964
  right);
@@ -1,11 +1,11 @@
1
1
  import React, { ComponentPropsWithoutRef } from "react";
2
2
  export interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
3
- label?: string;
3
+ label?: any;
4
4
  variant?: string;
5
5
  size?: string;
6
- rounded?: boolean;
6
+ radius?: string;
7
7
  left?: any;
8
8
  right?: any;
9
9
  }
10
- declare const Button: ({ label, variant, size, rounded, left, right, ...rest }: ButtonProps) => React.JSX.Element;
10
+ declare const Button: ({ label, variant, size, radius, left, right, ...rest }: ButtonProps) => React.JSX.Element;
11
11
  export default Button;
package/dist/esm/index.js CHANGED
@@ -2845,8 +2845,8 @@ var reactExports = react.exports;
2845
2845
  var React = /*@__PURE__*/getDefaultExportFromCjs(reactExports);
2846
2846
 
2847
2847
  var Button = function (_a) {
2848
- var label = _a.label, variant = _a.variant, size = _a.size, rounded = _a.rounded, left = _a.left, right = _a.right, rest = __rest(_a, ["label", "variant", "size", "rounded", "left", "right"]);
2849
- var radius; // size
2848
+ var label = _a.label, variant = _a.variant, size = _a.size, radius = _a.radius, left = _a.left, right = _a.right, rest = __rest(_a, ["label", "variant", "size", "radius", "left", "right"]);
2849
+ var buttonRadius; // size
2850
2850
  var text;
2851
2851
  var border = "";
2852
2852
  var padding;
@@ -2926,7 +2926,15 @@ var Button = function (_a) {
2926
2926
  color = "hover:bg-bia-darkgray-pastel bg-primary-white";
2927
2927
  }
2928
2928
  // type
2929
- rounded ? radius = "rounded-[1.5rem]" : radius = "rounded-[0.19rem]";
2929
+ if (radius === "full-rounded") {
2930
+ buttonRadius = "rounded-full";
2931
+ }
2932
+ else if (radius === "rounded") {
2933
+ buttonRadius = "rounded-[1.5rem]";
2934
+ }
2935
+ else {
2936
+ buttonRadius = "rounded-[0.19rem]";
2937
+ }
2930
2938
  // size
2931
2939
  if (size === "large") {
2932
2940
  text += " text-2xl";
@@ -2948,7 +2956,7 @@ var Button = function (_a) {
2948
2956
  if (rest.disabled) {
2949
2957
  shadow = "";
2950
2958
  }
2951
- return React.createElement("button", __assign({}, rest, { className: "button inline-flex p- justify-center align-middle gap-[5px] font-medium font-['Segoe UI'] ".concat(radius, " ").concat(text, " ").concat(padding, " ").concat(color, " ").concat(border, " ").concat(shadow) }),
2959
+ return React.createElement("button", __assign({}, rest, { className: "button inline-flex justify-center align-middle gap-[5px] font-medium font-['Segoe UI'] ".concat(buttonRadius, " ").concat(text, " ").concat(padding, " ").concat(color, " ").concat(border, " ").concat(shadow, " ").concat(rest.className) }),
2952
2960
  left,
2953
2961
  label,
2954
2962
  right);
@@ -1,11 +1,11 @@
1
1
  import React, { ComponentPropsWithoutRef } from "react";
2
2
  export interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
3
- label?: string;
3
+ label?: any;
4
4
  variant?: string;
5
5
  size?: string;
6
- rounded?: boolean;
6
+ radius?: string;
7
7
  left?: any;
8
8
  right?: any;
9
9
  }
10
- declare const Button: ({ label, variant, size, rounded, left, right, ...rest }: ButtonProps) => React.JSX.Element;
10
+ declare const Button: ({ label, variant, size, radius, left, right, ...rest }: ButtonProps) => React.JSX.Element;
11
11
  export default Button;
package/dist/index.d.ts CHANGED
@@ -1,14 +1,14 @@
1
1
  import React, { ComponentPropsWithoutRef } from 'react';
2
2
 
3
3
  interface ButtonProps extends ComponentPropsWithoutRef<"button"> {
4
- label?: string;
4
+ label?: any;
5
5
  variant?: string;
6
6
  size?: string;
7
- rounded?: boolean;
7
+ radius?: string;
8
8
  left?: any;
9
9
  right?: any;
10
10
  }
11
- declare const Button: ({ label, variant, size, rounded, left, right, ...rest }: ButtonProps) => React.JSX.Element;
11
+ declare const Button: ({ label, variant, size, radius, left, right, ...rest }: ButtonProps) => React.JSX.Element;
12
12
 
13
13
  declare const Dump: () => React.JSX.Element;
14
14
 
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": "0.4.5",
6
+ "version": "0.4.6",
7
7
  "description": "Design Language System develop by BIAENERGI",
8
8
  "scripts": {
9
9
  "rollup": "rollup -c"