@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,66 @@
|
|
|
1
|
+
import "./Waveform.css";
|
|
2
|
+
export type WaveformState = "idle" | "listening" | "thinking" | "speaking";
|
|
3
|
+
/**
|
|
4
|
+
* The geometry, and only the geometry.
|
|
5
|
+
*
|
|
6
|
+
* `docs/음성-특화-컴포넌트.md` names five — bar, grid, radial, wave, aura — and the previous
|
|
7
|
+
* line of work built all five as one component sharing one array of values, with the shape
|
|
8
|
+
* differing in CSS alone. That is right, and it is why this is a `variant` rather than five
|
|
9
|
+
* exports: five files whose helpers are byte-identical copies is a permutation, not a library.
|
|
10
|
+
*
|
|
11
|
+
* `aura` is the one not here. A glow that swells says the level and nothing else — no
|
|
12
|
+
* sequence, no detail, no count — and the plan's rule for this kind of thing is that an effect
|
|
13
|
+
* carries a fact or it does not exist. Behind an orb it is the host's background, not a meter.
|
|
14
|
+
*/
|
|
15
|
+
export type WaveformVariant = "bar" | "line" | "grid" | "radial";
|
|
16
|
+
export type WaveformSize = "sm" | "md" | "lg";
|
|
17
|
+
export type WaveformProps = {
|
|
18
|
+
state: WaveformState;
|
|
19
|
+
/**
|
|
20
|
+
* Amplitudes, 0 to 1, oldest first.
|
|
21
|
+
*
|
|
22
|
+
* Read in `listening` and `speaking` and ignored everywhere else — see the note. Anything
|
|
23
|
+
* outside 0..1 is clamped rather than trusted: an analyser that returns 1.4 for one frame
|
|
24
|
+
* would otherwise draw a bar out of the box.
|
|
25
|
+
*/
|
|
26
|
+
levels?: number[];
|
|
27
|
+
/** What this is a picture of. "마이크 입력", "에이전트 음성". */
|
|
28
|
+
label: string;
|
|
29
|
+
/**
|
|
30
|
+
* How long the current state has lasted. "0:04", "1분 12초".
|
|
31
|
+
*
|
|
32
|
+
* The second of `thinking`'s three channels, and the one that survives a screenshot. Two
|
|
33
|
+
* seconds and sixty seconds look identical in any loop, so a loop on its own postpones the
|
|
34
|
+
* moment of doubt rather than removing it.
|
|
35
|
+
*/
|
|
36
|
+
elapsed?: string;
|
|
37
|
+
variant?: WaveformVariant;
|
|
38
|
+
size?: WaveformSize;
|
|
39
|
+
className?: string;
|
|
40
|
+
[key: `data-${string}`]: unknown;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* What the microphone is hearing, or what the agent is doing instead.
|
|
44
|
+
*
|
|
45
|
+
* **Amplitude is read in two states and invented in none.** `listening` and `speaking` have a
|
|
46
|
+
* signal; `idle` and `thinking` do not, and a component that animated them from a random walk
|
|
47
|
+
* would be drawing sound that is not there — which is the one thing a level meter must never
|
|
48
|
+
* do. The two silent states have shapes of their own instead.
|
|
49
|
+
*
|
|
50
|
+
* **`thinking` carries three channels and only one of them moves.** The sweep is the
|
|
51
|
+
* animation; the elapsed time and the state word are text. That matters because the moment
|
|
52
|
+
* this component exists for — the silence while a model reasons — is exactly when a reader
|
|
53
|
+
* starts wondering whether the thing has crashed, and the two of the three channels that
|
|
54
|
+
* survive a screenshot, `prefers-reduced-motion`, and a screen reader are the ones that answer
|
|
55
|
+
* them.
|
|
56
|
+
*
|
|
57
|
+
* **It does not own the stream.** No `getUserMedia`, no `AudioContext`, no analyser. Levels
|
|
58
|
+
* arrive as numbers and the state arrives as a word — inferring one from the other is how a
|
|
59
|
+
* meter starts calling a cough "speaking".
|
|
60
|
+
*
|
|
61
|
+
* **The shape is drawn in element attributes.** `Progress` settled this for one value: the
|
|
62
|
+
* geometry that comes from data goes where a stylesheet cannot be outranked by it. Here it is
|
|
63
|
+
* `height`, `y` and `points` on SVG children, so the size stays CSS's and only the shape is
|
|
64
|
+
* the data's.
|
|
65
|
+
*/
|
|
66
|
+
export declare function Waveform({ state, levels, label, elapsed, variant, size, className, ...rest }: WaveformProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export * from "./AspectRatio";
|
|
2
|
+
export * from "./Avatar";
|
|
3
|
+
export * from "./Badge";
|
|
4
|
+
export * from "./Blockquote";
|
|
5
|
+
export * from "./Button";
|
|
6
|
+
export * from "./CalibratedPulse";
|
|
7
|
+
export * from "./Center";
|
|
8
|
+
export * from "./Checkbox";
|
|
9
|
+
export * from "./Code";
|
|
10
|
+
export * from "./Collapse";
|
|
11
|
+
export * from "./Container";
|
|
12
|
+
export * from "./Divider";
|
|
13
|
+
export * from "./FileInput";
|
|
14
|
+
export * from "./Flex";
|
|
15
|
+
export * from "./Glass";
|
|
16
|
+
export * from "./Grid";
|
|
17
|
+
export * from "./Group";
|
|
18
|
+
export * from "./Highlight";
|
|
19
|
+
export * from "./Icon";
|
|
20
|
+
export * from "./IconButton";
|
|
21
|
+
export * from "./Indicator";
|
|
22
|
+
export * from "./Input";
|
|
23
|
+
export * from "./Kbd";
|
|
24
|
+
export * from "./Link";
|
|
25
|
+
export * from "./Mark";
|
|
26
|
+
export * from "./MultiSelect";
|
|
27
|
+
export * from "./PinInput";
|
|
28
|
+
export * from "./Progress";
|
|
29
|
+
export * from "./RingProgress";
|
|
30
|
+
export * from "./Radio";
|
|
31
|
+
export * from "./ScrollArea";
|
|
32
|
+
export * from "./Select";
|
|
33
|
+
export * from "./SimpleGrid";
|
|
34
|
+
export * from "./Skeleton";
|
|
35
|
+
export * from "./Slider";
|
|
36
|
+
export * from "./Space";
|
|
37
|
+
export * from "./Spinner";
|
|
38
|
+
export * from "./Stack";
|
|
39
|
+
export * from "./Switch";
|
|
40
|
+
export * from "./Text";
|
|
41
|
+
export * from "./Textarea";
|
|
42
|
+
export * from "./Tooltip";
|
|
43
|
+
export * from "./VisuallyHidden";
|
|
44
|
+
export * from "./Waveform";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { A as e, C as t, D as n, E as r, O as i, S as a, T as o, _ as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, k as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as w, u as T, v as E, w as D, x as O, y as k } from "../../Switch-BkMnC02l.js";
|
|
2
|
+
import { i as A, n as j, r as M, s as N, t as P } from "../../VisuallyHidden-DcE0EFpo.js";
|
|
3
|
+
import { n as F, r as I, t as L } from "../../Input-Bv7L1_wj.js";
|
|
4
|
+
import { a as R, i as z, n as B, o as V, r as H, t as U } from "../../Waveform-BIE2Ztc8.js";
|
|
5
|
+
import { i as W, n as G, t as K } from "../../Tooltip-BJSUlXS2.js";
|
|
6
|
+
import { t as q } from "../../Text-D7hoYpuZ.js";
|
|
7
|
+
export { e as AspectRatio, F as Avatar, V as Badge, g as Blockquote, M as Button, i as CalibratedPulse, n as Center, W as Checkbox, r as Code, o as Collapse, D as Container, t as Divider, O as FileInput, l as Flex, k as Glass, E as Grid, s as GridItem, p as Group, x as Highlight, N as Icon, j as IconButton, f as Indicator, L as Input, d as Kbd, T as Link, m as Mark, _ as MultiSelect, u as PinInput, R as Progress, z as Radio, C as RingProgress, b as ScrollArea, H as Select, c as SimpleGrid, G as Skeleton, h as Slider, S as Space, A as Spinner, y as Stack, w as Switch, q as Text, B as Textarea, K as Tooltip, P as VisuallyHidden, U as Waveform, a as fileSizeText, v as highlightParts, I as initialsOf };
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./AppShell.css";
|
|
3
|
+
export type AppShellRailSize = "sm" | "md" | "lg";
|
|
4
|
+
export type AppShellFit = "viewport" | "container";
|
|
5
|
+
export type AppShellProps = {
|
|
6
|
+
/**
|
|
7
|
+
* What stands in the rail. A `SidebarNav`, usually.
|
|
8
|
+
*
|
|
9
|
+
* The rail is not the nav. It is the column the nav stands in, and the difference is the
|
|
10
|
+
* whole reason this component exists: `SidebarNav` knows how to be a list of destinations
|
|
11
|
+
* and knows nothing about being a column that collapses, becomes an overlay under a
|
|
12
|
+
* breakpoint, and yields its width to the work.
|
|
13
|
+
*/
|
|
14
|
+
rail?: ReactNode;
|
|
15
|
+
/**
|
|
16
|
+
* Names the way out of the rail — the scrim button under `--bp-lg` is "«railLabel» 닫기".
|
|
17
|
+
*
|
|
18
|
+
* It does not name the rail itself. The nav inside already has a name, and a wrapper with a
|
|
19
|
+
* second one made assistive technology announce two labelled boxes for one column.
|
|
20
|
+
*/
|
|
21
|
+
railLabel?: string;
|
|
22
|
+
/**
|
|
23
|
+
* The id of the rail's box, for a control elsewhere to point `aria-controls` at.
|
|
24
|
+
*
|
|
25
|
+
* `PageHeader`'s rail button is outside this component, so the id cannot be generated in
|
|
26
|
+
* here and reached from out there. Given one, both ends agree; omitted, the rail still gets
|
|
27
|
+
* a unique id of its own and nothing refers to it.
|
|
28
|
+
*/
|
|
29
|
+
railId?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Whether the rail is showing.
|
|
32
|
+
*
|
|
33
|
+
* Optional, and omitting it is uncontrolled: the shell keeps the state itself, opens with
|
|
34
|
+
* the rail showing, and the scrim closes it. Passing it makes the shell controlled, and then
|
|
35
|
+
* `onRailOpenChange` is where the state has to be kept.
|
|
36
|
+
*
|
|
37
|
+
* Below `--bp-lg` this stops meaning "narrow" and starts meaning "over the work": there is
|
|
38
|
+
* no width at which a rail and a readable column both fit on a phone, so the rail becomes
|
|
39
|
+
* a layer and the scrim behind it is what closes it.
|
|
40
|
+
*/
|
|
41
|
+
railOpen?: boolean;
|
|
42
|
+
onRailOpenChange?: (open: boolean) => void;
|
|
43
|
+
railSize?: AppShellRailSize;
|
|
44
|
+
/** Stays put while the work scrolls under it. A `PageHeader`, usually. */
|
|
45
|
+
header?: ReactNode;
|
|
46
|
+
children: ReactNode;
|
|
47
|
+
/**
|
|
48
|
+
* The panel docked at the end edge. A `SidePanel`, usually.
|
|
49
|
+
*
|
|
50
|
+
* Docked, not floating: it takes its width out of the work rather than covering it, which
|
|
51
|
+
* is the entire difference between reading a source beside an answer and reading it on top
|
|
52
|
+
* of one.
|
|
53
|
+
*/
|
|
54
|
+
dock?: ReactNode;
|
|
55
|
+
dockLabel?: string;
|
|
56
|
+
dockOpen?: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* What the shell is tall as.
|
|
59
|
+
*
|
|
60
|
+
* `viewport` is the app root: the shell owns the window and the work scrolls inside it.
|
|
61
|
+
* `container` is anything else — a preview pane, a split view, a demo — where the shell
|
|
62
|
+
* has to be as tall as the box it was put in.
|
|
63
|
+
*
|
|
64
|
+
* A decision rather than a default, because `100dvh` alone is a shell that cannot be
|
|
65
|
+
* embedded: it renders at window height inside a 512px box, overflows it, and the work
|
|
66
|
+
* never scrolls because it was never short. Found by putting one in a demo.
|
|
67
|
+
*/
|
|
68
|
+
fit?: AppShellFit;
|
|
69
|
+
className?: string;
|
|
70
|
+
[key: `data-${string}`]: unknown;
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Rail, work, and an optional dock at the end.
|
|
74
|
+
*
|
|
75
|
+
* The layer every component here was built to sit inside and none of them could: a
|
|
76
|
+
* `SourcePanel` with nowhere to dock is a panel that has to be positioned by whoever adopts
|
|
77
|
+
* it, and then the library has eighty-one parts and no opinion about where any of them go.
|
|
78
|
+
*
|
|
79
|
+
* Three columns in one grid rather than three positioned boxes. A positioned rail overlaps
|
|
80
|
+
* the work and every child then needs to know how much to inset itself — which is how a
|
|
81
|
+
* layout ends up with a magic number in forty components. Here the work is a grid track, so
|
|
82
|
+
* it is whatever is left, and nothing inside it is told anything.
|
|
83
|
+
*
|
|
84
|
+
* It breaks on the viewport, not on itself. A shell is the thing that owns the window, so
|
|
85
|
+
* `--bp-lg` here means "this window is too narrow for a rail and a readable measure" rather
|
|
86
|
+
* than "this box is". An adopter who embeds one inside a box narrower than the breakpoint
|
|
87
|
+
* gets the wide layout in a narrow space — a container query would answer that, and the
|
|
88
|
+
* reason there is not one is that a container query for a layout nobody can render at both
|
|
89
|
+
* sizes is a behaviour that ships untested. The demo runs at about 766px for this reason.
|
|
90
|
+
*
|
|
91
|
+
* The scroll lives in the work, not on the page. `<main>` is the scroll container so the rail
|
|
92
|
+
* and the header stay where they are without `position: fixed` — fixed elements leave the
|
|
93
|
+
* flow, and an element out of the flow cannot be a grid track.
|
|
94
|
+
*/
|
|
95
|
+
export declare function AppShell({ rail, railLabel, railId, railOpen, onRailOpenChange, railSize, header, children, dock, dockLabel, dockOpen, fit, className, ...rest }: AppShellProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Breadcrumb.css";
|
|
3
|
+
export type BreadcrumbItem = {
|
|
4
|
+
label: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* Where the level lives.
|
|
7
|
+
*
|
|
8
|
+
* Ignored on the last item, which is the page the reader is already on and is drawn as
|
|
9
|
+
* plain text with `aria-current="page"`.
|
|
10
|
+
*/
|
|
11
|
+
href?: string;
|
|
12
|
+
/**
|
|
13
|
+
* Called when the level is chosen — a router push, usually.
|
|
14
|
+
*
|
|
15
|
+
* Ignored on the last item, for the same reason `href` is. Without `href` the level is
|
|
16
|
+
* drawn as a `<button>` rather than an anchor, so it is still reachable by Tab and still
|
|
17
|
+
* fires on Enter and Space; prefer giving `href` as well, so the level can be opened in a
|
|
18
|
+
* new tab and read as a link.
|
|
19
|
+
*/
|
|
20
|
+
onClick?: () => void;
|
|
21
|
+
};
|
|
22
|
+
export type BreadcrumbProps = {
|
|
23
|
+
items: BreadcrumbItem[];
|
|
24
|
+
/**
|
|
25
|
+
* The most levels to put on screen, the ellipsis counted as one.
|
|
26
|
+
*
|
|
27
|
+
* Above it the middle is folded away: the first survives because it says where the tree
|
|
28
|
+
* starts, and as many of the last as still fit, because they say where the reader is and
|
|
29
|
+
* what they came out of. It is a cap, so `max={3}` really does draw three.
|
|
30
|
+
*/
|
|
31
|
+
max?: number;
|
|
32
|
+
label?: string;
|
|
33
|
+
size?: "sm" | "md";
|
|
34
|
+
className?: string;
|
|
35
|
+
[key: `data-${string}`]: unknown;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Where this page sits, and the way back up.
|
|
39
|
+
*
|
|
40
|
+
* An ordered list, because the order is the meaning — and a named `<nav>`, because a page
|
|
41
|
+
* usually has more than one navigation and "navigation" three times names none of them.
|
|
42
|
+
*
|
|
43
|
+
* The last item is not a link. It is the page the reader is on, and `aria-current="page"`
|
|
44
|
+
* says so; a link to where you already are is a link that does nothing.
|
|
45
|
+
*/
|
|
46
|
+
export declare function Breadcrumb({ items, max, label, size, className, ...rest }: BreadcrumbProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./BulkActionBar.css";
|
|
3
|
+
export type BulkActionBarProps = {
|
|
4
|
+
count: number;
|
|
5
|
+
/** What has been chosen. "주문", "사람", "파일". Used in the count and in the name. */
|
|
6
|
+
noun: string;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
onClear: () => void;
|
|
9
|
+
/**
|
|
10
|
+
* How many of the chosen are not in the list the reader is looking at.
|
|
11
|
+
*
|
|
12
|
+
* A filter narrows what is on screen and leaves the selection alone — it is a way of
|
|
13
|
+
* looking, not an undo — so "2개 주문 선택됨" can be true while only one of them is
|
|
14
|
+
* visible. The bar used to know nothing but `count` and said the number flatly, and every
|
|
15
|
+
* host that cared had to write the qualification as a sentence of its own somewhere else
|
|
16
|
+
* on the page. Somewhere else is not in the live region: the count is announced and that
|
|
17
|
+
* sentence never was.
|
|
18
|
+
*
|
|
19
|
+
* A number rather than a flag, because "몇 개가 밖에 있는가" is what the reader decides on.
|
|
20
|
+
*/
|
|
21
|
+
outside?: number;
|
|
22
|
+
/** A count of everything, so "전체 137개 고르기" can be offered. */
|
|
23
|
+
total?: number;
|
|
24
|
+
onSelectAll?: () => void;
|
|
25
|
+
clearLabel?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
[key: `data-${string}`]: unknown;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The bar that rises when something is chosen.
|
|
31
|
+
*
|
|
32
|
+
* It is a named region with a polite live count, and not a dialog: it does not trap focus,
|
|
33
|
+
* does not take it, and does not stop the reader from carrying on choosing. A bar that
|
|
34
|
+
* grabbed focus the moment a checkbox was ticked would make selecting three rows a fight.
|
|
35
|
+
*
|
|
36
|
+
* The count is announced because the bar appearing is otherwise silent — the screen changed
|
|
37
|
+
* and nothing was said. It is `polite` rather than `assertive`: a reader ticking boxes is
|
|
38
|
+
* mid-task, and interrupting them to say "1개 선택됨" after every tick is worse than saying
|
|
39
|
+
* it when they pause.
|
|
40
|
+
*
|
|
41
|
+
* It does put focus back, though, whenever the bar going away is what took it. That is not
|
|
42
|
+
* only the clear button: an action inside the bar that ends the selection — 「배송 준비」 on
|
|
43
|
+
* the last chosen row — hides the bar around the button that was pressed, and focus falls to
|
|
44
|
+
* `<body>`, where the next Tab starts the document over. The condition is therefore "where is
|
|
45
|
+
* the focus now", not "which of my buttons was pressed". `FilterBar` has the same shape of
|
|
46
|
+
* problem and the same answer: remember where the reader was, and go back there.
|
|
47
|
+
*/
|
|
48
|
+
export declare function BulkActionBar({ count, noun, children, onClear, outside, total, onSelectAll, clearLabel, className, ...rest }: BulkActionBarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
import "./Callout.css";
|
|
4
|
+
export type CalloutTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
5
|
+
export type CalloutVariant = "subtle" | "outline";
|
|
6
|
+
export type CalloutProps = {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
/** What it is about. A callout with only a body is a paragraph in a coloured box. */
|
|
9
|
+
title?: ReactNode;
|
|
10
|
+
tone?: CalloutTone;
|
|
11
|
+
variant?: CalloutVariant;
|
|
12
|
+
/** Overrides the glyph the tone would have chosen. */
|
|
13
|
+
icon?: LucideIcon;
|
|
14
|
+
/** What to do about it. One or two things, at the end. */
|
|
15
|
+
actions?: ReactNode;
|
|
16
|
+
onDismiss?: () => void;
|
|
17
|
+
dismissLabel?: string;
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
/**
|
|
20
|
+
* Say it when it appears.
|
|
21
|
+
*
|
|
22
|
+
* A callout that was on the page at load has already been read in document order, and
|
|
23
|
+
* announcing it again is noise. One that arrives because the reader did something has to
|
|
24
|
+
* announce itself, or the screen changed and nothing was said. `assertive` interrupts and
|
|
25
|
+
* is for the failure the reader cannot carry on past.
|
|
26
|
+
*/
|
|
27
|
+
live?: "polite" | "assertive";
|
|
28
|
+
className?: string;
|
|
29
|
+
[key: `data-${string}`]: unknown;
|
|
30
|
+
[key: `aria-${string}`]: unknown;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* A notice in the flow of the page.
|
|
34
|
+
*
|
|
35
|
+
* Not a toast: it stays, it can be read at leisure, and it sits next to the thing it is
|
|
36
|
+
* about. Everything that has to be true after the reader looks away belongs here rather
|
|
37
|
+
* than in something that leaves on a timer.
|
|
38
|
+
*
|
|
39
|
+
* The tone never carries the message on its own. A red box says "this matters" to a reader
|
|
40
|
+
* who can see it and nothing at all to one who cannot — so the glyph differs by tone as well
|
|
41
|
+
* as the colour, and the words have to say which of the five it is.
|
|
42
|
+
*/
|
|
43
|
+
export declare function Callout({ children, title, tone, variant, icon, actions, onDismiss, dismissLabel, as: Element, live, className, ...rest }: CalloutProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import { type ElementType, type ReactNode, type Ref } from "react";
|
|
2
|
+
import "./Card.css";
|
|
3
|
+
export type CardVariant = "outlined" | "elevated" | "filled";
|
|
4
|
+
export type CardPadding = "none" | "sm" | "md" | "lg";
|
|
5
|
+
export type CardProps = CardBase & ({
|
|
6
|
+
loading: true;
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
} | {
|
|
9
|
+
loading?: false;
|
|
10
|
+
children: ReactNode;
|
|
11
|
+
});
|
|
12
|
+
type CardBase = {
|
|
13
|
+
variant?: CardVariant;
|
|
14
|
+
padding?: CardPadding;
|
|
15
|
+
as?: ElementType;
|
|
16
|
+
/**
|
|
17
|
+
* The whole card is the target, and one link inside it is what makes it one.
|
|
18
|
+
*
|
|
19
|
+
* Not a `<button>` or an `<a>` wrapping everything: a card almost always holds another
|
|
20
|
+
* control — a menu, a "저장", a tag — and interactive content nested inside interactive
|
|
21
|
+
* content is invalid HTML that browsers repair by dropping one of the two. So the card
|
|
22
|
+
* stays a plain container, the link marked `CardLink` stretches its own hit area over it,
|
|
23
|
+
* and everything else interactive is lifted above that.
|
|
24
|
+
*
|
|
25
|
+
* The link is what is in the tab order, once, with its own name.
|
|
26
|
+
*/
|
|
27
|
+
interactive?: boolean;
|
|
28
|
+
selected?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
/** Declared because the lens needs this node too. Both get it; see `useComposedRef`. */
|
|
31
|
+
ref?: Ref<HTMLElement>;
|
|
32
|
+
[key: `data-${string}`]: unknown;
|
|
33
|
+
[key: `aria-${string}`]: unknown;
|
|
34
|
+
};
|
|
35
|
+
export declare const Card: import("react").ForwardRefExoticComponent<(Omit<CardBase & {
|
|
36
|
+
loading: true;
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
}, "ref"> | Omit<CardBase & {
|
|
39
|
+
loading?: false;
|
|
40
|
+
children: ReactNode;
|
|
41
|
+
}, "ref">) & import("react").RefAttributes<HTMLElement>>;
|
|
42
|
+
export type CardLinkProps = {
|
|
43
|
+
children: ReactNode;
|
|
44
|
+
href?: string;
|
|
45
|
+
onClick?: () => void;
|
|
46
|
+
className?: string;
|
|
47
|
+
[key: `data-${string}`]: unknown;
|
|
48
|
+
[key: `aria-${string}`]: unknown;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* The one control that owns the card.
|
|
52
|
+
*
|
|
53
|
+
* Its text is the card's name — which is why it goes around the title rather than being an
|
|
54
|
+
* invisible box over the whole thing. A stretched link with no text is a link announced as
|
|
55
|
+
* its own URL.
|
|
56
|
+
*/
|
|
57
|
+
export declare function CardLink({ children, href, onClick, className, ...rest }: CardLinkProps): import("react").JSX.Element;
|
|
58
|
+
export type CardHeaderProps = {
|
|
59
|
+
title: ReactNode;
|
|
60
|
+
description?: ReactNode;
|
|
61
|
+
/** Before the title — an avatar, an icon, a thumbnail. */
|
|
62
|
+
media?: ReactNode;
|
|
63
|
+
/** After it — a badge, a menu, a price. */
|
|
64
|
+
aside?: ReactNode;
|
|
65
|
+
as?: ElementType;
|
|
66
|
+
className?: string;
|
|
67
|
+
[key: `data-${string}`]: unknown;
|
|
68
|
+
[key: `aria-${string}`]: unknown;
|
|
69
|
+
};
|
|
70
|
+
export declare function CardHeader({ title, description, media, aside, as: Heading, className, ...rest }: CardHeaderProps): import("react").JSX.Element;
|
|
71
|
+
export type CardSlotProps = {
|
|
72
|
+
children: ReactNode;
|
|
73
|
+
className?: string;
|
|
74
|
+
[key: `data-${string}`]: unknown;
|
|
75
|
+
[key: `aria-${string}`]: unknown;
|
|
76
|
+
};
|
|
77
|
+
export declare function CardBody({ children, className, ...rest }: CardSlotProps): import("react").JSX.Element;
|
|
78
|
+
/** The end of the card. Divided from the body, because it is usually where the actions are. */
|
|
79
|
+
export declare function CardFooter({ children, className, ...rest }: CardSlotProps): import("react").JSX.Element;
|
|
80
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Carousel.css";
|
|
3
|
+
export type CarouselPeek = "none" | "sm" | "md";
|
|
4
|
+
export type CarouselIndicator = "dots" | "count" | "none";
|
|
5
|
+
type CarouselControls = "bar" | "overlay";
|
|
6
|
+
export type CarouselProps = {
|
|
7
|
+
/** What the row is of. "상품 사진", "추천 강좌". Names the scroller. */
|
|
8
|
+
label: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
/**
|
|
11
|
+
* How much of the next item shows past the edge.
|
|
12
|
+
*
|
|
13
|
+
* `none` is one item filling the width, and it is the version that says nothing about
|
|
14
|
+
* whether there is a second one. Every carousel in the reference set showed a sliver.
|
|
15
|
+
*/
|
|
16
|
+
peek?: CarouselPeek;
|
|
17
|
+
/** Dots, "4 / 5", or neither. Both are read-outs; the buttons are the controls. */
|
|
18
|
+
indicator?: CarouselIndicator;
|
|
19
|
+
/**
|
|
20
|
+
* 화살표가 어디에 서는가.
|
|
21
|
+
*
|
|
22
|
+
* `bar`는 줄 아래에 이전·표시·다음을 한 줄로 놓습니다. `overlay`는 그 줄을 통째로 항목
|
|
23
|
+
* 위에 겹칩니다 — 화살표는 좌우 끝에, 표시는 아래쪽 가운데에. 감추는 것이 아니라 자리를
|
|
24
|
+
* 옮기는 것입니다. 사진이 판 전체인 카드가 늘어설 때 아래에 줄을 하나 더 두면 그만큼
|
|
25
|
+
* 카드가 짧아지기 때문이고, 참조 구현의 카드 캐러셀이 그 모양입니다.
|
|
26
|
+
*/
|
|
27
|
+
controls?: CarouselControls;
|
|
28
|
+
className?: string;
|
|
29
|
+
[key: `data-${string}`]: unknown;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* A row of items, one at a time, with the next one showing.
|
|
33
|
+
*
|
|
34
|
+
* **The scroll is the browser's.** `scroll-snap` does the gesture — a finger, a trackpad, a
|
|
35
|
+
* shift-wheel and a touchpad's momentum all work without this component hearing about any of
|
|
36
|
+
* them, and each one it re-implemented would be one it got slightly wrong. What is left for
|
|
37
|
+
* the component is the two things the browser has no opinion about: which item is current, and
|
|
38
|
+
* how to get to the next one without a pointer.
|
|
39
|
+
*
|
|
40
|
+
* **The dots are a read-out, not a control.** Five dots side by side are five targets under
|
|
41
|
+
* 24px, which WCAG 2.5.8 refuses and a thumb refuses before it does. Three of the five
|
|
42
|
+
* reference screens put arrows *next to* the dots for exactly this reason, and the two that
|
|
43
|
+
* did not left no pointer-free way through the row at all. So: dots say where you are, the
|
|
44
|
+
* buttons move you, and the scroller itself takes a Tab stop so the arrow keys work on it.
|
|
45
|
+
*
|
|
46
|
+
* **Which item is current is measured, and it is a whole number.** That makes it a `data-*`
|
|
47
|
+
* attribute rather than a custom property — the third place a value may go is for quantities
|
|
48
|
+
* a finger is choosing continuously, and this is not one. An `IntersectionObserver` answers it
|
|
49
|
+
* without arithmetic that would have to agree with the stylesheet's gaps and padding.
|
|
50
|
+
*/
|
|
51
|
+
export declare function Carousel({ label, children, peek, indicator, controls, className, ...rest }: CarouselProps): import("react").JSX.Element;
|
|
52
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import "./Combobox.css";
|
|
2
|
+
export type ComboboxOption = {
|
|
3
|
+
value: string;
|
|
4
|
+
label: string;
|
|
5
|
+
/** A second line under the label — an email, a code, a count. */
|
|
6
|
+
description?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
};
|
|
9
|
+
export type ComboboxProps = {
|
|
10
|
+
options: ComboboxOption[];
|
|
11
|
+
value: string | null;
|
|
12
|
+
onValueChange: (value: string | null) => void;
|
|
13
|
+
/** What is being chosen. "담당자", "도시". Names the field. */
|
|
14
|
+
label: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
/** What to say when nothing matches. */
|
|
17
|
+
emptyMessage?: string;
|
|
18
|
+
/**
|
|
19
|
+
* 적히는 대로 알려 줍니다.
|
|
20
|
+
*
|
|
21
|
+
* 목록을 부르는 쪽이 만들 때 필요합니다 — 서버에서 후보를 받아 오는 화면은 무엇이
|
|
22
|
+
* 적혔는지를 알아야 요청을 보냅니다. 이 통로가 없는 동안 그런 표본은 후보를 한 번도
|
|
23
|
+
* 만들지 못하고 늘 「없음」만 보여 주고 있었습니다.
|
|
24
|
+
*/
|
|
25
|
+
onQueryChange?: (query: string) => void;
|
|
26
|
+
size?: "sm" | "md" | "lg";
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
invalid?: boolean;
|
|
29
|
+
id?: string;
|
|
30
|
+
"aria-describedby"?: string;
|
|
31
|
+
"aria-labelledby"?: string;
|
|
32
|
+
required?: boolean;
|
|
33
|
+
className?: string;
|
|
34
|
+
[key: `data-${string}`]: unknown;
|
|
35
|
+
[key: `aria-${string}`]: unknown;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* A field that filters a list as you type.
|
|
39
|
+
*
|
|
40
|
+
* The focus never leaves the input. That is the whole shape of the pattern and the thing
|
|
41
|
+
* most implementations get wrong: the reader is typing, so the caret has to stay where they
|
|
42
|
+
* are typing, and the list is walked with `aria-activedescendant` rather than by moving
|
|
43
|
+
* focus into it. A listbox that takes the focus is a listbox the reader cannot keep typing
|
|
44
|
+
* into.
|
|
45
|
+
*
|
|
46
|
+
* Not a `Select`. A select is a short closed list the platform draws — a wheel on iOS, the
|
|
47
|
+
* operating system's own keyboard search — and there is no reason to rebuild that. This is
|
|
48
|
+
* for the list too long to scroll: two hundred cities, every person in a company.
|
|
49
|
+
*/
|
|
50
|
+
export declare function Combobox({ options, value, onValueChange, label, placeholder, emptyMessage, onQueryChange, size, disabled, invalid, id, "aria-describedby": describedBy, "aria-labelledby": labelledBy, required, className, ...rest }: ComboboxProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
import "./CommandPalette.css";
|
|
3
|
+
export type Command = {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
/** A second line, or the shortcut this command also answers to. */
|
|
7
|
+
hint?: string;
|
|
8
|
+
/** Heading this command files under. Commands with none are drawn without one, in place. */
|
|
9
|
+
group?: string;
|
|
10
|
+
icon?: LucideIcon;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
run: () => void;
|
|
13
|
+
};
|
|
14
|
+
export type CommandPaletteProps = {
|
|
15
|
+
open: boolean;
|
|
16
|
+
onOpenChange: (open: boolean) => void;
|
|
17
|
+
commands: Command[];
|
|
18
|
+
/** Names the dialog. */
|
|
19
|
+
label?: string;
|
|
20
|
+
placeholder?: string;
|
|
21
|
+
emptyMessage?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Whether ⌘K / Ctrl+K opens it from anywhere on the page.
|
|
24
|
+
*
|
|
25
|
+
* On by default, because a palette that does not answer the shortcut is a dialog with a
|
|
26
|
+
* filter in it. Off for the adopter who already owns their keyboard map.
|
|
27
|
+
*/
|
|
28
|
+
hotkey?: boolean;
|
|
29
|
+
className?: string;
|
|
30
|
+
[key: `data-${string}`]: unknown;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Everything the page can do, reachable by typing part of its name.
|
|
34
|
+
*
|
|
35
|
+
* Not a `Combobox`, and the reason is what happens on Enter. A combobox fills a field: it
|
|
36
|
+
* has a value, that value survives closing, and choosing is the last step. A palette runs
|
|
37
|
+
* something and keeps no value at all — the list is verbs, not options. Folding them
|
|
38
|
+
* together would mean one component whose `onValueChange` sometimes means "the field now
|
|
39
|
+
* holds this" and sometimes means "this just happened."
|
|
40
|
+
*
|
|
41
|
+
* What is borrowed is the technique, which `Combobox` got right: the focus never leaves the
|
|
42
|
+
* input. The reader is typing, so the caret stays where they are typing and the list is
|
|
43
|
+
* walked with `aria-activedescendant`. A listbox that takes the focus to show which row is
|
|
44
|
+
* active is a listbox that cannot be filtered any further.
|
|
45
|
+
*
|
|
46
|
+
* The filter resets on open and the active row resets on every keystroke. Both are the same
|
|
47
|
+
* failure avoided twice: a palette that reopens holding the last query answers a shortcut
|
|
48
|
+
* with a stale list, and one that keeps its active index after the list has changed under it
|
|
49
|
+
* runs whatever moved into that position.
|
|
50
|
+
*/
|
|
51
|
+
export declare function CommandPalette({ open, onOpenChange, commands, label, placeholder, emptyMessage, hotkey, className, ...rest }: CommandPaletteProps): import("react").JSX.Element;
|