bianic-ui 1.16.0-beta.8 → 2.1.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.
package/README.md CHANGED
@@ -1,49 +1,49 @@
1
- # Bianic 2.0
2
-
3
- DLS designed by BIAENERGI
4
-
5
- ## Installation
6
-
7
- ### First Installation
8
-
9
- `npm i bianic-ui`
10
-
11
- ## Usage
12
-
13
- After Bianic-Ui succesfully installed, you can call the component using JSX tag declaration style ex: `<Alert />`. Futher documentation about component can be access [here](https://ristek.link/bianic-dev-docs)
14
-
15
- ## Support
16
-
17
- If you found any bug, please contact at [devbiaenergi@gmail.com](mailto:devbiaenergi@gmail.com)
18
-
19
- ## Contributing
20
-
21
- If you're interested in contributing to Bianic-Ui, please contact our team at [devbiaenergi@gmail.com](mailto:devbiaenergi@gmail.com)
22
-
23
- ## Change Log
24
-
25
- Coming soon
26
-
27
- ## Development Notes
28
-
29
- ### Code Convention
30
-
31
- - Always separate style with tsx
32
- - For style config always try to be object with one level
33
- - Separate config file and component file for more readable code
34
- - The variable name of style config must be describe what you styling not describe the parameters (or key)
35
- - Use .tsx only when defining component, just us .ts if no component defined on the file
36
- - Don't import simulation or any demo to index.ts
37
- - Update storybook for every change or new component
38
-
39
- ### Component attribute naming
40
-
41
- - Check on html documentation. Always try to use the exisiting html atribute name.
42
- - If there the attibute not listed on html documentation. You can make it on your own with rules :
43
- - Use "is" prefix for boolean
44
- - Use "on" prefix for event listener
45
-
46
- ### Another Notes
47
-
48
- - Please assign class `...-primary-black` when need black color. If not assigned system will use #000000 black.
49
- - Just discuss any concept you had. **Discuss first, Implement later**.
1
+ # Bianic 2.0
2
+
3
+ DLS designed by BIAENERGI
4
+
5
+ ## Installation
6
+
7
+ ### First Installation
8
+
9
+ `npm i bianic-ui`
10
+
11
+ ## Usage
12
+
13
+ After Bianic-Ui succesfully installed, you can call the component using JSX tag declaration style ex: `<Alert />`. Futher documentation about component can be access [here](https://ristek.link/bianic-dev-docs)
14
+
15
+ ## Support
16
+
17
+ If you found any bug, please contact at [devbiaenergi@gmail.com](mailto:devbiaenergi@gmail.com)
18
+
19
+ ## Contributing
20
+
21
+ If you're interested in contributing to Bianic-Ui, please contact our team at [devbiaenergi@gmail.com](mailto:devbiaenergi@gmail.com)
22
+
23
+ ## Change Log
24
+
25
+ Coming soon
26
+
27
+ ## Development Notes
28
+
29
+ ### Code Convention
30
+
31
+ - Always separate style with tsx
32
+ - For style config always try to be object with one level
33
+ - Separate config file and component file for more readable code
34
+ - The variable name of style config must be describe what you styling not describe the parameters (or key)
35
+ - Use .tsx only when defining component, just us .ts if no component defined on the file
36
+ - Don't import simulation or any demo to index.ts
37
+ - Update storybook for every change or new component
38
+
39
+ ### Component attribute naming
40
+
41
+ - Check on html documentation. Always try to use the exisiting html atribute name.
42
+ - If there the attibute not listed on html documentation. You can make it on your own with rules :
43
+ - Use "is" prefix for boolean
44
+ - Use "on" prefix for event listener
45
+
46
+ ### Another Notes
47
+
48
+ - Please assign class `...-primary-black` when need black color. If not assigned system will use #000000 black.
49
+ - Just discuss any concept you had. **Discuss first, Implement later**.
package/dist/cjs/index.js CHANGED
@@ -2011,18 +2011,25 @@ Tooltip.defaultProps = {
2011
2011
  Tooltip.defaultProps = {};
2012
2012
 
2013
2013
  var FormLabel = function (_a) {
2014
- var children = _a.children, className = _a.className, htmlFor = _a.htmlFor, readOnly = _a.readOnly, required = _a.required;
2015
- var labelClass = readOnly ? 'pointer-events-none' : '';
2016
- return (React.createElement(Tooltip, { content: "Required", delay: 2000, direction: "right" },
2017
- React.createElement("label", { htmlFor: htmlFor, className: "bianic-form-label group/formlabel text-xs font-semibold ".concat(labelClass, " ").concat(className) },
2018
- children,
2019
- required && (React.createElement("span", { className: "p-1 text-bia-coolgrey group-hover/form:text-bia-red group-hover/formlabel:text-bia-red" }, "*")))));
2014
+ var children = _a.children, className = _a.className, htmlFor = _a.htmlFor, readOnly = _a.readOnly, required = _a.required, _b = _a.size, size = _b === void 0 ? 'sm' : _b, _c = _a.fontWeight, fontWeight = _c === void 0 ? 'semibold' : _c;
2015
+ var labelpointer = readOnly ? 'pointer-events-none' : '';
2016
+ var labelSize = size === 'sm' ? 'text-size-sm' : 'text-size-md';
2017
+ var labelFontWeight = fontWeight === 'semibold' ? 'font-semibold' : 'font-normal';
2018
+ var labelClass = "".concat(labelpointer, " ").concat(labelSize, " ").concat(labelFontWeight);
2019
+ var labelContent = (React.createElement("label", { htmlFor: htmlFor, className: "bianic-form-label group/formlabel ".concat(labelClass, " ").concat(className) },
2020
+ children,
2021
+ required && (React.createElement("span", { className: "p-1 text-bia-coolgrey group-hover/form:text-bia-red group-hover/formlabel:text-bia-red" }, "*"))));
2022
+ if (required)
2023
+ return (React.createElement(Tooltip, { content: "Required", delay: 2000, direction: "right" }, labelContent));
2024
+ return labelContent;
2020
2025
  };
2021
2026
  FormLabel.defaultProps = {
2022
2027
  className: '',
2023
2028
  htmlFor: undefined,
2024
2029
  required: false,
2025
2030
  readOnly: false,
2031
+ size: 'sm',
2032
+ fontWeight: 'semibold',
2026
2033
  };
2027
2034
 
2028
2035
  function PasswordIcon(_a) {
@@ -4176,11 +4183,11 @@ function Toaster(_a) {
4176
4183
  // Default styles for the toaster based on variant
4177
4184
  var colorStyles = "".concat(colorConfigs[variant], " text-bia-white");
4178
4185
  // Logic for content alignment based on `isHeaderShow`
4179
- var content = title ? (React.createElement("div", { className: "bianic-content-area flex flex-col gap-[5px]" },
4186
+ var content = title ? (React.createElement("div", { className: "bianic-content-area flex grow flex-col gap-[5px]" },
4180
4187
  React.createElement("div", { className: "bianic-toaster-header-area flex flex-row items-center gap-[5px]" },
4181
4188
  icon && React.createElement("div", { className: "bianic-toaster-icon-area" }, icon),
4182
4189
  React.createElement("div", { className: "bianic-toaster-title-area text-[14px] font-semibold leading-[21px]" }, title)),
4183
- React.createElement("div", { className: "bianic-toaster-description-area text-[12px] font-normal leading-[134%]" }, children))) : (React.createElement("div", { className: "bianic-toaster-content-area flex flex-row gap-[5px]" },
4190
+ React.createElement("div", { className: "bianic-toaster-description-area text-[12px] font-normal leading-[134%]" }, children))) : (React.createElement("div", { className: "bianic-toaster-content-area flex grow flex-row gap-[5px]" },
4184
4191
  icon && React.createElement("div", { className: "bianic-toaster-icon-area" }, icon),
4185
4192
  React.createElement("div", { className: "bianic-toaster-description-area text-[12px] font-normal leading-[134%]" }, children)));
4186
4193
  return (React.createElement("div", { className: "bianic-toaster flex w-[300px] flex-row gap-[5px] rounded-[5px] py-[10px] shadow-[0px_3px_20px_0px_rgba(0,0,0,0.10)] ".concat(colorStyles) },
@@ -4261,6 +4268,7 @@ exports.FileTree = FileTree;
4261
4268
  exports.FormGroup = FormGroup;
4262
4269
  exports.FormGroupButton = FormGroupButton;
4263
4270
  exports.FormGroupLabel = FormGroupLabel;
4271
+ exports.FormLabel = FormLabel;
4264
4272
  exports.Heading = Heading;
4265
4273
  exports.InfoPanel = InfoPanel;
4266
4274
  exports.Link = Link;