@jars-labs/jars-components 1.0.58 → 1.0.60
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/{index-BNZjZyyj.js → index-knia1HwA.js} +15 -6
- package/dist/index-knia1HwA.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{lottie-DPfByjxI.js → lottie-BmDQaFpe.js} +2 -2
- package/dist/{lottie-DPfByjxI.js.map → lottie-BmDQaFpe.js.map} +1 -1
- package/dist/types/Select/Select.d.ts.map +1 -1
- package/dist/types/utils/stringUtils.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/index-BNZjZyyj.js.map +0 -1
|
@@ -183,7 +183,7 @@ var Animation = function (_a) {
|
|
|
183
183
|
var refVector = useRef(null);
|
|
184
184
|
var _b = useState(null), lottie = _b[0], setLottie = _b[1];
|
|
185
185
|
useEffect(function () {
|
|
186
|
-
import('./lottie-
|
|
186
|
+
import('./lottie-BmDQaFpe.js').then(function (n) { return n.l; }).then(function (Lottie) { return setLottie(Lottie.default); });
|
|
187
187
|
}, []);
|
|
188
188
|
useEffect(function () {
|
|
189
189
|
if (lottie && refVector.current) {
|
|
@@ -382,6 +382,16 @@ var Text = React.forwardRef(function (props, ref) {
|
|
|
382
382
|
});
|
|
383
383
|
Text.displayName = 'Text';
|
|
384
384
|
|
|
385
|
+
function smartLowercase(str) {
|
|
386
|
+
return str
|
|
387
|
+
.split(/\b/)
|
|
388
|
+
.map(function (word) {
|
|
389
|
+
if (/^[A-Z]{2,}$/.test(word))
|
|
390
|
+
return word;
|
|
391
|
+
return word.toLowerCase();
|
|
392
|
+
})
|
|
393
|
+
.join('');
|
|
394
|
+
}
|
|
385
395
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
386
396
|
function capitalizeFirstSentenceLetter(input) {
|
|
387
397
|
var str;
|
|
@@ -396,8 +406,7 @@ function capitalizeFirstSentenceLetter(input) {
|
|
|
396
406
|
else {
|
|
397
407
|
str = input;
|
|
398
408
|
}
|
|
399
|
-
|
|
400
|
-
return lowerCaseString.charAt(0).toUpperCase() + lowerCaseString.slice(1);
|
|
409
|
+
return smartLowercase(str.replace(/_/g, ' ')).replace(/(^\s*[a-z])|([.!?]\s*[a-z])/g, function (match) { return match.toUpperCase(); });
|
|
401
410
|
}
|
|
402
411
|
|
|
403
412
|
/**
|
|
@@ -1359,14 +1368,14 @@ var Select = function (_a) {
|
|
|
1359
1368
|
return (jsxs("div", { className: styles$6.container, children: [showLabel && (jsx("label", { className: classNames(styles$6.label, (_b = {},
|
|
1360
1369
|
_b[styles$6.labelError] = error && !isFocused,
|
|
1361
1370
|
_b[styles$6.labelFocused] = isFocused || isHovered,
|
|
1362
|
-
_b)), children: label })), jsx("div", { onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); },
|
|
1371
|
+
_b)), children: label })), jsx("div", { onMouseEnter: function () { return setIsHovered(true); }, onMouseLeave: function () { return setIsHovered(false); }, children: jsx(Select$1, { classNames: {
|
|
1363
1372
|
input: classNames(styles$6.input, (_c = {},
|
|
1364
1373
|
_c[styles$6.inputError] = error,
|
|
1365
1374
|
_c)),
|
|
1366
1375
|
label: styles$6['default-label'],
|
|
1367
1376
|
dropdown: styles$6.dropdown,
|
|
1368
1377
|
option: styles$6.option,
|
|
1369
|
-
}, data: data, placeholder: placeHolderValue, value: value, name: name || '', onChange: onChange, comboboxProps: { zIndex: 1000 }, error: ErrorSection, onFocus: function () { return setIsFocused(true); }, onBlur: handleBlur, inputWrapperOrder: ['label', 'input', 'description', 'error'], description: !error && description && jsx(Text, { variant: "xs", children: description }), descriptionProps: { className: styles$6.description }, errorProps: { className: styles$6.error }, rightSection: jsx(Chevron, { rotate: isOpen ? 90 : 270 }), rightSectionProps: {
|
|
1378
|
+
}, data: data, placeholder: placeHolderValue, value: value, name: name || '', onChange: onChange, comboboxProps: { zIndex: 1000 }, error: ErrorSection, onFocus: function () { return setIsFocused(true); }, onBlur: handleBlur, inputWrapperOrder: ['label', 'input', 'description', 'error'], description: !error && description && jsx(Text, { variant: "xs", children: description }), descriptionProps: { className: styles$6.description }, errorProps: { className: styles$6.error }, rightSection: jsx(Chevron, { rotate: isOpen ? 90 : 270 }), rightSectionPointerEvents: "none", rightSectionProps: {
|
|
1370
1379
|
className: styles$6.chevron,
|
|
1371
1380
|
}, withCheckIcon: false, onDropdownOpen: function () { return setIsOpen(true); }, onDropdownClose: function () { return setIsOpen(false); }, disabled: disabled, searchable: searchable, allowDeselect: false, autoComplete: "new-password", renderOption: renderOption }) })] }));
|
|
1372
1381
|
};
|
|
@@ -1997,4 +2006,4 @@ var Refresh = function (props) {
|
|
|
1997
2006
|
Refresh.displayName = 'Refresh';
|
|
1998
2007
|
|
|
1999
2008
|
export { ChevronCollapse as $, Accordion as A, Badge as B, Card as C, DateInput as D, EnterCodeInput as E, FileInput as F, ToastContainer as G, Tooltip as H, IncrementNumber as I, Multiselect as J, NavBarSide as K, Link as L, Message as M, NavBar as N, Alert as O, PasswordInput as P, Arrow as Q, RadioButton as R, SegmentedControl as S, Table as T, Attachment as U, AvatarPlaceholder as V, Bell as W, Calendar as X, Cat as Y, Chat as Z, Chevron as _, AccordionItem as a, Clock as a0, Close as a1, Cloud as a2, Delete as a3, Document as a4, Dog as a5, EyeHide as a6, EyeShow as a7, Fingerprint as a8, Google as a9, Visa as aA, Warning as aB, World as aC, AISearch as aD, AIGenerate as aE, AIPrompt as aF, AIRedo as aG, Refresh as aH, capitalizeFirstSentenceLetter as aI, Grid as aa, Hamburger as ab, HappyFace as ac, House as ad, HouseTime as ae, Identification as af, Info as ag, Location as ah, Mail as ai, Menu as aj, MenuTouched as ak, Notification as al, Open as am, Pets as an, Phone as ao, Plaid as ap, Plus as aq, Remove as ar, Search as as, Shield as at, StepIndicator as au, ThreeDots as av, ThumbsDown as aw, Tick as ax, Umbrello as ay, Upload as az, AccordionControl as b, AccordionPanel as c, ActionIcon as d, Animation as e, Autocomplete as f, getDefaultExportFromCjs as g, badgeVariantMap as h, Button as i, cardStatusVariantMap as j, CardStatus as k, Checkbox as l, Chip as m, Dropdown as n, FileUpload as o, Input as p, LinkModal as q, Loader as r, Modal as s, Pagination as t, Select as u, StatusBadge as v, Stepper as w, Tabs as x, Text as y, Textarea as z };
|
|
2000
|
-
//# sourceMappingURL=index-
|
|
2009
|
+
//# sourceMappingURL=index-knia1HwA.js.map
|