@bigtablet/design-system 3.21.0 → 3.22.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/index.css +22 -1
- package/dist/index.d.ts +31 -4
- package/dist/index.js +457 -248
- package/dist/vanilla/bigtablet.min.js +12 -12
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -1971,6 +1971,11 @@ body:has(.bottom_nav) {
|
|
|
1971
1971
|
border-radius: 12px;
|
|
1972
1972
|
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
|
|
1973
1973
|
}
|
|
1974
|
+
.card:focus-visible,
|
|
1975
|
+
.card:focus-visible:hover {
|
|
1976
|
+
outline: none;
|
|
1977
|
+
box-shadow: var(--bt-focus-ring);
|
|
1978
|
+
}
|
|
1974
1979
|
.card_interactive {
|
|
1975
1980
|
cursor: pointer;
|
|
1976
1981
|
}
|
|
@@ -3406,6 +3411,9 @@ body:has(.bottom_nav) {
|
|
|
3406
3411
|
.table_size_lg .table_sort_button {
|
|
3407
3412
|
padding: 16px 20px;
|
|
3408
3413
|
}
|
|
3414
|
+
.table_sticky_header {
|
|
3415
|
+
max-height: 100%;
|
|
3416
|
+
}
|
|
3409
3417
|
.table_sticky_header .table_thead {
|
|
3410
3418
|
position: sticky;
|
|
3411
3419
|
top: 0;
|
|
@@ -3834,6 +3842,13 @@ body:has(.bottom_nav) {
|
|
|
3834
3842
|
background: var(--bt-color-bg-solid);
|
|
3835
3843
|
border-radius: 12px;
|
|
3836
3844
|
overflow: hidden;
|
|
3845
|
+
}
|
|
3846
|
+
.media_card:focus-visible,
|
|
3847
|
+
.media_card:focus-visible:hover {
|
|
3848
|
+
outline: none;
|
|
3849
|
+
box-shadow: var(--bt-focus-ring);
|
|
3850
|
+
}
|
|
3851
|
+
.media_card {
|
|
3837
3852
|
transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
|
|
3838
3853
|
}
|
|
3839
3854
|
.media_card_shadow_sm {
|
|
@@ -4665,9 +4680,15 @@ body:has(.bottom_nav) {
|
|
|
4665
4680
|
background: var(--bt-color-text-body);
|
|
4666
4681
|
}
|
|
4667
4682
|
.toast_item:hover .toast_progress,
|
|
4668
|
-
.toast_item:focus-
|
|
4683
|
+
.toast_item:has(:focus-visible) .toast_progress {
|
|
4669
4684
|
animation-play-state: paused;
|
|
4670
4685
|
}
|
|
4686
|
+
@supports not selector(:has(*)) {
|
|
4687
|
+
.toast_item:hover .toast_progress,
|
|
4688
|
+
.toast_item:focus-within .toast_progress {
|
|
4689
|
+
animation-play-state: paused;
|
|
4690
|
+
}
|
|
4691
|
+
}
|
|
4671
4692
|
@media (prefers-reduced-motion: reduce) {
|
|
4672
4693
|
.toast_progress {
|
|
4673
4694
|
animation-name: toast_progress_reduced;
|
package/dist/index.d.ts
CHANGED
|
@@ -68,7 +68,20 @@ type PolymorphicProps<T extends React$1.ElementType, Own> = Own & {
|
|
|
68
68
|
/** `as` 에 준 요소의 ref 타입 */
|
|
69
69
|
type PolymorphicRef<T extends React$1.ElementType> = React$1.ComponentPropsWithRef<T>["ref"];
|
|
70
70
|
|
|
71
|
-
|
|
71
|
+
interface FocusTrapOptions {
|
|
72
|
+
/**
|
|
73
|
+
* 초기 포커스를 **먼저 찾을** 영역. 여기 안에 포커스 가능한 컨트롤이 있으면 그 첫 번째로
|
|
74
|
+
* 간다. 없으면 기존 순서(skip 표시가 없는 첫 요소 → 첫 요소 → 컨테이너)로 떨어진다.
|
|
75
|
+
*
|
|
76
|
+
* 오버레이의 초기 포커스 규칙이 세 갈래("본문 첫 컨트롤 → 닫기 버튼 → 패널")라 표시
|
|
77
|
+
* 속성만으로는 표현되지 않는다. 닫기 버튼에 skip 을 붙여 본문을 우선하게 만들면, 본문이
|
|
78
|
+
* 없는 확인 모달에서는 그다음 후보가 **footer 의 첫 버튼**이 된다 - 그 자리가 destructive
|
|
79
|
+
* 액션인 패턴이 흔해서 열자마자 삭제에 포커스가 놓인다. 우선 영역을 직접 지정하면 그런
|
|
80
|
+
* 우회 없이 세 갈래가 그대로 표현된다.
|
|
81
|
+
*/
|
|
82
|
+
preferWithin?: React$1.RefObject<HTMLElement | null>;
|
|
83
|
+
}
|
|
84
|
+
declare function useFocusTrap(containerRef: React$1.RefObject<HTMLElement | null>, isActive: boolean, options?: FocusTrapOptions): void;
|
|
72
85
|
|
|
73
86
|
/**
|
|
74
87
|
* 사용자가 OS 수준에서 "동작 줄이기"를 켰는지 반환한다 (WCAG 2.3.3).
|
|
@@ -1526,15 +1539,24 @@ type TableProps<T extends object> = {
|
|
|
1526
1539
|
onSortChange?: (sort: TableSort | undefined) => void;
|
|
1527
1540
|
/** 전체 선택 체크박스 aria-label */
|
|
1528
1541
|
selectAllAriaLabel?: string;
|
|
1529
|
-
/** 개별 행 선택 체크박스 aria-label (기본값: (i) => `${i+1}번째 행 선택`) */
|
|
1542
|
+
/** 개별 행 선택 체크박스 aria-label. 인자는 `rowIndexOffset` 이 더해진 **전체 순번**이다 (기본값: (i) => `${i+1}번째 행 선택`) */
|
|
1530
1543
|
selectRowAriaLabel?: (index: number) => string;
|
|
1544
|
+
/**
|
|
1545
|
+
* 이 표의 첫 행이 전체에서 몇 번째인지 (0-based, 기본 0). 서버 페이지네이션처럼 한 쪽만
|
|
1546
|
+
* 받아 그릴 때 준다.
|
|
1547
|
+
*
|
|
1548
|
+
* 없으면 쪽마다 행 번호가 1 부터 다시 시작해, 3쪽의 체크박스도 1쪽과 **글자까지 같은**
|
|
1549
|
+
* "1번째 행 선택" 으로 읽힌다 - 스크린리더 사용자는 쪽이 넘어갔는지도, 지금 누른 것이 어느
|
|
1550
|
+
* 행인지도 이름만으로는 구분할 수 없다.
|
|
1551
|
+
*/
|
|
1552
|
+
rowIndexOffset?: number;
|
|
1531
1553
|
} & TableSelectionProps<T>;
|
|
1532
1554
|
/**
|
|
1533
1555
|
* 데이터 테이블을 렌더링한다. 로딩 중에는 헤더 유지, 바디에 스켈레톤 행을 표시한다.
|
|
1534
1556
|
* @param props 테이블 속성
|
|
1535
1557
|
* @returns 테이블 컴포넌트
|
|
1536
1558
|
*/
|
|
1537
|
-
declare const Table: <T extends object>({ columns, data, keyExtractor, emptyMessage: emptyMessageProp, isLoading, skeletonRows, size, hoverable, stickyHeader, ariaLabel, className, onRowClick, rowClickHint: rowClickHintProp, sort, onSortChange, selectAllAriaLabel: selectAllAriaLabelProp, selectRowAriaLabel: selectRowAriaLabelProp, selectable, rowKey, selectedKeys, onSelectionChange, }: TableProps<T>) => React$1.JSX.Element;
|
|
1559
|
+
declare const Table: <T extends object>({ columns, data, keyExtractor, emptyMessage: emptyMessageProp, isLoading, skeletonRows, size, hoverable, stickyHeader, ariaLabel, className, onRowClick, rowClickHint: rowClickHintProp, sort, onSortChange, selectAllAriaLabel: selectAllAriaLabelProp, selectRowAriaLabel: selectRowAriaLabelProp, rowIndexOffset, selectable, rowKey, selectedKeys, onSelectionChange, }: TableProps<T>) => React$1.JSX.Element;
|
|
1538
1560
|
|
|
1539
1561
|
/**
|
|
1540
1562
|
* 목록 화면이 데이터를 받는 모양.
|
|
@@ -1577,6 +1599,11 @@ interface DataViewPagination {
|
|
|
1577
1599
|
page: number;
|
|
1578
1600
|
/** 전체 페이지 수 */
|
|
1579
1601
|
totalPages: number;
|
|
1602
|
+
/**
|
|
1603
|
+
* 한 쪽에 몇 행인지. 주면 행 선택 체크박스의 기본 라벨이 쪽마다 1 부터 다시 시작하지 않고
|
|
1604
|
+
* 전체 순번을 쓴다 - 없으면 3쪽의 체크박스도 1쪽과 같은 "1번째 행 선택" 으로 읽힌다.
|
|
1605
|
+
*/
|
|
1606
|
+
pageSize?: number;
|
|
1580
1607
|
/** 페이지 변경 콜백 */
|
|
1581
1608
|
onPageChange: (page: number) => void;
|
|
1582
1609
|
}
|
|
@@ -3547,4 +3574,4 @@ type StackProps<T extends React$1.ElementType = "div"> = PolymorphicProps<T, Sta
|
|
|
3547
3574
|
*/
|
|
3548
3575
|
declare const Stack: <T extends React$1.ElementType = "div">({ direction, gap, align, justify, wrap, as, ref, className, children, style, ...props }: StackProps<T>) => React$1.JSX.Element;
|
|
3549
3576
|
|
|
3550
|
-
export { Accordion, type AccordionItem, type AccordionProps, type AlertActionsAlign, type AlertOptions, AlertProvider, type AlertVariant, AppShell, type AppShellProps, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeAppearance, type BadgeProps, type BadgeShape, type BadgeSize, type BadgeVariant, BottomNav, BottomNavItem, type BottomNavItemProps, type BottomNavProps, BottomNavSpacer, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonAsAnchor, type ButtonAsButton, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardFooterAlign, type CardProps, type CardVariant, Checkbox, type CheckboxProps, Chip, type ChipProps, type ChipSize, type ChipTone, type ChipType, Combobox, type ComboboxOption, type ComboboxProps, type ComboboxSize, Container, type ContainerProps, type ContainerSize, type CropImageSize, type CropOffset, type CropRect, DataView, type DataViewPagination, type DataViewProps, type DataViewQuery, type DataViewSelectionAction, type DataViewToolbar, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, DescriptionList, type DescriptionListItem, type DescriptionListLayout, type DescriptionListProps, Divider, type DividerProps, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, type DropdownMultipleProps, type DropdownOption, type DropdownProps, type DropdownSingleProps, type DropdownSize, type DropdownVariant, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, type ErrorStateVariant, Field, type FieldControl, type FieldProps, FileInput, type FileInputProps, type FileInputVariant, Form, type FormActionsProps, type FormProps, Grid, type GridCols, type GridGap, type GridProps, Hero, type HeroAction, type HeroAlign, type HeroHeight, type HeroOverlay, type HeroProps, Icon, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, type IconProps, ImageCropper, type ImageCropperHandle, type ImageCropperProps, type ImeStrategy, LinearProgress, type LinearProgressProps, ListItem, type ListItemProps, type ListboxItem, type LocaleKey, type LocaleMessages, type LocaleName, LocaleProvider, type LocaleProviderProps, type LocaleText, MediaCard, type MediaCardImage, type MediaCardImagePosition, type MediaCardProps, type MediaCardShadow, Menu, type MenuItem, type MenuProps, Modal, type ModalFooterAlign, type ModalProps, NavBar, type NavBarLayout, type NavBarLocaleConfig, type NavBarLocaleOption, type NavBarProps, type NavBarVariant, NavLink, type NavLinkProps, OtpInput, type OtpInputProps, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, type PolymorphicProps, type PolymorphicRef, Popover, type PopoverPlacement, type PopoverProps, Prose, type ProseProps, type ProseSize, Radio, RadioGroup, type RadioGroupContextValue, type RadioGroupOrientation, type RadioGroupProps, type RadioGroupSize, type RadioProps, type ResolvedTheme, Section, type SectionBg, type SectionProps, type SectionSpacing, Sidebar, SidebarItem, type SidebarItemProps, type SidebarMode, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonProps, type SkeletonVariant, Spinner, type SpinnerProps, Stack, type StackAlign, type StackDirection, type StackGap, type StackJustify, type StackProps, type StackWrap, Stat, type StatDeltaTone, type StatProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, type TableColumn, type TableProps, type TableSize, type TableSort, type TableSortDirection, Tabs, type TabsProps, type TabsSize, type TabsVariant, TagInput, type TagInputProps, type TagInputSize, TextField, type TextFieldProps, type TextFieldSize, type TextFieldVariant, Textarea, type TextareaProps, type TextareaResize, type TextareaSize, type ThemeMode, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimelineProps, type TimelineStatus, ToastProvider, type ToastProviderProps, type ToastVariant, Toggle, type ToggleProps, Tooltip, type TooltipPlacement, type TooltipProps, TopLoading, type TopLoadingProps, type UseListboxPopupArgs, type UseListboxPopupResult, a11y, baseBorderWidth, baseColors, baseTypography, borderWidth, breakpoints, catalogs, cn, colors, elevation, en, iconSize, ko, motion, opacity, radius, skeleton, spacing, typography, useAlert, useFieldControl, useFocusTrap, useListboxPopup, useLocaleName, useLocaleText, useRadioGroupContext, useReducedMotion, useSpringHover, useSpringPresence, useTheme, useToast, zIndex };
|
|
3577
|
+
export { Accordion, type AccordionItem, type AccordionProps, type AlertActionsAlign, type AlertOptions, AlertProvider, type AlertVariant, AppShell, type AppShellProps, Avatar, type AvatarProps, type AvatarShape, type AvatarSize, Badge, type BadgeAppearance, type BadgeProps, type BadgeShape, type BadgeSize, type BadgeVariant, BottomNav, BottomNavItem, type BottomNavItemProps, type BottomNavProps, BottomNavSpacer, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, type ButtonAsAnchor, type ButtonAsButton, type ButtonProps, type ButtonSize, type ButtonVariant, Card, type CardFooterAlign, type CardProps, type CardVariant, Checkbox, type CheckboxProps, Chip, type ChipProps, type ChipSize, type ChipTone, type ChipType, Combobox, type ComboboxOption, type ComboboxProps, type ComboboxSize, Container, type ContainerProps, type ContainerSize, type CropImageSize, type CropOffset, type CropRect, DataView, type DataViewPagination, type DataViewProps, type DataViewQuery, type DataViewSelectionAction, type DataViewToolbar, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, DescriptionList, type DescriptionListItem, type DescriptionListLayout, type DescriptionListProps, Divider, type DividerProps, Drawer, type DrawerPlacement, type DrawerProps, Dropdown, type DropdownMultipleProps, type DropdownOption, type DropdownProps, type DropdownSingleProps, type DropdownSize, type DropdownVariant, EmptyState, type EmptyStateProps, ErrorState, type ErrorStateProps, type ErrorStateVariant, Field, type FieldControl, type FieldProps, FileInput, type FileInputProps, type FileInputVariant, type FocusTrapOptions, Form, type FormActionsProps, type FormProps, Grid, type GridCols, type GridGap, type GridProps, Hero, type HeroAction, type HeroAlign, type HeroHeight, type HeroOverlay, type HeroProps, Icon, IconButton, type IconButtonProps, type IconButtonSize, type IconButtonVariant, type IconProps, ImageCropper, type ImageCropperHandle, type ImageCropperProps, type ImeStrategy, LinearProgress, type LinearProgressProps, ListItem, type ListItemProps, type ListboxItem, type LocaleKey, type LocaleMessages, type LocaleName, LocaleProvider, type LocaleProviderProps, type LocaleText, MediaCard, type MediaCardImage, type MediaCardImagePosition, type MediaCardProps, type MediaCardShadow, Menu, type MenuItem, type MenuProps, Modal, type ModalFooterAlign, type ModalProps, NavBar, type NavBarLayout, type NavBarLocaleConfig, type NavBarLocaleOption, type NavBarProps, type NavBarVariant, NavLink, type NavLinkProps, OtpInput, type OtpInputProps, PageHeader, type PageHeaderProps, Pagination, type PaginationProps, type PolymorphicProps, type PolymorphicRef, Popover, type PopoverPlacement, type PopoverProps, Prose, type ProseProps, type ProseSize, Radio, RadioGroup, type RadioGroupContextValue, type RadioGroupOrientation, type RadioGroupProps, type RadioGroupSize, type RadioProps, type ResolvedTheme, Section, type SectionBg, type SectionProps, type SectionSpacing, Sidebar, SidebarItem, type SidebarItemProps, type SidebarMode, type SidebarProps, SidebarSection, type SidebarSectionProps, Skeleton, type SkeletonProps, type SkeletonVariant, Spinner, type SpinnerProps, Stack, type StackAlign, type StackDirection, type StackGap, type StackJustify, type StackProps, type StackWrap, Stat, type StatDeltaTone, type StatProps, Tab, TabList, type TabListProps, TabPanel, type TabPanelProps, type TabProps, Table, type TableColumn, type TableProps, type TableSize, type TableSort, type TableSortDirection, Tabs, type TabsProps, type TabsSize, type TabsVariant, TagInput, type TagInputProps, type TagInputSize, TextField, type TextFieldProps, type TextFieldSize, type TextFieldVariant, Textarea, type TextareaProps, type TextareaResize, type TextareaSize, type ThemeMode, ThemeProvider, type ThemeProviderProps, TimePicker, type TimePickerProps, Timeline, type TimelineItem, type TimelineProps, type TimelineStatus, ToastProvider, type ToastProviderProps, type ToastVariant, Toggle, type ToggleProps, Tooltip, type TooltipPlacement, type TooltipProps, TopLoading, type TopLoadingProps, type UseListboxPopupArgs, type UseListboxPopupResult, a11y, baseBorderWidth, baseColors, baseTypography, borderWidth, breakpoints, catalogs, cn, colors, elevation, en, iconSize, ko, motion, opacity, radius, skeleton, spacing, typography, useAlert, useFieldControl, useFocusTrap, useListboxPopup, useLocaleName, useLocaleText, useRadioGroupContext, useReducedMotion, useSpringHover, useSpringPresence, useTheme, useToast, zIndex };
|