@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,156 @@
1
+ @use "../../../dist/scss/tokens" as *;
2
+
3
+ $c: editor;
4
+
5
+ .#{$c} {
6
+ display: flex;
7
+ flex-direction: column;
8
+ min-height: var(--editor-minHeight, $editor-minHeight);
9
+ background-color: var(--editor-background-default, $editor-background-default);
10
+ border: var(--editor-border-width, $editor-border-width) solid var(--editor-border-color-default, $editor-border-color-default);
11
+ border-radius: var(--editor-radius, $editor-radius);
12
+ overflow: hidden;
13
+ transition: border-color 0.15s ease;
14
+
15
+ &:hover:not(.#{$c}--disabled) {
16
+ border-color: var(--editor-border-color-hover, $editor-border-color-hover);
17
+ }
18
+ }
19
+
20
+ // Toolbar
21
+ .#{$c}__toolbar {
22
+ display: flex;
23
+ flex-wrap: wrap;
24
+ align-items: center;
25
+ gap: var(--editor-toolbar-gap, $editor-toolbar-gap);
26
+ padding: var(--editor-toolbar-padding-y, $editor-toolbar-padding-y) var(--editor-toolbar-padding-x, $editor-toolbar-padding-x);
27
+ background-color: var(--editor-toolbar-background, $editor-toolbar-background);
28
+ border-bottom: 1px solid var(--editor-toolbar-border-color, $editor-toolbar-border-color);
29
+ }
30
+
31
+ .#{$c}__button {
32
+ display: inline-flex;
33
+ align-items: center;
34
+ justify-content: center;
35
+ width: var(--editor-button-size, $editor-button-size);
36
+ height: var(--editor-button-size, $editor-button-size);
37
+ padding: 0;
38
+ background-color: var(--editor-button-background-default, $editor-button-background-default);
39
+ border: none;
40
+ border-radius: var(--editor-button-radius, $editor-button-radius);
41
+ color: var(--editor-button-color-default, $editor-button-color-default);
42
+ cursor: pointer;
43
+ transition: all 0.15s ease;
44
+
45
+ &:hover:not(:disabled) {
46
+ background-color: var(--editor-button-background-hover, $editor-button-background-hover);
47
+ }
48
+
49
+ &:disabled {
50
+ cursor: not-allowed;
51
+ color: var(--editor-button-color-disabled, $editor-button-color-disabled);
52
+ }
53
+ }
54
+
55
+ .#{$c}__button--active {
56
+ background-color: var(--editor-button-background-active, $editor-button-background-active);
57
+ color: var(--editor-button-color-active, $editor-button-color-active);
58
+ }
59
+
60
+ .#{$c}__separator {
61
+ width: var(--editor-separator-width, $editor-separator-width);
62
+ height: 20px;
63
+ margin: 0 var(--editor-separator-margin, $editor-separator-margin);
64
+ background-color: var(--editor-separator-color, $editor-separator-color);
65
+ }
66
+
67
+ // Content area
68
+ .#{$c}__content {
69
+ flex: 1;
70
+ min-height: 150px;
71
+ padding: var(--editor-content-padding, $editor-content-padding);
72
+ color: var(--editor-content-text-default, $editor-content-text-default);
73
+ font-size: var(--editor-content-fontSize, $editor-content-fontSize);
74
+ line-height: var(--editor-content-lineHeight, $editor-content-lineHeight);
75
+ outline: none;
76
+ overflow-y: auto;
77
+
78
+ &:empty::before {
79
+ content: attr(data-placeholder);
80
+ color: var(--editor-content-text-placeholder, $editor-content-text-placeholder);
81
+ pointer-events: none;
82
+ }
83
+
84
+ // Basic content styling
85
+ p {
86
+ margin: 0 0 1em 0;
87
+
88
+ &:last-child {
89
+ margin-bottom: 0;
90
+ }
91
+ }
92
+
93
+ ul,
94
+ ol {
95
+ margin: 0 0 1em 0;
96
+ padding-left: 1.5em;
97
+ }
98
+
99
+ li {
100
+ margin-bottom: 0.25em;
101
+ }
102
+
103
+ a {
104
+ color: var(--editor-button-color-active, $editor-button-color-active);
105
+ text-decoration: underline;
106
+ }
107
+
108
+ strong,
109
+ b {
110
+ font-weight: 600;
111
+ }
112
+
113
+ em,
114
+ i {
115
+ font-style: italic;
116
+ }
117
+
118
+ u {
119
+ text-decoration: underline;
120
+ }
121
+
122
+ s,
123
+ strike {
124
+ text-decoration: line-through;
125
+ }
126
+ }
127
+
128
+ // States
129
+ .#{$c}--focused {
130
+ outline: var(--editor-focus-ringWidth, $editor-focus-ringWidth) solid var(--editor-focus-ringColor, $editor-focus-ringColor);
131
+ outline-offset: var(--editor-focus-ringOffset, $editor-focus-ringOffset);
132
+ border-color: var(--editor-border-color-focus, $editor-border-color-focus);
133
+ }
134
+
135
+ .#{$c}--disabled {
136
+ background-color: var(--editor-background-disabled, $editor-background-disabled);
137
+ border-color: var(--editor-border-color-disabled, $editor-border-color-disabled);
138
+ cursor: not-allowed;
139
+
140
+ .#{$c}__content {
141
+ color: var(--editor-content-text-disabled, $editor-content-text-disabled);
142
+ pointer-events: none;
143
+ }
144
+
145
+ .#{$c}__toolbar {
146
+ opacity: 0.6;
147
+ }
148
+ }
149
+
150
+ .#{$c}--invalid {
151
+ border-color: var(--editor-border-color-error, $editor-border-color-error);
152
+
153
+ &.#{$c}--focused {
154
+ border-color: var(--editor-border-color-error, $editor-border-color-error);
155
+ }
156
+ }
@@ -0,0 +1,253 @@
1
+ <template>
2
+ <div class="editor" :class="additionalClasses">
3
+ <!-- Toolbar -->
4
+ <div class="editor__toolbar">
5
+ <button
6
+ type="button"
7
+ class="editor__button"
8
+ :class="{ 'editor__button--active': activeFormats.bold }"
9
+ title="Bold"
10
+ :disabled="isDisabled"
11
+ @click="execCommand('bold')"
12
+ >
13
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
14
+ <path d="M4 3H9C10.6569 3 12 4.34315 12 6C12 7.65685 10.6569 9 9 9H4V3Z" stroke="currentColor" stroke-width="1.5" />
15
+ <path d="M4 9H10C11.6569 9 13 10.3431 13 12C13 13.6569 11.6569 15 10 15H4V9Z" stroke="currentColor" stroke-width="1.5" />
16
+ </svg>
17
+ </button>
18
+
19
+ <button
20
+ type="button"
21
+ class="editor__button"
22
+ :class="{ 'editor__button--active': activeFormats.italic }"
23
+ title="Italic"
24
+ :disabled="isDisabled"
25
+ @click="execCommand('italic')"
26
+ >
27
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
28
+ <path d="M10 3H14M6 13H10M12 3L8 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" />
29
+ </svg>
30
+ </button>
31
+
32
+ <button
33
+ type="button"
34
+ class="editor__button"
35
+ :class="{ 'editor__button--active': activeFormats.underline }"
36
+ title="Underline"
37
+ :disabled="isDisabled"
38
+ @click="execCommand('underline')"
39
+ >
40
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
41
+ <path d="M4 3V8C4 10.2091 5.79086 12 8 12C10.2091 12 12 10.2091 12 8V3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
42
+ <path d="M3 15H13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
43
+ </svg>
44
+ </button>
45
+
46
+ <button
47
+ type="button"
48
+ class="editor__button"
49
+ :class="{ 'editor__button--active': activeFormats.strikeThrough }"
50
+ title="Strikethrough"
51
+ :disabled="isDisabled"
52
+ @click="execCommand('strikeThrough')"
53
+ >
54
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
55
+ <path d="M3 8H13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
56
+ <path d="M11 4C11 4 10 3 8 3C6 3 4.5 4.5 4.5 6C4.5 7 5 7.5 6 8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
57
+ <path d="M5 12C5 12 6 13 8 13C10 13 11.5 11.5 11.5 10C11.5 9.5 11.3 9 11 8.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
58
+ </svg>
59
+ </button>
60
+
61
+ <span class="editor__separator" />
62
+
63
+ <button
64
+ type="button"
65
+ class="editor__button"
66
+ :class="{ 'editor__button--active': activeFormats.insertUnorderedList }"
67
+ title="Bullet List"
68
+ :disabled="isDisabled"
69
+ @click="execCommand('insertUnorderedList')"
70
+ >
71
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
72
+ <circle cx="3" cy="4" r="1" fill="currentColor" />
73
+ <circle cx="3" cy="8" r="1" fill="currentColor" />
74
+ <circle cx="3" cy="12" r="1" fill="currentColor" />
75
+ <path d="M6 4H14M6 8H14M6 12H14" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
76
+ </svg>
77
+ </button>
78
+
79
+ <button
80
+ type="button"
81
+ class="editor__button"
82
+ :class="{ 'editor__button--active': activeFormats.insertOrderedList }"
83
+ title="Numbered List"
84
+ :disabled="isDisabled"
85
+ @click="execCommand('insertOrderedList')"
86
+ >
87
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
88
+ <text x="2" y="5" fill="currentColor" font-size="5" font-weight="500">1.</text>
89
+ <text x="2" y="9" fill="currentColor" font-size="5" font-weight="500">2.</text>
90
+ <text x="2" y="13" fill="currentColor" font-size="5" font-weight="500">3.</text>
91
+ <path d="M6 4H14M6 8H14M6 12H14" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
92
+ </svg>
93
+ </button>
94
+
95
+ <span class="editor__separator" />
96
+
97
+ <button
98
+ type="button"
99
+ class="editor__button"
100
+ title="Link"
101
+ :disabled="isDisabled"
102
+ @click="insertLink"
103
+ >
104
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
105
+ <path d="M6.5 9.5L9.5 6.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
106
+ <path d="M9 10.5L10.5 9C11.8807 7.61929 11.8807 5.38071 10.5 4L10 3.5C8.61929 2.11929 6.38071 2.11929 5 3.5L3.5 5C2.11929 6.38071 2.11929 8.61929 3.5 10L4 10.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
107
+ <path d="M7 5.5L5.5 7C4.11929 8.38071 4.11929 10.6193 5.5 12L6 12.5C7.38071 13.8807 9.61929 13.8807 11 12.5L12.5 11C13.8807 9.61929 13.8807 7.38071 12.5 6L12 5.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
108
+ </svg>
109
+ </button>
110
+
111
+ <span class="editor__separator" />
112
+
113
+ <button
114
+ type="button"
115
+ class="editor__button"
116
+ title="Clear Formatting"
117
+ :disabled="isDisabled"
118
+ @click="execCommand('removeFormat')"
119
+ >
120
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none">
121
+ <path d="M3 3L13 13M13 3L3 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" />
122
+ </svg>
123
+ </button>
124
+ </div>
125
+
126
+ <!-- Content area -->
127
+ <div
128
+ ref="contentRef"
129
+ class="editor__content"
130
+ contenteditable
131
+ :data-placeholder="placeholder"
132
+ @input="onInput"
133
+ @focus="onFocus"
134
+ @blur="onBlur"
135
+ @keyup="updateActiveFormats"
136
+ @mouseup="updateActiveFormats"
137
+ />
138
+ </div>
139
+ </template>
140
+
141
+ <style src="./Editor.scss"></style>
142
+
143
+ <script setup lang="ts">
144
+ import type { EditorProps, EditorEmits } from '../../types';
145
+ import { computed, ref, watch, onMounted, nextTick } from "vue";
146
+
147
+ defineOptions({ name: 'FtpEditor' });
148
+
149
+ const props = withDefaults(defineProps<EditorProps>(), {
150
+ modelValue: "",
151
+ placeholder: "Enter text...",
152
+ isDisabled: false,
153
+ isInvalid: false,
154
+ });
155
+
156
+ const emit = defineEmits(["update:modelValue", "focus", "blur", "change"]);
157
+
158
+ const contentRef = ref<HTMLElement | null>(null);
159
+ const isFocused = ref(false);
160
+ const activeFormats = ref({
161
+ bold: false,
162
+ italic: false,
163
+ underline: false,
164
+ strikeThrough: false,
165
+ insertUnorderedList: false,
166
+ insertOrderedList: false,
167
+ });
168
+
169
+ const execCommand = (command: any, value: string | undefined = undefined) => {
170
+ if (props.isDisabled) return;
171
+ contentRef.value?.focus();
172
+ document.execCommand(command, false, value);
173
+ updateActiveFormats();
174
+ emitValue();
175
+ };
176
+
177
+ const insertLink = () => {
178
+ if (props.isDisabled) return;
179
+ const url = prompt("Enter URL:");
180
+ if (url) {
181
+ execCommand("createLink", url);
182
+ }
183
+ };
184
+
185
+ const updateActiveFormats = () => {
186
+ activeFormats.value = {
187
+ bold: document.queryCommandState("bold"),
188
+ italic: document.queryCommandState("italic"),
189
+ underline: document.queryCommandState("underline"),
190
+ strikeThrough: document.queryCommandState("strikeThrough"),
191
+ insertUnorderedList: document.queryCommandState("insertUnorderedList"),
192
+ insertOrderedList: document.queryCommandState("insertOrderedList"),
193
+ };
194
+ };
195
+
196
+ const onInput = () => {
197
+ emitValue();
198
+ };
199
+
200
+ const emitValue = () => {
201
+ const html = contentRef.value?.innerHTML || "";
202
+ emit("update:modelValue", html);
203
+ emit("change", { value: html });
204
+ };
205
+
206
+ const onFocus = (event: FocusEvent) => {
207
+ isFocused.value = true;
208
+ emit("focus", { originalEvent: event });
209
+ };
210
+
211
+ const onBlur = (event: FocusEvent) => {
212
+ isFocused.value = false;
213
+ emit("blur", { originalEvent: event });
214
+ };
215
+
216
+ // Sync content with modelValue
217
+ watch(
218
+ () => props.modelValue,
219
+ (newValue) => {
220
+ if (contentRef.value && contentRef.value.innerHTML !== newValue) {
221
+ contentRef.value.innerHTML = newValue;
222
+ }
223
+ }
224
+ );
225
+
226
+ onMounted(() => {
227
+ if (contentRef.value && props.modelValue) {
228
+ contentRef.value.innerHTML = props.modelValue;
229
+ }
230
+ });
231
+
232
+ const additionalClasses = computed(() =>
233
+ [
234
+ isFocused.value && "editor--focused",
235
+ props.isDisabled && "editor--disabled",
236
+ props.isInvalid && "editor--invalid",
237
+ ]
238
+ .filter(Boolean)
239
+ .join(" ")
240
+ );
241
+
242
+ defineExpose({
243
+ focus: () => contentRef.value?.focus(),
244
+ blur: () => contentRef.value?.blur(),
245
+ getContent: () => contentRef.value?.innerHTML || "",
246
+ setContent: (html: any) => {
247
+ if (contentRef.value) {
248
+ contentRef.value.innerHTML = html;
249
+ emitValue();
250
+ }
251
+ },
252
+ });
253
+ </script>
@@ -0,0 +1,24 @@
1
+ @use "../../../dist/scss/tokens" as *;
2
+
3
+ $c: faq;
4
+
5
+ .#{$c} {
6
+ width: 100%;
7
+ max-width: 800px;
8
+ }
9
+
10
+ .#{$c}--separated {
11
+ .accordion-tab {
12
+ margin-bottom: 0.75rem;
13
+ background-color: $surface-panel;
14
+ border-radius: $radius-default;
15
+ border: 1px solid $border-subtle;
16
+ overflow: hidden;
17
+ }
18
+ }
19
+
20
+ .#{$c}--bordered {
21
+ border: 1px solid $border-subtle;
22
+ border-radius: $radius-large;
23
+ overflow: hidden;
24
+ }
@@ -0,0 +1,28 @@
1
+ <template>
2
+ <div class="faq" :class="`faq--${variant}`">
3
+ <Accordion :multiple="true">
4
+ <AccordionTab
5
+ v-for="(item, i) in items"
6
+ :key="i"
7
+ :header="item.question"
8
+ >
9
+ <div v-html="item.answer" />
10
+ </AccordionTab>
11
+ </Accordion>
12
+ </div>
13
+ </template>
14
+
15
+ <style src="./FAQ.scss"></style>
16
+
17
+ <script setup lang="ts">
18
+ import type { FAQProps } from '../../types';
19
+ import Accordion from '../Accordion/Accordion.vue';
20
+ import AccordionTab from '../Accordion/AccordionTab.vue';
21
+
22
+ defineOptions({ name: 'FtpFAQ' });
23
+
24
+ withDefaults(defineProps<FAQProps>(), {
25
+ items: () => [],
26
+ variant: 'default',
27
+ });
28
+ </script>
@@ -0,0 +1,92 @@
1
+ @use "../../../dist/scss/tokens" as *;
2
+ @use "../../scss/mixins/accent-gradient.scss" as *;
3
+
4
+ $c: feature-grid;
5
+
6
+ .#{$c} {
7
+ display: grid;
8
+ gap: 2rem;
9
+ width: 100%;
10
+ }
11
+
12
+ .#{$c}--cols-2 { grid-template-columns: repeat(2, 1fr); }
13
+ .#{$c}--cols-3 { grid-template-columns: repeat(3, 1fr); }
14
+ .#{$c}--cols-4 { grid-template-columns: repeat(4, 1fr); }
15
+
16
+ @media (max-width: 768px) {
17
+ .#{$c} { grid-template-columns: 1fr !important; }
18
+ }
19
+
20
+ .#{$c}__item {
21
+ display: flex;
22
+ flex-direction: column;
23
+ gap: 0.75rem;
24
+ }
25
+
26
+ .#{$c}__icon {
27
+ font-size: 2rem;
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ width: 3rem;
32
+ height: 3rem;
33
+ border-radius: $radius-rounded;
34
+
35
+ i {
36
+ @include accent-gradient-text();
37
+ }
38
+ }
39
+
40
+ .#{$c}__title {
41
+ font-size: 1.125rem;
42
+ font-weight: 600;
43
+ color: $text-heading;
44
+ margin: 0;
45
+ }
46
+
47
+ .#{$c}__description {
48
+ font-size: 0.9375rem;
49
+ line-height: 1.6;
50
+ color: $text-secondary;
51
+ margin: 0;
52
+ }
53
+
54
+ // Card variant
55
+ .#{$c}--card .#{$c}__item {
56
+ background-color: $surface-panel;
57
+ border: 1px solid $border-subtle;
58
+ border-radius: $radius-large;
59
+ padding: 2rem;
60
+ transition: box-shadow 0.2s ease, border-color 0.2s ease;
61
+
62
+ &:hover {
63
+ box-shadow: $shadow-s;
64
+ border-color: $border-default;
65
+ }
66
+ }
67
+
68
+ // Minimal variant
69
+ .#{$c}--minimal .#{$c}__item {
70
+ padding: 1rem 0;
71
+ }
72
+
73
+ // Icon-top variant
74
+ .#{$c}--icon-top {
75
+ text-align: center;
76
+
77
+ .#{$c}__item {
78
+ align-items: center;
79
+ background-color: $surface-panel;
80
+ border: 1px solid $border-subtle;
81
+ border-radius: $radius-large;
82
+ padding: 2.5rem 2rem;
83
+ }
84
+
85
+ .#{$c}__icon {
86
+ width: 4rem;
87
+ height: 4rem;
88
+ font-size: 2.5rem;
89
+ background-color: $surface-muted;
90
+ border-radius: $radius-rounded;
91
+ }
92
+ }
@@ -0,0 +1,39 @@
1
+ <template>
2
+ <div class="feature-grid" :class="additionalClasses">
3
+ <slot>
4
+ <div
5
+ v-for="(feature, index) in features"
6
+ :key="index"
7
+ class="feature-grid__item"
8
+ >
9
+ <div v-if="feature.icon" class="feature-grid__icon">
10
+ <i :class="feature.icon" aria-hidden="true" />
11
+ </div>
12
+ <h3 class="feature-grid__title">{{ feature.title }}</h3>
13
+ <p class="feature-grid__description">{{ feature.description }}</p>
14
+ </div>
15
+ </slot>
16
+ </div>
17
+ </template>
18
+
19
+ <style src="./FeatureGrid.scss"></style>
20
+
21
+ <script setup lang="ts">
22
+ import type { FeatureGridProps } from '../../types';
23
+ import { computed } from 'vue';
24
+
25
+ defineOptions({ name: 'FtpFeatureGrid' });
26
+
27
+ const props = withDefaults(defineProps<FeatureGridProps>(), {
28
+ columns: 3,
29
+ variant: 'card',
30
+ features: () => [],
31
+ });
32
+
33
+ const additionalClasses = computed(() =>
34
+ [
35
+ `feature-grid--cols-${props.columns}`,
36
+ `feature-grid--${props.variant}`,
37
+ ].join(' ')
38
+ );
39
+ </script>
@@ -0,0 +1,97 @@
1
+ @use "../../../dist/scss/tokens" as *;
2
+
3
+ $c: field-set;
4
+
5
+ .#{$c} {
6
+ margin: 0;
7
+ padding: 0;
8
+ background: var(--field-set-background, $field-set-background);
9
+ border: var(--field-set-border-width, $field-set-border-width) solid var(--field-set-border-color, $field-set-border-color);
10
+ border-radius: var(--field-set-border-radius, $field-set-border-radius);
11
+ }
12
+
13
+ .#{$c}__legend {
14
+ padding: 0;
15
+ margin-left: var(--field-set-legend-padding-x, $field-set-legend-padding-x);
16
+ }
17
+
18
+ .#{$c}__legend-text,
19
+ .#{$c}__toggle {
20
+ display: inline-flex;
21
+ align-items: center;
22
+ gap: var(--field-set-toggle-gap, $field-set-toggle-gap);
23
+ padding: var(--field-set-legend-padding-y, $field-set-legend-padding-y) var(--field-set-legend-padding-x, $field-set-legend-padding-x);
24
+ background: var(--field-set-legend-background, $field-set-legend-background);
25
+ color: var(--field-set-legend-color, $field-set-legend-color);
26
+ font-size: var(--field-set-legend-fontSize, $field-set-legend-fontSize);
27
+ font-weight: var(--field-set-legend-fontWeight, $field-set-legend-fontWeight);
28
+ border: var(--field-set-legend-border-width, $field-set-legend-border-width) solid var(--field-set-legend-border-color, $field-set-legend-border-color);
29
+ border-radius: var(--field-set-legend-border-radius, $field-set-legend-border-radius);
30
+ }
31
+
32
+ .#{$c}__toggle {
33
+ cursor: pointer;
34
+ font-family: inherit;
35
+ transition: color var(--field-set-transition-duration, $field-set-transition-duration) ease;
36
+
37
+ &:hover {
38
+ .#{$c}__toggle-icon {
39
+ color: var(--field-set-toggle-icon-color-hover, $field-set-toggle-icon-color-hover);
40
+ }
41
+ }
42
+
43
+ &:focus-visible {
44
+ outline: 2px solid var(--field-set-border-color, $field-set-border-color);
45
+ outline-offset: 2px;
46
+ }
47
+ }
48
+
49
+ .#{$c}__toggle-icon {
50
+ display: flex;
51
+ align-items: center;
52
+ justify-content: center;
53
+ width: var(--field-set-toggle-icon-size, $field-set-toggle-icon-size);
54
+ height: var(--field-set-toggle-icon-size, $field-set-toggle-icon-size);
55
+ color: var(--field-set-toggle-icon-color-default, $field-set-toggle-icon-color-default);
56
+ transition: transform var(--field-set-transition-duration, $field-set-transition-duration) ease,
57
+ color var(--field-set-transition-duration, $field-set-transition-duration) ease;
58
+
59
+ svg {
60
+ width: 100%;
61
+ height: 100%;
62
+ }
63
+ }
64
+
65
+ .#{$c}__content-wrapper {
66
+ display: grid;
67
+ grid-template-rows: 1fr;
68
+ transition: grid-template-rows var(--field-set-transition-duration, $field-set-transition-duration) ease;
69
+ }
70
+
71
+ .#{$c}__content {
72
+ padding: var(--field-set-padding, $field-set-padding);
73
+ overflow: hidden;
74
+ }
75
+
76
+ // Toggleable variant
77
+ .#{$c}--toggleable {
78
+ .#{$c}__legend {
79
+ margin-bottom: 0;
80
+ }
81
+ }
82
+
83
+ // Collapsed state
84
+ .#{$c}--collapsed {
85
+ .#{$c}__toggle-icon {
86
+ transform: rotate(-90deg);
87
+ }
88
+
89
+ .#{$c}__content-wrapper {
90
+ grid-template-rows: 0fr;
91
+ }
92
+
93
+ .#{$c}__content {
94
+ padding-top: 0;
95
+ padding-bottom: 0;
96
+ }
97
+ }