fiboui 1.0.2 → 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.
Files changed (169) hide show
  1. package/README.md +138 -92
  2. package/dist/FineGrain-kBxv0WeR.js +29 -0
  3. package/dist/Link-DDzSPY1Q.js +88 -0
  4. package/dist/PluginManager-D5-ApsSN.js +111 -0
  5. package/dist/Router-i6Nc6qVs.js +386 -0
  6. package/dist/builder-DjLYXkXu.js +1842 -0
  7. package/dist/bundle-mjs-wppB-TKB.js +2760 -0
  8. package/dist/cli/bin.js +20 -0
  9. package/dist/cli/commands/generate/component.js +67 -0
  10. package/dist/cli/commands/generate/index.js +10 -0
  11. package/dist/cli/commands/generate/module.js +58 -0
  12. package/dist/cli/commands/generate/plugin.js +67 -0
  13. package/dist/cli/commands/init.js +58 -0
  14. package/dist/content.js +17 -0
  15. package/dist/core.js +33 -0
  16. package/dist/{effects-D16XdB_d.mjs → effects-CnevV566.js} +1 -0
  17. package/dist/index-B1av7e36.js +1102 -0
  18. package/dist/index-BQGRpkzR.js +1024 -0
  19. package/dist/index-CTRZRn9S.js +90 -0
  20. package/dist/index-DKFr-sai.js +33 -0
  21. package/dist/index-Dm4j2mMM.js +1031 -0
  22. package/dist/index-RbfIZuAo.js +119 -0
  23. package/dist/index-yeYkDTAx.js +778 -0
  24. package/dist/index.d.ts +43753 -6
  25. package/dist/index.js +2054 -0
  26. package/dist/interactive.js +12 -0
  27. package/dist/layout.js +18 -0
  28. package/dist/mount-sAVX_FBU.js +95 -0
  29. package/dist/navigation.js +13 -0
  30. package/dist/provider-B0eB-Wy7.js +286 -0
  31. package/dist/structure.js +15 -0
  32. package/dist/style.css +1 -1
  33. package/dist/style.js +1 -0
  34. package/dist/theme.js +9 -0
  35. package/package.json +88 -13
  36. package/dist/content/Alert/index.d.ts +0 -878
  37. package/dist/content/Avatar/index.d.ts +0 -886
  38. package/dist/content/Badge/index.d.ts +0 -887
  39. package/dist/content/Image/index.d.ts +0 -893
  40. package/dist/content/Label/index.d.ts +0 -879
  41. package/dist/content/Progress/index.d.ts +0 -898
  42. package/dist/content/Skeleton/index.d.ts +0 -879
  43. package/dist/content/Spinner/index.d.ts +0 -880
  44. package/dist/content/Text/index.d.ts +0 -878
  45. package/dist/content/index.d.ts +0 -9
  46. package/dist/core/StateWrapper.d.ts +0 -31
  47. package/dist/core/builder.d.ts +0 -58
  48. package/dist/core/component.d.ts +0 -7
  49. package/dist/core/effects.d.ts +0 -4
  50. package/dist/core/hooks.d.ts +0 -5
  51. package/dist/core/icons.d.ts +0 -11
  52. package/dist/core/index.d.ts +0 -6
  53. package/dist/core/state.d.ts +0 -86
  54. package/dist/core/types.d.ts +0 -51
  55. package/dist/demo.d.ts +0 -7
  56. package/dist/index.esm.js +0 -4777
  57. package/dist/index.umd.js +0 -251
  58. package/dist/interactive/Button/index.d.ts +0 -897
  59. package/dist/interactive/Checkbox/index.d.ts +0 -884
  60. package/dist/interactive/Combobox/index.d.ts +0 -898
  61. package/dist/interactive/RadioGroup/index.d.ts +0 -888
  62. package/dist/interactive/Select/index.d.ts +0 -895
  63. package/dist/interactive/Switch/index.d.ts +0 -881
  64. package/dist/interactive/TextField/index.d.ts +0 -893
  65. package/dist/interactive/Textarea/index.d.ts +0 -890
  66. package/dist/interactive/index.d.ts +0 -8
  67. package/dist/layout/Center/index.d.ts +0 -869
  68. package/dist/layout/Column/index.d.ts +0 -881
  69. package/dist/layout/Container/index.d.ts +0 -870
  70. package/dist/layout/DashboardLayout/index.d.ts +0 -870
  71. package/dist/layout/Header/index.d.ts +0 -870
  72. package/dist/layout/Line/index.d.ts +0 -872
  73. package/dist/layout/Row/index.d.ts +0 -879
  74. package/dist/layout/Scaffold/index.d.ts +0 -878
  75. package/dist/layout/ScrollView/index.d.ts +0 -879
  76. package/dist/layout/Sidebar/index.d.ts +0 -870
  77. package/dist/layout/Spacer/index.d.ts +0 -875
  78. package/dist/layout/StakentComponents.d.ts +0 -4
  79. package/dist/layout/index.d.ts +0 -11
  80. package/dist/structure/Banner/index.d.ts +0 -879
  81. package/dist/structure/Box/index.d.ts +0 -869
  82. package/dist/structure/Card/index.d.ts +0 -881
  83. package/dist/structure/Collapse/index.d.ts +0 -884
  84. package/dist/structure/Grid/index.d.ts +0 -1757
  85. package/dist/structure/List/index.d.ts +0 -888
  86. package/dist/structure/Table/index.d.ts +0 -895
  87. package/dist/structure/Tags/index.d.ts +0 -876
  88. package/dist/structure/cards/AssetCard/index.d.ts +0 -884
  89. package/dist/structure/cards/CollectionCard/index.d.ts +0 -880
  90. package/dist/structure/cards/ContentCard/index.d.ts +0 -884
  91. package/dist/structure/cards/ProfileCard/index.d.ts +0 -892
  92. package/dist/structure/cards/index.d.ts +0 -5
  93. package/dist/structure/cards/variants/index.d.ts +0 -3490
  94. package/dist/structure/index.d.ts +0 -9
  95. package/dist/theme/cupertino.d.ts +0 -3
  96. package/dist/theme/index.d.ts +0 -5
  97. package/dist/theme/material.d.ts +0 -3
  98. package/dist/theme/provider.d.ts +0 -16
  99. package/dist/theme/types.d.ts +0 -57
  100. package/dist/theme/web.d.ts +0 -3
  101. package/src/content/Alert/index.ts +0 -110
  102. package/src/content/Avatar/index.ts +0 -116
  103. package/src/content/Badge/index.ts +0 -162
  104. package/src/content/Image/index.ts +0 -137
  105. package/src/content/Label/index.ts +0 -66
  106. package/src/content/Progress/index.ts +0 -378
  107. package/src/content/Skeleton/index.ts +0 -71
  108. package/src/content/Spinner/index.ts +0 -139
  109. package/src/content/Text/index.ts +0 -74
  110. package/src/content/index.ts +0 -9
  111. package/src/core/StateWrapper.tsx +0 -131
  112. package/src/core/builder.ts +0 -301
  113. package/src/core/component.ts +0 -49
  114. package/src/core/effects.ts +0 -27
  115. package/src/core/hooks.ts +0 -48
  116. package/src/core/icons.tsx +0 -57
  117. package/src/core/index.ts +0 -6
  118. package/src/core/state.ts +0 -297
  119. package/src/core/types.ts +0 -62
  120. package/src/demo.tsx +0 -1050
  121. package/src/index.ts +0 -8
  122. package/src/interactive/Button/index.ts +0 -219
  123. package/src/interactive/Checkbox/index.ts +0 -145
  124. package/src/interactive/Combobox/index.ts +0 -278
  125. package/src/interactive/RadioGroup/index.ts +0 -124
  126. package/src/interactive/Select/index.ts +0 -227
  127. package/src/interactive/Switch/index.ts +0 -123
  128. package/src/interactive/TextField/index.ts +0 -223
  129. package/src/interactive/Textarea/index.ts +0 -129
  130. package/src/interactive/index.ts +0 -8
  131. package/src/layout/Center/index.ts +0 -34
  132. package/src/layout/Column/index.ts +0 -101
  133. package/src/layout/Container/index.ts +0 -28
  134. package/src/layout/DashboardLayout/index.ts +0 -106
  135. package/src/layout/Header/index.ts +0 -50
  136. package/src/layout/Line/index.ts +0 -41
  137. package/src/layout/Row/index.ts +0 -93
  138. package/src/layout/Scaffold/index.ts +0 -133
  139. package/src/layout/ScrollView/index.ts +0 -67
  140. package/src/layout/Sidebar/index.ts +0 -56
  141. package/src/layout/Spacer/index.ts +0 -46
  142. package/src/layout/StakentComponents.tsx +0 -57
  143. package/src/layout/index.ts +0 -11
  144. package/src/structure/Banner/index.ts +0 -92
  145. package/src/structure/Box/index.ts +0 -46
  146. package/src/structure/Card/index.ts +0 -113
  147. package/src/structure/Collapse/index.ts +0 -122
  148. package/src/structure/Grid/index.ts +0 -197
  149. package/src/structure/List/index.ts +0 -185
  150. package/src/structure/Table/index.ts +0 -165
  151. package/src/structure/Tags/index.ts +0 -69
  152. package/src/structure/cards/AssetCard/index.ts +0 -158
  153. package/src/structure/cards/CollectionCard/index.ts +0 -95
  154. package/src/structure/cards/ContentCard/index.ts +0 -127
  155. package/src/structure/cards/ProfileCard/index.ts +0 -152
  156. package/src/structure/cards/index.ts +0 -5
  157. package/src/structure/cards/variants/index.ts +0 -301
  158. package/src/structure/index.ts +0 -10
  159. package/src/styles/base.css +0 -186
  160. package/src/styles/core.css +0 -52
  161. package/src/styles/themes/cupertino.css +0 -197
  162. package/src/styles/themes/material.css +0 -322
  163. package/src/styles/themes/web.css +0 -196
  164. package/src/theme/cupertino.ts +0 -85
  165. package/src/theme/index.ts +0 -5
  166. package/src/theme/material.ts +0 -86
  167. package/src/theme/provider.tsx +0 -76
  168. package/src/theme/types.ts +0 -62
  169. package/src/theme/web.ts +0 -82
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from 'node:module';
3
+ import { Command } from 'commander';
4
+ import { generateCommand } from './commands/generate';
5
+ import { initCommand } from './commands/init';
6
+ const require = createRequire(import.meta.url);
7
+ const pkg = require('../../package.json');
8
+ const version = pkg.version;
9
+ const program = new Command();
10
+ program
11
+ .name('fibo')
12
+ .description('FiboUI CLI - Supercharge your development')
13
+ .version(version);
14
+ // ... (version import)
15
+ program.addCommand(initCommand);
16
+ program.addCommand(generateCommand);
17
+ program.parse(process.argv);
18
+ if (!process.argv.slice(2).length) {
19
+ program.outputHelp();
20
+ }
@@ -0,0 +1,67 @@
1
+ import { Command } from 'commander';
2
+ import prompts from 'prompts';
3
+ import chalk from 'chalk';
4
+ import fs from 'fs-extra';
5
+ import path from 'path';
6
+ import ora from 'ora';
7
+ export const componentCommand = new Command('component')
8
+ .alias('c')
9
+ .description('Generate a new FiboUI functional component')
10
+ .argument('[name]', 'Name of the component')
11
+ .action(async (name) => {
12
+ let componentName = name;
13
+ if (!componentName) {
14
+ const response = await prompts({
15
+ type: 'text',
16
+ name: 'value',
17
+ message: 'What is the name of your Component?',
18
+ validate: value => value.length < 3 ? 'Component name must be at least 3 characters' : true
19
+ });
20
+ componentName = response.value;
21
+ }
22
+ if (!componentName)
23
+ process.exit(1);
24
+ const spinner = ora(`Scaffolding component ${chalk.bold(componentName)}...`).start();
25
+ // Try to guess location: src/components or current dir
26
+ const srcComponents = path.resolve(process.cwd(), 'src/components');
27
+ const targetDir = (await fs.pathExists(srcComponents)) ? srcComponents : process.cwd();
28
+ // Create folder for component? Or just file? Let's do file for simplicity or folder if preferred.
29
+ // Standard: src/components/MyComponent/index.tsx
30
+ const componentDir = path.join(targetDir, componentName);
31
+ const targetFile = path.join(componentDir, 'index.tsx');
32
+ try {
33
+ if (await fs.pathExists(componentDir)) {
34
+ spinner.fail(`Component ${componentName} already exists at ${componentDir}`);
35
+ return;
36
+ }
37
+ await fs.ensureDir(componentDir);
38
+ const content = `import React from 'react';
39
+ import { Component, Text, Row, FiboBuilder } from 'fiboui';
40
+
41
+ export interface ${componentName}Props {
42
+ title?: string;
43
+ }
44
+
45
+ export const ${componentName} = Component<${componentName}Props>()(
46
+ ({ title = '${componentName}' }) => {
47
+ return Row()
48
+ .padding(16)
49
+ .bg('white')
50
+ .rounded('lg')
51
+ .shadow('sm')
52
+ .children([
53
+ Text(title).size(18).weight('bold').build()
54
+ ])
55
+ .build();
56
+ }
57
+ );
58
+ `;
59
+ await fs.writeFile(targetFile, content);
60
+ spinner.succeed(`Component ${chalk.green(componentName)} created successfully!`);
61
+ console.log(chalk.dim(`\nLocated at: ${targetFile}`));
62
+ }
63
+ catch (error) {
64
+ spinner.fail('Failed to create component');
65
+ console.error(error);
66
+ }
67
+ });
@@ -0,0 +1,10 @@
1
+ import { Command } from 'commander';
2
+ import { moduleCommand } from './module';
3
+ import { pluginCommand } from './plugin';
4
+ import { componentCommand } from './component';
5
+ export const generateCommand = new Command('generate')
6
+ .alias('g')
7
+ .description('Generate new architectural components (modules, plugins, etc.)')
8
+ .addCommand(moduleCommand)
9
+ .addCommand(pluginCommand)
10
+ .addCommand(componentCommand);
@@ -0,0 +1,58 @@
1
+ import { Command } from 'commander';
2
+ import prompts from 'prompts';
3
+ import chalk from 'chalk';
4
+ import fs from 'fs-extra';
5
+ import path from 'path';
6
+ import ora from 'ora';
7
+ export const moduleCommand = new Command('module')
8
+ .alias('m')
9
+ .description('Generate a new clean architecture module')
10
+ .argument('[name]', 'Name of the module')
11
+ .action(async (name) => {
12
+ let moduleName = name;
13
+ if (!moduleName) {
14
+ const response = await prompts({
15
+ type: 'text',
16
+ name: 'value',
17
+ message: 'What is the name of your module?',
18
+ validate: value => value.length < 3 ? 'Module name must be at least 3 characters' : true
19
+ });
20
+ moduleName = response.value;
21
+ }
22
+ if (!moduleName)
23
+ process.exit(1);
24
+ const spinner = ora(`Scaffolding module ${chalk.bold(moduleName)}...`).start();
25
+ // Normalize path: assume we are in project root or src
26
+ const targetDir = path.resolve(process.cwd(), 'src/modules', moduleName);
27
+ try {
28
+ if (await fs.pathExists(targetDir)) {
29
+ spinner.fail(`Module ${moduleName} already exists at ${targetDir}`);
30
+ return;
31
+ }
32
+ await fs.ensureDir(targetDir);
33
+ // 1. Domain Layer
34
+ await fs.ensureDir(path.join(targetDir, 'domain/entities'));
35
+ await fs.ensureDir(path.join(targetDir, 'domain/repositories'));
36
+ await fs.writeFile(path.join(targetDir, 'domain/entities', `${moduleName}.entity.ts`), `export interface ${capitalize(moduleName)} {\n id: string;\n // Add properties\n}\n`);
37
+ await fs.writeFile(path.join(targetDir, 'domain/repositories', `${moduleName}.repository.ts`), `import { ${capitalize(moduleName)} } from '../entities/${moduleName}.entity';\n\nexport interface I${capitalize(moduleName)}Repository {\n getAll(): Promise<${capitalize(moduleName)}[]>;\n getById(id: string): Promise<${capitalize(moduleName)} | null>;\n}\n`);
38
+ // 2. Application Layer (Use Cases)
39
+ await fs.ensureDir(path.join(targetDir, 'application/usecases'));
40
+ await fs.writeFile(path.join(targetDir, 'application/usecases', `Get${capitalize(moduleName)}.usecase.ts`), `import { I${capitalize(moduleName)}Repository } from '../../domain/repositories/${moduleName}.repository';\n\nexport class Get${capitalize(moduleName)}UseCase {\n constructor(private repo: I${capitalize(moduleName)}Repository) {}\n\n async execute() {\n return this.repo.getAll();\n }\n}\n`);
41
+ // 3. Infrastructure Layer
42
+ await fs.ensureDir(path.join(targetDir, 'infrastructure/api'));
43
+ await fs.writeFile(path.join(targetDir, 'infrastructure/api', `${moduleName}.api.ts`), `import { I${capitalize(moduleName)}Repository } from '../../domain/repositories/${moduleName}.repository';\nimport { ${capitalize(moduleName)} } from '../../domain/entities/${moduleName}.entity';\n\nexport class ${capitalize(moduleName)}ApiRepository implements I${capitalize(moduleName)}Repository {\n async getAll(): Promise<${capitalize(moduleName)}[]> {\n // Implement API call\n return [];\n }\n\n async getById(id: string): Promise<${capitalize(moduleName)} | null> {\n return null;\n }\n}\n`);
44
+ // 4. Presentation Layer (UI)
45
+ await fs.ensureDir(path.join(targetDir, 'presentation/components'));
46
+ await fs.ensureDir(path.join(targetDir, 'presentation/pages'));
47
+ await fs.writeFile(path.join(targetDir, 'presentation/pages', `${capitalize(moduleName)}Page.tsx`), `import React from 'react';\nimport { Column, Text, FiboBuilder } from 'fiboui';\n\nexport const ${capitalize(moduleName)}Page = () => \n Column()\n .center()\n .gap(20)\n .children([\n Text('${capitalize(moduleName)} Module').size(24).weight('bold').build()\n ])\n .build();\n`);
48
+ spinner.succeed(`Module ${chalk.green(moduleName)} created successfully!`);
49
+ console.log(chalk.dim(`\nLocated at: ${targetDir}`));
50
+ }
51
+ catch (error) {
52
+ spinner.fail('Failed to create module');
53
+ console.error(error);
54
+ }
55
+ });
56
+ function capitalize(str) {
57
+ return str.charAt(0).toUpperCase() + str.slice(1);
58
+ }
@@ -0,0 +1,67 @@
1
+ import { Command } from 'commander';
2
+ import prompts from 'prompts';
3
+ import chalk from 'chalk';
4
+ import fs from 'fs-extra';
5
+ import path from 'path';
6
+ import ora from 'ora';
7
+ export const pluginCommand = new Command('plugin')
8
+ .alias('p')
9
+ .description('Generate a new FiboUI plugin')
10
+ .argument('[name]', 'Name of the plugin')
11
+ .action(async (name) => {
12
+ let pluginName = name;
13
+ if (!pluginName) {
14
+ const response = await prompts({
15
+ type: 'text',
16
+ name: 'value',
17
+ message: 'What is the name of your Plugin?',
18
+ validate: value => value.length < 3 ? 'Plugin name must be at least 3 characters' : true
19
+ });
20
+ pluginName = response.value;
21
+ }
22
+ if (!pluginName)
23
+ process.exit(1);
24
+ const safeName = pluginName.endsWith('Plugin') ? pluginName : `${pluginName}Plugin`;
25
+ const spinner = ora(`Scaffolding plugin ${chalk.bold(safeName)}...`).start();
26
+ const targetDir = path.resolve(process.cwd(), 'src/plugins');
27
+ const targetFile = path.resolve(targetDir, `${safeName}.ts`);
28
+ try {
29
+ await fs.ensureDir(targetDir);
30
+ if (await fs.pathExists(targetFile)) {
31
+ spinner.fail(`Plugin ${safeName} already exists at ${targetFile}`);
32
+ return;
33
+ }
34
+ const content = `import { FiboPlugin, FiboContext, Card, Text, Icon } from 'fiboui';
35
+ import { Settings } from 'lucide-react';
36
+
37
+ export const ${safeName}: FiboPlugin = {
38
+ name: '${safeName}',
39
+ version: '1.0.0',
40
+ setup: (ctx: FiboContext) => {
41
+ console.log('Initializing ${safeName}...');
42
+
43
+ // Example: Register Sidebar Item
44
+ ctx.registerSidebarItem({
45
+ label: '${pluginName.replace('Plugin', '')}',
46
+ path: '/${pluginName.toLowerCase().replace('plugin', '')}',
47
+ icon: Settings, // Example icon
48
+ order: 10
49
+ });
50
+
51
+ // Example: Register an Overlay
52
+ // ctx.registerOverlay(() =>
53
+ // Card().padding(10).children([ Text('Hello from ${safeName}').build() ]).build()
54
+ // );
55
+ }
56
+ };
57
+ `;
58
+ await fs.writeFile(targetFile, content);
59
+ spinner.succeed(`Plugin ${chalk.green(safeName)} created successfully!`);
60
+ console.log(chalk.dim(`\nLocated at: ${targetFile}`));
61
+ console.log(chalk.blue(`\nNext step: Register it in your main.tsx using .plugins([${safeName}])`));
62
+ }
63
+ catch (error) {
64
+ spinner.fail('Failed to create plugin');
65
+ console.error(error);
66
+ }
67
+ });
@@ -0,0 +1,58 @@
1
+ import { Command } from 'commander';
2
+ import chalk from 'chalk';
3
+ import fs from 'fs-extra';
4
+ import path from 'path';
5
+ import ora from 'ora';
6
+ export const initCommand = new Command('init')
7
+ .description('Initialize FiboUI configuration')
8
+ .action(async () => {
9
+ const spinner = ora('Checking project structure...').start();
10
+ const configPath = path.resolve(process.cwd(), 'fibo.config.js'); // Keeping it JS for wider compatibility or TS? User asked for ts.
11
+ if (await fs.pathExists(configPath)) {
12
+ spinner.fail('fibo.config.js already exists.');
13
+ return;
14
+ }
15
+ // Heuristics for standard architecture
16
+ const hasModules = await fs.pathExists(path.resolve(process.cwd(), 'src/modules'));
17
+ const hasPlugins = await fs.pathExists(path.resolve(process.cwd(), 'src/plugins'));
18
+ const hasComponents = await fs.pathExists(path.resolve(process.cwd(), 'src/components'));
19
+ const isStandard = hasModules && hasPlugins && hasComponents;
20
+ let configContent = '';
21
+ if (isStandard) {
22
+ spinner.succeed('Standard FiboUI architecture detected.');
23
+ configContent = `/** @type {import('fiboui').FiboConfig} */
24
+ module.exports = {
25
+ paths: {
26
+ modules: 'src/modules',
27
+ plugins: 'src/plugins',
28
+ components: 'src/components',
29
+ core: 'src/core'
30
+ },
31
+ architecture: 'clean'
32
+ };
33
+ `;
34
+ }
35
+ else {
36
+ spinner.warn('Standard architecture NOT detected.');
37
+ console.log(chalk.yellow('Creating configuration with default/empty values. Please update "fibo.config.js" with your project paths.'));
38
+ configContent = `/** @type {import('fiboui').FiboConfig} */
39
+ module.exports = {
40
+ paths: {
41
+ modules: 'src/modules', // Update this
42
+ plugins: 'src/plugins', // Update this
43
+ components: 'src/components', // Update this
44
+ core: 'src/core' // Update this
45
+ },
46
+ architecture: 'custom'
47
+ };
48
+ `;
49
+ }
50
+ try {
51
+ await fs.writeFile(configPath, configContent);
52
+ console.log(chalk.green(`\n✔ Created ${chalk.bold('fibo.config.js')}`));
53
+ console.log(chalk.dim('You can now generate components using your custom structure.'));
54
+ }
55
+ catch (error) {
56
+ console.error(chalk.red('Failed to write config file.'), error);
57
+ }
58
+ });
@@ -0,0 +1,17 @@
1
+ "use client";
2
+ import { b as s, A as r, B as o, I as t, c as n, L as I, P as g, a as l, S as m } from "./index-Dm4j2mMM.js";
3
+ import { T as x } from "./index-CTRZRn9S.js";
4
+ import { I as f } from "./index-RbfIZuAo.js";
5
+ export {
6
+ s as Alert,
7
+ r as Avatar,
8
+ o as Badge,
9
+ f as Icon,
10
+ t as Image,
11
+ n as Integration,
12
+ I as Label,
13
+ g as Progress,
14
+ l as Skeleton,
15
+ m as Spinner,
16
+ x as Text
17
+ };
package/dist/core.js ADDED
@@ -0,0 +1,33 @@
1
+ "use client";
2
+ import { C as s, O as r, d as t, P as o, R as i, S as u, V as p, f as l, c as b, b as n, a as c, g as d, o as v, r as S, s as m, u as R, e as g } from "./builder-DjLYXkXu.js";
3
+ import { d as x, F as f, c as y, m as O, t as B, b as C, a as P, u as A } from "./mount-sAVX_FBU.js";
4
+ import { F as V, b as E } from "./FineGrain-kBxv0WeR.js";
5
+ export {
6
+ s as ComputedSignal,
7
+ x as Fibo,
8
+ f as FiboApp,
9
+ y as FiboAppBuilder,
10
+ V as FineGrainText,
11
+ r as Observable,
12
+ t as Observer,
13
+ o as ProviderWrapper,
14
+ i as ReactivityRoot,
15
+ u as Signal,
16
+ p as ValueBuilder,
17
+ l as applyResponsiveStyles,
18
+ E as bindText,
19
+ b as computed,
20
+ n as createReactivityRoot,
21
+ c as createStore,
22
+ d as getCurrentScope,
23
+ O as mount,
24
+ v as observable,
25
+ S as runInScope,
26
+ m as signal,
27
+ B as toElement,
28
+ R as useBuilderState,
29
+ C as useObservable,
30
+ g as useProvider,
31
+ P as useReactiveStore,
32
+ A as useSignal
33
+ };
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  const c = (i, t, s = "rgba(255, 255, 255, 0.3)") => {
2
3
  if (!t) return;
3
4
  const e = document.createElement("span"), l = Math.max(t.clientWidth, t.clientHeight), n = l / 2, r = t.getBoundingClientRect();