@ui0/button 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,9 @@
1
+ @value round: .init();
2
+ @value button: bu_c3e2;
3
+ @value rounded: ro_0102;
4
+ @value disabled: di_17eb;
5
+ @value compact: co_b6b5;
6
+ @value content: co_ed70;
7
+ @value layout-column-reverse: la_2152;
8
+ @value layout-column: la_0824;
9
+ @value layout-row-reverse: la_1433;
@@ -0,0 +1,3 @@
1
+ import { Ui0CoreInstallablePlugin } from '@ui0/types';
2
+ export declare function createUi0Button(): Ui0CoreInstallablePlugin;
3
+ //# sourceMappingURL=button.plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.plugin.d.ts","sourceRoot":"","sources":["../src/button.plugin.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,wBAAwB,EAEzB,MAAM,YAAY,CAAA;AAInB,wBAAgB,eAAe,IAAI,wBAAwB,CAM1D"}
@@ -0,0 +1,17 @@
1
+ @value button: bu_c3e2;
2
+ @value content: co_ed70;
3
+ @value inlineVnt: in_f063;
4
+ @value elevatedVnt: el_611c;
5
+ @value outlineVnt: ou_2a48;
6
+ @value basicVnt: ba_d73d;
7
+ @value sizeXXXL: undefined;
8
+ @value ghostVnt: gh_60ef;
9
+ @value flatVnt: fl_3a23;
10
+ @value colored: co_ca8c;
11
+ @value filled: fi_8a2f;
12
+ @value filled2: fi_36f6;
13
+ @value canvas: ca_a457;
14
+ @value icon: ic_c2d4;
15
+ @value Icon: Ic_a35a;
16
+ @value iconSvg: ic_2201;
17
+ @value color2: co_bd70;
@@ -0,0 +1,3 @@
1
+ declare const _default: Readonly<import('@ui0/core').ComponentConfig<"button">>;
2
+ export default _default;
3
+ //# sourceMappingURL=button.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.config.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.config.ts"],"names":[],"mappings":";AAEA,wBAKE"}
@@ -0,0 +1,6 @@
1
+ import { InjectionKey } from 'vue';
2
+ export interface ButtonActions {
3
+ ping: () => void;
4
+ }
5
+ export declare const ButtonKey: InjectionKey<ButtonActions>;
6
+ //# sourceMappingURL=button.keys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.keys.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.keys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAA;AAEvC,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,IAAI,CAAA;CACjB;AAED,eAAO,MAAM,SAAS,EAA0B,YAAY,CAAC,aAAa,CAAC,CAAA"}
@@ -0,0 +1,56 @@
1
+ import { ColorProps, FillProps, GradientProps, DisabledProps, Size, RoundProps, SizeProps, DensityProps, SizeDensity } from '@ui0/theme';
2
+ import { CSS, Ui0ThemeColorRef, VariantProps } from '@ui0/types';
3
+ export interface ButtonProps extends ColorProps, FillProps, GradientProps, RoundProps, SizeProps, DensityProps, DisabledProps, VariantProps {
4
+ /**
5
+ * Layout of the button children
6
+ * @default row
7
+ */
8
+ layout?: CSS.Property.FlexDirection;
9
+ }
10
+ export interface ButtonDefaults extends ButtonProps {
11
+ color: Ui0ThemeColorRef;
12
+ fill: Ui0ThemeColorRef;
13
+ size: Size;
14
+ density: SizeDensity;
15
+ layout: CSS.Property.FlexDirection;
16
+ }
17
+ export interface ButtonActions {
18
+ }
19
+ export interface ButtonEvents {
20
+ }
21
+ export interface ButtonOptions {
22
+ }
23
+ type ButtonSlotFn = (actions: ButtonActions) => void;
24
+ export interface ButtonSlots {
25
+ /**
26
+ * Default slot for any inline content
27
+ */
28
+ default?: ButtonSlotFn;
29
+ /**
30
+ * content slot
31
+ */
32
+ content?: ButtonSlotFn;
33
+ /**
34
+ * slot before content
35
+ */
36
+ before?: ButtonSlotFn;
37
+ /**
38
+ * slot after content
39
+ */
40
+ after?: ButtonSlotFn;
41
+ }
42
+ declare global {
43
+ interface Ui0ComponentsProps {
44
+ button: ButtonProps;
45
+ }
46
+ interface Ui0ComponentsDefaults {
47
+ button: ButtonDefaults;
48
+ }
49
+ interface Ui0Components {
50
+ button: {
51
+ props: ButtonProps;
52
+ };
53
+ }
54
+ }
55
+ export {};
56
+ //# sourceMappingURL=button.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"button.types.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EACV,SAAS,EACT,aAAa,EACb,aAAa,EACb,IAAI,EACJ,UAAU,EACV,SAAS,EACT,YAAY,EACZ,WAAW,EACZ,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,GAAG,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AAErE,MAAM,WAAW,WACf,SAAQ,UAAU,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,YAAY;IAC9G;;;OAGG;IACH,MAAM,CAAC,EAAE,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAA;CACpC;AACD,MAAM,WAAW,cAAe,SAAQ,WAAW;IACjD,KAAK,EAAE,gBAAgB,CAAA;IACvB,IAAI,EAAE,gBAAgB,CAAA;IACtB,IAAI,EAAE,IAAI,CAAA;IACV,OAAO,EAAE,WAAW,CAAA;IACpB,MAAM,EAAE,GAAG,CAAC,QAAQ,CAAC,aAAa,CAAA;CACnC;AAED,MAAM,WAAW,aAAa;CAAG;AAEjC,MAAM,WAAW,YAAY;CAG5B;AAED,MAAM,WAAW,aAAa;CAAG;AACjC,KAAK,YAAY,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAA;AAEpD,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,YAAY,CAAA;IACrB;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAA;CACrB;AAID,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,kBAAkB;QAC1B,MAAM,EAAE,WAAW,CAAA;KACpB;IACD,UAAU,qBAAqB;QAC7B,MAAM,EAAE,cAAc,CAAA;KACvB;IACD,UAAU,aAAa;QACrB,MAAM,EAAE;YACN,KAAK,EAAE,WAAW,CAAA;SACnB,CAAA;KACF;CACF"}
@@ -0,0 +1,19 @@
1
+ import { ComponentOptionsMixin, DefineComponent, PublicProps, SlotsType } from 'vue';
2
+ import { ButtonActions, ButtonProps, ButtonSlots } from './button.types';
3
+ declare const Button: DefineComponent<
4
+ ButtonProps,
5
+ {},
6
+ {},
7
+ {},
8
+ {},
9
+ ComponentOptionsMixin,
10
+ ComponentOptionsMixin,
11
+ {},
12
+ string,
13
+ PublicProps,
14
+ Readonly<ButtonProps> & Readonly<{}>,
15
+ {},
16
+ SlotsType<ButtonSlots>
17
+ >
18
+ export default Button
19
+ export type { ButtonActions }
@@ -0,0 +1,4 @@
1
+ export { default as Button } from './button.vue';
2
+ export { ButtonKey } from './button.keys';
3
+ export type { ButtonProps, ButtonSlots, ButtonActions, ButtonEvents, ButtonDefaults } from './button.types';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,YAAY,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,YAAY,EACZ,cAAc,EACf,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { Button } from './components/button';
2
+ export { Button as default } from './components/button';
3
+ export { createUi0Button } from './button.plugin';
4
+ export type { ButtonProps } from './components/button/button.types';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,OAAO,aAAa,CAAA;AAEpB,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAG5C,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACjD,YAAY,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,98 @@
1
+ import "./style.css";
2
+ import { computed as e, createBlock as t, createCommentVNode as n, createElementBlock as r, createVNode as i, defineComponent as a, guardReactiveProps as o, h as s, normalizeClass as c, normalizeProps as l, normalizeStyle as u, openBlock as d, renderSlot as f, resolveComponent as p, unref as m, useCssModule as h, useSlots as g, useTemplateRef as _ } from "vue";
3
+ import { useComponentDefaults as v } from "@ui0/core";
4
+ import { useThemeContext as y } from "@ui0/theme";
5
+ var b = {
6
+ button: "bu_c3e2",
7
+ content: "co_ed70",
8
+ inlineVnt: "in_f063",
9
+ elevatedVnt: "el_611c",
10
+ outlineVnt: "ou_2a48",
11
+ basicVnt: "ba_d73d",
12
+ sizeXXXL: "undefined",
13
+ ghostVnt: "gh_60ef",
14
+ flatVnt: "fl_3a23",
15
+ colored: "co_ca8c",
16
+ filled: "fi_8a2f",
17
+ filled2: "fi_36f6",
18
+ canvas: "ca_a457",
19
+ icon: "ic_c2d4",
20
+ Icon: "Ic_a35a",
21
+ iconSvg: "ic_2201",
22
+ color2: "co_bd70"
23
+ }, x = { test: "123" }, S = /*#__PURE__*/ ((e, t) => {
24
+ let n = e.__vccOpts || e;
25
+ for (let [e, r] of t) n[e] = r;
26
+ return n;
27
+ })(/* @__PURE__ */ a({
28
+ __name: "button",
29
+ props: {
30
+ layout: {},
31
+ color: {},
32
+ fill: {},
33
+ gradient: {},
34
+ round: {},
35
+ roundTarget: {},
36
+ size: {},
37
+ density: {},
38
+ disabled: { type: Boolean },
39
+ variant: {}
40
+ },
41
+ setup(a, { expose: S }) {
42
+ console.log("a", x);
43
+ let C = a, w = v("button", C, { title: "" }), T = h(), E = g(), [, D] = y(C, T), O = e(() => {
44
+ let { variant: e } = C, t = D?.classes() ?? [];
45
+ console.log("$variants", b), e && b[e + "Vnt"] && t.push(b[e + "Vnt"]);
46
+ let n = w.layout ?? "row";
47
+ return n && t.push(T["layout-" + n]), t;
48
+ }), k = e(() => D?.styles() ?? {}), A = _("host"), j = { focus(e) {
49
+ return m(A)?.focus(e);
50
+ } };
51
+ S(j);
52
+ function M() {
53
+ let e = [], { icon: t, density: n, label: r } = C;
54
+ if (t) {
55
+ if (n === "tool") return e;
56
+ E.default ? e.push(E.default(j)) : r && e.push(r);
57
+ } else E.default ? e.push(E.default(j)) : r && e.push(r);
58
+ return s("div", { class: T.content }, e);
59
+ }
60
+ return (e, a) => {
61
+ let s = p("BtnIcon");
62
+ return d(), r("div", {
63
+ "data-0": "button",
64
+ class: c([...O.value, e.$style.button]),
65
+ style: u(k.value),
66
+ ref_key: "host",
67
+ ref: A
68
+ }, [f(e.$slots, "content", l(o(j)), () => [
69
+ f(e.$slots, "before", l(o(j)), () => [C.icon && C.sizing !== "tool" && C.options.iconSlot === "before" ? (d(), t(s, {
70
+ key: 0,
71
+ value: C.icon
72
+ }, null, 8, ["value"])) : n("", !0)]),
73
+ i(M),
74
+ f(e.$slots, "after", l(o(j)), () => [C.icon && C.sizing !== "tool" && C.options.iconSlot === "after" ? (d(), t(s, {
75
+ key: 0,
76
+ value: C.icon
77
+ }, null, 8, ["value"])) : n("", !0)])
78
+ ])], 6);
79
+ };
80
+ }
81
+ }), [["__cssModules", { $style: {
82
+ round: ".init()",
83
+ button: "bu_c3e2",
84
+ rounded: "ro_0102",
85
+ disabled: "di_17eb",
86
+ compact: "co_b6b5",
87
+ content: "co_ed70",
88
+ "layout-column-reverse": "la_2152",
89
+ "layout-column": "la_0824",
90
+ "layout-row-reverse": "la_1433"
91
+ } }]]);
92
+ // src/button.plugin.ts
93
+ function C() {
94
+ return { install(e) {
95
+ e.vue.component("Button", S);
96
+ } };
97
+ }
98
+ export { S as Button, S as default, C as createUi0Button };
package/dist/style.css ADDED
@@ -0,0 +1,2 @@
1
+ @layer ui0.bu_c3e2{.bu_c3e2.ba_d73d,.bu_c3e2.in_f063,.bu_c3e2.ou_2a48,.bu_c3e2.el_611c,.bu_c3e2.gh_60ef,.bu_c3e2.fl_3a23{--0-button-inside-rect:inset 0 0 0 var(--button-shadow-width) var(--0-button-inside-rect-color);padding-inline:var(--0-button-padding);transition-duration:var(--0-d-fast);cursor:pointer;--ripple-gap:0px;background-color:#0000;background-image:none;border:0;transition-property:background-color,box-shadow,border,background,color,filter}.bu_c3e2.ba_d73d.co_ca8c.fi_8a2f.fi_36f6,.bu_c3e2.in_f063.co_ca8c.fi_8a2f.fi_36f6,.bu_c3e2.ou_2a48.co_ca8c.fi_8a2f.fi_36f6,.bu_c3e2.el_611c.co_ca8c.fi_8a2f.fi_36f6,.bu_c3e2.gh_60ef.co_ca8c.fi_8a2f.fi_36f6,.bu_c3e2.fl_3a23.co_ca8c.fi_8a2f.fi_36f6{--ripple-gap:1px;background:linear-gradient(var(--r-gradient-angle), rgba(var(--r-c-v), 1) 0%, rgba(var(--r-c-v), 1) 30%, rgba(var(--r-c2-v), 1) 65%, rgba(var(--r-c2-v), 1) 100%)}.bu_c3e2.ba_d73d .co_ed70,.bu_c3e2.in_f063 .co_ed70,.bu_c3e2.ou_2a48 .co_ed70,.bu_c3e2.el_611c .co_ed70,.bu_c3e2.gh_60ef .co_ed70,.bu_c3e2.fl_3a23 .co_ed70{align-items:inherit;border-radius:inherit;display:inherit;justify-content:inherit;height:100%;position:inherit;width:100%;font-size:var(--0-button-content-font-size);transition-duration:var(--0-d-fast);gap:.2em;line-height:1;transition-property:color}.bu_c3e2.ba_d73d .ca_a457,.bu_c3e2.in_f063 .ca_a457,.bu_c3e2.ou_2a48 .ca_a457,.bu_c3e2.el_611c .ca_a457,.bu_c3e2.gh_60ef .ca_a457,.bu_c3e2.fl_3a23 .ca_a457{transition-property:fill,color,stroke;transition-timing-function:ease-out}.bu_c3e2.ba_d73d:active .co_ed70,.bu_c3e2.ba_d73d:active .ic_c2d4,.bu_c3e2.in_f063:active .co_ed70,.bu_c3e2.in_f063:active .ic_c2d4,.bu_c3e2.ou_2a48:active .co_ed70,.bu_c3e2.ou_2a48:active .ic_c2d4,.bu_c3e2.el_611c:active .co_ed70,.bu_c3e2.el_611c:active .ic_c2d4,.bu_c3e2.gh_60ef:active .co_ed70,.bu_c3e2.gh_60ef:active .ic_c2d4,.bu_c3e2.fl_3a23:active .co_ed70,.bu_c3e2.fl_3a23:active .ic_c2d4{transition:transform 50ms ease-out;transform:translateY(1px)}.bu_c3e2.ba_d73d.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.in_f063.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.ou_2a48.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.el_611c.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.gh_60ef.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.fl_3a23.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.ba_d73d.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .Ic_a35a,.bu_c3e2.in_f063.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .Ic_a35a,.bu_c3e2.ou_2a48.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .Ic_a35a,.bu_c3e2.el_611c.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .Ic_a35a,.bu_c3e2.gh_60ef.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .Ic_a35a,.bu_c3e2.fl_3a23.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .Ic_a35a{color:rgba(var(--0-f-v), 1)}.bu_c3e2.ba_d73d.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .ic_2201,.bu_c3e2.in_f063.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .ic_2201,.bu_c3e2.ou_2a48.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .ic_2201,.bu_c3e2.el_611c.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .ic_2201,.bu_c3e2.gh_60ef.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .ic_2201,.bu_c3e2.fl_3a23.fx-ripple.fi_8a2f.fx-ripple.fx-ripple-in .ic_2201{--0-icon-fill-color:rgba(var(--0-f-v), 1);--0-icon-stroke-color:rgba(var(--0-f-v), 1)}.bu_c3e2.ba_d73d.fx-ripple.fi_8a2f.co_bd70.fx-ripple .fx-ripple-c .fx-ripple-item,.bu_c3e2.in_f063.fx-ripple.fi_8a2f.co_bd70.fx-ripple .fx-ripple-c .fx-ripple-item,.bu_c3e2.ou_2a48.fx-ripple.fi_8a2f.co_bd70.fx-ripple .fx-ripple-c .fx-ripple-item,.bu_c3e2.el_611c.fx-ripple.fi_8a2f.co_bd70.fx-ripple .fx-ripple-c .fx-ripple-item,.bu_c3e2.gh_60ef.fx-ripple.fi_8a2f.co_bd70.fx-ripple .fx-ripple-c .fx-ripple-item,.bu_c3e2.fl_3a23.fx-ripple.fi_8a2f.co_bd70.fx-ripple .fx-ripple-c .fx-ripple-item{filter:brightness(.5)}.bu_c3e2.ba_d73d.fx-ripple.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.in_f063.fx-ripple.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.ou_2a48.fx-ripple.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.el_611c.fx-ripple.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.gh_60ef.fx-ripple.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.fl_3a23.fx-ripple.fx-ripple.fx-ripple-in .co_ed70,.bu_c3e2.ba_d73d.fx-ripple.fx-ripple.fx-ripple-in .ic_c2d4,.bu_c3e2.in_f063.fx-ripple.fx-ripple.fx-ripple-in .ic_c2d4,.bu_c3e2.ou_2a48.fx-ripple.fx-ripple.fx-ripple-in .ic_c2d4,.bu_c3e2.el_611c.fx-ripple.fx-ripple.fx-ripple-in .ic_c2d4,.bu_c3e2.gh_60ef.fx-ripple.fx-ripple.fx-ripple-in .ic_c2d4,.bu_c3e2.fl_3a23.fx-ripple.fx-ripple.fx-ripple-in .ic_c2d4{color:rgba(var(--0-c-background-v), 1)}.bu_c3e2.ba_d73d.fx-ripple.fx-ripple.fx-ripple-in .ic_2201,.bu_c3e2.in_f063.fx-ripple.fx-ripple.fx-ripple-in .ic_2201,.bu_c3e2.ou_2a48.fx-ripple.fx-ripple.fx-ripple-in .ic_2201,.bu_c3e2.el_611c.fx-ripple.fx-ripple.fx-ripple-in .ic_2201,.bu_c3e2.gh_60ef.fx-ripple.fx-ripple.fx-ripple-in .ic_2201,.bu_c3e2.fl_3a23.fx-ripple.fx-ripple.fx-ripple-in .ic_2201{--0-icon-fill-color:rgba(var(--0-c-background-v), 1);--0-icon-stroke-color:rgba(var(--0-c-background-v), 1)}.bu_c3e2.ba_d73d.fx-ripple:active,.bu_c3e2.in_f063.fx-ripple:active,.bu_c3e2.ou_2a48.fx-ripple:active,.bu_c3e2.el_611c.fx-ripple:active,.bu_c3e2.gh_60ef.fx-ripple:active,.bu_c3e2.fl_3a23.fx-ripple:active{background-color:#0000}.bu_c3e2.ba_d73d.fx-ripple:active .co_ed70,.bu_c3e2.in_f063.fx-ripple:active .co_ed70,.bu_c3e2.ou_2a48.fx-ripple:active .co_ed70,.bu_c3e2.el_611c.fx-ripple:active .co_ed70,.bu_c3e2.gh_60ef.fx-ripple:active .co_ed70,.bu_c3e2.fl_3a23.fx-ripple:active .co_ed70{filter:none;transform:revert}.bu_c3e2.ba_d73d.fx-ripple:hover,.bu_c3e2.in_f063.fx-ripple:hover,.bu_c3e2.ou_2a48.fx-ripple:hover,.bu_c3e2.el_611c.fx-ripple:hover,.bu_c3e2.gh_60ef.fx-ripple:hover,.bu_c3e2.fl_3a23.fx-ripple:hover{filter:unset}.bu_c3e2.ba_d73d:not(.fi_8a2f,.co_ca8c):hover{background-color:#0000001a}.bu_c3e2.ba_d73d:not(.fi_8a2f,.co_ca8c):active{background-color:#0003}.bu_c3e2.ba_d73d:not(.fx-ripple):active:not(.fi_8a2f).co_ca8c{background-color:rgba(var(--0-c-v), .21)}.bu_c3e2.ba_d73d:not(.fx-ripple):hover:not(.fi_8a2f).co_ca8c{background-color:rgba(var(--0-c-v), .21);opacity:1}.bu_c3e2.gh_60ef:not(.fi_8a2f,.co_ca8c):active,.bu_c3e2.gh_60ef:not(.fi_8a2f,.co_ca8c):hover{background-color:#0000}.bu_c3e2.in_f063{background-color:rgba(var(--0-c-theme-contrast-v), .1)}.bu_c3e2.in_f063:active{background-color:rgba(var(--0-c-theme-contrast-v), .2)}.bu_c3e2.in_f063.fx-ripple:active{background-color:rgba(var(--0-c-theme-contrast-v), .1)}.bu_c3e2.ou_2a48{box-shadow:var(--0-button-inside-rect)}.bu_c3e2.ou_2a48:active,.bu_c3e2.ou_2a48:hover{--button-shadow-width:var(--0-unit,.2em)}.bu_c3e2.el_611c{box-shadow:0 0 1px 1px #0000001a,0 1px 3px #00000018,0 1.5px 1.5px #00000021}.bu_c3e2.el_611c:hover .co_ed70{filter:none}.bu_c3e2.el_611c:hover{box-shadow:0 0 1px 1px #0000001a,0 2px 6px #00000018,0 3px 3px #00000021}.bu_c3e2.el_611c:active{background-color:rgba(var(--0-c-brand-value), .1);box-shadow:0 0 1px 1px #0000001a,0 0 #00000018,0 0 #00000021}.bu_c3e2.el_611c.i__const_sizeXXXL_6{box-shadow:0 0 1px 1px #0000001a,0 12px 36px #00000018,0 18px 18px #00000021}.bu_c3e2.el_611c:not(.fx-ripple):active{background-color:rgba(var(--0-c-brand-value), .1)}.bu_c3e2.el_611c.fx-ripple:active .co_ed70{transform:unset}.bu_c3e2.fl_3a23:hover{--0-c2:rgba(var(--0-c2-v,var(--0-c-v)), .2);background-color:var(--0-c2,rgba(var(--0-c-v), .2))}}@layer ui0.button{.bu_c3e2{text-align:center;box-sizing:border-box;font:inherit;color:inherit;touch-action:manipulation;transition-duration:var(--0-d-fast);-webkit-user-select:none;user-select:none;white-space:nowrap;padding-inline:var(--0-button-padding);--0-button-h:var(--0-s-cur,var(--0-s-m));--0-button-padding:var(--0-uc8);height:var(--0-s);--0-c-src:initial;--0-c-src-l:initial;--0-c-src-d:initial;--0-c-src-hover:initial;--0-c-src-active:initial;--0-c-src-focus:initial;--0-c-src-l-hover:initial;--0-c-src-l-active:initial;--0-c-src-l-focus:initial;--0-c-src-d-hover:initial;--0-c-src-d-active:initial;--0-c-src-d-focus:initial;--0-c-o:var(--0-c-src,var(--0-c-src-l,1));--0-c-cur:rgb(var(--0-c-cur-v) / var(--0-c-o));background-color:buttonface;background-clip:border-box;flex-direction:row;justify-content:center;align-items:center;display:inline-flex;position:relative}.theme_dark .bu_c3e2{--0-c-o:var(--0-c-src-d,var(--0-c-src,1))}.bu_c3e2:hover{--0-c-o:var(--0-c-src-hover,var(--0-c-src,var(--0-c-src-l,1)))}.bu_c3e2:active{--0-c-o:var(--0-c-src-active,var(--0-c-src,var(--0-c-src-l,1)))}.bu_c3e2:focus{--0-c-o:var(--0-c-src-focus,var(--0-c-src,var(--0-c-src-l,1)))}.theme_dark .bu_c3e2:hover{--0-c-o:var(--0-c-src-d-hover,var(--0-c-src-hover,var(--0-c-src-d,var(--0-c-src,1))))}.theme_dark .bu_c3e2:active{--0-c-o:var(--0-c-src-d-active,var(--0-c-src-active,var(--0-c-src-d,var(--0-c-src,1))))}.theme_dark .bu_c3e2:focus{--0-c-o:var(--0-c-src-d-focus,var(--0-c-src-focus,var(--0-c-src-d,var(--0-c-src,1))))}.bu_c3e2{--0-f-src:initial;--0-f-src-l:initial;--0-f-src-d:initial;--0-f-src-hover:initial;--0-f-src-active:initial;--0-f-src-focus:initial;--0-f-src-l-hover:initial;--0-f-src-l-active:initial;--0-f-src-l-focus:initial;--0-f-src-d-hover:initial;--0-f-src-d-active:initial;--0-f-src-d-focus:initial;--0-f-o:var(--0-f-src,var(--0-f-src-l,1));--0-f-cur:rgb(var(--0-f-cur-v) / var(--0-f-o))}.theme_dark .bu_c3e2{--0-f-o:var(--0-f-src-d,var(--0-f-src,1))}.bu_c3e2:hover{--0-f-o:var(--0-f-src-hover,var(--0-f-src,var(--0-f-src-l,1)))}.bu_c3e2:active{--0-f-o:var(--0-f-src-active,var(--0-f-src,var(--0-f-src-l,1)))}.bu_c3e2:focus{--0-f-o:var(--0-f-src-focus,var(--0-f-src,var(--0-f-src-l,1)))}.theme_dark .bu_c3e2:hover{--0-f-o:var(--0-f-src-d-hover,var(--0-f-src-hover,var(--0-f-src-d,var(--0-f-src,1))))}.theme_dark .bu_c3e2:active{--0-f-o:var(--0-f-src-d-active,var(--0-f-src-active,var(--0-f-src-d,var(--0-f-src,1))))}.theme_dark .bu_c3e2:focus{--0-f-o:var(--0-f-src-d-focus,var(--0-f-src-focus,var(--0-f-src-d,var(--0-f-src,1))))}.bu_c3e2{--0-g-cur:initial;color:var(--0-c-cur);background-color:var(--0-f-cur);background-image:var(--0-g-cur);border-start-start-radius:var(--0-r-tl,0px);border-start-end-radius:var(--0-r-tr,0px);border-end-end-radius:var(--0-r-br,0px);border-end-start-radius:var(--0-r-bl,0px)}.bu_c3e2.ro_0102{--0c-r-full:var(--0-r-full,calc(var(--0-button-h) / 2));--0c-r-smooth:var(--0-r-smooth,calc(var(--0-button-h) / 4));--0c-r-basic:var(--0-r-basic,calc(var(--0-button-h) / 8));--0c-r-hard:var(--0-r-hard,calc(var(--0-button-h) / 14));--0c-r-none:var(--0-r-none,0px)}.bu_c3e2.di_17eb{cursor:initial;filter:grayscale(80%)opacity(70%);pointer-events:none}.bu_c3e2.co_b6b5{--r-sizing:.8;padding:.1em .3em}.bu_c3e2 .co_ed70{align-items:inherit;border-radius:inherit;display:inherit;justify-content:inherit;height:100%;position:inherit;pointer-events:none;-webkit-user-select:none;user-select:none;gap:var(--0-uc2);width:min-content;transition-duration:var(--0-d-fast);line-height:1;transition-property:color}.bu_c3e2.la_2152,.bu_c3e2.la_0824{height:calc(var(--0-button-h));max-height:calc(var(--0-button-h))}.bu_c3e2.la_0824 .co_ed70{flex-direction:column}.bu_c3e2.la_2152 .co_ed70{flex-direction:column-reverse}.bu_c3e2.la_1433 .co_ed70{flex-direction:row-reverse}}
2
+ /*$vite$:1*/
@@ -0,0 +1 @@
1
+ @value test: 123;
package/package.json CHANGED
@@ -1,6 +1,45 @@
1
1
  {
2
2
  "name": "@ui0/button",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "description": "Component library for @ui0/core built from packages/templates/package",
5
+ "files": [
6
+ "dist"
7
+ ],
8
+ "type": "module",
9
+ "sideEffects": [
10
+ "**/*.css"
11
+ ],
12
+ "module": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "import": "./dist/index.js"
18
+ },
19
+ "./style.css": "./dist/style.css",
20
+ "./button/classes": "./dist/button.module.css",
21
+ "./button.module.css": "./dist/button.module.css",
22
+ "./package.json": "./package.json"
23
+ },
24
+ "scripts": {
25
+ "button:build": "vite build",
26
+ "button:dev": "vite build --watch",
27
+ "button:typecheck": "vue-tsc --noEmit"
28
+ },
29
+ "dependencies": {},
30
+ "devDependencies": {
31
+ "@ui0/vite": "workspace:*",
32
+ "@vitejs/plugin-vue": "^6.0.0",
33
+ "sass-embedded": "^1.80.0",
34
+ "vite-plugin-dts": "^5.1.2",
35
+ "vue": "^3.5.45"
36
+ },
37
+ "peerDependencies": {
38
+ "@ui0/composable": "workspace:*",
39
+ "@ui0/core": "workspace:*",
40
+ "@ui0/theme": "workspace:*",
41
+ "@ui0/types": "workspace:*",
42
+ "@ui0/util": "workspace:*",
43
+ "vue": "^3.5.45"
44
+ }
45
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.