@dartcom/ui-kit 3.9.8 → 3.10.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.
Files changed (49) 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/form/form.stories.d.ts +1 -1
  14. package/dist/components/form/form.stories.d.ts.map +1 -1
  15. package/dist/components/index.d.ts +1 -0
  16. package/dist/components/index.d.ts.map +1 -1
  17. package/dist/components/layers/leaflet/leaflet.stories.d.ts +1 -1
  18. package/dist/components/layers/leaflet/leaflet.stories.d.ts.map +1 -1
  19. package/dist/components/list/list.stories.d.ts +1 -1
  20. package/dist/components/list/list.stories.d.ts.map +1 -1
  21. package/dist/components/loader/card.stories.d.ts +1 -1
  22. package/dist/components/loader/card.stories.d.ts.map +1 -1
  23. package/dist/components/modal/index.d.ts +4 -0
  24. package/dist/components/modal/index.d.ts.map +1 -0
  25. package/dist/components/modal/modal.d.ts +5 -0
  26. package/dist/components/modal/modal.d.ts.map +1 -0
  27. package/dist/components/modal/modal.stories.d.ts +8 -0
  28. package/dist/components/modal/modal.stories.d.ts.map +1 -0
  29. package/dist/components/modal/store.d.ts +10 -0
  30. package/dist/components/modal/store.d.ts.map +1 -0
  31. package/dist/components/modal/styles.d.ts +3 -0
  32. package/dist/components/modal/styles.d.ts.map +1 -0
  33. package/dist/components/modal/types.d.ts +10 -0
  34. package/dist/components/modal/types.d.ts.map +1 -0
  35. package/dist/components/select/select.stories.d.ts +1 -1
  36. package/dist/components/select/select.stories.d.ts.map +1 -1
  37. package/dist/index.cjs +71 -6
  38. package/dist/index.cjs.map +1 -1
  39. package/dist/index.esm.js +2 -2
  40. package/dist/index.esm.js.map +1 -1
  41. package/dist/pages/auth/auth.stories.d.ts +1 -1
  42. package/dist/pages/auth/auth.stories.d.ts.map +1 -1
  43. package/dist/providers/mobx/mobx.d.ts +2 -0
  44. package/dist/providers/mobx/mobx.d.ts.map +1 -1
  45. package/dist/providers/mobx/store.d.ts +2 -0
  46. package/dist/providers/mobx/store.d.ts.map +1 -1
  47. package/dist/services/api/api.d.ts +1 -21
  48. package/dist/services/api/api.d.ts.map +1 -1
  49. package/package.json +147 -146
@@ -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,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"}
@@ -10,4 +10,5 @@ export * from './layers';
10
10
  export * from './card';
11
11
  export * from './loader';
12
12
  export * from './error-boundary';
13
+ export * from './modal';
13
14
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,SAAS,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 '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,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,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"}
package/dist/index.cjs CHANGED
@@ -12,6 +12,8 @@ var styles$2 = require('@mui/material/styles');
12
12
  var Typography = require('@mui/material/Typography');
13
13
  var Autocomplete = require('@mui/material/Autocomplete');
14
14
  var reactDom = require('react-dom');
15
+ var Box = require('@mui/material/Box');
16
+ var Modal = require('@mui/material/Modal');
15
17
  var xDatePickers = require('@mui/x-date-pickers');
16
18
  var AdapterDateFns = require('@mui/x-date-pickers/AdapterDateFns');
17
19
 
@@ -16385,6 +16387,29 @@ if (typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__ === "object") {
16385
16387
  });
16386
16388
  }
16387
16389
 
16390
+ class ModalStore {
16391
+ constructor() {
16392
+ makeAutoObservable(this);
16393
+ }
16394
+ _visible = observable.map();
16395
+ getIsVisible(name) {
16396
+ const isVisible = this._visible.get(name) ?? false;
16397
+ return isVisible;
16398
+ }
16399
+ _setVisible({ name, value }) {
16400
+ this._visible.set(name, value);
16401
+ }
16402
+ openModal(name) {
16403
+ this._setVisible({ name, value: true });
16404
+ }
16405
+ closeModal(name) {
16406
+ this._setVisible({ name, value: false });
16407
+ }
16408
+ closeAllModals() {
16409
+ this._visible.clear();
16410
+ }
16411
+ }
16412
+
16388
16413
  class AuthStore {
16389
16414
  constructor() {
16390
16415
  makeAutoObservable(this);
@@ -16400,15 +16425,12 @@ class AuthStore {
16400
16425
 
16401
16426
  class RootStore {
16402
16427
  authStore = new AuthStore();
16428
+ modalStore = new ModalStore();
16403
16429
  }
16404
16430
  const rootStore = new RootStore();
16405
16431
 
16406
- const StoreContext = React__namespace.createContext({
16407
- ...rootStore,
16408
- });
16409
- const DartcomMobxProvider = ({ children, }) => (jsxRuntime.jsx(StoreContext.Provider, { value: {
16410
- ...rootStore,
16411
- }, children: children }));
16432
+ const StoreContext = React__namespace.createContext(rootStore);
16433
+ const DartcomMobxProvider = ({ children, }) => (jsxRuntime.jsx(StoreContext.Provider, { value: rootStore, children: children }));
16412
16434
  const useRootStore = () => {
16413
16435
  const rootStore = React__namespace.useContext(StoreContext);
16414
16436
  if (rootStore === null) {
@@ -26102,6 +26124,46 @@ const DartcomProviders = ({ children, configOptions, themeOptions }) => {
26102
26124
  return (jsxRuntime.jsx(SnackbarProvider, { children: jsxRuntime.jsx(QueryProvider, { children: jsxRuntime.jsx(DartcomMobxProvider, { children: jsxRuntime.jsx(DartcomThemeProvider, { themeOptions: themeOptions, children: jsxRuntime.jsx(Provider, { children: jsxRuntime.jsx(DartcomInitializeProvider, { configOptions: configOptions, children: children }) }) }) }) }) }));
26103
26125
  };
26104
26126
 
26127
+ const modalStyle = {
26128
+ position: 'absolute',
26129
+ top: '50%',
26130
+ left: '50%',
26131
+ transform: 'translate(-50%, -50%)',
26132
+ bgcolor: 'background.paper',
26133
+ border: '2px solid #000',
26134
+ boxShadow: 24,
26135
+ p: 4,
26136
+ maxHeight: '90vh',
26137
+ overflowX: 'auto',
26138
+ overflowY: 'auto',
26139
+ };
26140
+
26141
+ const CustomModal = ({ name, children, onClose, onOpen, }) => {
26142
+ const modalId = React__namespace.useId();
26143
+ const { modalStore } = useRootStore();
26144
+ const open = modalStore.getIsVisible(name);
26145
+ React__namespace.useEffect(() => {
26146
+ if (open) {
26147
+ onOpen?.({ name });
26148
+ }
26149
+ }, [open]);
26150
+ return (jsxRuntime.jsx(Modal, { open: open, onClose: () => {
26151
+ modalStore.closeModal(name);
26152
+ onClose?.({ name });
26153
+ }, "aria-labelledby": `modal-${modalId}-title`, "aria-describedby": `modal-${modalId}-description`, children: jsxRuntime.jsx(Box, { sx: ({ breakpoints }) => {
26154
+ return {
26155
+ ...modalStyle,
26156
+ [breakpoints.up('sm')]: {
26157
+ minWidth: 400,
26158
+ },
26159
+ [breakpoints.down('sm')]: {
26160
+ minWidth: '80vw',
26161
+ },
26162
+ };
26163
+ }, children: children }) }));
26164
+ };
26165
+ var modal = observer(CustomModal);
26166
+
26105
26167
  const r=(t,r,o)=>{if(t&&"reportValidity"in t){const s=get(o,r);t.setCustomValidity(s&&s.message||""),t.reportValidity();}},o$1=(e,t)=>{for(const o in t.fields){const s=t.fields[o];s&&s.ref&&"reportValidity"in s.ref?r(s.ref,o,e):s&&s.refs&&s.refs.forEach(t=>r(t,o,e));}},s=(r,s)=>{s.shouldUseNativeValidation&&o$1(r,s);const n={};for(const o in r){const f=get(s.fields,o),c=Object.assign(r[o]||{},{ref:f&&f.ref});if(i(s.names||Object.keys(r),o)){const r=Object.assign({},get(n,o));set(r,"root",c),set(n,o,r);}else set(n,o,c);}return n},i=(e,t)=>{const r=n(t);return e.some(e=>n(e).match(`^${r}\\.\\d+`))};function n(e){return e.replace(/\]|\[/g,"")}
26106
26168
 
26107
26169
  function o(o,n,s$1){return void 0===s$1&&(s$1={}),function(a,i,c){try{return Promise.resolve(function(t,r){try{var u=(null!=n&&n.context&&"development"===process.env.NODE_ENV&&console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"),Promise.resolve(o["sync"===s$1.mode?"validateSync":"validate"](a,Object.assign({abortEarly:!1},n,{context:i}))).then(function(t){return c.shouldUseNativeValidation&&o$1({},c),{values:s$1.raw?Object.assign({},a):t,errors:{}}}));}catch(e){return r(e)}return u&&u.then?u.then(void 0,r):u}(0,function(e){if(!e.inner)throw e;return {values:{},errors:s((o=e,n=!c.shouldUseNativeValidation&&"all"===c.criteriaMode,(o.inner||[]).reduce(function(e,t){if(e[t.path]||(e[t.path]={message:t.message,type:t.type}),n){var o=e[t.path].types,s=o&&o[t.type];e[t.path]=appendErrors(t.path,n,e,t.type,s?[].concat(s,t.message):t.message);}return e},{})),c)};var o,n;}))}catch(e){return Promise.reject(e)}}}
@@ -28525,6 +28587,8 @@ exports.LeafletLayer = LeafletLayer;
28525
28587
  exports.List = CustomList;
28526
28588
  exports.Loader = Loader;
28527
28589
  exports.LocalizationProvider = Provider;
28590
+ exports.Modal = modal;
28591
+ exports.ModalStore = ModalStore;
28528
28592
  exports.NoData = NoData;
28529
28593
  exports.QueryProvider = QueryProvider;
28530
28594
  exports.Select = CustomSelect;
@@ -28569,6 +28633,7 @@ exports.getValidLayer = getValidLayer;
28569
28633
  exports.getWaterAreaLayers = getWaterAreaLayers;
28570
28634
  exports.getWaterLinkLayers = getWaterLinkLayers;
28571
28635
  exports.imagesPath = imagesPath;
28636
+ exports.modalStyle = modalStyle;
28572
28637
  exports.queryClient = queryClient;
28573
28638
  exports.rootStore = rootStore;
28574
28639
  exports.sourceUrl = sourceUrl;