@xplor-education/react-wrappers 3.2.5 → 3.2.6

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.
@@ -9682,6 +9682,16 @@ ol.mdc-list.sc-xplor-button li.mdc-list-item.sc-xplor-button, ul.mdc-list.sc-xpl
9682
9682
  border-color: var(--color-secondary-50, #f3e5f5);
9683
9683
  color: white;
9684
9684
  }
9685
+ .x-button.tertiary.sc-xplor-button {
9686
+ background-color: var(--color-tertiary, rgb(219, 59, 3));
9687
+ border-color: var(--color-tertiary, rgb(219, 59, 3));
9688
+ color: white;
9689
+ }
9690
+ .x-button.tertiary.sc-xplor-button:hover {
9691
+ background-color: rgba(219, 59, 3, 0.85);
9692
+ border-color: rgba(219, 59, 3, 0.85);
9693
+ color: white;
9694
+ }
9685
9695
  .x-button.ghost.sc-xplor-button {
9686
9696
  background-color: #fff;
9687
9697
  border-color: var(--color-secondary);
@@ -9770,7 +9780,7 @@ ol.mdc-list.sc-xplor-button li.mdc-list-item.sc-xplor-button, ul.mdc-list.sc-xpl
9770
9780
  .x-button.disabled.x-button--icon-only.sc-xplor-button, .x-button.disabled.x-button--with-icon.sc-xplor-button {
9771
9781
  cursor: not-allowed;
9772
9782
  opacity: 0.6;
9773
- }`,Vl=M(class extends ${constructor(){super(),this.__registerHost(),this.type="secondary",this.mode="pg",this.ariaLabel=null,this.disabled=!1,this.fullWidth=!1,this.fullWidthAttr=!1,this.iconPosition=null,this.icon="+"}renderIcon(){return this.icon==="svg"&&this.iconSvg?p("span",{class:"button-icon button-icon--svg ",innerHTML:this.iconSvg}):p("span",{class:"button-icon"},this.icon)}render(){const n=this.fullWidth||this.fullWidthAttr,e=!this.text&&this.iconPosition!==null,r=this.iconPosition!==null;return p(E,{key:"7e1c935559697792d2309c397baa4c9614afc136",class:{"x-button--full-width":n}},p("slot",{key:"c4b12ac8a43aa8640b5f1b46d2eec44ae0b52c3a"},p("button",{key:"4bf6b7c8ab48618a343481f3c603f3d48fafbe6a",role:"button",class:Object.assign({"x-button":!0,[this.type]:!0,"x-button--full-width":n,"x-button--icon-only":e,"x-button--with-icon":r&&!e,"x-button--icon-start":this.iconPosition==="start"&&!e,"x-button--icon-end":this.iconPosition==="end"&&!e},this.styles?{[this.styles]:!0}:{}),onClick:()=>this.clickAction&&this.clickAction(),"aria-label":this.ariaLabel,"aria-disabled":this.disabled?"true":null,disabled:this.disabled},r&&this.iconPosition==="start"&&this.renderIcon(),this.text&&p("span",{key:"09bbac7ae367a56a5a23ff5d010ee453ddc09499",class:"button-text"},this.text),r&&this.iconPosition==="end"&&this.renderIcon())))}static get style(){return Eu}},[6,"xplor-button",{text:[1],type:[1],mode:[1],size:[1],styles:[1],clickAction:[16,"click-action"],ariaLabel:[1,"aria-label"],disabled:[4],fullWidth:[516,"full-width"],fullWidthAttr:[4,"fullwidth"],iconPosition:[1,"icon-position"],icon:[1],iconSvg:[1,"icon-svg"]}]);function Lt(){if(typeof customElements>"u")return;["xplor-button"].forEach(n=>{switch(n){case"xplor-button":customElements.get(n)||customElements.define(n,Vl);break}})}const Iu=`@tailwind base;
9783
+ }`,Vl=M(class extends ${constructor(){super(),this.__registerHost(),this.type="secondary",this.mode="pg",this.ariaLabel=null,this.disabled=!1,this.fullWidth=!1,this.fullWidthAttr=!1,this.iconPosition=null,this.icon="+"}renderIcon(){return this.icon==="svg"&&this.iconSvg?p("span",{class:"button-icon button-icon--svg ",innerHTML:this.iconSvg}):p("span",{class:"button-icon"},this.icon)}render(){const n=this.fullWidth||this.fullWidthAttr,e=!this.text&&this.iconPosition!==null,r=this.iconPosition!==null;return p(E,{key:"d338a1b17a25fc843820a5dde83a38663a6ebb2e",class:{"x-button--full-width":n}},p("slot",{key:"5a6e640c188b9b9e1165add358cb71b97c319dd0"},p("button",{key:"c699bebecfac65bb0705f6397891afe22105b12c",role:"button",class:Object.assign({"x-button":!0,[this.type]:!0,"x-button--full-width":n,"x-button--icon-only":e,"x-button--with-icon":r&&!e,"x-button--icon-start":this.iconPosition==="start"&&!e,"x-button--icon-end":this.iconPosition==="end"&&!e},this.styles?{[this.styles]:!0}:{}),onClick:()=>this.clickAction&&this.clickAction(),"aria-label":this.ariaLabel,"aria-disabled":this.disabled?"true":null,disabled:this.disabled},r&&this.iconPosition==="start"&&this.renderIcon(),this.text&&p("span",{key:"d830e09d660f0260e83a4eca4cf41ab49aa4a490",class:"button-text"},this.text),r&&this.iconPosition==="end"&&this.renderIcon())))}static get style(){return Eu}},[6,"xplor-button",{text:[1],type:[1],mode:[1],size:[1],styles:[1],clickAction:[16,"click-action"],ariaLabel:[1,"aria-label"],disabled:[4],fullWidth:[516,"full-width"],fullWidthAttr:[4,"fullwidth"],iconPosition:[1,"icon-position"],icon:[1],iconSvg:[1,"icon-svg"]}]);function Lt(){if(typeof customElements>"u")return;["xplor-button"].forEach(n=>{switch(n){case"xplor-button":customElements.get(n)||customElements.define(n,Vl);break}})}const Iu=`@tailwind base;
9774
9784
  @tailwind components;
9775
9785
  @tailwind utilities;
9776
9786
  @layer base {
@@ -12207,6 +12207,16 @@ ol.mdc-list.sc-xplor-button li.mdc-list-item.sc-xplor-button, ul.mdc-list.sc-xpl
12207
12207
  border-color: var(--color-secondary-50, #f3e5f5);
12208
12208
  color: white;
12209
12209
  }
12210
+ .x-button.tertiary.sc-xplor-button {
12211
+ background-color: var(--color-tertiary, rgb(219, 59, 3));
12212
+ border-color: var(--color-tertiary, rgb(219, 59, 3));
12213
+ color: white;
12214
+ }
12215
+ .x-button.tertiary.sc-xplor-button:hover {
12216
+ background-color: rgba(219, 59, 3, 0.85);
12217
+ border-color: rgba(219, 59, 3, 0.85);
12218
+ color: white;
12219
+ }
12210
12220
  .x-button.ghost.sc-xplor-button {
12211
12221
  background-color: #fff;
12212
12222
  border-color: var(--color-secondary);
@@ -12304,7 +12314,7 @@ ol.mdc-list.sc-xplor-button li.mdc-list-item.sc-xplor-button, ul.mdc-list.sc-xpl
12304
12314
  }
12305
12315
  render() {
12306
12316
  const n = this.fullWidth || this.fullWidthAttr, e = !this.text && this.iconPosition !== null, r = this.iconPosition !== null;
12307
- return p(E, { key: "7e1c935559697792d2309c397baa4c9614afc136", class: { "x-button--full-width": n } }, p("slot", { key: "c4b12ac8a43aa8640b5f1b46d2eec44ae0b52c3a" }, p("button", { key: "4bf6b7c8ab48618a343481f3c603f3d48fafbe6a", role: "button", class: Object.assign({ "x-button": !0, [this.type]: !0, "x-button--full-width": n, "x-button--icon-only": e, "x-button--with-icon": r && !e, "x-button--icon-start": this.iconPosition === "start" && !e, "x-button--icon-end": this.iconPosition === "end" && !e }, this.styles ? { [this.styles]: !0 } : {}), onClick: () => this.clickAction && this.clickAction(), "aria-label": this.ariaLabel, "aria-disabled": this.disabled ? "true" : null, disabled: this.disabled }, r && this.iconPosition === "start" && this.renderIcon(), this.text && p("span", { key: "09bbac7ae367a56a5a23ff5d010ee453ddc09499", class: "button-text" }, this.text), r && this.iconPosition === "end" && this.renderIcon())));
12317
+ return p(E, { key: "d338a1b17a25fc843820a5dde83a38663a6ebb2e", class: { "x-button--full-width": n } }, p("slot", { key: "5a6e640c188b9b9e1165add358cb71b97c319dd0" }, p("button", { key: "c699bebecfac65bb0705f6397891afe22105b12c", role: "button", class: Object.assign({ "x-button": !0, [this.type]: !0, "x-button--full-width": n, "x-button--icon-only": e, "x-button--with-icon": r && !e, "x-button--icon-start": this.iconPosition === "start" && !e, "x-button--icon-end": this.iconPosition === "end" && !e }, this.styles ? { [this.styles]: !0 } : {}), onClick: () => this.clickAction && this.clickAction(), "aria-label": this.ariaLabel, "aria-disabled": this.disabled ? "true" : null, disabled: this.disabled }, r && this.iconPosition === "start" && this.renderIcon(), this.text && p("span", { key: "d830e09d660f0260e83a4eca4cf41ab49aa4a490", class: "button-text" }, this.text), r && this.iconPosition === "end" && this.renderIcon())));
12308
12318
  }
12309
12319
  static get style() {
12310
12320
  return Eu;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xplor-education/react-wrappers",
3
- "version": "3.2.5",
3
+ "version": "3.2.6",
4
4
  "private": false,
5
5
  "description": "React component wrappers for the Xplor design system",
6
6
  "license": "MIT",
@@ -29,9 +29,14 @@
29
29
  "publishConfig": {
30
30
  "access": "public"
31
31
  },
32
+ "scripts": {
33
+ "clean": "rm -rf dist",
34
+ "build": "vite build",
35
+ "prepublishOnly": "pnpm run build"
36
+ },
32
37
  "dependencies": {
33
- "@stencil/react-output-target": "0.8.0",
34
- "@xplor-education/core-stencil-components": "3.2.3"
38
+ "@stencil/react-output-target": "workspace:*",
39
+ "@xplor-education/core-stencil-components": "workspace:*"
35
40
  },
36
41
  "peerDependencies": {
37
42
  "react": "^18.0.0 || ^19.0.0"
@@ -44,9 +49,5 @@
44
49
  "typescript": "^5.6.3",
45
50
  "vite": "^5.4.8",
46
51
  "vite-plugin-dts": "^4.5.4"
47
- },
48
- "scripts": {
49
- "clean": "rm -rf dist",
50
- "build": "vite build"
51
52
  }
52
- }
53
+ }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Drifty Co.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.