@app-studio/web 0.9.80 → 0.9.81
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/Accordion/Accordion/Accordion.type.d.ts +1 -1
- package/dist/components/Accordion/Accordion/Accordion.view.d.ts +1 -1
- package/dist/components/Badge/Badge/Badge.type.d.ts +1 -1
- package/dist/components/Card/Card/Card.type.d.ts +1 -1
- package/dist/components/ChatInput/ChatInput/ChatInput.type.d.ts +1 -1
- package/dist/components/ColorPicker/ColorPicker/ColorPicker.type.d.ts +1 -1
- package/dist/components/EmojiPicker/EmojiPicker/EmojiPicker.type.d.ts +1 -1
- package/dist/components/Form/ColorInput/ColorInput/ColorInput.type.d.ts +1 -1
- package/dist/components/Form/TagInput/TagInput/TagInput.type.d.ts +1 -1
- package/dist/components/Form/TextArea/TextArea/TextArea.type.d.ts +1 -1
- package/dist/components/Input/Input.type.d.ts +1 -1
- package/dist/components/Message/Message/Message.type.d.ts +1 -1
- package/dist/components/Modal/Modal/Modal.props.d.ts +2 -2
- package/dist/components/Slider/Slider/Slider.type.d.ts +1 -1
- package/dist/components/Title/Title/Title.props.d.ts +0 -5
- package/dist/components/Toggle/Toggle/Toggle.type.d.ts +1 -1
- package/dist/components/ToggleGroup/ToggleGroup/ToggleGroup.type.d.ts +1 -1
- package/dist/pages/tabs.page.d.ts +1 -1
- package/dist/web.cjs.development.js +61 -77
- 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 +61 -77
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +61 -77
- 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/components/Background.mdx +133 -134
- package/docs/components/Button.mdx +154 -131
- package/docs/components/Chart.mdx +93 -368
- package/docs/components/ProgressBar.mdx +77 -394
- package/docs/components/Title.mdx +102 -290
- package/package.json +1 -1
- package/docs/components/ChatInput.mdx +0 -1039
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
|
-
export declare type Shape = '
|
|
2
|
+
export declare type Shape = 'square' | 'rounded';
|
|
3
3
|
export declare type Variant = 'default' | 'outline' | 'filled';
|
|
4
4
|
export declare type AccordionType = 'single' | 'multiple';
|
|
5
5
|
export interface AccordionContextType {
|
|
@@ -23,7 +23,7 @@ export declare const AccordionContent: React.FC<AccordionContentProps & {
|
|
|
23
23
|
}>;
|
|
24
24
|
export declare const AccordionView: React.FC<{
|
|
25
25
|
children: React.ReactNode;
|
|
26
|
-
shape?: '
|
|
26
|
+
shape?: 'square' | 'rounded';
|
|
27
27
|
variant?: 'default' | 'outline' | 'filled';
|
|
28
28
|
views?: any;
|
|
29
29
|
baseId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
|
-
export declare type Shape = '
|
|
2
|
+
export declare type Shape = 'square' | 'rounded' | 'pill';
|
|
3
3
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export declare type Variant = 'filled' | 'outline' | 'link' | 'ghost';
|
|
5
5
|
export declare type Position = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Variant = 'default' | 'outlined' | 'elevated';
|
|
3
3
|
export declare type Size = 'sm' | 'md' | 'lg';
|
|
4
|
-
export declare type Shape = '
|
|
4
|
+
export declare type Shape = 'square' | 'rounded' | 'pill';
|
|
5
5
|
export interface CardStyles {
|
|
6
6
|
container?: ViewProps;
|
|
7
7
|
header?: ViewProps;
|
|
@@ -6,7 +6,7 @@ export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
6
6
|
/**
|
|
7
7
|
* Shape options for the ChatInput component
|
|
8
8
|
*/
|
|
9
|
-
export declare type Shape = 'default' | '
|
|
9
|
+
export declare type Shape = 'default' | 'square' | 'rounded';
|
|
10
10
|
/**
|
|
11
11
|
* Variant options for the ChatInput component
|
|
12
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Variant = 'outline' | 'default' | 'filled';
|
|
3
|
-
export declare type Shape = 'default' | '
|
|
3
|
+
export declare type Shape = 'default' | 'square' | 'rounded' | 'pill';
|
|
4
4
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
5
|
export declare type ColorPickerStyles = {
|
|
6
6
|
container?: ViewProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Variant = 'outline' | 'default' | 'filled';
|
|
3
|
-
export declare type Shape = 'default' | '
|
|
3
|
+
export declare type Shape = 'default' | 'square' | 'rounded' | 'pill';
|
|
4
4
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
5
|
export declare type EmojiPickerStyles = {
|
|
6
6
|
container?: ViewProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Variant = 'outline' | 'default' | 'none';
|
|
3
|
-
export declare type Shape = 'default' | '
|
|
3
|
+
export declare type Shape = 'default' | 'square' | 'rounded' | 'pill';
|
|
4
4
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
5
|
export declare type ColorInputStyles = {
|
|
6
6
|
text?: ViewProps;
|
|
@@ -6,7 +6,7 @@ export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
|
6
6
|
/**
|
|
7
7
|
* Shape options for the TagInput component
|
|
8
8
|
*/
|
|
9
|
-
export declare type Shape = 'default' | '
|
|
9
|
+
export declare type Shape = 'default' | 'square' | 'rounded' | 'pill';
|
|
10
10
|
/**
|
|
11
11
|
* Variant options for the TagInput component
|
|
12
12
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Variant = 'outline' | 'default' | 'none';
|
|
3
|
-
export declare type Shape = 'default' | '
|
|
3
|
+
export declare type Shape = 'default' | 'square' | 'rounded';
|
|
4
4
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
5
|
export declare type TextAreaStyles = {
|
|
6
6
|
warper?: ViewProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Variant = 'outline' | 'default' | 'none';
|
|
3
|
-
export declare type Shape = 'default' | '
|
|
3
|
+
export declare type Shape = 'default' | 'square' | 'rounded' | 'pill';
|
|
4
4
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
5
5
|
export declare type TextFieldStyles = {
|
|
6
6
|
text?: ViewProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ViewProps } from 'app-studio';
|
|
2
2
|
export declare type Position = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
|
3
|
-
export declare type Shape = '
|
|
3
|
+
export declare type Shape = 'square' | 'rounded';
|
|
4
4
|
export declare type CloseButtonPosition = 'left' | 'right' | 'none';
|
|
5
5
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
6
|
export declare type MessageType = 'info' | 'warning' | 'error' | 'success';
|
|
@@ -12,7 +12,7 @@ export interface ModalProps extends Omit<ViewProps, 'size'> {
|
|
|
12
12
|
*/
|
|
13
13
|
iconSize?: Size;
|
|
14
14
|
/**
|
|
15
|
-
* Determines whether the modal should have
|
|
15
|
+
* Determines whether the modal should have square or rounded edges.
|
|
16
16
|
*/
|
|
17
17
|
shape?: Shape;
|
|
18
18
|
/**
|
|
@@ -142,7 +142,7 @@ export interface ContainerProps extends Omit<ViewProps, 'size'> {
|
|
|
142
142
|
*/
|
|
143
143
|
children: React.ReactNode;
|
|
144
144
|
/**
|
|
145
|
-
* To give a
|
|
145
|
+
* To give a square or rounded edges to the modal
|
|
146
146
|
*/
|
|
147
147
|
shape?: Shape;
|
|
148
148
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ViewProps, TextProps } from 'app-studio';
|
|
2
|
-
export declare type Shape = '
|
|
2
|
+
export declare type Shape = 'square' | 'rounded' | 'pill';
|
|
3
3
|
export declare type Size = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4
4
|
export declare type Variant = 'default' | 'outline';
|
|
5
5
|
export declare type Orientation = 'horizontal' | 'vertical';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare type Shape = '
|
|
1
|
+
export declare type Shape = 'square' | 'rounded' | 'pill';
|
|
2
2
|
export declare type Variant = 'outline' | 'link' | 'ghost';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare type Shape = '
|
|
2
|
+
export declare type Shape = 'square' | 'rounded' | 'pill';
|
|
3
3
|
export declare type Variant = 'outline' | 'link' | 'ghost';
|
|
4
4
|
export declare type ToggleItem = {
|
|
5
5
|
id: string;
|
|
@@ -184,7 +184,7 @@ var useAccordionState = _ref => {
|
|
|
184
184
|
};
|
|
185
185
|
|
|
186
186
|
var AccordionShapes = {
|
|
187
|
-
|
|
187
|
+
square: {
|
|
188
188
|
borderRadius: 0
|
|
189
189
|
},
|
|
190
190
|
rounded: {
|
|
@@ -1299,17 +1299,14 @@ var MessageView = _ref => {
|
|
|
1299
1299
|
width: "100%"
|
|
1300
1300
|
}, /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
1301
1301
|
size: "md",
|
|
1302
|
-
weight: "semiBold"
|
|
1303
|
-
backgroundColor: Theme[variant].container.backgroundColor
|
|
1302
|
+
weight: "semiBold"
|
|
1304
1303
|
}, views == null ? void 0 : views.title), title), subtitle && (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
1305
|
-
size: "sm"
|
|
1306
|
-
backgroundColor: Theme[variant].container.backgroundColor
|
|
1304
|
+
size: "sm"
|
|
1307
1305
|
}, views == null ? void 0 : views.subtitle), subtitle))), showAction && (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
1308
1306
|
marginRight: 10,
|
|
1309
1307
|
onClick: action,
|
|
1310
1308
|
padding: "6px 10px",
|
|
1311
|
-
whiteSpace: "nowrap"
|
|
1312
|
-
backgroundColor: Theme[variant].container.backgroundColor
|
|
1309
|
+
whiteSpace: "nowrap"
|
|
1313
1310
|
}, containerStyle, views == null ? void 0 : views.actionText), actionText)), isClosable && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
1314
1311
|
position: "absolute",
|
|
1315
1312
|
zIndex: 10000,
|
|
@@ -2297,9 +2294,9 @@ var BadgeSizes = {
|
|
|
2297
2294
|
* Badge shapes with consistent border radius
|
|
2298
2295
|
*/
|
|
2299
2296
|
var BadgeShapes = {
|
|
2300
|
-
|
|
2297
|
+
square: 0,
|
|
2301
2298
|
rounded: '8px',
|
|
2302
|
-
|
|
2299
|
+
pill: '9999px'
|
|
2303
2300
|
};
|
|
2304
2301
|
/**
|
|
2305
2302
|
* Badge positions for absolute positioning
|
|
@@ -2377,7 +2374,7 @@ var BadgeView = _ref => {
|
|
|
2377
2374
|
var {
|
|
2378
2375
|
content,
|
|
2379
2376
|
position,
|
|
2380
|
-
shape = '
|
|
2377
|
+
shape = 'pill',
|
|
2381
2378
|
variant = 'filled',
|
|
2382
2379
|
size = 'md',
|
|
2383
2380
|
views,
|
|
@@ -2751,9 +2748,9 @@ var ButtonSizes = {
|
|
|
2751
2748
|
* Button shapes with consistent border radius
|
|
2752
2749
|
*/
|
|
2753
2750
|
var ButtonShapes = {
|
|
2754
|
-
|
|
2751
|
+
square: 0,
|
|
2755
2752
|
rounded: 8,
|
|
2756
|
-
|
|
2753
|
+
pill: 999
|
|
2757
2754
|
};
|
|
2758
2755
|
/**
|
|
2759
2756
|
* Icon sizes for different button sizes
|
|
@@ -3426,9 +3423,9 @@ var CardSizes = {
|
|
|
3426
3423
|
* Card shapes with consistent border radius
|
|
3427
3424
|
*/
|
|
3428
3425
|
var CardShapes = {
|
|
3429
|
-
|
|
3426
|
+
square: 0,
|
|
3430
3427
|
rounded: '8px',
|
|
3431
|
-
|
|
3428
|
+
pill: '24px'
|
|
3432
3429
|
};
|
|
3433
3430
|
/**
|
|
3434
3431
|
* Get card variants with consistent styling based on theme mode
|
|
@@ -3588,7 +3585,9 @@ var CardView = _ref4 => {
|
|
|
3588
3585
|
// Prepare context value, merging default styles with user's `views` overrides
|
|
3589
3586
|
var contextValue = React.useMemo(() => ({
|
|
3590
3587
|
styles: {
|
|
3591
|
-
container: Object.assign({}, defaultStyles.container,
|
|
3588
|
+
container: Object.assign({}, defaultStyles.container, {
|
|
3589
|
+
borderRadius: CardShapes[shape]
|
|
3590
|
+
}, views == null ? void 0 : views.container),
|
|
3592
3591
|
header: Object.assign({}, defaultStyles.header, {
|
|
3593
3592
|
padding: sizePadding
|
|
3594
3593
|
}, views == null ? void 0 : views.header),
|
|
@@ -3599,7 +3598,7 @@ var CardView = _ref4 => {
|
|
|
3599
3598
|
padding: sizePadding
|
|
3600
3599
|
}, views == null ? void 0 : views.footer)
|
|
3601
3600
|
}
|
|
3602
|
-
}), [defaultStyles, views, sizePadding]);
|
|
3601
|
+
}), [defaultStyles, views, sizePadding, shape]);
|
|
3603
3602
|
// Determine if we have explicit Card.Header, Card.Content, Card.Footer components
|
|
3604
3603
|
var hasExplicitStructure = React__default.Children.toArray(children).some(child => /*#__PURE__*/React__default.isValidElement(child) && (child.type === CardHeader || child.type === CardContent || child.type === CardFooter));
|
|
3605
3604
|
// Get the appropriate variant styles based on theme mode
|
|
@@ -3611,7 +3610,6 @@ var CardView = _ref4 => {
|
|
|
3611
3610
|
// Merge styles for the root element
|
|
3612
3611
|
var mergedRootProps = Object.assign({
|
|
3613
3612
|
width: isFullWidth ? '100%' : 'auto',
|
|
3614
|
-
borderRadius: CardShapes[shape],
|
|
3615
3613
|
overflow: 'hidden'
|
|
3616
3614
|
}, variantStyles, contextValue.styles.container, props, {
|
|
3617
3615
|
style: Object.assign({}, (_contextValue$styles$ = contextValue.styles.container) == null ? void 0 : _contextValue$styles$.style, style)
|
|
@@ -6408,7 +6406,7 @@ var Shapes = {
|
|
|
6408
6406
|
}
|
|
6409
6407
|
}
|
|
6410
6408
|
},
|
|
6411
|
-
|
|
6409
|
+
square: {
|
|
6412
6410
|
borderRadius: 0
|
|
6413
6411
|
},
|
|
6414
6412
|
rounded: {
|
|
@@ -6419,7 +6417,7 @@ var Shapes = {
|
|
|
6419
6417
|
}
|
|
6420
6418
|
}
|
|
6421
6419
|
},
|
|
6422
|
-
|
|
6420
|
+
pill: {
|
|
6423
6421
|
borderRadius: '9999px'
|
|
6424
6422
|
}
|
|
6425
6423
|
};
|
|
@@ -8569,13 +8567,13 @@ var Shapes$1 = {
|
|
|
8569
8567
|
default: {
|
|
8570
8568
|
borderRadius: '6px'
|
|
8571
8569
|
},
|
|
8572
|
-
|
|
8570
|
+
square: {
|
|
8573
8571
|
borderRadius: '0px'
|
|
8574
8572
|
},
|
|
8575
8573
|
rounded: {
|
|
8576
8574
|
borderRadius: '8px'
|
|
8577
8575
|
},
|
|
8578
|
-
|
|
8576
|
+
pill: {
|
|
8579
8577
|
borderRadius: '9999px'
|
|
8580
8578
|
}
|
|
8581
8579
|
};
|
|
@@ -11263,9 +11261,6 @@ var TagChip = _ref => {
|
|
|
11263
11261
|
isReadOnly
|
|
11264
11262
|
} = _ref;
|
|
11265
11263
|
var [isRemoveHovered, setIsRemoveHovered] = React__default.useState(false);
|
|
11266
|
-
var {
|
|
11267
|
-
getColor
|
|
11268
|
-
} = appStudio.useTheme();
|
|
11269
11264
|
var chipSize = {
|
|
11270
11265
|
xs: {
|
|
11271
11266
|
padding: '2px 8px',
|
|
@@ -11301,24 +11296,23 @@ var TagChip = _ref => {
|
|
|
11301
11296
|
alignItems: "center",
|
|
11302
11297
|
gap: 6,
|
|
11303
11298
|
padding: chipSize.padding,
|
|
11304
|
-
backgroundColor: "color.gray.100",
|
|
11299
|
+
backgroundColor: "color.gray.100.100",
|
|
11305
11300
|
borderRadius: "16px",
|
|
11306
11301
|
borderWidth: "1px",
|
|
11307
11302
|
borderStyle: "solid",
|
|
11308
|
-
borderColor: "color.gray.
|
|
11303
|
+
borderColor: "color.gray.100",
|
|
11309
11304
|
boxShadow: "0 1px 2px rgba(0,0,0,0.05)",
|
|
11310
11305
|
transition: "all 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
|
|
11311
11306
|
opacity: isDisabled ? 0.6 : 1,
|
|
11312
11307
|
_hover: !isDisabled && !isReadOnly ? {
|
|
11313
|
-
backgroundColor: 'color.gray.200',
|
|
11314
|
-
borderColor: 'color.gray.
|
|
11308
|
+
backgroundColor: 'color.gray.100.200',
|
|
11309
|
+
borderColor: 'color.gray.200',
|
|
11315
11310
|
boxShadow: '0 4px 6px rgba(0,0,0,0.05)',
|
|
11316
11311
|
transform: 'translateY(-1px)'
|
|
11317
11312
|
} : {}
|
|
11318
11313
|
}, views == null ? void 0 : views.tag), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
11319
11314
|
fontSize: chipSize.fontSize,
|
|
11320
|
-
color: isDisabled ? 'color.gray.
|
|
11321
|
-
fontWeight: "bold",
|
|
11315
|
+
color: isDisabled ? 'color.gray.100' : 'theme.primary',
|
|
11322
11316
|
whiteSpace: "nowrap"
|
|
11323
11317
|
}, views == null ? void 0 : views.tagText), tag), isRemovable && !isDisabled && !isReadOnly && (/*#__PURE__*/React__default.createElement(appStudio.View, Object.assign({
|
|
11324
11318
|
cursor: "pointer",
|
|
@@ -12813,7 +12807,7 @@ var Shapes$2 = {
|
|
|
12813
12807
|
default: {
|
|
12814
12808
|
borderRadius: '8px'
|
|
12815
12809
|
},
|
|
12816
|
-
|
|
12810
|
+
square: {
|
|
12817
12811
|
borderRadius: '0px'
|
|
12818
12812
|
},
|
|
12819
12813
|
rounded: {
|
|
@@ -14480,9 +14474,9 @@ var ThumbSizes = {
|
|
|
14480
14474
|
}
|
|
14481
14475
|
};
|
|
14482
14476
|
var SliderShapes = {
|
|
14483
|
-
|
|
14477
|
+
square: 0,
|
|
14484
14478
|
rounded: 4,
|
|
14485
|
-
|
|
14479
|
+
pill: 24
|
|
14486
14480
|
};
|
|
14487
14481
|
var getSlider = themeMode => {
|
|
14488
14482
|
return {
|
|
@@ -15296,7 +15290,7 @@ var hideModal = name => {
|
|
|
15296
15290
|
* Following the 4px grid system
|
|
15297
15291
|
*/
|
|
15298
15292
|
var ContainerShapes = {
|
|
15299
|
-
|
|
15293
|
+
square: {
|
|
15300
15294
|
borderRadius: 0
|
|
15301
15295
|
},
|
|
15302
15296
|
rounded: {
|
|
@@ -16745,30 +16739,25 @@ var TabHeader = _ref => {
|
|
|
16745
16739
|
textStyles
|
|
16746
16740
|
} = _ref;
|
|
16747
16741
|
// Base styles for the tab header
|
|
16742
|
+
// Base styles for the tab header
|
|
16748
16743
|
var baseStyles = {
|
|
16749
16744
|
display: 'flex',
|
|
16750
16745
|
alignItems: 'center',
|
|
16751
16746
|
justifyContent: 'center',
|
|
16752
|
-
padding: '
|
|
16747
|
+
padding: '12px 16px',
|
|
16753
16748
|
cursor: 'pointer',
|
|
16754
|
-
|
|
16755
|
-
|
|
16756
|
-
|
|
16757
|
-
borderBottomRightRadius: 0,
|
|
16758
|
-
borderWidth: '1px',
|
|
16759
|
-
borderStyle: 'solid',
|
|
16760
|
-
borderColor: isActive ? 'theme.primary' : 'transparent',
|
|
16761
|
-
borderBottomColor: isActive ? 'transparent' : 'color.gray.200',
|
|
16762
|
-
backgroundColor: isActive ? 'color.white' : 'transparent',
|
|
16749
|
+
borderBottom: '2px solid',
|
|
16750
|
+
borderBottomColor: isActive ? 'theme.primary' : 'transparent',
|
|
16751
|
+
backgroundColor: 'transparent',
|
|
16763
16752
|
color: isActive ? 'theme.primary' : 'color.gray.600',
|
|
16764
|
-
fontWeight: '
|
|
16765
|
-
|
|
16766
|
-
|
|
16767
|
-
// to create the illusion that the tab is connected to the content
|
|
16753
|
+
fontWeight: isActive ? '600' : '500',
|
|
16754
|
+
marginBottom: '-1px',
|
|
16755
|
+
transition: 'all 0.2s ease',
|
|
16768
16756
|
// Hover state
|
|
16769
16757
|
on: {
|
|
16770
16758
|
hover: {
|
|
16771
|
-
color: 'theme.primary'
|
|
16759
|
+
color: 'theme.primary',
|
|
16760
|
+
borderBottomColor: isActive ? 'theme.primary' : 'color.gray.300'
|
|
16772
16761
|
}
|
|
16773
16762
|
}
|
|
16774
16763
|
};
|
|
@@ -16830,7 +16819,11 @@ var TabsView = _ref => {
|
|
|
16830
16819
|
React__default.createElement(appStudio.Vertical, Object.assign({
|
|
16831
16820
|
width: "100%",
|
|
16832
16821
|
height: '100%'
|
|
16833
|
-
}, views.container), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
16822
|
+
}, views.container), /*#__PURE__*/React__default.createElement(appStudio.Horizontal, Object.assign({
|
|
16823
|
+
width: "100%",
|
|
16824
|
+
borderBottom: "1px solid",
|
|
16825
|
+
borderBottomColor: "color.gray.200"
|
|
16826
|
+
}, views.headerTabs), tabs.map(tab => {
|
|
16834
16827
|
// Determine if the current tab in the loop is the active one
|
|
16835
16828
|
var isActive = tab.title === activeTab.title;
|
|
16836
16829
|
// Prepare the onClick handler for this specific tab
|
|
@@ -17404,7 +17397,7 @@ var SlideEffect = _ref => {
|
|
|
17404
17397
|
}))))));
|
|
17405
17398
|
};
|
|
17406
17399
|
|
|
17407
|
-
var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential", "themeMode"
|
|
17400
|
+
var _excluded$$ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration", "highlightSlide", "highlightSlideDuration", "highlightSlideStagger", "highlightSlideSequential", "themeMode"];
|
|
17408
17401
|
function escapeRegExp(string) {
|
|
17409
17402
|
return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
17410
17403
|
}
|
|
@@ -17435,8 +17428,7 @@ var TitleView = _ref => {
|
|
|
17435
17428
|
highlightSlideDuration = 500,
|
|
17436
17429
|
highlightSlideStagger = 50,
|
|
17437
17430
|
highlightSlideSequential = true,
|
|
17438
|
-
themeMode: elementMode
|
|
17439
|
-
textComponent
|
|
17431
|
+
themeMode: elementMode
|
|
17440
17432
|
} = _ref,
|
|
17441
17433
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
|
|
17442
17434
|
var {
|
|
@@ -17490,7 +17482,6 @@ var TitleView = _ref => {
|
|
|
17490
17482
|
highlightSlideStagger,
|
|
17491
17483
|
highlightSlideSequential
|
|
17492
17484
|
}, props));
|
|
17493
|
-
var TextComponent = textComponent || appStudio.Text;
|
|
17494
17485
|
var fontSize = TitleSizes[size];
|
|
17495
17486
|
// Highlight style props
|
|
17496
17487
|
var highlightProps = HighlightStyles[highlightStyle](resolvedHighlightColor, resolvedHighlightSecondaryColor);
|
|
@@ -17511,13 +17502,12 @@ var TitleView = _ref => {
|
|
|
17511
17502
|
// Get the text to display
|
|
17512
17503
|
var text = typeof finalDisplayedText === 'string' ? finalDisplayedText : typeof children === 'string' ? children : '';
|
|
17513
17504
|
// Common container props
|
|
17514
|
-
var containerProps =
|
|
17505
|
+
var containerProps = {
|
|
17515
17506
|
ref,
|
|
17516
|
-
animate: inView ? controlledAnimate : undefined
|
|
17517
|
-
}, !textComponent && {
|
|
17507
|
+
animate: inView ? controlledAnimate : undefined,
|
|
17518
17508
|
as: 'h1',
|
|
17519
17509
|
fontSize
|
|
17520
|
-
}
|
|
17510
|
+
};
|
|
17521
17511
|
// Render highlighted text content (typewriter, slide, or plain)
|
|
17522
17512
|
var renderHighlightedContent = content => {
|
|
17523
17513
|
// If animations are enabled but not in view, render invisible placeholder
|
|
@@ -17533,8 +17523,7 @@ var TitleView = _ref => {
|
|
|
17533
17523
|
return /*#__PURE__*/React__default.createElement(TypewriterEffect, Object.assign({
|
|
17534
17524
|
text: content,
|
|
17535
17525
|
typingSpeed: Math.max(30, highlightTypewriterDuration / (content.length * 10)),
|
|
17536
|
-
cursorColor: "currentColor"
|
|
17537
|
-
textComponent: TextComponent
|
|
17526
|
+
cursorColor: "currentColor"
|
|
17538
17527
|
}, highlightProps));
|
|
17539
17528
|
}
|
|
17540
17529
|
if (highlightSlide) {
|
|
@@ -17545,8 +17534,7 @@ var TitleView = _ref => {
|
|
|
17545
17534
|
sequential: stateHighlightSlideSequential,
|
|
17546
17535
|
direction: "up",
|
|
17547
17536
|
fontSize: fontSize,
|
|
17548
|
-
wordProps: highlightProps
|
|
17549
|
-
textComponent: TextComponent
|
|
17537
|
+
wordProps: highlightProps
|
|
17550
17538
|
});
|
|
17551
17539
|
}
|
|
17552
17540
|
return renderWithLineBreaks(content);
|
|
@@ -17566,13 +17554,11 @@ var TitleView = _ref => {
|
|
|
17566
17554
|
lastIndex = match.index + match[0].length;
|
|
17567
17555
|
}
|
|
17568
17556
|
if (lastIndex < text.length) parts.push(text.substring(lastIndex));
|
|
17569
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
17570
|
-
fontSize: fontSize
|
|
17571
|
-
}, containerProps, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? (/*#__PURE__*/React__default.createElement(TextComponent, {
|
|
17557
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({}, containerProps, views == null ? void 0 : views.container, props), parts.map((part, idx) => typeof part === 'string' ? (/*#__PURE__*/React__default.createElement(appStudio.Text, {
|
|
17572
17558
|
key: "text-" + idx,
|
|
17573
17559
|
as: "span",
|
|
17574
17560
|
display: "inline"
|
|
17575
|
-
}, renderWithLineBreaks(part))) : (/*#__PURE__*/React__default.createElement(
|
|
17561
|
+
}, renderWithLineBreaks(part))) : (/*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
17576
17562
|
key: "highlight-" + idx,
|
|
17577
17563
|
as: "span",
|
|
17578
17564
|
display: "inline",
|
|
@@ -17581,16 +17567,14 @@ var TitleView = _ref => {
|
|
|
17581
17567
|
}
|
|
17582
17568
|
// Case 2: Has highlight style but no highlight target - apply style to entire title
|
|
17583
17569
|
if (highlightStyle && !activeHighlightTarget) {
|
|
17584
|
-
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({
|
|
17585
|
-
fontSize: fontSize
|
|
17586
|
-
}, containerProps, props, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(TextComponent, Object.assign({
|
|
17570
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Element, Object.assign({}, containerProps, props, views == null ? void 0 : views.container), /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({
|
|
17587
17571
|
as: "span",
|
|
17588
17572
|
display: "inline",
|
|
17589
17573
|
animate: inView ? controlledHighlightAnimate : undefined
|
|
17590
17574
|
}, !highlightSlide ? highlightProps : {}, views == null ? void 0 : views.highlight), renderHighlightedContent(text)));
|
|
17591
17575
|
}
|
|
17592
17576
|
// Case 3: Default - no highlighting
|
|
17593
|
-
return /*#__PURE__*/React__default.createElement(
|
|
17577
|
+
return /*#__PURE__*/React__default.createElement(appStudio.Text, Object.assign({}, containerProps, props, views == null ? void 0 : views.container), renderWithLineBreaks(text));
|
|
17594
17578
|
};
|
|
17595
17579
|
|
|
17596
17580
|
/**
|
|
@@ -17656,9 +17640,9 @@ var useToggleState = defaultToggled => {
|
|
|
17656
17640
|
};
|
|
17657
17641
|
|
|
17658
17642
|
var ToggleShapes = {
|
|
17659
|
-
|
|
17643
|
+
square: 0,
|
|
17660
17644
|
rounded: 4,
|
|
17661
|
-
|
|
17645
|
+
pill: 24
|
|
17662
17646
|
};
|
|
17663
17647
|
/**
|
|
17664
17648
|
* Generate toggle variants with proper color combinations based on main color and contrast
|
|
@@ -17775,7 +17759,7 @@ var ToggleView = _ref => {
|
|
|
17775
17759
|
};
|
|
17776
17760
|
return /*#__PURE__*/React__default.createElement(appStudio.Center, Object.assign({
|
|
17777
17761
|
role: "Toggle",
|
|
17778
|
-
padding: shape === '
|
|
17762
|
+
padding: shape === 'pill' ? '10px 12px' : '8px',
|
|
17779
17763
|
width: "fit-content",
|
|
17780
17764
|
cursor: isDisabled ? 'not-allowed' : 'pointer',
|
|
17781
17765
|
borderRadius: ToggleShapes[shape],
|
|
@@ -18684,13 +18668,13 @@ var Shapes$3 = {
|
|
|
18684
18668
|
default: {
|
|
18685
18669
|
borderRadius: '8px'
|
|
18686
18670
|
},
|
|
18687
|
-
|
|
18671
|
+
square: {
|
|
18688
18672
|
borderRadius: 0
|
|
18689
18673
|
},
|
|
18690
18674
|
rounded: {
|
|
18691
18675
|
borderRadius: '8px'
|
|
18692
18676
|
},
|
|
18693
|
-
|
|
18677
|
+
pill: {
|
|
18694
18678
|
borderRadius: '9999px'
|
|
18695
18679
|
}
|
|
18696
18680
|
};
|
|
@@ -19152,13 +19136,13 @@ var Shapes$4 = {
|
|
|
19152
19136
|
default: {
|
|
19153
19137
|
borderRadius: '8px'
|
|
19154
19138
|
},
|
|
19155
|
-
|
|
19139
|
+
square: {
|
|
19156
19140
|
borderRadius: 0
|
|
19157
19141
|
},
|
|
19158
19142
|
rounded: {
|
|
19159
19143
|
borderRadius: '8px'
|
|
19160
19144
|
},
|
|
19161
|
-
|
|
19145
|
+
pill: {
|
|
19162
19146
|
borderRadius: '9999px'
|
|
19163
19147
|
}
|
|
19164
19148
|
};
|