selectic 3.0.22 → 3.1.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 (44) hide show
  1. package/README.md +10 -0
  2. package/dist/selectic.common.js +540 -67
  3. package/dist/selectic.esm.js +541 -69
  4. package/doc/changeIcons.md +118 -0
  5. package/doc/changeText.md +1 -1
  6. package/doc/domProperties.md +57 -19
  7. package/doc/extendedProperties.md +83 -72
  8. package/doc/main.md +2 -0
  9. package/doc/params.md +177 -112
  10. package/doc/properties.md +42 -0
  11. package/package.json +4 -4
  12. package/src/ExtendedList.tsx +53 -6
  13. package/src/Filter.tsx +11 -9
  14. package/src/Icon.tsx +199 -0
  15. package/src/List.tsx +12 -6
  16. package/src/MainInput.tsx +15 -11
  17. package/src/Store.tsx +285 -123
  18. package/src/css/selectic.css +24 -0
  19. package/src/icons/caret-down.tsx +21 -0
  20. package/src/icons/caret-up.tsx +21 -0
  21. package/src/icons/check.tsx +23 -0
  22. package/src/icons/question.tsx +21 -0
  23. package/src/icons/search.tsx +21 -0
  24. package/src/icons/spinner.tsx +21 -0
  25. package/src/icons/strikeThrough.tsx +21 -0
  26. package/src/icons/times.tsx +21 -0
  27. package/src/index.tsx +78 -37
  28. package/test/Store/Store_computed.spec.js +84 -0
  29. package/test/Store/changeIcons.spec.js +154 -0
  30. package/test/Store/selectGroup.spec.js +389 -0
  31. package/test/Store/selectItem.spec.js +100 -46
  32. package/test/helper.js +38 -34
  33. package/types/ExtendedList.d.ts +7 -2
  34. package/types/Icon.d.ts +25 -0
  35. package/types/Store.d.ts +142 -5
  36. package/types/icons/caret-down.d.ts +6 -0
  37. package/types/icons/caret-up.d.ts +6 -0
  38. package/types/icons/check.d.ts +6 -0
  39. package/types/icons/question.d.ts +6 -0
  40. package/types/icons/search.d.ts +6 -0
  41. package/types/icons/spinner.d.ts +6 -0
  42. package/types/icons/strikeThrough.d.ts +6 -0
  43. package/types/icons/times.d.ts +6 -0
  44. package/types/index.d.ts +74 -1
package/README.md CHANGED
@@ -112,3 +112,13 @@ Run unitary tests:
112
112
  ```console
113
113
  $ npm run test
114
114
  ```
115
+
116
+ ## Migration information
117
+
118
+ ### From 3.0 to 3.1
119
+
120
+ Selectic no more depends on Font-awesome. It embeds its own icons (from Material Design Icons).
121
+
122
+ It is still possible to use Font-awesome icons (or from any other libraries).
123
+
124
+ Read [the documentation section related to changing icons](./doc/changeIcons.md) for more information on how to handle them.