@tide-design/components 0.25.0 → 0.27.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.
- package/dist/DatePicker/DatePicker.d.ts +52 -0
- package/dist/DatePicker/DatePicker.js +20 -0
- package/dist/DatePicker/components/Calendar.js +153 -0
- package/dist/DatePicker/components/CalendarCell.js +33 -0
- package/dist/DatePicker/components/CalendarGrid.js +28 -0
- package/dist/DatePicker/components/CalendarMonthView.js +82 -0
- package/dist/DatePicker/components/CalendarNavButton.js +24 -0
- package/dist/DatePicker/components/CalendarPickerCell.js +39 -0
- package/dist/DatePicker/components/CalendarPickerGrid.js +46 -0
- package/dist/DatePicker/components/CalendarTitle.js +33 -0
- package/dist/DatePicker/components/CalendarYearView.js +64 -0
- package/dist/DatePicker/components/DatePickerGroup.js +123 -0
- package/dist/DatePicker/components/DatePickerPopover.js +18 -0
- package/dist/DatePicker/components/DatePickerPopoverInner.js +57 -0
- package/dist/DatePicker/components/DateSegment.js +26 -0
- package/dist/DatePicker/components/DateSegments.js +62 -0
- package/dist/DatePicker/constants/calendarClass.js +41 -0
- package/dist/DatePicker/constants/calendarPicker.js +4 -0
- package/dist/DatePicker/constants/dateFormat.js +5 -0
- package/dist/DatePicker/constants/datePickerClass.js +27 -0
- package/dist/DatePicker/hooks/useOpenOnFocus.js +69 -0
- package/dist/DatePicker/hooks/useSegmentEntry.js +53 -0
- package/dist/DatePicker/index.d.ts +2 -0
- package/dist/DatePicker/libs/calendarPicker.js +64 -0
- package/dist/DatePicker/libs/dateFormat.js +45 -0
- package/dist/DatePicker/libs/dateUnavailable.js +16 -0
- package/dist/DatePicker/libs/isoDate.js +23 -0
- package/dist/DatePicker/libs/segmentEntry.js +19 -0
- package/dist/DatePicker/libs/warnOnce.js +17 -0
- package/dist/Field/Field.d.ts +1 -1
- package/dist/Field/Field.js +4 -12
- package/dist/Field/components/FieldLabelledControl.js +40 -0
- package/dist/_internal/components/OverlayPortal.js +2 -1
- package/dist/_internal/constants/inputClass.js +6 -1
- package/dist/_internal/hooks/useFieldGroupControl.js +30 -0
- package/dist/_internal/hooks/usePopoverOverlay.js +3 -2
- package/dist/index.d.ts +3 -1
- package/dist/index.js +2 -1
- package/package.json +4 -3
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
// src/DatePicker/libs/segmentEntry.ts
|
|
2
|
+
/**
|
|
3
|
+
* 숫자 칸에 `key`를 친 뒤 이어 칠 자릿수. 칸 입력이 끝났으면 `""`, 받지 않는 키면 `null`.
|
|
4
|
+
* 자릿수가 최댓값 자릿수에 닿거나, 숫자를 하나 더 붙이면 최댓값을 넘을 때 끝난다.
|
|
5
|
+
*/
|
|
6
|
+
function enterSegmentDigit(entered, key, maxValue) {
|
|
7
|
+
const next = entered + key;
|
|
8
|
+
if (!/^\d+$/.test(next)) return null;
|
|
9
|
+
if (maxValue === void 0) return next;
|
|
10
|
+
return Number(`${Number(next)}0`) > maxValue || next.length >= String(maxValue).length ? "" : next;
|
|
11
|
+
}
|
|
12
|
+
/** Backspace·Delete 뒤 이어 칠 자릿수. 남은 값이 없거나 0이면 `""`. */
|
|
13
|
+
function eraseSegmentDigit(text) {
|
|
14
|
+
if (!/^\d+$/.test(text)) return "";
|
|
15
|
+
const next = text.slice(0, -1);
|
|
16
|
+
return Number(next) === 0 ? "" : next;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export { enterSegmentDigit, eraseSegmentDigit };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// src/DatePicker/libs/warnOnce.ts
|
|
2
|
+
const warnedKeys = /* @__PURE__ */ new Set();
|
|
3
|
+
/** 개발 모드에서 `key`마다 한 번만 `console.warn`한다. */
|
|
4
|
+
function warnOnce(key, message) {
|
|
5
|
+
if (!isDevelopment() || warnedKeys.has(key)) return;
|
|
6
|
+
warnedKeys.add(key);
|
|
7
|
+
console.warn(message);
|
|
8
|
+
}
|
|
9
|
+
function isDevelopment() {
|
|
10
|
+
try {
|
|
11
|
+
return process.env.NODE_ENV !== "production";
|
|
12
|
+
} catch {
|
|
13
|
+
return false;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { warnOnce };
|
package/dist/Field/Field.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export interface FieldOwnProps {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
/** label이 가리킬 입력창 id. 주지 않으면 자동으로 만든다. 오류 요약에서 `#id`로 링크할 때 쓴다. `group`이면 묶음의 id다. */
|
|
16
16
|
htmlFor?: string;
|
|
17
|
-
/** 안에 둔 것이 묶음(`CheckboxGroup`, `RadioGroup`)일 때 `true`. 기본값 `false`. 묶음이 `aria-labelledby`로 label을 쓴다. */
|
|
17
|
+
/** 안에 둔 것이 묶음(`CheckboxGroup`, `RadioGroup`)일 때 `true`. 기본값 `false`. 묶음이 `aria-labelledby`로 label을 쓴다. 날짜 입력처럼 스스로 알리는 group 입력에는 주지 않아도 된다. */
|
|
18
18
|
group?: boolean;
|
|
19
19
|
/** 입력 Component 하나(Input, Textarea, CheckboxGroup, RadioGroup 등) */
|
|
20
20
|
children: ReactNode;
|
package/dist/Field/Field.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { cn } from "../_internal/libs/cn.js";
|
|
2
|
-
import {
|
|
2
|
+
import { FieldLabelledControl } from "./components/FieldLabelledControl.js";
|
|
3
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useId } from "react";
|
|
5
5
|
import { CircleExclamationPointIcon } from "@tide-design/icons";
|
|
@@ -39,18 +39,10 @@ function Field({ label, description, error, invalid, required = false, disabled
|
|
|
39
39
|
"data-disabled": disabled ? "" : void 0,
|
|
40
40
|
className: cn("flex flex-col gap-1.5", className),
|
|
41
41
|
children: [
|
|
42
|
-
|
|
43
|
-
id: labelId,
|
|
44
|
-
className: "text-label-md text-default",
|
|
45
|
-
children: labelContent
|
|
46
|
-
}) : /* @__PURE__ */ jsx("label", {
|
|
47
|
-
id: labelId,
|
|
48
|
-
htmlFor: controlId,
|
|
49
|
-
className: "text-label-md text-default",
|
|
50
|
-
children: labelContent
|
|
51
|
-
}),
|
|
52
|
-
/* @__PURE__ */ jsx(FieldContext, {
|
|
42
|
+
/* @__PURE__ */ jsx(FieldLabelledControl, {
|
|
53
43
|
value,
|
|
44
|
+
group,
|
|
45
|
+
label: labelContent,
|
|
54
46
|
children
|
|
55
47
|
}),
|
|
56
48
|
showDescription ? /* @__PURE__ */ jsx("p", {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { FieldContext } from "../../_internal/hooks/useFieldControl.js";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
import { useCallback, useMemo, useRef, useState } from "react";
|
|
6
|
+
|
|
7
|
+
// src/Field/components/FieldLabelledControl.tsx
|
|
8
|
+
const labelClass = "text-label-md text-default";
|
|
9
|
+
function FieldLabelledControl({ value, group, label, children }) {
|
|
10
|
+
const [hasGroupInput, setHasGroupInput] = useState(false);
|
|
11
|
+
const labelClickRef = useRef(void 0);
|
|
12
|
+
const registerGroupInput = useCallback((onLabelClick) => {
|
|
13
|
+
labelClickRef.current = onLabelClick;
|
|
14
|
+
setHasGroupInput(true);
|
|
15
|
+
return () => {
|
|
16
|
+
labelClickRef.current = void 0;
|
|
17
|
+
setHasGroupInput(false);
|
|
18
|
+
};
|
|
19
|
+
}, []);
|
|
20
|
+
const contextValue = useMemo(() => ({
|
|
21
|
+
...value,
|
|
22
|
+
registerGroupInput
|
|
23
|
+
}), [value, registerGroupInput]);
|
|
24
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [group || hasGroupInput ? /* @__PURE__ */ jsx("span", {
|
|
25
|
+
id: value.labelId,
|
|
26
|
+
onClick: hasGroupInput ? () => labelClickRef.current?.() : void 0,
|
|
27
|
+
className: labelClass,
|
|
28
|
+
children: label
|
|
29
|
+
}) : /* @__PURE__ */ jsx("label", {
|
|
30
|
+
id: value.labelId,
|
|
31
|
+
htmlFor: value.controlId,
|
|
32
|
+
className: labelClass,
|
|
33
|
+
children: label
|
|
34
|
+
}), /* @__PURE__ */ jsx(FieldContext, {
|
|
35
|
+
value: contextValue,
|
|
36
|
+
children
|
|
37
|
+
})] });
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export { FieldLabelledControl };
|
|
@@ -8,10 +8,11 @@ import { Overlay } from "react-aria";
|
|
|
8
8
|
* `document.body`에 portal하고 `FocusScope`(`restoreFocus`)로 감싸 닫힐 때 포커스를 트리거로 돌린다.
|
|
9
9
|
* top-layer(`<dialog>`, popover API)는 쓰지 않는다.
|
|
10
10
|
*/
|
|
11
|
-
function OverlayPortal({ isExiting, focusManagement = true, children }) {
|
|
11
|
+
function OverlayPortal({ isExiting, focusManagement = true, containFocus = false, children }) {
|
|
12
12
|
return /* @__PURE__ */ jsx(Overlay, {
|
|
13
13
|
isExiting,
|
|
14
14
|
disableFocusManagement: !focusManagement,
|
|
15
|
+
shouldContainFocus: containFocus,
|
|
15
16
|
children
|
|
16
17
|
});
|
|
17
18
|
}
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
// src/_internal/constants/inputClass.ts
|
|
2
2
|
/** size class 뒤에 넣는다. */
|
|
3
3
|
const inputBaseClass = "w-full min-w-0 rounded-md border border-strong bg-canvas font-normal text-default transition-colors placeholder:text-muted aria-invalid:border-danger focus:focus-field disabled:cursor-not-allowed disabled:border-default disabled:bg-disabled disabled:text-disabled disabled:placeholder:text-disabled";
|
|
4
|
+
/**
|
|
5
|
+
* 세그먼트를 담은 group 입력용. `inputBaseClass`와 같은 모양을 `data-invalid`·`data-disabled`로 고른다. size class 뒤에 넣는다.
|
|
6
|
+
* halo는 버튼 밖 요소에 포커스가 있을 때만 그린다. 안쪽 버튼은 자기 focus-ring만 보인다.
|
|
7
|
+
*/
|
|
8
|
+
const inputGroupClass = "flex w-full min-w-0 items-center rounded-md border border-strong bg-canvas font-normal text-default transition-colors data-invalid:border-danger has-[:focus:not(button)]:focus-field data-disabled:cursor-not-allowed data-disabled:border-default data-disabled:bg-disabled data-disabled:text-disabled";
|
|
4
9
|
const inputSizeClass = {
|
|
5
10
|
sm: "h-8 px-2.5 text-label-md",
|
|
6
11
|
md: "h-10 px-3 text-label-md",
|
|
7
12
|
lg: "h-12 px-4 text-label-lg"
|
|
8
13
|
};
|
|
9
14
|
|
|
10
|
-
export { inputBaseClass, inputSizeClass };
|
|
15
|
+
export { inputBaseClass, inputGroupClass, inputSizeClass };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { FieldContext } from "./useFieldControl.js";
|
|
4
|
+
import { use, useLayoutEffect, useRef } from "react";
|
|
5
|
+
|
|
6
|
+
// src/_internal/hooks/useFieldGroupControl.ts
|
|
7
|
+
/**
|
|
8
|
+
* `<label for>`로 이름을 받을 수 없는 group 입력(세그먼트를 담은 `div`)의 Field 연결.
|
|
9
|
+
* Field에 group 입력임을 알려 label을 `aria-labelledby`로 쓴다. 직접 준 값이 Field 값을 이긴다.
|
|
10
|
+
* `onLabelClick`은 Field label을 눌렀을 때 부른다(`<label for>`처럼 첫 칸에 포커스할 때 쓴다).
|
|
11
|
+
*/
|
|
12
|
+
function useFieldGroupControl(props, onLabelClick) {
|
|
13
|
+
const field = use(FieldContext);
|
|
14
|
+
const register = field?.registerGroupInput;
|
|
15
|
+
const labelClickRef = useRef(onLabelClick);
|
|
16
|
+
useLayoutEffect(() => {
|
|
17
|
+
labelClickRef.current = onLabelClick;
|
|
18
|
+
});
|
|
19
|
+
useLayoutEffect(() => register?.(() => labelClickRef.current?.()), [register]);
|
|
20
|
+
return {
|
|
21
|
+
id: props.id ?? field?.controlId,
|
|
22
|
+
"aria-labelledby": props["aria-labelledby"] ?? field?.labelId,
|
|
23
|
+
"aria-describedby": [field?.describedBy, props["aria-describedby"]].filter(Boolean).join(" ") || void 0,
|
|
24
|
+
invalid: props.invalid ?? field?.invalid ?? false,
|
|
25
|
+
disabled: props.disabled ?? field?.disabled ?? false,
|
|
26
|
+
required: props.required ?? field?.required ?? false
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export { useFieldGroupControl };
|
|
@@ -5,13 +5,14 @@ import { usePopover } from "react-aria";
|
|
|
5
5
|
|
|
6
6
|
// src/_internal/hooks/usePopoverOverlay.ts
|
|
7
7
|
/** React Aria `usePopover`를 감싼다. 돌려받은 `overlayProps`(style 포함)를 오버레이 요소에 펼친다. */
|
|
8
|
-
function usePopoverOverlay({ triggerRef, popoverRef, placement, offset, nonModal = false }, state) {
|
|
8
|
+
function usePopoverOverlay({ triggerRef, popoverRef, placement, offset, nonModal = false, shouldCloseOnInteractOutside }, state) {
|
|
9
9
|
const { popoverProps, placement: actual } = usePopover({
|
|
10
10
|
triggerRef,
|
|
11
11
|
popoverRef,
|
|
12
12
|
placement,
|
|
13
13
|
offset,
|
|
14
|
-
isNonModal: nonModal
|
|
14
|
+
isNonModal: nonModal,
|
|
15
|
+
shouldCloseOnInteractOutside
|
|
15
16
|
}, state);
|
|
16
17
|
return { overlayProps: overlayPositionProps(popoverProps, actual, placement) };
|
|
17
18
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -79,6 +79,8 @@ import "./Combobox/index.js";
|
|
|
79
79
|
import { Combobox, ComboboxOwnProps, ComboboxProps } from "./Combobox/Combobox.js";
|
|
80
80
|
import { ComboboxItem, ComboboxItemOwnProps, ComboboxItemProps } from "./Combobox/components/ComboboxItem.js";
|
|
81
81
|
import { ComboboxSection, ComboboxSectionProps } from "./Combobox/components/ComboboxSection.js";
|
|
82
|
+
import "./DatePicker/index.js";
|
|
83
|
+
import { DatePicker, DatePickerOwnProps, DatePickerProps, DateUnavailableInfo } from "./DatePicker/DatePicker.js";
|
|
82
84
|
import "./Select/index.js";
|
|
83
85
|
import { Select, SelectOwnProps, SelectProps } from "./Select/Select.js";
|
|
84
86
|
import { SelectItem, SelectItemOwnProps, SelectItemProps } from "./Select/components/SelectItem.js";
|
|
@@ -121,4 +123,4 @@ import { TooltipTrigger, TooltipTriggerOwnProps, TooltipTriggerProps } from "./T
|
|
|
121
123
|
import { TooltipPlacement } from "./Tooltip/types.js";
|
|
122
124
|
import { TooltipContent, TooltipContentOwnProps, TooltipContentProps } from "./Tooltip/components/TooltipContent.js";
|
|
123
125
|
import { Color, ColorFamilyName, ColorFamilyRegistry, FillVariant, Role, RoleRegistry, Size } from "./types.js";
|
|
124
|
-
export { Accordion, type AccordionHeadingLevel, AccordionItem, type AccordionItemOwnProps, type AccordionItemProps, type AccordionOwnProps, AccordionPanel, type AccordionPanelOwnProps, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerOwnProps, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertOwnProps, type AlertProps, Avatar, type AvatarOwnProps, type AvatarProps, Badge, type BadgeOwnProps, type BadgeProps, Breadcrumb, BreadcrumbCurrent, type BreadcrumbCurrentProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkOwnProps, type BreadcrumbLinkProps, type BreadcrumbOwnProps, type BreadcrumbProps, Button, type ButtonOwnProps, type ButtonProps, Card, type CardOwnProps, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupOwnProps, type CheckboxGroupProps, type CheckboxOwnProps, type CheckboxProps, type CheckboxShape, type ChoiceOrientation, type Color, type ColorFamilyName, type ColorFamilyRegistry, Combobox, ComboboxItem, type ComboboxItemOwnProps, type ComboboxItemProps, type ComboboxOwnProps, type ComboboxProps, ComboboxSection, type ComboboxSectionProps, Dialog, DialogClose, type DialogCloseOwnProps, type DialogCloseProps, DialogContent, type DialogContentOwnProps, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderAlign, type DialogHeaderOwnProps, type DialogHeaderProps, type DialogProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerOwnProps, type DialogTriggerProps, Field, type FieldOwnProps, type FieldProps, type FillVariant, IconButton, type IconButtonOwnProps, type IconButtonProps, Input, type InputOwnProps, type InputProps, Link, type LinkOwnProps, type LinkProps, type MaskFormatOptions, Menu, MenuContent, type MenuContentOwnProps, type MenuContentProps, MenuItem, type MenuItemOwnProps, type MenuItemProps, type MenuPlacement, type MenuProps, MenuSection, type MenuSectionProps, MenuTrigger, type MenuTriggerOwnProps, type MenuTriggerProps, NumberFormatInput, type NumberFormatInputOwnProps, type NumberFormatInputProps, type NumberFormatOptions, type NumericFormatOptions, type NumericRangeOptions, Pagination, PaginationEllipsis, type PaginationEllipsisOwnProps, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkOwnProps, type PaginationLinkProps, PaginationNext, type PaginationNextOwnProps, type PaginationNextProps, type PaginationOwnProps, PaginationPrevious, type PaginationPreviousOwnProps, type PaginationPreviousProps, type PaginationProps, Popover, PopoverContent, type PopoverContentOwnProps, type PopoverContentProps, type PopoverPlacement, type PopoverProps, PopoverTrigger, type PopoverTriggerOwnProps, type PopoverTriggerProps, Progress, type ProgressOwnProps, type ProgressProps, Radio, RadioGroup, type RadioGroupOwnProps, type RadioGroupProps, type RadioOwnProps, type RadioProps, type Role, type RoleRegistry, Select, SelectItem, type SelectItemOwnProps, type SelectItemProps, type SelectOwnProps, type SelectProps, SelectSection, type SelectSectionProps, Separator, type SeparatorOwnProps, type SeparatorProps, type Size, Skeleton, type SkeletonOwnProps, type SkeletonProps, Spinner, type SpinnerOwnProps, type SpinnerProps, Switch, type SwitchOwnProps, type SwitchProps, Tab, TabList, type TabListOwnProps, type TabListProps, type TabOwnProps, TabPanel, type TabPanelOwnProps, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellOwnProps, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsActivationMode, type TabsOrientation, type TabsOwnProps, type TabsProps, type TabsShape, Tag, TagGroup, type TagGroupOwnProps, type TagGroupProps, type TagOwnProps, type TagProps, Textarea, type TextareaOwnProps, type TextareaProps, type ToastAction, type ToastOptions, ToastQueue, type ToastQueueOptions, ToastRegion, type ToastRegionOwnProps, type ToastRegionProps, Tooltip, TooltipContent, type TooltipContentOwnProps, type TooltipContentProps, type TooltipPlacement, type TooltipProps, TooltipTrigger, type TooltipTriggerOwnProps, type TooltipTriggerProps, VisuallyHidden, type VisuallyHiddenProps, cn, formatNumber };
|
|
126
|
+
export { Accordion, type AccordionHeadingLevel, AccordionItem, type AccordionItemOwnProps, type AccordionItemProps, type AccordionOwnProps, AccordionPanel, type AccordionPanelOwnProps, type AccordionPanelProps, type AccordionProps, AccordionTrigger, type AccordionTriggerOwnProps, type AccordionTriggerProps, Alert, AlertDialog, type AlertDialogProps, type AlertOwnProps, type AlertProps, Avatar, type AvatarOwnProps, type AvatarProps, Badge, type BadgeOwnProps, type BadgeProps, Breadcrumb, BreadcrumbCurrent, type BreadcrumbCurrentProps, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkOwnProps, type BreadcrumbLinkProps, type BreadcrumbOwnProps, type BreadcrumbProps, Button, type ButtonOwnProps, type ButtonProps, Card, type CardOwnProps, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupOwnProps, type CheckboxGroupProps, type CheckboxOwnProps, type CheckboxProps, type CheckboxShape, type ChoiceOrientation, type Color, type ColorFamilyName, type ColorFamilyRegistry, Combobox, ComboboxItem, type ComboboxItemOwnProps, type ComboboxItemProps, type ComboboxOwnProps, type ComboboxProps, ComboboxSection, type ComboboxSectionProps, DatePicker, type DatePickerOwnProps, type DatePickerProps, type DateUnavailableInfo, Dialog, DialogClose, type DialogCloseOwnProps, type DialogCloseProps, DialogContent, type DialogContentOwnProps, type DialogContentProps, DialogDescription, type DialogDescriptionProps, DialogFooter, type DialogFooterProps, DialogHeader, type DialogHeaderAlign, type DialogHeaderOwnProps, type DialogHeaderProps, type DialogProps, type DialogSize, DialogTitle, type DialogTitleProps, DialogTrigger, type DialogTriggerOwnProps, type DialogTriggerProps, Field, type FieldOwnProps, type FieldProps, type FillVariant, IconButton, type IconButtonOwnProps, type IconButtonProps, Input, type InputOwnProps, type InputProps, Link, type LinkOwnProps, type LinkProps, type MaskFormatOptions, Menu, MenuContent, type MenuContentOwnProps, type MenuContentProps, MenuItem, type MenuItemOwnProps, type MenuItemProps, type MenuPlacement, type MenuProps, MenuSection, type MenuSectionProps, MenuTrigger, type MenuTriggerOwnProps, type MenuTriggerProps, NumberFormatInput, type NumberFormatInputOwnProps, type NumberFormatInputProps, type NumberFormatOptions, type NumericFormatOptions, type NumericRangeOptions, Pagination, PaginationEllipsis, type PaginationEllipsisOwnProps, type PaginationEllipsisProps, PaginationItem, type PaginationItemProps, PaginationLink, type PaginationLinkOwnProps, type PaginationLinkProps, PaginationNext, type PaginationNextOwnProps, type PaginationNextProps, type PaginationOwnProps, PaginationPrevious, type PaginationPreviousOwnProps, type PaginationPreviousProps, type PaginationProps, Popover, PopoverContent, type PopoverContentOwnProps, type PopoverContentProps, type PopoverPlacement, type PopoverProps, PopoverTrigger, type PopoverTriggerOwnProps, type PopoverTriggerProps, Progress, type ProgressOwnProps, type ProgressProps, Radio, RadioGroup, type RadioGroupOwnProps, type RadioGroupProps, type RadioOwnProps, type RadioProps, type Role, type RoleRegistry, Select, SelectItem, type SelectItemOwnProps, type SelectItemProps, type SelectOwnProps, type SelectProps, SelectSection, type SelectSectionProps, Separator, type SeparatorOwnProps, type SeparatorProps, type Size, Skeleton, type SkeletonOwnProps, type SkeletonProps, Spinner, type SpinnerOwnProps, type SpinnerProps, Switch, type SwitchOwnProps, type SwitchProps, Tab, TabList, type TabListOwnProps, type TabListProps, type TabOwnProps, TabPanel, type TabPanelOwnProps, type TabPanelProps, type TabProps, Table, TableBody, type TableBodyProps, TableCell, type TableCellProps, TableHead, type TableHeadProps, TableHeaderCell, type TableHeaderCellOwnProps, type TableHeaderCellProps, type TableProps, TableRow, type TableRowProps, Tabs, type TabsActivationMode, type TabsOrientation, type TabsOwnProps, type TabsProps, type TabsShape, Tag, TagGroup, type TagGroupOwnProps, type TagGroupProps, type TagOwnProps, type TagProps, Textarea, type TextareaOwnProps, type TextareaProps, type ToastAction, type ToastOptions, ToastQueue, type ToastQueueOptions, ToastRegion, type ToastRegionOwnProps, type ToastRegionProps, Tooltip, TooltipContent, type TooltipContentOwnProps, type TooltipContentProps, type TooltipPlacement, type TooltipProps, TooltipTrigger, type TooltipTriggerOwnProps, type TooltipTriggerProps, VisuallyHidden, type VisuallyHiddenProps, cn, formatNumber };
|
package/dist/index.js
CHANGED
|
@@ -48,6 +48,7 @@ import { PopoverTrigger } from "./Popover/components/PopoverTrigger.js";
|
|
|
48
48
|
import { Combobox } from "./Combobox/Combobox.js";
|
|
49
49
|
import { ComboboxItem } from "./Combobox/components/ComboboxItem.js";
|
|
50
50
|
import { ComboboxSection } from "./Combobox/components/ComboboxSection.js";
|
|
51
|
+
import { DatePicker } from "./DatePicker/DatePicker.js";
|
|
51
52
|
import { Select } from "./Select/Select.js";
|
|
52
53
|
import { SelectItem } from "./Select/components/SelectItem.js";
|
|
53
54
|
import { SelectSection } from "./Select/components/SelectSection.js";
|
|
@@ -76,4 +77,4 @@ import { Tooltip } from "./Tooltip/Tooltip.js";
|
|
|
76
77
|
import { TooltipContent } from "./Tooltip/components/TooltipContent.js";
|
|
77
78
|
import { TooltipTrigger } from "./Tooltip/components/TooltipTrigger.js";
|
|
78
79
|
|
|
79
|
-
export { Accordion, AccordionItem, AccordionPanel, AccordionTrigger, Alert, AlertDialog, Avatar, Badge, Breadcrumb, BreadcrumbCurrent, BreadcrumbItem, BreadcrumbLink, Button, Card, Checkbox, CheckboxGroup, Combobox, ComboboxItem, ComboboxSection, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Field, IconButton, Input, Link, Menu, MenuContent, MenuItem, MenuSection, MenuTrigger, NumberFormatInput, Pagination, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioGroup, Select, SelectItem, SelectSection, Separator, Skeleton, Spinner, Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableHead, TableHeaderCell, TableRow, Tabs, Tag, TagGroup, Textarea, ToastQueue, ToastRegion, Tooltip, TooltipContent, TooltipTrigger, VisuallyHidden, cn, formatNumber };
|
|
80
|
+
export { Accordion, AccordionItem, AccordionPanel, AccordionTrigger, Alert, AlertDialog, Avatar, Badge, Breadcrumb, BreadcrumbCurrent, BreadcrumbItem, BreadcrumbLink, Button, Card, Checkbox, CheckboxGroup, Combobox, ComboboxItem, ComboboxSection, DatePicker, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle, DialogTrigger, Field, IconButton, Input, Link, Menu, MenuContent, MenuItem, MenuSection, MenuTrigger, NumberFormatInput, Pagination, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverTrigger, Progress, Radio, RadioGroup, Select, SelectItem, SelectSection, Separator, Skeleton, Spinner, Switch, Tab, TabList, TabPanel, Table, TableBody, TableCell, TableHead, TableHeaderCell, TableRow, Tabs, Tag, TagGroup, Textarea, ToastQueue, ToastRegion, Tooltip, TooltipContent, TooltipTrigger, VisuallyHidden, cn, formatNumber };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tide-design/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Tide 디자인 시스템의 React Component",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -34,11 +34,12 @@
|
|
|
34
34
|
"./styles.css": "./dist/styles.css"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
+
"@internationalized/date": "^3.12.4",
|
|
37
38
|
"@maskito/core": "5.6.1",
|
|
38
39
|
"@maskito/kit": "5.6.1",
|
|
39
40
|
"@maskito/react": "5.6.1",
|
|
40
|
-
"@tide-design/foundation": "0.
|
|
41
|
-
"@tide-design/icons": "0.
|
|
41
|
+
"@tide-design/foundation": "0.27.0",
|
|
42
|
+
"@tide-design/icons": "0.27.0",
|
|
42
43
|
"clsx": "^2.1.1",
|
|
43
44
|
"react-aria": "^3.53.1",
|
|
44
45
|
"react-number-format": "^5.4.5",
|