@syware/jlib 0.2.0 → 0.4.0

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 (50) hide show
  1. package/README.md +1 -0
  2. package/dist/all.js +5 -3
  3. package/dist/atoms/jl-button.css_raw.js +1 -1
  4. package/dist/atoms/jl-button.d.ts +19 -0
  5. package/dist/atoms/jl-button.js +75 -23
  6. package/dist/atoms/jl-chip.css_raw.js +1 -1
  7. package/dist/atoms/jl-input.d.ts +6 -0
  8. package/dist/atoms/jl-input.js +4 -0
  9. package/dist/atoms/jl-select.d.ts +6 -0
  10. package/dist/atoms/jl-select.js +18 -1
  11. package/dist/atoms/jl-switch.d.ts +12 -1
  12. package/dist/atoms/jl-switch.js +11 -1
  13. package/dist/index.d.ts +5 -1
  14. package/dist/index.js +4 -2
  15. package/dist/lib/attributes.d.ts +5 -0
  16. package/dist/lib/attributes.js +13 -1
  17. package/dist/lib/flow.d.ts +10 -1
  18. package/dist/lib/flow.js +26 -9
  19. package/dist/lib/tokens.d.ts +2 -1
  20. package/dist/lib/tokens.js +13 -4
  21. package/dist/molecules/jl-accordion-item.css_raw.js +1 -1
  22. package/dist/molecules/jl-accordion-item.d.ts +6 -1
  23. package/dist/molecules/jl-accordion-item.js +21 -6
  24. package/dist/molecules/jl-alert.d.ts +10 -3
  25. package/dist/molecules/jl-alert.js +23 -6
  26. package/dist/molecules/jl-chip-group.css_raw.js +3 -0
  27. package/dist/molecules/jl-chip-group.d.ts +81 -0
  28. package/dist/molecules/jl-chip-group.js +259 -0
  29. package/dist/molecules/jl-search.d.ts +3 -1
  30. package/dist/molecules/jl-search.js +8 -6
  31. package/dist/molecules/jl-segmented.css_raw.js +1 -1
  32. package/dist/molecules/jl-segmented.js +14 -7
  33. package/dist/molecules/jl-stat.css_raw.js +1 -1
  34. package/dist/molecules/jl-stat.d.ts +6 -0
  35. package/dist/molecules/jl-stat.js +6 -0
  36. package/dist/molecules/jl-tag-input.css_raw.js +1 -1
  37. package/dist/organisms/jl-flow.css_raw.js +1 -1
  38. package/dist/organisms/jl-flow.d.ts +28 -5
  39. package/dist/organisms/jl-flow.js +138 -33
  40. package/dist/organisms/jl-tab-bar.css_raw.js +3 -0
  41. package/dist/organisms/jl-tab-bar.d.ts +43 -0
  42. package/dist/organisms/jl-tab-bar.js +123 -0
  43. package/dist/templates/jl-app-shell.css_raw.js +1 -1
  44. package/dist/templates/jl-app-shell.d.ts +8 -2
  45. package/dist/templates/jl-app-shell.js +32 -5
  46. package/dist/types/jl-chip-group.types.d.ts +10 -0
  47. package/dist/types/jl-flow.types.d.ts +17 -0
  48. package/dist/types/jl-segmented.types.d.ts +2 -0
  49. package/dist/types/jl-tab-bar.types.d.ts +11 -0
  50. package/package.json +1 -1
@@ -0,0 +1,11 @@
1
+ /** One place in a bottom tab bar: an icon over a short label. */
2
+ export type TabBarItem = {
3
+ id: string;
4
+ label: string;
5
+ /** An icon name: the tab bar draws one over every label. */
6
+ icon: string;
7
+ /** A link to follow; without it the item is a button that only fires `select`. */
8
+ href?: string;
9
+ /** A count or a short word over the icon: `3`, `New`. Counts above 99 show as `99+`. */
10
+ badge?: string | number;
11
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syware/jlib",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "description": "A tree-shakeable component library on Jadis and native Web Components, organised in atomic design",
5
5
  "keywords": [
6
6
  "web-components",