digitinary-ui 1.0.4 → 1.0.6

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 (81) hide show
  1. package/dist/components/Accordion/Accordion.js +28 -0
  2. package/dist/components/Accordion/index.js +1 -0
  3. package/dist/components/Alert/Alert.js +58 -0
  4. package/dist/components/Alert/index.js +1 -0
  5. package/dist/components/Button/Button.js +17 -0
  6. package/dist/components/Button/index.js +1 -0
  7. package/dist/components/Card/Card.js +6 -0
  8. package/dist/components/Card/index.js +1 -0
  9. package/dist/components/Checkbox/Checkbox.js +8 -0
  10. package/dist/components/Checkbox/index.js +1 -0
  11. package/dist/components/Chip/Chip.js +18 -0
  12. package/dist/components/Chip/index.js +1 -0
  13. package/dist/components/Date/Date.js +460 -0
  14. package/dist/components/Date/index.js +1 -0
  15. package/dist/components/DateRange/DateRange.js +206 -0
  16. package/dist/components/DateRange/index.js +1 -0
  17. package/dist/components/Dialog/Dialog.js +36 -0
  18. package/dist/components/Dialog/index.js +1 -0
  19. package/dist/components/HelperText/HelperText.js +6 -0
  20. package/dist/components/HelperText/index.js +1 -0
  21. package/dist/components/Input/Input.js +38 -0
  22. package/dist/components/Input/index.js +1 -0
  23. package/dist/components/Label/Label.js +6 -0
  24. package/dist/components/Label/index.js +1 -0
  25. package/dist/components/Overlay/Overlay.js +8 -0
  26. package/dist/components/Overlay/index.js +1 -0
  27. package/dist/components/Pagination/Pagination.js +26 -0
  28. package/dist/components/Pagination/index.js +1 -0
  29. package/dist/components/Radio/Radio.js +8 -0
  30. package/dist/components/Radio/index.js +1 -0
  31. package/dist/components/RadioGroup/RadioGroup.js +14 -0
  32. package/dist/components/RadioGroup/index.js +1 -0
  33. package/dist/components/SelectGroup/SelectGroup.js +251 -0
  34. package/dist/components/SelectGroup/index.js +1 -0
  35. package/dist/components/SideDrawer/SideDrawer.js +54 -0
  36. package/dist/components/SideDrawer/index.js +1 -0
  37. package/dist/components/Switch/Switch.js +6 -0
  38. package/dist/components/Switch/index.js +1 -0
  39. package/dist/components/Table/Table.d.ts +1 -1
  40. package/dist/components/Table/Table.js +60 -0
  41. package/dist/components/Table/index.js +1 -0
  42. package/dist/components/TextArea/TextArea.d.ts +1 -1
  43. package/dist/components/TextArea/TextArea.js +30 -0
  44. package/dist/components/TextArea/index.js +1 -0
  45. package/dist/components/Tooltip/Tooltip.js +8 -0
  46. package/dist/components/index.js +19 -0
  47. package/dist/constants/index.js +5 -0
  48. package/dist/icons/AlertErrorIcon.js +3 -0
  49. package/dist/icons/AlertInfoIcon.js +3 -0
  50. package/dist/icons/AlertSuccessIcon.js +3 -0
  51. package/dist/icons/AlertWarningIcon.js +3 -0
  52. package/dist/icons/ArrowBottom.js +3 -0
  53. package/dist/icons/ArrowLeft.js +3 -0
  54. package/dist/icons/ArrowRight.js +3 -0
  55. package/dist/icons/ArrowUpIcon.js +3 -0
  56. package/dist/icons/Calendar.js +3 -0
  57. package/dist/icons/CheckMark.js +3 -0
  58. package/dist/icons/ClearField.js +3 -0
  59. package/dist/icons/CloseIcon.js +3 -0
  60. package/dist/icons/DoubleLeftArrow.js +3 -0
  61. package/dist/icons/DoubleRightArrow.js +3 -0
  62. package/dist/icons/ExcelIcon.js +3 -0
  63. package/dist/icons/HidePasswordIcon.js +3 -0
  64. package/dist/icons/InfoIcon.js +3 -0
  65. package/dist/icons/LeftArrowIcon.js +3 -0
  66. package/dist/icons/LoaderIcon.js +3 -0
  67. package/dist/icons/PdfIcon.js +3 -0
  68. package/dist/icons/RightArrowIcon.js +3 -0
  69. package/dist/icons/SearchIcon.js +3 -0
  70. package/dist/icons/SelectFieldDownArrow.js +3 -0
  71. package/dist/icons/SelectFieldUpArrow.js +3 -0
  72. package/dist/icons/ShowPasswordIcon.js +3 -0
  73. package/dist/icons/SortIcon.js +3 -0
  74. package/dist/index.js +3 -2
  75. package/dist/types/enums.js +25 -0
  76. package/dist/types/index.js +3 -0
  77. package/dist/types/interfaces.d.ts +4 -10
  78. package/dist/types/interfaces.js +1 -0
  79. package/dist/types/types.js +1 -0
  80. package/dist/utils/index.js +8 -0
  81. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ export var Size;
2
+ (function (Size) {
3
+ Size["Small"] = "small";
4
+ Size["Medium"] = "medium";
5
+ Size["Large"] = "large";
6
+ })(Size || (Size = {}));
7
+ export var Position;
8
+ (function (Position) {
9
+ Position["End"] = "end";
10
+ Position["Start"] = "start";
11
+ Position["Top"] = "top";
12
+ Position["Bottom"] = "bottom";
13
+ })(Position || (Position = {}));
14
+ export var Duration;
15
+ (function (Duration) {
16
+ Duration["Hours"] = "hours";
17
+ Duration["Days"] = "days";
18
+ Duration["Weeks"] = "weeks";
19
+ Duration["Months"] = "months";
20
+ })(Duration || (Duration = {}));
21
+ export var TableLayout;
22
+ (function (TableLayout) {
23
+ TableLayout["AUTO"] = "auto";
24
+ TableLayout["FIXED"] = "fixed";
25
+ })(TableLayout || (TableLayout = {}));
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export * from './interfaces';
3
+ export * from './enums';
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- import { Size, TableLayout } from './enums';
2
+ import { Size } from './enums';
3
3
  import { AlertColorType, AlertVariantType, ButtonColorType, ButtonType, ButtonVariantType, InputType, PlacementType, SizeType, SwitchColorType, PositionType, ChipColorType, ChipVariantType, RadioColorType, RadioOption, HelperTextColorType } from './types';
4
4
  interface BaseProps {
5
5
  id?: string;
@@ -77,6 +77,7 @@ export interface TextAreaProps extends FormProps<string | null> {
77
77
  maxLength?: number;
78
78
  startDecorator?: JSX.Element;
79
79
  endDecorator?: JSX.Element;
80
+ direction?: 'rtl' | 'ltr';
80
81
  }
81
82
  export interface PaginationProps extends BaseProps {
82
83
  page: number;
@@ -97,22 +98,17 @@ export interface PaginationProps extends BaseProps {
97
98
  };
98
99
  }
99
100
  export interface TableProps extends BaseProps {
100
- tableLayout?: TableLayout;
101
- minWidthThreshold?: number;
102
101
  headCells: HeadCellProps[];
103
- setHeadCells: (headCells: HeadCellProps[]) => void;
104
102
  data: Record<string, any>[];
105
103
  sort: string;
106
- setSort: (prev: any) => void;
104
+ setSort: (prev: string) => void;
107
105
  currentHeadCell: string;
108
- setCurrentHeadCell: (currentHeadCell: string) => void;
106
+ setCurrentHeadCell: (prev: string) => void;
109
107
  fallback?: JSX.Element;
110
108
  footer?: JSX.Element;
111
109
  onRowClick?: (rowId: string | number) => void;
112
110
  selectableRow?: boolean;
113
111
  selectedRowId?: string;
114
- resizeAndRearrange?: boolean;
115
- tableHeader?: string;
116
112
  rowDataId?: string;
117
113
  }
118
114
  export interface SwitchProps {
@@ -252,9 +248,7 @@ export interface HeadCellProps {
252
248
  id: string;
253
249
  label: string;
254
250
  classes?: string;
255
- draggable?: boolean;
256
251
  sortable?: boolean;
257
- resizable?: boolean;
258
252
  tooltip?: boolean;
259
253
  width?: string;
260
254
  minWidth?: string;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export const updateCSSVariables = (variables) => {
2
+ const root = document.documentElement;
3
+ Object.keys(variables).forEach((key) => {
4
+ if (variables[key]) {
5
+ root.style.setProperty(`--${key}`, variables[key]);
6
+ }
7
+ });
8
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "digitinary-ui",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "Digitinary UI Library",
5
5
  "author": "Digitinary Company",
6
6
  "repository": {