period-ui 0.1.19 → 0.1.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.
- package/dist/components/atoms/billo-icon/billo-icon-types.d.ts +116 -0
- package/dist/components/atoms/billo-icon/billo-icon-types.js +9 -6
- package/dist/components/atoms/billo-icon/billo-icon-types.js.map +1 -1
- package/dist/components/atoms/billo-icon/billo-icon.d.ts +11 -0
- package/dist/components/atoms/billo-icon/billo-icon.js +8 -5
- package/dist/components/atoms/billo-icon/billo-icon.js.map +1 -1
- package/dist/components/atoms/billo-icon/index.d.ts +3 -0
- package/dist/components/atoms/billo-icon/index.js +18 -2
- package/dist/components/atoms/billo-icon/index.js.map +1 -1
- package/dist/components/atoms/button/button-types.d.ts +6 -0
- package/dist/components/atoms/button/button-types.js +5 -2
- package/dist/components/atoms/button/button-types.js.map +1 -1
- package/dist/components/atoms/button/button.d.ts +9 -0
- package/dist/components/atoms/button/button.js +12 -9
- package/dist/components/atoms/button/button.js.map +1 -1
- package/dist/components/atoms/button/index.d.ts +3 -0
- package/dist/components/atoms/button/index.js +18 -2
- package/dist/components/atoms/button/index.js.map +1 -1
- package/dist/components/atoms/check-box/check-box-types.d.ts +10 -0
- package/dist/components/atoms/check-box/check-box-types.js +6 -3
- package/dist/components/atoms/check-box/check-box-types.js.map +1 -1
- package/dist/components/atoms/check-box/check-box.d.ts +14 -0
- package/dist/components/atoms/check-box/check-box.js +16 -13
- package/dist/components/atoms/check-box/check-box.js.map +1 -1
- package/dist/components/atoms/check-box/index.d.ts +3 -0
- package/dist/components/atoms/check-box/index.js +18 -2
- package/dist/components/atoms/check-box/index.js.map +1 -1
- package/dist/components/atoms/chip/chip/chip.d.ts +9 -0
- package/dist/components/atoms/chip/chip/chip.js +11 -8
- package/dist/components/atoms/chip/chip/chip.js.map +1 -1
- package/dist/components/atoms/chip/chip/components/clear-button.d.ts +11 -0
- package/dist/components/atoms/chip/chip/components/clear-button.js +8 -5
- package/dist/components/atoms/chip/chip/components/clear-button.js.map +1 -1
- package/dist/components/atoms/chip/chip/index.d.ts +2 -0
- package/dist/components/atoms/chip/chip/index.js +17 -1
- package/dist/components/atoms/chip/chip/index.js.map +1 -1
- package/dist/components/atoms/chip/chips-list/chips-list.d.ts +15 -0
- package/dist/components/atoms/chip/chips-list/chips-list.js +8 -5
- package/dist/components/atoms/chip/chips-list/chips-list.js.map +1 -1
- package/dist/components/atoms/chip/chips-list/index.d.ts +2 -0
- package/dist/components/atoms/chip/chips-list/index.js +17 -1
- package/dist/components/atoms/chip/chips-list/index.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/components/index.d.ts +3 -0
- package/dist/components/atoms/drop-down-menu/components/index.js +18 -2
- package/dist/components/atoms/drop-down-menu/components/index.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/components/menu-item-types.d.ts +7 -0
- package/dist/components/atoms/drop-down-menu/components/menu-item-types.js +5 -2
- package/dist/components/atoms/drop-down-menu/components/menu-item-types.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/components/menu-item.d.ts +16 -0
- package/dist/components/atoms/drop-down-menu/components/menu-item.js +18 -15
- package/dist/components/atoms/drop-down-menu/components/menu-item.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/drop-down-menu.d.ts +23 -0
- package/dist/components/atoms/drop-down-menu/drop-down-menu.js +10 -7
- package/dist/components/atoms/drop-down-menu/drop-down-menu.js.map +1 -1
- package/dist/components/atoms/drop-down-menu/index.d.ts +2 -0
- package/dist/components/atoms/drop-down-menu/index.js +17 -1
- package/dist/components/atoms/drop-down-menu/index.js.map +1 -1
- package/dist/components/atoms/icon-button/icon-button.d.ts +12 -0
- package/dist/components/atoms/icon-button/icon-button.js +8 -5
- package/dist/components/atoms/icon-button/icon-button.js.map +1 -1
- package/dist/components/atoms/icon-button/index.d.ts +2 -0
- package/dist/components/atoms/icon-button/index.js +17 -1
- package/dist/components/atoms/icon-button/index.js.map +1 -1
- package/dist/components/atoms/search-bar/components/clear-button.d.ts +10 -0
- package/dist/components/atoms/search-bar/components/clear-button.js +8 -5
- package/dist/components/atoms/search-bar/components/clear-button.js.map +1 -1
- package/dist/components/atoms/search-bar/index.d.ts +2 -0
- package/dist/components/atoms/search-bar/index.js +17 -1
- package/dist/components/atoms/search-bar/index.js.map +1 -1
- package/dist/components/atoms/search-bar/search-bar.d.ts +12 -0
- package/dist/components/atoms/search-bar/search-bar.js +12 -9
- package/dist/components/atoms/search-bar/search-bar.js.map +1 -1
- package/dist/components/atoms/text/index.d.ts +3 -0
- package/dist/components/atoms/text/index.js +18 -2
- package/dist/components/atoms/text/index.js.map +1 -1
- package/dist/components/atoms/text/text-types.d.ts +36 -0
- package/dist/components/atoms/text/text-types.js +8 -5
- package/dist/components/atoms/text/text-types.js.map +1 -1
- package/dist/components/atoms/text/text.d.ts +14 -0
- package/dist/components/atoms/text/text.js +15 -12
- package/dist/components/atoms/text/text.js.map +1 -1
- package/dist/components/atoms/text-button/index.d.ts +3 -0
- package/dist/components/atoms/text-button/index.js +18 -2
- package/dist/components/atoms/text-button/index.js.map +1 -1
- package/dist/components/atoms/text-button/text-button-types.d.ts +8 -0
- package/dist/components/atoms/text-button/text-button-types.js +6 -3
- package/dist/components/atoms/text-button/text-button-types.js.map +1 -1
- package/dist/components/atoms/text-button/text-button.d.ts +13 -0
- package/dist/components/atoms/text-button/text-button.js +12 -9
- package/dist/components/atoms/text-button/text-button.js.map +1 -1
- package/dist/components/index.d.ts +16 -0
- package/dist/components/index.js +31 -15
- package/dist/components/index.js.map +1 -1
- package/dist/components/molecules/form/form-select/form-select.d.ts +7 -0
- package/dist/components/molecules/form/form-select/form-select.js +8 -5
- package/dist/components/molecules/form/form-select/form-select.js.map +1 -1
- package/dist/components/molecules/form/form-select/index.d.ts +2 -0
- package/dist/components/molecules/form/form-select/index.js +17 -1
- package/dist/components/molecules/form/form-select/index.js.map +1 -1
- package/dist/components/molecules/form/form-story-stubs.d.ts +11 -0
- package/dist/components/molecules/form/form-story-stubs.js +4 -1
- package/dist/components/molecules/form/form-story-stubs.js.map +1 -1
- package/dist/components/molecules/form/form-test-stubs.d.ts +6 -0
- package/dist/components/molecules/form/form-test-stubs.js +4 -1
- package/dist/components/molecules/form/form-test-stubs.js.map +1 -1
- package/dist/components/molecules/form/form-text-field/form-text-field.d.ts +7 -0
- package/dist/components/molecules/form/form-text-field/form-text-field.js +8 -5
- package/dist/components/molecules/form/form-text-field/form-text-field.js.map +1 -1
- package/dist/components/molecules/form/form-text-field/index.d.ts +2 -0
- package/dist/components/molecules/form/form-text-field/index.js +17 -1
- package/dist/components/molecules/form/form-text-field/index.js.map +1 -1
- package/dist/components/molecules/form/form-types.d.ts +24 -0
- package/dist/components/molecules/form/form-types.js +2 -1
- package/dist/components/molecules/form/form.d.ts +12 -0
- package/dist/components/molecules/form/form.js +34 -8
- package/dist/components/molecules/form/form.js.map +1 -1
- package/dist/components/molecules/form/index.d.ts +3 -0
- package/dist/components/molecules/form/index.js +18 -2
- package/dist/components/molecules/form/index.js.map +1 -1
- package/dist/components/molecules/select/components/select-input.d.ts +8 -0
- package/dist/components/molecules/select/components/select-input.js +9 -6
- package/dist/components/molecules/select/components/select-input.js.map +1 -1
- package/dist/components/molecules/select/index.d.ts +3 -0
- package/dist/components/molecules/select/index.js +18 -2
- package/dist/components/molecules/select/index.js.map +1 -1
- package/dist/components/molecules/select/select.d.ts +16 -0
- package/dist/components/molecules/select/select.js +13 -10
- package/dist/components/molecules/select/select.js.map +1 -1
- package/dist/components/molecules/select/use-select.d.ts +23 -0
- package/dist/components/molecules/select/use-select.js +19 -16
- package/dist/components/molecules/select/use-select.js.map +1 -1
- package/dist/components/molecules/text-field/index.d.ts +2 -0
- package/dist/components/molecules/text-field/index.js +17 -1
- package/dist/components/molecules/text-field/index.js.map +1 -1
- package/dist/components/molecules/text-field/text-field.d.ts +18 -0
- package/dist/components/molecules/text-field/text-field.js +8 -5
- package/dist/components/molecules/text-field/text-field.js.map +1 -1
- package/dist/containers/form-control/components/form-error.d.ts +7 -0
- package/dist/containers/form-control/components/form-error.js +8 -5
- package/dist/containers/form-control/components/form-error.js.map +1 -1
- package/dist/containers/form-control/components/form-helper.d.ts +9 -0
- package/dist/containers/form-control/components/form-helper.js +8 -5
- package/dist/containers/form-control/components/form-helper.js.map +1 -1
- package/dist/containers/form-control/components/form-label.d.ts +10 -0
- package/dist/containers/form-control/components/form-label.js +8 -5
- package/dist/containers/form-control/components/form-label.js.map +1 -1
- package/dist/containers/form-control/form-control-types.d.ts +11 -0
- package/dist/containers/form-control/form-control-types.js +6 -3
- package/dist/containers/form-control/form-control-types.js.map +1 -1
- package/dist/containers/form-control/form-control.d.ts +24 -0
- package/dist/containers/form-control/form-control.js +13 -10
- package/dist/containers/form-control/form-control.js.map +1 -1
- package/dist/containers/form-control/index.d.ts +3 -0
- package/dist/containers/form-control/index.js +18 -2
- package/dist/containers/form-control/index.js.map +1 -1
- package/dist/containers/index.d.ts +2 -0
- package/dist/containers/index.js +17 -1
- package/dist/containers/index.js.map +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +29 -4
- package/dist/index.js.map +1 -1
- package/dist/utils/string-utils/string-utils.d.ts +6 -0
- package/dist/utils/string-utils/string-utils.js +4 -1
- package/dist/utils/string-utils/string-utils.js.map +1 -1
- package/dist/utils/tailwind-utils.d.ts +3 -0
- package/dist/utils/tailwind-utils.js +10 -4
- package/dist/utils/tailwind-utils.js.map +1 -1
- package/dist/utils/window-dimensions-utils.d.ts +9 -0
- package/dist/utils/window-dimensions-utils.js +8 -5
- package/dist/utils/window-dimensions-utils.js.map +1 -1
- package/dist/vitest.setup.d.ts +2 -0
- package/dist/vitest.setup.js +2 -1
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../../../src/components/molecules/form/form.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form.js","sourceRoot":"","sources":["../../../../src/components/molecules/form/form.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AA8BA,oBAwCC;;AArED,yCAA2B;AAC3B,mCAA2D;AAC3D,kEAAyD;AA2BzD,SAAgB,IAAI,CAAsC,EACxD,EAAE,EACF,MAAM,EACN,SAAS,EACT,QAAQ,GACkB;IAC1B,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAEpE,OAAO,CACL,uBAAC,eAAM,IACL,aAAa,EAAE,aAAa,EAC5B,gBAAgB,EAAE,gBAAgB,IAAI,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAClE,QAAQ,EAAE,QAAQ,YAEjB,CAAC,WAAwC,EAAsB,EAAE;YAChE,MAAM,oBAAoB,GACxB,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC,WAAW,CAAC,OAAO,IAAI,WAAW,CAAC,YAAY,CAAC;YAEzE,OAAO,CACL,iCACE,EAAE,EAAE,EAAE,EACN,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE;oBAClB,KAAK,CAAC,cAAc,EAAE,CAAC;oBACvB,WAAW,CAAC,YAAY,EAAE,CAAC;gBAC7B,CAAC,EACD,SAAS,EAAE,IAAA,yBAAQ,EAAC,SAAS,CAAC,YAE7B,QAAQ,CACP;oBACE,GAAG,WAAW;oBACd,oBAAoB;iBACrB,EACD,KAAK,CACN,GACI,CACR,CAAC;QACJ,CAAC,GACM,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./form"), exports);
|
|
18
|
+
__exportStar(require("./form-types"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/form/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/form/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,+CAA6B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type SelectInputProps = {
|
|
2
|
+
isDisabled?: boolean;
|
|
3
|
+
className?: string;
|
|
4
|
+
inputValue: string;
|
|
5
|
+
handleInputChange: (value: string) => void;
|
|
6
|
+
};
|
|
7
|
+
export declare const SelectInput: import("react").ForwardRefExoticComponent<SelectInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
8
|
+
//# sourceMappingURL=select-input.d.ts.map
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SelectInput = void 0;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const components_1 = require("../../../../components");
|
|
6
|
+
const tailwind_utils_1 = require("../../../../utils/tailwind-utils");
|
|
7
|
+
const react_1 = require("react");
|
|
8
|
+
exports.SelectInput = (0, react_1.forwardRef)(function SelectInput({ className, inputValue, isDisabled = false, handleInputChange }, ref) {
|
|
9
|
+
return ((0, jsx_runtime_1.jsx)("input", { ref: ref, type: "text", disabled: isDisabled, value: inputValue, onChange: (e) => handleInputChange(e.target.value), className: (0, tailwind_utils_1.tailwind)('w-full bg-transparent outline-none cursor-pointer', 'text-gray-01', 'disabled:text-gray-03 disabled:cursor-not-allowed', `${components_1.TextStyle[components_1.TextVariant.BODY]}`, className) }));
|
|
7
10
|
});
|
|
8
11
|
//# sourceMappingURL=select-input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-input.js","sourceRoot":"","sources":["../../../../../src/components/molecules/select/components/select-input.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select-input.js","sourceRoot":"","sources":["../../../../../src/components/molecules/select/components/select-input.tsx"],"names":[],"mappings":";;;;AAAA,uDAAgE;AAChE,qEAA4D;AAC5D,iCAAiD;AASpC,QAAA,WAAW,GAAG,IAAA,kBAAU,EAAC,SAAS,WAAW,CACxD,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,GAAG,KAAK,EAAE,iBAAiB,EAAoB,EAClF,GAAmC;IAEnC,OAAO,CACL,kCACE,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,UAAU,EACpB,KAAK,EAAE,UAAU,EACjB,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAClD,SAAS,EAAE,IAAA,yBAAQ,EACjB,mDAAmD,EACnD,cAAc,EACd,mDAAmD,EACnD,GAAG,sBAAS,CAAC,wBAAW,CAAC,IAAI,CAAC,EAAE,EAChC,SAAS,CACV,GACD,CACH,CAAC;AACJ,CAAC,CAAC,CAAC"}
|
|
@@ -1,3 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./select"), exports);
|
|
18
|
+
__exportStar(require("./use-select"), exports);
|
|
3
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/select/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/select/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { DropDownMenuOptionProps } from '../../../components';
|
|
2
|
+
export type SelectProps = {
|
|
3
|
+
isDisabled?: boolean;
|
|
4
|
+
isMultiSelect?: boolean;
|
|
5
|
+
removeOnSelect?: boolean;
|
|
6
|
+
isErrorVisible?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
emptyLabel?: string;
|
|
9
|
+
initialInputValue?: string;
|
|
10
|
+
initialValues?: string[] | string;
|
|
11
|
+
options: DropDownMenuOptionProps[];
|
|
12
|
+
onChangeText?: (value: string) => void;
|
|
13
|
+
onOptionChange?: (options: string[]) => void;
|
|
14
|
+
};
|
|
15
|
+
export declare function Select({ isDisabled, isMultiSelect, removeOnSelect, isErrorVisible, className, emptyLabel, initialInputValue, initialValues, options, onChangeText, onOptionChange, }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Select = Select;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const components_1 = require("../../../components");
|
|
6
|
+
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
7
|
+
const select_input_1 = require("./components/select-input");
|
|
8
|
+
const use_select_1 = require("./use-select");
|
|
9
|
+
function Select({ isDisabled = false, isMultiSelect = false, removeOnSelect = false, isErrorVisible, className, emptyLabel, initialInputValue, initialValues, options, onChangeText, onOptionChange, }) {
|
|
10
|
+
const { openDropdownMenu, inputValue, selectedValues: selectedIDs, chipsData, searchedOptions, inputRef, containerRef, handleInputChange, handleDropdownMenu, } = (0, use_select_1.useSelect)({
|
|
8
11
|
options,
|
|
9
12
|
initialValues,
|
|
10
13
|
isMultiSelect,
|
|
@@ -13,15 +16,15 @@ export function Select({ isDisabled = false, isMultiSelect = false, removeOnSele
|
|
|
13
16
|
onChangeText,
|
|
14
17
|
onOptionChange,
|
|
15
18
|
});
|
|
16
|
-
return (
|
|
19
|
+
return ((0, jsx_runtime_1.jsxs)("div", { ref: containerRef, className: "relative w-full", children: [(0, jsx_runtime_1.jsxs)("div", { role: "button", "data-testid": "select-trigger", tabIndex: 0, onClick: (e) => {
|
|
17
20
|
const target = e.target;
|
|
18
21
|
const isClickInsideChip = target.closest('[data-chip]');
|
|
19
22
|
if (isClickInsideChip || isDisabled) {
|
|
20
23
|
return;
|
|
21
24
|
}
|
|
22
25
|
handleDropdownMenu();
|
|
23
|
-
}, className: tailwind('flex flex-none w-full p-4 justify-start items-center rounded-lg', 'border border-gray-04 bg-white', 'overflow-hidden cursor-pointer', 'hover:border-blue-02', isDisabled
|
|
26
|
+
}, className: (0, tailwind_utils_1.tailwind)('flex flex-none w-full p-4 justify-start items-center rounded-lg', 'border border-gray-04 bg-white', 'overflow-hidden cursor-pointer', 'hover:border-blue-02', isDisabled
|
|
24
27
|
? 'outline-none'
|
|
25
|
-
: 'focus-visible:border-none focus-visible:outline-2 focus-visible:outline-blue-01', { 'cursor-not-allowed bg-gray-05 border-gray-04 hover:border-gray-04': isDisabled }, { 'border-red-01': isErrorVisible }, { 'p-0 pr-4 pl-2 py-2': isMultiSelect }, className), children: [isMultiSelect ? (
|
|
28
|
+
: 'focus-visible:border-none focus-visible:outline-2 focus-visible:outline-blue-01', { 'cursor-not-allowed bg-gray-05 border-gray-04 hover:border-gray-04': isDisabled }, { 'border-red-01': isErrorVisible }, { 'p-0 pr-4 pl-2 py-2': isMultiSelect }, className), children: [isMultiSelect ? ((0, jsx_runtime_1.jsx)(components_1.ChipList, { data: chipsData, className: "mr-1 w-full max-h-[138px]", lasItemComponent: (0, jsx_runtime_1.jsx)("div", { className: "flex-grow min-w-[20px] basis-[150px]", children: (0, jsx_runtime_1.jsx)(select_input_1.SelectInput, { ref: inputRef, isDisabled: isDisabled, inputValue: inputValue, className: "h-fit md:h-10 w-full", handleInputChange: handleInputChange }) }) })) : ((0, jsx_runtime_1.jsx)(select_input_1.SelectInput, { ref: inputRef, isDisabled: isDisabled, className: (0, tailwind_utils_1.tailwind)('h-fit md:h-6 w-full'), inputValue: inputValue, handleInputChange: handleInputChange })), (0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: openDropdownMenu ? components_1.IconSymbol.CARET_UP : components_1.IconSymbol.CARET_DOWN, size: components_1.IconSize.SM, color: isDisabled ? components_1.IconColor.BLUE_03 : components_1.IconColor.BLUE_01, className: (0, tailwind_utils_1.tailwind)('ml-2') })] }), (0, jsx_runtime_1.jsx)(components_1.DropDownMenu, { selectedIDs: selectedIDs, options: searchedOptions, emptyElement: (0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, className: (0, tailwind_utils_1.tailwind)('flex whitespace-normal bg-white py-2 px-4'), children: emptyLabel }), className: (0, tailwind_utils_1.tailwind)('max-h-[313px] w-full', { hidden: !openDropdownMenu }) })] }));
|
|
26
29
|
}
|
|
27
30
|
//# sourceMappingURL=select.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../../src/components/molecules/select/select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../../../src/components/molecules/select/select.tsx"],"names":[],"mappings":";;AA6BA,wBAgHC;;AA7ID,oDAU6B;AAC7B,kEAAyD;AACzD,4DAAwD;AACxD,6CAAyC;AAgBzC,SAAgB,MAAM,CAAC,EACrB,UAAU,GAAG,KAAK,EAClB,aAAa,GAAG,KAAK,EACrB,cAAc,GAAG,KAAK,EACtB,cAAc,EACd,SAAS,EACT,UAAU,EACV,iBAAiB,EACjB,aAAa,EACb,OAAO,EACP,YAAY,EACZ,cAAc,GACF;IACZ,MAAM,EACJ,gBAAgB,EAChB,UAAU,EACV,cAAc,EAAE,WAAW,EAC3B,SAAS,EACT,eAAe,EACf,QAAQ,EACR,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,GACnB,GAAG,IAAA,sBAAS,EAAC;QACZ,OAAO;QACP,aAAa;QACb,aAAa;QACb,cAAc;QACd,iBAAiB;QACjB,YAAY;QACZ,cAAc;K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uBAAC,sBAAS,IACR,IAAI,EAAE,gBAAgB,CAAC,CAAC,CAAC,uBAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,uBAAU,CAAC,UAAU,EACpE,IAAI,EAAE,qBAAQ,CAAC,EAAE,EACjB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,sBAAS,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAS,CAAC,OAAO,EACzD,SAAS,EAAE,IAAA,yBAAQ,EAAC,MAAM,CAAC,GAC3B,IACE,EACN,uBAAC,yBAAY,IACX,WAAW,EAAE,WAAW,EACxB,OAAO,EAAE,eAAe,EACxB,YAAY,EACV,uBAAC,iBAAI,IACH,OAAO,EAAE,wBAAW,CAAC,IAAI,EACzB,SAAS,EAAE,IAAA,yBAAQ,EAAC,2CAA2C,CAAC,YAE/D,UAAU,GACN,EAET,SAAS,EAAE,IAAA,yBAAQ,EAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC,GAC1E,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ChipOptionsProps, DropDownMenuOptionProps } from '@/components';
|
|
2
|
+
export type UseSelectHook = {
|
|
3
|
+
openDropdownMenu: boolean;
|
|
4
|
+
inputValue: string;
|
|
5
|
+
selectedValues: string[];
|
|
6
|
+
chipsData: ChipOptionsProps[];
|
|
7
|
+
searchedOptions: DropDownMenuOptionProps[];
|
|
8
|
+
inputRef: React.RefObject<HTMLInputElement>;
|
|
9
|
+
containerRef: React.RefObject<HTMLInputElement>;
|
|
10
|
+
handleDropdownMenu: () => void;
|
|
11
|
+
handleInputChange: (value: string) => void;
|
|
12
|
+
};
|
|
13
|
+
export type UseSelectProps = {
|
|
14
|
+
isMultiSelect: boolean;
|
|
15
|
+
removeOnSelect: boolean;
|
|
16
|
+
initialInputValue?: string;
|
|
17
|
+
options: DropDownMenuOptionProps[];
|
|
18
|
+
initialValues?: string[] | string;
|
|
19
|
+
onChangeText?: (value: string) => void;
|
|
20
|
+
onOptionChange?: (options: string[]) => void;
|
|
21
|
+
};
|
|
22
|
+
export declare function useSelect({ isMultiSelect, removeOnSelect, initialInputValue, options, initialValues, onChangeText, onOptionChange, }: UseSelectProps): UseSelectHook;
|
|
23
|
+
//# sourceMappingURL=use-select.d.ts.map
|
|
@@ -1,24 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
const [
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.useSelect = useSelect;
|
|
4
|
+
const react_1 = require("react");
|
|
5
|
+
const string_utils_1 = require("../../../utils/string-utils/string-utils");
|
|
6
|
+
function useSelect({ isMultiSelect, removeOnSelect, initialInputValue, options, initialValues, onChangeText = () => { }, onOptionChange = () => { }, }) {
|
|
7
|
+
const { normalize } = (0, string_utils_1.useStringUtils)();
|
|
8
|
+
const [chipsData, setChipsData] = (0, react_1.useState)([]);
|
|
9
|
+
const [openDropdownMenu, setOpenDropdownMenu] = (0, react_1.useState)(false);
|
|
10
|
+
const [searchedOptions, setSearchedOptions] = (0, react_1.useState)([]);
|
|
11
|
+
const [selectedValues, setSelectedValues] = (0, react_1.useState)(() => {
|
|
9
12
|
const values = Array.isArray(initialValues) ? initialValues : [initialValues];
|
|
10
13
|
return options.filter((option) => values.includes(option.value)).map((option) => option.value);
|
|
11
14
|
});
|
|
12
|
-
const [inputValue, setInputValue] = useState(() => {
|
|
15
|
+
const [inputValue, setInputValue] = (0, react_1.useState)(() => {
|
|
13
16
|
const values = Array.isArray(initialValues) ? initialValues : [initialValues];
|
|
14
17
|
const [value] = options
|
|
15
18
|
.filter((option) => values.includes(option.value))
|
|
16
19
|
.map((option) => option.value);
|
|
17
20
|
return value;
|
|
18
21
|
});
|
|
19
|
-
const inputRef = useRef(null);
|
|
20
|
-
const containerRef = useRef(null);
|
|
21
|
-
const memoOptions = useMemo(() => options || [], [options]);
|
|
22
|
+
const inputRef = (0, react_1.useRef)(null);
|
|
23
|
+
const containerRef = (0, react_1.useRef)(null);
|
|
24
|
+
const memoOptions = (0, react_1.useMemo)(() => options || [], [options]);
|
|
22
25
|
function handleDropdownMenu() {
|
|
23
26
|
setOpenDropdownMenu((current) => !current);
|
|
24
27
|
}
|
|
@@ -87,14 +90,14 @@ export function useSelect({ isMultiSelect, removeOnSelect, initialInputValue, op
|
|
|
87
90
|
});
|
|
88
91
|
setSearchedOptions(filteredOptions);
|
|
89
92
|
}
|
|
90
|
-
useEffect(() => {
|
|
93
|
+
(0, react_1.useEffect)(() => {
|
|
91
94
|
const dropDownMenuOption = handleMapOptions();
|
|
92
95
|
const removedOptions = removeOnSelect
|
|
93
96
|
? dropDownMenuOption.filter((option) => !selectedValues.includes(option.value))
|
|
94
97
|
: dropDownMenuOption;
|
|
95
98
|
setSearchedOptions(removedOptions);
|
|
96
99
|
}, [memoOptions, selectedValues]);
|
|
97
|
-
useEffect(() => {
|
|
100
|
+
(0, react_1.useEffect)(() => {
|
|
98
101
|
if (!inputRef.current) {
|
|
99
102
|
return;
|
|
100
103
|
}
|
|
@@ -107,7 +110,7 @@ export function useSelect({ isMultiSelect, removeOnSelect, initialInputValue, op
|
|
|
107
110
|
}
|
|
108
111
|
inputRef.current.blur();
|
|
109
112
|
}, [openDropdownMenu]);
|
|
110
|
-
useEffect(() => {
|
|
113
|
+
(0, react_1.useEffect)(() => {
|
|
111
114
|
function handleClickOutside(event) {
|
|
112
115
|
if (containerRef.current && !containerRef.current.contains(event.target)) {
|
|
113
116
|
setOpenDropdownMenu(false);
|
|
@@ -118,7 +121,7 @@ export function useSelect({ isMultiSelect, removeOnSelect, initialInputValue, op
|
|
|
118
121
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
119
122
|
};
|
|
120
123
|
}, []);
|
|
121
|
-
useEffect(() => {
|
|
124
|
+
(0, react_1.useEffect)(() => {
|
|
122
125
|
if (!initialInputValue || isMultiSelect) {
|
|
123
126
|
return;
|
|
124
127
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-select.js","sourceRoot":"","sources":["../../../../src/components/molecules/select/use-select.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-select.js","sourceRoot":"","sources":["../../../../src/components/molecules/select/use-select.ts"],"names":[],"mappings":";;AA0BA,8BA2MC;AApOD,iCAA6D;AAC7D,2EAA0E;AAwB1E,SAAgB,SAAS,CAAC,EACxB,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,aAAa,EACb,YAAY,GAAG,GAAG,EAAE,GAAE,CAAC,EACvB,cAAc,GAAG,GAAG,EAAE,GAAE,CAAC,GACV;IAEf,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,6BAAc,GAAE,CAAC;IAGvC,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,IAAA,gBAAQ,EAAqB,EAAE,CAAC,CAAC;IACnE,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC,GAAG,IAAA,gBAAQ,EAAU,KAAK,CAAC,CAAC;IACzE,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,IAAA,gBAAQ,EAA4B,EAAE,CAAC,CAAC;IAEtF,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,IAAA,gBAAQ,EAAW,GAAG,EAAE;QAClE,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;QAE9E,OAAO,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC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,CAAC;QAE3D,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,mBAAmB,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAAC;QAChE,CAAC,CAAC;IACJ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAA,iBAAS,EAAC,GAAG,EAAE;QACb,IAAI,CAAC,iBAAiB,IAAI,aAAa,EAAE,CAAC;YACxC,OAAO;QACT,CAAC;QAED,MAAM,cAAc,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,iBAAiB,CAAC,CAAC;QAEpF,IAAI,CAAC,cAAc,EAAE,CAAC;YACpB,aAAa,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;YAEvC,OAAO;QACT,CAAC;QAED,iBAAiB,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC;QAC1C,kBAAkB,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;QACrC,aAAa,CAAC,iBAAiB,IAAI,EAAE,CAAC,CAAC;IACzC,CAAC,EAAE,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAExB,OAAO;QACL,gBAAgB;QAChB,UAAU;QACV,cAAc;QACd,SAAS;QACT,eAAe;QACf,QAAQ;QACR,YAAY;QACZ,kBAAkB;QAClB,iBAAiB;KAClB,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./text-field"), exports);
|
|
2
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/text-field/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/text-field/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
type InputFieldProps = {
|
|
3
|
+
isRequired?: boolean;
|
|
4
|
+
isDisabled?: boolean;
|
|
5
|
+
value?: any;
|
|
6
|
+
onBlur?: (event?: any) => void;
|
|
7
|
+
onChange?: (event?: any) => void;
|
|
8
|
+
onFocus?: (event?: any) => void;
|
|
9
|
+
className?: string;
|
|
10
|
+
};
|
|
11
|
+
type IntrinsicInputFieldProps = InputFieldProps & JSX.IntrinsicElements['input'];
|
|
12
|
+
export type TextFieldProps = IntrinsicInputFieldProps & {
|
|
13
|
+
ref?: RefObject<any>;
|
|
14
|
+
inputForwardedRef?: RefObject<any>;
|
|
15
|
+
};
|
|
16
|
+
export declare function TextField({ isRequired, isDisabled, type, name, value, placeholder, onBlur, onChange, className, }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=text-field.d.ts.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextField = TextField;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
6
|
+
const components_1 = require("../../../components");
|
|
7
|
+
function TextField({ isRequired, isDisabled, type = 'text', name, value, placeholder, onBlur, onChange, className, }) {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("div", { className: "flex items-center w-full", children: (0, jsx_runtime_1.jsx)("input", { type: type, required: isRequired, disabled: isDisabled, name: name, value: value, placeholder: placeholder, onBlur: onBlur, onChange: onChange, className: (0, tailwind_utils_1.tailwind)('p-4', 'border border-gray-04', 'rounded-lg bg-white', 'hover:border-blue-02 focus-within:border-blue-01 focus-within:hover:border-blue-01', `${components_1.TextVariant.BODY}`, className) }) }));
|
|
6
9
|
}
|
|
7
10
|
//# sourceMappingURL=text-field.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../../../src/components/molecules/text-field/text-field.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"text-field.js","sourceRoot":"","sources":["../../../../src/components/molecules/text-field/text-field.tsx"],"names":[],"mappings":";;AAsBA,8BAiCC;;AArDD,kEAAyD;AACzD,oDAAkD;AAmBlD,SAAgB,SAAS,CAAC,EACxB,UAAU,EACV,UAAU,EACV,IAAI,GAAG,MAAM,EACb,IAAI,EACJ,KAAK,EACL,WAAW,EACX,MAAM,EACN,QAAQ,EACR,SAAS,GACM;IACf,OAAO,CACL,gCAAK,SAAS,EAAC,0BAA0B,YACvC,kCACE,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,UAAU,EACpB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,IAAA,yBAAQ,EACjB,KAAK,EACL,uBAAuB,EACvB,qBAAqB,EACrB,oFAAoF,EACpF,GAAG,wBAAW,CAAC,IAAI,EAAE,EACrB,SAAS,CACV,GACD,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormError = FormError;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const components_1 = require("../../../components");
|
|
6
|
+
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
7
|
+
function FormError({ errorText, className }) {
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex flex-row justify-start items-start mt-2', className), children: [(0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: components_1.IconSymbol.ALERT_FILLED, size: components_1.IconSize.SM, color: components_1.IconColor.RED_01, className: (0, tailwind_utils_1.tailwind)('mr-1 pt-[2px] md:pt-[5px]') }), (0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, color: components_1.TextColors.RED, className: "whitespace-normal", children: errorText })] }));
|
|
6
9
|
}
|
|
7
10
|
//# sourceMappingURL=form-error.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-error.js","sourceRoot":"","sources":["../../../../src/containers/form-control/components/form-error.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-error.js","sourceRoot":"","sources":["../../../../src/containers/form-control/components/form-error.tsx"],"names":[],"mappings":";;AAgBA,8BAcC;;AA9BD,oDAQ6B;AAC7B,kEAAyD;AAOzD,SAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,SAAS,EAAkB;IAChE,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,yBAAQ,EAAC,8CAA8C,EAAE,SAAS,CAAC,aACjF,uBAAC,sBAAS,IACR,IAAI,EAAE,uBAAU,CAAC,YAAY,EAC7B,IAAI,EAAE,qBAAQ,CAAC,EAAE,EACjB,KAAK,EAAE,sBAAS,CAAC,MAAM,EACvB,SAAS,EAAE,IAAA,yBAAQ,EAAC,2BAA2B,CAAC,GAChD,EACF,uBAAC,iBAAI,IAAC,OAAO,EAAE,wBAAW,CAAC,IAAI,EAAE,KAAK,EAAE,uBAAU,CAAC,GAAG,EAAE,SAAS,EAAC,mBAAmB,YAClF,SAAS,GACL,IACH,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TextColors } from '../../../components';
|
|
2
|
+
type Props = {
|
|
3
|
+
helperText: string;
|
|
4
|
+
color?: TextColors;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
export declare function FormHelper({ helperText, className, color }: Props): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=form-helper.d.ts.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormHelper = FormHelper;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const components_1 = require("../../../components");
|
|
6
|
+
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
7
|
+
function FormHelper({ helperText, className, color = components_1.TextColors.BLACK_02 }) {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.HELPER, color: color, className: (0, tailwind_utils_1.tailwind)('whitespace-normal', className), children: helperText }));
|
|
6
9
|
}
|
|
7
10
|
//# sourceMappingURL=form-helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-helper.js","sourceRoot":"","sources":["../../../../src/containers/form-control/components/form-helper.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-helper.js","sourceRoot":"","sources":["../../../../src/containers/form-control/components/form-helper.tsx"],"names":[],"mappings":";;AASA,gCAUC;;AAnBD,oDAAoE;AACpE,kEAAyD;AAQzD,SAAgB,UAAU,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,KAAK,GAAG,uBAAU,CAAC,QAAQ,EAAS;IACtF,OAAO,CACL,uBAAC,iBAAI,IACH,OAAO,EAAE,wBAAW,CAAC,MAAM,EAC3B,KAAK,EAAE,KAAK,EACZ,SAAS,EAAE,IAAA,yBAAQ,EAAC,mBAAmB,EAAE,SAAS,CAAC,YAElD,UAAU,GACN,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type Props = {
|
|
2
|
+
isRequired?: boolean;
|
|
3
|
+
hideRequiredMark?: boolean;
|
|
4
|
+
label: string;
|
|
5
|
+
optionalLabel?: string;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function FormLabel({ isRequired, hideRequiredMark, label, className, optionalLabel, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=form-label.d.ts.map
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormLabel = FormLabel;
|
|
4
|
+
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const components_1 = require("../../../components");
|
|
6
|
+
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
7
|
+
function FormLabel({ isRequired = true, hideRequiredMark = false, label, className, optionalLabel, }) {
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(components_1.Text, { className: (0, tailwind_utils_1.tailwind)(className), children: [!hideRequiredMark && isRequired && ((0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, color: components_1.TextColors.PURPLE, className: "inline", children: '* ' })), (0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, className: "inline", children: label }), !hideRequiredMark && !isRequired && ((0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY, color: components_1.TextColors.BLACK_02, className: "ml-1 inline", children: optionalLabel }))] }));
|
|
6
9
|
}
|
|
7
10
|
//# sourceMappingURL=form-label.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-label.js","sourceRoot":"","sources":["../../../../src/containers/form-control/components/form-label.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"form-label.js","sourceRoot":"","sources":["../../../../src/containers/form-control/components/form-label.tsx"],"names":[],"mappings":";;AAWA,8BA6BC;;AAxCD,oDAAoE;AACpE,kEAAyD;AAUzD,SAAgB,SAAS,CAAC,EACxB,UAAU,GAAG,IAAI,EACjB,gBAAgB,GAAG,KAAK,EACxB,KAAK,EACL,SAAS,EACT,aAAa,GACP;IACN,OAAO,CACL,wBAAC,iBAAI,IAAC,SAAS,EAAE,IAAA,yBAAQ,EAAC,SAAS,CAAC,aAEjC,CAAC,gBAAgB,IAAI,UAAU,IAAI,CAClC,uBAAC,iBAAI,IAAC,OAAO,EAAE,wBAAW,CAAC,IAAI,EAAE,KAAK,EAAE,uBAAU,CAAC,MAAM,EAAE,SAAS,EAAC,QAAQ,YAC1E,IAAI,GACA,CACR,EAGD,uBAAC,iBAAI,IAAC,OAAO,EAAE,wBAAW,CAAC,IAAI,EAAE,SAAS,EAAC,QAAQ,YAChD,KAAK,GACD,EAGN,CAAC,gBAAgB,IAAI,CAAC,UAAU,IAAI,CACnC,uBAAC,iBAAI,IAAC,OAAO,EAAE,wBAAW,CAAC,IAAI,EAAE,KAAK,EAAE,uBAAU,CAAC,QAAQ,EAAE,SAAS,EAAC,aAAa,YACjF,aAAa,GACT,CACR,IACI,CACR,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum FormInputWidth {
|
|
2
|
+
ONE_COLUMN = "ONE_COLUMN",
|
|
3
|
+
TWO_COLUMN = "TWO_COLUMN",
|
|
4
|
+
THREE_COLUMN = "THREE_COLUMN",
|
|
5
|
+
FOUR_COLUMN = "FOUR_COLUMN",
|
|
6
|
+
FIVE_COLUMN = "FIVE_COLUMN"
|
|
7
|
+
}
|
|
8
|
+
export declare const FormInputWidthClassNames: {
|
|
9
|
+
[type in FormInputWidth]: string;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=form-control-types.d.ts.map
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.FormInputWidthClassNames = exports.FormInputWidth = void 0;
|
|
4
|
+
var FormInputWidth;
|
|
2
5
|
(function (FormInputWidth) {
|
|
3
6
|
FormInputWidth["ONE_COLUMN"] = "ONE_COLUMN";
|
|
4
7
|
FormInputWidth["TWO_COLUMN"] = "TWO_COLUMN";
|
|
5
8
|
FormInputWidth["THREE_COLUMN"] = "THREE_COLUMN";
|
|
6
9
|
FormInputWidth["FOUR_COLUMN"] = "FOUR_COLUMN";
|
|
7
10
|
FormInputWidth["FIVE_COLUMN"] = "FIVE_COLUMN";
|
|
8
|
-
})(FormInputWidth || (FormInputWidth = {}));
|
|
9
|
-
|
|
11
|
+
})(FormInputWidth || (exports.FormInputWidth = FormInputWidth = {}));
|
|
12
|
+
exports.FormInputWidthClassNames = {
|
|
10
13
|
[FormInputWidth.ONE_COLUMN]: 'w-24 max-w-24 md:max-w-24',
|
|
11
14
|
[FormInputWidth.TWO_COLUMN]: 'w-[204px] max-w-[204px] md:max-w-[204px]',
|
|
12
15
|
[FormInputWidth.THREE_COLUMN]: 'w-[272px] md:w-[320px] max-w-[272px] md:max-w-[320px]',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-control-types.js","sourceRoot":"","sources":["../../../src/containers/form-control/form-control-types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"form-control-types.js","sourceRoot":"","sources":["../../../src/containers/form-control/form-control-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,cAMX;AAND,WAAY,cAAc;IACxB,2CAAyB,CAAA;IACzB,2CAAyB,CAAA;IACzB,+CAA6B,CAAA;IAC7B,6CAA2B,CAAA;IAC3B,6CAA2B,CAAA;AAC7B,CAAC,EANW,cAAc,8BAAd,cAAc,QAMzB;AAEY,QAAA,wBAAwB,GAEjC;IACF,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,2BAA2B;IACxD,CAAC,cAAc,CAAC,UAAU,CAAC,EAAE,0CAA0C;IACvE,CAAC,cAAc,CAAC,YAAY,CAAC,EAAE,uDAAuD;IACtF,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,uDAAuD;IACrF,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,uDAAuD;CACtF,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormRenderProps } from '../../components';
|
|
3
|
+
import { FormInputWidth } from './form-control-types';
|
|
4
|
+
export type FormControlProps = {
|
|
5
|
+
isDisabled?: boolean;
|
|
6
|
+
isRequired?: boolean;
|
|
7
|
+
formName: string;
|
|
8
|
+
label?: string;
|
|
9
|
+
errorText?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
helperText?: string;
|
|
12
|
+
optionalLabel?: string;
|
|
13
|
+
inputWidth?: FormInputWidth;
|
|
14
|
+
formProps: FormRenderProps<any>;
|
|
15
|
+
};
|
|
16
|
+
type ChildrenRenderProps = {
|
|
17
|
+
isErrorVisible: boolean;
|
|
18
|
+
};
|
|
19
|
+
type Props = FormControlProps & {
|
|
20
|
+
children?: (renderProps: ChildrenRenderProps) => React.ReactElement;
|
|
21
|
+
};
|
|
22
|
+
export declare function FormControl({ isDisabled, isRequired, formName, label, formProps, className, errorText, helperText, optionalLabel, inputWidth, children, }: Props): import("react/jsx-runtime").JSX.Element;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=form-control.d.ts.map
|