@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.
Files changed (342) hide show
  1. package/README.md +80 -0
  2. package/dist/css/theme-dark.css +7 -0
  3. package/dist/css/tokens.css +2315 -0
  4. package/dist/scss/_tokens.scss +2521 -0
  5. package/dist/ts/tokens.ts +2441 -0
  6. package/package.json +80 -0
  7. package/src/components/Accordion/Accordion.scss +118 -0
  8. package/src/components/Accordion/Accordion.vue +105 -0
  9. package/src/components/Accordion/AccordionTab.vue +79 -0
  10. package/src/components/Alert/Alert.scss +109 -0
  11. package/src/components/Alert/Alert.vue +79 -0
  12. package/src/components/AppBar/AppBar.scss +73 -0
  13. package/src/components/AppBar/AppBar.vue +49 -0
  14. package/src/components/AtmosphericBackground/AtmosphericBackground.vue +198 -0
  15. package/src/components/AutoComplete/AutoComplete.scss +282 -0
  16. package/src/components/AutoComplete/AutoComplete.vue +398 -0
  17. package/src/components/Avatar/Avatar.scss +191 -0
  18. package/src/components/Avatar/Avatar.vue +44 -0
  19. package/src/components/Badge/Badge.scss +84 -0
  20. package/src/components/Badge/Badge.vue +41 -0
  21. package/src/components/BlockUI/BlockUI.scss +85 -0
  22. package/src/components/BlockUI/BlockUI.vue +90 -0
  23. package/src/components/Breadcrumb/Breadcrumb.scss +84 -0
  24. package/src/components/Breadcrumb/Breadcrumb.vue +141 -0
  25. package/src/components/Button/Button.scss +254 -0
  26. package/src/components/Button/Button.vue +68 -0
  27. package/src/components/CTA/CTA.scss +92 -0
  28. package/src/components/CTA/CTA.vue +33 -0
  29. package/src/components/Calendar/Calendar.scss +330 -0
  30. package/src/components/Calendar/Calendar.vue +455 -0
  31. package/src/components/Card/Card.scss +66 -0
  32. package/src/components/Card/Card.vue +48 -0
  33. package/src/components/Carousel/Carousel.scss +121 -0
  34. package/src/components/Carousel/Carousel.vue +191 -0
  35. package/src/components/Chart/Chart.scss +109 -0
  36. package/src/components/Chart/Chart.vue +209 -0
  37. package/src/components/Checkbox/Checkbox.scss +148 -0
  38. package/src/components/Checkbox/Checkbox.vue +75 -0
  39. package/src/components/Chip/Chip.scss +83 -0
  40. package/src/components/Chip/Chip.vue +73 -0
  41. package/src/components/ColorPicker/ColorPicker.scss +244 -0
  42. package/src/components/ColorPicker/ColorPicker.vue +411 -0
  43. package/src/components/Column/Column.scss +87 -0
  44. package/src/components/Column/Column.vue +45 -0
  45. package/src/components/ColumnGroup/ColumnGroup.scss +41 -0
  46. package/src/components/ColumnGroup/ColumnGroup.vue +27 -0
  47. package/src/components/ColumnGroup/ColumnGroupRow.vue +18 -0
  48. package/src/components/CommandPalette/CommandPalette.scss +143 -0
  49. package/src/components/CommandPalette/CommandPalette.vue +165 -0
  50. package/src/components/ConfirmDialog/ConfirmDialog.scss +177 -0
  51. package/src/components/ConfirmDialog/ConfirmDialog.vue +162 -0
  52. package/src/components/ConfirmPopup/ConfirmPopup.scss +180 -0
  53. package/src/components/ConfirmPopup/ConfirmPopup.vue +185 -0
  54. package/src/components/ContextMenu/ContextMenu.scss +171 -0
  55. package/src/components/ContextMenu/ContextMenu.vue +383 -0
  56. package/src/components/DataTable/DataTable.scss +162 -0
  57. package/src/components/DataTable/DataTable.vue +225 -0
  58. package/src/components/DataView/DataView.scss +149 -0
  59. package/src/components/DataView/DataView.vue +172 -0
  60. package/src/components/DatePicker/DatePicker.scss +71 -0
  61. package/src/components/DatePicker/DatePicker.vue +121 -0
  62. package/src/components/Dialog/Dialog.scss +161 -0
  63. package/src/components/Dialog/Dialog.vue +245 -0
  64. package/src/components/Divider/Divider.scss +147 -0
  65. package/src/components/Divider/Divider.vue +49 -0
  66. package/src/components/Dock/Dock.scss +221 -0
  67. package/src/components/Dock/Dock.vue +107 -0
  68. package/src/components/Drawer/Drawer.scss +220 -0
  69. package/src/components/Drawer/Drawer.vue +137 -0
  70. package/src/components/Dropdown/Dropdown.scss +218 -0
  71. package/src/components/Dropdown/Dropdown.vue +313 -0
  72. package/src/components/Editor/Editor.scss +156 -0
  73. package/src/components/Editor/Editor.vue +253 -0
  74. package/src/components/FAQ/FAQ.scss +24 -0
  75. package/src/components/FAQ/FAQ.vue +28 -0
  76. package/src/components/FeatureGrid/FeatureGrid.scss +92 -0
  77. package/src/components/FeatureGrid/FeatureGrid.vue +39 -0
  78. package/src/components/FieldSet/FieldSet.scss +97 -0
  79. package/src/components/FieldSet/FieldSet.vue +70 -0
  80. package/src/components/FileUpload/FileUpload.scss +137 -0
  81. package/src/components/FileUpload/FileUpload.vue +183 -0
  82. package/src/components/Footer/Footer.scss +95 -0
  83. package/src/components/Footer/Footer.vue +59 -0
  84. package/src/components/Form/Form.scss +72 -0
  85. package/src/components/Form/Form.vue +30 -0
  86. package/src/components/Form/FormField.vue +42 -0
  87. package/src/components/Galleria/Galleria.scss +295 -0
  88. package/src/components/Galleria/Galleria.vue +274 -0
  89. package/src/components/Hero/Hero.scss +116 -0
  90. package/src/components/Hero/Hero.vue +57 -0
  91. package/src/components/Image/Image.scss +129 -0
  92. package/src/components/Image/Image.vue +117 -0
  93. package/src/components/ImageCompare/ImageCompare.scss +97 -0
  94. package/src/components/ImageCompare/ImageCompare.vue +66 -0
  95. package/src/components/InPlace/InPlace.scss +97 -0
  96. package/src/components/InPlace/InPlace.vue +107 -0
  97. package/src/components/InlineMessage/InlineMessage.scss +69 -0
  98. package/src/components/InlineMessage/InlineMessage.vue +47 -0
  99. package/src/components/InputChips/InputChips.scss +165 -0
  100. package/src/components/InputChips/InputChips.vue +169 -0
  101. package/src/components/InputGroup/InputGroup.scss +57 -0
  102. package/src/components/InputGroup/InputGroup.vue +22 -0
  103. package/src/components/InputGroupAddon/InputGroupAddon.scss +28 -0
  104. package/src/components/InputGroupAddon/InputGroupAddon.vue +22 -0
  105. package/src/components/InputIcon/InputIcon.scss +58 -0
  106. package/src/components/InputIcon/InputIcon.vue +28 -0
  107. package/src/components/InputMask/InputMask.scss +65 -0
  108. package/src/components/InputMask/InputMask.vue +268 -0
  109. package/src/components/InputNumber/InputNumber.scss +122 -0
  110. package/src/components/InputNumber/InputNumber.vue +150 -0
  111. package/src/components/InputOtp/InputOtp.scss +88 -0
  112. package/src/components/InputOtp/InputOtp.vue +230 -0
  113. package/src/components/InputSwitch/InputSwitch.scss +131 -0
  114. package/src/components/InputSwitch/InputSwitch.vue +49 -0
  115. package/src/components/InputText/InputText.scss +61 -0
  116. package/src/components/InputText/InputText.vue +71 -0
  117. package/src/components/Knob/Knob.scss +92 -0
  118. package/src/components/Knob/Knob.vue +252 -0
  119. package/src/components/ListBox/ListBox.scss +152 -0
  120. package/src/components/ListBox/ListBox.vue +198 -0
  121. package/src/components/LogoCloud/LogoCloud.scss +64 -0
  122. package/src/components/LogoCloud/LogoCloud.vue +35 -0
  123. package/src/components/MegaMenu/MegaMenu.scss +280 -0
  124. package/src/components/MegaMenu/MegaMenu.vue +218 -0
  125. package/src/components/Menu/Menu.scss +102 -0
  126. package/src/components/Menu/Menu.vue +221 -0
  127. package/src/components/MenuBar/MenuBar.scss +208 -0
  128. package/src/components/MenuBar/MenuBar.vue +306 -0
  129. package/src/components/Message/Message.scss +126 -0
  130. package/src/components/Message/Message.vue +99 -0
  131. package/src/components/MeterGroup/MeterGroup.scss +105 -0
  132. package/src/components/MeterGroup/MeterGroup.vue +73 -0
  133. package/src/components/MultiSelect/MultiSelect.scss +239 -0
  134. package/src/components/MultiSelect/MultiSelect.vue +296 -0
  135. package/src/components/OrderList/OrderList.scss +133 -0
  136. package/src/components/OrderList/OrderList.vue +267 -0
  137. package/src/components/OrganizationChart/OrganizationChart.scss +145 -0
  138. package/src/components/OrganizationChart/OrganizationChart.vue +220 -0
  139. package/src/components/OverlayPanel/OverlayPanel.scss +69 -0
  140. package/src/components/OverlayPanel/OverlayPanel.vue +180 -0
  141. package/src/components/Paginator/Paginator.scss +130 -0
  142. package/src/components/Paginator/Paginator.vue +212 -0
  143. package/src/components/Panel/Panel.scss +113 -0
  144. package/src/components/Panel/Panel.vue +89 -0
  145. package/src/components/PanelMenu/PanelMenu.scss +211 -0
  146. package/src/components/PanelMenu/PanelMenu.vue +295 -0
  147. package/src/components/ParticleBackground/ParticleBackground.vue +310 -0
  148. package/src/components/PickList/PickList.scss +126 -0
  149. package/src/components/PickList/PickList.vue +249 -0
  150. package/src/components/PopOver/PopOver.scss +112 -0
  151. package/src/components/PopOver/PopOver.vue +254 -0
  152. package/src/components/PricingTable/PricingCard.vue +33 -0
  153. package/src/components/PricingTable/PricingTable.scss +133 -0
  154. package/src/components/PricingTable/PricingTable.vue +21 -0
  155. package/src/components/ProgressBar/ProgressBar.scss +58 -0
  156. package/src/components/ProgressBar/ProgressBar.vue +48 -0
  157. package/src/components/ProgressSpinner/ProgressSpinner.scss +48 -0
  158. package/src/components/ProgressSpinner/ProgressSpinner.vue +53 -0
  159. package/src/components/RadioButton/RadioButton.scss +148 -0
  160. package/src/components/RadioButton/RadioButton.vue +52 -0
  161. package/src/components/Rating/Rating.scss +109 -0
  162. package/src/components/Rating/Rating.vue +136 -0
  163. package/src/components/Row/Row.scss +38 -0
  164. package/src/components/Row/Row.vue +30 -0
  165. package/src/components/ScrollPanel/ScrollPanel.scss +90 -0
  166. package/src/components/ScrollPanel/ScrollPanel.vue +284 -0
  167. package/src/components/ScrollTop/ScrollTop.scss +59 -0
  168. package/src/components/ScrollTop/ScrollTop.vue +99 -0
  169. package/src/components/Section/Section.scss +58 -0
  170. package/src/components/Section/Section.vue +39 -0
  171. package/src/components/Select/Select.scss +98 -0
  172. package/src/components/Select/Select.vue +92 -0
  173. package/src/components/SelectButton/SelectButton.scss +65 -0
  174. package/src/components/SelectButton/SelectButton.vue +144 -0
  175. package/src/components/Sidebar/Sidebar.scss +170 -0
  176. package/src/components/Sidebar/Sidebar.vue +137 -0
  177. package/src/components/Skeleton/Skeleton.scss +43 -0
  178. package/src/components/Skeleton/Skeleton.vue +57 -0
  179. package/src/components/Slider/Slider.scss +103 -0
  180. package/src/components/Slider/Slider.vue +65 -0
  181. package/src/components/SpeedDial/SpeedDial.scss +217 -0
  182. package/src/components/SpeedDial/SpeedDial.vue +196 -0
  183. package/src/components/SplitButton/SplitButton.scss +264 -0
  184. package/src/components/SplitButton/SplitButton.vue +172 -0
  185. package/src/components/Splitter/Splitter.scss +95 -0
  186. package/src/components/Splitter/Splitter.vue +191 -0
  187. package/src/components/Splitter/SplitterPanel.vue +125 -0
  188. package/src/components/Stats/Stats.scss +54 -0
  189. package/src/components/Stats/Stats.vue +28 -0
  190. package/src/components/Steps/Steps.scss +164 -0
  191. package/src/components/Steps/Steps.vue +100 -0
  192. package/src/components/TabMenu/TabMenu.scss +106 -0
  193. package/src/components/TabMenu/TabMenu.vue +174 -0
  194. package/src/components/Tabs/TabPanel.vue +41 -0
  195. package/src/components/Tabs/Tabs.scss +82 -0
  196. package/src/components/Tabs/Tabs.vue +162 -0
  197. package/src/components/Tag/Tag.scss +73 -0
  198. package/src/components/Tag/Tag.vue +37 -0
  199. package/src/components/Terminal/Terminal.scss +80 -0
  200. package/src/components/Terminal/Terminal.vue +113 -0
  201. package/src/components/Testimonial/Testimonial.scss +80 -0
  202. package/src/components/Testimonial/Testimonial.vue +29 -0
  203. package/src/components/Textarea/Textarea.scss +65 -0
  204. package/src/components/Textarea/Textarea.vue +101 -0
  205. package/src/components/TieredMenu/TieredMenu.scss +146 -0
  206. package/src/components/TieredMenu/TieredMenu.vue +270 -0
  207. package/src/components/TieredMenu/TieredMenuSub.vue +132 -0
  208. package/src/components/Timeline/Timeline.scss +190 -0
  209. package/src/components/Timeline/Timeline.vue +79 -0
  210. package/src/components/Toast/Toast.scss +284 -0
  211. package/src/components/Toast/Toast.vue +162 -0
  212. package/src/components/ToggleButton/ToggleButton.scss +99 -0
  213. package/src/components/ToggleButton/ToggleButton.vue +65 -0
  214. package/src/components/ToggleSwitch/ToggleSwitch.scss +68 -0
  215. package/src/components/ToggleSwitch/ToggleSwitch.vue +44 -0
  216. package/src/components/Toolbar/Toolbar.scss +37 -0
  217. package/src/components/Toolbar/Toolbar.vue +23 -0
  218. package/src/components/Tooltip/Tooltip.scss +114 -0
  219. package/src/components/Tooltip/Tooltip.vue +169 -0
  220. package/src/components/Tree/Tree.scss +164 -0
  221. package/src/components/Tree/Tree.vue +273 -0
  222. package/src/components/TreeSelect/TreeSelect.scss +238 -0
  223. package/src/components/TreeSelect/TreeSelect.vue +401 -0
  224. package/src/components/TreeTable/TreeTable.scss +172 -0
  225. package/src/components/TreeTable/TreeTable.vue +285 -0
  226. package/src/components/VirtualScroller/VirtualScroller.scss +107 -0
  227. package/src/components/VirtualScroller/VirtualScroller.vue +234 -0
  228. package/src/scss/fonts.scss +63 -0
  229. package/src/scss/mixins/accent-gradient.scss +43 -0
  230. package/src/scss/mixins/border.scss +28 -0
  231. package/src/scss/mixins/breakpoint.scss +80 -0
  232. package/src/scss/mixins/container.scss +33 -0
  233. package/src/scss/mixins/elevation.scss +43 -0
  234. package/src/scss/mixins/grid.scss +23 -0
  235. package/src/scss/mixins/levitation.scss +15 -0
  236. package/src/scss/mixins/list.scss +5 -0
  237. package/src/scss/mixins/surface-atmospheric.scss +93 -0
  238. package/src/scss/mixins/surface.scss +19 -0
  239. package/src/scss/mixins/typography.scss +91 -0
  240. package/src/scss/utility-classes/utility-classes-spacing.scss +34 -0
  241. package/src/scss/utility-classes/utility-classes-typography.scss +114 -0
  242. package/tokens/components/accordion.json +127 -0
  243. package/tokens/components/autocomplete.json +238 -0
  244. package/tokens/components/avatar.json +220 -0
  245. package/tokens/components/badge.json +119 -0
  246. package/tokens/components/block-ui.json +40 -0
  247. package/tokens/components/breadcrumb.json +57 -0
  248. package/tokens/components/button.json +395 -0
  249. package/tokens/components/calendar.json +260 -0
  250. package/tokens/components/card.json +157 -0
  251. package/tokens/components/carousel.json +154 -0
  252. package/tokens/components/chart.json +132 -0
  253. package/tokens/components/checkbox.json +130 -0
  254. package/tokens/components/chip.json +100 -0
  255. package/tokens/components/color-picker.json +196 -0
  256. package/tokens/components/column-group.json +45 -0
  257. package/tokens/components/column.json +109 -0
  258. package/tokens/components/confirm-dialog.json +141 -0
  259. package/tokens/components/confirm-popup.json +101 -0
  260. package/tokens/components/context-menu.json +168 -0
  261. package/tokens/components/data-table.json +157 -0
  262. package/tokens/components/data-view.json +172 -0
  263. package/tokens/components/dialog.json +151 -0
  264. package/tokens/components/divider.json +45 -0
  265. package/tokens/components/dock.json +173 -0
  266. package/tokens/components/drawer.json +163 -0
  267. package/tokens/components/dropdown.json +230 -0
  268. package/tokens/components/editor.json +170 -0
  269. package/tokens/components/field-set.json +115 -0
  270. package/tokens/components/file-upload.json +193 -0
  271. package/tokens/components/galleria.json +235 -0
  272. package/tokens/components/image-compare.json +74 -0
  273. package/tokens/components/image.json +71 -0
  274. package/tokens/components/in-place.json +100 -0
  275. package/tokens/components/inline-message.json +107 -0
  276. package/tokens/components/input-chips.json +187 -0
  277. package/tokens/components/input-group-addon.json +47 -0
  278. package/tokens/components/input-group.json +21 -0
  279. package/tokens/components/input-icon.json +38 -0
  280. package/tokens/components/input-mask.json +136 -0
  281. package/tokens/components/input-number.json +144 -0
  282. package/tokens/components/input-otp.json +138 -0
  283. package/tokens/components/input-switch.json +108 -0
  284. package/tokens/components/input-text.json +136 -0
  285. package/tokens/components/knob.json +119 -0
  286. package/tokens/components/listbox.json +166 -0
  287. package/tokens/components/mega-menu.json +283 -0
  288. package/tokens/components/menu.json +145 -0
  289. package/tokens/components/menubar.json +152 -0
  290. package/tokens/components/message.json +151 -0
  291. package/tokens/components/meter-group.json +108 -0
  292. package/tokens/components/multi-select.json +244 -0
  293. package/tokens/components/order-list.json +193 -0
  294. package/tokens/components/organization-chart.json +188 -0
  295. package/tokens/components/overlay-panel.json +94 -0
  296. package/tokens/components/paginator.json +186 -0
  297. package/tokens/components/panel.json +120 -0
  298. package/tokens/components/panelmenu.json +190 -0
  299. package/tokens/components/picklist.json +187 -0
  300. package/tokens/components/popover.json +65 -0
  301. package/tokens/components/progress-bar.json +33 -0
  302. package/tokens/components/progress-spinner.json +38 -0
  303. package/tokens/components/radio.json +125 -0
  304. package/tokens/components/rating.json +76 -0
  305. package/tokens/components/row.json +62 -0
  306. package/tokens/components/scroll-panel.json +69 -0
  307. package/tokens/components/scroll-top.json +84 -0
  308. package/tokens/components/select-button.json +145 -0
  309. package/tokens/components/select.json +190 -0
  310. package/tokens/components/sidebar.json +146 -0
  311. package/tokens/components/skeleton.json +26 -0
  312. package/tokens/components/slider.json +82 -0
  313. package/tokens/components/speed-dial.json +144 -0
  314. package/tokens/components/split-button.json +316 -0
  315. package/tokens/components/splitter.json +88 -0
  316. package/tokens/components/steps.json +154 -0
  317. package/tokens/components/tabmenu.json +103 -0
  318. package/tokens/components/tabs.json +97 -0
  319. package/tokens/components/tag.json +122 -0
  320. package/tokens/components/terminal.json +100 -0
  321. package/tokens/components/textarea.json +96 -0
  322. package/tokens/components/tieredmenu.json +142 -0
  323. package/tokens/components/timeline.json +129 -0
  324. package/tokens/components/toast.json +281 -0
  325. package/tokens/components/toggle-button.json +220 -0
  326. package/tokens/components/toggle-switch.json +95 -0
  327. package/tokens/components/toolbar.json +41 -0
  328. package/tokens/components/tooltip.json +60 -0
  329. package/tokens/components/tree-select.json +224 -0
  330. package/tokens/components/tree.json +153 -0
  331. package/tokens/components/treetable.json +155 -0
  332. package/tokens/components/virtualscroller.json +95 -0
  333. package/tokens/primitives/color.json +137 -0
  334. package/tokens/primitives/radius.json +12 -0
  335. package/tokens/primitives/shadow.json +29 -0
  336. package/tokens/primitives/spacing.json +15 -0
  337. package/tokens/semantics/color.json +81 -0
  338. package/tokens/semantics/radius.json +10 -0
  339. package/tokens/semantics/shadow.json +9 -0
  340. package/tokens/semantics/spacing.json +24 -0
  341. package/tokens/themes/dark.json +7 -0
  342. package/tokens/themes/light.json +7 -0
@@ -0,0 +1,295 @@
1
+ @use "../../../dist/scss/tokens" as *;
2
+
3
+ $c: galleria;
4
+
5
+ .#{$c} {
6
+ display: flex;
7
+ flex-direction: column;
8
+ background: var(--galleria-container-background, $galleria-container-background);
9
+ border-radius: var(--galleria-container-radius, $galleria-container-radius);
10
+ border: var(--galleria-container-border-width, $galleria-container-border-width) solid
11
+ var(--galleria-container-border-color, $galleria-container-border-color);
12
+ overflow: hidden;
13
+ }
14
+
15
+ // Thumbnail position variants
16
+ .#{$c}--thumbnails-top {
17
+ flex-direction: column-reverse;
18
+ }
19
+
20
+ .#{$c}--thumbnails-left {
21
+ flex-direction: row-reverse;
22
+
23
+ .#{$c}__thumbnails {
24
+ flex-direction: column;
25
+ }
26
+
27
+ .#{$c}__thumbnail-container {
28
+ flex-direction: column;
29
+ }
30
+ }
31
+
32
+ .#{$c}--thumbnails-right {
33
+ flex-direction: row;
34
+
35
+ .#{$c}__thumbnails {
36
+ flex-direction: column;
37
+ }
38
+
39
+ .#{$c}__thumbnail-container {
40
+ flex-direction: column;
41
+ }
42
+ }
43
+
44
+ .#{$c}__main {
45
+ flex: 1;
46
+ min-height: 0;
47
+ }
48
+
49
+ .#{$c}__preview {
50
+ position: relative;
51
+ display: flex;
52
+ align-items: center;
53
+ justify-content: center;
54
+ background: var(--galleria-preview-background, $galleria-preview-background);
55
+ padding: var(--galleria-preview-padding, $galleria-preview-padding);
56
+ min-height: 300px;
57
+ }
58
+
59
+ .#{$c}--fullscreen-enabled .#{$c}__preview {
60
+ cursor: pointer;
61
+ }
62
+
63
+ .#{$c}__preview-image {
64
+ max-width: 100%;
65
+ max-height: 100%;
66
+ object-fit: contain;
67
+ border-radius: var(--galleria-preview-radius, $galleria-preview-radius);
68
+ }
69
+
70
+ // Navigation buttons in preview
71
+ .#{$c}__nav {
72
+ position: absolute;
73
+ top: 50%;
74
+ transform: translateY(-50%);
75
+ display: flex;
76
+ align-items: center;
77
+ justify-content: center;
78
+ width: var(--galleria-navigator-size, $galleria-navigator-size);
79
+ height: var(--galleria-navigator-size, $galleria-navigator-size);
80
+ padding: 0;
81
+ border: none;
82
+ border-radius: var(--galleria-navigator-radius, $galleria-navigator-radius);
83
+ background: var(--galleria-navigator-background-default, $galleria-navigator-background-default);
84
+ color: var(--galleria-navigator-color, $galleria-navigator-color);
85
+ cursor: pointer;
86
+ transition: background-color 150ms ease;
87
+ z-index: 1;
88
+
89
+ &:hover {
90
+ background: var(--galleria-navigator-background-hover, $galleria-navigator-background-hover);
91
+ }
92
+
93
+ &:disabled {
94
+ opacity: 0.3;
95
+ cursor: not-allowed;
96
+ }
97
+
98
+ svg {
99
+ width: var(--galleria-navigator-iconSize, $galleria-navigator-iconSize);
100
+ height: var(--galleria-navigator-iconSize, $galleria-navigator-iconSize);
101
+ }
102
+ }
103
+
104
+ .#{$c}__nav--prev {
105
+ left: 16px;
106
+ }
107
+
108
+ .#{$c}__nav--next {
109
+ right: 16px;
110
+ }
111
+
112
+ // Indicators
113
+ .#{$c}__indicators {
114
+ position: absolute;
115
+ bottom: 16px;
116
+ left: 50%;
117
+ transform: translateX(-50%);
118
+ display: flex;
119
+ gap: var(--galleria-indicator-gap, $galleria-indicator-gap);
120
+ }
121
+
122
+ .#{$c}__indicator {
123
+ width: var(--galleria-indicator-size, $galleria-indicator-size);
124
+ height: var(--galleria-indicator-size, $galleria-indicator-size);
125
+ padding: 0;
126
+ border: none;
127
+ border-radius: 50%;
128
+ background: var(--galleria-indicator-background-default, $galleria-indicator-background-default);
129
+ cursor: pointer;
130
+ transition: background-color 150ms ease;
131
+
132
+ &:hover {
133
+ background: var(--galleria-indicator-background-active, $galleria-indicator-background-active);
134
+ }
135
+ }
136
+
137
+ .#{$c}__indicator--active {
138
+ background: var(--galleria-indicator-background-active, $galleria-indicator-background-active);
139
+ }
140
+
141
+ // Caption
142
+ .#{$c}__caption {
143
+ position: absolute;
144
+ bottom: 0;
145
+ left: 0;
146
+ right: 0;
147
+ padding: var(--galleria-caption-padding, $galleria-caption-padding);
148
+ background: var(--galleria-caption-background, $galleria-caption-background);
149
+ color: var(--galleria-caption-color, $galleria-caption-color);
150
+ }
151
+
152
+ .#{$c}__caption-title {
153
+ margin: 0 0 4px;
154
+ font-size: 16px;
155
+ font-weight: 600;
156
+ }
157
+
158
+ .#{$c}__caption-description {
159
+ margin: 0;
160
+ font-size: var(--galleria-caption-fontSize, $galleria-caption-fontSize);
161
+ opacity: 0.9;
162
+ }
163
+
164
+ // Thumbnails
165
+ .#{$c}__thumbnails {
166
+ padding: var(--galleria-thumbnail-container-padding, $galleria-thumbnail-container-padding);
167
+ background: var(--galleria-container-background, $galleria-container-background);
168
+ overflow: auto;
169
+ }
170
+
171
+ .#{$c}__thumbnail-container {
172
+ display: flex;
173
+ gap: var(--galleria-thumbnail-container-gap, $galleria-thumbnail-container-gap);
174
+ }
175
+
176
+ .#{$c}__thumbnail {
177
+ flex-shrink: 0;
178
+ width: var(--galleria-thumbnail-item-width, $galleria-thumbnail-item-width);
179
+ height: var(--galleria-thumbnail-item-height, $galleria-thumbnail-item-height);
180
+ padding: 0;
181
+ border: var(--galleria-thumbnail-item-border-width, $galleria-thumbnail-item-border-width) solid
182
+ var(--galleria-thumbnail-item-border-color-default, $galleria-thumbnail-item-border-color-default);
183
+ border-radius: var(--galleria-thumbnail-item-radius, $galleria-thumbnail-item-radius);
184
+ background: transparent;
185
+ cursor: pointer;
186
+ overflow: hidden;
187
+ opacity: var(--galleria-thumbnail-item-opacity-default, $galleria-thumbnail-item-opacity-default);
188
+ transition: opacity 150ms ease, border-color 150ms ease;
189
+
190
+ &:hover {
191
+ opacity: var(--galleria-thumbnail-item-opacity-hover, $galleria-thumbnail-item-opacity-hover);
192
+ }
193
+
194
+ img {
195
+ width: 100%;
196
+ height: 100%;
197
+ object-fit: cover;
198
+ }
199
+ }
200
+
201
+ .#{$c}__thumbnail--active {
202
+ opacity: var(--galleria-thumbnail-item-opacity-active, $galleria-thumbnail-item-opacity-active);
203
+ border-color: var(--galleria-thumbnail-item-border-color-active, $galleria-thumbnail-item-border-color-active);
204
+ }
205
+
206
+ // Fullscreen
207
+ .#{$c}__fullscreen {
208
+ position: fixed;
209
+ inset: 0;
210
+ display: flex;
211
+ align-items: center;
212
+ justify-content: center;
213
+ background: var(--galleria-fullscreen-background, $galleria-fullscreen-background);
214
+ z-index: var(--galleria-fullscreen-zIndex, $galleria-fullscreen-zIndex);
215
+ padding: 60px;
216
+ }
217
+
218
+ .#{$c}__fullscreen-image {
219
+ max-width: 100%;
220
+ max-height: 100%;
221
+ object-fit: contain;
222
+ }
223
+
224
+ .#{$c}__fullscreen-close {
225
+ position: absolute;
226
+ top: 16px;
227
+ right: 16px;
228
+ display: flex;
229
+ align-items: center;
230
+ justify-content: center;
231
+ width: var(--galleria-fullscreen-closeButton-size, $galleria-fullscreen-closeButton-size);
232
+ height: var(--galleria-fullscreen-closeButton-size, $galleria-fullscreen-closeButton-size);
233
+ padding: 0;
234
+ border: none;
235
+ border-radius: 50%;
236
+ background: var(--galleria-fullscreen-closeButton-background-default, $galleria-fullscreen-closeButton-background-default);
237
+ color: var(--galleria-fullscreen-closeButton-color, $galleria-fullscreen-closeButton-color);
238
+ cursor: pointer;
239
+ transition: background-color 150ms ease;
240
+
241
+ &:hover {
242
+ background: var(--galleria-fullscreen-closeButton-background-hover, $galleria-fullscreen-closeButton-background-hover);
243
+ }
244
+
245
+ svg {
246
+ width: 24px;
247
+ height: 24px;
248
+ }
249
+ }
250
+
251
+ .#{$c}__fullscreen-nav {
252
+ position: absolute;
253
+ top: 50%;
254
+ transform: translateY(-50%);
255
+ display: flex;
256
+ align-items: center;
257
+ justify-content: center;
258
+ width: var(--galleria-navigator-size, $galleria-navigator-size);
259
+ height: var(--galleria-navigator-size, $galleria-navigator-size);
260
+ padding: 0;
261
+ border: none;
262
+ border-radius: 50%;
263
+ background: var(--galleria-navigator-background-default, $galleria-navigator-background-default);
264
+ color: var(--galleria-navigator-color, $galleria-navigator-color);
265
+ cursor: pointer;
266
+ transition: background-color 150ms ease;
267
+
268
+ &:hover {
269
+ background: var(--galleria-navigator-background-hover, $galleria-navigator-background-hover);
270
+ }
271
+
272
+ svg {
273
+ width: var(--galleria-navigator-iconSize, $galleria-navigator-iconSize);
274
+ height: var(--galleria-navigator-iconSize, $galleria-navigator-iconSize);
275
+ }
276
+ }
277
+
278
+ .#{$c}__fullscreen-nav--prev {
279
+ left: 16px;
280
+ }
281
+
282
+ .#{$c}__fullscreen-nav--next {
283
+ right: 16px;
284
+ }
285
+
286
+ // Transition animations
287
+ .galleria-fullscreen-enter-active,
288
+ .galleria-fullscreen-leave-active {
289
+ transition: opacity 200ms ease;
290
+ }
291
+
292
+ .galleria-fullscreen-enter-from,
293
+ .galleria-fullscreen-leave-to {
294
+ opacity: 0;
295
+ }
@@ -0,0 +1,274 @@
1
+ <template>
2
+ <div class="galleria" :class="additionalClasses">
3
+ <div class="galleria__main">
4
+ <!-- Preview area -->
5
+ <div class="galleria__preview" @click="onPreviewClick">
6
+ <img
7
+ v-if="activeItem"
8
+ :src="activeItem.src || activeItem"
9
+ :alt="activeItem.alt || `Image ${activeIndex + 1}`"
10
+ class="galleria__preview-image"
11
+ />
12
+
13
+ <!-- Navigation buttons -->
14
+ <button
15
+ v-if="showItemNavigators && items.length > 1"
16
+ type="button"
17
+ class="galleria__nav galleria__nav--prev"
18
+ :disabled="!circular && activeIndex === 0"
19
+ aria-label="Previous image"
20
+ @click.stop="prev"
21
+ >
22
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
23
+ <polyline points="15 18 9 12 15 6" />
24
+ </svg>
25
+ </button>
26
+
27
+ <button
28
+ v-if="showItemNavigators && items.length > 1"
29
+ type="button"
30
+ class="galleria__nav galleria__nav--next"
31
+ :disabled="!circular && activeIndex === items.length - 1"
32
+ aria-label="Next image"
33
+ @click.stop="next"
34
+ >
35
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
36
+ <polyline points="9 18 15 12 9 6" />
37
+ </svg>
38
+ </button>
39
+
40
+ <!-- Indicators (inside preview) -->
41
+ <div v-if="showIndicators && items.length > 1" class="galleria__indicators">
42
+ <button
43
+ v-for="(_, index) in items"
44
+ :key="index"
45
+ type="button"
46
+ class="galleria__indicator"
47
+ :class="{ 'galleria__indicator--active': index === activeIndex }"
48
+ :aria-label="`View image ${index + 1}`"
49
+ @click.stop="goTo(index)"
50
+ />
51
+ </div>
52
+
53
+ <!-- Caption -->
54
+ <div v-if="activeItem && (activeItem.title || activeItem.description)" class="galleria__caption">
55
+ <h4 v-if="activeItem.title" class="galleria__caption-title">{{ activeItem.title }}</h4>
56
+ <p v-if="activeItem.description" class="galleria__caption-description">{{ activeItem.description }}</p>
57
+ </div>
58
+ </div>
59
+ </div>
60
+
61
+ <!-- Thumbnails -->
62
+ <div v-if="showThumbnails" class="galleria__thumbnails">
63
+ <div class="galleria__thumbnail-container">
64
+ <button
65
+ v-for="(item, index) in items"
66
+ :key="index"
67
+ type="button"
68
+ class="galleria__thumbnail"
69
+ :class="{ 'galleria__thumbnail--active': index === activeIndex }"
70
+ :aria-label="`View image ${index + 1}`"
71
+ @click="goTo(index)"
72
+ >
73
+ <img
74
+ :src="item.thumbnail || item.src || item"
75
+ :alt="item.alt || `Thumbnail ${index + 1}`"
76
+ />
77
+ </button>
78
+ </div>
79
+ </div>
80
+
81
+ <!-- Fullscreen overlay -->
82
+ <Teleport to="body">
83
+ <Transition name="galleria-fullscreen">
84
+ <div
85
+ v-if="fullscreenVisible"
86
+ class="galleria__fullscreen"
87
+ @click="closeFullscreen"
88
+ @keydown.escape="closeFullscreen"
89
+ @keydown.left="prev"
90
+ @keydown.right="next"
91
+ >
92
+ <button
93
+ type="button"
94
+ class="galleria__fullscreen-close"
95
+ aria-label="Close fullscreen"
96
+ @click.stop="closeFullscreen"
97
+ >
98
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
99
+ <line x1="18" y1="6" x2="6" y2="18" />
100
+ <line x1="6" y1="6" x2="18" y2="18" />
101
+ </svg>
102
+ </button>
103
+
104
+ <button
105
+ v-if="items.length > 1"
106
+ type="button"
107
+ class="galleria__fullscreen-nav galleria__fullscreen-nav--prev"
108
+ aria-label="Previous image"
109
+ @click.stop="prev"
110
+ >
111
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
112
+ <polyline points="15 18 9 12 15 6" />
113
+ </svg>
114
+ </button>
115
+
116
+ <img
117
+ v-if="activeItem"
118
+ :src="activeItem.src || activeItem"
119
+ :alt="activeItem.alt || `Image ${activeIndex + 1}`"
120
+ class="galleria__fullscreen-image"
121
+ @click.stop
122
+ />
123
+
124
+ <button
125
+ v-if="items.length > 1"
126
+ type="button"
127
+ class="galleria__fullscreen-nav galleria__fullscreen-nav--next"
128
+ aria-label="Next image"
129
+ @click.stop="next"
130
+ >
131
+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
132
+ <polyline points="9 18 15 12 9 6" />
133
+ </svg>
134
+ </button>
135
+ </div>
136
+ </Transition>
137
+ </Teleport>
138
+ </div>
139
+ </template>
140
+
141
+ <style src="./Galleria.scss"></style>
142
+
143
+ <script setup lang="ts">
144
+ import type { GalleriaProps, GalleriaEmits } from '../../types';
145
+ import { computed, ref, watch, onMounted, onUnmounted } from "vue";
146
+
147
+ defineOptions({ name: 'FtpGalleria' });
148
+
149
+ const props = withDefaults(defineProps<GalleriaProps>(), {
150
+ items: () => [],
151
+ activeIndex: 0,
152
+ fullscreen: false,
153
+ showThumbnails: true,
154
+ showItemNavigators: true,
155
+ showIndicators: false,
156
+ circular: false,
157
+ autoplay: false,
158
+ autoplayInterval: 4000,
159
+ thumbnailsPosition: "bottom",
160
+ });
161
+
162
+ const emit = defineEmits(["update:activeIndex", "show", "hide"]);
163
+
164
+ const internalIndex = ref(props.activeIndex);
165
+ const fullscreenVisible = ref(false);
166
+ const autoplayTimer = ref<ReturnType<typeof setInterval> | null>(null);
167
+
168
+ const activeIndex = computed({
169
+ get: () => internalIndex.value,
170
+ set: (val) => {
171
+ internalIndex.value = val;
172
+ emit("update:activeIndex", val);
173
+ },
174
+ });
175
+
176
+ const activeItem = computed(() => props.items[activeIndex.value]);
177
+
178
+ const additionalClasses = computed(() =>
179
+ [
180
+ `galleria--thumbnails-${props.thumbnailsPosition}`,
181
+ props.fullscreen && "galleria--fullscreen-enabled",
182
+ ]
183
+ .filter(Boolean)
184
+ .join(" ")
185
+ );
186
+
187
+ watch(() => props.activeIndex, (newValue) => {
188
+ internalIndex.value = newValue;
189
+ });
190
+
191
+ const prev = () => {
192
+ if (activeIndex.value > 0) {
193
+ activeIndex.value--;
194
+ } else if (props.circular && props.items.length > 0) {
195
+ activeIndex.value = props.items.length - 1;
196
+ }
197
+ };
198
+
199
+ const next = () => {
200
+ if (activeIndex.value < props.items.length - 1) {
201
+ activeIndex.value++;
202
+ } else if (props.circular) {
203
+ activeIndex.value = 0;
204
+ }
205
+ };
206
+
207
+ const goTo = (index: any) => {
208
+ activeIndex.value = index;
209
+ };
210
+
211
+ const onPreviewClick = () => {
212
+ if (props.fullscreen) {
213
+ openFullscreen();
214
+ }
215
+ };
216
+
217
+ const openFullscreen = () => {
218
+ fullscreenVisible.value = true;
219
+ document.body.style.overflow = "hidden";
220
+ emit("show");
221
+ };
222
+
223
+ const closeFullscreen = () => {
224
+ fullscreenVisible.value = false;
225
+ document.body.style.overflow = "";
226
+ emit("hide");
227
+ };
228
+
229
+ const startAutoplay = () => {
230
+ if (typeof window === 'undefined') return;
231
+ if (props.autoplay && props.items.length > 1) {
232
+ autoplayTimer.value = setInterval(() => {
233
+ next();
234
+ }, props.autoplayInterval);
235
+ }
236
+ };
237
+
238
+ const stopAutoplay = () => {
239
+ if (autoplayTimer.value) {
240
+ clearInterval(autoplayTimer.value);
241
+ autoplayTimer.value = null;
242
+ }
243
+ };
244
+
245
+ onMounted(() => {
246
+ if (props.autoplay) {
247
+ startAutoplay();
248
+ }
249
+ });
250
+
251
+ watch(() => props.autoplay, (newValue) => {
252
+ if (typeof window === 'undefined') return;
253
+ if (newValue) {
254
+ startAutoplay();
255
+ } else {
256
+ stopAutoplay();
257
+ }
258
+ });
259
+
260
+ onUnmounted(() => {
261
+ stopAutoplay();
262
+ if (fullscreenVisible.value) {
263
+ document.body.style.overflow = "";
264
+ }
265
+ });
266
+
267
+ defineExpose({
268
+ prev,
269
+ next,
270
+ goTo,
271
+ openFullscreen,
272
+ closeFullscreen,
273
+ });
274
+ </script>
@@ -0,0 +1,116 @@
1
+ @use "../../../dist/scss/tokens" as *;
2
+ @use "../../scss/mixins/accent-gradient.scss" as *;
3
+
4
+ $c: hero;
5
+
6
+ .#{$c} {
7
+ position: relative;
8
+ width: 100%;
9
+ padding: 5rem 2rem;
10
+ overflow: hidden;
11
+ background-color: $surface-canvas;
12
+ }
13
+
14
+ .#{$c}--full-height {
15
+ min-height: 100vh;
16
+ display: flex;
17
+ align-items: center;
18
+ }
19
+
20
+ .#{$c}--has-bg {
21
+ background-size: cover;
22
+ background-position: center;
23
+ background-repeat: no-repeat;
24
+ }
25
+
26
+ .#{$c}__overlay {
27
+ position: absolute;
28
+ inset: 0;
29
+ background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.8) 100%);
30
+ z-index: 1;
31
+ }
32
+
33
+ .#{$c}__container {
34
+ position: relative;
35
+ z-index: 2;
36
+ max-width: 1200px;
37
+ margin: 0 auto;
38
+ width: 100%;
39
+ display: flex;
40
+ align-items: center;
41
+ gap: 3rem;
42
+ }
43
+
44
+ .#{$c}__content {
45
+ flex: 1;
46
+ display: flex;
47
+ flex-direction: column;
48
+ gap: 1.5rem;
49
+ }
50
+
51
+ .#{$c}__title {
52
+ font-size: 3.5rem;
53
+ font-weight: 700;
54
+ line-height: 1.1;
55
+ color: $text-heading;
56
+ margin: 0;
57
+ }
58
+
59
+ .#{$c}__subtitle {
60
+ font-size: 1.25rem;
61
+ line-height: 1.6;
62
+ color: $text-secondary;
63
+ margin: 0;
64
+ max-width: 600px;
65
+ }
66
+
67
+ .#{$c}__actions {
68
+ display: flex;
69
+ gap: 1rem;
70
+ flex-wrap: wrap;
71
+ }
72
+
73
+ .#{$c}__media {
74
+ flex: 1;
75
+ display: flex;
76
+ align-items: center;
77
+ justify-content: center;
78
+ }
79
+
80
+ // Alignment variants
81
+ .#{$c}--align-center {
82
+ text-align: center;
83
+
84
+ .#{$c}__container {
85
+ flex-direction: column;
86
+ }
87
+
88
+ .#{$c}__content {
89
+ align-items: center;
90
+ }
91
+
92
+ .#{$c}__subtitle {
93
+ max-width: 700px;
94
+ }
95
+
96
+ .#{$c}__actions {
97
+ justify-content: center;
98
+ }
99
+ }
100
+
101
+ .#{$c}--align-left {
102
+ .#{$c}__container {
103
+ flex-direction: row;
104
+ }
105
+ }
106
+
107
+ .#{$c}--align-right {
108
+ .#{$c}__container {
109
+ flex-direction: row-reverse;
110
+ }
111
+
112
+ .#{$c}__content {
113
+ align-items: flex-end;
114
+ text-align: right;
115
+ }
116
+ }