@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.
Files changed (67) hide show
  1. package/dist/components/Button/Button/Button.view.d.ts +1 -1
  2. package/dist/components/Formik/Formik.ColorInput.d.ts +1 -1
  3. package/dist/components/Gradient/Gradient.d.ts +4 -4
  4. package/dist/components/Title/Title/Title.props.d.ts +3 -3
  5. package/dist/components/Title/Title/Title.type.d.ts +1 -1
  6. package/dist/web.cjs.development.js +755 -784
  7. package/dist/web.cjs.development.js.map +1 -1
  8. package/dist/web.cjs.production.min.js +1 -1
  9. package/dist/web.cjs.production.min.js.map +1 -1
  10. package/dist/web.esm.js +755 -784
  11. package/dist/web.esm.js.map +1 -1
  12. package/dist/web.umd.development.js +755 -784
  13. package/dist/web.umd.development.js.map +1 -1
  14. package/dist/web.umd.production.min.js +1 -1
  15. package/dist/web.umd.production.min.js.map +1 -1
  16. package/docs/app-studio/Components.md +8 -8
  17. package/docs/app-studio/Design.md +2 -2
  18. package/docs/app-studio/Events.md +31 -31
  19. package/docs/app-studio/Hooks.md +6 -6
  20. package/docs/app-studio/Providers.md +2 -2
  21. package/docs/app-studio/README.md +30 -30
  22. package/docs/app-studio/Responsive.md +3 -3
  23. package/docs/app-studio/Theming.md +114 -113
  24. package/docs/app-studio.md +2 -2
  25. package/docs/component-development/guide.md +10 -10
  26. package/docs/components/Background.mdx +2 -2
  27. package/docs/components/Badge.mdx +1 -1
  28. package/docs/components/Button.mdx +2 -2
  29. package/docs/components/Carousel.mdx +15 -15
  30. package/docs/components/Center.mdx +40 -40
  31. package/docs/components/Checkbox.mdx +5 -5
  32. package/docs/components/ColorInput.mdx +13 -13
  33. package/docs/components/ColorPicker.mdx +17 -17
  34. package/docs/components/ContextMenu.mdx +1 -1
  35. package/docs/components/DatePicker.mdx +6 -6
  36. package/docs/components/DragAndDrop.mdx +8 -8
  37. package/docs/components/Drawer.mdx +3 -3
  38. package/docs/components/Form.mdx +2 -2
  39. package/docs/components/Formik.mdx +3 -3
  40. package/docs/components/Gradient.mdx +32 -32
  41. package/docs/components/Horizontal.mdx +3 -3
  42. package/docs/components/HoverCard.mdx +3 -3
  43. package/docs/components/Icon.mdx +14 -14
  44. package/docs/components/Label.mdx +28 -28
  45. package/docs/components/Link.mdx +2 -2
  46. package/docs/components/Loader.mdx +16 -16
  47. package/docs/components/OTPInput.mdx +9 -9
  48. package/docs/components/Password.mdx +1 -1
  49. package/docs/components/ProgressBar.mdx +9 -9
  50. package/docs/components/Resizable.mdx +6 -6
  51. package/docs/components/Selector.mdx +4 -4
  52. package/docs/components/Sidebar.mdx +2 -2
  53. package/docs/components/Slider.mdx +10 -10
  54. package/docs/components/StatusIndicator.mdx +5 -5
  55. package/docs/components/Switch.mdx +1 -1
  56. package/docs/components/TagInput.mdx +8 -8
  57. package/docs/components/Text.mdx +1 -1
  58. package/docs/components/TextArea.mdx +2 -2
  59. package/docs/components/TextField.mdx +2 -2
  60. package/docs/components/Title.mdx +1 -1
  61. package/docs/components/Vertical.mdx +64 -64
  62. package/docs/components.md +4 -4
  63. package/docs/conventions.md +1 -1
  64. package/docs/design-system/theming.md +19 -19
  65. package/docs/tutorials/README.md +1 -1
  66. package/docs/tutorials/basic/creating-a-simple-form.md +2 -2
  67. package/package.json +2 -2
@@ -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.primary} />
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.primary"
146
- highlightSecondaryColor="theme.secondary"
145
+ highlightColor="theme-primary"
146
+ highlightSecondaryColor="theme-secondary"
147
147
  centered
148
148
  >
149
149
  Welcome to Our Platform
@@ -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.primary', { themeMode });
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.primary', { themeMode });
82
- const textColor = getColor('theme.text', { themeMode });
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.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
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.white`: White
109
- - `color.black`: Black
110
- - `color.gray.50` to `color.gray.900`: Gray scale
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.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`
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.primary" />
169
- <View width={50} height={50} backgroundColor="theme.secondary" />
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
  );
@@ -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.md)
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.white" borderRadius={8} boxShadow="0 2px 8px rgba(0, 0, 0, 0.1)">
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.primary">Contact Us</Text>
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.83",
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.0",
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",