@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,63 @@
|
|
|
1
|
+
import { type MarkTone } from "../Mark";
|
|
2
|
+
import "./Highlight.css";
|
|
3
|
+
export type HighlightProps = {
|
|
4
|
+
/**
|
|
5
|
+
* A string, and only a string. Marking a run inside arbitrary children would mean walking
|
|
6
|
+
* a React tree and rebuilding it, and the rebuild loses element identity, keys and state.
|
|
7
|
+
* The component that needs that is a different component.
|
|
8
|
+
*/
|
|
9
|
+
children: string;
|
|
10
|
+
/**
|
|
11
|
+
* What to mark. A string, or several. An empty string, a whitespace-only string and an
|
|
12
|
+
* empty array all mean "mark nothing" — not "mark everything", which is what a naive
|
|
13
|
+
* regular expression built from `""` does.
|
|
14
|
+
*/
|
|
15
|
+
query: string | string[];
|
|
16
|
+
tone?: MarkTone;
|
|
17
|
+
className?: string;
|
|
18
|
+
[key: `data-${string}`]: unknown;
|
|
19
|
+
[key: `aria-${string}`]: unknown;
|
|
20
|
+
id?: string;
|
|
21
|
+
};
|
|
22
|
+
export type HighlightPart = {
|
|
23
|
+
text: string;
|
|
24
|
+
matched: boolean;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Split `value` into matched and unmatched runs.
|
|
28
|
+
*
|
|
29
|
+
* Exported so a caller can reuse the matching without the markup, and so the rules below can
|
|
30
|
+
* be tested as rules rather than as rendered output:
|
|
31
|
+
*
|
|
32
|
+
* - every term is escaped, so `c++` and `a.b` match themselves and `(` is not a syntax
|
|
33
|
+
* error thrown from render;
|
|
34
|
+
* - matching is case-insensitive, because a search field that finds `Seoul` for `seoul`
|
|
35
|
+
* and then highlights nothing has told the reader the match was somewhere else;
|
|
36
|
+
* - blank terms are dropped before the pattern is built. `new RegExp("()", "g")` matches
|
|
37
|
+
* the empty string at every position, and `String.split` on it returns every character
|
|
38
|
+
* as its own chunk with every other one "matched";
|
|
39
|
+
* - terms are sorted longest-first, which is what decides overlaps. The alternation `a|b`
|
|
40
|
+
* is ordered, so with `["로그", "로그인"]` the shorter term would win at the same start
|
|
41
|
+
* position and `인` would be left outside the mark. Longest-first marks `로그인`.
|
|
42
|
+
*
|
|
43
|
+
* Not handled, and it is a real limit rather than an oversight: Hangul is compared as
|
|
44
|
+
* composed syllables and nothing is normalised. `ㄱ` does not match `가`, a decomposed
|
|
45
|
+
* `NFD` string does not match its composed form, and the half-typed syllable an IME is still
|
|
46
|
+
* composing is not a term this will find. A search box that highlights while the user is
|
|
47
|
+
* mid-composition therefore flickers, and the fix belongs in the field — commit the term on
|
|
48
|
+
* `compositionend`, not on every keystroke.
|
|
49
|
+
*/
|
|
50
|
+
export declare function highlightParts(value: string, query: string | string[]): HighlightPart[];
|
|
51
|
+
/**
|
|
52
|
+
* A string with the searched-for run marked.
|
|
53
|
+
*
|
|
54
|
+
* This is the one place where a tint alone is allowed to carry the message, and the reason
|
|
55
|
+
* is that it is not carrying one: the reader typed the term, the term is still in the field,
|
|
56
|
+
* and the mark says where — not what. `Mark` on its own is the case that needs words.
|
|
57
|
+
*
|
|
58
|
+
* `SearchInput`, `Combobox` and `CommandPalette` do not do this today. They filter, and the
|
|
59
|
+
* row that survives the filter says nothing about which part of it matched; on a long label
|
|
60
|
+
* the reader re-reads the whole row to find out. Composing this into their option rows is
|
|
61
|
+
* the intended use, and the reason `children` is typed as a string is that their labels are.
|
|
62
|
+
*/
|
|
63
|
+
export declare function Highlight({ children, query, tone, className, ...rest }: HighlightProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { CSSProperties } from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
import "./Icon.css";
|
|
4
|
+
export type IconSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
5
|
+
export type IconTone = "inherit" | "default" | "muted" | "subtle" | "accent" | "success" | "warning" | "danger" | "on-fill";
|
|
6
|
+
export type IconProps = {
|
|
7
|
+
/**
|
|
8
|
+
* The icon itself, as a component rather than a name.
|
|
9
|
+
*
|
|
10
|
+
* A name would need a registry, and a registry is either every icon in the set — 1,500 of
|
|
11
|
+
* them in the bundle whether or not a page uses six — or a hand-maintained list that is
|
|
12
|
+
* always missing the one someone needs. Passing the component means the bundler drops
|
|
13
|
+
* what nobody imported.
|
|
14
|
+
*/
|
|
15
|
+
icon: LucideIcon;
|
|
16
|
+
size?: IconSize;
|
|
17
|
+
tone?: IconTone;
|
|
18
|
+
/**
|
|
19
|
+
* What the icon says, for a reader who cannot see it.
|
|
20
|
+
*
|
|
21
|
+
* Omitted is the honest default: most icons sit beside a label that already says it, and
|
|
22
|
+
* announcing it twice is worse than not announcing it at all. Without a label the icon is
|
|
23
|
+
* `aria-hidden` — declared decorative rather than left ambiguous.
|
|
24
|
+
*/
|
|
25
|
+
label?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
style?: CSSProperties;
|
|
28
|
+
[key: `data-${string}`]: unknown;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* An icon at a size and a tone the system knows.
|
|
32
|
+
*
|
|
33
|
+
* Nothing numeric reaches Lucide. Its components render `width`, `height` and `stroke-width`
|
|
34
|
+
* as presentation attributes, and a CSS property beats a presentation attribute — so the
|
|
35
|
+
* size and the weight of the stroke are set in the stylesheet from tokens, and this file
|
|
36
|
+
* passes none of them. That is what keeps an icon following a density change instead of
|
|
37
|
+
* carrying a number that was right once.
|
|
38
|
+
*/
|
|
39
|
+
export declare function Icon({ icon: Glyph, size, tone, label, className, style, ...rest }: IconProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { type MouseEvent, type Ref } from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
import type { ButtonShape, ButtonTone, ButtonVariant } from "../Button";
|
|
4
|
+
import "./IconButton.css";
|
|
5
|
+
export type IconButtonSize = "sm" | "md" | "lg";
|
|
6
|
+
export type IconButtonProps = {
|
|
7
|
+
icon: LucideIcon;
|
|
8
|
+
/**
|
|
9
|
+
* What it does. Required, and there is no version of this component without it.
|
|
10
|
+
*
|
|
11
|
+
* An icon-only control with no name reaches assistive technology as "button" and nothing
|
|
12
|
+
* else. Making the label optional would mean shipping a component whose most likely use is
|
|
13
|
+
* broken, so it is not optional.
|
|
14
|
+
*/
|
|
15
|
+
label: string;
|
|
16
|
+
variant?: ButtonVariant;
|
|
17
|
+
tone?: ButtonTone;
|
|
18
|
+
size?: IconButtonSize;
|
|
19
|
+
shape?: ButtonShape | "circle";
|
|
20
|
+
loading?: boolean;
|
|
21
|
+
disabled?: boolean;
|
|
22
|
+
type?: "button" | "submit" | "reset";
|
|
23
|
+
href?: string;
|
|
24
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
25
|
+
className?: string;
|
|
26
|
+
/** The button or anchor node, including when Radix supplies a trigger ref. */
|
|
27
|
+
ref?: Ref<HTMLButtonElement | HTMLAnchorElement>;
|
|
28
|
+
[key: `data-${string}`]: unknown;
|
|
29
|
+
[key: `aria-${string}`]: unknown;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* A button that is only its icon, and therefore only its label.
|
|
33
|
+
*/
|
|
34
|
+
export declare const IconButton: import("react").ForwardRefExoticComponent<Omit<IconButtonProps, "ref"> & import("react").RefAttributes<HTMLAnchorElement | HTMLButtonElement>>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Indicator.css";
|
|
3
|
+
export type IndicatorPosition = "top-start" | "top-end" | "bottom-start" | "bottom-end";
|
|
4
|
+
export type IndicatorTone = "neutral" | "accent" | "success" | "warning" | "danger";
|
|
5
|
+
/**
|
|
6
|
+
* The shape of what the mark is hung on, which is the only thing that decides where the
|
|
7
|
+
* corner actually is.
|
|
8
|
+
*
|
|
9
|
+
* Two values rather than a number of pixels: a number would have to be recomputed for every
|
|
10
|
+
* avatar size, and it would have to reach the element as an inline style, which no component
|
|
11
|
+
* in this library writes. The circle's anchor is a percentage of the box, so one value fits
|
|
12
|
+
* every size.
|
|
13
|
+
*/
|
|
14
|
+
export type IndicatorTarget = "square" | "circle";
|
|
15
|
+
export type IndicatorProps = {
|
|
16
|
+
/** What the mark is attached to — an avatar, an icon button, a tab. */
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Required, and it is the whole meaning. The mark on screen is decoration; this is the
|
|
20
|
+
* sentence a screen reader gets, so it says what is being reported and, where the number
|
|
21
|
+
* matters, how many. "읽지 않은 알림 3개" — not "3".
|
|
22
|
+
*/
|
|
23
|
+
label: string;
|
|
24
|
+
count?: number;
|
|
25
|
+
/** Above this the mark reads `99+`. Default 99. */
|
|
26
|
+
max?: number;
|
|
27
|
+
position?: IndicatorPosition;
|
|
28
|
+
/** Rectangles hang the mark on the box corner; a circle needs it pulled in to its edge. */
|
|
29
|
+
target?: IndicatorTarget;
|
|
30
|
+
tone?: IndicatorTone;
|
|
31
|
+
/** A mark with no number, for a state that is on or off. */
|
|
32
|
+
dot?: boolean;
|
|
33
|
+
/** No mark and no label. The children are untouched. */
|
|
34
|
+
hidden?: boolean;
|
|
35
|
+
className?: string;
|
|
36
|
+
[key: `data-${string}`]: unknown;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* A mark on the corner of something, and the words that say what it means.
|
|
40
|
+
*
|
|
41
|
+
* The dot carries no meaning at all: it is a coloured shape, `aria-hidden`, and a reader who
|
|
42
|
+
* cannot see it gets nothing from it. `label` is the component's only carrier of meaning,
|
|
43
|
+
* which is why it is required rather than derived from `count` — "3" is not information, and
|
|
44
|
+
* a number the component composed into a sentence would be a sentence in one language.
|
|
45
|
+
*
|
|
46
|
+
* There is no live region here, deliberately. This mark sits on a control the reader is
|
|
47
|
+
* about to use, and a count that announces itself interrupts whatever they are reading to
|
|
48
|
+
* say a number changed somewhere on the page. A change worth interrupting for is announced
|
|
49
|
+
* where it happened, by the thing that knows why.
|
|
50
|
+
*/
|
|
51
|
+
export declare function Indicator({ children, label, count, max, position, target, tone, dot, hidden, className, ...rest }: IndicatorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { type ChangeEvent, type FocusEvent, type InputHTMLAttributes, type KeyboardEvent, type ReactNode, type Ref } from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
import "./Input.css";
|
|
4
|
+
export type InputSize = "sm" | "md" | "lg";
|
|
5
|
+
export type InputProps = {
|
|
6
|
+
value?: string;
|
|
7
|
+
defaultValue?: string;
|
|
8
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
9
|
+
onKeyDown?: (event: KeyboardEvent<HTMLInputElement>) => void;
|
|
10
|
+
onFocus?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
11
|
+
onBlur?: (event: FocusEvent<HTMLInputElement>) => void;
|
|
12
|
+
/**
|
|
13
|
+
* Reaches the control, not the wrapper.
|
|
14
|
+
*
|
|
15
|
+
* Which is the only useful answer: the wrapper cannot be focused, cannot be read for a
|
|
16
|
+
* value and is not what a form knows about. `SearchInput` uses it to put the reader back
|
|
17
|
+
* in the field after its clear button has removed itself from under them.
|
|
18
|
+
*/
|
|
19
|
+
ref?: Ref<HTMLInputElement>;
|
|
20
|
+
type?: InputHTMLAttributes<HTMLInputElement>["type"];
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
size?: InputSize;
|
|
23
|
+
/**
|
|
24
|
+
* The value is not acceptable.
|
|
25
|
+
*
|
|
26
|
+
* Draws the border and sets `aria-invalid`, and does no more than that on purpose: the
|
|
27
|
+
* reason belongs in a message the field owns, which is `Field`'s job. A control that says
|
|
28
|
+
* only "wrong" in red is a control that says nothing to a reader who cannot see red.
|
|
29
|
+
*/
|
|
30
|
+
invalid?: boolean;
|
|
31
|
+
disabled?: boolean;
|
|
32
|
+
readOnly?: boolean;
|
|
33
|
+
required?: boolean;
|
|
34
|
+
iconStart?: LucideIcon;
|
|
35
|
+
iconEnd?: LucideIcon;
|
|
36
|
+
/**
|
|
37
|
+
* Something that can be pressed, inside the box.
|
|
38
|
+
*
|
|
39
|
+
* Asked for by the derived layer and by nothing else: `SearchInput` needs a clear button
|
|
40
|
+
* inside the field, `PasswordInput` a reveal toggle, `NumberInput` a pair of steppers.
|
|
41
|
+
* All three are *inside* the border rather than beside it, and a component that built its
|
|
42
|
+
* own field to get them would be a second field with a second focus ring, a second set of
|
|
43
|
+
* paddings and a second set of bugs.
|
|
44
|
+
*
|
|
45
|
+
* `iconStart`/`iconEnd` stay separate because an icon is not a control: it takes the muted
|
|
46
|
+
* ink, has no hit area of its own and is never in the tab order.
|
|
47
|
+
*/
|
|
48
|
+
slotStart?: ReactNode;
|
|
49
|
+
slotEnd?: ReactNode;
|
|
50
|
+
name?: string;
|
|
51
|
+
id?: string;
|
|
52
|
+
autoComplete?: string;
|
|
53
|
+
/**
|
|
54
|
+
* What the software keyboard and the corrector are allowed to do to what is typed.
|
|
55
|
+
*
|
|
56
|
+
* Asked for by `CouponField`. A coupon code is printed in capitals and typed on whatever
|
|
57
|
+
* the keyboard happened to be in, and on a phone iOS will capitalise the first letter,
|
|
58
|
+
* autocorrect the rest into a word, and underline it in red. Three attributes, and without
|
|
59
|
+
* them the field is one a reader has to fight.
|
|
60
|
+
*/
|
|
61
|
+
autoCapitalize?: string;
|
|
62
|
+
autoCorrect?: string;
|
|
63
|
+
spellCheck?: boolean;
|
|
64
|
+
inputMode?: InputHTMLAttributes<HTMLInputElement>["inputMode"];
|
|
65
|
+
/**
|
|
66
|
+
* The control's role, for the rare case where the element is not what it represents.
|
|
67
|
+
*
|
|
68
|
+
* `NumberInput` is the reason: it is a `type="text"` that stands for a spin button, and
|
|
69
|
+
* without this it would have to build its own field to say so.
|
|
70
|
+
*/
|
|
71
|
+
role?: string;
|
|
72
|
+
className?: string;
|
|
73
|
+
[key: `data-${string}`]: unknown;
|
|
74
|
+
[key: `aria-${string}`]: unknown;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* A single line of text.
|
|
78
|
+
*
|
|
79
|
+
* Always a wrapper around the control, whether or not there are icons, so that the box a
|
|
80
|
+
* reader sees and the box the browser focuses are the same element in every case. A version
|
|
81
|
+
* that only wrapped when an icon was present would have two focus rings, two paddings and
|
|
82
|
+
* two sets of bugs.
|
|
83
|
+
*/
|
|
84
|
+
export declare const Input: import("react").ForwardRefExoticComponent<Omit<InputProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import "./Kbd.css";
|
|
3
|
+
export type KbdSize = "sm" | "md";
|
|
4
|
+
export type KbdProps = {
|
|
5
|
+
/** The key's name, as it is printed on the key: `⌘`, `Shift`, `Esc`, `K`. */
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
size?: KbdSize;
|
|
8
|
+
/**
|
|
9
|
+
* The element rendered. `kbd` is the default because that is what the element means, and
|
|
10
|
+
* a shortcut written with a `span` is a shortcut no user agent can tell from prose.
|
|
11
|
+
*/
|
|
12
|
+
as?: ElementType;
|
|
13
|
+
className?: string;
|
|
14
|
+
[key: `data-${string}`]: unknown;
|
|
15
|
+
[key: `aria-${string}`]: unknown;
|
|
16
|
+
id?: string;
|
|
17
|
+
title?: string;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* One key, drawn as a key.
|
|
21
|
+
*
|
|
22
|
+
* It renders a single key and nothing else — no separator, no combination. A combination is
|
|
23
|
+
* several of these with the joining character written between them, because the joiner is
|
|
24
|
+
* prose the caller chooses (`+`, a space, nothing at all in the Apple convention) and a
|
|
25
|
+
* component that picked one would be wrong in every house that picked the other.
|
|
26
|
+
*
|
|
27
|
+
* `⌘` and `⌥` are symbols, not words. Most screen readers either say nothing for them or
|
|
28
|
+
* read a character name that is not the key's name, so a shortcut that exists only as
|
|
29
|
+
* symbols is a shortcut some readers never hear. The answer is not inside this component:
|
|
30
|
+
* the caller pairs the symbol with a spelled-out name, either by hiding the symbols from the
|
|
31
|
+
* accessibility tree and exposing words next to them, or by labelling the control that owns
|
|
32
|
+
* the shortcut. See the demo.
|
|
33
|
+
*/
|
|
34
|
+
export declare function Kbd({ children, size, as: Element, className, ...rest }: KbdProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Link.css";
|
|
3
|
+
export type LinkTone = "accent" | "inherit" | "muted";
|
|
4
|
+
export type LinkUnderline = "always" | "hover" | "never";
|
|
5
|
+
export type LinkProps = {
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
href: string;
|
|
8
|
+
tone?: LinkTone;
|
|
9
|
+
underline?: LinkUnderline;
|
|
10
|
+
/**
|
|
11
|
+
* Opens elsewhere.
|
|
12
|
+
*
|
|
13
|
+
* Adds the mark, `rel="noreferrer"`, and — the part that gets forgotten — a note in the
|
|
14
|
+
* accessible name. A reader who cannot see the arrow is otherwise not told that following
|
|
15
|
+
* this link takes them out of the page they were on.
|
|
16
|
+
*/
|
|
17
|
+
external?: boolean;
|
|
18
|
+
className?: string;
|
|
19
|
+
[key: `data-${string}`]: unknown;
|
|
20
|
+
};
|
|
21
|
+
export declare function Link({ children, href, tone, underline, external, className, ...rest }: LinkProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import "./Mark.css";
|
|
3
|
+
/**
|
|
4
|
+
* The tones that exist as a *ground*.
|
|
5
|
+
*
|
|
6
|
+
* The token layer publishes each energy four times — the fill, the ink on that fill, the ink
|
|
7
|
+
* on a neutral ground, and `--x-subtle`, a tinted ground. Only the last of those is a
|
|
8
|
+
* background a paragraph's own text colour can still be read on, so those are the four names
|
|
9
|
+
* this component takes. `--accent` and its kind are fills; a fill under body text is a
|
|
10
|
+
* contrast failure in the light theme and an unreadable one in the dark.
|
|
11
|
+
*/
|
|
12
|
+
export type MarkTone = "accent" | "success" | "warning" | "danger";
|
|
13
|
+
export type MarkProps = {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
/** Default `warning` — the amber tint, which is what a reader already reads as a marker. */
|
|
16
|
+
tone?: MarkTone;
|
|
17
|
+
as?: ElementType;
|
|
18
|
+
className?: string;
|
|
19
|
+
[key: `data-${string}`]: unknown;
|
|
20
|
+
[key: `aria-${string}`]: unknown;
|
|
21
|
+
id?: string;
|
|
22
|
+
title?: string;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* A run of text marked as relevant.
|
|
26
|
+
*
|
|
27
|
+
* The element is `mark`, and what `mark` is worth to assistive technology is worth writing
|
|
28
|
+
* down: ARIA gives it a `mark` role, Chromium and WebKit expose it, and most screen readers
|
|
29
|
+
* announce nothing for it unless the reader has turned that on. VoiceOver on Safari is the
|
|
30
|
+
* exception. So in practice the tint is the whole message, and a tint is a colour.
|
|
31
|
+
*
|
|
32
|
+
* This component therefore refuses to be the only carrier of meaning by construction: it
|
|
33
|
+
* renders exactly the text it was given, and the caller who needs the highlight to *mean*
|
|
34
|
+
* something says so in words next to it. `Highlight` is the case where it does not have to —
|
|
35
|
+
* a search term is already on the screen in the search field, so the tint is a locator
|
|
36
|
+
* rather than a claim.
|
|
37
|
+
*/
|
|
38
|
+
export declare function Mark({ children, tone, as: Element, className, ...rest }: MarkProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import "./MultiSelect.css";
|
|
2
|
+
export type MultiSelectSize = "sm" | "md" | "lg";
|
|
3
|
+
export type MultiSelectOption = {
|
|
4
|
+
value: string;
|
|
5
|
+
label: string;
|
|
6
|
+
/** A second line under the label — a team, a code, a count. */
|
|
7
|
+
description?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type MultiSelectProps = {
|
|
11
|
+
options: MultiSelectOption[];
|
|
12
|
+
value: string[];
|
|
13
|
+
onValueChange: (value: string[]) => void;
|
|
14
|
+
/** What is being chosen. "관심 분야". Names the field. */
|
|
15
|
+
label: string;
|
|
16
|
+
placeholder?: string;
|
|
17
|
+
/** How many may be held at once. Reached, the rest of the list stops being choosable. */
|
|
18
|
+
max?: number;
|
|
19
|
+
/** Whether typing narrows the list. Off, the field is read-only and the arrows walk it. */
|
|
20
|
+
searchable?: boolean;
|
|
21
|
+
size?: MultiSelectSize;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
invalid?: boolean;
|
|
24
|
+
id?: string;
|
|
25
|
+
/** The field's name in the form. One hidden input per chosen value, the way a multiple
|
|
26
|
+
* `<select>` submits. */
|
|
27
|
+
name?: string;
|
|
28
|
+
/** What to say when nothing matches. */
|
|
29
|
+
emptyMessage?: 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 holds more than one answer.
|
|
39
|
+
*
|
|
40
|
+
* **It is `Combobox` with a list of answers instead of one**, and it keeps that component's
|
|
41
|
+
* rules rather than inventing its own: the focus stays in the input, the list is walked with
|
|
42
|
+
* `aria-activedescendant`, the arrows step over what cannot be chosen, and an Enter arriving
|
|
43
|
+
* mid-composition belongs to the input method and not to this component.
|
|
44
|
+
*
|
|
45
|
+
* **What is held is shown as chips, and Backspace takes the last one off.** The chip's remove
|
|
46
|
+
* button carries the 24×24 floor itself rather than inheriting the chip's height — the same
|
|
47
|
+
* fix `Tag` made, and for the same reason: a floor written on the chip is a floor the thing
|
|
48
|
+
* that is actually pressed does not have.
|
|
49
|
+
*
|
|
50
|
+
* **`max` locks the rest of the list rather than hiding it.** A list that shortens as you
|
|
51
|
+
* choose is a list that moves under the pointer, and the reader cannot tell whether the option
|
|
52
|
+
* they were about to press is gone or was never there.
|
|
53
|
+
*/
|
|
54
|
+
export declare function MultiSelect({ options, value, onValueChange, label, placeholder, max, searchable, size, disabled, invalid, id, name, emptyMessage, "aria-describedby": describedBy, "aria-labelledby": labelledBy, required, className, ...rest }: MultiSelectProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import "./PinInput.css";
|
|
2
|
+
export type PinInputSize = "sm" | "md" | "lg";
|
|
3
|
+
export type PinInputType = "number" | "text";
|
|
4
|
+
export type PinInputProps = {
|
|
5
|
+
/** The whole code, shorter than `length` while it is being filled in. */
|
|
6
|
+
value: string;
|
|
7
|
+
onValueChange: (value: string) => void;
|
|
8
|
+
length?: number;
|
|
9
|
+
/**
|
|
10
|
+
* What the code is. Every box says it, followed by its position.
|
|
11
|
+
*
|
|
12
|
+
* Stands down to `aria-labelledby` when `Field` supplies one — an `aria-label` outranks a
|
|
13
|
+
* visible `<label>`, and the two would then be free to disagree.
|
|
14
|
+
*/
|
|
15
|
+
label: string;
|
|
16
|
+
type?: PinInputType;
|
|
17
|
+
/** Hide what was typed. Draws dots and turns autofill off — see the note in the component. */
|
|
18
|
+
mask?: boolean;
|
|
19
|
+
size?: PinInputSize;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
invalid?: boolean;
|
|
22
|
+
name?: string;
|
|
23
|
+
autoFocus?: boolean;
|
|
24
|
+
/** Called once, at the moment the last empty box is filled. */
|
|
25
|
+
onComplete?: (value: string) => void;
|
|
26
|
+
id?: string;
|
|
27
|
+
className?: string;
|
|
28
|
+
required?: boolean;
|
|
29
|
+
"aria-labelledby"?: string;
|
|
30
|
+
"aria-describedby"?: string;
|
|
31
|
+
[key: `data-${string}`]: unknown;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* A code, one character to a box.
|
|
35
|
+
*
|
|
36
|
+
* **Six real inputs, wrapped in a group.** The group carries the field's name and its
|
|
37
|
+
* description, so a reader entering the control hears "인증번호, 6자리 숫자" once; each box
|
|
38
|
+
* then names itself and its position — "인증번호 3번째 자리". The alternative, one input
|
|
39
|
+
* styled to look like six, loses the thing the boxes are for: a reader can no longer tell
|
|
40
|
+
* which character they are on, and a screen reader reads the whole code back on every
|
|
41
|
+
* keystroke.
|
|
42
|
+
*
|
|
43
|
+
* **Pasting is the case this pattern is usually missing.** A code arrives from a message app
|
|
44
|
+
* as one string, and six inputs that each take one character will keep the first digit and
|
|
45
|
+
* drop five. Both doors are covered: `onPaste` reads the clipboard and spreads it, and
|
|
46
|
+
* `onChange` spreads anything longer than one character — which is how the platform's own
|
|
47
|
+
* SMS autofill arrives, as a single fill rather than as a paste event.
|
|
48
|
+
*/
|
|
49
|
+
export declare function PinInput({ value, onValueChange, length, label, type, mask, size, disabled, invalid, name, autoFocus, onComplete, id, className, required, "aria-labelledby": labelledBy, "aria-describedby": describedBy, ...rest }: PinInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import "./Progress.css";
|
|
2
|
+
export type ProgressSize = "sm" | "md";
|
|
3
|
+
export type ProgressTone = "accent" | "success" | "warning" | "danger";
|
|
4
|
+
export type ProgressProps = {
|
|
5
|
+
/**
|
|
6
|
+
* How far along, 0 to `max`. Omitted means the work has no measurable end, which is a
|
|
7
|
+
* different statement and gets a different bar.
|
|
8
|
+
*/
|
|
9
|
+
value?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
size?: ProgressSize;
|
|
12
|
+
tone?: ProgressTone;
|
|
13
|
+
/** What is progressing. A bar with no name is a bar nobody can ask about. */
|
|
14
|
+
label: string;
|
|
15
|
+
className?: string;
|
|
16
|
+
[key: `data-${string}`]: unknown;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* How far along something is, or that it is going at all.
|
|
20
|
+
*
|
|
21
|
+
* A native `<progress>`, and that is the whole design. The fill's width is data — the one
|
|
22
|
+
* value a component genuinely cannot put in a stylesheet — and every way of expressing it in
|
|
23
|
+
* CSS goes through a `style` attribute, which outranks the adopter, the theme and the
|
|
24
|
+
* stylesheet. `<progress value="40">` puts it in an attribute where it belongs, and brings
|
|
25
|
+
* `role="progressbar"` and the value announcement with it.
|
|
26
|
+
*
|
|
27
|
+
* Omitting `value` makes it indeterminate, in the element's own vocabulary, and `:indeterminate`
|
|
28
|
+
* is what the stylesheet keys the travelling stripe off.
|
|
29
|
+
*/
|
|
30
|
+
export declare function Progress({ value, max, size, tone, label, className, ...rest }: ProgressProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { ChangeEvent, ReactNode } from "react";
|
|
2
|
+
import "./Radio.css";
|
|
3
|
+
export type RadioSize = "sm" | "md";
|
|
4
|
+
export type RadioProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
/**
|
|
7
|
+
* The group this choice belongs to.
|
|
8
|
+
*
|
|
9
|
+
* Required, and required for a reason: radios with no shared name are not a group. They
|
|
10
|
+
* look like one, they behave like a row of checkboxes, and a screen reader announces each
|
|
11
|
+
* as "1 of 1". The browser builds the group from the name.
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
value: string;
|
|
15
|
+
checked?: boolean;
|
|
16
|
+
defaultChecked?: boolean;
|
|
17
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
18
|
+
size?: RadioSize;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
invalid?: boolean;
|
|
21
|
+
id?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Where Tab enters the group, for the group that has to overrule the browser.
|
|
24
|
+
*
|
|
25
|
+
* The browser gives a radio group one tab stop and puts it on the checked radio. The
|
|
26
|
+
* earlier note here said that a *disabled* checked radio leaves the group with no stop at
|
|
27
|
+
* all — measured, and Chromium does not do that: it moves the stop to the first enabled
|
|
28
|
+
* radio on its own, so the group is still reachable. Both of this repository's test
|
|
29
|
+
* projects are Chromium, and nothing in it sets this prop.
|
|
30
|
+
*
|
|
31
|
+
* It stays as the escape hatch for an adopter on an engine that does strand the group.
|
|
32
|
+
* Nothing else has any business setting it.
|
|
33
|
+
*/
|
|
34
|
+
tabIndex?: number;
|
|
35
|
+
className?: string;
|
|
36
|
+
[key: `data-${string}`]: unknown;
|
|
37
|
+
[key: `aria-${string}`]: unknown;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* One of several, and only one.
|
|
41
|
+
*
|
|
42
|
+
* A real `<input type="radio">`, so arrow keys move within the group and skip past it on Tab
|
|
43
|
+
* — which is the behaviour a reader expects and the behaviour that is hardest to rebuild.
|
|
44
|
+
*/
|
|
45
|
+
export declare function Radio({ children, size, disabled, invalid, className, ...rest }: RadioProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./RingProgress.css";
|
|
3
|
+
export type RingProgressSize = "xs" | "sm" | "md" | "lg";
|
|
4
|
+
export type RingProgressTone = "accent" | "success" | "warning" | "danger";
|
|
5
|
+
export type RingProgressProps = {
|
|
6
|
+
/** How far along, 0 to `max`. */
|
|
7
|
+
value: number;
|
|
8
|
+
max?: number;
|
|
9
|
+
size?: RingProgressSize;
|
|
10
|
+
tone?: RingProgressTone;
|
|
11
|
+
/** What is progressing. A ring with no name is a ring nobody can ask about. */
|
|
12
|
+
label: string;
|
|
13
|
+
/**
|
|
14
|
+
* What goes in the middle. A number, a short word, an icon.
|
|
15
|
+
*
|
|
16
|
+
* Optional, and the ring works without it: the value is already announced by the element's
|
|
17
|
+
* role. This is for the reader who is looking at it, and a ring with nothing in the middle
|
|
18
|
+
* is a shape rather than a reading.
|
|
19
|
+
*/
|
|
20
|
+
children?: ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
[key: `data-${string}`]: unknown;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* How far along something is, drawn as a ring.
|
|
26
|
+
*
|
|
27
|
+
* The same statement as `Progress` and a different shape, so it is a different component
|
|
28
|
+
* rather than a variant. A bar belongs in a row of rows, where its length is comparable to
|
|
29
|
+
* the one above it. A ring belongs where one number is the subject of its own box, and where
|
|
30
|
+
* there is room in the middle to say what the number is.
|
|
31
|
+
*
|
|
32
|
+
* Drawn with `conic-gradient` rather than SVG. An SVG ring needs `stroke-dasharray` computed
|
|
33
|
+
* from the radius, which means the value reaches CSS through a `style` attribute and the
|
|
34
|
+
* component starts owning its own size. A conic gradient takes the value as a percentage in
|
|
35
|
+
* one custom property and the size stays in the stylesheet, where an adopter can reach it.
|
|
36
|
+
*
|
|
37
|
+
* `role="progressbar"` with the three aria values, because a `<div>` painted with a gradient
|
|
38
|
+
* says nothing to a reader who cannot see it.
|
|
39
|
+
*/
|
|
40
|
+
export declare function RingProgress({ value, max, size, tone, label, children, className, ...rest }: RingProgressProps): import("react").JSX.Element;
|