@inntechcorp/it-design 2.0.150 → 2.0.151

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.
package/dist/index.d.mts CHANGED
@@ -86,7 +86,7 @@ export type { ModalProps, ModalContentProps, ModalRefProps } from './types/Modal
86
86
  export type { UploadProps, UploadProgressProps, UploadResultMessageProps } from './types/UploadProps';
87
87
  export type { ResultProps } from './types/ResultProps';
88
88
  export type { TabsItemProps, TabsProps } from './types/TabsProps';
89
- export type { TableColumnType, TableProps, TableTRProps, TableRow } from './types/TableProps';
89
+ export type { TableColumnType, TableProps, TableTRProps, TableRow, TableRefProps } from './types/TableProps';
90
90
  export type { CardProps } from './types/CardProps';
91
91
  export type { ProgressProps, ProgressStatus } from './types/ProgressProps';
92
92
  export type { StatusProps, StatusVariant } from './types/StatusProps';
package/dist/index.d.ts CHANGED
@@ -676,11 +676,8 @@ declare const Tabs: ({ tabs, activeTabKey, variant, height, onTabChange }: TabsP
676
676
 
677
677
  declare const Card: ({ title, titleSeparator, extra, tabs, onTabChange, minWidth, minHeight, children, activeTabKey, updating, contentPadding, }: CardProps) => react_jsx_runtime.JSX.Element;
678
678
 
679
- type RefProps = {
680
- toggleRow: (key: string) => void;
681
- };
682
679
  declare const Table: <T extends TableRow>(props: TableProps<T> & {
683
- ref?: Ref<RefProps>;
680
+ ref?: Ref<TableRefProps>;
684
681
  }) => JSX.Element;
685
682
 
686
683
  declare const Flex: ({ gap, justify, align, vertical, wrap, stretch, style, className, children }: FlexProps) => react_jsx_runtime.JSX.Element;
@@ -1344,6 +1341,9 @@ type TableRow = {
1344
1341
  key: string;
1345
1342
  children?: TableRow[];
1346
1343
  };
1344
+ type TableRefProps = {
1345
+ toggleRow: (key: string) => void;
1346
+ };
1347
1347
 
1348
1348
  type CardProps = {
1349
1349
  title?: ChildrenProps;
@@ -1427,4 +1427,4 @@ declare enum FileExtensions {
1427
1427
  OTF = ".otf"
1428
1428
  }
1429
1429
 
1430
- export { ALink, Accordion, type AccordionItemProps, type AccordionProps, type AccordionSubMenuProps, AddDefaultThemeStyle, AddZero, Alert, type AlertProps, type AlertSize, type AlertType, Arrow as ArrowIcon, BackToTop, BackTop, Button, type ButtonContentPosition, type ButtonProps, type ButtonState, type ButtonType, type ButtonVariant, Calendar, type CalendarDayProps, type CalendarProps, type CalendarValueProps, Card, type CardProps, CheckFileURL, Checkbox, type CheckboxEvent, type CheckboxGroupProps, type CheckboxProps, Checkmark, ChunkArray, Collapse, ConsoleLog, ConvertCurrency, DatePicker, type DatePickerProps, DetermineNewHeight, DetermineNewWidth, type FieldUpdateProps, FileChecker, FileExtensions, FileTypes, FindSelector, Flex, type FlexAlignProps, type FlexGapProps, type FlexJustifyProps, type FlexProps, Form, type FormContextType, type FormItemProps, type FormProps, type FormRuleProps, type FormSubComponentProps, type FormValueProps, FormatBytes, FormatDate, FormatDateTime, FormatSimpleDate, FormatSimpleDateTime, FormatTime, GetByCurrency, GetCountryCodeByCurrencyCode, GetCountryCodeByLanguage, GetCurrencyFormat, GetCurrencySymbol, GetDecimalByCurrency, GetTypeByFileType, type GroupCheckboxOptionType, H1, H2, H3, H4, ITDContext, type ITDContextType, type ITDImperativeFuncProps, ITDProvider, type ITDProviderProps, type ITDSize, type ITDSizeSlug, _default as Image, InlineSelect, InlineSelectArrow, Input, type InputProps, type InputVariant, IsValidJSON, Lock as LockIcon, type ModalContentProps, ModalManager, type ModalProps, type ModalRefProps, ModalState, NoData, Notification, type NotificationContextType, type NotificationsProps, Picture, Progress, type ProgressProps, type ProgressStatus, type QueryValueProps, Radio, RemoveUnits, Result, type ResultProps, SVGLoader, Select, type SelectDirection, type SelectOptionProps, type SelectPosition, type SelectProps, type SelectToggleProps, type SelectValue, type SelectVariant, type SingleQueryProps, Spin, Status, type StatusProps, type StatusVariant, Switch, type SwitchProps, Table, type TableColumnType, type TableProps, type TableRow, type TableTRProps, Tabs, type TabsItemProps, type TabsProps, TextArea, type TextAreaEvent, type TextAreaProps, type TextAreaVariant, TinyScrollbar, Tooltip, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, type UploadProgressProps, type UploadProps, type UploadResultMessageProps, Wait, ZoomIn, ZoomOut, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useReCaptcha, useSingleQuery };
1430
+ export { ALink, Accordion, type AccordionItemProps, type AccordionProps, type AccordionSubMenuProps, AddDefaultThemeStyle, AddZero, Alert, type AlertProps, type AlertSize, type AlertType, Arrow as ArrowIcon, BackToTop, BackTop, Button, type ButtonContentPosition, type ButtonProps, type ButtonState, type ButtonType, type ButtonVariant, Calendar, type CalendarDayProps, type CalendarProps, type CalendarValueProps, Card, type CardProps, CheckFileURL, Checkbox, type CheckboxEvent, type CheckboxGroupProps, type CheckboxProps, Checkmark, ChunkArray, Collapse, ConsoleLog, ConvertCurrency, DatePicker, type DatePickerProps, DetermineNewHeight, DetermineNewWidth, type FieldUpdateProps, FileChecker, FileExtensions, FileTypes, FindSelector, Flex, type FlexAlignProps, type FlexGapProps, type FlexJustifyProps, type FlexProps, Form, type FormContextType, type FormItemProps, type FormProps, type FormRuleProps, type FormSubComponentProps, type FormValueProps, FormatBytes, FormatDate, FormatDateTime, FormatSimpleDate, FormatSimpleDateTime, FormatTime, GetByCurrency, GetCountryCodeByCurrencyCode, GetCountryCodeByLanguage, GetCurrencyFormat, GetCurrencySymbol, GetDecimalByCurrency, GetTypeByFileType, type GroupCheckboxOptionType, H1, H2, H3, H4, ITDContext, type ITDContextType, type ITDImperativeFuncProps, ITDProvider, type ITDProviderProps, type ITDSize, type ITDSizeSlug, _default as Image, InlineSelect, InlineSelectArrow, Input, type InputProps, type InputVariant, IsValidJSON, Lock as LockIcon, type ModalContentProps, ModalManager, type ModalProps, type ModalRefProps, ModalState, NoData, Notification, type NotificationContextType, type NotificationsProps, Picture, Progress, type ProgressProps, type ProgressStatus, type QueryValueProps, Radio, RemoveUnits, Result, type ResultProps, SVGLoader, Select, type SelectDirection, type SelectOptionProps, type SelectPosition, type SelectProps, type SelectToggleProps, type SelectValue, type SelectVariant, type SingleQueryProps, Spin, Status, type StatusProps, type StatusVariant, Switch, type SwitchProps, Table, type TableColumnType, type TableProps, type TableRefProps, type TableRow, type TableTRProps, Tabs, type TabsItemProps, type TabsProps, TextArea, type TextAreaEvent, type TextAreaProps, type TextAreaVariant, TinyScrollbar, Tooltip, Trash, UniUpperCase, UpdateThemeStyle, Upload, Upload$1 as UploadIcon, type UploadProgressProps, type UploadProps, type UploadResultMessageProps, Wait, ZoomIn, ZoomOut, useAddExternalCSS, useComponentSize, useConnectionStatus, useConstructor, useContextBridge, useCoreFetch, useCreateDynamicStyle, useCreateStyledStyle, useMultiQuery, useOnClickOutside, useOnESCKeyDown, useOnResize, useReCaptcha, useSingleQuery };
@@ -61,32 +61,6 @@
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
-
90
64
  .arrow {
91
65
  transition: all 0.25s ease-out;
92
66
  margin-left: auto;
@@ -182,6 +156,32 @@
182
156
  transition: height 150ms ease-out;
183
157
  }
184
158
 
159
+ .option {
160
+ display: flex;
161
+ align-items: center;
162
+ cursor: pointer;
163
+ min-width: max-content;
164
+ padding: 10px 30px 10px 15px;
165
+ }
166
+ .option:not(:last-child) {
167
+ margin-bottom: 1px;
168
+ }
169
+ .option:hover {
170
+ background-color: rgba(29, 38, 73, 0.5019607843);
171
+ }
172
+
173
+ .selected .single, .selected .option span {
174
+ color: #ffffff;
175
+ }
176
+
177
+ .single, .option span {
178
+ color: rgba(255, 255, 255, 0.6666666667);
179
+ font-weight: 400;
180
+ font-size: 12px;
181
+ line-height: 12px;
182
+ white-space: nowrap;
183
+ }
184
+
185
185
  .container {
186
186
  display: flex;
187
187
  align-items: center;
@@ -1,10 +1,7 @@
1
1
  import { Ref } from "react";
2
- import { TableProps, TableRow } from "../index";
3
- export type RefProps = {
4
- toggleRow: (key: string) => void;
5
- };
2
+ import { TableProps, TableRefProps, TableRow } from "../index";
6
3
  declare const Table: <T extends TableRow>(props: TableProps<T> & {
7
- ref?: Ref<RefProps>;
4
+ ref?: Ref<TableRefProps>;
8
5
  }) => JSX.Element;
9
6
  /**
10
7
  * 👆 Bu kısım forwardRef'i generic kullandığımız için forwardRef’i generic türle tanımlamamız için lazım.
@@ -29,3 +29,6 @@ export type TableRow = {
29
29
  key: string;
30
30
  children?: TableRow[];
31
31
  };
32
+ export type TableRefProps = {
33
+ toggleRow: (key: string) => void;
34
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.150",
3
+ "version": "2.0.151",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",