@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,69 @@
1
+ @use "../../../dist/scss/tokens" as *;
2
+
3
+ $c: inline-message;
4
+
5
+ .#{$c} {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ gap: var(--inline-message-gap, $inline-message-gap);
9
+ padding: var(--inline-message-padding-y, $inline-message-padding-y) var(--inline-message-padding-x, $inline-message-padding-x);
10
+ border-radius: var(--inline-message-radius, $inline-message-radius);
11
+ font-size: var(--inline-message-fontSize, $inline-message-fontSize);
12
+ font-weight: var(--inline-message-fontWeight, $inline-message-fontWeight);
13
+ line-height: 1.4;
14
+ }
15
+
16
+ .#{$c}__icon {
17
+ flex-shrink: 0;
18
+ display: flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ width: var(--inline-message-iconSize, $inline-message-iconSize);
22
+ height: var(--inline-message-iconSize, $inline-message-iconSize);
23
+
24
+ svg {
25
+ width: 100%;
26
+ height: 100%;
27
+ }
28
+ }
29
+
30
+ .#{$c}__text {
31
+ flex: 1;
32
+ }
33
+
34
+ // Severity variants
35
+ .#{$c}--success {
36
+ background-color: var(--inline-message-background-success, $inline-message-background-success);
37
+ color: var(--inline-message-text-success, $inline-message-text-success);
38
+
39
+ .#{$c}__icon {
40
+ color: var(--inline-message-icon-success, $inline-message-icon-success);
41
+ }
42
+ }
43
+
44
+ .#{$c}--info {
45
+ background-color: var(--inline-message-background-info, $inline-message-background-info);
46
+ color: var(--inline-message-text-info, $inline-message-text-info);
47
+
48
+ .#{$c}__icon {
49
+ color: var(--inline-message-icon-info, $inline-message-icon-info);
50
+ }
51
+ }
52
+
53
+ .#{$c}--warn {
54
+ background-color: var(--inline-message-background-warn, $inline-message-background-warn);
55
+ color: var(--inline-message-text-warn, $inline-message-text-warn);
56
+
57
+ .#{$c}__icon {
58
+ color: var(--inline-message-icon-warn, $inline-message-icon-warn);
59
+ }
60
+ }
61
+
62
+ .#{$c}--error {
63
+ background-color: var(--inline-message-background-error, $inline-message-background-error);
64
+ color: var(--inline-message-text-error, $inline-message-text-error);
65
+
66
+ .#{$c}__icon {
67
+ color: var(--inline-message-icon-error, $inline-message-icon-error);
68
+ }
69
+ }
@@ -0,0 +1,47 @@
1
+ <template>
2
+ <span class="inline-message" :class="additionalClasses" role="status">
3
+ <slot name="icon">
4
+ <span v-if="hasIcon" class="inline-message__icon">
5
+ <!-- Success icon -->
6
+ <svg v-if="severity === 'success'" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
7
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" fill="currentColor"/>
8
+ </svg>
9
+ <!-- Info icon -->
10
+ <svg v-else-if="severity === 'info'" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
11
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" fill="currentColor"/>
12
+ </svg>
13
+ <!-- Warning icon -->
14
+ <svg v-else-if="severity === 'warn'" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
15
+ <path d="M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" fill="currentColor"/>
16
+ </svg>
17
+ <!-- Error icon -->
18
+ <svg v-else-if="severity === 'error'" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
19
+ <path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z" fill="currentColor"/>
20
+ </svg>
21
+ </span>
22
+ </slot>
23
+ <span class="inline-message__text">
24
+ <slot />
25
+ </span>
26
+ </span>
27
+ </template>
28
+
29
+ <style src="./InlineMessage.scss"></style>
30
+
31
+ <script setup lang="ts">
32
+ import type { InlineMessageProps } from '../../types';
33
+ import { computed } from "vue";
34
+
35
+ defineOptions({ name: 'FtpInlineMessage' });
36
+
37
+ const props = withDefaults(defineProps<InlineMessageProps>(), {
38
+ severity: "info",
39
+ icon: true,
40
+ });
41
+
42
+ const hasIcon = computed(() => props.icon);
43
+
44
+ const additionalClasses = computed(() =>
45
+ [`inline-message--${props.severity}`].join(" ")
46
+ );
47
+ </script>
@@ -0,0 +1,165 @@
1
+ @use "../../../dist/scss/tokens" as *;
2
+
3
+ $c: input-chips;
4
+
5
+ .#{$c} {
6
+ display: flex;
7
+ flex-wrap: wrap;
8
+ align-items: center;
9
+ gap: var(--input-chips-gap, $input-chips-gap);
10
+ width: 100%;
11
+ min-height: var(--input-chips-height-md, $input-chips-height-md);
12
+ padding: var(--input-chips-padding-y, $input-chips-padding-y) var(--input-chips-padding-x, $input-chips-padding-x);
13
+ background-color: var(--input-chips-background-default, $input-chips-background-default);
14
+ border: var(--input-chips-border-width, $input-chips-border-width) solid var(--input-chips-border-color-default, $input-chips-border-color-default);
15
+ border-radius: var(--input-chips-radius, $input-chips-radius);
16
+ cursor: text;
17
+ transition: border-color 0.15s ease;
18
+
19
+ &:hover:not(.#{$c}--disabled) {
20
+ border-color: var(--input-chips-border-color-hover, $input-chips-border-color-hover);
21
+ }
22
+ }
23
+
24
+ .#{$c}--focused {
25
+ outline: var(--input-chips-focus-ringWidth, $input-chips-focus-ringWidth) solid var(--input-chips-focus-ringColor, $input-chips-focus-ringColor);
26
+ outline-offset: var(--input-chips-focus-ringOffset, $input-chips-focus-ringOffset);
27
+ border-color: var(--input-chips-border-color-focus, $input-chips-border-color-focus);
28
+ }
29
+
30
+ .#{$c}--disabled {
31
+ cursor: not-allowed;
32
+ background-color: var(--input-chips-background-disabled, $input-chips-background-disabled);
33
+ border-color: var(--input-chips-border-color-disabled, $input-chips-border-color-disabled);
34
+ }
35
+
36
+ .#{$c}--invalid {
37
+ border-color: var(--input-chips-border-color-error, $input-chips-border-color-error);
38
+
39
+ &.#{$c}--focused {
40
+ border-color: var(--input-chips-border-color-error, $input-chips-border-color-error);
41
+ }
42
+ }
43
+
44
+ // Sizes
45
+ .#{$c}--size-sm {
46
+ min-height: var(--input-chips-height-sm, $input-chips-height-sm);
47
+
48
+ .#{$c}__input {
49
+ font-size: var(--input-chips-fontSize-sm, $input-chips-fontSize-sm);
50
+ }
51
+
52
+ .#{$c}__chip {
53
+ font-size: 12px;
54
+ }
55
+ }
56
+
57
+ .#{$c}--size-md {
58
+ min-height: var(--input-chips-height-md, $input-chips-height-md);
59
+
60
+ .#{$c}__input {
61
+ font-size: var(--input-chips-fontSize-md, $input-chips-fontSize-md);
62
+ }
63
+ }
64
+
65
+ .#{$c}--size-lg {
66
+ min-height: var(--input-chips-height-lg, $input-chips-height-lg);
67
+
68
+ .#{$c}__input {
69
+ font-size: var(--input-chips-fontSize-lg, $input-chips-fontSize-lg);
70
+ }
71
+
72
+ .#{$c}__chip {
73
+ font-size: 14px;
74
+ padding: 4px 8px;
75
+ }
76
+ }
77
+
78
+ // Chip
79
+ .#{$c}__chip {
80
+ display: inline-flex;
81
+ align-items: center;
82
+ gap: var(--input-chips-chip-gap, $input-chips-chip-gap);
83
+ padding: var(--input-chips-chip-padding-y, $input-chips-chip-padding-y) var(--input-chips-chip-padding-x, $input-chips-chip-padding-x);
84
+ background-color: var(--input-chips-chip-background-default, $input-chips-chip-background-default);
85
+ border-radius: var(--input-chips-chip-radius, $input-chips-chip-radius);
86
+ font-size: var(--input-chips-chip-fontSize, $input-chips-chip-fontSize);
87
+ color: var(--input-chips-chip-text, $input-chips-chip-text);
88
+ line-height: 1.4;
89
+ user-select: none;
90
+ transition: background-color 0.15s ease;
91
+
92
+ &:hover {
93
+ background-color: var(--input-chips-chip-background-hover, $input-chips-chip-background-hover);
94
+ }
95
+ }
96
+
97
+ .#{$c}__chip-label {
98
+ white-space: nowrap;
99
+ }
100
+
101
+ .#{$c}__chip-remove {
102
+ display: inline-flex;
103
+ align-items: center;
104
+ justify-content: center;
105
+ width: var(--input-chips-remove-size, $input-chips-remove-size);
106
+ height: var(--input-chips-remove-size, $input-chips-remove-size);
107
+ padding: 0;
108
+ background: transparent;
109
+ border: none;
110
+ border-radius: 50%;
111
+ color: var(--input-chips-remove-color-default, $input-chips-remove-color-default);
112
+ cursor: pointer;
113
+ transition: color 0.15s ease;
114
+ flex-shrink: 0;
115
+
116
+ &:hover {
117
+ color: var(--input-chips-remove-color-hover, $input-chips-remove-color-hover);
118
+ }
119
+
120
+ &:focus {
121
+ outline: none;
122
+ }
123
+
124
+ &:focus-visible {
125
+ outline: 2px solid var(--input-chips-focus-ringColor, $input-chips-focus-ringColor);
126
+ outline-offset: 1px;
127
+ }
128
+ }
129
+
130
+ .#{$c}__chip-remove-icon {
131
+ width: 12px;
132
+ height: 12px;
133
+ }
134
+
135
+ // Input
136
+ .#{$c}__input {
137
+ flex: 1;
138
+ min-width: 80px;
139
+ border: none;
140
+ background: transparent;
141
+ padding: 0;
142
+ color: var(--input-chips-text-default, $input-chips-text-default);
143
+ font-size: var(--input-chips-fontSize-md, $input-chips-fontSize-md);
144
+ line-height: 1.5;
145
+
146
+ &::placeholder {
147
+ color: var(--input-chips-text-placeholder, $input-chips-text-placeholder);
148
+ }
149
+
150
+ &:focus {
151
+ outline: none;
152
+ }
153
+
154
+ &:disabled {
155
+ cursor: not-allowed;
156
+ color: var(--input-chips-text-disabled, $input-chips-text-disabled);
157
+ }
158
+ }
159
+
160
+ // Disabled chip styling
161
+ .#{$c}--disabled {
162
+ .#{$c}__chip {
163
+ opacity: 0.6;
164
+ }
165
+ }
@@ -0,0 +1,169 @@
1
+ <template>
2
+ <div
3
+ class="input-chips"
4
+ :class="additionalClasses"
5
+ @click="focusInput"
6
+ >
7
+ <span
8
+ v-for="(chip, index) in modelValue"
9
+ :key="`chip-${index}`"
10
+ class="input-chips__chip"
11
+ >
12
+ <span class="input-chips__chip-label">{{ chip }}</span>
13
+ <button
14
+ v-if="!isDisabled"
15
+ type="button"
16
+ class="input-chips__chip-remove"
17
+ aria-label="Remove"
18
+ @click.stop="removeChip(index)"
19
+ >
20
+ <svg
21
+ class="input-chips__chip-remove-icon"
22
+ viewBox="0 0 14 14"
23
+ fill="none"
24
+ xmlns="http://www.w3.org/2000/svg"
25
+ >
26
+ <path
27
+ d="M4.5 4.5L9.5 9.5M9.5 4.5L4.5 9.5"
28
+ stroke="currentColor"
29
+ stroke-width="1.5"
30
+ stroke-linecap="round"
31
+ stroke-linejoin="round"
32
+ />
33
+ </svg>
34
+ </button>
35
+ </span>
36
+ <input
37
+ ref="inputRef"
38
+ v-model="inputValue"
39
+ class="input-chips__input"
40
+ type="text"
41
+ :placeholder="showPlaceholder ? placeholder : ''"
42
+ :disabled="isDisabled"
43
+ @keydown="onKeydown"
44
+ @paste="onPaste"
45
+ @focus="onFocus"
46
+ @blur="onBlur"
47
+ />
48
+ </div>
49
+ </template>
50
+
51
+ <style src="./InputChips.scss"></style>
52
+
53
+ <script setup lang="ts">
54
+ import type { InputChipsProps, InputChipsEmits } from '../../types';
55
+ import { computed, ref, nextTick } from "vue";
56
+
57
+ defineOptions({ name: 'FtpInputChips' });
58
+
59
+ const props = withDefaults(defineProps<InputChipsProps>(), {
60
+ modelValue: () => [],
61
+ separator: null,
62
+ allowDuplicate: false,
63
+ max: null,
64
+ placeholder: "",
65
+ size: "md",
66
+ isDisabled: false,
67
+ isInvalid: false,
68
+ });
69
+
70
+ const emit = defineEmits(["update:modelValue", "add", "remove", "focus", "blur"]);
71
+
72
+ const inputRef = ref<HTMLInputElement | null>(null);
73
+ const inputValue = ref("");
74
+ const isFocused = ref(false);
75
+
76
+ const showPlaceholder = computed(() => props.modelValue.length === 0);
77
+
78
+ const canAddMore = computed(() => {
79
+ if (props.max === null) return true;
80
+ return props.modelValue.length < props.max;
81
+ });
82
+
83
+ const addChip = (value: any) => {
84
+ const trimmedValue = value.trim();
85
+ if (!trimmedValue) return false;
86
+
87
+ if (!props.allowDuplicate && props.modelValue.includes(trimmedValue)) {
88
+ return false;
89
+ }
90
+
91
+ if (!canAddMore.value) return false;
92
+
93
+ const newValue = [...props.modelValue, trimmedValue];
94
+ emit("update:modelValue", newValue);
95
+ emit("add", { value: trimmedValue, chips: newValue });
96
+ return true;
97
+ };
98
+
99
+ const removeChip = (index: any) => {
100
+ const removedValue = props.modelValue[index];
101
+ const newValue = props.modelValue.filter((_, i) => i !== index);
102
+ emit("update:modelValue", newValue);
103
+ emit("remove", { value: removedValue, chips: newValue });
104
+ };
105
+
106
+ const processInput = (value: any) => {
107
+ if (props.separator) {
108
+ const parts = value.split(props.separator);
109
+ parts.forEach((part: any) => addChip(part));
110
+ } else {
111
+ addChip(value);
112
+ }
113
+ inputValue.value = "";
114
+ };
115
+
116
+ const onKeydown = (event: KeyboardEvent) => {
117
+ if (event.key === "Enter") {
118
+ event.preventDefault();
119
+ if (inputValue.value) {
120
+ processInput(inputValue.value);
121
+ }
122
+ } else if (event.key === "Backspace" && !inputValue.value && props.modelValue.length > 0) {
123
+ removeChip(props.modelValue.length - 1);
124
+ } else if (props.separator && typeof props.separator === "string" && event.key === props.separator) {
125
+ event.preventDefault();
126
+ if (inputValue.value) {
127
+ processInput(inputValue.value);
128
+ }
129
+ }
130
+ };
131
+
132
+ const onPaste = (event: ClipboardEvent) => {
133
+ if (props.separator) {
134
+ event.preventDefault();
135
+ const pastedText = event.clipboardData!.getData("text");
136
+ processInput(pastedText);
137
+ }
138
+ };
139
+
140
+ const onFocus = (event: FocusEvent) => {
141
+ isFocused.value = true;
142
+ emit("focus", { originalEvent: event });
143
+ };
144
+
145
+ const onBlur = (event: FocusEvent) => {
146
+ isFocused.value = false;
147
+ if (inputValue.value) {
148
+ processInput(inputValue.value);
149
+ }
150
+ emit("blur", { originalEvent: event });
151
+ };
152
+
153
+ const focusInput = () => {
154
+ inputRef.value?.focus();
155
+ };
156
+
157
+ const additionalClasses = computed(() => [
158
+ `input-chips--size-${props.size}`,
159
+ isFocused.value && "input-chips--focused",
160
+ props.isDisabled && "input-chips--disabled",
161
+ props.isInvalid && "input-chips--invalid",
162
+ ].filter(Boolean).join(" "));
163
+
164
+ defineExpose({
165
+ focus: () => inputRef.value?.focus(),
166
+ blur: () => inputRef.value?.blur(),
167
+ el: inputRef,
168
+ });
169
+ </script>
@@ -0,0 +1,57 @@
1
+ @use "../../../dist/scss/tokens" as *;
2
+
3
+ $c: input-group;
4
+
5
+ .#{$c} {
6
+ display: inline-flex;
7
+ align-items: stretch;
8
+
9
+ // First child gets left border radius
10
+ > :first-child {
11
+ border-top-left-radius: var(--input-group-border-radius, $input-group-border-radius);
12
+ border-bottom-left-radius: var(--input-group-border-radius, $input-group-border-radius);
13
+ border-top-right-radius: 0;
14
+ border-bottom-right-radius: 0;
15
+ }
16
+
17
+ // Last child gets right border radius
18
+ > :last-child {
19
+ border-top-right-radius: var(--input-group-border-radius, $input-group-border-radius);
20
+ border-bottom-right-radius: var(--input-group-border-radius, $input-group-border-radius);
21
+ border-top-left-radius: 0;
22
+ border-bottom-left-radius: 0;
23
+ }
24
+
25
+ // Middle children have no radius
26
+ > :not(:first-child):not(:last-child) {
27
+ border-radius: 0;
28
+ }
29
+
30
+ // Only child keeps all radii
31
+ > :only-child {
32
+ border-radius: var(--input-group-border-radius, $input-group-border-radius);
33
+ }
34
+
35
+ // Remove duplicate borders between adjacent elements
36
+ > :not(:first-child) {
37
+ margin-left: -1px;
38
+ }
39
+
40
+ // Ensure focused element appears above siblings
41
+ > :focus,
42
+ > :focus-within {
43
+ position: relative;
44
+ z-index: 1;
45
+ }
46
+ }
47
+
48
+ .#{$c}--fluid {
49
+ display: flex;
50
+ width: 100%;
51
+
52
+ > .input-text,
53
+ > input {
54
+ flex: 1;
55
+ width: auto;
56
+ }
57
+ }
@@ -0,0 +1,22 @@
1
+ <template>
2
+ <div class="input-group" :class="additionalClasses">
3
+ <slot />
4
+ </div>
5
+ </template>
6
+
7
+ <style src="./InputGroup.scss"></style>
8
+
9
+ <script setup lang="ts">
10
+ import type { InputGroupProps } from '../../types';
11
+ import { computed } from "vue";
12
+
13
+ defineOptions({ name: 'FtpInputGroup' });
14
+
15
+ const props = withDefaults(defineProps<InputGroupProps>(), {
16
+ fluid: false,
17
+ });
18
+
19
+ const additionalClasses = computed(() =>
20
+ [props.fluid && "input-group--fluid"].filter(Boolean).join(" ")
21
+ );
22
+ </script>
@@ -0,0 +1,28 @@
1
+ @use "../../../dist/scss/tokens" as *;
2
+
3
+ $c: input-group-addon;
4
+
5
+ .#{$c} {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ background-color: var(--input-group-addon-background-default, $input-group-addon-background-default);
10
+ color: var(--input-group-addon-text-default, $input-group-addon-text-default);
11
+ border: var(--input-group-addon-border-width, $input-group-addon-border-width) solid var(--input-group-addon-border-color, $input-group-addon-border-color);
12
+ padding: var(--input-group-addon-padding-y, $input-group-addon-padding-y) var(--input-group-addon-padding-x, $input-group-addon-padding-x);
13
+ font-size: var(--input-group-addon-fontSize, $input-group-addon-fontSize);
14
+ white-space: nowrap;
15
+ }
16
+
17
+ // Sizes - match InputText sizes
18
+ .#{$c}--size-sm {
19
+ height: var(--input-text-height-sm, $input-text-height-sm);
20
+ }
21
+
22
+ .#{$c}--size-md {
23
+ height: var(--input-text-height-md, $input-text-height-md);
24
+ }
25
+
26
+ .#{$c}--size-lg {
27
+ height: var(--input-text-height-lg, $input-text-height-lg);
28
+ }
@@ -0,0 +1,22 @@
1
+ <template>
2
+ <span class="input-group-addon" :class="additionalClasses">
3
+ <slot />
4
+ </span>
5
+ </template>
6
+
7
+ <style src="./InputGroupAddon.scss"></style>
8
+
9
+ <script setup lang="ts">
10
+ import type { InputGroupAddonProps } from '../../types';
11
+ import { computed } from "vue";
12
+
13
+ defineOptions({ name: 'FtpInputGroupAddon' });
14
+
15
+ const props = withDefaults(defineProps<InputGroupAddonProps>(), {
16
+ size: "md",
17
+ });
18
+
19
+ const additionalClasses = computed(() =>
20
+ [`input-group-addon--size-${props.size}`].filter(Boolean).join(" ")
21
+ );
22
+ </script>
@@ -0,0 +1,58 @@
1
+ @use "../../../dist/scss/tokens" as *;
2
+
3
+ $c: input-icon;
4
+
5
+ .#{$c} {
6
+ display: inline-flex;
7
+ align-items: center;
8
+ justify-content: center;
9
+ color: var(--input-icon-color-default, $input-icon-color-default);
10
+ pointer-events: none;
11
+ position: absolute;
12
+ top: 50%;
13
+ transform: translateY(-50%);
14
+ z-index: 1;
15
+ }
16
+
17
+ // Positions
18
+ .#{$c}--position-left {
19
+ left: var(--input-icon-offset, $input-icon-offset);
20
+ }
21
+
22
+ .#{$c}--position-right {
23
+ right: var(--input-icon-offset, $input-icon-offset);
24
+ }
25
+
26
+ // Sizes
27
+ .#{$c}--size-sm {
28
+ width: var(--input-icon-size-sm, $input-icon-size-sm);
29
+ height: var(--input-icon-size-sm, $input-icon-size-sm);
30
+ font-size: var(--input-icon-size-sm, $input-icon-size-sm);
31
+
32
+ svg {
33
+ width: var(--input-icon-size-sm, $input-icon-size-sm);
34
+ height: var(--input-icon-size-sm, $input-icon-size-sm);
35
+ }
36
+ }
37
+
38
+ .#{$c}--size-md {
39
+ width: var(--input-icon-size-md, $input-icon-size-md);
40
+ height: var(--input-icon-size-md, $input-icon-size-md);
41
+ font-size: var(--input-icon-size-md, $input-icon-size-md);
42
+
43
+ svg {
44
+ width: var(--input-icon-size-md, $input-icon-size-md);
45
+ height: var(--input-icon-size-md, $input-icon-size-md);
46
+ }
47
+ }
48
+
49
+ .#{$c}--size-lg {
50
+ width: var(--input-icon-size-lg, $input-icon-size-lg);
51
+ height: var(--input-icon-size-lg, $input-icon-size-lg);
52
+ font-size: var(--input-icon-size-lg, $input-icon-size-lg);
53
+
54
+ svg {
55
+ width: var(--input-icon-size-lg, $input-icon-size-lg);
56
+ height: var(--input-icon-size-lg, $input-icon-size-lg);
57
+ }
58
+ }
@@ -0,0 +1,28 @@
1
+ <template>
2
+ <span class="input-icon" :class="additionalClasses" aria-hidden="true">
3
+ <slot />
4
+ </span>
5
+ </template>
6
+
7
+ <style src="./InputIcon.scss"></style>
8
+
9
+ <script setup lang="ts">
10
+ import type { InputIconProps } from '../../types';
11
+ import { computed } from "vue";
12
+
13
+ defineOptions({ name: 'FtpInputIcon' });
14
+
15
+ const props = withDefaults(defineProps<InputIconProps>(), {
16
+ size: "md",
17
+ position: "left",
18
+ });
19
+
20
+ const additionalClasses = computed(() =>
21
+ [
22
+ `input-icon--size-${props.size}`,
23
+ `input-icon--position-${props.position}`,
24
+ ]
25
+ .filter(Boolean)
26
+ .join(" ")
27
+ );
28
+ </script>