@descope/web-components-ui 1.0.288 → 1.0.289
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/dist/cjs/index.cjs.js +5 -0
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +5 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js +1 -1
- package/package.json +1 -1
- package/src/components/button-selection-group-fields/descope-button-selection-group-item/ButtonSelectionGroupItemClass.js +4 -0
- package/src/index.d.ts +3 -0
- package/src/theme/components/buttonSelectionGroup/buttonSelectionGroupItem.js +1 -0
package/dist/umd/button-selection-group-fields-descope-button-selection-group-item-index-js.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";(self.webpackChunkDescopeUI=self.webpackChunkDescopeUI||[]).push([[6656],{4873:(t,e,o)=>{o.r(e),o.d(e,{ButtonSelectionGroupItemClass:()=>
|
1
|
+
"use strict";(self.webpackChunkDescopeUI=self.webpackChunkDescopeUI||[]).push([[6656],{4873:(t,e,o)=>{o.r(e),o.d(e,{ButtonSelectionGroupItemClass:()=>p});var s=o(1e3),n=o(2561),r=o(2061),i=o(4567),c=o(9690);const a=(0,i.iY)("button-selection-group-item");class l extends((0,n.s)({componentName:a,baseSelector:":host > descope-button"})){get size(){return this.getAttribute("size")||"md"}get variant(){return this.getAttribute("variant")||"contained"}get value(){return this.getAttribute("value")||""}set value(t){this.setAttribute("value",t)}constructor(){super(),this.attachShadow({mode:"open"}).innerHTML=`\n\t\t<style>\n descope-button {\n max-width: 100%;\n }\n\t\t\tdescope-button > slot {\n\t\t\t\twidth: 100%;\n\t\t\t\toverflow: hidden;\n text-overflow: ellipsis;\n display: inline-block;\n\t\t\t}\n\t\t\t:host {\n\t\t\t\tdisplay: inline-block;\n max-width: 100%\n\t\t\t}\n\t\t</style>\n <descope-button variant="${this.variant}" size="${this.size}" mode="primary">\n <slot></slot>\n </descope-button>\n\t`,(0,i.oP)(this,this.baseElement,{includeAttrs:["size","variant"]}),(0,i.oP)(this.baseElement,this,{includeAttrs:["focused","active"]})}handleFocus(){this.shadowRoot.querySelector("descope-button")?.focus()}focus(){this.handleFocus()}init(){super.init(),this.addEventListener("focus",(t=>{t.isTrusted&&this.handleFocus()}))}}const p=(0,r.qC)((0,s.yk)({mappings:{hostDirection:{selector:()=>c.n.componentName,property:c.n.cssVarList.hostDirection},backgroundColor:{selector:()=>c.n.componentName,property:c.n.cssVarList.backgroundColor},labelTextColor:{selector:()=>c.n.componentName,property:c.n.cssVarList.labelTextColor},borderColor:{selector:()=>c.n.componentName,property:c.n.cssVarList.borderColor},borderWidth:{selector:()=>c.n.componentName,property:c.n.cssVarList.borderWidth},borderStyle:{selector:()=>c.n.componentName,property:c.n.cssVarList.borderStyle},borderRadius:{selector:()=>c.n.componentName,property:c.n.cssVarList.borderRadius},outlineColor:{selector:()=>c.n.componentName,property:c.n.cssVarList.outlineColor}}}),s.e4,s.Ae)(l);o(2018),customElements.define(a,p)}}]);
|
package/package.json
CHANGED
@@ -92,6 +92,10 @@ export const ButtonSelectionGroupItemClass = compose(
|
|
92
92
|
selector: () => ButtonClass.componentName,
|
93
93
|
property: ButtonClass.cssVarList.borderColor,
|
94
94
|
},
|
95
|
+
borderWidth: {
|
96
|
+
selector: () => ButtonClass.componentName,
|
97
|
+
property: ButtonClass.cssVarList.borderWidth,
|
98
|
+
},
|
95
99
|
borderStyle: {
|
96
100
|
selector: () => ButtonClass.componentName,
|
97
101
|
property: ButtonClass.cssVarList.borderStyle,
|
package/src/index.d.ts
CHANGED
@@ -51,6 +51,8 @@ export type Theme = {
|
|
51
51
|
typography: Record<string, any>;
|
52
52
|
shadow: Record<string, string>;
|
53
53
|
spacing: Record<string, string>;
|
54
|
+
radius: Record<string, string>;
|
55
|
+
border: Record<string, string>;
|
54
56
|
};
|
55
57
|
components: {
|
56
58
|
button: Record<string, any>;
|
@@ -60,5 +62,6 @@ export type Theme = {
|
|
60
62
|
link: Record<string, any>;
|
61
63
|
text: Record<string, any>;
|
62
64
|
inputWrapper: Record<string, any>;
|
65
|
+
buttonSelectionGroupItem: Record<string, any>;
|
63
66
|
};
|
64
67
|
};
|
@@ -14,6 +14,7 @@ const buttonSelectionGroupItem = {
|
|
14
14
|
[vars.borderStyle]: 'solid',
|
15
15
|
[vars.borderRadius]: globalRefs.radius.sm,
|
16
16
|
[vars.outlineColor]: 'transparent',
|
17
|
+
[vars.borderWidth]: globalRefs.border.xs,
|
17
18
|
|
18
19
|
_hover: {
|
19
20
|
[vars.backgroundColor]: globalRefs.colors.surface.highlight,
|