@bbki.ng/components 1.1.1 → 1.4.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/index.css +226 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +8 -13
- package/dist/index.mjs +7 -14
- package/package.json +14 -5
package/dist/index.css
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
1
|
+
/* src/main.css */
|
|
2
|
+
*,
|
|
3
|
+
::before,
|
|
4
|
+
::after {
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
border-width: 0;
|
|
7
|
+
border-style: solid;
|
|
8
|
+
border-color: currentColor;
|
|
9
|
+
}
|
|
10
|
+
::before,
|
|
11
|
+
::after {
|
|
12
|
+
--tw-content: "";
|
|
13
|
+
}
|
|
14
|
+
html {
|
|
15
|
+
line-height: 1.5;
|
|
16
|
+
-webkit-text-size-adjust: 100%;
|
|
17
|
+
-moz-tab-size: 4;
|
|
18
|
+
-o-tab-size: 4;
|
|
19
|
+
tab-size: 4;
|
|
20
|
+
font-family:
|
|
21
|
+
pt-sans,
|
|
22
|
+
ui-sans-serif,
|
|
23
|
+
system-ui,
|
|
24
|
+
-apple-system,
|
|
25
|
+
BlinkMacSystemFont,
|
|
26
|
+
Segoe UI,
|
|
27
|
+
Roboto,
|
|
28
|
+
Helvetica Neue,
|
|
29
|
+
Arial,
|
|
30
|
+
Noto Sans,
|
|
31
|
+
sans-serif,
|
|
32
|
+
Apple Color Emoji,
|
|
33
|
+
Segoe UI Emoji,
|
|
34
|
+
Segoe UI Symbol,
|
|
35
|
+
Noto Color Emoji;
|
|
36
|
+
}
|
|
37
|
+
body {
|
|
38
|
+
margin: 0;
|
|
39
|
+
line-height: inherit;
|
|
40
|
+
}
|
|
41
|
+
hr {
|
|
42
|
+
height: 0;
|
|
43
|
+
color: inherit;
|
|
44
|
+
border-top-width: 1px;
|
|
45
|
+
}
|
|
46
|
+
abbr[title] {
|
|
47
|
+
-webkit-text-decoration: underline dotted;
|
|
48
|
+
text-decoration: underline dotted;
|
|
49
|
+
}
|
|
50
|
+
h1,
|
|
51
|
+
h2,
|
|
52
|
+
h3,
|
|
53
|
+
h4,
|
|
54
|
+
h5,
|
|
55
|
+
h6 {
|
|
56
|
+
font-size: inherit;
|
|
57
|
+
font-weight: inherit;
|
|
58
|
+
}
|
|
59
|
+
a {
|
|
60
|
+
color: inherit;
|
|
61
|
+
text-decoration: inherit;
|
|
62
|
+
}
|
|
63
|
+
b,
|
|
64
|
+
strong {
|
|
65
|
+
font-weight: bolder;
|
|
66
|
+
}
|
|
67
|
+
code,
|
|
68
|
+
kbd,
|
|
69
|
+
samp,
|
|
70
|
+
pre {
|
|
71
|
+
font-family:
|
|
72
|
+
ui-monospace,
|
|
73
|
+
SFMono-Regular,
|
|
74
|
+
Menlo,
|
|
75
|
+
Monaco,
|
|
76
|
+
Consolas,
|
|
77
|
+
Liberation Mono,
|
|
78
|
+
Courier New,
|
|
79
|
+
monospace;
|
|
80
|
+
font-size: 1em;
|
|
81
|
+
}
|
|
82
|
+
small {
|
|
83
|
+
font-size: 80%;
|
|
84
|
+
}
|
|
85
|
+
sub,
|
|
86
|
+
sup {
|
|
87
|
+
font-size: 75%;
|
|
88
|
+
line-height: 0;
|
|
89
|
+
position: relative;
|
|
90
|
+
vertical-align: baseline;
|
|
91
|
+
}
|
|
92
|
+
sub {
|
|
93
|
+
bottom: -0.25em;
|
|
94
|
+
}
|
|
95
|
+
sup {
|
|
96
|
+
top: -0.5em;
|
|
97
|
+
}
|
|
98
|
+
table {
|
|
99
|
+
text-indent: 0;
|
|
100
|
+
border-color: inherit;
|
|
101
|
+
border-collapse: collapse;
|
|
102
|
+
}
|
|
103
|
+
button,
|
|
104
|
+
input,
|
|
105
|
+
optgroup,
|
|
106
|
+
select,
|
|
107
|
+
textarea {
|
|
108
|
+
font-family: inherit;
|
|
109
|
+
font-size: 100%;
|
|
110
|
+
line-height: inherit;
|
|
111
|
+
color: inherit;
|
|
112
|
+
margin: 0;
|
|
113
|
+
padding: 0;
|
|
114
|
+
}
|
|
115
|
+
button,
|
|
116
|
+
select {
|
|
117
|
+
text-transform: none;
|
|
118
|
+
}
|
|
119
|
+
button,
|
|
120
|
+
[type=button],
|
|
121
|
+
[type=reset],
|
|
122
|
+
[type=submit] {
|
|
123
|
+
-webkit-appearance: button;
|
|
124
|
+
background-color: transparent;
|
|
125
|
+
background-image: none;
|
|
126
|
+
}
|
|
127
|
+
:-moz-focusring {
|
|
128
|
+
outline: auto;
|
|
129
|
+
}
|
|
130
|
+
:-moz-ui-invalid {
|
|
131
|
+
box-shadow: none;
|
|
132
|
+
}
|
|
133
|
+
progress {
|
|
134
|
+
vertical-align: baseline;
|
|
135
|
+
}
|
|
136
|
+
::-webkit-inner-spin-button,
|
|
137
|
+
::-webkit-outer-spin-button {
|
|
138
|
+
height: auto;
|
|
139
|
+
}
|
|
140
|
+
[type=search] {
|
|
141
|
+
-webkit-appearance: textfield;
|
|
142
|
+
outline-offset: -2px;
|
|
143
|
+
}
|
|
144
|
+
::-webkit-search-decoration {
|
|
145
|
+
-webkit-appearance: none;
|
|
146
|
+
}
|
|
147
|
+
::-webkit-file-upload-button {
|
|
148
|
+
-webkit-appearance: button;
|
|
149
|
+
font: inherit;
|
|
150
|
+
}
|
|
151
|
+
summary {
|
|
152
|
+
display: list-item;
|
|
153
|
+
}
|
|
154
|
+
blockquote,
|
|
155
|
+
dl,
|
|
156
|
+
dd,
|
|
157
|
+
h1,
|
|
158
|
+
h2,
|
|
159
|
+
h3,
|
|
160
|
+
h4,
|
|
161
|
+
h5,
|
|
162
|
+
h6,
|
|
163
|
+
hr,
|
|
164
|
+
figure,
|
|
165
|
+
p,
|
|
166
|
+
pre {
|
|
167
|
+
margin: 0;
|
|
168
|
+
}
|
|
169
|
+
fieldset {
|
|
170
|
+
margin: 0;
|
|
171
|
+
padding: 0;
|
|
172
|
+
}
|
|
173
|
+
legend {
|
|
174
|
+
padding: 0;
|
|
175
|
+
}
|
|
176
|
+
ol,
|
|
177
|
+
ul,
|
|
178
|
+
menu {
|
|
179
|
+
list-style: none;
|
|
180
|
+
margin: 0;
|
|
181
|
+
padding: 0;
|
|
182
|
+
}
|
|
183
|
+
textarea {
|
|
184
|
+
resize: vertical;
|
|
185
|
+
}
|
|
186
|
+
input::-moz-placeholder,
|
|
187
|
+
textarea::-moz-placeholder {
|
|
188
|
+
opacity: 1;
|
|
189
|
+
color: #9CA3AF;
|
|
190
|
+
}
|
|
191
|
+
input:-ms-input-placeholder,
|
|
192
|
+
textarea:-ms-input-placeholder {
|
|
193
|
+
opacity: 1;
|
|
194
|
+
color: #9CA3AF;
|
|
195
|
+
}
|
|
196
|
+
input::placeholder,
|
|
197
|
+
textarea::placeholder {
|
|
198
|
+
opacity: 1;
|
|
199
|
+
color: #9CA3AF;
|
|
200
|
+
}
|
|
201
|
+
button,
|
|
202
|
+
[role=button] {
|
|
203
|
+
cursor: pointer;
|
|
204
|
+
}
|
|
205
|
+
:disabled {
|
|
206
|
+
cursor: default;
|
|
207
|
+
}
|
|
208
|
+
img,
|
|
209
|
+
svg,
|
|
210
|
+
video,
|
|
211
|
+
canvas,
|
|
212
|
+
audio,
|
|
213
|
+
iframe,
|
|
214
|
+
embed,
|
|
215
|
+
object {
|
|
216
|
+
display: block;
|
|
217
|
+
vertical-align: middle;
|
|
218
|
+
}
|
|
219
|
+
img,
|
|
220
|
+
video {
|
|
221
|
+
max-width: 100%;
|
|
222
|
+
height: auto;
|
|
223
|
+
}
|
|
224
|
+
[hidden] {
|
|
225
|
+
display: none;
|
|
226
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
|
|
3
|
+
interface ButtonProps {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}
|
|
6
|
+
declare function Button(props: ButtonProps): JSX.Element;
|
|
7
|
+
declare namespace Button {
|
|
8
|
+
var displayName: string;
|
|
9
|
+
}
|
|
2
10
|
|
|
3
11
|
export { Button };
|
package/dist/index.js
CHANGED
|
@@ -31,20 +31,15 @@ var src_exports = {};
|
|
|
31
31
|
__export(src_exports, {
|
|
32
32
|
Button: () => Button
|
|
33
33
|
});
|
|
34
|
+
|
|
35
|
+
// src/Button.tsx
|
|
34
36
|
var React = __toESM(require("react"));
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
padding: 16
|
|
42
|
-
}
|
|
43
|
-
}, /* @__PURE__ */ React.createElement("p", null, "This is component iadasdfsdfdffsfsds from ", /* @__PURE__ */ React.createElement("code", null, "ui")), /* @__PURE__ */ React.createElement("p", null, /* @__PURE__ */ React.createElement("button", {
|
|
44
|
-
type: "button",
|
|
45
|
-
onClick: () => setCount((c) => c + 1)
|
|
46
|
-
}, "count ", count)));
|
|
47
|
-
};
|
|
37
|
+
function Button(props) {
|
|
38
|
+
return /* @__PURE__ */ React.createElement("button", {
|
|
39
|
+
className: "button-shadow underline"
|
|
40
|
+
}, props.children);
|
|
41
|
+
}
|
|
42
|
+
Button.displayName = "Button";
|
|
48
43
|
module.exports = __toCommonJS(src_exports);
|
|
49
44
|
// Annotate the CommonJS export names for ESM import in node:
|
|
50
45
|
0 && (module.exports = {
|
package/dist/index.mjs
CHANGED
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
// src/
|
|
1
|
+
// src/Button.tsx
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
padding: 16
|
|
10
|
-
}
|
|
11
|
-
}, /* @__PURE__ */ React.createElement("p", null, "This is component iadasdfsdfdffsfsds from ", /* @__PURE__ */ React.createElement("code", null, "ui")), /* @__PURE__ */ React.createElement("p", null, /* @__PURE__ */ React.createElement("button", {
|
|
12
|
-
type: "button",
|
|
13
|
-
onClick: () => setCount((c) => c + 1)
|
|
14
|
-
}, "count ", count)));
|
|
15
|
-
};
|
|
3
|
+
function Button(props) {
|
|
4
|
+
return /* @__PURE__ */ React.createElement("button", {
|
|
5
|
+
className: "button-shadow underline"
|
|
6
|
+
}, props.children);
|
|
7
|
+
}
|
|
8
|
+
Button.displayName = "Button";
|
|
16
9
|
export {
|
|
17
10
|
Button
|
|
18
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bbki.ng/components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -10,21 +10,30 @@
|
|
|
10
10
|
"dist/**"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "tsup src/index.tsx --format esm,cjs --dts --external react",
|
|
14
|
-
"dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react",
|
|
15
|
-
"lint": "
|
|
13
|
+
"build": "tsup src/index.tsx --format esm,cjs --dts --external react --external classnames --external react-router-dom",
|
|
14
|
+
"dev": "tsup src/index.tsx --format esm,cjs --watch --dts --external react --external classnames --external react-router-dom",
|
|
15
|
+
"lint": "prettier --write \"**/*.{ts,tsx,md}\"",
|
|
16
16
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@bbki.ng/tsconfig": "1.0.2",
|
|
20
19
|
"@bbki.ng/eslint-preset": "1.0.2",
|
|
20
|
+
"@bbki.ng/tsconfig": "1.1.0",
|
|
21
21
|
"@types/react": "^17.0.13",
|
|
22
22
|
"@types/react-dom": "^17.0.8",
|
|
23
|
+
"@types/react-router-dom": "^5.3.2",
|
|
24
|
+
"autoprefixer": "^10.4.0",
|
|
25
|
+
"postcss": "^8.4.5",
|
|
26
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
23
27
|
"react": "^17.0.2",
|
|
28
|
+
"tailwindcss": "^3.0.7",
|
|
24
29
|
"tsup": "^5.10.1",
|
|
25
30
|
"typescript": "^4.5.3"
|
|
26
31
|
},
|
|
27
32
|
"publishConfig": {
|
|
28
33
|
"access": "public"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"classnames": "^2.3.1",
|
|
37
|
+
"react-router-dom": "^6.2.1"
|
|
29
38
|
}
|
|
30
39
|
}
|