@deepnoid/ui 0.1.221 → 0.1.223

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 (123) hide show
  1. package/.turbo/turbo-build.log +225 -225
  2. package/dist/{chunk-3HANNN76.mjs → chunk-2URJGQFC.mjs} +2 -2
  3. package/dist/{chunk-6CTMLHLK.mjs → chunk-4IEHQI5B.mjs} +1 -1
  4. package/dist/{chunk-74MC7B4K.mjs → chunk-4S4AAZFC.mjs} +2 -2
  5. package/dist/{chunk-AXWICOKO.mjs → chunk-6AID2NLT.mjs} +1 -1
  6. package/dist/{chunk-4MTXDUV3.mjs → chunk-BBRO35V3.mjs} +4 -4
  7. package/dist/{chunk-JI3WAAZV.mjs → chunk-EJ4GDC6K.mjs} +1 -1
  8. package/dist/{chunk-I4LNWIIV.mjs → chunk-EVJ46M3U.mjs} +2 -2
  9. package/dist/{chunk-G4G6YXZH.mjs → chunk-GDHLN463.mjs} +1 -1
  10. package/dist/{chunk-QAXRJ3EH.mjs → chunk-HFOHFBZH.mjs} +1 -1
  11. package/dist/{chunk-APQE3TRN.mjs → chunk-KWHCUAFU.mjs} +2 -2
  12. package/dist/{chunk-US5NY7UP.mjs → chunk-MTT24BLX.mjs} +2 -2
  13. package/dist/{chunk-QECR6VMW.mjs → chunk-OC5C42CB.mjs} +2 -2
  14. package/dist/{chunk-AZYWRRZY.mjs → chunk-OXJX5G3O.mjs} +1 -1
  15. package/dist/{chunk-JYW3GEH6.mjs → chunk-P5L4YI54.mjs} +33 -0
  16. package/dist/{chunk-54FDYAUN.mjs → chunk-Q3KBMVJS.mjs} +1 -1
  17. package/dist/{chunk-Q5MFMWG7.mjs → chunk-R2XKPG4K.mjs} +1 -1
  18. package/dist/{chunk-QPEZ7SFU.mjs → chunk-RH3AHG52.mjs} +1 -1
  19. package/dist/chunk-RY5VVXQ4.mjs +163 -0
  20. package/dist/{chunk-PLR4DZBN.mjs → chunk-SKX5QPUD.mjs} +4 -4
  21. package/dist/{chunk-SNXIHIQG.mjs → chunk-SX3JDFTH.mjs} +10 -10
  22. package/dist/{chunk-VSVBYQF4.mjs → chunk-TE5JU3WA.mjs} +2 -2
  23. package/dist/{chunk-MYUAX3Z5.mjs → chunk-V2YH54JQ.mjs} +1 -1
  24. package/dist/components/avatar/avatar.js +33 -0
  25. package/dist/components/avatar/avatar.mjs +2 -2
  26. package/dist/components/avatar/index.js +33 -0
  27. package/dist/components/avatar/index.mjs +2 -2
  28. package/dist/components/breadcrumb/breadcrumb.js +33 -0
  29. package/dist/components/breadcrumb/breadcrumb.mjs +7 -7
  30. package/dist/components/breadcrumb/index.js +33 -0
  31. package/dist/components/breadcrumb/index.mjs +7 -7
  32. package/dist/components/button/button.js +33 -0
  33. package/dist/components/button/button.mjs +4 -4
  34. package/dist/components/button/icon-button.js +33 -0
  35. package/dist/components/button/icon-button.mjs +4 -4
  36. package/dist/components/button/index.js +33 -0
  37. package/dist/components/button/index.mjs +8 -8
  38. package/dist/components/charts/index.mjs +3 -3
  39. package/dist/components/chip/chip.js +33 -0
  40. package/dist/components/chip/chip.mjs +3 -3
  41. package/dist/components/chip/index.js +33 -0
  42. package/dist/components/chip/index.mjs +3 -3
  43. package/dist/components/fileUpload/fileUpload.js +33 -0
  44. package/dist/components/fileUpload/fileUpload.mjs +8 -8
  45. package/dist/components/fileUpload/index.js +33 -0
  46. package/dist/components/fileUpload/index.mjs +8 -8
  47. package/dist/components/icon/Icon.d.mts +4 -0
  48. package/dist/components/icon/Icon.d.ts +4 -0
  49. package/dist/components/icon/Icon.js +33 -0
  50. package/dist/components/icon/Icon.mjs +2 -2
  51. package/dist/components/icon/index.js +33 -0
  52. package/dist/components/icon/index.mjs +2 -2
  53. package/dist/components/icon/template.d.mts +1 -0
  54. package/dist/components/icon/template.d.ts +1 -0
  55. package/dist/components/icon/template.js +33 -0
  56. package/dist/components/icon/template.mjs +1 -1
  57. package/dist/components/input/index.js +33 -0
  58. package/dist/components/input/index.mjs +3 -3
  59. package/dist/components/input/input.js +33 -0
  60. package/dist/components/input/input.mjs +3 -3
  61. package/dist/components/list/index.js +33 -0
  62. package/dist/components/list/index.mjs +4 -4
  63. package/dist/components/list/listItem.js +33 -0
  64. package/dist/components/list/listItem.mjs +4 -4
  65. package/dist/components/modal/GlobalModalProvider.js +33 -0
  66. package/dist/components/modal/GlobalModalProvider.mjs +8 -8
  67. package/dist/components/modal/index.js +33 -0
  68. package/dist/components/modal/index.mjs +9 -9
  69. package/dist/components/modal/modal.js +33 -0
  70. package/dist/components/modal/modal.mjs +7 -7
  71. package/dist/components/modal/useGlobalModal.mjs +9 -9
  72. package/dist/components/pagination/index.js +33 -0
  73. package/dist/components/pagination/index.mjs +4 -4
  74. package/dist/components/pagination/pagination.js +33 -0
  75. package/dist/components/pagination/pagination.mjs +4 -4
  76. package/dist/components/picker/datePicker.js +33 -0
  77. package/dist/components/picker/datePicker.mjs +9 -9
  78. package/dist/components/picker/index.js +33 -0
  79. package/dist/components/picker/index.mjs +10 -10
  80. package/dist/components/picker/timePicker/Panel.mjs +6 -6
  81. package/dist/components/picker/timePicker/index.js +33 -0
  82. package/dist/components/picker/timePicker/index.mjs +8 -8
  83. package/dist/components/ripple/index.mjs +3 -3
  84. package/dist/components/select/index.js +33 -0
  85. package/dist/components/select/index.mjs +7 -7
  86. package/dist/components/select/select.js +33 -0
  87. package/dist/components/select/select.mjs +7 -7
  88. package/dist/components/starRating/index.js +33 -0
  89. package/dist/components/starRating/index.mjs +3 -3
  90. package/dist/components/starRating/starRating.js +33 -0
  91. package/dist/components/starRating/starRating.mjs +3 -3
  92. package/dist/components/table/index.js +33 -0
  93. package/dist/components/table/index.mjs +6 -6
  94. package/dist/components/table/table-body.js +33 -0
  95. package/dist/components/table/table-body.mjs +6 -6
  96. package/dist/components/table/table-head.js +33 -0
  97. package/dist/components/table/table-head.mjs +6 -6
  98. package/dist/components/table/table.js +33 -0
  99. package/dist/components/table/table.mjs +6 -6
  100. package/dist/components/timePicker/calendar.js +33 -0
  101. package/dist/components/timePicker/calendar.mjs +2 -2
  102. package/dist/components/toast/index.d.mts +1 -1
  103. package/dist/components/toast/index.d.ts +1 -1
  104. package/dist/components/toast/index.js +137 -12
  105. package/dist/components/toast/index.mjs +4 -4
  106. package/dist/components/toast/toast.d.mts +1 -0
  107. package/dist/components/toast/toast.d.ts +1 -0
  108. package/dist/components/toast/toast.js +34 -1
  109. package/dist/components/toast/toast.mjs +3 -3
  110. package/dist/components/toast/use-toast.d.mts +17 -3
  111. package/dist/components/toast/use-toast.d.ts +17 -3
  112. package/dist/components/toast/use-toast.js +137 -12
  113. package/dist/components/toast/use-toast.mjs +4 -4
  114. package/dist/components/tree/index.js +33 -0
  115. package/dist/components/tree/index.mjs +3 -3
  116. package/dist/components/tree/tree.js +33 -0
  117. package/dist/components/tree/tree.mjs +3 -3
  118. package/dist/index.d.mts +1 -1
  119. package/dist/index.d.ts +1 -1
  120. package/dist/index.js +137 -12
  121. package/dist/index.mjs +64 -64
  122. package/package.json +2 -1
  123. package/dist/chunk-5UCNLY2A.mjs +0 -71
package/dist/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
1
  "use client";
2
- import "./chunk-MBLZYQCN.mjs";
3
- import {
4
- tree_default
5
- } from "./chunk-G4G6YXZH.mjs";
6
2
  import "./chunk-HIE2YRGA.mjs";
7
3
  import {
8
4
  tooltip_default
9
5
  } from "./chunk-5KC3IFNR.mjs";
10
6
  import "./chunk-ZMOAFSYE.mjs";
11
7
  import "./chunk-WSIADHVC.mjs";
12
- import "./chunk-MZ76AA76.mjs";
8
+ import "./chunk-MBLZYQCN.mjs";
13
9
  import {
14
- skeleton_default
15
- } from "./chunk-6PN3DGOE.mjs";
10
+ tree_default
11
+ } from "./chunk-GDHLN463.mjs";
12
+ import "./chunk-3MY6LO7N.mjs";
13
+ import {
14
+ tabs_default
15
+ } from "./chunk-DW3BX4M2.mjs";
16
16
  import "./chunk-RRAZM5D3.mjs";
17
17
  import {
18
18
  textarea_default
@@ -21,34 +21,40 @@ import "./chunk-LUWGOKLG.mjs";
21
21
  import {
22
22
  ToastProvider,
23
23
  useToast
24
- } from "./chunk-5UCNLY2A.mjs";
24
+ } from "./chunk-RY5VVXQ4.mjs";
25
25
  import "./chunk-ZOTHPHXA.mjs";
26
26
  import {
27
27
  toast_default
28
- } from "./chunk-3HANNN76.mjs";
28
+ } from "./chunk-2URJGQFC.mjs";
29
+ import "./chunk-LVFI2NOH.mjs";
30
+ import {
31
+ switch_default
32
+ } from "./chunk-AGE57VDD.mjs";
29
33
  import "./chunk-DX3KXNP6.mjs";
30
34
  import {
31
35
  definition_table_default
32
36
  } from "./chunk-BH3I4LIZ.mjs";
33
37
  import {
34
38
  table_default
35
- } from "./chunk-54FDYAUN.mjs";
36
- import "./chunk-3MY6LO7N.mjs";
37
- import {
38
- tabs_default
39
- } from "./chunk-DW3BX4M2.mjs";
39
+ } from "./chunk-Q3KBMVJS.mjs";
40
40
  import "./chunk-QCEKPS7U.mjs";
41
41
  import {
42
42
  select_default
43
- } from "./chunk-APQE3TRN.mjs";
44
- import "./chunk-LVFI2NOH.mjs";
43
+ } from "./chunk-KWHCUAFU.mjs";
44
+ import "./chunk-MZ76AA76.mjs";
45
45
  import {
46
- switch_default
47
- } from "./chunk-AGE57VDD.mjs";
46
+ skeleton_default
47
+ } from "./chunk-6PN3DGOE.mjs";
48
48
  import "./chunk-OLQOLLKG.mjs";
49
49
  import {
50
50
  starRating_default
51
- } from "./chunk-AZYWRRZY.mjs";
51
+ } from "./chunk-OXJX5G3O.mjs";
52
+ import "./chunk-4VWG4726.mjs";
53
+ import {
54
+ timePicker_default
55
+ } from "./chunk-4S4AAZFC.mjs";
56
+ import "./chunk-FZYZSMSS.mjs";
57
+ import "./chunk-RKHH3CUS.mjs";
52
58
  import "./chunk-TPFN22HR.mjs";
53
59
  import {
54
60
  radio_default
@@ -56,50 +62,45 @@ import {
56
62
  import "./chunk-NNVGYR5T.mjs";
57
63
  import {
58
64
  useGlobalModal
59
- } from "./chunk-QPEZ7SFU.mjs";
60
- import {
61
- GlobalModalProvider
62
- } from "./chunk-Q5MFMWG7.mjs";
63
- import {
64
- modal_default
65
- } from "./chunk-I4LNWIIV.mjs";
66
- import "./chunk-4VWG4726.mjs";
65
+ } from "./chunk-RH3AHG52.mjs";
66
+ import "./chunk-7B7LRG5J.mjs";
67
67
  import {
68
- timePicker_default
69
- } from "./chunk-74MC7B4K.mjs";
70
- import "./chunk-FZYZSMSS.mjs";
71
- import "./chunk-RKHH3CUS.mjs";
68
+ pagination_default
69
+ } from "./chunk-TE5JU3WA.mjs";
70
+ import "./chunk-F3HENRVM.mjs";
72
71
  import {
73
72
  datePicker_default
74
- } from "./chunk-SNXIHIQG.mjs";
73
+ } from "./chunk-SX3JDFTH.mjs";
74
+ import "./chunk-3IBJXQTJ.mjs";
75
75
  import {
76
76
  day_default
77
77
  } from "./chunk-XZYQFBCT.mjs";
78
- import "./chunk-3IBJXQTJ.mjs";
79
78
  import "./chunk-7MVEAQ7Z.mjs";
80
79
  import {
81
80
  list_default
82
81
  } from "./chunk-NGRGAY42.mjs";
83
82
  import {
84
83
  listItem_default
85
- } from "./chunk-US5NY7UP.mjs";
86
- import "./chunk-7B7LRG5J.mjs";
84
+ } from "./chunk-MTT24BLX.mjs";
87
85
  import {
88
- pagination_default
89
- } from "./chunk-VSVBYQF4.mjs";
90
- import "./chunk-F3HENRVM.mjs";
86
+ GlobalModalProvider
87
+ } from "./chunk-R2XKPG4K.mjs";
88
+ import {
89
+ modal_default
90
+ } from "./chunk-EVJ46M3U.mjs";
91
+ import "./chunk-MGEWSREV.mjs";
92
+ import "./chunk-QZ3LVYJW.mjs";
93
+ import {
94
+ checkbox_default
95
+ } from "./chunk-3DCUMRYP.mjs";
91
96
  import "./chunk-32GA3YW4.mjs";
92
97
  import {
93
98
  drawer_default
94
99
  } from "./chunk-ZFC5O2V3.mjs";
95
- import "./chunk-KYIODWXL.mjs";
96
- import {
97
- breadcrumb_default
98
- } from "./chunk-6CTMLHLK.mjs";
99
100
  import "./chunk-RLXOHILK.mjs";
100
101
  import {
101
102
  fileUpload_default
102
- } from "./chunk-QECR6VMW.mjs";
103
+ } from "./chunk-OC5C42CB.mjs";
103
104
  import "./chunk-7VOQKIIK.mjs";
104
105
  import {
105
106
  progress_default
@@ -107,16 +108,8 @@ import {
107
108
  import "./chunk-2GCSFWHD.mjs";
108
109
  import {
109
110
  input_default
110
- } from "./chunk-JI3WAAZV.mjs";
111
- import "./chunk-MGEWSREV.mjs";
112
- import "./chunk-QZ3LVYJW.mjs";
113
- import {
114
- checkbox_default
115
- } from "./chunk-3DCUMRYP.mjs";
111
+ } from "./chunk-EJ4GDC6K.mjs";
116
112
  import "./chunk-3OCNT22V.mjs";
117
- import {
118
- simpleBarChart_default
119
- } from "./chunk-6WD32ERF.mjs";
120
113
  import {
121
114
  areaChart_default
122
115
  } from "./chunk-LH6Z7SDZ.mjs";
@@ -134,34 +127,41 @@ import {
134
127
  import {
135
128
  radarChart_default
136
129
  } from "./chunk-U7SYKG2C.mjs";
130
+ import {
131
+ simpleBarChart_default
132
+ } from "./chunk-6WD32ERF.mjs";
133
+ import {
134
+ chip_default
135
+ } from "./chunk-V2YH54JQ.mjs";
137
136
  import "./chunk-SE5TU755.mjs";
138
137
  import {
139
138
  backdrop_default
140
139
  } from "./chunk-4X35QQTI.mjs";
140
+ import "./chunk-KYIODWXL.mjs";
141
+ import {
142
+ breadcrumb_default
143
+ } from "./chunk-4IEHQI5B.mjs";
141
144
  import "./chunk-MY5U63QO.mjs";
145
+ import {
146
+ text_button_default
147
+ } from "./chunk-NDNIAALB.mjs";
142
148
  import {
143
149
  button_group_default
144
150
  } from "./chunk-5VTYO3RF.mjs";
145
151
  import {
146
152
  button_default
147
- } from "./chunk-PLR4DZBN.mjs";
153
+ } from "./chunk-SKX5QPUD.mjs";
148
154
  import {
149
155
  icon_button_default
150
- } from "./chunk-4MTXDUV3.mjs";
156
+ } from "./chunk-BBRO35V3.mjs";
151
157
  import "./chunk-6WSACUIB.mjs";
152
- import "./chunk-LXHUO6VM.mjs";
153
158
  import "./chunk-SZL743JC.mjs";
154
- import {
155
- text_button_default
156
- } from "./chunk-NDNIAALB.mjs";
157
- import {
158
- chip_default
159
- } from "./chunk-MYUAX3Z5.mjs";
159
+ import "./chunk-LXHUO6VM.mjs";
160
160
  import "./chunk-ZYIIXWVY.mjs";
161
161
  import {
162
162
  Icon_default,
163
163
  iconTemplate
164
- } from "./chunk-AXWICOKO.mjs";
164
+ } from "./chunk-6AID2NLT.mjs";
165
165
  import "./chunk-NMSDSEBD.mjs";
166
166
  import {
167
167
  accordion_default
@@ -172,8 +172,8 @@ import {
172
172
  import "./chunk-7DLOYKVC.mjs";
173
173
  import {
174
174
  avatar_default
175
- } from "./chunk-QAXRJ3EH.mjs";
176
- import "./chunk-JYW3GEH6.mjs";
175
+ } from "./chunk-HFOHFBZH.mjs";
176
+ import "./chunk-P5L4YI54.mjs";
177
177
  import "./chunk-3V4HT2K5.mjs";
178
178
  import "./chunk-27Y6K5NK.mjs";
179
179
  import "./chunk-E3G5QXSH.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@deepnoid/ui",
3
- "version": "0.1.221",
3
+ "version": "0.1.223",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -22,6 +22,7 @@
22
22
  "copy:font": "copyfiles -u 2 src/fonts/**/* dist/fonts",
23
23
  "deploy:npm": "npm publish --access=public",
24
24
  "lint": "TIMING=1 eslint \"**/*.{ts,tsx,js,jsx}\" --fix",
25
+ "check-types": "tsc --noEmit",
25
26
  "publish:npm": "npm version patch --no-git-tag-version && npm publish --access=public"
26
27
  },
27
28
  "dependencies": {
@@ -1,71 +0,0 @@
1
- "use client";
2
- import {
3
- getToastPosition
4
- } from "./chunk-ZOTHPHXA.mjs";
5
- import {
6
- toast_default
7
- } from "./chunk-3HANNN76.mjs";
8
-
9
- // src/components/toast/use-toast.tsx
10
- import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
- var ToastContext = createContext(null);
13
- var useToast = () => {
14
- const context = useContext(ToastContext);
15
- if (!context) {
16
- throw new Error("useToast must be used within a ToastProvider");
17
- }
18
- return context;
19
- };
20
- var ToastProvider = ({
21
- globalOptions,
22
- children
23
- }) => {
24
- const [toasts, setToasts] = useState([]);
25
- const [containerStyle, setContainerStyle] = useState({});
26
- const toastRef = useRef(null);
27
- const addToast = useCallback(
28
- (title, options = {}) => {
29
- const id = Date.now() + Math.floor(Math.random() * 1e5);
30
- const newToast = {
31
- id,
32
- title,
33
- duration: 3e3,
34
- ...globalOptions,
35
- ...options
36
- };
37
- setToasts((prev) => [...prev, newToast]);
38
- setTimeout(() => {
39
- setToasts((prevToasts) => prevToasts.filter((toast) => toast.id !== id));
40
- }, newToast.duration || 3e3);
41
- },
42
- [globalOptions]
43
- );
44
- const removeToast = useCallback((id) => {
45
- setToasts((prevToasts) => prevToasts.filter((toast) => toast.id !== id));
46
- }, []);
47
- const contextValue = addToast;
48
- useEffect(() => {
49
- var _a;
50
- const width = (globalOptions == null ? void 0 : globalOptions.width) ? globalOptions.width : typeof ((_a = toastRef.current) == null ? void 0 : _a.getWidth) === "function" ? toastRef.current.getWidth() : 300;
51
- const offset = 20;
52
- const placement = (globalOptions == null ? void 0 : globalOptions.placement) || "bottom-right";
53
- const { top, left, bottom, right } = getToastPosition(placement, width, offset);
54
- setContainerStyle({
55
- position: "fixed",
56
- top: top !== void 0 ? `${top}px` : void 0,
57
- left: left !== void 0 ? `${left}px` : void 0,
58
- bottom: bottom !== void 0 ? `${bottom}px` : void 0,
59
- right: right !== void 0 ? `${right}px` : void 0
60
- });
61
- }, [globalOptions == null ? void 0 : globalOptions.placement, globalOptions == null ? void 0 : globalOptions.width]);
62
- return /* @__PURE__ */ jsxs(ToastContext.Provider, { value: contextValue, children: [
63
- children,
64
- /* @__PURE__ */ jsx("div", { id: "deepnoid-toast-container", className: "flex flex-col gap-[10px]", style: containerStyle, children: toasts.map((toast) => /* @__PURE__ */ jsx(toast_default, { ref: toastRef, onClose: () => removeToast(toast.id), ...toast }, toast.id)) })
65
- ] });
66
- };
67
-
68
- export {
69
- useToast,
70
- ToastProvider
71
- };