@tachui/cli 0.8.11 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachui/cli",
3
- "version": "0.8.11",
3
+ "version": "0.9.0",
4
4
  "description": "Tacho CLI - Comprehensive developer tooling for tachUI",
5
5
  "homepage": "https://tachui.dev/",
6
6
  "type": "module",
@@ -25,8 +25,8 @@
25
25
  "inquirer": "^9.0.0",
26
26
  "cli-table3": "^0.6.0",
27
27
  "typescript": "^5.8.0",
28
- "@tachui/core": "0.8.11",
29
- "@tachui/devtools": "0.8.11"
28
+ "@tachui/core": "0.9.0",
29
+ "@tachui/devtools": "0.8.12"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/fs-extra": "^11.0.0",
@@ -10,7 +10,9 @@
10
10
  "typecheck": "tsc --noEmit"
11
11
  },
12
12
  "dependencies": {
13
- "@tachui/core": "{{TACHUI_VERSION}}"
13
+ "@tachui/core": "{{TACHUI_VERSION}}",
14
+ "@tachui/modifiers": "{{TACHUI_VERSION}}",
15
+ "@tachui/primitives": "{{TACHUI_VERSION}}"
14
16
  },
15
17
  "devDependencies": {
16
18
  "@types/node": "^20.0.0",
@@ -1,5 +1,6 @@
1
- import { Button, Layout, Text } from '@tachui/core'
1
+ import { Layout, Text } from '@tachui/core'
2
2
  import { State } from '@tachui/core/state'
3
+ import { Button } from '@tachui/primitives'
3
4
 
4
5
  export function App() {
5
6
  const count = State(0)
@@ -9,40 +10,29 @@ export function App() {
9
10
  Text('TachUI Advanced Starter')
10
11
  .fontSize(30)
11
12
  .fontWeight('bold')
12
- .margin({ bottom: 12 })
13
- .build(),
13
+ .margin({ bottom: 12 }),
14
14
 
15
15
  Text(() => `Counter: ${count.wrappedValue}`)
16
16
  .fontSize(20)
17
- .margin({ bottom: 20 })
18
- .build(),
17
+ .margin({ bottom: 20 }),
19
18
 
20
19
  Layout.HStack({
21
20
  children: [
22
- Button({
23
- title: '-',
24
- onTap: () => {
25
- count.wrappedValue -= 1
26
- },
21
+ Button('-', () => {
22
+ count.wrappedValue -= 1
27
23
  })
28
24
  .padding(10, 14)
29
- .cornerRadius(8)
30
- .build(),
25
+ .cornerRadius(8),
31
26
 
32
- Button({
33
- title: '+',
34
- onTap: () => {
35
- count.wrappedValue += 1
36
- },
27
+ Button('+', () => {
28
+ count.wrappedValue += 1
37
29
  })
38
30
  .padding(10, 14)
39
- .cornerRadius(8)
40
- .build(),
31
+ .cornerRadius(8),
41
32
  ],
42
33
  spacing: 12,
43
34
  alignment: 'center',
44
- })
45
- .build(),
35
+ }),
46
36
  ],
47
37
  spacing: 0,
48
38
  alignment: 'center',
@@ -50,5 +40,4 @@ export function App() {
50
40
  .frame(undefined, '100vh')
51
41
  .justifyContent('center')
52
42
  .alignItems('center')
53
- .build()
54
43
  }
@@ -1,4 +1,5 @@
1
- import { mount } from '@tachui/core'
1
+ import { mountRoot } from '@tachui/core'
2
+ import '@tachui/modifiers/preload/basic'
2
3
  import { App } from './App'
3
4
 
4
- mount('#app', App())
5
+ mountRoot(() => App())
@@ -10,7 +10,9 @@
10
10
  "typecheck": "tsc --noEmit"
11
11
  },
12
12
  "dependencies": {
13
- "@tachui/core": "{{TACHUI_VERSION}}"
13
+ "@tachui/core": "{{TACHUI_VERSION}}",
14
+ "@tachui/modifiers": "{{TACHUI_VERSION}}",
15
+ "@tachui/primitives": "{{TACHUI_VERSION}}"
14
16
  },
15
17
  "devDependencies": {
16
18
  "@types/node": "^20.0.0",
@@ -1,4 +1,5 @@
1
- import { Button, Layout, Text } from '@tachui/core'
1
+ import { Layout, Text } from '@tachui/core'
2
+ import { Button } from '@tachui/primitives'
2
3
 
3
4
  export function App() {
4
5
  return Layout.VStack({
@@ -6,24 +7,18 @@ export function App() {
6
7
  Text('Welcome to TachUI')
7
8
  .fontSize(30)
8
9
  .fontWeight('bold')
9
- .margin({ bottom: 12 })
10
- .build(),
10
+ .margin({ bottom: 12 }),
11
11
 
12
12
  Text('Your starter app is ready.')
13
13
  .fontSize(18)
14
14
  .foregroundColor('#666')
15
- .margin({ bottom: 24 })
16
- .build(),
15
+ .margin({ bottom: 24 }),
17
16
 
18
- Button({
19
- title: 'Get Started',
20
- onTap: () => console.log('TachUI starter ready'),
21
- })
17
+ Button('Get Started', () => console.log('TachUI starter ready'))
22
18
  .backgroundColor('#0a84ff')
23
19
  .foregroundColor('#fff')
24
20
  .padding(12, 20)
25
- .cornerRadius(10)
26
- .build(),
21
+ .cornerRadius(10),
27
22
  ],
28
23
  spacing: 0,
29
24
  alignment: 'center',
@@ -31,5 +26,4 @@ export function App() {
31
26
  .frame(undefined, '100vh')
32
27
  .justifyContent('center')
33
28
  .alignItems('center')
34
- .build()
35
29
  }
@@ -1,4 +1,5 @@
1
- import { mount } from '@tachui/core'
1
+ import { mountRoot } from '@tachui/core'
2
+ import '@tachui/modifiers/preload/basic'
2
3
  import { App } from './App'
3
4
 
4
- mount('#app', App())
5
+ mountRoot(() => App())