@dartcom/ui-kit 10.2.7 → 10.2.9
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/components/alert-dialog/alert-dialog.d.ts.map +1 -1
- package/dist/components/alert-dialog/alert-dialog.stories.d.ts +5 -1
- package/dist/components/alert-dialog/alert-dialog.stories.d.ts.map +1 -1
- package/dist/components/alert-dialog/types.d.ts +8 -3
- package/dist/components/alert-dialog/types.d.ts.map +1 -1
- package/dist/components/draggable-container/draggable-container.stories.d.ts.map +1 -1
- package/dist/components/draggable-container/types.d.ts +2 -1
- package/dist/components/draggable-container/types.d.ts.map +1 -1
- package/dist/index.cjs +17 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +5 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/utils.d.ts +4 -0
- package/dist/lib/utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/alert-dialog/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;;
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","sourceRoot":"","sources":["../../../src/components/alert-dialog/alert-dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAiB/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;;AAqG3C,wBAAqC"}
|
|
@@ -3,7 +3,11 @@ import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
|
3
3
|
type FormType = typeof AlertDialog;
|
|
4
4
|
declare const meta: Meta<FormType>;
|
|
5
5
|
type Story = StoryObj<FormType>;
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const Info: Story;
|
|
7
7
|
export declare const Delete: Story;
|
|
8
|
+
export declare const Warning: Story;
|
|
9
|
+
export declare const WithContent: Story;
|
|
10
|
+
export declare const DisabledAgreeButton: Story;
|
|
11
|
+
export declare const DisabledDisagreeButton: Story;
|
|
8
12
|
export default meta;
|
|
9
13
|
//# sourceMappingURL=alert-dialog.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.stories.d.ts","sourceRoot":"","sources":["../../../src/components/alert-dialog/alert-dialog.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alert-dialog.stories.d.ts","sourceRoot":"","sources":["../../../src/components/alert-dialog/alert-dialog.stories.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,CAAC;AAEhC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,KAAK,QAAQ,GAAG,OAAO,WAAW,CAAC;AAInC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,QAAQ,CAgCxB,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAEhC,eAAO,MAAM,IAAI,EAAE,KAAU,CAAC;AAE9B,eAAO,MAAM,MAAM,EAAE,KAIpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAUzB,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAMjC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAMpC,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -6,9 +6,14 @@ export type AlertDialogProps = {
|
|
|
6
6
|
onSuccess: () => void;
|
|
7
7
|
onOpen?: () => void;
|
|
8
8
|
onClose?: () => void;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
content?: React.JSX.Element;
|
|
10
|
+
agreeButton?: {
|
|
11
|
+
text?: string;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
};
|
|
14
|
+
disagreeButton?: {
|
|
15
|
+
text?: string;
|
|
16
|
+
disabled?: boolean;
|
|
12
17
|
};
|
|
13
18
|
};
|
|
14
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/alert-dialog/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IAErC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,WAAW,CAAC,EAAE;QACZ,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/alert-dialog/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IAEpB,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;IAErC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,OAAO,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAE5B,WAAW,CAAC,EAAE;QACZ,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;IAEF,cAAc,CAAC,EAAE;QACf,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,QAAQ,CAAC,EAAE,OAAO,CAAC;KACpB,CAAC;CACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"draggable-container.stories.d.ts","sourceRoot":"","sources":["../../../src/components/draggable-container/draggable-container.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAGvC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,
|
|
1
|
+
{"version":3,"file":"draggable-container.stories.d.ts","sourceRoot":"","sources":["../../../src/components/draggable-container/draggable-container.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,GAAG,CAAC;AAGvC,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,kBAAkB,CAwBzC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,KAMjB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/draggable-container/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,uBAAuB,GAAG;IACpC,MAAM,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/draggable-container/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,MAAM,MAAM,uBAAuB,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IAEd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,EAAE,CAAC,EAAE,UAAU,CAAC;CACjB,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -1971,6 +1971,13 @@ const getCoordinateByLatLng = (latLng) => {
|
|
|
1971
1971
|
};
|
|
1972
1972
|
return coordinate;
|
|
1973
1973
|
};
|
|
1974
|
+
const getEntityNames = ({ entity, names, }) => {
|
|
1975
|
+
const layerNames = {};
|
|
1976
|
+
names.forEach((key) => {
|
|
1977
|
+
layerNames[key] = `${entity}_${key}`;
|
|
1978
|
+
});
|
|
1979
|
+
return layerNames;
|
|
1980
|
+
};
|
|
1974
1981
|
|
|
1975
1982
|
var niceErrors = {
|
|
1976
1983
|
0: "Invalid value for configuration 'enforceActions', expected 'never', 'always' or 'observed'",
|
|
@@ -14847,7 +14854,7 @@ const UploadButton = ({ children, accept, onFilesLoad, ...props }) => {
|
|
|
14847
14854
|
}, multiple: true })] }));
|
|
14848
14855
|
};
|
|
14849
14856
|
|
|
14850
|
-
const AlertDialog = ({ name, title, description, onSuccess, onOpen, onClose, theme = 'info',
|
|
14857
|
+
const AlertDialog = ({ name, title, description, onSuccess, onOpen, onClose, theme = 'info', agreeButton, disagreeButton, content, }) => {
|
|
14851
14858
|
const dialogId = React__namespace.useId();
|
|
14852
14859
|
const titleId = React__namespace.useId();
|
|
14853
14860
|
const descriptionId = React__namespace.useId();
|
|
@@ -14870,10 +14877,13 @@ const AlertDialog = ({ name, title, description, onSuccess, onOpen, onClose, the
|
|
|
14870
14877
|
background,
|
|
14871
14878
|
color,
|
|
14872
14879
|
};
|
|
14873
|
-
}, children: title }), jsxRuntime.jsx(material.Divider, {}), jsxRuntime.
|
|
14880
|
+
}, children: title }), jsxRuntime.jsx(material.Divider, {}), jsxRuntime.jsxs(material.DialogContent, { sx: ({ spacing }) => ({
|
|
14881
|
+
display: 'grid',
|
|
14882
|
+
gap: spacing(2),
|
|
14883
|
+
}), children: [jsxRuntime.jsx(material.DialogContentText, { id: descriptionId, children: description }), content ? (jsxRuntime.jsxs(React__namespace.Fragment, { children: [jsxRuntime.jsx(material.Divider, {}), content] })) : null] }), jsxRuntime.jsx(material.Divider, {}), jsxRuntime.jsxs(material.DialogActions, { children: [jsxRuntime.jsx(Button, { color: "error", onClick: handleClose, disabled: disagreeButton?.disabled, children: disagreeButton?.text ?? 'Закрыть' }), jsxRuntime.jsx(Button, { color: "success", onClick: () => {
|
|
14874
14884
|
onSuccess();
|
|
14875
14885
|
handleClose();
|
|
14876
|
-
}, children:
|
|
14886
|
+
}, disabled: agreeButton?.disabled, children: agreeButton?.text ?? 'Подтвердить' })] })] }));
|
|
14877
14887
|
};
|
|
14878
14888
|
var alertDialog = observer(AlertDialog);
|
|
14879
14889
|
|
|
@@ -24439,7 +24449,7 @@ function requireCjs () {
|
|
|
24439
24449
|
var cjsExports = requireCjs();
|
|
24440
24450
|
var Draggable = /*@__PURE__*/getDefaultExportFromCjs(cjsExports);
|
|
24441
24451
|
|
|
24442
|
-
const DraggableContainer = ({ zIndex, bottom, right, left, top, sx, children }) => {
|
|
24452
|
+
const DraggableContainer = ({ zIndex, width, bottom, right, left, top, sx, children }) => {
|
|
24443
24453
|
const id = React__namespace.useId();
|
|
24444
24454
|
const draggableRef = React__namespace.useRef(null);
|
|
24445
24455
|
return (jsxRuntime.jsx(material.Portal, { children: jsxRuntime.jsx(Draggable, { nodeRef: draggableRef, children: jsxRuntime.jsx(material.Box, { id: id, ref: draggableRef, sx: () => ({
|
|
@@ -24448,8 +24458,9 @@ const DraggableContainer = ({ zIndex, bottom, right, left, top, sx, children })
|
|
|
24448
24458
|
left,
|
|
24449
24459
|
bottom,
|
|
24450
24460
|
right,
|
|
24451
|
-
width
|
|
24461
|
+
width,
|
|
24452
24462
|
zIndex,
|
|
24463
|
+
backgroundColor: 'white',
|
|
24453
24464
|
}), children: jsxRuntime.jsx(CustomCard, { sx: sx, children: children }) }) }) }));
|
|
24454
24465
|
};
|
|
24455
24466
|
|
|
@@ -31807,6 +31818,7 @@ exports.getCityPOILayers = getCityPOILayers;
|
|
|
31807
31818
|
exports.getConditionLayers = getConditionLayers;
|
|
31808
31819
|
exports.getCoordinateByLatLng = getCoordinateByLatLng;
|
|
31809
31820
|
exports.getDefaultPOI = getDefaultPOI;
|
|
31821
|
+
exports.getEntityNames = getEntityNames;
|
|
31810
31822
|
exports.getFacilityAreaLayers = getFacilityAreaLayers;
|
|
31811
31823
|
exports.getLanduseAreaLayers = getLanduseAreaLayers;
|
|
31812
31824
|
exports.getLaneMarkingLineLayers = getLaneMarkingLineLayers;
|