@slabui/theme-react 0.0.0-stage → 0.0.1
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/CHANGELOG.md +17 -0
- package/LICENSE +59 -0
- package/README.md +12 -2
- package/dist/editor/index.d.mts +7 -0
- package/dist/editor/index.d.mts.map +1 -0
- package/dist/editor/index.mjs +143 -0
- package/dist/editor/index.mjs.map +1 -0
- package/dist/next/index.d.mts +13 -0
- package/dist/next/index.d.mts.map +1 -0
- package/dist/next/index.mjs +2 -0
- package/dist/next/index.mjs.map +1 -0
- package/dist/server-CVSf3fOz.mjs +4 -0
- package/dist/server-CVSf3fOz.mjs.map +1 -0
- package/dist/vite/index.d.mts +10 -0
- package/dist/vite/index.d.mts.map +1 -0
- package/dist/vite/index.mjs +2 -0
- package/dist/vite/index.mjs.map +1 -0
- package/package.json +74 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# @slabui/theme-react
|
|
2
|
+
|
|
3
|
+
## 0.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#44](https://github.com/slabui/ui/pull/44) [`a03fb1e`](https://github.com/slabui/ui/commit/a03fb1e6cfaae16d96167545da30e368cf1335ce) Thanks [@andrefelipeschulle](https://github.com/andrefelipeschulle)! - Primeira versão pública dos pacotes da SlabUI:
|
|
8
|
+
|
|
9
|
+
- `slabui`: o comando que se usa no projeto (`npx slabui init`, `npx slabui add button`). Instala o `@slabui/cli`, que traz o `init`, `add`, `update`, `outdated`, `diff`, `search`, `info`, `login`/`logout` e `mcp`.
|
|
10
|
+
- `@slabui/mcp`: o servidor MCP do registry da SlabUI. Roda na máquina do desenvolvedor (`npx -y @slabui/mcp`, por stdio) e é o mesmo que responde em `https://slabui.com/mcp`.
|
|
11
|
+
- `@slabui/theme-react`: o editor de tema ao vivo e os plugins do Vite e do Next, que gravam as variáveis no CSS do projeto.
|
|
12
|
+
- `@slabui/theme-core`: o tema da SlabUI como variáveis CSS (ler, gravar e validar) e o atributo do tema ativo no `<html>`.
|
|
13
|
+
|
|
14
|
+
A documentação fica em https://slabui.com/docs.
|
|
15
|
+
|
|
16
|
+
- Updated dependencies [[`a03fb1e`](https://github.com/slabui/ui/commit/a03fb1e6cfaae16d96167545da30e368cf1335ce)]:
|
|
17
|
+
- @slabui/theme-core@0.0.1
|
package/LICENSE
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
SlabUI Software License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 BrainyLab Desenvolvimento de Software LTDA.
|
|
4
|
+
All rights reserved.
|
|
5
|
+
|
|
6
|
+
This license applies to the slabui, @slabui/cli, @slabui/mcp,
|
|
7
|
+
@slabui/theme-core and @slabui/theme-react packages (the "Software").
|
|
8
|
+
|
|
9
|
+
1. Grant
|
|
10
|
+
|
|
11
|
+
Subject to the terms of this license, BrainyLab grants you a worldwide,
|
|
12
|
+
non-exclusive, non-transferable, royalty-free license to install and run
|
|
13
|
+
the Software, in unmodified form, in any project, including commercial
|
|
14
|
+
projects and projects used to build other tools and products.
|
|
15
|
+
|
|
16
|
+
Output produced by running the Software (such as configuration files and
|
|
17
|
+
the files it writes into your project) is not covered by this license. Files
|
|
18
|
+
installed from a registry are covered by that registry's own license.
|
|
19
|
+
|
|
20
|
+
2. Restrictions
|
|
21
|
+
|
|
22
|
+
You may not:
|
|
23
|
+
|
|
24
|
+
a. modify, adapt, translate or create derivative works of the Software;
|
|
25
|
+
b. copy, redistribute, sublicense, sell, rent or lease the Software, alone
|
|
26
|
+
or as part of another package, except as an unmodified dependency
|
|
27
|
+
installed from the official npm package;
|
|
28
|
+
c. reverse engineer, decompile or disassemble the Software, except to the
|
|
29
|
+
extent applicable law expressly permits it despite this restriction;
|
|
30
|
+
d. remove or alter any copyright or license notice in the Software.
|
|
31
|
+
|
|
32
|
+
3. Ownership
|
|
33
|
+
|
|
34
|
+
The Software is licensed, not sold. BrainyLab keeps all rights, title and
|
|
35
|
+
interest in the Software not expressly granted in this license.
|
|
36
|
+
|
|
37
|
+
4. Termination
|
|
38
|
+
|
|
39
|
+
This license ends automatically if you breach its terms. On termination,
|
|
40
|
+
you must stop using the Software and delete your copies of it.
|
|
41
|
+
|
|
42
|
+
5. No warranty
|
|
43
|
+
|
|
44
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
45
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
46
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
47
|
+
|
|
48
|
+
6. Limitation of liability
|
|
49
|
+
|
|
50
|
+
IN NO EVENT SHALL BRAINYLAB OR ITS CONTRIBUTORS BE LIABLE FOR ANY CLAIM,
|
|
51
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
52
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
53
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
54
|
+
|
|
55
|
+
7. Governing law
|
|
56
|
+
|
|
57
|
+
This license is governed by the laws of the Federative Republic of Brazil.
|
|
58
|
+
Any dispute arising from it will be settled in the courts of the judicial
|
|
59
|
+
district where BrainyLab has its registered office.
|
package/README.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @slabui/theme-react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The SlabUI theme editor and its Vite and Next.js plugins: edit the CSS
|
|
4
|
+
variables of your theme in the running app and save them back to your CSS.
|
|
5
|
+
|
|
6
|
+
[](https://slabui.com/docs/themes/introduction)
|
|
7
|
+
|
|
8
|
+
Installation, the editor and the plugin options are in the
|
|
9
|
+
[documentation](https://slabui.com/docs/themes/introduction).
|
|
10
|
+
|
|
11
|
+
## License
|
|
12
|
+
|
|
13
|
+
Released under the [SlabUI Software License](./LICENSE).
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
type ThemeEditorProps = {
|
|
3
|
+
preview?: ReactNode;
|
|
4
|
+
};
|
|
5
|
+
export declare function ThemeEditor(props: ThemeEditorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
6
|
+
export type { ThemeEditorProps };
|
|
7
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../src/editor/theme-editor.tsx"],"mappings":";KAqDY;EAEV,UAAU;;wBAqFI,YAAY,OAAO,+CAAgB,IAAA"}
|