@greghowe79/the-lib 0.0.1 → 0.0.3
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/lib/assets/BefodwuD-style.css +107 -0
- package/lib/components/button/button.qwik.cjs +33 -0
- package/lib/components/button/button.qwik.mjs +33 -0
- package/lib/components/button/styles.css.qwik.cjs +9 -0
- package/lib/components/button/styles.css.qwik.mjs +9 -0
- package/lib/index.qwik.cjs +2 -0
- package/lib/index.qwik.mjs +2 -0
- package/lib-types/index.d.ts +3 -2
- package/package.json +1 -1
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
.styles_buttonVariants_primary__1j35qve0 {
|
|
2
|
+
display: inline-block;
|
|
3
|
+
outline: none;
|
|
4
|
+
border-width: 0px;
|
|
5
|
+
border-radius: 3px;
|
|
6
|
+
box-sizing: border-box;
|
|
7
|
+
font-weight: 500;
|
|
8
|
+
max-width: 100%;
|
|
9
|
+
text-align: center;
|
|
10
|
+
text-decoration: none;
|
|
11
|
+
transition: background 0.1s ease-out 0s, box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38) 0s;
|
|
12
|
+
background: rgb(0, 82, 204);
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
height: 32px;
|
|
15
|
+
line-height: 32px;
|
|
16
|
+
padding: 0px 12px;
|
|
17
|
+
vertical-align: middle;
|
|
18
|
+
width: auto;
|
|
19
|
+
font-size: 14px;
|
|
20
|
+
color: rgb(255, 255, 255);
|
|
21
|
+
}
|
|
22
|
+
.styles_buttonVariants_primary__1j35qve0:hover {
|
|
23
|
+
background: rgb(0, 101, 255);
|
|
24
|
+
text-decoration: inherit;
|
|
25
|
+
transition-duration: 0s, 0.15s;
|
|
26
|
+
color: rgb(255, 255, 255);
|
|
27
|
+
}
|
|
28
|
+
.styles_buttonVariants_secondary__1j35qve1 {
|
|
29
|
+
display: inline-block;
|
|
30
|
+
outline: none;
|
|
31
|
+
border-width: 0px;
|
|
32
|
+
border-radius: 3px;
|
|
33
|
+
box-sizing: border-box;
|
|
34
|
+
font-weight: 500;
|
|
35
|
+
max-width: 100%;
|
|
36
|
+
text-align: center;
|
|
37
|
+
text-decoration: none;
|
|
38
|
+
transition: background 0.1s ease-out 0s, box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38) 0s;
|
|
39
|
+
background: linear-gradient(to right, #6c757d, #5a6268);
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
height: 32px;
|
|
42
|
+
line-height: 32px;
|
|
43
|
+
padding: 0px 12px;
|
|
44
|
+
vertical-align: middle;
|
|
45
|
+
width: auto;
|
|
46
|
+
font-size: 14px;
|
|
47
|
+
color: white;
|
|
48
|
+
}
|
|
49
|
+
.styles_buttonVariants_secondary__1j35qve1:hover {
|
|
50
|
+
background: linear-gradient(to right, #5a6268, #4e555b);
|
|
51
|
+
text-decoration: inherit;
|
|
52
|
+
transition-duration: 0s, 0.15s;
|
|
53
|
+
color: white;
|
|
54
|
+
}
|
|
55
|
+
.styles_buttonVariants_danger__1j35qve2 {
|
|
56
|
+
display: inline-block;
|
|
57
|
+
outline: none;
|
|
58
|
+
border-width: 0px;
|
|
59
|
+
border-radius: 3px;
|
|
60
|
+
box-sizing: border-box;
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
max-width: 100%;
|
|
63
|
+
text-align: center;
|
|
64
|
+
text-decoration: none;
|
|
65
|
+
transition: background 0.1s ease-out 0s, box-shadow 0.15s cubic-bezier(0.47, 0.03, 0.49, 1.38) 0s;
|
|
66
|
+
background: linear-gradient(to right, #dc3545, #c82333);
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
height: 32px;
|
|
69
|
+
line-height: 32px;
|
|
70
|
+
padding: 0px 12px;
|
|
71
|
+
vertical-align: middle;
|
|
72
|
+
width: auto;
|
|
73
|
+
font-size: 14px;
|
|
74
|
+
color: white;
|
|
75
|
+
}
|
|
76
|
+
.styles_buttonVariants_danger__1j35qve2:hover {
|
|
77
|
+
background: linear-gradient(to right, #c82333, #bd2130);
|
|
78
|
+
text-decoration: inherit;
|
|
79
|
+
transition-duration: 0s, 0.15s;
|
|
80
|
+
color: white;
|
|
81
|
+
}
|
|
82
|
+
.styles_buttonSizeVariants_sm__1j35qve3 {
|
|
83
|
+
font-size: 1rem;
|
|
84
|
+
height: 100%;
|
|
85
|
+
line-height: 1.25rem;
|
|
86
|
+
padding: 0.875rem 1.5rem;
|
|
87
|
+
border-radius: 0.5rem;
|
|
88
|
+
width: 100%;
|
|
89
|
+
}
|
|
90
|
+
.styles_buttonSizeVariants_md__1j35qve4 {
|
|
91
|
+
font-size: 14px;
|
|
92
|
+
height: 32px;
|
|
93
|
+
line-height: 32px;
|
|
94
|
+
padding: 0 12px;
|
|
95
|
+
width: auto;
|
|
96
|
+
}
|
|
97
|
+
.styles_buttonSizeVariants_lg__1j35qve5 {
|
|
98
|
+
font-size: 16px;
|
|
99
|
+
height: 40px;
|
|
100
|
+
line-height: 40px;
|
|
101
|
+
padding: 0 16px;
|
|
102
|
+
width: auto;
|
|
103
|
+
}
|
|
104
|
+
.styles__1j35qve6 {
|
|
105
|
+
opacity: 0.6;
|
|
106
|
+
cursor: not-allowed;
|
|
107
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
4
|
+
const qwik = require("@builder.io/qwik");
|
|
5
|
+
const styles_css = require("./styles.css.qwik.cjs");
|
|
6
|
+
const Button = qwik.component$(({ id, label, variant = "primary", icon, disabled = false, ariaLabel, type = "button", size = "md", onClick$ }) => {
|
|
7
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("button", {
|
|
8
|
+
id,
|
|
9
|
+
type,
|
|
10
|
+
class: [
|
|
11
|
+
styles_css.buttonVariants[variant],
|
|
12
|
+
styles_css.buttonSizeVariants[size],
|
|
13
|
+
disabled && styles_css.disabledStyle
|
|
14
|
+
],
|
|
15
|
+
disabled,
|
|
16
|
+
"aria-disabled": disabled,
|
|
17
|
+
"aria-label": ariaLabel || (icon ? label : void 0),
|
|
18
|
+
onClick$,
|
|
19
|
+
"preventdefault:click": !!onClick$,
|
|
20
|
+
children: [
|
|
21
|
+
icon && /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
22
|
+
class: "button__icon",
|
|
23
|
+
"aria-hidden": "true",
|
|
24
|
+
children: icon
|
|
25
|
+
}),
|
|
26
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
27
|
+
class: "button__text",
|
|
28
|
+
children: label
|
|
29
|
+
})
|
|
30
|
+
]
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
exports.Button = Button;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
+
import { component$ } from "@builder.io/qwik";
|
|
3
|
+
import { buttonVariants, buttonSizeVariants, disabledStyle } from "./styles.css.qwik.mjs";
|
|
4
|
+
const Button = component$(({ id, label, variant = "primary", icon, disabled = false, ariaLabel, type = "button", size = "md", onClick$ }) => {
|
|
5
|
+
return /* @__PURE__ */ jsxs("button", {
|
|
6
|
+
id,
|
|
7
|
+
type,
|
|
8
|
+
class: [
|
|
9
|
+
buttonVariants[variant],
|
|
10
|
+
buttonSizeVariants[size],
|
|
11
|
+
disabled && disabledStyle
|
|
12
|
+
],
|
|
13
|
+
disabled,
|
|
14
|
+
"aria-disabled": disabled,
|
|
15
|
+
"aria-label": ariaLabel || (icon ? label : void 0),
|
|
16
|
+
onClick$,
|
|
17
|
+
"preventdefault:click": !!onClick$,
|
|
18
|
+
children: [
|
|
19
|
+
icon && /* @__PURE__ */ jsx("span", {
|
|
20
|
+
class: "button__icon",
|
|
21
|
+
"aria-hidden": "true",
|
|
22
|
+
children: icon
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ jsx("span", {
|
|
25
|
+
class: "button__text",
|
|
26
|
+
children: label
|
|
27
|
+
})
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
Button
|
|
33
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
;/* empty css */
|
|
4
|
+
var buttonVariants = { primary: "styles_buttonVariants_primary__1j35qve0", secondary: "styles_buttonVariants_secondary__1j35qve1", danger: "styles_buttonVariants_danger__1j35qve2" };
|
|
5
|
+
var buttonSizeVariants = { sm: "styles_buttonSizeVariants_sm__1j35qve3", md: "styles_buttonSizeVariants_md__1j35qve4", lg: "styles_buttonSizeVariants_lg__1j35qve5" };
|
|
6
|
+
var disabledStyle = "styles__1j35qve6";
|
|
7
|
+
exports.buttonSizeVariants = buttonSizeVariants;
|
|
8
|
+
exports.buttonVariants = buttonVariants;
|
|
9
|
+
exports.disabledStyle = disabledStyle;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
var buttonVariants = { primary: "styles_buttonVariants_primary__1j35qve0", secondary: "styles_buttonVariants_secondary__1j35qve1", danger: "styles_buttonVariants_danger__1j35qve2" };
|
|
3
|
+
var buttonSizeVariants = { sm: "styles_buttonSizeVariants_sm__1j35qve3", md: "styles_buttonSizeVariants_md__1j35qve4", lg: "styles_buttonSizeVariants_lg__1j35qve5" };
|
|
4
|
+
var disabledStyle = "styles__1j35qve6";
|
|
5
|
+
export {
|
|
6
|
+
buttonSizeVariants,
|
|
7
|
+
buttonVariants,
|
|
8
|
+
disabledStyle
|
|
9
|
+
};
|
package/lib/index.qwik.cjs
CHANGED
|
@@ -2,5 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const logo = require("./components/logo/logo.qwik.cjs");
|
|
4
4
|
const counter = require("./components/counter/counter.qwik.cjs");
|
|
5
|
+
const button = require("./components/button/button.qwik.cjs");
|
|
5
6
|
exports.Logo = logo.Logo;
|
|
6
7
|
exports.Counter = counter.Counter;
|
|
8
|
+
exports.Button = button.Button;
|
package/lib/index.qwik.mjs
CHANGED
package/lib-types/index.d.ts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
export { Logo } from
|
|
2
|
-
export { Counter } from
|
|
1
|
+
export { Logo } from './components/logo/logo';
|
|
2
|
+
export { Counter } from './components/counter/counter';
|
|
3
|
+
export { Button } from './components/button/button';
|