@lumx/vue 4.5.2-alpha.3 → 4.5.2-alpha.4

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.
package/package.json CHANGED
@@ -31,11 +31,11 @@
31
31
  }
32
32
  },
33
33
  "sideEffects": false,
34
- "version": "4.5.2-alpha.3",
34
+ "version": "4.5.2-alpha.4",
35
35
  "dependencies": {
36
36
  "@floating-ui/vue": "^1.1.10",
37
- "@lumx/core": "^4.5.2-alpha.3",
38
- "@lumx/icons": "^4.5.2-alpha.3",
37
+ "@lumx/core": "^4.5.2-alpha.4",
38
+ "@lumx/icons": "^4.5.2-alpha.4",
39
39
  "@vueuse/core": "^14.1.0"
40
40
  },
41
41
  "peerDependencies": {
@@ -47,8 +47,8 @@
47
47
  "@chromatic-com/storybook": "^5.0.0",
48
48
  "@lumx/storybook-testing": "workspace:*",
49
49
  "@rollup/plugin-node-resolve": "^16.0.3",
50
- "@storybook/addon-a11y": "^10.2.0",
51
- "@storybook/vue3-vite": "^10.2.0",
50
+ "@storybook/addon-a11y": "^10.2.14",
51
+ "@storybook/vue3-vite": "^10.2.14",
52
52
  "@testing-library/dom": "^10.4.1",
53
53
  "@testing-library/user-event": "^14.4.3",
54
54
  "@testing-library/vue": "^8.1.0",
@@ -58,7 +58,7 @@
58
58
  "chromatic": "^13.3.5",
59
59
  "focus-visible": "^5.2.1",
60
60
  "jsdom": "^27.2.0",
61
- "storybook": "^10.2.0",
61
+ "storybook": "^10.2.14",
62
62
  "typescript": "^5.4.3",
63
63
  "vite": "^7.3.1",
64
64
  "vite-plugin-dts": "^4.5.4",
@@ -0,0 +1,26 @@
1
+ import { ThemeVariablesOptions } from '@lumx/core/stories/utils/themeVariables';
2
+ export type { ThemeVariablesOptions, PropertyTree, Entry, Variables } from '@lumx/core/stories/utils/themeVariables';
3
+ /**
4
+ * Storybook decorator for theming CSS custom properties (Vue version).
5
+ * Allows interactive editing of design tokens via an "Edit variables" panel.
6
+ *
7
+ * @param options - Configuration object with properties tree and initial values
8
+ * @returns Storybook decorator function
9
+ *
10
+ * @example
11
+ * import pick from 'lodash/pick';
12
+ * import { DESIGN_TOKENS } from '@lumx/core/js/constants/_internal/design-tokens';
13
+ *
14
+ * export const Theming = {
15
+ * decorators: [
16
+ * withTheming({
17
+ * properties: pick(DESIGN_TOKENS, ['chip']),
18
+ * values: `
19
+ * --lumx-chip-emphasis-selected-state-default-theme-light-border-color: red;
20
+ * --lumx-chip-emphasis-selected-state-hover-theme-light-border-color: blue;
21
+ * `,
22
+ * }),
23
+ * ],
24
+ * };
25
+ */
26
+ export declare function withTheming(options: ThemeVariablesOptions): (story: any, ctx: any) => () => import("vue/jsx-runtime").JSX.Element;