@itilite/lumina-ui 1.0.1 → 1.1.0

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 (47) hide show
  1. package/README.md +43 -10
  2. package/dist/Tag.d.mts +13 -0
  3. package/dist/Tag.d.ts +13 -0
  4. package/dist/Tag.js +108 -0
  5. package/dist/Tag.mjs +9 -0
  6. package/dist/atom/Avatar/Avatar.d.mts +17 -0
  7. package/dist/atom/Avatar/Avatar.d.ts +17 -0
  8. package/dist/atom/Avatar/Avatar.js +121 -0
  9. package/dist/atom/Avatar/Avatar.mjs +9 -0
  10. package/dist/atom/Button/Button.d.mts +25 -0
  11. package/dist/atom/Button/Button.d.ts +25 -0
  12. package/dist/atom/Button/Button.js +111 -0
  13. package/dist/atom/Button/Button.mjs +9 -0
  14. package/dist/atom/Checkbox/Checkbox.d.mts +20 -0
  15. package/dist/atom/Checkbox/Checkbox.d.ts +20 -0
  16. package/dist/atom/Checkbox/Checkbox.js +121 -0
  17. package/dist/atom/Checkbox/Checkbox.mjs +9 -0
  18. package/dist/atom/Modal/Modal.d.mts +25 -0
  19. package/dist/atom/Modal/Modal.d.ts +25 -0
  20. package/dist/atom/Modal/Modal.js +267 -0
  21. package/dist/atom/Modal/Modal.mjs +10 -0
  22. package/dist/atom/Radio/Radio.d.mts +17 -0
  23. package/dist/atom/Radio/Radio.d.ts +17 -0
  24. package/dist/atom/Radio/Radio.js +122 -0
  25. package/dist/atom/Radio/Radio.mjs +9 -0
  26. package/dist/atom/Switch/Switch.d.mts +13 -0
  27. package/dist/atom/Switch/Switch.d.ts +13 -0
  28. package/dist/atom/Switch/Switch.js +102 -0
  29. package/dist/atom/Switch/Switch.mjs +9 -0
  30. package/dist/atom/Tag/Tag.d.mts +13 -0
  31. package/dist/atom/Tag/Tag.d.ts +13 -0
  32. package/dist/atom/Tag/Tag.js +108 -0
  33. package/dist/atom/Tag/Tag.mjs +9 -0
  34. package/dist/atom/Tooltip/Tooltip.d.mts +12 -0
  35. package/dist/atom/Tooltip/Tooltip.d.ts +12 -0
  36. package/dist/atom/Tooltip/Tooltip.js +97 -0
  37. package/dist/atom/Tooltip/Tooltip.mjs +9 -0
  38. package/dist/chunk-4VZB2KR2.mjs +51 -0
  39. package/dist/index.d.mts +8 -7
  40. package/dist/index.d.ts +8 -7
  41. package/dist/index.js +46 -3
  42. package/dist/index.mjs +10 -6
  43. package/dist/styles.css +232 -930
  44. package/package.json +6 -31
  45. package/dist/chunk-2O2IH2FG.mjs +0 -83
  46. package/dist/styles.d.mts +0 -2
  47. package/dist/styles.d.ts +0 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itilite/lumina-ui",
3
- "version": "1.0.1",
3
+ "version": "1.1.0",
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,7 +68,7 @@
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
  },
@@ -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 { }