@dartcom/ui-kit 3.9.7 → 3.10.0
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/buttons/button/button.stories.d.ts +1 -1
- package/dist/components/buttons/button/button.stories.d.ts.map +1 -1
- package/dist/components/buttons/delete/delete.stories.d.ts +1 -1
- package/dist/components/buttons/delete/delete.stories.d.ts.map +1 -1
- package/dist/components/buttons/edit/edit.stories.d.ts +1 -1
- package/dist/components/buttons/edit/edit.stories.d.ts.map +1 -1
- package/dist/components/card/card.stories.d.ts +1 -1
- package/dist/components/card/card.stories.d.ts.map +1 -1
- package/dist/components/checkbox/checkbox.stories.d.ts +1 -1
- package/dist/components/checkbox/checkbox.stories.d.ts.map +1 -1
- package/dist/components/drag-list/drag-list.stories.d.ts +1 -1
- package/dist/components/drag-list/drag-list.stories.d.ts.map +1 -1
- package/dist/components/drag-list/draggable/types.d.ts +1 -1
- package/dist/components/drag-list/droppable/types.d.ts +1 -1
- package/dist/components/drag-list/types.d.ts +1 -1
- package/dist/components/form/form.stories.d.ts +1 -1
- package/dist/components/form/form.stories.d.ts.map +1 -1
- package/dist/components/layers/leaflet/hooks/useGetLeafletLayer.d.ts +1 -1
- package/dist/components/layers/leaflet/leaflet.stories.d.ts +1 -1
- package/dist/components/layers/leaflet/leaflet.stories.d.ts.map +1 -1
- package/dist/components/layers/leaflet/types.d.ts +1 -1
- package/dist/components/list/list.d.ts +1 -1
- package/dist/components/list/list.stories.d.ts +1 -1
- package/dist/components/list/list.stories.d.ts.map +1 -1
- package/dist/components/loader/card.stories.d.ts +1 -1
- package/dist/components/loader/card.stories.d.ts.map +1 -1
- package/dist/components/modal/index.d.ts +4 -0
- package/dist/components/modal/index.d.ts.map +1 -0
- package/dist/components/modal/modal.d.ts +5 -0
- package/dist/components/modal/modal.d.ts.map +1 -0
- package/dist/components/modal/modal.stories.d.ts +8 -0
- package/dist/components/modal/modal.stories.d.ts.map +1 -0
- package/dist/components/modal/store.d.ts +10 -0
- package/dist/components/modal/store.d.ts.map +1 -0
- package/dist/components/modal/styles.d.ts +3 -0
- package/dist/components/modal/styles.d.ts.map +1 -0
- package/dist/components/modal/types.d.ts +10 -0
- package/dist/components/modal/types.d.ts.map +1 -0
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.stories.d.ts +1 -1
- package/dist/components/select/select.stories.d.ts.map +1 -1
- package/dist/configs/global/global.d.ts +1 -1
- package/dist/index.cjs +26 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/lib/hooks/constants.d.ts +1 -1
- package/dist/pages/auth/auth.stories.d.ts +1 -1
- package/dist/pages/auth/auth.stories.d.ts.map +1 -1
- package/dist/pages/auth/types.d.ts +1 -1
- package/dist/providers/initialize/types.d.ts +1 -1
- package/dist/providers/mobx/mobx.d.ts +2 -0
- package/dist/providers/mobx/mobx.d.ts.map +1 -1
- package/dist/providers/mobx/store.d.ts +2 -0
- package/dist/providers/mobx/store.d.ts.map +1 -1
- package/dist/providers/types.d.ts +1 -1
- package/dist/services/api/api.d.ts +1 -21
- package/dist/services/api/api.d.ts.map +1 -1
- package/package.json +147 -145
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/button/button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"button.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/button/button.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAU7B,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,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAMhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delete.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/delete/delete.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"delete.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/delete/delete.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAYnC,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,gBAAgB,EAAE,KAS9B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edit.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/edit/edit.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"edit.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/edit/edit.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAC;AAE/B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,UAAU,CAUjC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAoL3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAErB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"checkbox.stories.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/checkbox.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK5D,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAM/B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAgBrB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAgBzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drag-list.stories.d.ts","sourceRoot":"","sources":["../../../src/components/drag-list/drag-list.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"drag-list.stories.d.ts","sourceRoot":"","sources":["../../../src/components/drag-list/drag-list.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAO5D,OAAO,EAAE,QAAQ,EAAE,MAAM,GAAG,CAAC;AAE7B,KAAK,aAAa,GAAG,OAAO,QAAQ,CAAC;AAErC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,aAAa,CAG7B,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAmBrC,eAAO,MAAM,IAAI,EAAE,KAmClB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form.stories.d.ts","sourceRoot":"","sources":["../../../src/components/form/form.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"form.stories.d.ts","sourceRoot":"","sources":["../../../src/components/form/form.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAM5D,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEzB,KAAK,QAAQ,GAAG,OAAO,IAAI,CAAC;AAE5B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,QAAQ,CAGxB,CAAC;AAOF,KAAK,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAEhC,eAAO,MAAM,IAAI,EAAE,KAoDlB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Nullable } from '
|
|
1
|
+
import { Nullable } from '../../../../types';
|
|
2
2
|
import { SourceLayerEventHandlers, TangramCustomLayer, TangramEventConfig, TangramLeafletLayer, TangramScene, TangramSourceConfig } from '../types';
|
|
3
3
|
export declare const useGetLeafletLayer: ({ eventHandlers, }: {
|
|
4
4
|
eventHandlers?: SourceLayerEventHandlers;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leaflet.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/leaflet.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"leaflet.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layers/leaflet/leaflet.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAO5D,OAAO,0BAA0B,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,CAAC;AAEjC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,YAAY,CAiCnC,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAoBrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.stories.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"list.stories.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAI5D,OAAO,EAAE,IAAI,EAAE,MAAM,GAAG,CAAC;AAEzB,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAO3B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAWrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAWnB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAY3B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAYzB,CAAC;AAEF,eAAO,MAAM,SAAS,EAAE,KAYvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/loader/card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"card.stories.d.ts","sourceRoot":"","sources":["../../../src/components/loader/card.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAO7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,OAAO,EAAE,KAIrB,CAAC;AAEF,eAAO,MAAM,KAAK,EAAE,KAInB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/modal/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;;AAmD3C,wBAAqC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Modal } from '.';
|
|
3
|
+
type FormType = typeof Modal;
|
|
4
|
+
declare const meta: Meta<FormType>;
|
|
5
|
+
type Story = StoryObj<FormType>;
|
|
6
|
+
export declare const Base: Story;
|
|
7
|
+
export default meta;
|
|
8
|
+
//# sourceMappingURL=modal.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modal.stories.d.ts","sourceRoot":"","sources":["../../../src/components/modal/modal.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAQ5D,OAAO,EAAE,KAAK,EAAE,MAAM,GAAG,CAAC;AAE1B,KAAK,QAAQ,GAAG,OAAO,KAAK,CAAC;AAE7B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,QAAQ,CAiBxB,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAyEhC,eAAO,MAAM,IAAI,EAAE,KAMlB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class ModalStore {
|
|
2
|
+
constructor();
|
|
3
|
+
private _visible;
|
|
4
|
+
getIsVisible(name: string): boolean;
|
|
5
|
+
private _setVisible;
|
|
6
|
+
openModal(name: string): void;
|
|
7
|
+
closeModal(name: string): void;
|
|
8
|
+
closeAllModals(): void;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/components/modal/store.ts"],"names":[],"mappings":"AAEA,qBAAa,UAAU;;IAKrB,OAAO,CAAC,QAAQ,CAAqC;IAC9C,YAAY,CAAC,IAAI,EAAE,MAAM;IAKhC,OAAO,CAAC,WAAW;IAGZ,SAAS,CAAC,IAAI,EAAE,MAAM;IAGtB,UAAU,CAAC,IAAI,EAAE,MAAM;IAGvB,cAAc;CAGtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/modal/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAExC,eAAO,MAAM,UAAU,EAAE,OAcxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/modal/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IAEb,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;IAC9D,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,gBAAgB,CAAC,MAAM,CAAC,CAAA;KAAE,KAAK,IAAI,CAAC;CAC9D"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { SxProps } from '@mui/material';
|
|
3
3
|
import { FieldValues, Path, PathValue } from 'react-hook-form';
|
|
4
|
-
import { StringOrNumber } from '
|
|
4
|
+
import { StringOrNumber } from '../../types';
|
|
5
5
|
interface SelectProps<V, O> {
|
|
6
6
|
name: Path<V>;
|
|
7
7
|
items: O[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"select.stories.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAK5D,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG,CAAC;AAE3B,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAO7B,CAAC;AAEF,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAsBnC,eAAO,MAAM,OAAO,EAAE,KA0BrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KA8B9B,CAAC"}
|
package/dist/index.cjs
CHANGED
|
@@ -16385,6 +16385,29 @@ if (typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ === "object") {
|
|
|
16385
16385
|
});
|
|
16386
16386
|
}
|
|
16387
16387
|
|
|
16388
|
+
class ModalStore {
|
|
16389
|
+
constructor() {
|
|
16390
|
+
makeAutoObservable(this);
|
|
16391
|
+
}
|
|
16392
|
+
_visible = observable.map();
|
|
16393
|
+
getIsVisible(name) {
|
|
16394
|
+
const isVisible = this._visible.get(name) ?? false;
|
|
16395
|
+
return isVisible;
|
|
16396
|
+
}
|
|
16397
|
+
_setVisible({ name, value }) {
|
|
16398
|
+
this._visible.set(name, value);
|
|
16399
|
+
}
|
|
16400
|
+
openModal(name) {
|
|
16401
|
+
this._setVisible({ name, value: true });
|
|
16402
|
+
}
|
|
16403
|
+
closeModal(name) {
|
|
16404
|
+
this._setVisible({ name, value: false });
|
|
16405
|
+
}
|
|
16406
|
+
closeAllModals() {
|
|
16407
|
+
this._visible.clear();
|
|
16408
|
+
}
|
|
16409
|
+
}
|
|
16410
|
+
|
|
16388
16411
|
class AuthStore {
|
|
16389
16412
|
constructor() {
|
|
16390
16413
|
makeAutoObservable(this);
|
|
@@ -16400,15 +16423,12 @@ class AuthStore {
|
|
|
16400
16423
|
|
|
16401
16424
|
class RootStore {
|
|
16402
16425
|
authStore = new AuthStore();
|
|
16426
|
+
modalStore = new ModalStore();
|
|
16403
16427
|
}
|
|
16404
16428
|
const rootStore = new RootStore();
|
|
16405
16429
|
|
|
16406
|
-
const StoreContext = React__namespace.createContext(
|
|
16407
|
-
|
|
16408
|
-
});
|
|
16409
|
-
const DartcomMobxProvider = ({ children, }) => (jsxRuntime.jsx(StoreContext.Provider, { value: {
|
|
16410
|
-
...rootStore,
|
|
16411
|
-
}, children: children }));
|
|
16430
|
+
const StoreContext = React__namespace.createContext(rootStore);
|
|
16431
|
+
const DartcomMobxProvider = ({ children, }) => (jsxRuntime.jsx(StoreContext.Provider, { value: rootStore, children: children }));
|
|
16412
16432
|
const useRootStore = () => {
|
|
16413
16433
|
const rootStore = React__namespace.useContext(StoreContext);
|
|
16414
16434
|
if (rootStore === null) {
|