@luzmo/lucero 0.0.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 (204) hide show
  1. package/.storybook/dark-theme.ts +18 -0
  2. package/.storybook/light-theme.ts +34 -0
  3. package/.storybook/main.ts +34 -0
  4. package/.storybook/manager.ts +11 -0
  5. package/.storybook/preview-head.html +7 -0
  6. package/.storybook/preview.ts +42 -0
  7. package/LICENSE +16 -0
  8. package/README.md +18 -0
  9. package/custom-elements.json +68111 -0
  10. package/dist/LICENSE +16 -0
  11. package/dist/custom-elements.json +34043 -0
  12. package/dist/lib/accordion/index.cjs +43 -0
  13. package/dist/lib/accordion/index.js +182 -0
  14. package/dist/lib/action-bar/index.cjs +39 -0
  15. package/dist/lib/action-bar/index.js +108 -0
  16. package/dist/lib/action-button/index.cjs +24 -0
  17. package/dist/lib/action-button/index.js +162 -0
  18. package/dist/lib/action-group/index.cjs +18 -0
  19. package/dist/lib/action-group/index.js +29 -0
  20. package/dist/lib/action-group-BoIH8s8R.js +259 -0
  21. package/dist/lib/action-group-D4MxBrq8.cjs +20 -0
  22. package/dist/lib/action-menu/index.cjs +56 -0
  23. package/dist/lib/action-menu/index.js +127 -0
  24. package/dist/lib/async-directive-CV2MII86.cjs +22 -0
  25. package/dist/lib/async-directive-FGzMycjH.js +82 -0
  26. package/dist/lib/avatar/index.cjs +24 -0
  27. package/dist/lib/avatar/index.js +82 -0
  28. package/dist/lib/base-BCmA9Wxv.cjs +30 -0
  29. package/dist/lib/base-BjTwmyRF.cjs +22 -0
  30. package/dist/lib/base-D76d76ww.js +26 -0
  31. package/dist/lib/base-nYalvNMy.js +390 -0
  32. package/dist/lib/button/index.cjs +20 -0
  33. package/dist/lib/button/index.js +128 -0
  34. package/dist/lib/button-base-B0iB_JTv.cjs +25 -0
  35. package/dist/lib/button-base-DgtT6sU5.js +143 -0
  36. package/dist/lib/button-group/index.cjs +18 -0
  37. package/dist/lib/button-group/index.js +60 -0
  38. package/dist/lib/checkbox/index.cjs +25 -0
  39. package/dist/lib/checkbox/index.js +97 -0
  40. package/dist/lib/checkbox-mixin-DegQlk5C.js +71 -0
  41. package/dist/lib/checkbox-mixin-H0Hm-VLk.cjs +27 -0
  42. package/dist/lib/clear-button-Ap5H3UyH.js +54 -0
  43. package/dist/lib/clear-button-D0djuaLb.cjs +18 -0
  44. package/dist/lib/close-button-BrfeZvjk.cjs +18 -0
  45. package/dist/lib/close-button-CGISEF33.js +52 -0
  46. package/dist/lib/color-Bg3tYsAQ.js +178 -0
  47. package/dist/lib/color-DphK4hwx.cjs +18 -0
  48. package/dist/lib/color-area/index.cjs +80 -0
  49. package/dist/lib/color-area/index.js +373 -0
  50. package/dist/lib/color-field/index.cjs +23 -0
  51. package/dist/lib/color-field/index.js +81 -0
  52. package/dist/lib/color-handle/index.cjs +24 -0
  53. package/dist/lib/color-handle/index.js +74 -0
  54. package/dist/lib/color-loupe/index.cjs +18 -0
  55. package/dist/lib/color-loupe/index.js +29 -0
  56. package/dist/lib/color-loupe-BICpNqFs.cjs +56 -0
  57. package/dist/lib/color-loupe-DBEApMDT.js +82 -0
  58. package/dist/lib/color-menu/index.cjs +86 -0
  59. package/dist/lib/color-menu/index.js +204 -0
  60. package/dist/lib/color-picker/index.cjs +48 -0
  61. package/dist/lib/color-picker/index.js +142 -0
  62. package/dist/lib/color-slider/index.cjs +57 -0
  63. package/dist/lib/color-slider/index.js +318 -0
  64. package/dist/lib/condition-attribute-with-id-DrQYZzFS.cjs +18 -0
  65. package/dist/lib/condition-attribute-with-id-Dv4lSRbe.js +31 -0
  66. package/dist/lib/dependency-manger-C5HCkMMB.cjs +18 -0
  67. package/dist/lib/dependency-manger-CEXvGQUV.js +54 -0
  68. package/dist/lib/directive-C7oCP5Bh.cjs +22 -0
  69. package/dist/lib/directive-helpers-BLDZnGQv.js +28 -0
  70. package/dist/lib/directive-helpers-C2vOfhFx.cjs +22 -0
  71. package/dist/lib/directive-oAbCiebi.js +44 -0
  72. package/dist/lib/divider/index.cjs +18 -0
  73. package/dist/lib/divider/index.js +62 -0
  74. package/dist/lib/divider.module-CXMNveQc.cjs +18 -0
  75. package/dist/lib/divider.module-DwOuLGU3.js +21 -0
  76. package/dist/lib/element-resolution-BvRLGqIU.cjs +18 -0
  77. package/dist/lib/element-resolution-FCUT-wql.js +91 -0
  78. package/dist/lib/field-group/index.cjs +18 -0
  79. package/dist/lib/field-group/index.js +29 -0
  80. package/dist/lib/field-group-CBWafIUV.js +67 -0
  81. package/dist/lib/field-group-TUFvhJkk.cjs +23 -0
  82. package/dist/lib/field-label/index.cjs +18 -0
  83. package/dist/lib/field-label/index.js +29 -0
  84. package/dist/lib/field-label-BK_tk8vP.js +107 -0
  85. package/dist/lib/field-label-BrJaeORz.cjs +25 -0
  86. package/dist/lib/focus-group-DHeTq18L.js +218 -0
  87. package/dist/lib/focus-group-DnxZUBhQ.cjs +18 -0
  88. package/dist/lib/focus-visible-B0P9aY_G.cjs +18 -0
  89. package/dist/lib/focus-visible-DBlJGoEW.js +74 -0
  90. package/dist/lib/focusable-DbUg-3Vp.js +153 -0
  91. package/dist/lib/focusable-Dv_6CFaY.cjs +18 -0
  92. package/dist/lib/focusable-selectors-B4YgbghQ.js +31 -0
  93. package/dist/lib/focusable-selectors-BgFlyFcY.cjs +18 -0
  94. package/dist/lib/icon/index.cjs +18 -0
  95. package/dist/lib/icon/index.js +89 -0
  96. package/dist/lib/if-defined-CYpcjGCb.js +27 -0
  97. package/dist/lib/if-defined-Cv6xanXh.cjs +22 -0
  98. package/dist/lib/index-C1chwzNp.js +727 -0
  99. package/dist/lib/index-DCKCHDTt.cjs +18 -0
  100. package/dist/lib/index-ovT-qVzf.js +928 -0
  101. package/dist/lib/index-yNcLzjhM.cjs +77 -0
  102. package/dist/lib/index.cjs +18 -0
  103. package/dist/lib/index.js +133 -0
  104. package/dist/lib/infield-button/index.cjs +22 -0
  105. package/dist/lib/infield-button/index.js +65 -0
  106. package/dist/lib/label/index.cjs +18 -0
  107. package/dist/lib/label/index.js +52 -0
  108. package/dist/lib/legend-position/index.cjs +27 -0
  109. package/dist/lib/legend-position/index.js +85 -0
  110. package/dist/lib/like-anchor-K8W0QYwC.cjs +32 -0
  111. package/dist/lib/like-anchor-cDeGGeHh.js +70 -0
  112. package/dist/lib/lit-html-B3ugcwD9.js +248 -0
  113. package/dist/lib/lit-html-p4Oxv2-5.cjs +24 -0
  114. package/dist/lib/manage-help-text-2mSEy-AD.js +92 -0
  115. package/dist/lib/manage-help-text-iOk-zmy8.cjs +30 -0
  116. package/dist/lib/menu/index.cjs +18 -0
  117. package/dist/lib/menu/index.js +32 -0
  118. package/dist/lib/multi-language-field/index.cjs +39 -0
  119. package/dist/lib/multi-language-field/index.js +149 -0
  120. package/dist/lib/mutation-controller-DH7YOCyj.js +52 -0
  121. package/dist/lib/mutation-controller-DkOMCW-c.cjs +22 -0
  122. package/dist/lib/number-field/index.cjs +57 -0
  123. package/dist/lib/number-field/index.js +736 -0
  124. package/dist/lib/observe-slot-text-BmsCNJig.cjs +18 -0
  125. package/dist/lib/observe-slot-text-BoFRF-VI.js +87 -0
  126. package/dist/lib/overlay/index.cjs +73 -0
  127. package/dist/lib/overlay/index.js +325 -0
  128. package/dist/lib/overlay-C7QKFqRc.js +2702 -0
  129. package/dist/lib/overlay-DScraBAi.cjs +47 -0
  130. package/dist/lib/pending-state-D5KTK4_1.js +61 -0
  131. package/dist/lib/pending-state-Dbc2HIM2.cjs +26 -0
  132. package/dist/lib/picker/index.cjs +18 -0
  133. package/dist/lib/picker/index.js +32 -0
  134. package/dist/lib/picker--2OCYWnV.js +657 -0
  135. package/dist/lib/picker-B9W7Haf4.cjs +127 -0
  136. package/dist/lib/platform-CQzYNWKq.cjs +18 -0
  137. package/dist/lib/platform-DQYMG7JI.js +54 -0
  138. package/dist/lib/popover/index.cjs +18 -0
  139. package/dist/lib/popover/index.js +29 -0
  140. package/dist/lib/popover-CVbjhSnx.cjs +30 -0
  141. package/dist/lib/popover-ZRVxogyp.js +68 -0
  142. package/dist/lib/progress-circle/index.cjs +18 -0
  143. package/dist/lib/progress-circle/index.js +29 -0
  144. package/dist/lib/progress-circle-CiJoS8J7.cjs +33 -0
  145. package/dist/lib/progress-circle-DpXiqW6a.js +98 -0
  146. package/dist/lib/query-BL-TJj7K.cjs +22 -0
  147. package/dist/lib/query-D_KR_GUc.js +51 -0
  148. package/dist/lib/query-assigned-elements-DjfhL1cl.js +36 -0
  149. package/dist/lib/query-assigned-elements-DsKsfk7G.cjs +22 -0
  150. package/dist/lib/query-assigned-nodes-BcKWmGzy.cjs +22 -0
  151. package/dist/lib/query-assigned-nodes-C76XVPWY.js +36 -0
  152. package/dist/lib/radio/index.cjs +22 -0
  153. package/dist/lib/radio/index.js +192 -0
  154. package/dist/lib/random-id-ByCz1xaq.js +26 -0
  155. package/dist/lib/random-id-CqvckpWe.cjs +18 -0
  156. package/dist/lib/roving-tabindex-By_fCy_e.cjs +18 -0
  157. package/dist/lib/roving-tabindex-DOg4z6ZU.js +66 -0
  158. package/dist/lib/search/index.cjs +45 -0
  159. package/dist/lib/search/index.js +132 -0
  160. package/dist/lib/sized-mixin-BSYHt8nT.cjs +18 -0
  161. package/dist/lib/sized-mixin-Dl0KoEcV.js +63 -0
  162. package/dist/lib/slider/index.cjs +18 -0
  163. package/dist/lib/slider/index.js +1159 -0
  164. package/dist/lib/slottable-request-event-BfUUt1Mh.cjs +18 -0
  165. package/dist/lib/slottable-request-event-DggLA4Rx.js +31 -0
  166. package/dist/lib/state-BAO-13Bs.js +29 -0
  167. package/dist/lib/state-DReJ3hB6.cjs +22 -0
  168. package/dist/lib/streaming-listener-Bw4jE33f.cjs +18 -0
  169. package/dist/lib/streaming-listener-DLo0wkMc.js +125 -0
  170. package/dist/lib/style-map-BjBGQ_u3.cjs +22 -0
  171. package/dist/lib/style-map-BqvQDFJt.js +53 -0
  172. package/dist/lib/swatch/index.cjs +49 -0
  173. package/dist/lib/swatch/index.js +343 -0
  174. package/dist/lib/switch/index.cjs +22 -0
  175. package/dist/lib/switch/index.js +74 -0
  176. package/dist/lib/tags/index.cjs +32 -0
  177. package/dist/lib/tags/index.js +174 -0
  178. package/dist/lib/text-field/index.cjs +21 -0
  179. package/dist/lib/text-field/index.js +62 -0
  180. package/dist/lib/text-field-C6Aa7XOb.cjs +85 -0
  181. package/dist/lib/text-field-DPk332j9.js +315 -0
  182. package/dist/lib/toast/index.cjs +51 -0
  183. package/dist/lib/toast/index.js +154 -0
  184. package/dist/lib/tooltip/index.cjs +45 -0
  185. package/dist/lib/tooltip/index.js +221 -0
  186. package/dist/lib/unit-input/index.cjs +43 -0
  187. package/dist/lib/unit-input/index.js +184 -0
  188. package/dist/lib/when-CDK1Tt5Y.js +28 -0
  189. package/dist/lib/when-CDZyJPvd.cjs +22 -0
  190. package/dist/package.json +191 -0
  191. package/eslint.config.js +314 -0
  192. package/package.json +98 -0
  193. package/playwright.config.ts +79 -0
  194. package/vite-utils/cem-plugins/plugin-mixins-and-superclass.ts +141 -0
  195. package/vite-utils/cem-plugins/plugin-private-fields-filter.ts +19 -0
  196. package/vite-utils/get-components-entries.ts +30 -0
  197. package/vite-utils/get-license-content.ts +31 -0
  198. package/vite-utils/get-package-json-content.ts +49 -0
  199. package/vite-utils/plugin-generate-custom-elements-manifest.ts +156 -0
  200. package/vite-utils/plugin-generate-file.ts +130 -0
  201. package/vite-utils/plugin-prepend-css-variables-code.ts +55 -0
  202. package/vite.config.component.ts +69 -0
  203. package/vite.config.storybook.ts +6 -0
  204. package/web-test-runner.config.js +23 -0
@@ -0,0 +1,18 @@
1
+ import { create } from '@storybook/theming';
2
+
3
+ export default create({
4
+ base: 'dark',
5
+ brandTitle: 'Luzmo Analytics Components Kit',
6
+ brandUrl: 'https://luzmo.com',
7
+ brandImage: './../src/assets/logo-dark.svg',
8
+ brandTarget: '_blank',
9
+ colorPrimary: '#7b90ff',
10
+ colorSecondary: '#7b90ff',
11
+ appBorderRadius: 8,
12
+ inputBorderRadius: 8,
13
+ // UI
14
+ appBg: '#262626',
15
+ appContentBg: '#262626',
16
+ appPreviewBg: '#262626',
17
+ appBorderColor: 'rgba(255, 255, 255, .2)'
18
+ });
@@ -0,0 +1,34 @@
1
+ import { create } from '@storybook/theming';
2
+
3
+ export default create({
4
+ base: 'light',
5
+ brandTitle: 'Luzmo Analytics Components Kit',
6
+ brandUrl: 'https://luzmo.com',
7
+ brandImage: './../src/assets/logo-light.svg',
8
+ brandTarget: '_blank',
9
+ colorPrimary: '#4434FF',
10
+ colorSecondary: '#4434FF',
11
+
12
+ // UI
13
+ appBg: '#ffffff',
14
+ appContentBg: '#ffffff',
15
+ appPreviewBg: '#ffffff',
16
+ appBorderColor: 'rgba(0,0,0, .1)',
17
+ appBorderRadius: 8,
18
+
19
+ // Text colors
20
+ textColor: '#5a5a5a',
21
+ textInverseColor: '#ffffff',
22
+
23
+ // Toolbar default and active colors
24
+ barTextColor: '#5a5a5a',
25
+ barSelectedColor: '#333',
26
+ barHoverColor: '#333',
27
+ barBg: '#ffffff',
28
+
29
+ // Form colors
30
+ inputBg: '#ffffff',
31
+ inputBorder: 'rgba(0,0,0, .1)',
32
+ inputTextColor: '#10162F',
33
+ inputBorderRadius: 8
34
+ });
@@ -0,0 +1,34 @@
1
+ import type { StorybookConfig } from '@storybook/web-components-vite';
2
+ import { mergeConfig } from 'vite';
3
+ import tsconfigPaths from 'vite-tsconfig-paths';
4
+
5
+ const config: StorybookConfig = {
6
+ stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
7
+ addons: [
8
+ '@storybook/addon-a11y',
9
+ '@storybook/addon-themes',
10
+ '@storybook/addon-essentials'
11
+ ],
12
+ core: {
13
+ builder: {
14
+ name: '@storybook/builder-vite',
15
+ options: {
16
+ viteConfigPath: './vite.config.storybook.js'
17
+ }
18
+ }
19
+ },
20
+ framework: {
21
+ name: '@storybook/web-components-vite',
22
+ options: {}
23
+ },
24
+ viteFinal: async (config) => {
25
+ return mergeConfig(config, {
26
+ plugins: [tsconfigPaths()],
27
+ build: {
28
+ // overwrite && changed to a different path than dist so that the dist folder is watched when rebuilding the components to the dist folder
29
+ outDir: 'randomDirName'
30
+ }
31
+ });
32
+ }
33
+ };
34
+ export default config;
@@ -0,0 +1,11 @@
1
+ import { addons } from '@storybook/manager-api';
2
+ import darkTheme from './dark-theme';
3
+ import lightTheme from './light-theme';
4
+
5
+ addons.setConfig({
6
+ themes: {
7
+ light: lightTheme,
8
+ dark: darkTheme
9
+ },
10
+ theme: lightTheme
11
+ });
@@ -0,0 +1,7 @@
1
+ <link rel="stylesheet" href="src/styles/global-variables.css" />
2
+ <link rel="stylesheet" href="src/styles/global-variables-dark-theme.css" />
3
+ <style>
4
+ body {
5
+ background-color: var(--luzmo-background-color);
6
+ }
7
+ </style>
@@ -0,0 +1,42 @@
1
+ import { withThemeByClassName } from '@storybook/addon-themes';
2
+ import type { Preview } from '@storybook/web-components';
3
+ import { setCustomElementsManifest } from '@storybook/web-components';
4
+ import customElements from '../dist/custom-elements.json';
5
+ import darkTheme from './dark-theme';
6
+ import lightTheme from './light-theme';
7
+
8
+ setCustomElementsManifest(customElements);
9
+
10
+ const themes = {
11
+ light: lightTheme,
12
+ dark: darkTheme
13
+ };
14
+
15
+ const preview: Preview = {
16
+ parameters: {
17
+ backgrounds: {
18
+ disable: true,
19
+ values: [
20
+ { name: 'light', value: lightTheme.appBg },
21
+ { name: 'dark', value: darkTheme.appBg }
22
+ ]
23
+ },
24
+ controls: {
25
+ matchers: {
26
+ color: /(background|color)$/i,
27
+ date: /Date$/
28
+ }
29
+ }
30
+ },
31
+ decorators: [
32
+ withThemeByClassName({
33
+ themes: {
34
+ light: 'light',
35
+ dark: 'dark'
36
+ },
37
+ defaultTheme: 'light'
38
+ })
39
+ ]
40
+ };
41
+
42
+ export default preview;
package/LICENSE ADDED
@@ -0,0 +1,16 @@
1
+ Lucero - The design system for Luzmo.
2
+
3
+ Copyright © 2025 Luzmo
4
+ All rights reserved.
5
+ Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
+ This license allows users with a current active Luzmo account to use Lucero.
7
+ This license terminates automatically if a user no longer has an active Luzmo account.
8
+ Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
+
10
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,18 @@
1
+ Luzmo Design system - Lucero
2
+
3
+ ## Installation
4
+
5
+ ```bash
6
+ npm install @luzmo/lucero
7
+ ```
8
+
9
+ ```ts
10
+ import '@luzmo/lucero/button';
11
+ ```
12
+
13
+ ```html
14
+ <luzmo-button>Click me</luzmo-button>
15
+ ```
16
+
17
+ This repository is in alpha state. Do not use the web components in production.
18
+ Expect breaking changes.