@app-studio/web 0.9.83 → 0.9.85
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/components/Button/Button/Button.view.d.ts +1 -1
- package/dist/components/Formik/Formik.ColorInput.d.ts +1 -1
- package/dist/components/Gradient/Gradient.d.ts +4 -4
- package/dist/components/Title/Title/Title.props.d.ts +3 -3
- package/dist/components/Title/Title/Title.type.d.ts +1 -1
- package/dist/web.cjs.development.js +755 -784
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +755 -784
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +755 -784
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/docs/app-studio/Components.md +8 -8
- package/docs/app-studio/Design.md +2 -2
- package/docs/app-studio/Events.md +31 -31
- package/docs/app-studio/Hooks.md +6 -6
- package/docs/app-studio/Providers.md +2 -2
- package/docs/app-studio/README.md +30 -30
- package/docs/app-studio/Responsive.md +3 -3
- package/docs/app-studio/Theming.md +114 -113
- package/docs/app-studio.md +2 -2
- package/docs/component-development/guide.md +10 -10
- package/docs/components/Background.mdx +2 -2
- package/docs/components/Badge.mdx +1 -1
- package/docs/components/Button.mdx +2 -2
- package/docs/components/Carousel.mdx +15 -15
- package/docs/components/Center.mdx +40 -40
- package/docs/components/Checkbox.mdx +5 -5
- package/docs/components/ColorInput.mdx +13 -13
- package/docs/components/ColorPicker.mdx +17 -17
- package/docs/components/ContextMenu.mdx +1 -1
- package/docs/components/DatePicker.mdx +6 -6
- package/docs/components/DragAndDrop.mdx +8 -8
- package/docs/components/Drawer.mdx +3 -3
- package/docs/components/Form.mdx +2 -2
- package/docs/components/Formik.mdx +3 -3
- package/docs/components/Gradient.mdx +32 -32
- package/docs/components/Horizontal.mdx +3 -3
- package/docs/components/HoverCard.mdx +3 -3
- package/docs/components/Icon.mdx +14 -14
- package/docs/components/Label.mdx +28 -28
- package/docs/components/Link.mdx +2 -2
- package/docs/components/Loader.mdx +16 -16
- package/docs/components/OTPInput.mdx +9 -9
- package/docs/components/Password.mdx +1 -1
- package/docs/components/ProgressBar.mdx +9 -9
- package/docs/components/Resizable.mdx +6 -6
- package/docs/components/Selector.mdx +4 -4
- package/docs/components/Sidebar.mdx +2 -2
- package/docs/components/Slider.mdx +10 -10
- package/docs/components/StatusIndicator.mdx +5 -5
- package/docs/components/Switch.mdx +1 -1
- package/docs/components/TagInput.mdx +8 -8
- package/docs/components/Text.mdx +1 -1
- package/docs/components/TextArea.mdx +2 -2
- package/docs/components/TextField.mdx +2 -2
- package/docs/components/Title.mdx +1 -1
- package/docs/components/Vertical.mdx +64 -64
- package/docs/components.md +4 -4
- package/docs/conventions.md +1 -1
- package/docs/design-system/theming.md +19 -19
- package/docs/tutorials/README.md +1 -1
- package/docs/tutorials/basic/creating-a-simple-form.md +2 -2
- package/package.json +2 -2
package/docs/components.md
CHANGED
|
@@ -105,7 +105,7 @@ const IconExamples = () => {
|
|
|
105
105
|
return (
|
|
106
106
|
<Horizontal gap={16} alignItems="center">
|
|
107
107
|
<Icon name="Home" size={24} />
|
|
108
|
-
<Icon name="User" size={24} color={theme
|
|
108
|
+
<Icon name="User" size={24} color={theme-primary} />
|
|
109
109
|
<Icon name="CheckCircle" size={24} color="green" filled />
|
|
110
110
|
</Horizontal>
|
|
111
111
|
);
|
|
@@ -114,7 +114,7 @@ const IconExamples = () => {
|
|
|
114
114
|
|
|
115
115
|
### Text
|
|
116
116
|
|
|
117
|
-
A component for rendering text with consistent typography based on the theme
|
|
117
|
+
A component for rendering text with consistent typography based on the theme-
|
|
118
118
|
|
|
119
119
|
**Example:**
|
|
120
120
|
```tsx
|
|
@@ -142,8 +142,8 @@ const HeroTitle = () => (
|
|
|
142
142
|
size="xl"
|
|
143
143
|
highlightText="Platform"
|
|
144
144
|
highlightStyle="gradient"
|
|
145
|
-
highlightColor="theme
|
|
146
|
-
highlightSecondaryColor="theme
|
|
145
|
+
highlightColor="theme-primary"
|
|
146
|
+
highlightSecondaryColor="theme-secondary"
|
|
147
147
|
centered
|
|
148
148
|
>
|
|
149
149
|
Welcome to Our Platform
|
package/docs/conventions.md
CHANGED
|
@@ -292,7 +292,7 @@ Use the theme system via `useTheme` hook:
|
|
|
292
292
|
|
|
293
293
|
```typescript
|
|
294
294
|
const { getColor, themeMode } = useTheme();
|
|
295
|
-
const colorValue = getColor('theme
|
|
295
|
+
const colorValue = getColor('theme-primary', { themeMode });
|
|
296
296
|
```
|
|
297
297
|
|
|
298
298
|
### Style Constants
|
|
@@ -78,8 +78,8 @@ import { View, useTheme } from 'app-studio';
|
|
|
78
78
|
function ThemedComponent() {
|
|
79
79
|
const { getColor, themeMode } = useTheme();
|
|
80
80
|
|
|
81
|
-
const primaryColor = getColor('theme
|
|
82
|
-
const textColor = getColor('theme
|
|
81
|
+
const primaryColor = getColor('theme-primary', { themeMode });
|
|
82
|
+
const textColor = getColor('theme-text', { themeMode });
|
|
83
83
|
|
|
84
84
|
return (
|
|
85
85
|
<View backgroundColor={primaryColor} color={textColor}>
|
|
@@ -95,29 +95,29 @@ The theme includes the following color categories:
|
|
|
95
95
|
|
|
96
96
|
### Semantic Colors
|
|
97
97
|
|
|
98
|
-
- `theme
|
|
99
|
-
- `theme
|
|
100
|
-
- `theme
|
|
101
|
-
- `theme
|
|
102
|
-
- `theme
|
|
103
|
-
- `theme
|
|
104
|
-
- `theme
|
|
98
|
+
- `theme-primary`: Primary brand color
|
|
99
|
+
- `theme-secondary`: Secondary brand color
|
|
100
|
+
- `theme-success`: Success state color
|
|
101
|
+
- `theme-warning`: Warning state color
|
|
102
|
+
- `theme-error`: Error state color
|
|
103
|
+
- `theme-info`: Information state color
|
|
104
|
+
- `theme-disabled`: Disabled state color
|
|
105
105
|
|
|
106
106
|
### Neutral Colors
|
|
107
107
|
|
|
108
|
-
- `color
|
|
109
|
-
- `color
|
|
110
|
-
- `color
|
|
108
|
+
- `color-white`: White
|
|
109
|
+
- `color-black`: Black
|
|
110
|
+
- `color-gray.50` to `color-gray-900`: Gray scale
|
|
111
111
|
|
|
112
112
|
### Color Scales
|
|
113
113
|
|
|
114
114
|
Each color has a scale from 50 (lightest) to 900 (darkest):
|
|
115
115
|
|
|
116
|
-
- `color
|
|
117
|
-
- `color
|
|
118
|
-
- `color
|
|
119
|
-
- `color
|
|
120
|
-
- `color
|
|
116
|
+
- `color-blue.50` to `color-blue-900`
|
|
117
|
+
- `color-green.50` to `color-green-900`
|
|
118
|
+
- `color-red.50` to `color-red-900`
|
|
119
|
+
- `color-yellow.50` to `color-yellow-900`
|
|
120
|
+
- `color-purple.50` to `color-purple-900`
|
|
121
121
|
|
|
122
122
|
## Typography
|
|
123
123
|
|
|
@@ -165,8 +165,8 @@ function SpacingExample() {
|
|
|
165
165
|
return (
|
|
166
166
|
<View padding={16}>
|
|
167
167
|
<Horizontal gap={8}>
|
|
168
|
-
<View width={50} height={50} backgroundColor="theme
|
|
169
|
-
<View width={50} height={50} backgroundColor="theme
|
|
168
|
+
<View width={50} height={50} backgroundColor="theme-primary" />
|
|
169
|
+
<View width={50} height={50} backgroundColor="theme-secondary" />
|
|
170
170
|
</Horizontal>
|
|
171
171
|
</View>
|
|
172
172
|
);
|
package/docs/tutorials/README.md
CHANGED
|
@@ -18,7 +18,7 @@ This section provides step-by-step tutorials for common tasks using the App Stud
|
|
|
18
18
|
## Advanced Tutorials
|
|
19
19
|
|
|
20
20
|
- [Building a Complex Form Wizard](./advanced/building-a-complex-form-wizard.md)
|
|
21
|
-
- [Creating a Custom Theme](./advanced/creating-a-custom-theme
|
|
21
|
+
- [Creating a Custom Theme](./advanced/creating-a-custom-theme-md)
|
|
22
22
|
- [Building a Responsive Dashboard](./advanced/building-a-responsive-dashboard.md)
|
|
23
23
|
- [Creating Custom Components](./advanced/creating-custom-components.md)
|
|
24
24
|
|
|
@@ -497,9 +497,9 @@ function ContactForm() {
|
|
|
497
497
|
};
|
|
498
498
|
|
|
499
499
|
return (
|
|
500
|
-
<View padding={20} maxWidth={500} margin="0 auto" backgroundColor="color
|
|
500
|
+
<View padding={20} maxWidth={500} margin="0 auto" backgroundColor="color-white" borderRadius={8} boxShadow="0 2px 8px rgba(0, 0, 0, 0.1)">
|
|
501
501
|
<Vertical gap={20}>
|
|
502
|
-
<Text fontSize={24} fontWeight="bold" color="theme
|
|
502
|
+
<Text fontSize={24} fontWeight="bold" color="theme-primary">Contact Us</Text>
|
|
503
503
|
|
|
504
504
|
<Formik
|
|
505
505
|
initialValues={{ name: '', email: '', message: '' }}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@app-studio/web",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.85",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"typings": "dist/components/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"@types/react-test-renderer": "^18.0.0",
|
|
114
114
|
"@typescript-eslint/eslint-plugin": "^5.59.7",
|
|
115
115
|
"@typescript-eslint/parser": "^5.59.7",
|
|
116
|
-
"app-studio": "^0.7.
|
|
116
|
+
"app-studio": "^0.7.7",
|
|
117
117
|
"async-mutex": "^0.5.0",
|
|
118
118
|
"babel-jest": "^29.5.0",
|
|
119
119
|
"babel-loader": "^9.1.2",
|