react-asc 25.12.0 → 25.12.1
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/index.d.ts
CHANGED
|
@@ -434,9 +434,9 @@ declare const IsEmptyValidator: (value: string) => boolean;
|
|
|
434
434
|
|
|
435
435
|
declare const IsEqualValidator: (valueA: unknown, valueB: unknown) => boolean;
|
|
436
436
|
|
|
437
|
-
declare const MaxValidator: (val: string, valueB: number) => boolean;
|
|
437
|
+
declare const MaxValidator: (val: string | undefined, valueB: number) => boolean;
|
|
438
438
|
|
|
439
|
-
declare const MinValidator: (val: string, minLength: number) => boolean;
|
|
439
|
+
declare const MinValidator: (val: string | undefined, minLength: number) => boolean;
|
|
440
440
|
|
|
441
441
|
interface IColProps extends React$1.ComponentProps<'div'> {
|
|
442
442
|
xs?: number;
|
|
@@ -491,7 +491,9 @@ interface IListItemAvatarProps extends React$1.ComponentProps<'div'> {
|
|
|
491
491
|
declare enum ListItemAvatarSize {
|
|
492
492
|
sm = "sm",
|
|
493
493
|
md = "md",
|
|
494
|
-
lg = "lg"
|
|
494
|
+
lg = "lg",
|
|
495
|
+
xl = "xl",
|
|
496
|
+
xxl = "xxl"
|
|
495
497
|
}
|
|
496
498
|
declare const ListItemAvatar: ({ avatar, avatarSize, ...rest }: IListItemAvatarProps) => JSX.Element;
|
|
497
499
|
|
package/index.es.js
CHANGED
|
@@ -445,8 +445,8 @@ const ListItem = (props) => {
|
|
|
445
445
|
return (jsx("li", { onClick: handleClick, className: getCssClasses(), ...rest, children: children }));
|
|
446
446
|
};
|
|
447
447
|
|
|
448
|
-
var css_248z$Z = ".ListItemAvatar-module_avatar__sVWfR {\n display: flex;\n align-items: center;\n margin-right: 16px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_sm__-lmR- svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_sm__-lmR- img {\n width: 24px;\n height: 24px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_md__SqRJi svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_md__SqRJi img {\n width: 32px;\n height: 32px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_lg__Z6LxN svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_lg__Z6LxN img {\n width: 40px;\n height: 40px;\n}\n.ListItemAvatar-module_avatar__sVWfR img {\n border-radius: 50%;\n}";
|
|
449
|
-
var styles$Z = {"avatar":"ListItemAvatar-module_avatar__sVWfR","sm":"ListItemAvatar-module_sm__-lmR-","md":"ListItemAvatar-module_md__SqRJi","lg":"ListItemAvatar-module_lg__Z6LxN"};
|
|
448
|
+
var css_248z$Z = ".ListItemAvatar-module_avatar__sVWfR {\n display: flex;\n align-items: center;\n margin-right: 16px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_sm__-lmR- svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_sm__-lmR- img {\n width: 24px;\n height: 24px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_md__SqRJi svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_md__SqRJi img {\n width: 32px;\n height: 32px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_lg__Z6LxN svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_lg__Z6LxN img {\n width: 40px;\n height: 40px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_xl__6k0DL svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_xl__6k0DL img {\n width: 48px;\n height: 48px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_xxl__e51hN svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_xxl__e51hN img {\n width: 56px;\n height: 56px;\n}\n.ListItemAvatar-module_avatar__sVWfR img {\n border-radius: 50%;\n}";
|
|
449
|
+
var styles$Z = {"avatar":"ListItemAvatar-module_avatar__sVWfR","sm":"ListItemAvatar-module_sm__-lmR-","md":"ListItemAvatar-module_md__SqRJi","lg":"ListItemAvatar-module_lg__Z6LxN","xl":"ListItemAvatar-module_xl__6k0DL","xxl":"ListItemAvatar-module_xxl__e51hN"};
|
|
450
450
|
styleInject(css_248z$Z);
|
|
451
451
|
|
|
452
452
|
var ListItemAvatarSize;
|
|
@@ -454,6 +454,8 @@ var ListItemAvatarSize;
|
|
|
454
454
|
ListItemAvatarSize["sm"] = "sm";
|
|
455
455
|
ListItemAvatarSize["md"] = "md";
|
|
456
456
|
ListItemAvatarSize["lg"] = "lg";
|
|
457
|
+
ListItemAvatarSize["xl"] = "xl";
|
|
458
|
+
ListItemAvatarSize["xxl"] = "xxl";
|
|
457
459
|
})(ListItemAvatarSize || (ListItemAvatarSize = {}));
|
|
458
460
|
const ListItemAvatar = ({ avatar, avatarSize = ListItemAvatarSize.sm, ...rest }) => {
|
|
459
461
|
const getCssClasses = () => {
|
|
@@ -5441,9 +5443,9 @@ const EmailValidator = (value) => {
|
|
|
5441
5443
|
|
|
5442
5444
|
const IsEqualValidator = (valueA, valueB) => valueA === valueB;
|
|
5443
5445
|
|
|
5444
|
-
const MaxValidator = (val, valueB) => val.length <= valueB;
|
|
5446
|
+
const MaxValidator = (val, valueB) => (val && val.length <= valueB) || false;
|
|
5445
5447
|
|
|
5446
|
-
const MinValidator = (val, minLength) => val.length >= minLength;
|
|
5448
|
+
const MinValidator = (val, minLength) => (val && val.length >= minLength) || false;
|
|
5447
5449
|
|
|
5448
5450
|
class Form extends Component {
|
|
5449
5451
|
constructor(props) {
|
package/index.js
CHANGED
|
@@ -447,8 +447,8 @@ const ListItem = (props) => {
|
|
|
447
447
|
return (jsxRuntime.jsx("li", { onClick: handleClick, className: getCssClasses(), ...rest, children: children }));
|
|
448
448
|
};
|
|
449
449
|
|
|
450
|
-
var css_248z$Z = ".ListItemAvatar-module_avatar__sVWfR {\n display: flex;\n align-items: center;\n margin-right: 16px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_sm__-lmR- svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_sm__-lmR- img {\n width: 24px;\n height: 24px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_md__SqRJi svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_md__SqRJi img {\n width: 32px;\n height: 32px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_lg__Z6LxN svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_lg__Z6LxN img {\n width: 40px;\n height: 40px;\n}\n.ListItemAvatar-module_avatar__sVWfR img {\n border-radius: 50%;\n}";
|
|
451
|
-
var styles$Z = {"avatar":"ListItemAvatar-module_avatar__sVWfR","sm":"ListItemAvatar-module_sm__-lmR-","md":"ListItemAvatar-module_md__SqRJi","lg":"ListItemAvatar-module_lg__Z6LxN"};
|
|
450
|
+
var css_248z$Z = ".ListItemAvatar-module_avatar__sVWfR {\n display: flex;\n align-items: center;\n margin-right: 16px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_sm__-lmR- svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_sm__-lmR- img {\n width: 24px;\n height: 24px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_md__SqRJi svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_md__SqRJi img {\n width: 32px;\n height: 32px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_lg__Z6LxN svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_lg__Z6LxN img {\n width: 40px;\n height: 40px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_xl__6k0DL svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_xl__6k0DL img {\n width: 48px;\n height: 48px;\n}\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_xxl__e51hN svg,\n.ListItemAvatar-module_avatar__sVWfR.ListItemAvatar-module_xxl__e51hN img {\n width: 56px;\n height: 56px;\n}\n.ListItemAvatar-module_avatar__sVWfR img {\n border-radius: 50%;\n}";
|
|
451
|
+
var styles$Z = {"avatar":"ListItemAvatar-module_avatar__sVWfR","sm":"ListItemAvatar-module_sm__-lmR-","md":"ListItemAvatar-module_md__SqRJi","lg":"ListItemAvatar-module_lg__Z6LxN","xl":"ListItemAvatar-module_xl__6k0DL","xxl":"ListItemAvatar-module_xxl__e51hN"};
|
|
452
452
|
styleInject(css_248z$Z);
|
|
453
453
|
|
|
454
454
|
exports.ListItemAvatarSize = void 0;
|
|
@@ -456,6 +456,8 @@ exports.ListItemAvatarSize = void 0;
|
|
|
456
456
|
ListItemAvatarSize["sm"] = "sm";
|
|
457
457
|
ListItemAvatarSize["md"] = "md";
|
|
458
458
|
ListItemAvatarSize["lg"] = "lg";
|
|
459
|
+
ListItemAvatarSize["xl"] = "xl";
|
|
460
|
+
ListItemAvatarSize["xxl"] = "xxl";
|
|
459
461
|
})(exports.ListItemAvatarSize || (exports.ListItemAvatarSize = {}));
|
|
460
462
|
const ListItemAvatar = ({ avatar, avatarSize = exports.ListItemAvatarSize.sm, ...rest }) => {
|
|
461
463
|
const getCssClasses = () => {
|
|
@@ -5443,9 +5445,9 @@ const EmailValidator = (value) => {
|
|
|
5443
5445
|
|
|
5444
5446
|
const IsEqualValidator = (valueA, valueB) => valueA === valueB;
|
|
5445
5447
|
|
|
5446
|
-
const MaxValidator = (val, valueB) => val.length <= valueB;
|
|
5448
|
+
const MaxValidator = (val, valueB) => (val && val.length <= valueB) || false;
|
|
5447
5449
|
|
|
5448
|
-
const MinValidator = (val, minLength) => val.length >= minLength;
|
|
5450
|
+
const MinValidator = (val, minLength) => (val && val.length >= minLength) || false;
|
|
5449
5451
|
|
|
5450
5452
|
class Form extends React.Component {
|
|
5451
5453
|
constructor(props) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const MaxValidator: (val: string, valueB: number) => boolean;
|
|
1
|
+
export declare const MaxValidator: (val: string | undefined, valueB: number) => boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const MinValidator: (val: string, minLength: number) => boolean;
|
|
1
|
+
export declare const MinValidator: (val: string | undefined, minLength: number) => boolean;
|
|
@@ -6,7 +6,9 @@ interface IListItemAvatarProps extends React.ComponentProps<'div'> {
|
|
|
6
6
|
export declare enum ListItemAvatarSize {
|
|
7
7
|
sm = "sm",
|
|
8
8
|
md = "md",
|
|
9
|
-
lg = "lg"
|
|
9
|
+
lg = "lg",
|
|
10
|
+
xl = "xl",
|
|
11
|
+
xxl = "xxl"
|
|
10
12
|
}
|
|
11
13
|
export declare const ListItemAvatar: ({ avatar, avatarSize, ...rest }: IListItemAvatarProps) => JSX.Element;
|
|
12
14
|
export {};
|