@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.
Files changed (59) hide show
  1. package/dist/components/buttons/button/button.stories.d.ts +1 -1
  2. package/dist/components/buttons/button/button.stories.d.ts.map +1 -1
  3. package/dist/components/buttons/delete/delete.stories.d.ts +1 -1
  4. package/dist/components/buttons/delete/delete.stories.d.ts.map +1 -1
  5. package/dist/components/buttons/edit/edit.stories.d.ts +1 -1
  6. package/dist/components/buttons/edit/edit.stories.d.ts.map +1 -1
  7. package/dist/components/card/card.stories.d.ts +1 -1
  8. package/dist/components/card/card.stories.d.ts.map +1 -1
  9. package/dist/components/checkbox/checkbox.stories.d.ts +1 -1
  10. package/dist/components/checkbox/checkbox.stories.d.ts.map +1 -1
  11. package/dist/components/drag-list/drag-list.stories.d.ts +1 -1
  12. package/dist/components/drag-list/drag-list.stories.d.ts.map +1 -1
  13. package/dist/components/drag-list/draggable/types.d.ts +1 -1
  14. package/dist/components/drag-list/droppable/types.d.ts +1 -1
  15. package/dist/components/drag-list/types.d.ts +1 -1
  16. package/dist/components/form/form.stories.d.ts +1 -1
  17. package/dist/components/form/form.stories.d.ts.map +1 -1
  18. package/dist/components/layers/leaflet/hooks/useGetLeafletLayer.d.ts +1 -1
  19. package/dist/components/layers/leaflet/leaflet.stories.d.ts +1 -1
  20. package/dist/components/layers/leaflet/leaflet.stories.d.ts.map +1 -1
  21. package/dist/components/layers/leaflet/types.d.ts +1 -1
  22. package/dist/components/list/list.d.ts +1 -1
  23. package/dist/components/list/list.stories.d.ts +1 -1
  24. package/dist/components/list/list.stories.d.ts.map +1 -1
  25. package/dist/components/loader/card.stories.d.ts +1 -1
  26. package/dist/components/loader/card.stories.d.ts.map +1 -1
  27. package/dist/components/modal/index.d.ts +4 -0
  28. package/dist/components/modal/index.d.ts.map +1 -0
  29. package/dist/components/modal/modal.d.ts +5 -0
  30. package/dist/components/modal/modal.d.ts.map +1 -0
  31. package/dist/components/modal/modal.stories.d.ts +8 -0
  32. package/dist/components/modal/modal.stories.d.ts.map +1 -0
  33. package/dist/components/modal/store.d.ts +10 -0
  34. package/dist/components/modal/store.d.ts.map +1 -0
  35. package/dist/components/modal/styles.d.ts +3 -0
  36. package/dist/components/modal/styles.d.ts.map +1 -0
  37. package/dist/components/modal/types.d.ts +10 -0
  38. package/dist/components/modal/types.d.ts.map +1 -0
  39. package/dist/components/select/select.d.ts +1 -1
  40. package/dist/components/select/select.stories.d.ts +1 -1
  41. package/dist/components/select/select.stories.d.ts.map +1 -1
  42. package/dist/configs/global/global.d.ts +1 -1
  43. package/dist/index.cjs +26 -6
  44. package/dist/index.cjs.map +1 -1
  45. package/dist/index.esm.js +2 -2
  46. package/dist/index.esm.js.map +1 -1
  47. package/dist/lib/hooks/constants.d.ts +1 -1
  48. package/dist/pages/auth/auth.stories.d.ts +1 -1
  49. package/dist/pages/auth/auth.stories.d.ts.map +1 -1
  50. package/dist/pages/auth/types.d.ts +1 -1
  51. package/dist/providers/initialize/types.d.ts +1 -1
  52. package/dist/providers/mobx/mobx.d.ts +2 -0
  53. package/dist/providers/mobx/mobx.d.ts.map +1 -1
  54. package/dist/providers/mobx/store.d.ts +2 -0
  55. package/dist/providers/mobx/store.d.ts.map +1 -1
  56. package/dist/providers/types.d.ts +1 -1
  57. package/dist/services/api/api.d.ts +1 -21
  58. package/dist/services/api/api.d.ts.map +1 -1
  59. package/package.json +147 -145
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Button } from '.';
3
3
  declare const meta: Meta<typeof Button>;
4
4
  export default meta;
@@ -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,kBAAkB,CAAC;AAEvD,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
+ {"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,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { DeleteButton } from '.';
3
3
  declare const meta: Meta<typeof DeleteButton>;
4
4
  export default meta;
@@ -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,kBAAkB,CAAC;AAGvD,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
+ {"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,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { EditButton } from '.';
3
3
  declare const meta: Meta<typeof EditButton>;
4
4
  export default meta;
@@ -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,kBAAkB,CAAC;AAEvD,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
+ {"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,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Card } from '.';
3
3
  declare const meta: Meta<typeof Card>;
4
4
  export default meta;
@@ -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,kBAAkB,CAAC;AAEvD,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
+ {"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,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Checkbox } from '.';
3
3
  declare const meta: Meta<typeof Checkbox>;
4
4
  export default meta;
@@ -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,kBAAkB,CAAC;AAKvD,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
+ {"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,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { DragList } from '.';
3
3
  type ComponentType = typeof DragList;
4
4
  declare const meta: Meta<ComponentType>;
@@ -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,kBAAkB,CAAC;AAOvD,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
+ {"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,5 +1,5 @@
1
1
  import { SxProps } from '@mui/material';
2
- import { StringOrNumber } from '@/types';
2
+ import { StringOrNumber } from '../../../types';
3
3
  export type DraggableProps = {
4
4
  id: StringOrNumber;
5
5
  sx?: {
@@ -1,4 +1,4 @@
1
- import { StringOrNumber } from '@/types';
1
+ import { StringOrNumber } from '../../../types';
2
2
  export type DroppableProps = {
3
3
  id: StringOrNumber;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { StringOrNumber } from '@/types';
1
+ import { StringOrNumber } from '../../types';
2
2
  import { List } from '../list';
3
3
  import Draggable from './draggable';
4
4
  export type DragListProps<T> = Pick<React.ComponentProps<typeof List>, 'sx' | 'title'> & {
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Form } from '.';
3
3
  type FormType = typeof Form;
4
4
  declare const meta: Meta<FormType>;
@@ -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,kBAAkB,CAAC;AAMvD,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
+ {"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 '@/types';
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,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import 'leaflet/dist/leaflet.css';
3
3
  import { LeafletLayer } from '.';
4
4
  declare const meta: Meta<typeof LeafletLayer>;
@@ -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,kBAAkB,CAAC;AAOvD,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
+ {"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,5 +1,5 @@
1
1
  import { LeafletMouseEvent } from 'leaflet';
2
- import { StringOrNumber } from '@/types';
2
+ import { StringOrNumber } from '../../../types';
3
3
  export declare enum SourceLayers {
4
4
  ONE_WAY = "\"OneWay\"",
5
5
  POINT_ADDRESS = "\"PointAddress\"",
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { SxProps } from '@mui/material';
3
- import { StringOrNumber } from '@/types';
3
+ import { StringOrNumber } from '../../types';
4
4
  interface CustomListProps<T> {
5
5
  items: T[];
6
6
  columnsCount?: number;
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { List } from '.';
3
3
  declare const meta: Meta<typeof List>;
4
4
  export default meta;
@@ -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,kBAAkB,CAAC;AAIvD,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
+ {"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,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Loader } from '.';
3
3
  declare const meta: Meta<typeof Loader>;
4
4
  export default meta;
@@ -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,kBAAkB,CAAC;AAEvD,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"}
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,4 @@
1
+ export { default as Modal } from './modal';
2
+ export * from './styles';
3
+ export * from './store';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -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,5 @@
1
+ import * as React from 'react';
2
+ import { CustomModalProps } from './types';
3
+ declare const _default: React.FunctionComponent<React.PropsWithChildren<CustomModalProps>>;
4
+ export default _default;
5
+ //# sourceMappingURL=modal.d.ts.map
@@ -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,3 @@
1
+ import { SxProps } from '@mui/material';
2
+ export declare const modalStyle: SxProps;
3
+ //# sourceMappingURL=styles.d.ts.map
@@ -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,10 @@
1
+ export interface CustomModalProps {
2
+ name: string;
3
+ onClose?: (props: {
4
+ name: CustomModalProps['name'];
5
+ }) => void;
6
+ onOpen?: (props: {
7
+ name: CustomModalProps['name'];
8
+ }) => void;
9
+ }
10
+ //# sourceMappingURL=types.d.ts.map
@@ -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 '@/types';
4
+ import { StringOrNumber } from '../../types';
5
5
  interface SelectProps<V, O> {
6
6
  name: Path<V>;
7
7
  items: O[];
@@ -1,4 +1,4 @@
1
- import type { Meta, StoryObj } from '@storybook/react';
1
+ import type { Meta, StoryObj } from '@storybook/react-vite';
2
2
  import { Select } from '.';
3
3
  declare const meta: Meta<typeof Select>;
4
4
  export default meta;
@@ -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,kBAAkB,CAAC;AAKvD,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,KA2BrB,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KA+B9B,CAAC"}
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"}
@@ -1,4 +1,4 @@
1
- import { ApiService } from '@/services/api';
1
+ import { ApiService } from '../../services/api';
2
2
  import { ResponseData } from './types';
3
3
  export interface ConfigOptions {
4
4
  apiKey: string;
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
- ...rootStore,
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) {