@utilitywarehouse/hearth-react-native 0.3.0 → 0.3.1
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +3 -1
- package/CHANGELOG.md +12 -0
- package/build/components/Alert/AlertCloseButton.js +25 -3
- package/build/components/Alert/AlertIcon.js +17 -1
- package/build/components/Alert/AlertIconButton.js +27 -1
- package/build/components/Alert/AlertLink.js +47 -1
- package/build/components/Alert/AlertText.d.ts +1 -1
- package/build/components/Alert/AlertText.js +26 -2
- package/build/components/Alert/AlertTitle.d.ts +1 -1
- package/build/components/Alert/AlertTitle.js +26 -2
- package/build/components/Badge/BadgeIcon.js +72 -0
- package/build/components/Badge/BadgeText.js +72 -0
- package/build/components/Button/ButtonRoot.js +1 -0
- package/build/components/Checkbox/Checkbox.d.ts +2 -2
- package/build/components/Checkbox/Checkbox.js +11 -10
- package/build/components/Checkbox/Checkbox.props.d.ts +3 -1
- package/build/components/Checkbox/CheckboxIcon.js +1 -1
- package/build/components/Checkbox/CheckboxImage.d.ts +6 -0
- package/build/components/Checkbox/CheckboxImage.js +5 -0
- package/build/components/Checkbox/CheckboxTileRoot.js +1 -1
- package/build/components/Checkbox/index.d.ts +3 -2
- package/build/components/Checkbox/index.js +2 -1
- package/build/components/Link/Link.d.ts +1 -1
- package/build/components/Link/Link.js +4 -4
- package/build/components/Link/Link.props.d.ts +3 -0
- package/build/components/Radio/Radio.d.ts +2 -2
- package/build/components/Radio/Radio.js +9 -8
- package/build/components/Radio/Radio.props.d.ts +3 -1
- package/build/components/Radio/RadioImage.d.ts +6 -0
- package/build/components/Radio/RadioImage.js +5 -0
- package/build/components/Radio/RadioTileRoot.js +1 -1
- package/build/components/Radio/index.d.ts +3 -2
- package/build/components/Radio/index.js +2 -1
- package/build/components/Select/SelectOption.js +1 -7
- package/build/components/UnstyledIconButton/UnstyledIconButton.d.ts +1 -1
- package/build/components/UnstyledIconButton/UnstyledIconButton.js +4 -4
- package/build/components/UnstyledIconButton/UnstyledIconButton.props.d.ts +2 -1
- package/build/core/themes.d.ts +12 -12
- package/build/tokens/color.d.ts +12 -12
- package/build/tokens/color.js +6 -6
- package/build/tokens/components/dark/alert.d.ts +13 -0
- package/build/tokens/components/dark/alert.js +13 -0
- package/build/tokens/components/dark/checkbox.d.ts +3 -0
- package/build/tokens/components/dark/checkbox.js +3 -0
- package/build/tokens/components/dark/icon-button.d.ts +7 -0
- package/build/tokens/components/dark/icon-button.js +7 -0
- package/build/tokens/components/dark/index.d.ts +1 -0
- package/build/tokens/components/dark/index.js +1 -0
- package/build/tokens/components/dark/link.d.ts +5 -0
- package/build/tokens/components/dark/link.js +5 -0
- package/build/tokens/components/dark/progress-bar.d.ts +41 -0
- package/build/tokens/components/dark/progress-bar.js +40 -0
- package/build/tokens/components/light/alert.d.ts +13 -0
- package/build/tokens/components/light/alert.js +13 -0
- package/build/tokens/components/light/checkbox.d.ts +3 -0
- package/build/tokens/components/light/checkbox.js +3 -0
- package/build/tokens/components/light/icon-button.d.ts +7 -0
- package/build/tokens/components/light/icon-button.js +7 -0
- package/build/tokens/components/light/index.d.ts +1 -0
- package/build/tokens/components/light/index.js +1 -0
- package/build/tokens/components/light/link.d.ts +5 -0
- package/build/tokens/components/light/link.js +5 -0
- package/build/tokens/components/light/progress-bar.d.ts +41 -0
- package/build/tokens/components/light/progress-bar.js +40 -0
- package/build/tokens/index.d.ts +1 -0
- package/build/tokens/index.js +1 -0
- package/build/tokens/motion.d.ts +23 -0
- package/build/tokens/motion.js +22 -0
- package/build/tokens/primitive.d.ts +19 -0
- package/build/tokens/primitive.js +19 -0
- package/build/tokens/semantic-dark.d.ts +5 -5
- package/build/tokens/semantic-dark.js +5 -5
- package/build/tokens/semantic-light.d.ts +1 -1
- package/build/tokens/semantic-light.js +1 -1
- package/docs/assets/bank-logo.png +0 -0
- package/docs/assets/bank-logo1.png +0 -0
- package/docs/components/index.ts +6 -7
- package/docs/introduction.mdx +3 -3
- package/package.json +12 -11
- package/src/components/Alert/AlertCloseButton.tsx +33 -5
- package/src/components/Alert/AlertIcon.tsx +17 -1
- package/src/components/Alert/AlertIconButton.tsx +37 -4
- package/src/components/Alert/AlertLink.tsx +52 -1
- package/src/components/Alert/AlertText.tsx +28 -3
- package/src/components/Alert/AlertTitle.tsx +28 -3
- package/src/components/Badge/BadgeIcon.tsx +72 -0
- package/src/components/Badge/BadgeText.tsx +72 -0
- package/src/components/Button/ButtonRoot.tsx +1 -0
- package/src/components/Checkbox/Checkbox.docs.mdx +45 -7
- package/src/components/Checkbox/Checkbox.props.ts +3 -1
- package/src/components/Checkbox/Checkbox.stories.tsx +37 -1
- package/src/components/Checkbox/Checkbox.tsx +12 -9
- package/src/components/Checkbox/CheckboxIcon.tsx +1 -1
- package/src/components/Checkbox/CheckboxImage.tsx +9 -0
- package/src/components/Checkbox/CheckboxTileRoot.tsx +1 -1
- package/src/components/Checkbox/index.ts +3 -2
- package/src/components/IconContainer/IconContainer.docs.mdx +4 -4
- package/src/components/Link/Link.props.ts +3 -0
- package/src/components/Link/Link.tsx +12 -6
- package/src/components/List/List.docs.mdx +24 -23
- package/src/components/Radio/Radio.docs.mdx +96 -124
- package/src/components/Radio/Radio.props.ts +3 -1
- package/src/components/Radio/Radio.stories.tsx +47 -0
- package/src/components/Radio/Radio.tsx +10 -7
- package/src/components/Radio/RadioImage.tsx +9 -0
- package/src/components/Radio/RadioTileRoot.tsx +1 -1
- package/src/components/Radio/index.ts +3 -2
- package/src/components/Select/Select.docs.mdx +6 -6
- package/src/components/Select/Select.stories.tsx +7 -7
- package/src/components/Select/SelectOption.tsx +4 -10
- package/src/components/UnstyledIconButton/UnstyledIconButton.props.ts +2 -1
- package/src/components/UnstyledIconButton/UnstyledIconButton.tsx +9 -3
- package/src/tokens/color.ts +6 -6
- package/src/tokens/components/dark/alert.ts +13 -0
- package/src/tokens/components/dark/checkbox.ts +3 -0
- package/src/tokens/components/dark/icon-button.ts +7 -0
- package/src/tokens/components/dark/index.ts +1 -0
- package/src/tokens/components/dark/link.ts +5 -0
- package/src/tokens/components/dark/progress-bar.ts +41 -0
- package/src/tokens/components/light/alert.ts +13 -0
- package/src/tokens/components/light/checkbox.ts +3 -0
- package/src/tokens/components/light/icon-button.ts +7 -0
- package/src/tokens/components/light/index.ts +1 -0
- package/src/tokens/components/light/link.ts +5 -0
- package/src/tokens/components/light/progress-bar.ts +41 -0
- package/src/tokens/index.ts +1 -0
- package/src/tokens/motion.ts +23 -0
- package/src/tokens/primitive.ts +19 -0
- package/src/tokens/semantic-dark.ts +5 -5
- package/src/tokens/semantic-light.ts +1 -1
- package/docs/assets/react-native-pig.png +0 -0
- package/docs/components/AdvancedRadioExample.tsx +0 -126
|
@@ -10,12 +10,12 @@ declare const RadioIcon: import("react").ForwardRefExoticComponent<import("react
|
|
|
10
10
|
}>;
|
|
11
11
|
declare const RadioLabel: import("react").ForwardRefExoticComponent<import("react").RefAttributes<import("../Label/Label.props").default> & Omit<import("../Label/Label.props").default, "ref">>;
|
|
12
12
|
declare const Radio: {
|
|
13
|
-
({ children, label, disabled, helperIcon, helperText, invalidText, validText, validationStatus: validation, showValidationIcon, type, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
({ children, label, disabled, helperIcon, helperText, invalidText, validText, validationStatus: validation, showValidationIcon, type, image, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
14
14
|
displayName: string;
|
|
15
15
|
};
|
|
16
16
|
declare const RadioTile: {
|
|
17
17
|
({ type, ...props }: RadioProps): import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
displayName: string;
|
|
19
19
|
};
|
|
20
|
-
export { Radio, RadioGroup,
|
|
20
|
+
export { Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RadioTile };
|
|
21
21
|
export default Radio;
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { createRadio } from '@gluestack-ui/radio';
|
|
3
|
-
import
|
|
4
|
-
import StyledRadioIndicator from './RadioIndicator';
|
|
3
|
+
import StyledRadioGroup from './RadioGroupRoot';
|
|
5
4
|
import StyledRadioIcon from './RadioIcon';
|
|
5
|
+
import StyledRadioIndicator from './RadioIndicator';
|
|
6
6
|
import StyledRadioLabel from './RadioLabel';
|
|
7
|
-
import
|
|
7
|
+
import StyledRadio from './RadioRoot';
|
|
8
|
+
import { useFormFieldContext } from '../FormField';
|
|
8
9
|
import { Helper } from '../Helper';
|
|
9
10
|
import { useRadioGroupContext } from './RadioGroup.context';
|
|
10
|
-
import
|
|
11
|
-
import RadioTileRoot from './RadioTileRoot';
|
|
11
|
+
import RadioImage from './RadioImage';
|
|
12
12
|
import RadioTextContent from './RadioTextContent';
|
|
13
|
+
import RadioTileRoot from './RadioTileRoot';
|
|
13
14
|
const RadioComponent = createRadio({
|
|
14
15
|
Root: StyledRadio,
|
|
15
16
|
Group: StyledRadioGroup,
|
|
@@ -25,16 +26,16 @@ RadioGroup.displayName = 'RadioGroup';
|
|
|
25
26
|
RadioIndicator.displayName = 'RadioIndicator';
|
|
26
27
|
RadioIcon.displayName = 'RadioIcon';
|
|
27
28
|
RadioLabel.displayName = 'RadioLabel';
|
|
28
|
-
const Radio = ({ children, label, disabled, helperIcon, helperText, invalidText, validText, validationStatus: validation, showValidationIcon, type = 'default', ...props }) => {
|
|
29
|
+
const Radio = ({ children, label, disabled, helperIcon, helperText, invalidText, validText, validationStatus: validation, showValidationIcon, type = 'default', image, ...props }) => {
|
|
29
30
|
const { validationStatus: fieldValidationStatus } = useFormFieldContext();
|
|
30
31
|
const { validationStatus: groupValidationStatus, type: groupType } = useRadioGroupContext();
|
|
31
32
|
const validationStatus = fieldValidationStatus ?? groupValidationStatus ?? validation ?? 'initial';
|
|
32
33
|
const radioType = groupType ?? type;
|
|
33
|
-
const radioChildren = children ? (children) : (_jsxs(_Fragment, { children: [_jsx(RadioIndicator, { children: _jsx(RadioIcon, {}) }), _jsxs(RadioTextContent, { children: [!!label && _jsx(RadioLabel, { children: label }), !!helperText && _jsx(Helper, { disabled: disabled, icon: helperIcon, text: helperText }), validationStatus === 'invalid' && !!invalidText && (_jsx(Helper, { showIcon: showValidationIcon, disabled: disabled, validationStatus: "invalid", text: invalidText })), validationStatus === 'valid' && !!validText && (_jsx(Helper, { disabled: disabled, showIcon: showValidationIcon, validationStatus: "valid", text: validText }))] })] }));
|
|
34
|
+
const radioChildren = children ? (children) : (_jsxs(_Fragment, { children: [_jsx(RadioIndicator, { children: _jsx(RadioIcon, {}) }), image ? _jsx(RadioImage, { ...image }) : null, _jsxs(RadioTextContent, { children: [!!label && _jsx(RadioLabel, { children: label }), !!helperText && _jsx(Helper, { disabled: disabled, icon: helperIcon, text: helperText }), validationStatus === 'invalid' && !!invalidText && (_jsx(Helper, { showIcon: showValidationIcon, disabled: disabled, validationStatus: "invalid", text: invalidText })), validationStatus === 'valid' && !!validText && (_jsx(Helper, { disabled: disabled, showIcon: showValidationIcon, validationStatus: "valid", text: validText }))] })] }));
|
|
34
35
|
return (_jsx(RadioComponent, { ...props, isDisabled: disabled, children: radioType === 'tile' ? _jsx(RadioTileRoot, { children: radioChildren }) : radioChildren }));
|
|
35
36
|
};
|
|
36
37
|
const RadioTile = ({ type = 'tile', ...props }) => _jsx(Radio, { ...props, type: type });
|
|
37
38
|
RadioTile.displayName = 'RadioTile';
|
|
38
39
|
Radio.displayName = 'Radio';
|
|
39
|
-
export { Radio, RadioGroup,
|
|
40
|
+
export { Radio, RadioGroup, RadioIcon, RadioIndicator, RadioLabel, RadioTile };
|
|
40
41
|
export default Radio;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
|
-
import type { PressableProps, ViewProps } from 'react-native';
|
|
2
|
+
import type { ImageProps, PressableProps, ViewProps } from 'react-native';
|
|
3
3
|
interface RadioBaseProps extends Omit<PressableProps, 'children'> {
|
|
4
4
|
value: string;
|
|
5
5
|
onChange?: (isSelected: boolean) => void;
|
|
@@ -15,6 +15,7 @@ interface RadioWithChildrenProps extends RadioBaseProps {
|
|
|
15
15
|
invalidText?: never;
|
|
16
16
|
validText?: never;
|
|
17
17
|
showValidationIcon?: never;
|
|
18
|
+
image?: never;
|
|
18
19
|
}
|
|
19
20
|
interface RadioWithoutChildrenProps extends RadioBaseProps {
|
|
20
21
|
children?: never;
|
|
@@ -24,6 +25,7 @@ interface RadioWithoutChildrenProps extends RadioBaseProps {
|
|
|
24
25
|
invalidText?: string;
|
|
25
26
|
validText?: string;
|
|
26
27
|
showValidationIcon?: boolean;
|
|
28
|
+
image?: ImageProps;
|
|
27
29
|
}
|
|
28
30
|
type RadioProps = RadioWithChildrenProps | RadioWithoutChildrenProps;
|
|
29
31
|
export default RadioProps;
|
|
@@ -18,7 +18,7 @@ const styles = StyleSheet.create(theme => ({
|
|
|
18
18
|
gap: theme.components.radio.gap,
|
|
19
19
|
padding: theme.components.radio.tile.padding,
|
|
20
20
|
borderWidth: theme.components.radio.tile.borderWidth,
|
|
21
|
-
borderColor: theme.color.border.
|
|
21
|
+
borderColor: theme.color.border.strong,
|
|
22
22
|
borderRadius: theme.components.radio.tile.borderRadius,
|
|
23
23
|
backgroundColor: theme.color.surface.neutral.strong,
|
|
24
24
|
variants: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
export { default as Radio, RadioIndicator, RadioLabel,
|
|
1
|
+
export { default as Radio, RadioIcon, RadioIndicator, RadioLabel, RadioTile } from './Radio';
|
|
2
|
+
export type { default as RadioProps } from './Radio.props';
|
|
2
3
|
export { default as RadioGroup } from './RadioGroup';
|
|
3
4
|
export { default as RadioGroupTextContent } from './RadioGroupTextContent';
|
|
5
|
+
export { default as RadioImage } from './RadioImage';
|
|
4
6
|
export { default as RadioTextContent } from './RadioTextContent';
|
|
5
|
-
export type { default as RadioProps } from './Radio.props';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
export { default as Radio, RadioIndicator, RadioLabel,
|
|
1
|
+
export { default as Radio, RadioIcon, RadioIndicator, RadioLabel, RadioTile } from './Radio';
|
|
2
2
|
export { default as RadioGroup } from './RadioGroup';
|
|
3
3
|
export { default as RadioGroupTextContent } from './RadioGroupTextContent';
|
|
4
|
+
export { default as RadioImage } from './RadioImage';
|
|
4
5
|
export { default as RadioTextContent } from './RadioTextContent';
|
|
@@ -22,13 +22,7 @@ const SelectOption = ({ label, value, leadingIcon: LeftIcon, trailingIcon: Right
|
|
|
22
22
|
close();
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
return (_jsxs(Pressable, { onPress: handlePress, disabled: disabled, style: ({ pressed }) => [styles.container, pressed && styles.pressed], children: [!!LeftIcon && (_jsx(View, { children: (()
|
|
26
|
-
const IconAny = Icon;
|
|
27
|
-
return _jsx(IconAny, { style: styles.icon, as: LeftIcon });
|
|
28
|
-
})() })), _jsx(View, { style: styles.labelContainer, children: _jsx(BodyText, { children: label }) }), isSelected && (_jsx(View, { children: _jsx(TickSmallIcon, { style: styles.icon }) })), !!RightIcon && !isSelected && (_jsx(View, { children: (() => {
|
|
29
|
-
const IconAny = Icon;
|
|
30
|
-
return _jsx(IconAny, { style: styles.icon, as: RightIcon });
|
|
31
|
-
})() }))] }));
|
|
25
|
+
return (_jsxs(Pressable, { onPress: handlePress, disabled: disabled, style: ({ pressed }) => [styles.container, pressed && styles.pressed], children: [!!LeftIcon && (_jsx(View, { children: _jsx(Icon, { as: LeftIcon, style: styles.icon }) })), _jsx(View, { style: styles.labelContainer, children: _jsx(BodyText, { children: label }) }), isSelected && (_jsx(View, { children: _jsx(Icon, { as: TickSmallIcon, style: styles.icon }) })), !!RightIcon && !isSelected && (_jsx(View, { children: _jsx(Icon, { as: RightIcon, style: styles.icon }) }))] }));
|
|
32
26
|
};
|
|
33
27
|
const styles = StyleSheet.create(theme => ({
|
|
34
28
|
container: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UnstyledIconButtonProps } from './UnstyledIconButton.props';
|
|
2
2
|
declare const UnstyledIconButton: {
|
|
3
|
-
({ icon, disabled, pressed, size, inverted, ...props }: UnstyledIconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
({ icon, disabled, pressed, size, inverted, iconStyle, ...props }: UnstyledIconButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
};
|
|
6
6
|
export default UnstyledIconButton;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createButton } from '@gluestack-ui/button';
|
|
3
|
-
import
|
|
3
|
+
import { useButtonGroupContext } from '../Button/ButtonGroup.context';
|
|
4
4
|
import UnstyledIconButtonIconComponent from './UnstyledIconButtonIcon';
|
|
5
|
+
import UnstyledIconButtonRootComponent from './UnstyledIconButtonRoot';
|
|
5
6
|
import UnstyledIconButtonSpinerComponent from './UnstyledIconButtonSpinner';
|
|
6
|
-
import { useButtonGroupContext } from '../Button/ButtonGroup.context';
|
|
7
7
|
const UnstyledIconButtonComponent = createButton({
|
|
8
8
|
Root: UnstyledIconButtonRootComponent,
|
|
9
9
|
Icon: UnstyledIconButtonIconComponent,
|
|
@@ -15,12 +15,12 @@ const UnstyledIconButtonSpinner = UnstyledIconButtonComponent.Spinner;
|
|
|
15
15
|
const UnstyledIconButtonIcon = UnstyledIconButtonComponent.Icon;
|
|
16
16
|
UnstyledIconButtonSpinner.displayName = 'UnstyledIconButtonSpinner';
|
|
17
17
|
UnstyledIconButtonIcon.displayName = 'UnstyledIconButtonIcon';
|
|
18
|
-
const UnstyledIconButton = ({ icon, disabled = false, pressed, size = 'md', inverted = false, ...props }) => {
|
|
18
|
+
const UnstyledIconButton = ({ icon, disabled = false, pressed, size = 'md', inverted = false, iconStyle, ...props }) => {
|
|
19
19
|
const { disabled: groupDisabled, loading: groupLoading } = useButtonGroupContext();
|
|
20
20
|
const { loading } = props;
|
|
21
21
|
const isLoading = loading ?? groupLoading;
|
|
22
22
|
const buttonDisabled = isLoading || (disabled ?? groupDisabled);
|
|
23
|
-
return (_jsx(UnstyledIconButtonComponent, { ...props, size: size, inverted: inverted, isDisabled: buttonDisabled, isPressed: pressed, icon: icon, children: loading ? _jsx(UnstyledIconButtonSpinner, {}) : _jsx(UnstyledIconButtonIcon, { as: icon }) }));
|
|
23
|
+
return (_jsx(UnstyledIconButtonComponent, { ...props, size: size, inverted: inverted, isDisabled: buttonDisabled, isPressed: pressed, icon: icon, children: loading ? (_jsx(UnstyledIconButtonSpinner, {})) : (_jsx(UnstyledIconButtonIcon, { as: icon, style: iconStyle })) }));
|
|
24
24
|
};
|
|
25
25
|
UnstyledIconButton.displayName = 'UnstyledIconButton';
|
|
26
26
|
export default UnstyledIconButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ComponentType } from 'react';
|
|
2
|
-
import type { PressableProps } from 'react-native';
|
|
2
|
+
import type { PressableProps, ViewProps } from 'react-native';
|
|
3
3
|
export type UnstyledIconButtonProps = {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
pressed?: boolean;
|
|
@@ -8,4 +8,5 @@ export type UnstyledIconButtonProps = {
|
|
|
8
8
|
size?: 'sm' | 'md';
|
|
9
9
|
inverted?: boolean;
|
|
10
10
|
children?: React.ReactNode;
|
|
11
|
+
iconStyle?: ViewProps['style'];
|
|
11
12
|
} & PressableProps;
|
package/build/core/themes.d.ts
CHANGED
|
@@ -1017,7 +1017,7 @@ export declare const lightTheme: {
|
|
|
1017
1017
|
readonly brand: "#7a42c8";
|
|
1018
1018
|
readonly inverted: "#fcfbf2";
|
|
1019
1019
|
readonly primary: "#101010";
|
|
1020
|
-
readonly secondary: "#
|
|
1020
|
+
readonly secondary: "#5b5b5b";
|
|
1021
1021
|
};
|
|
1022
1022
|
readonly blue: {
|
|
1023
1023
|
readonly '0': "#f8fbff";
|
|
@@ -2010,7 +2010,7 @@ export declare const darkTheme: {
|
|
|
2010
2010
|
readonly white: "#ffffff";
|
|
2011
2011
|
readonly black: "#000000";
|
|
2012
2012
|
readonly background: {
|
|
2013
|
-
readonly brand: "#
|
|
2013
|
+
readonly brand: "#7a42c8";
|
|
2014
2014
|
readonly primary: "#191917";
|
|
2015
2015
|
readonly secondary: "#232323";
|
|
2016
2016
|
};
|
|
@@ -2086,7 +2086,7 @@ export declare const darkTheme: {
|
|
|
2086
2086
|
readonly interactive: {
|
|
2087
2087
|
readonly affirmative: {
|
|
2088
2088
|
readonly border: {
|
|
2089
|
-
readonly strong: "#
|
|
2089
|
+
readonly strong: "#101010";
|
|
2090
2090
|
readonly subtle: "#58ca93";
|
|
2091
2091
|
};
|
|
2092
2092
|
readonly foreground: {
|
|
@@ -2122,7 +2122,7 @@ export declare const darkTheme: {
|
|
|
2122
2122
|
};
|
|
2123
2123
|
readonly destructive: {
|
|
2124
2124
|
readonly border: {
|
|
2125
|
-
readonly strong: "#
|
|
2125
|
+
readonly strong: "#101010";
|
|
2126
2126
|
readonly subtle: "#ff7964";
|
|
2127
2127
|
};
|
|
2128
2128
|
readonly foreground: {
|
|
@@ -2170,7 +2170,7 @@ export declare const darkTheme: {
|
|
|
2170
2170
|
};
|
|
2171
2171
|
readonly highlight: {
|
|
2172
2172
|
readonly border: {
|
|
2173
|
-
readonly strong: "#
|
|
2173
|
+
readonly strong: "#101010";
|
|
2174
2174
|
};
|
|
2175
2175
|
readonly foreground: {
|
|
2176
2176
|
readonly strong: "#101010";
|
|
@@ -2250,7 +2250,7 @@ export declare const darkTheme: {
|
|
|
2250
2250
|
readonly text: {
|
|
2251
2251
|
readonly affirmative: "#58ca93";
|
|
2252
2252
|
readonly brand: "#af90de";
|
|
2253
|
-
readonly inverted: "#
|
|
2253
|
+
readonly inverted: "#fcfbf2";
|
|
2254
2254
|
readonly primary: "#ebebeb";
|
|
2255
2255
|
readonly secondary: "#b2afae";
|
|
2256
2256
|
};
|
|
@@ -3488,7 +3488,7 @@ export declare const themes: {
|
|
|
3488
3488
|
readonly brand: "#7a42c8";
|
|
3489
3489
|
readonly inverted: "#fcfbf2";
|
|
3490
3490
|
readonly primary: "#101010";
|
|
3491
|
-
readonly secondary: "#
|
|
3491
|
+
readonly secondary: "#5b5b5b";
|
|
3492
3492
|
};
|
|
3493
3493
|
readonly blue: {
|
|
3494
3494
|
readonly '0': "#f8fbff";
|
|
@@ -4481,7 +4481,7 @@ export declare const themes: {
|
|
|
4481
4481
|
readonly white: "#ffffff";
|
|
4482
4482
|
readonly black: "#000000";
|
|
4483
4483
|
readonly background: {
|
|
4484
|
-
readonly brand: "#
|
|
4484
|
+
readonly brand: "#7a42c8";
|
|
4485
4485
|
readonly primary: "#191917";
|
|
4486
4486
|
readonly secondary: "#232323";
|
|
4487
4487
|
};
|
|
@@ -4557,7 +4557,7 @@ export declare const themes: {
|
|
|
4557
4557
|
readonly interactive: {
|
|
4558
4558
|
readonly affirmative: {
|
|
4559
4559
|
readonly border: {
|
|
4560
|
-
readonly strong: "#
|
|
4560
|
+
readonly strong: "#101010";
|
|
4561
4561
|
readonly subtle: "#58ca93";
|
|
4562
4562
|
};
|
|
4563
4563
|
readonly foreground: {
|
|
@@ -4593,7 +4593,7 @@ export declare const themes: {
|
|
|
4593
4593
|
};
|
|
4594
4594
|
readonly destructive: {
|
|
4595
4595
|
readonly border: {
|
|
4596
|
-
readonly strong: "#
|
|
4596
|
+
readonly strong: "#101010";
|
|
4597
4597
|
readonly subtle: "#ff7964";
|
|
4598
4598
|
};
|
|
4599
4599
|
readonly foreground: {
|
|
@@ -4641,7 +4641,7 @@ export declare const themes: {
|
|
|
4641
4641
|
};
|
|
4642
4642
|
readonly highlight: {
|
|
4643
4643
|
readonly border: {
|
|
4644
|
-
readonly strong: "#
|
|
4644
|
+
readonly strong: "#101010";
|
|
4645
4645
|
};
|
|
4646
4646
|
readonly foreground: {
|
|
4647
4647
|
readonly strong: "#101010";
|
|
@@ -4721,7 +4721,7 @@ export declare const themes: {
|
|
|
4721
4721
|
readonly text: {
|
|
4722
4722
|
readonly affirmative: "#58ca93";
|
|
4723
4723
|
readonly brand: "#af90de";
|
|
4724
|
-
readonly inverted: "#
|
|
4724
|
+
readonly inverted: "#fcfbf2";
|
|
4725
4725
|
readonly primary: "#ebebeb";
|
|
4726
4726
|
readonly secondary: "#b2afae";
|
|
4727
4727
|
};
|
package/build/tokens/color.d.ts
CHANGED
|
@@ -458,12 +458,12 @@ export declare const light: {
|
|
|
458
458
|
readonly brand: "#7a42c8";
|
|
459
459
|
readonly inverted: "#fcfbf2";
|
|
460
460
|
readonly primary: "#101010";
|
|
461
|
-
readonly secondary: "#
|
|
461
|
+
readonly secondary: "#5b5b5b";
|
|
462
462
|
};
|
|
463
463
|
};
|
|
464
464
|
export declare const dark: {
|
|
465
465
|
readonly background: {
|
|
466
|
-
readonly brand: "#
|
|
466
|
+
readonly brand: "#7a42c8";
|
|
467
467
|
readonly primary: "#191917";
|
|
468
468
|
readonly secondary: "#232323";
|
|
469
469
|
};
|
|
@@ -539,7 +539,7 @@ export declare const dark: {
|
|
|
539
539
|
readonly interactive: {
|
|
540
540
|
readonly affirmative: {
|
|
541
541
|
readonly border: {
|
|
542
|
-
readonly strong: "#
|
|
542
|
+
readonly strong: "#101010";
|
|
543
543
|
readonly subtle: "#58ca93";
|
|
544
544
|
};
|
|
545
545
|
readonly foreground: {
|
|
@@ -575,7 +575,7 @@ export declare const dark: {
|
|
|
575
575
|
};
|
|
576
576
|
readonly destructive: {
|
|
577
577
|
readonly border: {
|
|
578
|
-
readonly strong: "#
|
|
578
|
+
readonly strong: "#101010";
|
|
579
579
|
readonly subtle: "#ff7964";
|
|
580
580
|
};
|
|
581
581
|
readonly foreground: {
|
|
@@ -623,7 +623,7 @@ export declare const dark: {
|
|
|
623
623
|
};
|
|
624
624
|
readonly highlight: {
|
|
625
625
|
readonly border: {
|
|
626
|
-
readonly strong: "#
|
|
626
|
+
readonly strong: "#101010";
|
|
627
627
|
};
|
|
628
628
|
readonly foreground: {
|
|
629
629
|
readonly strong: "#101010";
|
|
@@ -703,7 +703,7 @@ export declare const dark: {
|
|
|
703
703
|
readonly text: {
|
|
704
704
|
readonly affirmative: "#58ca93";
|
|
705
705
|
readonly brand: "#af90de";
|
|
706
|
-
readonly inverted: "#
|
|
706
|
+
readonly inverted: "#fcfbf2";
|
|
707
707
|
readonly primary: "#ebebeb";
|
|
708
708
|
readonly secondary: "#b2afae";
|
|
709
709
|
};
|
|
@@ -1166,12 +1166,12 @@ declare const color: {
|
|
|
1166
1166
|
readonly brand: "#7a42c8";
|
|
1167
1167
|
readonly inverted: "#fcfbf2";
|
|
1168
1168
|
readonly primary: "#101010";
|
|
1169
|
-
readonly secondary: "#
|
|
1169
|
+
readonly secondary: "#5b5b5b";
|
|
1170
1170
|
};
|
|
1171
1171
|
};
|
|
1172
1172
|
readonly dark: {
|
|
1173
1173
|
readonly background: {
|
|
1174
|
-
readonly brand: "#
|
|
1174
|
+
readonly brand: "#7a42c8";
|
|
1175
1175
|
readonly primary: "#191917";
|
|
1176
1176
|
readonly secondary: "#232323";
|
|
1177
1177
|
};
|
|
@@ -1247,7 +1247,7 @@ declare const color: {
|
|
|
1247
1247
|
readonly interactive: {
|
|
1248
1248
|
readonly affirmative: {
|
|
1249
1249
|
readonly border: {
|
|
1250
|
-
readonly strong: "#
|
|
1250
|
+
readonly strong: "#101010";
|
|
1251
1251
|
readonly subtle: "#58ca93";
|
|
1252
1252
|
};
|
|
1253
1253
|
readonly foreground: {
|
|
@@ -1283,7 +1283,7 @@ declare const color: {
|
|
|
1283
1283
|
};
|
|
1284
1284
|
readonly destructive: {
|
|
1285
1285
|
readonly border: {
|
|
1286
|
-
readonly strong: "#
|
|
1286
|
+
readonly strong: "#101010";
|
|
1287
1287
|
readonly subtle: "#ff7964";
|
|
1288
1288
|
};
|
|
1289
1289
|
readonly foreground: {
|
|
@@ -1331,7 +1331,7 @@ declare const color: {
|
|
|
1331
1331
|
};
|
|
1332
1332
|
readonly highlight: {
|
|
1333
1333
|
readonly border: {
|
|
1334
|
-
readonly strong: "#
|
|
1334
|
+
readonly strong: "#101010";
|
|
1335
1335
|
};
|
|
1336
1336
|
readonly foreground: {
|
|
1337
1337
|
readonly strong: "#101010";
|
|
@@ -1411,7 +1411,7 @@ declare const color: {
|
|
|
1411
1411
|
readonly text: {
|
|
1412
1412
|
readonly affirmative: "#58ca93";
|
|
1413
1413
|
readonly brand: "#af90de";
|
|
1414
|
-
readonly inverted: "#
|
|
1414
|
+
readonly inverted: "#fcfbf2";
|
|
1415
1415
|
readonly primary: "#ebebeb";
|
|
1416
1416
|
readonly secondary: "#b2afae";
|
|
1417
1417
|
};
|
package/build/tokens/color.js
CHANGED
|
@@ -458,12 +458,12 @@ export const light = {
|
|
|
458
458
|
brand: '#7a42c8',
|
|
459
459
|
inverted: '#fcfbf2',
|
|
460
460
|
primary: '#101010',
|
|
461
|
-
secondary: '#
|
|
461
|
+
secondary: '#5b5b5b',
|
|
462
462
|
},
|
|
463
463
|
};
|
|
464
464
|
export const dark = {
|
|
465
465
|
background: {
|
|
466
|
-
brand: '#
|
|
466
|
+
brand: '#7a42c8',
|
|
467
467
|
primary: '#191917',
|
|
468
468
|
secondary: '#232323',
|
|
469
469
|
},
|
|
@@ -539,7 +539,7 @@ export const dark = {
|
|
|
539
539
|
interactive: {
|
|
540
540
|
affirmative: {
|
|
541
541
|
border: {
|
|
542
|
-
strong: '#
|
|
542
|
+
strong: '#101010',
|
|
543
543
|
subtle: '#58ca93',
|
|
544
544
|
},
|
|
545
545
|
foreground: {
|
|
@@ -575,7 +575,7 @@ export const dark = {
|
|
|
575
575
|
},
|
|
576
576
|
destructive: {
|
|
577
577
|
border: {
|
|
578
|
-
strong: '#
|
|
578
|
+
strong: '#101010',
|
|
579
579
|
subtle: '#ff7964',
|
|
580
580
|
},
|
|
581
581
|
foreground: {
|
|
@@ -623,7 +623,7 @@ export const dark = {
|
|
|
623
623
|
},
|
|
624
624
|
highlight: {
|
|
625
625
|
border: {
|
|
626
|
-
strong: '#
|
|
626
|
+
strong: '#101010',
|
|
627
627
|
},
|
|
628
628
|
foreground: {
|
|
629
629
|
strong: '#101010',
|
|
@@ -703,7 +703,7 @@ export const dark = {
|
|
|
703
703
|
text: {
|
|
704
704
|
affirmative: '#58ca93',
|
|
705
705
|
brand: '#af90de',
|
|
706
|
-
inverted: '#
|
|
706
|
+
inverted: '#fcfbf2',
|
|
707
707
|
primary: '#ebebeb',
|
|
708
708
|
secondary: '#b2afae',
|
|
709
709
|
},
|
|
@@ -5,7 +5,20 @@ declare const _default: {
|
|
|
5
5
|
readonly borderRadius: 8;
|
|
6
6
|
readonly borderWidth: 2;
|
|
7
7
|
readonly contentGap: 4;
|
|
8
|
+
readonly focus: "#101010";
|
|
8
9
|
readonly gap: 8;
|
|
10
|
+
readonly iconButton: {
|
|
11
|
+
readonly unstyled: {
|
|
12
|
+
readonly foregroundColor: "#101010";
|
|
13
|
+
readonly foregroundColorActive: "#3f3f3f";
|
|
14
|
+
readonly foregroundColorHover: "#3a3837";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
readonly link: {
|
|
18
|
+
readonly color: "#101010";
|
|
19
|
+
readonly colorActive: "#3f3f3f";
|
|
20
|
+
readonly colorHover: "#3a3837";
|
|
21
|
+
};
|
|
9
22
|
readonly padding: 14;
|
|
10
23
|
};
|
|
11
24
|
export default _default;
|
|
@@ -5,6 +5,19 @@ export default {
|
|
|
5
5
|
borderRadius: 8,
|
|
6
6
|
borderWidth: 2,
|
|
7
7
|
contentGap: 4,
|
|
8
|
+
focus: '#101010',
|
|
8
9
|
gap: 8,
|
|
10
|
+
iconButton: {
|
|
11
|
+
unstyled: {
|
|
12
|
+
foregroundColor: '#101010',
|
|
13
|
+
foregroundColorActive: '#3f3f3f',
|
|
14
|
+
foregroundColorHover: '#3a3837',
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
link: {
|
|
18
|
+
color: '#101010',
|
|
19
|
+
colorActive: '#3f3f3f',
|
|
20
|
+
colorHover: '#3a3837',
|
|
21
|
+
},
|
|
9
22
|
padding: 14,
|
|
10
23
|
};
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/
|
|
4
4
|
declare const _default: {
|
|
5
|
+
readonly iconButton: {
|
|
6
|
+
readonly unstyled: {
|
|
7
|
+
readonly foregroundColor: "#101010";
|
|
8
|
+
readonly foregroundColorActive: "#3f3f3f";
|
|
9
|
+
readonly foregroundColorHover: "#3a3837";
|
|
10
|
+
};
|
|
11
|
+
};
|
|
5
12
|
readonly borderRadius: 8;
|
|
6
13
|
readonly md: {
|
|
7
14
|
readonly height: 48;
|
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/
|
|
4
4
|
export default {
|
|
5
|
+
iconButton: {
|
|
6
|
+
unstyled: {
|
|
7
|
+
foregroundColor: '#101010',
|
|
8
|
+
foregroundColorActive: '#3f3f3f',
|
|
9
|
+
foregroundColorHover: '#3a3837',
|
|
10
|
+
},
|
|
11
|
+
},
|
|
5
12
|
borderRadius: 8,
|
|
6
13
|
md: {
|
|
7
14
|
height: 48,
|
|
@@ -33,6 +33,7 @@ export { default as overlay } from './overlay';
|
|
|
33
33
|
export { default as pagination } from './pagination';
|
|
34
34
|
export { default as parts } from './parts';
|
|
35
35
|
export { default as pill } from './pill';
|
|
36
|
+
export { default as progressBar } from './progress-bar';
|
|
36
37
|
export { default as progressStepper } from './progress-stepper';
|
|
37
38
|
export { default as radio } from './radio';
|
|
38
39
|
export { default as sectionHeader } from './section-header';
|
|
@@ -33,6 +33,7 @@ export { default as overlay } from './overlay';
|
|
|
33
33
|
export { default as pagination } from './pagination';
|
|
34
34
|
export { default as parts } from './parts';
|
|
35
35
|
export { default as pill } from './pill';
|
|
36
|
+
export { default as progressBar } from './progress-bar';
|
|
36
37
|
export { default as progressStepper } from './progress-stepper';
|
|
37
38
|
export { default as radio } from './radio';
|
|
38
39
|
export { default as sectionHeader } from './section-header';
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
* Do not edit directly, this file was auto-generated.
|
|
3
3
|
*/
|
|
4
4
|
declare const _default: {
|
|
5
|
+
readonly link: {
|
|
6
|
+
readonly color: "#101010";
|
|
7
|
+
readonly colorActive: "#3f3f3f";
|
|
8
|
+
readonly colorHover: "#3a3837";
|
|
9
|
+
};
|
|
5
10
|
readonly color: "#ebebeb";
|
|
6
11
|
readonly colorActive: "#b2afae";
|
|
7
12
|
readonly colorHover: "#d3d3d3";
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
3
|
+
*/
|
|
4
|
+
declare const _default: {
|
|
5
|
+
readonly barColor: "#4c473d";
|
|
6
|
+
readonly circular: {
|
|
7
|
+
readonly md: {
|
|
8
|
+
readonly bar: {
|
|
9
|
+
readonly width: 12;
|
|
10
|
+
};
|
|
11
|
+
readonly gap: 0;
|
|
12
|
+
readonly height: 140;
|
|
13
|
+
readonly label: {
|
|
14
|
+
readonly fontFamily: "DM Sans";
|
|
15
|
+
readonly fontSize: 24;
|
|
16
|
+
readonly fontWeight: 400;
|
|
17
|
+
readonly lineHeight: 24;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
readonly sm: {
|
|
21
|
+
readonly barWidth: 8;
|
|
22
|
+
readonly height: 80;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
readonly linear: {
|
|
26
|
+
readonly bar: {
|
|
27
|
+
readonly borderRadius: 9999;
|
|
28
|
+
readonly height: 12;
|
|
29
|
+
};
|
|
30
|
+
readonly gap: 8;
|
|
31
|
+
readonly label: {
|
|
32
|
+
readonly gap: 8;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
readonly progress: {
|
|
36
|
+
readonly dangerColor: "#ff634a";
|
|
37
|
+
readonly defaultColor: "#c6b5e2";
|
|
38
|
+
readonly successColor: "#36bf7d";
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
export default _default;
|