@descope-ui/descope-outbound-app-button 0.0.2 → 0.0.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
+ ## [0.0.4](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-outbound-app-button-0.0.3...@descope-ui/descope-outbound-app-button-0.0.4) (2025-08-21)
6
+
7
+ ## [0.0.3](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-outbound-app-button-0.0.2...@descope-ui/descope-outbound-app-button-0.0.3) (2025-08-21)
8
+
5
9
  ## [0.0.2](https://github.com/descope/web-components-ui/compare/@descope-ui/descope-outbound-app-button-0.0.1...@descope-ui/descope-outbound-app-button-0.0.2) (2025-08-20)
6
10
 
7
11
  ## 0.0.1 (2025-08-20)
@@ -16,6 +16,11 @@ const presets = {
16
16
  label: '-Click Me',
17
17
  iconSrc: 'true',
18
18
  },
19
+ 'icon fill': {
20
+ label: '-Click Me',
21
+ iconSrc: 'true',
22
+ 'icon-fill-current-color': 'true',
23
+ }
19
24
  };
20
25
 
21
26
  const storyName = 'descope-outbound-app-button';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@descope-ui/descope-outbound-app-button",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./src/component/index.js"
@@ -10,6 +10,7 @@ import {
10
10
  } from '@descope-ui/common/components-helpers';
11
11
  import { compose } from '@descope-ui/common/utils';
12
12
  import { createBaseClass } from '@descope-ui/common/base-classes';
13
+ import { ButtonClass } from '@descope-ui/descope-button/class';
13
14
 
14
15
  export const componentName = getComponentName('outbound-app-button');
15
16
 
@@ -18,7 +19,7 @@ class RawOutboundAppButton extends createBaseClass({
18
19
  baseSelector: ':host > descope-button',
19
20
  }) {
20
21
  static get observedAttributes() {
21
- return ['label', 'icon-src'];
22
+ return ['label', 'icon-src', 'icon-fill-current-color'];
22
23
  }
23
24
 
24
25
  constructor() {
@@ -48,7 +49,15 @@ class RawOutboundAppButton extends createBaseClass({
48
49
  init() {
49
50
  super.init?.();
50
51
 
51
- forwardAttrs(this, this.button, { excludeAttrs: ['style', 'class', 'icon-src', 'label'] });
52
+ forwardAttrs(this, this.button, {
53
+ excludeAttrs: [
54
+ 'style',
55
+ 'class',
56
+ 'label',
57
+ 'icon-src',
58
+ 'icon-fill-current-color',
59
+ ]
60
+ });
52
61
  }
53
62
 
54
63
  updateLabel(val = '') {
@@ -77,7 +86,14 @@ class RawOutboundAppButton extends createBaseClass({
77
86
  export const OutboundAppButtonClass = compose(
78
87
  createStyleMixin({
79
88
  mappings: {
80
- hostWidth: { selector: () => ':host', property: 'width' },
89
+ hostWidth: {
90
+ selector: () => ':host',
91
+ property: 'width'
92
+ },
93
+ iconFillCurrentColor: {
94
+ selector: () => 'descope-icon',
95
+ property: ButtonClass.cssVarList.iconColor
96
+ }
81
97
  },
82
98
  }),
83
99
  draggableMixin,
package/src/theme.js CHANGED
@@ -3,6 +3,12 @@ import { OutboundAppButtonClass } from './component/OutboundAppButtonClass';
3
3
  const compVars = OutboundAppButtonClass.cssVarList;
4
4
 
5
5
  const outboundAppButton = {
6
+ [compVars.iconFillCurrentColor]: 'inherit',
7
+
8
+ _iconFillCurrentColor: {
9
+ [compVars.iconFillCurrentColor]: 'currentColor',
10
+ },
11
+
6
12
  _fullWidth: {
7
13
  [compVars.hostWidth]: '100%',
8
14
  },
@@ -11,7 +11,7 @@ import {
11
11
  labelSpacingControl,
12
12
  } from '@descope-ui/common/sb-controls';
13
13
 
14
- import { base64svg, errorMessageIconBase64 } from 'test-assets';
14
+ import { base64svg } from 'test-assets';
15
15
 
16
16
  const Template = ({
17
17
  variant,
@@ -26,7 +26,7 @@ const Template = ({
26
26
  'label-spacing': spacing,
27
27
  label,
28
28
  iconSrc,
29
- iconDarkSrc,
29
+ 'icon-fill-current-color': iconFillCurrentColor
30
30
  }) => `
31
31
  <style nonce="${window.DESCOPE_NONCE}">
32
32
  .wrapper {
@@ -47,6 +47,8 @@ const Template = ({
47
47
  st-host-direction="${direction ?? ''}"
48
48
  label="${label || ''}"
49
49
  icon-src="${iconSrc ? base64svg : ''}"
50
+ icon-fill-current-color="${iconFillCurrentColor}"
51
+ >
50
52
  </descope-outbound-app-button>
51
53
  </div>
52
54
  `;
@@ -76,6 +78,9 @@ export default {
76
78
  name: 'icon-src',
77
79
  control: { type: 'boolean' },
78
80
  },
81
+ 'icon-fill-current-color': {
82
+ control: { type: 'boolean' },
83
+ },
79
84
  },
80
85
  };
81
86
 
@@ -91,5 +96,5 @@ Default.args = {
91
96
  'label-spacing': 4,
92
97
  label: 'Outbound Application',
93
98
  iconSrc: false,
94
- iconDarkSrc: false
99
+ 'icon-fill-current-color': false,
95
100
  };