@lucian-seo/lucian-ui 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +227 -0
- package/dist/lib/Input-Bv7L1_wj.js +90 -0
- package/dist/lib/Input-Bv7L1_wj.js.map +1 -0
- package/dist/lib/Menu-B3G64GV4.js +321 -0
- package/dist/lib/Menu-B3G64GV4.js.map +1 -0
- package/dist/lib/Switch-BkMnC02l.js +999 -0
- package/dist/lib/Switch-BkMnC02l.js.map +1 -0
- package/dist/lib/Tag-Z8PjnJFt.js +60 -0
- package/dist/lib/Tag-Z8PjnJFt.js.map +1 -0
- package/dist/lib/TagInput-BaGz-QKU.js +372 -0
- package/dist/lib/TagInput-BaGz-QKU.js.map +1 -0
- package/dist/lib/Text-D7hoYpuZ.js +26 -0
- package/dist/lib/Text-D7hoYpuZ.js.map +1 -0
- package/dist/lib/ToggleButton-D6oEjMeF.js +238 -0
- package/dist/lib/ToggleButton-D6oEjMeF.js.map +1 -0
- package/dist/lib/Toolbar-DiP1iR_t.js +3088 -0
- package/dist/lib/Toolbar-DiP1iR_t.js.map +1 -0
- package/dist/lib/Tooltip-BJSUlXS2.js +117 -0
- package/dist/lib/Tooltip-BJSUlXS2.js.map +1 -0
- package/dist/lib/VisuallyHidden-DcE0EFpo.js +194 -0
- package/dist/lib/VisuallyHidden-DcE0EFpo.js.map +1 -0
- package/dist/lib/VoiceControlBar-CWDLR71w.js +3447 -0
- package/dist/lib/VoiceControlBar-CWDLR71w.js.map +1 -0
- package/dist/lib/Waveform-BIE2Ztc8.js +318 -0
- package/dist/lib/Waveform-BIE2Ztc8.js.map +1 -0
- package/dist/lib/components/common/AspectRatio/AspectRatio.d.ts +26 -0
- package/dist/lib/components/common/AspectRatio/index.d.ts +2 -0
- package/dist/lib/components/common/Avatar/Avatar.d.ts +58 -0
- package/dist/lib/components/common/Avatar/index.d.ts +2 -0
- package/dist/lib/components/common/Badge/Badge.d.ts +36 -0
- package/dist/lib/components/common/Badge/index.d.ts +2 -0
- package/dist/lib/components/common/Blockquote/Blockquote.d.ts +40 -0
- package/dist/lib/components/common/Blockquote/index.d.ts +2 -0
- package/dist/lib/components/common/Button/Button.d.ts +38 -0
- package/dist/lib/components/common/Button/index.d.ts +2 -0
- package/dist/lib/components/common/CalibratedPulse/CalibratedPulse.d.ts +63 -0
- package/dist/lib/components/common/CalibratedPulse/index.d.ts +2 -0
- package/dist/lib/components/common/Center/Center.d.ts +23 -0
- package/dist/lib/components/common/Center/index.d.ts +2 -0
- package/dist/lib/components/common/Checkbox/Checkbox.d.ts +35 -0
- package/dist/lib/components/common/Checkbox/index.d.ts +2 -0
- package/dist/lib/components/common/Code/Code.d.ts +37 -0
- package/dist/lib/components/common/Code/index.d.ts +2 -0
- package/dist/lib/components/common/Collapse/Collapse.d.ts +29 -0
- package/dist/lib/components/common/Collapse/index.d.ts +2 -0
- package/dist/lib/components/common/Container/Container.d.ts +28 -0
- package/dist/lib/components/common/Container/index.d.ts +2 -0
- package/dist/lib/components/common/Divider/Divider.d.ts +28 -0
- package/dist/lib/components/common/Divider/index.d.ts +2 -0
- package/dist/lib/components/common/FileInput/FileInput.d.ts +52 -0
- package/dist/lib/components/common/FileInput/index.d.ts +2 -0
- package/dist/lib/components/common/Flex/Flex.d.ts +35 -0
- package/dist/lib/components/common/Flex/index.d.ts +2 -0
- package/dist/lib/components/common/Glass/Glass.d.ts +35 -0
- package/dist/lib/components/common/Glass/index.d.ts +2 -0
- package/dist/lib/components/common/Glass/refraction.d.ts +24 -0
- package/dist/lib/components/common/Glass/rim.d.ts +37 -0
- package/dist/lib/components/common/Grid/Grid.d.ts +28 -0
- package/dist/lib/components/common/Grid/GridItem.d.ts +31 -0
- package/dist/lib/components/common/Grid/index.d.ts +4 -0
- package/dist/lib/components/common/Group/Group.d.ts +38 -0
- package/dist/lib/components/common/Group/index.d.ts +2 -0
- package/dist/lib/components/common/Highlight/Highlight.d.ts +63 -0
- package/dist/lib/components/common/Highlight/index.d.ts +2 -0
- package/dist/lib/components/common/Icon/Icon.d.ts +39 -0
- package/dist/lib/components/common/Icon/index.d.ts +2 -0
- package/dist/lib/components/common/IconButton/IconButton.d.ts +34 -0
- package/dist/lib/components/common/IconButton/index.d.ts +2 -0
- package/dist/lib/components/common/Indicator/Indicator.d.ts +51 -0
- package/dist/lib/components/common/Indicator/index.d.ts +2 -0
- package/dist/lib/components/common/Input/Input.d.ts +84 -0
- package/dist/lib/components/common/Input/index.d.ts +2 -0
- package/dist/lib/components/common/Kbd/Kbd.d.ts +34 -0
- package/dist/lib/components/common/Kbd/index.d.ts +2 -0
- package/dist/lib/components/common/Link/Link.d.ts +21 -0
- package/dist/lib/components/common/Link/index.d.ts +2 -0
- package/dist/lib/components/common/Mark/Mark.d.ts +38 -0
- package/dist/lib/components/common/Mark/index.d.ts +2 -0
- package/dist/lib/components/common/MultiSelect/MultiSelect.d.ts +54 -0
- package/dist/lib/components/common/MultiSelect/index.d.ts +2 -0
- package/dist/lib/components/common/PinInput/PinInput.d.ts +49 -0
- package/dist/lib/components/common/PinInput/index.d.ts +2 -0
- package/dist/lib/components/common/Progress/Progress.d.ts +30 -0
- package/dist/lib/components/common/Progress/index.d.ts +2 -0
- package/dist/lib/components/common/Radio/Radio.d.ts +45 -0
- package/dist/lib/components/common/Radio/index.d.ts +2 -0
- package/dist/lib/components/common/RingProgress/RingProgress.d.ts +40 -0
- package/dist/lib/components/common/RingProgress/index.d.ts +2 -0
- package/dist/lib/components/common/ScrollArea/ScrollArea.d.ts +33 -0
- package/dist/lib/components/common/ScrollArea/index.d.ts +2 -0
- package/dist/lib/components/common/Select/Select.d.ts +50 -0
- package/dist/lib/components/common/Select/index.d.ts +2 -0
- package/dist/lib/components/common/Select/listbox.d.ts +68 -0
- package/dist/lib/components/common/SimpleGrid/SimpleGrid.d.ts +30 -0
- package/dist/lib/components/common/SimpleGrid/index.d.ts +2 -0
- package/dist/lib/components/common/Skeleton/Skeleton.d.ts +23 -0
- package/dist/lib/components/common/Skeleton/index.d.ts +2 -0
- package/dist/lib/components/common/Slider/Slider.d.ts +55 -0
- package/dist/lib/components/common/Slider/index.d.ts +2 -0
- package/dist/lib/components/common/Space/Space.d.ts +29 -0
- package/dist/lib/components/common/Space/index.d.ts +2 -0
- package/dist/lib/components/common/Spinner/Spinner.d.ts +25 -0
- package/dist/lib/components/common/Spinner/index.d.ts +2 -0
- package/dist/lib/components/common/Stack/Stack.d.ts +41 -0
- package/dist/lib/components/common/Stack/index.d.ts +2 -0
- package/dist/lib/components/common/Switch/Switch.d.ts +28 -0
- package/dist/lib/components/common/Switch/index.d.ts +2 -0
- package/dist/lib/components/common/Text/Text.d.ts +57 -0
- package/dist/lib/components/common/Text/index.d.ts +2 -0
- package/dist/lib/components/common/Textarea/Textarea.d.ts +29 -0
- package/dist/lib/components/common/Textarea/index.d.ts +2 -0
- package/dist/lib/components/common/Tooltip/Tooltip.d.ts +33 -0
- package/dist/lib/components/common/Tooltip/index.d.ts +2 -0
- package/dist/lib/components/common/VisuallyHidden/VisuallyHidden.d.ts +20 -0
- package/dist/lib/components/common/VisuallyHidden/index.d.ts +2 -0
- package/dist/lib/components/common/Waveform/Waveform.d.ts +66 -0
- package/dist/lib/components/common/Waveform/index.d.ts +2 -0
- package/dist/lib/components/common/index.d.ts +44 -0
- package/dist/lib/components/common/index.js +7 -0
- package/dist/lib/components/composed/AppShell/AppShell.d.ts +95 -0
- package/dist/lib/components/composed/AppShell/index.d.ts +2 -0
- package/dist/lib/components/composed/Breadcrumb/Breadcrumb.d.ts +46 -0
- package/dist/lib/components/composed/Breadcrumb/index.d.ts +2 -0
- package/dist/lib/components/composed/BulkActionBar/BulkActionBar.d.ts +48 -0
- package/dist/lib/components/composed/BulkActionBar/index.d.ts +2 -0
- package/dist/lib/components/composed/Callout/Callout.d.ts +43 -0
- package/dist/lib/components/composed/Callout/index.d.ts +2 -0
- package/dist/lib/components/composed/Card/Card.d.ts +80 -0
- package/dist/lib/components/composed/Card/index.d.ts +2 -0
- package/dist/lib/components/composed/Carousel/Carousel.d.ts +52 -0
- package/dist/lib/components/composed/Carousel/index.d.ts +2 -0
- package/dist/lib/components/composed/Combobox/Combobox.d.ts +50 -0
- package/dist/lib/components/composed/Combobox/index.d.ts +2 -0
- package/dist/lib/components/composed/CommandPalette/CommandPalette.d.ts +51 -0
- package/dist/lib/components/composed/CommandPalette/index.d.ts +2 -0
- package/dist/lib/components/composed/DatePicker/Calendar.d.ts +49 -0
- package/dist/lib/components/composed/DatePicker/DatePicker.d.ts +36 -0
- package/dist/lib/components/composed/DatePicker/dates.d.ts +50 -0
- package/dist/lib/components/composed/DatePicker/index.d.ts +3 -0
- package/dist/lib/components/composed/DateRangePicker/DateRangePicker.d.ts +40 -0
- package/dist/lib/components/composed/DateRangePicker/index.d.ts +2 -0
- package/dist/lib/components/composed/Disclosure/Disclosure.d.ts +44 -0
- package/dist/lib/components/composed/Disclosure/index.d.ts +2 -0
- package/dist/lib/components/composed/Drawer/Drawer.d.ts +39 -0
- package/dist/lib/components/composed/Drawer/index.d.ts +2 -0
- package/dist/lib/components/composed/EmptyState/EmptyState.d.ts +43 -0
- package/dist/lib/components/composed/EmptyState/index.d.ts +2 -0
- package/dist/lib/components/composed/Field/Field.d.ts +63 -0
- package/dist/lib/components/composed/Field/index.d.ts +2 -0
- package/dist/lib/components/composed/FilterBar/FilterBar.d.ts +58 -0
- package/dist/lib/components/composed/FilterBar/index.d.ts +2 -0
- package/dist/lib/components/composed/FormSection/FormSection.d.ts +35 -0
- package/dist/lib/components/composed/FormSection/index.d.ts +2 -0
- package/dist/lib/components/composed/ListRow/ListRow.d.ts +83 -0
- package/dist/lib/components/composed/ListRow/index.d.ts +2 -0
- package/dist/lib/components/composed/Menu/Menu.d.ts +102 -0
- package/dist/lib/components/composed/Menu/index.d.ts +2 -0
- package/dist/lib/components/composed/Menu/scope.d.ts +15 -0
- package/dist/lib/components/composed/Modal/Modal.d.ts +65 -0
- package/dist/lib/components/composed/Modal/index.d.ts +2 -0
- package/dist/lib/components/composed/PageHeader/PageHeader.d.ts +46 -0
- package/dist/lib/components/composed/PageHeader/index.d.ts +2 -0
- package/dist/lib/components/composed/Pagination/Pagination.d.ts +48 -0
- package/dist/lib/components/composed/Pagination/index.d.ts +2 -0
- package/dist/lib/components/composed/Popover/Popover.d.ts +47 -0
- package/dist/lib/components/composed/Popover/index.d.ts +2 -0
- package/dist/lib/components/composed/PreferenceRow/PreferenceRow.d.ts +43 -0
- package/dist/lib/components/composed/PreferenceRow/index.d.ts +2 -0
- package/dist/lib/components/composed/Sheet/Sheet.d.ts +53 -0
- package/dist/lib/components/composed/Sheet/index.d.ts +2 -0
- package/dist/lib/components/composed/SidePanel/SidePanel.d.ts +34 -0
- package/dist/lib/components/composed/SidePanel/index.d.ts +2 -0
- package/dist/lib/components/composed/SidebarNav/SidebarNav.d.ts +85 -0
- package/dist/lib/components/composed/SidebarNav/index.d.ts +2 -0
- package/dist/lib/components/composed/Spotlight/Spotlight.d.ts +57 -0
- package/dist/lib/components/composed/Spotlight/index.d.ts +2 -0
- package/dist/lib/components/composed/Stepper/Stepper.d.ts +36 -0
- package/dist/lib/components/composed/Stepper/index.d.ts +2 -0
- package/dist/lib/components/composed/Table/Table.d.ts +142 -0
- package/dist/lib/components/composed/Table/index.d.ts +2 -0
- package/dist/lib/components/composed/Tabs/Tabs.d.ts +48 -0
- package/dist/lib/components/composed/Tabs/index.d.ts +2 -0
- package/dist/lib/components/composed/TimeInput/TimeInput.d.ts +41 -0
- package/dist/lib/components/composed/TimeInput/index.d.ts +3 -0
- package/dist/lib/components/composed/TimeInput/times.d.ts +47 -0
- package/dist/lib/components/composed/Toast/Toast.d.ts +37 -0
- package/dist/lib/components/composed/Toast/index.d.ts +2 -0
- package/dist/lib/components/composed/Toolbar/Toolbar.d.ts +45 -0
- package/dist/lib/components/composed/Toolbar/index.d.ts +2 -0
- package/dist/lib/components/composed/index.d.ts +33 -0
- package/dist/lib/components/composed/index.js +3 -0
- package/dist/lib/components/derived/AvatarGroup/AvatarGroup.d.ts +52 -0
- package/dist/lib/components/derived/AvatarGroup/index.d.ts +2 -0
- package/dist/lib/components/derived/ButtonGroup/ButtonGroup.d.ts +33 -0
- package/dist/lib/components/derived/ButtonGroup/index.d.ts +2 -0
- package/dist/lib/components/derived/ChoiceCard/ChoiceCard.d.ts +43 -0
- package/dist/lib/components/derived/ChoiceCard/index.d.ts +2 -0
- package/dist/lib/components/derived/InputGroup/InputGroup.d.ts +23 -0
- package/dist/lib/components/derived/InputGroup/index.d.ts +2 -0
- package/dist/lib/components/derived/MorphIcon/MorphIcon.d.ts +71 -0
- package/dist/lib/components/derived/MorphIcon/index.d.ts +2 -0
- package/dist/lib/components/derived/NumberFlow/NumberFlow.d.ts +47 -0
- package/dist/lib/components/derived/NumberFlow/index.d.ts +2 -0
- package/dist/lib/components/derived/NumberInput/NumberInput.d.ts +54 -0
- package/dist/lib/components/derived/NumberInput/index.d.ts +2 -0
- package/dist/lib/components/derived/PasswordInput/PasswordInput.d.ts +53 -0
- package/dist/lib/components/derived/PasswordInput/index.d.ts +2 -0
- package/dist/lib/components/derived/SearchInput/SearchInput.d.ts +33 -0
- package/dist/lib/components/derived/SearchInput/index.d.ts +2 -0
- package/dist/lib/components/derived/SegmentedControl/SegmentedControl.d.ts +44 -0
- package/dist/lib/components/derived/SegmentedControl/index.d.ts +2 -0
- package/dist/lib/components/derived/SplitButton/SplitButton.d.ts +42 -0
- package/dist/lib/components/derived/SplitButton/index.d.ts +2 -0
- package/dist/lib/components/derived/StatusDot/StatusDot.d.ts +31 -0
- package/dist/lib/components/derived/StatusDot/index.d.ts +2 -0
- package/dist/lib/components/derived/Tag/Tag.d.ts +47 -0
- package/dist/lib/components/derived/Tag/index.d.ts +2 -0
- package/dist/lib/components/derived/TagInput/TagInput.d.ts +28 -0
- package/dist/lib/components/derived/TagInput/index.d.ts +2 -0
- package/dist/lib/components/derived/TextCycle/TextCycle.d.ts +40 -0
- package/dist/lib/components/derived/TextCycle/index.d.ts +2 -0
- package/dist/lib/components/derived/ToggleButton/ToggleButton.d.ts +43 -0
- package/dist/lib/components/derived/ToggleButton/index.d.ts +2 -0
- package/dist/lib/components/derived/index.d.ts +16 -0
- package/dist/lib/components/derived/index.js +4 -0
- package/dist/lib/components/extended/ActivityList/ActivityList.d.ts +38 -0
- package/dist/lib/components/extended/ActivityList/index.d.ts +2 -0
- package/dist/lib/components/extended/AddressForm/AddressForm.d.ts +71 -0
- package/dist/lib/components/extended/AddressForm/index.d.ts +2 -0
- package/dist/lib/components/extended/ApprovalGate/ApprovalGate.d.ts +60 -0
- package/dist/lib/components/extended/ApprovalGate/index.d.ts +2 -0
- package/dist/lib/components/extended/BackgroundProgress/BackgroundProgress.d.ts +63 -0
- package/dist/lib/components/extended/BackgroundProgress/index.d.ts +2 -0
- package/dist/lib/components/extended/Citation/Citation.d.ts +61 -0
- package/dist/lib/components/extended/Citation/index.d.ts +2 -0
- package/dist/lib/components/extended/CommentThread/CommentThread.d.ts +61 -0
- package/dist/lib/components/extended/CommentThread/index.d.ts +2 -0
- package/dist/lib/components/extended/Composer/Composer.d.ts +57 -0
- package/dist/lib/components/extended/Composer/index.d.ts +2 -0
- package/dist/lib/components/extended/CouponField/CouponField.d.ts +59 -0
- package/dist/lib/components/extended/CouponField/index.d.ts +2 -0
- package/dist/lib/components/extended/DataGrid/DataGrid.d.ts +161 -0
- package/dist/lib/components/extended/DataGrid/DataGrid.state.d.ts +93 -0
- package/dist/lib/components/extended/DataGrid/index.d.ts +2 -0
- package/dist/lib/components/extended/Dropzone/Dropzone.d.ts +83 -0
- package/dist/lib/components/extended/Dropzone/index.d.ts +2 -0
- package/dist/lib/components/extended/FeedbackControl/FeedbackControl.d.ts +47 -0
- package/dist/lib/components/extended/FeedbackControl/index.d.ts +2 -0
- package/dist/lib/components/extended/FilterBuilder/FilterBuilder.d.ts +67 -0
- package/dist/lib/components/extended/FilterBuilder/index.d.ts +2 -0
- package/dist/lib/components/extended/FollowUpList/FollowUpList.d.ts +34 -0
- package/dist/lib/components/extended/FollowUpList/index.d.ts +2 -0
- package/dist/lib/components/extended/KanbanColumn/KanbanColumn.d.ts +62 -0
- package/dist/lib/components/extended/KanbanColumn/index.d.ts +2 -0
- package/dist/lib/components/extended/Message/Message.d.ts +43 -0
- package/dist/lib/components/extended/Message/index.d.ts +2 -0
- package/dist/lib/components/extended/MessageList/MessageList.d.ts +66 -0
- package/dist/lib/components/extended/MessageList/index.d.ts +2 -0
- package/dist/lib/components/extended/MetricCard/MetricCard.d.ts +60 -0
- package/dist/lib/components/extended/MetricCard/index.d.ts +2 -0
- package/dist/lib/components/extended/OrderSummary/OrderSummary.d.ts +70 -0
- package/dist/lib/components/extended/OrderSummary/index.d.ts +2 -0
- package/dist/lib/components/extended/PaymentMethodSelector/PaymentMethodSelector.d.ts +65 -0
- package/dist/lib/components/extended/PaymentMethodSelector/index.d.ts +2 -0
- package/dist/lib/components/extended/PresenceBar/PresenceBar.d.ts +49 -0
- package/dist/lib/components/extended/PresenceBar/index.d.ts +2 -0
- package/dist/lib/components/extended/PriceDisplay/PriceDisplay.d.ts +53 -0
- package/dist/lib/components/extended/PriceDisplay/index.d.ts +2 -0
- package/dist/lib/components/extended/ProductCard/ProductCard.d.ts +58 -0
- package/dist/lib/components/extended/ProductCard/index.d.ts +2 -0
- package/dist/lib/components/extended/QuantityStepper/QuantityStepper.d.ts +41 -0
- package/dist/lib/components/extended/QuantityStepper/index.d.ts +2 -0
- package/dist/lib/components/extended/ReasoningDisclosure/ReasoningDisclosure.d.ts +33 -0
- package/dist/lib/components/extended/ReasoningDisclosure/index.d.ts +2 -0
- package/dist/lib/components/extended/RecognitionFallback/RecognitionFallback.d.ts +57 -0
- package/dist/lib/components/extended/RecognitionFallback/index.d.ts +2 -0
- package/dist/lib/components/extended/RunStatusCard/RunStatusCard.d.ts +51 -0
- package/dist/lib/components/extended/RunStatusCard/index.d.ts +2 -0
- package/dist/lib/components/extended/SavedViewTabs/SavedViewTabs.d.ts +49 -0
- package/dist/lib/components/extended/SavedViewTabs/index.d.ts +2 -0
- package/dist/lib/components/extended/SourceChip/SourceChip.d.ts +37 -0
- package/dist/lib/components/extended/SourceChip/index.d.ts +2 -0
- package/dist/lib/components/extended/SourceChipRow/SourceChipRow.d.ts +54 -0
- package/dist/lib/components/extended/SourceChipRow/index.d.ts +2 -0
- package/dist/lib/components/extended/SourcePanel/SourcePanel.d.ts +46 -0
- package/dist/lib/components/extended/SourcePanel/index.d.ts +2 -0
- package/dist/lib/components/extended/StreamingText/StreamingText.d.ts +30 -0
- package/dist/lib/components/extended/StreamingText/index.d.ts +2 -0
- package/dist/lib/components/extended/ToolCallCard/ToolCallCard.d.ts +52 -0
- package/dist/lib/components/extended/ToolCallCard/index.d.ts +2 -0
- package/dist/lib/components/extended/TranscriptSync/TranscriptSync.d.ts +58 -0
- package/dist/lib/components/extended/TranscriptSync/index.d.ts +2 -0
- package/dist/lib/components/extended/TrustBlock/TrustBlock.d.ts +37 -0
- package/dist/lib/components/extended/TrustBlock/index.d.ts +2 -0
- package/dist/lib/components/extended/VoiceControlBar/VoiceControlBar.d.ts +77 -0
- package/dist/lib/components/extended/VoiceControlBar/index.d.ts +2 -0
- package/dist/lib/components/extended/index.d.ts +35 -0
- package/dist/lib/components/extended/index.js +2 -0
- package/dist/lib/fonts/pretendard/LICENSE.txt +94 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.0.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.1.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.10.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.11.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.12.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.13.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.14.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.15.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.16.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.17.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.18.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.19.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.2.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.20.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.21.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.22.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.23.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.24.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.25.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.26.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.27.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.28.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.29.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.3.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.30.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.31.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.32.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.33.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.34.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.35.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.36.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.37.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.38.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.39.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.4.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.40.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.41.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.42.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.43.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.44.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.45.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.46.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.47.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.48.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.49.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.5.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.50.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.51.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.52.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.53.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.54.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.55.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.56.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.57.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.58.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.59.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.6.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.60.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.61.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.62.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.63.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.64.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.65.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.66.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.67.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.68.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.69.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.7.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.70.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.71.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.72.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.73.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.74.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.75.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.76.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.77.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.78.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.79.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.8.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.80.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.81.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.82.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.83.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.84.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.85.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.86.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.87.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.88.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.89.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.9.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.90.woff2 +0 -0
- package/dist/lib/fonts/pretendard/PretendardVariable.subset.91.woff2 +0 -0
- package/dist/lib/foundation/focus.d.ts +10 -0
- package/dist/lib/foundation/josa.d.ts +4 -0
- package/dist/lib/index.d.ts +4 -0
- package/dist/lib/index.js +13 -0
- package/dist/lib/pretendard.css +940 -0
- package/dist/lib/reset.css +50 -0
- package/dist/lib/styles.css +3 -0
- package/dist/lib/tokens.css +1118 -0
- package/package.json +91 -0
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import "./CalibratedPulse.css";
|
|
2
|
+
export type CalibratedPulseSize = "sm" | "md";
|
|
3
|
+
export type CalibratedPulseProps = {
|
|
4
|
+
/** What is being waited for, in the reader's words. "문서 찾는 중". */
|
|
5
|
+
label: string;
|
|
6
|
+
/**
|
|
7
|
+
* When things arrived, in milliseconds, oldest first.
|
|
8
|
+
*
|
|
9
|
+
* One clock, whichever one — only the gaps are read, so `Date.now()` and
|
|
10
|
+
* `performance.now()` both work as long as they are not mixed. The events themselves are
|
|
11
|
+
* the host's: this component owns the arithmetic on them and the sentence that comes out,
|
|
12
|
+
* and nothing else.
|
|
13
|
+
*/
|
|
14
|
+
events?: number[];
|
|
15
|
+
/**
|
|
16
|
+
* How many more arrivals are expected, if the host knows.
|
|
17
|
+
*
|
|
18
|
+
* A count, and it is reported as a count. See the note about the time it is not multiplied
|
|
19
|
+
* into.
|
|
20
|
+
*/
|
|
21
|
+
remaining?: number;
|
|
22
|
+
size?: CalibratedPulseSize;
|
|
23
|
+
className?: string;
|
|
24
|
+
[key: `data-${string}`]: unknown;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* A beat whose speed is the speed things are actually arriving at.
|
|
28
|
+
*
|
|
29
|
+
* **The period comes from observed gaps and from nothing else.** It does not creep towards a
|
|
30
|
+
* target, it does not accelerate because time has passed, and it does not move at all before
|
|
31
|
+
* two arrivals have been seen — one timestamp cannot describe an interval. An indicator that
|
|
32
|
+
* speeds up with nothing behind it is a fake progress bar that happens to be small, and a
|
|
33
|
+
* spinner claiming nothing is better than that. This is the whole reason the component
|
|
34
|
+
* exists: a beat is worth more than a spinner only because its speed means something.
|
|
35
|
+
*
|
|
36
|
+
* **Nothing arriving is a state with a picture of its own.** No events is a grey ring that
|
|
37
|
+
* does not move and a sentence saying so — identical on the first frame and ten minutes
|
|
38
|
+
* later, because that is what is true. The guard measures, waits, and measures again.
|
|
39
|
+
*
|
|
40
|
+
* **A rate that has stopped being fed stops being claimed.** After `STALL_AFTER` periods
|
|
41
|
+
* with no arrival the beat falls back to resting and says it stalled, because holding the
|
|
42
|
+
* last speed is promising a rate that nothing supports any more. The clock for that starts
|
|
43
|
+
* when this component last *saw* an event rather than at the timestamp's own value — the
|
|
44
|
+
* host's clock is unknowable and arrivals are the only thing comparable to now.
|
|
45
|
+
*
|
|
46
|
+
* **The floor is a limit of the eye, not a claim.** Below `FLOOR` the beat stops getting
|
|
47
|
+
* faster and the written number keeps going: `0.01초에 한 건` beside a beat drawn at 220ms.
|
|
48
|
+
* The honest one is the number, and the beat is only as fast as an eye can follow.
|
|
49
|
+
*
|
|
50
|
+
* **`remaining` is reported as a count and never multiplied into a time.** Rate × count is
|
|
51
|
+
* arithmetic on two measured things and it is still a guess — arrival rates for anything
|
|
52
|
+
* doing real I/O are not stationary, and the guess is worst exactly when the wait is long
|
|
53
|
+
* enough for someone to care. `RunStatusCard` refused an estimate for the same reason and
|
|
54
|
+
* this library does not want two answers to that question. The archive component this is
|
|
55
|
+
* derived from printed the time; this is a deliberate disagreement with it.
|
|
56
|
+
*
|
|
57
|
+
* **The live region carries the state, not the number.** The rate changes on every arrival,
|
|
58
|
+
* and a live region on a number that changes every 300ms is a screen reader that cannot be
|
|
59
|
+
* got past. What is announced is what is being waited for and whether it is being measured,
|
|
60
|
+
* stalled, or not yet known — the things that change rarely and that a reader needs. The
|
|
61
|
+
* rate is ordinary text beside it.
|
|
62
|
+
*/
|
|
63
|
+
export declare function CalibratedPulse({ label, events, remaining, size, className, ...rest }: CalibratedPulseProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import "./Center.css";
|
|
3
|
+
export type CenterProps = {
|
|
4
|
+
children?: ReactNode;
|
|
5
|
+
as?: ElementType;
|
|
6
|
+
/** `inline-grid` instead of `grid`, for a box that sits in a line of text. */
|
|
7
|
+
inline?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
[key: `data-${string}`]: unknown;
|
|
10
|
+
[key: `aria-${string}`]: unknown;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* One thing in the middle of its box, on both axes.
|
|
14
|
+
*
|
|
15
|
+
* `place-items: center` rather than the flex pair, because a grid centres a child that has no
|
|
16
|
+
* intrinsic size the same way it centres one that does — and because the two-axis case is the
|
|
17
|
+
* only case this component has. Anything with a direction, a gap or a wrap is `Flex`.
|
|
18
|
+
*
|
|
19
|
+
* It centres within the height it is given and does not invent one. A `Center` in normal flow
|
|
20
|
+
* is as tall as its child, so the vertical half of the job is only visible once something
|
|
21
|
+
* outside has said how tall the box is.
|
|
22
|
+
*/
|
|
23
|
+
export declare function Center({ children, as: Element, inline, className, ...rest }: CenterProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ChangeEvent, ReactNode } from "react";
|
|
2
|
+
import "./Checkbox.css";
|
|
3
|
+
export type CheckboxSize = "sm" | "md";
|
|
4
|
+
export type CheckboxProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
checked?: boolean;
|
|
7
|
+
defaultChecked?: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Some of what this box stands for is checked and some is not.
|
|
10
|
+
*
|
|
11
|
+
* A DOM property, not an attribute — there is no `indeterminate=""` in HTML — so it is set
|
|
12
|
+
* through a ref. Every implementation that forgets this ships a box that looks
|
|
13
|
+
* indeterminate and reports itself as unchecked.
|
|
14
|
+
*/
|
|
15
|
+
indeterminate?: boolean;
|
|
16
|
+
onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
|
|
17
|
+
size?: CheckboxSize;
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
invalid?: boolean;
|
|
20
|
+
name?: string;
|
|
21
|
+
value?: string;
|
|
22
|
+
id?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
[key: `data-${string}`]: unknown;
|
|
25
|
+
[key: `aria-${string}`]: unknown;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* A real `<input type="checkbox">`, drawn over.
|
|
29
|
+
*
|
|
30
|
+
* The input is present, focusable and in the form; what is hidden is only its appearance.
|
|
31
|
+
* Rebuilding a checkbox out of a `<div role="checkbox">` means rebuilding space-to-toggle,
|
|
32
|
+
* form submission, `:checked`, autofill and the label association, and getting one of them
|
|
33
|
+
* wrong is the usual outcome.
|
|
34
|
+
*/
|
|
35
|
+
export declare function Checkbox({ children, indeterminate, size, disabled, invalid, className, ...rest }: CheckboxProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import "./Code.css";
|
|
3
|
+
export type CodeProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* A block instead of a fragment. `false` renders `<code>` inside the sentence; `true`
|
|
7
|
+
* renders `<pre><code>`, which is the only pair that preserves the newlines and the runs
|
|
8
|
+
* of spaces a listing is made of.
|
|
9
|
+
*/
|
|
10
|
+
block?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The outer element. Defaults to `code` inline and `pre` in block mode. Replacing the
|
|
13
|
+
* block root with something that is not a `pre` drops the element's own `white-space`
|
|
14
|
+
* default, and the newlines go with it.
|
|
15
|
+
*/
|
|
16
|
+
as?: ElementType;
|
|
17
|
+
className?: string;
|
|
18
|
+
[key: `data-${string}`]: unknown;
|
|
19
|
+
[key: `aria-${string}`]: unknown;
|
|
20
|
+
id?: string;
|
|
21
|
+
title?: string;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* A fragment of code, in the monospaced face.
|
|
25
|
+
*
|
|
26
|
+
* `--font-mono` is a token this repository already ships, so the family is read rather than
|
|
27
|
+
* named here; nothing in this component knows a font name.
|
|
28
|
+
*
|
|
29
|
+
* Block mode scrolls sideways rather than wrapping, and that scroller is focusable *while it
|
|
30
|
+
* has something to scroll to*. A region that scrolls and cannot be focused is a region a
|
|
31
|
+
* keyboard cannot scroll — WCAG 2.1.1 — and Chromium does not make one focusable on its own
|
|
32
|
+
* the way Firefox does. A block that fits, though, is a stop that goes nowhere: the comment
|
|
33
|
+
* here used to say "focusable only when it can scroll" while the code read `block ? 0 :
|
|
34
|
+
* undefined`, and a listing that fitted in its box took a tab press all the same. `ScrollArea`
|
|
35
|
+
* had already settled the measurement; this follows it.
|
|
36
|
+
*/
|
|
37
|
+
export declare function Code({ children, block, as: Element, className, ...rest }: CodeProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Collapse.css";
|
|
3
|
+
export type CollapseAxis = "block" | "inline";
|
|
4
|
+
export type CollapseProps = {
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
/** Required. The component has no state of its own and never opens itself. */
|
|
7
|
+
open: boolean;
|
|
8
|
+
axis?: CollapseAxis;
|
|
9
|
+
/** So the control that opens this can point at it with `aria-controls`. */
|
|
10
|
+
id?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
[key: `data-${string}`]: unknown;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* A box that measures to nothing and back.
|
|
16
|
+
*
|
|
17
|
+
* The height half of a disclosure, with no summary row and no state. `composed/Disclosure`
|
|
18
|
+
* is a real `<details>`: it owns its trigger, reports expanded state without an
|
|
19
|
+
* `aria-expanded` to keep in sync, and lets find-in-page open it to show a match inside.
|
|
20
|
+
* This is a `<div>` driven by a prop, so it has none of that — the caller draws the trigger,
|
|
21
|
+
* wires `aria-expanded` and `aria-controls`, and closed content is not findable. It exists
|
|
22
|
+
* for the cases `<details>` cannot be: a panel opened by something that is not next to it, a
|
|
23
|
+
* row that reveals itself when a filter matches, a sidebar that measures sideways.
|
|
24
|
+
*
|
|
25
|
+
* Closed content leaves the tab order and the accessibility tree. A collapsed box that is
|
|
26
|
+
* merely zero pixels tall still holds focusable controls, and a reader tabbing past it lands
|
|
27
|
+
* on a button they cannot see.
|
|
28
|
+
*/
|
|
29
|
+
export declare function Collapse({ children, open, axis, id, className, ...rest }: CollapseProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import "./Container.css";
|
|
3
|
+
/**
|
|
4
|
+
* The widths `src/foundation/grid.css` knows about, and no others.
|
|
5
|
+
*
|
|
6
|
+
* `xl` is the base rule there rather than an attribute selector, so `data-width="xl"` matches
|
|
7
|
+
* nothing and is still written out: the attribute is how a reader and a test see which width
|
|
8
|
+
* was asked for, and an unwritten default is a default nobody can check.
|
|
9
|
+
*/
|
|
10
|
+
export type ContainerWidth = "sm" | "md" | "lg" | "xl" | "prose" | "full";
|
|
11
|
+
export type ContainerProps = {
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
as?: ElementType;
|
|
14
|
+
width?: ContainerWidth;
|
|
15
|
+
className?: string;
|
|
16
|
+
[key: `data-${string}`]: unknown;
|
|
17
|
+
[key: `aria-${string}`]: unknown;
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* The page measure, as a component.
|
|
21
|
+
*
|
|
22
|
+
* Every rule it renders under lives in `src/foundation/grid.css`: the max-width per
|
|
23
|
+
* `data-width`, the auto inline margins, and the gutter that widens at 768px. This file adds
|
|
24
|
+
* an element and an attribute and nothing else, on purpose — a second copy of `max-width:
|
|
25
|
+
* var(--container-lg)` is a second place for that number to change, and the two copies would
|
|
26
|
+
* not change together.
|
|
27
|
+
*/
|
|
28
|
+
export declare function Container({ children, as: Element, width, className, ...rest }: ContainerProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import "./Divider.css";
|
|
3
|
+
export type DividerOrientation = "horizontal" | "vertical";
|
|
4
|
+
export type DividerTone = "default" | "strong";
|
|
5
|
+
export type DividerSpacing = "none" | "sm" | "md" | "lg";
|
|
6
|
+
type DividerBase = {
|
|
7
|
+
tone?: DividerTone;
|
|
8
|
+
spacing?: DividerSpacing;
|
|
9
|
+
className?: string;
|
|
10
|
+
[key: `data-${string}`]: unknown;
|
|
11
|
+
};
|
|
12
|
+
export type DividerProps = (DividerBase & {
|
|
13
|
+
orientation?: "horizontal";
|
|
14
|
+
/** A label sitting in the rule, which turns it from a separator into a heading of sorts. */
|
|
15
|
+
children?: ReactNode;
|
|
16
|
+
}) | (DividerBase & {
|
|
17
|
+
orientation: "vertical";
|
|
18
|
+
children?: never;
|
|
19
|
+
});
|
|
20
|
+
/**
|
|
21
|
+
* A rule between things.
|
|
22
|
+
*
|
|
23
|
+
* `role="separator"` when it is only a rule, and a plain box when it carries a label —
|
|
24
|
+
* because a separator with a name is announced as a separator called "or", which is not what
|
|
25
|
+
* the label is for. With text it is a group whose text reads in place.
|
|
26
|
+
*/
|
|
27
|
+
export declare function Divider(props: DividerProps): import("react").JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import "./FileInput.css";
|
|
2
|
+
export type FileInputSize = "sm" | "md" | "lg";
|
|
3
|
+
export type FileInputProps = {
|
|
4
|
+
/** What has been picked. The component never holds a file this does not name. */
|
|
5
|
+
value: File[];
|
|
6
|
+
onValueChange: (files: File[]) => void;
|
|
7
|
+
/** What is being collected. "이력서". Names the field. */
|
|
8
|
+
label: string;
|
|
9
|
+
/** The `accept` attribute's syntax — `.pdf`, `image/*`, `application/pdf`. */
|
|
10
|
+
accept?: string;
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
/** The largest file this takes, in bytes. */
|
|
13
|
+
maxSize?: number;
|
|
14
|
+
size?: FileInputSize;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
invalid?: boolean;
|
|
17
|
+
id?: string;
|
|
18
|
+
/** The field's name in the form. The native input carries it, so the form submits the files. */
|
|
19
|
+
name?: string;
|
|
20
|
+
/** What the field says while nothing is picked. */
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
"aria-describedby"?: string;
|
|
23
|
+
"aria-labelledby"?: string;
|
|
24
|
+
required?: boolean;
|
|
25
|
+
className?: string;
|
|
26
|
+
[key: `data-${string}`]: unknown;
|
|
27
|
+
[key: `aria-${string}`]: unknown;
|
|
28
|
+
};
|
|
29
|
+
/** Bytes as a reader says them. "2.4MB", not "2516582". */
|
|
30
|
+
export declare function fileSizeText(bytes: number): string;
|
|
31
|
+
/**
|
|
32
|
+
* One line in a form that holds files.
|
|
33
|
+
*
|
|
34
|
+
* **The native `<input type="file">` is the value.** It is clipped out of sight but stays in
|
|
35
|
+
* the tab order and stays the form's field, so `name` submits, the space bar opens the picker
|
|
36
|
+
* and assistive technology announces the control the platform gave it. The visible row is a
|
|
37
|
+
* `<label>` over it. The common alternative — a `<div>` with a click handler calling
|
|
38
|
+
* `input.click()` — looks identical and is reachable by exactly one input device.
|
|
39
|
+
*
|
|
40
|
+
* **What `value` says, the input holds.** Every change writes a `DataTransfer` list back into
|
|
41
|
+
* the element, so a file removed from the list is also removed from what the form submits.
|
|
42
|
+
* Without that the reader deletes a row and the server still receives the file.
|
|
43
|
+
*
|
|
44
|
+
* **A refused file says why it was refused.** `accept` and `maxSize` are rules, and a rule
|
|
45
|
+
* that silently drops a file leaves the reader pressing the same button again with the same
|
|
46
|
+
* file. The reason is written into a live region, so it is heard and not only seen.
|
|
47
|
+
*
|
|
48
|
+
* Not `Dropzone`. That one is a wide area to drag onto, and it draws upload progress and
|
|
49
|
+
* per-file results. This is a control the height of a text field that sits in a form beside
|
|
50
|
+
* the other fields.
|
|
51
|
+
*/
|
|
52
|
+
export declare function FileInput({ value, onValueChange, label, accept, multiple, maxSize, size, disabled, invalid, id, name, placeholder, "aria-describedby": describedBy, "aria-labelledby": labelledBy, required, className, ...rest }: FileInputProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import type { LayoutGap } from "../Stack";
|
|
3
|
+
import "./Flex.css";
|
|
4
|
+
export type FlexDirection = "row" | "column" | "row-reverse" | "column-reverse";
|
|
5
|
+
export type FlexAlign = "start" | "center" | "end" | "baseline" | "stretch";
|
|
6
|
+
export type FlexJustify = "start" | "center" | "end" | "between" | "around";
|
|
7
|
+
export type FlexProps = {
|
|
8
|
+
children: ReactNode;
|
|
9
|
+
/** The main axis. The two reversed values change paint order, not DOM order. */
|
|
10
|
+
direction?: FlexDirection;
|
|
11
|
+
/** A step on the spacing scale. Follows the page density, because `--space-*` does. */
|
|
12
|
+
gap?: LayoutGap;
|
|
13
|
+
/** The cross axis. */
|
|
14
|
+
align?: FlexAlign;
|
|
15
|
+
/** The main axis. */
|
|
16
|
+
justify?: FlexJustify;
|
|
17
|
+
wrap?: boolean;
|
|
18
|
+
as?: ElementType;
|
|
19
|
+
className?: string;
|
|
20
|
+
[key: `data-${string}`]: unknown;
|
|
21
|
+
[key: `aria-${string}`]: unknown;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* The escape hatch: a flex container whose axis is a prop.
|
|
25
|
+
*
|
|
26
|
+
* `Stack` and `Group` are the two arrangements this library has an opinion about, and they
|
|
27
|
+
* carry that opinion in their defaults. `Flex` has none — it is here so that the one layout a
|
|
28
|
+
* quarter that is neither of those does not become a hand-written stylesheet, which is the
|
|
29
|
+
* failure this whole set was built against.
|
|
30
|
+
*
|
|
31
|
+
* The two reversed directions reorder what is painted and not what is read. A keyboard walks
|
|
32
|
+
* the DOM, so a reversed row hands the reader the last control first; use it for a visual
|
|
33
|
+
* mirror of an order the markup already has, never to reorder controls.
|
|
34
|
+
*/
|
|
35
|
+
export declare function Flex({ children, direction, gap, align, justify, wrap, as: Element, className, ...rest }: FlexProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type ReactNode, type Ref } from "react";
|
|
2
|
+
import "./Glass.css";
|
|
3
|
+
export type GlassRadius = "md" | "lg" | "xl";
|
|
4
|
+
export type GlassProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
/** Which corner step the pane is cut to. The lens is built from it, so it is a prop rather
|
|
7
|
+
* than something a caller sets in CSS — a radius the map does not know about bends the
|
|
8
|
+
* backdrop along an edge that is not there. */
|
|
9
|
+
radius?: GlassRadius;
|
|
10
|
+
/**
|
|
11
|
+
* Lights the edge under the pointer.
|
|
12
|
+
*
|
|
13
|
+
* Off by default and it stays that way. This is the library's only decoration — it says
|
|
14
|
+
* nothing the pane does not already say, and `DESIGN.md` 2절 is where that is allowed to
|
|
15
|
+
* be a reason rather than a defect. Turn it on where the surface is the subject: a hero,
|
|
16
|
+
* a marketing panel, a specimen. Not in a table.
|
|
17
|
+
*/
|
|
18
|
+
rim?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
ref?: Ref<HTMLDivElement>;
|
|
21
|
+
[key: `data-${string}`]: unknown;
|
|
22
|
+
[key: `aria-${string}`]: unknown;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* A pane that is glass on purpose.
|
|
26
|
+
*
|
|
27
|
+
* `Card`, `Input` and the outline `Button` become glass when the page does, because they read
|
|
28
|
+
* `--surface` and the look redefines it. This is for the panes that are glass whatever the
|
|
29
|
+
* page is — a floating panel over a picture, a control bar over a scene — and it is also the
|
|
30
|
+
* plainest place to look at what the lens does, next to a pane that does not have one.
|
|
31
|
+
*
|
|
32
|
+
* The bending itself lives in `useRefraction`, which any surface can call. See the note there
|
|
33
|
+
* for why it cannot be a token.
|
|
34
|
+
*/
|
|
35
|
+
export declare const Glass: import("react").ForwardRefExoticComponent<Omit<GlassProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type Ref, type RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The caller's ref and the lens's, on one node.
|
|
4
|
+
*
|
|
5
|
+
* Written against a real failure and a bad one. `Button` took the lens ref by spreading the
|
|
6
|
+
* caller's props first and writing `ref` after, which silently threw away the ref it had just
|
|
7
|
+
* been handed. Radix passes its trigger's ref exactly that way — `asChild` clones the child
|
|
8
|
+
* with one — so every menu and popover opened by a `Button` lost its anchor. Floating UI never
|
|
9
|
+
* positioned, and Radix left the panel parked at its unpositioned `translate(0, -200%)`: the
|
|
10
|
+
* menu rendered off screen, at minus twice its own height, with no error anywhere.
|
|
11
|
+
*
|
|
12
|
+
* `Card` and `Glass` had the same collision the other way round, writing `ref` before the
|
|
13
|
+
* spread, where an incoming ref turned the lens off instead. Neither order is right. A node
|
|
14
|
+
* two things need is a node both of them get.
|
|
15
|
+
*/
|
|
16
|
+
export declare function useComposedRef<T extends HTMLElement>(mine: RefObject<T | null>, theirs: Ref<T> | undefined): (node: T | null) => void;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the `filter()` value for a pane, or an empty string.
|
|
19
|
+
*
|
|
20
|
+
* Empty rather than `none` on purpose: the caller writes it into a custom property that sits
|
|
21
|
+
* inside a `backdrop-filter` list, and a list containing `none` is invalid CSS — the whole
|
|
22
|
+
* declaration would be dropped and the pane would lose its blur along with its lens.
|
|
23
|
+
*/
|
|
24
|
+
export declare function useRefraction(pane: RefObject<HTMLElement | null>, scale?: number): string;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type RefObject } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The specular rim, following the pointer.
|
|
4
|
+
*
|
|
5
|
+
* `FOUNDATION.md` already names a `정반사 림` — the fixed bright edge the glass look paints
|
|
6
|
+
* with `--surface-bevel`. This does not add one. It moves the one that is there, which is what
|
|
7
|
+
* Apple calls a specular highlight and `docs/GLASS.md` calls Edge Light.
|
|
8
|
+
*
|
|
9
|
+
* It is DECORATION, and `DESIGN.md` 2절 is the reason there is a word for that here. It
|
|
10
|
+
* carries no fact. The pane says exactly as much with it as without, and the proof is that it
|
|
11
|
+
* vanishes on a touch screen and nothing is lost. `VISUAL-INTERACTION-PLAN.md` 10절 derives
|
|
12
|
+
* what else may live under that dial; the answer so far is nothing else.
|
|
13
|
+
*
|
|
14
|
+
* Three refusals are built in, and each is a rule rather than a taste:
|
|
15
|
+
*
|
|
16
|
+
* A COARSE POINTER gets nothing. A finger has no hover, and a `pointermove` from one leaves
|
|
17
|
+
* the highlight stuck wherever the last tap was — a light with no light source.
|
|
18
|
+
*
|
|
19
|
+
* REDUCED MOTION gets nothing. This is not an infinite animation, so rule 6 does not fold
|
|
20
|
+
* it; it tracks the reader's own hand one to one. But a reader who asked for less movement
|
|
21
|
+
* did not ask for an exception, and the fixed rim is already the whole of what the pane
|
|
22
|
+
* needs to look like glass.
|
|
23
|
+
*
|
|
24
|
+
* OUTSIDE THE GLASS LOOK nothing is drawn, and that is enforced in `Glass.css` rather
|
|
25
|
+
* than here. The first version read `--surface-lens` at mount and bailed, which is the
|
|
26
|
+
* same trap `useRefraction` fell into: the look is a root attribute a reader flips long
|
|
27
|
+
* after the pane mounted, so an effect that reads it once and never runs again is an
|
|
28
|
+
* effect that is wrong for the rest of the session. The hook reports coordinates; the
|
|
29
|
+
* stylesheet decides whether a coordinate means anything.
|
|
30
|
+
*
|
|
31
|
+
* The coordinates are written with `setProperty` rather than through a `style` prop, and that
|
|
32
|
+
* is the same category the rule allows rather than an exception to it: a custom property
|
|
33
|
+
* decides no paint, so an adopter's stylesheet still wins. What it avoids is forty renders a
|
|
34
|
+
* second. `--sheet-drag` can afford to be React state because a drag is one gesture; a
|
|
35
|
+
* pointer crossing a pane is not.
|
|
36
|
+
*/
|
|
37
|
+
export declare function usePointerRim(pane: RefObject<HTMLElement | null>, on: boolean): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import "./Grid.css";
|
|
3
|
+
/**
|
|
4
|
+
* The column counts `src/foundation/grid.css` enumerates. Five and seven are not on the list
|
|
5
|
+
* because nothing in twelve divides by them, and a field that cannot be halved or thirded is
|
|
6
|
+
* a field every span has to be measured against by hand.
|
|
7
|
+
*/
|
|
8
|
+
export type GridColumns = 1 | 2 | 3 | 4 | 6 | 12;
|
|
9
|
+
export type GridProps = {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
as?: ElementType;
|
|
12
|
+
columns?: GridColumns;
|
|
13
|
+
className?: string;
|
|
14
|
+
[key: `data-${string}`]: unknown;
|
|
15
|
+
[key: `aria-${string}`]: unknown;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* The twelve-column field, as a component.
|
|
19
|
+
*
|
|
20
|
+
* Every rule is `src/foundation/grid.css`'s `.grid`: the template, the gutter, the wider
|
|
21
|
+
* gutter from 768px, and the `min-width: 0` that keeps one long unbreakable string from
|
|
22
|
+
* pushing the other cells off the page. Nothing is restated here.
|
|
23
|
+
*
|
|
24
|
+
* There is no `gap` prop. The gutter is the grid's, not the caller's — two grids on one page
|
|
25
|
+
* with different gutters do not read as one field, and that is the whole reason a page has a
|
|
26
|
+
* gutter rather than a spacing decision per grid.
|
|
27
|
+
*/
|
|
28
|
+
export declare function Grid({ children, as: Element, columns, className, ...rest }: GridProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import "./Grid.css";
|
|
3
|
+
export type GridSpan = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
4
|
+
export type GridItemProps = {
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
as?: ElementType;
|
|
7
|
+
/** Columns spanned at every width, unless a wider one takes over below. */
|
|
8
|
+
span?: GridSpan;
|
|
9
|
+
/** From 768px up. */
|
|
10
|
+
spanMd?: GridSpan;
|
|
11
|
+
/** From 1024px up. */
|
|
12
|
+
spanLg?: GridSpan;
|
|
13
|
+
className?: string;
|
|
14
|
+
[key: `data-${string}`]: unknown;
|
|
15
|
+
[key: `aria-${string}`]: unknown;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* A cell in the twelve-column field.
|
|
19
|
+
*
|
|
20
|
+
* Mobile-first, which is the foundation's shape and not a choice made here: `span` applies at
|
|
21
|
+
* every width, `spanMd` takes over from 768px and `spanLg` from 1024px. There is no `sm` step
|
|
22
|
+
* because `span` is already the narrow-width value — and note that the field stays twelve
|
|
23
|
+
* columns all the way down, so a `span` of 4 is a quarter of 360px too. Narrow widths are
|
|
24
|
+
* `span={12}` written out, not something the grid does on its own. There is no start-column
|
|
25
|
+
* prop either, because `grid.css` enumerates spans and not positions.
|
|
26
|
+
*
|
|
27
|
+
* It renders no class of its own. The foundation selects `.grid > [data-span]`, so a cell is
|
|
28
|
+
* a cell by virtue of the attribute and its parent, and anything else the caller puts in
|
|
29
|
+
* `className` survives untouched.
|
|
30
|
+
*/
|
|
31
|
+
export declare function GridItem({ children, as: Element, span, spanMd, spanLg, className, ...rest }: GridItemProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ElementType, ReactNode } from "react";
|
|
2
|
+
import type { LayoutGap } from "../Stack";
|
|
3
|
+
import "./Group.css";
|
|
4
|
+
export type GroupAlign = "start" | "center" | "end" | "baseline" | "stretch";
|
|
5
|
+
export type GroupJustify = "start" | "center" | "end" | "between" | "around";
|
|
6
|
+
export type GroupProps = {
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
/** A step on the spacing scale. Follows the page density, because `--space-*` does. */
|
|
9
|
+
gap?: LayoutGap;
|
|
10
|
+
/** The block axis — how items of unequal height line up against each other. */
|
|
11
|
+
align?: GroupAlign;
|
|
12
|
+
/** The inline axis — how the free space is distributed. */
|
|
13
|
+
justify?: GroupJustify;
|
|
14
|
+
/**
|
|
15
|
+
* Wrapping is on by default, and turning it off is a decision about what happens when the
|
|
16
|
+
* row runs out of room: it overflows.
|
|
17
|
+
*/
|
|
18
|
+
wrap?: boolean;
|
|
19
|
+
/** Children share the free space equally, whatever their content width. */
|
|
20
|
+
grow?: boolean;
|
|
21
|
+
as?: ElementType;
|
|
22
|
+
className?: string;
|
|
23
|
+
[key: `data-${string}`]: unknown;
|
|
24
|
+
[key: `aria-${string}`]: unknown;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* A horizontal row with one gap between its children.
|
|
28
|
+
*
|
|
29
|
+
* Wrapping is the default because the alternative fails invisibly. A row that cannot wrap
|
|
30
|
+
* does not report that it ran out of room — it draws past its container, and the first thing
|
|
31
|
+
* anyone hears about it is a page that scrolls sideways on a phone. Wrapping is the outcome
|
|
32
|
+
* that stays legible at every width, so it is what a caller gets without asking.
|
|
33
|
+
*
|
|
34
|
+
* `align` defaults to `center` rather than `stretch`: a row is usually a button beside a
|
|
35
|
+
* label beside a badge, and stretching a badge to the height of a button is never what was
|
|
36
|
+
* meant.
|
|
37
|
+
*/
|
|
38
|
+
export declare function Group({ children, gap, align, justify, wrap, grow, as: Element, className, ...rest }: GroupProps): import("react").JSX.Element;
|