@inntechcorp/it-design 2.0.144 → 2.0.146

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
  .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;
@@ -12,6 +12,15 @@ declare const meta: {
12
12
  };
13
13
  export default meta;
14
14
  type Story = StoryObj<typeof meta>;
15
+ export type UserLogType = {
16
+ key: string;
17
+ location: string;
18
+ status: string;
19
+ device: string;
20
+ ip: string;
21
+ time: string;
22
+ children?: UserLogType[];
23
+ };
15
24
  export declare const Default: Story;
16
25
  export declare const NoData: Story;
17
26
  export declare const Empty: Story;
@@ -1,6 +1,6 @@
1
- import { CSSProperties } from "react";
2
1
  import { TableProps } from "../index";
3
- declare const Table: <T>({ columns, data, cellHeight, size, headless, bordered, dashed, noGaps, overflow, getTRProps }: TableProps<T> & {
4
- getTRProps?: (row: T, rowIndex: number) => CSSProperties;
5
- }) => 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;
6
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
  };
@@ -1,2 +1,2 @@
1
1
  import { ITDSizeSlug } from "../index";
2
- export default function GetSizeBySizeSlug(size: ITDSizeSlug): "large" | "small" | "x-small" | "medium" | "default" | "x-large" | "df";
2
+ export default function GetSizeBySizeSlug(size: ITDSizeSlug): "x-small" | "small" | "medium" | "default" | "large" | "x-large" | "df";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.144",
3
+ "version": "2.0.146",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",