@app-studio/components 0.11.9 → 0.11.11
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/apple-touch-icon.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/favicon.svg +4 -0
- package/dist/icon-512.png +0 -0
- package/dist/index.d.ts +4 -0
- package/dist/indexnow-key.txt +1 -0
- package/dist/manifest.json +9 -9
- package/dist/native/components/Modal/Modal/Modal.props.d.ts +2 -0
- package/dist/native/design-system/DesignSystemProvider.d.ts +2 -0
- package/dist/native/design-system/DesignSystemProvider.js +2 -2
- package/dist/native/design-system/DesignSystemProvider.js.map +1 -1
- package/dist/robots.txt +7 -2
- package/dist/web.cjs.js +1 -1
- package/dist/web.cjs.js.map +1 -1
- package/dist/web.esm.js +12 -10
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.js +1 -1
- package/dist/web.umd.js.map +1 -1
- package/docs/README.md +81 -3
- package/docs/guides/accessibility.mdx +51 -0
- package/docs/guides/ai-assistants.mdx +43 -0
- package/docs/guides/animation.mdx +58 -0
- package/docs/guides/core.mdx +68 -0
- package/docs/guides/forms.mdx +79 -0
- package/docs/guides/hooks.mdx +92 -0
- package/docs/guides/installation.mdx +96 -0
- package/docs/guides/overview.mdx +53 -0
- package/docs/guides/providers.mdx +51 -0
- package/docs/guides/quick-start.mdx +71 -0
- package/docs/guides/react-native.mdx +53 -0
- package/docs/guides/responsive.mdx +65 -0
- package/docs/guides/styling.mdx +115 -0
- package/docs/guides/theming.mdx +70 -0
- package/docs/guides/troubleshooting.mdx +45 -0
- package/docs/seo-geo.md +53 -0
- package/package.json +8 -1
|
Binary file
|
package/dist/favicon.ico
CHANGED
|
Binary file
|
package/dist/favicon.svg
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32">
|
|
2
|
+
<rect width="32" height="32" rx="8" fill="#1e3a8a" />
|
|
3
|
+
<path d="M16 7 26 12 16 17 6 12 16 7M6 16l10 5 10-5M6 20l10 5 10-5" fill="none" stroke="#fff" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
4
|
+
</svg>
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -465,6 +465,7 @@ export declare interface BlockEditorProps extends Omit<ViewProps, 'onChange' | '
|
|
|
465
465
|
export declare const BluetoothIcon: default_2.FC<Omit<IconProps, "name">>;
|
|
466
466
|
|
|
467
467
|
export declare interface BodyProps extends ViewProps {
|
|
468
|
+
children?: default_2.ReactNode;
|
|
468
469
|
views?: {
|
|
469
470
|
view?: ViewProps;
|
|
470
471
|
};
|
|
@@ -2136,6 +2137,8 @@ export declare interface DesignSystemProviderProps {
|
|
|
2136
2137
|
* only when there is no surrounding ThemeProvider.
|
|
2137
2138
|
*/
|
|
2138
2139
|
mode?: DesignSystemAppearance;
|
|
2140
|
+
/** Document that owns the subtree and its theme stylesheet (for iframe portals). */
|
|
2141
|
+
targetWindow?: Window;
|
|
2139
2142
|
}
|
|
2140
2143
|
|
|
2141
2144
|
/**
|
|
@@ -2572,6 +2575,7 @@ declare interface FooterCell {
|
|
|
2572
2575
|
}
|
|
2573
2576
|
|
|
2574
2577
|
export declare interface FooterProps extends ViewProps {
|
|
2578
|
+
children?: default_2.ReactNode;
|
|
2575
2579
|
views?: {
|
|
2576
2580
|
container?: ViewProps;
|
|
2577
2581
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
626d411ac29e3e5603c7b4c5bf57f885
|
package/dist/manifest.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
"short_name": "
|
|
3
|
-
"name": "
|
|
2
|
+
"short_name": "App Studio",
|
|
3
|
+
"name": "App Studio — Components & Framework",
|
|
4
4
|
"icons": [
|
|
5
5
|
{
|
|
6
|
-
"src": "/favicon.
|
|
7
|
-
"sizes": "
|
|
8
|
-
"type": "image/
|
|
9
|
-
"purpose": "
|
|
6
|
+
"src": "/favicon.svg",
|
|
7
|
+
"sizes": "any",
|
|
8
|
+
"type": "image/svg+xml",
|
|
9
|
+
"purpose": "any"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
|
-
"src": "/
|
|
13
|
-
"sizes": "
|
|
12
|
+
"src": "/icon-512.png",
|
|
13
|
+
"sizes": "512x512",
|
|
14
14
|
"type": "image/png",
|
|
15
15
|
"purpose": "any maskable"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"start_url": ".",
|
|
19
19
|
"display": "standalone",
|
|
20
|
-
"theme_color": "#
|
|
20
|
+
"theme_color": "#1e3a8a",
|
|
21
21
|
"background_color": "#ffffff"
|
|
22
22
|
}
|
|
@@ -72,6 +72,7 @@ export interface ContainerProps extends Omit<ViewProps, 'size' | 'position' | 's
|
|
|
72
72
|
shadow?: Shadow | Elevation | ViewProps;
|
|
73
73
|
}
|
|
74
74
|
export interface BodyProps extends ViewProps {
|
|
75
|
+
children?: React.ReactNode;
|
|
75
76
|
views?: {
|
|
76
77
|
view?: ViewProps;
|
|
77
78
|
};
|
|
@@ -79,6 +80,7 @@ export interface BodyProps extends ViewProps {
|
|
|
79
80
|
variant?: string;
|
|
80
81
|
}
|
|
81
82
|
export interface FooterProps extends ViewProps {
|
|
83
|
+
children?: React.ReactNode;
|
|
82
84
|
views?: {
|
|
83
85
|
container?: ViewProps;
|
|
84
86
|
};
|
|
@@ -12,6 +12,8 @@ export interface DesignSystemProviderProps {
|
|
|
12
12
|
* only when there is no surrounding ThemeProvider.
|
|
13
13
|
*/
|
|
14
14
|
mode?: DesignSystemAppearance;
|
|
15
|
+
/** Document that owns the subtree and its theme stylesheet (for iframe portals). */
|
|
16
|
+
targetWindow?: Window;
|
|
15
17
|
}
|
|
16
18
|
export declare const DesignSystemProvider: React.FC<DesignSystemProviderProps>;
|
|
17
19
|
export declare const useDesignSystem: () => DesignSystemContextValue;
|
|
@@ -5,7 +5,7 @@ import { getDesignSystemComponentProps, mergeDesignSystemComponentProps, } from
|
|
|
5
5
|
const DesignSystemContext = createContext({
|
|
6
6
|
isEnabled: false,
|
|
7
7
|
});
|
|
8
|
-
export const DesignSystemProvider = ({ children, config, configId, mode, }) => {
|
|
8
|
+
export const DesignSystemProvider = ({ children, config, configId, mode, targetWindow, }) => {
|
|
9
9
|
const resolvedConfig = config ||
|
|
10
10
|
(configId ? designSystemConfigs[configId] : null) ||
|
|
11
11
|
defaultDesignSystemConfig;
|
|
@@ -28,7 +28,7 @@ export const DesignSystemProvider = ({ children, config, configId, mode, }) => {
|
|
|
28
28
|
return (<DesignSystemContext.Provider value={value}>
|
|
29
29
|
{/* No cast: app-studio's `theme` prop accepts ThemeSlots, which
|
|
30
30
|
DesignSystemTheme satisfies structurally. */}
|
|
31
|
-
<ThemeProvider theme={resolvedConfig.theme} mode={effectiveMode} transparentWrapper>
|
|
31
|
+
<ThemeProvider theme={resolvedConfig.theme} mode={effectiveMode} targetWindow={targetWindow} transparentWrapper>
|
|
32
32
|
<div data-design-system={resolvedConfig.metadata.id} data-appearance={effectiveMode} style={{ display: 'contents' }}>
|
|
33
33
|
{children}
|
|
34
34
|
</div>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DesignSystemProvider.js","sourceRoot":"","sources":["../../../src/design-system/DesignSystemProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAa,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EACL,yBAAyB,EACzB,mBAAmB,GAEpB,MAAM,WAAW,CAAC;AAQnB,OAAO,EACL,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,SAAS,CAAC;AAEjB,MAAM,mBAAmB,GAAG,aAAa,CAA2B;IAClE,SAAS,EAAE,KAAK;CACjB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"DesignSystemProvider.js","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,CAAC,KAAK,CAAC,CACzC;MAAA,CAAC;wDAC+C,CAChD;MAAA,CAAC,aAAa,CACZ,KAAK,CAAC,CAAC,cAAc,CAAC,KAAK,CAAC,CAC5B,IAAI,CAAC,CAAC,aAAa,CAAC,CACpB,YAAY,CAAC,CAAC,YAAY,CAAC,CAC3B,kBAAkB,CAElB;QAAA,CAAC,GAAG,CACF,kBAAkB,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,CAAC,CAC/C,eAAe,CAAC,CAAC,aAAa,CAAC,CAC/B,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAE/B;UAAA,CAAC,QAAQ,CACX;QAAA,EAAE,GAAG,CACP;MAAA,EAAE,aAAa,CACjB;IAAA,EAAE,mBAAmB,CAAC,QAAQ,CAAC,CAChC,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,eAAe,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,mBAAmB,CAAC,CAAC;AAErE,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,aAAwC,EACX,EAAE;IAC/B,MAAM,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAAC;IACrC,OAAO,6BAA6B,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC;AAC9D,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAGjD,aAAwC,EACxC,KAAQ,EACL,EAAE;IACL,MAAM,EAAE,MAAM,EAAE,GAAG,eAAe,EAAE,CAAC;IACrC,OAAO,+BAA+B,CAAC,aAAa,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACvE,CAAC,CAAC"}
|
package/dist/robots.txt
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Public documentation is accessible to search and assistant crawlers.
|
|
2
|
+
# This includes Googlebot, bingbot, OAI-SearchBot, Claude-SearchBot, and PerplexityBot.
|
|
2
3
|
User-agent: *
|
|
3
|
-
|
|
4
|
+
Allow: /
|
|
5
|
+
|
|
6
|
+
Sitemap: https://app-studio-6167b.web.app/sitemap.xml
|
|
7
|
+
|
|
8
|
+
# Agent-readable documentation: https://app-studio-6167b.web.app/llms.txt
|