mn-angular-lib 2.0.56 → 2.0.57
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/package.json +1 -1
- package/types/mn-angular-lib-alert.d.ts +10 -38
- package/types/mn-angular-lib-button.d.ts +55 -219
- package/types/mn-angular-lib-display.d.ts +124 -427
- package/types/mn-angular-lib-forms.d.ts +141 -595
- package/types/mn-angular-lib-segmented.d.ts +25 -153
|
@@ -86,147 +86,7 @@ export declare const mnSegmentedVariants: import("tailwind-variants").TVReturnTy
|
|
|
86
86
|
}, {
|
|
87
87
|
root: string;
|
|
88
88
|
segment: string;
|
|
89
|
-
}, undefined,
|
|
90
|
-
/**
|
|
91
|
-
* Corner rounding of the track. The segments are rounded one step tighter
|
|
92
|
-
* (see `SEGMENT_RADIUS` on the component) so a filled segment nests inside
|
|
93
|
-
* the track's own corner instead of poking out of it. Token names match
|
|
94
|
-
* mn-button's; `full` makes a pill, where track and segment share the same
|
|
95
|
-
* fully-rounded ends.
|
|
96
|
-
*/
|
|
97
|
-
borderRadius: {
|
|
98
|
-
none: {
|
|
99
|
-
root: string;
|
|
100
|
-
};
|
|
101
|
-
xs: {
|
|
102
|
-
root: string;
|
|
103
|
-
};
|
|
104
|
-
sm: {
|
|
105
|
-
root: string;
|
|
106
|
-
};
|
|
107
|
-
md: {
|
|
108
|
-
root: string;
|
|
109
|
-
};
|
|
110
|
-
lg: {
|
|
111
|
-
root: string;
|
|
112
|
-
};
|
|
113
|
-
xl: {
|
|
114
|
-
root: string;
|
|
115
|
-
};
|
|
116
|
-
two_xl: {
|
|
117
|
-
root: string;
|
|
118
|
-
};
|
|
119
|
-
three_xl: {
|
|
120
|
-
root: string;
|
|
121
|
-
};
|
|
122
|
-
four_xl: {
|
|
123
|
-
root: string;
|
|
124
|
-
};
|
|
125
|
-
full: {
|
|
126
|
-
root: string;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
/**
|
|
130
|
-
* Stretch the track and share its width evenly between the segments.
|
|
131
|
-
*
|
|
132
|
-
* The segments grow from a zero basis but keep their automatic minimum, so a
|
|
133
|
-
* justified control inside an auto-width parent still asks for the room its
|
|
134
|
-
* labels need. Letting them shrink below their content (`min-w-0`) made the
|
|
135
|
-
* parent resolve to a narrower box and truncated the labels instead.
|
|
136
|
-
*/
|
|
137
|
-
justified: {
|
|
138
|
-
true: {
|
|
139
|
-
root: string;
|
|
140
|
-
segment: string;
|
|
141
|
-
};
|
|
142
|
-
false: {};
|
|
143
|
-
};
|
|
144
|
-
/**
|
|
145
|
-
* Whether the segment is the picked one. The colours come from the button
|
|
146
|
-
* itself (a filled primary button when active, a ghost one otherwise); this
|
|
147
|
-
* only keeps an inactive segment's box the same size as an active one, whose
|
|
148
|
-
* fill variant carries a real border.
|
|
149
|
-
*/
|
|
150
|
-
active: {
|
|
151
|
-
true: {};
|
|
152
|
-
false: {
|
|
153
|
-
segment: string;
|
|
154
|
-
};
|
|
155
|
-
};
|
|
156
|
-
}, {
|
|
157
|
-
root: string;
|
|
158
|
-
segment: string;
|
|
159
|
-
}, import("tailwind-variants").TVReturnTypeLike<{
|
|
160
|
-
/**
|
|
161
|
-
* Corner rounding of the track. The segments are rounded one step tighter
|
|
162
|
-
* (see `SEGMENT_RADIUS` on the component) so a filled segment nests inside
|
|
163
|
-
* the track's own corner instead of poking out of it. Token names match
|
|
164
|
-
* mn-button's; `full` makes a pill, where track and segment share the same
|
|
165
|
-
* fully-rounded ends.
|
|
166
|
-
*/
|
|
167
|
-
borderRadius: {
|
|
168
|
-
none: {
|
|
169
|
-
root: string;
|
|
170
|
-
};
|
|
171
|
-
xs: {
|
|
172
|
-
root: string;
|
|
173
|
-
};
|
|
174
|
-
sm: {
|
|
175
|
-
root: string;
|
|
176
|
-
};
|
|
177
|
-
md: {
|
|
178
|
-
root: string;
|
|
179
|
-
};
|
|
180
|
-
lg: {
|
|
181
|
-
root: string;
|
|
182
|
-
};
|
|
183
|
-
xl: {
|
|
184
|
-
root: string;
|
|
185
|
-
};
|
|
186
|
-
two_xl: {
|
|
187
|
-
root: string;
|
|
188
|
-
};
|
|
189
|
-
three_xl: {
|
|
190
|
-
root: string;
|
|
191
|
-
};
|
|
192
|
-
four_xl: {
|
|
193
|
-
root: string;
|
|
194
|
-
};
|
|
195
|
-
full: {
|
|
196
|
-
root: string;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
/**
|
|
200
|
-
* Stretch the track and share its width evenly between the segments.
|
|
201
|
-
*
|
|
202
|
-
* The segments grow from a zero basis but keep their automatic minimum, so a
|
|
203
|
-
* justified control inside an auto-width parent still asks for the room its
|
|
204
|
-
* labels need. Letting them shrink below their content (`min-w-0`) made the
|
|
205
|
-
* parent resolve to a narrower box and truncated the labels instead.
|
|
206
|
-
*/
|
|
207
|
-
justified: {
|
|
208
|
-
true: {
|
|
209
|
-
root: string;
|
|
210
|
-
segment: string;
|
|
211
|
-
};
|
|
212
|
-
false: {};
|
|
213
|
-
};
|
|
214
|
-
/**
|
|
215
|
-
* Whether the segment is the picked one. The colours come from the button
|
|
216
|
-
* itself (a filled primary button when active, a ghost one otherwise); this
|
|
217
|
-
* only keeps an inactive segment's box the same size as an active one, whose
|
|
218
|
-
* fill variant carries a real border.
|
|
219
|
-
*/
|
|
220
|
-
active: {
|
|
221
|
-
true: {};
|
|
222
|
-
false: {
|
|
223
|
-
segment: string;
|
|
224
|
-
};
|
|
225
|
-
};
|
|
226
|
-
}, {
|
|
227
|
-
root: string;
|
|
228
|
-
segment: string;
|
|
229
|
-
}>>;
|
|
89
|
+
}, undefined, undefined, undefined, undefined>;
|
|
230
90
|
export type MnSegmentedVariants = VariantProps<typeof mnSegmentedVariants>;
|
|
231
91
|
/**
|
|
232
92
|
* One choice in a {@link MnSegmented} control.
|
|
@@ -318,33 +178,45 @@ export declare class MnSegmented {
|
|
|
318
178
|
private readonly lang;
|
|
319
179
|
/** Resolved slot classes for the current rounding and layout. */
|
|
320
180
|
get styles(): {
|
|
321
|
-
root: (slotProps?:
|
|
181
|
+
root: (slotProps?: {
|
|
182
|
+
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "two_xl" | "three_xl" | "four_xl" | "full" | undefined;
|
|
183
|
+
justified?: boolean | undefined;
|
|
184
|
+
active?: boolean | undefined;
|
|
185
|
+
class?: import("tailwind-variants").ClassNameValue;
|
|
186
|
+
className?: never | undefined;
|
|
187
|
+
} | {
|
|
322
188
|
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "two_xl" | "three_xl" | "four_xl" | "full" | undefined;
|
|
323
189
|
justified?: boolean | undefined;
|
|
324
190
|
active?: boolean | undefined;
|
|
325
|
-
|
|
326
|
-
|
|
191
|
+
class?: never | undefined;
|
|
192
|
+
className?: import("tailwind-variants").ClassNameValue;
|
|
193
|
+
} | undefined) => string;
|
|
194
|
+
segment: (slotProps?: {
|
|
327
195
|
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "two_xl" | "three_xl" | "four_xl" | "full" | undefined;
|
|
328
196
|
justified?: boolean | undefined;
|
|
329
197
|
active?: boolean | undefined;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
198
|
+
class?: import("tailwind-variants").ClassNameValue;
|
|
199
|
+
className?: never | undefined;
|
|
200
|
+
} | {
|
|
333
201
|
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "two_xl" | "three_xl" | "four_xl" | "full" | undefined;
|
|
334
202
|
justified?: boolean | undefined;
|
|
335
203
|
active?: boolean | undefined;
|
|
336
|
-
|
|
337
|
-
|
|
204
|
+
class?: never | undefined;
|
|
205
|
+
className?: import("tailwind-variants").ClassNameValue;
|
|
206
|
+
} | undefined) => string;
|
|
207
|
+
base: (slotProps?: {
|
|
338
208
|
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "two_xl" | "three_xl" | "four_xl" | "full" | undefined;
|
|
339
209
|
justified?: boolean | undefined;
|
|
340
210
|
active?: boolean | undefined;
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
211
|
+
class?: import("tailwind-variants").ClassNameValue;
|
|
212
|
+
className?: never | undefined;
|
|
213
|
+
} | {
|
|
344
214
|
borderRadius?: "none" | "xs" | "sm" | "md" | "lg" | "xl" | "two_xl" | "three_xl" | "four_xl" | "full" | undefined;
|
|
345
215
|
justified?: boolean | undefined;
|
|
346
216
|
active?: boolean | undefined;
|
|
347
|
-
|
|
217
|
+
class?: never | undefined;
|
|
218
|
+
className?: import("tailwind-variants").ClassNameValue;
|
|
219
|
+
} | undefined) => string;
|
|
348
220
|
};
|
|
349
221
|
/** Icon edge length matching the control's text size. */
|
|
350
222
|
get iconSize(): number;
|