@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,68 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button
|
|
3
|
+
class="button"
|
|
4
|
+
:class="additionalClasses"
|
|
5
|
+
:disabled="isDisabled || isLoading"
|
|
6
|
+
:aria-disabled="isDisabled || isLoading"
|
|
7
|
+
:aria-busy="isLoading"
|
|
8
|
+
type="button"
|
|
9
|
+
>
|
|
10
|
+
<span v-if="isLoading" class="button__spinner" aria-hidden="true">
|
|
11
|
+
<svg class="button__spinner-icon" viewBox="0 0 24 24" fill="none">
|
|
12
|
+
<circle
|
|
13
|
+
cx="12"
|
|
14
|
+
cy="12"
|
|
15
|
+
r="10"
|
|
16
|
+
stroke="currentColor"
|
|
17
|
+
stroke-width="3"
|
|
18
|
+
stroke-linecap="round"
|
|
19
|
+
stroke-dasharray="31.4 31.4"
|
|
20
|
+
/>
|
|
21
|
+
</svg>
|
|
22
|
+
</span>
|
|
23
|
+
<i
|
|
24
|
+
v-else-if="icon && iconPos === 'left'"
|
|
25
|
+
:class="icon"
|
|
26
|
+
class="button__icon button__icon--left"
|
|
27
|
+
aria-hidden="true"
|
|
28
|
+
></i>
|
|
29
|
+
<span v-if="label" class="button__label">{{ label }}</span>
|
|
30
|
+
<slot v-else />
|
|
31
|
+
<i
|
|
32
|
+
v-if="icon && iconPos === 'right' && !isLoading"
|
|
33
|
+
:class="icon"
|
|
34
|
+
class="button__icon button__icon--right"
|
|
35
|
+
aria-hidden="true"
|
|
36
|
+
></i>
|
|
37
|
+
</button>
|
|
38
|
+
</template>
|
|
39
|
+
|
|
40
|
+
<style src="./Button.scss"></style>
|
|
41
|
+
|
|
42
|
+
<script setup lang="ts">
|
|
43
|
+
import type { ButtonProps } from '../../types';
|
|
44
|
+
import { computed } from "vue";
|
|
45
|
+
|
|
46
|
+
defineOptions({ name: 'FtpButton' });
|
|
47
|
+
|
|
48
|
+
const props = withDefaults(defineProps<ButtonProps>(), {
|
|
49
|
+
iconPos: "left",
|
|
50
|
+
size: "md",
|
|
51
|
+
variant: "primary",
|
|
52
|
+
pill: false,
|
|
53
|
+
isDisabled: false,
|
|
54
|
+
isLoading: false,
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
const additionalClasses = computed(() =>
|
|
58
|
+
[
|
|
59
|
+
`button--size-${props.size}`,
|
|
60
|
+
`button--variant-${props.variant}`,
|
|
61
|
+
props.pill && "button--pill",
|
|
62
|
+
props.isDisabled && "button--disabled",
|
|
63
|
+
props.isLoading && "button--loading",
|
|
64
|
+
]
|
|
65
|
+
.filter(Boolean)
|
|
66
|
+
.join(" ")
|
|
67
|
+
);
|
|
68
|
+
</script>
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
@use "../../scss/mixins/accent-gradient.scss" as *;
|
|
3
|
+
|
|
4
|
+
$c: cta;
|
|
5
|
+
|
|
6
|
+
.#{$c} {
|
|
7
|
+
display: flex;
|
|
8
|
+
gap: 2rem;
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.#{$c}__content {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-direction: column;
|
|
15
|
+
gap: 0.75rem;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.#{$c}__title {
|
|
19
|
+
font-size: 2rem;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
color: $text-heading;
|
|
22
|
+
margin: 0;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.#{$c}__description {
|
|
26
|
+
font-size: 1.0625rem;
|
|
27
|
+
line-height: 1.6;
|
|
28
|
+
color: $text-secondary;
|
|
29
|
+
margin: 0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.#{$c}__actions {
|
|
33
|
+
display: flex;
|
|
34
|
+
gap: 1rem;
|
|
35
|
+
flex-wrap: wrap;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Banner
|
|
39
|
+
.#{$c}--banner {
|
|
40
|
+
@include accent-gradient();
|
|
41
|
+
flex-direction: column;
|
|
42
|
+
align-items: center;
|
|
43
|
+
text-align: center;
|
|
44
|
+
padding: 4rem 2rem;
|
|
45
|
+
border-radius: $radius-large;
|
|
46
|
+
|
|
47
|
+
.#{$c}__title,
|
|
48
|
+
.#{$c}__description {
|
|
49
|
+
color: #fff;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.#{$c}__actions {
|
|
53
|
+
justify-content: center;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
// Card
|
|
58
|
+
.#{$c}--card {
|
|
59
|
+
flex-direction: column;
|
|
60
|
+
background-color: $surface-panel;
|
|
61
|
+
border: 1px solid $border-subtle;
|
|
62
|
+
border-radius: $radius-large;
|
|
63
|
+
padding: 3rem;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// Inline
|
|
67
|
+
.#{$c}--inline {
|
|
68
|
+
align-items: center;
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
padding: 2rem;
|
|
71
|
+
background-color: $surface-panel;
|
|
72
|
+
border: 1px solid $border-subtle;
|
|
73
|
+
border-radius: $radius-large;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Alignment
|
|
77
|
+
.#{$c}--align-center {
|
|
78
|
+
text-align: center;
|
|
79
|
+
.#{$c}__content { align-items: center; }
|
|
80
|
+
.#{$c}__actions { justify-content: center; }
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.#{$c}--align-left {
|
|
84
|
+
text-align: left;
|
|
85
|
+
.#{$c}__content { align-items: flex-start; }
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.#{$c}--align-right {
|
|
89
|
+
text-align: right;
|
|
90
|
+
.#{$c}__content { align-items: flex-end; }
|
|
91
|
+
.#{$c}__actions { justify-content: flex-end; }
|
|
92
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="cta" :class="additionalClasses">
|
|
3
|
+
<div class="cta__content">
|
|
4
|
+
<h2 v-if="title" class="cta__title">{{ title }}</h2>
|
|
5
|
+
<p v-if="description" class="cta__description">{{ description }}</p>
|
|
6
|
+
<slot />
|
|
7
|
+
</div>
|
|
8
|
+
<div v-if="$slots.actions" class="cta__actions">
|
|
9
|
+
<slot name="actions" />
|
|
10
|
+
</div>
|
|
11
|
+
</div>
|
|
12
|
+
</template>
|
|
13
|
+
|
|
14
|
+
<style src="./CTA.scss"></style>
|
|
15
|
+
|
|
16
|
+
<script setup lang="ts">
|
|
17
|
+
import type { CTAProps } from '../../types';
|
|
18
|
+
import { computed } from 'vue';
|
|
19
|
+
|
|
20
|
+
defineOptions({ name: 'FtpCTA' });
|
|
21
|
+
|
|
22
|
+
const props = withDefaults(defineProps<CTAProps>(), {
|
|
23
|
+
variant: 'banner',
|
|
24
|
+
alignment: 'center',
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
const additionalClasses = computed(() =>
|
|
28
|
+
[
|
|
29
|
+
`cta--${props.variant}`,
|
|
30
|
+
`cta--align-${props.alignment}`,
|
|
31
|
+
].join(' ')
|
|
32
|
+
);
|
|
33
|
+
</script>
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
@use "../../../dist/scss/tokens" as *;
|
|
2
|
+
|
|
3
|
+
$c: calendar;
|
|
4
|
+
|
|
5
|
+
.#{$c} {
|
|
6
|
+
position: relative;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
// Input trigger
|
|
12
|
+
.#{$c}__input-wrapper {
|
|
13
|
+
position: relative;
|
|
14
|
+
width: 100%;
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.#{$c}__input {
|
|
19
|
+
width: 100%;
|
|
20
|
+
height: var(--calendar-input-height-md, $calendar-input-height-md);
|
|
21
|
+
padding: 0 calc(var(--calendar-input-padding-x, $calendar-input-padding-x) + 24px) 0 var(--calendar-input-padding-x, $calendar-input-padding-x);
|
|
22
|
+
background-color: var(--calendar-input-background-default, $calendar-input-background-default);
|
|
23
|
+
border: 1px solid var(--calendar-input-border-color-default, $calendar-input-border-color-default);
|
|
24
|
+
border-radius: var(--calendar-input-radius, $calendar-input-radius);
|
|
25
|
+
color: var(--calendar-input-text-default, $calendar-input-text-default);
|
|
26
|
+
font-size: var(--calendar-input-fontSize-md, $calendar-input-fontSize-md);
|
|
27
|
+
cursor: pointer;
|
|
28
|
+
transition: border-color 0.15s ease;
|
|
29
|
+
|
|
30
|
+
&::placeholder {
|
|
31
|
+
color: var(--calendar-input-text-placeholder, $calendar-input-text-placeholder);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:hover:not(:disabled) {
|
|
35
|
+
border-color: var(--calendar-input-border-color-hover, $calendar-input-border-color-hover);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&:focus {
|
|
39
|
+
outline: var(--calendar-focus-ringWidth, $calendar-focus-ringWidth) solid var(--calendar-focus-ringColor, $calendar-focus-ringColor);
|
|
40
|
+
outline-offset: var(--calendar-focus-ringOffset, $calendar-focus-ringOffset);
|
|
41
|
+
border-color: var(--calendar-input-border-color-focus, $calendar-input-border-color-focus);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:disabled {
|
|
45
|
+
cursor: not-allowed;
|
|
46
|
+
background-color: var(--calendar-input-background-disabled, $calendar-input-background-disabled);
|
|
47
|
+
border-color: var(--calendar-input-border-color-disabled, $calendar-input-border-color-disabled);
|
|
48
|
+
color: var(--calendar-input-text-disabled, $calendar-input-text-disabled);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.#{$c}__input-icon {
|
|
53
|
+
position: absolute;
|
|
54
|
+
right: var(--calendar-input-padding-x, $calendar-input-padding-x);
|
|
55
|
+
top: 50%;
|
|
56
|
+
transform: translateY(-50%);
|
|
57
|
+
pointer-events: none;
|
|
58
|
+
color: var(--calendar-input-text-placeholder, $calendar-input-text-placeholder);
|
|
59
|
+
display: flex;
|
|
60
|
+
align-items: center;
|
|
61
|
+
justify-content: center;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Panel
|
|
65
|
+
.#{$c}__panel {
|
|
66
|
+
width: var(--calendar-width, $calendar-width);
|
|
67
|
+
padding: var(--calendar-padding, $calendar-padding);
|
|
68
|
+
background-color: var(--calendar-background, $calendar-background);
|
|
69
|
+
border: var(--calendar-border-width, $calendar-border-width) solid var(--calendar-border-color, $calendar-border-color);
|
|
70
|
+
border-radius: var(--calendar-radius, $calendar-radius);
|
|
71
|
+
box-shadow: var(--calendar-shadow, $calendar-shadow);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.#{$c}__panel--inline {
|
|
75
|
+
position: relative;
|
|
76
|
+
box-shadow: none;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
// Header
|
|
80
|
+
.#{$c}__header {
|
|
81
|
+
display: flex;
|
|
82
|
+
align-items: center;
|
|
83
|
+
justify-content: space-between;
|
|
84
|
+
padding: var(--calendar-header-padding, $calendar-header-padding);
|
|
85
|
+
margin-bottom: var(--calendar-header-gap, $calendar-header-gap);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.#{$c}__title {
|
|
89
|
+
flex: 1;
|
|
90
|
+
text-align: center;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.#{$c}__title-btn {
|
|
94
|
+
padding: 4px 8px;
|
|
95
|
+
background: transparent;
|
|
96
|
+
border: none;
|
|
97
|
+
border-radius: var(--calendar-nav-radius, $calendar-nav-radius);
|
|
98
|
+
color: var(--calendar-header-text, $calendar-header-text);
|
|
99
|
+
font-size: var(--calendar-header-fontSize, $calendar-header-fontSize);
|
|
100
|
+
font-weight: var(--calendar-header-fontWeight, $calendar-header-fontWeight);
|
|
101
|
+
cursor: pointer;
|
|
102
|
+
transition: background-color 0.15s ease;
|
|
103
|
+
|
|
104
|
+
&:hover {
|
|
105
|
+
background-color: var(--calendar-nav-background-hover, $calendar-nav-background-hover);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.#{$c}__nav {
|
|
110
|
+
display: flex;
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
width: var(--calendar-nav-size, $calendar-nav-size);
|
|
114
|
+
height: var(--calendar-nav-size, $calendar-nav-size);
|
|
115
|
+
padding: 0;
|
|
116
|
+
background-color: var(--calendar-nav-background-default, $calendar-nav-background-default);
|
|
117
|
+
border: none;
|
|
118
|
+
border-radius: var(--calendar-nav-radius, $calendar-nav-radius);
|
|
119
|
+
color: var(--calendar-nav-color-default, $calendar-nav-color-default);
|
|
120
|
+
cursor: pointer;
|
|
121
|
+
transition: all 0.15s ease;
|
|
122
|
+
|
|
123
|
+
&:hover {
|
|
124
|
+
background-color: var(--calendar-nav-background-hover, $calendar-nav-background-hover);
|
|
125
|
+
color: var(--calendar-nav-color-hover, $calendar-nav-color-hover);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Weekdays
|
|
130
|
+
.#{$c}__weekdays {
|
|
131
|
+
display: grid;
|
|
132
|
+
grid-template-columns: repeat(7, 1fr);
|
|
133
|
+
margin-bottom: 4px;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.#{$c}__weekday {
|
|
137
|
+
display: flex;
|
|
138
|
+
align-items: center;
|
|
139
|
+
justify-content: center;
|
|
140
|
+
padding: var(--calendar-weekday-padding, $calendar-weekday-padding);
|
|
141
|
+
color: var(--calendar-weekday-text, $calendar-weekday-text);
|
|
142
|
+
font-size: var(--calendar-weekday-fontSize, $calendar-weekday-fontSize);
|
|
143
|
+
font-weight: var(--calendar-weekday-fontWeight, $calendar-weekday-fontWeight);
|
|
144
|
+
text-transform: uppercase;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// Days
|
|
148
|
+
.#{$c}__days {
|
|
149
|
+
display: grid;
|
|
150
|
+
grid-template-columns: repeat(7, 1fr);
|
|
151
|
+
gap: 2px;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.#{$c}__day {
|
|
155
|
+
display: flex;
|
|
156
|
+
align-items: center;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
width: var(--calendar-day-size, $calendar-day-size);
|
|
159
|
+
height: var(--calendar-day-size, $calendar-day-size);
|
|
160
|
+
padding: 0;
|
|
161
|
+
background-color: var(--calendar-day-background-default, $calendar-day-background-default);
|
|
162
|
+
border: none;
|
|
163
|
+
border-radius: var(--calendar-day-radius, $calendar-day-radius);
|
|
164
|
+
color: var(--calendar-day-text-default, $calendar-day-text-default);
|
|
165
|
+
font-size: var(--calendar-day-fontSize, $calendar-day-fontSize);
|
|
166
|
+
cursor: pointer;
|
|
167
|
+
transition: all 0.15s ease;
|
|
168
|
+
|
|
169
|
+
&:hover:not(:disabled) {
|
|
170
|
+
background-color: var(--calendar-day-background-hover, $calendar-day-background-hover);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
&:disabled {
|
|
174
|
+
cursor: default;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.#{$c}__day--other-month {
|
|
179
|
+
color: var(--calendar-day-text-muted, $calendar-day-text-muted);
|
|
180
|
+
opacity: 0.4;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.#{$c}__day--today {
|
|
184
|
+
color: var(--calendar-day-text-today, $calendar-day-text-today);
|
|
185
|
+
font-weight: 600;
|
|
186
|
+
background-color: var(--calendar-day-background-today, $calendar-day-background-today);
|
|
187
|
+
box-shadow: inset 0 0 0 1px currentColor;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
.#{$c}__day--selected {
|
|
191
|
+
background-color: var(--calendar-day-background-selected, $calendar-day-background-selected);
|
|
192
|
+
color: var(--calendar-day-text-selected, $calendar-day-text-selected);
|
|
193
|
+
|
|
194
|
+
&:hover {
|
|
195
|
+
background-color: var(--calendar-day-background-selected, $calendar-day-background-selected);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.#{$c}__day--in-range {
|
|
200
|
+
background-color: var(--calendar-day-background-range, $calendar-day-background-range);
|
|
201
|
+
border-radius: 0;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
// Months view
|
|
205
|
+
.#{$c}__months {
|
|
206
|
+
display: grid;
|
|
207
|
+
grid-template-columns: repeat(3, 1fr);
|
|
208
|
+
gap: 8px;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.#{$c}__month {
|
|
212
|
+
display: flex;
|
|
213
|
+
align-items: center;
|
|
214
|
+
justify-content: center;
|
|
215
|
+
padding: 12px 8px;
|
|
216
|
+
background: transparent;
|
|
217
|
+
border: none;
|
|
218
|
+
border-radius: var(--calendar-day-radius, $calendar-day-radius);
|
|
219
|
+
color: var(--calendar-day-text-default, $calendar-day-text-default);
|
|
220
|
+
font-size: 14px;
|
|
221
|
+
cursor: pointer;
|
|
222
|
+
transition: background-color 0.15s ease;
|
|
223
|
+
|
|
224
|
+
&:hover {
|
|
225
|
+
background-color: var(--calendar-day-background-hover, $calendar-day-background-hover);
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.#{$c}__month--selected {
|
|
230
|
+
background-color: var(--calendar-day-background-selected, $calendar-day-background-selected);
|
|
231
|
+
color: var(--calendar-day-text-selected, $calendar-day-text-selected);
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
// Years view
|
|
235
|
+
.#{$c}__years {
|
|
236
|
+
display: grid;
|
|
237
|
+
grid-template-columns: repeat(3, 1fr);
|
|
238
|
+
gap: 8px;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.#{$c}__year {
|
|
242
|
+
display: flex;
|
|
243
|
+
align-items: center;
|
|
244
|
+
justify-content: center;
|
|
245
|
+
padding: 12px 8px;
|
|
246
|
+
background: transparent;
|
|
247
|
+
border: none;
|
|
248
|
+
border-radius: var(--calendar-day-radius, $calendar-day-radius);
|
|
249
|
+
color: var(--calendar-day-text-default, $calendar-day-text-default);
|
|
250
|
+
font-size: 14px;
|
|
251
|
+
cursor: pointer;
|
|
252
|
+
transition: background-color 0.15s ease;
|
|
253
|
+
|
|
254
|
+
&:hover {
|
|
255
|
+
background-color: var(--calendar-day-background-hover, $calendar-day-background-hover);
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.#{$c}__year--selected {
|
|
260
|
+
background-color: var(--calendar-day-background-selected, $calendar-day-background-selected);
|
|
261
|
+
color: var(--calendar-day-text-selected, $calendar-day-text-selected);
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
// Footer
|
|
265
|
+
.#{$c}__footer {
|
|
266
|
+
display: flex;
|
|
267
|
+
justify-content: center;
|
|
268
|
+
padding-top: var(--calendar-header-gap, $calendar-header-gap);
|
|
269
|
+
margin-top: var(--calendar-header-gap, $calendar-header-gap);
|
|
270
|
+
border-top: 1px solid var(--calendar-border-color, $calendar-border-color);
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
.#{$c}__today-btn {
|
|
274
|
+
padding: 6px 12px;
|
|
275
|
+
background: transparent;
|
|
276
|
+
border: none;
|
|
277
|
+
border-radius: var(--calendar-nav-radius, $calendar-nav-radius);
|
|
278
|
+
color: var(--calendar-day-text-today, $calendar-day-text-today);
|
|
279
|
+
font-size: 14px;
|
|
280
|
+
font-weight: 500;
|
|
281
|
+
cursor: pointer;
|
|
282
|
+
transition: background-color 0.15s ease;
|
|
283
|
+
|
|
284
|
+
&:hover {
|
|
285
|
+
background-color: var(--calendar-day-background-hover, $calendar-day-background-hover);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
// States
|
|
290
|
+
.#{$c}--disabled {
|
|
291
|
+
.#{$c}__input-wrapper {
|
|
292
|
+
cursor: not-allowed;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.#{$c}__input-icon {
|
|
296
|
+
opacity: 0.5;
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
.#{$c}--invalid {
|
|
301
|
+
.#{$c}__input {
|
|
302
|
+
border-color: var(--calendar-input-border-color-error, $calendar-input-border-color-error);
|
|
303
|
+
|
|
304
|
+
&:focus {
|
|
305
|
+
border-color: var(--calendar-input-border-color-error, $calendar-input-border-color-error);
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
// Sizes
|
|
311
|
+
.#{$c}--size-sm {
|
|
312
|
+
.#{$c}__input {
|
|
313
|
+
height: var(--calendar-input-height-sm, $calendar-input-height-sm);
|
|
314
|
+
font-size: var(--calendar-input-fontSize-sm, $calendar-input-fontSize-sm);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.#{$c}--size-md {
|
|
319
|
+
.#{$c}__input {
|
|
320
|
+
height: var(--calendar-input-height-md, $calendar-input-height-md);
|
|
321
|
+
font-size: var(--calendar-input-fontSize-md, $calendar-input-fontSize-md);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
.#{$c}--size-lg {
|
|
326
|
+
.#{$c}__input {
|
|
327
|
+
height: var(--calendar-input-height-lg, $calendar-input-height-lg);
|
|
328
|
+
font-size: var(--calendar-input-fontSize-lg, $calendar-input-fontSize-lg);
|
|
329
|
+
}
|
|
330
|
+
}
|