@pathscale/ui 1.2.5 → 1.2.7
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 +22 -22
- package/README.md +59 -59
- package/dist/components/_shared/index.js +2 -3
- package/dist/components/_shared/overlayPosition.js +5 -5
- package/dist/components/accordion/Accordion.css +158 -158
- package/dist/components/accordion/Accordion.js +44 -44
- package/dist/components/accordion/index.js +2 -9
- package/dist/components/alert/Alert.css +116 -116
- package/dist/components/alert/Alert.js +30 -30
- package/dist/components/alert/index.js +2 -8
- package/dist/components/auth-card/AuthCard.js +20 -20
- package/dist/components/auth-card/index.js +2 -3
- package/dist/components/auth-error-message/AuthErrorMessage.js +12 -12
- package/dist/components/auth-error-message/index.js +2 -3
- package/dist/components/auth-field-group/AuthFieldGroup.js +11 -11
- package/dist/components/auth-field-group/index.js +2 -3
- package/dist/components/auth-footer-links/AuthFooterLinks.js +20 -20
- package/dist/components/auth-footer-links/index.js +2 -3
- package/dist/components/auth-form/AuthForm.js +11 -11
- package/dist/components/auth-form/index.js +2 -3
- package/dist/components/auth-powered-by/AuthPoweredBy.js +15 -26
- package/dist/components/auth-powered-by/index.js +2 -3
- package/dist/components/auth-submit-button/AuthSubmitButton.js +10 -10
- package/dist/components/auth-submit-button/index.js +2 -3
- package/dist/components/auth-success-message/AuthSuccessMessage.js +9 -9
- package/dist/components/auth-success-message/index.js +2 -3
- package/dist/components/avatar/Avatar.css +124 -124
- package/dist/components/avatar/Avatar.js +27 -27
- package/dist/components/avatar/AvatarGroup.js +11 -11
- package/dist/components/avatar/index.js +2 -6
- package/dist/components/badge/Badge.css +164 -164
- package/dist/components/badge/Badge.js +19 -19
- package/dist/components/badge/index.js +6 -9
- package/dist/components/breadcrumbs/Breadcrumbs.css +63 -63
- package/dist/components/breadcrumbs/Breadcrumbs.js +25 -25
- package/dist/components/breadcrumbs/index.js +2 -5
- package/dist/components/button/Button.css +194 -194
- package/dist/components/button/Button.js +22 -22
- package/dist/components/button/index.js +2 -3
- package/dist/components/button-group/ButtonGroup.css +117 -117
- package/dist/components/button-group/ButtonGroup.js +14 -14
- package/dist/components/button-group/context.js +2 -2
- package/dist/components/button-group/index.js +2 -6
- package/dist/components/calendar/Calendar.css +258 -258
- package/dist/components/calendar/Calendar.js +85 -85
- package/dist/components/calendar/index.js +2 -3
- package/dist/components/card/Card.css +110 -110
- package/dist/components/card/Card.js +21 -21
- package/dist/components/card/index.js +2 -8
- package/dist/components/chatbubble/ChatBubble.css +164 -164
- package/dist/components/chatbubble/ChatBubble.js +19 -19
- package/dist/components/chatbubble/ChatBubbleAvatar.js +8 -8
- package/dist/components/chatbubble/ChatBubbleFooter.js +11 -11
- package/dist/components/chatbubble/ChatBubbleHeader.js +8 -8
- package/dist/components/chatbubble/ChatBubbleMessage.js +12 -12
- package/dist/components/chatbubble/ChatBubbleTime.js +11 -11
- package/dist/components/chatbubble/index.js +2 -3
- package/dist/components/checkbox/Checkbox.css +183 -183
- package/dist/components/checkbox/Checkbox.js +29 -29
- package/dist/components/checkbox/index.js +2 -3
- package/dist/components/checkbox-group/CheckboxGroup.css +10 -10
- package/dist/components/checkbox-group/CheckboxGroup.js +16 -16
- package/dist/components/checkbox-group/context.js +2 -2
- package/dist/components/checkbox-group/index.js +3 -4
- package/dist/components/chip/Chip.css +197 -197
- package/dist/components/chip/Chip.js +32 -32
- package/dist/components/chip/index.js +5 -7
- package/dist/components/close-button/CloseButton.css +81 -81
- package/dist/components/close-button/CloseButton.js +22 -22
- package/dist/components/close-button/index.js +2 -3
- package/dist/components/color-area/ColorArea.css +54 -54
- package/dist/components/color-area/ColorArea.js +13 -13
- package/dist/components/color-area/index.js +2 -2
- package/dist/components/color-field/ColorField.css +88 -88
- package/dist/components/color-field/ColorField.js +23 -23
- package/dist/components/color-field/index.js +2 -2
- package/dist/components/color-picker/ColorPicker.css +28 -28
- package/dist/components/color-picker/ColorPicker.js +44 -44
- package/dist/components/color-picker/index.js +2 -8
- package/dist/components/color-slider/ColorSlider.css +57 -57
- package/dist/components/color-slider/ColorSlider.js +21 -21
- package/dist/components/color-slider/index.js +2 -2
- package/dist/components/color-swatch/ColorSwatch.css +84 -84
- package/dist/components/color-swatch/ColorSwatch.js +14 -14
- package/dist/components/color-swatch/index.js +2 -2
- package/dist/components/color-swatch-picker/ColorSwatchPicker.css +12 -12
- package/dist/components/color-swatch-picker/ColorSwatchPicker.js +14 -14
- package/dist/components/color-swatch-picker/index.js +2 -5
- package/dist/components/color-wheel-flower/ColorWheelFlower.css +147 -147
- package/dist/components/color-wheel-flower/ColorWheelFlower.js +83 -83
- package/dist/components/color-wheel-flower/colorWheelFlowerContext.js +3 -3
- package/dist/components/color-wheel-flower/index.js +3 -6
- package/dist/components/combo-box/ComboBox.css +344 -344
- package/dist/components/combo-box/ComboBox.js +90 -90
- package/dist/components/combo-box/index.js +2 -10
- package/dist/components/date-field/DateField.css +215 -215
- package/dist/components/date-field/DateField.js +41 -41
- package/dist/components/date-field/index.js +2 -11
- package/dist/components/date-picker/DatePicker.css +143 -143
- package/dist/components/date-picker/DatePicker.js +40 -40
- package/dist/components/date-picker/index.js +2 -3
- package/dist/components/date-range-picker/DateRangePicker.css +149 -149
- package/dist/components/date-range-picker/DateRangePicker.js +55 -55
- package/dist/components/date-range-picker/index.js +2 -3
- package/dist/components/description/Description.css +10 -10
- package/dist/components/description/Description.js +9 -9
- package/dist/components/description/index.js +2 -5
- package/dist/components/disclosure/Disclosure.css +84 -84
- package/dist/components/disclosure/Disclosure.js +40 -40
- package/dist/components/disclosure/index.js +3 -9
- package/dist/components/disclosure-group/DisclosureGroup.css +9 -9
- package/dist/components/disclosure-group/DisclosureGroup.js +13 -13
- package/dist/components/disclosure-group/index.js +4 -6
- package/dist/components/disclosure-group/useDisclosureGroupNavigation.js +4 -4
- package/dist/components/drawer/Drawer.context.js +3 -3
- package/dist/components/drawer/Drawer.css +463 -463
- package/dist/components/drawer/Drawer.js +107 -107
- package/dist/components/drawer/index.js +2 -15
- package/dist/components/dropdown/Dropdown.css +211 -211
- package/dist/components/dropdown/Dropdown.js +66 -66
- package/dist/components/dropdown/index.js +2 -4
- package/dist/components/empty-state/EmptyState.css +39 -39
- package/dist/components/empty-state/EmptyState.js +25 -25
- package/dist/components/empty-state/index.js +2 -8
- package/dist/components/error-message/ErrorMessage.css +20 -20
- package/dist/components/error-message/ErrorMessage.js +12 -12
- package/dist/components/error-message/index.js +2 -5
- package/dist/components/field-error/FieldError.css +27 -27
- package/dist/components/field-error/FieldError.js +14 -14
- package/dist/components/field-error/index.js +2 -5
- package/dist/components/fieldset/Fieldset.css +30 -30
- package/dist/components/fieldset/Fieldset.js +21 -21
- package/dist/components/fieldset/index.js +2 -8
- package/dist/components/flex/Flex.css +5 -5
- package/dist/components/flex/Flex.js +14 -14
- package/dist/components/flex/index.js +2 -3
- package/dist/components/floating-dock/FloatingDock.css +208 -208
- package/dist/components/floating-dock/FloatingDock.js +76 -76
- package/dist/components/floating-dock/index.js +2 -3
- package/dist/components/footer/Footer.js +11 -11
- package/dist/components/footer/FooterTitle.js +9 -9
- package/dist/components/footer/footer.css +51 -51
- package/dist/components/footer/index.js +2 -3
- package/dist/components/form/FieldErrorMessage.js +8 -8
- package/dist/components/form/Form.css +5 -5
- package/dist/components/form/Form.js +21 -21
- package/dist/components/form/FormField.js +19 -19
- package/dist/components/form/FormSubmitButton.js +11 -11
- package/dist/components/form/index.js +5 -12
- package/dist/components/glass-panel/GlassPanel.css +359 -359
- package/dist/components/glass-panel/GlassPanel.js +29 -29
- package/dist/components/glass-panel/index.js +2 -3
- package/dist/components/glow-card/GlowCard.css +100 -100
- package/dist/components/glow-card/GlowCard.js +10 -10
- package/dist/components/glow-card/index.js +2 -3
- package/dist/components/grid/Grid.css +5 -5
- package/dist/components/grid/Grid.js +15 -15
- package/dist/components/grid/index.js +2 -3
- package/dist/components/header/Header.css +13 -13
- package/dist/components/header/Header.js +12 -12
- package/dist/components/header/index.js +2 -5
- package/dist/components/icon/Icon.css +10 -10
- package/dist/components/icon/Icon.js +8 -8
- package/dist/components/icon/index.js +2 -3
- package/dist/components/immersive-landing/ImmersiveLanding.css +565 -565
- package/dist/components/immersive-landing/ImmersiveLanding.js +44 -44
- package/dist/components/immersive-landing/ImmersiveLandingArrows.js +17 -17
- package/dist/components/immersive-landing/ImmersiveLandingContext.js +3 -3
- package/dist/components/immersive-landing/ImmersiveLandingNavigation.js +36 -36
- package/dist/components/immersive-landing/ImmersiveLandingPage.js +15 -15
- package/dist/components/immersive-landing/components/CookieConsent.js +71 -71
- package/dist/components/immersive-landing/components/FirefoxPWABanner.js +42 -42
- package/dist/components/immersive-landing/components/PWAInstallPrompt.js +40 -40
- package/dist/components/immersive-landing/index.js +7 -14
- package/dist/components/immersive-landing/useImmersiveLanding.js +7 -7
- package/dist/components/input/Input.css +155 -155
- package/dist/components/input/Input.js +48 -48
- package/dist/components/input/index.js +2 -2
- package/dist/components/input-group/InputGroup.css +172 -172
- package/dist/components/input-group/InputGroup.js +33 -33
- package/dist/components/input-group/index.js +2 -9
- package/dist/components/input-otp/InputOTP.css +170 -170
- package/dist/components/input-otp/InputOTP.js +48 -48
- package/dist/components/input-otp/index.js +2 -11
- package/dist/components/join/Join.js +14 -14
- package/dist/components/join/index.js +2 -3
- package/dist/components/kbd/Kbd.css +60 -60
- package/dist/components/kbd/Kbd.js +20 -20
- package/dist/components/kbd/index.js +2 -8
- package/dist/components/label/Label.css +30 -30
- package/dist/components/label/Label.js +9 -9
- package/dist/components/label/index.js +2 -5
- package/dist/components/language-switcher/LanguageSwitcher.css +56 -56
- package/dist/components/language-switcher/LanguageSwitcher.js +26 -26
- package/dist/components/language-switcher/createI18n.js +8 -8
- package/dist/components/language-switcher/index.js +3 -8
- package/dist/components/link/Link.css +131 -131
- package/dist/components/link/Link.js +22 -22
- package/dist/components/link/index.js +2 -5
- package/dist/components/list-box/ListBox.css +148 -148
- package/dist/components/list-box/ListBox.js +17 -17
- package/dist/components/list-box/ListBoxItem.js +32 -32
- package/dist/components/list-box/ListBoxSection.js +13 -13
- package/dist/components/list-box/context.js +2 -2
- package/dist/components/list-box/index.js +9 -15
- package/dist/components/live-chat/LiveChat.css +324 -324
- package/dist/components/live-chat/LiveChatBubble.js +27 -27
- package/dist/components/live-chat/LiveChatPanel.js +62 -62
- package/dist/components/live-chat/index.js +3 -5
- package/dist/components/menu/Menu.css +199 -199
- package/dist/components/menu/Menu.js +25 -30
- package/dist/components/menu/MenuItem.js +38 -38
- package/dist/components/menu/MenuSection.js +13 -13
- package/dist/components/menu/context.js +2 -2
- package/dist/components/menu/index.js +3 -12
- package/dist/components/meter/Meter.css +89 -89
- package/dist/components/meter/Meter.js +31 -31
- package/dist/components/meter/index.js +2 -8
- package/dist/components/modal/Modal.css +320 -320
- package/dist/components/modal/Modal.js +80 -80
- package/dist/components/modal/index.js +2 -13
- package/dist/components/navbar/Navbar.css +110 -110
- package/dist/components/navbar/Navbar.js +18 -18
- package/dist/components/navbar/NavbarRow.js +10 -10
- package/dist/components/navbar/NavbarSection.js +9 -9
- package/dist/components/navbar/NavbarStack.js +10 -10
- package/dist/components/navbar/index.js +2 -3
- package/dist/components/noise-background/NoiseBackground.css +66 -66
- package/dist/components/noise-background/NoiseBackground.js +35 -35
- package/dist/components/noise-background/index.js +2 -3
- package/dist/components/number-field/NumberField.css +198 -198
- package/dist/components/number-field/NumberField.js +42 -42
- package/dist/components/number-field/index.js +2 -9
- package/dist/components/pagination/Pagination.css +121 -121
- package/dist/components/pagination/Pagination.js +34 -34
- package/dist/components/pagination/index.js +2 -3
- package/dist/components/password-field/PasswordField.js +15 -15
- package/dist/components/password-field/index.js +2 -3
- package/dist/components/password-requirements/PasswordRequirements.js +24 -24
- package/dist/components/password-requirements/index.js +2 -3
- package/dist/components/password-rules/index.js +2 -4
- package/dist/components/popover/Popover.css +117 -117
- package/dist/components/popover/Popover.js +50 -50
- package/dist/components/popover/index.js +3 -9
- package/dist/components/progress-bar/ProgressBar.css +104 -104
- package/dist/components/progress-bar/ProgressBar.js +27 -27
- package/dist/components/progress-bar/index.js +2 -3
- package/dist/components/progress-circle/ProgressCircle.css +82 -82
- package/dist/components/progress-circle/ProgressCircle.js +32 -32
- package/dist/components/progress-circle/index.js +2 -3
- package/dist/components/radio/Radio.css +129 -129
- package/dist/components/radio/Radio.js +27 -27
- package/dist/components/radio/index.js +2 -3
- package/dist/components/radio-group/RadioGroup.css +58 -58
- package/dist/components/radio-group/RadioGroup.js +33 -33
- package/dist/components/radio-group/context.js +2 -2
- package/dist/components/radio-group/index.js +3 -4
- package/dist/components/range-calendar/RangeCalendar.css +51 -51
- package/dist/components/range-calendar/RangeCalendar.js +15 -15
- package/dist/components/range-calendar/index.js +2 -3
- package/dist/components/scroll-shadow/ScrollShadow.css +93 -93
- package/dist/components/scroll-shadow/ScrollShadow.js +19 -19
- package/dist/components/scroll-shadow/index.js +2 -3
- package/dist/components/scroll-shadow/useScrollShadow.js +3 -3
- package/dist/components/search-field/SearchField.css +183 -183
- package/dist/components/search-field/SearchField.js +38 -38
- package/dist/components/search-field/index.js +2 -9
- package/dist/components/select/Select.css +284 -284
- package/dist/components/select/Select.js +129 -129
- package/dist/components/select/index.js +2 -3
- package/dist/components/separator/Separator.css +35 -35
- package/dist/components/separator/Separator.js +11 -11
- package/dist/components/separator/index.js +2 -4
- package/dist/components/size-picker/SizePicker.js +17 -17
- package/dist/components/size-picker/index.js +3 -6
- package/dist/components/size-picker/sizeStore.js +3 -3
- package/dist/components/skeleton/Skeleton.css +95 -95
- package/dist/components/skeleton/Skeleton.js +8 -8
- package/dist/components/skeleton/index.js +2 -3
- package/dist/components/slider/Slider.css +122 -122
- package/dist/components/slider/Slider.js +26 -26
- package/dist/components/slider/index.js +2 -3
- package/dist/components/spinner/Spinner.css +131 -131
- package/dist/components/spinner/Spinner.js +19 -19
- package/dist/components/spinner/index.js +2 -5
- package/dist/components/surface/Surface.css +37 -37
- package/dist/components/surface/Surface.js +9 -9
- package/dist/components/surface/index.js +2 -4
- package/dist/components/table/ExpandToggle.js +14 -14
- package/dist/components/table/InlineConfirm.js +11 -11
- package/dist/components/table/MobileListView.js +24 -24
- package/dist/components/table/SortIcon.js +13 -13
- package/dist/components/table/Table.css +426 -426
- package/dist/components/table/Table.js +80 -80
- package/dist/components/table/VirtualSpacerRow.js +8 -8
- package/dist/components/table/index.js +8 -38
- package/dist/components/tabs/Tabs.css +203 -203
- package/dist/components/tabs/Tabs.js +59 -59
- package/dist/components/tabs/index.js +2 -4
- package/dist/components/tag/Tag.css +121 -121
- package/dist/components/tag/Tag.js +40 -40
- package/dist/components/tag/index.js +2 -6
- package/dist/components/tag-group/TagGroup.css +22 -22
- package/dist/components/tag-group/TagGroup.js +20 -20
- package/dist/components/tag-group/context.js +2 -2
- package/dist/components/tag-group/index.js +2 -6
- package/dist/components/text/Text.css +66 -66
- package/dist/components/text/Text.js +9 -9
- package/dist/components/text/index.js +2 -5
- package/dist/components/text-area/TextArea.css +95 -95
- package/dist/components/text-area/TextArea.js +10 -10
- package/dist/components/text-area/index.js +2 -5
- package/dist/components/text-field/TextField.css +33 -33
- package/dist/components/text-field/TextField.js +15 -15
- package/dist/components/text-field/index.js +2 -7
- package/dist/components/textarea/Textarea.js +11 -13
- package/dist/components/textarea/index.js +2 -6
- package/dist/components/theme-color-picker/ThemeColorPicker.js +49 -49
- package/dist/components/theme-color-picker/hueShift.js +3 -3
- package/dist/components/theme-color-picker/index.js +3 -7
- package/dist/components/time-field/TimeField.css +215 -215
- package/dist/components/time-field/TimeField.js +41 -41
- package/dist/components/time-field/index.js +2 -11
- package/dist/components/toast/Toast.css +344 -344
- package/dist/components/toast/Toast.js +98 -98
- package/dist/components/toast/index.js +2 -19
- package/dist/components/toggle/Toggle.css +237 -237
- package/dist/components/toggle/Toggle.js +31 -31
- package/dist/components/toggle/index.js +2 -3
- package/dist/components/toolbar/Toolbar.css +55 -55
- package/dist/components/toolbar/Toolbar.js +10 -10
- package/dist/components/toolbar/index.js +2 -5
- package/dist/components/tooltip/Tooltip.css +153 -153
- package/dist/components/tooltip/Tooltip.js +36 -36
- package/dist/components/tooltip/index.js +2 -7
- package/dist/components/utils.js +6 -7
- package/dist/components/video-preview/VideoPreview.js +15 -15
- package/dist/components/video-preview/index.js +2 -3
- package/dist/hooks/date/useCalendarNavigation.js +18 -18
- package/dist/hooks/date/useCalendarState.js +19 -19
- package/dist/hooks/date/useDateSelection.js +7 -7
- package/dist/hooks/date/usePickerOpenState.js +8 -8
- package/dist/hooks/date/useRangeSelection.js +16 -16
- package/dist/hooks/form/FormContext.js +3 -3
- package/dist/hooks/form/createForm.js +4 -4
- package/dist/hooks/form/index.js +5 -10
- package/dist/hooks/form/useFieldNew.js +10 -10
- package/dist/hooks/layout/index.js +2 -3
- package/dist/hooks/layout/useDesktop.js +4 -4
- package/dist/hooks/table/index.js +9 -18
- package/dist/hooks/table/useAnchoredOverlayPosition.js +4 -4
- package/dist/hooks/table/useTableExpansion.js +4 -4
- package/dist/hooks/table/useTableFiltering.js +8 -8
- package/dist/hooks/table/useTableModel.js +10 -10
- package/dist/hooks/table/useTablePagination.js +4 -4
- package/dist/hooks/table/useTableSelection.js +4 -4
- package/dist/hooks/table/useTableSorting.js +6 -6
- package/dist/index.css +74 -74
- package/dist/index.js +108 -398
- package/dist/lib/refs/index.js +2 -3
- package/dist/lib/refs/mergeRefs.js +2 -2
- package/dist/lib/style/index.js +2 -4
- package/dist/lib/tag/createIsButton.js +4 -4
- package/dist/lib/tag/createTagName.js +2 -2
- package/dist/lib/tag/index.js +3 -7
- package/dist/motion/engine.js +4 -4
- package/dist/motion/index.js +11 -39
- package/dist/motion/popmotion.js +2 -2
- package/dist/motion/presets.js +4 -4
- package/dist/motion/route.js +7 -7
- package/dist/motion/solid/AnimatedCollapse.js +27 -27
- package/dist/motion/solid/MotionDiv.js +13 -13
- package/dist/motion/solid/Presence.js +9 -9
- package/dist/motion/solid/index.js +4 -10
- package/dist/motion/system.js +9 -9
- package/dist/primitives/streaming/index.js +3 -5
- package/dist/primitives/streaming/useStreamingBuffer.js +2 -2
- package/dist/primitives/streaming/useStreamingSubscription.js +7 -7
- package/dist/primitives/virtualizer/index.js +2 -3
- package/dist/primitives/virtualizer/useVirtualRows.js +7 -7
- package/dist/purge-manifest.json +15599 -15825
- package/dist/styles/base/index.css +43 -43
- package/dist/styles/themes/dark.css +141 -141
- package/dist/styles/themes/light.css +143 -143
- package/package.json +41 -34
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createComponent, insert, mergeProps, spread, template, use } from "solid-js/web";
|
|
2
2
|
import "./Tabs.css";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
var _tmpl$ = /*#__PURE__*/
|
|
7
|
-
const TabsContext =
|
|
3
|
+
import { createContext, createEffect, createMemo, createSignal, createUniqueId, onCleanup, onMount, splitProps, useContext } from "solid-js";
|
|
4
|
+
import { twMerge } from "tailwind-merge";
|
|
5
|
+
import { CLASSES } from "./Tabs.classes.js";
|
|
6
|
+
var _tmpl$ = /*#__PURE__*/ template("<div>"), _tmpl$2 = /*#__PURE__*/ template("<div><span>"), _tmpl$3 = /*#__PURE__*/ template("<button>"), _tmpl$4 = /*#__PURE__*/ template("<span>");
|
|
7
|
+
const TabsContext = createContext();
|
|
8
8
|
const invokeEventHandler = (handler, event)=>{
|
|
9
9
|
if ("function" == typeof handler) return void handler(event);
|
|
10
10
|
if (Array.isArray(handler) && "function" == typeof handler[0]) handler[0](handler[1], event);
|
|
11
11
|
};
|
|
12
12
|
const TabsRoot = (props)=>{
|
|
13
|
-
const [local, others] =
|
|
13
|
+
const [local, others] = splitProps(props, [
|
|
14
14
|
"children",
|
|
15
15
|
"class",
|
|
16
16
|
"orientation",
|
|
@@ -19,9 +19,9 @@ const TabsRoot = (props)=>{
|
|
|
19
19
|
"defaultSelectedKey",
|
|
20
20
|
"onSelectionChange"
|
|
21
21
|
]);
|
|
22
|
-
const baseId =
|
|
23
|
-
const [internalSelectedKey, setInternalSelectedKey] =
|
|
24
|
-
const [tabs, setTabs] =
|
|
22
|
+
const baseId = createUniqueId();
|
|
23
|
+
const [internalSelectedKey, setInternalSelectedKey] = createSignal(local.defaultSelectedKey);
|
|
24
|
+
const [tabs, setTabs] = createSignal([]);
|
|
25
25
|
const isControlled = ()=>void 0 !== local.selectedKey;
|
|
26
26
|
const selectedKey = ()=>isControlled() ? local.selectedKey : internalSelectedKey();
|
|
27
27
|
const setSelectedKey = (key)=>{
|
|
@@ -42,8 +42,8 @@ const TabsRoot = (props)=>{
|
|
|
42
42
|
};
|
|
43
43
|
const getTabId = (key)=>`${baseId}-tab-${String(key)}`;
|
|
44
44
|
const getPanelId = (key)=>`${baseId}-panel-${String(key)}`;
|
|
45
|
-
const classes = ()=>
|
|
46
|
-
const context =
|
|
45
|
+
const classes = ()=>twMerge(CLASSES.base, "secondary" === local.variant && CLASSES.variant.secondary, local.class);
|
|
46
|
+
const context = createMemo(()=>({
|
|
47
47
|
orientation: local.orientation ?? "horizontal",
|
|
48
48
|
variant: local.variant ?? "primary",
|
|
49
49
|
selectedKey,
|
|
@@ -54,13 +54,13 @@ const TabsRoot = (props)=>{
|
|
|
54
54
|
getTabId,
|
|
55
55
|
getPanelId
|
|
56
56
|
}));
|
|
57
|
-
return
|
|
57
|
+
return createComponent(TabsContext.Provider, {
|
|
58
58
|
get value () {
|
|
59
59
|
return context();
|
|
60
60
|
},
|
|
61
61
|
get children () {
|
|
62
62
|
var _el$ = _tmpl$();
|
|
63
|
-
|
|
63
|
+
spread(_el$, mergeProps(others, ()=>({
|
|
64
64
|
class: classes()
|
|
65
65
|
}), {
|
|
66
66
|
"data-slot": "tabs",
|
|
@@ -68,48 +68,48 @@ const TabsRoot = (props)=>{
|
|
|
68
68
|
return local.orientation ?? "horizontal";
|
|
69
69
|
}
|
|
70
70
|
}), false, true);
|
|
71
|
-
|
|
71
|
+
insert(_el$, ()=>local.children);
|
|
72
72
|
return _el$;
|
|
73
73
|
}
|
|
74
74
|
});
|
|
75
75
|
};
|
|
76
76
|
const TabListContainer = (props)=>{
|
|
77
|
-
const [local, others] =
|
|
77
|
+
const [local, others] = splitProps(props, [
|
|
78
78
|
"class",
|
|
79
79
|
"children"
|
|
80
80
|
]);
|
|
81
81
|
return (()=>{
|
|
82
82
|
var _el$2 = _tmpl$();
|
|
83
|
-
|
|
84
|
-
class:
|
|
83
|
+
spread(_el$2, mergeProps(others, ()=>({
|
|
84
|
+
class: twMerge(CLASSES.slot.listContainer, local.class)
|
|
85
85
|
}), {
|
|
86
86
|
"data-slot": "tabs-list-container"
|
|
87
87
|
}), false, true);
|
|
88
|
-
|
|
88
|
+
insert(_el$2, ()=>local.children);
|
|
89
89
|
return _el$2;
|
|
90
90
|
})();
|
|
91
91
|
};
|
|
92
92
|
const TabList = (props)=>{
|
|
93
|
-
const ctx =
|
|
94
|
-
const [local, others] =
|
|
93
|
+
const ctx = useContext(TabsContext);
|
|
94
|
+
const [local, others] = splitProps(props, [
|
|
95
95
|
"class",
|
|
96
96
|
"children",
|
|
97
97
|
"ref"
|
|
98
98
|
]);
|
|
99
|
-
const [indicatorStyle, setIndicatorStyle] =
|
|
99
|
+
const [indicatorStyle, setIndicatorStyle] = createSignal({
|
|
100
100
|
"--tabs-indicator-x": "0px",
|
|
101
101
|
"--tabs-indicator-y": "0px",
|
|
102
102
|
"--tabs-indicator-width": "0px",
|
|
103
103
|
"--tabs-indicator-height": "0px"
|
|
104
104
|
});
|
|
105
|
-
const [indicatorVisible, setIndicatorVisible] =
|
|
106
|
-
const [indicatorReady, setIndicatorReady] =
|
|
105
|
+
const [indicatorVisible, setIndicatorVisible] = createSignal(false);
|
|
106
|
+
const [indicatorReady, setIndicatorReady] = createSignal(false);
|
|
107
107
|
let listRef;
|
|
108
108
|
let rafId;
|
|
109
109
|
if (!ctx) return (()=>{
|
|
110
110
|
var _el$3 = _tmpl$();
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
spread(_el$3, others, false, true);
|
|
112
|
+
insert(_el$3, ()=>local.children);
|
|
113
113
|
return _el$3;
|
|
114
114
|
})();
|
|
115
115
|
const setListRef = (element)=>{
|
|
@@ -150,45 +150,45 @@ const TabList = (props)=>{
|
|
|
150
150
|
measureIndicator();
|
|
151
151
|
});
|
|
152
152
|
};
|
|
153
|
-
|
|
153
|
+
createEffect(()=>{
|
|
154
154
|
ctx.selectedKey();
|
|
155
155
|
ctx.tabs();
|
|
156
156
|
scheduleMeasure();
|
|
157
157
|
});
|
|
158
|
-
|
|
158
|
+
createEffect(()=>{
|
|
159
159
|
if (!listRef) return;
|
|
160
160
|
const observer = new ResizeObserver(()=>scheduleMeasure());
|
|
161
161
|
observer.observe(listRef);
|
|
162
162
|
for (const tab of ctx.tabs())observer.observe(tab.ref);
|
|
163
|
-
|
|
163
|
+
onCleanup(()=>observer.disconnect());
|
|
164
164
|
});
|
|
165
|
-
|
|
165
|
+
onMount(()=>{
|
|
166
166
|
scheduleMeasure();
|
|
167
167
|
window.addEventListener("resize", scheduleMeasure);
|
|
168
|
-
|
|
168
|
+
onCleanup(()=>{
|
|
169
169
|
window.removeEventListener("resize", scheduleMeasure);
|
|
170
170
|
if (void 0 !== rafId) cancelAnimationFrame(rafId);
|
|
171
171
|
});
|
|
172
172
|
});
|
|
173
173
|
return (()=>{
|
|
174
174
|
var _el$4 = _tmpl$2(), _el$5 = _el$4.firstChild;
|
|
175
|
-
|
|
176
|
-
|
|
175
|
+
use(setListRef, _el$4);
|
|
176
|
+
spread(_el$4, mergeProps(others, {
|
|
177
177
|
role: "tablist",
|
|
178
178
|
get ["aria-orientation"] () {
|
|
179
179
|
return ctx.orientation;
|
|
180
180
|
}
|
|
181
181
|
}, ()=>({
|
|
182
|
-
class:
|
|
182
|
+
class: twMerge(CLASSES.slot.list, local.class)
|
|
183
183
|
}), {
|
|
184
184
|
"data-slot": "tabs-list",
|
|
185
185
|
get ["data-orientation"] () {
|
|
186
186
|
return ctx.orientation;
|
|
187
187
|
}
|
|
188
188
|
}), false, true);
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
class:
|
|
189
|
+
insert(_el$4, ()=>local.children, _el$5);
|
|
190
|
+
spread(_el$5, mergeProps(()=>({
|
|
191
|
+
class: CLASSES.slot.indicator
|
|
192
192
|
}), {
|
|
193
193
|
"data-slot": "tabs-indicator",
|
|
194
194
|
get ["data-ready"] () {
|
|
@@ -205,8 +205,8 @@ const TabList = (props)=>{
|
|
|
205
205
|
})();
|
|
206
206
|
};
|
|
207
207
|
const Tab = (props)=>{
|
|
208
|
-
const ctx =
|
|
209
|
-
const [local, others] =
|
|
208
|
+
const ctx = useContext(TabsContext);
|
|
209
|
+
const [local, others] = splitProps(props, [
|
|
210
210
|
"class",
|
|
211
211
|
"children",
|
|
212
212
|
"id",
|
|
@@ -217,22 +217,22 @@ const Tab = (props)=>{
|
|
|
217
217
|
let tabRef;
|
|
218
218
|
if (!ctx) return (()=>{
|
|
219
219
|
var _el$6 = _tmpl$3();
|
|
220
|
-
|
|
221
|
-
class:
|
|
220
|
+
spread(_el$6, mergeProps(others, ()=>({
|
|
221
|
+
class: twMerge(CLASSES.slot.tab, local.class)
|
|
222
222
|
})), false, true);
|
|
223
|
-
|
|
223
|
+
insert(_el$6, ()=>local.children);
|
|
224
224
|
return _el$6;
|
|
225
225
|
})();
|
|
226
|
-
const isSelected =
|
|
226
|
+
const isSelected = createMemo(()=>ctx.selectedKey() === local.id);
|
|
227
227
|
const isDisabled = ()=>Boolean(local.isDisabled);
|
|
228
|
-
|
|
228
|
+
onMount(()=>{
|
|
229
229
|
if (tabRef) ctx.registerTab({
|
|
230
230
|
key: local.id,
|
|
231
231
|
ref: tabRef,
|
|
232
232
|
disabled: isDisabled()
|
|
233
233
|
});
|
|
234
234
|
});
|
|
235
|
-
|
|
235
|
+
onCleanup(()=>{
|
|
236
236
|
ctx.unregisterTab(local.id);
|
|
237
237
|
});
|
|
238
238
|
const focusTab = (info)=>{
|
|
@@ -277,12 +277,12 @@ const Tab = (props)=>{
|
|
|
277
277
|
if (isDisabled()) return;
|
|
278
278
|
ctx.setSelectedKey(local.id);
|
|
279
279
|
};
|
|
280
|
-
const classes = ()=>
|
|
280
|
+
const classes = ()=>twMerge(CLASSES.slot.tab, local.class);
|
|
281
281
|
return (()=>{
|
|
282
282
|
var _el$7 = _tmpl$3();
|
|
283
283
|
var _ref$ = tabRef;
|
|
284
|
-
"function" == typeof _ref$ ?
|
|
285
|
-
|
|
284
|
+
"function" == typeof _ref$ ? use(_ref$, _el$7) : tabRef = _el$7;
|
|
285
|
+
spread(_el$7, mergeProps(others, {
|
|
286
286
|
get id () {
|
|
287
287
|
return ctx.getTabId(local.id);
|
|
288
288
|
},
|
|
@@ -315,28 +315,28 @@ const Tab = (props)=>{
|
|
|
315
315
|
onKeyDown: handleKeyDown,
|
|
316
316
|
onClick: handleClick
|
|
317
317
|
}), false, true);
|
|
318
|
-
|
|
318
|
+
insert(_el$7, ()=>local.children);
|
|
319
319
|
return _el$7;
|
|
320
320
|
})();
|
|
321
321
|
};
|
|
322
322
|
const TabIndicator = ()=>null;
|
|
323
323
|
const TabPanel = (props)=>{
|
|
324
|
-
const ctx =
|
|
325
|
-
const [local, others] =
|
|
324
|
+
const ctx = useContext(TabsContext);
|
|
325
|
+
const [local, others] = splitProps(props, [
|
|
326
326
|
"class",
|
|
327
327
|
"children",
|
|
328
328
|
"id"
|
|
329
329
|
]);
|
|
330
330
|
if (!ctx) return (()=>{
|
|
331
331
|
var _el$8 = _tmpl$();
|
|
332
|
-
|
|
333
|
-
|
|
332
|
+
spread(_el$8, others, false, true);
|
|
333
|
+
insert(_el$8, ()=>local.children);
|
|
334
334
|
return _el$8;
|
|
335
335
|
})();
|
|
336
336
|
const isSelected = ()=>ctx.selectedKey() === local.id;
|
|
337
337
|
return (()=>{
|
|
338
338
|
var _el$9 = _tmpl$();
|
|
339
|
-
|
|
339
|
+
spread(_el$9, mergeProps(others, {
|
|
340
340
|
get id () {
|
|
341
341
|
return ctx.getPanelId(local.id);
|
|
342
342
|
},
|
|
@@ -345,7 +345,7 @@ const TabPanel = (props)=>{
|
|
|
345
345
|
return ctx.getTabId(local.id);
|
|
346
346
|
}
|
|
347
347
|
}, ()=>({
|
|
348
|
-
class:
|
|
348
|
+
class: twMerge(CLASSES.slot.panel, local.class)
|
|
349
349
|
}), {
|
|
350
350
|
"data-slot": "tabs-panel",
|
|
351
351
|
get ["data-orientation"] () {
|
|
@@ -355,20 +355,20 @@ const TabPanel = (props)=>{
|
|
|
355
355
|
return !isSelected();
|
|
356
356
|
}
|
|
357
357
|
}), false, true);
|
|
358
|
-
|
|
358
|
+
insert(_el$9, ()=>local.children);
|
|
359
359
|
return _el$9;
|
|
360
360
|
})();
|
|
361
361
|
};
|
|
362
362
|
const TabSeparator = (props)=>{
|
|
363
|
-
const [local, others] =
|
|
363
|
+
const [local, others] = splitProps(props, [
|
|
364
364
|
"class"
|
|
365
365
|
]);
|
|
366
366
|
return (()=>{
|
|
367
367
|
var _el$0 = _tmpl$4();
|
|
368
|
-
|
|
368
|
+
spread(_el$0, mergeProps(others, {
|
|
369
369
|
"aria-hidden": "true"
|
|
370
370
|
}, ()=>({
|
|
371
|
-
class:
|
|
371
|
+
class: twMerge(CLASSES.slot.separator, local.class)
|
|
372
372
|
}), {
|
|
373
373
|
"data-slot": "tabs-separator"
|
|
374
374
|
}), false, false);
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
var __webpack_exports__default = __WEBPACK_EXTERNAL_MODULE__Tabs_js_f50f6764__["default"];
|
|
4
|
-
export { __webpack_exports__Tabs as Tabs, __webpack_exports__default as default };
|
|
1
|
+
import external_Tabs_js_default, { Tabs } from "./Tabs.js";
|
|
2
|
+
export { Tabs, external_Tabs_js_default as default };
|
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
@layer components {
|
|
2
|
-
.tag {
|
|
3
|
-
--tag-optical-offset: 0.031em;
|
|
4
|
-
|
|
5
|
-
position: relative;
|
|
6
|
-
display: inline-flex;
|
|
7
|
-
align-items: center;
|
|
8
|
-
gap: 0.25rem;
|
|
9
|
-
border-radius: 9999px;
|
|
10
|
-
font-weight: 500;
|
|
11
|
-
user-select: none;
|
|
12
|
-
-webkit-tap-highlight-color: transparent;
|
|
13
|
-
transform-origin: center;
|
|
14
|
-
cursor: pointer;
|
|
15
|
-
transition:
|
|
16
|
-
color 100ms ease,
|
|
17
|
-
transform 100ms ease,
|
|
18
|
-
opacity 100ms ease,
|
|
19
|
-
background-color 100ms ease,
|
|
20
|
-
box-shadow 100ms ease;
|
|
21
|
-
|
|
22
|
-
--tag-bg-default: var(--color-default);
|
|
23
|
-
--tag-fg-default: var(--color-default-foreground);
|
|
24
|
-
--tag-bg-default-hover: var(--color-default-hover);
|
|
25
|
-
--tag-bg-surface: var(--color-surface, var(--color-base-200));
|
|
26
|
-
--tag-fg-surface: var(--color-surface-foreground, var(--color-base-content));
|
|
27
|
-
--tag-bg-surface-hover: var(--color-surface-hover, var(--color-base-300));
|
|
28
|
-
--tag-bg-selected: var(--color-accent-soft);
|
|
29
|
-
--tag-fg-selected: var(--color-accent-soft-foreground);
|
|
30
|
-
--tag-bg-selected-hover: var(--color-accent-soft-hover);
|
|
31
|
-
--tag-bg: var(--tag-bg-default);
|
|
32
|
-
--tag-fg: var(--tag-fg-default);
|
|
33
|
-
--tag-bg-hover: var(--tag-bg-default-hover);
|
|
34
|
-
|
|
35
|
-
background-color: var(--tag-bg);
|
|
36
|
-
color: var(--tag-fg);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.tag__icon {
|
|
40
|
-
display: inline-flex;
|
|
41
|
-
align-items: center;
|
|
42
|
-
justify-content: center;
|
|
43
|
-
flex-shrink: 0;
|
|
44
|
-
pointer-events: none;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.tag__icon > * {
|
|
48
|
-
width: 0.75rem;
|
|
49
|
-
height: 0.75rem;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.tag:is([data-disabled="true"], [aria-disabled="true"]) {
|
|
53
|
-
opacity: 0.5;
|
|
54
|
-
cursor: not-allowed;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.tag:is(:focus-visible, [data-focus-visible]) {
|
|
58
|
-
outline: 2px solid var(--color-accent);
|
|
59
|
-
outline-offset: 2px;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.tag:is([data-selected="true"], [aria-selected="true"]) {
|
|
63
|
-
background-color: var(--tag-bg-selected);
|
|
64
|
-
color: var(--tag-fg-selected);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
@media (hover: hover) {
|
|
68
|
-
.tag:is(:hover, [data-hovered="true"]):not([data-selected="true"]):not([data-disabled="true"]) {
|
|
69
|
-
background-color: var(--tag-bg-hover);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.tag:is([data-selected="true"], [aria-selected="true"]):is(:hover, [data-hovered="true"]) {
|
|
73
|
-
background-color: var(--tag-bg-selected-hover);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.tag--sm {
|
|
78
|
-
padding-inline: 0.5rem;
|
|
79
|
-
padding-block: 0.125rem;
|
|
80
|
-
font-size: 0.75rem;
|
|
81
|
-
line-height: 1rem;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
.tag--md {
|
|
85
|
-
padding-inline: 0.5rem;
|
|
86
|
-
padding-block: 0.25rem;
|
|
87
|
-
font-size: 0.75rem;
|
|
88
|
-
line-height: 1rem;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.tag--lg {
|
|
92
|
-
padding-inline: 0.625rem;
|
|
93
|
-
padding-block: 0.375rem;
|
|
94
|
-
font-size: 0.875rem;
|
|
95
|
-
line-height: 1.25rem;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.tag--default {
|
|
99
|
-
--tag-bg: var(--tag-bg-default);
|
|
100
|
-
--tag-fg: var(--tag-fg-default);
|
|
101
|
-
--tag-bg-hover: var(--tag-bg-default-hover);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.tag--surface {
|
|
105
|
-
--tag-bg: var(--tag-bg-surface);
|
|
106
|
-
--tag-fg: var(--tag-fg-surface);
|
|
107
|
-
--tag-bg-hover: var(--tag-bg-surface-hover);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
.tag__remove-button {
|
|
111
|
-
width: 0.75rem;
|
|
112
|
-
height: 0.75rem;
|
|
113
|
-
color: inherit;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
.tag__remove-button > * {
|
|
117
|
-
width: inherit;
|
|
118
|
-
height: inherit;
|
|
119
|
-
pointer-events: none;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
1
|
+
@layer components {
|
|
2
|
+
.tag {
|
|
3
|
+
--tag-optical-offset: 0.031em;
|
|
4
|
+
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: 0.25rem;
|
|
9
|
+
border-radius: 9999px;
|
|
10
|
+
font-weight: 500;
|
|
11
|
+
user-select: none;
|
|
12
|
+
-webkit-tap-highlight-color: transparent;
|
|
13
|
+
transform-origin: center;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
transition:
|
|
16
|
+
color 100ms ease,
|
|
17
|
+
transform 100ms ease,
|
|
18
|
+
opacity 100ms ease,
|
|
19
|
+
background-color 100ms ease,
|
|
20
|
+
box-shadow 100ms ease;
|
|
21
|
+
|
|
22
|
+
--tag-bg-default: var(--color-default);
|
|
23
|
+
--tag-fg-default: var(--color-default-foreground);
|
|
24
|
+
--tag-bg-default-hover: var(--color-default-hover);
|
|
25
|
+
--tag-bg-surface: var(--color-surface, var(--color-base-200));
|
|
26
|
+
--tag-fg-surface: var(--color-surface-foreground, var(--color-base-content));
|
|
27
|
+
--tag-bg-surface-hover: var(--color-surface-hover, var(--color-base-300));
|
|
28
|
+
--tag-bg-selected: var(--color-accent-soft);
|
|
29
|
+
--tag-fg-selected: var(--color-accent-soft-foreground);
|
|
30
|
+
--tag-bg-selected-hover: var(--color-accent-soft-hover);
|
|
31
|
+
--tag-bg: var(--tag-bg-default);
|
|
32
|
+
--tag-fg: var(--tag-fg-default);
|
|
33
|
+
--tag-bg-hover: var(--tag-bg-default-hover);
|
|
34
|
+
|
|
35
|
+
background-color: var(--tag-bg);
|
|
36
|
+
color: var(--tag-fg);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.tag__icon {
|
|
40
|
+
display: inline-flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
justify-content: center;
|
|
43
|
+
flex-shrink: 0;
|
|
44
|
+
pointer-events: none;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.tag__icon > * {
|
|
48
|
+
width: 0.75rem;
|
|
49
|
+
height: 0.75rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.tag:is([data-disabled="true"], [aria-disabled="true"]) {
|
|
53
|
+
opacity: 0.5;
|
|
54
|
+
cursor: not-allowed;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.tag:is(:focus-visible, [data-focus-visible]) {
|
|
58
|
+
outline: 2px solid var(--color-accent);
|
|
59
|
+
outline-offset: 2px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.tag:is([data-selected="true"], [aria-selected="true"]) {
|
|
63
|
+
background-color: var(--tag-bg-selected);
|
|
64
|
+
color: var(--tag-fg-selected);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
@media (hover: hover) {
|
|
68
|
+
.tag:is(:hover, [data-hovered="true"]):not([data-selected="true"]):not([data-disabled="true"]) {
|
|
69
|
+
background-color: var(--tag-bg-hover);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.tag:is([data-selected="true"], [aria-selected="true"]):is(:hover, [data-hovered="true"]) {
|
|
73
|
+
background-color: var(--tag-bg-selected-hover);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.tag--sm {
|
|
78
|
+
padding-inline: 0.5rem;
|
|
79
|
+
padding-block: 0.125rem;
|
|
80
|
+
font-size: 0.75rem;
|
|
81
|
+
line-height: 1rem;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.tag--md {
|
|
85
|
+
padding-inline: 0.5rem;
|
|
86
|
+
padding-block: 0.25rem;
|
|
87
|
+
font-size: 0.75rem;
|
|
88
|
+
line-height: 1rem;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.tag--lg {
|
|
92
|
+
padding-inline: 0.625rem;
|
|
93
|
+
padding-block: 0.375rem;
|
|
94
|
+
font-size: 0.875rem;
|
|
95
|
+
line-height: 1.25rem;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.tag--default {
|
|
99
|
+
--tag-bg: var(--tag-bg-default);
|
|
100
|
+
--tag-fg: var(--tag-fg-default);
|
|
101
|
+
--tag-bg-hover: var(--tag-bg-default-hover);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.tag--surface {
|
|
105
|
+
--tag-bg: var(--tag-bg-surface);
|
|
106
|
+
--tag-fg: var(--tag-fg-surface);
|
|
107
|
+
--tag-bg-hover: var(--tag-bg-surface-hover);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.tag__remove-button {
|
|
111
|
+
width: 0.75rem;
|
|
112
|
+
height: 0.75rem;
|
|
113
|
+
color: inherit;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.tag__remove-button > * {
|
|
117
|
+
width: inherit;
|
|
118
|
+
height: inherit;
|
|
119
|
+
pointer-events: none;
|
|
120
|
+
}
|
|
121
|
+
}
|