@inntechcorp/it-design 2.0.145 → 2.0.147

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.
@@ -61,6 +61,32 @@
61
61
  -webkit-box-shadow: 0 0 0 30px #151d3d inset !important;
62
62
  }
63
63
 
64
+ .option {
65
+ display: flex;
66
+ align-items: center;
67
+ cursor: pointer;
68
+ min-width: max-content;
69
+ padding: 10px 30px 10px 15px;
70
+ }
71
+ .option:not(:last-child) {
72
+ margin-bottom: 1px;
73
+ }
74
+ .option:hover {
75
+ background-color: rgba(29, 38, 73, 0.5019607843);
76
+ }
77
+
78
+ .selected .single, .selected .option span {
79
+ color: #ffffff;
80
+ }
81
+
82
+ .single, .option span {
83
+ color: rgba(255, 255, 255, 0.6666666667);
84
+ font-weight: 400;
85
+ font-size: 12px;
86
+ line-height: 12px;
87
+ white-space: nowrap;
88
+ }
89
+
64
90
  .menu {
65
91
  background-color: #050A20;
66
92
  border-radius: 0 5px 5px 5px;
@@ -127,32 +153,6 @@
127
153
  transition: height 150ms ease-out;
128
154
  }
129
155
 
130
- .option {
131
- display: flex;
132
- align-items: center;
133
- cursor: pointer;
134
- min-width: max-content;
135
- padding: 10px 30px 10px 15px;
136
- }
137
- .option:not(:last-child) {
138
- margin-bottom: 1px;
139
- }
140
- .option:hover {
141
- background-color: rgba(29, 38, 73, 0.5019607843);
142
- }
143
-
144
- .selected .single, .selected .option span {
145
- color: #ffffff;
146
- }
147
-
148
- .single, .option span {
149
- color: rgba(255, 255, 255, 0.6666666667);
150
- font-weight: 400;
151
- font-size: 12px;
152
- line-height: 12px;
153
- white-space: nowrap;
154
- }
155
-
156
156
  .arrow {
157
157
  transition: all 0.25s ease-out;
158
158
  margin-left: auto;
@@ -61,6 +61,32 @@
61
61
  -webkit-box-shadow: 0 0 0 30px #151d3d inset !important;
62
62
  }
63
63
 
64
+ .option {
65
+ display: flex;
66
+ align-items: center;
67
+ cursor: pointer;
68
+ min-width: max-content;
69
+ padding: 10px 30px 10px 15px;
70
+ }
71
+ .option:not(:last-child) {
72
+ margin-bottom: 1px;
73
+ }
74
+ .option:hover {
75
+ background-color: rgba(29, 38, 73, 0.5019607843);
76
+ }
77
+
78
+ .selected .single, .selected .option span {
79
+ color: #ffffff;
80
+ }
81
+
82
+ .single, .option span {
83
+ color: rgba(255, 255, 255, 0.6666666667);
84
+ font-weight: 400;
85
+ font-size: 12px;
86
+ line-height: 12px;
87
+ white-space: nowrap;
88
+ }
89
+
64
90
  .arrow {
65
91
  transition: all 0.25s ease-out;
66
92
  margin-left: auto;
@@ -90,32 +116,6 @@
90
116
  align-items: center;
91
117
  }
92
118
 
93
- .option {
94
- display: flex;
95
- align-items: center;
96
- cursor: pointer;
97
- min-width: max-content;
98
- padding: 10px 30px 10px 15px;
99
- }
100
- .option:not(:last-child) {
101
- margin-bottom: 1px;
102
- }
103
- .option:hover {
104
- background-color: rgba(29, 38, 73, 0.5019607843);
105
- }
106
-
107
- .selected .single, .selected .option span {
108
- color: #ffffff;
109
- }
110
-
111
- .single, .option span {
112
- color: rgba(255, 255, 255, 0.6666666667);
113
- font-weight: 400;
114
- font-size: 12px;
115
- line-height: 12px;
116
- white-space: nowrap;
117
- }
118
-
119
119
  .menu {
120
120
  background-color: #050A20;
121
121
  border-radius: 0 5px 5px 5px;
@@ -19,6 +19,7 @@ export type UserLogType = {
19
19
  device: string;
20
20
  ip: string;
21
21
  time: string;
22
+ children?: UserLogType[];
22
23
  };
23
24
  export declare const Default: Story;
24
25
  export declare const NoData: Story;
@@ -1,3 +1,6 @@
1
1
  import { TableProps } from "../index";
2
- declare const Table: <T>({ columns, data, cellHeight, size, headless, bordered, dashed, noGaps, overflow, getTRProps }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Table: <T extends {
3
+ key: string;
4
+ children?: T[] | undefined;
5
+ }>({ columns, data, cellHeight, size, headless, bordered, dashed, noGaps, overflow, getTRProps }: TableProps<T>) => import("react/jsx-runtime").JSX.Element;
3
6
  export default Table;
@@ -18,5 +18,9 @@ export type TableProps<T> = {
18
18
  dashed?: boolean;
19
19
  noGaps?: boolean;
20
20
  overflow?: boolean;
21
- getTRProps?: (row: T, rowIndex: number) => React.CSSProperties;
21
+ getTRProps?: (row: T, rowIndex: number, level: number) => TableTRProps;
22
+ };
23
+ export type TableTRProps = {
24
+ style?: React.CSSProperties;
25
+ classNames?: string;
22
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.145",
3
+ "version": "2.0.147",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",