@openreachtech/furo-vue 1.3.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 +9 -0
- package/README.ja.md +334 -0
- package/README.md +333 -0
- package/index.js +11 -0
- package/lib/assets/css/furo/0010.variables-palette-color-scale.css +298 -0
- package/lib/assets/css/furo/0020.variables-z-index.css +10 -0
- package/lib/assets/css/furo/0030.variables-semantic-color.css +178 -0
- package/lib/assets/css/furo/0035.variables-semantic-dimension.css +104 -0
- package/lib/assets/css/furo/0040.variables-component-furo.css +28 -0
- package/lib/assets/css/furo/0050.furo-editor-content.css +22 -0
- package/lib/assets/css/furo.css +15 -0
- package/lib/components/atoms/FuroAvatar/FuroAvatar.vue +135 -0
- package/lib/components/atoms/FuroAvatar/FuroAvatarContext.js +147 -0
- package/lib/components/atoms/FuroBadge/FuroBadge.vue +240 -0
- package/lib/components/atoms/FuroBadge/FuroBadgeContext.js +298 -0
- package/lib/components/atoms/FuroButton/ButtonEmitPayload.js +44 -0
- package/lib/components/atoms/FuroButton/FuroButton.vue +301 -0
- package/lib/components/atoms/FuroButton/FuroButtonContext.js +328 -0
- package/lib/components/atoms/FuroCheckbox/CheckboxEmitPayload.js +106 -0
- package/lib/components/atoms/FuroCheckbox/FuroCheckbox.vue +173 -0
- package/lib/components/atoms/FuroCheckbox/FuroCheckboxContext.js +682 -0
- package/lib/components/atoms/FuroEmailField/EmailFieldEmitPayload.js +74 -0
- package/lib/components/atoms/FuroEmailField/FuroEmailField.vue +119 -0
- package/lib/components/atoms/FuroEmailField/FuroEmailFieldContext.js +311 -0
- package/lib/components/atoms/FuroFileField/FileFieldEmitPayload.js +80 -0
- package/lib/components/atoms/FuroFileField/FuroFileField.vue +128 -0
- package/lib/components/atoms/FuroFileField/FuroFileFieldContext.js +195 -0
- package/lib/components/atoms/FuroIcon/FuroIcon.vue +74 -0
- package/lib/components/atoms/FuroIcon/FuroIconContext.js +293 -0
- package/lib/components/atoms/FuroIcon/FuroIconRegistry.js +617 -0
- package/lib/components/atoms/FuroIcon/FuroIconifyRendererContext.js +101 -0
- package/lib/components/atoms/FuroIcon/furoIconData.js +164 -0
- package/lib/components/atoms/FuroIcon/iconRenderers.js +62 -0
- package/lib/components/atoms/FuroIcon/icons.js +7 -0
- package/lib/components/atoms/FuroNumberField/FuroNumberField.vue +213 -0
- package/lib/components/atoms/FuroNumberField/FuroNumberFieldContext.js +442 -0
- package/lib/components/atoms/FuroNumberField/NumberFieldEmitPayload.js +162 -0
- package/lib/components/atoms/FuroPasswordField/FuroPasswordField.vue +119 -0
- package/lib/components/atoms/FuroPasswordField/FuroPasswordFieldContext.js +311 -0
- package/lib/components/atoms/FuroPasswordField/PasswordFieldEmitPayload.js +74 -0
- package/lib/components/atoms/FuroRadio/FuroRadio.vue +193 -0
- package/lib/components/atoms/FuroRadio/FuroRadioContext.js +557 -0
- package/lib/components/atoms/FuroRadio/RadioEmitPayload.js +72 -0
- package/lib/components/atoms/FuroSwitch/FuroSwitch.vue +165 -0
- package/lib/components/atoms/FuroSwitch/FuroSwitchContext.js +440 -0
- package/lib/components/atoms/FuroSwitch/SwitchEmitPayload.js +86 -0
- package/lib/components/atoms/FuroTextField/FuroTextField.vue +119 -0
- package/lib/components/atoms/FuroTextField/FuroTextFieldContext.js +311 -0
- package/lib/components/atoms/FuroTextField/TextFieldEmitPayload.js +83 -0
- package/lib/components/atoms/FuroTextarea/FuroTextarea.vue +121 -0
- package/lib/components/atoms/FuroTextarea/FuroTextareaContext.js +322 -0
- package/lib/components/atoms/FuroTextarea/TextareaEmitPayload.js +83 -0
- package/lib/components/atoms/FuroToggle/FuroToggle.vue +172 -0
- package/lib/components/atoms/FuroToggle/FuroToggleContext.js +410 -0
- package/lib/components/atoms/FuroToggle/ToggleEmitPayload.js +86 -0
- package/lib/components/molecules/FuroAccordion/AccordionEmitPayload.js +80 -0
- package/lib/components/molecules/FuroAccordion/FuroAccordion.vue +219 -0
- package/lib/components/molecules/FuroAccordion/FuroAccordionContext.js +547 -0
- package/lib/components/molecules/FuroAttachment/FuroAttachment.vue +376 -0
- package/lib/components/molecules/FuroAttachment/FuroAttachmentContext.js +628 -0
- package/lib/components/molecules/FuroAutocompleteField/AutocompleteEmitPayload.js +225 -0
- package/lib/components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue +669 -0
- package/lib/components/molecules/FuroAutocompleteField/FuroAutocompleteFieldContext.js +1525 -0
- package/lib/components/molecules/FuroAvatarGroup/FuroAvatarGroup.vue +126 -0
- package/lib/components/molecules/FuroAvatarGroup/FuroAvatarGroupContext.js +245 -0
- package/lib/components/molecules/FuroBreadcrumb/FuroBreadcrumb.vue +219 -0
- package/lib/components/molecules/FuroBreadcrumb/FuroBreadcrumbContext.js +257 -0
- package/lib/components/molecules/FuroCollapsible/CollapsibleEmitPayload.js +69 -0
- package/lib/components/molecules/FuroCollapsible/FuroCollapsible.vue +177 -0
- package/lib/components/molecules/FuroCollapsible/FuroCollapsibleContext.js +389 -0
- package/lib/components/molecules/FuroControlBlock/FuroControlBlock.vue +149 -0
- package/lib/components/molecules/FuroControlBlock/FuroControlBlockContext.js +81 -0
- package/lib/components/molecules/FuroDatePicker/DatePickerEmitPayload.js +74 -0
- package/lib/components/molecules/FuroDatePicker/FuroDatePicker.vue +661 -0
- package/lib/components/molecules/FuroDatePicker/FuroDatePickerContext.js +1038 -0
- package/lib/components/molecules/FuroDateTimePicker/DateTimePickerEmitPayload.js +96 -0
- package/lib/components/molecules/FuroDateTimePicker/FuroDateTimePicker.vue +153 -0
- package/lib/components/molecules/FuroDateTimePicker/FuroDateTimePickerContext.js +840 -0
- package/lib/components/molecules/FuroDropdownMenu/DropdownMenuOptionSelectEmitPayload.js +100 -0
- package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenu.vue +348 -0
- package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenuContext.js +714 -0
- package/lib/components/molecules/FuroDropdownMenu/FuroDropdownMenuOptionRows.vue +222 -0
- package/lib/components/molecules/FuroEditableField/EditableEmitPayload.js +89 -0
- package/lib/components/molecules/FuroEditableField/FuroEditableField.vue +314 -0
- package/lib/components/molecules/FuroEditableField/FuroEditableFieldContext.js +1018 -0
- package/lib/components/molecules/FuroEditableField/processors/EditorCollisionProcessor.js +236 -0
- package/lib/components/molecules/FuroEditableField/processors/ObjectProcessor.js +101 -0
- package/lib/components/molecules/FuroEmptyState/FuroEmptyState.vue +124 -0
- package/lib/components/molecules/FuroEmptyState/FuroEmptyStateContext.js +42 -0
- package/lib/components/molecules/FuroErrorState/FuroErrorState.vue +125 -0
- package/lib/components/molecules/FuroErrorState/FuroErrorStateContext.js +42 -0
- package/lib/components/molecules/FuroPagination/FuroPagination.vue +246 -0
- package/lib/components/molecules/FuroPagination/FuroPaginationContext.js +489 -0
- package/lib/components/molecules/FuroPopover/FuroPopover.vue +171 -0
- package/lib/components/molecules/FuroPopover/FuroPopoverContext.js +279 -0
- package/lib/components/molecules/FuroScrollArea/FuroScrollArea.vue +181 -0
- package/lib/components/molecules/FuroScrollArea/FuroScrollAreaContext.js +149 -0
- package/lib/components/molecules/FuroSearchField/FuroSearchField.vue +155 -0
- package/lib/components/molecules/FuroSearchField/FuroSearchFieldContext.js +231 -0
- package/lib/components/molecules/FuroSectionHeader/FuroSectionHeader.vue +140 -0
- package/lib/components/molecules/FuroSectionHeader/FuroSectionHeaderContext.js +204 -0
- package/lib/components/molecules/FuroSelect/FuroSelect.vue +474 -0
- package/lib/components/molecules/FuroSelect/FuroSelectContext.js +743 -0
- package/lib/components/molecules/FuroSelect/SelectEmitPayload.js +181 -0
- package/lib/components/molecules/FuroSeparator/FuroSeparator.vue +88 -0
- package/lib/components/molecules/FuroSeparator/FuroSeparatorContext.js +40 -0
- package/lib/components/molecules/FuroSkeleton/FuroSkeleton.vue +101 -0
- package/lib/components/molecules/FuroSkeleton/FuroSkeletonContext.js +82 -0
- package/lib/components/molecules/FuroSplitter/FuroSplitter.vue +237 -0
- package/lib/components/molecules/FuroSplitter/FuroSplitterContext.js +429 -0
- package/lib/components/molecules/FuroSplitter/SplitterEmitPayload.js +69 -0
- package/lib/components/molecules/FuroTimeField/FuroTimeField.vue +251 -0
- package/lib/components/molecules/FuroTimeField/FuroTimeFieldContext.js +1138 -0
- package/lib/components/molecules/FuroTimeField/TimeFieldEmitPayload.js +74 -0
- package/lib/components/molecules/FuroToggleGroup/FuroToggleGroup.vue +211 -0
- package/lib/components/molecules/FuroToggleGroup/FuroToggleGroupContext.js +551 -0
- package/lib/components/molecules/FuroToggleGroup/ToggleGroupEmitPayload.js +80 -0
- package/lib/components/molecules/FuroToolBar/FuroToolBar.vue +91 -0
- package/lib/components/molecules/FuroToolBar/FuroToolBarContext.js +75 -0
- package/lib/components/molecules/FuroTooltip/FuroTooltip.vue +183 -0
- package/lib/components/molecules/FuroTooltip/FuroTooltipContext.js +290 -0
- package/lib/components/organisms/FuroAlertDialog/FuroAlertDialog.vue +324 -0
- package/lib/components/organisms/FuroAlertDialog/FuroAlertDialogContext.js +608 -0
- package/lib/components/organisms/FuroDialog/FuroDialog.vue +362 -0
- package/lib/components/organisms/FuroDialog/FuroDialogContext.js +535 -0
- package/lib/components/organisms/FuroDrawer/FuroDrawer.vue +618 -0
- package/lib/components/organisms/FuroDrawer/FuroDrawerContext.js +676 -0
- package/lib/components/organisms/FuroEditor/FuroEditor.vue +613 -0
- package/lib/components/organisms/FuroEditor/FuroEditorCommandContext.js +420 -0
- package/lib/components/organisms/FuroEditor/FuroEditorContext.js +2048 -0
- package/lib/components/organisms/FuroEditor/FuroEditorMentionMenu.vue +120 -0
- package/lib/components/organisms/FuroEditor/FuroEditorMentionMenuContext.js +261 -0
- package/lib/components/organisms/FuroEditor/PreserveNewlinesPasteExtension.js +267 -0
- package/lib/components/organisms/FuroEditor/build-editor-extensions.js +97 -0
- package/lib/components/organisms/FuroEditor/mention-suggestion.js +320 -0
- package/lib/components/organisms/FuroEditor/paste-link-segments.js +124 -0
- package/lib/components/organisms/FuroSidebar/FuroSidebar.vue +473 -0
- package/lib/components/organisms/FuroSidebar/FuroSidebarContext.js +1014 -0
- package/lib/components/organisms/FuroStepper/FuroStepper.vue +345 -0
- package/lib/components/organisms/FuroStepper/FuroStepperContext.js +481 -0
- package/lib/components/organisms/FuroTable/FuroTable.vue +707 -0
- package/lib/components/organisms/FuroTable/FuroTableContext.js +1965 -0
- package/lib/components/organisms/FuroTable/FuroTableRowItemContext.js +111 -0
- package/lib/components/organisms/FuroTabs/FuroTabs.vue +403 -0
- package/lib/components/organisms/FuroTabs/FuroTabsContext.js +846 -0
- package/lib/components/organisms/FuroToast/FuroToast.vue +624 -0
- package/lib/components/organisms/FuroToast/FuroToastContext.js +1089 -0
- package/lib/components/organisms/FuroToast/FuroToaster.vue +44 -0
- package/lib/components/organisms/FuroToast/FuroToasterContext.js +113 -0
- package/lib/components/organisms/FuroToast/ToastQueue.js +325 -0
- package/lib/components/organisms/FuroToast/toast.js +64 -0
- package/lib/contexts/BaseFuroContext.js +318 -0
- package/lib/contexts/BaseFuroContextAccessor.js +47 -0
- package/lib/emit-payload/BaseEmitPayload.js +91 -0
- package/lib/index.components.js +61 -0
- package/lib/index.core.js +18 -0
- package/lib/tools/TimerClerk.js +75 -0
- package/nuxt/index.js +109 -0
- package/nuxt/runtime/furo-icon-renderer.js +24 -0
- package/package.json +137 -0
- package/public/furo-vue/components.json +4619 -0
- package/public/furo-vue/llms.txt +66 -0
- package/types/furo-nuxt.d.ts +48 -0
- package/types/generated/components/atoms/FuroAvatar/FuroAvatar.vue.d.ts +74 -0
- package/types/generated/components/atoms/FuroAvatar/FuroAvatarContext.d.ts +82 -0
- package/types/generated/components/atoms/FuroBadge/FuroBadge.vue.d.ts +12 -0
- package/types/generated/components/atoms/FuroBadge/FuroBadgeContext.d.ts +160 -0
- package/types/generated/components/atoms/FuroButton/ButtonEmitPayload.d.ts +19 -0
- package/types/generated/components/atoms/FuroButton/FuroButton.vue.d.ts +53 -0
- package/types/generated/components/atoms/FuroButton/FuroButtonContext.d.ts +156 -0
- package/types/generated/components/atoms/FuroCheckbox/CheckboxEmitPayload.d.ts +55 -0
- package/types/generated/components/atoms/FuroCheckbox/FuroCheckbox.vue.d.ts +87 -0
- package/types/generated/components/atoms/FuroCheckbox/FuroCheckboxContext.d.ts +342 -0
- package/types/generated/components/atoms/FuroEmailField/EmailFieldEmitPayload.d.ts +46 -0
- package/types/generated/components/atoms/FuroEmailField/FuroEmailField.vue.d.ts +458 -0
- package/types/generated/components/atoms/FuroEmailField/FuroEmailFieldContext.d.ts +161 -0
- package/types/generated/components/atoms/FuroFileField/FileFieldEmitPayload.d.ts +46 -0
- package/types/generated/components/atoms/FuroFileField/FuroFileField.vue.d.ts +454 -0
- package/types/generated/components/atoms/FuroFileField/FuroFileFieldContext.d.ts +109 -0
- package/types/generated/components/atoms/FuroIcon/FuroIcon.vue.d.ts +14 -0
- package/types/generated/components/atoms/FuroIcon/FuroIconContext.d.ts +152 -0
- package/types/generated/components/atoms/FuroIcon/FuroIconRegistry.d.ts +457 -0
- package/types/generated/components/atoms/FuroIcon/FuroIconifyRendererContext.d.ts +65 -0
- package/types/generated/components/atoms/FuroIcon/furoIconData.d.ts +154 -0
- package/types/generated/components/atoms/FuroIcon/iconRenderers.d.ts +6 -0
- package/types/generated/components/atoms/FuroIcon/icons.d.ts +6 -0
- package/types/generated/components/atoms/FuroNumberField/FuroNumberField.vue.d.ts +500 -0
- package/types/generated/components/atoms/FuroNumberField/FuroNumberFieldContext.d.ts +243 -0
- package/types/generated/components/atoms/FuroNumberField/NumberFieldEmitPayload.d.ts +74 -0
- package/types/generated/components/atoms/FuroPasswordField/FuroPasswordField.vue.d.ts +458 -0
- package/types/generated/components/atoms/FuroPasswordField/FuroPasswordFieldContext.d.ts +161 -0
- package/types/generated/components/atoms/FuroPasswordField/PasswordFieldEmitPayload.d.ts +46 -0
- package/types/generated/components/atoms/FuroRadio/FuroRadio.vue.d.ts +96 -0
- package/types/generated/components/atoms/FuroRadio/FuroRadioContext.d.ts +290 -0
- package/types/generated/components/atoms/FuroRadio/RadioEmitPayload.d.ts +39 -0
- package/types/generated/components/atoms/FuroSwitch/FuroSwitch.vue.d.ts +74 -0
- package/types/generated/components/atoms/FuroSwitch/FuroSwitchContext.d.ts +218 -0
- package/types/generated/components/atoms/FuroSwitch/SwitchEmitPayload.d.ts +42 -0
- package/types/generated/components/atoms/FuroTextField/FuroTextField.vue.d.ts +458 -0
- package/types/generated/components/atoms/FuroTextField/FuroTextFieldContext.d.ts +161 -0
- package/types/generated/components/atoms/FuroTextField/TextFieldEmitPayload.d.ts +52 -0
- package/types/generated/components/atoms/FuroTextarea/FuroTextarea.vue.d.ts +422 -0
- package/types/generated/components/atoms/FuroTextarea/FuroTextareaContext.d.ts +161 -0
- package/types/generated/components/atoms/FuroTextarea/TextareaEmitPayload.d.ts +52 -0
- package/types/generated/components/atoms/FuroToggle/FuroToggle.vue.d.ts +51 -0
- package/types/generated/components/atoms/FuroToggle/FuroToggleContext.d.ts +191 -0
- package/types/generated/components/atoms/FuroToggle/ToggleEmitPayload.d.ts +42 -0
- package/types/generated/components/molecules/FuroAccordion/AccordionEmitPayload.d.ts +41 -0
- package/types/generated/components/molecules/FuroAccordion/FuroAccordion.vue.d.ts +133 -0
- package/types/generated/components/molecules/FuroAccordion/FuroAccordionContext.d.ts +279 -0
- package/types/generated/components/molecules/FuroAttachment/FuroAttachment.vue.d.ts +79 -0
- package/types/generated/components/molecules/FuroAttachment/FuroAttachmentContext.d.ts +363 -0
- package/types/generated/components/molecules/FuroAutocompleteField/AutocompleteEmitPayload.d.ts +129 -0
- package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteField.vue.d.ts +751 -0
- package/types/generated/components/molecules/FuroAutocompleteField/FuroAutocompleteFieldContext.d.ts +722 -0
- package/types/generated/components/molecules/FuroAvatarGroup/FuroAvatarGroup.vue.d.ts +84 -0
- package/types/generated/components/molecules/FuroAvatarGroup/FuroAvatarGroupContext.d.ts +150 -0
- package/types/generated/components/molecules/FuroBreadcrumb/FuroBreadcrumb.vue.d.ts +24 -0
- package/types/generated/components/molecules/FuroBreadcrumb/FuroBreadcrumbContext.d.ts +152 -0
- package/types/generated/components/molecules/FuroCollapsible/CollapsibleEmitPayload.d.ts +36 -0
- package/types/generated/components/molecules/FuroCollapsible/FuroCollapsible.vue.d.ts +98 -0
- package/types/generated/components/molecules/FuroCollapsible/FuroCollapsibleContext.d.ts +191 -0
- package/types/generated/components/molecules/FuroControlBlock/FuroControlBlock.vue.d.ts +30 -0
- package/types/generated/components/molecules/FuroControlBlock/FuroControlBlockContext.d.ts +57 -0
- package/types/generated/components/molecules/FuroDatePicker/DatePickerEmitPayload.d.ts +41 -0
- package/types/generated/components/molecules/FuroDatePicker/FuroDatePicker.vue.d.ts +456 -0
- package/types/generated/components/molecules/FuroDatePicker/FuroDatePickerContext.d.ts +516 -0
- package/types/generated/components/molecules/FuroDateTimePicker/DateTimePickerEmitPayload.d.ts +55 -0
- package/types/generated/components/molecules/FuroDateTimePicker/FuroDateTimePicker.vue.d.ts +1365 -0
- package/types/generated/components/molecules/FuroDateTimePicker/FuroDateTimePickerContext.d.ts +435 -0
- package/types/generated/components/molecules/FuroDropdownMenu/DropdownMenuOptionSelectEmitPayload.d.ts +48 -0
- package/types/generated/components/molecules/FuroDropdownMenu/FuroDropdownMenu.vue.d.ts +773 -0
- package/types/generated/components/molecules/FuroDropdownMenu/FuroDropdownMenuContext.d.ts +380 -0
- package/types/generated/components/molecules/FuroDropdownMenu/FuroDropdownMenuOptionRows.vue.d.ts +261 -0
- package/types/generated/components/molecules/FuroEditableField/EditableEmitPayload.d.ts +39 -0
- package/types/generated/components/molecules/FuroEditableField/FuroEditableField.vue.d.ts +646 -0
- package/types/generated/components/molecules/FuroEditableField/FuroEditableFieldContext.d.ts +477 -0
- package/types/generated/components/molecules/FuroEditableField/processors/EditorCollisionProcessor.d.ts +121 -0
- package/types/generated/components/molecules/FuroEditableField/processors/ObjectProcessor.d.ts +45 -0
- package/types/generated/components/molecules/FuroEmptyState/FuroEmptyState.vue.d.ts +21 -0
- package/types/generated/components/molecules/FuroEmptyState/FuroEmptyStateContext.d.ts +32 -0
- package/types/generated/components/molecules/FuroErrorState/FuroErrorState.vue.d.ts +21 -0
- package/types/generated/components/molecules/FuroErrorState/FuroErrorStateContext.d.ts +32 -0
- package/types/generated/components/molecules/FuroPagination/FuroPagination.vue.d.ts +534 -0
- package/types/generated/components/molecules/FuroPagination/FuroPaginationContext.d.ts +271 -0
- package/types/generated/components/molecules/FuroPopover/FuroPopover.vue.d.ts +513 -0
- package/types/generated/components/molecules/FuroPopover/FuroPopoverContext.d.ts +160 -0
- package/types/generated/components/molecules/FuroScrollArea/FuroScrollArea.vue.d.ts +124 -0
- package/types/generated/components/molecules/FuroScrollArea/FuroScrollAreaContext.d.ts +86 -0
- package/types/generated/components/molecules/FuroSearchField/FuroSearchField.vue.d.ts +487 -0
- package/types/generated/components/molecules/FuroSearchField/FuroSearchFieldContext.d.ts +137 -0
- package/types/generated/components/molecules/FuroSectionHeader/FuroSectionHeader.vue.d.ts +49 -0
- package/types/generated/components/molecules/FuroSectionHeader/FuroSectionHeaderContext.d.ts +121 -0
- package/types/generated/components/molecules/FuroSelect/FuroSelect.vue.d.ts +719 -0
- package/types/generated/components/molecules/FuroSelect/FuroSelectContext.d.ts +402 -0
- package/types/generated/components/molecules/FuroSelect/SelectEmitPayload.d.ts +102 -0
- package/types/generated/components/molecules/FuroSeparator/FuroSeparator.vue.d.ts +39 -0
- package/types/generated/components/molecules/FuroSeparator/FuroSeparatorContext.d.ts +31 -0
- package/types/generated/components/molecules/FuroSkeleton/FuroSkeleton.vue.d.ts +27 -0
- package/types/generated/components/molecules/FuroSkeleton/FuroSkeletonContext.d.ts +61 -0
- package/types/generated/components/molecules/FuroSplitter/FuroSplitter.vue.d.ts +139 -0
- package/types/generated/components/molecules/FuroSplitter/FuroSplitterContext.d.ts +226 -0
- package/types/generated/components/molecules/FuroSplitter/SplitterEmitPayload.d.ts +41 -0
- package/types/generated/components/molecules/FuroTimeField/FuroTimeField.vue.d.ts +498 -0
- package/types/generated/components/molecules/FuroTimeField/FuroTimeFieldContext.d.ts +555 -0
- package/types/generated/components/molecules/FuroTimeField/TimeFieldEmitPayload.d.ts +41 -0
- package/types/generated/components/molecules/FuroToggleGroup/FuroToggleGroup.vue.d.ts +70 -0
- package/types/generated/components/molecules/FuroToggleGroup/FuroToggleGroupContext.d.ts +270 -0
- package/types/generated/components/molecules/FuroToggleGroup/ToggleGroupEmitPayload.d.ts +41 -0
- package/types/generated/components/molecules/FuroToolBar/FuroToolBar.vue.d.ts +30 -0
- package/types/generated/components/molecules/FuroToolBar/FuroToolBarContext.d.ts +48 -0
- package/types/generated/components/molecules/FuroTooltip/FuroTooltip.vue.d.ts +524 -0
- package/types/generated/components/molecules/FuroTooltip/FuroTooltipContext.d.ts +166 -0
- package/types/generated/components/organisms/FuroAlertDialog/FuroAlertDialog.vue.d.ts +651 -0
- package/types/generated/components/organisms/FuroAlertDialog/FuroAlertDialogContext.d.ts +299 -0
- package/types/generated/components/organisms/FuroDialog/FuroDialog.vue.d.ts +583 -0
- package/types/generated/components/organisms/FuroDialog/FuroDialogContext.d.ts +264 -0
- package/types/generated/components/organisms/FuroDrawer/FuroDrawer.vue.d.ts +635 -0
- package/types/generated/components/organisms/FuroDrawer/FuroDrawerContext.d.ts +347 -0
- package/types/generated/components/organisms/FuroEditor/FuroEditor.vue.d.ts +2487 -0
- package/types/generated/components/organisms/FuroEditor/FuroEditorCommandContext.d.ts +192 -0
- package/types/generated/components/organisms/FuroEditor/FuroEditorContext.d.ts +904 -0
- package/types/generated/components/organisms/FuroEditor/FuroEditorMentionMenu.vue.d.ts +43 -0
- package/types/generated/components/organisms/FuroEditor/FuroEditorMentionMenuContext.d.ts +159 -0
- package/types/generated/components/organisms/FuroEditor/PreserveNewlinesPasteExtension.d.ts +43 -0
- package/types/generated/components/organisms/FuroEditor/build-editor-extensions.d.ts +22 -0
- package/types/generated/components/organisms/FuroEditor/mention-suggestion.d.ts +25 -0
- package/types/generated/components/organisms/FuroEditor/paste-link-segments.d.ts +31 -0
- package/types/generated/components/organisms/FuroSidebar/FuroSidebar.vue.d.ts +898 -0
- package/types/generated/components/organisms/FuroSidebar/FuroSidebarContext.d.ts +596 -0
- package/types/generated/components/organisms/FuroStepper/FuroStepper.vue.d.ts +589 -0
- package/types/generated/components/organisms/FuroStepper/FuroStepperContext.d.ts +266 -0
- package/types/generated/components/organisms/FuroTable/FuroTable.vue.d.ts +528 -0
- package/types/generated/components/organisms/FuroTable/FuroTableContext.d.ts +1035 -0
- package/types/generated/components/organisms/FuroTable/FuroTableRowItemContext.d.ts +62 -0
- package/types/generated/components/organisms/FuroTabs/FuroTabs.vue.d.ts +515 -0
- package/types/generated/components/organisms/FuroTabs/FuroTabsContext.d.ts +438 -0
- package/types/generated/components/organisms/FuroToast/FuroToast.vue.d.ts +725 -0
- package/types/generated/components/organisms/FuroToast/FuroToastContext.d.ts +543 -0
- package/types/generated/components/organisms/FuroToast/FuroToaster.vue.d.ts +729 -0
- package/types/generated/components/organisms/FuroToast/FuroToasterContext.d.ts +62 -0
- package/types/generated/components/organisms/FuroToast/ToastQueue.d.ts +201 -0
- package/types/generated/components/organisms/FuroToast/toast.d.ts +23 -0
- package/types/generated/contexts/BaseFuroContext.d.ts +207 -0
- package/types/generated/contexts/BaseFuroContextAccessor.d.ts +28 -0
- package/types/generated/emit-payload/BaseEmitPayload.d.ts +62 -0
- package/types/generated/index.components.d.ts +50 -0
- package/types/generated/index.core.d.ts +6 -0
- package/types/generated/tools/TimerClerk.d.ts +50 -0
- package/types/index.d.ts +12 -0
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import {
|
|
3
|
+
defineComponent,
|
|
4
|
+
} from 'vue'
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
Toast as RekaToast,
|
|
8
|
+
} from 'reka-ui/namespaced'
|
|
9
|
+
|
|
10
|
+
import FuroIcon from '../../atoms/FuroIcon/FuroIcon.vue'
|
|
11
|
+
import FuroToastContext from './FuroToastContext.js'
|
|
12
|
+
|
|
13
|
+
export default defineComponent({
|
|
14
|
+
name: 'FuroToast',
|
|
15
|
+
|
|
16
|
+
components: {
|
|
17
|
+
FuroIcon,
|
|
18
|
+
ToastProvider: RekaToast['Provider'],
|
|
19
|
+
ToastViewport: RekaToast['Viewport'],
|
|
20
|
+
ToastRoot: RekaToast['Root'],
|
|
21
|
+
ToastTitle: RekaToast['Title'],
|
|
22
|
+
ToastDescription: RekaToast['Description'],
|
|
23
|
+
ToastClose: RekaToast['Close'],
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
inheritAttrs: false,
|
|
27
|
+
|
|
28
|
+
props: {
|
|
29
|
+
parcel: {
|
|
30
|
+
/** @type {import('vue').PropType<import('./FuroToastContext.js').Props['parcel']>} */
|
|
31
|
+
type: [
|
|
32
|
+
Object,
|
|
33
|
+
null,
|
|
34
|
+
],
|
|
35
|
+
default: null,
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
slots: /** @type {import('./FuroToastContext.js').FuroToastSlots} */ (Object),
|
|
40
|
+
emits: FuroToastContext.EMIT_EVENT_HASH,
|
|
41
|
+
|
|
42
|
+
/** @type {import('./FuroToastContext.js').FuroToastSetup} */
|
|
43
|
+
setup (
|
|
44
|
+
props,
|
|
45
|
+
componentContext
|
|
46
|
+
) {
|
|
47
|
+
const context = FuroToastContext.create({
|
|
48
|
+
props,
|
|
49
|
+
componentContext,
|
|
50
|
+
})
|
|
51
|
+
.setupComponent()
|
|
52
|
+
|
|
53
|
+
return {
|
|
54
|
+
context,
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
})
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<template>
|
|
61
|
+
<ToastProvider v-bind="context.extractProviderAttributes()">
|
|
62
|
+
<ToastRoot
|
|
63
|
+
v-for="toast in context.createToastViewModels()"
|
|
64
|
+
:key="toast.key"
|
|
65
|
+
:class="context.extractToastClassNames({
|
|
66
|
+
type: toast.type,
|
|
67
|
+
})"
|
|
68
|
+
:style="context.extractToastStyle({
|
|
69
|
+
viewModel: toast,
|
|
70
|
+
})"
|
|
71
|
+
:data-front="toast.isFront"
|
|
72
|
+
:data-expanded="context.isExpanded()"
|
|
73
|
+
:data-mounted="toast.isMounted"
|
|
74
|
+
v-bind="context.extractToastRootAttributes({
|
|
75
|
+
toast,
|
|
76
|
+
})"
|
|
77
|
+
@update:open="context.onToastOpenChange({
|
|
78
|
+
key: toast.key,
|
|
79
|
+
isOpen: $event,
|
|
80
|
+
})"
|
|
81
|
+
>
|
|
82
|
+
<div
|
|
83
|
+
:ref="context.getToastElementRef({
|
|
84
|
+
key: toast.key,
|
|
85
|
+
})"
|
|
86
|
+
class="inner"
|
|
87
|
+
>
|
|
88
|
+
<slot
|
|
89
|
+
name="icon"
|
|
90
|
+
:toast="toast"
|
|
91
|
+
>
|
|
92
|
+
<FuroIcon
|
|
93
|
+
class="icon"
|
|
94
|
+
:name="context.extractToastIconName({
|
|
95
|
+
type: toast.type,
|
|
96
|
+
})"
|
|
97
|
+
aria-hidden="true"
|
|
98
|
+
/>
|
|
99
|
+
</slot>
|
|
100
|
+
|
|
101
|
+
<div class="content">
|
|
102
|
+
<ToastTitle
|
|
103
|
+
v-if="context.shouldRenderToastTitle({
|
|
104
|
+
toast,
|
|
105
|
+
})"
|
|
106
|
+
class="title"
|
|
107
|
+
>
|
|
108
|
+
<slot
|
|
109
|
+
name="title"
|
|
110
|
+
:toast="toast"
|
|
111
|
+
>
|
|
112
|
+
{{ toast.title }}
|
|
113
|
+
</slot>
|
|
114
|
+
</ToastTitle>
|
|
115
|
+
|
|
116
|
+
<ToastDescription
|
|
117
|
+
v-if="context.shouldRenderToastDescription({
|
|
118
|
+
toast,
|
|
119
|
+
})"
|
|
120
|
+
class="description"
|
|
121
|
+
>
|
|
122
|
+
<slot
|
|
123
|
+
name="description"
|
|
124
|
+
:toast="toast"
|
|
125
|
+
>
|
|
126
|
+
{{ toast.description }}
|
|
127
|
+
</slot>
|
|
128
|
+
</ToastDescription>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<div
|
|
132
|
+
v-if="toast.hasActions"
|
|
133
|
+
class="actions"
|
|
134
|
+
>
|
|
135
|
+
<button
|
|
136
|
+
v-for="action in toast.actions"
|
|
137
|
+
:key="action.actionKey"
|
|
138
|
+
type="button"
|
|
139
|
+
class="action"
|
|
140
|
+
:disabled="toast.actionPending"
|
|
141
|
+
@click="context.onActionClick({
|
|
142
|
+
key: toast.key,
|
|
143
|
+
actionKey: action.actionKey,
|
|
144
|
+
})"
|
|
145
|
+
>
|
|
146
|
+
<slot
|
|
147
|
+
v-if="toast.actionPending"
|
|
148
|
+
name="action-spinner"
|
|
149
|
+
:toast="toast"
|
|
150
|
+
:action="action"
|
|
151
|
+
>
|
|
152
|
+
<FuroIcon
|
|
153
|
+
class="action-spinner"
|
|
154
|
+
name="ph:circle-notch"
|
|
155
|
+
aria-hidden="true"
|
|
156
|
+
/>
|
|
157
|
+
</slot>
|
|
158
|
+
|
|
159
|
+
{{ action.label }}
|
|
160
|
+
</button>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
<ToastClose
|
|
165
|
+
class="built-in-close"
|
|
166
|
+
:aria-label="toast.closeText"
|
|
167
|
+
>
|
|
168
|
+
<slot
|
|
169
|
+
name="close-icon"
|
|
170
|
+
:toast="toast"
|
|
171
|
+
>
|
|
172
|
+
<FuroIcon
|
|
173
|
+
name="ph:x"
|
|
174
|
+
aria-hidden="true"
|
|
175
|
+
/>
|
|
176
|
+
</slot>
|
|
177
|
+
</ToastClose>
|
|
178
|
+
</ToastRoot>
|
|
179
|
+
|
|
180
|
+
<ToastViewport
|
|
181
|
+
:class="context.extractViewportClassNames()"
|
|
182
|
+
:style="context.extractViewportStyle()"
|
|
183
|
+
v-bind="context.extractViewportAttributes()"
|
|
184
|
+
@mouseenter="context.onStackExpand()"
|
|
185
|
+
@mouseleave="context.onStackCollapse()"
|
|
186
|
+
@focusin="context.onStackExpand()"
|
|
187
|
+
@focusout="context.onStackCollapse()"
|
|
188
|
+
/>
|
|
189
|
+
</ToastProvider>
|
|
190
|
+
</template>
|
|
191
|
+
|
|
192
|
+
<style>
|
|
193
|
+
@layer furo {
|
|
194
|
+
.unit-toast-viewport {
|
|
195
|
+
position: fixed;
|
|
196
|
+
z-index: var(--value-z-index-layer-overlay);
|
|
197
|
+
|
|
198
|
+
width: var(--furo-toast-width, 22rem);
|
|
199
|
+
max-width: calc(100vw - 2rem);
|
|
200
|
+
|
|
201
|
+
margin: 0;
|
|
202
|
+
padding: 0;
|
|
203
|
+
|
|
204
|
+
list-style: none;
|
|
205
|
+
outline: none;
|
|
206
|
+
|
|
207
|
+
pointer-events: none;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.unit-toast-viewport.top-left {
|
|
211
|
+
top: 1.5rem;
|
|
212
|
+
left: 1.5rem;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
.unit-toast-viewport.top-center {
|
|
216
|
+
top: 1.5rem;
|
|
217
|
+
left: 50%;
|
|
218
|
+
|
|
219
|
+
transform: translateX(-50%);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
.unit-toast-viewport.top-right {
|
|
223
|
+
top: 1.5rem;
|
|
224
|
+
right: 1.5rem;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.unit-toast-viewport.bottom-left {
|
|
228
|
+
bottom: 1.5rem;
|
|
229
|
+
left: 1.5rem;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.unit-toast-viewport.bottom-center {
|
|
233
|
+
bottom: 1.5rem;
|
|
234
|
+
left: 50%;
|
|
235
|
+
|
|
236
|
+
transform: translateX(-50%);
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.unit-toast-viewport.bottom-right {
|
|
240
|
+
bottom: 1.5rem;
|
|
241
|
+
right: 1.5rem;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.unit-toast {
|
|
245
|
+
--furo-toast-gap: 0.875rem;
|
|
246
|
+
--furo-toast-y: translateY(calc(var(--furo-toast-lift) * -100%));
|
|
247
|
+
|
|
248
|
+
position: absolute;
|
|
249
|
+
left: 0;
|
|
250
|
+
right: 0;
|
|
251
|
+
z-index: var(--furo-toast-z, 1);
|
|
252
|
+
|
|
253
|
+
width: 100%;
|
|
254
|
+
|
|
255
|
+
border: var(--size-thinnest) solid var(--color-border);
|
|
256
|
+
border-radius: var(--size-border-radius-medium);
|
|
257
|
+
|
|
258
|
+
background-color: var(--color-popover);
|
|
259
|
+
color: var(--color-popover-foreground);
|
|
260
|
+
|
|
261
|
+
box-shadow: var(--shadow-strong);
|
|
262
|
+
font-family: var(--font-family);
|
|
263
|
+
|
|
264
|
+
opacity: 0;
|
|
265
|
+
|
|
266
|
+
transform: var(--furo-toast-y);
|
|
267
|
+
|
|
268
|
+
pointer-events: auto;
|
|
269
|
+
|
|
270
|
+
box-sizing: border-box;
|
|
271
|
+
|
|
272
|
+
transition:
|
|
273
|
+
transform 400ms cubic-bezier(0.21, 1.02, 0.73, 1),
|
|
274
|
+
opacity 400ms,
|
|
275
|
+
height 400ms;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.unit-toast-viewport.top-left .unit-toast,
|
|
279
|
+
.unit-toast-viewport.top-center .unit-toast,
|
|
280
|
+
.unit-toast-viewport.top-right .unit-toast {
|
|
281
|
+
top: 0;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.unit-toast-viewport.bottom-left .unit-toast,
|
|
285
|
+
.unit-toast-viewport.bottom-center .unit-toast,
|
|
286
|
+
.unit-toast-viewport.bottom-right .unit-toast {
|
|
287
|
+
bottom: 0;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.unit-toast[data-mounted="true"] {
|
|
291
|
+
--furo-toast-y: translateY(0);
|
|
292
|
+
|
|
293
|
+
opacity: 1;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.unit-toast[data-mounted="true"][data-front="true"] {
|
|
297
|
+
height: var(--furo-toast-initial-height);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.unit-toast[data-mounted="true"][data-expanded="false"][data-front="false"] {
|
|
301
|
+
--furo-toast-y:
|
|
302
|
+
translateY(calc(var(--furo-toast-lift) * var(--furo-toast-gap) * var(--furo-toast-toasts-before)))
|
|
303
|
+
scale(calc(1 - var(--furo-toast-toasts-before) * 0.05));
|
|
304
|
+
|
|
305
|
+
height: var(--furo-toast-front-height);
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
.unit-toast[data-mounted="true"][data-expanded="true"] {
|
|
309
|
+
--furo-toast-y: translateY(calc(var(--furo-toast-lift) * var(--furo-toast-offset)));
|
|
310
|
+
|
|
311
|
+
height: var(--furo-toast-initial-height);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.unit-toast-viewport .unit-toast[data-mounted="true"][data-state="closed"] {
|
|
315
|
+
--furo-toast-exit-transform: translateY(calc(var(--furo-toast-lift) * -100%));
|
|
316
|
+
|
|
317
|
+
animation: furo-toast-exit 220ms ease-in forwards;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
.unit-toast-viewport .unit-toast[data-mounted="true"][data-state="closed"][data-swipe="end"] {
|
|
321
|
+
animation: furo-toast-swipe-out 200ms ease-out forwards;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.unit-toast[data-expanded="true"]::after {
|
|
325
|
+
content: "";
|
|
326
|
+
|
|
327
|
+
position: absolute;
|
|
328
|
+
left: 0;
|
|
329
|
+
right: 0;
|
|
330
|
+
bottom: 100%;
|
|
331
|
+
|
|
332
|
+
height: calc(var(--furo-toast-gap) + 0.0625rem);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
.unit-toast > .inner {
|
|
336
|
+
display: flex;
|
|
337
|
+
align-items: flex-start;
|
|
338
|
+
gap: var(--size-space-compact);
|
|
339
|
+
|
|
340
|
+
padding-block: 0.875rem;
|
|
341
|
+
padding-inline: 1rem;
|
|
342
|
+
|
|
343
|
+
transition: opacity 400ms;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
.unit-toast[data-expanded="false"][data-front="false"] > .inner {
|
|
347
|
+
opacity: 0;
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
.unit-toast > .inner > .icon {
|
|
351
|
+
flex-shrink: 0;
|
|
352
|
+
|
|
353
|
+
margin-block-start: 0.0625rem;
|
|
354
|
+
|
|
355
|
+
color: var(--furo-toast-info-accent);
|
|
356
|
+
font-size: 1.125rem;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.unit-toast.success > .inner > .icon {
|
|
360
|
+
color: var(--furo-toast-success-accent);
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
.unit-toast.warning > .inner > .icon {
|
|
364
|
+
color: var(--furo-toast-warning-accent);
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
.unit-toast.error > .inner > .icon {
|
|
368
|
+
color: var(--furo-toast-error-accent);
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
.unit-toast.loading > .inner > .icon {
|
|
372
|
+
color: var(--color-muted-foreground);
|
|
373
|
+
|
|
374
|
+
animation: furo-toast-spin 800ms linear infinite;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.unit-toast.rich-colors.info {
|
|
378
|
+
border-color: var(--furo-toast-info-border);
|
|
379
|
+
|
|
380
|
+
background-color: var(--furo-toast-info-bg);
|
|
381
|
+
color: var(--furo-toast-info-foreground);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
.unit-toast.rich-colors.success {
|
|
385
|
+
border-color: var(--furo-toast-success-border);
|
|
386
|
+
|
|
387
|
+
background-color: var(--furo-toast-success-bg);
|
|
388
|
+
color: var(--furo-toast-success-foreground);
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
.unit-toast.rich-colors.warning {
|
|
392
|
+
border-color: var(--furo-toast-warning-border);
|
|
393
|
+
|
|
394
|
+
background-color: var(--furo-toast-warning-bg);
|
|
395
|
+
color: var(--furo-toast-warning-foreground);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.unit-toast.rich-colors.error {
|
|
399
|
+
border-color: var(--furo-toast-error-border);
|
|
400
|
+
|
|
401
|
+
background-color: var(--furo-toast-error-bg);
|
|
402
|
+
color: var(--furo-toast-error-foreground);
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.unit-toast.rich-colors.info > .inner > .icon {
|
|
406
|
+
color: var(--furo-toast-info-foreground);
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
.unit-toast.rich-colors.success > .inner > .icon {
|
|
410
|
+
color: var(--furo-toast-success-foreground);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.unit-toast.rich-colors.warning > .inner > .icon {
|
|
414
|
+
color: var(--furo-toast-warning-foreground);
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
.unit-toast.rich-colors.error > .inner > .icon {
|
|
418
|
+
color: var(--furo-toast-error-foreground);
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
.unit-toast.rich-colors > .inner > .content > .title {
|
|
422
|
+
color: inherit;
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
.unit-toast.rich-colors > .inner > .content > .description {
|
|
426
|
+
color: inherit;
|
|
427
|
+
|
|
428
|
+
opacity: 0.85;
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
.unit-toast.rich-colors > .inner > .actions > .action {
|
|
432
|
+
border-color: currentColor;
|
|
433
|
+
|
|
434
|
+
color: inherit;
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
.unit-toast.rich-colors > .built-in-close {
|
|
438
|
+
color: inherit;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.unit-toast > .inner > .content {
|
|
442
|
+
flex: 1 1 auto;
|
|
443
|
+
|
|
444
|
+
display: flex;
|
|
445
|
+
flex-direction: column;
|
|
446
|
+
gap: var(--size-space-3x-small);
|
|
447
|
+
|
|
448
|
+
min-width: 0;
|
|
449
|
+
|
|
450
|
+
padding-block-start: 0.0625rem;
|
|
451
|
+
padding-inline-end: 1rem;
|
|
452
|
+
}
|
|
453
|
+
|
|
454
|
+
.unit-toast > .inner > .content > .title {
|
|
455
|
+
color: var(--color-foreground);
|
|
456
|
+
font: var(--font-label-tiny);
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
.unit-toast > .inner > .content > .description {
|
|
460
|
+
color: var(--color-muted-foreground);
|
|
461
|
+
font: var(--font-body-small);
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.unit-toast > .inner > .actions {
|
|
465
|
+
flex-shrink: 0;
|
|
466
|
+
|
|
467
|
+
align-self: center;
|
|
468
|
+
|
|
469
|
+
display: flex;
|
|
470
|
+
align-items: center;
|
|
471
|
+
gap: var(--size-space-tiny);
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
.unit-toast > .inner > .actions > .action {
|
|
475
|
+
display: inline-flex;
|
|
476
|
+
align-items: center;
|
|
477
|
+
gap: var(--size-space-tiny);
|
|
478
|
+
|
|
479
|
+
border: var(--size-thinnest) solid var(--color-border);
|
|
480
|
+
border-radius: var(--size-border-radius-small);
|
|
481
|
+
|
|
482
|
+
padding-block: 0.25rem;
|
|
483
|
+
padding-inline: 0.625rem;
|
|
484
|
+
|
|
485
|
+
background-color: transparent;
|
|
486
|
+
color: var(--color-foreground);
|
|
487
|
+
font: var(--font-label-tiny);
|
|
488
|
+
|
|
489
|
+
cursor: pointer;
|
|
490
|
+
|
|
491
|
+
appearance: none;
|
|
492
|
+
|
|
493
|
+
transition-duration: var(--transition-timer);
|
|
494
|
+
transition-property: background-color, color, border-color;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
.unit-toast > .inner > .actions > .action:hover {
|
|
498
|
+
border-color: var(--color-foreground);
|
|
499
|
+
|
|
500
|
+
background-color: var(--color-accent);
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.unit-toast > .inner > .actions > .action:focus-visible {
|
|
504
|
+
outline: none;
|
|
505
|
+
box-shadow: 0 0 0 0.125rem var(--color-ring);
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
.unit-toast > .inner > .actions > .action:disabled {
|
|
509
|
+
cursor: progress;
|
|
510
|
+
opacity: 0.7;
|
|
511
|
+
}
|
|
512
|
+
|
|
513
|
+
.unit-toast > .inner > .actions > .action > .action-spinner {
|
|
514
|
+
animation: furo-toast-spin 800ms linear infinite;
|
|
515
|
+
}
|
|
516
|
+
|
|
517
|
+
.unit-toast > .built-in-close {
|
|
518
|
+
position: absolute;
|
|
519
|
+
top: 0.5rem;
|
|
520
|
+
right: 0.5rem;
|
|
521
|
+
z-index: 1;
|
|
522
|
+
|
|
523
|
+
display: inline-flex;
|
|
524
|
+
align-items: center;
|
|
525
|
+
justify-content: center;
|
|
526
|
+
|
|
527
|
+
width: 1.25rem;
|
|
528
|
+
height: 1.25rem;
|
|
529
|
+
|
|
530
|
+
border: none;
|
|
531
|
+
border-radius: var(--size-border-radius-small);
|
|
532
|
+
|
|
533
|
+
background-color: transparent;
|
|
534
|
+
color: var(--color-muted-foreground);
|
|
535
|
+
font-size: 0.875rem;
|
|
536
|
+
|
|
537
|
+
cursor: pointer;
|
|
538
|
+
opacity: 0;
|
|
539
|
+
|
|
540
|
+
appearance: none;
|
|
541
|
+
|
|
542
|
+
transition-duration: var(--transition-timer);
|
|
543
|
+
transition-property: background-color, color, opacity;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.unit-toast[data-front="true"]:hover > .built-in-close,
|
|
547
|
+
.unit-toast[data-expanded="true"]:hover > .built-in-close,
|
|
548
|
+
.unit-toast:focus-within > .built-in-close {
|
|
549
|
+
opacity: 1;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
.unit-toast[data-expanded="false"][data-front="false"] > .built-in-close {
|
|
553
|
+
opacity: 0;
|
|
554
|
+
pointer-events: none;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
.unit-toast > .built-in-close:hover {
|
|
558
|
+
background-color: var(--color-accent);
|
|
559
|
+
color: var(--color-foreground);
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
.unit-toast > .built-in-close:focus-visible {
|
|
563
|
+
outline: none;
|
|
564
|
+
opacity: 1;
|
|
565
|
+
|
|
566
|
+
box-shadow: 0 0 0 0.125rem var(--color-ring);
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
.unit-toast-viewport .unit-toast[data-mounted="true"][data-swipe="move"] {
|
|
570
|
+
transform:
|
|
571
|
+
var(--furo-toast-y)
|
|
572
|
+
translate(var(--reka-toast-swipe-move-x, 0px), var(--reka-toast-swipe-move-y, 0px));
|
|
573
|
+
|
|
574
|
+
transition: none;
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
.unit-toast-viewport .unit-toast[data-mounted="true"][data-swipe="cancel"] {
|
|
578
|
+
transform: var(--furo-toast-y);
|
|
579
|
+
|
|
580
|
+
transition: transform 200ms ease;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
@keyframes furo-toast-exit {
|
|
584
|
+
to {
|
|
585
|
+
transform: var(--furo-toast-exit-transform, translateY(100%));
|
|
586
|
+
|
|
587
|
+
opacity: 0;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
@keyframes furo-toast-swipe-out {
|
|
592
|
+
from {
|
|
593
|
+
transform:
|
|
594
|
+
var(--furo-toast-y)
|
|
595
|
+
translate(var(--reka-toast-swipe-end-x, 0px), var(--reka-toast-swipe-end-y, 0px));
|
|
596
|
+
}
|
|
597
|
+
to {
|
|
598
|
+
transform: var(--furo-toast-y) var(--furo-toast-swipe-exit, translateX(calc(100% + 1.5rem)));
|
|
599
|
+
|
|
600
|
+
opacity: 0;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
@keyframes furo-toast-spin {
|
|
605
|
+
to {
|
|
606
|
+
transform: rotate(360deg);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
@media (prefers-reduced-motion: reduce) {
|
|
611
|
+
.unit-toast,
|
|
612
|
+
.unit-toast > .inner {
|
|
613
|
+
transition: none;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
.unit-toast.loading > .inner > .icon,
|
|
617
|
+
.unit-toast > .inner > .actions > .action > .action-spinner,
|
|
618
|
+
.unit-toast-viewport .unit-toast[data-mounted="true"][data-state="closed"],
|
|
619
|
+
.unit-toast-viewport .unit-toast[data-mounted="true"][data-state="closed"][data-swipe="end"] {
|
|
620
|
+
animation: none;
|
|
621
|
+
}
|
|
622
|
+
}
|
|
623
|
+
}
|
|
624
|
+
</style>
|