@dvcol/neo-svelte 0.1.7 → 0.1.9

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 (213) hide show
  1. package/CHANGELOG.md +76 -0
  2. package/README.md +44 -16
  3. package/dist/badge/NeoBadge.svelte +99 -0
  4. package/dist/badge/NeoBadge.svelte.d.ts +4 -0
  5. package/dist/badge/index.d.ts +3 -0
  6. package/dist/badge/index.js +2 -0
  7. package/dist/badge/neo-badge.model.d.ts +48 -0
  8. package/dist/badge/neo-badge.model.js +10 -0
  9. package/dist/buttons/NeoButton.svelte +137 -174
  10. package/dist/buttons/NeoButton.svelte.d.ts +3 -18
  11. package/dist/buttons/NeoButtonGroup.svelte +89 -95
  12. package/dist/buttons/NeoButtonGroup.svelte.d.ts +2 -17
  13. package/dist/buttons/NeoCheckboxButton.svelte +40 -13
  14. package/dist/buttons/NeoCheckboxButton.svelte.d.ts +2 -17
  15. package/dist/buttons/NeoRadioButton.svelte +43 -13
  16. package/dist/buttons/NeoRadioButton.svelte.d.ts +2 -17
  17. package/dist/buttons/NeoSwitchButton.svelte +39 -11
  18. package/dist/buttons/NeoSwitchButton.svelte.d.ts +2 -17
  19. package/dist/buttons/neo-button-group.model.d.ts +46 -0
  20. package/dist/buttons/neo-button.model.d.ts +66 -10
  21. package/dist/buttons/neo-button.model.js +17 -1
  22. package/dist/buttons/neo-checkbox-button.model.d.ts +1 -1
  23. package/dist/buttons/neo-radio-button.model.d.ts +1 -1
  24. package/dist/buttons/neo-switch-button.model.d.ts +1 -1
  25. package/dist/cards/NeoCard.svelte +116 -83
  26. package/dist/cards/NeoCard.svelte.d.ts +2 -17
  27. package/dist/cards/neo-card.model.d.ts +29 -36
  28. package/dist/containers/NeoTransitionContainer.svelte.d.ts +2 -17
  29. package/dist/divider/NeoDivider.svelte +6 -3
  30. package/dist/divider/NeoDivider.svelte.d.ts +2 -17
  31. package/dist/icons/IconBouncingDots.svelte.d.ts +4 -19
  32. package/dist/icons/IconCancel.svelte +22 -0
  33. package/dist/icons/{IconSunFull.svelte.d.ts → IconCancel.svelte.d.ts} +3 -3
  34. package/dist/icons/IconCheckbox.svelte.d.ts +4 -18
  35. package/dist/icons/IconDoubleChevron.svelte +1 -1
  36. package/dist/icons/IconDoubleChevronLeft.svelte +26 -0
  37. package/dist/icons/IconDoubleChevronLeft.svelte.d.ts +26 -0
  38. package/dist/icons/IconDoubleChevronRight.svelte +26 -0
  39. package/dist/icons/IconDoubleChevronRight.svelte.d.ts +26 -0
  40. package/dist/icons/IconMail.svelte +22 -0
  41. package/dist/icons/{IconMoon.svelte.d.ts → IconMail.svelte.d.ts} +3 -3
  42. package/dist/icons/IconPlayPause.svelte +96 -0
  43. package/dist/icons/IconPlayPause.svelte.d.ts +9 -0
  44. package/dist/icons/IconQuestionMark.svelte +18 -0
  45. package/dist/icons/IconQuestionMark.svelte.d.ts +26 -0
  46. package/dist/icons/IconRadio.svelte +1 -1
  47. package/dist/icons/IconRadio.svelte.d.ts +3 -18
  48. package/dist/icons/IconSave.svelte +13 -3
  49. package/dist/icons/IconSaveOff.svelte +20 -7
  50. package/dist/icons/IconSun.svelte +21 -50
  51. package/dist/icons/IconSunMoon.svelte +254 -0
  52. package/dist/icons/IconSunMoon.svelte.d.ts +9 -0
  53. package/dist/icons/IconTextHighlight.svelte +27 -0
  54. package/dist/icons/IconTextHighlight.svelte.d.ts +26 -0
  55. package/dist/index.d.ts +3 -0
  56. package/dist/index.js +3 -0
  57. package/dist/inputs/NeoCheckbox.svelte +52 -39
  58. package/dist/inputs/NeoCheckbox.svelte.d.ts +2 -17
  59. package/dist/inputs/NeoColorPicker.svelte +10 -7
  60. package/dist/inputs/NeoColorPicker.svelte.d.ts +2 -17
  61. package/dist/inputs/NeoColorPickerSelector.svelte.d.ts +2 -17
  62. package/dist/inputs/NeoDateTime.svelte +14 -16
  63. package/dist/inputs/NeoDateTime.svelte.d.ts +2 -17
  64. package/dist/inputs/NeoFilePicker.svelte +40 -50
  65. package/dist/inputs/NeoFilePicker.svelte.d.ts +2 -17
  66. package/dist/inputs/NeoFilePickerCard.svelte +32 -5
  67. package/dist/inputs/NeoFilePickerCard.svelte.d.ts +2 -17
  68. package/dist/inputs/NeoNativeSelect.svelte +113 -0
  69. package/dist/inputs/NeoNativeSelect.svelte.d.ts +4 -0
  70. package/dist/inputs/NeoNumberStep.svelte +12 -13
  71. package/dist/inputs/NeoNumberStep.svelte.d.ts +2 -17
  72. package/dist/inputs/NeoPassword.svelte +3 -6
  73. package/dist/inputs/NeoPassword.svelte.d.ts +3 -7
  74. package/dist/inputs/NeoPin.svelte +29 -25
  75. package/dist/inputs/NeoPin.svelte.d.ts +2 -17
  76. package/dist/inputs/NeoRadio.svelte +61 -35
  77. package/dist/inputs/NeoRadio.svelte.d.ts +2 -17
  78. package/dist/inputs/NeoRange.svelte +97 -28
  79. package/dist/inputs/NeoRange.svelte.d.ts +2 -17
  80. package/dist/inputs/NeoSelect.svelte +154 -43
  81. package/dist/inputs/NeoSelect.svelte.d.ts +3 -18
  82. package/dist/inputs/NeoSwitch.svelte +55 -41
  83. package/dist/inputs/NeoSwitch.svelte.d.ts +2 -17
  84. package/dist/inputs/NeoTextarea.svelte +146 -69
  85. package/dist/inputs/NeoTextarea.svelte.d.ts +3 -18
  86. package/dist/inputs/common/NeoAffix.svelte +38 -26
  87. package/dist/inputs/common/NeoAffix.svelte.d.ts +2 -17
  88. package/dist/inputs/common/NeoBaseInput.svelte +157 -26
  89. package/dist/inputs/common/NeoBaseInput.svelte.d.ts +5 -18
  90. package/dist/inputs/common/NeoInput.svelte +110 -77
  91. package/dist/inputs/common/NeoInput.svelte.d.ts +2 -17
  92. package/dist/inputs/common/NeoInputValidation.svelte +1 -1
  93. package/dist/inputs/common/NeoInputValidation.svelte.d.ts +2 -6
  94. package/dist/inputs/common/NeoLabel.svelte +11 -6
  95. package/dist/inputs/common/NeoLabel.svelte.d.ts +2 -17
  96. package/dist/inputs/common/NeoValidation.svelte +23 -15
  97. package/dist/inputs/common/NeoValidation.svelte.d.ts +2 -6
  98. package/dist/inputs/common/neo-affix.model.d.ts +6 -1
  99. package/dist/inputs/common/neo-input-validation.model.d.ts +4 -1
  100. package/dist/inputs/common/neo-input.model.d.ts +66 -34
  101. package/dist/inputs/common/neo-input.model.js +1 -5
  102. package/dist/inputs/common/neo-label.model.d.ts +2 -7
  103. package/dist/inputs/common/neo-validation.model.d.ts +2 -6
  104. package/dist/inputs/index.d.ts +14 -11
  105. package/dist/inputs/index.js +3 -11
  106. package/dist/inputs/neo-checkbox.model.d.ts +1 -1
  107. package/dist/inputs/neo-pin.model.d.ts +1 -1
  108. package/dist/inputs/neo-radio.model.d.ts +1 -1
  109. package/dist/inputs/neo-range.model.d.ts +29 -15
  110. package/dist/inputs/neo-select.model.d.ts +100 -4
  111. package/dist/inputs/neo-select.model.js +13 -1
  112. package/dist/inputs/neo-switch.model.d.ts +1 -1
  113. package/dist/list/NeoList.svelte +220 -105
  114. package/dist/list/NeoList.svelte.d.ts +2 -17
  115. package/dist/list/NeoListBaseItem.svelte +34 -26
  116. package/dist/list/NeoListBaseItem.svelte.d.ts +3 -18
  117. package/dist/list/NeoListBaseLoader.svelte +7 -7
  118. package/dist/list/NeoListBaseLoader.svelte.d.ts +2 -17
  119. package/dist/list/NeoListBaseSection.svelte +13 -5
  120. package/dist/list/NeoListBaseSection.svelte.d.ts +3 -18
  121. package/dist/list/NeoListSearch.svelte +19 -14
  122. package/dist/list/NeoListSearch.svelte.d.ts +2 -17
  123. package/dist/list/neo-list-base-item.model.d.ts +11 -1
  124. package/dist/list/neo-list-base-section.model.d.ts +5 -1
  125. package/dist/list/neo-list-search.model.d.ts +3 -3
  126. package/dist/list/neo-list.model.d.ts +46 -15
  127. package/dist/nav/NeoTab.svelte +40 -34
  128. package/dist/nav/NeoTab.svelte.d.ts +2 -17
  129. package/dist/nav/NeoTabDivider.svelte.d.ts +2 -17
  130. package/dist/nav/NeoTabPanel.svelte.d.ts +2 -17
  131. package/dist/nav/NeoTabs.svelte +50 -46
  132. package/dist/nav/NeoTabs.svelte.d.ts +2 -17
  133. package/dist/nav/NeoTabsCard.svelte.d.ts +2 -17
  134. package/dist/nav/neo-tabs.model.d.ts +8 -7
  135. package/dist/pill/NeoPill.svelte +277 -0
  136. package/dist/pill/NeoPill.svelte.d.ts +4 -0
  137. package/dist/pill/index.d.ts +2 -0
  138. package/dist/pill/index.js +1 -0
  139. package/dist/pill/neo-pill.model.d.ts +104 -0
  140. package/dist/pill/neo-pill.model.js +5 -0
  141. package/dist/progress/NeoProgress.svelte +376 -0
  142. package/dist/progress/NeoProgress.svelte.d.ts +11 -0
  143. package/dist/progress/NeoProgressBar.svelte +196 -0
  144. package/dist/progress/NeoProgressBar.svelte.d.ts +4 -0
  145. package/dist/progress/NeoProgressMark.svelte +34 -0
  146. package/dist/progress/NeoProgressMark.svelte.d.ts +4 -0
  147. package/dist/progress/index.d.ts +5 -0
  148. package/dist/progress/index.js +3 -0
  149. package/dist/progress/neo-progress-bar.model.d.ts +73 -0
  150. package/dist/progress/neo-progress-bar.model.js +1 -0
  151. package/dist/progress/neo-progress-mark.model.d.ts +12 -0
  152. package/dist/progress/neo-progress-mark.model.js +1 -0
  153. package/dist/progress/neo-progress.model.d.ts +158 -0
  154. package/dist/progress/neo-progress.model.js +13 -0
  155. package/dist/providers/NeoThemePicker.svelte.d.ts +2 -17
  156. package/dist/providers/NeoThemeProvider.svelte +1 -1
  157. package/dist/providers/NeoThemeProvider.svelte.d.ts +3 -18
  158. package/dist/providers/NeoThemeSelector.svelte +4 -9
  159. package/dist/providers/NeoThemeSelector.svelte.d.ts +2 -17
  160. package/dist/providers/neo-theme-provider-context.svelte.d.ts +2 -0
  161. package/dist/providers/neo-theme-provider-context.svelte.js +24 -2
  162. package/dist/providers/neo-theme-provider.model.d.ts +1 -1
  163. package/dist/providers/neo-theme-provider.model.js +1 -0
  164. package/dist/skeletons/NeoSkeletonContainer.svelte +12 -20
  165. package/dist/skeletons/NeoSkeletonContainer.svelte.d.ts +2 -17
  166. package/dist/skeletons/NeoSkeletonMedia.svelte +23 -11
  167. package/dist/skeletons/NeoSkeletonMedia.svelte.d.ts +2 -17
  168. package/dist/skeletons/NeoSkeletonText.svelte +29 -21
  169. package/dist/skeletons/NeoSkeletonText.svelte.d.ts +2 -17
  170. package/dist/skeletons/neo-skeleton-container.model.d.ts +16 -2
  171. package/dist/skeletons/neo-skeleton-media.model.d.ts +9 -4
  172. package/dist/skeletons/neo-skeleton-text.model.d.ts +5 -4
  173. package/dist/styles/animation.scss +35 -0
  174. package/dist/styles/common/colors.scss +38 -40
  175. package/dist/styles/common/easing.scss +36 -0
  176. package/dist/styles/common/shadows.scss +106 -20
  177. package/dist/styles/common/spacing.scss +4 -0
  178. package/dist/styles/common/typography.scss +1 -1
  179. package/dist/styles/mixin.scss +89 -34
  180. package/dist/styles/theme.scss +16 -6
  181. package/dist/text/NeoEllipsis.svelte.d.ts +2 -17
  182. package/dist/text/NeoMark.svelte +1 -1
  183. package/dist/text/NeoMark.svelte.d.ts +2 -17
  184. package/dist/text/NeoScrollShadow.svelte +58 -5
  185. package/dist/text/NeoScrollShadow.svelte.d.ts +2 -17
  186. package/dist/text/neo-mark.model.d.ts +2 -1
  187. package/dist/text/neo-scroll-shadow.model.d.ts +12 -3
  188. package/dist/tooltips/NeoPopSelect.svelte +124 -0
  189. package/dist/tooltips/NeoPopSelect.svelte.d.ts +4 -0
  190. package/dist/tooltips/NeoTooltip.svelte +193 -36
  191. package/dist/tooltips/NeoTooltip.svelte.d.ts +3 -18
  192. package/dist/tooltips/index.d.ts +2 -0
  193. package/dist/tooltips/index.js +1 -0
  194. package/dist/tooltips/neo-pop-select.model.d.ts +116 -0
  195. package/dist/tooltips/neo-pop-select.model.js +1 -0
  196. package/dist/tooltips/neo-tooltip.model.d.ts +60 -10
  197. package/dist/tooltips/neo-tooltip.model.js +5 -1
  198. package/dist/utils/colors.utils.d.ts +1 -1
  199. package/dist/utils/error.utils.d.ts +4 -0
  200. package/dist/utils/error.utils.js +6 -0
  201. package/dist/utils/html-element.utils.d.ts +7 -6
  202. package/dist/utils/html-element.utils.js +0 -21
  203. package/dist/utils/shadow.utils.d.ts +14 -6
  204. package/dist/utils/shadow.utils.js +25 -18
  205. package/dist/utils/string.utils.d.ts +6 -0
  206. package/dist/utils/string.utils.js +21 -0
  207. package/dist/utils/style.utils.d.ts +9 -0
  208. package/dist/utils/style.utils.js +16 -0
  209. package/dist/utils/transition.utils.d.ts +9 -14
  210. package/dist/utils/transition.utils.js +10 -23
  211. package/package.json +28 -17
  212. package/dist/icons/IconMoon.svelte +0 -72
  213. package/dist/icons/IconSunFull.svelte +0 -33
package/CHANGELOG.md CHANGED
@@ -2,6 +2,82 @@
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.9](https://github.com/dvcol/neo-svelte/compare/v0.1.8...v0.1.9) (2025-02-19)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * **provider:** change scss to use relative path for packaging ([b5f1acf](https://github.com/dvcol/neo-svelte/commit/b5f1acf7130e5dc0605569139d04574cc3690902))
11
+
12
+ ### [0.1.8](https://github.com/dvcol/neo-svelte/compare/v0.1.7...v0.1.8) (2025-02-19)
13
+
14
+
15
+ ### Features
16
+
17
+ * **badge:** adds badge component ([0a8c71b](https://github.com/dvcol/neo-svelte/commit/0a8c71b13bdac40e102f35ce9a6b9fb3578dbd11))
18
+ * **blur:** adds blur as props ([cceacc4](https://github.com/dvcol/neo-svelte/commit/cceacc4ffbe250fff0fa10b6b887130d794cce39))
19
+ * **button:** adds button group colour & add tint support ([0a551ed](https://github.com/dvcol/neo-svelte/commit/0a551ede0ac9234fc0822d3ff5f8a894a9c6309b))
20
+ * **button:** adds custom hover/active to groups ([c2e227a](https://github.com/dvcol/neo-svelte/commit/c2e227ad2be66277e5c716e062eb82fa292513b3))
21
+ * **button:** rework of button elevation ([edb2cba](https://github.com/dvcol/neo-svelte/commit/edb2cba204dd09b02f2795ce620f16c6b7a64cbe))
22
+ * **buttons:** adds hover support to group itself ([d2ccdc3](https://github.com/dvcol/neo-svelte/commit/d2ccdc33cea572be351d2a634109ba78910287ee))
23
+ * **card:** adds tint & colour support ([4dba81b](https://github.com/dvcol/neo-svelte/commit/4dba81b1700d93945c6f561acabac2b58c1cf413))
24
+ * **input:** adds colour and tint support to inputs ([7973653](https://github.com/dvcol/neo-svelte/commit/7973653c9e20c11e0a5d94ae6cd1136bb7b98600))
25
+ * **input:** adds first draft of custom select ([5839709](https://github.com/dvcol/neo-svelte/commit/58397096f07592213a9870ac9a950e92df19b558))
26
+ * **input:** adds hidden support directly to basic input ([c7ba00c](https://github.com/dvcol/neo-svelte/commit/c7ba00cefe81f3379a00fb4b555c7efc0ae7760d))
27
+ * **list:** adds custom empty snippet support for sections ([d60fe7b](https://github.com/dvcol/neo-svelte/commit/d60fe7bc91ccde60c7d8a06d73ad4b7b0e9f543e))
28
+ * **list:** fix aria issues ([278bd04](https://github.com/dvcol/neo-svelte/commit/278bd049a27e05e4ca1ee5162adaea272076bd83))
29
+ * **list:** show empty snippet when list is filtered ([a3ec707](https://github.com/dvcol/neo-svelte/commit/a3ec7076c0e1717cbd2b85eaf4dc20446b36600c))
30
+ * **pill:** adds pills component ([8a3abb3](https://github.com/dvcol/neo-svelte/commit/8a3abb3ff937cec1875c27bc31e74869b9483e3a))
31
+ * **progress:** adds initial progress component ([2cb8925](https://github.com/dvcol/neo-svelte/commit/2cb89255f65453f7deb0968af5aa5795ab6a6c73))
32
+ * **progress:** adds progress bar component ([8d3003f](https://github.com/dvcol/neo-svelte/commit/8d3003f399b82e37fe1ce482aefbad40741436aa))
33
+ * **progress:** adds progress buttons ([bcfbada](https://github.com/dvcol/neo-svelte/commit/bcfbadad83b27947053b00ab733c059c9ac2470e))
34
+ * **range:** adds tick markers ([516cf1f](https://github.com/dvcol/neo-svelte/commit/516cf1f651fda943fb194157978e3cd81db2bf0e))
35
+ * **select:** adds custom display support ([eaddfe6](https://github.com/dvcol/neo-svelte/commit/eaddfe6774899861b3b74a17673f851ab497a58d))
36
+ * **select:** support arrowUp/Down selection ([a12c2c4](https://github.com/dvcol/neo-svelte/commit/a12c2c43b5a933f844dc5c8104a0950a110be808))
37
+ * **select:** support custom display snippet ([4b8f79d](https://github.com/dvcol/neo-svelte/commit/4b8f79dbdd5efe3b5f74aa646469d489e04fa034))
38
+ * **size:** adds customisable min/max size ([1b35dce](https://github.com/dvcol/neo-svelte/commit/1b35dce056fe0d671794255d5d0efae86657f7cd))
39
+ * **tabs:** adds hover effect ([646384e](https://github.com/dvcol/neo-svelte/commit/646384e95fec6c8eb3d71f56091305be08005a96))
40
+ * **text:** adds demo for texts and improve scroll-shadow ([f52500d](https://github.com/dvcol/neo-svelte/commit/f52500df22cf285b7e331285d111ca8287569961))
41
+ * **theme:** disable transitions during theme switch ([58e0d77](https://github.com/dvcol/neo-svelte/commit/58e0d77e702acfc24f6dd4b87fe29026dbea8cdf))
42
+ * **tooltip:** adds colour & tint support ([6659707](https://github.com/dvcol/neo-svelte/commit/665970727c231120c2fb3153b2bd9fd47971cb7f))
43
+ * **tooltip:** adds complex pop select example ([706ecfc](https://github.com/dvcol/neo-svelte/commit/706ecfc2ad7d6c5325ea183eadf3853b6ad7ba5f))
44
+ * **tooltip:** adds filled background option ([2966853](https://github.com/dvcol/neo-svelte/commit/29668533c57ed21bce119f912250b78bb332bbfd))
45
+ * **tooltip:** adds pop select ([86d7a8d](https://github.com/dvcol/neo-svelte/commit/86d7a8df7e4bf0abc2ae736dfea4f136656a6b04))
46
+ * **tooltip:** fix positionning in auto ([9619859](https://github.com/dvcol/neo-svelte/commit/9619859d0809e3820a05bd0eb8c2b197fc32ca89))
47
+ * **tooltip:** rework tooltip and input sizing api ([7090740](https://github.com/dvcol/neo-svelte/commit/7090740cc161017f577776d7c64a310c95b35f6e))
48
+
49
+
50
+ ### Bug Fixes
51
+
52
+ * **affix:** rework affix transiitons timing ([1c26919](https://github.com/dvcol/neo-svelte/commit/1c26919104b22a9d15bec84370413816c22220a5))
53
+ * **browser:** add custom scrollbar to firefox ([2b42707](https://github.com/dvcol/neo-svelte/commit/2b42707628827833a641afd0b352f1d45844f91e))
54
+ * **card:** correct scrollbar padding in safari ([b5c4b66](https://github.com/dvcol/neo-svelte/commit/b5c4b66c76798f2187f5299c338c0cefc0fdfb7b))
55
+ * **css:** adds hover effect to borders ([9b0dfbe](https://github.com/dvcol/neo-svelte/commit/9b0dfbebf48f8908ef7b5f7fbdcd563fec4fc7d6))
56
+ * **css:** adds safari & firefox fallbacks ([30ed289](https://github.com/dvcol/neo-svelte/commit/30ed289f09adcfc1a8bbf6243f2147447ff9cf60))
57
+ * **css:** change background-clip to exclude padding ([bd7c623](https://github.com/dvcol/neo-svelte/commit/bd7c623952c96f8fe56490a1b40606501713dd98))
58
+ * **css:** remove scale override & add unchecked colour to mark ([eb010b2](https://github.com/dvcol/neo-svelte/commit/eb010b2c7117071f9b167e0d4b6e6f433bd4aa79))
59
+ * **css:** remove starting-style border ([fae7140](https://github.com/dvcol/neo-svelte/commit/fae71402dc89592b646e604062580403d227c46f))
60
+ * **demo:** update sizing for dividers ([f534e2a](https://github.com/dvcol/neo-svelte/commit/f534e2a222ec94fefd99b3562d5844beb52ba7c2))
61
+ * **dim:** change hover-dim to be on focus-visible ([1c54cc8](https://github.com/dvcol/neo-svelte/commit/1c54cc8c4f07e97687d081e7a2bd0d375cc7dcff))
62
+ * **glass:** adds offset box-shadow in glass mode ([0e1a7c9](https://github.com/dvcol/neo-svelte/commit/0e1a7c916d958458e13c5f1c50ce295b19ee1f8b))
63
+ * **input:** adds border colour on validation ([35f6a13](https://github.com/dvcol/neo-svelte/commit/35f6a13592073c030de84f6f99bac1ae89222d81))
64
+ * **input:** adds hover colour tint to various inputs ([f0b8a37](https://github.com/dvcol/neo-svelte/commit/f0b8a371053a676ac9acac66f6cc8db2c2fb3a4f))
65
+ * **input:** fix accessibility issues ([11fee58](https://github.com/dvcol/neo-svelte/commit/11fee5864dd89eda7d2c19ae4f315daaad4412ef))
66
+ * **inputs:** force buttons to text when in glass mode ([942f6a3](https://github.com/dvcol/neo-svelte/commit/942f6a31c2500d78e144b47d6061717f5dc716eb))
67
+ * **input:** switch to inert for select display input ([d0512fe](https://github.com/dvcol/neo-svelte/commit/d0512fe158881a2f6f1a29541b35303565dadc5a))
68
+ * **input:** update validation styling & support readonly validation ([bc8c72e](https://github.com/dvcol/neo-svelte/commit/bc8c72eb5c3caa0e666fb5b2b00e12dd486e640f))
69
+ * **label:** inverse condition to support less strict inputs ([baac658](https://github.com/dvcol/neo-svelte/commit/baac658cf5d19b2cfd4ddc19d2033d52e4d3d707))
70
+ * **list:** search mirrors loading/skeleton state from list ([321b706](https://github.com/dvcol/neo-svelte/commit/321b7063003ee7dac09ee4cb423b4bf7fc355a36))
71
+ * **list:** support toggle button style ([9a7b815](https://github.com/dvcol/neo-svelte/commit/9a7b81526efcf500ba4dd91a35795fa86fef8443))
72
+ * **select:** adds clearable support ([0833a4f](https://github.com/dvcol/neo-svelte/commit/0833a4f0421d212c5835741b8bbd6b06139e0879))
73
+ * **skeleton:** change skeleton default to explicit false ([6d97feb](https://github.com/dvcol/neo-svelte/commit/6d97feb28ade813e48c791b8f7f765768f6b6644))
74
+ * **skeleton:** simplify skeleton container ([9b2f189](https://github.com/dvcol/neo-svelte/commit/9b2f18903ebca94bd776921f6849d8402cb73658))
75
+ * **style:** better scoping of :global selectors ([8fb9aea](https://github.com/dvcol/neo-svelte/commit/8fb9aea7f316e08dbeb24d3c04e2286270e81d62))
76
+ * **tags:** make tags reactive ([8637080](https://github.com/dvcol/neo-svelte/commit/863708038d96a0aff2137d5dde88e2d65068c574))
77
+ * **tooltip:** adjust clip path ([38ca8f0](https://github.com/dvcol/neo-svelte/commit/38ca8f0c54ad7a74088a2c1da5d3425fc230664b))
78
+ * **tooltip:** adjust padding & sizing on tooltips with lists ([7e0a27f](https://github.com/dvcol/neo-svelte/commit/7e0a27f24799e3b86f86b2d6c88f93d7ecfe2993))
79
+ * **tooltip:** remove tint when filled & un-tinted ([8ced754](https://github.com/dvcol/neo-svelte/commit/8ced754a6632dbc693d930588f3e680d11272d4c))
80
+
5
81
  ### [0.1.7](https://github.com/dvcol/neo-svelte/compare/v0.1.6...v0.1.7) (2025-02-03)
6
82
 
7
83
 
package/README.md CHANGED
@@ -50,9 +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
54
55
  - [x] toggle
55
56
  - [x] groups
57
+ - [x] tags/pills
58
+ - [x] badge
56
59
  - [x] Tabs
57
60
  - [x] Card
58
61
  - [x] Inputs
@@ -79,16 +82,20 @@ See examples in the demo (code [here](https://github.com/dvcol/neo-svelte/tree/f
79
82
  - [X] inset
80
83
  - [x] custom before-after
81
84
  - [x] steps
85
+ - [x] ticks
82
86
  - [ ] vertical
87
+ - [ ] circular
83
88
  - [ ] rating (stars)
84
89
  - [x] select
85
90
  - [x] native
86
- - [ ] custom
91
+ - [x] custom
87
92
  - [x] tooltip
88
93
  - [ ] popconfirm
89
- - [ ] popselect
94
+ - [x] popselect
95
+ - [ ] menu
90
96
  - [ ] nested menus
91
-
97
+ - [ ] menu pane (multi column)
98
+
92
99
  - [x] list
93
100
  - [x] select
94
101
  - [X] multiple
@@ -106,10 +113,43 @@ See examples in the demo (code [here](https://github.com/dvcol/neo-svelte/tree/f
106
113
  - [x] sort
107
114
  - [ ] tree
108
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
+
109
130
  - [ ] stepper
110
131
  - [ ] vertical
132
+ - [ ] animation (slider, fade or collapse)
111
133
  - [ ] progress/dots
112
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
+
113
153
  - [ ] Chat
114
154
  - [ ] infinite scroll
115
155
  - [ ] virtual scroll
@@ -130,14 +170,6 @@ See examples in the demo (code [here](https://github.com/dvcol/neo-svelte/tree/f
130
170
  - [ ] custom cards (contact, etc.)
131
171
  - [ ] custom bubbles
132
172
  - [ ] custom input
133
-
134
- - [ ] Modal/dialog
135
- - [ ] drawer/panel
136
- - [ ] collapsible
137
- - [ ] position
138
- - [ ] backdrop
139
- - [ ] click outside
140
-
141
173
  - [ ] table
142
174
  - [ ] pagination
143
175
 
@@ -151,18 +183,14 @@ See examples in the demo (code [here](https://github.com/dvcol/neo-svelte/tree/f
151
183
  - [ ] image
152
184
  - [ ] videos
153
185
  - [ ] carousel
186
+ - [ ] parallax
154
187
  - [ ] avatar
155
188
  - [ ] badge
156
- - [ ] tags/pills
157
- - [ ] badge
158
189
  - [ ] Progress/Loading
159
190
  - [ ] bar
160
191
  - [ ] circle
161
192
  - [ ] border
162
193
  - [ ] background
163
- - [ ] accordion
164
- - [ ] summary
165
- - [ ] details (html semantic tags)
166
194
 
167
195
  - [ ] text
168
196
  - [ ] elevation
@@ -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,3 @@
1
+ export { default as NeoBadge } from './NeoBadge.svelte';
2
+ export { NeoBadgePlacement } from './neo-badge.model.js';
3
+ export type * from './neo-badge.model.js';
@@ -0,0 +1,2 @@
1
+ export { default as NeoBadge } from './NeoBadge.svelte';
2
+ export { NeoBadgePlacement } from './neo-badge.model.js';
@@ -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
+ };