@for-the-people-initiative/design-system 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/README.md +80 -0
- package/dist/css/theme-dark.css +7 -0
- package/dist/css/tokens.css +2315 -0
- package/dist/scss/_tokens.scss +2521 -0
- package/dist/ts/tokens.ts +2441 -0
- package/package.json +80 -0
- package/src/components/Accordion/Accordion.scss +118 -0
- package/src/components/Accordion/Accordion.vue +105 -0
- package/src/components/Accordion/AccordionTab.vue +79 -0
- package/src/components/Alert/Alert.scss +109 -0
- package/src/components/Alert/Alert.vue +79 -0
- package/src/components/AppBar/AppBar.scss +73 -0
- package/src/components/AppBar/AppBar.vue +49 -0
- package/src/components/AtmosphericBackground/AtmosphericBackground.vue +198 -0
- package/src/components/AutoComplete/AutoComplete.scss +282 -0
- package/src/components/AutoComplete/AutoComplete.vue +398 -0
- package/src/components/Avatar/Avatar.scss +191 -0
- package/src/components/Avatar/Avatar.vue +44 -0
- package/src/components/Badge/Badge.scss +84 -0
- package/src/components/Badge/Badge.vue +41 -0
- package/src/components/BlockUI/BlockUI.scss +85 -0
- package/src/components/BlockUI/BlockUI.vue +90 -0
- package/src/components/Breadcrumb/Breadcrumb.scss +84 -0
- package/src/components/Breadcrumb/Breadcrumb.vue +141 -0
- package/src/components/Button/Button.scss +254 -0
- package/src/components/Button/Button.vue +68 -0
- package/src/components/CTA/CTA.scss +92 -0
- package/src/components/CTA/CTA.vue +33 -0
- package/src/components/Calendar/Calendar.scss +330 -0
- package/src/components/Calendar/Calendar.vue +455 -0
- package/src/components/Card/Card.scss +66 -0
- package/src/components/Card/Card.vue +48 -0
- package/src/components/Carousel/Carousel.scss +121 -0
- package/src/components/Carousel/Carousel.vue +191 -0
- package/src/components/Chart/Chart.scss +109 -0
- package/src/components/Chart/Chart.vue +209 -0
- package/src/components/Checkbox/Checkbox.scss +148 -0
- package/src/components/Checkbox/Checkbox.vue +75 -0
- package/src/components/Chip/Chip.scss +83 -0
- package/src/components/Chip/Chip.vue +73 -0
- package/src/components/ColorPicker/ColorPicker.scss +244 -0
- package/src/components/ColorPicker/ColorPicker.vue +411 -0
- package/src/components/Column/Column.scss +87 -0
- package/src/components/Column/Column.vue +45 -0
- package/src/components/ColumnGroup/ColumnGroup.scss +41 -0
- package/src/components/ColumnGroup/ColumnGroup.vue +27 -0
- package/src/components/ColumnGroup/ColumnGroupRow.vue +18 -0
- package/src/components/CommandPalette/CommandPalette.scss +143 -0
- package/src/components/CommandPalette/CommandPalette.vue +165 -0
- package/src/components/ConfirmDialog/ConfirmDialog.scss +177 -0
- package/src/components/ConfirmDialog/ConfirmDialog.vue +162 -0
- package/src/components/ConfirmPopup/ConfirmPopup.scss +180 -0
- package/src/components/ConfirmPopup/ConfirmPopup.vue +185 -0
- package/src/components/ContextMenu/ContextMenu.scss +171 -0
- package/src/components/ContextMenu/ContextMenu.vue +383 -0
- package/src/components/DataTable/DataTable.scss +162 -0
- package/src/components/DataTable/DataTable.vue +225 -0
- package/src/components/DataView/DataView.scss +149 -0
- package/src/components/DataView/DataView.vue +172 -0
- package/src/components/DatePicker/DatePicker.scss +71 -0
- package/src/components/DatePicker/DatePicker.vue +121 -0
- package/src/components/Dialog/Dialog.scss +161 -0
- package/src/components/Dialog/Dialog.vue +245 -0
- package/src/components/Divider/Divider.scss +147 -0
- package/src/components/Divider/Divider.vue +49 -0
- package/src/components/Dock/Dock.scss +221 -0
- package/src/components/Dock/Dock.vue +107 -0
- package/src/components/Drawer/Drawer.scss +220 -0
- package/src/components/Drawer/Drawer.vue +137 -0
- package/src/components/Dropdown/Dropdown.scss +218 -0
- package/src/components/Dropdown/Dropdown.vue +313 -0
- package/src/components/Editor/Editor.scss +156 -0
- package/src/components/Editor/Editor.vue +253 -0
- package/src/components/FAQ/FAQ.scss +24 -0
- package/src/components/FAQ/FAQ.vue +28 -0
- package/src/components/FeatureGrid/FeatureGrid.scss +92 -0
- package/src/components/FeatureGrid/FeatureGrid.vue +39 -0
- package/src/components/FieldSet/FieldSet.scss +97 -0
- package/src/components/FieldSet/FieldSet.vue +70 -0
- package/src/components/FileUpload/FileUpload.scss +137 -0
- package/src/components/FileUpload/FileUpload.vue +183 -0
- package/src/components/Footer/Footer.scss +95 -0
- package/src/components/Footer/Footer.vue +59 -0
- package/src/components/Form/Form.scss +72 -0
- package/src/components/Form/Form.vue +30 -0
- package/src/components/Form/FormField.vue +42 -0
- package/src/components/Galleria/Galleria.scss +295 -0
- package/src/components/Galleria/Galleria.vue +274 -0
- package/src/components/Hero/Hero.scss +116 -0
- package/src/components/Hero/Hero.vue +57 -0
- package/src/components/Image/Image.scss +129 -0
- package/src/components/Image/Image.vue +117 -0
- package/src/components/ImageCompare/ImageCompare.scss +97 -0
- package/src/components/ImageCompare/ImageCompare.vue +66 -0
- package/src/components/InPlace/InPlace.scss +97 -0
- package/src/components/InPlace/InPlace.vue +107 -0
- package/src/components/InlineMessage/InlineMessage.scss +69 -0
- package/src/components/InlineMessage/InlineMessage.vue +47 -0
- package/src/components/InputChips/InputChips.scss +165 -0
- package/src/components/InputChips/InputChips.vue +169 -0
- package/src/components/InputGroup/InputGroup.scss +57 -0
- package/src/components/InputGroup/InputGroup.vue +22 -0
- package/src/components/InputGroupAddon/InputGroupAddon.scss +28 -0
- package/src/components/InputGroupAddon/InputGroupAddon.vue +22 -0
- package/src/components/InputIcon/InputIcon.scss +58 -0
- package/src/components/InputIcon/InputIcon.vue +28 -0
- package/src/components/InputMask/InputMask.scss +65 -0
- package/src/components/InputMask/InputMask.vue +268 -0
- package/src/components/InputNumber/InputNumber.scss +122 -0
- package/src/components/InputNumber/InputNumber.vue +150 -0
- package/src/components/InputOtp/InputOtp.scss +88 -0
- package/src/components/InputOtp/InputOtp.vue +230 -0
- package/src/components/InputSwitch/InputSwitch.scss +131 -0
- package/src/components/InputSwitch/InputSwitch.vue +49 -0
- package/src/components/InputText/InputText.scss +61 -0
- package/src/components/InputText/InputText.vue +71 -0
- package/src/components/Knob/Knob.scss +92 -0
- package/src/components/Knob/Knob.vue +252 -0
- package/src/components/ListBox/ListBox.scss +152 -0
- package/src/components/ListBox/ListBox.vue +198 -0
- package/src/components/LogoCloud/LogoCloud.scss +64 -0
- package/src/components/LogoCloud/LogoCloud.vue +35 -0
- package/src/components/MegaMenu/MegaMenu.scss +280 -0
- package/src/components/MegaMenu/MegaMenu.vue +218 -0
- package/src/components/Menu/Menu.scss +102 -0
- package/src/components/Menu/Menu.vue +221 -0
- package/src/components/MenuBar/MenuBar.scss +208 -0
- package/src/components/MenuBar/MenuBar.vue +306 -0
- package/src/components/Message/Message.scss +126 -0
- package/src/components/Message/Message.vue +99 -0
- package/src/components/MeterGroup/MeterGroup.scss +105 -0
- package/src/components/MeterGroup/MeterGroup.vue +73 -0
- package/src/components/MultiSelect/MultiSelect.scss +239 -0
- package/src/components/MultiSelect/MultiSelect.vue +296 -0
- package/src/components/OrderList/OrderList.scss +133 -0
- package/src/components/OrderList/OrderList.vue +267 -0
- package/src/components/OrganizationChart/OrganizationChart.scss +145 -0
- package/src/components/OrganizationChart/OrganizationChart.vue +220 -0
- package/src/components/OverlayPanel/OverlayPanel.scss +69 -0
- package/src/components/OverlayPanel/OverlayPanel.vue +180 -0
- package/src/components/Paginator/Paginator.scss +130 -0
- package/src/components/Paginator/Paginator.vue +212 -0
- package/src/components/Panel/Panel.scss +113 -0
- package/src/components/Panel/Panel.vue +89 -0
- package/src/components/PanelMenu/PanelMenu.scss +211 -0
- package/src/components/PanelMenu/PanelMenu.vue +295 -0
- package/src/components/ParticleBackground/ParticleBackground.vue +310 -0
- package/src/components/PickList/PickList.scss +126 -0
- package/src/components/PickList/PickList.vue +249 -0
- package/src/components/PopOver/PopOver.scss +112 -0
- package/src/components/PopOver/PopOver.vue +254 -0
- package/src/components/PricingTable/PricingCard.vue +33 -0
- package/src/components/PricingTable/PricingTable.scss +133 -0
- package/src/components/PricingTable/PricingTable.vue +21 -0
- package/src/components/ProgressBar/ProgressBar.scss +58 -0
- package/src/components/ProgressBar/ProgressBar.vue +48 -0
- package/src/components/ProgressSpinner/ProgressSpinner.scss +48 -0
- package/src/components/ProgressSpinner/ProgressSpinner.vue +53 -0
- package/src/components/RadioButton/RadioButton.scss +148 -0
- package/src/components/RadioButton/RadioButton.vue +52 -0
- package/src/components/Rating/Rating.scss +109 -0
- package/src/components/Rating/Rating.vue +136 -0
- package/src/components/Row/Row.scss +38 -0
- package/src/components/Row/Row.vue +30 -0
- package/src/components/ScrollPanel/ScrollPanel.scss +90 -0
- package/src/components/ScrollPanel/ScrollPanel.vue +284 -0
- package/src/components/ScrollTop/ScrollTop.scss +59 -0
- package/src/components/ScrollTop/ScrollTop.vue +99 -0
- package/src/components/Section/Section.scss +58 -0
- package/src/components/Section/Section.vue +39 -0
- package/src/components/Select/Select.scss +98 -0
- package/src/components/Select/Select.vue +92 -0
- package/src/components/SelectButton/SelectButton.scss +65 -0
- package/src/components/SelectButton/SelectButton.vue +144 -0
- package/src/components/Sidebar/Sidebar.scss +170 -0
- package/src/components/Sidebar/Sidebar.vue +137 -0
- package/src/components/Skeleton/Skeleton.scss +43 -0
- package/src/components/Skeleton/Skeleton.vue +57 -0
- package/src/components/Slider/Slider.scss +103 -0
- package/src/components/Slider/Slider.vue +65 -0
- package/src/components/SpeedDial/SpeedDial.scss +217 -0
- package/src/components/SpeedDial/SpeedDial.vue +196 -0
- package/src/components/SplitButton/SplitButton.scss +264 -0
- package/src/components/SplitButton/SplitButton.vue +172 -0
- package/src/components/Splitter/Splitter.scss +95 -0
- package/src/components/Splitter/Splitter.vue +191 -0
- package/src/components/Splitter/SplitterPanel.vue +125 -0
- package/src/components/Stats/Stats.scss +54 -0
- package/src/components/Stats/Stats.vue +28 -0
- package/src/components/Steps/Steps.scss +164 -0
- package/src/components/Steps/Steps.vue +100 -0
- package/src/components/TabMenu/TabMenu.scss +106 -0
- package/src/components/TabMenu/TabMenu.vue +174 -0
- package/src/components/Tabs/TabPanel.vue +41 -0
- package/src/components/Tabs/Tabs.scss +82 -0
- package/src/components/Tabs/Tabs.vue +162 -0
- package/src/components/Tag/Tag.scss +73 -0
- package/src/components/Tag/Tag.vue +37 -0
- package/src/components/Terminal/Terminal.scss +80 -0
- package/src/components/Terminal/Terminal.vue +113 -0
- package/src/components/Testimonial/Testimonial.scss +80 -0
- package/src/components/Testimonial/Testimonial.vue +29 -0
- package/src/components/Textarea/Textarea.scss +65 -0
- package/src/components/Textarea/Textarea.vue +101 -0
- package/src/components/TieredMenu/TieredMenu.scss +146 -0
- package/src/components/TieredMenu/TieredMenu.vue +270 -0
- package/src/components/TieredMenu/TieredMenuSub.vue +132 -0
- package/src/components/Timeline/Timeline.scss +190 -0
- package/src/components/Timeline/Timeline.vue +79 -0
- package/src/components/Toast/Toast.scss +284 -0
- package/src/components/Toast/Toast.vue +162 -0
- package/src/components/ToggleButton/ToggleButton.scss +99 -0
- package/src/components/ToggleButton/ToggleButton.vue +65 -0
- package/src/components/ToggleSwitch/ToggleSwitch.scss +68 -0
- package/src/components/ToggleSwitch/ToggleSwitch.vue +44 -0
- package/src/components/Toolbar/Toolbar.scss +37 -0
- package/src/components/Toolbar/Toolbar.vue +23 -0
- package/src/components/Tooltip/Tooltip.scss +114 -0
- package/src/components/Tooltip/Tooltip.vue +169 -0
- package/src/components/Tree/Tree.scss +164 -0
- package/src/components/Tree/Tree.vue +273 -0
- package/src/components/TreeSelect/TreeSelect.scss +238 -0
- package/src/components/TreeSelect/TreeSelect.vue +401 -0
- package/src/components/TreeTable/TreeTable.scss +172 -0
- package/src/components/TreeTable/TreeTable.vue +285 -0
- package/src/components/VirtualScroller/VirtualScroller.scss +107 -0
- package/src/components/VirtualScroller/VirtualScroller.vue +234 -0
- package/src/scss/fonts.scss +63 -0
- package/src/scss/mixins/accent-gradient.scss +43 -0
- package/src/scss/mixins/border.scss +28 -0
- package/src/scss/mixins/breakpoint.scss +80 -0
- package/src/scss/mixins/container.scss +33 -0
- package/src/scss/mixins/elevation.scss +43 -0
- package/src/scss/mixins/grid.scss +23 -0
- package/src/scss/mixins/levitation.scss +15 -0
- package/src/scss/mixins/list.scss +5 -0
- package/src/scss/mixins/surface-atmospheric.scss +93 -0
- package/src/scss/mixins/surface.scss +19 -0
- package/src/scss/mixins/typography.scss +91 -0
- package/src/scss/utility-classes/utility-classes-spacing.scss +34 -0
- package/src/scss/utility-classes/utility-classes-typography.scss +114 -0
- package/tokens/components/accordion.json +127 -0
- package/tokens/components/autocomplete.json +238 -0
- package/tokens/components/avatar.json +220 -0
- package/tokens/components/badge.json +119 -0
- package/tokens/components/block-ui.json +40 -0
- package/tokens/components/breadcrumb.json +57 -0
- package/tokens/components/button.json +395 -0
- package/tokens/components/calendar.json +260 -0
- package/tokens/components/card.json +157 -0
- package/tokens/components/carousel.json +154 -0
- package/tokens/components/chart.json +132 -0
- package/tokens/components/checkbox.json +130 -0
- package/tokens/components/chip.json +100 -0
- package/tokens/components/color-picker.json +196 -0
- package/tokens/components/column-group.json +45 -0
- package/tokens/components/column.json +109 -0
- package/tokens/components/confirm-dialog.json +141 -0
- package/tokens/components/confirm-popup.json +101 -0
- package/tokens/components/context-menu.json +168 -0
- package/tokens/components/data-table.json +157 -0
- package/tokens/components/data-view.json +172 -0
- package/tokens/components/dialog.json +151 -0
- package/tokens/components/divider.json +45 -0
- package/tokens/components/dock.json +173 -0
- package/tokens/components/drawer.json +163 -0
- package/tokens/components/dropdown.json +230 -0
- package/tokens/components/editor.json +170 -0
- package/tokens/components/field-set.json +115 -0
- package/tokens/components/file-upload.json +193 -0
- package/tokens/components/galleria.json +235 -0
- package/tokens/components/image-compare.json +74 -0
- package/tokens/components/image.json +71 -0
- package/tokens/components/in-place.json +100 -0
- package/tokens/components/inline-message.json +107 -0
- package/tokens/components/input-chips.json +187 -0
- package/tokens/components/input-group-addon.json +47 -0
- package/tokens/components/input-group.json +21 -0
- package/tokens/components/input-icon.json +38 -0
- package/tokens/components/input-mask.json +136 -0
- package/tokens/components/input-number.json +144 -0
- package/tokens/components/input-otp.json +138 -0
- package/tokens/components/input-switch.json +108 -0
- package/tokens/components/input-text.json +136 -0
- package/tokens/components/knob.json +119 -0
- package/tokens/components/listbox.json +166 -0
- package/tokens/components/mega-menu.json +283 -0
- package/tokens/components/menu.json +145 -0
- package/tokens/components/menubar.json +152 -0
- package/tokens/components/message.json +151 -0
- package/tokens/components/meter-group.json +108 -0
- package/tokens/components/multi-select.json +244 -0
- package/tokens/components/order-list.json +193 -0
- package/tokens/components/organization-chart.json +188 -0
- package/tokens/components/overlay-panel.json +94 -0
- package/tokens/components/paginator.json +186 -0
- package/tokens/components/panel.json +120 -0
- package/tokens/components/panelmenu.json +190 -0
- package/tokens/components/picklist.json +187 -0
- package/tokens/components/popover.json +65 -0
- package/tokens/components/progress-bar.json +33 -0
- package/tokens/components/progress-spinner.json +38 -0
- package/tokens/components/radio.json +125 -0
- package/tokens/components/rating.json +76 -0
- package/tokens/components/row.json +62 -0
- package/tokens/components/scroll-panel.json +69 -0
- package/tokens/components/scroll-top.json +84 -0
- package/tokens/components/select-button.json +145 -0
- package/tokens/components/select.json +190 -0
- package/tokens/components/sidebar.json +146 -0
- package/tokens/components/skeleton.json +26 -0
- package/tokens/components/slider.json +82 -0
- package/tokens/components/speed-dial.json +144 -0
- package/tokens/components/split-button.json +316 -0
- package/tokens/components/splitter.json +88 -0
- package/tokens/components/steps.json +154 -0
- package/tokens/components/tabmenu.json +103 -0
- package/tokens/components/tabs.json +97 -0
- package/tokens/components/tag.json +122 -0
- package/tokens/components/terminal.json +100 -0
- package/tokens/components/textarea.json +96 -0
- package/tokens/components/tieredmenu.json +142 -0
- package/tokens/components/timeline.json +129 -0
- package/tokens/components/toast.json +281 -0
- package/tokens/components/toggle-button.json +220 -0
- package/tokens/components/toggle-switch.json +95 -0
- package/tokens/components/toolbar.json +41 -0
- package/tokens/components/tooltip.json +60 -0
- package/tokens/components/tree-select.json +224 -0
- package/tokens/components/tree.json +153 -0
- package/tokens/components/treetable.json +155 -0
- package/tokens/components/virtualscroller.json +95 -0
- package/tokens/primitives/color.json +137 -0
- package/tokens/primitives/radius.json +12 -0
- package/tokens/primitives/shadow.json +29 -0
- package/tokens/primitives/spacing.json +15 -0
- package/tokens/semantics/color.json +81 -0
- package/tokens/semantics/radius.json +10 -0
- package/tokens/semantics/shadow.json +9 -0
- package/tokens/semantics/spacing.json +24 -0
- package/tokens/themes/dark.json +7 -0
- package/tokens/themes/light.json +7 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
@use "../../scss/mixins/accent-gradient.scss" as *;
|
|
3
|
+
|
|
4
|
+
$c: radio;
|
|
5
|
+
|
|
6
|
+
.#{$c} {
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
align-items: flex-start;
|
|
9
|
+
gap: var(--radio-label-gap, $radio-label-gap);
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
user-select: none;
|
|
12
|
+
position: relative;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.#{$c}__input {
|
|
16
|
+
position: absolute;
|
|
17
|
+
opacity: 0;
|
|
18
|
+
width: 0;
|
|
19
|
+
height: 0;
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.#{$c}__circle {
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: center;
|
|
27
|
+
flex-shrink: 0;
|
|
28
|
+
background-color: var(--radio-background-default, $radio-background-default);
|
|
29
|
+
border: var(--radio-border-width, $radio-border-width) solid var(--radio-border-color-default, $radio-border-color-default);
|
|
30
|
+
border-radius: 50%;
|
|
31
|
+
transition: all 0.15s ease;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.#{$c}__dot {
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
background-color: var(--radio-dot-color, $radio-dot-color);
|
|
37
|
+
opacity: 0;
|
|
38
|
+
transform: scale(0);
|
|
39
|
+
transition: all 0.15s ease;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.#{$c}__label {
|
|
43
|
+
color: var(--radio-label-color-default, $radio-label-color-default);
|
|
44
|
+
line-height: 1.4;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
// Hover state
|
|
48
|
+
.#{$c}:hover:not(.#{$c}--disabled) {
|
|
49
|
+
.#{$c}__circle {
|
|
50
|
+
border-color: var(--radio-border-color-hover, $radio-border-color-hover);
|
|
51
|
+
background-color: var(--radio-background-hover, $radio-background-hover);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Focus state
|
|
56
|
+
.#{$c}__input:focus-visible ~ .#{$c}__circle {
|
|
57
|
+
outline: var(--radio-focus-ringWidth, $radio-focus-ringWidth) solid var(--radio-focus-ringColor, $radio-focus-ringColor);
|
|
58
|
+
outline-offset: var(--radio-focus-ringOffset, $radio-focus-ringOffset);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Checked state
|
|
62
|
+
.#{$c}--checked {
|
|
63
|
+
.#{$c}__circle {
|
|
64
|
+
@include accent-gradient();
|
|
65
|
+
border-color: var(--accent-gradient-start, $accent-gradient-start);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.#{$c}__dot {
|
|
69
|
+
opacity: 1;
|
|
70
|
+
transform: scale(1);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
// Disabled state
|
|
75
|
+
.#{$c}--disabled {
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
|
|
78
|
+
.#{$c}__circle {
|
|
79
|
+
background-color: var(--radio-background-disabled, $radio-background-disabled);
|
|
80
|
+
border-color: var(--radio-border-color-disabled, $radio-border-color-disabled);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.#{$c}__label {
|
|
84
|
+
color: var(--radio-label-color-disabled, $radio-label-color-disabled);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.#{$c}--disabled.#{$c}--checked {
|
|
89
|
+
.#{$c}__circle {
|
|
90
|
+
background-color: var(--radio-border-color-disabled, $radio-border-color-disabled);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// Invalid state
|
|
95
|
+
.#{$c}--invalid {
|
|
96
|
+
.#{$c}__circle {
|
|
97
|
+
border-color: var(--radio-border-color-error, $radio-border-color-error);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// Sizes
|
|
102
|
+
.#{$c}--size-sm {
|
|
103
|
+
.#{$c}__circle {
|
|
104
|
+
width: var(--radio-size-sm, $radio-size-sm);
|
|
105
|
+
height: var(--radio-size-sm, $radio-size-sm);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.#{$c}__dot {
|
|
109
|
+
width: var(--radio-dotSize-sm, $radio-dotSize-sm);
|
|
110
|
+
height: var(--radio-dotSize-sm, $radio-dotSize-sm);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.#{$c}__label {
|
|
114
|
+
font-size: 14px;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.#{$c}--size-md {
|
|
119
|
+
.#{$c}__circle {
|
|
120
|
+
width: var(--radio-size-md, $radio-size-md);
|
|
121
|
+
height: var(--radio-size-md, $radio-size-md);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.#{$c}__dot {
|
|
125
|
+
width: var(--radio-dotSize-md, $radio-dotSize-md);
|
|
126
|
+
height: var(--radio-dotSize-md, $radio-dotSize-md);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.#{$c}__label {
|
|
130
|
+
font-size: 15px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.#{$c}--size-lg {
|
|
135
|
+
.#{$c}__circle {
|
|
136
|
+
width: var(--radio-size-lg, $radio-size-lg);
|
|
137
|
+
height: var(--radio-size-lg, $radio-size-lg);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.#{$c}__dot {
|
|
141
|
+
width: var(--radio-dotSize-lg, $radio-dotSize-lg);
|
|
142
|
+
height: var(--radio-dotSize-lg, $radio-dotSize-lg);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.#{$c}__label {
|
|
146
|
+
font-size: 16px;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<label class="radio" :class="additionalClasses">
|
|
3
|
+
<input
|
|
4
|
+
type="radio"
|
|
5
|
+
class="radio__input"
|
|
6
|
+
:checked="isChecked"
|
|
7
|
+
:disabled="isDisabled"
|
|
8
|
+
:name="name"
|
|
9
|
+
:value="value"
|
|
10
|
+
:aria-invalid="isInvalid || undefined"
|
|
11
|
+
@change="onChange"
|
|
12
|
+
/>
|
|
13
|
+
<span class="radio__circle">
|
|
14
|
+
<span class="radio__dot"></span>
|
|
15
|
+
</span>
|
|
16
|
+
<span v-if="label || $slots.default" class="radio__label">
|
|
17
|
+
<slot>{{ label }}</slot>
|
|
18
|
+
</span>
|
|
19
|
+
</label>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<style src="./RadioButton.scss"></style>
|
|
23
|
+
|
|
24
|
+
<script setup lang="ts">
|
|
25
|
+
import type { RadioButtonProps, RadioButtonEmits } from '../../types';
|
|
26
|
+
import { computed } from "vue";
|
|
27
|
+
|
|
28
|
+
defineOptions({ name: 'FtpRadioButton' });
|
|
29
|
+
|
|
30
|
+
const props = withDefaults(defineProps<RadioButtonProps>(), {
|
|
31
|
+
modelValue: null,
|
|
32
|
+
size: "md",
|
|
33
|
+
isDisabled: false,
|
|
34
|
+
isInvalid: false,
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const emit = defineEmits(["update:modelValue", "change"]);
|
|
38
|
+
|
|
39
|
+
const isChecked = computed(() => props.modelValue === props.value);
|
|
40
|
+
|
|
41
|
+
const onChange = (event: Event) => {
|
|
42
|
+
emit("update:modelValue", props.value);
|
|
43
|
+
emit("change", { value: props.value, originalEvent: event });
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const additionalClasses = computed(() => [
|
|
47
|
+
`radio--size-${props.size}`,
|
|
48
|
+
props.isDisabled && "radio--disabled",
|
|
49
|
+
props.isInvalid && "radio--invalid",
|
|
50
|
+
isChecked.value && "radio--checked",
|
|
51
|
+
].filter(Boolean).join(" "));
|
|
52
|
+
</script>
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
|
|
3
|
+
$c: rating;
|
|
4
|
+
|
|
5
|
+
.#{$c} {
|
|
6
|
+
display: inline-flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
gap: var(--rating-star-gap, $rating-star-gap);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.#{$c}__star {
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
justify-content: center;
|
|
15
|
+
padding: 0;
|
|
16
|
+
border: none;
|
|
17
|
+
background: transparent;
|
|
18
|
+
color: var(--rating-star-color-default, $rating-star-color-default);
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
transition: color 0.15s ease, transform 0.15s ease;
|
|
21
|
+
|
|
22
|
+
&:hover:not(:disabled) {
|
|
23
|
+
color: var(--rating-star-color-hover, $rating-star-color-hover);
|
|
24
|
+
transform: scale(1.1);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&:focus-visible {
|
|
28
|
+
outline: var(--rating-focus-ringWidth, $rating-focus-ringWidth) solid var(--rating-focus-ringColor, $rating-focus-ringColor);
|
|
29
|
+
outline-offset: var(--rating-focus-ringOffset, $rating-focus-ringOffset);
|
|
30
|
+
border-radius: 2px;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&:disabled {
|
|
34
|
+
cursor: not-allowed;
|
|
35
|
+
color: var(--rating-star-color-disabled, $rating-star-color-disabled);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.#{$c}__star--active {
|
|
40
|
+
color: var(--rating-star-color-active, $rating-star-color-active);
|
|
41
|
+
|
|
42
|
+
&:hover:not(:disabled) {
|
|
43
|
+
color: var(--rating-star-color-hover, $rating-star-color-hover);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.#{$c}__star--hover {
|
|
48
|
+
color: var(--rating-star-color-hover, $rating-star-color-hover);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.#{$c}__star-icon {
|
|
52
|
+
width: var(--rating-star-size, $rating-star-size);
|
|
53
|
+
height: var(--rating-star-size, $rating-star-size);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.#{$c}__cancel {
|
|
57
|
+
display: inline-flex;
|
|
58
|
+
align-items: center;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
padding: 0;
|
|
61
|
+
border: none;
|
|
62
|
+
background: transparent;
|
|
63
|
+
color: var(--rating-cancel-color-default, $rating-cancel-color-default);
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
transition: color 0.15s ease, transform 0.15s ease;
|
|
66
|
+
|
|
67
|
+
&:hover {
|
|
68
|
+
color: var(--rating-cancel-color-hover, $rating-cancel-color-hover);
|
|
69
|
+
transform: scale(1.1);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:focus-visible {
|
|
73
|
+
outline: var(--rating-focus-ringWidth, $rating-focus-ringWidth) solid var(--rating-focus-ringColor, $rating-focus-ringColor);
|
|
74
|
+
outline-offset: var(--rating-focus-ringOffset, $rating-focus-ringOffset);
|
|
75
|
+
border-radius: 2px;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.#{$c}__cancel-icon {
|
|
80
|
+
width: var(--rating-cancel-size, $rating-cancel-size);
|
|
81
|
+
height: var(--rating-cancel-size, $rating-cancel-size);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
// Readonly state
|
|
85
|
+
.#{$c}--readonly {
|
|
86
|
+
.#{$c}__star {
|
|
87
|
+
cursor: default;
|
|
88
|
+
|
|
89
|
+
&:hover {
|
|
90
|
+
transform: none;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
// Disabled state
|
|
96
|
+
.#{$c}--disabled {
|
|
97
|
+
.#{$c}__star {
|
|
98
|
+
cursor: not-allowed;
|
|
99
|
+
color: var(--rating-star-color-disabled, $rating-star-color-disabled);
|
|
100
|
+
|
|
101
|
+
&:hover {
|
|
102
|
+
transform: none;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.#{$c}__star--active {
|
|
107
|
+
color: var(--rating-star-color-disabledActive, $rating-star-color-disabledActive);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="rating" :class="additionalClasses" role="radiogroup" :aria-label="ariaLabel || 'Rating'">
|
|
3
|
+
<button
|
|
4
|
+
v-if="cancel && !readonly && !isDisabled"
|
|
5
|
+
type="button"
|
|
6
|
+
class="rating__cancel"
|
|
7
|
+
:tabindex="isDisabled ? -1 : 0"
|
|
8
|
+
@click="onCancelClick"
|
|
9
|
+
@keydown.enter.prevent="onCancelClick"
|
|
10
|
+
@keydown.space.prevent="onCancelClick"
|
|
11
|
+
>
|
|
12
|
+
<svg
|
|
13
|
+
class="rating__cancel-icon"
|
|
14
|
+
viewBox="0 0 24 24"
|
|
15
|
+
fill="none"
|
|
16
|
+
stroke="currentColor"
|
|
17
|
+
stroke-width="2"
|
|
18
|
+
stroke-linecap="round"
|
|
19
|
+
stroke-linejoin="round"
|
|
20
|
+
>
|
|
21
|
+
<line x1="18" y1="6" x2="6" y2="18" />
|
|
22
|
+
<line x1="6" y1="6" x2="18" y2="18" />
|
|
23
|
+
</svg>
|
|
24
|
+
</button>
|
|
25
|
+
<button
|
|
26
|
+
v-for="star in stars"
|
|
27
|
+
:key="star"
|
|
28
|
+
type="button"
|
|
29
|
+
class="rating__star"
|
|
30
|
+
:class="{
|
|
31
|
+
'rating__star--active': star <= currentValue,
|
|
32
|
+
'rating__star--hover': !readonly && !isDisabled && star <= hoverValue && hoverValue > 0,
|
|
33
|
+
}"
|
|
34
|
+
:tabindex="readonly || isDisabled ? -1 : 0"
|
|
35
|
+
:disabled="isDisabled"
|
|
36
|
+
role="radio"
|
|
37
|
+
:aria-checked="star === currentValue"
|
|
38
|
+
:aria-label="`${star} of ${stars} stars`"
|
|
39
|
+
@click="onStarClick(star)"
|
|
40
|
+
@mouseenter="onStarHover(star)"
|
|
41
|
+
@mouseleave="onStarLeave"
|
|
42
|
+
@keydown.enter.prevent="onStarClick(star)"
|
|
43
|
+
@keydown.space.prevent="onStarClick(star)"
|
|
44
|
+
@keydown="onStarKeydown($event, star)"
|
|
45
|
+
>
|
|
46
|
+
<svg
|
|
47
|
+
class="rating__star-icon"
|
|
48
|
+
viewBox="0 0 24 24"
|
|
49
|
+
:fill="star <= currentValue ? 'currentColor' : 'none'"
|
|
50
|
+
stroke="currentColor"
|
|
51
|
+
stroke-width="2"
|
|
52
|
+
stroke-linecap="round"
|
|
53
|
+
stroke-linejoin="round"
|
|
54
|
+
>
|
|
55
|
+
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2" />
|
|
56
|
+
</svg>
|
|
57
|
+
</button>
|
|
58
|
+
</div>
|
|
59
|
+
</template>
|
|
60
|
+
|
|
61
|
+
<style src="./Rating.scss"></style>
|
|
62
|
+
|
|
63
|
+
<script setup lang="ts">
|
|
64
|
+
import type { RatingProps, RatingEmits } from '../../types';
|
|
65
|
+
import { computed, ref } from "vue";
|
|
66
|
+
|
|
67
|
+
defineOptions({ name: 'FtpRating' });
|
|
68
|
+
|
|
69
|
+
const props = withDefaults(defineProps<RatingProps>(), {
|
|
70
|
+
modelValue: null,
|
|
71
|
+
stars: 5,
|
|
72
|
+
readonly: false,
|
|
73
|
+
isDisabled: false,
|
|
74
|
+
cancel: true,
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
const emit = defineEmits(["update:modelValue", "change"]);
|
|
78
|
+
|
|
79
|
+
const hoverValue = ref(0);
|
|
80
|
+
|
|
81
|
+
const currentValue = computed(() => props.modelValue ?? 0);
|
|
82
|
+
|
|
83
|
+
const onStarClick = (value: any) => {
|
|
84
|
+
if (props.readonly || props.isDisabled) return;
|
|
85
|
+
|
|
86
|
+
// Toggle behavior: clicking the same value deselects
|
|
87
|
+
const newValue = value === props.modelValue ? null : value;
|
|
88
|
+
emit("update:modelValue", newValue);
|
|
89
|
+
emit("change", { value: newValue });
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const onCancelClick = () => {
|
|
93
|
+
if (props.readonly || props.isDisabled) return;
|
|
94
|
+
emit("update:modelValue", null);
|
|
95
|
+
emit("change", { value: null });
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const onStarKeydown = (event: KeyboardEvent, star: any) => {
|
|
99
|
+
if (props.readonly || props.isDisabled) return;
|
|
100
|
+
let newValue = star;
|
|
101
|
+
switch (event.key) {
|
|
102
|
+
case "ArrowRight":
|
|
103
|
+
case "ArrowUp":
|
|
104
|
+
event.preventDefault();
|
|
105
|
+
newValue = Math.min(star + 1, props.stars);
|
|
106
|
+
break;
|
|
107
|
+
case "ArrowLeft":
|
|
108
|
+
case "ArrowDown":
|
|
109
|
+
event.preventDefault();
|
|
110
|
+
newValue = Math.max(star - 1, 1);
|
|
111
|
+
break;
|
|
112
|
+
default:
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
emit("update:modelValue", newValue);
|
|
116
|
+
emit("change", { value: newValue });
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
const onStarHover = (value: any) => {
|
|
120
|
+
if (props.readonly || props.isDisabled) return;
|
|
121
|
+
hoverValue.value = value;
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const onStarLeave = () => {
|
|
125
|
+
hoverValue.value = 0;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
const additionalClasses = computed(() =>
|
|
129
|
+
[
|
|
130
|
+
props.readonly && "rating--readonly",
|
|
131
|
+
props.isDisabled && "rating--disabled",
|
|
132
|
+
]
|
|
133
|
+
.filter(Boolean)
|
|
134
|
+
.join(" ")
|
|
135
|
+
);
|
|
136
|
+
</script>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
|
|
3
|
+
$c: row;
|
|
4
|
+
|
|
5
|
+
.#{$c} {
|
|
6
|
+
background-color: var(--row-background-default, $row-background-default);
|
|
7
|
+
color: var(--row-text-default, $row-text-default);
|
|
8
|
+
border-bottom: var(--row-border-width, $row-border-width) solid var(--row-border-color, $row-border-color);
|
|
9
|
+
min-height: var(--row-height, $row-height);
|
|
10
|
+
transition: background-color 0.15s ease;
|
|
11
|
+
|
|
12
|
+
> td,
|
|
13
|
+
> th {
|
|
14
|
+
padding: var(--row-padding-y, $row-padding-y) var(--row-padding-x, $row-padding-x);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.#{$c}--hoverable {
|
|
19
|
+
&:hover {
|
|
20
|
+
background-color: var(--row-background-hover, $row-background-hover);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.#{$c}--selected {
|
|
25
|
+
background-color: var(--row-background-selected, $row-background-selected);
|
|
26
|
+
|
|
27
|
+
&:hover {
|
|
28
|
+
background-color: var(--row-background-selected, $row-background-selected);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.#{$c}--striped {
|
|
33
|
+
background-color: var(--row-background-striped, $row-background-striped);
|
|
34
|
+
|
|
35
|
+
&:hover {
|
|
36
|
+
background-color: var(--row-background-hover, $row-background-hover);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<tr class="row" :class="additionalClasses">
|
|
3
|
+
<slot />
|
|
4
|
+
</tr>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<style src="./Row.scss"></style>
|
|
8
|
+
|
|
9
|
+
<script setup lang="ts">
|
|
10
|
+
import type { RowProps } from '../../types';
|
|
11
|
+
import { computed } from "vue";
|
|
12
|
+
|
|
13
|
+
defineOptions({ name: 'FtpRow' });
|
|
14
|
+
|
|
15
|
+
const props = withDefaults(defineProps<RowProps>(), {
|
|
16
|
+
isSelected: false,
|
|
17
|
+
isStriped: false,
|
|
18
|
+
isHoverable: true,
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
const additionalClasses = computed(() =>
|
|
22
|
+
[
|
|
23
|
+
props.isSelected && "row--selected",
|
|
24
|
+
props.isStriped && "row--striped",
|
|
25
|
+
props.isHoverable && "row--hoverable",
|
|
26
|
+
]
|
|
27
|
+
.filter(Boolean)
|
|
28
|
+
.join(" ")
|
|
29
|
+
);
|
|
30
|
+
</script>
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
|
|
3
|
+
$c: scroll-panel;
|
|
4
|
+
|
|
5
|
+
.#{$c} {
|
|
6
|
+
position: relative;
|
|
7
|
+
overflow: hidden;
|
|
8
|
+
background-color: var(--scroll-panel-background, $scroll-panel-background);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Content area (hides native scrollbars)
|
|
12
|
+
.#{$c}__content {
|
|
13
|
+
width: 100%;
|
|
14
|
+
height: 100%;
|
|
15
|
+
overflow: auto;
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
|
|
18
|
+
// Hide native scrollbars
|
|
19
|
+
scrollbar-width: none; // Firefox
|
|
20
|
+
-ms-overflow-style: none; // IE/Edge
|
|
21
|
+
|
|
22
|
+
&::-webkit-scrollbar {
|
|
23
|
+
display: none; // Chrome/Safari/Opera
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// Scrollbar track
|
|
28
|
+
.#{$c}__bar {
|
|
29
|
+
position: absolute;
|
|
30
|
+
opacity: 0;
|
|
31
|
+
transition: opacity var(--scroll-panel-transition-duration, $scroll-panel-transition-duration) ease;
|
|
32
|
+
z-index: 1;
|
|
33
|
+
background-color: var(--scroll-panel-scrollbar-track-background, $scroll-panel-scrollbar-track-background);
|
|
34
|
+
|
|
35
|
+
// Show on hover or when dragging
|
|
36
|
+
.#{$c}:hover &,
|
|
37
|
+
&--dragging {
|
|
38
|
+
opacity: 1;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.#{$c}__bar--vertical {
|
|
43
|
+
top: var(--scroll-panel-scrollbar-padding, $scroll-panel-scrollbar-padding);
|
|
44
|
+
right: var(--scroll-panel-scrollbar-padding, $scroll-panel-scrollbar-padding);
|
|
45
|
+
bottom: var(--scroll-panel-scrollbar-padding, $scroll-panel-scrollbar-padding);
|
|
46
|
+
width: var(--scroll-panel-scrollbar-size, $scroll-panel-scrollbar-size);
|
|
47
|
+
border-radius: var(--scroll-panel-scrollbar-track-radius, $scroll-panel-scrollbar-track-radius);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.#{$c}__bar--horizontal {
|
|
51
|
+
left: var(--scroll-panel-scrollbar-padding, $scroll-panel-scrollbar-padding);
|
|
52
|
+
right: var(--scroll-panel-scrollbar-padding, $scroll-panel-scrollbar-padding);
|
|
53
|
+
bottom: var(--scroll-panel-scrollbar-padding, $scroll-panel-scrollbar-padding);
|
|
54
|
+
height: var(--scroll-panel-scrollbar-size, $scroll-panel-scrollbar-size);
|
|
55
|
+
border-radius: var(--scroll-panel-scrollbar-track-radius, $scroll-panel-scrollbar-track-radius);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
// Scrollbar thumb
|
|
59
|
+
.#{$c}__thumb {
|
|
60
|
+
position: absolute;
|
|
61
|
+
background-color: var(--scroll-panel-scrollbar-thumb-background-default, $scroll-panel-scrollbar-thumb-background-default);
|
|
62
|
+
border-radius: var(--scroll-panel-scrollbar-thumb-radius, $scroll-panel-scrollbar-thumb-radius);
|
|
63
|
+
cursor: pointer;
|
|
64
|
+
transition: background-color var(--scroll-panel-transition-duration, $scroll-panel-transition-duration) ease;
|
|
65
|
+
|
|
66
|
+
&:hover {
|
|
67
|
+
background-color: var(--scroll-panel-scrollbar-thumb-background-hover, $scroll-panel-scrollbar-thumb-background-hover);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&:active {
|
|
71
|
+
background-color: var(--scroll-panel-scrollbar-thumb-background-active, $scroll-panel-scrollbar-thumb-background-active);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&:focus-visible {
|
|
75
|
+
outline: 2px solid var(--focus-ring, $focus-ring);
|
|
76
|
+
outline-offset: 2px;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Vertical thumb
|
|
80
|
+
.#{$c}__bar--vertical & {
|
|
81
|
+
width: 100%;
|
|
82
|
+
min-height: var(--scroll-panel-scrollbar-thumb-minSize, $scroll-panel-scrollbar-thumb-minSize);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// Horizontal thumb
|
|
86
|
+
.#{$c}__bar--horizontal & {
|
|
87
|
+
height: 100%;
|
|
88
|
+
min-width: var(--scroll-panel-scrollbar-thumb-minSize, $scroll-panel-scrollbar-thumb-minSize);
|
|
89
|
+
}
|
|
90
|
+
}
|