@mason-ds/vue 0.2.0 → 0.2.2
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/index.cjs +733 -123
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +366 -4
- package/dist/index.d.ts +366 -4
- package/dist/index.js +726 -121
- package/dist/index.js.map +1 -1
- package/llms.txt +119 -0
- package/package.json +5 -4
package/dist/index.d.cts
CHANGED
|
@@ -186,6 +186,170 @@ type StackProps = {
|
|
|
186
186
|
inline?: boolean;
|
|
187
187
|
};
|
|
188
188
|
|
|
189
|
+
type BoxTone = 'transparent' | 'canvas' | 'surface' | 'elevated';
|
|
190
|
+
|
|
191
|
+
/** Block primitive — padding, background, radius and border from tokens. */
|
|
192
|
+
declare const Box: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
193
|
+
as: {
|
|
194
|
+
type: StringConstructor;
|
|
195
|
+
default: string;
|
|
196
|
+
};
|
|
197
|
+
padding: {
|
|
198
|
+
type: PropType<Level>;
|
|
199
|
+
default: undefined;
|
|
200
|
+
};
|
|
201
|
+
tone: {
|
|
202
|
+
type: PropType<BoxTone>;
|
|
203
|
+
default: string;
|
|
204
|
+
};
|
|
205
|
+
radius: {
|
|
206
|
+
type: PropType<RadiusLevel>;
|
|
207
|
+
default: undefined;
|
|
208
|
+
};
|
|
209
|
+
bordered: {
|
|
210
|
+
type: BooleanConstructor;
|
|
211
|
+
default: boolean;
|
|
212
|
+
};
|
|
213
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
214
|
+
[key: string]: any;
|
|
215
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
216
|
+
as: {
|
|
217
|
+
type: StringConstructor;
|
|
218
|
+
default: string;
|
|
219
|
+
};
|
|
220
|
+
padding: {
|
|
221
|
+
type: PropType<Level>;
|
|
222
|
+
default: undefined;
|
|
223
|
+
};
|
|
224
|
+
tone: {
|
|
225
|
+
type: PropType<BoxTone>;
|
|
226
|
+
default: string;
|
|
227
|
+
};
|
|
228
|
+
radius: {
|
|
229
|
+
type: PropType<RadiusLevel>;
|
|
230
|
+
default: undefined;
|
|
231
|
+
};
|
|
232
|
+
bordered: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
default: boolean;
|
|
235
|
+
};
|
|
236
|
+
}>> & Readonly<{}>, {
|
|
237
|
+
radius: RadiusLevel;
|
|
238
|
+
tone: BoxTone;
|
|
239
|
+
as: string;
|
|
240
|
+
padding: Level;
|
|
241
|
+
bordered: boolean;
|
|
242
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
243
|
+
type BoxProps = {
|
|
244
|
+
as?: string;
|
|
245
|
+
padding?: Level;
|
|
246
|
+
tone?: BoxTone;
|
|
247
|
+
radius?: RadiusLevel;
|
|
248
|
+
bordered?: boolean;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
type GridColumns = 1 | 2 | 3 | 4 | 6 | 12;
|
|
252
|
+
|
|
253
|
+
/** Layout primitive — CSS grid with token gaps. */
|
|
254
|
+
declare const Grid: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
255
|
+
columns: {
|
|
256
|
+
type: PropType<GridColumns>;
|
|
257
|
+
default: number;
|
|
258
|
+
};
|
|
259
|
+
gap: {
|
|
260
|
+
type: PropType<Level>;
|
|
261
|
+
default: string;
|
|
262
|
+
};
|
|
263
|
+
align: {
|
|
264
|
+
type: PropType<StackAlign>;
|
|
265
|
+
default: undefined;
|
|
266
|
+
};
|
|
267
|
+
justify: {
|
|
268
|
+
type: PropType<StackJustify>;
|
|
269
|
+
default: undefined;
|
|
270
|
+
};
|
|
271
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
272
|
+
[key: string]: any;
|
|
273
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
274
|
+
columns: {
|
|
275
|
+
type: PropType<GridColumns>;
|
|
276
|
+
default: number;
|
|
277
|
+
};
|
|
278
|
+
gap: {
|
|
279
|
+
type: PropType<Level>;
|
|
280
|
+
default: string;
|
|
281
|
+
};
|
|
282
|
+
align: {
|
|
283
|
+
type: PropType<StackAlign>;
|
|
284
|
+
default: undefined;
|
|
285
|
+
};
|
|
286
|
+
justify: {
|
|
287
|
+
type: PropType<StackJustify>;
|
|
288
|
+
default: undefined;
|
|
289
|
+
};
|
|
290
|
+
}>> & Readonly<{}>, {
|
|
291
|
+
align: StackAlign;
|
|
292
|
+
justify: StackJustify;
|
|
293
|
+
gap: Level;
|
|
294
|
+
columns: GridColumns;
|
|
295
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
296
|
+
type GridProps = {
|
|
297
|
+
columns?: GridColumns;
|
|
298
|
+
gap?: Level;
|
|
299
|
+
align?: StackAlign;
|
|
300
|
+
justify?: StackJustify;
|
|
301
|
+
};
|
|
302
|
+
|
|
303
|
+
/** Layout primitive — centers content and caps width from tokens. */
|
|
304
|
+
declare const Container: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
305
|
+
as: {
|
|
306
|
+
type: StringConstructor;
|
|
307
|
+
default: string;
|
|
308
|
+
};
|
|
309
|
+
maxWidth: {
|
|
310
|
+
type: PropType<Level>;
|
|
311
|
+
default: string;
|
|
312
|
+
};
|
|
313
|
+
padding: {
|
|
314
|
+
type: PropType<Level>;
|
|
315
|
+
default: undefined;
|
|
316
|
+
};
|
|
317
|
+
center: {
|
|
318
|
+
type: BooleanConstructor;
|
|
319
|
+
default: boolean;
|
|
320
|
+
};
|
|
321
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
322
|
+
[key: string]: any;
|
|
323
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
324
|
+
as: {
|
|
325
|
+
type: StringConstructor;
|
|
326
|
+
default: string;
|
|
327
|
+
};
|
|
328
|
+
maxWidth: {
|
|
329
|
+
type: PropType<Level>;
|
|
330
|
+
default: string;
|
|
331
|
+
};
|
|
332
|
+
padding: {
|
|
333
|
+
type: PropType<Level>;
|
|
334
|
+
default: undefined;
|
|
335
|
+
};
|
|
336
|
+
center: {
|
|
337
|
+
type: BooleanConstructor;
|
|
338
|
+
default: boolean;
|
|
339
|
+
};
|
|
340
|
+
}>> & Readonly<{}>, {
|
|
341
|
+
center: boolean;
|
|
342
|
+
as: string;
|
|
343
|
+
padding: Level;
|
|
344
|
+
maxWidth: Level;
|
|
345
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
346
|
+
type ContainerProps = {
|
|
347
|
+
as?: string;
|
|
348
|
+
maxWidth?: Level;
|
|
349
|
+
padding?: Level;
|
|
350
|
+
center?: boolean;
|
|
351
|
+
};
|
|
352
|
+
|
|
189
353
|
type CardTone = 'surface' | 'canvas' | 'elevated';
|
|
190
354
|
|
|
191
355
|
/** Surface primitive — background, border, radius and shadow from tokens. */
|
|
@@ -237,8 +401,8 @@ declare const Card: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
237
401
|
radius: RadiusLevel;
|
|
238
402
|
tone: CardTone;
|
|
239
403
|
padding: Level;
|
|
240
|
-
elevation: ShadowLevel;
|
|
241
404
|
bordered: boolean;
|
|
405
|
+
elevation: ShadowLevel;
|
|
242
406
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
243
407
|
type CardProps = {
|
|
244
408
|
padding?: Level;
|
|
@@ -704,8 +868,9 @@ type SelectProps = {
|
|
|
704
868
|
};
|
|
705
869
|
|
|
706
870
|
/**
|
|
707
|
-
*
|
|
708
|
-
*
|
|
871
|
+
* Token-backed checkbox with a drawn indicator. Supports `v-model`.
|
|
872
|
+
* A visually hidden native input keeps form / keyboard behaviour.
|
|
873
|
+
* The check mark is painted with `::after` in foundationsCss.
|
|
709
874
|
* Slots: `label`, `description`, `error`.
|
|
710
875
|
*/
|
|
711
876
|
declare const Checkbox: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
@@ -789,4 +954,201 @@ type CheckboxProps = {
|
|
|
789
954
|
modelValue?: boolean;
|
|
790
955
|
};
|
|
791
956
|
|
|
792
|
-
|
|
957
|
+
/**
|
|
958
|
+
* Token-backed radio with a drawn indicator. Supports `v-model`.
|
|
959
|
+
* A visually hidden native input keeps form / keyboard behaviour.
|
|
960
|
+
* The selected dot is painted with `::after` in foundationsCss.
|
|
961
|
+
* Slots: `label`, `description`, `error`.
|
|
962
|
+
*/
|
|
963
|
+
declare const Radio: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
964
|
+
label: {
|
|
965
|
+
type: StringConstructor;
|
|
966
|
+
default: undefined;
|
|
967
|
+
};
|
|
968
|
+
description: {
|
|
969
|
+
type: StringConstructor;
|
|
970
|
+
default: undefined;
|
|
971
|
+
};
|
|
972
|
+
error: {
|
|
973
|
+
type: StringConstructor;
|
|
974
|
+
default: undefined;
|
|
975
|
+
};
|
|
976
|
+
invalid: {
|
|
977
|
+
type: PropType<boolean | undefined>;
|
|
978
|
+
default: undefined;
|
|
979
|
+
};
|
|
980
|
+
disabled: {
|
|
981
|
+
type: BooleanConstructor;
|
|
982
|
+
default: boolean;
|
|
983
|
+
};
|
|
984
|
+
id: {
|
|
985
|
+
type: StringConstructor;
|
|
986
|
+
default: undefined;
|
|
987
|
+
};
|
|
988
|
+
modelValue: {
|
|
989
|
+
type: PropType<string | number | boolean | undefined>;
|
|
990
|
+
default: undefined;
|
|
991
|
+
};
|
|
992
|
+
value: {
|
|
993
|
+
type: PropType<string | number | boolean | undefined>;
|
|
994
|
+
default: undefined;
|
|
995
|
+
};
|
|
996
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
997
|
+
[key: string]: any;
|
|
998
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
999
|
+
label: {
|
|
1000
|
+
type: StringConstructor;
|
|
1001
|
+
default: undefined;
|
|
1002
|
+
};
|
|
1003
|
+
description: {
|
|
1004
|
+
type: StringConstructor;
|
|
1005
|
+
default: undefined;
|
|
1006
|
+
};
|
|
1007
|
+
error: {
|
|
1008
|
+
type: StringConstructor;
|
|
1009
|
+
default: undefined;
|
|
1010
|
+
};
|
|
1011
|
+
invalid: {
|
|
1012
|
+
type: PropType<boolean | undefined>;
|
|
1013
|
+
default: undefined;
|
|
1014
|
+
};
|
|
1015
|
+
disabled: {
|
|
1016
|
+
type: BooleanConstructor;
|
|
1017
|
+
default: boolean;
|
|
1018
|
+
};
|
|
1019
|
+
id: {
|
|
1020
|
+
type: StringConstructor;
|
|
1021
|
+
default: undefined;
|
|
1022
|
+
};
|
|
1023
|
+
modelValue: {
|
|
1024
|
+
type: PropType<string | number | boolean | undefined>;
|
|
1025
|
+
default: undefined;
|
|
1026
|
+
};
|
|
1027
|
+
value: {
|
|
1028
|
+
type: PropType<string | number | boolean | undefined>;
|
|
1029
|
+
default: undefined;
|
|
1030
|
+
};
|
|
1031
|
+
}>> & Readonly<{
|
|
1032
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1033
|
+
}>, {
|
|
1034
|
+
label: string;
|
|
1035
|
+
error: string;
|
|
1036
|
+
invalid: boolean | undefined;
|
|
1037
|
+
disabled: boolean;
|
|
1038
|
+
value: string | number | boolean | undefined;
|
|
1039
|
+
description: string;
|
|
1040
|
+
id: string;
|
|
1041
|
+
modelValue: string | number | boolean | undefined;
|
|
1042
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
1043
|
+
type RadioProps = {
|
|
1044
|
+
label?: string;
|
|
1045
|
+
description?: string;
|
|
1046
|
+
error?: string;
|
|
1047
|
+
invalid?: boolean;
|
|
1048
|
+
disabled?: boolean;
|
|
1049
|
+
id?: string;
|
|
1050
|
+
modelValue?: string | number | boolean;
|
|
1051
|
+
value?: string | number | boolean;
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
type ToggleSize = 'sm' | 'md' | 'lg';
|
|
1055
|
+
|
|
1056
|
+
/**
|
|
1057
|
+
* On/off switch. Supports `v-model`.
|
|
1058
|
+
* Native checkbox stays for form / keyboard behaviour; `role="switch"` for AT.
|
|
1059
|
+
* Track and thumb colors live in foundationsCss.
|
|
1060
|
+
* Slots: `label`, `description`, `error`.
|
|
1061
|
+
*/
|
|
1062
|
+
declare const Toggle: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
1063
|
+
label: {
|
|
1064
|
+
type: StringConstructor;
|
|
1065
|
+
default: undefined;
|
|
1066
|
+
};
|
|
1067
|
+
description: {
|
|
1068
|
+
type: StringConstructor;
|
|
1069
|
+
default: undefined;
|
|
1070
|
+
};
|
|
1071
|
+
error: {
|
|
1072
|
+
type: StringConstructor;
|
|
1073
|
+
default: undefined;
|
|
1074
|
+
};
|
|
1075
|
+
invalid: {
|
|
1076
|
+
type: PropType<boolean | undefined>;
|
|
1077
|
+
default: undefined;
|
|
1078
|
+
};
|
|
1079
|
+
disabled: {
|
|
1080
|
+
type: BooleanConstructor;
|
|
1081
|
+
default: boolean;
|
|
1082
|
+
};
|
|
1083
|
+
size: {
|
|
1084
|
+
type: PropType<ToggleSize>;
|
|
1085
|
+
default: string;
|
|
1086
|
+
};
|
|
1087
|
+
id: {
|
|
1088
|
+
type: StringConstructor;
|
|
1089
|
+
default: undefined;
|
|
1090
|
+
};
|
|
1091
|
+
modelValue: {
|
|
1092
|
+
type: PropType<boolean | undefined>;
|
|
1093
|
+
default: undefined;
|
|
1094
|
+
};
|
|
1095
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
1096
|
+
[key: string]: any;
|
|
1097
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
1098
|
+
label: {
|
|
1099
|
+
type: StringConstructor;
|
|
1100
|
+
default: undefined;
|
|
1101
|
+
};
|
|
1102
|
+
description: {
|
|
1103
|
+
type: StringConstructor;
|
|
1104
|
+
default: undefined;
|
|
1105
|
+
};
|
|
1106
|
+
error: {
|
|
1107
|
+
type: StringConstructor;
|
|
1108
|
+
default: undefined;
|
|
1109
|
+
};
|
|
1110
|
+
invalid: {
|
|
1111
|
+
type: PropType<boolean | undefined>;
|
|
1112
|
+
default: undefined;
|
|
1113
|
+
};
|
|
1114
|
+
disabled: {
|
|
1115
|
+
type: BooleanConstructor;
|
|
1116
|
+
default: boolean;
|
|
1117
|
+
};
|
|
1118
|
+
size: {
|
|
1119
|
+
type: PropType<ToggleSize>;
|
|
1120
|
+
default: string;
|
|
1121
|
+
};
|
|
1122
|
+
id: {
|
|
1123
|
+
type: StringConstructor;
|
|
1124
|
+
default: undefined;
|
|
1125
|
+
};
|
|
1126
|
+
modelValue: {
|
|
1127
|
+
type: PropType<boolean | undefined>;
|
|
1128
|
+
default: undefined;
|
|
1129
|
+
};
|
|
1130
|
+
}>> & Readonly<{
|
|
1131
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
1132
|
+
}>, {
|
|
1133
|
+
label: string;
|
|
1134
|
+
error: string;
|
|
1135
|
+
invalid: boolean | undefined;
|
|
1136
|
+
disabled: boolean;
|
|
1137
|
+
size: ToggleSize;
|
|
1138
|
+
description: string;
|
|
1139
|
+
id: string;
|
|
1140
|
+
modelValue: boolean | undefined;
|
|
1141
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
1142
|
+
|
|
1143
|
+
type ToggleProps = {
|
|
1144
|
+
label?: string;
|
|
1145
|
+
description?: string;
|
|
1146
|
+
error?: string;
|
|
1147
|
+
invalid?: boolean;
|
|
1148
|
+
disabled?: boolean;
|
|
1149
|
+
size?: ToggleSize;
|
|
1150
|
+
id?: string;
|
|
1151
|
+
modelValue?: boolean;
|
|
1152
|
+
};
|
|
1153
|
+
|
|
1154
|
+
export { Badge, type BadgeProps, type BadgeSize, type BadgeTone, Box, type BoxProps, type BoxTone, Button, type ButtonProps, type ButtonSize, type ButtonVariant, Callout, type CalloutProps, Card, type CardProps, type CardTone, Checkbox, type CheckboxProps, Container, type ContainerProps, Divider, type DividerOrientation, type DividerProps, type FeedbackTone, type FieldSize, Grid, type GridColumns, type GridProps, type Level, Link, type LinkProps, type LinkTone, type LinkUnderline, MasonProvider, type MasonProviderProps, type MasonTheme, Radio, type RadioProps, type RadiusLevel, Select, type SelectProps, type ShadowLevel, Spinner, type SpinnerProps, type SpinnerSize, Stack, type StackAlign, type StackDirection, type StackJustify, type StackProps, Text, type TextAlign, type TextElement, TextField, type TextFieldProps, type TextProps, type TextTone, type TextVariant, Toggle, type ToggleProps, type ToggleSize };
|