period-ui 0.1.21 → 0.1.22
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/fonts/Geist-Black.otf +0 -0
- package/dist/fonts/Geist-Bold.otf +0 -0
- package/dist/fonts/Geist-ExtraBold.otf +0 -0
- package/dist/fonts/Geist-ExtraLight.otf +0 -0
- package/dist/fonts/Geist-Light.otf +0 -0
- package/dist/fonts/Geist-Medium.otf +0 -0
- package/dist/fonts/Geist-Regular.otf +0 -0
- package/dist/fonts/Geist-SemiBold.otf +0 -0
- package/dist/fonts/Geist-Thin.otf +0 -0
- package/dist/fonts/billo-icons.eot +0 -0
- package/dist/fonts/billo-icons.svg +606 -0
- package/dist/fonts/billo-icons.ttf +0 -0
- package/dist/fonts/billo-icons.woff +0 -0
- package/dist/index.js +49 -30
- package/package.json +6 -6
- package/dist/components/atoms/billo-icon/billo-icon-types.js +0 -122
- package/dist/components/atoms/billo-icon/billo-icon-types.js.map +0 -1
- package/dist/components/atoms/billo-icon/billo-icon.js +0 -10
- package/dist/components/atoms/billo-icon/billo-icon.js.map +0 -1
- package/dist/components/atoms/billo-icon/index.js +0 -19
- package/dist/components/atoms/billo-icon/index.js.map +0 -1
- package/dist/components/atoms/button/button-types.js +0 -10
- package/dist/components/atoms/button/button-types.js.map +0 -1
- package/dist/components/atoms/button/button.js +0 -31
- package/dist/components/atoms/button/button.js.map +0 -1
- package/dist/components/atoms/button/index.js +0 -19
- package/dist/components/atoms/button/index.js.map +0 -1
- package/dist/components/atoms/check-box/check-box-types.js +0 -14
- package/dist/components/atoms/check-box/check-box-types.js.map +0 -1
- package/dist/components/atoms/check-box/check-box.js +0 -33
- package/dist/components/atoms/check-box/check-box.js.map +0 -1
- package/dist/components/atoms/check-box/index.js +0 -19
- package/dist/components/atoms/check-box/index.js.map +0 -1
- package/dist/components/atoms/chip/chip/chip.js +0 -13
- package/dist/components/atoms/chip/chip/chip.js.map +0 -1
- package/dist/components/atoms/chip/chip/components/clear-button.js +0 -11
- package/dist/components/atoms/chip/chip/components/clear-button.js.map +0 -1
- package/dist/components/atoms/chip/chip/index.js +0 -18
- package/dist/components/atoms/chip/chip/index.js.map +0 -1
- package/dist/components/atoms/chip/chips-list/chips-list.js +0 -11
- package/dist/components/atoms/chip/chips-list/chips-list.js.map +0 -1
- package/dist/components/atoms/chip/chips-list/index.js +0 -18
- package/dist/components/atoms/chip/chips-list/index.js.map +0 -1
- package/dist/components/atoms/drop-down-menu/components/index.js +0 -19
- package/dist/components/atoms/drop-down-menu/components/index.js.map +0 -1
- package/dist/components/atoms/drop-down-menu/components/menu-item-types.js +0 -11
- package/dist/components/atoms/drop-down-menu/components/menu-item-types.js.map +0 -1
- package/dist/components/atoms/drop-down-menu/components/menu-item.js +0 -22
- package/dist/components/atoms/drop-down-menu/components/menu-item.js.map +0 -1
- package/dist/components/atoms/drop-down-menu/drop-down-menu.js +0 -25
- package/dist/components/atoms/drop-down-menu/drop-down-menu.js.map +0 -1
- package/dist/components/atoms/drop-down-menu/index.js +0 -18
- package/dist/components/atoms/drop-down-menu/index.js.map +0 -1
- package/dist/components/atoms/icon-button/icon-button.js +0 -11
- package/dist/components/atoms/icon-button/icon-button.js.map +0 -1
- package/dist/components/atoms/icon-button/index.js +0 -18
- package/dist/components/atoms/icon-button/index.js.map +0 -1
- package/dist/components/atoms/search-bar/components/clear-button.js +0 -11
- package/dist/components/atoms/search-bar/components/clear-button.js.map +0 -1
- package/dist/components/atoms/search-bar/index.js +0 -18
- package/dist/components/atoms/search-bar/index.js.map +0 -1
- package/dist/components/atoms/search-bar/search-bar.js +0 -14
- package/dist/components/atoms/search-bar/search-bar.js.map +0 -1
- package/dist/components/atoms/text/index.js +0 -19
- package/dist/components/atoms/text/index.js.map +0 -1
- package/dist/components/atoms/text/text-types.js +0 -37
- package/dist/components/atoms/text/text-types.js.map +0 -1
- package/dist/components/atoms/text/text.js +0 -26
- package/dist/components/atoms/text/text.js.map +0 -1
- package/dist/components/atoms/text-button/index.js +0 -19
- package/dist/components/atoms/text-button/index.js.map +0 -1
- package/dist/components/atoms/text-button/text-button-types.js +0 -13
- package/dist/components/atoms/text-button/text-button-types.js.map +0 -1
- package/dist/components/atoms/text-button/text-button.js +0 -14
- package/dist/components/atoms/text-button/text-button.js.map +0 -1
- package/dist/components/index.js +0 -32
- package/dist/components/index.js.map +0 -1
- package/dist/components/molecules/form/form-select/form-select.js +0 -29
- package/dist/components/molecules/form/form-select/form-select.js.map +0 -1
- package/dist/components/molecules/form/form-select/index.js +0 -18
- package/dist/components/molecules/form/form-select/index.js.map +0 -1
- package/dist/components/molecules/form/form-story-stubs.js +0 -81
- package/dist/components/molecules/form/form-story-stubs.js.map +0 -1
- package/dist/components/molecules/form/form-test-stubs.js +0 -41
- package/dist/components/molecules/form/form-test-stubs.js.map +0 -1
- package/dist/components/molecules/form/form-text-field/form-text-field.js +0 -10
- package/dist/components/molecules/form/form-text-field/form-text-field.js.map +0 -1
- package/dist/components/molecules/form/form-text-field/index.js +0 -18
- package/dist/components/molecules/form/form-text-field/index.js.map +0 -1
- package/dist/components/molecules/form/form-types.js +0 -3
- package/dist/components/molecules/form/form-types.js.map +0 -1
- package/dist/components/molecules/form/form.js +0 -44
- package/dist/components/molecules/form/form.js.map +0 -1
- package/dist/components/molecules/form/index.js +0 -19
- package/dist/components/molecules/form/index.js.map +0 -1
- package/dist/components/molecules/select/components/select-input.js +0 -11
- package/dist/components/molecules/select/components/select-input.js.map +0 -1
- package/dist/components/molecules/select/index.js +0 -19
- package/dist/components/molecules/select/index.js.map +0 -1
- package/dist/components/molecules/select/select.js +0 -30
- package/dist/components/molecules/select/select.js.map +0 -1
- package/dist/components/molecules/select/use-select.js +0 -149
- package/dist/components/molecules/select/use-select.js.map +0 -1
- package/dist/components/molecules/text-field/index.js +0 -18
- package/dist/components/molecules/text-field/index.js.map +0 -1
- package/dist/components/molecules/text-field/text-field.js +0 -10
- package/dist/components/molecules/text-field/text-field.js.map +0 -1
- package/dist/containers/form-control/components/form-error.js +0 -10
- package/dist/containers/form-control/components/form-error.js.map +0 -1
- package/dist/containers/form-control/components/form-helper.js +0 -10
- package/dist/containers/form-control/components/form-helper.js.map +0 -1
- package/dist/containers/form-control/components/form-label.js +0 -10
- package/dist/containers/form-control/components/form-label.js.map +0 -1
- package/dist/containers/form-control/form-control-types.js +0 -19
- package/dist/containers/form-control/form-control-types.js.map +0 -1
- package/dist/containers/form-control/form-control.js +0 -18
- package/dist/containers/form-control/form-control.js.map +0 -1
- package/dist/containers/form-control/index.js +0 -19
- package/dist/containers/form-control/index.js.map +0 -1
- package/dist/containers/index.js +0 -18
- package/dist/containers/index.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/utils/string-utils/string-utils.js +0 -15
- package/dist/utils/string-utils/string-utils.js.map +0 -1
- package/dist/utils/tailwind-utils.js +0 -12
- package/dist/utils/tailwind-utils.js.map +0 -1
- package/dist/utils/window-dimensions-utils.js +0 -37
- package/dist/utils/window-dimensions-utils.js.map +0 -1
- package/dist/vitest.setup.js +0 -3
- package/dist/vitest.setup.js.map +0 -1
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ClearButton = ClearButton;
|
|
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 ClearButton({ isDisabled, size = components_1.IconSize.LG, onClick, className, }) {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)("button", { type: "button", disabled: isDisabled, onClick: onClick, className: (0, tailwind_utils_1.tailwind)('group', 'w-[34px] h-[34px] md:w-[40px] md:h-[40px]', 'active:bg-gray-04', 'hover:bg-gray-05', 'focus:bg-gray-05 focus:outline-2 focus:outline-offset-2 focus:outline-blue-01', 'rounded-full cursor-pointer', isDisabled && 'cursor-not-allowed', className), children: (0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: components_1.IconSymbol.ICON_X, size: size, color: isDisabled ? components_1.IconColor.GRAY_03 : components_1.IconColor.GRAY_02, touchTarget: "w-[34px] h-[34px] md:w-[40px] md:h-[40px]", className: (0, tailwind_utils_1.tailwind)(!isDisabled &&
|
|
9
|
-
'group-active:text-gray-01 group-hover:text-gray-01 group-focus:text-gray-01') }) }));
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=clear-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clear-button.js","sourceRoot":"","sources":["../../../../../src/components/atoms/search-bar/components/clear-button.tsx"],"names":[],"mappings":";;AAUA,kCAkCC;;AA5CD,qEAA4D;AAC5D,uDAAoF;AASpF,SAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,IAAI,GAAG,qBAAQ,CAAC,EAAE,EAClB,OAAO,EACP,SAAS,GACH;IACN,OAAO,CACL,mCACE,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,IAAA,yBAAQ,EACjB,OAAO,EACP,2CAA2C,EAC3C,mBAAmB,EACnB,kBAAkB,EAClB,+EAA+E,EAC/E,6BAA6B,EAC7B,UAAU,IAAI,oBAAoB,EAClC,SAAS,CACV,YAED,uBAAC,sBAAS,IACR,IAAI,EAAE,uBAAU,CAAC,MAAM,EACvB,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,sBAAS,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAS,CAAC,OAAO,EACzD,WAAW,EAAC,2CAA2C,EACvD,SAAS,EAAE,IAAA,yBAAQ,EACjB,CAAC,UAAU;gBACT,6EAA6E,CAChF,GACD,GACK,CACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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("./search-bar"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/search-bar/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SearchBar = SearchBar;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
6
|
-
const window_dimensions_utils_1 = require("../../../utils/window-dimensions-utils");
|
|
7
|
-
const components_1 = require("../../../components");
|
|
8
|
-
const clear_button_1 = require("./components/clear-button");
|
|
9
|
-
function SearchBar({ isDisabled = false, value, placeholder, onChange, onClear, className, }) {
|
|
10
|
-
const { isMobile } = (0, window_dimensions_utils_1.useWindowDimensions)();
|
|
11
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex items-center rounded-full', 'w-[272px] md:w-[314px] lg:w-[314px] xl:w-[314px]', 'h-[50px] md:h-[56px] lg:h-[56px] xl:h-[56px]', 'border border-gray-04', value ? 'pl-4 pr-2' : 'px-4', isDisabled && 'bg-gray-05 cursor-not-allowed', !isDisabled &&
|
|
12
|
-
'hover:border-blue-02 focus-within:border-blue-01 focus-within:hover:border-blue-01', className), children: [(0, jsx_runtime_1.jsx)(components_1.BilloIcon, { icon: components_1.IconSymbol.MAGNIFYING_GLASS, size: isMobile ? components_1.IconSize.LG : components_1.IconSize.XL, color: isDisabled ? components_1.IconColor.GRAY_03 : components_1.IconColor.GRAY_02 }), (0, jsx_runtime_1.jsx)("input", { disabled: isDisabled, type: "text", value: value, placeholder: placeholder, onChange: onChange, className: (0, tailwind_utils_1.tailwind)('flex flex-row items-center py-4 ml-2 w-full', 'bg-transparent outline-none', `${components_1.TextStyle[components_1.TextVariant.BODY]}`, 'text-gray-01', 'placeholder:text-gray-03', 'disabled:text-gray-03 disabled:cursor-not-allowed') }), (0, jsx_runtime_1.jsx)(clear_button_1.ClearButton, { isDisabled: isDisabled, size: isMobile ? components_1.IconSize.XS : components_1.IconSize.SM, onClick: onClear, className: (0, tailwind_utils_1.tailwind)(!value && 'hidden') })] }));
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=search-bar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search-bar.js","sourceRoot":"","sources":["../../../../src/components/atoms/search-bar/search-bar.tsx"],"names":[],"mappings":";;AAsBA,8BAsDC;;AA3ED,kEAAyD;AACzD,oFAA6E;AAC7E,oDAO6B;AAC7B,4DAAwD;AAWxD,SAAgB,SAAS,CAAC,EACxB,UAAU,GAAG,KAAK,EAClB,KAAK,EACL,WAAW,EACX,QAAQ,EACR,OAAO,EACP,SAAS,GACH;IACN,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6CAAmB,GAAE,CAAC;IAE3C,OAAO,CACL,iCACE,SAAS,EAAE,IAAA,yBAAQ,EACjB,gCAAgC,EAChC,kDAAkD,EAClD,8CAA8C,EAC9C,uBAAuB,EACvB,KAAK,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,EAC5B,UAAU,IAAI,+BAA+B,EAC7C,CAAC,UAAU;YACT,oFAAoF,EACtF,SAAS,CACV,aAED,uBAAC,sBAAS,IACR,IAAI,EAAE,uBAAU,CAAC,gBAAgB,EACjC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,EAC1C,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,sBAAS,CAAC,OAAO,CAAC,CAAC,CAAC,sBAAS,CAAC,OAAO,GACzD,EAEF,kCACE,QAAQ,EAAE,UAAU,EACpB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,QAAQ,EAClB,SAAS,EAAE,IAAA,yBAAQ,EACjB,6CAA6C,EAC7C,6BAA6B,EAC7B,GAAG,sBAAS,CAAC,wBAAW,CAAC,IAAI,CAAC,EAAE,EAChC,cAAc,EACd,0BAA0B,EAC1B,mDAAmD,CACpD,GACD,EAEF,uBAAC,0BAAW,IACV,UAAU,EAAE,UAAU,EACtB,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,EAC1C,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,IAAA,yBAAQ,EAAC,CAAC,KAAK,IAAI,QAAQ,CAAC,GACvC,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
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"), exports);
|
|
18
|
-
__exportStar(require("./text-types"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/text/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,+CAA6B"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextColors = exports.TextStyle = exports.TextVariant = void 0;
|
|
4
|
-
var TextVariant;
|
|
5
|
-
(function (TextVariant) {
|
|
6
|
-
TextVariant["HEADLINE"] = "headline";
|
|
7
|
-
TextVariant["SUBTITLE"] = "subtitle";
|
|
8
|
-
TextVariant["ACCENT"] = "accent";
|
|
9
|
-
TextVariant["BODY"] = "body";
|
|
10
|
-
TextVariant["BODY_SEMIBOLD"] = "bodySemibold";
|
|
11
|
-
TextVariant["BODY_BOLD"] = "bodyBold";
|
|
12
|
-
TextVariant["LINK"] = "link";
|
|
13
|
-
TextVariant["HELPER"] = "helper";
|
|
14
|
-
})(TextVariant || (exports.TextVariant = TextVariant = {}));
|
|
15
|
-
exports.TextStyle = {
|
|
16
|
-
[TextVariant.HEADLINE]: 'font-semibold text-[20px] leading-[26px] md:text-[28px] md:leading-[42px]',
|
|
17
|
-
[TextVariant.SUBTITLE]: 'font-semibold text-[16px] leading-[21px] md:text-[24px] md:leading-[36px]',
|
|
18
|
-
[TextVariant.ACCENT]: 'font-bold text-[16px] leading-[27px] md:text-[18px] md:leading-[27px]',
|
|
19
|
-
[TextVariant.BODY]: 'font-normal text-[14px] leading-[18px] md:text-[16px] md:leading-[24px]',
|
|
20
|
-
[TextVariant.BODY_SEMIBOLD]: 'font-semibold text-[14px] leading-[18px] md:text-[16px] md:leading-[24px]',
|
|
21
|
-
[TextVariant.BODY_BOLD]: 'font-bold text-[14px] leading-[18px] md:text-[16px] md:leading-[24px]',
|
|
22
|
-
[TextVariant.LINK]: 'cursor-pointer underline font-normal text-[14px] leading-[18px] md:text-[16px] md:leading-[24px]',
|
|
23
|
-
[TextVariant.HELPER]: 'font-normal text-[12px] leading-[16px] md:text-[14px] md:leading-[21px]',
|
|
24
|
-
};
|
|
25
|
-
var TextColors;
|
|
26
|
-
(function (TextColors) {
|
|
27
|
-
TextColors["WHITE"] = "text-white";
|
|
28
|
-
TextColors["BLACK"] = "text-gray-01";
|
|
29
|
-
TextColors["BLACK_02"] = "text-gray-02";
|
|
30
|
-
TextColors["BLACK_03"] = "text-gray-03";
|
|
31
|
-
TextColors["BLUE"] = "text-blue-01";
|
|
32
|
-
TextColors["BLUE_03"] = "text-blue-03";
|
|
33
|
-
TextColors["RED"] = "text-red-01";
|
|
34
|
-
TextColors["RED_03"] = "text-red-03";
|
|
35
|
-
TextColors["PURPLE"] = "text-purple-01";
|
|
36
|
-
})(TextColors || (exports.TextColors = TextColors = {}));
|
|
37
|
-
//# sourceMappingURL=text-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/text/text-types.ts"],"names":[],"mappings":";;;AAGA,IAAY,WASX;AATD,WAAY,WAAW;IACrB,oCAAqB,CAAA;IACrB,oCAAqB,CAAA;IACrB,gCAAiB,CAAA;IACjB,4BAAa,CAAA;IACb,6CAA8B,CAAA;IAC9B,qCAAsB,CAAA;IACtB,4BAAa,CAAA;IACb,gCAAiB,CAAA;AACnB,CAAC,EATW,WAAW,2BAAX,WAAW,QAStB;AAEY,QAAA,SAAS,GAAgC;IACpD,CAAC,WAAW,CAAC,QAAQ,CAAC,EACpB,2EAA2E;IAC7E,CAAC,WAAW,CAAC,QAAQ,CAAC,EACpB,2EAA2E;IAC7E,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,uEAAuE;IAC7F,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,yEAAyE;IAC7F,CAAC,WAAW,CAAC,aAAa,CAAC,EACzB,2EAA2E;IAC7E,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,uEAAuE;IAChG,CAAC,WAAW,CAAC,IAAI,CAAC,EAChB,kGAAkG;IACpG,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,yEAAyE;CAChG,CAAC;AAEF,IAAY,UAUX;AAVD,WAAY,UAAU;IACpB,kCAAoB,CAAA;IACpB,oCAAsB,CAAA;IACtB,uCAAyB,CAAA;IACzB,uCAAyB,CAAA;IACzB,mCAAqB,CAAA;IACrB,sCAAwB,CAAA;IACxB,iCAAmB,CAAA;IACnB,oCAAsB,CAAA;IACtB,uCAAyB,CAAA;AAC3B,CAAC,EAVW,UAAU,0BAAV,UAAU,QAUrB"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Text = void 0;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const class_variance_authority_1 = require("class-variance-authority");
|
|
7
|
-
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
8
|
-
const text_types_1 = require("./text-types");
|
|
9
|
-
const variant = Object.fromEntries(Object.values(text_types_1.TextVariant).map((variant) => [variant, text_types_1.TextStyle[variant]]));
|
|
10
|
-
const color = Object.fromEntries(Object.values(text_types_1.TextColors).map((c) => [c, c]));
|
|
11
|
-
const textStyles = (0, class_variance_authority_1.cva)(['whitespace-nowrap', 'font-geist font-variant-numeric'], {
|
|
12
|
-
variants: { variant, color },
|
|
13
|
-
defaultVariants: {
|
|
14
|
-
variant: text_types_1.TextVariant.BODY,
|
|
15
|
-
color: text_types_1.TextColors.BLACK,
|
|
16
|
-
},
|
|
17
|
-
});
|
|
18
|
-
exports.Text = (0, react_1.forwardRef)(({ as, variant, color, className, ...props }, ref) => {
|
|
19
|
-
const Component = as || 'span';
|
|
20
|
-
return ((0, jsx_runtime_1.jsx)(Component, { ref: ref, className: (0, tailwind_utils_1.tailwind)(textStyles({
|
|
21
|
-
variant: variant,
|
|
22
|
-
color,
|
|
23
|
-
className,
|
|
24
|
-
})), ...props }));
|
|
25
|
-
});
|
|
26
|
-
//# sourceMappingURL=text.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"","sources":["../../../../src/components/atoms/text/text.tsx"],"names":[],"mappings":";;;;AAAA,iCAAmC;AACnC,uEAA6D;AAC7D,kEAAyD;AACzD,6CAMsB;AAEtB,MAAM,OAAO,GAAG,MAAM,CAAC,WAAW,CAChC,MAAM,CAAC,MAAM,CAAC,wBAAW,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,sBAAS,CAAC,OAAO,CAAC,CAAC,CAAC,CAC5C,CAAC;AAEjC,MAAM,KAAK,GAA+B,MAAM,CAAC,WAAW,CAC1D,MAAM,CAAC,MAAM,CAAC,uBAAU,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CACf,CAAC;AAEhC,MAAM,UAAU,GAAG,IAAA,8BAAG,EAAC,CAAC,mBAAmB,EAAE,iCAAiC,CAAC,EAAE;IAC/E,QAAQ,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;IAC5B,eAAe,EAAE;QACf,OAAO,EAAE,wBAAW,CAAC,IAAI;QACzB,KAAK,EAAE,uBAAU,CAAC,KAAK;KACxB;CACF,CAAC,CAAC;AAgBU,QAAA,IAAI,GAAkB,IAAA,kBAAU,EAE3C,CACE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAgB,EACzD,GAAuB,EACvB,EAAE;IACF,MAAM,SAAS,GAAG,EAAE,IAAI,MAAM,CAAC;IAE/B,OAAO,CACL,uBAAC,SAAS,IACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAA,yBAAQ,EACjB,UAAU,CAAC;YACT,OAAO,EAAE,OAAgE;YACzE,KAAK;YACL,SAAS;SACV,CAAC,CACH,KACG,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
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-button"), exports);
|
|
18
|
-
__exportStar(require("./text-button-types"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/atoms/text-button/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,sDAAoC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.textButtonStyles = exports.TextButtonVariant = void 0;
|
|
4
|
-
var TextButtonVariant;
|
|
5
|
-
(function (TextButtonVariant) {
|
|
6
|
-
TextButtonVariant["DEFAULT"] = "DEFAULT";
|
|
7
|
-
TextButtonVariant["DESTRUCTIVE"] = "DESTRUCTIVE";
|
|
8
|
-
})(TextButtonVariant || (exports.TextButtonVariant = TextButtonVariant = {}));
|
|
9
|
-
exports.textButtonStyles = {
|
|
10
|
-
[TextButtonVariant.DEFAULT]: 'text-blue-01 disabled:text-blue-03 hover:bg-blue-03 active:text-blue-00 active:bg-blue-03 focus-visible:bg-blue-03',
|
|
11
|
-
[TextButtonVariant.DESTRUCTIVE]: 'text-red-01 disabled:text-red-03 hover:bg-red-03 active:text-red-00 active:bg-red-03 focus-visible:bg-red-03',
|
|
12
|
-
};
|
|
13
|
-
//# sourceMappingURL=text-button-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text-button-types.js","sourceRoot":"","sources":["../../../../src/components/atoms/text-button/text-button-types.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAGX;AAHD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,gDAA2B,CAAA;AAC7B,CAAC,EAHW,iBAAiB,iCAAjB,iBAAiB,QAG5B;AAEY,QAAA,gBAAgB,GAEzB;IACF,CAAC,iBAAiB,CAAC,OAAO,CAAC,EACzB,oHAAoH;IACtH,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAC7B,8GAA8G;CACjH,CAAC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TextButton = TextButton;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
6
|
-
const window_dimensions_utils_1 = require("../../../utils/window-dimensions-utils");
|
|
7
|
-
const components_1 = require("../../../components");
|
|
8
|
-
const text_button_types_1 = require("./text-button-types");
|
|
9
|
-
function TextButton({ isDisabled, label, className, icon, variant = text_button_types_1.TextButtonVariant.DEFAULT, onClick, }) {
|
|
10
|
-
const checkBoxVariantStyle = text_button_types_1.textButtonStyles[variant];
|
|
11
|
-
const { isMobile } = (0, window_dimensions_utils_1.useWindowDimensions)();
|
|
12
|
-
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("button", { type: "button", role: "button", disabled: isDisabled, className: (0, tailwind_utils_1.tailwind)('flex justify-center p-2 items-center rounded-lg bg-white', 'disabled:cursor-not-allowed disabled:bg-white', 'focus-visible:border-none focus-visible:outline-2 focus-visible:outline-offset-2 focus:outline-blue-01', checkBoxVariantStyle, className), onClick: onClick, children: [icon && ((0, jsx_runtime_1.jsx)(components_1.BilloIcon, { className: "mr-2 text-inherit", size: isMobile ? components_1.IconSize.LG : components_1.IconSize.XL, icon: icon })), (0, jsx_runtime_1.jsx)(components_1.Text, { variant: components_1.TextVariant.BODY_SEMIBOLD, className: "text-inherit", children: label })] }) }));
|
|
13
|
-
}
|
|
14
|
-
//# sourceMappingURL=text-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text-button.js","sourceRoot":"","sources":["../../../../src/components/atoms/text-button/text-button.tsx"],"names":[],"mappings":";;AAcA,gCAwCC;;AAtDD,kEAAyD;AACzD,oFAA6E;AAC7E,oDAAyF;AACzF,2DAA0E;AAW1E,SAAgB,UAAU,CAAC,EACzB,UAAU,EACV,KAAK,EACL,SAAS,EACT,IAAI,EACJ,OAAO,GAAG,qCAAiB,CAAC,OAAO,EACnC,OAAO,GACD;IACN,MAAM,oBAAoB,GAAG,oCAAgB,CAAC,OAAO,CAAC,CAAC;IACvD,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAA,6CAAmB,GAAE,CAAC;IAE3C,OAAO,CACL,2DACE,oCACE,IAAI,EAAC,QAAQ,EACb,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,UAAU,EACpB,SAAS,EAAE,IAAA,yBAAQ,EACjB,0DAA0D,EAC1D,+CAA+C,EAC/C,wGAAwG,EACxG,oBAAoB,EACpB,SAAS,CACV,EACD,OAAO,EAAE,OAAO,aAEf,IAAI,IAAI,CACP,uBAAC,sBAAS,IACR,SAAS,EAAC,mBAAmB,EAC7B,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,qBAAQ,CAAC,EAAE,EAC1C,IAAI,EAAE,IAAI,GACV,CACH,EAED,uBAAC,iBAAI,IAAC,OAAO,EAAE,wBAAW,CAAC,aAAa,EAAE,SAAS,EAAC,cAAc,YAC/D,KAAK,GACD,IACA,GACR,CACJ,CAAC;AACJ,CAAC"}
|
package/dist/components/index.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
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("./atoms/billo-icon"), exports);
|
|
18
|
-
__exportStar(require("./atoms/button"), exports);
|
|
19
|
-
__exportStar(require("./atoms/check-box"), exports);
|
|
20
|
-
__exportStar(require("./atoms/chip/chip"), exports);
|
|
21
|
-
__exportStar(require("./atoms/chip/chips-list"), exports);
|
|
22
|
-
__exportStar(require("./atoms/drop-down-menu"), exports);
|
|
23
|
-
__exportStar(require("./atoms/icon-button"), exports);
|
|
24
|
-
__exportStar(require("./atoms/search-bar"), exports);
|
|
25
|
-
__exportStar(require("./atoms/text"), exports);
|
|
26
|
-
__exportStar(require("./atoms/text-button"), exports);
|
|
27
|
-
__exportStar(require("./molecules/form"), exports);
|
|
28
|
-
__exportStar(require("./molecules/form/form-select"), exports);
|
|
29
|
-
__exportStar(require("./molecules/form/form-text-field"), exports);
|
|
30
|
-
__exportStar(require("./molecules/select"), exports);
|
|
31
|
-
__exportStar(require("./molecules/text-field"), exports);
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,qDAAmC;AACnC,iDAA+B;AAC/B,oDAAkC;AAClC,oDAAkC;AAClC,0DAAwC;AACxC,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,+CAA6B;AAC7B,sDAAoC;AAGpC,mDAAiC;AACjC,+DAA6C;AAC7C,mEAAiD;AACjD,qDAAmC;AACnC,yDAAuC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormSelect = FormSelect;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const containers_1 = require("../../../../containers");
|
|
6
|
-
const components_1 = require("../../../../components");
|
|
7
|
-
function FormSelect({ formControlClassName, ...props }) {
|
|
8
|
-
async function handleValueChange(value) {
|
|
9
|
-
const { formProps, formName, onChangeText } = props;
|
|
10
|
-
await formProps.setFieldValue(formName, value || '');
|
|
11
|
-
if (onChangeText) {
|
|
12
|
-
onChangeText(value);
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
async function handleChange(selectedValues) {
|
|
16
|
-
const { formProps, formName, onOptionChange, options } = props;
|
|
17
|
-
const [selectedValue] = selectedValues;
|
|
18
|
-
const newOption = options.find((option) => option.value === selectedValue);
|
|
19
|
-
if (!newOption) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
await formProps.setFieldValue(formName, newOption.label || '');
|
|
23
|
-
if (onOptionChange) {
|
|
24
|
-
onOptionChange(selectedValues);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return ((0, jsx_runtime_1.jsx)(containers_1.FormControl, { ...props, errorText: props.errorText || props.formProps.errors[props.formName], inputWidth: props.isMultiSelect ? containers_1.FormInputWidth.FOUR_COLUMN : props.inputWidth, className: formControlClassName, children: ({ isErrorVisible }) => ((0, jsx_runtime_1.jsx)(components_1.Select, { ...props, isErrorVisible: isErrorVisible, onOptionChange: handleChange, onChangeText: handleValueChange })) }));
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=form-select.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-select.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-select/form-select.tsx"],"names":[],"mappings":";;AAQA,gCA4CC;;AApDD,uDAAuF;AACvF,uDAA6D;AAO7D,SAAgB,UAAU,CAAC,EAAE,oBAAoB,EAAE,GAAG,KAAK,EAAmB;IAC5E,KAAK,UAAU,iBAAiB,CAAC,KAAa;QAC5C,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;QAEpD,MAAM,SAAS,CAAC,aAAa,CAAC,QAAS,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC;QAEtD,IAAI,YAAY,EAAE,CAAC;YACjB,YAAY,CAAC,KAAK,CAAC,CAAC;QACtB,CAAC;IACH,CAAC;IAED,KAAK,UAAU,YAAY,CAAC,cAAwB;QAClD,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;QAC/D,MAAM,CAAC,aAAa,CAAC,GAAG,cAAc,CAAC;QACvC,MAAM,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,KAAK,aAAa,CAAC,CAAC;QAE3E,IAAI,CAAC,SAAS,EAAE,CAAC;YACf,OAAO;QACT,CAAC;QAED,MAAM,SAAS,CAAC,aAAa,CAAC,QAAS,EAAE,SAAS,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC;QAEhE,IAAI,cAAc,EAAE,CAAC;YACnB,cAAc,CAAC,cAAc,CAAC,CAAC;QACjC,CAAC;IACH,CAAC;IAED,OAAO,CACL,uBAAC,wBAAW,OACN,KAAK,EACT,SAAS,EAAE,KAAK,CAAC,SAAS,IAAK,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,QAAS,CAAwB,EAC7F,UAAU,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC,CAAC,2BAAc,CAAC,WAAW,CAAC,CAAC,CAAC,KAAK,CAAC,UAAU,EAC/E,SAAS,EAAE,oBAAoB,YAE9B,CAAC,EAAE,cAAc,EAAE,EAAE,EAAE,CAAC,CACvB,uBAAC,mBAAM,OACD,KAAK,EACT,cAAc,EAAE,cAAc,EAC9B,cAAc,EAAE,YAAY,EAC5B,YAAY,EAAE,iBAAiB,GAC/B,CACH,GACW,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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-select"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-select/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createMockFormikProps = createMockFormikProps;
|
|
4
|
-
function createMockFormikProps(config) {
|
|
5
|
-
const { initialValues, onSubmit } = config;
|
|
6
|
-
return {
|
|
7
|
-
isValid: true,
|
|
8
|
-
values: initialValues,
|
|
9
|
-
initialValues,
|
|
10
|
-
errors: {},
|
|
11
|
-
touched: {},
|
|
12
|
-
isSubmitting: false,
|
|
13
|
-
isValidating: false,
|
|
14
|
-
submitButtonDisabled: false,
|
|
15
|
-
status: null,
|
|
16
|
-
dirty: false,
|
|
17
|
-
submitCount: 0,
|
|
18
|
-
initialTouched: {},
|
|
19
|
-
initialErrors: {},
|
|
20
|
-
registerField: () => { },
|
|
21
|
-
unregisterField: () => { },
|
|
22
|
-
setErrors: (_errors) => { },
|
|
23
|
-
setFieldError: (_field, _message) => { },
|
|
24
|
-
setFieldTouched: async (_field, _isTouched, _shouldValidate) => { },
|
|
25
|
-
setFieldValue: async (_field, _value, _shouldValidate) => { },
|
|
26
|
-
setStatus: (_status) => { },
|
|
27
|
-
setSubmitting: (_isSubmitting) => { },
|
|
28
|
-
setTouched: async (_touched, _shouldValidate) => {
|
|
29
|
-
return;
|
|
30
|
-
},
|
|
31
|
-
setValues: async (values, _shouldValidate) => {
|
|
32
|
-
if (typeof values === 'function') {
|
|
33
|
-
const updater = values;
|
|
34
|
-
const newValues = updater(initialValues);
|
|
35
|
-
return newValues;
|
|
36
|
-
}
|
|
37
|
-
return;
|
|
38
|
-
},
|
|
39
|
-
resetForm: (_nextState) => { },
|
|
40
|
-
validateForm: async () => ({}),
|
|
41
|
-
validateField: async (_field) => { },
|
|
42
|
-
submitForm: async () => { },
|
|
43
|
-
setFormikState: (_stateOrCb) => { },
|
|
44
|
-
getFieldProps: (props) => {
|
|
45
|
-
const name = typeof props === 'string' ? props : props.name;
|
|
46
|
-
return {
|
|
47
|
-
name,
|
|
48
|
-
value: initialValues[name],
|
|
49
|
-
onChange: () => { },
|
|
50
|
-
onBlur: () => { },
|
|
51
|
-
};
|
|
52
|
-
},
|
|
53
|
-
getFieldMeta: (name) => ({
|
|
54
|
-
touched: false,
|
|
55
|
-
error: undefined,
|
|
56
|
-
initialValue: initialValues[name],
|
|
57
|
-
initialTouched: false,
|
|
58
|
-
initialError: undefined,
|
|
59
|
-
value: initialValues[name],
|
|
60
|
-
}),
|
|
61
|
-
getFieldHelpers: () => ({
|
|
62
|
-
setValue: async () => {
|
|
63
|
-
return;
|
|
64
|
-
},
|
|
65
|
-
setTouched: async () => {
|
|
66
|
-
return;
|
|
67
|
-
},
|
|
68
|
-
setError: async () => {
|
|
69
|
-
return;
|
|
70
|
-
},
|
|
71
|
-
}),
|
|
72
|
-
handleBlur: (_e) => { },
|
|
73
|
-
handleChange: (_e) => { },
|
|
74
|
-
handleReset: (_e) => { },
|
|
75
|
-
handleSubmit: (e) => {
|
|
76
|
-
e?.preventDefault?.();
|
|
77
|
-
onSubmit(initialValues);
|
|
78
|
-
},
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=form-story-stubs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-story-stubs.js","sourceRoot":"","sources":["../../../../src/components/molecules/form/form-story-stubs.ts"],"names":[],"mappings":";;AAsBA,sDAyFC;AAzFD,SAAgB,qBAAqB,CACnC,MAAqB;IAErB,MAAM,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;IAE3C,OAAO;QACL,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,aAAa;QACrB,aAAa;QACb,MAAM,EAAE,EAAE;QACV,OAAO,EAAE,EAAE;QACX,YAAY,EAAE,KAAK;QACnB,YAAY,EAAE,KAAK;QACnB,oBAAoB,EAAE,KAAK;QAC3B,MAAM,EAAE,IAAI;QACZ,KAAK,EAAE,KAAK;QACZ,WAAW,EAAE,CAAC;QACd,cAAc,EAAE,EAAE;QAClB,aAAa,EAAE,EAAE;QAEjB,aAAa,EAAE,GAAG,EAAE,GAAE,CAAC;QACvB,eAAe,EAAE,GAAG,EAAE,GAAE,CAAC;QACzB,SAAS,EAAE,CAAC,OAAwB,EAAE,EAAE,GAAE,CAAC;QAC3C,aAAa,EAAE,CAAC,MAAc,EAAE,QAA4B,EAAE,EAAE,GAAE,CAAC;QACnE,eAAe,EAAE,KAAK,EAAE,MAAc,EAAE,UAAoB,EAAE,eAAyB,EAAE,EAAE,GAAE,CAAC;QAC9F,aAAa,EAAE,KAAK,EAAE,MAAc,EAAE,MAAW,EAAE,eAAyB,EAAE,EAAE,GAAE,CAAC;QACnF,SAAS,EAAE,CAAC,OAAY,EAAE,EAAE,GAAE,CAAC;QAC/B,aAAa,EAAE,CAAC,aAAsB,EAAE,EAAE,GAAE,CAAC;QAC7C,UAAU,EAAE,KAAK,EACf,QAA0B,EAC1B,eAAyB,EACQ,EAAE;YACnC,OAAO;QACT,CAAC;QACD,SAAS,EAAE,KAAK,EACd,MAAkC,EAClC,eAAyB,EACQ,EAAE;YACnC,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE,CAAC;gBACjC,MAAM,OAAO,GAAG,MAA8B,CAAC;gBAC/C,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;gBAEzC,OAAO,SAAS,CAAC;YACnB,CAAC;YACD,OAAO;QACT,CAAC;QAED,SAAS,EAAE,CAAC,UAAoC,EAAE,EAAE,GAAE,CAAC;QACvD,YAAY,EAAE,KAAK,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;QAC9B,aAAa,EAAE,KAAK,EAAE,MAAc,EAAE,EAAE,GAAE,CAAC;QAC3C,UAAU,EAAE,KAAK,IAAI,EAAE,GAAE,CAAC;QAC1B,cAAc,EAAE,CAAC,UAAe,EAAE,EAAE,GAAE,CAAC;QACvC,aAAa,EAAE,CAAc,KAAkC,EAA0B,EAAE;YACzF,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC;YAC5D,OAAO;gBACL,IAAI;gBACJ,KAAK,EAAE,aAAa,CAAC,IAAe,CAAU;gBAC9C,QAAQ,EAAE,GAAG,EAAE,GAAE,CAAC;gBAClB,MAAM,EAAE,GAAG,EAAE,GAAE,CAAC;aACjB,CAAC;QACJ,CAAC;QACD,YAAY,EAAE,CAAC,IAAY,EAAE,EAAE,CAAC,CAAC;YAC/B,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,SAAS;YAChB,YAAY,EAAE,aAAa,CAAC,IAAe,CAAC;YAC5C,cAAc,EAAE,KAAK;YACrB,YAAY,EAAE,SAAS;YACvB,KAAK,EAAE,aAAa,CAAC,IAAe,CAAC;SACtC,CAAC;QACF,eAAe,EAAE,GAAyC,EAAE,CAAC,CAAC;YAC5D,QAAQ,EAAE,KAAK,IAAI,EAAE;gBACnB,OAAO;YACT,CAAC;YACD,UAAU,EAAE,KAAK,IAAI,EAAE;gBACrB,OAAO;YACT,CAAC;YACD,QAAQ,EAAE,KAAK,IAAI,EAAE;gBACnB,OAAO;YACT,CAAC;SACF,CAAC;QAEF,UAAU,EAAE,CAAC,EAAO,EAAE,EAAE,GAAE,CAAC;QAC3B,YAAY,EAAE,CAAC,EAAO,EAAE,EAAE,GAAE,CAAC;QAC7B,WAAW,EAAE,CAAC,EAAO,EAAE,EAAE,GAAE,CAAC;QAC5B,YAAY,EAAE,CAAC,CAAoC,EAAE,EAAE;YACrD,CAAC,EAAE,cAAc,EAAE,EAAE,CAAC;YACtB,QAAQ,CAAC,aAAa,CAAC,CAAC;QAC1B,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.mockFormProps = void 0;
|
|
4
|
-
exports.mockFormProps = {
|
|
5
|
-
values: { test: '' },
|
|
6
|
-
errors: {},
|
|
7
|
-
touched: {},
|
|
8
|
-
isSubmitting: false,
|
|
9
|
-
isValid: true,
|
|
10
|
-
isValidating: false,
|
|
11
|
-
submitButtonDisabled: false,
|
|
12
|
-
status: null,
|
|
13
|
-
submitCount: 0,
|
|
14
|
-
dirty: false,
|
|
15
|
-
initialErrors: {},
|
|
16
|
-
initialTouched: {},
|
|
17
|
-
initialValues: { test: '' },
|
|
18
|
-
registerField: vi.fn(),
|
|
19
|
-
unregisterField: vi.fn(),
|
|
20
|
-
setErrors: vi.fn(),
|
|
21
|
-
setFieldError: vi.fn(),
|
|
22
|
-
setFieldTouched: vi.fn(),
|
|
23
|
-
setFieldValue: vi.fn(),
|
|
24
|
-
setStatus: vi.fn(),
|
|
25
|
-
setSubmitting: vi.fn(),
|
|
26
|
-
setTouched: vi.fn(),
|
|
27
|
-
setValues: vi.fn(),
|
|
28
|
-
resetForm: vi.fn(),
|
|
29
|
-
validateForm: vi.fn(),
|
|
30
|
-
validateField: vi.fn(),
|
|
31
|
-
submitForm: vi.fn(),
|
|
32
|
-
setFormikState: vi.fn(),
|
|
33
|
-
getFieldProps: vi.fn(),
|
|
34
|
-
getFieldMeta: vi.fn(),
|
|
35
|
-
getFieldHelpers: vi.fn(),
|
|
36
|
-
handleBlur: vi.fn(),
|
|
37
|
-
handleChange: vi.fn(),
|
|
38
|
-
handleReset: vi.fn(),
|
|
39
|
-
handleSubmit: vi.fn(),
|
|
40
|
-
};
|
|
41
|
-
//# sourceMappingURL=form-test-stubs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-test-stubs.js","sourceRoot":"","sources":["../../../../src/components/molecules/form/form-test-stubs.ts"],"names":[],"mappings":";;;AAMa,QAAA,aAAa,GAAoC;IAE5D,MAAM,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IACpB,MAAM,EAAE,EAAE;IACV,OAAO,EAAE,EAAE;IACX,YAAY,EAAE,KAAK;IACnB,OAAO,EAAE,IAAI;IACb,YAAY,EAAE,KAAK;IACnB,oBAAoB,EAAE,KAAK;IAC3B,MAAM,EAAE,IAAI;IACZ,WAAW,EAAE,CAAC;IACd,KAAK,EAAE,KAAK;IACZ,aAAa,EAAE,EAAE;IACjB,cAAc,EAAE,EAAE;IAClB,aAAa,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;IAC3B,aAAa,EAAE,EAAE,CAAC,EAAE,EAAE;IACtB,eAAe,EAAE,EAAE,CAAC,EAAE,EAAE;IAGxB,SAAS,EAAE,EAAE,CAAC,EAAE,EAAE;IAClB,aAAa,EAAE,EAAE,CAAC,EAAE,EAAE;IACtB,eAAe,EAAE,EAAE,CAAC,EAAE,EAAE;IACxB,aAAa,EAAE,EAAE,CAAC,EAAE,EAAE;IACtB,SAAS,EAAE,EAAE,CAAC,EAAE,EAAE;IAClB,aAAa,EAAE,EAAE,CAAC,EAAE,EAAE;IACtB,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE,CAAC,EAAE,EAAE;IAClB,SAAS,EAAE,EAAE,CAAC,EAAE,EAAE;IAClB,YAAY,EAAE,EAAE,CAAC,EAAE,EAAE;IACrB,aAAa,EAAE,EAAE,CAAC,EAAE,EAAE;IACtB,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE;IACnB,cAAc,EAAE,EAAE,CAAC,EAAE,EAAE;IACvB,aAAa,EAAE,EAAE,CAAC,EAAE,EAAE;IACtB,YAAY,EAAE,EAAE,CAAC,EAAE,EAAE;IACrB,eAAe,EAAE,EAAE,CAAC,EAAE,EAAE;IAGxB,UAAU,EAAE,EAAE,CAAC,EAAE,EAAE;IACnB,YAAY,EAAE,EAAE,CAAC,EAAE,EAAE;IACrB,WAAW,EAAE,EAAE,CAAC,EAAE,EAAE;IACpB,YAAY,EAAE,EAAE,CAAC,EAAE,EAAE;CACtB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormTextField = FormTextField;
|
|
4
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const containers_1 = require("../../../../containers");
|
|
6
|
-
const components_1 = require("../../../../components");
|
|
7
|
-
function FormTextField({ formControlClassName, ...props }) {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)(containers_1.FormControl, { ...props, errorText: props.errorText || props.formProps.errors[props.formName], className: formControlClassName, children: () => (0, jsx_runtime_1.jsx)(components_1.TextField, { ...props }) }));
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=form-text-field.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-text-field.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-text-field/form-text-field.tsx"],"names":[],"mappings":";;AAQA,sCAUC;;AAlBD,uDAAuE;AACvE,uDAAmE;AAOnE,SAAgB,aAAa,CAAC,EAAE,oBAAoB,EAAE,GAAG,KAAK,EAAsB;IAClF,OAAO,CACL,uBAAC,wBAAW,OACN,KAAK,EACT,SAAS,EAAE,KAAK,CAAC,SAAS,IAAK,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,QAAS,CAAwB,EAC7F,SAAS,EAAE,oBAAoB,YAE9B,GAAG,EAAE,CAAC,uBAAC,sBAAS,OAAK,KAAK,GAAI,GACnB,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
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-text-field"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/components/molecules/form/form-text-field/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-types.js","sourceRoot":"","sources":["../../../../src/components/molecules/form/form-types.ts"],"names":[],"mappings":""}
|
|
@@ -1,44 +0,0 @@
|
|
|
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 __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.Form = Form;
|
|
27
|
-
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
28
|
-
const yup = __importStar(require("yup"));
|
|
29
|
-
const formik_1 = require("formik");
|
|
30
|
-
const tailwind_utils_1 = require("../../../utils/tailwind-utils");
|
|
31
|
-
function Form({ id, config, className, children, }) {
|
|
32
|
-
const { names, initialValues, validationSchema, onSubmit } = config;
|
|
33
|
-
return ((0, jsx_runtime_1.jsx)(formik_1.Formik, { initialValues: initialValues, validationSchema: validationSchema && yup.object(validationSchema), onSubmit: onSubmit, children: (formikProps) => {
|
|
34
|
-
const submitButtonDisabled = !formikProps.dirty || !formikProps.isValid || formikProps.isSubmitting;
|
|
35
|
-
return ((0, jsx_runtime_1.jsx)("form", { id: id, role: "form", onSubmit: (event) => {
|
|
36
|
-
event.preventDefault();
|
|
37
|
-
formikProps.handleSubmit();
|
|
38
|
-
}, className: (0, tailwind_utils_1.tailwind)(className), children: children({
|
|
39
|
-
...formikProps,
|
|
40
|
-
submitButtonDisabled,
|
|
41
|
-
}, names) }));
|
|
42
|
-
} }));
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=form.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,19 +0,0 @@
|
|
|
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);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/form/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yCAAuB;AACvB,+CAA6B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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) }));
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=select-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|