@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,38 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./ActivityList.css";
|
|
3
|
+
export type ActivityState = "pending" | "running" | "done" | "failed" | "skipped";
|
|
4
|
+
export type ActivityStep = {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
/** What it found, what it is doing — one line, under the label. */
|
|
8
|
+
detail?: ReactNode;
|
|
9
|
+
state: ActivityState;
|
|
10
|
+
/** "3.2초". A string, because the component does not own a clock. */
|
|
11
|
+
duration?: string;
|
|
12
|
+
};
|
|
13
|
+
export type ActivityListProps = {
|
|
14
|
+
steps: ActivityStep[];
|
|
15
|
+
/** What the whole run is. Names the list. */
|
|
16
|
+
label: string;
|
|
17
|
+
/** Say the current step as it changes. Off for a run that has already finished. */
|
|
18
|
+
announce?: boolean;
|
|
19
|
+
size?: "sm" | "md";
|
|
20
|
+
className?: string;
|
|
21
|
+
[key: `data-${string}`]: unknown;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* What the agent is doing, step by step.
|
|
25
|
+
*
|
|
26
|
+
* An ordered list, because the order is the content — and `<ol>` gives a reader "3 중 2번째"
|
|
27
|
+
* without a word of ARIA.
|
|
28
|
+
*
|
|
29
|
+
* The announcement is one line, not the list. Marking the whole thing live means every state
|
|
30
|
+
* change re-reads every step, and by the fourth one the reader is three steps behind what
|
|
31
|
+
* they are hearing. What is announced is the step that is running now; the rest is there to
|
|
32
|
+
* be read at leisure.
|
|
33
|
+
*
|
|
34
|
+
* The state is never only the colour. A green ring and an amber ring are the same ring to a
|
|
35
|
+
* reader who cannot separate them, so the glyph differs — a tick, a cross, a dash — and the
|
|
36
|
+
* state is in the accessible name in words.
|
|
37
|
+
*/
|
|
38
|
+
export declare function ActivityList({ steps, label, announce, size, className, ...rest }: ActivityListProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./AddressForm.css";
|
|
3
|
+
export type AddressCountry = "KR" | "US";
|
|
4
|
+
export type Address = {
|
|
5
|
+
country: AddressCountry;
|
|
6
|
+
name: string;
|
|
7
|
+
phone: string;
|
|
8
|
+
postalCode: string;
|
|
9
|
+
/** 도로명 주소 / street address. */
|
|
10
|
+
line1: string;
|
|
11
|
+
/** 상세주소 / apartment, suite. */
|
|
12
|
+
line2: string;
|
|
13
|
+
/** 시·군·구 / city. */
|
|
14
|
+
city: string;
|
|
15
|
+
/** 시·도 / state. Not used in the Korean layout — the postcode carries it. */
|
|
16
|
+
region: string;
|
|
17
|
+
};
|
|
18
|
+
export type AddressFormProps = {
|
|
19
|
+
value: Address;
|
|
20
|
+
onChange: (value: Address) => void;
|
|
21
|
+
/** What this address is for. Names the group. */
|
|
22
|
+
label: string;
|
|
23
|
+
/**
|
|
24
|
+
* Open the postcode lookup.
|
|
25
|
+
*
|
|
26
|
+
* In Korea an address starts here rather than ending here, and nobody types the five
|
|
27
|
+
* digits — see the note.
|
|
28
|
+
*/
|
|
29
|
+
onFindPostcode?: () => void;
|
|
30
|
+
/** Per-field messages, keyed by the field's name. */
|
|
31
|
+
errors?: Partial<Record<keyof Address, ReactNode>>;
|
|
32
|
+
countries?: AddressCountry[];
|
|
33
|
+
/**
|
|
34
|
+
* The states the American layout offers, in the order they are listed.
|
|
35
|
+
*
|
|
36
|
+
* Six codes ship as the default because a demo needs something to open, not because six is
|
|
37
|
+
* a list anybody would ship. A real form passes all fifty — which is why this is a prop and
|
|
38
|
+
* not a constant in the file, where the limit was invisible until someone deployed it.
|
|
39
|
+
*/
|
|
40
|
+
regions?: string[];
|
|
41
|
+
/**
|
|
42
|
+
* Prepended to every control's `name`, joined with a dot — `"shipping"` gives
|
|
43
|
+
* `shipping.postalCode`.
|
|
44
|
+
*
|
|
45
|
+
* A checkout asks for two addresses on one screen, and two sets of controls called
|
|
46
|
+
* `postalCode` submit one value between them. Same reason the ids are generated.
|
|
47
|
+
*/
|
|
48
|
+
namePrefix?: string;
|
|
49
|
+
className?: string;
|
|
50
|
+
[key: `data-${string}`]: unknown;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* An address, in the shape the country actually uses.
|
|
54
|
+
*
|
|
55
|
+
* **The shape is the whole component.** A form with 도로명 주소 · 상세주소 · 우편번호 in that
|
|
56
|
+
* order is wrong in Korea and a form with Street · City · State · ZIP is wrong everywhere
|
|
57
|
+
* else. The order differs, the labels differ, and which fields exist differs — the Korean
|
|
58
|
+
* layout has no state field at all, because the postcode carries the province and the city
|
|
59
|
+
* and asking again is asking the reader to check the system's work.
|
|
60
|
+
*
|
|
61
|
+
* **In Korea the postcode is found, not typed.** The five digits are looked up from the road
|
|
62
|
+
* name in a dialog that every Korean shop uses, and the two address lines are filled from
|
|
63
|
+
* what comes back. A Korean address form with a bare postcode text field is a form the reader
|
|
64
|
+
* has to leave to use, and this is the single most common way one is got wrong.
|
|
65
|
+
*
|
|
66
|
+
* **Every field carries its `autocomplete` token.** That is what lets a browser fill six
|
|
67
|
+
* fields in one press, and it is the difference between thirty seconds and four. The tokens
|
|
68
|
+
* are not guessable — `address-level1` is the state and `address-level2` is the city, which
|
|
69
|
+
* reads backwards until you know it means "how far down the administrative tree".
|
|
70
|
+
*/
|
|
71
|
+
export declare function AddressForm({ value, onChange, label, onFindPostcode, errors, countries, regions, namePrefix, className, ...rest }: AddressFormProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./ApprovalGate.css";
|
|
3
|
+
export type ApprovalState = "waiting" | "approved" | "denied" | "expired";
|
|
4
|
+
export type ApprovalRisk = "normal" | "high";
|
|
5
|
+
export type ApprovalScope = {
|
|
6
|
+
id: string;
|
|
7
|
+
/** "이번만", "이 대화 동안", "항상" */
|
|
8
|
+
label: string;
|
|
9
|
+
/** Exactly what that covers. A scope with no description is a blank cheque. */
|
|
10
|
+
description: string;
|
|
11
|
+
};
|
|
12
|
+
export type ApprovalGateProps = {
|
|
13
|
+
/** What is being asked, as a question. "이 명령을 실행할까요?" */
|
|
14
|
+
title: string;
|
|
15
|
+
/**
|
|
16
|
+
* The action itself, in specifics.
|
|
17
|
+
*
|
|
18
|
+
* The file, the command, the address. "이 도구를 실행할까요?" is not a request anyone can
|
|
19
|
+
* answer; it is a request to trust the asker.
|
|
20
|
+
*/
|
|
21
|
+
action: ReactNode;
|
|
22
|
+
/** What it will do, or what it cannot be undone from. */
|
|
23
|
+
detail?: ReactNode;
|
|
24
|
+
scopes?: ApprovalScope[];
|
|
25
|
+
scope?: string;
|
|
26
|
+
onScopeChange?: (id: string) => void;
|
|
27
|
+
onApprove?: () => void;
|
|
28
|
+
onDeny?: () => void;
|
|
29
|
+
approveLabel?: string;
|
|
30
|
+
denyLabel?: string;
|
|
31
|
+
risk?: ApprovalRisk;
|
|
32
|
+
state?: ApprovalState;
|
|
33
|
+
/** What was decided and when, once it has been. */
|
|
34
|
+
decision?: ReactNode;
|
|
35
|
+
className?: string;
|
|
36
|
+
[key: `data-${string}`]: unknown;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* A permission request, and the decision.
|
|
40
|
+
*
|
|
41
|
+
* This is the highest-stakes component in the library, and almost everything about it is
|
|
42
|
+
* about slowing the reader down by exactly one beat.
|
|
43
|
+
*
|
|
44
|
+
* **Nothing is focused and nothing submits by default.** Not a `<form>`, no `autoFocus`, and
|
|
45
|
+
* no button that Enter reaches on its own. A reader who has pressed Enter five times to send
|
|
46
|
+
* five messages will press it a sixth time, and if the sixth one approves a `rm -rf` then the
|
|
47
|
+
* component built that outcome, not the reader.
|
|
48
|
+
*
|
|
49
|
+
* **A dangerous approval is not the primary button.** At `risk="high"` the approve control is
|
|
50
|
+
* an outline in the danger tone and 거부 is the filled one, because the button that looks like
|
|
51
|
+
* the button is the one that gets pressed. Making the safe choice the good-looking choice is
|
|
52
|
+
* the only styling decision here that matters.
|
|
53
|
+
*
|
|
54
|
+
* **The scope is stated, not implied.** "항상 허용" that does not say what "항상" covers is a
|
|
55
|
+
* blank cheque, so each option carries the sentence describing what it grants.
|
|
56
|
+
*
|
|
57
|
+
* **The decision stays on the page.** A gate that vanishes once answered leaves no record of
|
|
58
|
+
* what was agreed to, which is the one thing anyone will want afterwards.
|
|
59
|
+
*/
|
|
60
|
+
export declare function ApprovalGate({ title, action, detail, scopes, scope, onScopeChange, onApprove, onDeny, approveLabel, denyLabel, risk, state, decision, className, ...rest }: ApprovalGateProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./BackgroundProgress.css";
|
|
3
|
+
export type BackgroundJobState = "running" | "done" | "failed";
|
|
4
|
+
export type BackgroundJob = {
|
|
5
|
+
id: string;
|
|
6
|
+
/** What is being done, in the reader's words. A file name, a report title. */
|
|
7
|
+
label: string;
|
|
8
|
+
state?: BackgroundJobState;
|
|
9
|
+
/**
|
|
10
|
+
* How far along, 0 to 100. Omitted means there is no measurable end — which is a different
|
|
11
|
+
* statement, and `Progress` draws it differently.
|
|
12
|
+
*/
|
|
13
|
+
value?: number;
|
|
14
|
+
/** One line under the label: a size, a stage, or why it failed. */
|
|
15
|
+
detail?: ReactNode;
|
|
16
|
+
onCancel?: () => void;
|
|
17
|
+
};
|
|
18
|
+
export type BackgroundProgressProps = {
|
|
19
|
+
/** What the batch is. "파일 4개 업로드 중". Names the region. */
|
|
20
|
+
title: string;
|
|
21
|
+
jobs: BackgroundJob[];
|
|
22
|
+
/**
|
|
23
|
+
* The whole batch's progress, 0 to 100.
|
|
24
|
+
*
|
|
25
|
+
* Taken rather than worked out. A mean of the jobs' percentages is only the batch's progress
|
|
26
|
+
* when every job is the same size, and it never is — a 2 KB file and a 2 GB one at 50% each
|
|
27
|
+
* is not a batch at 50%. The caller knows the weights; this does not, and a number that is
|
|
28
|
+
* confidently wrong is worse than no number.
|
|
29
|
+
*/
|
|
30
|
+
value?: number;
|
|
31
|
+
/** Expanded. Collapsed, the panel is one line and a bar. */
|
|
32
|
+
open?: boolean;
|
|
33
|
+
onOpenChange?: (open: boolean) => void;
|
|
34
|
+
/** Given, the panel can be put away. Without it there is no close button. */
|
|
35
|
+
onDismiss?: () => void;
|
|
36
|
+
/**
|
|
37
|
+
* The viewport, or the box it was put in.
|
|
38
|
+
*
|
|
39
|
+
* `AppShell` learned this one: a panel with its position welded to the window cannot be
|
|
40
|
+
* embedded or demonstrated. Everything in this repository that pins itself takes this.
|
|
41
|
+
*/
|
|
42
|
+
fit?: "viewport" | "container";
|
|
43
|
+
className?: string;
|
|
44
|
+
[key: `data-${string}`]: unknown;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Work that kept going after the reader looked away.
|
|
48
|
+
*
|
|
49
|
+
* **It is a way back, not a notification.** A toast says a thing happened and leaves; this
|
|
50
|
+
* stays because the thing has not happened yet. The reader started an upload, navigated
|
|
51
|
+
* somewhere else, and the only question that matters is whether they can get back to it —
|
|
52
|
+
* `docs/최신-UI-신규-컴포넌트.md` 2.2 calls that the re-entry point, and every reference
|
|
53
|
+
* screen puts it in the same corner and keeps it there across navigation.
|
|
54
|
+
*
|
|
55
|
+
* **Collapsed is the resting state and it still reports.** A panel that hides the number when
|
|
56
|
+
* it is out of the way is a panel the reader has to open to learn anything, which is the
|
|
57
|
+
* interruption it was built to avoid. Collapsed shows the title and the bar; expanded adds the
|
|
58
|
+
* list and the cancels.
|
|
59
|
+
*
|
|
60
|
+
* **A failure does not close it.** The one job that needs the reader is the one they would
|
|
61
|
+
* lose if this tidied itself away on the last completion.
|
|
62
|
+
*/
|
|
63
|
+
export declare function BackgroundProgress({ title, jobs, value, open, onOpenChange, onDismiss, fit, className, ...rest }: BackgroundProgressProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import "./Citation.css";
|
|
2
|
+
type CitationBase = {
|
|
3
|
+
/**
|
|
4
|
+
* The number this citation carries in the answer.
|
|
5
|
+
*
|
|
6
|
+
* The same number `SourceChip` and `SourcePanel` already take, and for the same reason:
|
|
7
|
+
* it is the claim's number, not a position in any list. Two sentences citing the same
|
|
8
|
+
* source both say 3.
|
|
9
|
+
*/
|
|
10
|
+
index: number;
|
|
11
|
+
/** The source's own title. What the hover shows and what a screen reader hears. */
|
|
12
|
+
title: string;
|
|
13
|
+
domain?: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
[key: `data-${string}`]: unknown;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* One of the two destinations is required, in the type.
|
|
19
|
+
*
|
|
20
|
+
* A marker with neither is a control that takes focus and then does nothing with it, which
|
|
21
|
+
* is worse than no marker at all: a reader tabs to it, hears a source name, presses Enter
|
|
22
|
+
* and nothing happens. The union refuses that call at compile time; the runtime draws a
|
|
23
|
+
* plain, unfocusable marker rather than a dead button for the callers TypeScript cannot see.
|
|
24
|
+
*/
|
|
25
|
+
export type CitationProps = CitationBase & ({
|
|
26
|
+
/** Given, the marker is a link that opens the source in a new tab. */
|
|
27
|
+
href: string;
|
|
28
|
+
/** Take the reader to this source in the panel beside the answer. */
|
|
29
|
+
onActivate?: () => void;
|
|
30
|
+
} | {
|
|
31
|
+
href?: undefined;
|
|
32
|
+
/** Without `href` the marker is a button and this is the only way out of it. */
|
|
33
|
+
onActivate: () => void;
|
|
34
|
+
});
|
|
35
|
+
/**
|
|
36
|
+
* A source, marked inside the sentence it supports.
|
|
37
|
+
*
|
|
38
|
+
* `SourceChip` lives under a paragraph; this lives in one. That is the whole difference and
|
|
39
|
+
* it is not cosmetic — a row of chips says "these are the sources for all of this", and a
|
|
40
|
+
* reader checking one claim has to guess which chip answers it. A marker in the sentence
|
|
41
|
+
* says which.
|
|
42
|
+
*
|
|
43
|
+
* **It must not change the height of the line it is in.** A superscript is the one inline
|
|
44
|
+
* element that routinely does: `vertical-align: super` lifts the box and the line grows to
|
|
45
|
+
* contain it, so a paragraph with citations has looser leading than the paragraph above it,
|
|
46
|
+
* and the two do not look like the same document. The fix is to lift by offset instead —
|
|
47
|
+
* relative positioning moves no layout — and to give the marker a line box of zero. That is
|
|
48
|
+
* what `--leading-none` was written for.
|
|
49
|
+
*
|
|
50
|
+
* **It goes straight after the word, with no space.** JSX turns a line break before an
|
|
51
|
+
* element into one, so `…입니다\n<Citation />` renders `…입니다 ¹` — the marker detaches from
|
|
52
|
+
* the claim it marks and drifts toward the full stop after it. Written inline, it reads the
|
|
53
|
+
* way a footnote marker is supposed to.
|
|
54
|
+
*
|
|
55
|
+
* The target is smaller than 24px and that is allowed: WCAG 2.2's target-size rule exempts a
|
|
56
|
+
* target in a sentence, because making it 24px is making the sentence 24px. What is not
|
|
57
|
+
* exempt is the name — a bare "3" is what every implementation ships and what no screen
|
|
58
|
+
* reader can use, so the number is decorative and the name says what it is.
|
|
59
|
+
*/
|
|
60
|
+
export declare function Citation({ index, title, domain, href, onActivate, className, ...rest }: CitationProps): import("react").JSX.Element;
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./CommentThread.css";
|
|
3
|
+
export type Comment = {
|
|
4
|
+
id: string;
|
|
5
|
+
author: string;
|
|
6
|
+
/** `YYYY-MM-DD HH:mm`. A string; see the note in `DatePicker`. */
|
|
7
|
+
time: string;
|
|
8
|
+
/** What a reader sees — "3분 전". The exact time stays in the attribute. */
|
|
9
|
+
timeLabel?: string;
|
|
10
|
+
body: ReactNode;
|
|
11
|
+
edited?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* One level. A reply to a reply is a reply to the same comment.
|
|
14
|
+
*
|
|
15
|
+
* Deeper lists are not refused, they are flattened onto this one: a caller who nests
|
|
16
|
+
* further gets every reply, in order, at the single depth the CSS and the count know about.
|
|
17
|
+
*/
|
|
18
|
+
replies?: Comment[];
|
|
19
|
+
/** Per-comment controls, painted out until wanted. */
|
|
20
|
+
actions?: ReactNode;
|
|
21
|
+
};
|
|
22
|
+
export type CommentThreadProps = {
|
|
23
|
+
comments: Comment[];
|
|
24
|
+
/** What the thread is about. Names the region. */
|
|
25
|
+
label: string;
|
|
26
|
+
resolved?: boolean;
|
|
27
|
+
onResolve?: () => void;
|
|
28
|
+
onReopen?: () => void;
|
|
29
|
+
/** The box at the end. Given, it is the last thing in the thread. */
|
|
30
|
+
composer?: ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* The thread is waiting for its comments.
|
|
33
|
+
*
|
|
34
|
+
* A thread hangs off something else — a line of a document, a cell, a design — and it opens
|
|
35
|
+
* before its comments have been asked for. Without this, an open thread that has not
|
|
36
|
+
* answered yet looks exactly like a thread nobody has written in, and the reader writes the
|
|
37
|
+
* comment that was already there.
|
|
38
|
+
*/
|
|
39
|
+
loading?: boolean;
|
|
40
|
+
loadingComments?: number;
|
|
41
|
+
/** What to say when the thread really is new. */
|
|
42
|
+
empty?: ReactNode;
|
|
43
|
+
/** What went wrong. Error, then waiting, then empty, then comments. */
|
|
44
|
+
error?: ReactNode;
|
|
45
|
+
className?: string;
|
|
46
|
+
[key: `data-${string}`]: unknown;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* A comment and what came back.
|
|
50
|
+
*
|
|
51
|
+
* **Replies are one level deep, and that is a decision rather than a limitation.** Nesting
|
|
52
|
+
* that goes on forever is unreadable by the fourth level — forty characters of indent on a
|
|
53
|
+
* phone leaves room for two words a line — and every product that shipped it eventually
|
|
54
|
+
* flattened it. A reply to a reply attaches to the same comment, which is what the reader
|
|
55
|
+
* meant anyway.
|
|
56
|
+
*
|
|
57
|
+
* **Resolving folds the thread; it does not delete it.** The decision and the argument that
|
|
58
|
+
* produced it are the record, and a resolve that removes them removes the only reason anyone
|
|
59
|
+
* would look.
|
|
60
|
+
*/
|
|
61
|
+
export declare function CommentThread({ comments, label, resolved, onResolve, onReopen, composer, loading, loadingComments, empty, error, className, ...rest }: CommentThreadProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Composer.css";
|
|
3
|
+
export type ComposerRows = 4 | 6 | 8 | 10 | 12;
|
|
4
|
+
export type ComposerProps = {
|
|
5
|
+
value: string;
|
|
6
|
+
onValueChange: (value: string) => void;
|
|
7
|
+
onSubmit: () => void;
|
|
8
|
+
/** Called instead of `onSubmit` while `running`. Without it the run cannot be stopped. */
|
|
9
|
+
onStop?: () => void;
|
|
10
|
+
running?: boolean;
|
|
11
|
+
/** Names the field. A composer with no label is an unlabelled textarea. */
|
|
12
|
+
label: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
/** How tall it grows before it starts scrolling instead. */
|
|
15
|
+
maxRows?: ComposerRows;
|
|
16
|
+
/** Files and images already attached, above the field. */
|
|
17
|
+
attachments?: ReactNode;
|
|
18
|
+
/** Mode, model, tools — whatever sits on the left of the bottom row. */
|
|
19
|
+
tools?: ReactNode;
|
|
20
|
+
/** A line in the tool row, to the left of the send button. Keep it short; it is read every time. */
|
|
21
|
+
hint?: ReactNode;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Enter sends and Shift+Enter breaks the line.
|
|
25
|
+
*
|
|
26
|
+
* Left alone this follows the pointer: on a coarse one there is no Shift key to hold, so
|
|
27
|
+
* Enter has to be a newline and the button is the only way to send. A desktop default
|
|
28
|
+
* shipped to a phone makes a line break impossible to type.
|
|
29
|
+
*/
|
|
30
|
+
enterSends?: boolean;
|
|
31
|
+
sendLabel?: string;
|
|
32
|
+
stopLabel?: string;
|
|
33
|
+
className?: string;
|
|
34
|
+
[key: `data-${string}`]: unknown;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* What the reader types, and the controls around it.
|
|
38
|
+
*
|
|
39
|
+
* Three things here are the whole reason this is a component rather than a textarea with a
|
|
40
|
+
* button next to it.
|
|
41
|
+
*
|
|
42
|
+
* **한글 is composed before it is typed.** While a syllable is being assembled, every
|
|
43
|
+
* keystroke — including Enter, which commits it — fires `keydown` with `isComposing` set.
|
|
44
|
+
* A composer that sends on Enter without checking sends on the Enter that finishes 안녕, so
|
|
45
|
+
* the message goes out as 안녕하세 and the last syllable lands in the next one. This is not
|
|
46
|
+
* an edge case in Korean; it is every sentence. Older engines report the same state as
|
|
47
|
+
* `keyCode === 229`, which is why both are checked.
|
|
48
|
+
*
|
|
49
|
+
* **It grows without an inline style.** The field is stacked on a hidden copy of its own
|
|
50
|
+
* value in one grid cell, so the cell is as tall as the text and the textarea stretches to
|
|
51
|
+
* it. The usual answer — measuring `scrollHeight` and writing `element.style.height` — puts
|
|
52
|
+
* a value in the one place no stylesheet can reach.
|
|
53
|
+
*
|
|
54
|
+
* **Send and stop are the same button.** A run is stopped from where it was started; a stop
|
|
55
|
+
* control that appears somewhere else moves the target under a hand already on its way.
|
|
56
|
+
*/
|
|
57
|
+
export declare function Composer({ value, onValueChange, onSubmit, onStop, running, label, placeholder, maxRows, attachments, tools, hint, disabled, enterSends, sendLabel, stopLabel, className, ...rest }: ComposerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./CouponField.css";
|
|
3
|
+
export type AppliedCoupon = {
|
|
4
|
+
code: string;
|
|
5
|
+
/** What it did, in words. "10% 할인", "배송비 무료". */
|
|
6
|
+
effect: ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export type CouponFieldProps = {
|
|
9
|
+
value: string;
|
|
10
|
+
onValueChange: (value: string) => void;
|
|
11
|
+
onApply: () => void;
|
|
12
|
+
/** What is already on the order. Several, because several can be. */
|
|
13
|
+
applied?: AppliedCoupon[];
|
|
14
|
+
onRemove?: (code: string) => void;
|
|
15
|
+
/** Why the last code was refused. Kept until the reader types something else. */
|
|
16
|
+
error?: ReactNode;
|
|
17
|
+
pending?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Which element the field is drawn as. `"form"` on its own, `"div"` inside another form.
|
|
20
|
+
*
|
|
21
|
+
* A code and an apply button are a form, and standing alone that is what this should be.
|
|
22
|
+
* Put inside a checkout's form it becomes a form inside a form, which HTML does not have:
|
|
23
|
+
* the browser drops the inner one, React warns, and pressing 적용 submits the *outer* form
|
|
24
|
+
* natively — the page navigates to `/?` and this component's own `preventDefault` never
|
|
25
|
+
* runs, because the handler is on an element that no longer exists as a form.
|
|
26
|
+
*
|
|
27
|
+
* As `"div"` the apply button is a plain button, Enter in the field is caught and stopped
|
|
28
|
+
* here, and nothing reaches the surrounding form. That last part is the reason this is not
|
|
29
|
+
* simply "render a div": Enter in a text input submits the form that owns it, so a coupon
|
|
30
|
+
* code typed and confirmed would place the order.
|
|
31
|
+
*/
|
|
32
|
+
as?: "form" | "div";
|
|
33
|
+
label?: string;
|
|
34
|
+
placeholder?: string;
|
|
35
|
+
applyLabel?: string;
|
|
36
|
+
disabled?: boolean;
|
|
37
|
+
className?: string;
|
|
38
|
+
[key: `data-${string}`]: unknown;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* A code, and what it turned into.
|
|
42
|
+
*
|
|
43
|
+
* `InputGroup` with three facts about a checkout on top.
|
|
44
|
+
*
|
|
45
|
+
* **An applied coupon stops being text in a field.** It becomes a line saying what it did and
|
|
46
|
+
* a way to take it off. Leaving the code in the box is how a reader ends up pressing 적용
|
|
47
|
+
* twice, and how a shop ends up with a field whose contents mean two different things
|
|
48
|
+
* depending on state nobody can see.
|
|
49
|
+
*
|
|
50
|
+
* **A refusal needs its reason.** "사용할 수 없는 코드입니다" is the same sentence for
|
|
51
|
+
* expired, already used, below the minimum and wrong shop, and only one of those four is
|
|
52
|
+
* worth the reader's next thirty seconds.
|
|
53
|
+
*
|
|
54
|
+
* **The field is not cleared on failure.** The reader typed it; if it was refused they will
|
|
55
|
+
* want to look at what they typed. Clearing it makes them find the email again.
|
|
56
|
+
*
|
|
57
|
+
* **It is a `<form>` alone and a `<div>` inside one.** See the note on `as`.
|
|
58
|
+
*/
|
|
59
|
+
export declare function CouponField({ value, onValueChange, onApply, applied, onRemove, error, pending, as, label, placeholder, applyLabel, disabled, className, ...rest }: CouponFieldProps): import("react").JSX.Element;
|