@descope-ui/descope-button 3.3.2 → 3.3.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/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [3.3.4](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.3...web-components-ui-3.3.4) (2026-05-06)
6
+
7
+ ## [3.3.3](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.2...web-components-ui-3.3.3) (2026-05-03)
8
+
5
9
  ## [3.3.2](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.1...web-components-ui-3.3.2) (2026-04-26)
6
10
 
7
11
  ## [3.3.1](https://github.com/descope/web-components-ui/compare/web-components-ui-3.3.0...web-components-ui-3.3.1) (2026-04-23)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope-ui/descope-button",
3
- "version": "3.3.2",
3
+ "version": "3.3.4",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./src/component/index.js"
@@ -14,14 +14,14 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@playwright/test": "1.58.2",
17
- "e2e-utils": "3.3.2",
18
- "test-assets": "3.3.2"
17
+ "e2e-utils": "3.3.4",
18
+ "test-assets": "3.3.4"
19
19
  },
20
20
  "dependencies": {
21
21
  "@vaadin/button": "24.3.4",
22
- "@descope-ui/theme-globals": "3.3.2",
23
- "@descope-ui/descope-icon": "3.3.2",
24
- "@descope-ui/common": "3.3.2"
22
+ "@descope-ui/theme-globals": "3.3.4",
23
+ "@descope-ui/common": "3.3.4",
24
+ "@descope-ui/descope-icon": "3.3.4"
25
25
  },
26
26
  "publishConfig": {
27
27
  "link-workspace-packages": false
@@ -63,6 +63,7 @@ export const ButtonClass = compose(
63
63
  hostDirection: { ...host, property: 'direction' },
64
64
  fontSize: {},
65
65
  fontFamily: {},
66
+ fontWeight: {},
66
67
 
67
68
  cursor: {},
68
69
  backgroundColor: {},
@@ -77,7 +78,10 @@ export const ButtonClass = compose(
77
78
  borderStyle: {},
78
79
  borderWidth: {},
79
80
 
80
- verticalPadding: [{ property: 'padding-top' }, { property: 'padding-bottom' }],
81
+ verticalPadding: [
82
+ { property: 'padding-top' },
83
+ { property: 'padding-bottom' },
84
+ ],
81
85
  horizontalPadding: [
82
86
  { property: 'padding-right', fallback: '0.875em' },
83
87
  { property: 'padding-left', fallback: '0.875em' },
@@ -85,9 +89,9 @@ export const ButtonClass = compose(
85
89
 
86
90
  labelTextColor: { property: 'color' },
87
91
  iconColor: {
88
- selector: () => `::slotted(*)`,
89
- property: IconClass.cssVarList.fill
90
- },
92
+ selector: () => `::slotted(*)`,
93
+ property: IconClass.cssVarList.fill,
94
+ },
91
95
  labelTextDecoration: { ...label, property: 'text-decoration' },
92
96
  labelSpacing: { ...label, property: 'gap' },
93
97
  textAlign: { ...label, property: 'justify-content', fallback: 'center' },
@@ -100,7 +104,7 @@ export const ButtonClass = compose(
100
104
  }),
101
105
  clickableMixin,
102
106
  draggableMixin,
103
- componentNameValidationMixin
107
+ componentNameValidationMixin,
104
108
  )(
105
109
  createProxy({
106
110
  slots: ['', 'prefix', 'label', 'suffix'],
@@ -126,7 +130,7 @@ export const ButtonClass = compose(
126
130
  `,
127
131
  excludeAttrsSync: ['tabindex', 'class', 'style'],
128
132
  componentName,
129
- })
133
+ }),
130
134
  );
131
135
 
132
136
  const { color, fontSize } = ButtonClass.cssVarList;
package/src/theme.js CHANGED
@@ -1,5 +1,8 @@
1
1
  import globals from '@descope-ui/theme-globals';
2
- import { getThemeRefs, createHelperVars } from '@descope-ui/common/theme-helpers';
2
+ import {
3
+ getThemeRefs,
4
+ createHelperVars,
5
+ } from '@descope-ui/common/theme-helpers';
3
6
  import { componentName, ButtonClass } from './component/ButtonClass';
4
7
 
5
8
  const globalRefs = getThemeRefs(globals);
@@ -13,12 +16,16 @@ const mode = {
13
16
  surface: globalRefs.colors.surface,
14
17
  };
15
18
 
16
- const [helperTheme, helperRefs, helperVars] = createHelperVars({ mode }, componentName);
19
+ const [helperTheme, helperRefs, helperVars] = createHelperVars(
20
+ { mode },
21
+ componentName,
22
+ );
17
23
 
18
24
  const button = {
19
25
  ...helperTheme,
20
26
 
21
27
  [compVars.fontFamily]: globalRefs.fonts.font1.family,
28
+ [compVars.fontWeight]: '400',
22
29
 
23
30
  [compVars.cursor]: 'pointer',
24
31
  [compVars.hostHeight]: '3em',