create-bestax 1.4.1 → 2.0.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/display.d.ts.map +1 -1
- package/dist/display.js +3 -0
- package/dist/index.js +11 -0
- package/package.json +5 -5
- package/templates/vite/public/react.svg +9 -0
- package/templates/vite/public/vite.svg +15 -0
- package/templates/vite/src/App.jsx +104 -106
- package/templates/vite-ts/public/react.svg +9 -0
- package/templates/vite-ts/public/vite.svg +15 -0
- package/templates/vite-ts/src/App.tsx +104 -106
package/dist/display.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../src/display.ts"],"names":[],"mappings":"AAIA,wBAAgB,aAAa,IAAI,IAAI,CAMpC;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"display.d.ts","sourceRoot":"","sources":["../src/display.ts"],"names":[],"mappings":"AAIA,wBAAgB,aAAa,IAAI,IAAI,CAMpC;AAED,wBAAgB,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAwBtD;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAElD;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEjD;AAED,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"}
|
package/dist/display.js
CHANGED
|
@@ -18,6 +18,9 @@ export function displaySuccess(targetDir) {
|
|
|
18
18
|
console.log(chalk.cyan(' npm install'));
|
|
19
19
|
console.log(chalk.cyan(' npm run dev'));
|
|
20
20
|
console.log();
|
|
21
|
+
console.log(chalk.gray(' Your app includes a beautiful logo-centric homepage'));
|
|
22
|
+
console.log(chalk.gray(' showcasing Bestax, Vite, and React branding.'));
|
|
23
|
+
console.log();
|
|
21
24
|
console.log(chalk.dim(MESSAGES.HAPPY_CODING));
|
|
22
25
|
console.log();
|
|
23
26
|
console.log(chalk.yellow(`${figures.star} If you enjoy using bestax-bulma, please star us on GitHub!`));
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createCLI } from './cli.js';
|
|
3
|
+
import chalk from 'chalk';
|
|
4
|
+
// Check Node.js version requirement (Breaking change for v2.0.0)
|
|
5
|
+
const currentNodeVersion = process.versions.node;
|
|
6
|
+
const majorVersion = parseInt(currentNodeVersion.split('.')[0], 10);
|
|
7
|
+
const MINIMUM_NODE_VERSION = 18;
|
|
8
|
+
if (majorVersion < MINIMUM_NODE_VERSION) {
|
|
9
|
+
console.error(chalk.red(`Error: create-bestax requires Node.js v${MINIMUM_NODE_VERSION}.0.0 or higher.\n` +
|
|
10
|
+
`You are currently running Node.js v${currentNodeVersion}.\n` +
|
|
11
|
+
`Please upgrade your Node.js version.`));
|
|
12
|
+
process.exit(1);
|
|
13
|
+
}
|
|
3
14
|
const program = createCLI();
|
|
4
15
|
program.parse();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-bestax",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Create a new bestax-bulma project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -38,6 +38,9 @@
|
|
|
38
38
|
],
|
|
39
39
|
"author": "Alex Smith",
|
|
40
40
|
"license": "MIT",
|
|
41
|
+
"engines": {
|
|
42
|
+
"node": ">=18.0.0"
|
|
43
|
+
},
|
|
41
44
|
"repository": {
|
|
42
45
|
"type": "git",
|
|
43
46
|
"url": "git+https://github.com/allxsmith/bestax.git",
|
|
@@ -48,7 +51,7 @@
|
|
|
48
51
|
"url": "https://github.com/allxsmith/bestax/issues"
|
|
49
52
|
},
|
|
50
53
|
"dependencies": {
|
|
51
|
-
"@allxsmith/bestax-bulma": "2.
|
|
54
|
+
"@allxsmith/bestax-bulma": "^2.6.1",
|
|
52
55
|
"chalk": "^5.3.0",
|
|
53
56
|
"commander": "^12.0.0",
|
|
54
57
|
"figures": "^3.2.0",
|
|
@@ -67,9 +70,6 @@
|
|
|
67
70
|
"typescript": "^5.3.3",
|
|
68
71
|
"wait-on": "^8.0.1"
|
|
69
72
|
},
|
|
70
|
-
"engines": {
|
|
71
|
-
"node": ">=18.0.0"
|
|
72
|
-
},
|
|
73
73
|
"publishConfig": {
|
|
74
74
|
"access": "public"
|
|
75
75
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-11.5 -10.23174 23 20.46348">
|
|
2
|
+
<title>React Logo</title>
|
|
3
|
+
<circle cx="0" cy="0" r="2.05" fill="#61dafb"/>
|
|
4
|
+
<g stroke="#61dafb" stroke-width="1" fill="none">
|
|
5
|
+
<ellipse rx="11" ry="4.2"/>
|
|
6
|
+
<ellipse rx="11" ry="4.2" transform="rotate(60)"/>
|
|
7
|
+
<ellipse rx="11" ry="4.2" transform="rotate(120)"/>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg width="410" height="404" viewBox="0 0 410 404" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M399.641 59.5246L215.643 388.545C211.844 395.338 202.084 395.378 198.228 388.618L10.5817 59.5563C6.38087 52.1896 12.6802 43.2665 21.0281 44.7586L205.223 77.6824C206.398 77.8924 207.601 77.8904 208.776 77.6763L389.119 44.8058C397.439 43.2894 403.768 52.1434 399.641 59.5246Z" fill="url(#paint0_linear)"/>
|
|
3
|
+
<path d="M292.965 1.5744L156.801 28.2552C154.563 28.6937 152.906 30.5903 152.771 32.8664L144.395 174.33C144.198 177.662 147.258 180.248 150.51 179.498L188.42 170.749C191.967 169.931 195.172 173.055 194.443 176.622L183.18 231.775C182.422 235.487 185.907 238.661 189.532 237.56L212.947 230.446C216.577 229.344 220.065 232.527 219.297 236.242L201.398 322.875C200.278 328.294 207.486 331.249 210.492 326.603L212.5 323.5L323.454 102.072C325.312 98.3645 322.108 94.137 318.036 94.9228L279.014 102.454C275.347 103.161 272.227 99.746 273.262 96.1583L298.731 7.86689C299.767 4.27314 296.636 0.855181 292.965 1.5744Z" fill="url(#paint1_linear)"/>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="paint0_linear" x1="6.00017" y1="32.9999" x2="235" y2="344" gradientUnits="userSpaceOnUse">
|
|
6
|
+
<stop stop-color="#41D1FF"/>
|
|
7
|
+
<stop offset="1" stop-color="#BD34FE"/>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<linearGradient id="paint1_linear" x1="194.651" y1="8.81818" x2="236.076" y2="292.989" gradientUnits="userSpaceOnUse">
|
|
10
|
+
<stop stop-color="#FFEA83"/>
|
|
11
|
+
<stop offset="0.0833333" stop-color="#FFDD35"/>
|
|
12
|
+
<stop offset="1" stop-color="#FFA800"/>
|
|
13
|
+
</linearGradient>
|
|
14
|
+
</defs>
|
|
15
|
+
</svg>
|
|
@@ -2,6 +2,7 @@ import { useState } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
4
|
Button,
|
|
5
|
+
Image,
|
|
5
6
|
Title,
|
|
6
7
|
SubTitle,
|
|
7
8
|
Notification,
|
|
@@ -10,7 +11,6 @@ import {
|
|
|
10
11
|
Container,
|
|
11
12
|
Section,
|
|
12
13
|
Card,
|
|
13
|
-
Hero,
|
|
14
14
|
Buttons,
|
|
15
15
|
} from '@allxsmith/bestax-bulma';
|
|
16
16
|
import './App.css';
|
|
@@ -21,124 +21,122 @@ function App() {
|
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<>
|
|
24
|
-
<
|
|
25
|
-
<Hero.Body>
|
|
26
|
-
<Container>
|
|
27
|
-
<Title size="1" textAlign="centered" textColor="white">
|
|
28
|
-
Welcome to Bestax + Vite
|
|
29
|
-
</Title>
|
|
30
|
-
<SubTitle size="3" textAlign="centered" textColor="white">
|
|
31
|
-
Build amazing React apps with Bulma components
|
|
32
|
-
</SubTitle>
|
|
33
|
-
</Container>
|
|
34
|
-
</Hero.Body>
|
|
35
|
-
</Hero>
|
|
36
|
-
|
|
37
|
-
<Container>
|
|
24
|
+
<Container breakpoint="desktop" isMax>
|
|
38
25
|
<Section>
|
|
39
26
|
<Columns isCentered>
|
|
40
|
-
<Column
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
27
|
+
<Column isNarrow display="flex" justifyContent="center">
|
|
28
|
+
<Image src="/bestax.svg" alt="Bestax" size="128x128" />
|
|
29
|
+
</Column>
|
|
30
|
+
<Column isNarrow display="flex" justifyContent="center">
|
|
31
|
+
<Image src="/vite.svg" alt="Vite" size="128x128" />
|
|
32
|
+
</Column>
|
|
33
|
+
<Column isNarrow display="flex" justifyContent="center">
|
|
34
|
+
<Image src="/react.svg" alt="React" size="128x128" />
|
|
35
|
+
</Column>
|
|
36
|
+
</Columns>
|
|
37
|
+
<Title size="1" textAlign="centered">
|
|
38
|
+
Bestax + Vite + React
|
|
39
|
+
</Title>
|
|
40
|
+
</Section>
|
|
41
|
+
|
|
42
|
+
<Box>
|
|
43
|
+
<Title size="3">Get Started</Title>
|
|
44
|
+
<SubTitle size="5" textColor="grey">
|
|
45
|
+
This template includes everything you need to build with
|
|
46
|
+
bestax-bulma
|
|
47
|
+
</SubTitle>
|
|
48
|
+
</Box>
|
|
47
49
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
<Columns>
|
|
51
|
+
<Column display="flex">
|
|
52
|
+
<Card flexGrow="1" flexShrink="1">
|
|
53
|
+
<Card.Header>
|
|
54
|
+
<Card.Header.Title>Quick Start</Card.Header.Title>
|
|
55
|
+
</Card.Header>
|
|
56
|
+
<Card.Content>
|
|
57
|
+
Edit src/App.jsx and save to test HMR updates.
|
|
58
|
+
</Card.Content>
|
|
59
|
+
</Card>
|
|
60
|
+
</Column>
|
|
59
61
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
<Column display="flex">
|
|
63
|
+
<Card flexGrow="1" flexShrink="1">
|
|
64
|
+
<Card.Header>
|
|
65
|
+
<Card.Header.Title>Documentation</Card.Header.Title>
|
|
66
|
+
</Card.Header>
|
|
67
|
+
<Card.Content>
|
|
68
|
+
Visit{' '}
|
|
69
|
+
<a
|
|
70
|
+
href="https://bestax.io"
|
|
71
|
+
target="_blank"
|
|
72
|
+
rel="noopener noreferrer"
|
|
73
|
+
>
|
|
74
|
+
bestax.io
|
|
75
|
+
</a>{' '}
|
|
76
|
+
for component docs.
|
|
77
|
+
</Card.Content>
|
|
78
|
+
</Card>
|
|
79
|
+
</Column>
|
|
78
80
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
</Box>
|
|
81
|
+
<Column display="flex">
|
|
82
|
+
<Card flexGrow="1" flexShrink="1">
|
|
83
|
+
<Card.Header>
|
|
84
|
+
<Card.Header.Title>Examples</Card.Header.Title>
|
|
85
|
+
</Card.Header>
|
|
86
|
+
<Card.Content>
|
|
87
|
+
Check the examples below to see components in action.
|
|
88
|
+
</Card.Content>
|
|
89
|
+
</Card>
|
|
90
|
+
</Column>
|
|
91
|
+
</Columns>
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
<Box>
|
|
94
|
+
<Title size="4">Interactive Example</Title>
|
|
94
95
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
<Columns isVCentered>
|
|
97
|
+
<Column size="half">
|
|
98
|
+
<Buttons>
|
|
99
|
+
<Button
|
|
100
|
+
color="primary"
|
|
101
|
+
onClick={() => setShowNotification(!showNotification)}
|
|
102
|
+
>
|
|
103
|
+
Toggle Notification
|
|
104
|
+
</Button>
|
|
104
105
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
<Button color="info" onClick={() => setCount(count + 1)}>
|
|
107
|
+
Count: {count}
|
|
108
|
+
</Button>
|
|
108
109
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
110
|
+
<Button
|
|
111
|
+
color="warning"
|
|
112
|
+
onClick={() => setCount(0)}
|
|
113
|
+
disabled={count === 0}
|
|
114
|
+
>
|
|
115
|
+
Reset
|
|
116
|
+
</Button>
|
|
117
|
+
</Buttons>
|
|
118
|
+
</Column>
|
|
118
119
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
120
|
+
<Column size="half">
|
|
121
|
+
{showNotification && (
|
|
122
|
+
<Notification
|
|
123
|
+
color="success"
|
|
124
|
+
isLight
|
|
125
|
+
onDelete={() => setShowNotification(false)}
|
|
126
|
+
>
|
|
127
|
+
<strong>Success!</strong> Your Vite + Bestax setup is working
|
|
128
|
+
perfectly!
|
|
129
|
+
</Notification>
|
|
130
|
+
)}
|
|
130
131
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
</Column>
|
|
137
|
-
</Columns>
|
|
138
|
-
</Box>
|
|
132
|
+
{count > 10 && (
|
|
133
|
+
<Notification color="info" isLight>
|
|
134
|
+
You've clicked the button {count} times!
|
|
135
|
+
</Notification>
|
|
136
|
+
)}
|
|
139
137
|
</Column>
|
|
140
138
|
</Columns>
|
|
141
|
-
</
|
|
139
|
+
</Box>
|
|
142
140
|
</Container>
|
|
143
141
|
</>
|
|
144
142
|
);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-11.5 -10.23174 23 20.46348">
|
|
2
|
+
<title>React Logo</title>
|
|
3
|
+
<circle cx="0" cy="0" r="2.05" fill="#61dafb"/>
|
|
4
|
+
<g stroke="#61dafb" stroke-width="1" fill="none">
|
|
5
|
+
<ellipse rx="11" ry="4.2"/>
|
|
6
|
+
<ellipse rx="11" ry="4.2" transform="rotate(60)"/>
|
|
7
|
+
<ellipse rx="11" ry="4.2" transform="rotate(120)"/>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg width="410" height="404" viewBox="0 0 410 404" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M399.641 59.5246L215.643 388.545C211.844 395.338 202.084 395.378 198.228 388.618L10.5817 59.5563C6.38087 52.1896 12.6802 43.2665 21.0281 44.7586L205.223 77.6824C206.398 77.8924 207.601 77.8904 208.776 77.6763L389.119 44.8058C397.439 43.2894 403.768 52.1434 399.641 59.5246Z" fill="url(#paint0_linear)"/>
|
|
3
|
+
<path d="M292.965 1.5744L156.801 28.2552C154.563 28.6937 152.906 30.5903 152.771 32.8664L144.395 174.33C144.198 177.662 147.258 180.248 150.51 179.498L188.42 170.749C191.967 169.931 195.172 173.055 194.443 176.622L183.18 231.775C182.422 235.487 185.907 238.661 189.532 237.56L212.947 230.446C216.577 229.344 220.065 232.527 219.297 236.242L201.398 322.875C200.278 328.294 207.486 331.249 210.492 326.603L212.5 323.5L323.454 102.072C325.312 98.3645 322.108 94.137 318.036 94.9228L279.014 102.454C275.347 103.161 272.227 99.746 273.262 96.1583L298.731 7.86689C299.767 4.27314 296.636 0.855181 292.965 1.5744Z" fill="url(#paint1_linear)"/>
|
|
4
|
+
<defs>
|
|
5
|
+
<linearGradient id="paint0_linear" x1="6.00017" y1="32.9999" x2="235" y2="344" gradientUnits="userSpaceOnUse">
|
|
6
|
+
<stop stop-color="#41D1FF"/>
|
|
7
|
+
<stop offset="1" stop-color="#BD34FE"/>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<linearGradient id="paint1_linear" x1="194.651" y1="8.81818" x2="236.076" y2="292.989" gradientUnits="userSpaceOnUse">
|
|
10
|
+
<stop stop-color="#FFEA83"/>
|
|
11
|
+
<stop offset="0.0833333" stop-color="#FFDD35"/>
|
|
12
|
+
<stop offset="1" stop-color="#FFA800"/>
|
|
13
|
+
</linearGradient>
|
|
14
|
+
</defs>
|
|
15
|
+
</svg>
|
|
@@ -2,6 +2,7 @@ import { useState } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Box,
|
|
4
4
|
Button,
|
|
5
|
+
Image,
|
|
5
6
|
Title,
|
|
6
7
|
SubTitle,
|
|
7
8
|
Notification,
|
|
@@ -10,7 +11,6 @@ import {
|
|
|
10
11
|
Container,
|
|
11
12
|
Section,
|
|
12
13
|
Card,
|
|
13
|
-
Hero,
|
|
14
14
|
Buttons,
|
|
15
15
|
} from '@allxsmith/bestax-bulma';
|
|
16
16
|
import './App.css';
|
|
@@ -21,124 +21,122 @@ function App() {
|
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<>
|
|
24
|
-
<
|
|
25
|
-
<Hero.Body>
|
|
26
|
-
<Container>
|
|
27
|
-
<Title size="1" textAlign="centered">
|
|
28
|
-
Welcome to Bestax + Vite + TypeScript
|
|
29
|
-
</Title>
|
|
30
|
-
<SubTitle size="3" textAlign="centered">
|
|
31
|
-
Build amazing React apps with Bulma components
|
|
32
|
-
</SubTitle>
|
|
33
|
-
</Container>
|
|
34
|
-
</Hero.Body>
|
|
35
|
-
</Hero>
|
|
36
|
-
|
|
37
|
-
<Container>
|
|
24
|
+
<Container breakpoint="desktop" isMax>
|
|
38
25
|
<Section>
|
|
39
26
|
<Columns isCentered>
|
|
40
|
-
<Column
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
27
|
+
<Column isNarrow display="flex" justifyContent="center">
|
|
28
|
+
<Image src="/bestax.svg" alt="Bestax" size="128x128" />
|
|
29
|
+
</Column>
|
|
30
|
+
<Column isNarrow display="flex" justifyContent="center">
|
|
31
|
+
<Image src="/vite.svg" alt="Vite" size="128x128" />
|
|
32
|
+
</Column>
|
|
33
|
+
<Column isNarrow display="flex" justifyContent="center">
|
|
34
|
+
<Image src="/react.svg" alt="React" size="128x128" />
|
|
35
|
+
</Column>
|
|
36
|
+
</Columns>
|
|
37
|
+
<Title size="1" textAlign="centered">
|
|
38
|
+
Bestax + Vite + React
|
|
39
|
+
</Title>
|
|
40
|
+
</Section>
|
|
41
|
+
|
|
42
|
+
<Box>
|
|
43
|
+
<Title size="3">Get Started</Title>
|
|
44
|
+
<SubTitle size="5" textColor="grey">
|
|
45
|
+
This template includes everything you need to build with
|
|
46
|
+
bestax-bulma
|
|
47
|
+
</SubTitle>
|
|
48
|
+
</Box>
|
|
47
49
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
50
|
+
<Columns>
|
|
51
|
+
<Column display="flex">
|
|
52
|
+
<Card flexGrow="1" flexShrink="1">
|
|
53
|
+
<Card.Header>
|
|
54
|
+
<Card.Header.Title>Quick Start</Card.Header.Title>
|
|
55
|
+
</Card.Header>
|
|
56
|
+
<Card.Content>
|
|
57
|
+
Edit src/App.tsx and save to test HMR updates.
|
|
58
|
+
</Card.Content>
|
|
59
|
+
</Card>
|
|
60
|
+
</Column>
|
|
59
61
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
62
|
+
<Column display="flex">
|
|
63
|
+
<Card flexGrow="1" flexShrink="1">
|
|
64
|
+
<Card.Header>
|
|
65
|
+
<Card.Header.Title>Documentation</Card.Header.Title>
|
|
66
|
+
</Card.Header>
|
|
67
|
+
<Card.Content>
|
|
68
|
+
Visit{' '}
|
|
69
|
+
<a
|
|
70
|
+
href="https://bestax.io"
|
|
71
|
+
target="_blank"
|
|
72
|
+
rel="noopener noreferrer"
|
|
73
|
+
>
|
|
74
|
+
bestax.io
|
|
75
|
+
</a>{' '}
|
|
76
|
+
for component docs.
|
|
77
|
+
</Card.Content>
|
|
78
|
+
</Card>
|
|
79
|
+
</Column>
|
|
78
80
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
</Box>
|
|
81
|
+
<Column display="flex">
|
|
82
|
+
<Card flexGrow="1" flexShrink="1">
|
|
83
|
+
<Card.Header>
|
|
84
|
+
<Card.Header.Title>Examples</Card.Header.Title>
|
|
85
|
+
</Card.Header>
|
|
86
|
+
<Card.Content>
|
|
87
|
+
Check the examples below to see components in action.
|
|
88
|
+
</Card.Content>
|
|
89
|
+
</Card>
|
|
90
|
+
</Column>
|
|
91
|
+
</Columns>
|
|
91
92
|
|
|
92
|
-
|
|
93
|
-
|
|
93
|
+
<Box>
|
|
94
|
+
<Title size="4">Interactive Example</Title>
|
|
94
95
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
<Columns isVCentered>
|
|
97
|
+
<Column size="half">
|
|
98
|
+
<Buttons>
|
|
99
|
+
<Button
|
|
100
|
+
color="primary"
|
|
101
|
+
onClick={() => setShowNotification(!showNotification)}
|
|
102
|
+
>
|
|
103
|
+
Toggle Notification
|
|
104
|
+
</Button>
|
|
104
105
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
106
|
+
<Button color="info" onClick={() => setCount(count + 1)}>
|
|
107
|
+
Count: {count}
|
|
108
|
+
</Button>
|
|
108
109
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
110
|
+
<Button
|
|
111
|
+
color="warning"
|
|
112
|
+
onClick={() => setCount(0)}
|
|
113
|
+
disabled={count === 0}
|
|
114
|
+
>
|
|
115
|
+
Reset
|
|
116
|
+
</Button>
|
|
117
|
+
</Buttons>
|
|
118
|
+
</Column>
|
|
118
119
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
120
|
+
<Column size="half">
|
|
121
|
+
{showNotification && (
|
|
122
|
+
<Notification
|
|
123
|
+
color="success"
|
|
124
|
+
isLight
|
|
125
|
+
onDelete={() => setShowNotification(false)}
|
|
126
|
+
>
|
|
127
|
+
<strong>Success!</strong> Your Vite + Bestax setup is working
|
|
128
|
+
perfectly!
|
|
129
|
+
</Notification>
|
|
130
|
+
)}
|
|
130
131
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
</Column>
|
|
137
|
-
</Columns>
|
|
138
|
-
</Box>
|
|
132
|
+
{count > 10 && (
|
|
133
|
+
<Notification color="info" isLight>
|
|
134
|
+
You've clicked the button {count} times!
|
|
135
|
+
</Notification>
|
|
136
|
+
)}
|
|
139
137
|
</Column>
|
|
140
138
|
</Columns>
|
|
141
|
-
</
|
|
139
|
+
</Box>
|
|
142
140
|
</Container>
|
|
143
141
|
</>
|
|
144
142
|
);
|