bianic-ui 1.1.0-beta.4 → 1.1.0-beta.5
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 +10 -26
- package/dist/cjs/index.js +27 -11
- package/dist/cjs/lib.css +1 -1
- package/dist/cjs/types/components/Alert/Alert.d.ts +1 -1
- package/dist/cjs/types/components/Button/Button.d.ts +29 -0
- package/dist/cjs/types/components/Button/ButtonApp.d.ts +11 -0
- package/dist/cjs/types/components/Button/buttonAppConfigs.d.ts +10 -0
- package/dist/cjs/types/components/Button/index.d.ts +2 -29
- package/dist/cjs/types/components/index.d.ts +1 -1
- package/dist/cjs/types/stories/{Button.stories.d.ts → Button/Button.stories.d.ts} +1 -1
- package/dist/esm/index.js +27 -12
- package/dist/esm/lib.css +1 -1
- package/dist/esm/types/components/Alert/Alert.d.ts +1 -1
- package/dist/esm/types/components/Button/Button.d.ts +29 -0
- package/dist/esm/types/components/Button/ButtonApp.d.ts +11 -0
- package/dist/esm/types/components/Button/buttonAppConfigs.d.ts +10 -0
- package/dist/esm/types/components/Button/index.d.ts +2 -29
- package/dist/esm/types/components/index.d.ts +1 -1
- package/dist/esm/types/stories/{Button.stories.d.ts → Button/Button.stories.d.ts} +1 -1
- package/dist/index.d.ts +11 -2
- package/package.json +1 -1
- /package/dist/cjs/types/components/Button/{configs.d.ts → buttonConfigs.d.ts} +0 -0
- /package/dist/esm/types/components/Button/{configs.d.ts → buttonConfigs.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,41 +1,25 @@
|
|
|
1
1
|
# Bianic 2.0
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
Bianic by BIAENERGI
|
|
3
|
+
DLS designed by BIAENERGI
|
|
5
4
|
|
|
6
|
-
##
|
|
7
|
-
Let people know what your project can do specifically. Provide context and add a link to any reference visitors might be unfamiliar with. A list of Features or a Background subsection can also be added here. If there are alternatives to your project, this is a good place to list differentiating factors.
|
|
8
|
-
|
|
9
|
-
## Badges
|
|
10
|
-
On some READMEs, you may see small images that convey metadata, such as whether or not all the tests are passing for the project. You can use Shields to add some to your README. Many services also have instructions for adding a badge.
|
|
5
|
+
## Installation
|
|
11
6
|
|
|
12
|
-
|
|
13
|
-
Depending on what you are making, it can be a good idea to include screenshots or even a video (you'll frequently see GIFs rather than actual videos). Tools like ttygif can help, but check out Asciinema for a more sophisticated method.
|
|
7
|
+
### First Installation
|
|
14
8
|
|
|
15
|
-
|
|
16
|
-
Within a particular ecosystem, there may be a common way of installing things, such as using Yarn, NuGet, or Homebrew. However, consider the possibility that whoever is reading your README is a novice and would like more guidance. Listing specific steps helps remove ambiguity and gets people to using your project as quickly as possible. If it only runs in a specific context like a particular programming language version or operating system or has dependencies that have to be installed manually, also add a Requirements subsection.
|
|
9
|
+
`npm i bianic-ui`
|
|
17
10
|
|
|
18
11
|
## Usage
|
|
19
|
-
|
|
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)
|
|
20
14
|
|
|
21
15
|
## Support
|
|
22
|
-
Tell people where they can go to for help. It can be any combination of an issue tracker, a chat room, an email address, etc.
|
|
23
16
|
|
|
24
|
-
|
|
25
|
-
If you have ideas for releases in the future, it is a good idea to list them in the README.
|
|
17
|
+
If you found any bug, please contact at [devbiaenergi@gmail.com](mailto:devbiaenergi@gmail.com)
|
|
26
18
|
|
|
27
19
|
## Contributing
|
|
28
|
-
State if you are open to contributions and what your requirements are for accepting them.
|
|
29
|
-
|
|
30
|
-
For people who want to make changes to your project, it's helpful to have some documentation on how to get started. Perhaps there is a script that they should run or some environment variables that they need to set. Make these steps explicit. These instructions could also be useful to your future self.
|
|
31
|
-
|
|
32
|
-
You can also document commands to lint the code or run tests. These steps help to ensure high code quality and reduce the likelihood that the changes inadvertently break something. Having instructions for running tests is especially helpful if it requires external setup, such as starting a Selenium server for testing in a browser.
|
|
33
20
|
|
|
34
|
-
|
|
35
|
-
Show your appreciation to those who have contributed to the project.
|
|
21
|
+
If you're interested in contributing to Bianic-Ui, please contact our team at [devbiaenergi@gmail.com](mailto:devbiaenergi@gmail.com)
|
|
36
22
|
|
|
37
|
-
##
|
|
38
|
-
For open source projects, say how it is licensed.
|
|
23
|
+
## Change Log
|
|
39
24
|
|
|
40
|
-
|
|
41
|
-
If you have run out of energy or time for your project, put a note at the top of the README saying that development has slowed down or stopped completely. Someone may choose to fork your project or volunteer to step in as a maintainer or owner, allowing your project to keep going. You can also make an explicit request for maintainers.
|
|
25
|
+
Coming soon
|
package/dist/cjs/index.js
CHANGED
|
@@ -284,7 +284,7 @@ Text.defaultProps = {
|
|
|
284
284
|
};
|
|
285
285
|
|
|
286
286
|
function Alert(_a) {
|
|
287
|
-
var _b = _a.title, title = _b === void 0 ? '' : _b, caption = _a.caption, _c = _a.variant, variant = _c === void 0 ? 'base' : _c, _d = _a.visible, visible = _d === void 0 ? true : _d, _e = _a.setVisible, setVisible = _e === void 0 ? function () { } : _e, _f = _a.visibleIcon, visibleIcon = _f === void 0 ? true : _f, _g = _a.visibleClose, visibleClose = _g === void 0 ? false : _g;
|
|
287
|
+
var _b = _a.title, title = _b === void 0 ? '' : _b, caption = _a.caption, _c = _a.variant, variant = _c === void 0 ? 'base' : _c, _d = _a.visible, visible = _d === void 0 ? true : _d, _e = _a.setVisible, setVisible = _e === void 0 ? function () { } : _e, _f = _a.visibleIcon, visibleIcon = _f === void 0 ? true : _f, _g = _a.visibleClose, visibleClose = _g === void 0 ? false : _g, children = _a.children;
|
|
288
288
|
var validateVariant = validUnion(variant, [
|
|
289
289
|
'base',
|
|
290
290
|
'info',
|
|
@@ -294,24 +294,22 @@ function Alert(_a) {
|
|
|
294
294
|
]);
|
|
295
295
|
var IconComponent = AlertConfig[validateVariant].icon[visibleIcon ? 'true' : 'false'];
|
|
296
296
|
var IconX = AlertConfig[visibleClose ? 'true' : 'false'];
|
|
297
|
-
var
|
|
298
|
-
|
|
299
|
-
};
|
|
300
|
-
return (visible && (React.createElement("div", { className: "alert-container flex flex-col w-full" },
|
|
297
|
+
var content = children || React.createElement(Text, { variant: "small-text" }, caption);
|
|
298
|
+
return (visible && (React.createElement("div", { className: "alert-container flex w-full flex-col" },
|
|
301
299
|
React.createElement("div", { className: "alert-body w-full ".concat(AlertConfig[validateVariant].bg, " rounded-[5px]") },
|
|
302
300
|
React.createElement("div", { className: "flex w-full" },
|
|
303
301
|
React.createElement("div", { className: "alert-accent flex items-center py-[10px]" },
|
|
304
|
-
React.createElement("div", { className: "left-0 w-[3px]
|
|
305
|
-
React.createElement("div", { className: "alert-content w-full
|
|
302
|
+
React.createElement("div", { className: "left-0 h-full w-[3px] ".concat(AlertConfig[validateVariant].vBar, " rounded-r-[10px]") })),
|
|
303
|
+
React.createElement("div", { className: "alert-content flex w-full items-start py-[10px] pe-[10px]" },
|
|
306
304
|
React.createElement("div", { className: "icon-area flex ps-[10px]" }, IconComponent && typeof IconComponent === 'function' && (React.createElement("div", { className: "flex p-[7px] ".concat(AlertConfig[validateVariant].ContainerIcon, " items-center justify-center rounded-radius-full") },
|
|
307
305
|
React.createElement(IconComponent, { size: 20, color: "white" })))),
|
|
308
306
|
React.createElement("div", { className: "content-area flex w-full justify-between" },
|
|
309
|
-
React.createElement("div", { className: "text-area flex ps-[10px] text-
|
|
307
|
+
React.createElement("div", { className: "text-area text-area flex flex-col ps-[10px] font-segoe text-size-sm font-normal ".concat(visibleClose ? 'mr-[10px]' : '', " ").concat(visibleIcon ? '' : 'ml-[-10px]') },
|
|
310
308
|
React.createElement("div", { className: "flex justify-between" },
|
|
311
309
|
React.createElement(Text, { variant: "normal-text-semibold" }, title)),
|
|
312
|
-
|
|
310
|
+
content),
|
|
313
311
|
IconX && typeof IconX === 'function' && (React.createElement("div", { className: "closable-area flex " },
|
|
314
|
-
React.createElement(IconX, { className: "cursor-pointer ".concat(AlertConfig[validateVariant].hover, " ").concat(AlertConfig[validateVariant].active, " ").concat(AlertConfig[validateVariant].focus, " ").concat(AlertConfig[validateVariant].close), onClick: function () { return
|
|
312
|
+
React.createElement(IconX, { className: "cursor-pointer ".concat(AlertConfig[validateVariant].hover, " ").concat(AlertConfig[validateVariant].active, " ").concat(AlertConfig[validateVariant].focus, " ").concat(AlertConfig[validateVariant].close), onClick: function () { return setVisible(false); }, tabIndex: 0 }))))))))));
|
|
315
313
|
}
|
|
316
314
|
Alert.defaultProps = {
|
|
317
315
|
title: '',
|
|
@@ -450,7 +448,7 @@ function Button(_a) {
|
|
|
450
448
|
? sizeConfig$b[validatedSize]
|
|
451
449
|
: iconOnlySizeConfig$1[validatedSize];
|
|
452
450
|
var classString = "\n ".concat(variantConfig$2[validatedVariant], " \n ").concat(sizeClass, " \n ").concat(radiusConfig$1[validatedRadius][validatedSize], " \n ").concat(className, "\n ");
|
|
453
|
-
return (React.createElement("button", __assign({ type: "button", className: "button flex
|
|
451
|
+
return (React.createElement("button", __assign({ type: "button", className: "button flex items-center justify-center font-semibold ".concat(classString), disabled: disabled }, props),
|
|
454
452
|
childrenElement(iconLeft || left),
|
|
455
453
|
childrenElement(label),
|
|
456
454
|
childrenElement(iconRight || right)));
|
|
@@ -1426,6 +1424,23 @@ Breadcrumb.defaultProps = {
|
|
|
1426
1424
|
selected: false,
|
|
1427
1425
|
};
|
|
1428
1426
|
|
|
1427
|
+
var colorConfig$1 = {
|
|
1428
|
+
green: {
|
|
1429
|
+
default: 'bg-bia-verdantgreen-dark-20 hover:bg-bia-verdantgreen-dark-10 active:bg-bia-verdantgreen-dark-40 text-primary-white disabled:bg-bia-verdantgreen-dark-20 disabled:text-primary-white/50 disabled:cursor-default',
|
|
1430
|
+
active: 'bg-bia-verdantgreen-dark-40 text-primary-white',
|
|
1431
|
+
},
|
|
1432
|
+
blue: {
|
|
1433
|
+
default: 'bg-bia-olympicblue hover:bg-bia-olympicblue-dark-10 active:bg-bia-olympicblue-dark-40 text-primary-white disabled:bg-bia-olympicblue disabled:text-primary-white/50 disabled:cursor-default',
|
|
1434
|
+
active: 'bg-bia-olympicblue-dark-40 text-primary-white',
|
|
1435
|
+
},
|
|
1436
|
+
};
|
|
1437
|
+
|
|
1438
|
+
var ButtonApp = function (_a) {
|
|
1439
|
+
_a.icon; _a.isNotified; var _c = _a.isActive, isActive = _c === void 0 ? false : _c, disabled = _a.disabled, _d = _a.color, color = _d === void 0 ? 'green' : _d, label = _a.label, rest = __rest(_a, ["icon", "isNotified", "isActive", "disabled", "color", "label"]);
|
|
1440
|
+
var buttonState = isActive ? 'active' : 'default';
|
|
1441
|
+
return (React.createElement("button", __assign({ className: "button-app px-[10px] pb-[8.8px] pt-[8px] text-size-tiny ".concat(colorConfig$1[color][buttonState], " "), type: "button", disabled: disabled }, rest), label));
|
|
1442
|
+
};
|
|
1443
|
+
|
|
1429
1444
|
function Color() {
|
|
1430
1445
|
var colorList = [
|
|
1431
1446
|
'bg-bia-red',
|
|
@@ -2738,6 +2753,7 @@ exports.Banner = Banner;
|
|
|
2738
2753
|
exports.Brand = Brand;
|
|
2739
2754
|
exports.Breadcrumb = Breadcrumb;
|
|
2740
2755
|
exports.Button = Button;
|
|
2756
|
+
exports.ButtonApp = ButtonApp;
|
|
2741
2757
|
exports.Checkbox = Checkbox;
|
|
2742
2758
|
exports.CheckboxSimulation = CheckboxSimulation;
|
|
2743
2759
|
exports.Color = Color;
|