@lucian-seo/lucian-ui 0.1.1
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/LICENSE +21 -0
- package/README.md +227 -0
- package/dist/lib/Input-Bv7L1_wj.js +90 -0
- package/dist/lib/Input-Bv7L1_wj.js.map +1 -0
- package/dist/lib/Menu-B3G64GV4.js +321 -0
- package/dist/lib/Menu-B3G64GV4.js.map +1 -0
- package/dist/lib/Switch-BkMnC02l.js +999 -0
- package/dist/lib/Switch-BkMnC02l.js.map +1 -0
- package/dist/lib/Tag-Z8PjnJFt.js +60 -0
- package/dist/lib/Tag-Z8PjnJFt.js.map +1 -0
- package/dist/lib/TagInput-BaGz-QKU.js +372 -0
- package/dist/lib/TagInput-BaGz-QKU.js.map +1 -0
- package/dist/lib/Text-D7hoYpuZ.js +26 -0
- package/dist/lib/Text-D7hoYpuZ.js.map +1 -0
- package/dist/lib/ToggleButton-D6oEjMeF.js +238 -0
- package/dist/lib/ToggleButton-D6oEjMeF.js.map +1 -0
- package/dist/lib/Toolbar-DiP1iR_t.js +3088 -0
- package/dist/lib/Toolbar-DiP1iR_t.js.map +1 -0
- package/dist/lib/Tooltip-BJSUlXS2.js +117 -0
- package/dist/lib/Tooltip-BJSUlXS2.js.map +1 -0
- package/dist/lib/VisuallyHidden-DcE0EFpo.js +194 -0
- package/dist/lib/VisuallyHidden-DcE0EFpo.js.map +1 -0
- package/dist/lib/VoiceControlBar-CWDLR71w.js +3447 -0
- package/dist/lib/VoiceControlBar-CWDLR71w.js.map +1 -0
- package/dist/lib/Waveform-BIE2Ztc8.js +318 -0
- package/dist/lib/Waveform-BIE2Ztc8.js.map +1 -0
- package/dist/lib/components/common/AspectRatio/AspectRatio.d.ts +26 -0
- package/dist/lib/components/common/AspectRatio/index.d.ts +2 -0
- package/dist/lib/components/common/Avatar/Avatar.d.ts +58 -0
- package/dist/lib/components/common/Avatar/index.d.ts +2 -0
- package/dist/lib/components/common/Badge/Badge.d.ts +36 -0
- package/dist/lib/components/common/Badge/index.d.ts +2 -0
- package/dist/lib/components/common/Blockquote/Blockquote.d.ts +40 -0
- package/dist/lib/components/common/Blockquote/index.d.ts +2 -0
- package/dist/lib/components/common/Button/Button.d.ts +38 -0
- package/dist/lib/components/common/Button/index.d.ts +2 -0
- package/dist/lib/components/common/CalibratedPulse/CalibratedPulse.d.ts +63 -0
- package/dist/lib/components/common/CalibratedPulse/index.d.ts +2 -0
- package/dist/lib/components/common/Center/Center.d.ts +23 -0
- package/dist/lib/components/common/Center/index.d.ts +2 -0
- package/dist/lib/components/common/Checkbox/Checkbox.d.ts +35 -0
- package/dist/lib/components/common/Checkbox/index.d.ts +2 -0
- package/dist/lib/components/common/Code/Code.d.ts +37 -0
- package/dist/lib/components/common/Code/index.d.ts +2 -0
- package/dist/lib/components/common/Collapse/Collapse.d.ts +29 -0
- package/dist/lib/components/common/Collapse/index.d.ts +2 -0
- package/dist/lib/components/common/Container/Container.d.ts +28 -0
- package/dist/lib/components/common/Container/index.d.ts +2 -0
- package/dist/lib/components/common/Divider/Divider.d.ts +28 -0
- package/dist/lib/components/common/Divider/index.d.ts +2 -0
- package/dist/lib/components/common/FileInput/FileInput.d.ts +52 -0
- package/dist/lib/components/common/FileInput/index.d.ts +2 -0
- package/dist/lib/components/common/Flex/Flex.d.ts +35 -0
- package/dist/lib/components/common/Flex/index.d.ts +2 -0
- package/dist/lib/components/common/Glass/Glass.d.ts +35 -0
- package/dist/lib/components/common/Glass/index.d.ts +2 -0
- package/dist/lib/components/common/Glass/refraction.d.ts +24 -0
- package/dist/lib/components/common/Glass/rim.d.ts +37 -0
- package/dist/lib/components/common/Grid/Grid.d.ts +28 -0
- package/dist/lib/components/common/Grid/GridItem.d.ts +31 -0
- package/dist/lib/components/common/Grid/index.d.ts +4 -0
- package/dist/lib/components/common/Group/Group.d.ts +38 -0
- package/dist/lib/components/common/Group/index.d.ts +2 -0
- package/dist/lib/components/common/Highlight/Highlight.d.ts +63 -0
- package/dist/lib/components/common/Highlight/index.d.ts +2 -0
- package/dist/lib/components/common/Icon/Icon.d.ts +39 -0
- package/dist/lib/components/common/Icon/index.d.ts +2 -0
- package/dist/lib/components/common/IconButton/IconButton.d.ts +34 -0
- package/dist/lib/components/common/IconButton/index.d.ts +2 -0
- package/dist/lib/components/common/Indicator/Indicator.d.ts +51 -0
- package/dist/lib/components/common/Indicator/index.d.ts +2 -0
- package/dist/lib/components/common/Input/Input.d.ts +84 -0
- package/dist/lib/components/common/Input/index.d.ts +2 -0
- package/dist/lib/components/common/Kbd/Kbd.d.ts +34 -0
- package/dist/lib/components/common/Kbd/index.d.ts +2 -0
- package/dist/lib/components/common/Link/Link.d.ts +21 -0
- package/dist/lib/components/common/Link/index.d.ts +2 -0
- package/dist/lib/components/common/Mark/Mark.d.ts +38 -0
- package/dist/lib/components/common/Mark/index.d.ts +2 -0
- package/dist/lib/components/common/MultiSelect/MultiSelect.d.ts +54 -0
- package/dist/lib/components/common/MultiSelect/index.d.ts +2 -0
- package/dist/lib/components/common/PinInput/PinInput.d.ts +49 -0
- package/dist/lib/components/common/PinInput/index.d.ts +2 -0
- package/dist/lib/components/common/Progress/Progress.d.ts +30 -0
- package/dist/lib/components/common/Progress/index.d.ts +2 -0
- package/dist/lib/components/common/Radio/Radio.d.ts +45 -0
- package/dist/lib/components/common/Radio/index.d.ts +2 -0
- package/dist/lib/components/common/RingProgress/RingProgress.d.ts +40 -0
- package/dist/lib/components/common/RingProgress/index.d.ts +2 -0
- package/dist/lib/components/common/ScrollArea/ScrollArea.d.ts +33 -0
- package/dist/lib/components/common/ScrollArea/index.d.ts +2 -0
- package/dist/lib/components/common/Select/Select.d.ts +50 -0
- package/dist/lib/components/common/Select/index.d.ts +2 -0
- package/dist/lib/components/common/Select/listbox.d.ts +68 -0
- package/dist/lib/components/common/SimpleGrid/SimpleGrid.d.ts +30 -0
- package/dist/lib/components/common/SimpleGrid/index.d.ts +2 -0
- package/dist/lib/components/common/Skeleton/Skeleton.d.ts +23 -0
- package/dist/lib/components/common/Skeleton/index.d.ts +2 -0
- package/dist/lib/components/common/Slider/Slider.d.ts +55 -0
- package/dist/lib/components/common/Slider/index.d.ts +2 -0
- package/dist/lib/components/common/Space/Space.d.ts +29 -0
- package/dist/lib/components/common/Space/index.d.ts +2 -0
- package/dist/lib/components/common/Spinner/Spinner.d.ts +25 -0
- package/dist/lib/components/common/Spinner/index.d.ts +2 -0
- package/dist/lib/components/common/Stack/Stack.d.ts +41 -0
- package/dist/lib/components/common/Stack/index.d.ts +2 -0
- package/dist/lib/components/common/Switch/Switch.d.ts +28 -0
- package/dist/lib/components/common/Switch/index.d.ts +2 -0
- package/dist/lib/components/common/Text/Text.d.ts +57 -0
- package/dist/lib/components/common/Text/index.d.ts +2 -0
- package/dist/lib/components/common/Textarea/Textarea.d.ts +29 -0
- package/dist/lib/components/common/Textarea/index.d.ts +2 -0
- package/dist/lib/components/common/Tooltip/Tooltip.d.ts +33 -0
- package/dist/lib/components/common/Tooltip/index.d.ts +2 -0
- package/dist/lib/components/common/VisuallyHidden/VisuallyHidden.d.ts +20 -0
- package/dist/lib/components/common/VisuallyHidden/index.d.ts +2 -0
- package/dist/lib/components/common/Waveform/Waveform.d.ts +66 -0
- package/dist/lib/components/common/Waveform/index.d.ts +2 -0
- package/dist/lib/components/common/index.d.ts +44 -0
- package/dist/lib/components/common/index.js +7 -0
- package/dist/lib/components/composed/AppShell/AppShell.d.ts +95 -0
- package/dist/lib/components/composed/AppShell/index.d.ts +2 -0
- package/dist/lib/components/composed/Breadcrumb/Breadcrumb.d.ts +46 -0
- package/dist/lib/components/composed/Breadcrumb/index.d.ts +2 -0
- package/dist/lib/components/composed/BulkActionBar/BulkActionBar.d.ts +48 -0
- package/dist/lib/components/composed/BulkActionBar/index.d.ts +2 -0
- package/dist/lib/components/composed/Callout/Callout.d.ts +43 -0
- package/dist/lib/components/composed/Callout/index.d.ts +2 -0
- package/dist/lib/components/composed/Card/Card.d.ts +80 -0
- package/dist/lib/components/composed/Card/index.d.ts +2 -0
- package/dist/lib/components/composed/Carousel/Carousel.d.ts +52 -0
- package/dist/lib/components/composed/Carousel/index.d.ts +2 -0
- package/dist/lib/components/composed/Combobox/Combobox.d.ts +50 -0
- package/dist/lib/components/composed/Combobox/index.d.ts +2 -0
- package/dist/lib/components/composed/CommandPalette/CommandPalette.d.ts +51 -0
- package/dist/lib/components/composed/CommandPalette/index.d.ts +2 -0
- package/dist/lib/components/composed/DatePicker/Calendar.d.ts +49 -0
- package/dist/lib/components/composed/DatePicker/DatePicker.d.ts +36 -0
- package/dist/lib/components/composed/DatePicker/dates.d.ts +50 -0
- package/dist/lib/components/composed/DatePicker/index.d.ts +3 -0
- package/dist/lib/components/composed/DateRangePicker/DateRangePicker.d.ts +40 -0
- package/dist/lib/components/composed/DateRangePicker/index.d.ts +2 -0
- package/dist/lib/components/composed/Disclosure/Disclosure.d.ts +44 -0
- package/dist/lib/components/composed/Disclosure/index.d.ts +2 -0
- package/dist/lib/components/composed/Drawer/Drawer.d.ts +39 -0
- package/dist/lib/components/composed/Drawer/index.d.ts +2 -0
- package/dist/lib/components/composed/EmptyState/EmptyState.d.ts +43 -0
- package/dist/lib/components/composed/EmptyState/index.d.ts +2 -0
- package/dist/lib/components/composed/Field/Field.d.ts +63 -0
- package/dist/lib/components/composed/Field/index.d.ts +2 -0
- package/dist/lib/components/composed/FilterBar/FilterBar.d.ts +58 -0
- package/dist/lib/components/composed/FilterBar/index.d.ts +2 -0
- package/dist/lib/components/composed/FormSection/FormSection.d.ts +35 -0
- package/dist/lib/components/composed/FormSection/index.d.ts +2 -0
- package/dist/lib/components/composed/ListRow/ListRow.d.ts +83 -0
- package/dist/lib/components/composed/ListRow/index.d.ts +2 -0
- package/dist/lib/components/composed/Menu/Menu.d.ts +102 -0
- package/dist/lib/components/composed/Menu/index.d.ts +2 -0
- package/dist/lib/components/composed/Menu/scope.d.ts +15 -0
- package/dist/lib/components/composed/Modal/Modal.d.ts +65 -0
- package/dist/lib/components/composed/Modal/index.d.ts +2 -0
- package/dist/lib/components/composed/PageHeader/PageHeader.d.ts +46 -0
- package/dist/lib/components/composed/PageHeader/index.d.ts +2 -0
- package/dist/lib/components/composed/Pagination/Pagination.d.ts +48 -0
- package/dist/lib/components/composed/Pagination/index.d.ts +2 -0
- package/dist/lib/components/composed/Popover/Popover.d.ts +47 -0
- package/dist/lib/components/composed/Popover/index.d.ts +2 -0
- package/dist/lib/components/composed/PreferenceRow/PreferenceRow.d.ts +43 -0
- package/dist/lib/components/composed/PreferenceRow/index.d.ts +2 -0
- package/dist/lib/components/composed/Sheet/Sheet.d.ts +53 -0
- package/dist/lib/components/composed/Sheet/index.d.ts +2 -0
- package/dist/lib/components/composed/SidePanel/SidePanel.d.ts +34 -0
- package/dist/lib/components/composed/SidePanel/index.d.ts +2 -0
- package/dist/lib/components/composed/SidebarNav/SidebarNav.d.ts +85 -0
- package/dist/lib/components/composed/SidebarNav/index.d.ts +2 -0
- package/dist/lib/components/composed/Spotlight/Spotlight.d.ts +57 -0
- package/dist/lib/components/composed/Spotlight/index.d.ts +2 -0
- package/dist/lib/components/composed/Stepper/Stepper.d.ts +36 -0
- package/dist/lib/components/composed/Stepper/index.d.ts +2 -0
- package/dist/lib/components/composed/Table/Table.d.ts +142 -0
- package/dist/lib/components/composed/Table/index.d.ts +2 -0
- package/dist/lib/components/composed/Tabs/Tabs.d.ts +48 -0
- package/dist/lib/components/composed/Tabs/index.d.ts +2 -0
- package/dist/lib/components/composed/TimeInput/TimeInput.d.ts +41 -0
- package/dist/lib/components/composed/TimeInput/index.d.ts +3 -0
- package/dist/lib/components/composed/TimeInput/times.d.ts +47 -0
- package/dist/lib/components/composed/Toast/Toast.d.ts +37 -0
- package/dist/lib/components/composed/Toast/index.d.ts +2 -0
- package/dist/lib/components/composed/Toolbar/Toolbar.d.ts +45 -0
- package/dist/lib/components/composed/Toolbar/index.d.ts +2 -0
- package/dist/lib/components/composed/index.d.ts +33 -0
- package/dist/lib/components/composed/index.js +3 -0
- package/dist/lib/components/derived/AvatarGroup/AvatarGroup.d.ts +52 -0
- package/dist/lib/components/derived/AvatarGroup/index.d.ts +2 -0
- package/dist/lib/components/derived/ButtonGroup/ButtonGroup.d.ts +33 -0
- package/dist/lib/components/derived/ButtonGroup/index.d.ts +2 -0
- package/dist/lib/components/derived/ChoiceCard/ChoiceCard.d.ts +43 -0
- package/dist/lib/components/derived/ChoiceCard/index.d.ts +2 -0
- package/dist/lib/components/derived/InputGroup/InputGroup.d.ts +23 -0
- package/dist/lib/components/derived/InputGroup/index.d.ts +2 -0
- package/dist/lib/components/derived/MorphIcon/MorphIcon.d.ts +71 -0
- package/dist/lib/components/derived/MorphIcon/index.d.ts +2 -0
- package/dist/lib/components/derived/NumberFlow/NumberFlow.d.ts +47 -0
- package/dist/lib/components/derived/NumberFlow/index.d.ts +2 -0
- package/dist/lib/components/derived/NumberInput/NumberInput.d.ts +54 -0
- package/dist/lib/components/derived/NumberInput/index.d.ts +2 -0
- package/dist/lib/components/derived/PasswordInput/PasswordInput.d.ts +53 -0
- package/dist/lib/components/derived/PasswordInput/index.d.ts +2 -0
- package/dist/lib/components/derived/SearchInput/SearchInput.d.ts +33 -0
- package/dist/lib/components/derived/SearchInput/index.d.ts +2 -0
- package/dist/lib/components/derived/SegmentedControl/SegmentedControl.d.ts +44 -0
- package/dist/lib/components/derived/SegmentedControl/index.d.ts +2 -0
- package/dist/lib/components/derived/SplitButton/SplitButton.d.ts +42 -0
- package/dist/lib/components/derived/SplitButton/index.d.ts +2 -0
- package/dist/lib/components/derived/StatusDot/StatusDot.d.ts +31 -0
- package/dist/lib/components/derived/StatusDot/index.d.ts +2 -0
- package/dist/lib/components/derived/Tag/Tag.d.ts +47 -0
- package/dist/lib/components/derived/Tag/index.d.ts +2 -0
- package/dist/lib/components/derived/TagInput/TagInput.d.ts +28 -0
- package/dist/lib/components/derived/TagInput/index.d.ts +2 -0
- package/dist/lib/components/derived/TextCycle/TextCycle.d.ts +40 -0
- package/dist/lib/components/derived/TextCycle/index.d.ts +2 -0
- package/dist/lib/components/derived/ToggleButton/ToggleButton.d.ts +43 -0
- package/dist/lib/components/derived/ToggleButton/index.d.ts +2 -0
- package/dist/lib/components/derived/index.d.ts +16 -0
- package/dist/lib/components/derived/index.js +4 -0
- package/dist/lib/components/extended/ActivityList/ActivityList.d.ts +38 -0
- package/dist/lib/components/extended/ActivityList/index.d.ts +2 -0
- package/dist/lib/components/extended/AddressForm/AddressForm.d.ts +71 -0
- package/dist/lib/components/extended/AddressForm/index.d.ts +2 -0
- package/dist/lib/components/extended/ApprovalGate/ApprovalGate.d.ts +60 -0
- package/dist/lib/components/extended/ApprovalGate/index.d.ts +2 -0
- package/dist/lib/components/extended/BackgroundProgress/BackgroundProgress.d.ts +63 -0
- package/dist/lib/components/extended/BackgroundProgress/index.d.ts +2 -0
- package/dist/lib/components/extended/Citation/Citation.d.ts +61 -0
- package/dist/lib/components/extended/Citation/index.d.ts +2 -0
- package/dist/lib/components/extended/CommentThread/CommentThread.d.ts +61 -0
- package/dist/lib/components/extended/CommentThread/index.d.ts +2 -0
- package/dist/lib/components/extended/Composer/Composer.d.ts +57 -0
- package/dist/lib/components/extended/Composer/index.d.ts +2 -0
- package/dist/lib/components/extended/CouponField/CouponField.d.ts +59 -0
- package/dist/lib/components/extended/CouponField/index.d.ts +2 -0
- package/dist/lib/components/extended/DataGrid/DataGrid.d.ts +161 -0
- package/dist/lib/components/extended/DataGrid/DataGrid.state.d.ts +93 -0
- package/dist/lib/components/extended/DataGrid/index.d.ts +2 -0
- package/dist/lib/components/extended/Dropzone/Dropzone.d.ts +83 -0
- package/dist/lib/components/extended/Dropzone/index.d.ts +2 -0
- package/dist/lib/components/extended/FeedbackControl/FeedbackControl.d.ts +47 -0
- package/dist/lib/components/extended/FeedbackControl/index.d.ts +2 -0
- package/dist/lib/components/extended/FilterBuilder/FilterBuilder.d.ts +67 -0
- package/dist/lib/components/extended/FilterBuilder/index.d.ts +2 -0
- package/dist/lib/components/extended/FollowUpList/FollowUpList.d.ts +34 -0
- package/dist/lib/components/extended/FollowUpList/index.d.ts +2 -0
- package/dist/lib/components/extended/KanbanColumn/KanbanColumn.d.ts +62 -0
- package/dist/lib/components/extended/KanbanColumn/index.d.ts +2 -0
- package/dist/lib/components/extended/Message/Message.d.ts +43 -0
- package/dist/lib/components/extended/Message/index.d.ts +2 -0
- package/dist/lib/components/extended/MessageList/MessageList.d.ts +66 -0
- package/dist/lib/components/extended/MessageList/index.d.ts +2 -0
- package/dist/lib/components/extended/MetricCard/MetricCard.d.ts +60 -0
- package/dist/lib/components/extended/MetricCard/index.d.ts +2 -0
- package/dist/lib/components/extended/OrderSummary/OrderSummary.d.ts +70 -0
- package/dist/lib/components/extended/OrderSummary/index.d.ts +2 -0
- package/dist/lib/components/extended/PaymentMethodSelector/PaymentMethodSelector.d.ts +65 -0
- package/dist/lib/components/extended/PaymentMethodSelector/index.d.ts +2 -0
- package/dist/lib/components/extended/PresenceBar/PresenceBar.d.ts +49 -0
- package/dist/lib/components/extended/PresenceBar/index.d.ts +2 -0
- package/dist/lib/components/extended/PriceDisplay/PriceDisplay.d.ts +53 -0
- package/dist/lib/components/extended/PriceDisplay/index.d.ts +2 -0
- package/dist/lib/components/extended/ProductCard/ProductCard.d.ts +58 -0
- package/dist/lib/components/extended/ProductCard/index.d.ts +2 -0
- package/dist/lib/components/extended/QuantityStepper/QuantityStepper.d.ts +41 -0
- package/dist/lib/components/extended/QuantityStepper/index.d.ts +2 -0
- package/dist/lib/components/extended/ReasoningDisclosure/ReasoningDisclosure.d.ts +33 -0
- package/dist/lib/components/extended/ReasoningDisclosure/index.d.ts +2 -0
- package/dist/lib/components/extended/RecognitionFallback/RecognitionFallback.d.ts +57 -0
- package/dist/lib/components/extended/RecognitionFallback/index.d.ts +2 -0
- package/dist/lib/components/extended/RunStatusCard/RunStatusCard.d.ts +51 -0
- package/dist/lib/components/extended/RunStatusCard/index.d.ts +2 -0
- package/dist/lib/components/extended/SavedViewTabs/SavedViewTabs.d.ts +49 -0
- package/dist/lib/components/extended/SavedViewTabs/index.d.ts +2 -0
- package/dist/lib/components/extended/SourceChip/SourceChip.d.ts +37 -0
- package/dist/lib/components/extended/SourceChip/index.d.ts +2 -0
- package/dist/lib/components/extended/SourceChipRow/SourceChipRow.d.ts +54 -0
- package/dist/lib/components/extended/SourceChipRow/index.d.ts +2 -0
- package/dist/lib/components/extended/SourcePanel/SourcePanel.d.ts +46 -0
- package/dist/lib/components/extended/SourcePanel/index.d.ts +2 -0
- package/dist/lib/components/extended/StreamingText/StreamingText.d.ts +30 -0
- package/dist/lib/components/extended/StreamingText/index.d.ts +2 -0
- package/dist/lib/components/extended/ToolCallCard/ToolCallCard.d.ts +52 -0
- package/dist/lib/components/extended/ToolCallCard/index.d.ts +2 -0
- package/dist/lib/components/extended/TranscriptSync/TranscriptSync.d.ts +58 -0
- package/dist/lib/components/extended/TranscriptSync/index.d.ts +2 -0
- package/dist/lib/components/extended/TrustBlock/TrustBlock.d.ts +37 -0
- package/dist/lib/components/extended/TrustBlock/index.d.ts +2 -0
- package/dist/lib/components/extended/VoiceControlBar/VoiceControlBar.d.ts +77 -0
- package/dist/lib/components/extended/VoiceControlBar/index.d.ts +2 -0
- package/dist/lib/components/extended/index.d.ts +35 -0
- package/dist/lib/components/extended/index.js +2 -0
- package/dist/lib/fonts/pretendard/LICENSE.txt +94 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.0.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.1.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.10.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.11.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.12.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.13.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.14.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.15.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.16.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.17.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.18.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.19.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.2.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.20.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.21.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.22.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.23.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.24.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.25.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.26.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.27.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.28.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.29.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.3.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.30.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.31.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.32.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.33.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.34.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.35.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.36.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.37.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.38.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.39.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.4.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.40.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.41.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.42.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.43.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.44.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.45.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.46.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.47.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.48.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.49.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.5.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.50.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.51.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.52.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.53.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.54.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.55.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.56.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.57.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.58.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.59.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.6.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.60.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.61.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.62.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.63.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.64.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.65.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.66.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.67.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.68.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.69.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.7.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.70.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.71.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.72.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.73.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.74.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.75.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.76.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.77.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.78.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.79.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.8.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.80.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.81.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.82.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.83.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.84.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.85.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.86.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.87.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.88.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.89.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.9.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.90.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.91.woff2 +0 -0
- package/dist/lib/foundation/focus.d.ts +10 -0
- package/dist/lib/foundation/josa.d.ts +4 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/index.js +13 -0
- package/dist/lib/pretendard.css +940 -0
- package/dist/lib/reset.css +50 -0
- package/dist/lib/styles.css +3 -0
- package/dist/lib/tokens.css +1118 -0
- package/package.json +91 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./ScrollArea.css";
|
|
3
|
+
export type ScrollAreaAxis = "block" | "inline" | "both";
|
|
4
|
+
/** Enumerated, not a length. A number would have to be written into a style attribute. */
|
|
5
|
+
export type ScrollAreaMaxHeight = "sm" | "md" | "lg" | "none";
|
|
6
|
+
export type ScrollAreaProps = {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
axis?: ScrollAreaAxis;
|
|
9
|
+
/** A step on the space scale, so the cap follows density like every other measure. */
|
|
10
|
+
maxHeight?: ScrollAreaMaxHeight;
|
|
11
|
+
/**
|
|
12
|
+
* What the region holds. Required in practice: a focusable region with no name is
|
|
13
|
+
* announced as an unlabelled group, which tells a reader they have arrived somewhere and
|
|
14
|
+
* not what it is. Without one the box still takes focus but claims no role.
|
|
15
|
+
*/
|
|
16
|
+
label?: string;
|
|
17
|
+
className?: string;
|
|
18
|
+
[key: `data-${string}`]: unknown;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* A box that scrolls, and can be scrolled without a pointer.
|
|
22
|
+
*
|
|
23
|
+
* The whole component is the `tabindex`. A region that scrolls and cannot be focused simply
|
|
24
|
+
* ends at its own edge for anyone driving the page from a keyboard — the arrow keys go to
|
|
25
|
+
* the document behind it and the content past the fold is unreachable. `composed/Table`
|
|
26
|
+
* settled this for its own scroller; this is that pattern with nothing else attached.
|
|
27
|
+
*
|
|
28
|
+
* The other half is that a tab stop which does nothing is worse than none. A box whose
|
|
29
|
+
* content fits does not scroll, so it is removed from the tab order rather than left as a
|
|
30
|
+
* stop the reader has to pass through to reach the next control. That cannot be decided from
|
|
31
|
+
* the props, so it is measured.
|
|
32
|
+
*/
|
|
33
|
+
export declare function ScrollArea({ children, axis, maxHeight, label, className, ...rest }: ScrollAreaProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { ChangeEvent, ReactNode } from "react";
|
|
2
|
+
import "./Select.css";
|
|
3
|
+
export type SelectSize = "sm" | "md" | "lg";
|
|
4
|
+
export type SelectProps = {
|
|
5
|
+
/** `<option>` elements, the same as a native select takes. See the note on why. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
value?: string;
|
|
8
|
+
defaultValue?: string;
|
|
9
|
+
onChange?: (event: ChangeEvent<HTMLSelectElement>) => void;
|
|
10
|
+
size?: SelectSize;
|
|
11
|
+
invalid?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
required?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* The token a browser fills this from — `country`, `cc-exp-month`, `address-level1`.
|
|
16
|
+
*
|
|
17
|
+
* Asked for by `AddressForm`. A select is as fillable as a text field and is left out of
|
|
18
|
+
* autofill more often than any other control, which is how a form that fills five fields in
|
|
19
|
+
* one press leaves the sixth blank.
|
|
20
|
+
*/
|
|
21
|
+
autoComplete?: string;
|
|
22
|
+
name?: string;
|
|
23
|
+
id?: string;
|
|
24
|
+
className?: string;
|
|
25
|
+
[key: `data-${string}`]: unknown;
|
|
26
|
+
[key: `aria-${string}`]: unknown;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* A closed list, drawn here rather than by the operating system.
|
|
30
|
+
*
|
|
31
|
+
* **It used to be a bare native `<select>`, and the list it opened was the platform's.** That
|
|
32
|
+
* is defensible on its own — the wheel on iOS is genuinely good, and the system's keyboard
|
|
33
|
+
* search comes free. It is not defensible next to `Combobox`, which draws its own list from
|
|
34
|
+
* the same tokens: the same product then had two dropdowns that looked nothing alike, and one
|
|
35
|
+
* of them looked different again on every operating system it ran on. Consistency is the
|
|
36
|
+
* thing a design system is for.
|
|
37
|
+
*
|
|
38
|
+
* **The native element is still here, and it is still the form's field.** It is hidden and
|
|
39
|
+
* out of the tab order, but it holds the value, carries `name`, `required` and
|
|
40
|
+
* `autoComplete`, submits with the form and takes the browser's autofill. Choosing an option
|
|
41
|
+
* writes to it through the prototype's own setter and dispatches a real `change`, so `onChange`
|
|
42
|
+
* fires exactly as it did before — which is why every call site and every spec kept working
|
|
43
|
+
* when this was rewritten.
|
|
44
|
+
*
|
|
45
|
+
* **What replaced it is the `Combobox` pattern with the typing taken out.** A button that
|
|
46
|
+
* reports `combobox`, a listbox in a popover, `aria-activedescendant` walking the options, and
|
|
47
|
+
* type-ahead — because losing the system's keyboard search is the one real cost of drawing
|
|
48
|
+
* the list, and a closed list of forty is unusable without it.
|
|
49
|
+
*/
|
|
50
|
+
export declare function Select({ children, value, defaultValue, onChange, size, invalid, disabled, required, autoComplete, name, id, className, ...rest }: SelectProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The list model, made available to any list rather than only to `Select`.
|
|
3
|
+
*
|
|
4
|
+
* Four components walk a list of rows with `aria-activedescendant`: `Select`, `MultiSelect`,
|
|
5
|
+
* `Combobox` and `CommandPalette`. They had four copies of the same contract, and
|
|
6
|
+
* `docs/COMPONENT-AUDIT.md` counted the drift: two wrote the walk as `move()`, one as
|
|
7
|
+
* `step()`, one as a `switch` and the rest as `if` chains. The copies were not merely
|
|
8
|
+
* different. They had stopped agreeing.
|
|
9
|
+
*
|
|
10
|
+
* `CommandPalette` did not skip locked rows at all. An arrow key landed on a disabled
|
|
11
|
+
* command and Enter then refused it, which is a control saying no to the keyboard and yes
|
|
12
|
+
* to the pointer. The other three each carry a comment explaining why that must not happen.
|
|
13
|
+
*
|
|
14
|
+
* `Select` gated `aria-activedescendant` on the SELECTED index while naming the ACTIVE one,
|
|
15
|
+
* so a select whose value matched no option announced nothing as the arrows moved.
|
|
16
|
+
*
|
|
17
|
+
* Both were fixed by there being one model instead of four. That is what this is for: not
|
|
18
|
+
* fewer lines, but one place where the contract can be read and therefore one place where it
|
|
19
|
+
* can be wrong.
|
|
20
|
+
*
|
|
21
|
+
* It lives here, beside `Select`, for the reason `refraction.ts` lives beside `Glass`. A
|
|
22
|
+
* `common/` folder holding only a hook would fail the contract's demo rule, `src/foundation`
|
|
23
|
+
* is not something a component may import, and `Select` is the plainest list of the four.
|
|
24
|
+
*
|
|
25
|
+
* What it does NOT own: whether the list is open, what Enter does, and how a row is drawn.
|
|
26
|
+
* Those are four different things in four components — Enter alone commits a value, toggles
|
|
27
|
+
* one of several, fills a field, or runs a command that cannot be undone — and a hook that
|
|
28
|
+
* took them would be the god-code this audit went looking for.
|
|
29
|
+
*/
|
|
30
|
+
export type ListboxOptions<Row> = {
|
|
31
|
+
/** Every row the reader can see, locked ones included. Indices are into this. */
|
|
32
|
+
rows: Row[];
|
|
33
|
+
/** A row the pointer may not choose. The arrows must agree with the pointer about it. */
|
|
34
|
+
locked?: (row: Row) => boolean;
|
|
35
|
+
/** The DOM id of a row, for `aria-activedescendant`. Index-based or value-based, as suits. */
|
|
36
|
+
id: (row: Row, index: number) => string;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the ends join. A palette of verbs wraps: at the bottom the next thing the reader
|
|
39
|
+
* wants is the top, not nothing happening. A `Select` standing in for a native one does
|
|
40
|
+
* not, because the native one does not.
|
|
41
|
+
*/
|
|
42
|
+
loop?: boolean;
|
|
43
|
+
};
|
|
44
|
+
export type Listbox<Row> = {
|
|
45
|
+
/** Index into `rows`, or -1 when there is nothing reachable to stand on. */
|
|
46
|
+
active: number;
|
|
47
|
+
activeRow: Row | undefined;
|
|
48
|
+
/** For `aria-activedescendant`. Undefined when nothing is active, never a row that is gone. */
|
|
49
|
+
activeId: string | undefined;
|
|
50
|
+
/** Point at a row by index. Out-of-range and locked rows are refused rather than clamped. */
|
|
51
|
+
setActive: (index: number) => void;
|
|
52
|
+
/** One step in a direction, over reachable rows only. */
|
|
53
|
+
move: (step: number) => void;
|
|
54
|
+
first: () => void;
|
|
55
|
+
last: () => void;
|
|
56
|
+
/**
|
|
57
|
+
* Arrow keys, Home and End. Returns whether it took the event.
|
|
58
|
+
*
|
|
59
|
+
* Enter, Escape, Tab and Backspace are not here. They mean different things in each of the
|
|
60
|
+
* four, and the one that looks shared is the one that is not: Enter commits, toggles, fills
|
|
61
|
+
* and runs.
|
|
62
|
+
*/
|
|
63
|
+
took: (event: {
|
|
64
|
+
key: string;
|
|
65
|
+
preventDefault: () => void;
|
|
66
|
+
}) => boolean;
|
|
67
|
+
};
|
|
68
|
+
export declare function useListbox<Row>({ rows, locked, id, loop }: ListboxOptions<Row>): Listbox<Row>;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import type { LayoutGap } from "../Stack";
|
|
3
|
+
import "./SimpleGrid.css";
|
|
4
|
+
/** A fixed number of equal columns. The list is what divides evenly into a readable row. */
|
|
5
|
+
export type SimpleGridColumns = 1 | 2 | 3 | 4 | 6;
|
|
6
|
+
/** The narrowest a cell may get before the row drops one. Enumerated in `SimpleGrid.css`. */
|
|
7
|
+
export type SimpleGridMin = "xs" | "sm" | "md" | "lg";
|
|
8
|
+
export type SimpleGridProps = {
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
as?: ElementType;
|
|
11
|
+
/** A fixed count. Wins over `min` when both are given. */
|
|
12
|
+
columns?: SimpleGridColumns;
|
|
13
|
+
/** Fit as many columns of at least this width as there is room for. */
|
|
14
|
+
min?: SimpleGridMin;
|
|
15
|
+
gap?: LayoutGap;
|
|
16
|
+
className?: string;
|
|
17
|
+
[key: `data-${string}`]: unknown;
|
|
18
|
+
[key: `aria-${string}`]: unknown;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Equal columns of the same kind of thing.
|
|
22
|
+
*
|
|
23
|
+
* Not the twelve-column field: `Grid` is for cells that mean different things and have to
|
|
24
|
+
* line up against a shared measure, and this is for n of one thing. Nothing here can express
|
|
25
|
+
* "a sidebar of four and a body of eight", and that is the distinction, not a limitation.
|
|
26
|
+
*
|
|
27
|
+
* Both sizing modes are set as attributes and resolved in CSS. `columns` outranks `min` there
|
|
28
|
+
* rather than here, so the precedence holds even when an adopter's own rule sets one of them.
|
|
29
|
+
*/
|
|
30
|
+
export declare function SimpleGrid({ children, as: Element, columns, min, gap, className, ...rest }: SimpleGridProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import "./Skeleton.css";
|
|
2
|
+
export type SkeletonShape = "text" | "rect" | "circle";
|
|
3
|
+
export type SkeletonSize = "sm" | "md" | "lg";
|
|
4
|
+
export type SkeletonProps = {
|
|
5
|
+
shape?: SkeletonShape;
|
|
6
|
+
/** Only for `shape="text"`: how many lines of it. One to six. */
|
|
7
|
+
lines?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
8
|
+
/** For `rect` and `circle`, which have no line height to take their size from. */
|
|
9
|
+
size?: SkeletonSize;
|
|
10
|
+
className?: string;
|
|
11
|
+
[key: `data-${string}`]: unknown;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The shape of what has not arrived.
|
|
15
|
+
*
|
|
16
|
+
* `aria-hidden`, always, and never a live region. A skeleton is a picture of a layout, and
|
|
17
|
+
* announcing "loading, loading, loading" once per placeholder is worse than silence — the
|
|
18
|
+
* thing that should speak is the region the content lands in, once, when it lands.
|
|
19
|
+
*
|
|
20
|
+
* Text skeletons end short on the last line, because a paragraph does. A block of equal bars
|
|
21
|
+
* reads as a table.
|
|
22
|
+
*/
|
|
23
|
+
export declare function Skeleton({ shape, lines, size, className, ...rest }: SkeletonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Slider.css";
|
|
3
|
+
export type SliderSize = "sm" | "md" | "lg";
|
|
4
|
+
/** A labelled stop on the rail. The label is optional — a bare tick is still a landmark. */
|
|
5
|
+
export type SliderMark = {
|
|
6
|
+
value: number;
|
|
7
|
+
label?: ReactNode;
|
|
8
|
+
};
|
|
9
|
+
export type SliderProps = {
|
|
10
|
+
value: number;
|
|
11
|
+
onValueChange: (value: number) => void;
|
|
12
|
+
min?: number;
|
|
13
|
+
max?: number;
|
|
14
|
+
step?: number;
|
|
15
|
+
/**
|
|
16
|
+
* What this slider is asking for.
|
|
17
|
+
*
|
|
18
|
+
* Stands down to `aria-labelledby` when `Field` supplies one, the same trade `Combobox`
|
|
19
|
+
* makes: an `aria-label` outranks a visible `<label>`, and the two would then be free to
|
|
20
|
+
* disagree.
|
|
21
|
+
*/
|
|
22
|
+
label: string;
|
|
23
|
+
size?: SliderSize;
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
invalid?: boolean;
|
|
26
|
+
name?: string;
|
|
27
|
+
marks?: SliderMark[];
|
|
28
|
+
/**
|
|
29
|
+
* The value as a reader should hear and see it.
|
|
30
|
+
*
|
|
31
|
+
* Feeds `aria-valuetext` as well as the readout, because a range input announces the bare
|
|
32
|
+
* number otherwise — "70" where the control means "70%" or "7,000원". The unit is the half
|
|
33
|
+
* that carries the meaning and it is the half a screen reader was never given.
|
|
34
|
+
*/
|
|
35
|
+
formatValue?: (value: number) => string;
|
|
36
|
+
id?: string;
|
|
37
|
+
className?: string;
|
|
38
|
+
required?: boolean;
|
|
39
|
+
"aria-labelledby"?: string;
|
|
40
|
+
"aria-describedby"?: string;
|
|
41
|
+
[key: `data-${string}`]: unknown;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* One value out of a range.
|
|
45
|
+
*
|
|
46
|
+
* A native `<input type="range">`, painted. Arrow keys, Home, End, PageUp and PageDown, the
|
|
47
|
+
* step arithmetic, the touch behaviour and the `slider` role all arrive with the element; a
|
|
48
|
+
* hand-drawn rail has to rebuild every one of them and gets at least one wrong. What is drawn
|
|
49
|
+
* here is the rail, the fill and the thumb — appearance, which is the part a design system
|
|
50
|
+
* actually has an opinion about.
|
|
51
|
+
*
|
|
52
|
+
* The fill is a positioned element rather than a gradient on the input, so it can be sized
|
|
53
|
+
* with logical properties and follow a right-to-left page without a second rule.
|
|
54
|
+
*/
|
|
55
|
+
export declare function Slider({ value, onValueChange, min, max, step, label, size, disabled, invalid, name, marks, formatValue, id, className, required, "aria-labelledby": labelledBy, "aria-describedby": describedBy, ...rest }: SliderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ElementType } from "react";
|
|
2
|
+
import type { LayoutGap } from "../Stack";
|
|
3
|
+
import "./Space.css";
|
|
4
|
+
export type SpaceAxis = "block" | "inline";
|
|
5
|
+
export type SpaceProps = {
|
|
6
|
+
/** A step on the spacing scale. Follows the page density, because `--space-*` does. */
|
|
7
|
+
size?: LayoutGap;
|
|
8
|
+
/** `block` is a height between rows; `inline` is a width between things in a row. */
|
|
9
|
+
axis?: SpaceAxis;
|
|
10
|
+
as?: ElementType;
|
|
11
|
+
className?: string;
|
|
12
|
+
[key: `data-${string}`]: unknown;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* An empty box of a named size.
|
|
16
|
+
*
|
|
17
|
+
* It is hidden from assistive technology, and that is not politeness — an element with no
|
|
18
|
+
* content and no role still lands in the accessibility tree on some engines, and a reader
|
|
19
|
+
* arrowing through a page does not need to be told about the gaps between the parts. There is
|
|
20
|
+
* nothing here to announce, so nothing is.
|
|
21
|
+
*
|
|
22
|
+
* It takes no children and no `aria-*`. Both would contradict `aria-hidden`: content inside a
|
|
23
|
+
* hidden box is content nobody can reach, and a label on a hidden box is a name for something
|
|
24
|
+
* that is not in the tree to be named. If a box needs a name, it is not this component.
|
|
25
|
+
*
|
|
26
|
+
* Reach for it last. A run of rows separated by `Space` is a `Stack` with a `gap` that
|
|
27
|
+
* somebody wrote out by hand, and it drifts the moment one row is added or removed.
|
|
28
|
+
*/
|
|
29
|
+
export declare function Space({ size, axis, as: Element, className, ...rest }: SpaceProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import "./Spinner.css";
|
|
2
|
+
export type SpinnerSize = "xs" | "sm" | "md" | "lg";
|
|
3
|
+
export type SpinnerTone = "inherit" | "accent" | "muted" | "on-fill";
|
|
4
|
+
export type SpinnerProps = {
|
|
5
|
+
size?: SpinnerSize;
|
|
6
|
+
tone?: SpinnerTone;
|
|
7
|
+
/**
|
|
8
|
+
* What is being waited for.
|
|
9
|
+
*
|
|
10
|
+
* Given, the spinner is a live region that says it. Omitted, it is `aria-hidden` — which
|
|
11
|
+
* is right when the text beside it already says "저장하는 중" and wrong when nothing does.
|
|
12
|
+
* There is no third option where the spinner is announced as "spinner".
|
|
13
|
+
*/
|
|
14
|
+
label?: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
[key: `data-${string}`]: unknown;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Something is still happening.
|
|
20
|
+
*
|
|
21
|
+
* It turns on `--duration-loop`. Under reduced motion the stylesheet switches that infinite
|
|
22
|
+
* animation off instead of collapsing its duration, which would make it strobe. The
|
|
23
|
+
* incomplete ring remains visible and the label still states what is happening.
|
|
24
|
+
*/
|
|
25
|
+
export declare function Spinner({ size, tone, label, className, ...rest }: SpinnerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import "./Stack.css";
|
|
3
|
+
/**
|
|
4
|
+
* The spacing scale, by step name.
|
|
5
|
+
*
|
|
6
|
+
* The five flex layout primitives share this type rather than each declaring a number: a
|
|
7
|
+
* `gap` that accepts `number` accepts `7`, and `--space-7` does not exist — the rule would
|
|
8
|
+
* resolve to nothing and the box would sit flush with no error anywhere. The names here are
|
|
9
|
+
* exactly the steps `foundation/tokens.css` defines, and the CSS enumerates them one by one
|
|
10
|
+
* so a step that is removed from the scale becomes a compile error rather than a silent zero.
|
|
11
|
+
*/
|
|
12
|
+
export type LayoutGap = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 16 | 20 | 24;
|
|
13
|
+
export type StackAlign = "start" | "center" | "end" | "stretch";
|
|
14
|
+
export type StackJustify = "start" | "center" | "end" | "between";
|
|
15
|
+
export type StackProps = {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
/** A step on the spacing scale. Follows the page density, because `--space-*` does. */
|
|
18
|
+
gap?: LayoutGap;
|
|
19
|
+
/** The inline axis — where a child that is narrower than the column sits. */
|
|
20
|
+
align?: StackAlign;
|
|
21
|
+
/** The block axis. Does nothing unless the column has a height to distribute. */
|
|
22
|
+
justify?: StackJustify;
|
|
23
|
+
as?: ElementType;
|
|
24
|
+
className?: string;
|
|
25
|
+
[key: `data-${string}`]: unknown;
|
|
26
|
+
[key: `aria-${string}`]: unknown;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* A vertical column with one gap between its children.
|
|
30
|
+
*
|
|
31
|
+
* It exists so a vertical rhythm is a named step rather than a margin somebody typed. Margins
|
|
32
|
+
* collapse, do not collapse through a flex container, and belong to the child rather than to
|
|
33
|
+
* the arrangement — which is why removing a child from a margin-spaced list changes the
|
|
34
|
+
* spacing of the list. A `gap` belongs to the container, so it does not.
|
|
35
|
+
*
|
|
36
|
+
* Its own attributes are written *before* the spread. A caller who names a part — a test id,
|
|
37
|
+
* a `data-testid`, a `data-part` a parent layout reads — has to win, and writing them
|
|
38
|
+
* afterwards silently replaced the caller's value with this component's. That is the rule
|
|
39
|
+
* `Select` was corrected to.
|
|
40
|
+
*/
|
|
41
|
+
export declare function Stack({ children, gap, align, justify, as: Element, className, ...rest }: StackProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ChangeEvent, ReactNode } from "react";
|
|
2
|
+
import "./Switch.css";
|
|
3
|
+
export type SwitchSize = "sm" | "md";
|
|
4
|
+
export type SwitchProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
defaultChecked?: boolean;
|
|
8
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
size?: SwitchSize;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
name?: string;
|
|
12
|
+
value?: string;
|
|
13
|
+
id?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
[key: `data-${string}`]: unknown;
|
|
16
|
+
[key: `aria-${string}`]: unknown;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* On or off, and it takes effect now.
|
|
20
|
+
*
|
|
21
|
+
* A checkbox with `role="switch"`, so it is announced as on or off rather than checked or
|
|
22
|
+
* unchecked — which is the distinction that matters, because a switch acts immediately and a
|
|
23
|
+
* checkbox waits for a submit. If the setting needs saving, it is a checkbox.
|
|
24
|
+
*
|
|
25
|
+
* The state is on the input, never only in the drawing: a knob that has slid right says
|
|
26
|
+
* nothing to a reader who cannot see it.
|
|
27
|
+
*/
|
|
28
|
+
export declare function Switch({ children, size, disabled, className, ...rest }: SwitchProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { CSSProperties, ElementType, ReactNode } from "react";
|
|
2
|
+
import "./Text.css";
|
|
3
|
+
export type TextSize = "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl";
|
|
4
|
+
export type TextWeight = "regular" | "medium" | "semibold" | "bold" | "heavy";
|
|
5
|
+
export type TextTone = "default" | "muted" | "subtle" | "accent" | "success" | "warning" | "danger" | "on-fill";
|
|
6
|
+
export type TextLeading = "none" | "tight" | "snug" | "normal";
|
|
7
|
+
export type TextAlign = "start" | "center" | "end";
|
|
8
|
+
export type TextProps = {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* The element rendered. A heading is an `h2` because it is a heading, not because it is
|
|
12
|
+
* large — size and level are separate here on purpose, and conflating them is how a page
|
|
13
|
+
* ends up with an `h1` chosen for its font size.
|
|
14
|
+
*/
|
|
15
|
+
as?: ElementType;
|
|
16
|
+
/**
|
|
17
|
+
* 주지 않으면 단계가 정합니다.
|
|
18
|
+
*
|
|
19
|
+
* `as="h2"`만 쓰면 h2의 크기·굵기·행간이 붙습니다. 여기에 값을 주면 그 값이 남습니다 —
|
|
20
|
+
* 표지 제목처럼 단계와 크기를 일부러 어긋내야 하는 자리가 있습니다.
|
|
21
|
+
*/
|
|
22
|
+
size?: TextSize;
|
|
23
|
+
weight?: TextWeight;
|
|
24
|
+
tone?: TextTone;
|
|
25
|
+
leading?: TextLeading;
|
|
26
|
+
align?: TextAlign;
|
|
27
|
+
/**
|
|
28
|
+
* Clamp to a number of lines, or to one when `true`. One to six.
|
|
29
|
+
*
|
|
30
|
+
* Enumerated rather than passed as a number the component writes into a style attribute.
|
|
31
|
+
* An inline style outranks every selector, cannot be overridden by an adopter, and is
|
|
32
|
+
* invisible to the stylesheet — the failure this library doubles every component root
|
|
33
|
+
* against. Six is where a clamp stops being a clamp.
|
|
34
|
+
*
|
|
35
|
+
* Korean has no break opportunity inside a 어절, so a clamped line that would break a word
|
|
36
|
+
* in Latin drops the whole word here. That is correct — `word-break: keep-all` is set on
|
|
37
|
+
* the document — but it means a clamp holds fewer characters than the same clamp in English.
|
|
38
|
+
*/
|
|
39
|
+
truncate?: boolean | 1 | 2 | 3 | 4 | 5 | 6;
|
|
40
|
+
/** Tabular figures, for numbers that sit in a column and must not shift as they change. */
|
|
41
|
+
numeric?: boolean;
|
|
42
|
+
className?: string;
|
|
43
|
+
style?: CSSProperties;
|
|
44
|
+
/**
|
|
45
|
+
* Everything else reaches the element.
|
|
46
|
+
*
|
|
47
|
+
* A component that swallows unknown props cannot be labelled with `aria-*`, described with
|
|
48
|
+
* `title`, or reached by a test without editing the component itself. Passing them through
|
|
49
|
+
* is the difference between a component an adopter can use and one they have to fork.
|
|
50
|
+
*/
|
|
51
|
+
[key: `data-${string}`]: unknown;
|
|
52
|
+
[key: `aria-${string}`]: unknown;
|
|
53
|
+
id?: string;
|
|
54
|
+
role?: string;
|
|
55
|
+
title?: string;
|
|
56
|
+
};
|
|
57
|
+
export declare function Text({ children, as: Element, size, weight, tone, leading, align, truncate, numeric, className, style, ...rest }: TextProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ChangeEvent } from "react";
|
|
2
|
+
import "./Textarea.css";
|
|
3
|
+
export type TextareaSize = "sm" | "md" | "lg";
|
|
4
|
+
export type TextareaResize = "none" | "vertical";
|
|
5
|
+
export type TextareaProps = {
|
|
6
|
+
value?: string;
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
onChange?: (event: ChangeEvent<HTMLTextAreaElement>) => void;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
rows?: number;
|
|
11
|
+
size?: TextareaSize;
|
|
12
|
+
/**
|
|
13
|
+
* `vertical` by default, and never `horizontal` or `both`.
|
|
14
|
+
*
|
|
15
|
+
* A field that can be dragged wider than its column pushes the layout around it, and the
|
|
16
|
+
* reader who did it cannot always see what they broke. Taller is safe; wider is not.
|
|
17
|
+
*/
|
|
18
|
+
resize?: TextareaResize;
|
|
19
|
+
invalid?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
required?: boolean;
|
|
23
|
+
name?: string;
|
|
24
|
+
id?: string;
|
|
25
|
+
className?: string;
|
|
26
|
+
[key: `data-${string}`]: unknown;
|
|
27
|
+
[key: `aria-${string}`]: unknown;
|
|
28
|
+
};
|
|
29
|
+
export declare function Textarea({ size, resize, invalid, disabled, readOnly, rows, className, ...rest }: TextareaProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ReactElement, ReactNode } from "react";
|
|
2
|
+
import "./Tooltip.css";
|
|
3
|
+
export type TooltipSide = "top" | "right" | "bottom" | "left";
|
|
4
|
+
export type TooltipProps = {
|
|
5
|
+
/** The control this describes. One element, and it must be able to take focus. */
|
|
6
|
+
children: ReactElement;
|
|
7
|
+
/** What it says. Short — a tooltip that needs a paragraph is not a tooltip. */
|
|
8
|
+
content: ReactNode;
|
|
9
|
+
side?: TooltipSide;
|
|
10
|
+
/** Milliseconds before it opens. The first of a run opens after this; the rest are instant. */
|
|
11
|
+
delay?: number;
|
|
12
|
+
open?: boolean;
|
|
13
|
+
defaultOpen?: boolean;
|
|
14
|
+
onOpenChange?: (open: boolean) => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* A short description of a control, on hover and on focus.
|
|
19
|
+
*
|
|
20
|
+
* Built on Radix rather than from scratch, and the reason is WCAG 1.4.13: content that
|
|
21
|
+
* appears on hover has to be dismissible with Escape, hoverable without vanishing, and
|
|
22
|
+
* persistent until it is dismissed or stops being relevant. On top of that a tooltip has to
|
|
23
|
+
* flip at a viewport edge, portal out of any ancestor with `overflow: hidden`, open on
|
|
24
|
+
* keyboard focus as well as hover, and close on touch instead of sticking. Every one of those
|
|
25
|
+
* is a place a hand-rolled tooltip is wrong, and none of them is visible in a screenshot.
|
|
26
|
+
*
|
|
27
|
+
* What this file owns is the appearance, drawn entirely from tokens.
|
|
28
|
+
*
|
|
29
|
+
* A tooltip is never the only place something is said. It cannot be reached by touch and it
|
|
30
|
+
* cannot be selected, so a control whose name exists only in its tooltip has no name on a
|
|
31
|
+
* phone. Use it to add, never to carry.
|
|
32
|
+
*/
|
|
33
|
+
export declare function Tooltip({ children, content, side, delay, open, defaultOpen, onOpenChange, className, }: TooltipProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import "./VisuallyHidden.css";
|
|
3
|
+
export type VisuallyHiddenProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
as?: ElementType;
|
|
6
|
+
/**
|
|
7
|
+
* Becomes visible when focused, for a skip link — the one case where hidden text has to
|
|
8
|
+
* be reachable by the reader who needs it most.
|
|
9
|
+
*/
|
|
10
|
+
focusable?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* Present to assistive technology, absent from the screen.
|
|
15
|
+
*
|
|
16
|
+
* Not `display: none` and not `visibility: hidden` — both remove it from the accessibility
|
|
17
|
+
* tree as well, which is the opposite of the point. Not `text-indent: -9999px` either: that
|
|
18
|
+
* leaves a 9999px box that a right-to-left layout scrolls to.
|
|
19
|
+
*/
|
|
20
|
+
export declare function VisuallyHidden({ children, as: Element, focusable, className, }: VisuallyHiddenProps): import("react").JSX.Element;
|