@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,135 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import {
|
|
3
|
+
defineComponent,
|
|
4
|
+
} from 'vue'
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
Avatar as RekaAvatar,
|
|
8
|
+
} from 'reka-ui/namespaced'
|
|
9
|
+
|
|
10
|
+
import FuroAvatarContext from './FuroAvatarContext.js'
|
|
11
|
+
|
|
12
|
+
export default defineComponent({
|
|
13
|
+
name: 'FuroAvatar',
|
|
14
|
+
|
|
15
|
+
components: {
|
|
16
|
+
AvatarRoot: RekaAvatar['Root'],
|
|
17
|
+
AvatarImage: RekaAvatar['Image'],
|
|
18
|
+
AvatarFallback: RekaAvatar['Fallback'],
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
inheritAttrs: false,
|
|
22
|
+
|
|
23
|
+
props: {
|
|
24
|
+
parcel: {
|
|
25
|
+
/** @type {import('vue').PropType<import('./FuroAvatarContext.js').Props['parcel']>} */
|
|
26
|
+
type: [
|
|
27
|
+
Object,
|
|
28
|
+
null,
|
|
29
|
+
],
|
|
30
|
+
default: null,
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* Setup of this component.
|
|
36
|
+
*
|
|
37
|
+
* @param {import('./FuroAvatarContext.js').Props} props - Props.
|
|
38
|
+
* @param {import('vue').SetupContext} componentContext - Setup context.
|
|
39
|
+
* @returns {{ context: FuroAvatarContext }} Render context.
|
|
40
|
+
*/
|
|
41
|
+
setup (
|
|
42
|
+
props,
|
|
43
|
+
componentContext
|
|
44
|
+
) {
|
|
45
|
+
const context = FuroAvatarContext.create({
|
|
46
|
+
props,
|
|
47
|
+
componentContext,
|
|
48
|
+
})
|
|
49
|
+
.setupComponent()
|
|
50
|
+
|
|
51
|
+
return {
|
|
52
|
+
context,
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
})
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<template>
|
|
59
|
+
<AvatarRoot
|
|
60
|
+
:class="context.extractRootClassNames()"
|
|
61
|
+
v-bind="{
|
|
62
|
+
...context.extractRootAttributes(),
|
|
63
|
+
...$attrs,
|
|
64
|
+
}"
|
|
65
|
+
>
|
|
66
|
+
<AvatarImage
|
|
67
|
+
v-if="context.hasImage()"
|
|
68
|
+
class="image"
|
|
69
|
+
:src="context.imageSource"
|
|
70
|
+
:alt="context.imageAlternativeText"
|
|
71
|
+
/>
|
|
72
|
+
|
|
73
|
+
<AvatarFallback
|
|
74
|
+
class="fallback"
|
|
75
|
+
v-bind="context.buildOptionalFallbackAttributes()"
|
|
76
|
+
>
|
|
77
|
+
<slot name="fallback">
|
|
78
|
+
{{ context.fallbackText }}
|
|
79
|
+
</slot>
|
|
80
|
+
</AvatarFallback>
|
|
81
|
+
</AvatarRoot>
|
|
82
|
+
</template>
|
|
83
|
+
|
|
84
|
+
<style scoped>
|
|
85
|
+
@layer furo {
|
|
86
|
+
.unit-avatar {
|
|
87
|
+
--furo-avatar-size: 2.5rem;
|
|
88
|
+
|
|
89
|
+
display: inline-flex;
|
|
90
|
+
align-items: center;
|
|
91
|
+
justify-content: center;
|
|
92
|
+
flex: none;
|
|
93
|
+
|
|
94
|
+
width: var(--furo-avatar-size);
|
|
95
|
+
height: var(--furo-avatar-size);
|
|
96
|
+
|
|
97
|
+
overflow: hidden;
|
|
98
|
+
|
|
99
|
+
background-color: var(--color-muted);
|
|
100
|
+
|
|
101
|
+
user-select: none;
|
|
102
|
+
vertical-align: middle;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.unit-avatar.circle {
|
|
106
|
+
border-radius: var(--size-border-radius-full);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.unit-avatar.square {
|
|
110
|
+
border-radius: var(--size-border-radius-medium);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.unit-avatar > .image {
|
|
114
|
+
width: 100%;
|
|
115
|
+
height: 100%;
|
|
116
|
+
|
|
117
|
+
border-radius: inherit;
|
|
118
|
+
|
|
119
|
+
object-fit: cover;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.unit-avatar > .fallback {
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
|
|
127
|
+
width: 100%;
|
|
128
|
+
height: 100%;
|
|
129
|
+
|
|
130
|
+
color: var(--color-muted-foreground);
|
|
131
|
+
font: var(--font-label-small);
|
|
132
|
+
text-transform: uppercase;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
</style>
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import BaseFuroContext from '../../../contexts/BaseFuroContext.js'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Furo-owned parcel keys (not forwarded verbatim to the underlying primitive
|
|
5
|
+
* root). `shape` drives the root class variant; `imageSource`,
|
|
6
|
+
* `imageAlternativeText`, `fallbackText`, and `fallbackDelay` are read by the
|
|
7
|
+
* template and applied to the Image / Fallback sub-elements.
|
|
8
|
+
*/
|
|
9
|
+
const FURO_AVATAR_PARCEL_KEYS = new Set([
|
|
10
|
+
'shape',
|
|
11
|
+
'imageSource',
|
|
12
|
+
'imageAlternativeText',
|
|
13
|
+
'fallbackText',
|
|
14
|
+
'fallbackDelay',
|
|
15
|
+
])
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Context class for FuroAvatar atom.
|
|
19
|
+
*
|
|
20
|
+
* Presentational image avatar with a graceful text fallback. It carries no
|
|
21
|
+
* value and emits nothing — the image source, alternative text, fallback text,
|
|
22
|
+
* fallback delay, and shape are read from `parcel`.
|
|
23
|
+
*
|
|
24
|
+
* @extends {BaseFuroContext<null, Props, null>}
|
|
25
|
+
*/
|
|
26
|
+
export default class FuroAvatarContext extends BaseFuroContext {
|
|
27
|
+
/**
|
|
28
|
+
* get: shape of the avatar.
|
|
29
|
+
*
|
|
30
|
+
* @returns {FuroAvatarShape} Shape; defaults to circle.
|
|
31
|
+
*/
|
|
32
|
+
get shape () {
|
|
33
|
+
return this.parcel?.shape
|
|
34
|
+
?? 'circle'
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* get: image source URL.
|
|
39
|
+
*
|
|
40
|
+
* @returns {string | null} Source, or null when no image is provided.
|
|
41
|
+
*/
|
|
42
|
+
get imageSource () {
|
|
43
|
+
return this.parcel?.imageSource
|
|
44
|
+
?? null
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* get: alternative text for the image.
|
|
49
|
+
*
|
|
50
|
+
* @returns {string} Alternative text; empty string when unset.
|
|
51
|
+
*/
|
|
52
|
+
get imageAlternativeText () {
|
|
53
|
+
return this.parcel?.imageAlternativeText
|
|
54
|
+
?? ''
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* get: text shown while the image is absent or loading (e.g. initials).
|
|
59
|
+
*
|
|
60
|
+
* @returns {string} Fallback text; empty string when unset.
|
|
61
|
+
*/
|
|
62
|
+
get fallbackText () {
|
|
63
|
+
return this.parcel?.fallbackText
|
|
64
|
+
?? ''
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* get: milliseconds before the fallback appears.
|
|
69
|
+
*
|
|
70
|
+
* Value-oriented public key mapped to the primitive's delay prop in
|
|
71
|
+
* `buildOptionalRootAttributes()`. `null` lets the primitive apply its own
|
|
72
|
+
* default (no delay).
|
|
73
|
+
*
|
|
74
|
+
* @returns {number | null} Delay in milliseconds, or null.
|
|
75
|
+
*/
|
|
76
|
+
get fallbackDelay () {
|
|
77
|
+
return this.parcel?.fallbackDelay
|
|
78
|
+
?? null
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Whether an image is rendered.
|
|
83
|
+
*
|
|
84
|
+
* @returns {boolean} true when an image source is provided.
|
|
85
|
+
*/
|
|
86
|
+
hasImage () {
|
|
87
|
+
return this.imageSource !== null
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Extract CSS class map for the root.
|
|
92
|
+
*
|
|
93
|
+
* @returns {Record<string, boolean>}
|
|
94
|
+
*/
|
|
95
|
+
extractRootClassNames () {
|
|
96
|
+
return Object.fromEntries([
|
|
97
|
+
['unit-avatar', true],
|
|
98
|
+
[this.shape, true],
|
|
99
|
+
])
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Extract attributes forwarded to the underlying primitive root.
|
|
104
|
+
*
|
|
105
|
+
* @returns {Record<string, unknown>}
|
|
106
|
+
*/
|
|
107
|
+
extractRootAttributes () {
|
|
108
|
+
const passthroughEntries = Object.entries(this.parcel ?? {})
|
|
109
|
+
.filter(([key]) => !FURO_AVATAR_PARCEL_KEYS.has(key))
|
|
110
|
+
|
|
111
|
+
return Object.fromEntries(passthroughEntries)
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Build optional fallback attributes whose values are absent unless set.
|
|
116
|
+
*
|
|
117
|
+
* @returns {Record<string, unknown>}
|
|
118
|
+
*/
|
|
119
|
+
buildOptionalFallbackAttributes () {
|
|
120
|
+
const entries = [
|
|
121
|
+
['delayMs', this.fallbackDelay],
|
|
122
|
+
]
|
|
123
|
+
.filter(([, value]) => value !== null)
|
|
124
|
+
|
|
125
|
+
return Object.fromEntries(entries)
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* @typedef {'circle' | 'square'} FuroAvatarShape
|
|
131
|
+
*/
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* @typedef {{
|
|
135
|
+
* parcel: FuroAvatarParcel | null
|
|
136
|
+
* }} Props
|
|
137
|
+
*/
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* @typedef {{
|
|
141
|
+
* imageSource?: string
|
|
142
|
+
* imageAlternativeText?: string
|
|
143
|
+
* fallbackText?: string
|
|
144
|
+
* fallbackDelay?: number
|
|
145
|
+
* shape?: FuroAvatarShape
|
|
146
|
+
* }} FuroAvatarParcel
|
|
147
|
+
*/
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
import {
|
|
3
|
+
defineComponent,
|
|
4
|
+
} from 'vue'
|
|
5
|
+
|
|
6
|
+
import FuroBadgeContext from './FuroBadgeContext.js'
|
|
7
|
+
|
|
8
|
+
export default defineComponent({
|
|
9
|
+
name: 'FuroBadge',
|
|
10
|
+
inheritAttrs: false,
|
|
11
|
+
|
|
12
|
+
props: {
|
|
13
|
+
parcel: {
|
|
14
|
+
/** @type {import('vue').PropType<import('./FuroBadgeContext.js').Props['parcel']>} */
|
|
15
|
+
type: [
|
|
16
|
+
Object,
|
|
17
|
+
null,
|
|
18
|
+
],
|
|
19
|
+
default: null,
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Setup of this component.
|
|
25
|
+
*
|
|
26
|
+
* @param {import('./FuroBadgeContext.js').Props} props - Props.
|
|
27
|
+
* @param {import('vue').SetupContext} componentContext - Setup context.
|
|
28
|
+
* @returns {{ context: FuroBadgeContext }} Render context.
|
|
29
|
+
*/
|
|
30
|
+
setup (
|
|
31
|
+
props,
|
|
32
|
+
componentContext
|
|
33
|
+
) {
|
|
34
|
+
const context = FuroBadgeContext.create({
|
|
35
|
+
props,
|
|
36
|
+
componentContext,
|
|
37
|
+
})
|
|
38
|
+
.setupComponent()
|
|
39
|
+
|
|
40
|
+
return {
|
|
41
|
+
context,
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
})
|
|
45
|
+
</script>
|
|
46
|
+
|
|
47
|
+
<template>
|
|
48
|
+
<span
|
|
49
|
+
v-bind="{
|
|
50
|
+
...context.extractRootAttributes(),
|
|
51
|
+
...$attrs,
|
|
52
|
+
}"
|
|
53
|
+
:class="context.extractRootClassNames()"
|
|
54
|
+
>
|
|
55
|
+
<span
|
|
56
|
+
v-if="context.hasDot()"
|
|
57
|
+
class="dot"
|
|
58
|
+
/>
|
|
59
|
+
|
|
60
|
+
<slot
|
|
61
|
+
v-if="context.hasText()"
|
|
62
|
+
v-bind="{ text: context.extractText() }"
|
|
63
|
+
>
|
|
64
|
+
<span class="label">{{ context.extractText() }}</span>
|
|
65
|
+
</slot>
|
|
66
|
+
</span>
|
|
67
|
+
</template>
|
|
68
|
+
|
|
69
|
+
<style scoped>
|
|
70
|
+
@layer furo {
|
|
71
|
+
.unit-badge {
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
align-items: center;
|
|
74
|
+
justify-content: center;
|
|
75
|
+
|
|
76
|
+
border: var(--size-thinnest) solid transparent;
|
|
77
|
+
|
|
78
|
+
white-space: nowrap;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/* `--furo-badge-color` is the family's accent, read as a dot, a border and
|
|
82
|
+
surfaceless text. A fill and a tint each carry their own label instead. */
|
|
83
|
+
.unit-badge.tone-accent {
|
|
84
|
+
--furo-badge-color: var(--color-info);
|
|
85
|
+
--furo-badge-solid-surface: var(--color-info);
|
|
86
|
+
--furo-badge-solid-foreground: var(--color-info-foreground);
|
|
87
|
+
--furo-badge-surface: var(--color-info-subtle);
|
|
88
|
+
--furo-badge-surface-foreground: var(--color-info-subtle-foreground);
|
|
89
|
+
--furo-badge-border: var(--color-info-lighter);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* The solid fill reads the dark neutral surface, because the accent above is
|
|
93
|
+
a text role and a text role is never a fill. See ADR 0039. */
|
|
94
|
+
.unit-badge.tone-neutral {
|
|
95
|
+
--furo-badge-color: var(--color-foreground-secondary);
|
|
96
|
+
--furo-badge-solid-surface: var(--color-primary);
|
|
97
|
+
--furo-badge-solid-foreground: var(--color-primary-foreground);
|
|
98
|
+
--furo-badge-surface: var(--color-muted-subtle);
|
|
99
|
+
/* The neutral tint reads a foreground role, because a neutral family owns
|
|
100
|
+
no accent step of its own to darken. */
|
|
101
|
+
--furo-badge-surface-foreground: var(--color-foreground-secondary);
|
|
102
|
+
--furo-badge-border: var(--color-muted);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.unit-badge.tone-success {
|
|
106
|
+
--furo-badge-color: var(--color-success);
|
|
107
|
+
--furo-badge-solid-surface: var(--color-success);
|
|
108
|
+
--furo-badge-solid-foreground: var(--color-success-foreground);
|
|
109
|
+
--furo-badge-surface: var(--color-success-subtle);
|
|
110
|
+
--furo-badge-surface-foreground: var(--color-success-subtle-foreground);
|
|
111
|
+
--furo-badge-border: var(--color-success);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.unit-badge.tone-warning {
|
|
115
|
+
--furo-badge-color: var(--color-warning);
|
|
116
|
+
--furo-badge-solid-surface: var(--color-warning);
|
|
117
|
+
--furo-badge-solid-foreground: var(--color-warning-foreground);
|
|
118
|
+
--furo-badge-surface: var(--color-warning-subtle);
|
|
119
|
+
--furo-badge-surface-foreground: var(--color-warning-subtle-foreground);
|
|
120
|
+
--furo-badge-border: var(--color-warning);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.unit-badge.tone-error {
|
|
124
|
+
--furo-badge-color: var(--color-error);
|
|
125
|
+
--furo-badge-solid-surface: var(--color-error);
|
|
126
|
+
--furo-badge-solid-foreground: var(--color-error-foreground);
|
|
127
|
+
--furo-badge-surface: var(--color-error-subtle);
|
|
128
|
+
--furo-badge-surface-foreground: var(--color-error-subtle-foreground);
|
|
129
|
+
--furo-badge-border: var(--color-error);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/* Excluded from the surfaceless shapes so the neutral outline rule below
|
|
133
|
+
cannot outrank them and repaint their text. */
|
|
134
|
+
.unit-badge.emphasis-solid:not(.shape-state):not(.shape-dot) {
|
|
135
|
+
background-color: var(--furo-badge-solid-surface);
|
|
136
|
+
|
|
137
|
+
color: var(--furo-badge-solid-foreground);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.unit-badge.emphasis-subtle:not(.shape-state):not(.shape-dot) {
|
|
141
|
+
background-color: var(--furo-badge-surface);
|
|
142
|
+
|
|
143
|
+
color: var(--furo-badge-surface-foreground);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.unit-badge.emphasis-outline:not(.shape-state):not(.shape-dot) {
|
|
147
|
+
border-color: var(--furo-badge-border);
|
|
148
|
+
|
|
149
|
+
background-color: var(--furo-badge-surface);
|
|
150
|
+
|
|
151
|
+
color: var(--furo-badge-surface-foreground);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* The design gives this one body-coloured text, not the family's subtitle grey. */
|
|
155
|
+
.unit-badge.tone-neutral.emphasis-outline:not(.shape-state):not(.shape-dot) {
|
|
156
|
+
color: var(--color-foreground);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.unit-badge.shape-text {
|
|
160
|
+
border-radius: var(--size-border-radius-small);
|
|
161
|
+
|
|
162
|
+
gap: var(--size-space-small);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.unit-badge.shape-text.size-large {
|
|
166
|
+
padding-block: 0.125rem;
|
|
167
|
+
padding-inline: 0.75rem;
|
|
168
|
+
|
|
169
|
+
font: var(--font-label-medium);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
.unit-badge.shape-text.size-medium {
|
|
173
|
+
padding-block: 0.125rem;
|
|
174
|
+
padding-inline: 0.5rem;
|
|
175
|
+
|
|
176
|
+
font: var(--font-label-small);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.unit-badge.shape-text.size-small {
|
|
180
|
+
border-radius: var(--size-border-radius-2x-small);
|
|
181
|
+
|
|
182
|
+
padding-block: 0;
|
|
183
|
+
padding-inline: 0.5rem;
|
|
184
|
+
|
|
185
|
+
font: var(--font-label-small);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/* Regular weight where every other combination carries medium. A design
|
|
189
|
+
inconsistency followed rather than normalised; see docs/furo-badge.md. */
|
|
190
|
+
.unit-badge.shape-text.tone-neutral.emphasis-subtle {
|
|
191
|
+
font-weight: var(--font-weight-regular);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/* The design draws two steps, not three, so the large step lands here. */
|
|
195
|
+
.unit-badge.shape-count {
|
|
196
|
+
border-radius: var(--size-border-radius-full);
|
|
197
|
+
|
|
198
|
+
padding-block: 0;
|
|
199
|
+
padding-inline: 0.5rem;
|
|
200
|
+
|
|
201
|
+
font: var(--font-body-medium);
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.unit-badge.shape-count.size-small {
|
|
205
|
+
font: var(--font-label-tiny);
|
|
206
|
+
/* The design's tiny label declares 20px inside a 16px box, which cannot
|
|
207
|
+
fit, so the box height wins; see docs/furo-badge.md. */
|
|
208
|
+
line-height: 1rem;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.unit-badge.shape-count.single-digit {
|
|
212
|
+
padding-inline: 0;
|
|
213
|
+
|
|
214
|
+
min-width: 1.25rem;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
.unit-badge.shape-count.single-digit.size-small {
|
|
218
|
+
min-width: 1rem;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
.unit-badge.shape-state,
|
|
222
|
+
.unit-badge.shape-dot {
|
|
223
|
+
color: var(--furo-badge-color);
|
|
224
|
+
|
|
225
|
+
gap: var(--size-space-tiny);
|
|
226
|
+
font: var(--font-label-small);
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.unit-badge > .dot {
|
|
230
|
+
flex-shrink: 0;
|
|
231
|
+
|
|
232
|
+
width: 0.375rem;
|
|
233
|
+
height: 0.375rem;
|
|
234
|
+
|
|
235
|
+
border-radius: var(--size-border-radius-full);
|
|
236
|
+
|
|
237
|
+
background-color: var(--furo-badge-color);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
</style>
|