@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,372 @@
|
|
|
1
|
+
import { i as e, n as t, r as n, s as r, t as i } from "./VisuallyHidden-DcE0EFpo.js";
|
|
2
|
+
import { t as a } from "./Input-Bv7L1_wj.js";
|
|
3
|
+
import { t as o } from "./Tag-Z8PjnJFt.js";
|
|
4
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
|
+
import { useCallback as u, useId as d, useRef as f, useState as p } from "react";
|
|
6
|
+
import { Check as m, ChevronDown as h, Eye as g, EyeOff as _, Search as v, X as y } from "lucide-react";
|
|
7
|
+
//#region src/components/derived/ButtonGroup/ButtonGroup.tsx
|
|
8
|
+
function b({ children: e, label: t, orientation: n = "horizontal", attached: r = !0, className: i, ...a }) {
|
|
9
|
+
return /* @__PURE__ */ c("div", {
|
|
10
|
+
...a,
|
|
11
|
+
className: `button-group ${i ?? ""}`.trim(),
|
|
12
|
+
role: "group",
|
|
13
|
+
"aria-label": t,
|
|
14
|
+
"data-orientation": n,
|
|
15
|
+
"data-attached": r ? "" : void 0,
|
|
16
|
+
children: e
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region src/components/derived/ChoiceCard/ChoiceCard.tsx
|
|
21
|
+
function x({ type: e = "radio", title: t, description: n, icon: i, aside: a, indicator: o = "start", size: s = "md", disabled: d, invalid: f, className: p, ...h }) {
|
|
22
|
+
let g = u((e) => {
|
|
23
|
+
e && (e.indeterminate = !1);
|
|
24
|
+
}, []), _ = /* @__PURE__ */ c("span", {
|
|
25
|
+
className: "choice-card__mark",
|
|
26
|
+
"aria-hidden": "true",
|
|
27
|
+
children: e === "checkbox" ? /* @__PURE__ */ c(r, {
|
|
28
|
+
icon: m,
|
|
29
|
+
size: s === "sm" ? "xs" : "sm"
|
|
30
|
+
}) : null
|
|
31
|
+
});
|
|
32
|
+
return /* @__PURE__ */ l("label", {
|
|
33
|
+
className: `choice-card ${p ?? ""}`.trim(),
|
|
34
|
+
"data-type": e,
|
|
35
|
+
"data-size": s,
|
|
36
|
+
"data-indicator": o,
|
|
37
|
+
"data-disabled": d ? "" : void 0,
|
|
38
|
+
"data-invalid": f ? "" : void 0,
|
|
39
|
+
children: [
|
|
40
|
+
/* @__PURE__ */ c("input", {
|
|
41
|
+
...h,
|
|
42
|
+
ref: g,
|
|
43
|
+
type: e,
|
|
44
|
+
className: "choice-card__input",
|
|
45
|
+
disabled: d,
|
|
46
|
+
"aria-invalid": f || void 0
|
|
47
|
+
}),
|
|
48
|
+
o === "start" ? _ : null,
|
|
49
|
+
i ? /* @__PURE__ */ c("span", {
|
|
50
|
+
className: "choice-card__icon",
|
|
51
|
+
"aria-hidden": "true",
|
|
52
|
+
children: /* @__PURE__ */ c(r, {
|
|
53
|
+
icon: i,
|
|
54
|
+
size: s === "sm" ? "sm" : "md"
|
|
55
|
+
})
|
|
56
|
+
}) : null,
|
|
57
|
+
/* @__PURE__ */ l("span", {
|
|
58
|
+
className: "choice-card__body",
|
|
59
|
+
children: [/* @__PURE__ */ c("span", {
|
|
60
|
+
className: "choice-card__title",
|
|
61
|
+
children: t
|
|
62
|
+
}), n ? /* @__PURE__ */ c("span", {
|
|
63
|
+
className: "choice-card__description",
|
|
64
|
+
children: n
|
|
65
|
+
}) : null]
|
|
66
|
+
}),
|
|
67
|
+
a ? /* @__PURE__ */ c("span", {
|
|
68
|
+
className: "choice-card__aside",
|
|
69
|
+
children: a
|
|
70
|
+
}) : null,
|
|
71
|
+
o === "end" ? _ : null
|
|
72
|
+
]
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
//#endregion
|
|
76
|
+
//#region src/components/derived/NumberFlow/NumberFlow.tsx
|
|
77
|
+
var S = (e) => String(e);
|
|
78
|
+
function C({ value: e, format: t = S, size: n = "md", className: r, ...i }) {
|
|
79
|
+
let a = t(e), [o, s] = p({
|
|
80
|
+
text: a,
|
|
81
|
+
value: e,
|
|
82
|
+
direction: "up",
|
|
83
|
+
turn: 0
|
|
84
|
+
});
|
|
85
|
+
o.text !== a && s((t) => ({
|
|
86
|
+
text: a,
|
|
87
|
+
value: e,
|
|
88
|
+
was: t.text,
|
|
89
|
+
direction: e === t.value ? t.direction : e > t.value ? "up" : "down",
|
|
90
|
+
turn: t.turn + 1
|
|
91
|
+
}));
|
|
92
|
+
let u = o.was === void 0 ? 0 : o.text.length - o.was.length, d = (e) => o.was === void 0 ? o.text[e] : o.was[e - u];
|
|
93
|
+
return /* @__PURE__ */ c("data", {
|
|
94
|
+
...i,
|
|
95
|
+
className: `number-flow ${r ?? ""}`.trim(),
|
|
96
|
+
value: String(e),
|
|
97
|
+
"data-size": n,
|
|
98
|
+
"data-direction": o.direction,
|
|
99
|
+
children: Array.from(o.text, (e, t) => {
|
|
100
|
+
let n = d(t), r = n !== e;
|
|
101
|
+
return /* @__PURE__ */ l("span", {
|
|
102
|
+
className: "number-flow__slot",
|
|
103
|
+
"data-part": "slot",
|
|
104
|
+
"data-changed": r ? "" : void 0,
|
|
105
|
+
onAnimationEnd: r ? () => s((e) => ({
|
|
106
|
+
...e,
|
|
107
|
+
was: void 0
|
|
108
|
+
})) : void 0,
|
|
109
|
+
children: [r && n !== void 0 ? /* @__PURE__ */ c("span", {
|
|
110
|
+
className: "number-flow__digit",
|
|
111
|
+
"data-part": "was",
|
|
112
|
+
"aria-hidden": "true",
|
|
113
|
+
children: n
|
|
114
|
+
}) : null, /* @__PURE__ */ c("span", {
|
|
115
|
+
className: "number-flow__digit",
|
|
116
|
+
"data-part": "is",
|
|
117
|
+
children: e
|
|
118
|
+
})]
|
|
119
|
+
}, `${t}:${n ?? ""}>${e}`);
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
//#endregion
|
|
124
|
+
//#region src/components/derived/PasswordInput/PasswordInput.tsx
|
|
125
|
+
function w({ value: e, defaultValue: n, onValueChange: r, label: i, size: o = "md", purpose: s = "current", disabled: l, revealLabel: u, className: d, ...f }) {
|
|
126
|
+
let [m, h] = p(!1);
|
|
127
|
+
return /* @__PURE__ */ c(a, {
|
|
128
|
+
...f,
|
|
129
|
+
className: `password-input ${d ?? ""}`.trim(),
|
|
130
|
+
type: m ? "text" : "password",
|
|
131
|
+
value: e,
|
|
132
|
+
defaultValue: n,
|
|
133
|
+
onChange: (e) => r?.(e.target.value),
|
|
134
|
+
...i === void 0 ? {} : { "aria-label": i },
|
|
135
|
+
size: o,
|
|
136
|
+
disabled: l,
|
|
137
|
+
autoComplete: s === "new" ? "new-password" : "current-password",
|
|
138
|
+
slotEnd: /* @__PURE__ */ c(t, {
|
|
139
|
+
icon: m ? _ : g,
|
|
140
|
+
label: u ?? "비밀번호 표시",
|
|
141
|
+
size: "sm",
|
|
142
|
+
variant: "ghost",
|
|
143
|
+
tone: "neutral",
|
|
144
|
+
shape: "circle",
|
|
145
|
+
disabled: l,
|
|
146
|
+
onClick: () => h((e) => !e),
|
|
147
|
+
"aria-pressed": m,
|
|
148
|
+
"data-part": "reveal"
|
|
149
|
+
})
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/components/derived/SearchInput/SearchInput.tsx
|
|
154
|
+
function T({ value: n, onValueChange: r, onSearch: o, label: u, placeholder: d, size: p = "md", loading: m, disabled: h, clearLabel: g, name: _, className: b, ...x }) {
|
|
155
|
+
let S = f(null), C = () => {
|
|
156
|
+
r(""), o?.(""), S.current?.focus();
|
|
157
|
+
}, w = (e) => {
|
|
158
|
+
e.key === "Enter" && (e.preventDefault(), o?.(n)), e.key === "Escape" && n && (e.preventDefault(), e.stopPropagation(), C());
|
|
159
|
+
};
|
|
160
|
+
return /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(a, {
|
|
161
|
+
...x,
|
|
162
|
+
ref: S,
|
|
163
|
+
className: `search-input ${b ?? ""}`.trim(),
|
|
164
|
+
type: "search",
|
|
165
|
+
name: _,
|
|
166
|
+
value: n,
|
|
167
|
+
onChange: (e) => r(e.target.value),
|
|
168
|
+
onKeyDown: w,
|
|
169
|
+
"aria-label": u,
|
|
170
|
+
placeholder: d,
|
|
171
|
+
size: p,
|
|
172
|
+
disabled: h,
|
|
173
|
+
iconStart: v,
|
|
174
|
+
autoComplete: "off",
|
|
175
|
+
slotEnd: m ? /* @__PURE__ */ c(e, {
|
|
176
|
+
size: p === "lg" ? "md" : "sm",
|
|
177
|
+
tone: "muted"
|
|
178
|
+
}) : n ? /* @__PURE__ */ c(t, {
|
|
179
|
+
icon: y,
|
|
180
|
+
label: g ?? `${u} 지우기`,
|
|
181
|
+
size: "sm",
|
|
182
|
+
variant: "ghost",
|
|
183
|
+
tone: "neutral",
|
|
184
|
+
shape: "circle",
|
|
185
|
+
disabled: h,
|
|
186
|
+
onClick: C,
|
|
187
|
+
"data-part": "clear"
|
|
188
|
+
}) : void 0
|
|
189
|
+
}), /* @__PURE__ */ c(i, { children: /* @__PURE__ */ c("span", {
|
|
190
|
+
role: "status",
|
|
191
|
+
"aria-live": "polite",
|
|
192
|
+
"data-part": "wait",
|
|
193
|
+
children: m ? "찾는 중" : ""
|
|
194
|
+
}) })] });
|
|
195
|
+
}
|
|
196
|
+
//#endregion
|
|
197
|
+
//#region src/components/derived/SegmentedControl/SegmentedControl.tsx
|
|
198
|
+
function E({ name: e, options: t, value: n, onChange: i, label: a, size: o = "md", motion: s = "slide", fullWidth: u, disabled: d, className: f, ...p }) {
|
|
199
|
+
let m = t.findIndex((e) => e.value === n);
|
|
200
|
+
return /* @__PURE__ */ l("div", {
|
|
201
|
+
...p,
|
|
202
|
+
className: `segmented-control ${f ?? ""}`.trim(),
|
|
203
|
+
role: "radiogroup",
|
|
204
|
+
"aria-label": a,
|
|
205
|
+
"data-size": o,
|
|
206
|
+
"data-motion": s,
|
|
207
|
+
"data-count": t.length,
|
|
208
|
+
"data-full": u ? "" : void 0,
|
|
209
|
+
"data-disabled": d ? "" : void 0,
|
|
210
|
+
children: [/* @__PURE__ */ c("span", {
|
|
211
|
+
className: "segmented-control__thumb",
|
|
212
|
+
"data-hidden": m < 0 ? "" : void 0,
|
|
213
|
+
"aria-hidden": "true"
|
|
214
|
+
}), t.map((t) => /* @__PURE__ */ l("label", {
|
|
215
|
+
className: "segmented-control__option",
|
|
216
|
+
children: [/* @__PURE__ */ c("input", {
|
|
217
|
+
type: "radio",
|
|
218
|
+
className: "segmented-control__input",
|
|
219
|
+
name: e,
|
|
220
|
+
value: t.value,
|
|
221
|
+
checked: t.value === n,
|
|
222
|
+
disabled: d || t.disabled,
|
|
223
|
+
onChange: () => i(t.value)
|
|
224
|
+
}), /* @__PURE__ */ l("span", {
|
|
225
|
+
className: "segmented-control__face",
|
|
226
|
+
children: [t.icon ? /* @__PURE__ */ c(r, {
|
|
227
|
+
icon: t.icon,
|
|
228
|
+
size: o === "sm" ? "xs" : "sm"
|
|
229
|
+
}) : null, /* @__PURE__ */ c("span", {
|
|
230
|
+
className: "segmented-control__text",
|
|
231
|
+
children: t.label
|
|
232
|
+
})]
|
|
233
|
+
})]
|
|
234
|
+
}, t.value))]
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
//#endregion
|
|
238
|
+
//#region src/components/derived/SplitButton/SplitButton.tsx
|
|
239
|
+
function D({ children: e, onClick: r, onMenuToggle: i, menuOpen: a, menuLabel: o, menuId: s, variant: u = "solid", tone: d = "accent", size: f = "md", shape: p = "rounded", icon: m, loading: g, disabled: _, className: v, ...y }) {
|
|
240
|
+
return /* @__PURE__ */ l(b, {
|
|
241
|
+
...y,
|
|
242
|
+
label: `${e} 및 다른 선택지`,
|
|
243
|
+
className: `split-button ${v ?? ""}`.trim(),
|
|
244
|
+
"data-size": f,
|
|
245
|
+
children: [/* @__PURE__ */ c(n, {
|
|
246
|
+
variant: u,
|
|
247
|
+
tone: d,
|
|
248
|
+
size: f,
|
|
249
|
+
shape: p,
|
|
250
|
+
iconStart: m,
|
|
251
|
+
loading: g,
|
|
252
|
+
disabled: _,
|
|
253
|
+
onClick: r,
|
|
254
|
+
children: e
|
|
255
|
+
}), /* @__PURE__ */ c(t, {
|
|
256
|
+
icon: h,
|
|
257
|
+
label: o ?? `${e} 옵션 열기`,
|
|
258
|
+
variant: u,
|
|
259
|
+
tone: d,
|
|
260
|
+
size: f,
|
|
261
|
+
shape: p,
|
|
262
|
+
disabled: _,
|
|
263
|
+
onClick: i,
|
|
264
|
+
"aria-haspopup": "menu",
|
|
265
|
+
"aria-expanded": a ?? !1,
|
|
266
|
+
"aria-controls": s,
|
|
267
|
+
"data-part": "menu"
|
|
268
|
+
})]
|
|
269
|
+
});
|
|
270
|
+
}
|
|
271
|
+
//#endregion
|
|
272
|
+
//#region src/components/derived/StatusDot/StatusDot.tsx
|
|
273
|
+
function O({ label: e, tone: t = "neutral", size: n = "md", labelHidden: r, pulse: a, className: o, ...s }) {
|
|
274
|
+
return /* @__PURE__ */ l("span", {
|
|
275
|
+
...s,
|
|
276
|
+
className: `status-dot ${o ?? ""}`.trim(),
|
|
277
|
+
"data-tone": t,
|
|
278
|
+
"data-size": n,
|
|
279
|
+
"data-pulse": a ? "" : void 0,
|
|
280
|
+
children: [/* @__PURE__ */ c("span", {
|
|
281
|
+
className: "status-dot__mark",
|
|
282
|
+
"aria-hidden": "true"
|
|
283
|
+
}), r ? /* @__PURE__ */ c(i, { children: e }) : /* @__PURE__ */ c("span", {
|
|
284
|
+
className: "status-dot__label",
|
|
285
|
+
children: e
|
|
286
|
+
})]
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
//#endregion
|
|
290
|
+
//#region src/components/derived/TagInput/TagInput.tsx
|
|
291
|
+
function k({ value: e, onValueChange: t, label: n, placeholder: r, max: a, size: s = "md", disabled: u, className: m, ...h }) {
|
|
292
|
+
let [g, _] = p(""), [v, y] = p(""), b = f(null), x = f(null), S = d(), C = a !== void 0 && e.length >= a, w = (n) => {
|
|
293
|
+
let r = n.trim();
|
|
294
|
+
if (r) {
|
|
295
|
+
if (C) {
|
|
296
|
+
y(`${a}개까지만 넣을 수 있습니다`);
|
|
297
|
+
return;
|
|
298
|
+
}
|
|
299
|
+
if (e.includes(r)) {
|
|
300
|
+
y(`${r}은(는) 이미 있습니다`), _("");
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
t([...e, r]), y(`${r} 추가됨`), _("");
|
|
304
|
+
}
|
|
305
|
+
}, T = (n) => {
|
|
306
|
+
t(e.filter((e) => e !== n)), y(`${n} 제거됨`), b.current?.focus();
|
|
307
|
+
}, E = (t) => {
|
|
308
|
+
if (!t.nativeEvent.isComposing) {
|
|
309
|
+
if (t.key === "Enter" || t.key === ",") {
|
|
310
|
+
t.preventDefault(), w(g);
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
t.key === "Backspace" && g === "" && e.length > 0 && (t.preventDefault(), T(e[e.length - 1]));
|
|
314
|
+
}
|
|
315
|
+
}, D = (e) => {
|
|
316
|
+
x.current?.contains(e.relatedTarget) || w(g);
|
|
317
|
+
}, O = (e) => {
|
|
318
|
+
u || e.target !== e.currentTarget || (e.preventDefault(), b.current?.focus());
|
|
319
|
+
};
|
|
320
|
+
return /* @__PURE__ */ l("div", {
|
|
321
|
+
...h,
|
|
322
|
+
ref: x,
|
|
323
|
+
onPointerDown: O,
|
|
324
|
+
className: `tag-input ${m ?? ""}`.trim(),
|
|
325
|
+
"data-size": s,
|
|
326
|
+
"data-disabled": u ? "" : void 0,
|
|
327
|
+
role: "group",
|
|
328
|
+
"aria-label": n,
|
|
329
|
+
children: [
|
|
330
|
+
/* @__PURE__ */ c("ul", {
|
|
331
|
+
className: "tag-input__list",
|
|
332
|
+
children: e.map((e) => /* @__PURE__ */ c("li", { children: /* @__PURE__ */ c(o, {
|
|
333
|
+
size: "sm",
|
|
334
|
+
shape: "pill",
|
|
335
|
+
disabled: u,
|
|
336
|
+
onRemove: () => T(e),
|
|
337
|
+
removeLabel: `${e} 제거`,
|
|
338
|
+
children: e
|
|
339
|
+
}) }, e))
|
|
340
|
+
}),
|
|
341
|
+
/* @__PURE__ */ c("input", {
|
|
342
|
+
ref: b,
|
|
343
|
+
className: "tag-input__control",
|
|
344
|
+
type: "text",
|
|
345
|
+
value: g,
|
|
346
|
+
onChange: (e) => _(e.target.value),
|
|
347
|
+
onKeyDown: E,
|
|
348
|
+
onBlur: D,
|
|
349
|
+
placeholder: e.length === 0 ? r : void 0,
|
|
350
|
+
"aria-label": n,
|
|
351
|
+
"aria-describedby": S,
|
|
352
|
+
disabled: u,
|
|
353
|
+
autoComplete: "off",
|
|
354
|
+
"data-part": "entry"
|
|
355
|
+
}),
|
|
356
|
+
/* @__PURE__ */ c(i, { children: /* @__PURE__ */ l("span", {
|
|
357
|
+
id: S,
|
|
358
|
+
children: ["엔터나 쉼표로 추가합니다. 빈 칸에서 백스페이스를 누르면 마지막 것이 지워집니다.", a === void 0 ? "" : ` ${a}개까지 넣을 수 있습니다.`]
|
|
359
|
+
}) }),
|
|
360
|
+
/* @__PURE__ */ c(i, { children: /* @__PURE__ */ c("span", {
|
|
361
|
+
role: "status",
|
|
362
|
+
"aria-live": "polite",
|
|
363
|
+
"data-part": "announcer",
|
|
364
|
+
children: v
|
|
365
|
+
}) })
|
|
366
|
+
]
|
|
367
|
+
});
|
|
368
|
+
}
|
|
369
|
+
//#endregion
|
|
370
|
+
export { T as a, x as c, E as i, b as l, O as n, w as o, D as r, C as s, k as t };
|
|
371
|
+
|
|
372
|
+
//# sourceMappingURL=TagInput-BaGz-QKU.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TagInput-BaGz-QKU.js","names":[],"sources":["../../src/components/derived/ButtonGroup/ButtonGroup.tsx","../../src/components/derived/ChoiceCard/ChoiceCard.tsx","../../src/components/derived/NumberFlow/NumberFlow.tsx","../../src/components/derived/PasswordInput/PasswordInput.tsx","../../src/components/derived/SearchInput/SearchInput.tsx","../../src/components/derived/SegmentedControl/SegmentedControl.tsx","../../src/components/derived/SplitButton/SplitButton.tsx","../../src/components/derived/StatusDot/StatusDot.tsx","../../src/components/derived/TagInput/TagInput.tsx"],"sourcesContent":["import type { ReactNode } from \"react\";\nimport \"./ButtonGroup.css\";\n\nexport type ButtonGroupOrientation = \"horizontal\" | \"vertical\";\n\nexport type ButtonGroupProps = {\n children: ReactNode;\n /**\n * What the group is for. \"보기 방식\", \"저장 옵션\".\n *\n * A `role=\"group\"` with no name is a container a reader is told they have entered and not\n * told the purpose of. Naming it is the only thing the role buys.\n */\n label: string;\n orientation?: ButtonGroupOrientation;\n /**\n * Joined into one shape, or spaced apart.\n *\n * Joined says the actions are alternatives to one another. Spaced says they merely happen\n * to be next to each other — which is what a row of unrelated buttons is, and drawing that\n * as one shape tells the reader something untrue.\n */\n attached?: boolean;\n className?: string;\n [key: `data-${string}`]: unknown;\n};\n\n/**\n * Buttons that belong together.\n *\n * Every button keeps its own tab stop. A roving tabindex — one stop for the whole group,\n * arrow keys inside — is for a toolbar, where the group is a destination; these are separate\n * actions that happen to be adjacent, and taking away their tab stops would hide all but one\n * of them from a keyboard.\n */\nexport function ButtonGroup({\n children,\n label,\n orientation = \"horizontal\",\n attached = true,\n className,\n ...rest\n}: ButtonGroupProps) {\n return (\n <div\n {...rest}\n className={`button-group ${className ?? \"\"}`.trim()}\n role=\"group\"\n aria-label={label}\n data-orientation={orientation}\n data-attached={attached ? \"\" : undefined}\n >\n {children}\n </div>\n );\n}\n","import { useCallback } from \"react\";\nimport type { ChangeEvent, ReactNode } from \"react\";\nimport { Check } from \"lucide-react\";\nimport type { LucideIcon } from \"lucide-react\";\nimport { Icon } from \"../../common/Icon\";\nimport \"./ChoiceCard.css\";\n\nexport type ChoiceCardType = \"radio\" | \"checkbox\";\nexport type ChoiceCardSize = \"sm\" | \"md\";\nexport type ChoiceCardIndicator = \"start\" | \"end\" | \"none\";\n\nexport type ChoiceCardProps = {\n /**\n * One of several, or any of several.\n *\n * The two are not interchangeable and the shape says which: a circle means the reader may\n * pick one, a square means they may pick more. Drawing a radio square is a small decision\n * about a border-radius that changes what the control means.\n */\n type?: ChoiceCardType;\n /** Required for a radio — the browser builds the group from it. */\n name?: string;\n value?: string;\n checked?: boolean;\n defaultChecked?: boolean;\n onChange?: (event: ChangeEvent<HTMLInputElement>) => void;\n title: ReactNode;\n description?: ReactNode;\n icon?: LucideIcon;\n /** The end of the row — a price, a badge, a count. */\n aside?: ReactNode;\n /** Where the mark sits, or that the card shows its state by its border alone. */\n indicator?: ChoiceCardIndicator;\n size?: ChoiceCardSize;\n disabled?: boolean;\n invalid?: boolean;\n className?: string;\n [key: `data-${string}`]: unknown;\n [key: `aria-${string}`]: unknown;\n};\n\n/**\n * A choice with room to explain itself.\n *\n * The whole card is the label, so the whole card is the target — which is the only reason to\n * draw a choice as a card rather than as a line of text with a dot beside it. A card whose\n * hit area is the 20px circle in its corner is a card that looks generous and is not.\n */\nexport function ChoiceCard({\n type = \"radio\",\n title,\n description,\n icon,\n aside,\n indicator = \"start\",\n size = \"md\",\n disabled,\n invalid,\n className,\n ...rest\n}: ChoiceCardProps) {\n /* `indeterminate` is deliberately absent. A card carries a title and a description, and a\n * third state that means \"some of what this stands for\" has nothing to say about one. */\n const setNothing = useCallback((node: HTMLInputElement | null) => {\n if (node) node.indeterminate = false;\n }, []);\n\n const mark = (\n <span className=\"choice-card__mark\" aria-hidden=\"true\">\n {type === \"checkbox\" ? <Icon icon={Check} size={size === \"sm\" ? \"xs\" : \"sm\"} /> : null}\n </span>\n );\n\n return (\n <label\n className={`choice-card ${className ?? \"\"}`.trim()}\n data-type={type}\n data-size={size}\n data-indicator={indicator}\n data-disabled={disabled ? \"\" : undefined}\n data-invalid={invalid ? \"\" : undefined}\n >\n <input\n {...rest}\n ref={setNothing}\n type={type}\n className=\"choice-card__input\"\n disabled={disabled}\n aria-invalid={invalid || undefined}\n />\n {indicator === \"start\" ? mark : null}\n {icon ? (\n <span className=\"choice-card__icon\" aria-hidden=\"true\">\n <Icon icon={icon} size={size === \"sm\" ? \"sm\" : \"md\"} />\n </span>\n ) : null}\n <span className=\"choice-card__body\">\n <span className=\"choice-card__title\">{title}</span>\n {description ? <span className=\"choice-card__description\">{description}</span> : null}\n </span>\n {aside ? <span className=\"choice-card__aside\">{aside}</span> : null}\n {indicator === \"end\" ? mark : null}\n </label>\n );\n}\n","import { useState } from \"react\";\nimport \"./NumberFlow.css\";\n\nexport type NumberFlowSize = \"sm\" | \"md\" | \"lg\";\n\nexport type NumberFlowProps = {\n /** The number that is true now. Change it and the digits that changed roll. */\n value: number;\n /**\n * How the number is written. Locale, currency, unit, rounding — all of it the host's.\n *\n * Defaults to the digits and nothing else. A component that reached for\n * `toLocaleString()` on its own would be a component that picked a locale for an adopter\n * who had already picked one, and the disagreement would show up on one screen out of\n * forty. `PriceDisplay` draws the same line.\n */\n format?: (value: number) => string;\n /**\n * How big the number is, and it is the subject of its box at every step.\n *\n * The three steps land on `--text-md`, `--text-xl` and `--text-3xl` — two apart on the\n * type scale each time, because a number one step above the words around it reads as a\n * misprint rather than as a hierarchy. `docs/DESIGN.md` §5 measured why this matters:\n * eight sizes exist and three of them carry 89% of the library.\n */\n size?: NumberFlowSize;\n className?: string;\n [key: `data-${string}`]: unknown;\n};\n\nconst DEFAULT_FORMAT = (value: number) => String(value);\n\n/**\n * A number that changed, and which way it went.\n *\n * **Only the digits that changed move.** 99 → 100 rolls three places; 100 → 101 rolls one.\n * A component that re-ran every digit on every change would be saying \"all of this is new\"\n * about a number where one thing happened, and the reader's eye would have nowhere to land.\n * The digits are matched from the right, so a number growing a place pushes the new digit in\n * at the front rather than shifting the meaning of every column.\n *\n * **The direction is the fact, and the motion is only what makes it noticeable.** Under\n * `prefers-reduced-motion` the roll collapses and the number simply is what it is — which is\n * the correct answer rather than a degraded one. A reader who saw 3 and now sees 5 knows\n * which way it went; what the roll buys is catching the eye of a reader who was not looking,\n * and catching the eye is exactly what that preference is asking you not to do.\n *\n * **The value is text.** The digit on screen is a real text node and the outgoing copy is\n * `aria-hidden` and out of flow, so a screen reader and a selection both get the number and\n * not a column of two. Nothing announces: a counter with a live region on it is a counter\n * that reads the whole dashboard out loud every few seconds.\n */\nexport function NumberFlow({\n value,\n format = DEFAULT_FORMAT,\n size = \"md\",\n className,\n ...rest\n}: NumberFlowProps) {\n const text = format(value);\n\n /*\n * Derived while rendering: an effect runs after paint, so the roll would start from a\n * frame in which the new digits were already sitting in their slots.\n *\n * `was` is the whole previous string rather than a per-slot flag, because which slots\n * changed is a function of both strings and their lengths — and it is cleared when the\n * roll ends, which is also what turns every slot back into a plain digit.\n */\n const [shown, setShown] = useState<{\n text: string;\n value: number;\n was?: string;\n direction: \"up\" | \"down\";\n turn: number;\n }>({ text, value, direction: \"up\", turn: 0 });\n\n if (shown.text !== text) {\n setShown((last) => ({\n text,\n value,\n was: last.text,\n /* Equal values that format differently roll the way the last change did. */\n direction: value === last.value ? last.direction : value > last.value ? \"up\" : \"down\",\n turn: last.turn + 1,\n }));\n }\n\n /*\n * Right-aligned correspondence. `100` against `99` puts the two nines under the two\n * trailing digits and leaves the leading `1` with no partner — which is a digit arriving,\n * not a digit changing, and it rolls in from the same side either way.\n */\n const offset = shown.was === undefined ? 0 : shown.text.length - shown.was.length;\n const before = (index: number) =>\n shown.was === undefined ? shown.text[index] : shown.was[index - offset];\n\n return (\n <data\n {...rest}\n className={`number-flow ${className ?? \"\"}`.trim()}\n value={String(value)}\n data-size={size}\n data-direction={shown.direction}\n >\n {Array.from(shown.text, (character, index) => {\n const was = before(index);\n const changed = was !== character;\n return (\n <span\n /*\n * Keyed by the pair, so a slot re-mounts — and its animation runs again — only\n * when that column is actually showing something else. A key carrying the turn\n * number would restart every column on every change.\n */\n key={`${index}:${was ?? \"\"}>${character}`}\n className=\"number-flow__slot\"\n data-part=\"slot\"\n data-changed={changed ? \"\" : undefined}\n /*\n * On the slot rather than on the outgoing digit, because a column can change\n * without having had anything in it — the leading `1` of `100` after `99`. The\n * event bubbles from whichever of the two ends first; they share a duration, and\n * clearing an already-cleared exchange is a no-op.\n */\n onAnimationEnd={\n changed ? () => setShown((last) => ({ ...last, was: undefined })) : undefined\n }\n >\n {changed && was !== undefined ? (\n <span\n className=\"number-flow__digit\"\n data-part=\"was\"\n aria-hidden=\"true\"\n >\n {was}\n </span>\n ) : null}\n <span className=\"number-flow__digit\" data-part=\"is\">\n {character}\n </span>\n </span>\n );\n })}\n </data>\n );\n}\n","import { useState } from \"react\";\nimport { Eye, EyeOff } from \"lucide-react\";\nimport { Input, type InputSize } from \"../../common/Input\";\nimport { IconButton } from \"../../common/IconButton\";\nimport \"./PasswordInput.css\";\n\nexport type PasswordInputPurpose = \"current\" | \"new\";\n\ntype PasswordInputBase = {\n /** Names the field for assistive technology when nothing else does. */\n label?: string;\n id?: string;\n name?: string;\n placeholder?: string;\n size?: InputSize;\n /**\n * Signing in, or choosing one.\n *\n * This is the whole of `autocomplete`, and getting it wrong is what makes a password\n * manager fill the sign-in password into a \"new password\" field, or fail to offer to save\n * a new one. `autocomplete=\"off\"` is the version that does both.\n */\n purpose?: PasswordInputPurpose;\n invalid?: boolean;\n disabled?: boolean;\n required?: boolean;\n revealLabel?: string;\n className?: string;\n [key: `data-${string}`]: unknown;\n [key: `aria-${string}`]: unknown;\n};\n\n/**\n * Controlled or uncontrolled, and never half of one.\n *\n * `value` without `onValueChange` is a field that renders what it was given and refuses every\n * keystroke — and because `onChange` is always attached, React does not warn about it. The\n * two arrive together or neither does.\n */\nexport type PasswordInputProps = PasswordInputBase &\n (\n | { value: string; onValueChange: (value: string) => void; defaultValue?: never }\n | { value?: never; defaultValue?: string; onValueChange?: (value: string) => void }\n );\n\n/**\n * A password, and a way to check what you typed.\n *\n * The toggle's name does not change with its state — the rule `ToggleButton` sets. \"비밀번호\n * 표시\" that becomes \"비밀번호 숨기기\" while `aria-pressed` also flips reads as two halves\n * contradicting each other. The name says what the control is for; the attribute says\n * whether it is on. The icon changes, because the icon is for the reader who can see it and\n * is announced to nobody.\n */\nexport function PasswordInput({\n value,\n defaultValue,\n onValueChange,\n label,\n size = \"md\",\n purpose = \"current\",\n disabled,\n revealLabel,\n className,\n ...rest\n}: PasswordInputProps) {\n const [shown, setShown] = useState(false);\n\n return (\n <Input\n {...rest}\n className={`password-input ${className ?? \"\"}`.trim()}\n type={shown ? \"text\" : \"password\"}\n value={value}\n defaultValue={defaultValue}\n onChange={(event) => onValueChange?.(event.target.value)}\n /*\n * Only when there is one.\n *\n * `{...rest}` is spread first, so writing `aria-label={label}` unconditionally set the\n * attribute to `undefined` for a caller who passed their own `aria-label` and no\n * `label` — React drops it, and the field is left with no name at all.\n */\n {...(label === undefined ? {} : { \"aria-label\": label })}\n size={size}\n disabled={disabled}\n autoComplete={purpose === \"new\" ? \"new-password\" : \"current-password\"}\n slotEnd={\n <IconButton\n icon={shown ? EyeOff : Eye}\n label={revealLabel ?? \"비밀번호 표시\"}\n size=\"sm\"\n variant=\"ghost\"\n tone=\"neutral\"\n shape=\"circle\"\n disabled={disabled}\n onClick={() => setShown((current) => !current)}\n aria-pressed={shown}\n data-part=\"reveal\"\n />\n }\n />\n );\n}\n","import { useRef } from \"react\";\nimport type { KeyboardEvent } from \"react\";\nimport { Search, X } from \"lucide-react\";\nimport { Input, type InputSize } from \"../../common/Input\";\nimport { IconButton } from \"../../common/IconButton\";\nimport { Spinner } from \"../../common/Spinner\";\nimport { VisuallyHidden } from \"../../common/VisuallyHidden\";\nimport \"./SearchInput.css\";\n\nexport type SearchInputProps = {\n value: string;\n onValueChange: (value: string) => void;\n /** Enter, and the clear button's aftermath. Not fired on every keystroke. */\n onSearch?: (value: string) => void;\n /**\n * What is being searched. \"주문 검색\", \"사람 찾기\".\n *\n * A search field labelled only by its placeholder is a field whose name disappears the\n * moment someone types in it — and placeholders are not names to begin with.\n */\n label: string;\n placeholder?: string;\n size?: InputSize;\n /** A result is on its way. Replaces the clear button rather than crowding beside it. */\n loading?: boolean;\n disabled?: boolean;\n clearLabel?: string;\n name?: string;\n className?: string;\n [key: `data-${string}`]: unknown;\n};\n\n/**\n * A field for finding things.\n *\n * `type=\"search\"`, for the autofill history and the input purpose — but its native clear\n * button is hidden and a real one drawn in its place, because the browser's is not in the\n * tab order and has no name. A control a keyboard cannot reach is a control half the\n * readers of this field do not have.\n */\nexport function SearchInput({\n value,\n onValueChange,\n onSearch,\n label,\n placeholder,\n size = \"md\",\n loading,\n disabled,\n clearLabel,\n name,\n className,\n ...rest\n}: SearchInputProps) {\n const field = useRef<HTMLInputElement>(null);\n\n const clear = () => {\n onValueChange(\"\");\n onSearch?.(\"\");\n /* Focus goes back to the field, not nowhere. A button that removes itself takes the\n * reader's place in the document with it unless somebody says where to put it. */\n field.current?.focus();\n };\n\n const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n if (event.key === \"Enter\") {\n event.preventDefault();\n onSearch?.(value);\n }\n if (event.key === \"Escape\" && value) {\n /*\n * Consumed, not just prevented.\n *\n * A dialog listens for Escape on the way up, so one press would clear the field *and*\n * close the dialog around it. The press that empties a field is spent on that field.\n */\n event.preventDefault();\n event.stopPropagation();\n clear();\n }\n };\n\n return (\n <>\n <Input\n {...rest}\n ref={field}\n className={`search-input ${className ?? \"\"}`.trim()}\n type=\"search\"\n name={name}\n value={value}\n onChange={(event) => onValueChange(event.target.value)}\n onKeyDown={onKeyDown}\n aria-label={label}\n placeholder={placeholder}\n size={size}\n disabled={disabled}\n iconStart={Search}\n autoComplete=\"off\"\n slotEnd={\n loading ? (\n /* Unlabelled: the live region below says it, and it was there before the wait\n * started. A `role=\"status\"` that arrives with its own message is a region the\n * screen reader was not watching yet. */\n <Spinner size={size === \"lg\" ? \"md\" : \"sm\"} tone=\"muted\" />\n ) : value ? (\n <IconButton\n icon={X}\n label={clearLabel ?? `${label} 지우기`}\n size=\"sm\"\n variant=\"ghost\"\n tone=\"neutral\"\n shape=\"circle\"\n /* The field is locked; the button that empties it cannot stay live. */\n disabled={disabled}\n onClick={clear}\n data-part=\"clear\"\n />\n ) : undefined\n }\n />\n <VisuallyHidden>\n <span role=\"status\" aria-live=\"polite\" data-part=\"wait\">{loading ? \"찾는 중\" : \"\"}</span>\n </VisuallyHidden>\n </>\n );\n}\n","import type { ReactNode } from \"react\";\nimport type { LucideIcon } from \"lucide-react\";\nimport { Icon } from \"../../common/Icon\";\nimport \"./SegmentedControl.css\";\n\nexport type SegmentedControlSize = \"sm\" | \"md\";\nexport type SegmentedControlMotion = \"slide\" | \"none\";\n\nexport type SegmentedControlOption = {\n value: string;\n label: ReactNode;\n icon?: LucideIcon;\n disabled?: boolean;\n};\n\nexport type SegmentedControlProps = {\n /**\n * The name the browser builds the radio group from. Required.\n *\n * Radios with no shared name are not a group: they behave like a row of checkboxes and\n * each announces itself as \"1 of 1\".\n */\n name: string;\n options: SegmentedControlOption[];\n value: string;\n onChange: (value: string) => void;\n /** What the whole control chooses between. \"보기 방식\", \"기간\". */\n label: string;\n size?: SegmentedControlSize;\n /** The thumb slides between segments, or the segments simply fill. */\n motion?: SegmentedControlMotion;\n fullWidth?: boolean;\n disabled?: boolean;\n className?: string;\n [key: `data-${string}`]: unknown;\n};\n\n/**\n * A few alternatives, all visible, one chosen.\n *\n * Real radios underneath, clipped the way Checkbox and Radio clip theirs. That is what makes\n * arrow keys move between segments and Tab skip past the whole control — the behaviour a\n * reader expects from a group of alternatives, and the behaviour that is hardest to rebuild\n * out of buttons.\n *\n * More than about six alternatives and this stops being the right control: the segments turn\n * into slivers and a `Select` is what the reader wanted.\n */\nexport function SegmentedControl({\n name,\n options,\n value,\n onChange,\n label,\n size = \"md\",\n motion = \"slide\",\n fullWidth,\n disabled,\n className,\n ...rest\n}: SegmentedControlProps) {\n const index = options.findIndex((option) => option.value === value);\n\n return (\n <div\n {...rest}\n className={`segmented-control ${className ?? \"\"}`.trim()}\n role=\"radiogroup\"\n aria-label={label}\n data-size={size}\n data-motion={motion}\n data-count={options.length}\n data-full={fullWidth ? \"\" : undefined}\n data-disabled={disabled ? \"\" : undefined}\n >\n {/* Drawn first so it sits behind the labels: it is the ground the chosen segment\n * stands on, not a lid over it. */}\n <span className=\"segmented-control__thumb\" data-hidden={index < 0 ? \"\" : undefined} aria-hidden=\"true\" />\n {options.map((option) => (\n <label className=\"segmented-control__option\" key={option.value}>\n <input\n type=\"radio\"\n className=\"segmented-control__input\"\n name={name}\n value={option.value}\n checked={option.value === value}\n disabled={disabled || option.disabled}\n onChange={() => onChange(option.value)}\n />\n <span className=\"segmented-control__face\">\n {option.icon ? <Icon icon={option.icon} size={size === \"sm\" ? \"xs\" : \"sm\"} /> : null}\n <span className=\"segmented-control__text\">{option.label}</span>\n </span>\n </label>\n ))}\n </div>\n );\n}\n","import type { MouseEvent } from \"react\";\nimport { ChevronDown } from \"lucide-react\";\nimport type { LucideIcon } from \"lucide-react\";\nimport { Button, type ButtonShape, type ButtonSize, type ButtonTone, type ButtonVariant } from \"../../common/Button\";\nimport { IconButton } from \"../../common/IconButton\";\nimport { ButtonGroup } from \"../ButtonGroup\";\nimport \"./SplitButton.css\";\n\nexport type SplitButtonProps = {\n /** The action itself, said in words. Pressing the left half does this and nothing else. */\n children: string;\n onClick?: (event: MouseEvent<HTMLElement>) => void;\n /** Opens whatever holds the alternatives. This component does not own that list. */\n onMenuToggle: () => void;\n menuOpen?: boolean;\n /**\n * What the right half is called.\n *\n * Defaulted from the action, because \"더 보기\" on its own is a button a reader meets with\n * no idea what it will show them. Three split buttons on a page would give three of them.\n */\n menuLabel?: string;\n /** The id of the list this opens, once something is rendering one. */\n menuId?: string;\n variant?: ButtonVariant;\n tone?: ButtonTone;\n size?: ButtonSize;\n shape?: ButtonShape;\n icon?: LucideIcon;\n loading?: boolean;\n disabled?: boolean;\n className?: string;\n [key: `data-${string}`]: unknown;\n};\n\n/**\n * One action, and a way to reach the others.\n *\n * Two buttons, not one button with two halves: the left half does the thing, the right half\n * opens a list, and they are separately reachable, separately named and separately\n * announced. A single control that does one thing when clicked on the left and another when\n * clicked on the right is not reachable by keyboard at all.\n *\n * The list itself is not here. `Menu` belongs to the next layer, and a component that\n * shipped half a menu to avoid waiting for it would be a component nobody could replace.\n */\nexport function SplitButton({\n children,\n onClick,\n onMenuToggle,\n menuOpen,\n menuLabel,\n menuId,\n variant = \"solid\",\n tone = \"accent\",\n size = \"md\",\n shape = \"rounded\",\n icon,\n loading,\n disabled,\n className,\n ...rest\n}: SplitButtonProps) {\n return (\n <ButtonGroup\n {...rest}\n label={`${children} 및 다른 선택지`}\n className={`split-button ${className ?? \"\"}`.trim()}\n data-size={size}\n >\n <Button\n variant={variant}\n tone={tone}\n size={size}\n shape={shape}\n iconStart={icon}\n loading={loading}\n disabled={disabled}\n onClick={onClick}\n >\n {children}\n </Button>\n <IconButton\n icon={ChevronDown}\n label={menuLabel ?? `${children} 옵션 열기`}\n variant={variant}\n tone={tone}\n size={size}\n shape={shape}\n disabled={disabled}\n onClick={onMenuToggle}\n aria-haspopup=\"menu\"\n aria-expanded={menuOpen ?? false}\n aria-controls={menuId}\n data-part=\"menu\"\n />\n </ButtonGroup>\n );\n}\n","import { VisuallyHidden } from \"../../common/VisuallyHidden\";\nimport \"./StatusDot.css\";\n\nexport type StatusDotTone = \"neutral\" | \"accent\" | \"success\" | \"warning\" | \"danger\";\nexport type StatusDotSize = \"sm\" | \"md\";\n\nexport type StatusDotProps = {\n /**\n * What the dot means, in words. Required, and it is the whole reason this component\n * exists rather than a `<span>` with a background colour.\n *\n * A coloured circle is a state to a reader who can separate green from amber and nothing\n * at all to one who cannot — about one man in twelve for the first, and everyone using a\n * screen reader for the second. The words may be hidden from the screen; they may not be\n * absent.\n */\n label: string;\n tone?: StatusDotTone;\n size?: StatusDotSize;\n /** Leave the words to assistive technology alone. The dot still says them. */\n labelHidden?: boolean;\n /**\n * A slow pulse, for a state that is still happening rather than settled.\n *\n * Stops entirely under `prefers-reduced-motion` — see the note in the stylesheet.\n */\n pulse?: boolean;\n className?: string;\n [key: `data-${string}`]: unknown;\n};\n\n/**\n * The smallest thing a badge can be: a state, as a dot and a word.\n */\nexport function StatusDot({\n label,\n tone = \"neutral\",\n size = \"md\",\n labelHidden,\n pulse,\n className,\n ...rest\n}: StatusDotProps) {\n return (\n <span\n {...rest}\n className={`status-dot ${className ?? \"\"}`.trim()}\n data-tone={tone}\n data-size={size}\n data-pulse={pulse ? \"\" : undefined}\n >\n <span className=\"status-dot__mark\" aria-hidden=\"true\" />\n {labelHidden ? (\n <VisuallyHidden>{label}</VisuallyHidden>\n ) : (\n <span className=\"status-dot__label\">{label}</span>\n )}\n </span>\n );\n}\n","import { useId, useRef, useState } from \"react\";\nimport type { FocusEvent, KeyboardEvent, PointerEvent } from \"react\";\nimport { Tag } from \"../Tag\";\nimport { VisuallyHidden } from \"../../common/VisuallyHidden\";\nimport \"./TagInput.css\";\n\nexport type TagInputSize = \"sm\" | \"md\";\n\nexport type TagInputProps = {\n value: string[];\n onValueChange: (value: string[]) => void;\n /** What is being listed. \"받는 사람\", \"기술 태그\", \"초대할 사람\". */\n label: string;\n placeholder?: string;\n /** How many, at most. The field stops accepting rather than silently dropping. */\n max?: number;\n size?: TagInputSize;\n disabled?: boolean;\n className?: string;\n [key: `data-${string}`]: unknown;\n};\n\n/**\n * A list of short values, typed one at a time.\n *\n * This one builds its own box rather than borrowing `Input`'s, and that is the difference\n * between it and the other three fields in this layer. `Input` is a single row that centres\n * its contents; this grows downwards as the list fills, and forcing that shape onto a\n * component whose whole construction assumes one line would break it for everything else\n * that uses it.\n *\n * What is typed is not yet a value. Enter and comma make it one; Backspace in an empty field\n * takes the last one back — the two gestures every reader already tries.\n */\nexport function TagInput({\n value,\n onValueChange,\n label,\n placeholder,\n max,\n size = \"md\",\n disabled,\n className,\n ...rest\n}: TagInputProps) {\n const [draft, setDraft] = useState(\"\");\n /* What just happened, for a reader who cannot see it happen. Without this, pressing Enter\n * does nothing that reaches assistive technology at all. */\n const [announcement, setAnnouncement] = useState(\"\");\n const field = useRef<HTMLInputElement>(null);\n const root = useRef<HTMLDivElement>(null);\n const hintId = useId();\n\n const full = max !== undefined && value.length >= max;\n\n const add = (raw: string) => {\n const entry = raw.trim();\n if (!entry) return;\n if (full) {\n setAnnouncement(`${max}개까지만 넣을 수 있습니다`);\n return;\n }\n if (value.includes(entry)) {\n setAnnouncement(`${entry}은(는) 이미 있습니다`);\n setDraft(\"\");\n return;\n }\n onValueChange([...value, entry]);\n setAnnouncement(`${entry} 추가됨`);\n setDraft(\"\");\n };\n\n const remove = (entry: string) => {\n onValueChange(value.filter((item) => item !== entry));\n setAnnouncement(`${entry} 제거됨`);\n /* The tag that held the focus has just stopped existing. Somewhere has to be named, or\n * the reader is returned to the top of the document. */\n field.current?.focus();\n };\n\n const onKeyDown = (event: KeyboardEvent<HTMLInputElement>) => {\n /*\n * An IME is mid-word, and its Enter belongs to the composition.\n *\n * Korean is composed syllable by syllable, and the Enter that commits `한` is the same\n * keystroke that would commit the tag. Reading it as a tag turns every half-typed word\n * into a value the reader did not ask for. `Composer` guards the same way.\n */\n if (event.nativeEvent.isComposing) return;\n if (event.key === \"Enter\" || event.key === \",\") {\n event.preventDefault();\n add(draft);\n return;\n }\n if (event.key === \"Backspace\" && draft === \"\" && value.length > 0) {\n event.preventDefault();\n remove(value[value.length - 1]);\n }\n };\n\n /*\n * Leaving for a remove button inside this field is not leaving the field.\n *\n * Without this the blur commits the draft, and the click that follows filters the list it\n * captured *before* that commit — so the tag the reader just made disappears again.\n */\n const onBlur = (event: FocusEvent<HTMLInputElement>) => {\n if (root.current?.contains(event.relatedTarget)) return;\n add(draft);\n };\n\n /* The box says `cursor: text`, so pressing its empty part has to reach the field. */\n const onPointerDown = (event: PointerEvent<HTMLDivElement>) => {\n if (disabled || event.target !== event.currentTarget) return;\n event.preventDefault();\n field.current?.focus();\n };\n\n return (\n <div\n {...rest}\n ref={root}\n onPointerDown={onPointerDown}\n className={`tag-input ${className ?? \"\"}`.trim()}\n data-size={size}\n data-disabled={disabled ? \"\" : undefined}\n role=\"group\"\n aria-label={label}\n >\n <ul className=\"tag-input__list\">\n {value.map((entry) => (\n <li key={entry}>\n <Tag\n size=\"sm\"\n shape=\"pill\"\n disabled={disabled}\n onRemove={() => remove(entry)}\n removeLabel={`${entry} 제거`}\n >\n {entry}\n </Tag>\n </li>\n ))}\n </ul>\n <input\n ref={field}\n className=\"tag-input__control\"\n type=\"text\"\n value={draft}\n onChange={(event) => setDraft(event.target.value)}\n onKeyDown={onKeyDown}\n /* Committed on the way out too. A value left in the box when the reader tabs away is\n * a value they believe they entered. */\n onBlur={onBlur}\n placeholder={value.length === 0 ? placeholder : undefined}\n aria-label={label}\n aria-describedby={hintId}\n disabled={disabled}\n autoComplete=\"off\"\n data-part=\"entry\"\n />\n <VisuallyHidden>\n <span id={hintId}>\n 엔터나 쉼표로 추가합니다. 빈 칸에서 백스페이스를 누르면 마지막 것이 지워집니다.\n {max !== undefined ? ` ${max}개까지 넣을 수 있습니다.` : \"\"}\n </span>\n </VisuallyHidden>\n <VisuallyHidden>\n <span role=\"status\" aria-live=\"polite\" data-part=\"announcer\">{announcement}</span>\n </VisuallyHidden>\n </div>\n );\n}\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AK;EACL,cAAY;EARd,UAAA;GAUE,kBAAC,MAAD;IAAI,WAAU;IACX,UAAA,EAAM,KAAK,MACV,kBAAC,MAAD,EAAA,UACE,kBAAC,GAAD;KACE,MAAK;KACL,OAAM;KACI;KACV,gBAAgB,EAAO,CAAK;KAC5B,aAAa,GAAG,EAAM;KAErB,UAAA;IACE,CAAA,EACH,GAVK,CAUL,CACL;GACC,CAAA;GACJ,kBAAC,SAAD;IACE,KAAK;IACL,WAAU;IACV,MAAK;IACL,OAAO;IACP,WAAW,MAAU,EAAS,EAAM,OAAO,KAAK;IACrC;IAGH;IACR,aAAa,EAAM,WAAW,IAAI,IAAc,KAAA;IAChD,cAAY;IACZ,oBAAkB;IACR;IACV,cAAa;IACb,aAAU;GACX,CAAA;GACD,kBAAC,GAAD,EAAA,UACE,kBAAC,QAAD;IAAM,IAAI;IAAV,UAAA,CAAkB,iDAEf,MAAQ,KAAA,IAAsC,KAA1B,IAAI,EAAI,eACzB;GACQ,CAAA,EAAA,CAAA;GAChB,kBAAC,GAAD,EAAA,UACE,kBAAC,QAAD;IAAM,MAAK;IAAS,aAAU;IAAS,aAAU;IAAa,UAAA;GAAmB,CAAA,EACnE,CAAA;EACb;;AAET"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
//#region src/components/common/Text/Text.tsx
|
|
3
|
+
function t(e) {
|
|
4
|
+
return typeof e == "string" && /^h[1-6]$/.test(e) ? e.slice(1) : void 0;
|
|
5
|
+
}
|
|
6
|
+
function n({ children: n, as: r = "p", size: i, weight: a, tone: o = "default", leading: s, align: c, truncate: l, numeric: u, className: d, style: f, ...p }) {
|
|
7
|
+
let m = typeof l == "number" ? l : l ? 1 : void 0, h = i === void 0 && a === void 0 ? t(r) : void 0;
|
|
8
|
+
return /* @__PURE__ */ e(r, {
|
|
9
|
+
...p,
|
|
10
|
+
className: `text ${d ?? ""}`.trim(),
|
|
11
|
+
"data-heading": h,
|
|
12
|
+
"data-size": h ? void 0 : i ?? "md",
|
|
13
|
+
"data-weight": h ? void 0 : a ?? "regular",
|
|
14
|
+
"data-tone": o,
|
|
15
|
+
"data-leading": s,
|
|
16
|
+
"data-align": c,
|
|
17
|
+
"data-truncate": m,
|
|
18
|
+
"data-numeric": u ? "" : void 0,
|
|
19
|
+
style: f,
|
|
20
|
+
children: n
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
//#endregion
|
|
24
|
+
export { n as t };
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=Text-D7hoYpuZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Text-D7hoYpuZ.js","names":[],"sources":["../../src/components/common/Text/Text.tsx"],"sourcesContent":["import type { CSSProperties, ElementType, ReactNode } from \"react\";\nimport \"./Text.css\";\n\nexport type TextSize = \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\" | \"3xl\" | \"4xl\";\nexport type TextWeight = \"regular\" | \"medium\" | \"semibold\" | \"bold\" | \"heavy\";\nexport type TextTone = \"default\" | \"muted\" | \"subtle\" | \"accent\" | \"success\" | \"warning\" | \"danger\" | \"on-fill\";\nexport type TextLeading = \"none\" | \"tight\" | \"snug\" | \"normal\";\nexport type TextAlign = \"start\" | \"center\" | \"end\";\n\nexport type TextProps = {\n children: ReactNode;\n /**\n * The element rendered. A heading is an `h2` because it is a heading, not because it is\n * large — size and level are separate here on purpose, and conflating them is how a page\n * ends up with an `h1` chosen for its font size.\n */\n as?: ElementType;\n /**\n * 주지 않으면 단계가 정합니다.\n *\n * `as=\"h2\"`만 쓰면 h2의 크기·굵기·행간이 붙습니다. 여기에 값을 주면 그 값이 남습니다 —\n * 표지 제목처럼 단계와 크기를 일부러 어긋내야 하는 자리가 있습니다.\n */\n size?: TextSize;\n weight?: TextWeight;\n tone?: TextTone;\n leading?: TextLeading;\n align?: TextAlign;\n /**\n * Clamp to a number of lines, or to one when `true`. One to six.\n *\n * Enumerated rather than passed as a number the component writes into a style attribute.\n * An inline style outranks every selector, cannot be overridden by an adopter, and is\n * invisible to the stylesheet — the failure this library doubles every component root\n * against. Six is where a clamp stops being a clamp.\n *\n * Korean has no break opportunity inside a 어절, so a clamped line that would break a word\n * in Latin drops the whole word here. That is correct — `word-break: keep-all` is set on\n * the document — but it means a clamp holds fewer characters than the same clamp in English.\n */\n truncate?: boolean | 1 | 2 | 3 | 4 | 5 | 6;\n /** Tabular figures, for numbers that sit in a column and must not shift as they change. */\n numeric?: boolean;\n className?: string;\n style?: CSSProperties;\n /**\n * Everything else reaches the element.\n *\n * A component that swallows unknown props cannot be labelled with `aria-*`, described with\n * `title`, or reached by a test without editing the component itself. Passing them through\n * is the difference between a component an adopter can use and one they have to fork.\n */\n [key: `data-${string}`]: unknown;\n [key: `aria-${string}`]: unknown;\n id?: string;\n role?: string;\n title?: string;\n};\n\n/**\n * Text, with the type scale as its vocabulary.\n *\n * It exists so that a size is chosen from the scale rather than typed as a number. Every\n * value here resolves to a token in `foundation/tokens.css`; nothing in this component names\n * a pixel, a colour or a family, which is why a theme can move underneath it without it\n * knowing.\n */\n/** `as`가 제목 태그일 때 그 단계. 아니면 `undefined`. */\nfunction levelOf(as: ElementType) {\n return typeof as === \"string\" && /^h[1-6]$/.test(as) ? as.slice(1) : undefined;\n}\n\nexport function Text({\n children,\n as: Element = \"p\",\n size,\n weight,\n tone = \"default\",\n leading,\n align,\n truncate,\n numeric,\n className,\n style,\n ...rest\n}: TextProps) {\n const lines = typeof truncate === \"number\" ? truncate : truncate ? 1 : undefined;\n /* 단계가 정하는 것은 호출부가 아무 말도 안 했을 때뿐입니다. */\n const heading = size === undefined && weight === undefined ? levelOf(Element) : undefined;\n\n return (\n <Element\n {...rest}\n className={`text ${className ?? \"\"}`.trim()}\n data-heading={heading}\n data-size={heading ? undefined : (size ?? \"md\")}\n data-weight={heading ? undefined : (weight ?? \"regular\")}\n data-tone={tone}\n data-leading={leading}\n data-align={align}\n data-truncate={lines}\n data-numeric={numeric ? \"\" : undefined}\n style={style}\n >\n {children}\n </Element>\n );\n}\n"],"mappings":";;AAoEA,SAAS,EAAQ,GAAiB;CAChC,OAAO,OAAO,KAAO,YAAY,WAAW,KAAK,CAAE,IAAI,EAAG,MAAM,CAAC,IAAI,KAAA;AACvE;AAEA,SAAgB,EAAK,EACnB,aACA,IAAI,IAAU,KACd,SACA,WACA,UAAO,WACP,YACA,UACA,aACA,YACA,cACA,UACA,GAAG,KACS;CACZ,IAAM,IAAQ,OAAO,KAAa,WAAW,IAAW,IAAW,IAAI,KAAA,GAEjE,IAAU,MAAS,KAAA,KAAa,MAAW,KAAA,IAAY,EAAQ,CAAO,IAAI,KAAA;CAEhF,OACE,kBAAC,GAAD;EACE,GAAI;EACJ,WAAW,QAAQ,KAAa,KAAK,KAAK;EAC1C,gBAAc;EACd,aAAW,IAAU,KAAA,IAAa,KAAQ;EAC1C,eAAa,IAAU,KAAA,IAAa,KAAU;EAC9C,aAAW;EACX,gBAAc;EACd,cAAY;EACZ,iBAAe;EACf,gBAAc,IAAU,KAAK,KAAA;EACtB;EAEN;CACM,CAAA;AAEb"}
|