@local-civics/mgmt-ui 0.1.21 → 0.1.23

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.
@@ -1,6 +1,9 @@
1
1
  /// <reference types="react" />
2
- import { TabsValue } from '@mantine/core';
3
- import { BadgeUserItem } from "./Table";
2
+ import { Item } from "./Table";
3
+ /**
4
+ * BadgeUserItem
5
+ */
6
+ export type BadgeUserItem = Item;
4
7
  /**
5
8
  * BadgeGroup
6
9
  */
@@ -21,7 +24,6 @@ export type BadgeProps = {
21
24
  onBackClick: () => void;
22
25
  onGroupChange: (group: string) => void;
23
26
  onPreviewClick: () => void;
24
- onTabChange: (tab: TabsValue) => void;
25
27
  onUserClick: (user: BadgeUserItem) => void;
26
28
  };
27
29
  /**
@@ -2,7 +2,7 @@
2
2
  /**
3
3
  * Item
4
4
  */
5
- export interface BadgeUserItem {
5
+ export interface Item {
6
6
  userId: string;
7
7
  avatar: string;
8
8
  name: string;
@@ -14,13 +14,13 @@ export interface BadgeUserItem {
14
14
  */
15
15
  export type TableData = {
16
16
  loading: boolean;
17
- items: BadgeUserItem[];
17
+ items: Item[];
18
18
  };
19
19
  /**
20
20
  * TableMethods
21
21
  */
22
22
  export type TableMethods = {
23
- onClick: (item: BadgeUserItem) => void;
23
+ onClick: (item: Item) => void;
24
24
  };
25
25
  /**
26
26
  * TableProps
@@ -1,5 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { TabsValue } from '@mantine/core';
3
2
  import { Item } from "./Table";
4
3
  /**
5
4
  * LessonUserItem
@@ -25,7 +24,6 @@ export type LessonProps = {
25
24
  onBackClick: () => void;
26
25
  onGroupChange: (group: string) => void;
27
26
  onPreviewClick: () => void;
28
- onTabChange: (tab: TabsValue) => void;
29
27
  onUserClick: (user: LessonUserItem) => void;
30
28
  };
31
29
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@local-civics/mgmt-ui",
3
- "version": "0.1.21",
3
+ "version": "0.1.23",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "scripts": {