@dvcol/neo-svelte 0.1.6 → 0.1.8

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 (299) hide show
  1. package/CHANGELOG.md +148 -0
  2. package/README.md +98 -17
  3. package/dist/badge/NeoBadge.svelte +99 -0
  4. package/dist/badge/NeoBadge.svelte.d.ts +4 -0
  5. package/dist/badge/neo-badge.model.d.ts +48 -0
  6. package/dist/badge/neo-badge.model.js +10 -0
  7. package/dist/buttons/NeoButton.svelte +200 -198
  8. package/dist/buttons/NeoButton.svelte.d.ts +3 -18
  9. package/dist/buttons/NeoButtonGroup.svelte +127 -129
  10. package/dist/buttons/NeoButtonGroup.svelte.d.ts +2 -17
  11. package/dist/buttons/NeoCheckboxButton.svelte +173 -0
  12. package/dist/buttons/NeoCheckboxButton.svelte.d.ts +4 -0
  13. package/dist/buttons/NeoRadioButton.svelte +174 -0
  14. package/dist/buttons/NeoRadioButton.svelte.d.ts +4 -0
  15. package/dist/buttons/NeoSwitchButton.svelte +300 -0
  16. package/dist/buttons/NeoSwitchButton.svelte.d.ts +4 -0
  17. package/dist/buttons/index.d.ts +8 -2
  18. package/dist/buttons/index.js +3 -0
  19. package/dist/buttons/neo-button-group.model.d.ts +56 -10
  20. package/dist/buttons/neo-button.model.d.ts +91 -10
  21. package/dist/buttons/neo-button.model.js +17 -1
  22. package/dist/buttons/neo-checkbox-button.model.d.ts +18 -0
  23. package/dist/buttons/neo-checkbox-button.model.js +1 -0
  24. package/dist/buttons/neo-radio-button.model.d.ts +18 -0
  25. package/dist/buttons/neo-radio-button.model.js +1 -0
  26. package/dist/buttons/neo-switch-button.model.d.ts +31 -0
  27. package/dist/buttons/neo-switch-button.model.js +1 -0
  28. package/dist/cards/NeoCard.svelte +175 -113
  29. package/dist/cards/NeoCard.svelte.d.ts +2 -17
  30. package/dist/cards/index.d.ts +1 -1
  31. package/dist/cards/neo-card.model.d.ts +49 -32
  32. package/dist/containers/NeoTransitionContainer.svelte +14 -1
  33. package/dist/containers/NeoTransitionContainer.svelte.d.ts +2 -17
  34. package/dist/containers/index.d.ts +1 -1
  35. package/dist/containers/neo-transition-container.model.d.ts +4 -3
  36. package/dist/divider/NeoDivider.svelte +83 -15
  37. package/dist/divider/NeoDivider.svelte.d.ts +2 -17
  38. package/dist/divider/index.d.ts +1 -1
  39. package/dist/divider/neo-divider.model.d.ts +33 -1
  40. package/dist/icons/IconAccount.svelte +9 -1
  41. package/dist/icons/IconAdd.svelte +9 -1
  42. package/dist/icons/IconAlert.svelte +9 -1
  43. package/dist/icons/IconAlignBottom.svelte +21 -0
  44. package/dist/icons/IconAlignBottom.svelte.d.ts +26 -0
  45. package/dist/icons/IconAlignMiddle.svelte +21 -0
  46. package/dist/icons/IconAlignMiddle.svelte.d.ts +26 -0
  47. package/dist/icons/IconAlignTop.svelte +21 -0
  48. package/dist/icons/IconAlignTop.svelte.d.ts +26 -0
  49. package/dist/icons/IconBouncingDots.svelte +60 -0
  50. package/dist/icons/IconBouncingDots.svelte.d.ts +8 -0
  51. package/dist/icons/IconCalendar.svelte +9 -1
  52. package/dist/icons/IconCancel.svelte +22 -0
  53. package/dist/icons/{IconSunFull.svelte.d.ts → IconCancel.svelte.d.ts} +3 -3
  54. package/dist/icons/IconCheckbox.svelte +41 -28
  55. package/dist/icons/IconCheckbox.svelte.d.ts +8 -18
  56. package/dist/icons/IconCircleLoading.svelte +9 -5
  57. package/dist/icons/IconCircleLoading.svelte.d.ts +20 -14
  58. package/dist/icons/IconClear.svelte +9 -1
  59. package/dist/icons/IconClose.svelte +9 -1
  60. package/dist/icons/IconConfirm.svelte +9 -1
  61. package/dist/icons/IconDoubleChevron.svelte +34 -0
  62. package/dist/icons/IconDoubleChevron.svelte.d.ts +26 -0
  63. package/dist/icons/IconDoubleChevronLeft.svelte +26 -0
  64. package/dist/icons/IconDoubleChevronLeft.svelte.d.ts +26 -0
  65. package/dist/icons/IconDoubleChevronRight.svelte +26 -0
  66. package/dist/icons/IconDoubleChevronRight.svelte.d.ts +26 -0
  67. package/dist/icons/IconDownload.svelte +9 -1
  68. package/dist/icons/IconEmpty.svelte +9 -1
  69. package/dist/icons/IconFileUpload.svelte +9 -1
  70. package/dist/icons/IconGithub.svelte +9 -1
  71. package/dist/icons/IconImage.svelte +9 -1
  72. package/dist/icons/IconList.svelte +36 -0
  73. package/dist/icons/{IconMoon.svelte.d.ts → IconList.svelte.d.ts} +3 -3
  74. package/dist/icons/IconMail.svelte +22 -0
  75. package/dist/icons/IconMail.svelte.d.ts +26 -0
  76. package/dist/icons/IconMinus.svelte +9 -1
  77. package/dist/icons/IconPaint.svelte +9 -1
  78. package/dist/icons/IconPencil.svelte +9 -1
  79. package/dist/icons/IconPlayPause.svelte +96 -0
  80. package/dist/icons/IconPlayPause.svelte.d.ts +9 -0
  81. package/dist/icons/IconQuestionMark.svelte +18 -0
  82. package/dist/icons/IconQuestionMark.svelte.d.ts +26 -0
  83. package/dist/icons/IconRadio.svelte +13 -9
  84. package/dist/icons/IconRadio.svelte.d.ts +5 -18
  85. package/dist/icons/IconSave.svelte +15 -5
  86. package/dist/icons/IconSaveOff.svelte +22 -9
  87. package/dist/icons/IconSearch.svelte +9 -1
  88. package/dist/icons/IconSun.svelte +30 -51
  89. package/dist/icons/IconSunMoon.svelte +254 -0
  90. package/dist/icons/IconSunMoon.svelte.d.ts +9 -0
  91. package/dist/icons/IconTextHighlight.svelte +27 -0
  92. package/dist/icons/IconTextHighlight.svelte.d.ts +26 -0
  93. package/dist/icons/IconVideo.svelte +9 -1
  94. package/dist/icons/IconWatch.svelte +9 -1
  95. package/dist/icons/IconWatchOff.svelte +9 -1
  96. package/dist/index.d.ts +5 -0
  97. package/dist/index.js +5 -0
  98. package/dist/inputs/NeoCheckbox.svelte +95 -176
  99. package/dist/inputs/NeoCheckbox.svelte.d.ts +2 -17
  100. package/dist/inputs/NeoColorPicker.svelte +32 -44
  101. package/dist/inputs/NeoColorPicker.svelte.d.ts +2 -17
  102. package/dist/inputs/NeoColorPickerSelector.svelte +51 -0
  103. package/dist/inputs/NeoColorPickerSelector.svelte.d.ts +4 -0
  104. package/dist/inputs/NeoDateTime.svelte +29 -18
  105. package/dist/inputs/NeoDateTime.svelte.d.ts +2 -17
  106. package/dist/inputs/NeoFilePicker.svelte +93 -65
  107. package/dist/inputs/NeoFilePicker.svelte.d.ts +2 -17
  108. package/dist/inputs/NeoFilePickerCard.svelte +69 -25
  109. package/dist/inputs/NeoFilePickerCard.svelte.d.ts +2 -17
  110. package/dist/inputs/NeoNativeSelect.svelte +113 -0
  111. package/dist/inputs/NeoNativeSelect.svelte.d.ts +4 -0
  112. package/dist/inputs/NeoNumberStep.svelte +31 -16
  113. package/dist/inputs/NeoNumberStep.svelte.d.ts +2 -17
  114. package/dist/inputs/NeoPassword.svelte +20 -10
  115. package/dist/inputs/NeoPassword.svelte.d.ts +3 -7
  116. package/dist/inputs/NeoPin.svelte +40 -30
  117. package/dist/inputs/NeoPin.svelte.d.ts +2 -17
  118. package/dist/inputs/NeoRadio.svelte +86 -167
  119. package/dist/inputs/NeoRadio.svelte.d.ts +2 -17
  120. package/dist/inputs/NeoRange.svelte +221 -118
  121. package/dist/inputs/NeoRange.svelte.d.ts +2 -17
  122. package/dist/inputs/NeoSelect.svelte +229 -0
  123. package/dist/inputs/NeoSelect.svelte.d.ts +4 -0
  124. package/dist/inputs/NeoSwitch.svelte +100 -237
  125. package/dist/inputs/NeoSwitch.svelte.d.ts +2 -17
  126. package/dist/inputs/NeoTextarea.svelte +209 -97
  127. package/dist/inputs/NeoTextarea.svelte.d.ts +3 -18
  128. package/dist/inputs/common/NeoAffix.svelte +76 -50
  129. package/dist/inputs/common/NeoAffix.svelte.d.ts +2 -17
  130. package/dist/inputs/common/NeoBaseInput.svelte +172 -26
  131. package/dist/inputs/common/NeoBaseInput.svelte.d.ts +5 -18
  132. package/dist/inputs/common/NeoInput.svelte +217 -109
  133. package/dist/inputs/common/NeoInput.svelte.d.ts +2 -17
  134. package/dist/inputs/common/NeoInputValidation.svelte +6 -3
  135. package/dist/inputs/common/NeoInputValidation.svelte.d.ts +3 -7
  136. package/dist/inputs/common/NeoLabel.svelte +12 -6
  137. package/dist/inputs/common/NeoLabel.svelte.d.ts +2 -17
  138. package/dist/inputs/common/NeoValidation.svelte +27 -17
  139. package/dist/inputs/common/NeoValidation.svelte.d.ts +3 -7
  140. package/dist/inputs/common/neo-affix.model.d.ts +32 -2
  141. package/dist/inputs/common/neo-input-validation.model.d.ts +4 -1
  142. package/dist/inputs/common/neo-input.model.d.ts +98 -31
  143. package/dist/inputs/common/neo-input.model.js +1 -5
  144. package/dist/inputs/common/neo-label.model.d.ts +4 -5
  145. package/dist/inputs/common/neo-validation.model.d.ts +7 -9
  146. package/dist/inputs/index.d.ts +15 -11
  147. package/dist/inputs/index.js +3 -10
  148. package/dist/inputs/neo-checkbox.model.d.ts +4 -5
  149. package/dist/inputs/neo-color-picker.model.d.ts +13 -2
  150. package/dist/inputs/neo-date-time.model.d.ts +4 -0
  151. package/dist/inputs/neo-file-picker.model.d.ts +20 -0
  152. package/dist/inputs/neo-number-step.model.d.ts +8 -0
  153. package/dist/inputs/neo-password.model.d.ts +7 -0
  154. package/dist/inputs/neo-pin.model.d.ts +1 -1
  155. package/dist/inputs/neo-radio.model.d.ts +4 -5
  156. package/dist/inputs/neo-range.model.d.ts +42 -13
  157. package/dist/inputs/neo-select.model.d.ts +118 -0
  158. package/dist/inputs/neo-select.model.js +13 -0
  159. package/dist/inputs/neo-switch.model.d.ts +4 -5
  160. package/dist/list/NeoList.svelte +564 -0
  161. package/dist/list/NeoList.svelte.d.ts +4 -0
  162. package/dist/list/NeoListBaseItem.svelte +235 -0
  163. package/dist/list/NeoListBaseItem.svelte.d.ts +4 -0
  164. package/dist/list/NeoListBaseLoader.svelte +142 -0
  165. package/dist/list/NeoListBaseLoader.svelte.d.ts +4 -0
  166. package/dist/list/NeoListBaseSection.svelte +63 -0
  167. package/dist/list/NeoListBaseSection.svelte.d.ts +4 -0
  168. package/dist/list/NeoListSearch.svelte +151 -0
  169. package/dist/list/NeoListSearch.svelte.d.ts +4 -0
  170. package/dist/list/index.d.ts +12 -0
  171. package/dist/list/index.js +7 -0
  172. package/dist/list/neo-list-base-item.model.d.ts +65 -0
  173. package/dist/list/neo-list-base-item.model.js +1 -0
  174. package/dist/list/neo-list-base-loader.model.d.ts +55 -0
  175. package/dist/list/neo-list-base-loader.model.js +1 -0
  176. package/dist/list/neo-list-base-section.model.d.ts +34 -0
  177. package/dist/list/neo-list-base-section.model.js +1 -0
  178. package/dist/list/neo-list-search.model.d.ts +43 -0
  179. package/dist/list/neo-list-search.model.js +17 -0
  180. package/dist/list/neo-list.model.d.ts +348 -0
  181. package/dist/list/neo-list.model.js +6 -0
  182. package/dist/nav/NeoTab.svelte +48 -38
  183. package/dist/nav/NeoTab.svelte.d.ts +2 -17
  184. package/dist/nav/NeoTabDivider.svelte +15 -0
  185. package/dist/nav/NeoTabDivider.svelte.d.ts +4 -0
  186. package/dist/nav/NeoTabPanel.svelte +1 -1
  187. package/dist/nav/NeoTabPanel.svelte.d.ts +2 -17
  188. package/dist/nav/NeoTabs.svelte +69 -52
  189. package/dist/nav/NeoTabs.svelte.d.ts +2 -17
  190. package/dist/nav/NeoTabsCard.svelte.d.ts +2 -17
  191. package/dist/nav/index.d.ts +5 -4
  192. package/dist/nav/index.js +1 -0
  193. package/dist/nav/neo-tab-panel.model.d.ts +8 -7
  194. package/dist/nav/neo-tab.model.d.ts +5 -5
  195. package/dist/nav/neo-tabs.model.d.ts +31 -18
  196. package/dist/pill/NeoPill.svelte +277 -0
  197. package/dist/pill/NeoPill.svelte.d.ts +4 -0
  198. package/dist/pill/index.d.ts +2 -0
  199. package/dist/pill/index.js +1 -0
  200. package/dist/pill/neo-pill.model.d.ts +104 -0
  201. package/dist/pill/neo-pill.model.js +5 -0
  202. package/dist/progress/NeoProgress.svelte +376 -0
  203. package/dist/progress/NeoProgress.svelte.d.ts +11 -0
  204. package/dist/progress/NeoProgressBar.svelte +196 -0
  205. package/dist/progress/NeoProgressBar.svelte.d.ts +4 -0
  206. package/dist/progress/NeoProgressMark.svelte +34 -0
  207. package/dist/progress/NeoProgressMark.svelte.d.ts +4 -0
  208. package/dist/progress/index.d.ts +5 -0
  209. package/dist/progress/index.js +3 -0
  210. package/dist/progress/neo-progress-bar.model.d.ts +73 -0
  211. package/dist/progress/neo-progress-bar.model.js +1 -0
  212. package/dist/progress/neo-progress-mark.model.d.ts +12 -0
  213. package/dist/progress/neo-progress-mark.model.js +1 -0
  214. package/dist/progress/neo-progress.model.d.ts +158 -0
  215. package/dist/progress/neo-progress.model.js +13 -0
  216. package/dist/providers/NeoThemePicker.svelte +93 -0
  217. package/dist/providers/NeoThemePicker.svelte.d.ts +4 -0
  218. package/dist/providers/NeoThemeProvider.svelte +2 -765
  219. package/dist/providers/NeoThemeProvider.svelte.d.ts +3 -17
  220. package/dist/providers/NeoThemeSelector.svelte +15 -12
  221. package/dist/providers/NeoThemeSelector.svelte.d.ts +2 -17
  222. package/dist/providers/index.d.ts +5 -3
  223. package/dist/providers/index.js +2 -1
  224. package/dist/providers/neo-theme-picker.model.d.ts +21 -0
  225. package/dist/providers/neo-theme-picker.model.js +1 -0
  226. package/dist/providers/neo-theme-provider-context.svelte.d.ts +2 -0
  227. package/dist/providers/neo-theme-provider-context.svelte.js +24 -2
  228. package/dist/providers/neo-theme-provider.model.d.ts +1 -1
  229. package/dist/providers/neo-theme-provider.model.js +1 -0
  230. package/dist/providers/neo-theme-provider.scss +8 -0
  231. package/dist/providers/neo-theme-selector.model.d.ts +15 -0
  232. package/dist/skeletons/NeoSkeletonContainer.svelte +68 -12
  233. package/dist/skeletons/NeoSkeletonContainer.svelte.d.ts +2 -17
  234. package/dist/skeletons/NeoSkeletonMedia.svelte +58 -37
  235. package/dist/skeletons/NeoSkeletonMedia.svelte.d.ts +2 -17
  236. package/dist/skeletons/NeoSkeletonText.svelte +98 -48
  237. package/dist/skeletons/NeoSkeletonText.svelte.d.ts +2 -17
  238. package/dist/skeletons/index.d.ts +2 -2
  239. package/dist/skeletons/neo-skeleton-container.model.d.ts +23 -3
  240. package/dist/skeletons/neo-skeleton-media.model.d.ts +32 -6
  241. package/dist/skeletons/neo-skeleton-text.model.d.ts +41 -9
  242. package/dist/styles/animation.scss +35 -14
  243. package/dist/styles/common/colors.scss +182 -145
  244. package/dist/styles/common/easing.scss +36 -0
  245. package/dist/styles/common/properties.css +6 -0
  246. package/dist/styles/common/shadows.scss +203 -42
  247. package/dist/styles/common/spacing.scss +5 -0
  248. package/dist/styles/common/typography.scss +1 -1
  249. package/dist/styles/mixin.scss +182 -49
  250. package/dist/styles/theme.scss +10 -0
  251. package/dist/text/NeoEllipsis.svelte +29 -0
  252. package/dist/text/NeoEllipsis.svelte.d.ts +4 -0
  253. package/dist/text/NeoMark.svelte +32 -0
  254. package/dist/text/NeoMark.svelte.d.ts +4 -0
  255. package/dist/text/NeoScrollShadow.svelte +124 -0
  256. package/dist/text/NeoScrollShadow.svelte.d.ts +4 -0
  257. package/dist/text/index.d.ts +6 -0
  258. package/dist/text/index.js +3 -0
  259. package/dist/text/neo-ellipsis.model.d.ts +24 -0
  260. package/dist/text/neo-ellipsis.model.js +1 -0
  261. package/dist/text/neo-mark.model.d.ts +27 -0
  262. package/dist/text/neo-mark.model.js +1 -0
  263. package/dist/text/neo-scroll-shadow.model.d.ts +43 -0
  264. package/dist/text/neo-scroll-shadow.model.js +1 -0
  265. package/dist/tooltips/NeoPopSelect.svelte +124 -0
  266. package/dist/tooltips/NeoPopSelect.svelte.d.ts +4 -0
  267. package/dist/tooltips/NeoTooltip.svelte +424 -0
  268. package/dist/tooltips/NeoTooltip.svelte.d.ts +4 -0
  269. package/dist/tooltips/index.d.ts +4 -0
  270. package/dist/tooltips/index.js +2 -0
  271. package/dist/tooltips/neo-pop-select.model.d.ts +116 -0
  272. package/dist/tooltips/neo-pop-select.model.js +1 -0
  273. package/dist/tooltips/neo-tooltip.model.d.ts +178 -0
  274. package/dist/tooltips/neo-tooltip.model.js +5 -0
  275. package/dist/utils/action.utils.d.ts +22 -7
  276. package/dist/utils/action.utils.js +5 -3
  277. package/dist/utils/colors.utils.d.ts +16 -0
  278. package/dist/utils/colors.utils.js +19 -0
  279. package/dist/utils/error.utils.d.ts +4 -0
  280. package/dist/utils/error.utils.js +6 -0
  281. package/dist/utils/html-element.utils.d.ts +9 -1
  282. package/dist/utils/html-element.utils.js +8 -1
  283. package/dist/utils/shadow.utils.d.ts +33 -8
  284. package/dist/utils/shadow.utils.js +40 -21
  285. package/dist/utils/string.utils.d.ts +6 -0
  286. package/dist/utils/string.utils.js +21 -0
  287. package/dist/utils/style.utils.d.ts +9 -0
  288. package/dist/utils/style.utils.js +16 -0
  289. package/dist/utils/transition.utils.d.ts +9 -8
  290. package/dist/utils/transition.utils.js +11 -14
  291. package/package.json +46 -28
  292. package/dist/icons/IconMoon.svelte +0 -64
  293. package/dist/icons/IconSunFull.svelte +0 -25
  294. package/dist/utils/math.utils.d.ts +0 -1
  295. package/dist/utils/math.utils.js +0 -7
  296. package/dist/utils/timeout.util.d.ts +0 -5
  297. package/dist/utils/timeout.util.js +0 -15
  298. package/dist/utils/utils.svelte.d.ts +0 -6
  299. package/dist/utils/utils.svelte.js +0 -13
package/CHANGELOG.md CHANGED
@@ -2,6 +2,154 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.8](https://github.com/dvcol/neo-svelte/compare/v0.1.7...v0.1.8) (2025-02-19)
6
+
7
+
8
+ ### Features
9
+
10
+ * **badge:** adds badge component ([0a8c71b](https://github.com/dvcol/neo-svelte/commit/0a8c71b13bdac40e102f35ce9a6b9fb3578dbd11))
11
+ * **blur:** adds blur as props ([cceacc4](https://github.com/dvcol/neo-svelte/commit/cceacc4ffbe250fff0fa10b6b887130d794cce39))
12
+ * **button:** adds button group colour & add tint support ([0a551ed](https://github.com/dvcol/neo-svelte/commit/0a551ede0ac9234fc0822d3ff5f8a894a9c6309b))
13
+ * **button:** adds custom hover/active to groups ([c2e227a](https://github.com/dvcol/neo-svelte/commit/c2e227ad2be66277e5c716e062eb82fa292513b3))
14
+ * **button:** rework of button elevation ([edb2cba](https://github.com/dvcol/neo-svelte/commit/edb2cba204dd09b02f2795ce620f16c6b7a64cbe))
15
+ * **buttons:** adds hover support to group itself ([d2ccdc3](https://github.com/dvcol/neo-svelte/commit/d2ccdc33cea572be351d2a634109ba78910287ee))
16
+ * **card:** adds tint & colour support ([4dba81b](https://github.com/dvcol/neo-svelte/commit/4dba81b1700d93945c6f561acabac2b58c1cf413))
17
+ * **input:** adds colour and tint support to inputs ([7973653](https://github.com/dvcol/neo-svelte/commit/7973653c9e20c11e0a5d94ae6cd1136bb7b98600))
18
+ * **input:** adds first draft of custom select ([5839709](https://github.com/dvcol/neo-svelte/commit/58397096f07592213a9870ac9a950e92df19b558))
19
+ * **input:** adds hidden support directly to basic input ([c7ba00c](https://github.com/dvcol/neo-svelte/commit/c7ba00cefe81f3379a00fb4b555c7efc0ae7760d))
20
+ * **list:** adds custom empty snippet support for sections ([d60fe7b](https://github.com/dvcol/neo-svelte/commit/d60fe7bc91ccde60c7d8a06d73ad4b7b0e9f543e))
21
+ * **list:** fix aria issues ([278bd04](https://github.com/dvcol/neo-svelte/commit/278bd049a27e05e4ca1ee5162adaea272076bd83))
22
+ * **list:** show empty snippet when list is filtered ([a3ec707](https://github.com/dvcol/neo-svelte/commit/a3ec7076c0e1717cbd2b85eaf4dc20446b36600c))
23
+ * **pill:** adds pills component ([8a3abb3](https://github.com/dvcol/neo-svelte/commit/8a3abb3ff937cec1875c27bc31e74869b9483e3a))
24
+ * **progress:** adds initial progress component ([2cb8925](https://github.com/dvcol/neo-svelte/commit/2cb89255f65453f7deb0968af5aa5795ab6a6c73))
25
+ * **progress:** adds progress bar component ([8d3003f](https://github.com/dvcol/neo-svelte/commit/8d3003f399b82e37fe1ce482aefbad40741436aa))
26
+ * **progress:** adds progress buttons ([bcfbada](https://github.com/dvcol/neo-svelte/commit/bcfbadad83b27947053b00ab733c059c9ac2470e))
27
+ * **range:** adds tick markers ([516cf1f](https://github.com/dvcol/neo-svelte/commit/516cf1f651fda943fb194157978e3cd81db2bf0e))
28
+ * **select:** adds custom display support ([eaddfe6](https://github.com/dvcol/neo-svelte/commit/eaddfe6774899861b3b74a17673f851ab497a58d))
29
+ * **select:** support arrowUp/Down selection ([a12c2c4](https://github.com/dvcol/neo-svelte/commit/a12c2c43b5a933f844dc5c8104a0950a110be808))
30
+ * **select:** support custom display snippet ([4b8f79d](https://github.com/dvcol/neo-svelte/commit/4b8f79dbdd5efe3b5f74aa646469d489e04fa034))
31
+ * **size:** adds customisable min/max size ([1b35dce](https://github.com/dvcol/neo-svelte/commit/1b35dce056fe0d671794255d5d0efae86657f7cd))
32
+ * **tabs:** adds hover effect ([646384e](https://github.com/dvcol/neo-svelte/commit/646384e95fec6c8eb3d71f56091305be08005a96))
33
+ * **text:** adds demo for texts and improve scroll-shadow ([f52500d](https://github.com/dvcol/neo-svelte/commit/f52500df22cf285b7e331285d111ca8287569961))
34
+ * **theme:** disable transitions during theme switch ([58e0d77](https://github.com/dvcol/neo-svelte/commit/58e0d77e702acfc24f6dd4b87fe29026dbea8cdf))
35
+ * **tooltip:** adds colour & tint support ([6659707](https://github.com/dvcol/neo-svelte/commit/665970727c231120c2fb3153b2bd9fd47971cb7f))
36
+ * **tooltip:** adds complex pop select example ([706ecfc](https://github.com/dvcol/neo-svelte/commit/706ecfc2ad7d6c5325ea183eadf3853b6ad7ba5f))
37
+ * **tooltip:** adds filled background option ([2966853](https://github.com/dvcol/neo-svelte/commit/29668533c57ed21bce119f912250b78bb332bbfd))
38
+ * **tooltip:** adds pop select ([86d7a8d](https://github.com/dvcol/neo-svelte/commit/86d7a8df7e4bf0abc2ae736dfea4f136656a6b04))
39
+ * **tooltip:** fix positionning in auto ([9619859](https://github.com/dvcol/neo-svelte/commit/9619859d0809e3820a05bd0eb8c2b197fc32ca89))
40
+ * **tooltip:** rework tooltip and input sizing api ([7090740](https://github.com/dvcol/neo-svelte/commit/7090740cc161017f577776d7c64a310c95b35f6e))
41
+
42
+
43
+ ### Bug Fixes
44
+
45
+ * **affix:** rework affix transiitons timing ([1c26919](https://github.com/dvcol/neo-svelte/commit/1c26919104b22a9d15bec84370413816c22220a5))
46
+ * **browser:** add custom scrollbar to firefox ([2b42707](https://github.com/dvcol/neo-svelte/commit/2b42707628827833a641afd0b352f1d45844f91e))
47
+ * **card:** correct scrollbar padding in safari ([b5c4b66](https://github.com/dvcol/neo-svelte/commit/b5c4b66c76798f2187f5299c338c0cefc0fdfb7b))
48
+ * **css:** adds hover effect to borders ([9b0dfbe](https://github.com/dvcol/neo-svelte/commit/9b0dfbebf48f8908ef7b5f7fbdcd563fec4fc7d6))
49
+ * **css:** adds safari & firefox fallbacks ([30ed289](https://github.com/dvcol/neo-svelte/commit/30ed289f09adcfc1a8bbf6243f2147447ff9cf60))
50
+ * **css:** change background-clip to exclude padding ([bd7c623](https://github.com/dvcol/neo-svelte/commit/bd7c623952c96f8fe56490a1b40606501713dd98))
51
+ * **css:** remove scale override & add unchecked colour to mark ([eb010b2](https://github.com/dvcol/neo-svelte/commit/eb010b2c7117071f9b167e0d4b6e6f433bd4aa79))
52
+ * **css:** remove starting-style border ([fae7140](https://github.com/dvcol/neo-svelte/commit/fae71402dc89592b646e604062580403d227c46f))
53
+ * **demo:** update sizing for dividers ([f534e2a](https://github.com/dvcol/neo-svelte/commit/f534e2a222ec94fefd99b3562d5844beb52ba7c2))
54
+ * **dim:** change hover-dim to be on focus-visible ([1c54cc8](https://github.com/dvcol/neo-svelte/commit/1c54cc8c4f07e97687d081e7a2bd0d375cc7dcff))
55
+ * **glass:** adds offset box-shadow in glass mode ([0e1a7c9](https://github.com/dvcol/neo-svelte/commit/0e1a7c916d958458e13c5f1c50ce295b19ee1f8b))
56
+ * **input:** adds border colour on validation ([35f6a13](https://github.com/dvcol/neo-svelte/commit/35f6a13592073c030de84f6f99bac1ae89222d81))
57
+ * **input:** adds hover colour tint to various inputs ([f0b8a37](https://github.com/dvcol/neo-svelte/commit/f0b8a371053a676ac9acac66f6cc8db2c2fb3a4f))
58
+ * **input:** fix accessibility issues ([11fee58](https://github.com/dvcol/neo-svelte/commit/11fee5864dd89eda7d2c19ae4f315daaad4412ef))
59
+ * **inputs:** force buttons to text when in glass mode ([942f6a3](https://github.com/dvcol/neo-svelte/commit/942f6a31c2500d78e144b47d6061717f5dc716eb))
60
+ * **input:** switch to inert for select display input ([d0512fe](https://github.com/dvcol/neo-svelte/commit/d0512fe158881a2f6f1a29541b35303565dadc5a))
61
+ * **input:** update validation styling & support readonly validation ([bc8c72e](https://github.com/dvcol/neo-svelte/commit/bc8c72eb5c3caa0e666fb5b2b00e12dd486e640f))
62
+ * **label:** inverse condition to support less strict inputs ([baac658](https://github.com/dvcol/neo-svelte/commit/baac658cf5d19b2cfd4ddc19d2033d52e4d3d707))
63
+ * **list:** search mirrors loading/skeleton state from list ([321b706](https://github.com/dvcol/neo-svelte/commit/321b7063003ee7dac09ee4cb423b4bf7fc355a36))
64
+ * **list:** support toggle button style ([9a7b815](https://github.com/dvcol/neo-svelte/commit/9a7b81526efcf500ba4dd91a35795fa86fef8443))
65
+ * **select:** adds clearable support ([0833a4f](https://github.com/dvcol/neo-svelte/commit/0833a4f0421d212c5835741b8bbd6b06139e0879))
66
+ * **skeleton:** change skeleton default to explicit false ([6d97feb](https://github.com/dvcol/neo-svelte/commit/6d97feb28ade813e48c791b8f7f765768f6b6644))
67
+ * **skeleton:** simplify skeleton container ([9b2f189](https://github.com/dvcol/neo-svelte/commit/9b2f18903ebca94bd776921f6849d8402cb73658))
68
+ * **style:** better scoping of :global selectors ([8fb9aea](https://github.com/dvcol/neo-svelte/commit/8fb9aea7f316e08dbeb24d3c04e2286270e81d62))
69
+ * **tags:** make tags reactive ([8637080](https://github.com/dvcol/neo-svelte/commit/863708038d96a0aff2137d5dde88e2d65068c574))
70
+ * **tooltip:** adjust clip path ([38ca8f0](https://github.com/dvcol/neo-svelte/commit/38ca8f0c54ad7a74088a2c1da5d3425fc230664b))
71
+ * **tooltip:** adjust padding & sizing on tooltips with lists ([7e0a27f](https://github.com/dvcol/neo-svelte/commit/7e0a27f24799e3b86f86b2d6c88f93d7ecfe2993))
72
+ * **tooltip:** remove tint when filled & un-tinted ([8ced754](https://github.com/dvcol/neo-svelte/commit/8ced754a6632dbc693d930588f3e680d11272d4c))
73
+
74
+ ### [0.1.7](https://github.com/dvcol/neo-svelte/compare/v0.1.6...v0.1.7) (2025-02-03)
75
+
76
+
77
+ ### Features
78
+
79
+ * **affix:** adds custom loading/close/validation snippets ([fcefc30](https://github.com/dvcol/neo-svelte/commit/fcefc309853a6566edacc244e59a3b288b534dd9))
80
+ * **button:** adds support for theme colors ([e01c567](https://github.com/dvcol/neo-svelte/commit/e01c5679bf3b7d48fe822e2a43634b0fd6ac18f4))
81
+ * **buttons:** adds indeterminate to switch and shallow to buttons ([a196c57](https://github.com/dvcol/neo-svelte/commit/a196c57c2b4c3eabcd2eb9dbce2b71492ebec848))
82
+ * **buttons:** adds label snippet ([b39de08](https://github.com/dvcol/neo-svelte/commit/b39de087d34c78c8ea93236801e9c79fe99ad44e))
83
+ * **buttons:** split checkbox, switch, radio buttons out ([536b353](https://github.com/dvcol/neo-svelte/commit/536b3539868fbf78bf720a807744bb6c6a2d0e2a))
84
+ * **button:** support label in switch buttons ([9d69d2a](https://github.com/dvcol/neo-svelte/commit/9d69d2ac3832308482c5ba0f91ba66282739cad8))
85
+ * **divider:** expand divider api ([fb2e932](https://github.com/dvcol/neo-svelte/commit/fb2e9327b8c5cbb41f322f53eaae9aaf61766782))
86
+ * **elevation:** adds support for string elevations ([45d1cd0](https://github.com/dvcol/neo-svelte/commit/45d1cd00d59e3ef8e3df415099ff91022938eaa4))
87
+ * **input:** adds native select component ([0b7dfc1](https://github.com/dvcol/neo-svelte/commit/0b7dfc105e6b65a13665423c37a42bde61f51580))
88
+ * **inputs:** adds customisable icons ([054f4d7](https://github.com/dvcol/neo-svelte/commit/054f4d73d273e7abc8d34f21789776293d02da18))
89
+ * **input:** style multi select native inputs ([308a6de](https://github.com/dvcol/neo-svelte/commit/308a6de8ae6f7a2892926a8defe6dc6cca7b1ba7))
90
+ * **list:** adds aria roles ([165693d](https://github.com/dvcol/neo-svelte/commit/165693d7c55aa1ee58f260f72c92dbbecac0aa3d))
91
+ * **list:** adds arrow navigation ([f339b75](https://github.com/dvcol/neo-svelte/commit/f339b75a2fbe3749e51a4c7d893e3486915335c0))
92
+ * **list:** adds basic support for filtering/sorting ([bcf1c8f](https://github.com/dvcol/neo-svelte/commit/bcf1c8f46dda64ac29775886cd9960fe45296e1c))
93
+ * **list:** adds custom base loader ([01bc010](https://github.com/dvcol/neo-svelte/commit/01bc010de72117d3cad4af9cf2f23e1cc20df3d9))
94
+ * **list:** adds description support ([f7a2025](https://github.com/dvcol/neo-svelte/commit/f7a20254c586b6806547c7c014cd10ef27d7aa90))
95
+ * **list:** adds onclick & href support ([da844ea](https://github.com/dvcol/neo-svelte/commit/da844eadc3da4fd15370601dba6c7b03e95a4948))
96
+ * **list:** adds search input ([8d1593a](https://github.com/dvcol/neo-svelte/commit/8d1593a8548f7bf4c10251869f4b92874efc718c))
97
+ * **list:** adds section support ([ce8f7ce](https://github.com/dvcol/neo-svelte/commit/ce8f7ce2d7ea0ed038432fd171921e856aaf40e0))
98
+ * **list:** adds sticky section header ([9276852](https://github.com/dvcol/neo-svelte/commit/9276852220729eee5413aa17c4845cf48fcf7fc2))
99
+ * **list:** adds support for disabled items ([6180f4c](https://github.com/dvcol/neo-svelte/commit/6180f4cfa17034622e9294fe0d4f12913d30866e))
100
+ * **list:** clear selected if list mutates ([086d1bf](https://github.com/dvcol/neo-svelte/commit/086d1bf66210c8a527e4c7e595d1c93b75267bdd))
101
+ * **list:** first draft for lists ([502885c](https://github.com/dvcol/neo-svelte/commit/502885ce92ba5525566f57440be75e76d32aaafc))
102
+ * **list:** initial support for selectable lists ([1451253](https://github.com/dvcol/neo-svelte/commit/145125319e90e5896347b287873809d1676e32a3))
103
+ * **list:** support after & before loading skeleton ([331a21d](https://github.com/dvcol/neo-svelte/commit/331a21d656d5f0902774b42878b2287edf1546f9))
104
+ * **list:** support checkmarks ([45564ba](https://github.com/dvcol/neo-svelte/commit/45564ba73a681a1c82ec41e5967ef5aeba4cd52b))
105
+ * **nav:** adds tab divider support ([5d07d80](https://github.com/dvcol/neo-svelte/commit/5d07d800a1d38248b7c2b3da6ef7eea1de22c031))
106
+ * **scroll:** makes custom scrollbar optional ([2b54880](https://github.com/dvcol/neo-svelte/commit/2b54880ba24b38f1eff1dedafb8b97487bbf35fb))
107
+ * **select:** basic option array input ([6b412fd](https://github.com/dvcol/neo-svelte/commit/6b412fd240ef848ba895a9024ec446c390e004de))
108
+ * **skeleton:** adds auto-line discovery for skeleton ([1c54529](https://github.com/dvcol/neo-svelte/commit/1c54529f9c5c7078ef07b0c1637bb777eb2fe1a7))
109
+ * **skeleton:** adds glass skeleton to generic component ([e0fe4f4](https://github.com/dvcol/neo-svelte/commit/e0fe4f4a1bac3c8a506e0e57ed76354ca07dacc6))
110
+ * **skeleton:** auto-size skeleton containers ([10938e2](https://github.com/dvcol/neo-svelte/commit/10938e2a6f09f27e5186957d6dd64ca79919d000))
111
+ * **tabs:** adds pill mode ([84d3615](https://github.com/dvcol/neo-svelte/commit/84d36158dac3a80d33b36bd3f8e7233a0abef0b3))
112
+ * **tabs:** adjust hover colors & transitions ([a6a8fed](https://github.com/dvcol/neo-svelte/commit/a6a8fed31343b1c93dab4b8163d4a878ca8b92dc))
113
+ * **text:** adds ellipsis and mark components ([0719445](https://github.com/dvcol/neo-svelte/commit/0719445b9f6ae0229c887bfb7000cad165995c91))
114
+ * **text:** adds scroll-shadow ([9c6fd29](https://github.com/dvcol/neo-svelte/commit/9c6fd29a75796427a264dd9f97ec3e9444796bf0))
115
+ * **theme:** adds colour pickers ([9757934](https://github.com/dvcol/neo-svelte/commit/97579340e0b143b182267b36c35905234bf4644e))
116
+ * **tooltip:** adds custom tooltip snippets ([33d2d59](https://github.com/dvcol/neo-svelte/commit/33d2d59bd90052462d4b16618900e6ed82e860ba))
117
+ * **tooltip:** adds generic tooltip component ([813fc2f](https://github.com/dvcol/neo-svelte/commit/813fc2ff5b43d8157954bf79186ee9e3913bb9a5))
118
+ * **tooltip:** adds supports for external refs ([09f1be1](https://github.com/dvcol/neo-svelte/commit/09f1be1d748e34e45d157b0d40d2b5f039253c2e))
119
+ * **tooltip:** match width with trigger ([853ed32](https://github.com/dvcol/neo-svelte/commit/853ed324ac5a647e3ad94d1bd4cff5c641604b84))
120
+ * **tooltips:** adds tooltip styling ([4e5418b](https://github.com/dvcol/neo-svelte/commit/4e5418b60aa8d840a543dabdca3ef8b2958a4e14))
121
+
122
+
123
+ ### Bug Fixes
124
+
125
+ * **button:** adjust icon spacing ([cb6f163](https://github.com/dvcol/neo-svelte/commit/cb6f163fb939ba382361dc0ff8ff28ef141f8d8a))
126
+ * **button:** remove enter pressed state on blur ([9c53dd1](https://github.com/dvcol/neo-svelte/commit/9c53dd16aa68da20495fae09c5ffe051f865d4ad))
127
+ * **buttons:** correct border color for flat glass style ([65b9e12](https://github.com/dvcol/neo-svelte/commit/65b9e121bd740119182f852ff7ece796a4742c28))
128
+ * **card:** fix media card css ([8dd8088](https://github.com/dvcol/neo-svelte/commit/8dd8088fcaae8ec0764b6cae6a3edbd5695d3b61))
129
+ * **card:** makes scrollbar transition additive ([59e2a8f](https://github.com/dvcol/neo-svelte/commit/59e2a8ff4c976cd63a30f4e2f7940ddb39bbde9d))
130
+ * **checkbox:** adds missing touched binding ([8736cb6](https://github.com/dvcol/neo-svelte/commit/8736cb68507e6d465a4267e9c0667a0009dd974f))
131
+ * **colors:** adjust variables to be relative to theme color ([754e4d2](https://github.com/dvcol/neo-svelte/commit/754e4d2effe5d74e67eff20a85413c39c84fd7be))
132
+ * **glass:** adjust border color when flat ([01995fe](https://github.com/dvcol/neo-svelte/commit/01995fe9757b9d2504c60f7416338f8b5be1178a))
133
+ * **glass:** adjust pressed glass shadow ([2182943](https://github.com/dvcol/neo-svelte/commit/21829437e5fbc5e832aeda9f963fd7a529099902))
134
+ * **glass:** remove border when inset ([631efbe](https://github.com/dvcol/neo-svelte/commit/631efbe00268c3546e7d3b097695c3f0eeb528a3))
135
+ * **icon:** make checkbox prop reactive ([7f72fb6](https://github.com/dvcol/neo-svelte/commit/7f72fb6c324a640f124362f2a4b54dab23ca484f))
136
+ * **input:** adjust color picker min height/width ([8536e03](https://github.com/dvcol/neo-svelte/commit/8536e03709a4a03132fe7f5e0c30317baf8ee82b))
137
+ * **input:** adjust label translate ([3e35382](https://github.com/dvcol/neo-svelte/commit/3e3538250314464afca4e9ed0582df33ab7e15fd))
138
+ * **input:** debounce clearable to fix touch flashing on mobile ([72b86d8](https://github.com/dvcol/neo-svelte/commit/72b86d81269d4ef800dd3f0dacf813279b041afe))
139
+ * **input:** keep close button visible on focusin ([761ac31](https://github.com/dvcol/neo-svelte/commit/761ac31461cae17bff17caa41cf77f723e226f3f))
140
+ * **input:** resize floating values on element resize ([f77acc2](https://github.com/dvcol/neo-svelte/commit/f77acc2c903c8ee02c19b3663ebec6e4f35fe824))
141
+ * **list:** handle reflow dividers ([8b7ca36](https://github.com/dvcol/neo-svelte/commit/8b7ca36dceacb46006719263b5e31325a23c55f9))
142
+ * **list:** keep selection when sorting/filtering ([48c43ec](https://github.com/dvcol/neo-svelte/commit/48c43ec2194a9eb4f39e38b1b737552d98001abb))
143
+ * **list:** move to simple scale and scrollToBottom ([80165fa](https://github.com/dvcol/neo-svelte/commit/80165fa73d988e48ad8748ed45187d86fb53ef74))
144
+ * **list:** only animate top level list ([9106151](https://github.com/dvcol/neo-svelte/commit/9106151154dec7fec0ec7b386c0f60816b1447de))
145
+ * **list:** remove scroll shadow when empty ([2654975](https://github.com/dvcol/neo-svelte/commit/2654975c22e68ea9590d2f60a11dcda3b8c47f23))
146
+ * **list:** rework transitions ([3bf6de9](https://github.com/dvcol/neo-svelte/commit/3bf6de959206f844a6964e57c3af1839624f73cf))
147
+ * **skeleton:** adjust font & line height to match defaults ([06eb497](https://github.com/dvcol/neo-svelte/commit/06eb4973b2d72fef3e12effd6cbdbcb927e28332))
148
+ * **skeleton:** adjust line spacing in alt mode ([7ec1ec9](https://github.com/dvcol/neo-svelte/commit/7ec1ec91906f6aabffe61d49c5b4ce795819a1ff))
149
+ * **style:** improve :global scoping in tabs & list ([363e106](https://github.com/dvcol/neo-svelte/commit/363e106b1ade7ba0baa7c788146a757fc270f972))
150
+ * **tabs:** fix line regression & add dynamic default slide elevation ([8894bdf](https://github.com/dvcol/neo-svelte/commit/8894bdffd7006e44186852c60da733304964e20b))
151
+ * **tooltip:** keep open while focused ([ac5df59](https://github.com/dvcol/neo-svelte/commit/ac5df592a96fc793b7637b1a6117a66c0f5cc797))
152
+
5
153
  ### [0.1.6](https://github.com/dvcol/neo-svelte/compare/v0.1.5...v0.1.6) (2025-01-10)
6
154
 
7
155
 
package/README.md CHANGED
@@ -50,7 +50,12 @@ See examples in the demo (code [here](https://github.com/dvcol/neo-svelte/tree/f
50
50
 
51
51
  ## TODO
52
52
  - [ ] @media any-pointer:coarse any-hover:none
53
+ - [ ] move to inline/bloc to support writing-mode
53
54
  - [x] Buttons
55
+ - [x] toggle
56
+ - [x] groups
57
+ - [x] tags/pills
58
+ - [x] badge
54
59
  - [x] Tabs
55
60
  - [x] Card
56
61
  - [x] Inputs
@@ -77,10 +82,97 @@ See examples in the demo (code [here](https://github.com/dvcol/neo-svelte/tree/f
77
82
  - [X] inset
78
83
  - [x] custom before-after
79
84
  - [x] steps
85
+ - [x] ticks
80
86
  - [ ] vertical
81
- - [ ] select
87
+ - [ ] circular
88
+ - [ ] rating (stars)
89
+ - [x] select
90
+ - [x] native
91
+ - [x] custom
92
+ - [x] tooltip
93
+ - [ ] popconfirm
94
+ - [x] popselect
95
+ - [ ] menu
96
+ - [ ] nested menus
97
+ - [ ] menu pane (multi column)
98
+
99
+ - [x] list
100
+ - [x] select
101
+ - [X] multiple
102
+ - [x] disabled
103
+ - [x] readonly
104
+ - [x] sections
105
+ - [x] keyboard navigation
106
+ - [x] scroll shadow
107
+ - [ ] virtualized
108
+ - [ ] infinite scroll
109
+ - [ ] drag & drop
110
+ - [ ] pagination
111
+ - [ ] pull/scroll to refresh
112
+ - [x] filter
113
+ - [x] sort
114
+ - [ ] tree
115
+
116
+ - [x] progress
117
+ - [x] vertical
118
+ - [ ] circular
119
+ - [x] ticks
120
+ - [x] min/max
121
+ - [x] indeterminate
122
+ - [x] color/background
123
+ - [x] duration/timeout
124
+ - [x] start/stop/cancel/finish/reset
125
+
126
+ - [ ] collapse
127
+ - [ ] summary
128
+ - [ ] details (html semantic tags)
129
+
130
+ - [ ] stepper
131
+ - [ ] vertical
132
+ - [ ] animation (slider, fade or collapse)
133
+ - [ ] progress/dots
134
+
135
+ - [ ] Modal/dialog
136
+ - [ ] HTML Dialog
137
+ - [ ] HTML Popover
138
+ - [ ] Drawer
139
+ - [ ] animation
140
+ - [ ] buffer
141
+ - [ ] placement (top, bottom, left, right)
142
+ - [ ] size (width, height)
143
+ - [ ] scrollable
144
+ - [ ] close button
145
+ - [ ] dismissible
146
+ - [ ] resizable (drag, handle, min/max)
147
+ - [ ] backdrop
148
+ - [ ] inert
149
+ - [ ] click outside
150
+ - [ ] focus trap
151
+
152
+
153
+ - [ ] Chat
154
+ - [ ] infinite scroll
155
+ - [ ] virtual scroll
156
+ - [ ] async
157
+ - [ ] stream
158
+ - [ ] generative text animation
159
+ - [ ] scroll to bottom
160
+ - [ ] typing indicator
161
+ - [ ] read indicator
162
+ - [ ] reactions
163
+ - [ ] threads
164
+ - [ ] @ / # tags
165
+ - [ ] mentions
166
+ - [ ] attachments
167
+ - [ ] gifs/images
168
+ - [ ] videos
169
+ - [ ] audio
170
+ - [ ] custom cards (contact, etc.)
171
+ - [ ] custom bubbles
172
+ - [ ] custom input
82
173
  - [ ] table
83
174
  - [ ] pagination
175
+
84
176
  - [ ] auto-complete
85
177
  - [ ] @ / # tags
86
178
  - [ ] select
@@ -91,36 +183,25 @@ See examples in the demo (code [here](https://github.com/dvcol/neo-svelte/tree/f
91
183
  - [ ] image
92
184
  - [ ] videos
93
185
  - [ ] carousel
186
+ - [ ] parallax
94
187
  - [ ] avatar
95
188
  - [ ] badge
96
- - [ ] tags/pills
97
- - [ ] badge
98
189
  - [ ] Progress/Loading
99
190
  - [ ] bar
100
191
  - [ ] circle
101
192
  - [ ] border
102
193
  - [ ] background
103
- - [ ] accordion
104
- - [ ] summary
105
- - [ ] details (html semantic tags)
106
194
 
107
- - [ ] tooltip
108
- - [ ] popconfirm
109
- - [ ] popselect
110
195
  - [ ] text
111
196
  - [ ] elevation
112
- - [ ] elipsis
197
+ - [x] ellipsis
198
+ - [x] mark
199
+ - [x] scroll & shadow
200
+ - [ ] typing animation
113
201
 
114
202
  - [ ] Alerts
115
203
  - [ ] toast
116
204
  - [ ] rich notification
117
- - [ ] Modal/dialog
118
- - [ ] drawer/panel
119
- - [ ] collapsible
120
- - [ ] position
121
- - [ ] backdrop
122
- - [ ] click outside
123
- - [ ] scrollbar ?
124
205
  - [ ] container
125
206
  - [x] transition
126
207
  - [ ] split/resizable
@@ -0,0 +1,99 @@
1
+ <script lang="ts">
2
+ import type { NeoBadgeProps } from './neo-badge.model.js';
3
+
4
+ import NeoPill from '../pill/NeoPill.svelte';
5
+
6
+ /* eslint-disable prefer-const -- necessary for binding checked */
7
+ let {
8
+ // Snippets
9
+ children,
10
+ value,
11
+
12
+ // States
13
+ offset: _offset,
14
+ placement = 'top-right',
15
+
16
+ // Other props
17
+ containerProps,
18
+ ...rest
19
+ }: NeoBadgeProps = $props();
20
+ /* eslint-enable prefer-const */
21
+
22
+ const { tag: containerTag = 'div', ...containerRest } = $derived(containerProps ?? {});
23
+
24
+ const offset = $derived.by<{ x?: string; y?: string }>(() => {
25
+ if (typeof _offset === 'string') {
26
+ return { x: _offset, y: _offset };
27
+ }
28
+ if (typeof _offset === 'number') {
29
+ return { x: `${_offset}px`, y: `${_offset}px` };
30
+ }
31
+ return {
32
+ x: typeof _offset?.x === 'number' ? `${_offset.x}px` : _offset?.x,
33
+ y: typeof _offset?.y === 'number' ? `${_offset.y}px` : _offset?.y,
34
+ };
35
+ });
36
+ </script>
37
+
38
+ <svelte:element
39
+ this={containerTag}
40
+ class:neo-badge-container={true}
41
+ data-placement={placement}
42
+ style:--neo-badge-offset-x={offset?.x}
43
+ style:--neo-badge-offset-y={offset?.y}
44
+ {...containerRest}
45
+ >
46
+ <NeoPill class="neo-badge-pill" size="medium" glass elevation="2" tinted {...rest}>
47
+ {#if typeof value === 'function'}
48
+ {@render value({ placement, offset })}
49
+ {:else}
50
+ {value}
51
+ {/if}
52
+ </NeoPill>
53
+
54
+ {@render children?.({ placement, offset })}
55
+ </svelte:element>
56
+
57
+ <style>.neo-badge-container {
58
+ position: relative;
59
+ }
60
+ .neo-badge-container :global(> .neo-badge-pill) {
61
+ position: absolute;
62
+ z-index: var(--neo-badge-pill-z-index, var(--neo-z-index-in-front));
63
+ }
64
+ .neo-badge-container[data-placement=top] :global(> .neo-badge-pill) {
65
+ top: var(--neo-badge-offset-y, 0);
66
+ left: 50%;
67
+ translate: -50%;
68
+ }
69
+ .neo-badge-container[data-placement=top-right] :global(> .neo-badge-pill) {
70
+ top: var(--neo-badge-offset-y, 0);
71
+ right: var(--neo-badge-offset-x, 0);
72
+ }
73
+ .neo-badge-container[data-placement=top-left] :global(> .neo-badge-pill) {
74
+ top: var(--neo-badge-offset-y, 0);
75
+ left: var(--neo-badge-offset-x, 0);
76
+ }
77
+ .neo-badge-container[data-placement=bottom] :global(> .neo-badge-pill) {
78
+ bottom: var(--neo-badge-offset-y, 0);
79
+ left: 50%;
80
+ translate: -50%;
81
+ }
82
+ .neo-badge-container[data-placement=bottom-right] :global(> .neo-badge-pill) {
83
+ right: var(--neo-badge-offset-x, 0);
84
+ bottom: var(--neo-badge-offset-y, 0);
85
+ }
86
+ .neo-badge-container[data-placement=bottom-left] :global(> .neo-badge-pill) {
87
+ bottom: var(--neo-badge-offset-y, 0);
88
+ left: var(--neo-badge-offset-x, 0);
89
+ }
90
+ .neo-badge-container[data-placement=right] :global(> .neo-badge-pill) {
91
+ top: 50%;
92
+ right: var(--neo-badge-offset-x, 0);
93
+ translate: 0 -50%;
94
+ }
95
+ .neo-badge-container[data-placement=left] :global(> .neo-badge-pill) {
96
+ top: 50%;
97
+ left: var(--neo-badge-offset-x, 0);
98
+ translate: 0 -50%;
99
+ }</style>
@@ -0,0 +1,4 @@
1
+ import type { NeoBadgeProps } from './neo-badge.model.js';
2
+ declare const NeoBadge: import("svelte").Component<NeoBadgeProps, {}, "">;
3
+ type NeoBadge = ReturnType<typeof NeoBadge>;
4
+ export default NeoBadge;
@@ -0,0 +1,48 @@
1
+ import type { Snippet } from 'svelte';
2
+ import type { NeoPillProps } from '../pill/neo-pill.model.js';
3
+ import type { HTMLNeoBaseElement, HTMLTagProps } from '../utils/html-element.utils.js';
4
+ export declare const NeoBadgePlacement: {
5
+ readonly Top: "top";
6
+ readonly TopRight: "top-right";
7
+ readonly TopLeft: "top-left";
8
+ readonly Bottom: "bottom";
9
+ readonly BottomRight: "bottom-right";
10
+ readonly BottomLeft: "bottom-left";
11
+ readonly Right: "right";
12
+ readonly Left: "left";
13
+ };
14
+ export type NeoBadgePlacements = (typeof NeoBadgePlacement)[keyof typeof NeoBadgePlacement];
15
+ export type NeoBadgeContext = {
16
+ placement: NeoBadgePlacements;
17
+ offset?: {
18
+ x?: string;
19
+ y?: string;
20
+ };
21
+ };
22
+ export type NeoBadgeProps = {
23
+ /**
24
+ * The content to place the badge on.
25
+ */
26
+ children?: Snippet<[NeoBadgeContext]>;
27
+ /**
28
+ * The value to display in the badge.
29
+ */
30
+ value?: Snippet<[NeoBadgeContext]>;
31
+ /**
32
+ * Optional vertical and horizontal offset for the badge.
33
+ */
34
+ offset?: number | string | {
35
+ x?: number | string;
36
+ y?: number | string;
37
+ };
38
+ /**
39
+ * Badge placement relative to the content.
40
+ *
41
+ * @default top-right
42
+ */
43
+ placement?: NeoBadgePlacements;
44
+ /**
45
+ * Props to pass to the relative container.
46
+ */
47
+ containerProps?: HTMLNeoBaseElement & HTMLTagProps;
48
+ } & NeoPillProps;
@@ -0,0 +1,10 @@
1
+ export const NeoBadgePlacement = {
2
+ Top: 'top',
3
+ TopRight: 'top-right',
4
+ TopLeft: 'top-left',
5
+ Bottom: 'bottom',
6
+ BottomRight: 'bottom-right',
7
+ BottomLeft: 'bottom-left',
8
+ Right: 'right',
9
+ Left: 'left',
10
+ };