swiftcn 1.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/commands/add.d.ts +4 -0
- package/dist/commands/add.d.ts.map +1 -0
- package/dist/commands/add.js +109 -0
- package/dist/commands/add.js.map +1 -0
- package/dist/commands/init.d.ts +4 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +152 -0
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/list.d.ts +4 -0
- package/dist/commands/list.d.ts.map +1 -0
- package/dist/commands/list.js +67 -0
- package/dist/commands/list.js.map +1 -0
- package/dist/container.d.ts +11 -0
- package/dist/container.d.ts.map +1 -0
- package/dist/container.js +14 -0
- package/dist/container.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +58 -0
- package/dist/index.js.map +1 -0
- package/dist/services/ConfigService.d.ts +16 -0
- package/dist/services/ConfigService.d.ts.map +1 -0
- package/dist/services/ConfigService.js +27 -0
- package/dist/services/ConfigService.js.map +1 -0
- package/dist/services/FetcherService.d.ts +26 -0
- package/dist/services/FetcherService.d.ts.map +1 -0
- package/dist/services/FetcherService.js +60 -0
- package/dist/services/FetcherService.js.map +1 -0
- package/dist/services/FileService.d.ts +27 -0
- package/dist/services/FileService.d.ts.map +1 -0
- package/dist/services/FileService.js +46 -0
- package/dist/services/FileService.js.map +1 -0
- package/dist/services/GitService.d.ts +11 -0
- package/dist/services/GitService.d.ts.map +1 -0
- package/dist/services/GitService.js +21 -0
- package/dist/services/GitService.js.map +1 -0
- package/dist/services/RegistryService.d.ts +20 -0
- package/dist/services/RegistryService.d.ts.map +1 -0
- package/dist/services/RegistryService.js +43 -0
- package/dist/services/RegistryService.js.map +1 -0
- package/dist/services/index.d.ts +6 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +6 -0
- package/dist/services/index.js.map +1 -0
- package/dist/types/config.schema.d.ts +22 -0
- package/dist/types/config.schema.d.ts.map +1 -0
- package/dist/types/config.schema.js +9 -0
- package/dist/types/config.schema.js.map +1 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +4 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/options.schema.d.ts +47 -0
- package/dist/types/options.schema.d.ts.map +1 -0
- package/dist/types/options.schema.js +18 -0
- package/dist/types/options.schema.js.map +1 -0
- package/dist/types/registry.schema.d.ts +187 -0
- package/dist/types/registry.schema.d.ts.map +1 -0
- package/dist/types/registry.schema.js +39 -0
- package/dist/types/registry.schema.js.map +1 -0
- package/dist/utils/constants.d.ts +27 -0
- package/dist/utils/constants.d.ts.map +1 -0
- package/dist/utils/constants.js +33 -0
- package/dist/utils/constants.js.map +1 -0
- package/dist/utils/errors.d.ts +25 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +34 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/paths.d.ts +34 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +87 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/ui.d.ts +35 -0
- package/dist/utils/ui.d.ts.map +1 -0
- package/dist/utils/ui.js +115 -0
- package/dist/utils/ui.js.map +1 -0
- package/package.json +54 -0
- package/registry.json +133 -0
package/registry.json
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://swiftcn.dev/schema.json",
|
|
3
|
+
"name": "swiftcn",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "shadcn/ui inspired SwiftUI component library",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"author": "swiftcn",
|
|
8
|
+
"repository": "https://github.com/Dicky019/swiftcn",
|
|
9
|
+
|
|
10
|
+
"config": {
|
|
11
|
+
"componentsPath": "Components",
|
|
12
|
+
"themePath": "Theme",
|
|
13
|
+
"sduiPath": "SDUI",
|
|
14
|
+
"platforms": ["iOS 17.0", "macOS 14.0"],
|
|
15
|
+
"prefix": "CN"
|
|
16
|
+
},
|
|
17
|
+
|
|
18
|
+
"theme": {
|
|
19
|
+
"core": [
|
|
20
|
+
"Theme/Core/Theme.swift",
|
|
21
|
+
"Theme/Core/ThemeTokens.swift",
|
|
22
|
+
"Theme/Core/Color+Hex.swift"
|
|
23
|
+
],
|
|
24
|
+
"palettes": [
|
|
25
|
+
"Theme/Palettes/ThemeDefaults.swift"
|
|
26
|
+
],
|
|
27
|
+
"provider": [
|
|
28
|
+
"Theme/Provider/ThemeProvider.swift",
|
|
29
|
+
"Theme/Provider/ThemeEnvironment.swift",
|
|
30
|
+
"Theme/Provider/ResolvedTheme.swift"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"components": {
|
|
35
|
+
"button": {
|
|
36
|
+
"name": "CNButton",
|
|
37
|
+
"description": "A customizable button with size and variant options",
|
|
38
|
+
"files": [
|
|
39
|
+
"Components/CNButton.swift"
|
|
40
|
+
],
|
|
41
|
+
"sdui_files": [
|
|
42
|
+
"Components/CNButton+SDUI.swift"
|
|
43
|
+
],
|
|
44
|
+
"variants": ["default", "destructive", "outline", "secondary", "ghost", "link"],
|
|
45
|
+
"sizes": ["sm", "md", "lg"],
|
|
46
|
+
"sduiType": "button",
|
|
47
|
+
"sduiProps": ["label", "variant", "size", "actionId"]
|
|
48
|
+
},
|
|
49
|
+
"card": {
|
|
50
|
+
"name": "CNCard",
|
|
51
|
+
"description": "A container with rounded corners and shadow",
|
|
52
|
+
"files": [
|
|
53
|
+
"Components/CNCard.swift"
|
|
54
|
+
],
|
|
55
|
+
"sdui_files": [
|
|
56
|
+
"Components/CNCard+SDUI.swift"
|
|
57
|
+
],
|
|
58
|
+
"variants": ["elevated", "outlined", "filled"],
|
|
59
|
+
"sduiType": "card",
|
|
60
|
+
"sduiProps": ["variant"]
|
|
61
|
+
},
|
|
62
|
+
"input": {
|
|
63
|
+
"name": "CNInput",
|
|
64
|
+
"description": "A text input with label and error states",
|
|
65
|
+
"files": [
|
|
66
|
+
"Components/CNInput.swift"
|
|
67
|
+
],
|
|
68
|
+
"sdui_files": [
|
|
69
|
+
"Components/CNInput+SDUI.swift"
|
|
70
|
+
],
|
|
71
|
+
"sduiType": "input",
|
|
72
|
+
"sduiProps": ["placeholder", "label", "isError", "errorMessage", "inputId"]
|
|
73
|
+
},
|
|
74
|
+
"switch": {
|
|
75
|
+
"name": "CNSwitch",
|
|
76
|
+
"description": "A toggle switch for boolean values",
|
|
77
|
+
"files": [
|
|
78
|
+
"Components/CNSwitch.swift"
|
|
79
|
+
],
|
|
80
|
+
"sdui_files": [
|
|
81
|
+
"Components/CNSwitch+SDUI.swift"
|
|
82
|
+
],
|
|
83
|
+
"sduiType": "switch",
|
|
84
|
+
"sduiProps": ["label", "isOn", "switchId"]
|
|
85
|
+
},
|
|
86
|
+
"badge": {
|
|
87
|
+
"name": "CNBadge",
|
|
88
|
+
"description": "A small status indicator badge",
|
|
89
|
+
"files": [
|
|
90
|
+
"Components/CNBadge.swift"
|
|
91
|
+
],
|
|
92
|
+
"sdui_files": [
|
|
93
|
+
"Components/CNBadge+SDUI.swift"
|
|
94
|
+
],
|
|
95
|
+
"variants": ["default", "secondary", "destructive", "outline"],
|
|
96
|
+
"sduiType": "badge",
|
|
97
|
+
"sduiProps": ["label", "variant"]
|
|
98
|
+
},
|
|
99
|
+
"slider": {
|
|
100
|
+
"name": "CNSlider",
|
|
101
|
+
"description": "A range input control",
|
|
102
|
+
"files": [
|
|
103
|
+
"Components/CNSlider.swift"
|
|
104
|
+
],
|
|
105
|
+
"sdui_files": [
|
|
106
|
+
"Components/CNSlider+SDUI.swift"
|
|
107
|
+
],
|
|
108
|
+
"sduiType": "slider",
|
|
109
|
+
"sduiProps": ["label", "value", "min", "max", "step", "sliderId"]
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
"sdui": {
|
|
114
|
+
"core": [
|
|
115
|
+
"SDUI/Core/AnyCodable.swift",
|
|
116
|
+
"SDUI/Core/SDUINode.swift",
|
|
117
|
+
"SDUI/Core/SDUIError.swift",
|
|
118
|
+
"SDUI/Rendering/SDUIRenderer.swift",
|
|
119
|
+
"SDUI/Rendering/SDUIRegistry.swift",
|
|
120
|
+
"SDUI/Actions/SDUIActionHandler.swift"
|
|
121
|
+
],
|
|
122
|
+
"wrappers": [
|
|
123
|
+
"SDUI/Wrappers/SDUIInputWrapper.swift",
|
|
124
|
+
"SDUI/Wrappers/SDUISwitchWrapper.swift",
|
|
125
|
+
"SDUI/Wrappers/SDUISliderWrapper.swift"
|
|
126
|
+
],
|
|
127
|
+
"transports": {
|
|
128
|
+
"json": "Built-in (Codable)",
|
|
129
|
+
"grpc": "Optional (grpc-swift)",
|
|
130
|
+
"websocket": "Optional (custom implementation)"
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|