@livestorm/ui-vue 2.0.5 → 3.0.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 (85) hide show
  1. package/README.md +6 -3
  2. package/dist/UiTimelineItem.vue_vue_type_style_index_0_lang-LpdvGf5X.mjs +6093 -0
  3. package/dist/components.mjs +105 -96
  4. package/dist/index.mjs +68 -64
  5. package/dist/layouts.mjs +15 -15
  6. package/dist/types/index.d.ts +5 -1
  7. package/dist/types/src/components/UiActionBar/UiActionBar.vue.d.ts +3 -1
  8. package/dist/types/src/components/UiActionBar/UiActionBarItem.vue.d.ts +18 -3
  9. package/dist/types/src/components/UiActionBar/types.d.ts +3 -1
  10. package/dist/types/src/components/UiButton/UiButton.vue.d.ts +17 -13
  11. package/dist/types/src/components/UiButtonGroup/UiButtonGroupItem.vue.d.ts +3 -0
  12. package/dist/types/src/components/UiButtonGroup/types.d.ts +1 -1
  13. package/dist/types/src/components/UiDropdown/UiDropdownItem.vue.d.ts +6 -4
  14. package/dist/types/src/components/UiInputEmoji/UiInputEmoji.vue.d.ts +45 -0
  15. package/dist/types/src/components/UiInputEmoji/index.d.ts +1 -0
  16. package/dist/types/src/components/UiInputRadio/UiInputRadio.vue.d.ts +67 -0
  17. package/dist/types/src/components/UiInputRadio/UiInputRadioGroup.vue.d.ts +81 -0
  18. package/dist/types/src/components/UiInputRadio/index.d.ts +3 -0
  19. package/dist/types/src/components/UiInputRadio/types.d.ts +19 -0
  20. package/dist/types/src/components/UiLoader/UiLoader.vue.d.ts +6 -5
  21. package/dist/types/src/components/UiLogo/UiLogo.vue.d.ts +9 -3
  22. package/dist/types/src/components/UiPage/UiPage.vue.d.ts +34 -0
  23. package/dist/types/src/components/UiProgress/UiProgress.vue.d.ts +1 -1
  24. package/dist/types/src/components/UiSwitch/UiSwitch.vue.d.ts +109 -0
  25. package/dist/types/src/components/UiSwitch/index.d.ts +2 -0
  26. package/dist/types/src/components/UiSwitch/types.d.ts +3 -0
  27. package/dist/types/src/components/UiTabs/UiTabs.vue.d.ts +5 -2
  28. package/dist/types/src/composables/useContentMode.d.ts +25 -0
  29. package/dist/types/src/composables/useIconSize.d.ts +11 -0
  30. package/dist/types/src/constants/sizes.d.ts +1 -1
  31. package/dist/ui-vue.css +1 -1
  32. package/index.d.ts +4 -0
  33. package/index.js +8 -0
  34. package/package.json +6 -3
  35. package/src/components/Toast/ToastMessage.vue +6 -6
  36. package/src/components/UiActionBar/UiActionBar.vue +11 -2
  37. package/src/components/UiActionBar/UiActionBarItem.vue +56 -32
  38. package/src/components/UiActionBar/types.ts +3 -1
  39. package/src/components/UiAvatar/UiAvatar.vue +1 -1
  40. package/src/components/UiBanner/UiBanner.vue +7 -7
  41. package/src/components/UiButton/UiButton.vue +9 -9
  42. package/src/components/UiButtonGroup/UiButtonGroup.vue +2 -0
  43. package/src/components/UiButtonGroup/UiButtonGroupItem.vue +12 -0
  44. package/src/components/UiButtonGroup/types.ts +1 -1
  45. package/src/components/UiCarousel/UiCarousel.vue +2 -2
  46. package/src/components/UiColorPicker/UiColorPicker.vue +5 -5
  47. package/src/components/UiDialog/MarketplaceHeaderExample.vue +2 -2
  48. package/src/components/UiDialog/UiDialogClose.vue +1 -1
  49. package/src/components/UiDropdown/UiDropdownContent.vue +2 -2
  50. package/src/components/UiDropdown/UiDropdownItem.vue +8 -1
  51. package/src/components/UiDropdown/UiDropdownTrigger.vue +6 -7
  52. package/src/components/UiFieldWrapper/UiFieldWrapper.vue +1 -1
  53. package/src/components/UiInputCheckbox/UiInputCheckbox.vue +2 -2
  54. package/src/components/UiInputEmoji/UiInputEmoji.vue +173 -0
  55. package/src/components/UiInputEmoji/index.ts +1 -0
  56. package/src/components/UiInputRadio/UiInputRadio.vue +374 -0
  57. package/src/components/UiInputRadio/UiInputRadioGroup.vue +156 -0
  58. package/src/components/UiInputRadio/index.ts +3 -0
  59. package/src/components/UiInputRadio/types.ts +25 -0
  60. package/src/components/UiLoader/UiLoader.vue +8 -10
  61. package/src/components/UiLogo/UiLogo.vue +41 -7
  62. package/src/components/UiMenu/UiMenuContent.vue +1 -1
  63. package/src/components/UiMenu/UiMenuGroup.vue +1 -1
  64. package/src/components/UiMenu/UiMenuItem.vue +1 -1
  65. package/src/components/UiMenu/UiMenuSubContent.vue +1 -1
  66. package/src/components/UiMenu/UiMenuSubTrigger.vue +2 -2
  67. package/src/components/UiPage/UiPage.vue +102 -34
  68. package/src/components/UiPageHeader/UiPageHeader.vue +29 -9
  69. package/src/components/UiRoomButton/UiRoomButton.vue +4 -4
  70. package/src/components/UiShell/UiShell.vue +1 -1
  71. package/src/components/UiSideMenu/UiSideMenu.vue +13 -10
  72. package/src/components/UiSideMenu/UiSideMenuItemContent.vue +2 -2
  73. package/src/components/UiStepper/UiStepperIndicator.vue +8 -11
  74. package/src/components/UiSwitch/UiSwitch.vue +359 -0
  75. package/src/components/UiSwitch/index.ts +2 -0
  76. package/src/components/UiSwitch/types.ts +5 -0
  77. package/src/components/UiTabs/UiTabs.vue +7 -4
  78. package/src/components/UiTextField/UiTextField.vue +6 -11
  79. package/src/components/UiTimeline/README.md +6 -6
  80. package/src/components/UiTimeline/UiTimelineItem.vue +3 -3
  81. package/src/composables/useContentMode.ts +53 -0
  82. package/src/composables/useIconSize.ts +28 -0
  83. package/src/constants/sizes.ts +1 -1
  84. package/src/global.d.ts +8 -0
  85. package/dist/UiTimelineItem.vue_vue_type_style_index_0_lang-DJFdCn2R.mjs +0 -5456
package/README.md CHANGED
@@ -48,17 +48,20 @@ pnpm add @livestorm/ui-vue
48
48
 
49
49
  ## Tailwind CSS setup
50
50
 
51
- Components use Tailwind utility classes (including the `i-ls-*` icon classes), so your app needs to run Tailwind and scan the library. In your Tailwind entry CSS:
51
+ Components use Tailwind utility classes (including the `i-ls-*` / `i-ph-*` icon classes), so your app needs to run Tailwind and scan the library. In your Tailwind entry CSS:
52
52
 
53
53
  ```css
54
54
  @import "tailwindcss";
55
55
  @import "@livestorm/ui-tokens/output/supernova/index.css";
56
- @import "@livestorm/ui-icons/icons-tailwind-utilities.css";
56
+ @plugin "@livestorm/ui-icons/tailwind";
57
+ @import "@livestorm/ui-icons/base.css";
57
58
 
58
59
  /* Generate the utility classes used by ui-vue components */
59
60
  @source "../node_modules/@livestorm/ui-vue/dist";
60
61
  ```
61
62
 
63
+ The icon plugin serves the custom Livestorm set (`i-ls-<name>`) and [Phosphor](https://phosphoricons.com) (`i-ph-<name>`, `regular` and `-fill` weights). Icon names must appear as complete literals in scanned sources — never compose them at runtime.
64
+
62
65
  > [!WARNING]
63
66
  > Components rely on the design-token utilities these two imports produce (`bg-actions-primary-idle`, `i-ls-*`, ...). Those class names live in the component code, not in the shipped stylesheet, so if your own theme resets the token namespace (for example `--color-*: initial` in an `@theme`), Tailwind silently stops generating them and components render unstyled — no error, no warning. Keep the Livestorm token imports alongside your palette instead of resetting all colors.
64
67
 
@@ -137,7 +140,7 @@ import { UiButton, UiTextField, UiInputSelect } from '@livestorm/ui-vue'
137
140
 
138
141
  ```vue
139
142
  <template>
140
- <UiButton variant="cta" color="primary" icon="i-ls-check">
143
+ <UiButton variant="cta" color="primary" icon="i-ph-check">
141
144
  Click me
142
145
  </UiButton>
143
146
  </template>