namirasoft-site-react 1.4.69 → 1.4.70

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 (43) hide show
  1. package/dist/components/NSBarAction.js +3 -2
  2. package/dist/components/NSBarAction.js.map +1 -1
  3. package/dist/components/NSBarTitle.js +2 -1
  4. package/dist/components/NSBarTitle.js.map +1 -1
  5. package/dist/components/NSBoxBooleans.js +2 -1
  6. package/dist/components/NSBoxBooleans.js.map +1 -1
  7. package/dist/components/NSFilterBox.js +2 -1
  8. package/dist/components/NSFilterBox.js.map +1 -1
  9. package/dist/components/NSGroupedList.js +2 -1
  10. package/dist/components/NSGroupedList.js.map +1 -1
  11. package/dist/components/NSHeader.js +3 -2
  12. package/dist/components/NSHeader.js.map +1 -1
  13. package/dist/components/NSLayout.js +2 -1
  14. package/dist/components/NSLayout.js.map +1 -1
  15. package/dist/components/NSRange.js +2 -1
  16. package/dist/components/NSRange.js.map +1 -1
  17. package/dist/components/NSRepeater.js +2 -1
  18. package/dist/components/NSRepeater.js.map +1 -1
  19. package/dist/components/NSTabPage.d.ts +1 -1
  20. package/dist/components/NSTabPage.js +3 -2
  21. package/dist/components/NSTabPage.js.map +1 -1
  22. package/dist/components/NSTimelineMonthly.js +3 -2
  23. package/dist/components/NSTimelineMonthly.js.map +1 -1
  24. package/dist/main.d.ts +2 -1
  25. package/dist/main.js +2 -1
  26. package/dist/main.js.map +1 -1
  27. package/dist/utils/generateUniqId.d.ts +1 -0
  28. package/dist/utils/generateUniqId.js +2 -0
  29. package/dist/utils/generateUniqId.js.map +1 -0
  30. package/package.json +1 -1
  31. package/src/components/NSBarAction.tsx +4 -3
  32. package/src/components/NSBarTitle.tsx +2 -1
  33. package/src/components/NSBoxBooleans.tsx +3 -2
  34. package/src/components/NSFilterBox.tsx +3 -2
  35. package/src/components/NSGroupedList.tsx +22 -13
  36. package/src/components/NSHeader.tsx +215 -214
  37. package/src/components/NSLayout.tsx +4 -3
  38. package/src/components/NSRange.tsx +2 -1
  39. package/src/components/NSRepeater.tsx +2 -1
  40. package/src/components/NSTabPage.tsx +5 -4
  41. package/src/components/NSTimelineMonthly.tsx +4 -3
  42. package/src/main.ts +2 -1
  43. package/src/utils/generateUniqId.ts +1 -0
@@ -1,7 +1,8 @@
1
1
  "use client";
2
- import Styles from './NSTabPage.module.css';
3
- import { IBaseComponentProps } from "../props/IBaseComponentProps";
4
2
  import { Component } from "react";
3
+ import { IBaseComponentProps } from "../props/IBaseComponentProps";
4
+ import { generateUniqId } from '../utils/generateUniqId';
5
+ import Styles from './NSTabPage.module.css';
5
6
 
6
7
  export interface NSTabPageTab
7
8
  {
@@ -46,7 +47,7 @@ export class NSTabPage extends Component<NSTabPageProps, NSTabPageState>
46
47
  {
47
48
  this.props.tabs.map((tab, index) => (
48
49
  <li
49
- key={index}
50
+ key={generateUniqId()}
50
51
  className={this.state.activeTabIndex === index ? Styles.active : ''}
51
52
  onClick={() =>
52
53
  {
@@ -63,7 +64,7 @@ export class NSTabPage extends Component<NSTabPageProps, NSTabPageState>
63
64
  {
64
65
  this.props.tabs.map((tab, index) => (
65
66
  <div
66
- key={index}
67
+ key={generateUniqId()}
67
68
  className={this.props.grid ? Styles.ns_tab_content_grid : Styles.ns_tab_content_column}
68
69
  style={{ display: index === this.state.activeTabIndex ? "flex" : "none" }}
69
70
  >
@@ -1,6 +1,7 @@
1
- import Styles from './NSTimelineMonthly.module.css';
2
1
  import { IBaseComponentProps } from "../props/IBaseComponentProps";
3
2
  import { Color } from "../Color"
3
+ import { generateUniqId } from '../utils/generateUniqId';
4
+ import Styles from './NSTimelineMonthly.module.css';
4
5
  export interface NSdata
5
6
  {
6
7
  title: string;
@@ -26,8 +27,8 @@ export function NSTimelineMonthly(props: INSNSTimelineMonthlyProps)
26
27
  <h5 className={Styles.ns_time_line_title}>{props.title}</h5>
27
28
  <div className={Styles.ns_time_line_monthly}>
28
29
  {
29
- props.data.map((card, index) => (
30
- <div className={Styles.ns_time_line_monthly_card} key={index}>
30
+ props.data.map((card) => (
31
+ <div className={Styles.ns_time_line_monthly_card} key={generateUniqId()}>
31
32
  <h5 className={Styles.ns_time_line_monthly_card_week_day}>{card.title}</h5>
32
33
  <span className={Styles.ns_time_line_cards_hour}>{card.value}</span>
33
34
  <div className={Styles.ns_time_line_monthly_card_parent_chart}>
package/src/main.ts CHANGED
@@ -102,6 +102,7 @@ export * from "./formatter/StringFormatter";
102
102
  export * from "./formatter/TimeFormatter";
103
103
  export * from "./formatter/UnknowFormatter";
104
104
  export * from "./pages/NSNotFoundPage";
105
+ export * from "./pages/NSUpdating";
105
106
  export * from "./props/IBaseComponentProps";
106
107
  export * from "./props/IHeaderIconProps";
107
108
  export * from "./props/IHeaderProps";
@@ -116,4 +117,4 @@ export * from "./routing/INSRouterProps";
116
117
  export * from "./routing/INSRouterState";
117
118
  export * from "./routing/Notifier";
118
119
  export * from "./routing/NSRouterMaker";
119
- export * from "./pages/NSUpdating";
120
+ export * from "./utils/generateUniqId";
@@ -0,0 +1 @@
1
+ export let generateUniqId = () => Math.floor(Math.random() * Date.now()).toString(16);