@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
@@ -1,6 +1,6 @@
1
1
  interface ModalProps {
2
2
  className?: string | undefined;
3
- title?: string | undefined;
3
+ title?: string | React.ReactNode | undefined;
4
4
  children?: React.ReactNode;
5
5
  open?: boolean;
6
6
  handleOk?: ((e: React.MouseEvent<HTMLButtonElement>) => void) | undefined;
@@ -1,6 +1,6 @@
1
1
  interface ModalProps {
2
2
  className?: string | undefined;
3
- title?: string | undefined;
3
+ title?: string | React.ReactNode | undefined;
4
4
  children?: React.ReactNode;
5
5
  open?: boolean;
6
6
  handleOk?: ((e: React.MouseEvent<HTMLButtonElement>) => void) | undefined;
@@ -74,7 +74,7 @@ var import_antd = require("antd");
74
74
  var import_clsx = __toESM(require("clsx"));
75
75
 
76
76
  // src/atom/Button/Button.module.scss
77
- var Button_module_default = { "button": "Button-module__button___cLCyl", "size_large": "Button-module__size_large___S-mbU", "shape_circle": "Button-module__shape_circle___sPUS5", "size_normal": "Button-module__size_normal___qJUMj", "size_small": "Button-module__size_small___IUeei", "type_primary": "Button-module__type_primary___Tauz-", "variant_subtle": "Button-module__variant_subtle___BMbbd", "variant_text": "Button-module__variant_text___Pc5Ia", "variant_link": "Button-module__variant_link___Cj1O9", "type_secondary": "Button-module__type_secondary___CLmrA", "type_critical": "Button-module__type_critical___6ILOp", "onHoverUnderline": "Button-module__onHoverUnderline___LOfXo" };
77
+ var Button_module_default = { "button": "Button-module__button___cLCyl", "size_large": "Button-module__size_large___S-mbU", "shape_circle": "Button-module__shape_circle___sPUS5", "size_normal": "Button-module__size_normal___qJUMj", "size_small": "Button-module__size_small___IUeei", "type_primary": "Button-module__type_primary___Tauz-", "variant_subtle": "Button-module__variant_subtle___BMbbd", "variant_text": "Button-module__variant_text___Pc5Ia", "variant_link": "Button-module__variant_link___Cj1O9", "disabled": "Button-module__disabled___nwPn4", "type_secondary": "Button-module__type_secondary___CLmrA", "type_critical": "Button-module__type_critical___6ILOp", "onHoverUnderline": "Button-module__onHoverUnderline___LOfXo" };
78
78
 
79
79
  // src/atom/Button/Button.tsx
80
80
  var import_jsx_runtime = require("react/jsx-runtime");
@@ -0,0 +1,10 @@
1
+ import {
2
+ Modal,
3
+ Modal_default
4
+ } from "../../chunk-UQJ3BDM4.mjs";
5
+ import "../../chunk-AF2RKLH6.mjs";
6
+ import "../../chunk-FWCSY2DS.mjs";
7
+ export {
8
+ Modal,
9
+ Modal_default as default
10
+ };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Radio,
3
3
  Radio_default
4
- } from "./chunk-2EBPXGRY.mjs";
5
- import "./chunk-FWCSY2DS.mjs";
4
+ } from "../../chunk-2EBPXGRY.mjs";
5
+ import "../../chunk-FWCSY2DS.mjs";
6
6
  export {
7
7
  Radio,
8
8
  Radio_default as default
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+
3
+ interface ChevronProps {
4
+ size?: number;
5
+
6
+ className?: string;
7
+
8
+ onClick?: () => void;
9
+ }
10
+
11
+ declare const Chevron: React.FC<ChevronProps>;
12
+
13
+ export { Chevron, type ChevronProps };
@@ -0,0 +1,13 @@
1
+ import * as React from 'react';
2
+
3
+ interface ChevronProps {
4
+ size?: number;
5
+
6
+ className?: string;
7
+
8
+ onClick?: () => void;
9
+ }
10
+
11
+ declare const Chevron: React.FC<ChevronProps>;
12
+
13
+ export { Chevron, type ChevronProps };
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __defProps = Object.defineProperties;
5
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
+ var __getOwnPropNames = Object.getOwnPropertyNames;
8
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
+ var __getProtoOf = Object.getPrototypeOf;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __objRest = (source, exclude) => {
26
+ var target = {};
27
+ for (var prop in source)
28
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
29
+ target[prop] = source[prop];
30
+ if (source != null && __getOwnPropSymbols)
31
+ for (var prop of __getOwnPropSymbols(source)) {
32
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
33
+ target[prop] = source[prop];
34
+ }
35
+ return target;
36
+ };
37
+ var __export = (target, all) => {
38
+ for (var name in all)
39
+ __defProp(target, name, { get: all[name], enumerable: true });
40
+ };
41
+ var __copyProps = (to, from, except, desc) => {
42
+ if (from && typeof from === "object" || typeof from === "function") {
43
+ for (let key of __getOwnPropNames(from))
44
+ if (!__hasOwnProp.call(to, key) && key !== except)
45
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
46
+ }
47
+ return to;
48
+ };
49
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
50
+ // If the importer is in node compatibility mode or this is not an ESM
51
+ // file that has been converted to a CommonJS file using a Babel-
52
+ // compatible transform (i.e. "__esModule" has not been set), then set
53
+ // "default" to the CommonJS "module.exports" for node compatibility.
54
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
55
+ mod
56
+ ));
57
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
58
+
59
+ // src/atom/RangePicker/Chevron.tsx
60
+ var Chevron_exports = {};
61
+ __export(Chevron_exports, {
62
+ Chevron: () => Chevron
63
+ });
64
+ module.exports = __toCommonJS(Chevron_exports);
65
+ var React = __toESM(require("react"));
66
+ var import_jsx_runtime = require("react/jsx-runtime");
67
+ var Chevron = React.memo(
68
+ (_a) => {
69
+ var _b = _a, { size = "normal", color = "black", className } = _b, rest = __objRest(_b, ["size", "color", "className"]);
70
+ const getSize = (size2) => {
71
+ switch (size2) {
72
+ case "small":
73
+ return "M9.78 11.78a.75.75 0 000-1.06L7.06 8l2.72-2.72a.75.75 0 00-1.06-1.06L5.47 7.47a.75.75 0 000 1.06l3.25 3.25a.75.75 0 001.06 0z";
74
+ case "normal":
75
+ return "M14.78 17.78a.75.75 0 000-1.06L10.06 12l4.72-4.72a.75.75 0 00-1.06-1.06l-5.25 5.25a.75.75 0 000 1.06l5.25 5.25a.75.75 0 001.06 0z";
76
+ default:
77
+ return "M14.78 17.78a.75.75 0 000-1.06L10.06 12l4.72-4.72a.75.75 0 00-1.06-1.06l-5.25 5.25a.75.75 0 000 1.06l5.25 5.25a.75.75 0 001.06 0z";
78
+ }
79
+ };
80
+ const getContainer = (size2) => {
81
+ switch (size2) {
82
+ case "small":
83
+ return 16;
84
+ case "medium":
85
+ return 20;
86
+ case "normal":
87
+ return 24;
88
+ default:
89
+ return 24;
90
+ }
91
+ };
92
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
93
+ "svg",
94
+ __spreadProps(__spreadValues({
95
+ xmlns: "http://www.w3.org/2000/svg",
96
+ width: getContainer(size),
97
+ height: getContainer(size),
98
+ fill: "none",
99
+ viewBox: `0 0 ${getContainer(size)} ${getContainer(size)}`,
100
+ className
101
+ }, rest), {
102
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", { fill: color, d: getSize(size) })
103
+ })
104
+ );
105
+ }
106
+ );
107
+ // Annotate the CommonJS export names for ESM import in node:
108
+ 0 && (module.exports = {
109
+ Chevron
110
+ });
@@ -0,0 +1,7 @@
1
+ import {
2
+ Chevron
3
+ } from "../../chunk-ZTRM4HZJ.mjs";
4
+ import "../../chunk-FWCSY2DS.mjs";
5
+ export {
6
+ Chevron
7
+ };
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+
3
+ interface RangePickerProps {
4
+ id?: string;
5
+ footer?: React.ReactNode;
6
+ onChange?: (event: null, dateRange: [string, string] | string) => void;
7
+ dateRange?: [string, string];
8
+ showNightCount?: boolean;
9
+ isRange?: boolean;
10
+ showYearDropdown?: boolean;
11
+ showSingleCalendar?: boolean;
12
+ disablePastDates?: boolean;
13
+ minDate?: string | null;
14
+ maxDate?: string | null;
15
+ minYear?: number;
16
+ maxYear?: number;
17
+ experience?: "business" | "personal";
18
+ showToastError?: (message: string) => void;
19
+ }
20
+
21
+ declare function CustomRangePicker(props: RangePickerProps): React.JSX.Element;
22
+ declare namespace CustomRangePicker {
23
+ var displayName: string;
24
+ }
25
+
26
+ export { CustomRangePicker as RangePicker, CustomRangePicker as default };
@@ -0,0 +1,26 @@
1
+ import * as React from 'react';
2
+
3
+ interface RangePickerProps {
4
+ id?: string;
5
+ footer?: React.ReactNode;
6
+ onChange?: (event: null, dateRange: [string, string] | string) => void;
7
+ dateRange?: [string, string];
8
+ showNightCount?: boolean;
9
+ isRange?: boolean;
10
+ showYearDropdown?: boolean;
11
+ showSingleCalendar?: boolean;
12
+ disablePastDates?: boolean;
13
+ minDate?: string | null;
14
+ maxDate?: string | null;
15
+ minYear?: number;
16
+ maxYear?: number;
17
+ experience?: "business" | "personal";
18
+ showToastError?: (message: string) => void;
19
+ }
20
+
21
+ declare function CustomRangePicker(props: RangePickerProps): React.JSX.Element;
22
+ declare namespace CustomRangePicker {
23
+ var displayName: string;
24
+ }
25
+
26
+ export { CustomRangePicker as RangePicker, CustomRangePicker as default };