@12min/ds 0.1.0 → 3.0.0
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/README.md +84 -51
- package/dist/Checkbox.styles-DPyXzxFJ.d.mts +90 -0
- package/dist/Checkbox.styles-DPyXzxFJ.d.ts +90 -0
- package/dist/chunk-ZK7NW4WW.mjs +247 -0
- package/dist/chunk-ZK7NW4WW.mjs.map +1 -0
- package/dist/chunk-ZKPOS2PD.mjs +192 -0
- package/dist/chunk-ZKPOS2PD.mjs.map +1 -0
- package/dist/index.native.d.mts +184 -2
- package/dist/index.native.d.ts +184 -2
- package/dist/index.native.js +1160 -62
- package/dist/index.native.js.map +1 -1
- package/dist/index.native.mjs +742 -5
- package/dist/index.native.mjs.map +1 -1
- package/dist/index.web.d.mts +182 -22
- package/dist/index.web.d.ts +182 -22
- package/dist/index.web.js +1052 -62
- package/dist/index.web.js.map +1 -1
- package/dist/index.web.mjs +644 -4
- package/dist/index.web.mjs.map +1 -1
- package/dist/tailwind/theme.css +300 -38
- package/dist/tokens/index.d.mts +385 -37
- package/dist/tokens/index.d.ts +385 -37
- package/dist/tokens/index.js +242 -33
- package/dist/tokens/index.js.map +1 -1
- package/dist/tokens/index.mjs +17 -3
- package/package.json +28 -5
- package/dist/chunk-E2C4G6H4.mjs +0 -45
- package/dist/chunk-E2C4G6H4.mjs.map +0 -1
- package/dist/chunk-QIJRSFZB.mjs +0 -41
- package/dist/chunk-QIJRSFZB.mjs.map +0 -1
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import {
|
|
2
|
+
colors
|
|
3
|
+
} from "./chunk-ZK7NW4WW.mjs";
|
|
4
|
+
|
|
5
|
+
// src/themes/lightTheme.ts
|
|
6
|
+
var lightTheme = {
|
|
7
|
+
bg: {
|
|
8
|
+
primary: colors.marianBlue[600],
|
|
9
|
+
primaryHover: colors.marianBlue[700],
|
|
10
|
+
primaryPressed: colors.marianBlue[800],
|
|
11
|
+
primarySubtle: colors.marianBlue[200],
|
|
12
|
+
primarySubtleHover: colors.marianBlue[300],
|
|
13
|
+
primarySubtlePressed: colors.marianBlue[400],
|
|
14
|
+
surface: colors.white,
|
|
15
|
+
surfaceRaised: colors.marianBlue[50],
|
|
16
|
+
surfaceHover: colors.gray[15],
|
|
17
|
+
surfacePressed: colors.gray[35],
|
|
18
|
+
overlay: colors.marianBlue[900],
|
|
19
|
+
overlaySubtle: colors.overlayBlack[8],
|
|
20
|
+
overlaySubtleHover: colors.overlayBlack[12],
|
|
21
|
+
overlaySubtlePressed: colors.overlayBlack[16],
|
|
22
|
+
success: colors.green[600],
|
|
23
|
+
successSubtle: colors.green[100],
|
|
24
|
+
error: colors.ketchup[600],
|
|
25
|
+
errorSubtle: colors.ketchup[100],
|
|
26
|
+
warning: colors.amber[500],
|
|
27
|
+
warningSubtle: colors.amber[100],
|
|
28
|
+
info: colors.blue[500],
|
|
29
|
+
infoSubtle: colors.blue[100],
|
|
30
|
+
highlight: colors.brandGreen,
|
|
31
|
+
accent: colors.amber[500],
|
|
32
|
+
accentSubtle: colors.amber[100],
|
|
33
|
+
disabled: colors.gray[25]
|
|
34
|
+
},
|
|
35
|
+
text: {
|
|
36
|
+
primary: colors.marianBlue[900],
|
|
37
|
+
secondary: colors.gray[700],
|
|
38
|
+
inverse: colors.white,
|
|
39
|
+
brand: colors.marianBlue[600],
|
|
40
|
+
link: colors.marianBlue[600],
|
|
41
|
+
placeholder: colors.gray[400],
|
|
42
|
+
success: colors.green.text,
|
|
43
|
+
error: colors.ketchup.text,
|
|
44
|
+
warning: colors.amber.text,
|
|
45
|
+
info: colors.blue.text,
|
|
46
|
+
highlight: colors.marianBlue[900],
|
|
47
|
+
accent: colors.amber.text,
|
|
48
|
+
disabled: colors.gray[400],
|
|
49
|
+
onSuccess: colors.white,
|
|
50
|
+
onError: colors.white,
|
|
51
|
+
onWarning: colors.midnight[900],
|
|
52
|
+
onHighlight: colors.midnight[900]
|
|
53
|
+
},
|
|
54
|
+
border: {
|
|
55
|
+
default: colors.marianBlue[200],
|
|
56
|
+
strong: colors.marianBlue[600],
|
|
57
|
+
subtle: colors.overlayBlack[5],
|
|
58
|
+
focus: colors.black,
|
|
59
|
+
accent: colors.amber[700],
|
|
60
|
+
success: colors.green.text,
|
|
61
|
+
error: colors.ketchup[600],
|
|
62
|
+
warning: colors.amber[700],
|
|
63
|
+
info: colors.blue[600],
|
|
64
|
+
disabled: colors.gray[50]
|
|
65
|
+
},
|
|
66
|
+
icon: {
|
|
67
|
+
primary: colors.marianBlue[900],
|
|
68
|
+
secondary: colors.gray[600],
|
|
69
|
+
inverse: colors.white,
|
|
70
|
+
brand: colors.marianBlue[600],
|
|
71
|
+
accent: colors.amber[700],
|
|
72
|
+
success: colors.green.text,
|
|
73
|
+
error: colors.ketchup[600],
|
|
74
|
+
warning: colors.amber[600],
|
|
75
|
+
info: colors.blue[600],
|
|
76
|
+
highlight: colors.marianBlue[900],
|
|
77
|
+
disabled: colors.gray[400]
|
|
78
|
+
},
|
|
79
|
+
interactive: {
|
|
80
|
+
hover: colors.overlayBlack[8],
|
|
81
|
+
pressed: colors.overlayBlack[12],
|
|
82
|
+
selected: colors.marianBlue[700],
|
|
83
|
+
selectedSubtle: colors.marianBlue[200]
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
// src/themes/darkTheme.ts
|
|
88
|
+
var darkTheme = {
|
|
89
|
+
bg: {
|
|
90
|
+
primary: colors.marianBlue[600],
|
|
91
|
+
primaryHover: colors.marianBlue[500],
|
|
92
|
+
primaryPressed: colors.marianBlue[600],
|
|
93
|
+
primarySubtle: colors.marianBlue[900],
|
|
94
|
+
primarySubtleHover: colors.marianBlue[800],
|
|
95
|
+
primarySubtlePressed: colors.marianBlue[700],
|
|
96
|
+
surface: colors.midnight[900],
|
|
97
|
+
surfaceRaised: colors.midnight[800],
|
|
98
|
+
surfaceHover: colors.midnight[800],
|
|
99
|
+
surfacePressed: colors.midnight[600],
|
|
100
|
+
overlay: colors.black,
|
|
101
|
+
overlaySubtle: colors.overlayWhite[8],
|
|
102
|
+
overlaySubtleHover: colors.overlayWhite[12],
|
|
103
|
+
overlaySubtlePressed: colors.overlayWhite[16],
|
|
104
|
+
success: colors.green[300],
|
|
105
|
+
successSubtle: colors.green[800],
|
|
106
|
+
error: colors.ketchup[900],
|
|
107
|
+
errorSubtle: colors.ketchup[800],
|
|
108
|
+
warning: colors.amber[900],
|
|
109
|
+
warningSubtle: colors.amber[800],
|
|
110
|
+
info: colors.blue[600],
|
|
111
|
+
infoSubtle: colors.blue[700],
|
|
112
|
+
highlight: colors.brandGreen,
|
|
113
|
+
accent: colors.amber[900],
|
|
114
|
+
accentSubtle: colors.amber[900],
|
|
115
|
+
disabled: colors.midnight[700]
|
|
116
|
+
},
|
|
117
|
+
text: {
|
|
118
|
+
primary: colors.white,
|
|
119
|
+
secondary: colors.gray[300],
|
|
120
|
+
inverse: colors.midnight[900],
|
|
121
|
+
brand: colors.marianBlue[300],
|
|
122
|
+
link: colors.marianBlue[300],
|
|
123
|
+
placeholder: colors.gray[400],
|
|
124
|
+
success: colors.green[500],
|
|
125
|
+
error: colors.ketchup[600],
|
|
126
|
+
warning: colors.amber[500],
|
|
127
|
+
info: colors.blue[100],
|
|
128
|
+
highlight: colors.marianBlue[900],
|
|
129
|
+
accent: colors.amber.text,
|
|
130
|
+
disabled: colors.gray[600],
|
|
131
|
+
onSuccess: colors.white,
|
|
132
|
+
onError: colors.white,
|
|
133
|
+
onWarning: colors.midnight[900],
|
|
134
|
+
onHighlight: colors.midnight[900]
|
|
135
|
+
},
|
|
136
|
+
border: {
|
|
137
|
+
default: colors.midnight[50],
|
|
138
|
+
strong: colors.marianBlue[300],
|
|
139
|
+
subtle: colors.overlayWhite[5],
|
|
140
|
+
focus: colors.white,
|
|
141
|
+
accent: colors.amber.text,
|
|
142
|
+
success: colors.green.text,
|
|
143
|
+
error: colors.ketchup[500],
|
|
144
|
+
warning: colors.amber[600],
|
|
145
|
+
info: colors.blue[500],
|
|
146
|
+
disabled: colors.midnight[700]
|
|
147
|
+
},
|
|
148
|
+
icon: {
|
|
149
|
+
primary: colors.white,
|
|
150
|
+
secondary: colors.gray[400],
|
|
151
|
+
inverse: colors.midnight[900],
|
|
152
|
+
brand: colors.marianBlue[300],
|
|
153
|
+
accent: colors.amber[700],
|
|
154
|
+
success: colors.green.text,
|
|
155
|
+
error: colors.ketchup.text,
|
|
156
|
+
warning: colors.amber[100],
|
|
157
|
+
info: colors.blue[100],
|
|
158
|
+
highlight: colors.marianBlue[900],
|
|
159
|
+
disabled: colors.gray[600]
|
|
160
|
+
},
|
|
161
|
+
interactive: {
|
|
162
|
+
hover: colors.overlayWhite[8],
|
|
163
|
+
pressed: colors.overlayWhite[12],
|
|
164
|
+
selected: colors.marianBlue[800],
|
|
165
|
+
selectedSubtle: colors.marianBlue[900]
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
// src/components/RatingScale/RatingScale.styles.ts
|
|
170
|
+
var ratingScaleTokens = {
|
|
171
|
+
itemWidth: 60,
|
|
172
|
+
circleSize: 60,
|
|
173
|
+
circleRadius: 30,
|
|
174
|
+
emojiFontSize: 28,
|
|
175
|
+
emojiLineHeight: 34,
|
|
176
|
+
itemGap: 6
|
|
177
|
+
};
|
|
178
|
+
var DEFAULT_OPTIONS = [
|
|
179
|
+
{ emoji: "\u{1F621}", label: "P\xE9ssimo" },
|
|
180
|
+
{ emoji: "\u{1F615}", label: "Ruim" },
|
|
181
|
+
{ emoji: "\u{1F610}", label: "Neutro" },
|
|
182
|
+
{ emoji: "\u{1F60A}", label: "Bom" },
|
|
183
|
+
{ emoji: "\u{1F60D}", label: "\xD3timo" }
|
|
184
|
+
];
|
|
185
|
+
|
|
186
|
+
export {
|
|
187
|
+
lightTheme,
|
|
188
|
+
darkTheme,
|
|
189
|
+
ratingScaleTokens,
|
|
190
|
+
DEFAULT_OPTIONS
|
|
191
|
+
};
|
|
192
|
+
//# sourceMappingURL=chunk-ZKPOS2PD.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/themes/lightTheme.ts","../src/themes/darkTheme.ts","../src/components/RatingScale/RatingScale.styles.ts"],"sourcesContent":["import { colors } from '../tokens/colors'\nimport type { Theme } from './types'\n\nexport const lightTheme: Theme = {\n bg: {\n primary: colors.marianBlue[600],\n primaryHover: colors.marianBlue[700],\n primaryPressed: colors.marianBlue[800],\n primarySubtle: colors.marianBlue[200],\n primarySubtleHover: colors.marianBlue[300],\n primarySubtlePressed: colors.marianBlue[400],\n surface: colors.white,\n surfaceRaised: colors.marianBlue[50],\n surfaceHover: colors.gray[15],\n surfacePressed: colors.gray[35],\n overlay: colors.marianBlue[900],\n overlaySubtle: colors.overlayBlack[8],\n overlaySubtleHover: colors.overlayBlack[12],\n overlaySubtlePressed: colors.overlayBlack[16],\n success: colors.green[600],\n successSubtle: colors.green[100],\n error: colors.ketchup[600],\n errorSubtle: colors.ketchup[100],\n warning: colors.amber[500],\n warningSubtle: colors.amber[100],\n info: colors.blue[500],\n infoSubtle: colors.blue[100],\n highlight: colors.brandGreen,\n accent: colors.amber[500],\n accentSubtle: colors.amber[100],\n disabled: colors.gray[25],\n },\n text: {\n primary: colors.marianBlue[900],\n secondary: colors.gray[700],\n inverse: colors.white,\n brand: colors.marianBlue[600],\n link: colors.marianBlue[600],\n placeholder: colors.gray[400],\n success: colors.green.text,\n error: colors.ketchup.text,\n warning: colors.amber.text,\n info: colors.blue.text,\n highlight: colors.marianBlue[900],\n accent: colors.amber.text,\n disabled: colors.gray[400],\n onSuccess: colors.white,\n onError: colors.white,\n onWarning: colors.midnight[900],\n onHighlight: colors.midnight[900],\n },\n border: {\n default: colors.marianBlue[200],\n strong: colors.marianBlue[600],\n subtle: colors.overlayBlack[5],\n focus: colors.black,\n accent: colors.amber[700],\n success: colors.green.text,\n error: colors.ketchup[600],\n warning: colors.amber[700],\n info: colors.blue[600],\n disabled: colors.gray[50],\n },\n icon: {\n primary: colors.marianBlue[900],\n secondary: colors.gray[600],\n inverse: colors.white,\n brand: colors.marianBlue[600],\n accent: colors.amber[700],\n success: colors.green.text,\n error: colors.ketchup[600],\n warning: colors.amber[600],\n info: colors.blue[600],\n highlight: colors.marianBlue[900],\n disabled: colors.gray[400],\n },\n interactive: {\n hover: colors.overlayBlack[8],\n pressed: colors.overlayBlack[12],\n selected: colors.marianBlue[700],\n selectedSubtle: colors.marianBlue[200],\n },\n}\n","import { colors } from '../tokens/colors'\nimport type { Theme } from './types'\n\nexport const darkTheme: Theme = {\n bg: {\n primary: colors.marianBlue[600],\n primaryHover: colors.marianBlue[500],\n primaryPressed: colors.marianBlue[600],\n primarySubtle: colors.marianBlue[900],\n primarySubtleHover: colors.marianBlue[800],\n primarySubtlePressed: colors.marianBlue[700],\n surface: colors.midnight[900],\n surfaceRaised: colors.midnight[800],\n surfaceHover: colors.midnight[800],\n surfacePressed: colors.midnight[600],\n overlay: colors.black,\n overlaySubtle: colors.overlayWhite[8],\n overlaySubtleHover: colors.overlayWhite[12],\n overlaySubtlePressed: colors.overlayWhite[16],\n success: colors.green[300],\n successSubtle: colors.green[800],\n error: colors.ketchup[900],\n errorSubtle: colors.ketchup[800],\n warning: colors.amber[900],\n warningSubtle: colors.amber[800],\n info: colors.blue[600],\n infoSubtle: colors.blue[700],\n highlight: colors.brandGreen,\n accent: colors.amber[900],\n accentSubtle: colors.amber[900],\n disabled: colors.midnight[700],\n },\n text: {\n primary: colors.white,\n secondary: colors.gray[300],\n inverse: colors.midnight[900],\n brand: colors.marianBlue[300],\n link: colors.marianBlue[300],\n placeholder: colors.gray[400],\n success: colors.green[500],\n error: colors.ketchup[600],\n warning: colors.amber[500],\n info: colors.blue[100],\n highlight: colors.marianBlue[900],\n accent: colors.amber.text,\n disabled: colors.gray[600],\n onSuccess: colors.white,\n onError: colors.white,\n onWarning: colors.midnight[900],\n onHighlight: colors.midnight[900],\n },\n border: {\n default: colors.midnight[50],\n strong: colors.marianBlue[300],\n subtle: colors.overlayWhite[5],\n focus: colors.white,\n accent: colors.amber.text,\n success: colors.green.text,\n error: colors.ketchup[500],\n warning: colors.amber[600],\n info: colors.blue[500],\n disabled: colors.midnight[700],\n },\n icon: {\n primary: colors.white,\n secondary: colors.gray[400],\n inverse: colors.midnight[900],\n brand: colors.marianBlue[300],\n accent: colors.amber[700],\n success: colors.green.text,\n error: colors.ketchup.text,\n warning: colors.amber[100],\n info: colors.blue[100],\n highlight: colors.marianBlue[900],\n disabled: colors.gray[600],\n },\n interactive: {\n hover: colors.overlayWhite[8],\n pressed: colors.overlayWhite[12],\n selected: colors.marianBlue[800],\n selectedSubtle: colors.marianBlue[900],\n },\n}\n","export const ratingScaleTokens = {\n itemWidth: 60,\n circleSize: 60,\n circleRadius: 30,\n emojiFontSize: 28,\n emojiLineHeight: 34,\n itemGap: 6,\n}\n\nexport const DEFAULT_OPTIONS = [\n { emoji: '😡', label: 'Péssimo' },\n { emoji: '😕', label: 'Ruim' },\n { emoji: '😐', label: 'Neutro' },\n { emoji: '😊', label: 'Bom' },\n { emoji: '😍', label: 'Ótimo' },\n] as const\n"],"mappings":";;;;;AAGO,IAAM,aAAoB;AAAA,EAC/B,IAAI;AAAA,IACF,SAAsB,OAAO,WAAW,GAAG;AAAA,IAC3C,cAAsB,OAAO,WAAW,GAAG;AAAA,IAC3C,gBAAsB,OAAO,WAAW,GAAG;AAAA,IAC3C,eAAsB,OAAO,WAAW,GAAG;AAAA,IAC3C,oBAAsB,OAAO,WAAW,GAAG;AAAA,IAC3C,sBAAsB,OAAO,WAAW,GAAG;AAAA,IAC3C,SAAsB,OAAO;AAAA,IAC7B,eAAsB,OAAO,WAAW,EAAE;AAAA,IAC1C,cAAsB,OAAO,KAAK,EAAE;AAAA,IACpC,gBAAsB,OAAO,KAAK,EAAE;AAAA,IACpC,SAAsB,OAAO,WAAW,GAAG;AAAA,IAC3C,eAAsB,OAAO,aAAa,CAAC;AAAA,IAC3C,oBAAsB,OAAO,a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AAE,OAAO,aAAM,OAAO,SAAS;AAAA,EAC/B,EAAE,OAAO,aAAM,OAAO,MAAM;AAAA,EAC5B,EAAE,OAAO,aAAM,OAAO,WAAQ;AAChC;","names":[]}
|
package/dist/index.native.d.mts
CHANGED
|
@@ -1,2 +1,184 @@
|
|
|
1
|
-
export { Colors, colors } from './tokens/index.mjs';
|
|
2
|
-
|
|
1
|
+
export { BorderWidth, Colors, Grid, Opacity, Radius, Shadow, Spacing, Typography, borderWidth, colors, grid, opacity, radius, shadow, spacing, typography } from './tokens/index.mjs';
|
|
2
|
+
import { T as Theme, C as ChipSize, a as CheckboxSize } from './Checkbox.styles-DPyXzxFJ.mjs';
|
|
3
|
+
export { d as darkTheme, l as lightTheme } from './Checkbox.styles-DPyXzxFJ.mjs';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { PressableProps, StyleProp, ViewStyle } from 'react-native';
|
|
6
|
+
|
|
7
|
+
type DSThemeCtx = {
|
|
8
|
+
theme: Theme;
|
|
9
|
+
colorScheme: 'light' | 'dark';
|
|
10
|
+
};
|
|
11
|
+
declare function DSThemeProvider({ colorScheme, children, }: {
|
|
12
|
+
colorScheme?: 'light' | 'dark';
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function useTheme(): DSThemeCtx;
|
|
16
|
+
|
|
17
|
+
type ButtonVariant = 'primary' | 'secondary' | 'ghost';
|
|
18
|
+
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
19
|
+
type ButtonProps = {
|
|
20
|
+
variant?: ButtonVariant;
|
|
21
|
+
size?: ButtonSize;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
onPress?: PressableProps['onPress'];
|
|
25
|
+
};
|
|
26
|
+
declare function Button({ variant, size, disabled, children, onPress }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
type ButtonIconVariant = 'primary' | 'secondary' | 'ghost' | 'overlay';
|
|
29
|
+
type ButtonIconSize = 'sm' | 'md' | 'lg';
|
|
30
|
+
type ButtonIconProps = {
|
|
31
|
+
icon: React.ReactNode;
|
|
32
|
+
accessibilityLabel: string;
|
|
33
|
+
variant?: ButtonIconVariant;
|
|
34
|
+
size?: ButtonIconSize;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
onPress?: PressableProps['onPress'];
|
|
37
|
+
};
|
|
38
|
+
declare function ButtonIcon({ icon, accessibilityLabel, variant, size, disabled, onPress }: ButtonIconProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
type DismissButtonVariant = 'subtle' | 'ghost';
|
|
41
|
+
type DismissButtonSize = 'xs' | 'sm' | 'md';
|
|
42
|
+
type DismissButtonProps = {
|
|
43
|
+
accessibilityLabel?: string;
|
|
44
|
+
variant?: DismissButtonVariant;
|
|
45
|
+
size?: DismissButtonSize;
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
onPress?: PressableProps['onPress'];
|
|
48
|
+
};
|
|
49
|
+
declare function DismissButton({ accessibilityLabel, variant, size, disabled, onPress }: DismissButtonProps): react_jsx_runtime.JSX.Element;
|
|
50
|
+
|
|
51
|
+
type ChipProps = {
|
|
52
|
+
children: React.ReactNode;
|
|
53
|
+
checked?: boolean;
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
size?: ChipSize;
|
|
56
|
+
leading?: React.ReactNode;
|
|
57
|
+
trailing?: React.ReactNode;
|
|
58
|
+
onPress?: () => void;
|
|
59
|
+
style?: StyleProp<ViewStyle>;
|
|
60
|
+
};
|
|
61
|
+
declare function Chip({ children, checked, disabled, size, leading, trailing, onPress, style }: ChipProps): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
type AlertVariant = 'success' | 'info' | 'warning' | 'error';
|
|
64
|
+
type AlertSize = 'default' | 'compact';
|
|
65
|
+
type AlertLayout = 'stacked' | 'inline';
|
|
66
|
+
type AlertProps = {
|
|
67
|
+
variant?: AlertVariant;
|
|
68
|
+
size?: AlertSize;
|
|
69
|
+
layout?: AlertLayout;
|
|
70
|
+
title?: string;
|
|
71
|
+
description?: string;
|
|
72
|
+
onDismiss?: () => void;
|
|
73
|
+
};
|
|
74
|
+
declare function Alert({ variant, size, layout, title, description, onDismiss }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
75
|
+
|
|
76
|
+
type ProgressBarProps = {
|
|
77
|
+
value: number;
|
|
78
|
+
};
|
|
79
|
+
declare function ProgressBar({ value }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
80
|
+
|
|
81
|
+
type InputState = 'default' | 'filled' | 'error' | 'disabled';
|
|
82
|
+
type InputProps = {
|
|
83
|
+
value?: string;
|
|
84
|
+
placeholder?: string;
|
|
85
|
+
state?: InputState;
|
|
86
|
+
leadingIcon?: React.ReactNode;
|
|
87
|
+
trailingIcon?: React.ReactNode;
|
|
88
|
+
onChangeText?: (text: string) => void;
|
|
89
|
+
onFocus?: () => void;
|
|
90
|
+
onBlur?: () => void;
|
|
91
|
+
style?: StyleProp<ViewStyle>;
|
|
92
|
+
};
|
|
93
|
+
declare function Input({ value, placeholder, state, leadingIcon, trailingIcon, onChangeText, onFocus, onBlur, style }: InputProps): react_jsx_runtime.JSX.Element;
|
|
94
|
+
|
|
95
|
+
type InputFieldProps = {
|
|
96
|
+
label?: string;
|
|
97
|
+
required?: boolean;
|
|
98
|
+
helperText?: string;
|
|
99
|
+
error?: boolean;
|
|
100
|
+
value?: string;
|
|
101
|
+
placeholder?: string;
|
|
102
|
+
disabled?: boolean;
|
|
103
|
+
leadingIcon?: React.ReactNode;
|
|
104
|
+
trailingIcon?: React.ReactNode;
|
|
105
|
+
onChangeText?: (text: string) => void;
|
|
106
|
+
onFocus?: () => void;
|
|
107
|
+
onBlur?: () => void;
|
|
108
|
+
};
|
|
109
|
+
declare function InputField({ label, required, helperText, error, value, placeholder, disabled, leadingIcon, trailingIcon, onChangeText, onFocus, onBlur, }: InputFieldProps): react_jsx_runtime.JSX.Element;
|
|
110
|
+
|
|
111
|
+
type CheckboxProps = {
|
|
112
|
+
checked?: boolean;
|
|
113
|
+
onChange?: (checked: boolean) => void;
|
|
114
|
+
disabled?: boolean;
|
|
115
|
+
size?: CheckboxSize;
|
|
116
|
+
};
|
|
117
|
+
declare function Checkbox({ checked, onChange, disabled, size }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
118
|
+
|
|
119
|
+
type ToggleSwitchSize = 'xs' | 'sm' | 'md';
|
|
120
|
+
type ToggleSwitchProps = {
|
|
121
|
+
value?: boolean;
|
|
122
|
+
onChange?: (value: boolean) => void;
|
|
123
|
+
disabled?: boolean;
|
|
124
|
+
size?: ToggleSwitchSize;
|
|
125
|
+
accessibilityLabel: string;
|
|
126
|
+
onPress?: PressableProps['onPress'];
|
|
127
|
+
};
|
|
128
|
+
declare function ToggleSwitch({ value, onChange, disabled, size, accessibilityLabel }: ToggleSwitchProps): react_jsx_runtime.JSX.Element;
|
|
129
|
+
|
|
130
|
+
type RadioGroupProps = {
|
|
131
|
+
children: React.ReactNode;
|
|
132
|
+
label?: string;
|
|
133
|
+
style?: StyleProp<ViewStyle>;
|
|
134
|
+
};
|
|
135
|
+
declare function RadioGroup({ children, label, style }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
type ChoiceCardType = 'radio' | 'checkbox' | 'action';
|
|
138
|
+
type ChoiceCardProps = {
|
|
139
|
+
type?: ChoiceCardType;
|
|
140
|
+
label: string;
|
|
141
|
+
description?: string;
|
|
142
|
+
selected?: boolean;
|
|
143
|
+
disabled?: boolean;
|
|
144
|
+
leading?: React.ReactNode;
|
|
145
|
+
showTrailing?: boolean;
|
|
146
|
+
onPress?: () => void;
|
|
147
|
+
};
|
|
148
|
+
declare function ChoiceCard({ type, label, description, selected, disabled, leading, showTrailing, onPress }: ChoiceCardProps): react_jsx_runtime.JSX.Element;
|
|
149
|
+
|
|
150
|
+
type ListItemTrailing = 'none' | 'radio' | 'checkbox' | 'action' | 'switch';
|
|
151
|
+
type ListItemProps = {
|
|
152
|
+
trailing?: ListItemTrailing;
|
|
153
|
+
label: string;
|
|
154
|
+
description?: string;
|
|
155
|
+
selected?: boolean;
|
|
156
|
+
disabled?: boolean;
|
|
157
|
+
leading?: React.ReactNode;
|
|
158
|
+
switchValue?: boolean;
|
|
159
|
+
onSwitchChange?: (value: boolean) => void;
|
|
160
|
+
onPress?: () => void;
|
|
161
|
+
};
|
|
162
|
+
declare function ListItem({ trailing, label, description, selected, disabled, leading, switchValue, onSwitchChange, onPress }: ListItemProps): react_jsx_runtime.JSX.Element;
|
|
163
|
+
|
|
164
|
+
type StepperProps = {
|
|
165
|
+
totalSteps: number;
|
|
166
|
+
currentStep: number;
|
|
167
|
+
style?: StyleProp<ViewStyle>;
|
|
168
|
+
};
|
|
169
|
+
declare function Stepper({ totalSteps, currentStep, style }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
170
|
+
|
|
171
|
+
type RatingScaleOption = {
|
|
172
|
+
emoji: string;
|
|
173
|
+
label: string;
|
|
174
|
+
};
|
|
175
|
+
type RatingScaleProps = {
|
|
176
|
+
value?: number | null;
|
|
177
|
+
onChange?: (value: number) => void;
|
|
178
|
+
options?: ReadonlyArray<RatingScaleOption>;
|
|
179
|
+
disabled?: boolean;
|
|
180
|
+
style?: StyleProp<ViewStyle>;
|
|
181
|
+
};
|
|
182
|
+
declare function RatingScale({ value, onChange, options, disabled, style }: RatingScaleProps): react_jsx_runtime.JSX.Element;
|
|
183
|
+
|
|
184
|
+
export { Alert, Button, ButtonIcon, Checkbox, Chip, ChoiceCard, DSThemeProvider, DismissButton, Input, InputField, ListItem, ProgressBar, RadioGroup, RatingScale, Stepper, Theme, ToggleSwitch, useTheme };
|
package/dist/index.native.d.ts
CHANGED
|
@@ -1,2 +1,184 @@
|
|
|
1
|
-
export { Colors, colors } from './tokens/index.js';
|
|
2
|
-
|
|
1
|
+
export { BorderWidth, Colors, Grid, Opacity, Radius, Shadow, Spacing, Typography, borderWidth, colors, grid, opacity, radius, shadow, spacing, typography } from './tokens/index.js';
|
|
2
|
+
import { T as Theme, C as ChipSize, a as CheckboxSize } from './Checkbox.styles-DPyXzxFJ.js';
|
|
3
|
+
export { d as darkTheme, l as lightTheme } from './Checkbox.styles-DPyXzxFJ.js';
|
|
4
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
5
|
+
import { PressableProps, StyleProp, ViewStyle } from 'react-native';
|
|
6
|
+
|
|
7
|
+
type DSThemeCtx = {
|
|
8
|
+
theme: Theme;
|
|
9
|
+
colorScheme: 'light' | 'dark';
|
|
10
|
+
};
|
|
11
|
+
declare function DSThemeProvider({ colorScheme, children, }: {
|
|
12
|
+
colorScheme?: 'light' | 'dark';
|
|
13
|
+
children: React.ReactNode;
|
|
14
|
+
}): react_jsx_runtime.JSX.Element;
|
|
15
|
+
declare function useTheme(): DSThemeCtx;
|
|
16
|
+
|
|
17
|
+
type ButtonVariant = 'primary' | 'secondary' | 'ghost';
|
|
18
|
+
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
19
|
+
type ButtonProps = {
|
|
20
|
+
variant?: ButtonVariant;
|
|
21
|
+
size?: ButtonSize;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
children: React.ReactNode;
|
|
24
|
+
onPress?: PressableProps['onPress'];
|
|
25
|
+
};
|
|
26
|
+
declare function Button({ variant, size, disabled, children, onPress }: ButtonProps): react_jsx_runtime.JSX.Element;
|
|
27
|
+
|
|
28
|
+
type ButtonIconVariant = 'primary' | 'secondary' | 'ghost' | 'overlay';
|
|
29
|
+
type ButtonIconSize = 'sm' | 'md' | 'lg';
|
|
30
|
+
type ButtonIconProps = {
|
|
31
|
+
icon: React.ReactNode;
|
|
32
|
+
accessibilityLabel: string;
|
|
33
|
+
variant?: ButtonIconVariant;
|
|
34
|
+
size?: ButtonIconSize;
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
onPress?: PressableProps['onPress'];
|
|
37
|
+
};
|
|
38
|
+
declare function ButtonIcon({ icon, accessibilityLabel, variant, size, disabled, onPress }: ButtonIconProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
|
|
40
|
+
type DismissButtonVariant = 'subtle' | 'ghost';
|
|
41
|
+
type DismissButtonSize = 'xs' | 'sm' | 'md';
|
|
42
|
+
type DismissButtonProps = {
|
|
43
|
+
accessibilityLabel?: string;
|
|
44
|
+
variant?: DismissButtonVariant;
|
|
45
|
+
size?: DismissButtonSize;
|
|
46
|
+
disabled?: boolean;
|
|
47
|
+
onPress?: PressableProps['onPress'];
|
|
48
|
+
};
|
|
49
|
+
declare function DismissButton({ accessibilityLabel, variant, size, disabled, onPress }: DismissButtonProps): react_jsx_runtime.JSX.Element;
|
|
50
|
+
|
|
51
|
+
type ChipProps = {
|
|
52
|
+
children: React.ReactNode;
|
|
53
|
+
checked?: boolean;
|
|
54
|
+
disabled?: boolean;
|
|
55
|
+
size?: ChipSize;
|
|
56
|
+
leading?: React.ReactNode;
|
|
57
|
+
trailing?: React.ReactNode;
|
|
58
|
+
onPress?: () => void;
|
|
59
|
+
style?: StyleProp<ViewStyle>;
|
|
60
|
+
};
|
|
61
|
+
declare function Chip({ children, checked, disabled, size, leading, trailing, onPress, style }: ChipProps): react_jsx_runtime.JSX.Element;
|
|
62
|
+
|
|
63
|
+
type AlertVariant = 'success' | 'info' | 'warning' | 'error';
|
|
64
|
+
type AlertSize = 'default' | 'compact';
|
|
65
|
+
type AlertLayout = 'stacked' | 'inline';
|
|
66
|
+
type AlertProps = {
|
|
67
|
+
variant?: AlertVariant;
|
|
68
|
+
size?: AlertSize;
|
|
69
|
+
layout?: AlertLayout;
|
|
70
|
+
title?: string;
|
|
71
|
+
description?: string;
|
|
72
|
+
onDismiss?: () => void;
|
|
73
|
+
};
|
|
74
|
+
declare function Alert({ variant, size, layout, title, description, onDismiss }: AlertProps): react_jsx_runtime.JSX.Element;
|
|
75
|
+
|
|
76
|
+
type ProgressBarProps = {
|
|
77
|
+
value: number;
|
|
78
|
+
};
|
|
79
|
+
declare function ProgressBar({ value }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
80
|
+
|
|
81
|
+
type InputState = 'default' | 'filled' | 'error' | 'disabled';
|
|
82
|
+
type InputProps = {
|
|
83
|
+
value?: string;
|
|
84
|
+
placeholder?: string;
|
|
85
|
+
state?: InputState;
|
|
86
|
+
leadingIcon?: React.ReactNode;
|
|
87
|
+
trailingIcon?: React.ReactNode;
|
|
88
|
+
onChangeText?: (text: string) => void;
|
|
89
|
+
onFocus?: () => void;
|
|
90
|
+
onBlur?: () => void;
|
|
91
|
+
style?: StyleProp<ViewStyle>;
|
|
92
|
+
};
|
|
93
|
+
declare function Input({ value, placeholder, state, leadingIcon, trailingIcon, onChangeText, onFocus, onBlur, style }: InputProps): react_jsx_runtime.JSX.Element;
|
|
94
|
+
|
|
95
|
+
type InputFieldProps = {
|
|
96
|
+
label?: string;
|
|
97
|
+
required?: boolean;
|
|
98
|
+
helperText?: string;
|
|
99
|
+
error?: boolean;
|
|
100
|
+
value?: string;
|
|
101
|
+
placeholder?: string;
|
|
102
|
+
disabled?: boolean;
|
|
103
|
+
leadingIcon?: React.ReactNode;
|
|
104
|
+
trailingIcon?: React.ReactNode;
|
|
105
|
+
onChangeText?: (text: string) => void;
|
|
106
|
+
onFocus?: () => void;
|
|
107
|
+
onBlur?: () => void;
|
|
108
|
+
};
|
|
109
|
+
declare function InputField({ label, required, helperText, error, value, placeholder, disabled, leadingIcon, trailingIcon, onChangeText, onFocus, onBlur, }: InputFieldProps): react_jsx_runtime.JSX.Element;
|
|
110
|
+
|
|
111
|
+
type CheckboxProps = {
|
|
112
|
+
checked?: boolean;
|
|
113
|
+
onChange?: (checked: boolean) => void;
|
|
114
|
+
disabled?: boolean;
|
|
115
|
+
size?: CheckboxSize;
|
|
116
|
+
};
|
|
117
|
+
declare function Checkbox({ checked, onChange, disabled, size }: CheckboxProps): react_jsx_runtime.JSX.Element;
|
|
118
|
+
|
|
119
|
+
type ToggleSwitchSize = 'xs' | 'sm' | 'md';
|
|
120
|
+
type ToggleSwitchProps = {
|
|
121
|
+
value?: boolean;
|
|
122
|
+
onChange?: (value: boolean) => void;
|
|
123
|
+
disabled?: boolean;
|
|
124
|
+
size?: ToggleSwitchSize;
|
|
125
|
+
accessibilityLabel: string;
|
|
126
|
+
onPress?: PressableProps['onPress'];
|
|
127
|
+
};
|
|
128
|
+
declare function ToggleSwitch({ value, onChange, disabled, size, accessibilityLabel }: ToggleSwitchProps): react_jsx_runtime.JSX.Element;
|
|
129
|
+
|
|
130
|
+
type RadioGroupProps = {
|
|
131
|
+
children: React.ReactNode;
|
|
132
|
+
label?: string;
|
|
133
|
+
style?: StyleProp<ViewStyle>;
|
|
134
|
+
};
|
|
135
|
+
declare function RadioGroup({ children, label, style }: RadioGroupProps): react_jsx_runtime.JSX.Element;
|
|
136
|
+
|
|
137
|
+
type ChoiceCardType = 'radio' | 'checkbox' | 'action';
|
|
138
|
+
type ChoiceCardProps = {
|
|
139
|
+
type?: ChoiceCardType;
|
|
140
|
+
label: string;
|
|
141
|
+
description?: string;
|
|
142
|
+
selected?: boolean;
|
|
143
|
+
disabled?: boolean;
|
|
144
|
+
leading?: React.ReactNode;
|
|
145
|
+
showTrailing?: boolean;
|
|
146
|
+
onPress?: () => void;
|
|
147
|
+
};
|
|
148
|
+
declare function ChoiceCard({ type, label, description, selected, disabled, leading, showTrailing, onPress }: ChoiceCardProps): react_jsx_runtime.JSX.Element;
|
|
149
|
+
|
|
150
|
+
type ListItemTrailing = 'none' | 'radio' | 'checkbox' | 'action' | 'switch';
|
|
151
|
+
type ListItemProps = {
|
|
152
|
+
trailing?: ListItemTrailing;
|
|
153
|
+
label: string;
|
|
154
|
+
description?: string;
|
|
155
|
+
selected?: boolean;
|
|
156
|
+
disabled?: boolean;
|
|
157
|
+
leading?: React.ReactNode;
|
|
158
|
+
switchValue?: boolean;
|
|
159
|
+
onSwitchChange?: (value: boolean) => void;
|
|
160
|
+
onPress?: () => void;
|
|
161
|
+
};
|
|
162
|
+
declare function ListItem({ trailing, label, description, selected, disabled, leading, switchValue, onSwitchChange, onPress }: ListItemProps): react_jsx_runtime.JSX.Element;
|
|
163
|
+
|
|
164
|
+
type StepperProps = {
|
|
165
|
+
totalSteps: number;
|
|
166
|
+
currentStep: number;
|
|
167
|
+
style?: StyleProp<ViewStyle>;
|
|
168
|
+
};
|
|
169
|
+
declare function Stepper({ totalSteps, currentStep, style }: StepperProps): react_jsx_runtime.JSX.Element;
|
|
170
|
+
|
|
171
|
+
type RatingScaleOption = {
|
|
172
|
+
emoji: string;
|
|
173
|
+
label: string;
|
|
174
|
+
};
|
|
175
|
+
type RatingScaleProps = {
|
|
176
|
+
value?: number | null;
|
|
177
|
+
onChange?: (value: number) => void;
|
|
178
|
+
options?: ReadonlyArray<RatingScaleOption>;
|
|
179
|
+
disabled?: boolean;
|
|
180
|
+
style?: StyleProp<ViewStyle>;
|
|
181
|
+
};
|
|
182
|
+
declare function RatingScale({ value, onChange, options, disabled, style }: RatingScaleProps): react_jsx_runtime.JSX.Element;
|
|
183
|
+
|
|
184
|
+
export { Alert, Button, ButtonIcon, Checkbox, Chip, ChoiceCard, DSThemeProvider, DismissButton, Input, InputField, ListItem, ProgressBar, RadioGroup, RatingScale, Stepper, Theme, ToggleSwitch, useTheme };
|