@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,71 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
import "./MorphIcon.css";
|
|
3
|
+
export type MorphIconSize = "xs" | "sm" | "md" | "lg";
|
|
4
|
+
/**
|
|
5
|
+
* What arriving means, which is what decides how the new glyph lands.
|
|
6
|
+
*
|
|
7
|
+
* `archive/ui-assets/morph-state-icon` measured this and it is the part of that component
|
|
8
|
+
* worth carrying over whole: a result that has arrived settles, and a failure does not. A
|
|
9
|
+
* check mark that bounces in reads as a small celebration; a cross that bounces in reads as
|
|
10
|
+
* a component that did not understand what it was saying.
|
|
11
|
+
*/
|
|
12
|
+
export type MorphIconTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
13
|
+
export type MorphIconProps = {
|
|
14
|
+
/**
|
|
15
|
+
* The glyph that is true **now**. Change it and the exchange plays.
|
|
16
|
+
*
|
|
17
|
+
* Omitted is a real value rather than an error: an empty slot of the right size, which is
|
|
18
|
+
* what a file row needs before its result exists. The box is already there, so the name
|
|
19
|
+
* beside it does not move when the tick arrives.
|
|
20
|
+
*/
|
|
21
|
+
icon?: LucideIcon;
|
|
22
|
+
/**
|
|
23
|
+
* The state in words, and the accessible name of the whole thing.
|
|
24
|
+
*
|
|
25
|
+
* `"복사"` → `"복사함"`, not `"복사"` twice. The glyph is the part a reader may not be able
|
|
26
|
+
* to see and it is the only part that changed, so a label that does not change with it is
|
|
27
|
+
* a component announcing the old state for as long as it is on screen.
|
|
28
|
+
*
|
|
29
|
+
* Omitted, everything here is `aria-hidden` — right when a label beside it already says
|
|
30
|
+
* the state, wrong when nothing does. The same rule `Icon` draws.
|
|
31
|
+
*/
|
|
32
|
+
label?: string;
|
|
33
|
+
tone?: MorphIconTone;
|
|
34
|
+
size?: MorphIconSize;
|
|
35
|
+
className?: string;
|
|
36
|
+
[key: `data-${string}`]: unknown;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* One slot, and the glyph in it became something else.
|
|
40
|
+
*
|
|
41
|
+
* **It does not interpolate paths, and that is a decision rather than a shortcut.** The
|
|
42
|
+
* previous line of work shipped a real morphing engine — arcs to cubics, subpath padding,
|
|
43
|
+
* segment resampling, winding correspondence — and its own README records why it had to:
|
|
44
|
+
* two glyphs from a real icon set share no command count, no vocabulary, no start point and
|
|
45
|
+
* no winding direction. Four hundred lines go into making a clipboard *comparable* to a
|
|
46
|
+
* check mark, and the frame halfway between them is neither of those things. Every exchange
|
|
47
|
+
* this library actually has is a trade of unrelated shapes — `Eye`/`EyeOff`, `Mic`/`MicOff`,
|
|
48
|
+
* `Check`/`Minus`, `ShieldAlert`/`ShieldCheck`, `CheckCircle2`/`XCircle`, `ChevronsUpDown`/
|
|
49
|
+
* `ArrowUp` — and not one of them is the same shape at another angle. So the trade is what
|
|
50
|
+
* gets drawn, and the rule this stage runs on holds: an effect carries a fact or it does not
|
|
51
|
+
* exist.
|
|
52
|
+
*
|
|
53
|
+
* **The box never changes size.** A row of icons with one of them mid-transition is a row
|
|
54
|
+
* that would otherwise push its neighbours, and the reason to draw the change at all is that
|
|
55
|
+
* the thing did *not* move.
|
|
56
|
+
*
|
|
57
|
+
* **It does not go inside a `Button` or an `IconButton`.** Those take `icon` as a
|
|
58
|
+
* `LucideIcon` and draw it themselves; a node handed to `Button` lands in `button__label`,
|
|
59
|
+
* which is the text slot — ellipsis, no gap, hard against the word. Every exchange site this
|
|
60
|
+
* library actually has is a status mark beside a control rather than the control's own glyph
|
|
61
|
+
* — `Dropzone`'s file rows, `RunStatusCard`'s mark, `ApprovalGate` — so that is the shape
|
|
62
|
+
* this is built for. Making a toggle's own glyph exchange would be an axis on those two
|
|
63
|
+
* components rather than a slot on them, and that is a separate decision about forty call
|
|
64
|
+
* sites.
|
|
65
|
+
*
|
|
66
|
+
* **The state is in the accessible name, not in the motion.** `label` changes with the glyph,
|
|
67
|
+
* so a reader who cannot see either still gets the new state — and a still screenshot says
|
|
68
|
+
* which state this is in, because the state is a shape and a word rather than a transition
|
|
69
|
+
* somebody had to be watching.
|
|
70
|
+
*/
|
|
71
|
+
export declare function MorphIcon({ icon, label, tone, size, className, ...rest }: MorphIconProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import "./NumberFlow.css";
|
|
2
|
+
export type NumberFlowSize = "sm" | "md" | "lg";
|
|
3
|
+
export type NumberFlowProps = {
|
|
4
|
+
/** The number that is true now. Change it and the digits that changed roll. */
|
|
5
|
+
value: number;
|
|
6
|
+
/**
|
|
7
|
+
* How the number is written. Locale, currency, unit, rounding — all of it the host's.
|
|
8
|
+
*
|
|
9
|
+
* Defaults to the digits and nothing else. A component that reached for
|
|
10
|
+
* `toLocaleString()` on its own would be a component that picked a locale for an adopter
|
|
11
|
+
* who had already picked one, and the disagreement would show up on one screen out of
|
|
12
|
+
* forty. `PriceDisplay` draws the same line.
|
|
13
|
+
*/
|
|
14
|
+
format?: (value: number) => string;
|
|
15
|
+
/**
|
|
16
|
+
* How big the number is, and it is the subject of its box at every step.
|
|
17
|
+
*
|
|
18
|
+
* The three steps land on `--text-md`, `--text-xl` and `--text-3xl` — two apart on the
|
|
19
|
+
* type scale each time, because a number one step above the words around it reads as a
|
|
20
|
+
* misprint rather than as a hierarchy. `docs/DESIGN.md` §5 measured why this matters:
|
|
21
|
+
* eight sizes exist and three of them carry 89% of the library.
|
|
22
|
+
*/
|
|
23
|
+
size?: NumberFlowSize;
|
|
24
|
+
className?: string;
|
|
25
|
+
[key: `data-${string}`]: unknown;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* A number that changed, and which way it went.
|
|
29
|
+
*
|
|
30
|
+
* **Only the digits that changed move.** 99 → 100 rolls three places; 100 → 101 rolls one.
|
|
31
|
+
* A component that re-ran every digit on every change would be saying "all of this is new"
|
|
32
|
+
* about a number where one thing happened, and the reader's eye would have nowhere to land.
|
|
33
|
+
* The digits are matched from the right, so a number growing a place pushes the new digit in
|
|
34
|
+
* at the front rather than shifting the meaning of every column.
|
|
35
|
+
*
|
|
36
|
+
* **The direction is the fact, and the motion is only what makes it noticeable.** Under
|
|
37
|
+
* `prefers-reduced-motion` the roll collapses and the number simply is what it is — which is
|
|
38
|
+
* the correct answer rather than a degraded one. A reader who saw 3 and now sees 5 knows
|
|
39
|
+
* which way it went; what the roll buys is catching the eye of a reader who was not looking,
|
|
40
|
+
* and catching the eye is exactly what that preference is asking you not to do.
|
|
41
|
+
*
|
|
42
|
+
* **The value is text.** The digit on screen is a real text node and the outgoing copy is
|
|
43
|
+
* `aria-hidden` and out of flow, so a screen reader and a selection both get the number and
|
|
44
|
+
* not a column of two. Nothing announces: a counter with a live region on it is a counter
|
|
45
|
+
* that reads the whole dashboard out loud every few seconds.
|
|
46
|
+
*/
|
|
47
|
+
export declare function NumberFlow({ value, format, size, className, ...rest }: NumberFlowProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import type { LucideIcon } from "lucide-react";
|
|
2
|
+
import { type InputSize } from "../../common/Input";
|
|
3
|
+
import type { ButtonTone } from "../../common/Button";
|
|
4
|
+
import "./NumberInput.css";
|
|
5
|
+
export type NumberInputProps = {
|
|
6
|
+
value: number;
|
|
7
|
+
onValueChange: (value: number) => void;
|
|
8
|
+
/**
|
|
9
|
+
* What is being counted. "수량", "인원", "반복 횟수".
|
|
10
|
+
*
|
|
11
|
+
* Names the field and both buttons. Two quantity steppers on a page whose buttons are both
|
|
12
|
+
* called "늘리기" are two pairs of buttons a reader cannot tell apart — the same problem
|
|
13
|
+
* `Tag` has with its remove control, and the same answer.
|
|
14
|
+
*/
|
|
15
|
+
label: string;
|
|
16
|
+
min?: number;
|
|
17
|
+
max?: number;
|
|
18
|
+
step?: number;
|
|
19
|
+
/** Shown after the value and said aloud with it. "개", "명", "분". */
|
|
20
|
+
unit?: string;
|
|
21
|
+
size?: InputSize;
|
|
22
|
+
/**
|
|
23
|
+
* What the decrement control becomes once the value is at its floor.
|
|
24
|
+
*
|
|
25
|
+
* Asked for by `QuantityStepper`: in a basket, one below one is not zero — it is removing
|
|
26
|
+
* the line, and every shop draws that as the minus turning into a bin. Without this the
|
|
27
|
+
* button is simply disabled at 1 and the reader has to find some other control to take the
|
|
28
|
+
* item out with.
|
|
29
|
+
*/
|
|
30
|
+
atFloor?: {
|
|
31
|
+
icon: LucideIcon;
|
|
32
|
+
label: string;
|
|
33
|
+
onPress: () => void;
|
|
34
|
+
tone?: ButtonTone;
|
|
35
|
+
};
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
name?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
[key: `data-${string}`]: unknown;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* A number, and two ways to change it by one.
|
|
43
|
+
*
|
|
44
|
+
* Not `<input type="number">`, and that is a decision rather than an oversight. A number
|
|
45
|
+
* input changes its value when a reader scrolls the page with the pointer over it — a
|
|
46
|
+
* quantity silently becoming 7 while someone scrolls past — and the usual repair is to blur
|
|
47
|
+
* the field on wheel, which takes the reader out of it instead. It also reports an empty
|
|
48
|
+
* string for anything it cannot parse, so "12e" and "" are the same value to the component.
|
|
49
|
+
*
|
|
50
|
+
* So: a text field that carries `role="spinbutton"` and says its own bounds, with the arrow
|
|
51
|
+
* keys, Home, End and the page keys implemented here. Everything a number input was going to
|
|
52
|
+
* give is declared rather than inherited, and nothing it was going to take comes with it.
|
|
53
|
+
*/
|
|
54
|
+
export declare function NumberInput({ value, onValueChange, label, min, max, step, unit, size, atFloor, disabled, name, className, ...rest }: NumberInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type InputSize } from "../../common/Input";
|
|
2
|
+
import "./PasswordInput.css";
|
|
3
|
+
export type PasswordInputPurpose = "current" | "new";
|
|
4
|
+
type PasswordInputBase = {
|
|
5
|
+
/** Names the field for assistive technology when nothing else does. */
|
|
6
|
+
label?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
size?: InputSize;
|
|
11
|
+
/**
|
|
12
|
+
* Signing in, or choosing one.
|
|
13
|
+
*
|
|
14
|
+
* This is the whole of `autocomplete`, and getting it wrong is what makes a password
|
|
15
|
+
* manager fill the sign-in password into a "new password" field, or fail to offer to save
|
|
16
|
+
* a new one. `autocomplete="off"` is the version that does both.
|
|
17
|
+
*/
|
|
18
|
+
purpose?: PasswordInputPurpose;
|
|
19
|
+
invalid?: boolean;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
required?: boolean;
|
|
22
|
+
revealLabel?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
[key: `data-${string}`]: unknown;
|
|
25
|
+
[key: `aria-${string}`]: unknown;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* Controlled or uncontrolled, and never half of one.
|
|
29
|
+
*
|
|
30
|
+
* `value` without `onValueChange` is a field that renders what it was given and refuses every
|
|
31
|
+
* keystroke — and because `onChange` is always attached, React does not warn about it. The
|
|
32
|
+
* two arrive together or neither does.
|
|
33
|
+
*/
|
|
34
|
+
export type PasswordInputProps = PasswordInputBase & ({
|
|
35
|
+
value: string;
|
|
36
|
+
onValueChange: (value: string) => void;
|
|
37
|
+
defaultValue?: never;
|
|
38
|
+
} | {
|
|
39
|
+
value?: never;
|
|
40
|
+
defaultValue?: string;
|
|
41
|
+
onValueChange?: (value: string) => void;
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* A password, and a way to check what you typed.
|
|
45
|
+
*
|
|
46
|
+
* The toggle's name does not change with its state — the rule `ToggleButton` sets. "비밀번호
|
|
47
|
+
* 표시" that becomes "비밀번호 숨기기" while `aria-pressed` also flips reads as two halves
|
|
48
|
+
* contradicting each other. The name says what the control is for; the attribute says
|
|
49
|
+
* whether it is on. The icon changes, because the icon is for the reader who can see it and
|
|
50
|
+
* is announced to nobody.
|
|
51
|
+
*/
|
|
52
|
+
export declare function PasswordInput({ value, defaultValue, onValueChange, label, size, purpose, disabled, revealLabel, className, ...rest }: PasswordInputProps): import("react").JSX.Element;
|
|
53
|
+
export {};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type InputSize } from "../../common/Input";
|
|
2
|
+
import "./SearchInput.css";
|
|
3
|
+
export type SearchInputProps = {
|
|
4
|
+
value: string;
|
|
5
|
+
onValueChange: (value: string) => void;
|
|
6
|
+
/** Enter, and the clear button's aftermath. Not fired on every keystroke. */
|
|
7
|
+
onSearch?: (value: string) => void;
|
|
8
|
+
/**
|
|
9
|
+
* What is being searched. "주문 검색", "사람 찾기".
|
|
10
|
+
*
|
|
11
|
+
* A search field labelled only by its placeholder is a field whose name disappears the
|
|
12
|
+
* moment someone types in it — and placeholders are not names to begin with.
|
|
13
|
+
*/
|
|
14
|
+
label: string;
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
size?: InputSize;
|
|
17
|
+
/** A result is on its way. Replaces the clear button rather than crowding beside it. */
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
clearLabel?: string;
|
|
21
|
+
name?: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
[key: `data-${string}`]: unknown;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* A field for finding things.
|
|
27
|
+
*
|
|
28
|
+
* `type="search"`, for the autofill history and the input purpose — but its native clear
|
|
29
|
+
* button is hidden and a real one drawn in its place, because the browser's is not in the
|
|
30
|
+
* tab order and has no name. A control a keyboard cannot reach is a control half the
|
|
31
|
+
* readers of this field do not have.
|
|
32
|
+
*/
|
|
33
|
+
export declare function SearchInput({ value, onValueChange, onSearch, label, placeholder, size, loading, disabled, clearLabel, name, className, ...rest }: SearchInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
import "./SegmentedControl.css";
|
|
4
|
+
export type SegmentedControlSize = "sm" | "md";
|
|
5
|
+
export type SegmentedControlMotion = "slide" | "none";
|
|
6
|
+
export type SegmentedControlOption = {
|
|
7
|
+
value: string;
|
|
8
|
+
label: ReactNode;
|
|
9
|
+
icon?: LucideIcon;
|
|
10
|
+
disabled?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type SegmentedControlProps = {
|
|
13
|
+
/**
|
|
14
|
+
* The name the browser builds the radio group from. Required.
|
|
15
|
+
*
|
|
16
|
+
* Radios with no shared name are not a group: they behave like a row of checkboxes and
|
|
17
|
+
* each announces itself as "1 of 1".
|
|
18
|
+
*/
|
|
19
|
+
name: string;
|
|
20
|
+
options: SegmentedControlOption[];
|
|
21
|
+
value: string;
|
|
22
|
+
onChange: (value: string) => void;
|
|
23
|
+
/** What the whole control chooses between. "보기 방식", "기간". */
|
|
24
|
+
label: string;
|
|
25
|
+
size?: SegmentedControlSize;
|
|
26
|
+
/** The thumb slides between segments, or the segments simply fill. */
|
|
27
|
+
motion?: SegmentedControlMotion;
|
|
28
|
+
fullWidth?: boolean;
|
|
29
|
+
disabled?: boolean;
|
|
30
|
+
className?: string;
|
|
31
|
+
[key: `data-${string}`]: unknown;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* A few alternatives, all visible, one chosen.
|
|
35
|
+
*
|
|
36
|
+
* Real radios underneath, clipped the way Checkbox and Radio clip theirs. That is what makes
|
|
37
|
+
* arrow keys move between segments and Tab skip past the whole control — the behaviour a
|
|
38
|
+
* reader expects from a group of alternatives, and the behaviour that is hardest to rebuild
|
|
39
|
+
* out of buttons.
|
|
40
|
+
*
|
|
41
|
+
* More than about six alternatives and this stops being the right control: the segments turn
|
|
42
|
+
* into slivers and a `Select` is what the reader wanted.
|
|
43
|
+
*/
|
|
44
|
+
export declare function SegmentedControl({ name, options, value, onChange, label, size, motion, fullWidth, disabled, className, ...rest }: SegmentedControlProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { MouseEvent } from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
import { type ButtonShape, type ButtonSize, type ButtonTone, type ButtonVariant } from "../../common/Button";
|
|
4
|
+
import "./SplitButton.css";
|
|
5
|
+
export type SplitButtonProps = {
|
|
6
|
+
/** The action itself, said in words. Pressing the left half does this and nothing else. */
|
|
7
|
+
children: string;
|
|
8
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
9
|
+
/** Opens whatever holds the alternatives. This component does not own that list. */
|
|
10
|
+
onMenuToggle: () => void;
|
|
11
|
+
menuOpen?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* What the right half is called.
|
|
14
|
+
*
|
|
15
|
+
* Defaulted from the action, because "더 보기" on its own is a button a reader meets with
|
|
16
|
+
* no idea what it will show them. Three split buttons on a page would give three of them.
|
|
17
|
+
*/
|
|
18
|
+
menuLabel?: string;
|
|
19
|
+
/** The id of the list this opens, once something is rendering one. */
|
|
20
|
+
menuId?: string;
|
|
21
|
+
variant?: ButtonVariant;
|
|
22
|
+
tone?: ButtonTone;
|
|
23
|
+
size?: ButtonSize;
|
|
24
|
+
shape?: ButtonShape;
|
|
25
|
+
icon?: LucideIcon;
|
|
26
|
+
loading?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
className?: string;
|
|
29
|
+
[key: `data-${string}`]: unknown;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* One action, and a way to reach the others.
|
|
33
|
+
*
|
|
34
|
+
* Two buttons, not one button with two halves: the left half does the thing, the right half
|
|
35
|
+
* opens a list, and they are separately reachable, separately named and separately
|
|
36
|
+
* announced. A single control that does one thing when clicked on the left and another when
|
|
37
|
+
* clicked on the right is not reachable by keyboard at all.
|
|
38
|
+
*
|
|
39
|
+
* The list itself is not here. `Menu` belongs to the next layer, and a component that
|
|
40
|
+
* shipped half a menu to avoid waiting for it would be a component nobody could replace.
|
|
41
|
+
*/
|
|
42
|
+
export declare function SplitButton({ children, onClick, onMenuToggle, menuOpen, menuLabel, menuId, variant, tone, size, shape, icon, loading, disabled, className, ...rest }: SplitButtonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import "./StatusDot.css";
|
|
2
|
+
export type StatusDotTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
3
|
+
export type StatusDotSize = "sm" | "md";
|
|
4
|
+
export type StatusDotProps = {
|
|
5
|
+
/**
|
|
6
|
+
* What the dot means, in words. Required, and it is the whole reason this component
|
|
7
|
+
* exists rather than a `<span>` with a background colour.
|
|
8
|
+
*
|
|
9
|
+
* A coloured circle is a state to a reader who can separate green from amber and nothing
|
|
10
|
+
* at all to one who cannot — about one man in twelve for the first, and everyone using a
|
|
11
|
+
* screen reader for the second. The words may be hidden from the screen; they may not be
|
|
12
|
+
* absent.
|
|
13
|
+
*/
|
|
14
|
+
label: string;
|
|
15
|
+
tone?: StatusDotTone;
|
|
16
|
+
size?: StatusDotSize;
|
|
17
|
+
/** Leave the words to assistive technology alone. The dot still says them. */
|
|
18
|
+
labelHidden?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* A slow pulse, for a state that is still happening rather than settled.
|
|
21
|
+
*
|
|
22
|
+
* Stops entirely under `prefers-reduced-motion` — see the note in the stylesheet.
|
|
23
|
+
*/
|
|
24
|
+
pulse?: boolean;
|
|
25
|
+
className?: string;
|
|
26
|
+
[key: `data-${string}`]: unknown;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* The smallest thing a badge can be: a state, as a dot and a word.
|
|
30
|
+
*/
|
|
31
|
+
export declare function StatusDot({ label, tone, size, labelHidden, pulse, className, ...rest }: StatusDotProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import type { MouseEvent, ReactNode } from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
import "./Tag.css";
|
|
4
|
+
export type TagVariant = "soft" | "outline" | "solid";
|
|
5
|
+
export type TagTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
6
|
+
export type TagSize = "sm" | "md";
|
|
7
|
+
export type TagShape = "rounded" | "pill";
|
|
8
|
+
export type TagProps = {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
variant?: TagVariant;
|
|
11
|
+
tone?: TagTone;
|
|
12
|
+
size?: TagSize;
|
|
13
|
+
shape?: TagShape;
|
|
14
|
+
icon?: LucideIcon;
|
|
15
|
+
/** Something before the label that is not an icon — an avatar, a colour swatch, a flag. */
|
|
16
|
+
leading?: ReactNode;
|
|
17
|
+
/**
|
|
18
|
+
* Makes the label a button. A filter chip that turns a facet on and off.
|
|
19
|
+
*
|
|
20
|
+
* The tag itself never becomes the button, because a removable tag would then be a button
|
|
21
|
+
* inside a button, which is invalid HTML and which browsers resolve by dropping one of
|
|
22
|
+
* them — usually the one the reader wanted.
|
|
23
|
+
*/
|
|
24
|
+
onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
25
|
+
/** Only meaningful with `onClick`. Reaches assistive technology as `aria-pressed`. */
|
|
26
|
+
selected?: boolean;
|
|
27
|
+
onRemove?: (event: MouseEvent<HTMLButtonElement>) => void;
|
|
28
|
+
/**
|
|
29
|
+
* What the remove button is called.
|
|
30
|
+
*
|
|
31
|
+
* Defaulted from the label when the label is a string, because eight buttons all called
|
|
32
|
+
* "제거" are eight buttons a reader cannot tell apart. When the label is not a string
|
|
33
|
+
* there is nothing to derive it from, and this should be given.
|
|
34
|
+
*/
|
|
35
|
+
removeLabel?: string;
|
|
36
|
+
/**
|
|
37
|
+
* `aria-disabled` rather than `disabled`, the rule Button set: a button that leaves the
|
|
38
|
+
* tab order takes any reader standing on it with it.
|
|
39
|
+
*/
|
|
40
|
+
disabled?: boolean;
|
|
41
|
+
className?: string;
|
|
42
|
+
[key: `data-${string}`]: unknown;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* A badge that can be acted on: picked, or taken off.
|
|
46
|
+
*/
|
|
47
|
+
export declare function Tag({ children, variant, tone, size, shape, icon, leading, onClick, selected, onRemove, removeLabel, disabled, className, ...rest }: TagProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "./TagInput.css";
|
|
2
|
+
export type TagInputSize = "sm" | "md";
|
|
3
|
+
export type TagInputProps = {
|
|
4
|
+
value: string[];
|
|
5
|
+
onValueChange: (value: string[]) => void;
|
|
6
|
+
/** What is being listed. "받는 사람", "기술 태그", "초대할 사람". */
|
|
7
|
+
label: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
/** How many, at most. The field stops accepting rather than silently dropping. */
|
|
10
|
+
max?: number;
|
|
11
|
+
size?: TagInputSize;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
[key: `data-${string}`]: unknown;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* A list of short values, typed one at a time.
|
|
18
|
+
*
|
|
19
|
+
* This one builds its own box rather than borrowing `Input`'s, and that is the difference
|
|
20
|
+
* between it and the other three fields in this layer. `Input` is a single row that centres
|
|
21
|
+
* its contents; this grows downwards as the list fills, and forcing that shape onto a
|
|
22
|
+
* component whose whole construction assumes one line would break it for everything else
|
|
23
|
+
* that uses it.
|
|
24
|
+
*
|
|
25
|
+
* What is typed is not yet a value. Enter and comma make it one; Backspace in an empty field
|
|
26
|
+
* takes the last one back — the two gestures every reader already tries.
|
|
27
|
+
*/
|
|
28
|
+
export declare function TagInput({ value, onValueChange, label, placeholder, max, size, disabled, className, ...rest }: TagInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import "./TextCycle.css";
|
|
2
|
+
export type TextCycleProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The line that is true **now**. Change it and the exchange plays.
|
|
5
|
+
*
|
|
6
|
+
* A string rather than a node, and that is the accessibility answer as much as a typing
|
|
7
|
+
* decision: what is on screen has to be the only thing a screen reader can reach, and a
|
|
8
|
+
* subtree is a place for a second focusable thing to hide behind an `aria-hidden` that is
|
|
9
|
+
* about to be applied to it.
|
|
10
|
+
*/
|
|
11
|
+
value: string;
|
|
12
|
+
className?: string;
|
|
13
|
+
[key: `data-${string}`]: unknown;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* One line, and it says something else now.
|
|
17
|
+
*
|
|
18
|
+
* **It owns no timer, and that is the whole design.** The obvious version of this component
|
|
19
|
+
* holds a pool of phrases and rotates them on an interval — and a phrase that changes
|
|
20
|
+
* because a timer fired says nothing about the work. It is a component drawing progress it
|
|
21
|
+
* has not been told about, which is the same thing `Waveform` refuses to do with amplitude
|
|
22
|
+
* and for the same reason. The host says what is true now; this draws the change. A host
|
|
23
|
+
* that really is cycling through steps it is really performing passes them one at a time,
|
|
24
|
+
* and gets exactly the same picture — the difference is only whether the movement was
|
|
25
|
+
* earned.
|
|
26
|
+
*
|
|
27
|
+
* **Nothing announces.** No live region, no `aria-live`, no `role="status"`. A status line
|
|
28
|
+
* that changes every few seconds and announces each change is a screen reader reading a
|
|
29
|
+
* progress bar out loud, and the reader cannot get past it to the thing they came for. The
|
|
30
|
+
* current line is ordinary text and the outgoing copy is `aria-hidden`, so assistive
|
|
31
|
+
* technology sees one sentence — the true one — at every moment. A host that genuinely needs
|
|
32
|
+
* a change announced wraps this in its own live region and chooses the politeness, which is
|
|
33
|
+
* a decision only it can make.
|
|
34
|
+
*
|
|
35
|
+
* **It sets no type.** No size, no weight, no colour, no family. This is a mechanism for
|
|
36
|
+
* exchanging one line for another and it inherits whatever the line was already wearing —
|
|
37
|
+
* a component that also decided how status lines look would have to be fought everywhere it
|
|
38
|
+
* was used.
|
|
39
|
+
*/
|
|
40
|
+
export declare function TextCycle({ value, className, ...rest }: TextCycleProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
import "./ToggleButton.css";
|
|
4
|
+
export type ToggleButtonVariant = "outline" | "ghost" | "soft";
|
|
5
|
+
export type ToggleButtonTone = "accent" | "neutral" | "success" | "warning" | "danger";
|
|
6
|
+
export type ToggleButtonSize = "sm" | "md" | "lg";
|
|
7
|
+
export type ToggleButtonShape = "rounded" | "pill";
|
|
8
|
+
export type ToggleButtonProps = {
|
|
9
|
+
/**
|
|
10
|
+
* What it controls — and it does not change when the state does.
|
|
11
|
+
*
|
|
12
|
+
* A button labelled "음소거" that becomes "음소거 해제" while `aria-pressed` also flips
|
|
13
|
+
* says the opposite thing twice, and a reader hears "음소거 해제, 눌림" and has to work out
|
|
14
|
+
* which half to believe. The label names the thing; `aria-pressed` says whether it is on.
|
|
15
|
+
*/
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
pressed: boolean;
|
|
18
|
+
onPressedChange: (pressed: boolean) => void;
|
|
19
|
+
variant?: ToggleButtonVariant;
|
|
20
|
+
tone?: ToggleButtonTone;
|
|
21
|
+
size?: ToggleButtonSize;
|
|
22
|
+
shape?: ToggleButtonShape;
|
|
23
|
+
icon?: LucideIcon;
|
|
24
|
+
/**
|
|
25
|
+
* `aria-disabled`, not `disabled` — the rule Button set and every button in this library
|
|
26
|
+
* follows. A disabled button leaves the tab order, so a reader standing on one that is
|
|
27
|
+
* switched off underneath them is dropped elsewhere with no idea why. Form controls are
|
|
28
|
+
* the other way round: `Checkbox`, `Radio` and `SegmentedControl` take the real attribute,
|
|
29
|
+
* because that is what keeps their value out of the submitted form.
|
|
30
|
+
*/
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
className?: string;
|
|
33
|
+
[key: `data-${string}`]: unknown;
|
|
34
|
+
[key: `aria-${string}`]: unknown;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* A button that stays down.
|
|
38
|
+
*
|
|
39
|
+
* `aria-pressed` rather than a checkbox, because this takes effect the moment it is pressed.
|
|
40
|
+
* A checkbox announces "checked" and waits for a submit; a toggle button announces "pressed"
|
|
41
|
+
* and has already done it.
|
|
42
|
+
*/
|
|
43
|
+
export declare function ToggleButton({ children, pressed, onPressedChange, variant, tone, size, shape, icon, disabled, className, ...rest }: ToggleButtonProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export * from "./AvatarGroup";
|
|
2
|
+
export * from "./ButtonGroup";
|
|
3
|
+
export * from "./ChoiceCard";
|
|
4
|
+
export * from "./InputGroup";
|
|
5
|
+
export * from "./MorphIcon";
|
|
6
|
+
export * from "./NumberFlow";
|
|
7
|
+
export * from "./NumberInput";
|
|
8
|
+
export * from "./PasswordInput";
|
|
9
|
+
export * from "./SearchInput";
|
|
10
|
+
export * from "./SegmentedControl";
|
|
11
|
+
export * from "./SplitButton";
|
|
12
|
+
export * from "./StatusDot";
|
|
13
|
+
export * from "./Tag";
|
|
14
|
+
export * from "./TagInput";
|
|
15
|
+
export * from "./TextCycle";
|
|
16
|
+
export * from "./ToggleButton";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../../ToggleButton-D6oEjMeF.js";
|
|
2
|
+
import { a as o, c as s, i as c, l, n as u, o as d, r as f, s as p, t as m } from "../../TagInput-BaGz-QKU.js";
|
|
3
|
+
import { t as h } from "../../Tag-Z8PjnJFt.js";
|
|
4
|
+
export { r as AvatarGroup, l as ButtonGroup, s as ChoiceCard, e as InputGroup, t as MorphIcon, p as NumberFlow, i as NumberInput, d as PasswordInput, o as SearchInput, c as SegmentedControl, f as SplitButton, u as StatusDot, h as Tag, m as TagInput, n as TextCycle, a as ToggleButton };
|