@itilite/lumina-ui 1.0.1 → 1.0.2-alpha

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 (102) hide show
  1. package/README.md +43 -10
  2. package/dist/AdvancedDateRangePicker-ozItnkhp.d.mts +57 -0
  3. package/dist/AdvancedDateRangePicker-ozItnkhp.d.ts +57 -0
  4. package/dist/Table-BOq-_9Nr.d.mts +121 -0
  5. package/dist/Table-BOq-_9Nr.d.ts +121 -0
  6. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.mts +2 -0
  7. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.d.ts +2 -0
  8. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.js +791 -0
  9. package/dist/atom/AdvancedDateRangePicker/AdvancedDateRangePicker.mjs +11 -0
  10. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.mts +17 -0
  11. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.d.ts +17 -0
  12. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.js +370 -0
  13. package/dist/atom/AdvancedDateRangePicker/InternalCalendar.mjs +8 -0
  14. package/dist/{Avatar.d.mts → atom/Avatar/Avatar.d.mts} +1 -9
  15. package/dist/{Avatar.d.ts → atom/Avatar/Avatar.d.ts} +1 -9
  16. package/dist/{Avatar.js → atom/Avatar/Avatar.js} +4 -2
  17. package/dist/{Avatar.mjs → atom/Avatar/Avatar.mjs} +2 -2
  18. package/dist/{Button.js → atom/Button/Button.js} +1 -1
  19. package/dist/{Button.mjs → atom/Button/Button.mjs} +2 -2
  20. package/dist/{Checkbox.mjs → atom/Checkbox/Checkbox.mjs} +2 -2
  21. package/dist/atom/LoadingSpinner/LoadingSpinner.d.mts +19 -0
  22. package/dist/atom/LoadingSpinner/LoadingSpinner.d.ts +19 -0
  23. package/dist/atom/LoadingSpinner/LoadingSpinner.js +90 -0
  24. package/dist/atom/LoadingSpinner/LoadingSpinner.mjs +9 -0
  25. package/dist/{Modal.d.mts → atom/Modal/Modal.d.mts} +1 -1
  26. package/dist/{Modal.d.ts → atom/Modal/Modal.d.ts} +1 -1
  27. package/dist/{Modal.js → atom/Modal/Modal.js} +1 -1
  28. package/dist/atom/Modal/Modal.mjs +10 -0
  29. package/dist/{Radio.mjs → atom/Radio/Radio.mjs} +2 -2
  30. package/dist/atom/RangePicker/Chevron.d.mts +13 -0
  31. package/dist/atom/RangePicker/Chevron.d.ts +13 -0
  32. package/dist/atom/RangePicker/Chevron.js +110 -0
  33. package/dist/atom/RangePicker/Chevron.mjs +7 -0
  34. package/dist/atom/RangePicker/RangePicker.d.mts +26 -0
  35. package/dist/atom/RangePicker/RangePicker.d.ts +26 -0
  36. package/dist/atom/RangePicker/RangePicker.js +1465 -0
  37. package/dist/atom/RangePicker/RangePicker.mjs +13 -0
  38. package/dist/atom/Select/Select.d.mts +40 -0
  39. package/dist/atom/Select/Select.d.ts +40 -0
  40. package/dist/atom/Select/Select.js +805 -0
  41. package/dist/atom/Select/Select.mjs +11 -0
  42. package/dist/atom/Slider/Slider.d.mts +34 -0
  43. package/dist/atom/Slider/Slider.d.ts +34 -0
  44. package/dist/atom/Slider/Slider.js +107 -0
  45. package/dist/atom/Slider/Slider.mjs +9 -0
  46. package/dist/{Switch.mjs → atom/Switch/Switch.mjs} +2 -2
  47. package/dist/atom/Table/Table.d.mts +3 -0
  48. package/dist/atom/Table/Table.d.ts +3 -0
  49. package/dist/atom/Table/Table.js +306 -0
  50. package/dist/atom/Table/Table.mjs +9 -0
  51. package/dist/atom/Tag/Tag.d.mts +6 -0
  52. package/dist/atom/Tag/Tag.d.ts +6 -0
  53. package/dist/atom/Tag/Tag.js +108 -0
  54. package/dist/atom/Tag/Tag.mjs +9 -0
  55. package/dist/{Tooltip.mjs → atom/Tooltip/Tooltip.mjs} +2 -2
  56. package/dist/chunk-4JX54OKI.mjs +627 -0
  57. package/dist/chunk-4VZB2KR2.mjs +51 -0
  58. package/dist/chunk-53O7JM5I.mjs +424 -0
  59. package/dist/{chunk-HISCHZ5H.mjs → chunk-AF2RKLH6.mjs} +1 -1
  60. package/dist/chunk-D3N7VFER.mjs +73 -0
  61. package/dist/chunk-GU5F7Z7I.mjs +681 -0
  62. package/dist/{chunk-X76GNSBB.mjs → chunk-IWO2Y5QX.mjs} +4 -2
  63. package/dist/chunk-J4YYP4IZ.mjs +0 -0
  64. package/dist/chunk-N2WTNCQU.mjs +66 -0
  65. package/dist/chunk-N4DPPZVJ.mjs +269 -0
  66. package/dist/chunk-PQ3B2FEB.mjs +249 -0
  67. package/dist/chunk-QKTMWS4J.mjs +43 -0
  68. package/dist/{chunk-N355RJGH.mjs → chunk-UQJ3BDM4.mjs} +1 -1
  69. package/dist/chunk-V3CHJHUX.mjs +424 -0
  70. package/dist/chunk-ZTRM4HZJ.mjs +53 -0
  71. package/dist/index.d.mts +18 -7
  72. package/dist/index.d.ts +18 -7
  73. package/dist/index.js +2461 -8
  74. package/dist/index.mjs +46 -12
  75. package/dist/molecules/UserProfile/UserProfile.d.mts +23 -0
  76. package/dist/molecules/UserProfile/UserProfile.d.ts +23 -0
  77. package/dist/molecules/UserProfile/UserProfile.js +243 -0
  78. package/dist/molecules/UserProfile/UserProfile.mjs +11 -0
  79. package/dist/styles.css +1740 -891
  80. package/dist/types-D4MD2w3_.d.mts +9 -0
  81. package/dist/types-D4MD2w3_.d.ts +9 -0
  82. package/dist/types-mhQmqhsR.d.mts +10 -0
  83. package/dist/types-mhQmqhsR.d.ts +10 -0
  84. package/package.json +9 -32
  85. package/dist/Modal.mjs +0 -10
  86. package/dist/chunk-2O2IH2FG.mjs +0 -83
  87. package/dist/styles.d.mts +0 -2
  88. package/dist/styles.d.ts +0 -2
  89. /package/dist/{Button.d.mts → atom/Button/Button.d.mts} +0 -0
  90. /package/dist/{Button.d.ts → atom/Button/Button.d.ts} +0 -0
  91. /package/dist/{Checkbox.d.mts → atom/Checkbox/Checkbox.d.mts} +0 -0
  92. /package/dist/{Checkbox.d.ts → atom/Checkbox/Checkbox.d.ts} +0 -0
  93. /package/dist/{Checkbox.js → atom/Checkbox/Checkbox.js} +0 -0
  94. /package/dist/{Radio.d.mts → atom/Radio/Radio.d.mts} +0 -0
  95. /package/dist/{Radio.d.ts → atom/Radio/Radio.d.ts} +0 -0
  96. /package/dist/{Radio.js → atom/Radio/Radio.js} +0 -0
  97. /package/dist/{Switch.d.mts → atom/Switch/Switch.d.mts} +0 -0
  98. /package/dist/{Switch.d.ts → atom/Switch/Switch.d.ts} +0 -0
  99. /package/dist/{Switch.js → atom/Switch/Switch.js} +0 -0
  100. /package/dist/{Tooltip.d.mts → atom/Tooltip/Tooltip.d.mts} +0 -0
  101. /package/dist/{Tooltip.d.ts → atom/Tooltip/Tooltip.d.ts} +0 -0
  102. /package/dist/{Tooltip.js → atom/Tooltip/Tooltip.js} +0 -0
@@ -0,0 +1,9 @@
1
+ interface TagProps {
2
+ type?: "success" | "warning" | "blue" | "processing" | "failed";
3
+ className?: string;
4
+ title?: string;
5
+ icon?: React.ReactElement;
6
+ size?: string;
7
+ }
8
+
9
+ export type { TagProps as T };
@@ -0,0 +1,9 @@
1
+ interface TagProps {
2
+ type?: "success" | "warning" | "blue" | "processing" | "failed";
3
+ className?: string;
4
+ title?: string;
5
+ icon?: React.ReactElement;
6
+ size?: string;
7
+ }
8
+
9
+ export type { TagProps as T };
@@ -0,0 +1,10 @@
1
+ interface AvatarProps {
2
+ img?: string;
3
+ className?: string;
4
+ name: string;
5
+ height?: number;
6
+ width?: number;
7
+ size?: "small" | "normal";
8
+ }
9
+
10
+ export type { AvatarProps as A };
@@ -0,0 +1,10 @@
1
+ interface AvatarProps {
2
+ img?: string;
3
+ className?: string;
4
+ name: string;
5
+ height?: number;
6
+ width?: number;
7
+ size?: "small" | "normal";
8
+ }
9
+
10
+ export type { AvatarProps as A };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itilite/lumina-ui",
3
- "version": "1.0.1",
3
+ "version": "1.0.2-alpha",
4
4
  "description": "Itilite Lumina Design System UI Components",
5
5
  "sideEffects": false,
6
6
  "license": "MIT",
@@ -17,35 +17,10 @@
17
17
  "import": "./dist/index.mjs",
18
18
  "require": "./dist/index.js"
19
19
  },
20
- "./button": {
21
- "types": "./dist/Button.d.ts",
22
- "import": "./dist/Button.mjs",
23
- "require": "./dist/Button.js"
24
- },
25
- "./checkbox": {
26
- "types": "./dist/Checkbox.d.ts",
27
- "import": "./dist/Checkbox.mjs",
28
- "require": "./dist/Checkbox.js"
29
- },
30
- "./modal": {
31
- "types": "./dist/Modal.d.ts",
32
- "import": "./dist/Modal.mjs",
33
- "require": "./dist/Modal.js"
34
- },
35
- "./radio": {
36
- "types": "./dist/Radio.d.ts",
37
- "import": "./dist/Radio.mjs",
38
- "require": "./dist/Radio.js"
39
- },
40
- "./switch": {
41
- "types": "./dist/Switch.d.ts",
42
- "import": "./dist/Switch.mjs",
43
- "require": "./dist/Switch.js"
44
- },
45
- "./tooltip": {
46
- "types": "./dist/Tooltip.d.ts",
47
- "import": "./dist/Tooltip.mjs",
48
- "require": "./dist/Tooltip.js"
20
+ "./*": {
21
+ "types": "./dist/*.d.ts",
22
+ "import": "./dist/*.mjs",
23
+ "require": "./dist/*.js"
49
24
  },
50
25
  "./styles.css": "./dist/styles.css"
51
26
  },
@@ -93,12 +68,14 @@
93
68
  "postcss-modules": "^6.0.1",
94
69
  "react": "^18.2.0",
95
70
  "sass": "^1.69.5",
96
- "tailwindcss": "^3.4.0",
71
+ "tailwindcss": "^3.2.4",
97
72
  "tsup": "^8.0.2",
98
73
  "typescript": "5.5.4"
99
74
  },
100
75
  "peerDependencies": {
101
76
  "antd": "5.13.1",
102
- "react": "^18.2.0"
77
+ "dayjs": "^1.11.0",
78
+ "react": "^18.2.0",
79
+ "@ant-design/icons": "^5.0.1"
103
80
  }
104
81
  }
package/dist/Modal.mjs DELETED
@@ -1,10 +0,0 @@
1
- import {
2
- Modal,
3
- Modal_default
4
- } from "./chunk-N355RJGH.mjs";
5
- import "./chunk-HISCHZ5H.mjs";
6
- import "./chunk-FWCSY2DS.mjs";
7
- export {
8
- Modal,
9
- Modal_default as default
10
- };
@@ -1,83 +0,0 @@
1
- // src/atom/Avatar/Avatar.tsx
2
- import clsx from "clsx";
3
- import { jsx } from "react/jsx-runtime";
4
- var COLOR_MAP = {
5
- A: "#6455BF",
6
- B: "#C46273",
7
- C: "#52A79E",
8
- D: "#DF8654",
9
- E: "#B8639F",
10
- F: "#6455BF",
11
- G: "#C46273",
12
- H: "#52A79E",
13
- I: "#DF8654",
14
- J: "#B8639F",
15
- K: "#6455BF",
16
- L: "#C46273",
17
- M: "#52A79E",
18
- N: "#DF8654",
19
- O: "#B8639F",
20
- P: "#6455BF",
21
- Q: "#C46273",
22
- R: "#52A79E",
23
- S: "#DF8654",
24
- T: "#B8639F",
25
- U: "#6455BF",
26
- V: "#C46273",
27
- W: "#52A79E",
28
- X: "#DF8654",
29
- Y: "#B8639F",
30
- Z: "#6455BF",
31
- 0: "#6455BF",
32
- 1: "#C46273",
33
- 6: "#C46273",
34
- 2: "#52A79E",
35
- 7: "#52A79E",
36
- 3: "#DF8654",
37
- 8: "#DF8654",
38
- 4: "#B8639F",
39
- 9: "#B8639F"
40
- };
41
- function Avatar({
42
- img,
43
- className,
44
- name,
45
- height = 28,
46
- width = 28,
47
- size = "normal"
48
- }) {
49
- return /* @__PURE__ */ jsx(
50
- "div",
51
- {
52
- style: { height, width },
53
- className: "tw-rounded-full tw-flex tw-items-center",
54
- children: !img && name ? /* @__PURE__ */ jsx(
55
- "div",
56
- {
57
- style: { backgroundColor: COLOR_MAP[name[0]] },
58
- className: clsx(
59
- { "tw-text-font-size-10": size === "small" },
60
- `tw-text-white tw-font-medium tw-rounded-full tw-flex tw-items-center tw-justify-center `,
61
- className
62
- ),
63
- children: name[0]
64
- }
65
- ) : img ? /* @__PURE__ */ jsx(
66
- "img",
67
- {
68
- src: img,
69
- style: { height, width },
70
- alt: name,
71
- className: clsx("tw-rounded-full tw-object-cover", className)
72
- }
73
- ) : null
74
- }
75
- );
76
- }
77
- Avatar.displayName = "Avatar";
78
- var Avatar_default = Avatar;
79
-
80
- export {
81
- Avatar,
82
- Avatar_default
83
- };
package/dist/styles.d.mts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export { }
package/dist/styles.d.ts DELETED
@@ -1,2 +0,0 @@
1
-
2
- export { }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes