@deepnoid/ui 0.1.204 → 0.1.206
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.
- package/.turbo/turbo-build.log +147 -147
- package/dist/{chunk-AUGYJPCS.mjs → chunk-BTO7MP5N.mjs} +5 -5
- package/dist/{chunk-PRNE3U26.mjs → chunk-RNMD44IQ.mjs} +3 -2
- package/dist/components/breadcrumb/breadcrumb.mjs +1 -1
- package/dist/components/breadcrumb/index.mjs +1 -1
- package/dist/components/button/button.mjs +1 -1
- package/dist/components/button/icon-button.mjs +1 -1
- package/dist/components/button/index.mjs +1 -1
- package/dist/components/chip/chip.mjs +1 -1
- package/dist/components/chip/index.mjs +1 -1
- package/dist/components/fileUpload/fileUpload.mjs +1 -1
- package/dist/components/fileUpload/index.mjs +1 -1
- package/dist/components/input/index.mjs +1 -1
- package/dist/components/input/input.mjs +1 -1
- package/dist/components/list/index.mjs +3 -3
- package/dist/components/list/listItem.mjs +3 -3
- package/dist/components/modal/index.mjs +4 -4
- package/dist/components/modal/modal.mjs +4 -4
- package/dist/components/pagination/index.mjs +1 -1
- package/dist/components/pagination/pagination.mjs +1 -1
- package/dist/components/picker/datePicker.js +5 -5
- package/dist/components/picker/datePicker.mjs +2 -2
- package/dist/components/picker/index.js +5 -5
- package/dist/components/picker/index.mjs +2 -2
- package/dist/components/picker/timePicker.mjs +1 -1
- package/dist/components/radio/index.js +3 -2
- package/dist/components/radio/index.mjs +1 -1
- package/dist/components/radio/radio.d.mts +1 -0
- package/dist/components/radio/radio.d.ts +1 -0
- package/dist/components/radio/radio.js +3 -2
- package/dist/components/radio/radio.mjs +1 -1
- package/dist/components/select/index.mjs +1 -1
- package/dist/components/select/select.mjs +1 -1
- package/dist/components/starRating/index.mjs +1 -1
- package/dist/components/starRating/starRating.mjs +1 -1
- package/dist/components/table/index.mjs +1 -1
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table-head.mjs +1 -1
- package/dist/components/table/table.mjs +1 -1
- package/dist/components/timePicker/calendar.mjs +1 -1
- package/dist/components/toast/index.mjs +3 -3
- package/dist/components/toast/toast.mjs +1 -1
- package/dist/components/toast/use-toast.mjs +3 -3
- package/dist/index.js +8 -7
- package/dist/index.mjs +21 -21
- package/package.json +1 -1
- package/dist/{chunk-D72ILS4A.mjs → chunk-IG7QEXDU.mjs} +3 -3
- package/dist/{chunk-L3A3IEKZ.mjs → chunk-SSGCTWWW.mjs} +3 -3
- package/dist/{chunk-K3M3QEEV.mjs → chunk-YO4PZXCM.mjs} +3 -3
package/dist/index.js
CHANGED
|
@@ -9993,8 +9993,8 @@ var import_react23 = require("react");
|
|
|
9993
9993
|
var import_jsx_runtime25 = require("react/jsx-runtime");
|
|
9994
9994
|
var Radio = (0, import_react23.forwardRef)((originalProps, ref) => {
|
|
9995
9995
|
const [props, variantProps] = mapPropsVariants(originalProps, radioStyle.variantKeys);
|
|
9996
|
-
const { children, classNames, labelPosition = "end", ...inputProps } = props;
|
|
9997
|
-
const slots = (0, import_react23.useMemo)(() => radioStyle({ ...variantProps }), [variantProps]);
|
|
9996
|
+
const { children, classNames, labelPosition = "end", error, ...inputProps } = props;
|
|
9997
|
+
const slots = (0, import_react23.useMemo)(() => radioStyle({ ...variantProps, isInvalid: error }), [variantProps, error]);
|
|
9998
9998
|
return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
|
|
9999
9999
|
"label",
|
|
10000
10000
|
{
|
|
@@ -10118,6 +10118,7 @@ var radioStyle = tv({
|
|
|
10118
10118
|
true: {
|
|
10119
10119
|
outerDot: [
|
|
10120
10120
|
"border-danger-main",
|
|
10121
|
+
"bg-danger-soft",
|
|
10121
10122
|
"group-has-[:checked]/radio:border-danger-main",
|
|
10122
10123
|
"group-hover/radio:border-danger-light",
|
|
10123
10124
|
"group-hover/radio:bg-danger-soft"
|
|
@@ -11633,21 +11634,21 @@ var DatePicker = (0, import_react34.forwardRef)((originalProps, ref) => {
|
|
|
11633
11634
|
const date = new Date(currentDate.getFullYear(), currentDate.getMonth(), dateObj.date);
|
|
11634
11635
|
if (isDateDisabled(date)) return "disabled";
|
|
11635
11636
|
const today = /* @__PURE__ */ new Date();
|
|
11636
|
-
const isToday = today.getDate() === dateObj.date && today.getMonth() === currentDate.getMonth() && today.getFullYear() === currentDate.getFullYear();
|
|
11637
|
+
const isToday = dateObj.currentMonth && today.getDate() === dateObj.date && today.getMonth() === currentDate.getMonth() && today.getFullYear() === currentDate.getFullYear();
|
|
11637
11638
|
if (range) {
|
|
11638
11639
|
const start = tempSelectedRange.startDate ? formatStringToDate(tempSelectedRange.startDate) : null;
|
|
11639
11640
|
const end = tempSelectedRange.endDate ? formatStringToDate(tempSelectedRange.endDate) : null;
|
|
11640
11641
|
const current = date;
|
|
11641
|
-
const isStart = start && start.getFullYear() === current.getFullYear() && start.getMonth() === current.getMonth() && start.getDate() === current.getDate();
|
|
11642
|
-
const isEnd = end && end.getFullYear() === current.getFullYear() && end.getMonth() === current.getMonth() && end.getDate() === current.getDate();
|
|
11643
|
-
const isInRange = start && end && current > start && current < end;
|
|
11642
|
+
const isStart = dateObj.currentMonth && start && start.getFullYear() === current.getFullYear() && start.getMonth() === current.getMonth() && start.getDate() === current.getDate();
|
|
11643
|
+
const isEnd = dateObj.currentMonth && end && end.getFullYear() === current.getFullYear() && end.getMonth() === current.getMonth() && end.getDate() === current.getDate();
|
|
11644
|
+
const isInRange = start && end && current > start && current < end && dateObj.currentMonth;
|
|
11644
11645
|
if (isStart || isEnd) return "selected";
|
|
11645
11646
|
if (isInRange) return "period";
|
|
11646
11647
|
if (isToday) return "today";
|
|
11647
11648
|
return dateObj.currentMonth ? "default" : "disabled";
|
|
11648
11649
|
}
|
|
11649
11650
|
const selected = tempSelectedDate ? formatStringToDate(tempSelectedDate) : null;
|
|
11650
|
-
const isSelected = selected && selected.getFullYear() === date.getFullYear() && selected.getMonth() === date.getMonth() && selected.getDate() === date.getDate();
|
|
11651
|
+
const isSelected = dateObj.currentMonth && selected && selected.getFullYear() === date.getFullYear() && selected.getMonth() === date.getMonth() && selected.getDate() === date.getDate();
|
|
11651
11652
|
return isSelected ? "selected" : isToday ? "today" : dateObj.currentMonth ? "default" : "disabled";
|
|
11652
11653
|
},
|
|
11653
11654
|
[tempSelectedDate, tempSelectedRange, range, isDateDisabled]
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import "./chunk-RRAZM5D3.mjs";
|
|
3
|
+
import {
|
|
4
|
+
textarea_default
|
|
5
|
+
} from "./chunk-Q22PRT24.mjs";
|
|
2
6
|
import "./chunk-HIE2YRGA.mjs";
|
|
3
7
|
import {
|
|
4
8
|
tooltip_default
|
|
@@ -13,19 +17,15 @@ import "./chunk-3MY6LO7N.mjs";
|
|
|
13
17
|
import {
|
|
14
18
|
tabs_default
|
|
15
19
|
} from "./chunk-DW3BX4M2.mjs";
|
|
16
|
-
import "./chunk-RRAZM5D3.mjs";
|
|
17
|
-
import {
|
|
18
|
-
textarea_default
|
|
19
|
-
} from "./chunk-Q22PRT24.mjs";
|
|
20
20
|
import "./chunk-LUWGOKLG.mjs";
|
|
21
21
|
import {
|
|
22
22
|
ToastProvider,
|
|
23
23
|
useToast
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-SSGCTWWW.mjs";
|
|
25
|
+
import "./chunk-ZOTHPHXA.mjs";
|
|
25
26
|
import {
|
|
26
27
|
toast_default
|
|
27
28
|
} from "./chunk-4F7SIDZB.mjs";
|
|
28
|
-
import "./chunk-ZOTHPHXA.mjs";
|
|
29
29
|
import "./chunk-LVFI2NOH.mjs";
|
|
30
30
|
import {
|
|
31
31
|
switch_default
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
import "./chunk-TPFN22HR.mjs";
|
|
49
49
|
import {
|
|
50
50
|
radio_default
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-RNMD44IQ.mjs";
|
|
52
52
|
import "./chunk-7B7LRG5J.mjs";
|
|
53
53
|
import {
|
|
54
54
|
pagination_default
|
|
@@ -57,7 +57,7 @@ import "./chunk-F3HENRVM.mjs";
|
|
|
57
57
|
import "./chunk-4VWG4726.mjs";
|
|
58
58
|
import {
|
|
59
59
|
datePicker_default
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-BTO7MP5N.mjs";
|
|
61
61
|
import "./chunk-FWFEKWWD.mjs";
|
|
62
62
|
import {
|
|
63
63
|
day_default
|
|
@@ -75,20 +75,20 @@ import {
|
|
|
75
75
|
} from "./chunk-NGRGAY42.mjs";
|
|
76
76
|
import {
|
|
77
77
|
listItem_default
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-YO4PZXCM.mjs";
|
|
79
79
|
import "./chunk-DJOG6Z35.mjs";
|
|
80
80
|
import {
|
|
81
81
|
modal_default
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-IG7QEXDU.mjs";
|
|
83
83
|
import "./chunk-QZ3LVYJW.mjs";
|
|
84
|
-
import "./chunk-MGEWSREV.mjs";
|
|
85
|
-
import {
|
|
86
|
-
chip_default
|
|
87
|
-
} from "./chunk-XPFBM2RK.mjs";
|
|
88
84
|
import "./chunk-32GA3YW4.mjs";
|
|
89
85
|
import {
|
|
90
86
|
drawer_default
|
|
91
87
|
} from "./chunk-45Y7ANPK.mjs";
|
|
88
|
+
import "./chunk-MGEWSREV.mjs";
|
|
89
|
+
import {
|
|
90
|
+
chip_default
|
|
91
|
+
} from "./chunk-XPFBM2RK.mjs";
|
|
92
92
|
import "./chunk-RLXOHILK.mjs";
|
|
93
93
|
import {
|
|
94
94
|
fileUpload_default
|
|
@@ -125,10 +125,10 @@ import {
|
|
|
125
125
|
import {
|
|
126
126
|
checkbox_default
|
|
127
127
|
} from "./chunk-OEIEALIP.mjs";
|
|
128
|
-
import "./chunk-
|
|
128
|
+
import "./chunk-7DLOYKVC.mjs";
|
|
129
129
|
import {
|
|
130
|
-
|
|
131
|
-
} from "./chunk-
|
|
130
|
+
avatar_default
|
|
131
|
+
} from "./chunk-JQ5C2U5I.mjs";
|
|
132
132
|
import "./chunk-KYIODWXL.mjs";
|
|
133
133
|
import {
|
|
134
134
|
breadcrumb_default
|
|
@@ -154,6 +154,7 @@ import {
|
|
|
154
154
|
Icon_default,
|
|
155
155
|
iconTemplate
|
|
156
156
|
} from "./chunk-YEYUS6DW.mjs";
|
|
157
|
+
import "./chunk-5BT37SLM.mjs";
|
|
157
158
|
import "./chunk-NMSDSEBD.mjs";
|
|
158
159
|
import {
|
|
159
160
|
accordion_default
|
|
@@ -162,11 +163,10 @@ import {
|
|
|
162
163
|
accordionItem_default
|
|
163
164
|
} from "./chunk-NTNF5T5I.mjs";
|
|
164
165
|
import "./chunk-E3G5QXSH.mjs";
|
|
165
|
-
import "./chunk-
|
|
166
|
+
import "./chunk-SE5TU755.mjs";
|
|
166
167
|
import {
|
|
167
|
-
|
|
168
|
-
} from "./chunk-
|
|
169
|
-
import "./chunk-5BT37SLM.mjs";
|
|
168
|
+
backdrop_default
|
|
169
|
+
} from "./chunk-IH3BJRTV.mjs";
|
|
170
170
|
import {
|
|
171
171
|
deepnoidUi,
|
|
172
172
|
tv
|
package/package.json
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
backdrop_default
|
|
4
|
-
} from "./chunk-IH3BJRTV.mjs";
|
|
5
2
|
import {
|
|
6
3
|
button_default
|
|
7
4
|
} from "./chunk-FFUZAOFL.mjs";
|
|
@@ -11,6 +8,9 @@ import {
|
|
|
11
8
|
import {
|
|
12
9
|
mapPropsVariants
|
|
13
10
|
} from "./chunk-E3G5QXSH.mjs";
|
|
11
|
+
import {
|
|
12
|
+
backdrop_default
|
|
13
|
+
} from "./chunk-IH3BJRTV.mjs";
|
|
14
14
|
import {
|
|
15
15
|
tv
|
|
16
16
|
} from "./chunk-U4DJHAM5.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
toast_default
|
|
4
|
-
} from "./chunk-4F7SIDZB.mjs";
|
|
5
2
|
import {
|
|
6
3
|
getToastPosition
|
|
7
4
|
} from "./chunk-ZOTHPHXA.mjs";
|
|
5
|
+
import {
|
|
6
|
+
toast_default
|
|
7
|
+
} from "./chunk-4F7SIDZB.mjs";
|
|
8
8
|
|
|
9
9
|
// src/components/toast/use-toast.tsx
|
|
10
10
|
import { createContext, useContext, useState, useCallback, useEffect, useRef } from "react";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use client";
|
|
2
|
+
import {
|
|
3
|
+
avatar_default
|
|
4
|
+
} from "./chunk-JQ5C2U5I.mjs";
|
|
2
5
|
import {
|
|
3
6
|
Icon_default
|
|
4
7
|
} from "./chunk-YEYUS6DW.mjs";
|
|
5
8
|
import {
|
|
6
9
|
mapPropsVariants
|
|
7
10
|
} from "./chunk-E3G5QXSH.mjs";
|
|
8
|
-
import {
|
|
9
|
-
avatar_default
|
|
10
|
-
} from "./chunk-JQ5C2U5I.mjs";
|
|
11
11
|
import {
|
|
12
12
|
tv
|
|
13
13
|
} from "./chunk-U4DJHAM5.mjs";
|