@sonamu-kit/react-components 0.3.1 → 0.3.2
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/dist/components/index.d.ts +2 -3
- package/dist/components/ui/date-picker.d.ts +17 -17
- package/dist/react-components.es.js +1777 -1979
- package/dist/react-components.es.js.map +1 -1
- package/dist/styles/globals.css +0 -48
- package/package.json +3 -3
- package/dist/components/ui/date-selector-multiple.d.ts +0 -36
package/dist/styles/globals.css
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@import url("https://cdn.jsdelivr.net/npm/pretendard@1.3.9/dist/web/static/pretendard.min.css");
|
|
2
|
-
@import "react-day-picker/dist/style.css";
|
|
3
2
|
@import "tailwindcss";
|
|
4
3
|
|
|
5
4
|
/* Tailwind v4: 소스 경로 지정 */
|
|
@@ -490,53 +489,6 @@ html {
|
|
|
490
489
|
[data-slot="table-row"] {
|
|
491
490
|
border-color: color-mix(in srgb, var(--border) 40%, transparent);
|
|
492
491
|
}
|
|
493
|
-
|
|
494
|
-
/* Calendar date range styles - react-day-picker v8 */
|
|
495
|
-
.rdp {
|
|
496
|
-
--rdp-cell-size: 2rem;
|
|
497
|
-
--rdp-accent-color: var(--primary);
|
|
498
|
-
--rdp-background-color: var(--primary);
|
|
499
|
-
}
|
|
500
|
-
|
|
501
|
-
/* Range selection - start date */
|
|
502
|
-
.rdp-day_range_start:not(.rdp-day_range_end) {
|
|
503
|
-
background-color: var(--primary) !important;
|
|
504
|
-
color: var(--primary-foreground) !important;
|
|
505
|
-
border-radius: var(--radius-md) 0 0 var(--radius-md) !important;
|
|
506
|
-
}
|
|
507
|
-
|
|
508
|
-
/* Range selection - end date */
|
|
509
|
-
.rdp-day_range_end:not(.rdp-day_range_start) {
|
|
510
|
-
background-color: var(--primary) !important;
|
|
511
|
-
color: var(--primary-foreground) !important;
|
|
512
|
-
border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
|
|
513
|
-
}
|
|
514
|
-
|
|
515
|
-
/* Range selection - single day (start = end) */
|
|
516
|
-
.rdp-day_range_start.rdp-day_range_end {
|
|
517
|
-
background-color: var(--primary) !important;
|
|
518
|
-
color: var(--primary-foreground) !important;
|
|
519
|
-
border-radius: var(--radius-md) !important;
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
/* Range selection - middle dates (연결된 배경) */
|
|
523
|
-
.rdp-day_range_middle {
|
|
524
|
-
background-color: color-mix(in srgb, var(--primary) 15%, transparent) !important;
|
|
525
|
-
border-radius: 0 !important;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
/* Hover states */
|
|
529
|
-
.rdp-day:not(.rdp-day_selected):not(.rdp-day_range_start):not(.rdp-day_range_end):not(
|
|
530
|
-
.rdp-day_range_middle
|
|
531
|
-
):hover {
|
|
532
|
-
background-color: var(--secondary) !important;
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
/* Selected single date */
|
|
536
|
-
.rdp-day_selected:not(.rdp-day_range_start):not(.rdp-day_range_end):not(.rdp-day_range_middle) {
|
|
537
|
-
background-color: var(--primary) !important;
|
|
538
|
-
color: var(--primary-foreground) !important;
|
|
539
|
-
}
|
|
540
492
|
}
|
|
541
493
|
|
|
542
494
|
/* Keyframe animations - tailwindcss-animate 대체 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sonamu-kit/react-components",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "CartaNova <dev@cartanova.ai>",
|
|
6
6
|
"repository": {
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
"@vitejs/plugin-react": "6.0.1",
|
|
106
106
|
"agentation": "^2.3.0",
|
|
107
107
|
"autoprefixer": "^10.4.20",
|
|
108
|
-
"better-auth": "~1.
|
|
108
|
+
"better-auth": "~1.6.0",
|
|
109
109
|
"postcss": "^8.4.49",
|
|
110
110
|
"storybook": "^10.2.19",
|
|
111
111
|
"tailwindcss": "^4.0.0",
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
"peerDependencies": {
|
|
119
119
|
"@tanstack/react-query": "^5.90.12",
|
|
120
120
|
"@tanstack/react-router": "1.143.11",
|
|
121
|
-
"better-auth": "~1.
|
|
121
|
+
"better-auth": "~1.6.0",
|
|
122
122
|
"react": "^19.2.3",
|
|
123
123
|
"react-dom": "^19.2.3"
|
|
124
124
|
},
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
/** 단일 날짜 또는 날짜 범위 값 */
|
|
3
|
-
export type DateSelectorValue = {
|
|
4
|
-
type: "single";
|
|
5
|
-
date: Date;
|
|
6
|
-
} | {
|
|
7
|
-
type: "range";
|
|
8
|
-
from: Date;
|
|
9
|
-
to: Date;
|
|
10
|
-
};
|
|
11
|
-
interface DateSelectorMultipleProps {
|
|
12
|
-
/** Calendar icon component */
|
|
13
|
-
CalendarIcon: React.ComponentType<{
|
|
14
|
-
className?: string;
|
|
15
|
-
}>;
|
|
16
|
-
/** ChevronDown icon component */
|
|
17
|
-
ChevronDownIcon: React.ComponentType<{
|
|
18
|
-
className?: string;
|
|
19
|
-
}>;
|
|
20
|
-
/** Current value */
|
|
21
|
-
value?: DateSelectorValue;
|
|
22
|
-
/** Callback when value changes */
|
|
23
|
-
onValueChange?: (value: DateSelectorValue | undefined) => void;
|
|
24
|
-
/** Placeholder text when no value */
|
|
25
|
-
placeholder?: string;
|
|
26
|
-
/** Date format string for display */
|
|
27
|
-
dateFormat?: string;
|
|
28
|
-
/** Custom className for trigger button */
|
|
29
|
-
className?: string;
|
|
30
|
-
/** Number of months to display in range mode */
|
|
31
|
-
numberOfMonths?: number;
|
|
32
|
-
/** Default to range mode when opening */
|
|
33
|
-
defaultRangeMode?: boolean;
|
|
34
|
-
}
|
|
35
|
-
export declare function DateSelectorMultiple({ CalendarIcon, ChevronDownIcon, value, onValueChange, placeholder, dateFormat, className, numberOfMonths, defaultRangeMode, }: DateSelectorMultipleProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export {};
|