period-ui 0.1.21 → 0.1.23
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 +7 -7
- 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,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("./select"), exports);
|
|
18
|
-
__exportStar(require("./use-select"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/select/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,+CAA6B"}
|
|
@@ -1,30 +0,0 @@
|
|
|
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)({
|
|
11
|
-
options,
|
|
12
|
-
initialValues,
|
|
13
|
-
isMultiSelect,
|
|
14
|
-
removeOnSelect,
|
|
15
|
-
initialInputValue,
|
|
16
|
-
onChangeText,
|
|
17
|
-
onOptionChange,
|
|
18
|
-
});
|
|
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) => {
|
|
20
|
-
const target = e.target;
|
|
21
|
-
const isClickInsideChip = target.closest('[data-chip]');
|
|
22
|
-
if (isClickInsideChip || isDisabled) {
|
|
23
|
-
return;
|
|
24
|
-
}
|
|
25
|
-
handleDropdownMenu();
|
|
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
|
|
27
|
-
? 'outline-none'
|
|
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 }) })] }));
|
|
29
|
-
}
|
|
30
|
-
//# sourceMappingURL=select.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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;KACf,CAAC,CAAC;IAEH,OAAO,CACL,iCAAK,GAAG,EAAE,YAAY,EAAE,SAAS,EAAC,iBAAiB,aAEjD,iCACE,IAAI,EAAC,QAAQ,iBACD,gBAAgB,EAC5B,QAAQ,EAAE,CAAC,EACX,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;oBAEb,MAAM,MAAM,GAAG,CAAC,CAAC,MAAqB,CAAC;oBACvC,MAAM,iBAAiB,GAAG,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;oBAExD,IAAI,iBAAiB,IAAI,UAAU,EAAE,CAAC;wBACpC,OAAO;oBACT,CAAC;oBACD,kBAAkB,EAAE,CAAC;gBACvB,CAAC,EACD,SAAS,EAAE,IAAA,yBAAQ,EACjB,iEAAiE,EACjE,gCAAgC,EAChC,gCAAgC,EAChC,sBAAsB,EACtB,UAAU;oBACR,CAAC,CAAC,cAAc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AC,sBAAsB,EAAE,EAAE,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC,GAC1E,IACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1,149 +0,0 @@
|
|
|
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)(() => {
|
|
12
|
-
const values = Array.isArray(initialValues) ? initialValues : [initialValues];
|
|
13
|
-
return options.filter((option) => values.includes(option.value)).map((option) => option.value);
|
|
14
|
-
});
|
|
15
|
-
const [inputValue, setInputValue] = (0, react_1.useState)(() => {
|
|
16
|
-
const values = Array.isArray(initialValues) ? initialValues : [initialValues];
|
|
17
|
-
const [value] = options
|
|
18
|
-
.filter((option) => values.includes(option.value))
|
|
19
|
-
.map((option) => option.value);
|
|
20
|
-
return value;
|
|
21
|
-
});
|
|
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]);
|
|
25
|
-
function handleDropdownMenu() {
|
|
26
|
-
setOpenDropdownMenu((current) => !current);
|
|
27
|
-
}
|
|
28
|
-
function handleUnSelect(optionValue) {
|
|
29
|
-
const mappedOptions = handleMapOptions();
|
|
30
|
-
const filteredOptions = mappedOptions.filter((option) => {
|
|
31
|
-
return !selectedValues.includes(option.value) || option.value === optionValue;
|
|
32
|
-
});
|
|
33
|
-
setSearchedOptions(filteredOptions);
|
|
34
|
-
setSelectedValues((current) => current.filter((value) => value !== optionValue));
|
|
35
|
-
setChipsData((current) => current.filter((chip) => chip.value !== optionValue));
|
|
36
|
-
}
|
|
37
|
-
function handleMapChipsData(option) {
|
|
38
|
-
if (!isMultiSelect) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
const newChip = {
|
|
42
|
-
label: option.label,
|
|
43
|
-
value: option.value,
|
|
44
|
-
onClear: () => handleUnSelect(option.value),
|
|
45
|
-
};
|
|
46
|
-
setChipsData((current) => [...current, { ...newChip }]);
|
|
47
|
-
}
|
|
48
|
-
async function handleGetSelectedValues(newSelected) {
|
|
49
|
-
if (!isMultiSelect) {
|
|
50
|
-
await handleInputChange(newSelected?.label ?? '');
|
|
51
|
-
return [newSelected.value];
|
|
52
|
-
}
|
|
53
|
-
setInputValue('');
|
|
54
|
-
handleMapChipsData(newSelected);
|
|
55
|
-
return [...(selectedValues || []), newSelected.value];
|
|
56
|
-
}
|
|
57
|
-
async function handleSelectOption(selectedValues) {
|
|
58
|
-
handleDropdownMenu();
|
|
59
|
-
const newSelectedValues = await handleGetSelectedValues(selectedValues);
|
|
60
|
-
setSelectedValues(newSelectedValues);
|
|
61
|
-
onOptionChange?.(newSelectedValues);
|
|
62
|
-
}
|
|
63
|
-
function handleMapOptions() {
|
|
64
|
-
const mapOptions = options.map((option) => ({
|
|
65
|
-
...option,
|
|
66
|
-
onClick: () => {
|
|
67
|
-
if (option?.onClick) {
|
|
68
|
-
option.onClick();
|
|
69
|
-
}
|
|
70
|
-
handleSelectOption(option);
|
|
71
|
-
},
|
|
72
|
-
}));
|
|
73
|
-
return mapOptions;
|
|
74
|
-
}
|
|
75
|
-
function handleInputChange(value) {
|
|
76
|
-
onChangeText(value);
|
|
77
|
-
setInputValue(value);
|
|
78
|
-
const dropDownMenuOption = handleMapOptions();
|
|
79
|
-
const removedOptions = removeOnSelect
|
|
80
|
-
? dropDownMenuOption.filter((option) => !selectedValues.includes(option.value))
|
|
81
|
-
: dropDownMenuOption;
|
|
82
|
-
const filteredOptions = removedOptions.filter((currentOption) => {
|
|
83
|
-
const normalizedValue = normalize(value).toLowerCase();
|
|
84
|
-
const hasMatchingHelper = currentOption.helperLabel &&
|
|
85
|
-
normalize(currentOption.helperLabel).toLowerCase().includes(normalizedValue);
|
|
86
|
-
const hasMatchingValue = normalize(currentOption.label)
|
|
87
|
-
.toLowerCase()
|
|
88
|
-
.includes(normalizedValue);
|
|
89
|
-
return hasMatchingValue || hasMatchingHelper;
|
|
90
|
-
});
|
|
91
|
-
setSearchedOptions(filteredOptions);
|
|
92
|
-
}
|
|
93
|
-
(0, react_1.useEffect)(() => {
|
|
94
|
-
const dropDownMenuOption = handleMapOptions();
|
|
95
|
-
const removedOptions = removeOnSelect
|
|
96
|
-
? dropDownMenuOption.filter((option) => !selectedValues.includes(option.value))
|
|
97
|
-
: dropDownMenuOption;
|
|
98
|
-
setSearchedOptions(removedOptions);
|
|
99
|
-
}, [memoOptions, selectedValues]);
|
|
100
|
-
(0, react_1.useEffect)(() => {
|
|
101
|
-
if (!inputRef.current) {
|
|
102
|
-
return;
|
|
103
|
-
}
|
|
104
|
-
inputRef.current.blur();
|
|
105
|
-
if (openDropdownMenu) {
|
|
106
|
-
inputRef.current.focus();
|
|
107
|
-
const length = inputRef.current.value.length;
|
|
108
|
-
inputRef.current.setSelectionRange(length, length);
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
inputRef.current.blur();
|
|
112
|
-
}, [openDropdownMenu]);
|
|
113
|
-
(0, react_1.useEffect)(() => {
|
|
114
|
-
function handleClickOutside(event) {
|
|
115
|
-
if (containerRef.current && !containerRef.current.contains(event.target)) {
|
|
116
|
-
setOpenDropdownMenu(false);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
document.addEventListener('mousedown', handleClickOutside);
|
|
120
|
-
return () => {
|
|
121
|
-
document.removeEventListener('mousedown', handleClickOutside);
|
|
122
|
-
};
|
|
123
|
-
}, []);
|
|
124
|
-
(0, react_1.useEffect)(() => {
|
|
125
|
-
if (!initialInputValue || isMultiSelect) {
|
|
126
|
-
return;
|
|
127
|
-
}
|
|
128
|
-
const selectedOption = options.find((option) => option.label === initialInputValue);
|
|
129
|
-
if (!selectedOption) {
|
|
130
|
-
setInputValue(initialInputValue ?? '');
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
setSelectedValues([selectedOption.value]);
|
|
134
|
-
setSearchedOptions([selectedOption]);
|
|
135
|
-
setInputValue(initialInputValue ?? '');
|
|
136
|
-
}, [initialInputValue]);
|
|
137
|
-
return {
|
|
138
|
-
openDropdownMenu,
|
|
139
|
-
inputValue,
|
|
140
|
-
selectedValues,
|
|
141
|
-
chipsData,
|
|
142
|
-
searchedOptions,
|
|
143
|
-
inputRef,
|
|
144
|
-
containerRef,
|
|
145
|
-
handleDropdownMenu,
|
|
146
|
-
handleInputChange,
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
//# sourceMappingURL=use-select.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,EA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,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,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("./text-field"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/molecules/text-field/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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) }) }));
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=text-field.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,10 +0,0 @@
|
|
|
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 })] }));
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=form-error.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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 }));
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=form-helper.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,10 +0,0 @@
|
|
|
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 }))] }));
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=form-label.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormInputWidthClassNames = exports.FormInputWidth = void 0;
|
|
4
|
-
var FormInputWidth;
|
|
5
|
-
(function (FormInputWidth) {
|
|
6
|
-
FormInputWidth["ONE_COLUMN"] = "ONE_COLUMN";
|
|
7
|
-
FormInputWidth["TWO_COLUMN"] = "TWO_COLUMN";
|
|
8
|
-
FormInputWidth["THREE_COLUMN"] = "THREE_COLUMN";
|
|
9
|
-
FormInputWidth["FOUR_COLUMN"] = "FOUR_COLUMN";
|
|
10
|
-
FormInputWidth["FIVE_COLUMN"] = "FIVE_COLUMN";
|
|
11
|
-
})(FormInputWidth || (exports.FormInputWidth = FormInputWidth = {}));
|
|
12
|
-
exports.FormInputWidthClassNames = {
|
|
13
|
-
[FormInputWidth.ONE_COLUMN]: 'w-24 max-w-24 md:max-w-24',
|
|
14
|
-
[FormInputWidth.TWO_COLUMN]: 'w-[204px] max-w-[204px] md:max-w-[204px]',
|
|
15
|
-
[FormInputWidth.THREE_COLUMN]: 'w-[272px] md:w-[320px] max-w-[272px] md:max-w-[320px]',
|
|
16
|
-
[FormInputWidth.FOUR_COLUMN]: 'w-[320px] md:w-[424px] max-w-[320px] md:max-w-[424px]',
|
|
17
|
-
[FormInputWidth.FIVE_COLUMN]: 'w-[320px] md:w-[580px] max-w-[320px] md:max-w-[580px]',
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=form-control-types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.FormControl = FormControl;
|
|
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 form_error_1 = require("./components/form-error");
|
|
8
|
-
const form_helper_1 = require("./components/form-helper");
|
|
9
|
-
const form_label_1 = require("./components/form-label");
|
|
10
|
-
const form_control_types_1 = require("./form-control-types");
|
|
11
|
-
function FormControl({ isDisabled, isRequired, formName, label, formProps, className, errorText, helperText, optionalLabel, inputWidth = form_control_types_1.FormInputWidth.FOUR_COLUMN, children, }) {
|
|
12
|
-
const widthClassName = form_control_types_1.FormInputWidthClassNames[inputWidth];
|
|
13
|
-
const isTouched = formName && formProps && formProps.touched[formName];
|
|
14
|
-
const isErrorVisible = errorText && isTouched;
|
|
15
|
-
const isHelperVisible = !isErrorVisible && helperText;
|
|
16
|
-
return ((0, jsx_runtime_1.jsxs)("div", { className: (0, tailwind_utils_1.tailwind)('flex flex-col space-y-2', widthClassName, className), children: [label && (0, jsx_runtime_1.jsx)(form_label_1.FormLabel, { isRequired: isRequired, label: label, optionalLabel: optionalLabel }), (0, jsx_runtime_1.jsx)("div", { className: (0, tailwind_utils_1.tailwind)(widthClassName), children: children ? children({ isErrorVisible: !!isErrorVisible }) : null }), isHelperVisible && ((0, jsx_runtime_1.jsx)(form_helper_1.FormHelper, { helperText: helperText, color: isDisabled ? components_1.TextColors.BLACK_03 : components_1.TextColors.BLACK_02 })), isErrorVisible && (0, jsx_runtime_1.jsx)(form_error_1.FormError, { errorText: errorText, className: "mt-2 w-fit" })] }));
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=form-control.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-control.js","sourceRoot":"","sources":["../../../src/containers/form-control/form-control.tsx"],"names":[],"mappings":";;AA8BA,kCAwCC;;AApED,iDAA+D;AAC/D,+DAAsD;AACtD,wDAAoD;AACpD,0DAAsD;AACtD,wDAAoD;AACpD,6DAAgF;AAuBhF,SAAgB,WAAW,CAAC,EAC1B,UAAU,EACV,UAAU,EACV,QAAQ,EACR,KAAK,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,aAAa,EACb,UAAU,GAAG,mCAAc,CAAC,WAAW,EACvC,QAAQ,GACF;IACN,MAAM,cAAc,GAAG,6CAAwB,CAAC,UAAU,CAAC,CAAC;IAC5D,MAAM,SAAS,GAAG,QAAQ,IAAI,SAAS,IAAI,SAAS,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACvE,MAAM,cAAc,GAAG,SAAS,IAAI,SAAS,CAAC;IAE9C,MAAM,eAAe,GAAG,CAAC,cAAc,IAAI,UAAU,CAAC;IAEtD,OAAO,CACL,iCAAK,SAAS,EAAE,IAAA,yBAAQ,EAAC,yBAAyB,EAAE,cAAc,EAAE,SAAS,CAAC,aAE3E,KAAK,IAAI,uBAAC,sBAAS,IAAC,UAAU,EAAE,UAAU,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa,EAAE,aAAa,GAAI,EAE3F,gCAAK,SAAS,EAAE,IAAA,yBAAQ,EAAC,cAAc,CAAC,YACrC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,GAC7D,EAGL,eAAe,IAAI,CAClB,uBAAC,wBAAU,IACT,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,UAAU,CAAC,CAAC,CAAC,uBAAU,CAAC,QAAQ,CAAC,CAAC,CAAC,uBAAU,CAAC,QAAQ,GAC7D,CACH,EAGA,cAAc,IAAI,uBAAC,sBAAS,IAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAC,YAAY,GAAG,IACzE,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("./form-control"), exports);
|
|
18
|
-
__exportStar(require("./form-control-types"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/containers/form-control/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,iDAA+B;AAC/B,uDAAqC"}
|
package/dist/containers/index.js
DELETED
|
@@ -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-control"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/containers/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,iDAA+B"}
|
package/dist/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACa,QAAA,gBAAgB,GAAG,IAAI,CAAC;AAGrC,2CAmBsB;AAlBpB,uGAAA,SAAS,OAAA;AACT,uGAAA,SAAS,OAAA;AACT,wGAAA,UAAU,OAAA;AACV,sGAAA,QAAQ,OAAA;AACR,oGAAA,MAAM,OAAA;AACN,2GAAA,aAAa,OAAA;AACb,sGAAA,QAAQ,OAAA;AACR,6GAAA,eAAe,OAAA;AACf,kGAAA,IAAI,OAAA;AACJ,sGAAA,QAAQ,OAAA;AACR,0GAAA,YAAY,OAAA;AACZ,wGAAA,UAAU,OAAA;AACV,uGAAA,SAAS,OAAA;AACT,kGAAA,IAAI,OAAA;AACJ,yGAAA,WAAW,OAAA;AACX,wGAAA,UAAU,OAAA;AACV,wGAAA,UAAU,OAAA;AACV,+GAAA,iBAAiB,OAAA;AAInB,2CAAkF;AAAzE,kGAAA,IAAI,OAAA;AAAE,wGAAA,UAAU,OAAA;AAAE,oGAAA,MAAM,OAAA;AAAE,2GAAA,aAAa,OAAA;AAAE,uGAAA,SAAS,OAAA"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useStringUtils = useStringUtils;
|
|
4
|
-
function useStringUtils() {
|
|
5
|
-
function normalize(value) {
|
|
6
|
-
if (!value) {
|
|
7
|
-
return '';
|
|
8
|
-
}
|
|
9
|
-
return value.normalize('NFD').replace(/\p{Diacritic}/gu, '');
|
|
10
|
-
}
|
|
11
|
-
return {
|
|
12
|
-
normalize,
|
|
13
|
-
};
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=string-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"string-utils.js","sourceRoot":"","sources":["../../../src/utils/string-utils/string-utils.ts"],"names":[],"mappings":";;AAIA,wCAYC;AAZD,SAAgB,cAAc;IAC5B,SAAS,SAAS,CAAC,KAAc;QAC/B,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,OAAO,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,iBAAiB,EAAE,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,OAAO;QACL,SAAS;KACV,CAAC;AACJ,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.tailwind = tailwind;
|
|
7
|
-
const clsx_1 = __importDefault(require("clsx"));
|
|
8
|
-
const tailwind_merge_1 = require("tailwind-merge");
|
|
9
|
-
function tailwind(...classes) {
|
|
10
|
-
return (0, tailwind_merge_1.twMerge)((0, clsx_1.default)(classes));
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=tailwind-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tailwind-utils.js","sourceRoot":"","sources":["../../src/utils/tailwind-utils.ts"],"names":[],"mappings":";;;;;AAGA,4BAEC;AALD,gDAAwC;AACxC,mDAAyC;AAEzC,SAAgB,QAAQ,CAAC,GAAG,OAAqB;IAC/C,OAAO,IAAA,wBAAO,EAAC,IAAA,cAAI,EAAC,OAAO,CAAC,CAAC,CAAC;AAChC,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useWindowDimensions = useWindowDimensions;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const screenBreakpoints = {
|
|
6
|
-
xs: 340,
|
|
7
|
-
sm: 644,
|
|
8
|
-
md: 768,
|
|
9
|
-
lg: 924,
|
|
10
|
-
xl: 1366,
|
|
11
|
-
};
|
|
12
|
-
function getWindowDimensions() {
|
|
13
|
-
if (typeof window !== 'undefined') {
|
|
14
|
-
const { innerWidth: width, innerHeight: height } = window;
|
|
15
|
-
const isMobile = width <= screenBreakpoints.md;
|
|
16
|
-
return { width, height, isMobile };
|
|
17
|
-
}
|
|
18
|
-
return { width: 0, height: 0, isMobile: true };
|
|
19
|
-
}
|
|
20
|
-
function useWindowDimensions() {
|
|
21
|
-
const [windowDimensions, setWindowDimensions] = (0, react_1.useState)(getWindowDimensions);
|
|
22
|
-
(0, react_1.useEffect)(() => {
|
|
23
|
-
function handleResize() {
|
|
24
|
-
setWindowDimensions(getWindowDimensions());
|
|
25
|
-
}
|
|
26
|
-
window.addEventListener('resize', handleResize);
|
|
27
|
-
return () => window.removeEventListener('resize', handleResize);
|
|
28
|
-
}, []);
|
|
29
|
-
const isDesktop = (0, react_1.useMemo)(() => !windowDimensions.isMobile, [windowDimensions.isMobile]);
|
|
30
|
-
return {
|
|
31
|
-
width: windowDimensions.width,
|
|
32
|
-
height: windowDimensions.height,
|
|
33
|
-
isMobile: windowDimensions.isMobile,
|
|
34
|
-
isDesktop,
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=window-dimensions-utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"window-dimensions-utils.js","sourceRoot":"","sources":["../../src/utils/window-dimensions-utils.ts"],"names":[],"mappings":";;AA4BA,kDAoBC;AAhDD,iCAAqD;AAErD,MAAM,iBAAiB,GAAG;IACxB,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,GAAG;IACP,EAAE,EAAE,IAAI;CACT,CAAC;AAEF,SAAS,mBAAmB;IAC1B,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE,CAAC;QAClC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1D,MAAM,QAAQ,GAAG,KAAK,IAAI,iBAAiB,CAAC,EAAE,CAAC;QAE/C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;IACrC,CAAC;IAED,OAAO,EAAE,KAAK,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACjD,CAAC;AASD,SAAgB,mBAAmB;IACjC,MAAM,CAAC,gBAAgB,EAAE,mBAAmB,CAAC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