@lucian-seo/lucian-ui 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +227 -0
- package/dist/lib/Input-Bv7L1_wj.js +90 -0
- package/dist/lib/Input-Bv7L1_wj.js.map +1 -0
- package/dist/lib/Menu-B3G64GV4.js +321 -0
- package/dist/lib/Menu-B3G64GV4.js.map +1 -0
- package/dist/lib/Switch-BkMnC02l.js +999 -0
- package/dist/lib/Switch-BkMnC02l.js.map +1 -0
- package/dist/lib/Tag-Z8PjnJFt.js +60 -0
- package/dist/lib/Tag-Z8PjnJFt.js.map +1 -0
- package/dist/lib/TagInput-BaGz-QKU.js +372 -0
- package/dist/lib/TagInput-BaGz-QKU.js.map +1 -0
- package/dist/lib/Text-D7hoYpuZ.js +26 -0
- package/dist/lib/Text-D7hoYpuZ.js.map +1 -0
- package/dist/lib/ToggleButton-D6oEjMeF.js +238 -0
- package/dist/lib/ToggleButton-D6oEjMeF.js.map +1 -0
- package/dist/lib/Toolbar-DiP1iR_t.js +3088 -0
- package/dist/lib/Toolbar-DiP1iR_t.js.map +1 -0
- package/dist/lib/Tooltip-BJSUlXS2.js +117 -0
- package/dist/lib/Tooltip-BJSUlXS2.js.map +1 -0
- package/dist/lib/VisuallyHidden-DcE0EFpo.js +194 -0
- package/dist/lib/VisuallyHidden-DcE0EFpo.js.map +1 -0
- package/dist/lib/VoiceControlBar-CWDLR71w.js +3447 -0
- package/dist/lib/VoiceControlBar-CWDLR71w.js.map +1 -0
- package/dist/lib/Waveform-BIE2Ztc8.js +318 -0
- package/dist/lib/Waveform-BIE2Ztc8.js.map +1 -0
- package/dist/lib/components/common/AspectRatio/AspectRatio.d.ts +26 -0
- package/dist/lib/components/common/AspectRatio/index.d.ts +2 -0
- package/dist/lib/components/common/Avatar/Avatar.d.ts +58 -0
- package/dist/lib/components/common/Avatar/index.d.ts +2 -0
- package/dist/lib/components/common/Badge/Badge.d.ts +36 -0
- package/dist/lib/components/common/Badge/index.d.ts +2 -0
- package/dist/lib/components/common/Blockquote/Blockquote.d.ts +40 -0
- package/dist/lib/components/common/Blockquote/index.d.ts +2 -0
- package/dist/lib/components/common/Button/Button.d.ts +38 -0
- package/dist/lib/components/common/Button/index.d.ts +2 -0
- package/dist/lib/components/common/CalibratedPulse/CalibratedPulse.d.ts +63 -0
- package/dist/lib/components/common/CalibratedPulse/index.d.ts +2 -0
- package/dist/lib/components/common/Center/Center.d.ts +23 -0
- package/dist/lib/components/common/Center/index.d.ts +2 -0
- package/dist/lib/components/common/Checkbox/Checkbox.d.ts +35 -0
- package/dist/lib/components/common/Checkbox/index.d.ts +2 -0
- package/dist/lib/components/common/Code/Code.d.ts +37 -0
- package/dist/lib/components/common/Code/index.d.ts +2 -0
- package/dist/lib/components/common/Collapse/Collapse.d.ts +29 -0
- package/dist/lib/components/common/Collapse/index.d.ts +2 -0
- package/dist/lib/components/common/Container/Container.d.ts +28 -0
- package/dist/lib/components/common/Container/index.d.ts +2 -0
- package/dist/lib/components/common/Divider/Divider.d.ts +28 -0
- package/dist/lib/components/common/Divider/index.d.ts +2 -0
- package/dist/lib/components/common/FileInput/FileInput.d.ts +52 -0
- package/dist/lib/components/common/FileInput/index.d.ts +2 -0
- package/dist/lib/components/common/Flex/Flex.d.ts +35 -0
- package/dist/lib/components/common/Flex/index.d.ts +2 -0
- package/dist/lib/components/common/Glass/Glass.d.ts +35 -0
- package/dist/lib/components/common/Glass/index.d.ts +2 -0
- package/dist/lib/components/common/Glass/refraction.d.ts +24 -0
- package/dist/lib/components/common/Glass/rim.d.ts +37 -0
- package/dist/lib/components/common/Grid/Grid.d.ts +28 -0
- package/dist/lib/components/common/Grid/GridItem.d.ts +31 -0
- package/dist/lib/components/common/Grid/index.d.ts +4 -0
- package/dist/lib/components/common/Group/Group.d.ts +38 -0
- package/dist/lib/components/common/Group/index.d.ts +2 -0
- package/dist/lib/components/common/Highlight/Highlight.d.ts +63 -0
- package/dist/lib/components/common/Highlight/index.d.ts +2 -0
- package/dist/lib/components/common/Icon/Icon.d.ts +39 -0
- package/dist/lib/components/common/Icon/index.d.ts +2 -0
- package/dist/lib/components/common/IconButton/IconButton.d.ts +34 -0
- package/dist/lib/components/common/IconButton/index.d.ts +2 -0
- package/dist/lib/components/common/Indicator/Indicator.d.ts +51 -0
- package/dist/lib/components/common/Indicator/index.d.ts +2 -0
- package/dist/lib/components/common/Input/Input.d.ts +84 -0
- package/dist/lib/components/common/Input/index.d.ts +2 -0
- package/dist/lib/components/common/Kbd/Kbd.d.ts +34 -0
- package/dist/lib/components/common/Kbd/index.d.ts +2 -0
- package/dist/lib/components/common/Link/Link.d.ts +21 -0
- package/dist/lib/components/common/Link/index.d.ts +2 -0
- package/dist/lib/components/common/Mark/Mark.d.ts +38 -0
- package/dist/lib/components/common/Mark/index.d.ts +2 -0
- package/dist/lib/components/common/MultiSelect/MultiSelect.d.ts +54 -0
- package/dist/lib/components/common/MultiSelect/index.d.ts +2 -0
- package/dist/lib/components/common/PinInput/PinInput.d.ts +49 -0
- package/dist/lib/components/common/PinInput/index.d.ts +2 -0
- package/dist/lib/components/common/Progress/Progress.d.ts +30 -0
- package/dist/lib/components/common/Progress/index.d.ts +2 -0
- package/dist/lib/components/common/Radio/Radio.d.ts +45 -0
- package/dist/lib/components/common/Radio/index.d.ts +2 -0
- package/dist/lib/components/common/RingProgress/RingProgress.d.ts +40 -0
- package/dist/lib/components/common/RingProgress/index.d.ts +2 -0
- package/dist/lib/components/common/ScrollArea/ScrollArea.d.ts +33 -0
- package/dist/lib/components/common/ScrollArea/index.d.ts +2 -0
- package/dist/lib/components/common/Select/Select.d.ts +50 -0
- package/dist/lib/components/common/Select/index.d.ts +2 -0
- package/dist/lib/components/common/Select/listbox.d.ts +68 -0
- package/dist/lib/components/common/SimpleGrid/SimpleGrid.d.ts +30 -0
- package/dist/lib/components/common/SimpleGrid/index.d.ts +2 -0
- package/dist/lib/components/common/Skeleton/Skeleton.d.ts +23 -0
- package/dist/lib/components/common/Skeleton/index.d.ts +2 -0
- package/dist/lib/components/common/Slider/Slider.d.ts +55 -0
- package/dist/lib/components/common/Slider/index.d.ts +2 -0
- package/dist/lib/components/common/Space/Space.d.ts +29 -0
- package/dist/lib/components/common/Space/index.d.ts +2 -0
- package/dist/lib/components/common/Spinner/Spinner.d.ts +25 -0
- package/dist/lib/components/common/Spinner/index.d.ts +2 -0
- package/dist/lib/components/common/Stack/Stack.d.ts +41 -0
- package/dist/lib/components/common/Stack/index.d.ts +2 -0
- package/dist/lib/components/common/Switch/Switch.d.ts +28 -0
- package/dist/lib/components/common/Switch/index.d.ts +2 -0
- package/dist/lib/components/common/Text/Text.d.ts +57 -0
- package/dist/lib/components/common/Text/index.d.ts +2 -0
- package/dist/lib/components/common/Textarea/Textarea.d.ts +29 -0
- package/dist/lib/components/common/Textarea/index.d.ts +2 -0
- package/dist/lib/components/common/Tooltip/Tooltip.d.ts +33 -0
- package/dist/lib/components/common/Tooltip/index.d.ts +2 -0
- package/dist/lib/components/common/VisuallyHidden/VisuallyHidden.d.ts +20 -0
- package/dist/lib/components/common/VisuallyHidden/index.d.ts +2 -0
- package/dist/lib/components/common/Waveform/Waveform.d.ts +66 -0
- package/dist/lib/components/common/Waveform/index.d.ts +2 -0
- package/dist/lib/components/common/index.d.ts +44 -0
- package/dist/lib/components/common/index.js +7 -0
- package/dist/lib/components/composed/AppShell/AppShell.d.ts +95 -0
- package/dist/lib/components/composed/AppShell/index.d.ts +2 -0
- package/dist/lib/components/composed/Breadcrumb/Breadcrumb.d.ts +46 -0
- package/dist/lib/components/composed/Breadcrumb/index.d.ts +2 -0
- package/dist/lib/components/composed/BulkActionBar/BulkActionBar.d.ts +48 -0
- package/dist/lib/components/composed/BulkActionBar/index.d.ts +2 -0
- package/dist/lib/components/composed/Callout/Callout.d.ts +43 -0
- package/dist/lib/components/composed/Callout/index.d.ts +2 -0
- package/dist/lib/components/composed/Card/Card.d.ts +80 -0
- package/dist/lib/components/composed/Card/index.d.ts +2 -0
- package/dist/lib/components/composed/Carousel/Carousel.d.ts +52 -0
- package/dist/lib/components/composed/Carousel/index.d.ts +2 -0
- package/dist/lib/components/composed/Combobox/Combobox.d.ts +50 -0
- package/dist/lib/components/composed/Combobox/index.d.ts +2 -0
- package/dist/lib/components/composed/CommandPalette/CommandPalette.d.ts +51 -0
- package/dist/lib/components/composed/CommandPalette/index.d.ts +2 -0
- package/dist/lib/components/composed/DatePicker/Calendar.d.ts +49 -0
- package/dist/lib/components/composed/DatePicker/DatePicker.d.ts +36 -0
- package/dist/lib/components/composed/DatePicker/dates.d.ts +50 -0
- package/dist/lib/components/composed/DatePicker/index.d.ts +3 -0
- package/dist/lib/components/composed/DateRangePicker/DateRangePicker.d.ts +40 -0
- package/dist/lib/components/composed/DateRangePicker/index.d.ts +2 -0
- package/dist/lib/components/composed/Disclosure/Disclosure.d.ts +44 -0
- package/dist/lib/components/composed/Disclosure/index.d.ts +2 -0
- package/dist/lib/components/composed/Drawer/Drawer.d.ts +39 -0
- package/dist/lib/components/composed/Drawer/index.d.ts +2 -0
- package/dist/lib/components/composed/EmptyState/EmptyState.d.ts +43 -0
- package/dist/lib/components/composed/EmptyState/index.d.ts +2 -0
- package/dist/lib/components/composed/Field/Field.d.ts +63 -0
- package/dist/lib/components/composed/Field/index.d.ts +2 -0
- package/dist/lib/components/composed/FilterBar/FilterBar.d.ts +58 -0
- package/dist/lib/components/composed/FilterBar/index.d.ts +2 -0
- package/dist/lib/components/composed/FormSection/FormSection.d.ts +35 -0
- package/dist/lib/components/composed/FormSection/index.d.ts +2 -0
- package/dist/lib/components/composed/ListRow/ListRow.d.ts +83 -0
- package/dist/lib/components/composed/ListRow/index.d.ts +2 -0
- package/dist/lib/components/composed/Menu/Menu.d.ts +102 -0
- package/dist/lib/components/composed/Menu/index.d.ts +2 -0
- package/dist/lib/components/composed/Menu/scope.d.ts +15 -0
- package/dist/lib/components/composed/Modal/Modal.d.ts +65 -0
- package/dist/lib/components/composed/Modal/index.d.ts +2 -0
- package/dist/lib/components/composed/PageHeader/PageHeader.d.ts +46 -0
- package/dist/lib/components/composed/PageHeader/index.d.ts +2 -0
- package/dist/lib/components/composed/Pagination/Pagination.d.ts +48 -0
- package/dist/lib/components/composed/Pagination/index.d.ts +2 -0
- package/dist/lib/components/composed/Popover/Popover.d.ts +47 -0
- package/dist/lib/components/composed/Popover/index.d.ts +2 -0
- package/dist/lib/components/composed/PreferenceRow/PreferenceRow.d.ts +43 -0
- package/dist/lib/components/composed/PreferenceRow/index.d.ts +2 -0
- package/dist/lib/components/composed/Sheet/Sheet.d.ts +53 -0
- package/dist/lib/components/composed/Sheet/index.d.ts +2 -0
- package/dist/lib/components/composed/SidePanel/SidePanel.d.ts +34 -0
- package/dist/lib/components/composed/SidePanel/index.d.ts +2 -0
- package/dist/lib/components/composed/SidebarNav/SidebarNav.d.ts +85 -0
- package/dist/lib/components/composed/SidebarNav/index.d.ts +2 -0
- package/dist/lib/components/composed/Spotlight/Spotlight.d.ts +57 -0
- package/dist/lib/components/composed/Spotlight/index.d.ts +2 -0
- package/dist/lib/components/composed/Stepper/Stepper.d.ts +36 -0
- package/dist/lib/components/composed/Stepper/index.d.ts +2 -0
- package/dist/lib/components/composed/Table/Table.d.ts +142 -0
- package/dist/lib/components/composed/Table/index.d.ts +2 -0
- package/dist/lib/components/composed/Tabs/Tabs.d.ts +48 -0
- package/dist/lib/components/composed/Tabs/index.d.ts +2 -0
- package/dist/lib/components/composed/TimeInput/TimeInput.d.ts +41 -0
- package/dist/lib/components/composed/TimeInput/index.d.ts +3 -0
- package/dist/lib/components/composed/TimeInput/times.d.ts +47 -0
- package/dist/lib/components/composed/Toast/Toast.d.ts +37 -0
- package/dist/lib/components/composed/Toast/index.d.ts +2 -0
- package/dist/lib/components/composed/Toolbar/Toolbar.d.ts +45 -0
- package/dist/lib/components/composed/Toolbar/index.d.ts +2 -0
- package/dist/lib/components/composed/index.d.ts +33 -0
- package/dist/lib/components/composed/index.js +3 -0
- package/dist/lib/components/derived/AvatarGroup/AvatarGroup.d.ts +52 -0
- package/dist/lib/components/derived/AvatarGroup/index.d.ts +2 -0
- package/dist/lib/components/derived/ButtonGroup/ButtonGroup.d.ts +33 -0
- package/dist/lib/components/derived/ButtonGroup/index.d.ts +2 -0
- package/dist/lib/components/derived/ChoiceCard/ChoiceCard.d.ts +43 -0
- package/dist/lib/components/derived/ChoiceCard/index.d.ts +2 -0
- package/dist/lib/components/derived/InputGroup/InputGroup.d.ts +23 -0
- package/dist/lib/components/derived/InputGroup/index.d.ts +2 -0
- package/dist/lib/components/derived/MorphIcon/MorphIcon.d.ts +71 -0
- package/dist/lib/components/derived/MorphIcon/index.d.ts +2 -0
- package/dist/lib/components/derived/NumberFlow/NumberFlow.d.ts +47 -0
- package/dist/lib/components/derived/NumberFlow/index.d.ts +2 -0
- package/dist/lib/components/derived/NumberInput/NumberInput.d.ts +54 -0
- package/dist/lib/components/derived/NumberInput/index.d.ts +2 -0
- package/dist/lib/components/derived/PasswordInput/PasswordInput.d.ts +53 -0
- package/dist/lib/components/derived/PasswordInput/index.d.ts +2 -0
- package/dist/lib/components/derived/SearchInput/SearchInput.d.ts +33 -0
- package/dist/lib/components/derived/SearchInput/index.d.ts +2 -0
- package/dist/lib/components/derived/SegmentedControl/SegmentedControl.d.ts +44 -0
- package/dist/lib/components/derived/SegmentedControl/index.d.ts +2 -0
- package/dist/lib/components/derived/SplitButton/SplitButton.d.ts +42 -0
- package/dist/lib/components/derived/SplitButton/index.d.ts +2 -0
- package/dist/lib/components/derived/StatusDot/StatusDot.d.ts +31 -0
- package/dist/lib/components/derived/StatusDot/index.d.ts +2 -0
- package/dist/lib/components/derived/Tag/Tag.d.ts +47 -0
- package/dist/lib/components/derived/Tag/index.d.ts +2 -0
- package/dist/lib/components/derived/TagInput/TagInput.d.ts +28 -0
- package/dist/lib/components/derived/TagInput/index.d.ts +2 -0
- package/dist/lib/components/derived/TextCycle/TextCycle.d.ts +40 -0
- package/dist/lib/components/derived/TextCycle/index.d.ts +2 -0
- package/dist/lib/components/derived/ToggleButton/ToggleButton.d.ts +43 -0
- package/dist/lib/components/derived/ToggleButton/index.d.ts +2 -0
- package/dist/lib/components/derived/index.d.ts +16 -0
- package/dist/lib/components/derived/index.js +4 -0
- package/dist/lib/components/extended/ActivityList/ActivityList.d.ts +38 -0
- package/dist/lib/components/extended/ActivityList/index.d.ts +2 -0
- package/dist/lib/components/extended/AddressForm/AddressForm.d.ts +71 -0
- package/dist/lib/components/extended/AddressForm/index.d.ts +2 -0
- package/dist/lib/components/extended/ApprovalGate/ApprovalGate.d.ts +60 -0
- package/dist/lib/components/extended/ApprovalGate/index.d.ts +2 -0
- package/dist/lib/components/extended/BackgroundProgress/BackgroundProgress.d.ts +63 -0
- package/dist/lib/components/extended/BackgroundProgress/index.d.ts +2 -0
- package/dist/lib/components/extended/Citation/Citation.d.ts +61 -0
- package/dist/lib/components/extended/Citation/index.d.ts +2 -0
- package/dist/lib/components/extended/CommentThread/CommentThread.d.ts +61 -0
- package/dist/lib/components/extended/CommentThread/index.d.ts +2 -0
- package/dist/lib/components/extended/Composer/Composer.d.ts +57 -0
- package/dist/lib/components/extended/Composer/index.d.ts +2 -0
- package/dist/lib/components/extended/CouponField/CouponField.d.ts +59 -0
- package/dist/lib/components/extended/CouponField/index.d.ts +2 -0
- package/dist/lib/components/extended/DataGrid/DataGrid.d.ts +161 -0
- package/dist/lib/components/extended/DataGrid/DataGrid.state.d.ts +93 -0
- package/dist/lib/components/extended/DataGrid/index.d.ts +2 -0
- package/dist/lib/components/extended/Dropzone/Dropzone.d.ts +83 -0
- package/dist/lib/components/extended/Dropzone/index.d.ts +2 -0
- package/dist/lib/components/extended/FeedbackControl/FeedbackControl.d.ts +47 -0
- package/dist/lib/components/extended/FeedbackControl/index.d.ts +2 -0
- package/dist/lib/components/extended/FilterBuilder/FilterBuilder.d.ts +67 -0
- package/dist/lib/components/extended/FilterBuilder/index.d.ts +2 -0
- package/dist/lib/components/extended/FollowUpList/FollowUpList.d.ts +34 -0
- package/dist/lib/components/extended/FollowUpList/index.d.ts +2 -0
- package/dist/lib/components/extended/KanbanColumn/KanbanColumn.d.ts +62 -0
- package/dist/lib/components/extended/KanbanColumn/index.d.ts +2 -0
- package/dist/lib/components/extended/Message/Message.d.ts +43 -0
- package/dist/lib/components/extended/Message/index.d.ts +2 -0
- package/dist/lib/components/extended/MessageList/MessageList.d.ts +66 -0
- package/dist/lib/components/extended/MessageList/index.d.ts +2 -0
- package/dist/lib/components/extended/MetricCard/MetricCard.d.ts +60 -0
- package/dist/lib/components/extended/MetricCard/index.d.ts +2 -0
- package/dist/lib/components/extended/OrderSummary/OrderSummary.d.ts +70 -0
- package/dist/lib/components/extended/OrderSummary/index.d.ts +2 -0
- package/dist/lib/components/extended/PaymentMethodSelector/PaymentMethodSelector.d.ts +65 -0
- package/dist/lib/components/extended/PaymentMethodSelector/index.d.ts +2 -0
- package/dist/lib/components/extended/PresenceBar/PresenceBar.d.ts +49 -0
- package/dist/lib/components/extended/PresenceBar/index.d.ts +2 -0
- package/dist/lib/components/extended/PriceDisplay/PriceDisplay.d.ts +53 -0
- package/dist/lib/components/extended/PriceDisplay/index.d.ts +2 -0
- package/dist/lib/components/extended/ProductCard/ProductCard.d.ts +58 -0
- package/dist/lib/components/extended/ProductCard/index.d.ts +2 -0
- package/dist/lib/components/extended/QuantityStepper/QuantityStepper.d.ts +41 -0
- package/dist/lib/components/extended/QuantityStepper/index.d.ts +2 -0
- package/dist/lib/components/extended/ReasoningDisclosure/ReasoningDisclosure.d.ts +33 -0
- package/dist/lib/components/extended/ReasoningDisclosure/index.d.ts +2 -0
- package/dist/lib/components/extended/RecognitionFallback/RecognitionFallback.d.ts +57 -0
- package/dist/lib/components/extended/RecognitionFallback/index.d.ts +2 -0
- package/dist/lib/components/extended/RunStatusCard/RunStatusCard.d.ts +51 -0
- package/dist/lib/components/extended/RunStatusCard/index.d.ts +2 -0
- package/dist/lib/components/extended/SavedViewTabs/SavedViewTabs.d.ts +49 -0
- package/dist/lib/components/extended/SavedViewTabs/index.d.ts +2 -0
- package/dist/lib/components/extended/SourceChip/SourceChip.d.ts +37 -0
- package/dist/lib/components/extended/SourceChip/index.d.ts +2 -0
- package/dist/lib/components/extended/SourceChipRow/SourceChipRow.d.ts +54 -0
- package/dist/lib/components/extended/SourceChipRow/index.d.ts +2 -0
- package/dist/lib/components/extended/SourcePanel/SourcePanel.d.ts +46 -0
- package/dist/lib/components/extended/SourcePanel/index.d.ts +2 -0
- package/dist/lib/components/extended/StreamingText/StreamingText.d.ts +30 -0
- package/dist/lib/components/extended/StreamingText/index.d.ts +2 -0
- package/dist/lib/components/extended/ToolCallCard/ToolCallCard.d.ts +52 -0
- package/dist/lib/components/extended/ToolCallCard/index.d.ts +2 -0
- package/dist/lib/components/extended/TranscriptSync/TranscriptSync.d.ts +58 -0
- package/dist/lib/components/extended/TranscriptSync/index.d.ts +2 -0
- package/dist/lib/components/extended/TrustBlock/TrustBlock.d.ts +37 -0
- package/dist/lib/components/extended/TrustBlock/index.d.ts +2 -0
- package/dist/lib/components/extended/VoiceControlBar/VoiceControlBar.d.ts +77 -0
- package/dist/lib/components/extended/VoiceControlBar/index.d.ts +2 -0
- package/dist/lib/components/extended/index.d.ts +35 -0
- package/dist/lib/components/extended/index.js +2 -0
- package/dist/lib/fonts/pretendard/LICENSE.txt +94 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.0.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.1.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.10.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.11.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.12.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.13.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.14.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.15.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.16.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.17.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.18.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.19.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.2.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.20.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.21.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.22.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.23.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.24.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.25.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.26.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.27.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.28.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.29.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.3.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.30.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.31.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.32.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.33.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.34.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.35.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.36.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.37.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.38.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.39.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.4.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.40.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.41.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.42.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.43.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.44.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.45.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.46.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.47.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.48.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.49.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.5.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.50.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.51.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.52.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.53.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.54.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.55.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.56.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.57.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.58.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.59.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.6.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.60.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.61.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.62.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.63.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.64.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.65.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.66.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.67.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.68.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.69.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.7.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.70.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.71.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.72.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.73.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.74.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.75.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.76.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.77.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.78.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.79.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.8.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.80.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.81.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.82.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.83.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.84.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.85.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.86.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.87.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.88.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.89.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.9.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.90.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.91.woff2 +0 -0
- package/dist/lib/foundation/focus.d.ts +10 -0
- package/dist/lib/foundation/josa.d.ts +4 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/index.js +13 -0
- package/dist/lib/pretendard.css +940 -0
- package/dist/lib/reset.css +50 -0
- package/dist/lib/styles.css +3 -0
- package/dist/lib/tokens.css +1118 -0
- package/package.json +91 -0
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./MessageList.css";
|
|
3
|
+
export type MessageListProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* The thread is waiting for its history.
|
|
7
|
+
*
|
|
8
|
+
* A conversation is opened before its messages have been fetched, and an empty scroller
|
|
9
|
+
* reads as "you have not said anything yet" — which is a different, wrong, and discouraging
|
|
10
|
+
* fact. The placeholder alternates sides because a thread does, so the shape the reader
|
|
11
|
+
* sees while waiting is the shape they get.
|
|
12
|
+
*/
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
loadingMessages?: number;
|
|
15
|
+
/** What to say when the conversation really has not started. */
|
|
16
|
+
empty?: ReactNode;
|
|
17
|
+
/** What went wrong. Error, then waiting, then empty, then messages. */
|
|
18
|
+
error?: ReactNode;
|
|
19
|
+
/**
|
|
20
|
+
* A turn is still arriving.
|
|
21
|
+
*
|
|
22
|
+
* The scroller is the live region, and `aria-busy` only counts on the region's own root:
|
|
23
|
+
* most screen readers do not look at the element inside it that changed. Marked busy here,
|
|
24
|
+
* the whole thread is left alone until the turn settles and is then announced once; left
|
|
25
|
+
* unmarked, every chunk of a streaming answer is a change to a polite live region and the
|
|
26
|
+
* paragraph is read again from the top on each one.
|
|
27
|
+
*
|
|
28
|
+
* Which is why it is a prop rather than something measured: only the caller knows a reply
|
|
29
|
+
* is still coming. `Message`'s own `state="streaming"` marks the turn, not the region.
|
|
30
|
+
*/
|
|
31
|
+
streaming?: boolean;
|
|
32
|
+
/** What this thread is. Names the scroll region, which a keyboard has to be able to reach. */
|
|
33
|
+
label: string;
|
|
34
|
+
/** How close to the end still counts as being at the end, in pixels of scroll. */
|
|
35
|
+
threshold?: number;
|
|
36
|
+
jumpLabel?: string;
|
|
37
|
+
className?: string;
|
|
38
|
+
[key: `data-${string}`]: unknown;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* The thread.
|
|
42
|
+
*
|
|
43
|
+
* Two facts about a log make this more than a scrolling div, and both are about the reader
|
|
44
|
+
* who is not at the bottom.
|
|
45
|
+
*
|
|
46
|
+
* **It must not pull them back.** Content arriving at the end of a thread scrolls the view
|
|
47
|
+
* only if the reader was already at the end. Someone reading four turns up has chosen where
|
|
48
|
+
* to be, and a thread that yanks them down every time a token arrives is unreadable during
|
|
49
|
+
* exactly the moment it matters. When they are away from the end, a button says so and takes
|
|
50
|
+
* them back on request.
|
|
51
|
+
*
|
|
52
|
+
* **It must not be re-read.** `role="log"` is `aria-live="polite"` with only additions
|
|
53
|
+
* announced, which is the difference between hearing the new turn and hearing the whole
|
|
54
|
+
* conversation again. While a reply is still arriving the caller passes `streaming` and the
|
|
55
|
+
* scroller — the live region's own root, which is the only place a reader looks — carries
|
|
56
|
+
* `aria-busy`, so what is announced is a finished sentence rather than a stream of syllables.
|
|
57
|
+
*
|
|
58
|
+
* **The way back is not a scroll position.** The button's own smooth scroll fires the same
|
|
59
|
+
* events a wheel does, and measuring them turned the press into its own undoing. What tells
|
|
60
|
+
* the two apart is the gesture, not the distance.
|
|
61
|
+
*
|
|
62
|
+
* The growth is watched rather than declared. A streaming reply changes a text node, not the
|
|
63
|
+
* list of children, so a component told "scroll when the children change" sits still for the
|
|
64
|
+
* entire answer.
|
|
65
|
+
*/
|
|
66
|
+
export declare function MessageList({ children, loading, loadingMessages, empty, error, streaming, label, threshold, jumpLabel, className, ...rest }: MessageListProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./MetricCard.css";
|
|
3
|
+
export type MetricDirection = "up" | "down" | "flat";
|
|
4
|
+
/** Whether the move was welcome. Not the same question as which way it went. */
|
|
5
|
+
export type MetricMeaning = "good" | "bad" | "neutral";
|
|
6
|
+
export type MetricDelta = {
|
|
7
|
+
/** The change, already formatted. "+12.4%", "-$320", "+2". */
|
|
8
|
+
value: ReactNode;
|
|
9
|
+
direction: MetricDirection;
|
|
10
|
+
meaning?: MetricMeaning;
|
|
11
|
+
};
|
|
12
|
+
export type MetricCardProps = {
|
|
13
|
+
/** What is being counted. "총 매출", "이탈률". */
|
|
14
|
+
label: string;
|
|
15
|
+
/** The number, already formatted — currency, unit and locale are the adopter's. */
|
|
16
|
+
value: ReactNode;
|
|
17
|
+
delta?: MetricDelta;
|
|
18
|
+
/** What the delta is against. "지난 7일 대비", "전월 대비". */
|
|
19
|
+
compare?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* The graph.
|
|
22
|
+
*
|
|
23
|
+
* A slot, and this library does not fill it. Axes, scales, tooltips, legends, resizing and
|
|
24
|
+
* the accessibility of all four are a charting library rather than a part in a design
|
|
25
|
+
* system, and there are mature ones — building it here means maintaining a worse copy of one
|
|
26
|
+
* in a few months. The card owns the number, the delta and the frame; the adopter brings
|
|
27
|
+
* ECharts or whatever else, and the boundary is this prop.
|
|
28
|
+
*
|
|
29
|
+
* `docs/CHARTS.md` is the other half: how an adopter reads this repository's tokens into an
|
|
30
|
+
* ECharts theme, which colours a series may use, and what has to happen when the theme
|
|
31
|
+
* changes under a chart that has already copied its values.
|
|
32
|
+
*/
|
|
33
|
+
chart?: ReactNode;
|
|
34
|
+
/** The card is drawn before the number exists. */
|
|
35
|
+
loading?: boolean;
|
|
36
|
+
/** There is no number, and that is an answer. "아직 주문이 없습니다". */
|
|
37
|
+
empty?: ReactNode;
|
|
38
|
+
/** The request threw. Takes precedence over waiting, which takes precedence over empty. */
|
|
39
|
+
error?: ReactNode;
|
|
40
|
+
className?: string;
|
|
41
|
+
[key: `data-${string}`]: unknown;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* One number, how it moved, and room for the picture of how it got there.
|
|
45
|
+
*
|
|
46
|
+
* **Which way it went and whether that is good are two questions, and this takes both.** A
|
|
47
|
+
* delta that colours itself by its sign is a card that paints a rising bounce rate green and a
|
|
48
|
+
* falling one red, and a reader who has learned that green means good now has to un-learn it
|
|
49
|
+
* on this one tile. `direction` draws the arrow and is said in words; `meaning` picks the
|
|
50
|
+
* colour, and it defaults to `neutral` — a card told only that the number went up says only
|
|
51
|
+
* that.
|
|
52
|
+
*
|
|
53
|
+
* **The arrow is not the carrier either.** Up and down are two shapes to a reader who can see
|
|
54
|
+
* them and one to everybody else, so the direction is in the accessible text beside the value.
|
|
55
|
+
* This is the same fact `AvatarGroup.status` learned: a mark that is only a colour or only a
|
|
56
|
+
* shape is a mark half the readers do not get.
|
|
57
|
+
*
|
|
58
|
+
* **`chart` is a slot.** See the note on the prop.
|
|
59
|
+
*/
|
|
60
|
+
export declare function MetricCard({ label, value, delta, compare, chart, loading, empty, error, className, ...rest }: MetricCardProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type PriceDisplayAffix } from "../PriceDisplay";
|
|
3
|
+
import "./OrderSummary.css";
|
|
4
|
+
export type OrderLineKind = "charge" | "discount" | "free";
|
|
5
|
+
export type OrderLine = {
|
|
6
|
+
id: string;
|
|
7
|
+
label: ReactNode;
|
|
8
|
+
/** Positive. A discount is made negative by its `kind`, not by its sign. */
|
|
9
|
+
amount: number;
|
|
10
|
+
kind?: OrderLineKind;
|
|
11
|
+
/** "3만원 이상 무료", "제주·도서 추가" — under the label, quieter. */
|
|
12
|
+
note?: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
export type OrderSummaryProps = {
|
|
15
|
+
lines: OrderLine[];
|
|
16
|
+
total: number;
|
|
17
|
+
/** What the summary is for. Names the region. */
|
|
18
|
+
label: string;
|
|
19
|
+
currency?: string;
|
|
20
|
+
locale?: string;
|
|
21
|
+
affix?: PriceDisplayAffix;
|
|
22
|
+
/**
|
|
23
|
+
* Some of these are guesses.
|
|
24
|
+
*
|
|
25
|
+
* Before an address is known, shipping and tax are estimates, and a total that does not say
|
|
26
|
+
* so is a number the reader will later feel lied to about.
|
|
27
|
+
*/
|
|
28
|
+
estimated?: boolean;
|
|
29
|
+
/** "부가세 포함" — a statement about the total, and it differs by country. */
|
|
30
|
+
totalNote?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* The name of the last row. "합계".
|
|
33
|
+
*
|
|
34
|
+
* The component localises its numbers through `locale` and `currency` and used to print its
|
|
35
|
+
* own words in Korean regardless, which made a summary that counted in dollars and totalled
|
|
36
|
+
* in Korean. The words a reader sees are the caller's.
|
|
37
|
+
*/
|
|
38
|
+
totalLabel?: string;
|
|
39
|
+
/** What an estimate says about itself. Shown under the total when `estimated`. */
|
|
40
|
+
estimateNote?: ReactNode;
|
|
41
|
+
/** The word a zero charge is written as, rather than 0. "무료". */
|
|
42
|
+
freeLabel?: string;
|
|
43
|
+
actions?: ReactNode;
|
|
44
|
+
className?: string;
|
|
45
|
+
[key: `data-${string}`]: unknown;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* 항목 · 소계 · 배송 · 세금 · 합계.
|
|
49
|
+
*
|
|
50
|
+
* **A description list, because that is what it is** — every row is a name and the value that
|
|
51
|
+
* goes with it, and a `<dl>` says so without a table's cost or a div's silence.
|
|
52
|
+
*
|
|
53
|
+
* **The total is the only line with weight.** Six bold rows is six things competing to be the
|
|
54
|
+
* number the reader remembers, and the one they need is the last.
|
|
55
|
+
*
|
|
56
|
+
* **무료 is a word, not 0원.** A zero in a column of money reads as a bug; the word reads as
|
|
57
|
+
* the thing that happened. A discount is shown with its minus, in its own tone, because
|
|
58
|
+
* subtracting is the whole of what it does. Both still carry a `<data value>`, so what a
|
|
59
|
+
* machine reads is a number even where a reader is given a word.
|
|
60
|
+
*
|
|
61
|
+
* **The numbers are localised and so are the words.** `locale` and `currency` decide how a
|
|
62
|
+
* figure is written; `totalLabel`, `estimateNote` and `freeLabel` decide what the summary
|
|
63
|
+
* calls things. A component that formatted USD and then wrote "합계" underneath was localised
|
|
64
|
+
* in one half only.
|
|
65
|
+
*
|
|
66
|
+
* **An estimate says it is one.** This is not decoration: shipping and tax before an address
|
|
67
|
+
* are guesses, and the number that changes at the last screen is the most common reason a
|
|
68
|
+
* basket is abandoned.
|
|
69
|
+
*/
|
|
70
|
+
export declare function OrderSummary({ lines, total, label, currency, locale, affix, estimated, totalNote, totalLabel, estimateNote, freeLabel, actions, className, ...rest }: OrderSummaryProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { LucideIcon } from "lucide-react";
|
|
3
|
+
import "./PaymentMethodSelector.css";
|
|
4
|
+
export type PaymentMethod = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
/** A card network, a bank, a wallet. Decorative — the label names it. */
|
|
8
|
+
icon?: LucideIcon;
|
|
9
|
+
/** "무이자 3개월", "수수료 없음" — one line under the label. */
|
|
10
|
+
note?: ReactNode;
|
|
11
|
+
/** What has to be filled in once this one is chosen. */
|
|
12
|
+
fields?: ReactNode;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/** Why it cannot be used. Shown, because a disabled option with no reason is a dead end. */
|
|
15
|
+
unavailable?: string;
|
|
16
|
+
};
|
|
17
|
+
export type PaymentMethodSelectorProps = {
|
|
18
|
+
methods: PaymentMethod[];
|
|
19
|
+
value: string;
|
|
20
|
+
onValueChange: (id: string) => void;
|
|
21
|
+
/** What is being chosen. Names the group. */
|
|
22
|
+
label: string;
|
|
23
|
+
/**
|
|
24
|
+
* The name the chosen method is submitted under. `FormData` reads this key.
|
|
25
|
+
*
|
|
26
|
+
* It used to be `useId()` and it was never exposed, so a checkout posted `_r_c_=card` — a
|
|
27
|
+
* key React mints from where the component happened to sit in the render tree, which
|
|
28
|
+
* changes when anything above it does and means nothing to a server on any render. The
|
|
29
|
+
* radios still need *a* shared name, because that is what makes them one group: without it
|
|
30
|
+
* each radio is its own group, every one takes a tab stop, and the arrow keys stop moving
|
|
31
|
+
* between them.
|
|
32
|
+
*
|
|
33
|
+
* Left out, it falls back to `paymentMethod` — a fixed name a server can read, rather than
|
|
34
|
+
* a generated one it cannot. Two selectors on one page must be named apart, since a shared
|
|
35
|
+
* name is what makes two radios the same group.
|
|
36
|
+
*/
|
|
37
|
+
name?: string;
|
|
38
|
+
className?: string;
|
|
39
|
+
[key: `data-${string}`]: unknown;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* How to pay, with the chosen one open.
|
|
43
|
+
*
|
|
44
|
+
* **This is not an accordion.** It looks like one and it is a radio group: exactly one panel
|
|
45
|
+
* is open, it is always the selected option's, and it cannot be closed without choosing
|
|
46
|
+
* something else. Built out of `Disclosure` it would allow two open at once and none open at
|
|
47
|
+
* all, and both of those are states a payment form cannot be in.
|
|
48
|
+
*
|
|
49
|
+
* **The fields belong to the option.** They are rendered inside the option's own row, after
|
|
50
|
+
* its radio, so tabbing out of "새 카드" lands in the card number rather than on the next
|
|
51
|
+
* payment method — and so a reader moving by group hears the fields as part of the thing they
|
|
52
|
+
* just chose. `aria-controls` on the radio is not a substitute: it describes a relationship
|
|
53
|
+
* and moves nothing.
|
|
54
|
+
*
|
|
55
|
+
* **The group name is the adopter's.** `name` is the key the chosen method arrives under in
|
|
56
|
+
* `FormData`. It was a generated id for a while, so the order reached the server as
|
|
57
|
+
* `_r_c_=card`, and the id changes whenever the render tree above the component does. See the
|
|
58
|
+
* note on the prop.
|
|
59
|
+
*
|
|
60
|
+
* **A card number is text.** `type="number"` strips leading zeros, adds a spinner nobody
|
|
61
|
+
* wants on a card, and refuses the spaces every card is printed with. `inputmode="numeric"`
|
|
62
|
+
* gets the keypad; `autocomplete="cc-number"` gets the browser's stored card, which is the
|
|
63
|
+
* only part of this form anyone enjoys.
|
|
64
|
+
*/
|
|
65
|
+
export declare function PaymentMethodSelector({ methods, value, onValueChange, label, name, className, ...rest }: PaymentMethodSelectorProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import type { AvatarSize } from "../../common/Avatar";
|
|
3
|
+
import "./PresenceBar.css";
|
|
4
|
+
export type PresenceState = "active" | "idle";
|
|
5
|
+
export type Person = {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
src?: string;
|
|
9
|
+
state?: PresenceState;
|
|
10
|
+
/** The reader. Marked, and first. */
|
|
11
|
+
you?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export type PresenceBarProps = {
|
|
14
|
+
people: Person[];
|
|
15
|
+
/** What they are all in. "이 문서를 보고 있는 사람". */
|
|
16
|
+
label: string;
|
|
17
|
+
/** How many faces before the rest become a count. */
|
|
18
|
+
max?: number;
|
|
19
|
+
size?: AvatarSize;
|
|
20
|
+
/** Whose view is being followed, if any. */
|
|
21
|
+
following?: string;
|
|
22
|
+
/** Given, the bar offers to follow someone. Called with `null` to stop. */
|
|
23
|
+
onFollow?: (id: string | null) => void;
|
|
24
|
+
followLabel?: string;
|
|
25
|
+
/** Something at the end — a share button, a call button. */
|
|
26
|
+
aside?: ReactNode;
|
|
27
|
+
className?: string;
|
|
28
|
+
[key: `data-${string}`]: unknown;
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Who else is in this document.
|
|
32
|
+
*
|
|
33
|
+
* **It is deliberately not a live region.** A busy document has people arriving and leaving
|
|
34
|
+
* every few seconds, and announcing each one turns a screen reader into a turnstile — the
|
|
35
|
+
* reader cannot hear the thing they are actually working on. The count is a sentence in the
|
|
36
|
+
* group's own name, there whenever they ask for it and never pushed at them.
|
|
37
|
+
*
|
|
38
|
+
* **The reader is in it, marked and first.** A bar that shows everyone except you makes the
|
|
39
|
+
* reader count faces to work out whether they are the fifth or the sixth, and that is the
|
|
40
|
+
* first question anyone asks of one of these.
|
|
41
|
+
*
|
|
42
|
+
* **The faces are not buttons.** They were, in the first version, and they were a 24px circle
|
|
43
|
+
* overlapped by a quarter — a 19px target, under the 24px WCAG 2.2 asks for, eight of them in
|
|
44
|
+
* a row. Following is a command about a person, so it lives in a menu that names them; the
|
|
45
|
+
* stack goes back to being a picture. It is `AvatarGroup`'s picture, too: the overlap, the
|
|
46
|
+
* ring, the fan order and the counter that has to sit on top of the stack rather than under
|
|
47
|
+
* it were all settled once, in the layer below.
|
|
48
|
+
*/
|
|
49
|
+
export declare function PresenceBar({ people, label, max, size, following, onFollow, followLabel, aside, className, ...rest }: PresenceBarProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./PriceDisplay.css";
|
|
3
|
+
export type PriceDisplaySize = "sm" | "md" | "lg";
|
|
4
|
+
export type PriceDisplayAffix = "symbol" | "word";
|
|
5
|
+
export type PriceDisplayProps = {
|
|
6
|
+
/** What it costs now, as a number. Never a string with commas already in it. */
|
|
7
|
+
amount: number;
|
|
8
|
+
/** What it cost before. Struck through, and never read out as the price. */
|
|
9
|
+
was?: number;
|
|
10
|
+
currency?: string;
|
|
11
|
+
locale?: string;
|
|
12
|
+
/** `₩29,000` or `29,000원`. See the note. */
|
|
13
|
+
affix?: PriceDisplayAffix;
|
|
14
|
+
size?: PriceDisplaySize;
|
|
15
|
+
/** "부가세 포함", "1개당", "월". One line, under or after the figure. */
|
|
16
|
+
note?: ReactNode;
|
|
17
|
+
/** Show how much was taken off, as a percentage. */
|
|
18
|
+
saving?: boolean;
|
|
19
|
+
/**
|
|
20
|
+
* What this is the price of, when the surrounding text does not already say.
|
|
21
|
+
*
|
|
22
|
+
* Rendered as clipped text at the front of the figure, not as `aria-label` — see the note
|
|
23
|
+
* where it is drawn.
|
|
24
|
+
*/
|
|
25
|
+
label?: string;
|
|
26
|
+
className?: string;
|
|
27
|
+
[key: `data-${string}`]: unknown;
|
|
28
|
+
};
|
|
29
|
+
export declare function money(amount: number, { locale, currency, affix }?: {
|
|
30
|
+
locale?: string;
|
|
31
|
+
currency?: string;
|
|
32
|
+
affix?: PriceDisplayAffix;
|
|
33
|
+
}): string;
|
|
34
|
+
/**
|
|
35
|
+
* A price, and what it used to be.
|
|
36
|
+
*
|
|
37
|
+
* **The number is formatted, never typed.** `Intl.NumberFormat` knows that KRW has no
|
|
38
|
+
* decimals and USD has two, where the grouping separator goes in every locale, and that some
|
|
39
|
+
* of them are not commas. Every price written by hand is right until the shop opens in a
|
|
40
|
+
* second country.
|
|
41
|
+
*
|
|
42
|
+
* **The old price must not be read out as the price.** `<s>` is a visual line; most screen
|
|
43
|
+
* readers say nothing about it, so a discounted item is announced as two prices in a row and
|
|
44
|
+
* the reader hears the wrong one last. Each figure carries a word saying which it is, clipped
|
|
45
|
+
* off the screen where the strike is doing that job for everybody else.
|
|
46
|
+
*
|
|
47
|
+
* **A saving is rounded down.** 25.8% off is 25% off. Rounding a discount up is the one
|
|
48
|
+
* rounding error that ends up in front of a regulator.
|
|
49
|
+
*
|
|
50
|
+
* The figures are tabular so a column of prices lines up and a price that changes does not
|
|
51
|
+
* shift the text beside it.
|
|
52
|
+
*/
|
|
53
|
+
export declare function PriceDisplay({ amount, was, currency, locale, affix, size, note, saving, label, className, ...rest }: PriceDisplayProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type PriceDisplayAffix } from "../PriceDisplay";
|
|
3
|
+
import "./ProductCard.css";
|
|
4
|
+
export type ProductSwatch = {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
/** The image this colour shows. Choosing a swatch changes the picture, not the page. */
|
|
8
|
+
image?: string;
|
|
9
|
+
};
|
|
10
|
+
export type ProductCardProps = {
|
|
11
|
+
name: string;
|
|
12
|
+
href: string;
|
|
13
|
+
price: number;
|
|
14
|
+
was?: number;
|
|
15
|
+
currency?: string;
|
|
16
|
+
locale?: string;
|
|
17
|
+
affix?: PriceDisplayAffix;
|
|
18
|
+
image?: string;
|
|
19
|
+
/** What the picture shows, for a reader who cannot see it. Never the product name again. */
|
|
20
|
+
imageAlt?: string;
|
|
21
|
+
/** "신상품", "베스트" — one, at the corner of the picture. */
|
|
22
|
+
flag?: ReactNode;
|
|
23
|
+
/** Out of stock changes what the card offers, not just what it says. */
|
|
24
|
+
soldOut?: boolean;
|
|
25
|
+
swatches?: ProductSwatch[];
|
|
26
|
+
swatch?: string;
|
|
27
|
+
onSwatchChange?: (id: string) => void;
|
|
28
|
+
/** The name of the swatch group. Required when there are swatches. */
|
|
29
|
+
swatchLabel?: string;
|
|
30
|
+
/** A rating, a review count, a delivery promise. */
|
|
31
|
+
meta?: ReactNode;
|
|
32
|
+
className?: string;
|
|
33
|
+
[key: `data-${string}`]: unknown;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* One product in a grid of them.
|
|
37
|
+
*
|
|
38
|
+
* **The picture has a fixed ratio.** Not a fixed height — a ratio, so the card is the same
|
|
39
|
+
* shape at every column width. Images that arrive at their own sizes make a grid jump as each
|
|
40
|
+
* one loads, and the reader's thumb lands on the wrong product.
|
|
41
|
+
*
|
|
42
|
+
* **The colours are radios, not buttons.** Choosing one changes which picture is shown and
|
|
43
|
+
* nothing else; it is a choice with one answer, and the browser has a control for that which
|
|
44
|
+
* arrows through the options and announces "3 중 2번째". A row of buttons announces nothing.
|
|
45
|
+
*
|
|
46
|
+
* **Sold out changes what the card offers.** A badge on its own leaves a card that still looks
|
|
47
|
+
* buyable — the price stays, because the reader is deciding whether to wait for it, and the
|
|
48
|
+
* swatches go, because there is nothing to choose between.
|
|
49
|
+
*
|
|
50
|
+
* **The swatch group is named after the instance.** Two cards for the same product in one
|
|
51
|
+
* document share an `href` and would share a radio group with it, so choosing a colour on one
|
|
52
|
+
* would silently unselect the other. `useId` is per render instance.
|
|
53
|
+
*
|
|
54
|
+
* The card is not a link. One link stretches over it (the pattern `Card` settled), so the
|
|
55
|
+
* accessible name is the product's name rather than the card's entire contents read aloud,
|
|
56
|
+
* and the swatches inside stay reachable.
|
|
57
|
+
*/
|
|
58
|
+
export declare function ProductCard({ name, href, price, was, currency, locale, affix, image, imageAlt, flag, soldOut, swatches, swatch, onSwatchChange, swatchLabel, meta, className, ...rest }: ProductCardProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./QuantityStepper.css";
|
|
3
|
+
export type QuantityStepperProps = {
|
|
4
|
+
value: number;
|
|
5
|
+
onValueChange: (value: number) => void;
|
|
6
|
+
/** What is being counted, for the field and both buttons. Usually the product's name. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** How many there are. The ceiling, and the sentence under it. */
|
|
9
|
+
stock?: number;
|
|
10
|
+
/** One below the floor removes the line. Without it the minus is simply disabled at 1. */
|
|
11
|
+
onRemove?: () => void;
|
|
12
|
+
removeLabel?: string;
|
|
13
|
+
/** A change in flight. The figure is the reader's, the spinner says it is not settled yet. */
|
|
14
|
+
pending?: boolean;
|
|
15
|
+
/** The floor. One in a basket, zero in a form that allows none of something. */
|
|
16
|
+
min?: number;
|
|
17
|
+
size?: "sm" | "md";
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
/** Overrides the sentence the stock would have written. */
|
|
20
|
+
note?: ReactNode;
|
|
21
|
+
className?: string;
|
|
22
|
+
[key: `data-${string}`]: unknown;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* How many of this one.
|
|
26
|
+
*
|
|
27
|
+
* `NumberInput` with three facts about a basket on top of it.
|
|
28
|
+
*
|
|
29
|
+
* **One below one is not zero.** It is removing the line, and every shop in the world draws
|
|
30
|
+
* that as the minus turning into a bin. A stepper that simply disables the minus at 1 makes
|
|
31
|
+
* the reader go and find some other control to take the item out with — and there usually
|
|
32
|
+
* isn't one, because the designer assumed this was it.
|
|
33
|
+
*
|
|
34
|
+
* **The ceiling is stock, and it says so.** A `max` that stops the plus without a word looks
|
|
35
|
+
* broken; "재고 3개" is the same limit with a reason attached.
|
|
36
|
+
*
|
|
37
|
+
* **Changing it is a write.** The figure moves at once — the reader chose it and should see
|
|
38
|
+
* it — and a spinner says it has not landed yet. Waiting for the server before showing the
|
|
39
|
+
* new number makes a basket feel broken on a train.
|
|
40
|
+
*/
|
|
41
|
+
export declare function QuantityStepper({ value, onValueChange, label, stock, onRemove, removeLabel, pending, min, size, disabled, note, className, ...rest }: QuantityStepperProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./ReasoningDisclosure.css";
|
|
3
|
+
export type ReasoningState = "thinking" | "done";
|
|
4
|
+
export type ReasoningDisclosureProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
state?: ReasoningState;
|
|
7
|
+
/** "12초". A string — the component does not own a clock. */
|
|
8
|
+
duration?: string;
|
|
9
|
+
/** Overrides the sentence the state and the duration would have written. */
|
|
10
|
+
summary?: ReactNode;
|
|
11
|
+
/** Open to begin with. Almost never what you want; see the note below. */
|
|
12
|
+
defaultOpen?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
[key: `data-${string}`]: unknown;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* 생각 보기 — the working-out, folded away.
|
|
18
|
+
*
|
|
19
|
+
* Closed by default, and it stays closed. The temptation is to open it while the model is
|
|
20
|
+
* thinking so the reader has something to watch and then close it when the answer starts —
|
|
21
|
+
* which means the page reflows twice under someone who is reading, and the one reader who
|
|
22
|
+
* deliberately opened it has it shut in their face. `<details>` keeps its own state, so a
|
|
23
|
+
* panel the reader opened while it was thinking is still open when it finishes, with no
|
|
24
|
+
* effect anywhere deciding that for them.
|
|
25
|
+
*
|
|
26
|
+
* What changes is the sentence on the summary: "생각하는 중" while it runs, and how long it
|
|
27
|
+
* took once it is over. The duration is the honest part — it is a fact after the event,
|
|
28
|
+
* where an estimate before it would have been a guess.
|
|
29
|
+
*
|
|
30
|
+
* The content is not the answer and is not set like it: one step down in size, in the muted
|
|
31
|
+
* ink. A reasoning panel that looks like body copy is read as body copy.
|
|
32
|
+
*/
|
|
33
|
+
export declare function ReasoningDisclosure({ children, state, duration, summary, defaultOpen, className, ...rest }: ReasoningDisclosureProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./RecognitionFallback.css";
|
|
3
|
+
/**
|
|
4
|
+
* Which of the two things happened, or neither.
|
|
5
|
+
*
|
|
6
|
+
* `null` is not a third state — it is the absence of one, and the component draws nothing.
|
|
7
|
+
*/
|
|
8
|
+
export type RecognitionReason = "carried" | "lost";
|
|
9
|
+
export type RecognitionFallbackProps = {
|
|
10
|
+
reason: RecognitionReason | null;
|
|
11
|
+
/**
|
|
12
|
+
* The half-sentence that was recovered. Only meaningful with `carried`.
|
|
13
|
+
*
|
|
14
|
+
* It may be wrong — that is the nature of a partial result — so handing it on is one action
|
|
15
|
+
* and throwing it away is another, and neither is hidden behind the other.
|
|
16
|
+
*/
|
|
17
|
+
carried?: string;
|
|
18
|
+
/** Why it stopped, in the reader's words. "소리가 잡히지 않았습니다", not an error code. */
|
|
19
|
+
detail?: ReactNode;
|
|
20
|
+
/**
|
|
21
|
+
* Try the microphone again.
|
|
22
|
+
*
|
|
23
|
+
* **Only pass this where a retry can work.** A permission that was refused, a device that is
|
|
24
|
+
* not there and a browser that does not do speech are all failures a second attempt repeats
|
|
25
|
+
* exactly; offering one is asking the reader to fail again on purpose.
|
|
26
|
+
*/
|
|
27
|
+
onRetry?: () => void;
|
|
28
|
+
/** Hand what there is over to typing. Always here — it is the way out that always works. */
|
|
29
|
+
onType: (text: string) => void;
|
|
30
|
+
/** Throw the recovered text away. Only meaningful with `carried`. */
|
|
31
|
+
onDiscard?: () => void;
|
|
32
|
+
className?: string;
|
|
33
|
+
[key: `data-${string}`]: unknown;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* The handover from speaking to typing, without losing the sentence already spoken.
|
|
37
|
+
*
|
|
38
|
+
* **Two states, not one.** `carried` means half a sentence was recovered; `lost` means the
|
|
39
|
+
* failure arrived with nothing attached. Telling somebody to start over is a different message
|
|
40
|
+
* from handing them half of what they said, and folding the two together makes the good case
|
|
41
|
+
* look like the bad one. The reader who sees their own words on screen knows the microphone
|
|
42
|
+
* worked and something else did not.
|
|
43
|
+
*
|
|
44
|
+
* **`reason === null` shows nothing.** It is dormant, not decorative — a box that sits there
|
|
45
|
+
* saying "no problems" is a box that trains the reader to stop looking at that corner. What
|
|
46
|
+
* stays behind is an empty live region with no box of its own, because a region announced only
|
|
47
|
+
* once it is inserted is a region some screen readers never read.
|
|
48
|
+
*
|
|
49
|
+
* **The recovered text can be wrong, and getting rid of it is one action.** A partial result is
|
|
50
|
+
* a guess. Making the reader select and delete somebody else's guess before they can type is
|
|
51
|
+
* making them pay for the failure twice.
|
|
52
|
+
*
|
|
53
|
+
* **Typing is always offered; retrying is not.** A refused permission, a missing device and a
|
|
54
|
+
* browser with no speech engine all fail the same way the second time, and a retry button in
|
|
55
|
+
* front of them is an invitation to fail again on purpose.
|
|
56
|
+
*/
|
|
57
|
+
export declare function RecognitionFallback({ reason, carried, detail, onRetry, onType, onDiscard, className, ...rest }: RecognitionFallbackProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import "./RunStatusCard.css";
|
|
3
|
+
export type RunState = "queued" | "running" | "done" | "failed" | "cancelled";
|
|
4
|
+
export type RunStatusCardProps = {
|
|
5
|
+
/** What is running, in the reader's words. */
|
|
6
|
+
title: string;
|
|
7
|
+
state: RunState;
|
|
8
|
+
/** How long it has been going. "1분 24초". See the note on estimates. */
|
|
9
|
+
elapsed?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Only when there is something real to count.
|
|
12
|
+
*
|
|
13
|
+
* `value` of `max` steps that actually exist. A bar invented to look like progress is a
|
|
14
|
+
* lie that gets found out at 90%.
|
|
15
|
+
*
|
|
16
|
+
* **`done` fills the bar, whatever `value` says.** "완료" beside a bar stopped at seven of
|
|
17
|
+
* twelve is the card contradicting itself in the same line, and the reader has to decide
|
|
18
|
+
* which half to believe. The other two ends do not fill: a run that failed or was
|
|
19
|
+
* cancelled really did stop where it stopped, and that is the fact worth keeping.
|
|
20
|
+
*/
|
|
21
|
+
progress?: {
|
|
22
|
+
value: number;
|
|
23
|
+
max: number;
|
|
24
|
+
label: string;
|
|
25
|
+
};
|
|
26
|
+
/** The step it is on now, or why it stopped. */
|
|
27
|
+
detail?: ReactNode;
|
|
28
|
+
onCancel?: () => void;
|
|
29
|
+
cancelLabel?: string;
|
|
30
|
+
/** What to do about a run that has finished — open it, retry it, undo it. */
|
|
31
|
+
actions?: ReactNode;
|
|
32
|
+
className?: string;
|
|
33
|
+
[key: `data-${string}`]: unknown;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* A long job, while it runs and after it stops.
|
|
37
|
+
*
|
|
38
|
+
* **There is no estimate here, and that is the design.** "약 2분 남음" is a guess printed in
|
|
39
|
+
* the same type as a fact, and it is wrong often enough that a reader learns to distrust
|
|
40
|
+
* everything next to it. Elapsed time is a fact. A step count is a fact when the steps
|
|
41
|
+
* exist. Neither of them promises anything.
|
|
42
|
+
*
|
|
43
|
+
* **Cancel is available the whole time it is running**, in one place, and it does not move
|
|
44
|
+
* when the detail line under it changes length. A stop control that is only reachable after
|
|
45
|
+
* the reader has found the right menu is a stop control for a job that has already finished.
|
|
46
|
+
*
|
|
47
|
+
* **It does not disappear when it ends.** A card that vanishes on completion leaves a reader
|
|
48
|
+
* who looked away with no way to find out whether the thing they started actually happened —
|
|
49
|
+
* so it stays, says which of the four ends it reached, and carries whatever comes next.
|
|
50
|
+
*/
|
|
51
|
+
export declare function RunStatusCard({ title, state, elapsed, progress, detail, onCancel, cancelLabel, actions, className, ...rest }: RunStatusCardProps): import("react").JSX.Element;
|