@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,80 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
|
|
3
|
+
$c: terminal;
|
|
4
|
+
|
|
5
|
+
.#{$c} {
|
|
6
|
+
background-color: var(--terminal-background, $terminal-background);
|
|
7
|
+
border: var(--terminal-border-width, $terminal-border-width) solid var(--terminal-border-color, $terminal-border-color);
|
|
8
|
+
border-radius: var(--terminal-border-radius, $terminal-border-radius);
|
|
9
|
+
padding: var(--terminal-padding, $terminal-padding);
|
|
10
|
+
font-family: var(--terminal-font-family, $terminal-font-family);
|
|
11
|
+
font-size: var(--terminal-font-size, $terminal-font-size);
|
|
12
|
+
line-height: var(--terminal-font-lineHeight, $terminal-font-lineHeight);
|
|
13
|
+
color: var(--terminal-text-color, $terminal-text-color);
|
|
14
|
+
cursor: text;
|
|
15
|
+
overflow: hidden;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.#{$c}__content {
|
|
19
|
+
max-height: 400px;
|
|
20
|
+
overflow-y: auto;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.#{$c}__welcome {
|
|
24
|
+
color: var(--terminal-welcome-color, $terminal-welcome-color);
|
|
25
|
+
margin-bottom: var(--terminal-welcome-marginBottom, $terminal-welcome-marginBottom);
|
|
26
|
+
white-space: pre-wrap;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.#{$c}__command {
|
|
30
|
+
margin-bottom: var(--terminal-command-gap, $terminal-command-gap);
|
|
31
|
+
|
|
32
|
+
&:last-child {
|
|
33
|
+
margin-bottom: 0;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.#{$c}__line {
|
|
38
|
+
display: flex;
|
|
39
|
+
align-items: center;
|
|
40
|
+
gap: var(--terminal-prompt-gap, $terminal-prompt-gap);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.#{$c}__line--input {
|
|
44
|
+
margin-top: var(--terminal-command-gap, $terminal-command-gap);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.#{$c}__prompt {
|
|
48
|
+
color: var(--terminal-prompt-color, $terminal-prompt-color);
|
|
49
|
+
flex-shrink: 0;
|
|
50
|
+
font-weight: 600;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.#{$c}__text {
|
|
54
|
+
color: var(--terminal-text-color, $terminal-text-color);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.#{$c}__response {
|
|
58
|
+
color: var(--terminal-response-color, $terminal-response-color);
|
|
59
|
+
padding-left: calc(1ch + var(--terminal-prompt-gap, $terminal-prompt-gap));
|
|
60
|
+
white-space: pre-wrap;
|
|
61
|
+
word-break: break-word;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.#{$c}__input {
|
|
65
|
+
flex: 1;
|
|
66
|
+
background: transparent;
|
|
67
|
+
border: none;
|
|
68
|
+
outline: none;
|
|
69
|
+
color: var(--terminal-text-color, $terminal-text-color);
|
|
70
|
+
font-family: inherit;
|
|
71
|
+
font-size: inherit;
|
|
72
|
+
line-height: inherit;
|
|
73
|
+
padding: 0;
|
|
74
|
+
margin: 0;
|
|
75
|
+
caret-color: var(--terminal-input-caretColor, $terminal-input-caretColor);
|
|
76
|
+
|
|
77
|
+
&::placeholder {
|
|
78
|
+
color: var(--terminal-welcome-color, $terminal-welcome-color);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="terminal" @click="focusInput">
|
|
3
|
+
<div v-if="welcomeMessage" class="terminal__welcome">
|
|
4
|
+
{{ welcomeMessage }}
|
|
5
|
+
</div>
|
|
6
|
+
<div class="terminal__content" ref="contentRef">
|
|
7
|
+
<div
|
|
8
|
+
v-for="(cmd, index) in commands"
|
|
9
|
+
:key="index"
|
|
10
|
+
class="terminal__command"
|
|
11
|
+
>
|
|
12
|
+
<div class="terminal__line">
|
|
13
|
+
<span class="terminal__prompt">{{ prompt }}</span>
|
|
14
|
+
<span class="terminal__text">{{ cmd.text }}</span>
|
|
15
|
+
</div>
|
|
16
|
+
<div
|
|
17
|
+
v-if="cmd.response"
|
|
18
|
+
class="terminal__response"
|
|
19
|
+
aria-live="polite"
|
|
20
|
+
>
|
|
21
|
+
{{ cmd.response }}
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="terminal__line terminal__line--input">
|
|
25
|
+
<span class="terminal__prompt">{{ prompt }}</span>
|
|
26
|
+
<input
|
|
27
|
+
ref="inputRef"
|
|
28
|
+
v-model="currentCommand"
|
|
29
|
+
type="text"
|
|
30
|
+
class="terminal__input"
|
|
31
|
+
:aria-label="ariaLabel"
|
|
32
|
+
@keydown.enter="executeCommand"
|
|
33
|
+
/>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<style src="./Terminal.scss"></style>
|
|
40
|
+
|
|
41
|
+
<script setup lang="ts">
|
|
42
|
+
import type { TerminalProps, TerminalEmits } from '../../types';
|
|
43
|
+
import { ref, nextTick, onMounted } from "vue";
|
|
44
|
+
|
|
45
|
+
defineOptions({ name: 'FtpTerminal' });
|
|
46
|
+
|
|
47
|
+
const props = withDefaults(defineProps<TerminalProps>(), {
|
|
48
|
+
prompt: "$",
|
|
49
|
+
welcomeMessage: null,
|
|
50
|
+
ariaLabel: "Terminal input",
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
const emit = defineEmits(["command"]);
|
|
54
|
+
|
|
55
|
+
const commands = ref<any[]>([]);
|
|
56
|
+
const currentCommand = ref("");
|
|
57
|
+
const inputRef = ref<HTMLInputElement | null>(null);
|
|
58
|
+
const contentRef = ref<HTMLElement | null>(null);
|
|
59
|
+
|
|
60
|
+
const focusInput = () => {
|
|
61
|
+
inputRef.value?.focus();
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
const executeCommand = () => {
|
|
65
|
+
const text = currentCommand.value.trim();
|
|
66
|
+
if (!text) return;
|
|
67
|
+
|
|
68
|
+
const command = {
|
|
69
|
+
text,
|
|
70
|
+
response: null
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
commands.value.push(command);
|
|
74
|
+
currentCommand.value = "";
|
|
75
|
+
|
|
76
|
+
emit("command", text, (response: any) => {
|
|
77
|
+
command.response = response;
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
nextTick(() => {
|
|
81
|
+
scrollToBottom();
|
|
82
|
+
});
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const scrollToBottom = () => {
|
|
86
|
+
if (contentRef.value) {
|
|
87
|
+
contentRef.value.scrollTop = contentRef.value.scrollHeight;
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
const addResponse = (response: any) => {
|
|
92
|
+
if (commands.value.length > 0) {
|
|
93
|
+
commands.value[commands.value.length - 1].response = response;
|
|
94
|
+
nextTick(() => {
|
|
95
|
+
scrollToBottom();
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
};
|
|
99
|
+
|
|
100
|
+
const clear = () => {
|
|
101
|
+
commands.value = [];
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
onMounted(() => {
|
|
105
|
+
focusInput();
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
defineExpose({
|
|
109
|
+
addResponse,
|
|
110
|
+
clear,
|
|
111
|
+
focusInput
|
|
112
|
+
});
|
|
113
|
+
</script>
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
@use "../../scss/mixins/accent-gradient.scss" as *;
|
|
3
|
+
|
|
4
|
+
$c: testimonial;
|
|
5
|
+
|
|
6
|
+
.#{$c} {
|
|
7
|
+
margin: 0;
|
|
8
|
+
display: flex;
|
|
9
|
+
flex-direction: column;
|
|
10
|
+
gap: 1.5rem;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.#{$c}--card {
|
|
14
|
+
background-color: $surface-panel;
|
|
15
|
+
border: 1px solid $border-subtle;
|
|
16
|
+
border-radius: $radius-large;
|
|
17
|
+
padding: 2rem;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.#{$c}--minimal {
|
|
21
|
+
padding: 1rem 0;
|
|
22
|
+
border-left: 3px solid;
|
|
23
|
+
border-image: linear-gradient(180deg, $accent-gradient-start, $accent-gradient-end) 1;
|
|
24
|
+
padding-left: 1.5rem;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.#{$c}__rating {
|
|
28
|
+
display: flex;
|
|
29
|
+
gap: 0.125rem;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.#{$c}__star {
|
|
33
|
+
font-size: 1.125rem;
|
|
34
|
+
color: $text-muted;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.#{$c}__star--filled {
|
|
38
|
+
@include accent-gradient-text();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.#{$c}__quote {
|
|
42
|
+
font-size: 1.0625rem;
|
|
43
|
+
line-height: 1.7;
|
|
44
|
+
color: $text-secondary;
|
|
45
|
+
margin: 0;
|
|
46
|
+
font-style: italic;
|
|
47
|
+
|
|
48
|
+
&::before { content: "\201C"; }
|
|
49
|
+
&::after { content: "\201D"; }
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.#{$c}__author {
|
|
53
|
+
display: flex;
|
|
54
|
+
align-items: center;
|
|
55
|
+
gap: 0.875rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.#{$c}__avatar {
|
|
59
|
+
width: 3rem;
|
|
60
|
+
height: 3rem;
|
|
61
|
+
border-radius: $radius-pill;
|
|
62
|
+
object-fit: cover;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.#{$c}__info {
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.#{$c}__name {
|
|
71
|
+
font-style: normal;
|
|
72
|
+
font-weight: 600;
|
|
73
|
+
color: $text-heading;
|
|
74
|
+
font-size: 0.9375rem;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.#{$c}__role {
|
|
78
|
+
font-size: 0.8125rem;
|
|
79
|
+
color: $text-muted;
|
|
80
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<blockquote class="testimonial" :class="`testimonial--${variant}`">
|
|
3
|
+
<div v-if="rating" class="testimonial__rating" :aria-label="`${rating} out of 5 stars`">
|
|
4
|
+
<span v-for="i in 5" :key="i" class="testimonial__star" :class="{ 'testimonial__star--filled': i <= rating }">★</span>
|
|
5
|
+
</div>
|
|
6
|
+
<p class="testimonial__quote">{{ quote }}</p>
|
|
7
|
+
<footer class="testimonial__author">
|
|
8
|
+
<img v-if="avatar" :src="avatar" :alt="author" class="testimonial__avatar" />
|
|
9
|
+
<div class="testimonial__info">
|
|
10
|
+
<cite class="testimonial__name">{{ author }}</cite>
|
|
11
|
+
<span v-if="role || company" class="testimonial__role">
|
|
12
|
+
{{ role }}<template v-if="role && company">, </template>{{ company }}
|
|
13
|
+
</span>
|
|
14
|
+
</div>
|
|
15
|
+
</footer>
|
|
16
|
+
</blockquote>
|
|
17
|
+
</template>
|
|
18
|
+
|
|
19
|
+
<style src="./Testimonial.scss"></style>
|
|
20
|
+
|
|
21
|
+
<script setup lang="ts">
|
|
22
|
+
import type { TestimonialProps } from '../../types';
|
|
23
|
+
|
|
24
|
+
defineOptions({ name: 'FtpTestimonial' });
|
|
25
|
+
|
|
26
|
+
withDefaults(defineProps<TestimonialProps>(), {
|
|
27
|
+
variant: 'card',
|
|
28
|
+
});
|
|
29
|
+
</script>
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
|
|
3
|
+
$c: textarea;
|
|
4
|
+
|
|
5
|
+
.#{$c} {
|
|
6
|
+
display: block;
|
|
7
|
+
width: 100%;
|
|
8
|
+
min-height: var(--textarea-minHeight, $textarea-minHeight);
|
|
9
|
+
padding: var(--textarea-padding-y, $textarea-padding-y) var(--textarea-padding-x, $textarea-padding-x);
|
|
10
|
+
font-family: inherit;
|
|
11
|
+
font-size: var(--textarea-fontSize, $textarea-fontSize);
|
|
12
|
+
line-height: var(--textarea-lineHeight, $textarea-lineHeight);
|
|
13
|
+
color: var(--textarea-text-default, $textarea-text-default);
|
|
14
|
+
background-color: var(--textarea-background-default, $textarea-background-default);
|
|
15
|
+
border: var(--textarea-border-width, $textarea-border-width) solid var(--textarea-border-color-default, $textarea-border-color-default);
|
|
16
|
+
border-radius: var(--textarea-radius, $textarea-radius);
|
|
17
|
+
resize: vertical;
|
|
18
|
+
transition: border-color 0.15s ease, outline 0.15s ease;
|
|
19
|
+
|
|
20
|
+
&::placeholder {
|
|
21
|
+
color: var(--textarea-text-placeholder, $textarea-text-placeholder);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:hover:not(:disabled) {
|
|
25
|
+
border-color: var(--textarea-border-color-hover, $textarea-border-color-hover);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&:focus {
|
|
29
|
+
outline: var(--textarea-focus-ringWidth, $textarea-focus-ringWidth) solid var(--textarea-focus-ringColor, $textarea-focus-ringColor);
|
|
30
|
+
outline-offset: var(--textarea-focus-ringOffset, $textarea-focus-ringOffset);
|
|
31
|
+
border-color: var(--textarea-border-color-focus, $textarea-border-color-focus);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:disabled {
|
|
35
|
+
cursor: not-allowed;
|
|
36
|
+
background-color: var(--textarea-background-disabled, $textarea-background-disabled);
|
|
37
|
+
border-color: var(--textarea-border-color-disabled, $textarea-border-color-disabled);
|
|
38
|
+
color: var(--textarea-text-disabled, $textarea-text-disabled);
|
|
39
|
+
resize: none;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Disabled state modifier
|
|
44
|
+
.#{$c}--disabled {
|
|
45
|
+
cursor: not-allowed;
|
|
46
|
+
background-color: var(--textarea-background-disabled, $textarea-background-disabled);
|
|
47
|
+
border-color: var(--textarea-border-color-disabled, $textarea-border-color-disabled);
|
|
48
|
+
color: var(--textarea-text-disabled, $textarea-text-disabled);
|
|
49
|
+
resize: none;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// Invalid state modifier
|
|
53
|
+
.#{$c}--invalid {
|
|
54
|
+
border-color: var(--textarea-border-color-error, $textarea-border-color-error);
|
|
55
|
+
|
|
56
|
+
&:focus {
|
|
57
|
+
border-color: var(--textarea-border-color-error, $textarea-border-color-error);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Auto-resize modifier
|
|
62
|
+
.#{$c}--auto-resize {
|
|
63
|
+
resize: none;
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<textarea
|
|
3
|
+
ref="textareaRef"
|
|
4
|
+
class="textarea"
|
|
5
|
+
:class="additionalClasses"
|
|
6
|
+
:value="modelValue"
|
|
7
|
+
:rows="rows"
|
|
8
|
+
:cols="cols"
|
|
9
|
+
:placeholder="placeholder"
|
|
10
|
+
:disabled="isDisabled"
|
|
11
|
+
:aria-invalid="isInvalid || undefined"
|
|
12
|
+
:aria-describedby="ariaDescribedby || undefined"
|
|
13
|
+
@input="onInput"
|
|
14
|
+
></textarea>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<style src="./Textarea.scss"></style>
|
|
18
|
+
|
|
19
|
+
<script setup lang="ts">
|
|
20
|
+
import type { TextareaProps, TextareaEmits } from '../../types';
|
|
21
|
+
import { computed, ref, watch, onMounted, onUpdated, onBeforeUnmount, nextTick } from "vue";
|
|
22
|
+
|
|
23
|
+
defineOptions({ name: 'FtpTextarea' });
|
|
24
|
+
|
|
25
|
+
const props = withDefaults(defineProps<TextareaProps>(), {
|
|
26
|
+
modelValue: "",
|
|
27
|
+
rows: 3,
|
|
28
|
+
cols: undefined,
|
|
29
|
+
placeholder: "",
|
|
30
|
+
isDisabled: false,
|
|
31
|
+
isInvalid: false,
|
|
32
|
+
autoResize: false,
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
const emit = defineEmits(["update:modelValue", "input"]);
|
|
36
|
+
|
|
37
|
+
const textareaRef = ref<HTMLTextAreaElement | null>(null);
|
|
38
|
+
let resizeObserver: ResizeObserver | null = null;
|
|
39
|
+
|
|
40
|
+
const resize = () => {
|
|
41
|
+
if (!textareaRef.value || !props.autoResize) return;
|
|
42
|
+
|
|
43
|
+
const textarea = textareaRef.value;
|
|
44
|
+
textarea.style.height = "auto";
|
|
45
|
+
textarea.style.height = `${textarea.scrollHeight}px`;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
const onInput = (event: Event) => {
|
|
49
|
+
const value = (event.target as HTMLTextAreaElement).value;
|
|
50
|
+
emit("update:modelValue", value);
|
|
51
|
+
emit("input", { value, originalEvent: event });
|
|
52
|
+
|
|
53
|
+
if (props.autoResize) {
|
|
54
|
+
nextTick(resize);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const additionalClasses = computed(() =>
|
|
59
|
+
[
|
|
60
|
+
props.isDisabled && "textarea--disabled",
|
|
61
|
+
props.isInvalid && "textarea--invalid",
|
|
62
|
+
props.autoResize && "textarea--auto-resize",
|
|
63
|
+
]
|
|
64
|
+
.filter(Boolean)
|
|
65
|
+
.join(" ")
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
onMounted(() => {
|
|
69
|
+
if (props.autoResize) {
|
|
70
|
+
resize();
|
|
71
|
+
resizeObserver = new ResizeObserver(() => {
|
|
72
|
+
requestAnimationFrame(resize);
|
|
73
|
+
});
|
|
74
|
+
if (textareaRef.value) {
|
|
75
|
+
resizeObserver.observe(textareaRef.value);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
onUpdated(() => {
|
|
81
|
+
if (props.autoResize) {
|
|
82
|
+
resize();
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
onBeforeUnmount(() => {
|
|
87
|
+
if (resizeObserver) {
|
|
88
|
+
resizeObserver.disconnect();
|
|
89
|
+
resizeObserver = null;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
watch(
|
|
94
|
+
() => props.modelValue,
|
|
95
|
+
() => {
|
|
96
|
+
if (props.autoResize) {
|
|
97
|
+
nextTick(resize);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
</script>
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
|
|
3
|
+
$c: tieredmenu;
|
|
4
|
+
|
|
5
|
+
.#{$c} {
|
|
6
|
+
min-width: var(--tieredmenu-minWidth, $tieredmenu-minWidth);
|
|
7
|
+
background-color: var(--tieredmenu-background, $tieredmenu-background);
|
|
8
|
+
padding: var(--tieredmenu-padding, $tieredmenu-padding);
|
|
9
|
+
border: var(--tieredmenu-border-width, $tieredmenu-border-width) solid var(--tieredmenu-border-color, $tieredmenu-border-color);
|
|
10
|
+
border-radius: var(--tieredmenu-border-radius, $tieredmenu-border-radius);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.#{$c}--popup {
|
|
14
|
+
position: absolute;
|
|
15
|
+
z-index: 1000;
|
|
16
|
+
box-shadow: var(--tieredmenu-shadow, $tieredmenu-shadow);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.#{$c}__list {
|
|
20
|
+
margin: 0;
|
|
21
|
+
padding: 0;
|
|
22
|
+
list-style: none;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.#{$c}__item {
|
|
26
|
+
position: relative;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.#{$c}__link {
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: center;
|
|
32
|
+
width: 100%;
|
|
33
|
+
gap: var(--tieredmenu-item-gap, $tieredmenu-item-gap);
|
|
34
|
+
padding: var(--tieredmenu-item-padding, $tieredmenu-item-padding);
|
|
35
|
+
background-color: var(--tieredmenu-item-background-default, $tieredmenu-item-background-default);
|
|
36
|
+
color: var(--tieredmenu-item-color-default, $tieredmenu-item-color-default);
|
|
37
|
+
border: none;
|
|
38
|
+
border-radius: var(--tieredmenu-item-borderRadius, $tieredmenu-item-borderRadius);
|
|
39
|
+
text-decoration: none;
|
|
40
|
+
font-family: inherit;
|
|
41
|
+
font-size: inherit;
|
|
42
|
+
text-align: left;
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
transition: background-color var(--tieredmenu-transition-duration, $tieredmenu-transition-duration) ease,
|
|
45
|
+
color var(--tieredmenu-transition-duration, $tieredmenu-transition-duration) ease;
|
|
46
|
+
|
|
47
|
+
&:hover:not(:disabled):not([aria-disabled="true"]) {
|
|
48
|
+
background-color: var(--tieredmenu-item-background-hover, $tieredmenu-item-background-hover);
|
|
49
|
+
color: var(--tieredmenu-item-color-hover, $tieredmenu-item-color-hover);
|
|
50
|
+
|
|
51
|
+
.#{$c}__icon {
|
|
52
|
+
color: var(--tieredmenu-icon-color-hover, $tieredmenu-icon-color-hover);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&:focus {
|
|
57
|
+
outline: none;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&:focus-visible {
|
|
61
|
+
outline: 2px solid var(--tieredmenu-item-color-active, $tieredmenu-item-color-active);
|
|
62
|
+
outline-offset: -2px;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&:disabled,
|
|
66
|
+
&[aria-disabled="true"] {
|
|
67
|
+
cursor: not-allowed;
|
|
68
|
+
color: var(--tieredmenu-item-color-disabled, $tieredmenu-item-color-disabled);
|
|
69
|
+
pointer-events: none;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.#{$c}__item--active > .#{$c}__link {
|
|
74
|
+
background-color: var(--tieredmenu-item-background-active, $tieredmenu-item-background-active);
|
|
75
|
+
color: var(--tieredmenu-item-color-active, $tieredmenu-item-color-active);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.#{$c}__item--disabled > .#{$c}__link {
|
|
79
|
+
cursor: not-allowed;
|
|
80
|
+
color: var(--tieredmenu-item-color-disabled, $tieredmenu-item-color-disabled);
|
|
81
|
+
pointer-events: none;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.#{$c}__icon {
|
|
85
|
+
width: var(--tieredmenu-icon-size, $tieredmenu-icon-size);
|
|
86
|
+
height: var(--tieredmenu-icon-size, $tieredmenu-icon-size);
|
|
87
|
+
color: var(--tieredmenu-icon-color-default, $tieredmenu-icon-color-default);
|
|
88
|
+
flex-shrink: 0;
|
|
89
|
+
transition: color var(--tieredmenu-transition-duration, $tieredmenu-transition-duration) ease;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.#{$c}__label {
|
|
93
|
+
flex: 1;
|
|
94
|
+
white-space: nowrap;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.#{$c}__chevron {
|
|
98
|
+
width: 12px;
|
|
99
|
+
height: 12px;
|
|
100
|
+
margin-left: auto;
|
|
101
|
+
color: var(--tieredmenu-icon-color-default, $tieredmenu-icon-color-default);
|
|
102
|
+
flex-shrink: 0;
|
|
103
|
+
opacity: 0.6;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// Submenu (flyout)
|
|
107
|
+
.#{$c}__submenu {
|
|
108
|
+
position: absolute;
|
|
109
|
+
top: 0;
|
|
110
|
+
left: 100%;
|
|
111
|
+
margin-left: var(--tieredmenu-submenu-offset, $tieredmenu-submenu-offset);
|
|
112
|
+
min-width: var(--tieredmenu-minWidth, $tieredmenu-minWidth);
|
|
113
|
+
margin: 0;
|
|
114
|
+
padding: var(--tieredmenu-padding, $tieredmenu-padding);
|
|
115
|
+
list-style: none;
|
|
116
|
+
background-color: var(--tieredmenu-background, $tieredmenu-background);
|
|
117
|
+
border: var(--tieredmenu-border-width, $tieredmenu-border-width) solid var(--tieredmenu-border-color, $tieredmenu-border-color);
|
|
118
|
+
border-radius: var(--tieredmenu-border-radius, $tieredmenu-border-radius);
|
|
119
|
+
box-shadow: var(--tieredmenu-shadow, $tieredmenu-shadow);
|
|
120
|
+
z-index: 1001;
|
|
121
|
+
opacity: 0;
|
|
122
|
+
visibility: hidden;
|
|
123
|
+
transform: translateX(-4px);
|
|
124
|
+
transition: opacity var(--tieredmenu-transition-duration, $tieredmenu-transition-duration) ease,
|
|
125
|
+
visibility var(--tieredmenu-transition-duration, $tieredmenu-transition-duration) ease,
|
|
126
|
+
transform var(--tieredmenu-transition-duration, $tieredmenu-transition-duration) ease;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.#{$c}__submenu--visible {
|
|
130
|
+
opacity: 1;
|
|
131
|
+
visibility: visible;
|
|
132
|
+
transform: translateX(0);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.#{$c}__item--submenu-open > .#{$c}__submenu {
|
|
136
|
+
opacity: 1;
|
|
137
|
+
visibility: visible;
|
|
138
|
+
transform: translateX(0);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
// Separator
|
|
142
|
+
.#{$c}__separator {
|
|
143
|
+
height: 1px;
|
|
144
|
+
margin: var(--tieredmenu-separator-margin, $tieredmenu-separator-margin) 0;
|
|
145
|
+
background-color: var(--tieredmenu-separator-color, $tieredmenu-separator-color);
|
|
146
|
+
}
|