@ptlm-azulejo/button 2.1.2-alpha.138 → 2.1.2-alpha.144

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/index.js CHANGED
@@ -1,9 +1,13 @@
1
- import { defineComponent as c, computed as b, openBlock as o, createElementBlock as i, normalizeClass as u, renderSlot as a, createCommentVNode as d, createElementVNode as r, normalizeStyle as y, createTextVNode as m } from "vue";
2
- const p = ["disabled", "type", "aria-busy"], g = {
1
+ import { computed as u, createCommentVNode as d, createElementBlock as a, createElementVNode as r, createTextVNode as b, defineComponent as c, normalizeClass as y, normalizeStyle as p, openBlock as i, renderSlot as s } from "vue";
2
+ var m = [
3
+ "disabled",
4
+ "type",
5
+ "aria-busy"
6
+ ], v = {
3
7
  key: 0,
4
8
  "data-testid": "button-icon",
5
9
  class: "btn__icon"
6
- }, $ = {
10
+ }, g = {
7
11
  key: 1,
8
12
  "data-testid": "button-loader",
9
13
  class: "btn__loader",
@@ -12,11 +16,11 @@ const p = ["disabled", "type", "aria-busy"], g = {
12
16
  key: 2,
13
17
  "data-testid": "button-icon",
14
18
  class: "btn__icon"
15
- }, h = {
19
+ }, $ = {
16
20
  key: 4,
17
21
  "data-testid": "button-icon",
18
22
  class: "btn__icon"
19
- }, L = /* @__PURE__ */ c({
23
+ }, h = /* @__PURE__ */ c({
20
24
  __name: "index",
21
25
  props: {
22
26
  appearance: { default: "standard" },
@@ -29,47 +33,35 @@ const p = ["disabled", "type", "aria-busy"], g = {
29
33
  isLoading: { type: Boolean }
30
34
  },
31
35
  setup(t) {
32
- const n = t, l = b(() => ({
33
- [`btn--${n.appearance}`]: n.appearance && n.appearance !== "standard",
34
- [`btn--${n.size}`]: n.size && n.size !== "m",
35
- "btn--ghost": n.ghost,
36
- "btn--outlined": n.outlined,
37
- "btn--icon-only": n.iconPosition === "only"
36
+ const e = t, l = u(() => ({
37
+ [`btn--${e.appearance}`]: e.appearance && e.appearance !== "standard",
38
+ [`btn--${e.size}`]: e.size && e.size !== "m",
39
+ "btn--ghost": e.ghost,
40
+ "btn--outlined": e.outlined,
41
+ "btn--icon-only": e.iconPosition === "only"
38
42
  }));
39
- return (e, s) => (o(), i("button", {
43
+ return (n, o) => (i(), a("button", {
40
44
  "data-testid": "button",
41
- class: u(["btn", l.value]),
45
+ class: y(["btn", l.value]),
42
46
  disabled: t.disabled,
43
47
  type: t.type,
44
48
  "aria-busy": t.isLoading || void 0
45
49
  }, [
46
- e.$slots.icon && t.iconPosition === "left" && !t.isLoading ? (o(), i("span", g, [
47
- a(e.$slots, "icon")
48
- ])) : d("", !0),
49
- t.isLoading ? (o(), i("span", $, [...s[0] || (s[0] = [
50
- r("span", {
51
- "data-testid": "button-spinner",
52
- class: "btn__spinner"
53
- }, null, -1)
54
- ])])) : d("", !0),
55
- e.$slots.icon && t.iconPosition === "only" && !t.isLoading ? (o(), i("span", f, [
56
- a(e.$slots, "icon")
57
- ])) : (o(), i("span", {
50
+ n.$slots.icon && t.iconPosition === "left" && !t.isLoading ? (i(), a("span", v, [s(n.$slots, "icon")])) : d("", !0),
51
+ t.isLoading ? (i(), a("span", g, [...o[0] || (o[0] = [r("span", {
52
+ "data-testid": "button-spinner",
53
+ class: "btn__spinner"
54
+ }, null, -1)])])) : d("", !0),
55
+ n.$slots.icon && t.iconPosition === "only" && !t.isLoading ? (i(), a("span", f, [s(n.$slots, "icon")])) : (i(), a("span", {
58
56
  key: 3,
59
57
  "data-testid": "button-label",
60
58
  class: "btn__label",
61
- style: y({ visibility: t.isLoading ? "hidden" : "visible" })
62
- }, [
63
- a(e.$slots, "default", {}, () => [
64
- s[1] || (s[1] = m("Button Label", -1))
65
- ])
66
- ], 4)),
67
- e.$slots.icon && t.iconPosition === "right" && !t.isLoading ? (o(), i("span", h, [
68
- a(e.$slots, "icon")
69
- ])) : d("", !0)
70
- ], 10, p));
59
+ style: p({ visibility: t.isLoading ? "hidden" : "visible" })
60
+ }, [s(n.$slots, "default", {}, () => [o[1] || (o[1] = b("Button Label", -1))])], 4)),
61
+ n.$slots.icon && t.iconPosition === "right" && !t.isLoading ? (i(), a("span", $, [s(n.$slots, "icon")])) : d("", !0)
62
+ ], 10, m));
71
63
  }
72
- });
64
+ }), L = h;
73
65
  export {
74
66
  L as AzButton
75
67
  };
@@ -1 +1 @@
1
- (function(o,t){typeof exports=="object"&&typeof module!="undefined"?t(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],t):(o=typeof globalThis!="undefined"?globalThis:o||self,t(o.button={},o.Vue))})(this,function(o,t){"use strict";const a=["disabled","type","aria-busy"],l={key:0,"data-testid":"button-icon",class:"btn__icon"},d={key:1,"data-testid":"button-loader",class:"btn__loader","aria-hidden":"true"},c={key:2,"data-testid":"button-icon",class:"btn__icon"},r={key:4,"data-testid":"button-icon",class:"btn__icon"},b=t.defineComponent({__name:"index",props:{appearance:{default:"standard"},size:{default:"m"},disabled:{type:Boolean},ghost:{type:Boolean},outlined:{type:Boolean},iconPosition:{},type:{default:"button"},isLoading:{type:Boolean}},setup(e){const n=e,y=t.computed(()=>({[`btn--${n.appearance}`]:n.appearance&&n.appearance!=="standard",[`btn--${n.size}`]:n.size&&n.size!=="m","btn--ghost":n.ghost,"btn--outlined":n.outlined,"btn--icon-only":n.iconPosition==="only"}));return(i,s)=>(t.openBlock(),t.createElementBlock("button",{"data-testid":"button",class:t.normalizeClass(["btn",y.value]),disabled:e.disabled,type:e.type,"aria-busy":e.isLoading||void 0},[i.$slots.icon&&e.iconPosition==="left"&&!e.isLoading?(t.openBlock(),t.createElementBlock("span",l,[t.renderSlot(i.$slots,"icon")])):t.createCommentVNode("",!0),e.isLoading?(t.openBlock(),t.createElementBlock("span",d,[...s[0]||(s[0]=[t.createElementVNode("span",{"data-testid":"button-spinner",class:"btn__spinner"},null,-1)])])):t.createCommentVNode("",!0),i.$slots.icon&&e.iconPosition==="only"&&!e.isLoading?(t.openBlock(),t.createElementBlock("span",c,[t.renderSlot(i.$slots,"icon")])):(t.openBlock(),t.createElementBlock("span",{key:3,"data-testid":"button-label",class:"btn__label",style:t.normalizeStyle({visibility:e.isLoading?"hidden":"visible"})},[t.renderSlot(i.$slots,"default",{},()=>[s[1]||(s[1]=t.createTextVNode("Button Label",-1))])],4)),i.$slots.icon&&e.iconPosition==="right"&&!e.isLoading?(t.openBlock(),t.createElementBlock("span",r,[t.renderSlot(i.$slots,"icon")])):t.createCommentVNode("",!0)],10,a))}});o.AzButton=b,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
1
+ (function(o,e){typeof exports=="object"&&typeof module!="undefined"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(o=typeof globalThis!="undefined"?globalThis:o||self,e(o.button={},o.Vue))})(this,function(o,e){Object.defineProperty(o,Symbol.toStringTag,{value:"Module"});var s=["disabled","type","aria-busy"],l={key:0,"data-testid":"button-icon",class:"btn__icon"},d={key:1,"data-testid":"button-loader",class:"btn__loader","aria-hidden":"true"},r={key:2,"data-testid":"button-icon",class:"btn__icon"},c={key:4,"data-testid":"button-icon",class:"btn__icon"},b=(0,e.defineComponent)({__name:"index",props:{appearance:{default:"standard"},size:{default:"m"},disabled:{type:Boolean},ghost:{type:Boolean},outlined:{type:Boolean},iconPosition:{},type:{default:"button"},isLoading:{type:Boolean}},setup(t){const n=t,y=(0,e.computed)(()=>({[`btn--${n.appearance}`]:n.appearance&&n.appearance!=="standard",[`btn--${n.size}`]:n.size&&n.size!=="m","btn--ghost":n.ghost,"btn--outlined":n.outlined,"btn--icon-only":n.iconPosition==="only"}));return(i,a)=>((0,e.openBlock)(),(0,e.createElementBlock)("button",{"data-testid":"button",class:(0,e.normalizeClass)(["btn",y.value]),disabled:t.disabled,type:t.type,"aria-busy":t.isLoading||void 0},[i.$slots.icon&&t.iconPosition==="left"&&!t.isLoading?((0,e.openBlock)(),(0,e.createElementBlock)("span",l,[(0,e.renderSlot)(i.$slots,"icon")])):(0,e.createCommentVNode)("",!0),t.isLoading?((0,e.openBlock)(),(0,e.createElementBlock)("span",d,[...a[0]||(a[0]=[(0,e.createElementVNode)("span",{"data-testid":"button-spinner",class:"btn__spinner"},null,-1)])])):(0,e.createCommentVNode)("",!0),i.$slots.icon&&t.iconPosition==="only"&&!t.isLoading?((0,e.openBlock)(),(0,e.createElementBlock)("span",r,[(0,e.renderSlot)(i.$slots,"icon")])):((0,e.openBlock)(),(0,e.createElementBlock)("span",{key:3,"data-testid":"button-label",class:"btn__label",style:(0,e.normalizeStyle)({visibility:t.isLoading?"hidden":"visible"})},[(0,e.renderSlot)(i.$slots,"default",{},()=>[a[1]||(a[1]=(0,e.createTextVNode)("Button Label",-1))])],4)),i.$slots.icon&&t.iconPosition==="right"&&!t.isLoading?((0,e.openBlock)(),(0,e.createElementBlock)("span",c,[(0,e.renderSlot)(i.$slots,"icon")])):(0,e.createCommentVNode)("",!0)],10,s))}}),u=b;o.AzButton=u});
@@ -1,6 +1,5 @@
1
- import { Meta, StoryObj } from '@storybook/vue3';
1
+ import { Meta, StoryObj } from '@storybook/vue3-vite';
2
2
  import { default as Button } from './index.vue';
3
-
4
3
  declare const meta: Meta<typeof Button>;
5
4
  export default meta;
6
5
  type Story = StoryObj<typeof meta>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../src/index.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAyK7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAA"}
1
+ {"version":3,"file":"index.stories.d.ts","sourceRoot":"","sources":["../../src/index.stories.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAC1D,OAAO,MAAM,MAAM,aAAa,CAAA;AAEhC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,MAAM,CAyK7B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,QAAQ,EAAE,KAItB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,KAKnB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAKtB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAKpB,CAAA"}
@@ -1,33 +1,18 @@
1
1
  import { VNode } from 'vue';
2
-
3
- declare function __VLS_template(): Readonly<{
4
- /**
5
- * The content displayed in the button.
6
- */
7
- default: string;
8
- /**
9
- * Use this slot to insert an icon for the Button.
10
- */
11
- icon?: () => VNode[];
12
- }> & {
13
- /**
14
- * The content displayed in the button.
15
- */
16
- default: string;
17
- /**
18
- * Use this slot to insert an icon for the Button.
19
- */
20
- icon?: () => VNode[];
21
- };
22
- declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
2
+ /**
3
+ * Buttons are key interactive elements used to perform actions and can be used as standalone element,
4
+ * or as part of another component. Their appearance depends on the type of action required from the user
5
+ * and the context in which they are used.
6
+ */
7
+ type __VLS_Props = {
23
8
  /**
24
9
  * Defines the visual style of the button.
25
10
  */
26
- appearance?: "standard" | "accent" | "danger" | "inverse";
11
+ appearance?: 'standard' | 'accent' | 'danger' | 'inverse';
27
12
  /**
28
13
  * Determines the size of the button.
29
14
  */
30
- size?: "s" | "m" | "l";
15
+ size?: 's' | 'm' | 'l';
31
16
  /**
32
17
  * If `true`, disables the button, making it non-interactive.
33
18
  */
@@ -43,81 +28,35 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
43
28
  /**
44
29
  * Controls the positioning of an icon in the button.
45
30
  */
46
- iconPosition?: "left" | "right" | "only";
31
+ iconPosition?: 'left' | 'right' | 'only';
47
32
  /**
48
33
  * Specifies the button's HTML `type` attribute.
49
34
  */
50
- type?: "button" | "reset" | "submit";
35
+ type?: 'button' | 'reset' | 'submit';
51
36
  /**
52
37
  * If `true`, a loading state is displayed.
53
38
  */
54
39
  isLoading?: boolean;
55
- }>, {
56
- appearance: string;
57
- size: string;
58
- type: string;
59
- }>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
60
- /**
61
- * Defines the visual style of the button.
62
- */
63
- appearance?: "standard" | "accent" | "danger" | "inverse";
64
- /**
65
- * Determines the size of the button.
66
- */
67
- size?: "s" | "m" | "l";
68
- /**
69
- * If `true`, disables the button, making it non-interactive.
70
- */
71
- disabled?: boolean;
72
- /**
73
- * If `true`, applies a "ghost" style to the button, typically a transparent background with a border.
74
- */
75
- ghost?: boolean;
76
- /**
77
- * If `true`, the button gets an outlined style, usually with just the border and no solid background.
78
- */
79
- outlined?: boolean;
80
- /**
81
- * Controls the positioning of an icon in the button.
82
- */
83
- iconPosition?: "left" | "right" | "only";
40
+ };
41
+ type __VLS_Slots = {
84
42
  /**
85
- * Specifies the button's HTML `type` attribute.
43
+ * The content displayed in the button.
86
44
  */
87
- type?: "button" | "reset" | "submit";
45
+ default: string;
88
46
  /**
89
- * If `true`, a loading state is displayed.
47
+ * Use this slot to insert an icon for the Button.
90
48
  */
91
- isLoading?: boolean;
92
- }>, {
93
- appearance: string;
94
- size: string;
95
- type: string;
96
- }>>> & Readonly<{}>, {
49
+ icon?: () => VNode[];
50
+ };
51
+ declare const __VLS_base: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
97
52
  appearance: "standard" | "accent" | "danger" | "inverse";
98
53
  size: "s" | "m" | "l";
99
54
  type: "button" | "reset" | "submit";
100
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
101
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
55
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
56
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
57
+ declare const _default: typeof __VLS_export;
102
58
  export default _default;
103
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
104
- type __VLS_TypePropsToRuntimeProps<T> = {
105
- [K in keyof T]-?: {} extends Pick<T, K> ? {
106
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
107
- } : {
108
- type: import('vue').PropType<T[K]>;
109
- required: true;
110
- };
111
- };
112
- type __VLS_WithDefaults<P, D> = {
113
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
114
- default: D[K];
115
- }> : P[K];
116
- };
117
- type __VLS_Prettify<T> = {
118
- [K in keyof T]: T[K];
119
- } & {};
120
- type __VLS_WithTemplateSlots<T, S> = T & {
59
+ type __VLS_WithSlots<T, S> = T & {
121
60
  new (): {
122
61
  $slots: S;
123
62
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../src/index.vue"],"names":[],"mappings":"AAEA,OAAO,EAAY,KAAK,KAAK,EAAE,MAAM,KAAK,CAAA;AAgF1C,iBAAS,cAAc;IA5BrB;;OAEG;aACM,MAAM;IACf;;OAEG;WACI,MAAM,KAAK,EAAE;;IAPpB;;OAEG;aACM,MAAM;IACf;;OAEG;WACI,MAAM,KAAK,EAAE;EA6JrB;AA0CD,QAAA,MAAM,eAAe;IAMjB;;OAEG;iBACU,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS;IACzD;;OAEG;WACI,GAAG,GAAG,GAAG,GAAG,GAAG;IACtB;;OAEG;eACQ,OAAO;IAClB;;OAEG;YACK,OAAO;IACf;;OAEG;eACQ,OAAO;IAClB;;OAEG;mBACY,MAAM,GAAG,OAAO,GAAG,MAAM;IACxC;;OAEG;WACI,QAAQ,GAAG,OAAO,GAAG,QAAQ;IACpC;;OAEG;gBACS,OAAO;;;;;;IA/BnB;;OAEG;iBACU,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS;IACzD;;OAEG;WACI,GAAG,GAAG,GAAG,GAAG,GAAG;IACtB;;OAEG;eACQ,OAAO;IAClB;;OAEG;YACK,OAAO;IACf;;OAEG;eACQ,OAAO;IAClB;;OAEG;mBACY,MAAM,GAAG,OAAO,GAAG,MAAM;IACxC;;OAEG;WACI,QAAQ,GAAG,OAAO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;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
package/dist/style.css CHANGED
@@ -1 +1,3 @@
1
- /*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-duration:initial}}}.btn{min-height:calc(var(--spacing,.25rem) * 12);cursor:pointer;justify-content:center;align-items:center;gap:calc(var(--spacing,.25rem) * 2);border-radius:var(--border-radius-l);border-style:var(--tw-border-style);padding-inline:calc(var(--spacing,.25rem) * 6);font-family:var(--font-family,ui-sans-serif, system-ui, sans-serif);font-size:var(--font-size-05);line-height:var(--tw-leading,var(--text-base--line-height, 1.5 ));--tw-leading:var(--leading-tight,1.25);line-height:var(--leading-tight,1.25);--tw-font-weight:var(--font-weight-semi-bold);font-weight:var(--font-weight-semi-bold);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;background-color:var(--color-background-accent-inverse);color:var(--color-text-on-accent-inverse);border-width:1px;border-color:#0000;padding-block:.6875rem;transition-duration:.2s;display:inline-flex;position:relative}@media (hover:hover){.btn:enabled:hover{background-color:var(--color-background-accent-inverse)}@supports (color:color-mix(in lab,red,red)){.btn:enabled:hover{background-color:color-mix(in srgb,var(--color-background-accent-inverse) 85%,#000)}}}.btn:focus-visible{outline:var(--border-m) solid var(--color-text-accent);outline-offset:var(--border-m)}.btn:disabled{background-color:var(--color-background-secondary);color:var(--color-text-tertiary);cursor:not-allowed;border-color:#0000}.btn--s{min-height:calc(var(--spacing,.25rem) * 8);padding-inline:calc(var(--spacing,.25rem) * 4);font-size:var(--font-size-04);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)));padding-block:.3125rem}.btn--l{min-height:calc(var(--spacing,.25rem) * 14);padding-inline:calc(var(--spacing,.25rem) * 6);font-size:var(--font-size-06);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75 / 1.125)));padding-block:.875rem}.btn--accent{background-color:var(--color-brand);color:var(--color-white,#fff);border-color:#0000}@media (hover:hover){.btn--accent:enabled:hover{background-color:var(--color-brand)}@supports (color:color-mix(in lab,red,red)){.btn--accent:enabled:hover{background-color:color-mix(in srgb,var(--color-brand) 85%,#000)}}}.btn--danger{background-color:var(--color-danger-500);color:var(--color-white,#fff);border-color:#0000}@media (hover:hover){.btn--danger:enabled:hover{background-color:var(--color-danger-600)}}.btn--inverse{border-color:var(--color-border-primary);background-color:var(--color-background-secondary);color:var(--color-text-primary)}@media (hover:hover){.btn--inverse:enabled:hover{background-color:var(--color-background-primary)}}.btn--ghost{color:var(--color-text-accent);background-color:#0000;border-color:#0000}@media (hover:hover){.btn--ghost:enabled:hover{background-color:var(--color-background-accent)}}.btn--outlined{border-color:var(--color-border-primary);color:var(--color-text-accent);background-color:#0000}@media (hover:hover){.btn--outlined:enabled:hover{background-color:var(--color-background-accent)}}.btn--icon-only{padding-inline:calc(var(--spacing,.25rem) * 2)}.btn__icon{height:calc(var(--spacing,.25rem) * 4);width:calc(var(--spacing,.25rem) * 4);flex-shrink:0;justify-content:center;align-items:center;display:flex}.btn__loader{inset:calc(var(--spacing,.25rem) * 0);justify-content:center;align-items:center;display:flex;position:absolute}.btn__spinner{height:calc(var(--spacing,.25rem) * 4);width:calc(var(--spacing,.25rem) * 4);border-style:var(--tw-border-style);border-width:2px;border-color:#0000 currentColor currentColor;border-radius:3.40282e38px;animation:.6s linear infinite az-btn-spin;display:block}.btn__label{display:inline-block}@keyframes az-btn-spin{to{transform:rotate(360deg)}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}
1
+ /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after{--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-duration:initial}::-ms-backdrop{--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-duration:initial}::backdrop{--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-duration:initial}}}.btn{min-height:calc(var(--spacing,.25rem) * 12);cursor:pointer;justify-content:center;align-items:center;gap:calc(var(--spacing,.25rem) * 2);border-radius:var(--border-radius-l);border-style:var(--tw-border-style);padding-inline:calc(var(--spacing,.25rem) * 6);font-family:var(--font-family,ui-sans-serif, system-ui, sans-serif);font-size:var(--font-size-05);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)));--tw-leading:var(--leading-tight,1.25);line-height:var(--leading-tight,1.25);--tw-font-weight:var(--font-weight-semi-bold);font-weight:var(--font-weight-semi-bold);transition-property:color,background-color,border-color,outline-color,-webkit-text-decoration-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));--tw-duration:.2s;background-color:var(--color-background-accent-inverse);color:var(--color-text-on-accent-inverse);border-width:1px;border-color:transparent;padding-top:.6875rem;padding-bottom:.6875rem;transition-duration:.2s;display:inline-flex;position:relative}@media (hover:hover){.btn:enabled:hover{background-color:var(--color-background-accent-inverse)}@supports (color:color-mix(in lab, red, red)){.btn:enabled:hover{background-color:color-mix(in srgb, var(--color-background-accent-inverse) 85%, #000)}}}.btn:focus-visible{outline:var(--border-m) solid var(--color-text-accent);outline-offset:var(--border-m)}.btn:disabled{background-color:var(--color-background-secondary);color:var(--color-text-tertiary);cursor:not-allowed;border-color:transparent}.btn--s{min-height:calc(var(--spacing,.25rem) * 8);padding-inline:calc(var(--spacing,.25rem) * 4);font-size:var(--font-size-04);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)));padding-top:.3125rem;padding-bottom:.3125rem}.btn--l{min-height:calc(var(--spacing,.25rem) * 14);padding-inline:calc(var(--spacing,.25rem) * 6);font-size:var(--font-size-06);line-height:var(--tw-leading,var(--text-lg--line-height,calc(1.75 / 1.125)));padding-top:.875rem;padding-bottom:.875rem}.btn--accent{background-color:var(--color-brand);color:var(--color-white,#fff);border-color:transparent}@media (hover:hover){.btn--accent:enabled:hover{background-color:var(--color-brand)}@supports (color:color-mix(in lab, red, red)){.btn--accent:enabled:hover{background-color:color-mix(in srgb, var(--color-brand) 85%, #000)}}}.btn--danger{background-color:var(--color-danger-500);color:var(--color-white,#fff);border-color:transparent}@media (hover:hover){.btn--danger:enabled:hover{background-color:var(--color-danger-600)}}.btn--inverse{border-color:var(--color-border-primary);background-color:var(--color-background-secondary);color:var(--color-text-primary)}@media (hover:hover){.btn--inverse:enabled:hover{background-color:var(--color-background-primary)}}.btn--ghost{color:var(--color-text-accent);background-color:transparent;border-color:transparent}@media (hover:hover){.btn--ghost:enabled:hover{background-color:var(--color-background-accent)}}.btn--outlined{border-color:var(--color-border-primary);color:var(--color-text-accent);background-color:transparent}@media (hover:hover){.btn--outlined:enabled:hover{background-color:var(--color-background-accent)}}.btn--icon-only{padding-inline:calc(var(--spacing,.25rem) * 2)}.btn__icon{height:calc(var(--spacing,.25rem) * 4);width:calc(var(--spacing,.25rem) * 4);flex-shrink:0;justify-content:center;align-items:center;display:flex}.btn__loader{justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0;left:0;right:0}.btn__spinner{height:calc(var(--spacing,.25rem) * 4);width:calc(var(--spacing,.25rem) * 4);border-style:var(--tw-border-style);border-width:2px;border-color:transparent currentColor currentColor;border-radius:2147483647px;animation:.6s linear infinite az-btn-spin;display:block}.btn__label{display:inline-block}@keyframes az-btn-spin{to{transform:rotate(360deg)}}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}
3
+ /*$vite$:1*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ptlm-azulejo/button",
3
- "version": "2.1.2-alpha.138",
3
+ "version": "2.1.2-alpha.144",
4
4
  "type": "module",
5
5
  "main": "./dist/index.umd.cjs",
6
6
  "module": "./dist/index.js",
@@ -30,13 +30,10 @@
30
30
  "@ptlm-azulejo/fonts-adeo": "*",
31
31
  "@ptlm-azulejo/fonts-leroy-merlin": "*",
32
32
  "@ptlm-azulejo/themes": "*",
33
- "@storybook/addon-essentials": "^7.0.0",
34
- "@storybook/addon-interactions": "^7.0.0",
35
- "@storybook/vue3": "^7.0.0",
36
- "@storybook/vue3-vite": "^7.0.0",
37
- "@tailwindcss/vite": "^4.0.0",
38
- "storybook": "^7.0.0",
39
- "tailwindcss": "^4.0.0",
33
+ "@storybook/vue3-vite": "^10.5.8",
34
+ "@tailwindcss/vite": "^4.3.3",
35
+ "storybook": "^10.5.8",
36
+ "tailwindcss": "^4.3.3",
40
37
  "vue": "^3.3.4"
41
38
  },
42
39
  "peerDependencies": {