bianic-ui 2.0.0 → 2.1.0-beta.1
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 +53 -32
- package/dist/cjs/types/components/Forms/{FormLabel.d.ts → Label/FormLabel.d.ts} +6 -2
- package/dist/cjs/types/components/Forms/Label/FormLabelSimulation.d.ts +4 -0
- package/dist/cjs/types/components/Forms/LiveSearch/Example/CustomDropdown.d.ts +1 -0
- package/dist/cjs/types/components/Forms/LiveSearch/index.d.ts +1 -1
- package/dist/cjs/types/components/Forms/LiveSearch/types/index.d.ts +1 -0
- package/dist/cjs/types/components/Forms/SelectInput/PropsInterface.d.ts +1 -0
- package/dist/cjs/types/components/Forms/SelectInput/index.d.ts +1 -1
- package/dist/cjs/types/components/Forms/index.d.ts +1 -0
- package/dist/cjs/types/components/Menu/MenuItem.d.ts +2 -1
- package/dist/cjs/types/components/index.d.ts +1 -1
- package/dist/cjs/types/stories/Form/Label/FormLabel.stories.d.ts +13 -0
- package/dist/cjs/types/stories/Form/Label/Label.stories.d.ts +24 -0
- package/dist/cjs/types/stories/Form/LiveSearch/LivesearchCustomDropdownExample.stories.d.ts +1 -1
- package/dist/esm/index.js +53 -33
- package/dist/esm/types/components/Forms/{FormLabel.d.ts → Label/FormLabel.d.ts} +6 -2
- package/dist/esm/types/components/Forms/Label/FormLabelSimulation.d.ts +4 -0
- package/dist/esm/types/components/Forms/LiveSearch/Example/CustomDropdown.d.ts +1 -0
- package/dist/esm/types/components/Forms/LiveSearch/index.d.ts +1 -1
- package/dist/esm/types/components/Forms/LiveSearch/types/index.d.ts +1 -0
- package/dist/esm/types/components/Forms/SelectInput/PropsInterface.d.ts +1 -0
- package/dist/esm/types/components/Forms/SelectInput/index.d.ts +1 -1
- package/dist/esm/types/components/Forms/index.d.ts +1 -0
- package/dist/esm/types/components/Menu/MenuItem.d.ts +2 -1
- package/dist/esm/types/components/index.d.ts +1 -1
- package/dist/esm/types/stories/Form/Label/FormLabel.stories.d.ts +13 -0
- package/dist/esm/types/stories/Form/Label/Label.stories.d.ts +24 -0
- package/dist/esm/types/stories/Form/LiveSearch/LivesearchCustomDropdownExample.stories.d.ts +1 -1
- package/dist/index.d.ts +28 -4
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -1900,9 +1900,9 @@ MenuContainerNoAnchor.defaultProps = {
|
|
|
1900
1900
|
};
|
|
1901
1901
|
|
|
1902
1902
|
function MenuItem(_a) {
|
|
1903
|
-
var _b = _a.className, className = _b === void 0 ? '' : _b, label = _a.label, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c, _d = _a.caption, caption = _d === void 0 ? undefined : _d, _e = _a.isChecked, isChecked = _e === void 0 ? undefined : _e, _f = _a.onClose, onClose = _f === void 0 ? function () { } : _f, children = _a.children, _g = _a.zIndex, zIndex = _g === void 0 ? 100 : _g, _h = _a.inheritedOnClick, inheritedOnClick = _h === void 0 ? function () { } : _h, props = __rest(_a, ["className", "label", "onClick", "caption", "isChecked", "onClose", "children", "zIndex", "inheritedOnClick"]);
|
|
1904
|
-
var
|
|
1905
|
-
var
|
|
1903
|
+
var _b = _a.className, className = _b === void 0 ? '' : _b, label = _a.label, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c, _d = _a.caption, caption = _d === void 0 ? undefined : _d, _e = _a.isChecked, isChecked = _e === void 0 ? undefined : _e, _f = _a.onClose, onClose = _f === void 0 ? function () { } : _f, children = _a.children, _g = _a.zIndex, zIndex = _g === void 0 ? 100 : _g, _h = _a.inheritedOnClick, inheritedOnClick = _h === void 0 ? function () { } : _h, _j = _a.disabled, disabled = _j === void 0 ? false : _j, props = __rest(_a, ["className", "label", "onClick", "caption", "isChecked", "onClose", "children", "zIndex", "inheritedOnClick", "disabled"]);
|
|
1904
|
+
var _k = React.useState(false), isHovered = _k[0], setIsHovered = _k[1];
|
|
1905
|
+
var _l = React.useState(false), isLeft = _l[0], setIsLeft = _l[1];
|
|
1906
1906
|
var isWithChecked = isChecked !== undefined;
|
|
1907
1907
|
var leftPadding = isWithChecked ? 'pl-[5px]' : 'pl-[10px]';
|
|
1908
1908
|
var rightPadding = caption || children ? 'pr-[5px]' : 'pr-[10px]';
|
|
@@ -1924,19 +1924,21 @@ function MenuItem(_a) {
|
|
|
1924
1924
|
? 'left-0 -translate-x-full'
|
|
1925
1925
|
: 'right-0 translate-x-full';
|
|
1926
1926
|
var currentZIndex = zIndex + 10;
|
|
1927
|
-
return (React.createElement("div", { className: "group/main relative cursor-pointer first:rounded-t-radius-sm first:pt-[6px] last:rounded-b-radius-sm last:pb-[6px]", onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } },
|
|
1928
|
-
React.createElement("div", __assign({ className: "relative flex items-center py-[5px] hover:bg-bia-blue-pastel
|
|
1927
|
+
return (React.createElement("div", { className: "group/main relative cursor-pointer first:rounded-t-radius-sm first:pt-[6px] last:rounded-b-radius-sm last:pb-[6px]", onMouseEnter: function () { return !disabled && setIsHovered(true); }, onMouseLeave: function () { return !disabled && setIsHovered(false); } },
|
|
1928
|
+
React.createElement("div", __assign({ className: "relative flex items-center py-[5px] ".concat(itemClass, " ").concat(disabled ? 'cursor-not-allowed' : 'hover:bg-bia-blue-pastel'), role: "button", "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, onClick: function (e) {
|
|
1929
|
+
if (disabled)
|
|
1930
|
+
return;
|
|
1929
1931
|
inheritedOnClick();
|
|
1930
1932
|
onClick(e);
|
|
1931
1933
|
}, onKeyDown: function () { }, style: {
|
|
1932
1934
|
zIndex: isHovered ? currentZIndex : currentZIndex + 15,
|
|
1933
1935
|
} }, props),
|
|
1934
1936
|
isWithChecked && (React.createElement("div", { className: "mr-[5px] aspect-square w-[14px]" }, isChecked && React.createElement(TbCheck, { className: "text-primary-black", size: 14 }))),
|
|
1935
|
-
React.createElement("span", { className: "whitespace-nowrap font-arial text-[11px] text-bia-black
|
|
1937
|
+
React.createElement("span", { className: "whitespace-nowrap font-arial text-[11px] ".concat(disabled ? 'text-bia-coolgrey-light-50' : 'text-bia-black') }, label),
|
|
1936
1938
|
React.createElement("div", { className: "ml-auto flex items-center" },
|
|
1937
1939
|
children && (React.createElement(TbChevronRight, { className: "ml-[10px] text-bia-coolgrey" })),
|
|
1938
|
-
children === undefined && caption && (React.createElement("span", { className: "ml-[30px] whitespace-nowrap text-[11px] text-bia-coolgrey
|
|
1939
|
-
children && (React.createElement(MenuContainerNoAnchor, { open: isHovered, onClose: onClose, className: "absolute top-0 bg-primary-white shadow-[0px_3px_20px_0px_rgba(0,0,0,0.20)] group-first/main:top-[6px] ".concat(translateClass), ref: MenuContRef, zIndex: currentZIndex + 10, onClickItem: function () { return inheritedOnClick(); } }, children))));
|
|
1940
|
+
children === undefined && caption && (React.createElement("span", { className: "ml-[30px] whitespace-nowrap text-[11px] ".concat(disabled ? 'text-bia-coolgrey-light-50' : 'text-bia-coolgrey') }, caption)))),
|
|
1941
|
+
children && !disabled && (React.createElement(MenuContainerNoAnchor, { open: isHovered, onClose: onClose, className: "absolute top-0 bg-primary-white shadow-[0px_3px_20px_0px_rgba(0,0,0,0.20)] group-first/main:top-[6px] ".concat(translateClass), ref: MenuContRef, zIndex: currentZIndex + 10, onClickItem: function () { return inheritedOnClick(); } }, children))));
|
|
1940
1942
|
}
|
|
1941
1943
|
MenuItem.defaultProps = {
|
|
1942
1944
|
className: '',
|
|
@@ -2011,18 +2013,25 @@ Tooltip.defaultProps = {
|
|
|
2011
2013
|
Tooltip.defaultProps = {};
|
|
2012
2014
|
|
|
2013
2015
|
var FormLabel = function (_a) {
|
|
2014
|
-
var children = _a.children, className = _a.className, htmlFor = _a.htmlFor, readOnly = _a.readOnly, required = _a.required;
|
|
2015
|
-
var
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2016
|
+
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;
|
|
2017
|
+
var labelpointer = readOnly ? 'pointer-events-none' : '';
|
|
2018
|
+
var labelSize = size === 'sm' ? 'text-size-sm' : 'text-size-md';
|
|
2019
|
+
var labelFontWeight = fontWeight === 'semibold' ? 'font-semibold' : 'font-normal';
|
|
2020
|
+
var labelClass = "".concat(labelpointer, " ").concat(labelSize, " ").concat(labelFontWeight);
|
|
2021
|
+
var labelContent = (React.createElement("label", { htmlFor: htmlFor, className: "bianic-form-label group/formlabel ".concat(labelClass, " ").concat(className) },
|
|
2022
|
+
children,
|
|
2023
|
+
required && (React.createElement("span", { className: "p-1 text-bia-coolgrey group-hover/form:text-bia-red group-hover/formlabel:text-bia-red" }, "*"))));
|
|
2024
|
+
if (required)
|
|
2025
|
+
return (React.createElement(Tooltip, { content: "Required", delay: 2000, direction: "right" }, labelContent));
|
|
2026
|
+
return labelContent;
|
|
2020
2027
|
};
|
|
2021
2028
|
FormLabel.defaultProps = {
|
|
2022
2029
|
className: '',
|
|
2023
2030
|
htmlFor: undefined,
|
|
2024
2031
|
required: false,
|
|
2025
2032
|
readOnly: false,
|
|
2033
|
+
size: 'sm',
|
|
2034
|
+
fontWeight: 'semibold',
|
|
2026
2035
|
};
|
|
2027
2036
|
|
|
2028
2037
|
function PasswordIcon(_a) {
|
|
@@ -2125,7 +2134,7 @@ var TextInput = React.forwardRef(function (_a, ref) {
|
|
|
2125
2134
|
React.createElement("div", { className: "relative w-full" },
|
|
2126
2135
|
React.createElement("input", __assign({ className: "bianic-text-input bianic-fgc-target w-full rounded read-only:pointer-events-none read-only:border-bia-grey-light-50 hover:rounded-b-none focus:rounded-b-none focus-visible:outline-none disabled:border-bia-grey-dark-10 disabled:bg-bia-grey-light-80 disabled:text-bia-grey-active ".concat(extendedInputClassName), disabled: disabled, id: id, placeholder: placeholder || label, readOnly: readOnly, required: required, type: typeVariant, value: value, onChange: function (e) { return onChange(e); }, maxLength: maxLength, autoComplete: autoComplete, ref: ref }, props)),
|
|
2127
2136
|
React.createElement("div", { className: "absolute inset-y-0 flex items-center pl-3 ".concat(actionElement ? '' : iconStyle, " ").concat(iconPosition, " ").concat(iconSizing) }, iconElement)),
|
|
2128
|
-
(descText || maxLength) && (React.createElement("div", { className: "bianic-text-input-desc flex justify-between gap-1 text-xs ".concat(descColor) },
|
|
2137
|
+
(descText || maxLength) && (React.createElement("div", { className: "bianic-text-input-desc flex justify-between gap-1 text-xs whitespace-nowrap ".concat(descColor) },
|
|
2129
2138
|
React.createElement("span", null, descText),
|
|
2130
2139
|
maxLength && (React.createElement("span", null,
|
|
2131
2140
|
remainWords,
|
|
@@ -2386,11 +2395,11 @@ DropdownContNoAnchor.defaultProps = {
|
|
|
2386
2395
|
|
|
2387
2396
|
var sizeUnion$2 = ['md', 'sm'];
|
|
2388
2397
|
function SelectInput(_a) {
|
|
2389
|
-
var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, id = _a.id, label = _a.label,
|
|
2390
|
-
var
|
|
2391
|
-
var
|
|
2398
|
+
var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, id = _a.id, _d = _a.isValid, isValid = _d === void 0 ? null : _d, label = _a.label, _e = _a.options, options = _e === void 0 ? [] : _e, _f = _a.required, required = _f === void 0 ? false : _f, selected = _a.selected, setSelected = _a.setSelected, _g = _a.onClickDropdown, onClickDropdown = _g === void 0 ? function () { } : _g, children = _a.children, _h = _a.dropContProps, _j = _h === void 0 ? {} : _h, _k = _j.className, dropContClassName = _k === void 0 ? '' : _k, restDropContProps = __rest(_j, ["className"]), props = __rest(_a, ["descText", "disabled", "size", "id", "isValid", "label", "options", "required", "selected", "setSelected", "onClickDropdown", "children", "dropContProps"]);
|
|
2399
|
+
var _l = React.useState(false), isOpen = _l[0], setIsOpen = _l[1];
|
|
2400
|
+
var _m = React.useState(false), isDropUp = _m[0], setIsDropUp = _m[1];
|
|
2392
2401
|
var validatedSize = validUnion(size, sizeUnion$2);
|
|
2393
|
-
var
|
|
2402
|
+
var _o = sizeConfig$8[validatedSize], searchSize = _o.searchSize, iconSize = _o.iconSize;
|
|
2394
2403
|
var inputRef = React.useRef(null);
|
|
2395
2404
|
var dropdownContRef = React.useRef(null);
|
|
2396
2405
|
var handleOutsideClick = function (e) {
|
|
@@ -2440,12 +2449,18 @@ function SelectInput(_a) {
|
|
|
2440
2449
|
}
|
|
2441
2450
|
}, [isOpen]);
|
|
2442
2451
|
var dropdownPosition = isDropUp ? 'bottom-full' : 'top-full';
|
|
2443
|
-
|
|
2452
|
+
var descColor = 'text-primary-cool';
|
|
2453
|
+
var isExistValidation = isValid !== null && isValid !== undefined;
|
|
2454
|
+
if (!disabled && isExistValidation && isValid)
|
|
2455
|
+
descColor = 'text-bia-green';
|
|
2456
|
+
if (!disabled && isExistValidation && !isValid)
|
|
2457
|
+
descColor = 'text-bia-red';
|
|
2458
|
+
return (React.createElement("div", { className: "bianic-fgc-container bianic-text-input-container field-group flex w-full flex-col", ref: inputRef },
|
|
2444
2459
|
React.createElement("label", { htmlFor: id, className: "label pb-2 text-xs font-semibold" },
|
|
2445
2460
|
childrenElement(label),
|
|
2446
2461
|
required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
|
|
2447
2462
|
React.createElement("div", { className: "group relative w-full" },
|
|
2448
|
-
React.createElement("input", __assign({ className: "field peer w-full
|
|
2463
|
+
React.createElement("input", __assign({ className: "bianic-fgc-target field peer w-full cursor-pointer rounded border border-bia-grey-dark-10 bg-primary-white pe-8 focus-visible:outline-none enabled:hover:rounded-b-none enabled:hover:border-b-bia-blue enabled:focus:rounded-b-none enabled:focus:border-b-bia-blue disabled:bg-bia-grey-light-80 disabled:text-bia-coolgrey ".concat(searchSize), onClick: function () { return setIsOpen(!isOpen); }, value: selectedLabel, readOnly: true, id: id, disabled: disabled }, props)),
|
|
2449
2464
|
React.createElement("div", { className: "pointer-events-none absolute inset-y-0 flex items-center pl-3 text-bia-coolgrey peer-disabled:text-bia-coolgrey-light-50 ".concat(iconSize) }, isOpen ? React.createElement(TbChevronUp, null) : React.createElement(TbChevronDown, null)),
|
|
2450
2465
|
children === undefined && isOpen && (React.createElement("div", { className: "absolute z-10 w-full rounded-b-md border border-bia-grey-dark-10 bg-primary-white shadow-lg ".concat(dropdownPosition), ref: optionsRef, onClick: onClickDropdown }, options.map(function (option) {
|
|
2451
2466
|
var isSelected = JSON.stringify(option) === JSON.stringify(selected);
|
|
@@ -2471,7 +2486,7 @@ function SelectInput(_a) {
|
|
|
2471
2486
|
}
|
|
2472
2487
|
return child;
|
|
2473
2488
|
})))),
|
|
2474
|
-
descText && (React.createElement("span", { className: "desc
|
|
2489
|
+
descText && (React.createElement("span", { className: "bianic-livesearch-desc bianic-text-input-desc whitespace-nowrap text-xs ".concat(descColor) }, descText))));
|
|
2475
2490
|
}
|
|
2476
2491
|
SelectInput.defaultProps = {
|
|
2477
2492
|
descText: '',
|
|
@@ -2704,23 +2719,28 @@ var useLiveSearch = function (_a) {
|
|
|
2704
2719
|
};
|
|
2705
2720
|
|
|
2706
2721
|
function LiveSearch(_a) {
|
|
2707
|
-
var _b = _a.autoComplete, autoComplete = _b === void 0 ? 'off' : _b, _c = _a.children, children = _c === void 0 ? undefined : _c, descText = _a.descText, _d = _a.disabled, disabled = _d === void 0 ? false : _d, dropContProps = _a.dropContProps, id = _a.id
|
|
2722
|
+
var _b = _a.autoComplete, autoComplete = _b === void 0 ? 'off' : _b, _c = _a.children, children = _c === void 0 ? undefined : _c, descText = _a.descText, _d = _a.disabled, disabled = _d === void 0 ? false : _d, dropContProps = _a.dropContProps, id = _a.id; _a.label; var _e = _a.onChangeText, onChangeText = _e === void 0 ? function () { } : _e, _f = _a.onClickDropdown, onClickDropdown = _f === void 0 ? function () { } : _f, options = _a.options, placeholder = _a.placeholder, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.searchVariant, searchVariant = _j === void 0 ? 'include' : _j, setValue = _a.setValue, _k = _a.size, size = _k === void 0 ? 'md' : _k, _l = _a.isValid, isValid = _l === void 0 ? null : _l, value = _a.value;
|
|
2708
2723
|
var inputRef = React.useRef(null);
|
|
2709
|
-
var
|
|
2724
|
+
var _m = useLiveSearch({
|
|
2710
2725
|
value: value,
|
|
2711
2726
|
setValue: setValue,
|
|
2712
2727
|
onChangeText: onChangeText,
|
|
2713
2728
|
dropContOnClickItem: dropContProps === null || dropContProps === void 0 ? void 0 : dropContProps.onClickItem,
|
|
2714
|
-
}), isOpen =
|
|
2715
|
-
var
|
|
2716
|
-
var
|
|
2729
|
+
}), isOpen = _m.isOpen, setIsOpen = _m.setIsOpen, searchTerm = _m.searchTerm, handleInputChange = _m.handleInputChange, handleDropdownItemClick = _m.handleDropdownItemClick;
|
|
2730
|
+
var _o = sizeConfig$6[size], iconClass = _o.iconClass, iconSize = _o.iconSize, inputClass = _o.inputClass;
|
|
2731
|
+
var _p = dropContProps || {}, dropContClassName = _p.className; _p.onClickItem; _p.anchorRef; var restDropContProps = __rest(_p, ["className", "onClickItem", "anchorRef"]);
|
|
2717
2732
|
var isValueExist = value && value.label !== undefined && value.label !== '';
|
|
2733
|
+
var descColor = 'text-primary-cool';
|
|
2734
|
+
var isExistValidation = isValid !== null && isValid !== undefined;
|
|
2735
|
+
if (!disabled && isExistValidation && isValid)
|
|
2736
|
+
descColor = 'text-bia-green';
|
|
2737
|
+
if (!disabled && isExistValidation && !isValid)
|
|
2738
|
+
descColor = 'text-bia-red';
|
|
2718
2739
|
var filteredOptions = filterOptions(options || [], value.label);
|
|
2719
|
-
var
|
|
2720
|
-
return (React.createElement("div", { className: "bianic-livesearch field-group group/form flex w-full flex-col gap-y-2 " },
|
|
2721
|
-
label && (React.createElement(FormLabel, { htmlFor: id, required: required, readOnly: readOnly }, label)),
|
|
2740
|
+
var _q = processRenderedChildren(children, searchTerm, searchVariant, handleDropdownItemClick), renderedChildren = _q.renderedChildren, hasFilteredResults = _q.hasFilteredResults;
|
|
2741
|
+
return (React.createElement("div", { className: "bianic-livesearch bianic-fgc-container bianic-text-input-container field-group group/form flex w-full flex-col gap-y-2 " },
|
|
2722
2742
|
React.createElement("div", { className: "group relative w-full" },
|
|
2723
|
-
React.createElement("input", { className: "bianic-livesearch-input field peer w-full rounded border border-bia-grey-dark-10 bg-primary-white read-only:pointer-events-none read-only:border-bia-grey-disabled focus-visible:outline-none enabled:hover:rounded-b-none enabled:hover:border-b-bia-blue enabled:focus:rounded-b-none enabled:focus:border-b-bia-blue disabled:border-bia-grey-dark-10 disabled:bg-bia-grey-light-10 disabled:text-bia-coolgrey ".concat(inputClass), onClick: function () { return setIsOpen(!isOpen); }, value: searchTerm, required: required, disabled: disabled, id: id, placeholder: placeholder, ref: inputRef, onChange: function (e) {
|
|
2743
|
+
React.createElement("input", { className: "bianic-livesearch-input bianic-fgc-target field peer w-full rounded border border-bia-grey-dark-10 bg-primary-white read-only:pointer-events-none read-only:border-bia-grey-disabled focus-visible:outline-none enabled:hover:rounded-b-none enabled:hover:border-b-bia-blue enabled:focus:rounded-b-none enabled:focus:border-b-bia-blue disabled:border-bia-grey-dark-10 disabled:bg-bia-grey-light-10 disabled:text-bia-coolgrey ".concat(inputClass), onClick: function () { return setIsOpen(!isOpen); }, value: searchTerm, required: required, disabled: disabled, id: id, placeholder: placeholder, ref: inputRef, onChange: function (e) {
|
|
2724
2744
|
onChangeText(e);
|
|
2725
2745
|
handleInputChange(e);
|
|
2726
2746
|
}, type: "text", readOnly: readOnly, autoComplete: autoComplete }),
|
|
@@ -2742,7 +2762,7 @@ function LiveSearch(_a) {
|
|
|
2742
2762
|
? renderedChildren
|
|
2743
2763
|
: // If no results and searchTerm is present
|
|
2744
2764
|
searchTerm.length > 0 && (React.createElement(DropdownItem, { content: React.createElement("div", { className: "px-4 py-2 text-gray-500" }, "Tidak ada hasil ditemukan.") }))))),
|
|
2745
|
-
descText && (React.createElement("span", { className: "desc text-
|
|
2765
|
+
descText && (React.createElement("span", { className: "bianic-livesearch-desc bianic-text-input-desc whitespace-nowrap text-xs ".concat(descColor) }, descText))));
|
|
2746
2766
|
}
|
|
2747
2767
|
LiveSearch.defaultProps = {
|
|
2748
2768
|
descText: '',
|
|
@@ -4261,6 +4281,7 @@ exports.FileTree = FileTree;
|
|
|
4261
4281
|
exports.FormGroup = FormGroup;
|
|
4262
4282
|
exports.FormGroupButton = FormGroupButton;
|
|
4263
4283
|
exports.FormGroupLabel = FormGroupLabel;
|
|
4284
|
+
exports.FormLabel = FormLabel;
|
|
4264
4285
|
exports.Heading = Heading;
|
|
4265
4286
|
exports.InfoPanel = InfoPanel;
|
|
4266
4287
|
exports.Link = Link;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface FormLabelProps {
|
|
2
|
+
export interface FormLabelProps {
|
|
3
|
+
size?: 'sm' | 'md';
|
|
4
|
+
fontWeight?: 'normal' | 'semibold';
|
|
3
5
|
children: React.ReactNode;
|
|
4
6
|
className?: string;
|
|
5
7
|
htmlFor?: string;
|
|
@@ -7,12 +9,14 @@ interface FormLabelProps {
|
|
|
7
9
|
required?: boolean;
|
|
8
10
|
}
|
|
9
11
|
declare const FormLabel: {
|
|
10
|
-
({ children, className, htmlFor, readOnly, required, }: FormLabelProps): React.JSX.Element;
|
|
12
|
+
({ children, className, htmlFor, readOnly, required, size, fontWeight, }: FormLabelProps): React.JSX.Element;
|
|
11
13
|
defaultProps: {
|
|
12
14
|
className: string;
|
|
13
15
|
htmlFor: undefined;
|
|
14
16
|
required: boolean;
|
|
15
17
|
readOnly: boolean;
|
|
18
|
+
size: string;
|
|
19
|
+
fontWeight: string;
|
|
16
20
|
};
|
|
17
21
|
};
|
|
18
22
|
export default FormLabel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LiveSearchProps } from './types';
|
|
3
|
-
declare function LiveSearch({ autoComplete, children, descText, disabled, dropContProps, id, label, onChangeText, onClickDropdown, options, placeholder, readOnly, required, searchVariant, setValue, size, value, }: LiveSearchProps): React.JSX.Element;
|
|
3
|
+
declare function LiveSearch({ autoComplete, children, descText, disabled, dropContProps, id, label, onChangeText, onClickDropdown, options, placeholder, readOnly, required, searchVariant, setValue, size, isValid, value, }: LiveSearchProps): React.JSX.Element;
|
|
4
4
|
declare namespace LiveSearch {
|
|
5
5
|
var defaultProps: {
|
|
6
6
|
descText: string;
|
|
@@ -8,6 +8,7 @@ export interface LiveSearchProps extends Omit<ComponentPropsWithoutRef<'input'>,
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
dropContProps?: Omit<DropdownContainerProps, 'children'>;
|
|
10
10
|
id?: string;
|
|
11
|
+
isValid?: boolean | null;
|
|
11
12
|
label?: string;
|
|
12
13
|
onChangeText?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
13
14
|
onClickDropdown?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import SelectInputProps from './PropsInterface';
|
|
3
|
-
declare function SelectInput({ descText, disabled, size, id, label, options, required, selected, setSelected, onClickDropdown, children, dropContProps: { className: dropContClassName, ...restDropContProps }, ...props }: SelectInputProps): React.JSX.Element;
|
|
3
|
+
declare function SelectInput({ descText, disabled, size, id, isValid, label, options, required, selected, setSelected, onClickDropdown, children, dropContProps: { className: dropContClassName, ...restDropContProps }, ...props }: SelectInputProps): React.JSX.Element;
|
|
4
4
|
declare namespace SelectInput {
|
|
5
5
|
var defaultProps: {
|
|
6
6
|
descText: string;
|
|
@@ -9,3 +9,4 @@ export { SegmentButtonItem, SegmentButtonGroup } from './SegmentButton';
|
|
|
9
9
|
export { FormGroup, FormGroupButton, FormGroupLabel } from './Group';
|
|
10
10
|
export { DropdownContainer, DropdownItem } from './Dropdown';
|
|
11
11
|
export { DatePicker, PickerCalendar } from './DatePicker';
|
|
12
|
+
export { default as FormLabel } from './Label/FormLabel';
|
|
@@ -9,8 +9,9 @@ export interface MenuItemProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
9
9
|
children?: React.ReactNode | undefined;
|
|
10
10
|
onClose?: () => void;
|
|
11
11
|
zIndex?: number;
|
|
12
|
+
disabled?: boolean;
|
|
12
13
|
}
|
|
13
|
-
declare function MenuItem({ className, label, onClick, caption, isChecked, onClose, children, zIndex, inheritedOnClick, ...props }: MenuItemProps): React.JSX.Element;
|
|
14
|
+
declare function MenuItem({ className, label, onClick, caption, isChecked, onClose, children, zIndex, inheritedOnClick, disabled, ...props }: MenuItemProps): React.JSX.Element;
|
|
14
15
|
declare namespace MenuItem {
|
|
15
16
|
var defaultProps: {
|
|
16
17
|
className: string;
|
|
@@ -10,7 +10,7 @@ export { default as Color } from './Color';
|
|
|
10
10
|
export { default as Divider } from './Divider/Divider';
|
|
11
11
|
export { default as FileTree } from './FileTree';
|
|
12
12
|
export { MenuContainer, MenuItem } from './Menu';
|
|
13
|
-
export { TextInput, Radio, TextArea, Checkbox, SelectInput, LiveSearch, Toggle, SegmentButtonItem, SegmentButtonGroup, FormGroup, FormGroupButton, FormGroupLabel, DropdownItem, DropdownContainer, DatePicker, PickerCalendar, } from './Forms';
|
|
13
|
+
export { TextInput, Radio, TextArea, Checkbox, SelectInput, LiveSearch, Toggle, SegmentButtonItem, SegmentButtonGroup, FormLabel, FormGroup, FormGroupButton, FormGroupLabel, DropdownItem, DropdownContainer, DatePicker, PickerCalendar, } from './Forms';
|
|
14
14
|
export * from './Icons';
|
|
15
15
|
export { default as InfoPanel } from './InfoPanel';
|
|
16
16
|
export { default as Modal } from './Modal/Modal';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ className, children, htmlFor, required, readOnly, fontWeight, size, }: import("../../../components/Forms/Label/FormLabel").FormLabelProps) => import("react").JSX.Element;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Simulation: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: {
|
|
6
|
+
({ children, className, htmlFor, readOnly, required, size, fontWeight, }: import("../../../components/Forms/Label/FormLabel").FormLabelProps): import("react").JSX.Element;
|
|
7
|
+
defaultProps: {
|
|
8
|
+
className: string;
|
|
9
|
+
htmlFor: undefined;
|
|
10
|
+
required: boolean;
|
|
11
|
+
readOnly: boolean;
|
|
12
|
+
size: string;
|
|
13
|
+
fontWeight: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: string;
|
|
18
|
+
};
|
|
19
|
+
tags: string[];
|
|
20
|
+
args: {};
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
export declare const Demo: Story;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from "@storybook/react/*";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ children, ...props }: LiveSearchProps) => React.JSX.Element;
|
|
5
|
+
component: ({ children, ...props }: import("../../../components/Forms/LiveSearch/types").LiveSearchProps) => React.JSX.Element;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
package/dist/esm/index.js
CHANGED
|
@@ -1898,9 +1898,9 @@ MenuContainerNoAnchor.defaultProps = {
|
|
|
1898
1898
|
};
|
|
1899
1899
|
|
|
1900
1900
|
function MenuItem(_a) {
|
|
1901
|
-
var _b = _a.className, className = _b === void 0 ? '' : _b, label = _a.label, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c, _d = _a.caption, caption = _d === void 0 ? undefined : _d, _e = _a.isChecked, isChecked = _e === void 0 ? undefined : _e, _f = _a.onClose, onClose = _f === void 0 ? function () { } : _f, children = _a.children, _g = _a.zIndex, zIndex = _g === void 0 ? 100 : _g, _h = _a.inheritedOnClick, inheritedOnClick = _h === void 0 ? function () { } : _h, props = __rest(_a, ["className", "label", "onClick", "caption", "isChecked", "onClose", "children", "zIndex", "inheritedOnClick"]);
|
|
1902
|
-
var
|
|
1903
|
-
var
|
|
1901
|
+
var _b = _a.className, className = _b === void 0 ? '' : _b, label = _a.label, _c = _a.onClick, onClick = _c === void 0 ? function () { } : _c, _d = _a.caption, caption = _d === void 0 ? undefined : _d, _e = _a.isChecked, isChecked = _e === void 0 ? undefined : _e, _f = _a.onClose, onClose = _f === void 0 ? function () { } : _f, children = _a.children, _g = _a.zIndex, zIndex = _g === void 0 ? 100 : _g, _h = _a.inheritedOnClick, inheritedOnClick = _h === void 0 ? function () { } : _h, _j = _a.disabled, disabled = _j === void 0 ? false : _j, props = __rest(_a, ["className", "label", "onClick", "caption", "isChecked", "onClose", "children", "zIndex", "inheritedOnClick", "disabled"]);
|
|
1902
|
+
var _k = useState(false), isHovered = _k[0], setIsHovered = _k[1];
|
|
1903
|
+
var _l = useState(false), isLeft = _l[0], setIsLeft = _l[1];
|
|
1904
1904
|
var isWithChecked = isChecked !== undefined;
|
|
1905
1905
|
var leftPadding = isWithChecked ? 'pl-[5px]' : 'pl-[10px]';
|
|
1906
1906
|
var rightPadding = caption || children ? 'pr-[5px]' : 'pr-[10px]';
|
|
@@ -1922,19 +1922,21 @@ function MenuItem(_a) {
|
|
|
1922
1922
|
? 'left-0 -translate-x-full'
|
|
1923
1923
|
: 'right-0 translate-x-full';
|
|
1924
1924
|
var currentZIndex = zIndex + 10;
|
|
1925
|
-
return (React.createElement("div", { className: "group/main relative cursor-pointer first:rounded-t-radius-sm first:pt-[6px] last:rounded-b-radius-sm last:pb-[6px]", onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); } },
|
|
1926
|
-
React.createElement("div", __assign({ className: "relative flex items-center py-[5px] hover:bg-bia-blue-pastel
|
|
1925
|
+
return (React.createElement("div", { className: "group/main relative cursor-pointer first:rounded-t-radius-sm first:pt-[6px] last:rounded-b-radius-sm last:pb-[6px]", onMouseEnter: function () { return !disabled && setIsHovered(true); }, onMouseLeave: function () { return !disabled && setIsHovered(false); } },
|
|
1926
|
+
React.createElement("div", __assign({ className: "relative flex items-center py-[5px] ".concat(itemClass, " ").concat(disabled ? 'cursor-not-allowed' : 'hover:bg-bia-blue-pastel'), role: "button", "aria-disabled": disabled, tabIndex: disabled ? -1 : 0, onClick: function (e) {
|
|
1927
|
+
if (disabled)
|
|
1928
|
+
return;
|
|
1927
1929
|
inheritedOnClick();
|
|
1928
1930
|
onClick(e);
|
|
1929
1931
|
}, onKeyDown: function () { }, style: {
|
|
1930
1932
|
zIndex: isHovered ? currentZIndex : currentZIndex + 15,
|
|
1931
1933
|
} }, props),
|
|
1932
1934
|
isWithChecked && (React.createElement("div", { className: "mr-[5px] aspect-square w-[14px]" }, isChecked && React.createElement(TbCheck, { className: "text-primary-black", size: 14 }))),
|
|
1933
|
-
React.createElement("span", { className: "whitespace-nowrap font-arial text-[11px] text-bia-black
|
|
1935
|
+
React.createElement("span", { className: "whitespace-nowrap font-arial text-[11px] ".concat(disabled ? 'text-bia-coolgrey-light-50' : 'text-bia-black') }, label),
|
|
1934
1936
|
React.createElement("div", { className: "ml-auto flex items-center" },
|
|
1935
1937
|
children && (React.createElement(TbChevronRight, { className: "ml-[10px] text-bia-coolgrey" })),
|
|
1936
|
-
children === undefined && caption && (React.createElement("span", { className: "ml-[30px] whitespace-nowrap text-[11px] text-bia-coolgrey
|
|
1937
|
-
children && (React.createElement(MenuContainerNoAnchor, { open: isHovered, onClose: onClose, className: "absolute top-0 bg-primary-white shadow-[0px_3px_20px_0px_rgba(0,0,0,0.20)] group-first/main:top-[6px] ".concat(translateClass), ref: MenuContRef, zIndex: currentZIndex + 10, onClickItem: function () { return inheritedOnClick(); } }, children))));
|
|
1938
|
+
children === undefined && caption && (React.createElement("span", { className: "ml-[30px] whitespace-nowrap text-[11px] ".concat(disabled ? 'text-bia-coolgrey-light-50' : 'text-bia-coolgrey') }, caption)))),
|
|
1939
|
+
children && !disabled && (React.createElement(MenuContainerNoAnchor, { open: isHovered, onClose: onClose, className: "absolute top-0 bg-primary-white shadow-[0px_3px_20px_0px_rgba(0,0,0,0.20)] group-first/main:top-[6px] ".concat(translateClass), ref: MenuContRef, zIndex: currentZIndex + 10, onClickItem: function () { return inheritedOnClick(); } }, children))));
|
|
1938
1940
|
}
|
|
1939
1941
|
MenuItem.defaultProps = {
|
|
1940
1942
|
className: '',
|
|
@@ -2009,18 +2011,25 @@ Tooltip.defaultProps = {
|
|
|
2009
2011
|
Tooltip.defaultProps = {};
|
|
2010
2012
|
|
|
2011
2013
|
var FormLabel = function (_a) {
|
|
2012
|
-
var children = _a.children, className = _a.className, htmlFor = _a.htmlFor, readOnly = _a.readOnly, required = _a.required;
|
|
2013
|
-
var
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
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;
|
|
2018
2025
|
};
|
|
2019
2026
|
FormLabel.defaultProps = {
|
|
2020
2027
|
className: '',
|
|
2021
2028
|
htmlFor: undefined,
|
|
2022
2029
|
required: false,
|
|
2023
2030
|
readOnly: false,
|
|
2031
|
+
size: 'sm',
|
|
2032
|
+
fontWeight: 'semibold',
|
|
2024
2033
|
};
|
|
2025
2034
|
|
|
2026
2035
|
function PasswordIcon(_a) {
|
|
@@ -2123,7 +2132,7 @@ var TextInput = forwardRef(function (_a, ref) {
|
|
|
2123
2132
|
React.createElement("div", { className: "relative w-full" },
|
|
2124
2133
|
React.createElement("input", __assign({ className: "bianic-text-input bianic-fgc-target w-full rounded read-only:pointer-events-none read-only:border-bia-grey-light-50 hover:rounded-b-none focus:rounded-b-none focus-visible:outline-none disabled:border-bia-grey-dark-10 disabled:bg-bia-grey-light-80 disabled:text-bia-grey-active ".concat(extendedInputClassName), disabled: disabled, id: id, placeholder: placeholder || label, readOnly: readOnly, required: required, type: typeVariant, value: value, onChange: function (e) { return onChange(e); }, maxLength: maxLength, autoComplete: autoComplete, ref: ref }, props)),
|
|
2125
2134
|
React.createElement("div", { className: "absolute inset-y-0 flex items-center pl-3 ".concat(actionElement ? '' : iconStyle, " ").concat(iconPosition, " ").concat(iconSizing) }, iconElement)),
|
|
2126
|
-
(descText || maxLength) && (React.createElement("div", { className: "bianic-text-input-desc flex justify-between gap-1 text-xs ".concat(descColor) },
|
|
2135
|
+
(descText || maxLength) && (React.createElement("div", { className: "bianic-text-input-desc flex justify-between gap-1 text-xs whitespace-nowrap ".concat(descColor) },
|
|
2127
2136
|
React.createElement("span", null, descText),
|
|
2128
2137
|
maxLength && (React.createElement("span", null,
|
|
2129
2138
|
remainWords,
|
|
@@ -2384,11 +2393,11 @@ DropdownContNoAnchor.defaultProps = {
|
|
|
2384
2393
|
|
|
2385
2394
|
var sizeUnion$2 = ['md', 'sm'];
|
|
2386
2395
|
function SelectInput(_a) {
|
|
2387
|
-
var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, id = _a.id, label = _a.label,
|
|
2388
|
-
var
|
|
2389
|
-
var
|
|
2396
|
+
var descText = _a.descText, _b = _a.disabled, disabled = _b === void 0 ? false : _b, _c = _a.size, size = _c === void 0 ? 'md' : _c, id = _a.id, _d = _a.isValid, isValid = _d === void 0 ? null : _d, label = _a.label, _e = _a.options, options = _e === void 0 ? [] : _e, _f = _a.required, required = _f === void 0 ? false : _f, selected = _a.selected, setSelected = _a.setSelected, _g = _a.onClickDropdown, onClickDropdown = _g === void 0 ? function () { } : _g, children = _a.children, _h = _a.dropContProps, _j = _h === void 0 ? {} : _h, _k = _j.className, dropContClassName = _k === void 0 ? '' : _k, restDropContProps = __rest(_j, ["className"]), props = __rest(_a, ["descText", "disabled", "size", "id", "isValid", "label", "options", "required", "selected", "setSelected", "onClickDropdown", "children", "dropContProps"]);
|
|
2397
|
+
var _l = useState(false), isOpen = _l[0], setIsOpen = _l[1];
|
|
2398
|
+
var _m = useState(false), isDropUp = _m[0], setIsDropUp = _m[1];
|
|
2390
2399
|
var validatedSize = validUnion(size, sizeUnion$2);
|
|
2391
|
-
var
|
|
2400
|
+
var _o = sizeConfig$8[validatedSize], searchSize = _o.searchSize, iconSize = _o.iconSize;
|
|
2392
2401
|
var inputRef = useRef(null);
|
|
2393
2402
|
var dropdownContRef = useRef(null);
|
|
2394
2403
|
var handleOutsideClick = function (e) {
|
|
@@ -2438,12 +2447,18 @@ function SelectInput(_a) {
|
|
|
2438
2447
|
}
|
|
2439
2448
|
}, [isOpen]);
|
|
2440
2449
|
var dropdownPosition = isDropUp ? 'bottom-full' : 'top-full';
|
|
2441
|
-
|
|
2450
|
+
var descColor = 'text-primary-cool';
|
|
2451
|
+
var isExistValidation = isValid !== null && isValid !== undefined;
|
|
2452
|
+
if (!disabled && isExistValidation && isValid)
|
|
2453
|
+
descColor = 'text-bia-green';
|
|
2454
|
+
if (!disabled && isExistValidation && !isValid)
|
|
2455
|
+
descColor = 'text-bia-red';
|
|
2456
|
+
return (React.createElement("div", { className: "bianic-fgc-container bianic-text-input-container field-group flex w-full flex-col", ref: inputRef },
|
|
2442
2457
|
React.createElement("label", { htmlFor: id, className: "label pb-2 text-xs font-semibold" },
|
|
2443
2458
|
childrenElement(label),
|
|
2444
2459
|
required && React.createElement("span", { className: "p-1 text-bia-red" }, "*")),
|
|
2445
2460
|
React.createElement("div", { className: "group relative w-full" },
|
|
2446
|
-
React.createElement("input", __assign({ className: "field peer w-full
|
|
2461
|
+
React.createElement("input", __assign({ className: "bianic-fgc-target field peer w-full cursor-pointer rounded border border-bia-grey-dark-10 bg-primary-white pe-8 focus-visible:outline-none enabled:hover:rounded-b-none enabled:hover:border-b-bia-blue enabled:focus:rounded-b-none enabled:focus:border-b-bia-blue disabled:bg-bia-grey-light-80 disabled:text-bia-coolgrey ".concat(searchSize), onClick: function () { return setIsOpen(!isOpen); }, value: selectedLabel, readOnly: true, id: id, disabled: disabled }, props)),
|
|
2447
2462
|
React.createElement("div", { className: "pointer-events-none absolute inset-y-0 flex items-center pl-3 text-bia-coolgrey peer-disabled:text-bia-coolgrey-light-50 ".concat(iconSize) }, isOpen ? React.createElement(TbChevronUp, null) : React.createElement(TbChevronDown, null)),
|
|
2448
2463
|
children === undefined && isOpen && (React.createElement("div", { className: "absolute z-10 w-full rounded-b-md border border-bia-grey-dark-10 bg-primary-white shadow-lg ".concat(dropdownPosition), ref: optionsRef, onClick: onClickDropdown }, options.map(function (option) {
|
|
2449
2464
|
var isSelected = JSON.stringify(option) === JSON.stringify(selected);
|
|
@@ -2469,7 +2484,7 @@ function SelectInput(_a) {
|
|
|
2469
2484
|
}
|
|
2470
2485
|
return child;
|
|
2471
2486
|
})))),
|
|
2472
|
-
descText && (React.createElement("span", { className: "desc
|
|
2487
|
+
descText && (React.createElement("span", { className: "bianic-livesearch-desc bianic-text-input-desc whitespace-nowrap text-xs ".concat(descColor) }, descText))));
|
|
2473
2488
|
}
|
|
2474
2489
|
SelectInput.defaultProps = {
|
|
2475
2490
|
descText: '',
|
|
@@ -2702,23 +2717,28 @@ var useLiveSearch = function (_a) {
|
|
|
2702
2717
|
};
|
|
2703
2718
|
|
|
2704
2719
|
function LiveSearch(_a) {
|
|
2705
|
-
var _b = _a.autoComplete, autoComplete = _b === void 0 ? 'off' : _b, _c = _a.children, children = _c === void 0 ? undefined : _c, descText = _a.descText, _d = _a.disabled, disabled = _d === void 0 ? false : _d, dropContProps = _a.dropContProps, id = _a.id
|
|
2720
|
+
var _b = _a.autoComplete, autoComplete = _b === void 0 ? 'off' : _b, _c = _a.children, children = _c === void 0 ? undefined : _c, descText = _a.descText, _d = _a.disabled, disabled = _d === void 0 ? false : _d, dropContProps = _a.dropContProps, id = _a.id; _a.label; var _e = _a.onChangeText, onChangeText = _e === void 0 ? function () { } : _e, _f = _a.onClickDropdown, onClickDropdown = _f === void 0 ? function () { } : _f, options = _a.options, placeholder = _a.placeholder, _g = _a.readOnly, readOnly = _g === void 0 ? false : _g, _h = _a.required, required = _h === void 0 ? false : _h, _j = _a.searchVariant, searchVariant = _j === void 0 ? 'include' : _j, setValue = _a.setValue, _k = _a.size, size = _k === void 0 ? 'md' : _k, _l = _a.isValid, isValid = _l === void 0 ? null : _l, value = _a.value;
|
|
2706
2721
|
var inputRef = useRef(null);
|
|
2707
|
-
var
|
|
2722
|
+
var _m = useLiveSearch({
|
|
2708
2723
|
value: value,
|
|
2709
2724
|
setValue: setValue,
|
|
2710
2725
|
onChangeText: onChangeText,
|
|
2711
2726
|
dropContOnClickItem: dropContProps === null || dropContProps === void 0 ? void 0 : dropContProps.onClickItem,
|
|
2712
|
-
}), isOpen =
|
|
2713
|
-
var
|
|
2714
|
-
var
|
|
2727
|
+
}), isOpen = _m.isOpen, setIsOpen = _m.setIsOpen, searchTerm = _m.searchTerm, handleInputChange = _m.handleInputChange, handleDropdownItemClick = _m.handleDropdownItemClick;
|
|
2728
|
+
var _o = sizeConfig$6[size], iconClass = _o.iconClass, iconSize = _o.iconSize, inputClass = _o.inputClass;
|
|
2729
|
+
var _p = dropContProps || {}, dropContClassName = _p.className; _p.onClickItem; _p.anchorRef; var restDropContProps = __rest(_p, ["className", "onClickItem", "anchorRef"]);
|
|
2715
2730
|
var isValueExist = value && value.label !== undefined && value.label !== '';
|
|
2731
|
+
var descColor = 'text-primary-cool';
|
|
2732
|
+
var isExistValidation = isValid !== null && isValid !== undefined;
|
|
2733
|
+
if (!disabled && isExistValidation && isValid)
|
|
2734
|
+
descColor = 'text-bia-green';
|
|
2735
|
+
if (!disabled && isExistValidation && !isValid)
|
|
2736
|
+
descColor = 'text-bia-red';
|
|
2716
2737
|
var filteredOptions = filterOptions(options || [], value.label);
|
|
2717
|
-
var
|
|
2718
|
-
return (React.createElement("div", { className: "bianic-livesearch field-group group/form flex w-full flex-col gap-y-2 " },
|
|
2719
|
-
label && (React.createElement(FormLabel, { htmlFor: id, required: required, readOnly: readOnly }, label)),
|
|
2738
|
+
var _q = processRenderedChildren(children, searchTerm, searchVariant, handleDropdownItemClick), renderedChildren = _q.renderedChildren, hasFilteredResults = _q.hasFilteredResults;
|
|
2739
|
+
return (React.createElement("div", { className: "bianic-livesearch bianic-fgc-container bianic-text-input-container field-group group/form flex w-full flex-col gap-y-2 " },
|
|
2720
2740
|
React.createElement("div", { className: "group relative w-full" },
|
|
2721
|
-
React.createElement("input", { className: "bianic-livesearch-input field peer w-full rounded border border-bia-grey-dark-10 bg-primary-white read-only:pointer-events-none read-only:border-bia-grey-disabled focus-visible:outline-none enabled:hover:rounded-b-none enabled:hover:border-b-bia-blue enabled:focus:rounded-b-none enabled:focus:border-b-bia-blue disabled:border-bia-grey-dark-10 disabled:bg-bia-grey-light-10 disabled:text-bia-coolgrey ".concat(inputClass), onClick: function () { return setIsOpen(!isOpen); }, value: searchTerm, required: required, disabled: disabled, id: id, placeholder: placeholder, ref: inputRef, onChange: function (e) {
|
|
2741
|
+
React.createElement("input", { className: "bianic-livesearch-input bianic-fgc-target field peer w-full rounded border border-bia-grey-dark-10 bg-primary-white read-only:pointer-events-none read-only:border-bia-grey-disabled focus-visible:outline-none enabled:hover:rounded-b-none enabled:hover:border-b-bia-blue enabled:focus:rounded-b-none enabled:focus:border-b-bia-blue disabled:border-bia-grey-dark-10 disabled:bg-bia-grey-light-10 disabled:text-bia-coolgrey ".concat(inputClass), onClick: function () { return setIsOpen(!isOpen); }, value: searchTerm, required: required, disabled: disabled, id: id, placeholder: placeholder, ref: inputRef, onChange: function (e) {
|
|
2722
2742
|
onChangeText(e);
|
|
2723
2743
|
handleInputChange(e);
|
|
2724
2744
|
}, type: "text", readOnly: readOnly, autoComplete: autoComplete }),
|
|
@@ -2740,7 +2760,7 @@ function LiveSearch(_a) {
|
|
|
2740
2760
|
? renderedChildren
|
|
2741
2761
|
: // If no results and searchTerm is present
|
|
2742
2762
|
searchTerm.length > 0 && (React.createElement(DropdownItem, { content: React.createElement("div", { className: "px-4 py-2 text-gray-500" }, "Tidak ada hasil ditemukan.") }))))),
|
|
2743
|
-
descText && (React.createElement("span", { className: "desc text-
|
|
2763
|
+
descText && (React.createElement("span", { className: "bianic-livesearch-desc bianic-text-input-desc whitespace-nowrap text-xs ".concat(descColor) }, descText))));
|
|
2744
2764
|
}
|
|
2745
2765
|
LiveSearch.defaultProps = {
|
|
2746
2766
|
descText: '',
|
|
@@ -4216,4 +4236,4 @@ function Window(_a) {
|
|
|
4216
4236
|
React.createElement("div", { className: "bianic-window-content flex w-full flex-col items-start gap-[20px] px-[20px] pb-[20px] text-primary-black" }, rest.children)));
|
|
4217
4237
|
}
|
|
4218
4238
|
|
|
4219
|
-
export { Accordions, Alert, Avatar, AlertRoundedSquare as BCAlertRoundedSquare, CubeHeader as BCCubeHeader, Discrepancy as BCDiscrepancy, ExposedPort as BCExposedPort, FQAnalytical as BCFQAnalytical, FQGetaway as BCFQGetaway, FQModeler as BCFQModeler, FQOperation as BCFQOperation, FQWelldone as BCFQWelldone, Flowqount as BCFlowqount, Inlet as BCInlet, Legend as BCLegend, ModalBalance as BCModalBalance, Neutral as BCNeutral, Node as BCNode, Outlet as BCOutlet, Port as BCPort, SelectAllAdd as BCSelectAllAdd, SelectAllRemove as BCSelectAllRemove, Spinner$1 as BCSpinner, Stack as BCStack, VirtualPort as BCVirtualPort, Badge, Banner, Brand, Breadcrumb, Button, ButtonApp, Checkbox, Color, ContextualButton, DatePicker, Display, Divider, DropdownContainer, DropdownItem, FileTree, FormGroup, FormGroupButton, FormGroupLabel, Heading, InfoPanel, Link, LiveSearch, MenuContainer, MenuItem, Modal, P, PaginationBar, PickerCalendar, Pills, Popover, ProgressBar, ProgressCircle, Radio, ResizeableDiv, SegmentButtonGroup, SegmentButtonItem, SelectInput, Slider, Spinner, Tab, TabMenu, TableCell, TagLabel, Text, TextArea, TextInput, Toaster, Toggle, Tooltip, Window };
|
|
4239
|
+
export { Accordions, Alert, Avatar, AlertRoundedSquare as BCAlertRoundedSquare, CubeHeader as BCCubeHeader, Discrepancy as BCDiscrepancy, ExposedPort as BCExposedPort, FQAnalytical as BCFQAnalytical, FQGetaway as BCFQGetaway, FQModeler as BCFQModeler, FQOperation as BCFQOperation, FQWelldone as BCFQWelldone, Flowqount as BCFlowqount, Inlet as BCInlet, Legend as BCLegend, ModalBalance as BCModalBalance, Neutral as BCNeutral, Node as BCNode, Outlet as BCOutlet, Port as BCPort, SelectAllAdd as BCSelectAllAdd, SelectAllRemove as BCSelectAllRemove, Spinner$1 as BCSpinner, Stack as BCStack, VirtualPort as BCVirtualPort, Badge, Banner, Brand, Breadcrumb, Button, ButtonApp, Checkbox, Color, ContextualButton, DatePicker, Display, Divider, DropdownContainer, DropdownItem, FileTree, FormGroup, FormGroupButton, FormGroupLabel, FormLabel, Heading, InfoPanel, Link, LiveSearch, MenuContainer, MenuItem, Modal, P, PaginationBar, PickerCalendar, Pills, Popover, ProgressBar, ProgressCircle, Radio, ResizeableDiv, SegmentButtonGroup, SegmentButtonItem, SelectInput, Slider, Spinner, Tab, TabMenu, TableCell, TagLabel, Text, TextArea, TextInput, Toaster, Toggle, Tooltip, Window };
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface FormLabelProps {
|
|
2
|
+
export interface FormLabelProps {
|
|
3
|
+
size?: 'sm' | 'md';
|
|
4
|
+
fontWeight?: 'normal' | 'semibold';
|
|
3
5
|
children: React.ReactNode;
|
|
4
6
|
className?: string;
|
|
5
7
|
htmlFor?: string;
|
|
@@ -7,12 +9,14 @@ interface FormLabelProps {
|
|
|
7
9
|
required?: boolean;
|
|
8
10
|
}
|
|
9
11
|
declare const FormLabel: {
|
|
10
|
-
({ children, className, htmlFor, readOnly, required, }: FormLabelProps): React.JSX.Element;
|
|
12
|
+
({ children, className, htmlFor, readOnly, required, size, fontWeight, }: FormLabelProps): React.JSX.Element;
|
|
11
13
|
defaultProps: {
|
|
12
14
|
className: string;
|
|
13
15
|
htmlFor: undefined;
|
|
14
16
|
required: boolean;
|
|
15
17
|
readOnly: boolean;
|
|
18
|
+
size: string;
|
|
19
|
+
fontWeight: string;
|
|
16
20
|
};
|
|
17
21
|
};
|
|
18
22
|
export default FormLabel;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { LiveSearchProps } from './types';
|
|
3
|
-
declare function LiveSearch({ autoComplete, children, descText, disabled, dropContProps, id, label, onChangeText, onClickDropdown, options, placeholder, readOnly, required, searchVariant, setValue, size, value, }: LiveSearchProps): React.JSX.Element;
|
|
3
|
+
declare function LiveSearch({ autoComplete, children, descText, disabled, dropContProps, id, label, onChangeText, onClickDropdown, options, placeholder, readOnly, required, searchVariant, setValue, size, isValid, value, }: LiveSearchProps): React.JSX.Element;
|
|
4
4
|
declare namespace LiveSearch {
|
|
5
5
|
var defaultProps: {
|
|
6
6
|
descText: string;
|
|
@@ -8,6 +8,7 @@ export interface LiveSearchProps extends Omit<ComponentPropsWithoutRef<'input'>,
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
dropContProps?: Omit<DropdownContainerProps, 'children'>;
|
|
10
10
|
id?: string;
|
|
11
|
+
isValid?: boolean | null;
|
|
11
12
|
label?: string;
|
|
12
13
|
onChangeText?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
13
14
|
onClickDropdown?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import SelectInputProps from './PropsInterface';
|
|
3
|
-
declare function SelectInput({ descText, disabled, size, id, label, options, required, selected, setSelected, onClickDropdown, children, dropContProps: { className: dropContClassName, ...restDropContProps }, ...props }: SelectInputProps): React.JSX.Element;
|
|
3
|
+
declare function SelectInput({ descText, disabled, size, id, isValid, label, options, required, selected, setSelected, onClickDropdown, children, dropContProps: { className: dropContClassName, ...restDropContProps }, ...props }: SelectInputProps): React.JSX.Element;
|
|
4
4
|
declare namespace SelectInput {
|
|
5
5
|
var defaultProps: {
|
|
6
6
|
descText: string;
|
|
@@ -9,3 +9,4 @@ export { SegmentButtonItem, SegmentButtonGroup } from './SegmentButton';
|
|
|
9
9
|
export { FormGroup, FormGroupButton, FormGroupLabel } from './Group';
|
|
10
10
|
export { DropdownContainer, DropdownItem } from './Dropdown';
|
|
11
11
|
export { DatePicker, PickerCalendar } from './DatePicker';
|
|
12
|
+
export { default as FormLabel } from './Label/FormLabel';
|
|
@@ -9,8 +9,9 @@ export interface MenuItemProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
9
9
|
children?: React.ReactNode | undefined;
|
|
10
10
|
onClose?: () => void;
|
|
11
11
|
zIndex?: number;
|
|
12
|
+
disabled?: boolean;
|
|
12
13
|
}
|
|
13
|
-
declare function MenuItem({ className, label, onClick, caption, isChecked, onClose, children, zIndex, inheritedOnClick, ...props }: MenuItemProps): React.JSX.Element;
|
|
14
|
+
declare function MenuItem({ className, label, onClick, caption, isChecked, onClose, children, zIndex, inheritedOnClick, disabled, ...props }: MenuItemProps): React.JSX.Element;
|
|
14
15
|
declare namespace MenuItem {
|
|
15
16
|
var defaultProps: {
|
|
16
17
|
className: string;
|
|
@@ -10,7 +10,7 @@ export { default as Color } from './Color';
|
|
|
10
10
|
export { default as Divider } from './Divider/Divider';
|
|
11
11
|
export { default as FileTree } from './FileTree';
|
|
12
12
|
export { MenuContainer, MenuItem } from './Menu';
|
|
13
|
-
export { TextInput, Radio, TextArea, Checkbox, SelectInput, LiveSearch, Toggle, SegmentButtonItem, SegmentButtonGroup, FormGroup, FormGroupButton, FormGroupLabel, DropdownItem, DropdownContainer, DatePicker, PickerCalendar, } from './Forms';
|
|
13
|
+
export { TextInput, Radio, TextArea, Checkbox, SelectInput, LiveSearch, Toggle, SegmentButtonItem, SegmentButtonGroup, FormLabel, FormGroup, FormGroupButton, FormGroupLabel, DropdownItem, DropdownContainer, DatePicker, PickerCalendar, } from './Forms';
|
|
14
14
|
export * from './Icons';
|
|
15
15
|
export { default as InfoPanel } from './InfoPanel';
|
|
16
16
|
export { default as Modal } from './Modal/Modal';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: ({ className, children, htmlFor, required, readOnly, fontWeight, size, }: import("../../../components/Forms/Label/FormLabel").FormLabelProps) => import("react").JSX.Element;
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
args: {};
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Simulation: Story;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { StoryObj } from '@storybook/react';
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: {
|
|
6
|
+
({ children, className, htmlFor, readOnly, required, size, fontWeight, }: import("../../../components/Forms/Label/FormLabel").FormLabelProps): import("react").JSX.Element;
|
|
7
|
+
defaultProps: {
|
|
8
|
+
className: string;
|
|
9
|
+
htmlFor: undefined;
|
|
10
|
+
required: boolean;
|
|
11
|
+
readOnly: boolean;
|
|
12
|
+
size: string;
|
|
13
|
+
fontWeight: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
parameters: {
|
|
17
|
+
layout: string;
|
|
18
|
+
};
|
|
19
|
+
tags: string[];
|
|
20
|
+
args: {};
|
|
21
|
+
};
|
|
22
|
+
export default meta;
|
|
23
|
+
type Story = StoryObj<typeof meta>;
|
|
24
|
+
export declare const Demo: Story;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from "@storybook/react/*";
|
|
|
2
2
|
import React from "react";
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: ({ children, ...props }: LiveSearchProps) => React.JSX.Element;
|
|
5
|
+
component: ({ children, ...props }: import("../../../components/Forms/LiveSearch/types").LiveSearchProps) => React.JSX.Element;
|
|
6
6
|
parameters: {
|
|
7
7
|
layout: string;
|
|
8
8
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -181,8 +181,9 @@ interface MenuItemProps extends ComponentPropsWithoutRef<'div'> {
|
|
|
181
181
|
children?: React$1.ReactNode | undefined;
|
|
182
182
|
onClose?: () => void;
|
|
183
183
|
zIndex?: number;
|
|
184
|
+
disabled?: boolean;
|
|
184
185
|
}
|
|
185
|
-
declare function MenuItem({ className, label, onClick, caption, isChecked, onClose, children, zIndex, inheritedOnClick, ...props }: MenuItemProps): React$1.JSX.Element;
|
|
186
|
+
declare function MenuItem({ className, label, onClick, caption, isChecked, onClose, children, zIndex, inheritedOnClick, disabled, ...props }: MenuItemProps): React$1.JSX.Element;
|
|
186
187
|
declare namespace MenuItem {
|
|
187
188
|
var defaultProps: {
|
|
188
189
|
className: string;
|
|
@@ -304,6 +305,7 @@ interface SelectInputProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size
|
|
|
304
305
|
descText?: string;
|
|
305
306
|
disabled?: boolean;
|
|
306
307
|
id?: string;
|
|
308
|
+
isValid?: boolean | null;
|
|
307
309
|
size?: 'md' | 'sm';
|
|
308
310
|
label?: string;
|
|
309
311
|
options?: any;
|
|
@@ -317,7 +319,7 @@ interface SelectInputProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size
|
|
|
317
319
|
dropContProps?: Omit<DropdownContainerProps, 'children'>;
|
|
318
320
|
}
|
|
319
321
|
|
|
320
|
-
declare function SelectInput({ descText, disabled, size, id, label, options, required, selected, setSelected, onClickDropdown, children, dropContProps: { className: dropContClassName, ...restDropContProps }, ...props }: SelectInputProps): React$1.JSX.Element;
|
|
322
|
+
declare function SelectInput({ descText, disabled, size, id, isValid, label, options, required, selected, setSelected, onClickDropdown, children, dropContProps: { className: dropContClassName, ...restDropContProps }, ...props }: SelectInputProps): React$1.JSX.Element;
|
|
321
323
|
declare namespace SelectInput {
|
|
322
324
|
var defaultProps: {
|
|
323
325
|
descText: string;
|
|
@@ -339,6 +341,7 @@ interface LiveSearchProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'
|
|
|
339
341
|
disabled?: boolean;
|
|
340
342
|
dropContProps?: Omit<DropdownContainerProps, 'children'>;
|
|
341
343
|
id?: string;
|
|
344
|
+
isValid?: boolean | null;
|
|
342
345
|
label?: string;
|
|
343
346
|
onChangeText?: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
344
347
|
onClickDropdown?: (event: MouseEvent<HTMLDivElement>) => void;
|
|
@@ -352,7 +355,7 @@ interface LiveSearchProps extends Omit<ComponentPropsWithoutRef<'input'>, 'size'
|
|
|
352
355
|
value: any;
|
|
353
356
|
}
|
|
354
357
|
|
|
355
|
-
declare function LiveSearch({ autoComplete, children, descText, disabled, dropContProps, id, label, onChangeText, onClickDropdown, options, placeholder, readOnly, required, searchVariant, setValue, size, value, }: LiveSearchProps): React$1.JSX.Element;
|
|
358
|
+
declare function LiveSearch({ autoComplete, children, descText, disabled, dropContProps, id, label, onChangeText, onClickDropdown, options, placeholder, readOnly, required, searchVariant, setValue, size, isValid, value, }: LiveSearchProps): React$1.JSX.Element;
|
|
356
359
|
declare namespace LiveSearch {
|
|
357
360
|
var defaultProps: {
|
|
358
361
|
descText: string;
|
|
@@ -470,6 +473,27 @@ interface PickerCalendarProps extends ComponentPropsWithRef<'div'> {
|
|
|
470
473
|
|
|
471
474
|
declare const PickerCalendar: React$1.FC<PickerCalendarProps>;
|
|
472
475
|
|
|
476
|
+
interface FormLabelProps {
|
|
477
|
+
size?: 'sm' | 'md';
|
|
478
|
+
fontWeight?: 'normal' | 'semibold';
|
|
479
|
+
children: React$1.ReactNode;
|
|
480
|
+
className?: string;
|
|
481
|
+
htmlFor?: string;
|
|
482
|
+
readOnly?: boolean;
|
|
483
|
+
required?: boolean;
|
|
484
|
+
}
|
|
485
|
+
declare const FormLabel: {
|
|
486
|
+
({ children, className, htmlFor, readOnly, required, size, fontWeight, }: FormLabelProps): React$1.JSX.Element;
|
|
487
|
+
defaultProps: {
|
|
488
|
+
className: string;
|
|
489
|
+
htmlFor: undefined;
|
|
490
|
+
required: boolean;
|
|
491
|
+
readOnly: boolean;
|
|
492
|
+
size: string;
|
|
493
|
+
fontWeight: string;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
496
|
+
|
|
473
497
|
interface IconProps {
|
|
474
498
|
className?: string;
|
|
475
499
|
size?: number | string;
|
|
@@ -796,4 +820,4 @@ interface WindowProps extends ComponentPropsWithRef<'div'> {
|
|
|
796
820
|
}
|
|
797
821
|
declare function Window({ size, title, zIndex, onClose, ...rest }: WindowProps): React$1.JSX.Element;
|
|
798
822
|
|
|
799
|
-
export { Accordions, Alert, Avatar, AlertRoundedSquare as BCAlertRoundedSquare, CubeHeader as BCCubeHeader, Discrepancy as BCDiscrepancy, ExposedPort as BCExposedPort, FQAnalytical as BCFQAnalytical, FQGetaway as BCFQGetaway, FQModeler as BCFQModeler, FQOperation as BCFQOperation, FQWelldone as BCFQWelldone, Flowqount as BCFlowqount, Inlet as BCInlet, Legend as BCLegend, ModalBalance as BCModalBalance, Neutral as BCNeutral, Node as BCNode, Outlet as BCOutlet, Port as BCPort, SelectAllAdd as BCSelectAllAdd, SelectAllRemove as BCSelectAllRemove, Spinner$1 as BCSpinner, Stack as BCStack, VirtualPort as BCVirtualPort, Badge, Banner, Brand, Breadcrumb, Button, ButtonApp, Checkbox, Color, ContextualButton, DatePicker, Display, Divider, DropdownContainer, DropdownItem, FileTree, FormGroup, FormGroupButton, FormGroupLabel, Heading, InfoPanel, Link, LiveSearch, MenuContainer, MenuItem, Modal, P, PaginationBar, PickerCalendar, Pills, Popover, ProgressBar, ProgressCircle, Radio, ResizeableDiv, SegmentButtonGroup, SegmentButtonItem, SelectInput, Slider, Spinner, Tab, TabMenu, TableCell, TagLabel, Text, TextArea, TextInput, Toaster, Toggle, Tooltip, Window };
|
|
823
|
+
export { Accordions, Alert, Avatar, AlertRoundedSquare as BCAlertRoundedSquare, CubeHeader as BCCubeHeader, Discrepancy as BCDiscrepancy, ExposedPort as BCExposedPort, FQAnalytical as BCFQAnalytical, FQGetaway as BCFQGetaway, FQModeler as BCFQModeler, FQOperation as BCFQOperation, FQWelldone as BCFQWelldone, Flowqount as BCFlowqount, Inlet as BCInlet, Legend as BCLegend, ModalBalance as BCModalBalance, Neutral as BCNeutral, Node as BCNode, Outlet as BCOutlet, Port as BCPort, SelectAllAdd as BCSelectAllAdd, SelectAllRemove as BCSelectAllRemove, Spinner$1 as BCSpinner, Stack as BCStack, VirtualPort as BCVirtualPort, Badge, Banner, Brand, Breadcrumb, Button, ButtonApp, Checkbox, Color, ContextualButton, DatePicker, Display, Divider, DropdownContainer, DropdownItem, FileTree, FormGroup, FormGroupButton, FormGroupLabel, FormLabel, Heading, InfoPanel, Link, LiveSearch, MenuContainer, MenuItem, Modal, P, PaginationBar, PickerCalendar, Pills, Popover, ProgressBar, ProgressCircle, Radio, ResizeableDiv, SegmentButtonGroup, SegmentButtonItem, SelectInput, Slider, Spinner, Tab, TabMenu, TableCell, TagLabel, Text, TextArea, TextInput, Toaster, Toggle, Tooltip, Window };
|
package/package.json
CHANGED