@tide-design/components 0.26.0 → 0.28.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.
@@ -1,5 +1,14 @@
1
1
  import { InputSize } from "../_internal/constants/inputClass.js";
2
2
  import { ComponentProps, ReactElement } from "react";
3
+ /** `isDateUnavailable` 함수가 받는 날 정보. 날짜 문자열을 `Date`로 바꾸지 않고 요일을 볼 수 있다. */
4
+ export interface DateUnavailableInfo {
5
+ /** 판정할 날. ISO `"YYYY-MM-DD"`. */
6
+ date: string;
7
+ /** DatePicker `locale` 기준 주말인지 */
8
+ isWeekend: boolean;
9
+ /** 요일. `locale`과 무관하게 0 일요일 … 6 토요일(`Date.getDay()`와 같다). */
10
+ dayOfWeek: number;
11
+ }
3
12
  export interface DatePickerOwnProps {
4
13
  /** 고른 날(제어). ISO `"YYYY-MM-DD"`. `null`이면 빈 값이다. 주면 `onValueChange`로 바꾼다. */
5
14
  value?: string | null;
@@ -23,12 +32,12 @@ export interface DatePickerOwnProps {
23
32
  readOnly?: boolean;
24
33
  /** 필수. 비운 채 제출하면 막고 첫 칸으로 포커스를 옮긴다(브라우저 말풍선 없음, 메시지는 Field `error`). */
25
34
  required?: boolean;
26
- /** 고를 수 있는 첫날(ISO). 밖의 날은 달력에서 막히고 입력하면 오류 상태가 된다. */
35
+ /** 고를 수 있는 첫날(ISO). 밖의 날은 달력에서 막히고 입력하면 오류 상태가 된다(Field 안이면 기본 오류 문구). */
27
36
  min?: string;
28
37
  /** 고를 수 있는 마지막 날(ISO). */
29
38
  max?: string;
30
- /** `true`를 돌려준 날은 달력에서 고를 수 없다(포커스는 간다). 인자는 ISO 문자열이다. */
31
- isDateUnavailable?: (date: string) => boolean;
39
+ /** 고를 수 없는 날(포커스는 간다). 입력하면 오류 상태(Field 안이면 기본 오류 문구). `"weekend"`는 `locale`의 주말을 막는다. 함수는 {@link DateUnavailableInfo} 객체 하나를 받는다. */
40
+ isDateUnavailable?: "weekend" | ((info: DateUnavailableInfo) => boolean);
32
41
  /** 달력 제목·요일·주 시작과 스크린리더 문구의 언어. 기본값 `"ko-KR"`. 입력 칸 순서는 `format`이 정한다. */
33
42
  locale?: string;
34
43
  /** 표시 형식. 토큰 `yyyy`·`MM`·`dd`(대소문자 구분)와 구분자. 기본값 `"yyyy-MM-dd"`. 값과 제출 형식은 바꾸지 않는다. */
@@ -3,6 +3,7 @@
3
3
  import { maxYear } from "../constants/calendarPicker.js";
4
4
  import { calendarClass, calendarHeaderClass } from "../constants/calendarClass.js";
5
5
  import { clampKey, fromMonthKey, monthKey, shiftYearMonth } from "../libs/calendarPicker.js";
6
+ import { toUnavailableMatcher } from "../libs/dateUnavailable.js";
6
7
  import { parseIsoDate, toIsoDate } from "../libs/isoDate.js";
7
8
  import { CalendarGrid } from "./CalendarGrid.js";
8
9
  import { CalendarMonthView } from "./CalendarMonthView.js";
@@ -30,7 +31,7 @@ function Calendar({ value, onValueChange, onPickerValueChange = onValueChange, m
30
31
  onChange: (date) => onValueChange(toIsoDate(toCalendarDate(date))),
31
32
  minValue,
32
33
  maxValue,
33
- isDateUnavailable: isDateUnavailable ? (date) => isDateUnavailable(toIsoDate(toCalendarDate(date))) : void 0,
34
+ isDateUnavailable: useMemo(() => toUnavailableMatcher(isDateUnavailable, locale), [isDateUnavailable, locale]),
34
35
  defaultFocusedValue: selected ? void 0 : reference,
35
36
  autoFocus,
36
37
  isReadOnly: readOnly,
@@ -6,7 +6,10 @@ import { cn } from "../../_internal/libs/cn.js";
6
6
  import { defaultDateFormat } from "../constants/dateFormat.js";
7
7
  import { calendarIconClass, groupClass } from "../constants/datePickerClass.js";
8
8
  import { resolveDateFormat } from "../libs/dateFormat.js";
9
+ import { getDefaultError } from "../libs/defaultError.js";
10
+ import { useFieldErrorReport } from "../hooks/useFieldErrorReport.js";
9
11
  import { useOpenOnFocus } from "../hooks/useOpenOnFocus.js";
12
+ import { toUnavailableMatcher } from "../libs/dateUnavailable.js";
10
13
  import { parseIsoDate, toIsoDate } from "../libs/isoDate.js";
11
14
  import { Calendar } from "./Calendar.js";
12
15
  import { DatePickerPopover } from "./DatePickerPopover.js";
@@ -14,7 +17,7 @@ import { DateSegments } from "./DateSegments.js";
14
17
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
18
  import { useMemo, useRef, useState } from "react";
16
19
  import { CalendarIcon } from "@tide-design/icons";
17
- import { mergeProps, mergeRefs, useDatePicker } from "react-aria";
20
+ import { mergeProps, mergeRefs, useDatePicker, useLocale } from "react-aria";
18
21
  import { useDatePickerState } from "react-stately";
19
22
  import { toCalendarDate } from "@internationalized/date";
20
23
 
@@ -36,7 +39,8 @@ function DatePickerGroup({ value, defaultValue, onValueChange, onOpenChange, nam
36
39
  const [initial] = useState(() => parseIsoDate(defaultValue));
37
40
  const minValue = useMemo(() => parseIsoDate(min), [min]);
38
41
  const maxValue = useMemo(() => parseIsoDate(max), [max]);
39
- const unavailable = useMemo(() => isDateUnavailable ? (date) => isDateUnavailable(toIso(date)) : void 0, [isDateUnavailable]);
42
+ const { locale } = useLocale();
43
+ const unavailable = useMemo(() => toUnavailableMatcher(isDateUnavailable, locale), [isDateUnavailable, locale]);
40
44
  const parts = useMemo(() => resolveDateFormat(format), [format]);
41
45
  const pickerProps = {
42
46
  id: control.id,
@@ -60,6 +64,13 @@ function DatePickerGroup({ value, defaultValue, onValueChange, onOpenChange, nam
60
64
  };
61
65
  const state = useDatePickerState(pickerProps);
62
66
  const aria = useDatePicker(pickerProps, state, groupRef);
67
+ useFieldErrorReport(getDefaultError({
68
+ validation: state.displayValidation,
69
+ min: minValue,
70
+ max: maxValue,
71
+ parts,
72
+ locale
73
+ }));
63
74
  const openOnFocus = useOpenOnFocus({
64
75
  state,
65
76
  groupRef,
@@ -0,0 +1,16 @@
1
+ // src/DatePicker/constants/defaultError.ts
2
+ /** 기본 오류 문구. 내용은 react-stately 3.51.0 날짜 검증 문구와 같다. 사전에 없는 언어는 `en`을 쓴다. */
3
+ const defaultErrorStrings = {
4
+ ko: {
5
+ rangeUnderflow: (min) => `값은 ${min} 이후여야 합니다.`,
6
+ rangeOverflow: (max) => `값은 ${max} 이전이어야 합니다.`,
7
+ unavailableDate: "선택한 날짜를 사용할 수 없습니다."
8
+ },
9
+ en: {
10
+ rangeUnderflow: (min) => `Value must be ${min} or later.`,
11
+ rangeOverflow: (max) => `Value must be ${max} or earlier.`,
12
+ unavailableDate: "Selected date unavailable."
13
+ }
14
+ };
15
+
16
+ export { defaultErrorStrings };
@@ -0,0 +1,17 @@
1
+ "use client";
2
+
3
+ import { FieldContext } from "../../_internal/hooks/useFieldControl.js";
4
+ import { use, useEffect } from "react";
5
+
6
+ // src/DatePicker/hooks/useFieldErrorReport.ts
7
+ /** 기본 오류 문구를 둘러싼 Field에 올리고, 바뀌거나 사라지면 지운다. Field 밖이면 하는 일이 없다. */
8
+ function useFieldErrorReport(message) {
9
+ const report = use(FieldContext)?.reportError;
10
+ useEffect(() => {
11
+ if (!report) return void 0;
12
+ report(message);
13
+ return () => report(void 0);
14
+ }, [report, message]);
15
+ }
16
+
17
+ export { useFieldErrorReport };
@@ -1,2 +1,2 @@
1
- import { DatePicker, DatePickerOwnProps, DatePickerProps } from "./DatePicker.js";
2
- export { DatePicker, type DatePickerOwnProps, type DatePickerProps };
1
+ import { DatePicker, DatePickerOwnProps, DatePickerProps, DateUnavailableInfo } from "./DatePicker.js";
2
+ export { DatePicker, type DatePickerOwnProps, type DatePickerProps, type DateUnavailableInfo };
@@ -41,5 +41,14 @@ function resolveDateFormat(format) {
41
41
  warnOnce(`format:${format}`, `[Tide] DatePicker format "${format}"을 읽지 못해 "${defaultDateFormat}"을 씁니다. yyyy·MM·dd를 하나씩 쓰고(대소문자 구분) 사이에는 구분자만 넣으세요.`);
42
42
  return parseDateFormat("yyyy-MM-dd") ?? [];
43
43
  }
44
+ /** 날짜를 `format` 조각 순서대로 적는다. 연은 네 자리, 월·일은 두 자리로 채운다(칸 표시와 같다). */
45
+ function formatDate(date, parts) {
46
+ const fields = {
47
+ year: String(date.year).padStart(4, "0"),
48
+ month: String(date.month).padStart(2, "0"),
49
+ day: String(date.day).padStart(2, "0")
50
+ };
51
+ return parts.map((part) => part.type === "literal" ? part.text : fields[part.type]).join("");
52
+ }
44
53
 
45
- export { parseDateFormat, resolveDateFormat };
54
+ export { formatDate, parseDateFormat, resolveDateFormat };
@@ -0,0 +1,16 @@
1
+ import { toIsoDate } from "./isoDate.js";
2
+ import { getDayOfWeek, isWeekend, toCalendarDate } from "@internationalized/date";
3
+
4
+ // src/DatePicker/libs/dateUnavailable.ts
5
+ /** `isDateUnavailable` prop을 React Aria가 받는 판정 함수로 바꾼다. 주말은 `locale`을 따른다. */
6
+ function toUnavailableMatcher(isDateUnavailable, locale) {
7
+ if (isDateUnavailable === void 0) return void 0;
8
+ if (isDateUnavailable === "weekend") return (date) => isWeekend(date, locale);
9
+ return (date) => isDateUnavailable({
10
+ date: toIsoDate(toCalendarDate(date)),
11
+ isWeekend: isWeekend(date, locale),
12
+ dayOfWeek: getDayOfWeek(date, locale, "sun")
13
+ });
14
+ }
15
+
16
+ export { toUnavailableMatcher };
@@ -0,0 +1,24 @@
1
+ import { defaultErrorStrings } from "../constants/defaultError.js";
2
+ import { formatDate } from "./dateFormat.js";
3
+
4
+ // src/DatePicker/libs/defaultError.ts
5
+ const stringsFor = (locale) => {
6
+ const { language } = new Intl.Locale(locale);
7
+ return language === "ko" ? defaultErrorStrings.ko : defaultErrorStrings.en;
8
+ };
9
+ /**
10
+ * 보이는 검증 결과에서 min·max 밖, 막힌 날 문구를 만든다. 문구 언어는 `locale`, 날짜는 `format`을 따른다.
11
+ * 빈 값(`valueMissing`) 등 그 밖의 오류는 문구를 만들지 않는다(`undefined`).
12
+ */
13
+ function getDefaultError({ validation, min, max, parts, locale }) {
14
+ if (!validation.isInvalid) return void 0;
15
+ const details = validation.validationDetails;
16
+ const strings = stringsFor(locale);
17
+ const messages = [];
18
+ if (details.rangeUnderflow && min) messages.push(strings.rangeUnderflow(formatDate(min, parts)));
19
+ if (details.rangeOverflow && max) messages.push(strings.rangeOverflow(formatDate(max, parts)));
20
+ if (details.badInput) messages.push(strings.unavailableDate);
21
+ return messages.length > 0 ? messages.join(" ") : void 0;
22
+ }
23
+
24
+ export { getDefaultError };
@@ -4,7 +4,7 @@ export interface FieldOwnProps {
4
4
  label: ReactNode;
5
5
  /** 입력창 아래에 보이는 설명. 입력창의 `aria-describedby`로 연결된다. */
6
6
  description?: ReactNode;
7
- /** 오류 메시지. 오류 상태일 때만 보이고 입력창의 `aria-describedby`로 연결된다. */
7
+ /** 오류 메시지. 오류 상태일 때만 보이고 입력창의 `aria-describedby`로 연결된다. 없으면 안쪽 입력의 기본 문구(DatePicker 등)를 보인다. */
8
8
  error?: ReactNode;
9
9
  /** 오류 상태. 기본값은 `error`가 있으면 `true`. `false`를 주면 `error`가 있어도 숨긴다. */
10
10
  invalid?: boolean;
@@ -1,8 +1,10 @@
1
1
  import { cn } from "../_internal/libs/cn.js";
2
+ import { FieldDefaultError } from "./components/FieldDefaultError.js";
3
+ import { FieldErrorMessage } from "./components/FieldErrorMessage.js";
2
4
  import { FieldLabelledControl } from "./components/FieldLabelledControl.js";
5
+ import { FieldRoot } from "./components/FieldRoot.js";
3
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
4
7
  import { useId } from "react";
5
- import { CircleExclamationPointIcon } from "@tide-design/icons";
6
8
 
7
9
  // src/Field/Field.tsx
8
10
  const hasContent = (node) => node !== void 0 && node !== null && node !== false && node !== "";
@@ -33,10 +35,12 @@ function Field({ label, description, error, invalid, required = false, disabled
33
35
  className: "ms-0.5 text-danger",
34
36
  children: "*"
35
37
  }) : null] });
36
- return /* @__PURE__ */ jsxs("div", {
38
+ return /* @__PURE__ */ jsxs(FieldRoot, {
37
39
  ...props,
38
- "data-invalid": isInvalid ? "" : void 0,
39
- "data-disabled": disabled ? "" : void 0,
40
+ invalid: isInvalid,
41
+ disabled,
42
+ showError,
43
+ errorId,
40
44
  className: cn("flex flex-col gap-1.5", className),
41
45
  children: [
42
46
  /* @__PURE__ */ jsx(FieldLabelledControl, {
@@ -50,14 +54,10 @@ function Field({ label, description, error, invalid, required = false, disabled
50
54
  className: "text-body-sm text-muted",
51
55
  children: description
52
56
  }) : null,
53
- showError ? /* @__PURE__ */ jsxs("p", {
57
+ showError ? /* @__PURE__ */ jsx(FieldErrorMessage, {
54
58
  id: errorId,
55
- className: "flex items-start gap-1 text-body-sm text-danger",
56
- children: [/* @__PURE__ */ jsx(CircleExclamationPointIcon, {
57
- size: 16,
58
- className: "mt-0.5 shrink-0"
59
- }), /* @__PURE__ */ jsx("span", { children: error })]
60
- }) : null
59
+ children: error
60
+ }) : /* @__PURE__ */ jsx(FieldDefaultError, {})
61
61
  ]
62
62
  });
63
63
  }
@@ -0,0 +1,18 @@
1
+ "use client";
2
+
3
+ import { useFieldErrorContext } from "../hooks/useFieldErrorContext.js";
4
+ import { FieldErrorMessage } from "./FieldErrorMessage.js";
5
+ import { jsx } from "react/jsx-runtime";
6
+
7
+ // src/Field/components/FieldDefaultError.tsx
8
+ /** 앱 `error`가 없을 때 오류 자리. 안쪽 입력이 올린 기본 문구를 보인다. 서버 HTML에는 없다. */
9
+ function FieldDefaultError() {
10
+ const context = useFieldErrorContext();
11
+ if (!context?.defaultError) return null;
12
+ return /* @__PURE__ */ jsx(FieldErrorMessage, {
13
+ id: context.errorId,
14
+ children: context.defaultError
15
+ });
16
+ }
17
+
18
+ export { FieldDefaultError };
@@ -0,0 +1,16 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { CircleExclamationPointIcon } from "@tide-design/icons";
3
+
4
+ // src/Field/components/FieldErrorMessage.tsx
5
+ function FieldErrorMessage({ id, children }) {
6
+ return /* @__PURE__ */ jsxs("p", {
7
+ id,
8
+ className: "flex items-start gap-1 text-body-sm text-danger",
9
+ children: [/* @__PURE__ */ jsx(CircleExclamationPointIcon, {
10
+ size: 16,
11
+ className: "mt-0.5 shrink-0"
12
+ }), /* @__PURE__ */ jsx("span", { children })]
13
+ });
14
+ }
15
+
16
+ export { FieldErrorMessage };
@@ -1,11 +1,13 @@
1
1
  "use client";
2
2
 
3
3
  import { FieldContext } from "../../_internal/hooks/useFieldControl.js";
4
+ import { useFieldErrorContext } from "../hooks/useFieldErrorContext.js";
4
5
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
6
  import { useCallback, useMemo, useRef, useState } from "react";
6
7
 
7
8
  // src/Field/components/FieldLabelledControl.tsx
8
9
  const labelClass = "text-label-md text-default";
10
+ const noop = () => {};
9
11
  function FieldLabelledControl({ value, group, label, children }) {
10
12
  const [hasGroupInput, setHasGroupInput] = useState(false);
11
13
  const labelClickRef = useRef(void 0);
@@ -17,10 +19,20 @@ function FieldLabelledControl({ value, group, label, children }) {
17
19
  setHasGroupInput(false);
18
20
  };
19
21
  }, []);
22
+ const fieldError = useFieldErrorContext();
23
+ const describedBy = fieldError?.defaultError ? [value.describedBy, fieldError.errorId].filter(Boolean).join(" ") : value.describedBy;
24
+ const reportError = fieldError?.reportError ?? noop;
20
25
  const contextValue = useMemo(() => ({
21
26
  ...value,
22
- registerGroupInput
23
- }), [value, registerGroupInput]);
27
+ describedBy,
28
+ registerGroupInput,
29
+ reportError
30
+ }), [
31
+ value,
32
+ describedBy,
33
+ registerGroupInput,
34
+ reportError
35
+ ]);
24
36
  return /* @__PURE__ */ jsxs(Fragment, { children: [group || hasGroupInput ? /* @__PURE__ */ jsx("span", {
25
37
  id: value.labelId,
26
38
  onClick: hasGroupInput ? () => labelClickRef.current?.() : void 0,
@@ -0,0 +1,28 @@
1
+ "use client";
2
+
3
+ import { FieldErrorContext } from "../hooks/useFieldErrorContext.js";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { useMemo, useState } from "react";
6
+
7
+ // src/Field/components/FieldRoot.tsx
8
+ function FieldRoot({ invalid, disabled, showError, errorId, className, children, ...props }) {
9
+ const [reported, setReported] = useState(void 0);
10
+ const defaultError = showError ? void 0 : reported || void 0;
11
+ const contextValue = useMemo(() => ({
12
+ errorId,
13
+ defaultError,
14
+ reportError: setReported
15
+ }), [errorId, defaultError]);
16
+ return /* @__PURE__ */ jsx(FieldErrorContext, {
17
+ value: contextValue,
18
+ children: /* @__PURE__ */ jsx("div", {
19
+ ...props,
20
+ "data-invalid": invalid || defaultError ? "" : void 0,
21
+ "data-disabled": disabled ? "" : void 0,
22
+ className,
23
+ children
24
+ })
25
+ });
26
+ }
27
+
28
+ export { FieldRoot };
@@ -0,0 +1,11 @@
1
+ "use client";
2
+
3
+ import { createContext, use } from "react";
4
+
5
+ // src/Field/hooks/useFieldErrorContext.ts
6
+ const FieldErrorContext = createContext(null);
7
+ function useFieldErrorContext() {
8
+ return use(FieldErrorContext);
9
+ }
10
+
11
+ export { FieldErrorContext, useFieldErrorContext };
package/dist/index.d.ts CHANGED
@@ -80,7 +80,7 @@ import { Combobox, ComboboxOwnProps, ComboboxProps } from "./Combobox/Combobox.j
80
80
  import { ComboboxItem, ComboboxItemOwnProps, ComboboxItemProps } from "./Combobox/components/ComboboxItem.js";
81
81
  import { ComboboxSection, ComboboxSectionProps } from "./Combobox/components/ComboboxSection.js";
82
82
  import "./DatePicker/index.js";
83
- import { DatePicker, DatePickerOwnProps, DatePickerProps } from "./DatePicker/DatePicker.js";
83
+ import { DatePicker, DatePickerOwnProps, DatePickerProps, DateUnavailableInfo } from "./DatePicker/DatePicker.js";
84
84
  import "./Select/index.js";
85
85
  import { Select, SelectOwnProps, SelectProps } from "./Select/Select.js";
86
86
  import { SelectItem, SelectItemOwnProps, SelectItemProps } from "./Select/components/SelectItem.js";
@@ -123,4 +123,4 @@ import { TooltipTrigger, TooltipTriggerOwnProps, TooltipTriggerProps } from "./T
123
123
  import { TooltipPlacement } from "./Tooltip/types.js";
124
124
  import { TooltipContent, TooltipContentOwnProps, TooltipContentProps } from "./Tooltip/components/TooltipContent.js";
125
125
  import { Color, ColorFamilyName, ColorFamilyRegistry, FillVariant, Role, RoleRegistry, Size } from "./types.js";
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, 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tide-design/components",
3
- "version": "0.26.0",
3
+ "version": "0.28.0",
4
4
  "description": "Tide 디자인 시스템의 React Component",
5
5
  "keywords": [
6
6
  "accessibility",
@@ -38,8 +38,8 @@
38
38
  "@maskito/core": "5.6.1",
39
39
  "@maskito/kit": "5.6.1",
40
40
  "@maskito/react": "5.6.1",
41
- "@tide-design/foundation": "0.26.0",
42
- "@tide-design/icons": "0.26.0",
41
+ "@tide-design/foundation": "0.28.0",
42
+ "@tide-design/icons": "0.28.0",
43
43
  "clsx": "^2.1.1",
44
44
  "react-aria": "^3.53.1",
45
45
  "react-number-format": "^5.4.5",