@driveflux/beam 3.0.19 → 3.0.20
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/accordion/Accordion.js +203 -7
- package/dist/accordion/Accordion.stories.js +31 -11
- package/dist/alert/Alert.js +193 -19
- package/dist/alert/Alert.stories.js +50 -15
- package/dist/animations/LoadingAnimation.js +34 -21
- package/dist/badge/Badge.js +105 -7
- package/dist/badge/Badge.stories.js +28 -7
- package/dist/box/Box.js +151 -3
- package/dist/box/Box.stories.js +8 -7
- package/dist/breadcrumbs/Breadcrumbs.js +351 -26
- package/dist/breadcrumbs/Breadcrumbs.stories.js +51 -27
- package/dist/button/Button.js +190 -12
- package/dist/button/Button.stories.js +35 -7
- package/dist/button/TextButton.js +168 -9
- package/dist/card/Card.js +188 -7
- package/dist/card/Card.stories.js +10 -7
- package/dist/carousel/Carousel.js +308 -58
- package/dist/carousel/Carousel.stories.js +39 -7
- package/dist/carousel/CarouselButton.js +132 -7
- package/dist/center/Center.js +127 -3
- package/dist/center/Center.stories.js +19 -7
- package/dist/checkbox/Checkbox.js +188 -4
- package/dist/checkbox/Checkbox.stories.js +10 -8
- package/dist/chip/Chip.js +168 -3
- package/dist/chip/Chip.stories.js +19 -7
- package/dist/circular-progress/CircularProgress.js +159 -11
- package/dist/circular-progress/CircularProgress.stories.js +54 -14
- package/dist/command/command.js +249 -13
- package/dist/datepicker/DatePicker.js +245 -90
- package/dist/datepicker/DatePicker.stories.js +162 -58
- package/dist/datepicker/DatePickerDrawer.js +115 -17
- package/dist/datepicker/DatePickerPopover.js +208 -35
- package/dist/datepicker/constants.js +3 -4
- package/dist/datepicker/utils.js +4 -11
- package/dist/dialog/index.js +253 -12
- package/dist/divider/Divider.js +127 -3
- package/dist/divider/Divider.stories.js +13 -7
- package/dist/drawer/index.js +230 -12
- package/dist/dropdown/Dropdown.js +297 -26
- package/dist/dropdown/Dropdown.stories.js +109 -22
- package/dist/field-wrapper/FieldWrapper.js +203 -3
- package/dist/field-wrapper/FieldWrapper.stories.js +124 -28
- package/dist/flex/Flex.js +127 -3
- package/dist/flex/Flex.stories.js +19 -7
- package/dist/grid/Grid.js +127 -3
- package/dist/grid/Grid.stories.js +28 -7
- package/dist/hooks/use-breakpoint-value.js +77 -14
- package/dist/hooks/use-media-query.js +61 -12
- package/dist/hstack/HStack.js +127 -3
- package/dist/hstack/HStack.stories.js +19 -7
- package/dist/icons/FluxLogo.js +222 -9
- package/dist/icons/FluxLogoTable.js +118 -5
- package/dist/icons/Icon.js +117 -7
- package/dist/icons/Icon.stories.js +12 -7
- package/dist/icons/Icon24Hours.js +92 -5
- package/dist/icons/IconAcceleration.js +81 -4
- package/dist/icons/IconAccount.js +81 -4
- package/dist/icons/IconApplicant.js +87 -5
- package/dist/icons/IconArrow.js +87 -6
- package/dist/icons/IconArrowBack.js +81 -4
- package/dist/icons/IconArrowForward.js +81 -4
- package/dist/icons/IconArrowTopLeft.js +79 -4
- package/dist/icons/IconBluesharkProductGuide.js +89 -5
- package/dist/icons/IconBolt.js +81 -4
- package/dist/icons/IconBriefcase.js +81 -4
- package/dist/icons/IconBulb.js +81 -4
- package/dist/icons/IconCalendar.js +81 -4
- package/dist/icons/IconCalendarArrowBack.js +81 -4
- package/dist/icons/IconCalendarArrowForward.js +81 -4
- package/dist/icons/IconCalendarDoubleArrowBack.js +81 -4
- package/dist/icons/IconCalendarDoubleArrowForward.js +81 -4
- package/dist/icons/IconCancel.js +86 -5
- package/dist/icons/IconCancelMark.js +81 -4
- package/dist/icons/IconCarSUV.js +81 -4
- package/dist/icons/IconCarSedan.js +156 -7
- package/dist/icons/IconChain.js +88 -5
- package/dist/icons/IconCheckmark.js +81 -4
- package/dist/icons/IconChevronRight.js +81 -4
- package/dist/icons/IconCircle.js +123 -11
- package/dist/icons/IconCircleCheckmark.js +86 -5
- package/dist/icons/IconCircleError.js +81 -4
- package/dist/icons/IconCircleExclamation.js +113 -6
- package/dist/icons/IconCircleMark.js +87 -5
- package/dist/icons/IconCircleOutline.js +148 -5
- package/dist/icons/IconClock.js +89 -5
- package/dist/icons/IconClose.js +81 -4
- package/dist/icons/IconCollapseAll.js +103 -5
- package/dist/icons/IconConcierge.js +88 -5
- package/dist/icons/IconConciergeService.js +96 -5
- package/dist/icons/IconCreditCard.js +87 -5
- package/dist/icons/IconDash.js +81 -4
- package/dist/icons/IconDeliver.js +81 -4
- package/dist/icons/IconDelivery.js +96 -5
- package/dist/icons/IconDetails.js +81 -4
- package/dist/icons/IconDot.js +96 -6
- package/dist/icons/IconDownload.js +88 -5
- package/dist/icons/IconEVCharging.js +88 -5
- package/dist/icons/IconElectricCarFuel.js +89 -5
- package/dist/icons/IconEllipsis.js +87 -5
- package/dist/icons/IconEnvelope.js +81 -4
- package/dist/icons/IconExpandAll.js +103 -5
- package/dist/icons/IconEye.js +88 -5
- package/dist/icons/IconFacebook.js +103 -6
- package/dist/icons/IconFilter.js +92 -5
- package/dist/icons/IconFlagMalaysia.js +150 -5
- package/dist/icons/IconGiveKey.js +88 -5
- package/dist/icons/IconGlobe.js +79 -4
- package/dist/icons/IconGoogle.js +96 -5
- package/dist/icons/IconHome.js +87 -5
- package/dist/icons/IconHostAdvertise.js +81 -4
- package/dist/icons/IconHostCar.js +84 -4
- package/dist/icons/IconHostCash.js +100 -5
- package/dist/icons/IconHostHandle.js +79 -4
- package/dist/icons/IconHostLocation.js +79 -4
- package/dist/icons/IconHostPayment.js +100 -5
- package/dist/icons/IconHostService.js +88 -5
- package/dist/icons/IconHotDeals.js +81 -4
- package/dist/icons/IconInfo.js +86 -5
- package/dist/icons/IconInstagram.js +81 -4
- package/dist/icons/IconInsurance.js +108 -5
- package/dist/icons/IconInternet.js +82 -4
- package/dist/icons/IconInventory.js +87 -5
- package/dist/icons/IconLaurel.js +110 -5
- package/dist/icons/IconLinkedIn.js +81 -4
- package/dist/icons/IconLoading.js +87 -4
- package/dist/icons/IconLocation.js +89 -5
- package/dist/icons/IconLock.js +82 -4
- package/dist/icons/IconLogistics.js +81 -4
- package/dist/icons/IconMail.js +103 -5
- package/dist/icons/IconMember.js +87 -5
- package/dist/icons/IconMobilePen.js +92 -5
- package/dist/icons/IconMotorcycleMoped.js +87 -5
- package/dist/icons/IconNoCost.js +101 -5
- package/dist/icons/IconPDF.js +89 -5
- package/dist/icons/IconPencil.js +79 -4
- package/dist/icons/IconPhone.js +79 -4
- package/dist/icons/IconPlus.js +81 -4
- package/dist/icons/IconPricing.js +81 -4
- package/dist/icons/IconProtected.js +80 -4
- package/dist/icons/IconPsychology.js +81 -4
- package/dist/icons/IconQuestionTooltip.js +137 -4
- package/dist/icons/IconQuote.js +81 -4
- package/dist/icons/IconRate.js +80 -4
- package/dist/icons/IconRegister.js +108 -5
- package/dist/icons/IconReport.js +98 -6
- package/dist/icons/IconReturn.js +81 -4
- package/dist/icons/IconSearch.js +79 -4
- package/dist/icons/IconSecure.js +80 -4
- package/dist/icons/IconSecurity.js +82 -4
- package/dist/icons/IconSedanOutline.js +168 -5
- package/dist/icons/IconSelectArrow.js +87 -6
- package/dist/icons/IconSort.js +88 -5
- package/dist/icons/IconSortListed.js +104 -5
- package/dist/icons/IconSortPriceAscending.js +92 -5
- package/dist/icons/IconSortPriceDescending.js +92 -5
- package/dist/icons/IconSortYear.js +88 -5
- package/dist/icons/IconSpan.js +80 -4
- package/dist/icons/IconSpeaker.js +88 -4
- package/dist/icons/IconSpecialCar.js +104 -5
- package/dist/icons/IconStar.js +101 -7
- package/dist/icons/IconStockPhoto.js +104 -5
- package/dist/icons/IconSubscription.js +122 -6
- package/dist/icons/IconSubscriptions.js +122 -6
- package/dist/icons/IconSwap.js +88 -5
- package/dist/icons/IconTax.js +81 -4
- package/dist/icons/IconThinArrow.js +87 -6
- package/dist/icons/IconThumbsdown.js +87 -5
- package/dist/icons/IconThumbsup.js +87 -5
- package/dist/icons/IconTool.js +81 -4
- package/dist/icons/IconTooltip.js +137 -4
- package/dist/icons/IconTrash.js +81 -4
- package/dist/icons/IconTriangleExclamation.js +81 -4
- package/dist/icons/IconTyersBrakes.js +92 -5
- package/dist/icons/IconTyre.js +92 -5
- package/dist/icons/IconVacancy.js +87 -5
- package/dist/icons/IconVolunteer.js +81 -4
- package/dist/icons/IconWhatsapp.js +82 -4
- package/dist/icons/IconXPlatform.js +81 -4
- package/dist/icons/IconZeroEffort.js +86 -5
- package/dist/icons/Logo.js +108 -3
- package/dist/input/Input.js +134 -11
- package/dist/input/Input.stories.js +17 -18
- package/dist/input-mask/InputMask.js +158 -11
- package/dist/input-mask/InputMask.stories.js +5 -6
- package/dist/input-mask/mask-trackers.js +4 -5
- package/dist/input-select/InputSelect.js +390 -68
- package/dist/input-select/InputSelect.stories.js +98 -25
- package/dist/popover/popover.js +136 -4
- package/dist/progress/Progress.js +160 -2
- package/dist/progress/Progress.stories.js +13 -14
- package/dist/radio/Radio.js +227 -4
- package/dist/scroll-area/scroll-area.js +180 -5
- package/dist/search-input-select/SearchInputSelect.js +379 -69
- package/dist/select/Select.js +354 -29
- package/dist/select/Select.stories.js +55 -19
- package/dist/skeleton/Skeleton.js +71 -3
- package/dist/skeleton/Skeleton.stories.js +8 -7
- package/dist/slider/Slider.js +170 -5
- package/dist/slider/Slider.stories.js +12 -11
- package/dist/stack/Stack.js +127 -3
- package/dist/stack/Stack.stories.js +19 -7
- package/dist/table/Table.js +216 -10
- package/dist/table/Table.stories.js +84 -8
- package/dist/tabs/Tabs.js +198 -9
- package/dist/tabs/Tabs.stories.js +46 -13
- package/dist/text/Text.js +152 -6
- package/dist/text/Text.stories.js +44 -7
- package/dist/toast/Toast.stories.js +66 -14
- package/dist/toast/ToastBox.js +77 -29
- package/dist/toast/index.js +0 -1
- package/dist/toast/sonner.js +66 -6
- package/dist/toggle/Toggle.js +180 -7
- package/dist/toggle/Toggle.stories.js +10 -8
- package/dist/tooltip/Tooltip.js +169 -12
- package/dist/tooltip/Tooltip.stories.js +71 -13
- package/dist/utils.js +4 -2
- package/dist/vstack/VStack.js +127 -3
- package/dist/vstack/VStack.stories.js +19 -7
- package/package.json +11 -11
|
@@ -1,8 +1,85 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _object_without_properties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = {}, sourceKeys, key, i;
|
|
32
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
33
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
34
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
35
|
+
key = sourceKeys[i];
|
|
36
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
37
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
38
|
+
target[key] = source[key];
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
}
|
|
42
|
+
target = _object_without_properties_loose(source, excluded);
|
|
43
|
+
if (Object.getOwnPropertySymbols) {
|
|
44
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
45
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
46
|
+
key = sourceKeys[i];
|
|
47
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
48
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
49
|
+
target[key] = source[key];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return target;
|
|
53
|
+
}
|
|
54
|
+
function _object_without_properties_loose(source, excluded) {
|
|
55
|
+
if (source == null) return {};
|
|
56
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
57
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
58
|
+
key = sourceKeys[i];
|
|
59
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
60
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
61
|
+
target[key] = source[key];
|
|
62
|
+
}
|
|
63
|
+
return target;
|
|
64
|
+
}
|
|
1
65
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
66
|
import { Icon } from './Icon';
|
|
3
|
-
export
|
|
4
|
-
default:
|
|
67
|
+
export var variants = {
|
|
68
|
+
default: /*#__PURE__*/ _jsx(_Fragment, {
|
|
69
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
70
|
+
d: "M15.0281 9.99625L11.0908 6.19425C10.6277 5.75075 10.2382 5.257 9.92232 4.713C9.60649 4.16917 9.44857 3.57683 9.44857 2.936C9.44857 2.12883 9.72349 1.43767 10.2733 0.8625C10.8233 0.2875 11.4988 0 12.2998 0C12.8533 0 13.3597 0.145917 13.8188 0.43775C14.278 0.72975 14.6811 1.08942 15.0281 1.51675C15.3751 1.08942 15.7771 0.72975 16.2341 0.43775C16.6912 0.145917 17.1987 0 17.7563 0C18.5573 0 19.2328 0.2875 19.7828 0.8625C20.3327 1.43767 20.6076 2.12883 20.6076 2.936C20.6076 3.57567 20.4486 4.16708 20.1306 4.71025C19.8124 5.25325 19.4236 5.74792 18.9641 6.19425L15.0281 9.99625ZM15.0281 8.26275L18.0218 5.34075C18.3645 5.00758 18.6717 4.64417 18.9436 4.2505C19.2152 3.85683 19.3511 3.41867 19.3511 2.936C19.3511 2.47483 19.1989 2.07958 18.8946 1.75025C18.5901 1.42108 18.2107 1.2565 17.7563 1.2565C17.3883 1.2565 17.0547 1.36117 16.7556 1.5705C16.4564 1.78 16.1904 2.033 15.9576 2.3295L15.0281 3.48075L14.0923 2.3295C13.8637 2.033 13.5997 1.78 13.3006 1.5705C13.0014 1.36117 12.6678 1.2565 12.2998 1.2565C11.8455 1.2565 11.4661 1.42108 11.1616 1.75025C10.8572 2.07958 10.7051 2.47483 10.7051 2.936C10.7051 3.41867 10.8399 3.85683 11.1096 4.2505C11.3791 4.64417 11.688 5.00833 12.0363 5.343L15.0281 8.26275ZM5.50807 16.3205L13.1146 18.5435L19.2056 16.6462C19.1971 16.3269 19.0879 16.0785 18.8781 15.901C18.6682 15.7233 18.4249 15.6345 18.1481 15.6345H13.1661C12.8219 15.6345 12.499 15.6162 12.1973 15.5795C11.8957 15.5427 11.5929 15.4713 11.2891 15.3655L8.99407 14.6462L9.40107 13.3832L11.5851 14.1512C11.8339 14.2427 12.1107 14.3037 12.4153 14.334C12.72 14.3643 13.1001 14.3791 13.5556 14.3783H14.2391C14.2391 14.0496 14.1512 13.7735 13.9756 13.55C13.7999 13.3265 13.5792 13.1641 13.3133 13.0627L7.70757 10.9692C7.68407 10.9629 7.6654 10.9581 7.65157 10.9548C7.63757 10.9516 7.62099 10.95 7.60182 10.95H5.50807V16.3205ZM0.80957 19V9.69375H7.57382C7.66882 9.69375 7.76199 9.70358 7.85332 9.72325C7.94465 9.74292 8.03307 9.766 8.11857 9.7925L13.7391 11.8807C14.2356 12.0624 14.6576 12.3709 15.0051 12.8062C15.3524 13.2414 15.5261 13.7654 15.5261 14.3783H18.1481C18.8734 14.3783 19.4647 14.6268 19.9218 15.124C20.379 15.6213 20.6076 16.2274 20.6076 16.9422V17.5807L13.2018 19.8603L5.50807 17.6372V19H0.80957ZM2.06582 17.7435H4.23507V10.95H2.06582V17.7435Z",
|
|
71
|
+
fill: "currentColor"
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
};
|
|
75
|
+
var IconVolunteer = function IconVolunteer(_0) {
|
|
76
|
+
var _0_viewBox = _0.viewBox, viewBox = _0_viewBox === void 0 ? '0 0 21 20' : _0_viewBox, _0_variant = _0.variant, variant = _0_variant === void 0 ? 'default' : _0_variant, props = _object_without_properties(_0, [
|
|
77
|
+
"viewBox",
|
|
78
|
+
"variant"
|
|
79
|
+
]);
|
|
80
|
+
return /*#__PURE__*/ _jsx(Icon, _object_spread({
|
|
81
|
+
viewBox: viewBox,
|
|
82
|
+
element: variants[variant]
|
|
83
|
+
}, props));
|
|
5
84
|
};
|
|
6
|
-
const IconVolunteer = ({ viewBox = '0 0 21 20', variant = 'default', ...props }) => _jsx(Icon, { viewBox: viewBox, element: variants[variant], ...props });
|
|
7
85
|
export default IconVolunteer;
|
|
8
|
-
//# sourceMappingURL=IconVolunteer.js.map
|
|
@@ -1,8 +1,86 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _object_without_properties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = {}, sourceKeys, key, i;
|
|
32
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
33
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
34
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
35
|
+
key = sourceKeys[i];
|
|
36
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
37
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
38
|
+
target[key] = source[key];
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
}
|
|
42
|
+
target = _object_without_properties_loose(source, excluded);
|
|
43
|
+
if (Object.getOwnPropertySymbols) {
|
|
44
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
45
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
46
|
+
key = sourceKeys[i];
|
|
47
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
48
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
49
|
+
target[key] = source[key];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return target;
|
|
53
|
+
}
|
|
54
|
+
function _object_without_properties_loose(source, excluded) {
|
|
55
|
+
if (source == null) return {};
|
|
56
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
57
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
58
|
+
key = sourceKeys[i];
|
|
59
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
60
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
61
|
+
target[key] = source[key];
|
|
62
|
+
}
|
|
63
|
+
return target;
|
|
64
|
+
}
|
|
1
65
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
66
|
import { Icon } from './Icon';
|
|
3
|
-
|
|
4
|
-
default:
|
|
67
|
+
var variants = {
|
|
68
|
+
default: /*#__PURE__*/ _jsx(_Fragment, {
|
|
69
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
70
|
+
d: "M357.84 61.16A207.2 207.2 0 00210.31 0C95.31 0 1.8 93.55 1.75 208.54A208.16 208.16 0 0029.59 312.8L0 420.87l110.56-29a208.4 208.4 0 0099.65 25.38h.09c114.94 0 208.51-93.56 208.55-208.55a207.32 207.32 0 00-61.01-147.54zM210.31 382.03h-.1a173.1 173.1 0 01-88.23-24.16l-6.33-3.76-65.61 17.21 17.52-64-4.13-6.56a173 173 0 01-26.47-92.18c0-95.57 77.8-173.33 173.42-173.33a173.37 173.37 0 01173.27 173.44c-.04 95.58-77.8 173.34-173.34 173.34zm95.08-129.82c-5.21-2.61-30.83-15.22-35.61-17s-8.25-2.6-11.72 2.61-13.46 17-16.5 20.43-6.08 3.92-11.29 1.31-22-8.11-41.91-25.87c-15.49-13.81-25.95-30.88-29-36.1s-.32-8 2.29-10.63c2.34-2.34 5.21-6.09 7.81-9.13s3.48-5.22 5.21-8.69.87-6.52-.43-9.13-11.72-28.26-16.07-38.7c-4.23-10.16-8.52-8.78-11.72-8.94-3-.15-6.52-.19-10-.19a19.17 19.17 0 00-13.9 6.53c-4.77 5.21-18.23 17.82-18.23 43.47s18.67 50.43 21.27 53.91 36.75 56.11 89 78.68a299.53 299.53 0 0029.71 11c12.49 4 23.85 3.4 32.82 2.06 10-1.49 30.84-12.6 35.18-24.77s4.34-22.61 3-24.79-4.7-3.45-9.91-6.06z",
|
|
71
|
+
fillRule: "evenodd",
|
|
72
|
+
"data-name": "WA Logo"
|
|
73
|
+
})
|
|
74
|
+
})
|
|
75
|
+
};
|
|
76
|
+
var IconWhatsapp = function IconWhatsapp(_0) {
|
|
77
|
+
var _0_viewBox = _0.viewBox, viewBox = _0_viewBox === void 0 ? '0 0 418.86 420.88' : _0_viewBox, _0_variant = _0.variant, variant = _0_variant === void 0 ? 'default' : _0_variant, props = _object_without_properties(_0, [
|
|
78
|
+
"viewBox",
|
|
79
|
+
"variant"
|
|
80
|
+
]);
|
|
81
|
+
return /*#__PURE__*/ _jsx(Icon, _object_spread({
|
|
82
|
+
viewBox: viewBox,
|
|
83
|
+
element: variants[variant]
|
|
84
|
+
}, props));
|
|
5
85
|
};
|
|
6
|
-
const IconWhatsapp = ({ viewBox = '0 0 418.86 420.88', variant = 'default', ...props }) => _jsx(Icon, { viewBox: viewBox, element: variants[variant], ...props });
|
|
7
86
|
export default IconWhatsapp;
|
|
8
|
-
//# sourceMappingURL=IconWhatsapp.js.map
|
|
@@ -1,8 +1,85 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _object_without_properties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = {}, sourceKeys, key, i;
|
|
32
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
33
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
34
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
35
|
+
key = sourceKeys[i];
|
|
36
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
37
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
38
|
+
target[key] = source[key];
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
}
|
|
42
|
+
target = _object_without_properties_loose(source, excluded);
|
|
43
|
+
if (Object.getOwnPropertySymbols) {
|
|
44
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
45
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
46
|
+
key = sourceKeys[i];
|
|
47
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
48
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
49
|
+
target[key] = source[key];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return target;
|
|
53
|
+
}
|
|
54
|
+
function _object_without_properties_loose(source, excluded) {
|
|
55
|
+
if (source == null) return {};
|
|
56
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
57
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
58
|
+
key = sourceKeys[i];
|
|
59
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
60
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
61
|
+
target[key] = source[key];
|
|
62
|
+
}
|
|
63
|
+
return target;
|
|
64
|
+
}
|
|
1
65
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
66
|
import { Icon } from './Icon';
|
|
3
|
-
|
|
4
|
-
default:
|
|
67
|
+
var variants = {
|
|
68
|
+
default: /*#__PURE__*/ _jsx(_Fragment, {
|
|
69
|
+
children: /*#__PURE__*/ _jsx("path", {
|
|
70
|
+
d: "M13.5697 11.0504L19.7122 3.75H18.2567L12.9231 10.0889L8.66326 3.75H3.75L10.1918 13.3355L3.75 20.9911H5.20566L10.838 14.2971L15.3367 20.9911H20.25L13.5694 11.0504H13.5697ZM11.576 13.42L10.9233 12.4655L5.73015 4.8704H7.96596L12.1569 10.9998L12.8096 11.9543L18.2573 19.9217H16.0215L11.576 13.4203V13.42Z",
|
|
71
|
+
fill: "fill"
|
|
72
|
+
})
|
|
73
|
+
})
|
|
74
|
+
};
|
|
75
|
+
var IconXPlatform = function IconXPlatform(_0) {
|
|
76
|
+
var _0_viewBox = _0.viewBox, viewBox = _0_viewBox === void 0 ? '0 0 24 24' : _0_viewBox, _0_variant = _0.variant, variant = _0_variant === void 0 ? 'default' : _0_variant, props = _object_without_properties(_0, [
|
|
77
|
+
"viewBox",
|
|
78
|
+
"variant"
|
|
79
|
+
]);
|
|
80
|
+
return /*#__PURE__*/ _jsx(Icon, _object_spread({
|
|
81
|
+
viewBox: viewBox,
|
|
82
|
+
element: variants[variant]
|
|
83
|
+
}, props));
|
|
5
84
|
};
|
|
6
|
-
const IconXPlatform = ({ viewBox = '0 0 24 24', variant = 'default', ...props }) => _jsx(Icon, { viewBox: viewBox, element: variants[variant], ...props });
|
|
7
85
|
export default IconXPlatform;
|
|
8
|
-
//# sourceMappingURL=IconXPlatform.js.map
|
|
@@ -1,8 +1,89 @@
|
|
|
1
|
-
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function _object_without_properties(source, excluded) {
|
|
30
|
+
if (source == null) return {};
|
|
31
|
+
var target = {}, sourceKeys, key, i;
|
|
32
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
33
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
34
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
35
|
+
key = sourceKeys[i];
|
|
36
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
37
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
38
|
+
target[key] = source[key];
|
|
39
|
+
}
|
|
40
|
+
return target;
|
|
41
|
+
}
|
|
42
|
+
target = _object_without_properties_loose(source, excluded);
|
|
43
|
+
if (Object.getOwnPropertySymbols) {
|
|
44
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
45
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
46
|
+
key = sourceKeys[i];
|
|
47
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
48
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
49
|
+
target[key] = source[key];
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return target;
|
|
53
|
+
}
|
|
54
|
+
function _object_without_properties_loose(source, excluded) {
|
|
55
|
+
if (source == null) return {};
|
|
56
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
57
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
58
|
+
key = sourceKeys[i];
|
|
59
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
60
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
61
|
+
target[key] = source[key];
|
|
62
|
+
}
|
|
63
|
+
return target;
|
|
64
|
+
}
|
|
65
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
66
|
import { Icon } from './Icon';
|
|
3
|
-
|
|
4
|
-
default:
|
|
67
|
+
var variants = {
|
|
68
|
+
default: /*#__PURE__*/ _jsxs(_Fragment, {
|
|
69
|
+
children: [
|
|
70
|
+
/*#__PURE__*/ _jsx("path", {
|
|
71
|
+
d: "M16,4C9.4,4,4,9.4,4,16s5.4,12,12,12s12-5.4,12-12S22.6,4,16,4z M16,6c5.5,0,10,4.5,10,10s-4.5,10-10,10S6,21.5,6,16\n S10.5,6,16,6z"
|
|
72
|
+
}),
|
|
73
|
+
/*#__PURE__*/ _jsx("path", {
|
|
74
|
+
d: "M16,10c-2.2,0-4,1.8-4,4v4c0,2.2,1.8,4,4,4s4-1.8,4-4v-4C20,11.8,18.2,10,16,10z M14,14c0-1.1,0.9-2,2-2\n c0.3,0,0.5,0.1,0.7,0.1L14,17.9V14z M18,18c0,1.1-0.9,2-2,2c-0.3,0-0.5-0.1-0.7-0.1l2.7-5.7V18z"
|
|
75
|
+
})
|
|
76
|
+
]
|
|
77
|
+
})
|
|
78
|
+
};
|
|
79
|
+
var IconSpecialCar = function IconSpecialCar(_0) {
|
|
80
|
+
var _0_viewBox = _0.viewBox, viewBox = _0_viewBox === void 0 ? '0 0 32 32' : _0_viewBox, _0_variant = _0.variant, variant = _0_variant === void 0 ? 'default' : _0_variant, props = _object_without_properties(_0, [
|
|
81
|
+
"viewBox",
|
|
82
|
+
"variant"
|
|
83
|
+
]);
|
|
84
|
+
return /*#__PURE__*/ _jsx(Icon, _object_spread({
|
|
85
|
+
viewBox: viewBox,
|
|
86
|
+
element: variants[variant]
|
|
87
|
+
}, props));
|
|
5
88
|
};
|
|
6
|
-
const IconSpecialCar = ({ viewBox = '0 0 32 32', variant = 'default', ...props }) => _jsx(Icon, { viewBox: viewBox, element: variants[variant], ...props });
|
|
7
89
|
export default IconSpecialCar;
|
|
8
|
-
//# sourceMappingURL=IconZeroEffort.js.map
|
package/dist/icons/Logo.js
CHANGED
|
@@ -1,9 +1,114 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function ownKeys(object, enumerableOnly) {
|
|
30
|
+
var keys = Object.keys(object);
|
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
|
32
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
+
if (enumerableOnly) {
|
|
34
|
+
symbols = symbols.filter(function(sym) {
|
|
35
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
keys.push.apply(keys, symbols);
|
|
39
|
+
}
|
|
40
|
+
return keys;
|
|
41
|
+
}
|
|
42
|
+
function _object_spread_props(target, source) {
|
|
43
|
+
source = source != null ? source : {};
|
|
44
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
+
} else {
|
|
47
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return target;
|
|
52
|
+
}
|
|
53
|
+
function _object_without_properties(source, excluded) {
|
|
54
|
+
if (source == null) return {};
|
|
55
|
+
var target = {}, sourceKeys, key, i;
|
|
56
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
57
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
58
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
59
|
+
key = sourceKeys[i];
|
|
60
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
61
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
62
|
+
target[key] = source[key];
|
|
63
|
+
}
|
|
64
|
+
return target;
|
|
65
|
+
}
|
|
66
|
+
target = _object_without_properties_loose(source, excluded);
|
|
67
|
+
if (Object.getOwnPropertySymbols) {
|
|
68
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
69
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
70
|
+
key = sourceKeys[i];
|
|
71
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
72
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
73
|
+
target[key] = source[key];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return target;
|
|
77
|
+
}
|
|
78
|
+
function _object_without_properties_loose(source, excluded) {
|
|
79
|
+
if (source == null) return {};
|
|
80
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
81
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
82
|
+
key = sourceKeys[i];
|
|
83
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
84
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
85
|
+
target[key] = source[key];
|
|
86
|
+
}
|
|
87
|
+
return target;
|
|
88
|
+
}
|
|
1
89
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
90
|
import Box from '../box/Box';
|
|
3
91
|
import FluxLogo from '../icons/FluxLogo';
|
|
4
92
|
import { cn } from '../utils';
|
|
5
|
-
|
|
6
|
-
|
|
93
|
+
var Logo = function Logo(_0) {
|
|
94
|
+
var colorScheme = _0.colorScheme, _0_size = _0.size, size = _0_size === void 0 ? '29px' : _0_size, className = _0.className, style = _0.style, props = _object_without_properties(_0, [
|
|
95
|
+
"colorScheme",
|
|
96
|
+
"size",
|
|
97
|
+
"className",
|
|
98
|
+
"style"
|
|
99
|
+
]);
|
|
100
|
+
return /*#__PURE__*/ _jsx(Box, _object_spread_props(_object_spread({
|
|
101
|
+
className: cn(className),
|
|
102
|
+
style: style
|
|
103
|
+
}, props), {
|
|
104
|
+
children: /*#__PURE__*/ _jsx(FluxLogo, _object_spread({
|
|
105
|
+
width: 'full',
|
|
106
|
+
size: size,
|
|
107
|
+
variant: colorScheme ? 'solid' : 'default',
|
|
108
|
+
alt: 'FLUX Logo'
|
|
109
|
+
}, colorScheme ? {
|
|
110
|
+
forceColor: colorScheme
|
|
111
|
+
} : {}))
|
|
112
|
+
}));
|
|
7
113
|
};
|
|
8
114
|
export default Logo;
|
|
9
|
-
//# sourceMappingURL=Logo.js.map
|
package/dist/input/Input.js
CHANGED
|
@@ -1,18 +1,141 @@
|
|
|
1
|
+
function _define_property(obj, key, value) {
|
|
2
|
+
if (key in obj) {
|
|
3
|
+
Object.defineProperty(obj, key, {
|
|
4
|
+
value: value,
|
|
5
|
+
enumerable: true,
|
|
6
|
+
configurable: true,
|
|
7
|
+
writable: true
|
|
8
|
+
});
|
|
9
|
+
} else {
|
|
10
|
+
obj[key] = value;
|
|
11
|
+
}
|
|
12
|
+
return obj;
|
|
13
|
+
}
|
|
14
|
+
function _object_spread(target) {
|
|
15
|
+
for(var i = 1; i < arguments.length; i++){
|
|
16
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
17
|
+
var ownKeys = Object.keys(source);
|
|
18
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
19
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
20
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
21
|
+
}));
|
|
22
|
+
}
|
|
23
|
+
ownKeys.forEach(function(key) {
|
|
24
|
+
_define_property(target, key, source[key]);
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
return target;
|
|
28
|
+
}
|
|
29
|
+
function ownKeys(object, enumerableOnly) {
|
|
30
|
+
var keys = Object.keys(object);
|
|
31
|
+
if (Object.getOwnPropertySymbols) {
|
|
32
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
33
|
+
if (enumerableOnly) {
|
|
34
|
+
symbols = symbols.filter(function(sym) {
|
|
35
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
keys.push.apply(keys, symbols);
|
|
39
|
+
}
|
|
40
|
+
return keys;
|
|
41
|
+
}
|
|
42
|
+
function _object_spread_props(target, source) {
|
|
43
|
+
source = source != null ? source : {};
|
|
44
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
45
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
46
|
+
} else {
|
|
47
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
48
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
return target;
|
|
52
|
+
}
|
|
53
|
+
function _object_without_properties(source, excluded) {
|
|
54
|
+
if (source == null) return {};
|
|
55
|
+
var target = {}, sourceKeys, key, i;
|
|
56
|
+
if (typeof Reflect !== "undefined" && Reflect.ownKeys) {
|
|
57
|
+
sourceKeys = Reflect.ownKeys(Object(source));
|
|
58
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
59
|
+
key = sourceKeys[i];
|
|
60
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
61
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
62
|
+
target[key] = source[key];
|
|
63
|
+
}
|
|
64
|
+
return target;
|
|
65
|
+
}
|
|
66
|
+
target = _object_without_properties_loose(source, excluded);
|
|
67
|
+
if (Object.getOwnPropertySymbols) {
|
|
68
|
+
sourceKeys = Object.getOwnPropertySymbols(source);
|
|
69
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
70
|
+
key = sourceKeys[i];
|
|
71
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
72
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
73
|
+
target[key] = source[key];
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
return target;
|
|
77
|
+
}
|
|
78
|
+
function _object_without_properties_loose(source, excluded) {
|
|
79
|
+
if (source == null) return {};
|
|
80
|
+
var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
|
|
81
|
+
for(i = 0; i < sourceKeys.length; i++){
|
|
82
|
+
key = sourceKeys[i];
|
|
83
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
84
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
85
|
+
target[key] = source[key];
|
|
86
|
+
}
|
|
87
|
+
return target;
|
|
88
|
+
}
|
|
1
89
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
90
|
import * as React from 'react';
|
|
3
91
|
import FieldWrapper from '../field-wrapper/FieldWrapper.js';
|
|
4
92
|
import { cn } from '../utils.js';
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
// for
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
93
|
+
var Input = /*#__PURE__*/ React.forwardRef(function(props, ref) {
|
|
94
|
+
var // for wrapper
|
|
95
|
+
wrapperProps = props.wrapperProps, htmlFor = props.htmlFor, label = props.label, helperText = props.helperText, showRequired = props.showRequired, showOptional = props.showOptional, outerPrefix = props.outerPrefix, outerSuffix = props.outerSuffix, error = props.error, // for input container
|
|
96
|
+
className = props.className, // for input
|
|
97
|
+
prefix = props.prefix, suffix = props.suffix, inputClassName = props.inputClassName, inputRef = props.inputRef, isDisabled = props.isDisabled, inputProps = _object_without_properties(props, [
|
|
98
|
+
"wrapperProps",
|
|
99
|
+
"htmlFor",
|
|
100
|
+
"label",
|
|
101
|
+
"helperText",
|
|
102
|
+
"showRequired",
|
|
103
|
+
"showOptional",
|
|
104
|
+
"outerPrefix",
|
|
105
|
+
"outerSuffix",
|
|
106
|
+
"error",
|
|
107
|
+
"className",
|
|
108
|
+
"prefix",
|
|
109
|
+
"suffix",
|
|
110
|
+
"inputClassName",
|
|
111
|
+
"inputRef",
|
|
112
|
+
"isDisabled"
|
|
113
|
+
]);
|
|
114
|
+
return /*#__PURE__*/ _jsx(FieldWrapper, _object_spread_props(_object_spread({
|
|
115
|
+
htmlFor: htmlFor,
|
|
116
|
+
label: label,
|
|
117
|
+
helperText: helperText,
|
|
118
|
+
showOptional: showOptional,
|
|
119
|
+
showRequired: showRequired,
|
|
120
|
+
outerPrefix: outerPrefix,
|
|
121
|
+
outerSuffix: outerSuffix,
|
|
122
|
+
error: error
|
|
123
|
+
}, wrapperProps), {
|
|
124
|
+
children: /*#__PURE__*/ _jsxs("div", {
|
|
125
|
+
ref: ref,
|
|
126
|
+
"aria-disabled": isDisabled,
|
|
127
|
+
className: cn('flex gap-x-2 h-10 w-full border border-primary2 bg-white px-3 py-2 text-sm ring-offset-white items-center file:border-0 file:bg-transparent file:text-sm file:font-medium hover:border-black focus-within:border-black focus-within:outline-none rounded-lg', isDisabled && 'bg-primary1 cursor-not-allowed hover:border-black', !!error && 'border-alert4 hover:border-alert4 focus-within:border-alert4', className),
|
|
128
|
+
children: [
|
|
129
|
+
prefix,
|
|
130
|
+
/*#__PURE__*/ _jsx("input", _object_spread({
|
|
131
|
+
ref: inputRef,
|
|
132
|
+
disabled: isDisabled,
|
|
133
|
+
className: cn('border-none outline-none placeholder-primary2 placeholder:tracking-normal w-full', isDisabled && 'bg-primary1 cursor-not-allowed', inputClassName)
|
|
134
|
+
}, inputProps)),
|
|
135
|
+
suffix
|
|
136
|
+
]
|
|
137
|
+
})
|
|
138
|
+
}));
|
|
15
139
|
});
|
|
16
140
|
Input.displayName = 'Input';
|
|
17
141
|
export default Input;
|
|
18
|
-
//# sourceMappingURL=Input.js.map
|