webadwaita 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.
- package/dist/Button.d.mts +5 -0
- package/dist/Button.d.ts +5 -0
- package/dist/Button.js +63 -0
- package/dist/Button.mjs +41 -0
- package/dist/button.d.mts +5 -0
- package/dist/button.d.ts +5 -0
- package/dist/button.js +63 -0
- package/dist/button.mjs +15 -0
- package/dist/chunk-FWCSY2DS.mjs +37 -0
- package/dist/styles.css +346 -0
- package/dist/styles.d.mts +2 -0
- package/dist/styles.d.ts +2 -0
- package/dist/styles.js +1 -0
- package/dist/styles.mjs +1 -0
- package/package.json +43 -0
package/dist/Button.d.ts
ADDED
package/dist/Button.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
var __export = (target, all) => {
|
|
36
|
+
for (var name in all)
|
|
37
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
+
};
|
|
39
|
+
var __copyProps = (to, from, except, desc) => {
|
|
40
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
+
for (let key of __getOwnPropNames(from))
|
|
42
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
+
|
|
49
|
+
// src/components/atoms/Button/Button.tsx
|
|
50
|
+
var Button_exports = {};
|
|
51
|
+
__export(Button_exports, {
|
|
52
|
+
Button: () => Button
|
|
53
|
+
});
|
|
54
|
+
module.exports = __toCommonJS(Button_exports);
|
|
55
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
56
|
+
var Button = (props) => {
|
|
57
|
+
const _a = props, { children } = _a, restProps = __objRest(_a, ["children"]);
|
|
58
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", __spreadProps(__spreadValues({ className: "rounded-lg bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600", type: "button" }, restProps), { children }));
|
|
59
|
+
};
|
|
60
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
+
0 && (module.exports = {
|
|
62
|
+
Button
|
|
63
|
+
});
|
package/dist/Button.mjs
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
// src/components/atoms/Button/Button.tsx
|
|
34
|
+
import { jsx } from "react/jsx-runtime";
|
|
35
|
+
var Button = (props) => {
|
|
36
|
+
const _a = props, { children } = _a, restProps = __objRest(_a, ["children"]);
|
|
37
|
+
return /* @__PURE__ */ jsx("button", __spreadProps(__spreadValues({ className: "rounded-lg bg-blue-600 px-4 py-2 text-sm font-semibold text-white shadow-sm hover:bg-blue-500 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-blue-600", type: "button" }, restProps), { children }));
|
|
38
|
+
};
|
|
39
|
+
export {
|
|
40
|
+
Button
|
|
41
|
+
};
|
package/dist/button.d.ts
ADDED
package/dist/button.js
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
23
|
+
var __objRest = (source, exclude) => {
|
|
24
|
+
var target = {};
|
|
25
|
+
for (var prop in source)
|
|
26
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
27
|
+
target[prop] = source[prop];
|
|
28
|
+
if (source != null && __getOwnPropSymbols)
|
|
29
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
30
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
31
|
+
target[prop] = source[prop];
|
|
32
|
+
}
|
|
33
|
+
return target;
|
|
34
|
+
};
|
|
35
|
+
var __export = (target, all) => {
|
|
36
|
+
for (var name in all)
|
|
37
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
38
|
+
};
|
|
39
|
+
var __copyProps = (to, from, except, desc) => {
|
|
40
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
41
|
+
for (let key of __getOwnPropNames(from))
|
|
42
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
43
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
44
|
+
}
|
|
45
|
+
return to;
|
|
46
|
+
};
|
|
47
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
48
|
+
|
|
49
|
+
// src/components/atoms/Button/Button.tsx
|
|
50
|
+
var Button_exports = {};
|
|
51
|
+
__export(Button_exports, {
|
|
52
|
+
Button: () => Button
|
|
53
|
+
});
|
|
54
|
+
module.exports = __toCommonJS(Button_exports);
|
|
55
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
56
|
+
var Button = (props) => {
|
|
57
|
+
const _a = props, { children } = _a, restProps = __objRest(_a, ["children"]);
|
|
58
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", __spreadProps(__spreadValues({ className: "inline-flex items-center gap-2 rounded-xl bg-blue-500 px-5 py-2.5 text-sm font-medium text-black transition-all duration-200 hover:bg-blue-400 hover:shadow-lg hover:shadow-blue-500/25 active:scale-[0.98]", type: "button" }, restProps), { children }));
|
|
59
|
+
};
|
|
60
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
61
|
+
0 && (module.exports = {
|
|
62
|
+
Button
|
|
63
|
+
});
|
package/dist/button.mjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__objRest,
|
|
3
|
+
__spreadProps,
|
|
4
|
+
__spreadValues
|
|
5
|
+
} from "./chunk-FWCSY2DS.mjs";
|
|
6
|
+
|
|
7
|
+
// src/components/atoms/Button/Button.tsx
|
|
8
|
+
import { jsx } from "react/jsx-runtime";
|
|
9
|
+
var Button = (props) => {
|
|
10
|
+
const _a = props, { children } = _a, restProps = __objRest(_a, ["children"]);
|
|
11
|
+
return /* @__PURE__ */ jsx("button", __spreadProps(__spreadValues({ className: "inline-flex items-center gap-2 rounded-xl bg-blue-500 px-5 py-2.5 text-sm font-medium text-black transition-all duration-200 hover:bg-blue-400 hover:shadow-lg hover:shadow-blue-500/25 active:scale-[0.98]", type: "button" }, restProps), { children }));
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
Button
|
|
15
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
4
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
7
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
|
+
var __spreadValues = (a, b) => {
|
|
9
|
+
for (var prop in b || (b = {}))
|
|
10
|
+
if (__hasOwnProp.call(b, prop))
|
|
11
|
+
__defNormalProp(a, prop, b[prop]);
|
|
12
|
+
if (__getOwnPropSymbols)
|
|
13
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
14
|
+
if (__propIsEnum.call(b, prop))
|
|
15
|
+
__defNormalProp(a, prop, b[prop]);
|
|
16
|
+
}
|
|
17
|
+
return a;
|
|
18
|
+
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export {
|
|
34
|
+
__spreadValues,
|
|
35
|
+
__spreadProps,
|
|
36
|
+
__objRest
|
|
37
|
+
};
|
package/dist/styles.css
ADDED
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
/* src/styles.css */
|
|
2
|
+
@layer properties;
|
|
3
|
+
@layer theme, base, components, utilities;
|
|
4
|
+
@layer theme {
|
|
5
|
+
:root,
|
|
6
|
+
:host {
|
|
7
|
+
--font-sans:
|
|
8
|
+
ui-sans-serif,
|
|
9
|
+
system-ui,
|
|
10
|
+
sans-serif,
|
|
11
|
+
"Apple Color Emoji",
|
|
12
|
+
"Segoe UI Emoji",
|
|
13
|
+
"Segoe UI Symbol",
|
|
14
|
+
"Noto Color Emoji";
|
|
15
|
+
--font-mono:
|
|
16
|
+
ui-monospace,
|
|
17
|
+
SFMono-Regular,
|
|
18
|
+
Menlo,
|
|
19
|
+
Monaco,
|
|
20
|
+
Consolas,
|
|
21
|
+
"Liberation Mono",
|
|
22
|
+
"Courier New",
|
|
23
|
+
monospace;
|
|
24
|
+
--color-blue-400: oklch(70.7% 0.165 254.624);
|
|
25
|
+
--color-blue-500: oklch(62.3% 0.214 259.815);
|
|
26
|
+
--color-black: #000;
|
|
27
|
+
--spacing: 0.25rem;
|
|
28
|
+
--text-sm: 0.875rem;
|
|
29
|
+
--text-sm--line-height: calc(1.25 / 0.875);
|
|
30
|
+
--font-weight-medium: 500;
|
|
31
|
+
--radius-xl: 0.75rem;
|
|
32
|
+
--default-transition-duration: 150ms;
|
|
33
|
+
--default-transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
34
|
+
--default-font-family: var(--font-sans);
|
|
35
|
+
--default-mono-font-family: var(--font-mono);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
@layer base {
|
|
39
|
+
*,
|
|
40
|
+
::after,
|
|
41
|
+
::before,
|
|
42
|
+
::backdrop,
|
|
43
|
+
::file-selector-button {
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
margin: 0;
|
|
46
|
+
padding: 0;
|
|
47
|
+
border: 0 solid;
|
|
48
|
+
}
|
|
49
|
+
html,
|
|
50
|
+
:host {
|
|
51
|
+
line-height: 1.5;
|
|
52
|
+
-webkit-text-size-adjust: 100%;
|
|
53
|
+
tab-size: 4;
|
|
54
|
+
font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
|
|
55
|
+
font-feature-settings: var(--default-font-feature-settings, normal);
|
|
56
|
+
font-variation-settings: var(--default-font-variation-settings, normal);
|
|
57
|
+
-webkit-tap-highlight-color: transparent;
|
|
58
|
+
}
|
|
59
|
+
hr {
|
|
60
|
+
height: 0;
|
|
61
|
+
color: inherit;
|
|
62
|
+
border-top-width: 1px;
|
|
63
|
+
}
|
|
64
|
+
abbr:where([title]) {
|
|
65
|
+
-webkit-text-decoration: underline dotted;
|
|
66
|
+
text-decoration: underline dotted;
|
|
67
|
+
}
|
|
68
|
+
h1,
|
|
69
|
+
h2,
|
|
70
|
+
h3,
|
|
71
|
+
h4,
|
|
72
|
+
h5,
|
|
73
|
+
h6 {
|
|
74
|
+
font-size: inherit;
|
|
75
|
+
font-weight: inherit;
|
|
76
|
+
}
|
|
77
|
+
a {
|
|
78
|
+
color: inherit;
|
|
79
|
+
-webkit-text-decoration: inherit;
|
|
80
|
+
text-decoration: inherit;
|
|
81
|
+
}
|
|
82
|
+
b,
|
|
83
|
+
strong {
|
|
84
|
+
font-weight: bolder;
|
|
85
|
+
}
|
|
86
|
+
code,
|
|
87
|
+
kbd,
|
|
88
|
+
samp,
|
|
89
|
+
pre {
|
|
90
|
+
font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
|
|
91
|
+
font-feature-settings: var(--default-mono-font-feature-settings, normal);
|
|
92
|
+
font-variation-settings: var(--default-mono-font-variation-settings, normal);
|
|
93
|
+
font-size: 1em;
|
|
94
|
+
}
|
|
95
|
+
small {
|
|
96
|
+
font-size: 80%;
|
|
97
|
+
}
|
|
98
|
+
sub,
|
|
99
|
+
sup {
|
|
100
|
+
font-size: 75%;
|
|
101
|
+
line-height: 0;
|
|
102
|
+
position: relative;
|
|
103
|
+
vertical-align: baseline;
|
|
104
|
+
}
|
|
105
|
+
sub {
|
|
106
|
+
bottom: -0.25em;
|
|
107
|
+
}
|
|
108
|
+
sup {
|
|
109
|
+
top: -0.5em;
|
|
110
|
+
}
|
|
111
|
+
table {
|
|
112
|
+
text-indent: 0;
|
|
113
|
+
border-color: inherit;
|
|
114
|
+
border-collapse: collapse;
|
|
115
|
+
}
|
|
116
|
+
:-moz-focusring {
|
|
117
|
+
outline: auto;
|
|
118
|
+
}
|
|
119
|
+
progress {
|
|
120
|
+
vertical-align: baseline;
|
|
121
|
+
}
|
|
122
|
+
summary {
|
|
123
|
+
display: list-item;
|
|
124
|
+
}
|
|
125
|
+
ol,
|
|
126
|
+
ul,
|
|
127
|
+
menu {
|
|
128
|
+
list-style: none;
|
|
129
|
+
}
|
|
130
|
+
img,
|
|
131
|
+
svg,
|
|
132
|
+
video,
|
|
133
|
+
canvas,
|
|
134
|
+
audio,
|
|
135
|
+
iframe,
|
|
136
|
+
embed,
|
|
137
|
+
object {
|
|
138
|
+
display: block;
|
|
139
|
+
vertical-align: middle;
|
|
140
|
+
}
|
|
141
|
+
img,
|
|
142
|
+
video {
|
|
143
|
+
max-width: 100%;
|
|
144
|
+
height: auto;
|
|
145
|
+
}
|
|
146
|
+
button,
|
|
147
|
+
input,
|
|
148
|
+
select,
|
|
149
|
+
optgroup,
|
|
150
|
+
textarea,
|
|
151
|
+
::file-selector-button {
|
|
152
|
+
font: inherit;
|
|
153
|
+
font-feature-settings: inherit;
|
|
154
|
+
font-variation-settings: inherit;
|
|
155
|
+
letter-spacing: inherit;
|
|
156
|
+
color: inherit;
|
|
157
|
+
border-radius: 0;
|
|
158
|
+
background-color: transparent;
|
|
159
|
+
opacity: 1;
|
|
160
|
+
}
|
|
161
|
+
:where(select:is([multiple], [size])) optgroup {
|
|
162
|
+
font-weight: bolder;
|
|
163
|
+
}
|
|
164
|
+
:where(select:is([multiple], [size])) optgroup option {
|
|
165
|
+
padding-inline-start: 20px;
|
|
166
|
+
}
|
|
167
|
+
::file-selector-button {
|
|
168
|
+
margin-inline-end: 4px;
|
|
169
|
+
}
|
|
170
|
+
::placeholder {
|
|
171
|
+
opacity: 1;
|
|
172
|
+
}
|
|
173
|
+
@supports (not (-webkit-appearance: -apple-pay-button)) or (contain-intrinsic-size: 1px) {
|
|
174
|
+
::placeholder {
|
|
175
|
+
color: currentcolor;
|
|
176
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
177
|
+
color: color-mix(in oklab, currentcolor 50%, transparent);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
textarea {
|
|
182
|
+
resize: vertical;
|
|
183
|
+
}
|
|
184
|
+
::-webkit-search-decoration {
|
|
185
|
+
-webkit-appearance: none;
|
|
186
|
+
}
|
|
187
|
+
::-webkit-date-and-time-value {
|
|
188
|
+
min-height: 1lh;
|
|
189
|
+
text-align: inherit;
|
|
190
|
+
}
|
|
191
|
+
::-webkit-datetime-edit {
|
|
192
|
+
display: inline-flex;
|
|
193
|
+
}
|
|
194
|
+
::-webkit-datetime-edit-fields-wrapper {
|
|
195
|
+
padding: 0;
|
|
196
|
+
}
|
|
197
|
+
::-webkit-datetime-edit,
|
|
198
|
+
::-webkit-datetime-edit-year-field,
|
|
199
|
+
::-webkit-datetime-edit-month-field,
|
|
200
|
+
::-webkit-datetime-edit-day-field,
|
|
201
|
+
::-webkit-datetime-edit-hour-field,
|
|
202
|
+
::-webkit-datetime-edit-minute-field,
|
|
203
|
+
::-webkit-datetime-edit-second-field,
|
|
204
|
+
::-webkit-datetime-edit-millisecond-field,
|
|
205
|
+
::-webkit-datetime-edit-meridiem-field {
|
|
206
|
+
padding-block: 0;
|
|
207
|
+
}
|
|
208
|
+
::-webkit-calendar-picker-indicator {
|
|
209
|
+
line-height: 1;
|
|
210
|
+
}
|
|
211
|
+
:-moz-ui-invalid {
|
|
212
|
+
box-shadow: none;
|
|
213
|
+
}
|
|
214
|
+
button,
|
|
215
|
+
input:where([type=button], [type=reset], [type=submit]),
|
|
216
|
+
::file-selector-button {
|
|
217
|
+
appearance: button;
|
|
218
|
+
}
|
|
219
|
+
::-webkit-inner-spin-button,
|
|
220
|
+
::-webkit-outer-spin-button {
|
|
221
|
+
height: auto;
|
|
222
|
+
}
|
|
223
|
+
[hidden]:where(:not([hidden=until-found])) {
|
|
224
|
+
display: none !important;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
@layer utilities {
|
|
228
|
+
.inline-flex {
|
|
229
|
+
display: inline-flex;
|
|
230
|
+
}
|
|
231
|
+
.items-center {
|
|
232
|
+
align-items: center;
|
|
233
|
+
}
|
|
234
|
+
.gap-2 {
|
|
235
|
+
gap: calc(var(--spacing) * 2);
|
|
236
|
+
}
|
|
237
|
+
.rounded-xl {
|
|
238
|
+
border-radius: var(--radius-xl);
|
|
239
|
+
}
|
|
240
|
+
.bg-blue-500 {
|
|
241
|
+
background-color: var(--color-blue-500);
|
|
242
|
+
}
|
|
243
|
+
.px-5 {
|
|
244
|
+
padding-inline: calc(var(--spacing) * 5);
|
|
245
|
+
}
|
|
246
|
+
.py-2\.5 {
|
|
247
|
+
padding-block: calc(var(--spacing) * 2.5);
|
|
248
|
+
}
|
|
249
|
+
.text-sm {
|
|
250
|
+
font-size: var(--text-sm);
|
|
251
|
+
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
252
|
+
}
|
|
253
|
+
.font-medium {
|
|
254
|
+
--tw-font-weight: var(--font-weight-medium);
|
|
255
|
+
font-weight: var(--font-weight-medium);
|
|
256
|
+
}
|
|
257
|
+
.text-black {
|
|
258
|
+
color: var(--color-black);
|
|
259
|
+
}
|
|
260
|
+
.transition-all {
|
|
261
|
+
transition-property: all;
|
|
262
|
+
transition-timing-function: var(--tw-ease, var(--default-transition-timing-function));
|
|
263
|
+
transition-duration: var(--tw-duration, var(--default-transition-duration));
|
|
264
|
+
}
|
|
265
|
+
.duration-200 {
|
|
266
|
+
--tw-duration: 200ms;
|
|
267
|
+
transition-duration: 200ms;
|
|
268
|
+
}
|
|
269
|
+
.hover\:bg-blue-400 {
|
|
270
|
+
&:hover {
|
|
271
|
+
@media (hover: hover) {
|
|
272
|
+
background-color: var(--color-blue-400);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
.hover\:shadow-lg {
|
|
277
|
+
&:hover {
|
|
278
|
+
@media (hover: hover) {
|
|
279
|
+
--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
|
|
280
|
+
box-shadow:
|
|
281
|
+
var(--tw-inset-shadow),
|
|
282
|
+
var(--tw-inset-ring-shadow),
|
|
283
|
+
var(--tw-ring-offset-shadow),
|
|
284
|
+
var(--tw-ring-shadow),
|
|
285
|
+
var(--tw-shadow);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
.hover\:shadow-blue-500\/25 {
|
|
290
|
+
&:hover {
|
|
291
|
+
@media (hover: hover) {
|
|
292
|
+
--tw-shadow-color: color-mix(in srgb, oklch(62.3% 0.214 259.815) 25%, transparent);
|
|
293
|
+
@supports (color: color-mix(in lab, red, red)) {
|
|
294
|
+
--tw-shadow-color: color-mix(in oklab, color-mix(in oklab, var(--color-blue-500) 25%, transparent) var(--tw-shadow-alpha), transparent);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
.active\:scale-\[0\.98\] {
|
|
300
|
+
&:active {
|
|
301
|
+
scale: 0.98;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
@property --tw-font-weight { syntax: "*"; inherits: false; }
|
|
306
|
+
@property --tw-duration { syntax: "*"; inherits: false; }
|
|
307
|
+
@property --tw-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
308
|
+
@property --tw-shadow-color { syntax: "*"; inherits: false; }
|
|
309
|
+
@property --tw-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
|
|
310
|
+
@property --tw-inset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
311
|
+
@property --tw-inset-shadow-color { syntax: "*"; inherits: false; }
|
|
312
|
+
@property --tw-inset-shadow-alpha { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
|
|
313
|
+
@property --tw-ring-color { syntax: "*"; inherits: false; }
|
|
314
|
+
@property --tw-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
315
|
+
@property --tw-inset-ring-color { syntax: "*"; inherits: false; }
|
|
316
|
+
@property --tw-inset-ring-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
317
|
+
@property --tw-ring-inset { syntax: "*"; inherits: false; }
|
|
318
|
+
@property --tw-ring-offset-width { syntax: "<length>"; inherits: false; initial-value: 0px; }
|
|
319
|
+
@property --tw-ring-offset-color { syntax: "*"; inherits: false; initial-value: #fff; }
|
|
320
|
+
@property --tw-ring-offset-shadow { syntax: "*"; inherits: false; initial-value: 0 0 #0000; }
|
|
321
|
+
@layer properties {
|
|
322
|
+
@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
|
|
323
|
+
*,
|
|
324
|
+
::before,
|
|
325
|
+
::after,
|
|
326
|
+
::backdrop {
|
|
327
|
+
--tw-font-weight: initial;
|
|
328
|
+
--tw-duration: initial;
|
|
329
|
+
--tw-shadow: 0 0 #0000;
|
|
330
|
+
--tw-shadow-color: initial;
|
|
331
|
+
--tw-shadow-alpha: 100%;
|
|
332
|
+
--tw-inset-shadow: 0 0 #0000;
|
|
333
|
+
--tw-inset-shadow-color: initial;
|
|
334
|
+
--tw-inset-shadow-alpha: 100%;
|
|
335
|
+
--tw-ring-color: initial;
|
|
336
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
337
|
+
--tw-inset-ring-color: initial;
|
|
338
|
+
--tw-inset-ring-shadow: 0 0 #0000;
|
|
339
|
+
--tw-ring-inset: initial;
|
|
340
|
+
--tw-ring-offset-width: 0px;
|
|
341
|
+
--tw-ring-offset-color: #fff;
|
|
342
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
/*! tailwindcss v4.2.2 | MIT License | https://tailwindcss.com */
|
package/dist/styles.d.ts
ADDED
package/dist/styles.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
package/dist/styles.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./chunk-FWCSY2DS.mjs";
|
package/package.json
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "webadwaita",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"sideEffects": ["**/*.css"],
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./button": {
|
|
8
|
+
"types": "./dist/button.d.ts",
|
|
9
|
+
"import": "./dist/button.mjs",
|
|
10
|
+
"require": "./dist/button.js"
|
|
11
|
+
},
|
|
12
|
+
"./styles": {
|
|
13
|
+
"import": "./dist/styles.mjs",
|
|
14
|
+
"require": "./dist/styles.js"
|
|
15
|
+
},
|
|
16
|
+
"./styles.css": "./dist/styles.css"
|
|
17
|
+
},
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "tsup",
|
|
20
|
+
"dev": "tsup --watch",
|
|
21
|
+
"lint": "eslint . --max-warnings 0",
|
|
22
|
+
"clean": "rm -rf .turbo node_modules dist"
|
|
23
|
+
},
|
|
24
|
+
"devDependencies": {
|
|
25
|
+
"@repo/eslint-config": "*",
|
|
26
|
+
"@repo/typescript-config": "*",
|
|
27
|
+
"@storybook/react": "^8.2.6",
|
|
28
|
+
"@tailwindcss/postcss": "^4.2.2",
|
|
29
|
+
"@types/react": "^18.2.61",
|
|
30
|
+
"@types/react-dom": "^18.2.19",
|
|
31
|
+
"eslint": "^8.57.0",
|
|
32
|
+
"tsup": "^8.0.2",
|
|
33
|
+
"typescript": "5.5.4"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"react": "^18.2.0",
|
|
37
|
+
"tailwindcss": "^4.2.2"
|
|
38
|
+
},
|
|
39
|
+
"files": ["dist"],
|
|
40
|
+
"publishConfig": {
|
|
41
|
+
"access": "public"
|
|
42
|
+
}
|
|
43
|
+
}
|