mn-angular-lib 1.0.167 → 1.0.168
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
CHANGED
|
@@ -385,6 +385,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
|
|
|
385
385
|
two_xl: string;
|
|
386
386
|
three_xl: string;
|
|
387
387
|
four_xl: string;
|
|
388
|
+
full: string;
|
|
388
389
|
};
|
|
389
390
|
shape: {
|
|
390
391
|
default: string;
|
|
@@ -436,6 +437,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
|
|
|
436
437
|
two_xl: string;
|
|
437
438
|
three_xl: string;
|
|
438
439
|
four_xl: string;
|
|
440
|
+
full: string;
|
|
439
441
|
};
|
|
440
442
|
shape: {
|
|
441
443
|
default: string;
|
|
@@ -487,6 +489,7 @@ declare const mnButtonVariants: tailwind_variants.TVReturnType<{
|
|
|
487
489
|
two_xl: string;
|
|
488
490
|
three_xl: string;
|
|
489
491
|
four_xl: string;
|
|
492
|
+
full: string;
|
|
490
493
|
};
|
|
491
494
|
shape: {
|
|
492
495
|
default: string;
|
|
@@ -9041,62 +9044,49 @@ type MnBreadcrumbsVariants = VariantProps<typeof mnBreadcrumbsVariants>;
|
|
|
9041
9044
|
* row of loose buttons: the segments share one bordered surface, so they read as
|
|
9042
9045
|
* one control with one answer instead of several independent actions. Theme
|
|
9043
9046
|
* tokens only, so it holds up in both light and dark.
|
|
9047
|
+
*
|
|
9048
|
+
* Each segment is an `mnButton`, which owns its own size, colour, radius and
|
|
9049
|
+
* disabled look; the `segment` slot adds only what the button does not know
|
|
9050
|
+
* about — how it sits inside the track.
|
|
9044
9051
|
*/
|
|
9045
9052
|
declare const mnSegmentedVariants: tailwind_variants.TVReturnType<{
|
|
9046
9053
|
/**
|
|
9047
|
-
* Corner rounding of the track
|
|
9048
|
-
*
|
|
9049
|
-
*
|
|
9050
|
-
* segment share the same
|
|
9054
|
+
* Corner rounding of the track. The segments are rounded one step tighter
|
|
9055
|
+
* (see `SEGMENT_RADIUS` on the component) so a filled segment nests inside
|
|
9056
|
+
* the track's own corner instead of poking out of it. Token names match
|
|
9057
|
+
* mn-button's; `full` makes a pill, where track and segment share the same
|
|
9058
|
+
* fully-rounded ends.
|
|
9051
9059
|
*/
|
|
9052
9060
|
borderRadius: {
|
|
9053
9061
|
none: {
|
|
9054
9062
|
root: string;
|
|
9055
|
-
segment: string;
|
|
9056
9063
|
};
|
|
9057
9064
|
xs: {
|
|
9058
9065
|
root: string;
|
|
9059
|
-
segment: string;
|
|
9060
9066
|
};
|
|
9061
9067
|
sm: {
|
|
9062
9068
|
root: string;
|
|
9063
|
-
segment: string;
|
|
9064
9069
|
};
|
|
9065
9070
|
md: {
|
|
9066
9071
|
root: string;
|
|
9067
|
-
segment: string;
|
|
9068
9072
|
};
|
|
9069
9073
|
lg: {
|
|
9070
9074
|
root: string;
|
|
9071
|
-
segment: string;
|
|
9072
9075
|
};
|
|
9073
9076
|
xl: {
|
|
9074
9077
|
root: string;
|
|
9075
|
-
segment: string;
|
|
9076
9078
|
};
|
|
9077
9079
|
two_xl: {
|
|
9078
9080
|
root: string;
|
|
9079
|
-
segment: string;
|
|
9080
9081
|
};
|
|
9081
9082
|
three_xl: {
|
|
9082
9083
|
root: string;
|
|
9083
|
-
segment: string;
|
|
9084
9084
|
};
|
|
9085
9085
|
four_xl: {
|
|
9086
9086
|
root: string;
|
|
9087
|
-
segment: string;
|
|
9088
9087
|
};
|
|
9089
9088
|
full: {
|
|
9090
9089
|
root: string;
|
|
9091
|
-
segment: string;
|
|
9092
|
-
};
|
|
9093
|
-
};
|
|
9094
|
-
size: {
|
|
9095
|
-
sm: {
|
|
9096
|
-
segment: string;
|
|
9097
|
-
};
|
|
9098
|
-
md: {
|
|
9099
|
-
segment: string;
|
|
9100
9090
|
};
|
|
9101
9091
|
};
|
|
9102
9092
|
/**
|
|
@@ -9115,14 +9105,13 @@ declare const mnSegmentedVariants: tailwind_variants.TVReturnType<{
|
|
|
9115
9105
|
false: {};
|
|
9116
9106
|
};
|
|
9117
9107
|
/**
|
|
9118
|
-
*
|
|
9119
|
-
*
|
|
9120
|
-
*
|
|
9108
|
+
* Whether the segment is the picked one. The colours come from the button
|
|
9109
|
+
* itself (a filled primary button when active, a ghost one otherwise); this
|
|
9110
|
+
* only keeps an inactive segment's box the same size as an active one, whose
|
|
9111
|
+
* fill variant carries a real border.
|
|
9121
9112
|
*/
|
|
9122
9113
|
active: {
|
|
9123
|
-
true: {
|
|
9124
|
-
segment: string;
|
|
9125
|
-
};
|
|
9114
|
+
true: {};
|
|
9126
9115
|
false: {
|
|
9127
9116
|
segment: string;
|
|
9128
9117
|
};
|
|
@@ -9132,59 +9121,42 @@ declare const mnSegmentedVariants: tailwind_variants.TVReturnType<{
|
|
|
9132
9121
|
segment: string;
|
|
9133
9122
|
}, undefined, {
|
|
9134
9123
|
/**
|
|
9135
|
-
* Corner rounding of the track
|
|
9136
|
-
*
|
|
9137
|
-
*
|
|
9138
|
-
* segment share the same
|
|
9124
|
+
* Corner rounding of the track. The segments are rounded one step tighter
|
|
9125
|
+
* (see `SEGMENT_RADIUS` on the component) so a filled segment nests inside
|
|
9126
|
+
* the track's own corner instead of poking out of it. Token names match
|
|
9127
|
+
* mn-button's; `full` makes a pill, where track and segment share the same
|
|
9128
|
+
* fully-rounded ends.
|
|
9139
9129
|
*/
|
|
9140
9130
|
borderRadius: {
|
|
9141
9131
|
none: {
|
|
9142
9132
|
root: string;
|
|
9143
|
-
segment: string;
|
|
9144
9133
|
};
|
|
9145
9134
|
xs: {
|
|
9146
9135
|
root: string;
|
|
9147
|
-
segment: string;
|
|
9148
9136
|
};
|
|
9149
9137
|
sm: {
|
|
9150
9138
|
root: string;
|
|
9151
|
-
segment: string;
|
|
9152
9139
|
};
|
|
9153
9140
|
md: {
|
|
9154
9141
|
root: string;
|
|
9155
|
-
segment: string;
|
|
9156
9142
|
};
|
|
9157
9143
|
lg: {
|
|
9158
9144
|
root: string;
|
|
9159
|
-
segment: string;
|
|
9160
9145
|
};
|
|
9161
9146
|
xl: {
|
|
9162
9147
|
root: string;
|
|
9163
|
-
segment: string;
|
|
9164
9148
|
};
|
|
9165
9149
|
two_xl: {
|
|
9166
9150
|
root: string;
|
|
9167
|
-
segment: string;
|
|
9168
9151
|
};
|
|
9169
9152
|
three_xl: {
|
|
9170
9153
|
root: string;
|
|
9171
|
-
segment: string;
|
|
9172
9154
|
};
|
|
9173
9155
|
four_xl: {
|
|
9174
9156
|
root: string;
|
|
9175
|
-
segment: string;
|
|
9176
9157
|
};
|
|
9177
9158
|
full: {
|
|
9178
9159
|
root: string;
|
|
9179
|
-
segment: string;
|
|
9180
|
-
};
|
|
9181
|
-
};
|
|
9182
|
-
size: {
|
|
9183
|
-
sm: {
|
|
9184
|
-
segment: string;
|
|
9185
|
-
};
|
|
9186
|
-
md: {
|
|
9187
|
-
segment: string;
|
|
9188
9160
|
};
|
|
9189
9161
|
};
|
|
9190
9162
|
/**
|
|
@@ -9203,14 +9175,13 @@ declare const mnSegmentedVariants: tailwind_variants.TVReturnType<{
|
|
|
9203
9175
|
false: {};
|
|
9204
9176
|
};
|
|
9205
9177
|
/**
|
|
9206
|
-
*
|
|
9207
|
-
*
|
|
9208
|
-
*
|
|
9178
|
+
* Whether the segment is the picked one. The colours come from the button
|
|
9179
|
+
* itself (a filled primary button when active, a ghost one otherwise); this
|
|
9180
|
+
* only keeps an inactive segment's box the same size as an active one, whose
|
|
9181
|
+
* fill variant carries a real border.
|
|
9209
9182
|
*/
|
|
9210
9183
|
active: {
|
|
9211
|
-
true: {
|
|
9212
|
-
segment: string;
|
|
9213
|
-
};
|
|
9184
|
+
true: {};
|
|
9214
9185
|
false: {
|
|
9215
9186
|
segment: string;
|
|
9216
9187
|
};
|
|
@@ -9220,59 +9191,42 @@ declare const mnSegmentedVariants: tailwind_variants.TVReturnType<{
|
|
|
9220
9191
|
segment: string;
|
|
9221
9192
|
}, tailwind_variants.TVReturnType<{
|
|
9222
9193
|
/**
|
|
9223
|
-
* Corner rounding of the track
|
|
9224
|
-
*
|
|
9225
|
-
*
|
|
9226
|
-
* segment share the same
|
|
9194
|
+
* Corner rounding of the track. The segments are rounded one step tighter
|
|
9195
|
+
* (see `SEGMENT_RADIUS` on the component) so a filled segment nests inside
|
|
9196
|
+
* the track's own corner instead of poking out of it. Token names match
|
|
9197
|
+
* mn-button's; `full` makes a pill, where track and segment share the same
|
|
9198
|
+
* fully-rounded ends.
|
|
9227
9199
|
*/
|
|
9228
9200
|
borderRadius: {
|
|
9229
9201
|
none: {
|
|
9230
9202
|
root: string;
|
|
9231
|
-
segment: string;
|
|
9232
9203
|
};
|
|
9233
9204
|
xs: {
|
|
9234
9205
|
root: string;
|
|
9235
|
-
segment: string;
|
|
9236
9206
|
};
|
|
9237
9207
|
sm: {
|
|
9238
9208
|
root: string;
|
|
9239
|
-
segment: string;
|
|
9240
9209
|
};
|
|
9241
9210
|
md: {
|
|
9242
9211
|
root: string;
|
|
9243
|
-
segment: string;
|
|
9244
9212
|
};
|
|
9245
9213
|
lg: {
|
|
9246
9214
|
root: string;
|
|
9247
|
-
segment: string;
|
|
9248
9215
|
};
|
|
9249
9216
|
xl: {
|
|
9250
9217
|
root: string;
|
|
9251
|
-
segment: string;
|
|
9252
9218
|
};
|
|
9253
9219
|
two_xl: {
|
|
9254
9220
|
root: string;
|
|
9255
|
-
segment: string;
|
|
9256
9221
|
};
|
|
9257
9222
|
three_xl: {
|
|
9258
9223
|
root: string;
|
|
9259
|
-
segment: string;
|
|
9260
9224
|
};
|
|
9261
9225
|
four_xl: {
|
|
9262
9226
|
root: string;
|
|
9263
|
-
segment: string;
|
|
9264
9227
|
};
|
|
9265
9228
|
full: {
|
|
9266
9229
|
root: string;
|
|
9267
|
-
segment: string;
|
|
9268
|
-
};
|
|
9269
|
-
};
|
|
9270
|
-
size: {
|
|
9271
|
-
sm: {
|
|
9272
|
-
segment: string;
|
|
9273
|
-
};
|
|
9274
|
-
md: {
|
|
9275
|
-
segment: string;
|
|
9276
9230
|
};
|
|
9277
9231
|
};
|
|
9278
9232
|
/**
|
|
@@ -9291,14 +9245,13 @@ declare const mnSegmentedVariants: tailwind_variants.TVReturnType<{
|
|
|
9291
9245
|
false: {};
|
|
9292
9246
|
};
|
|
9293
9247
|
/**
|
|
9294
|
-
*
|
|
9295
|
-
*
|
|
9296
|
-
*
|
|
9248
|
+
* Whether the segment is the picked one. The colours come from the button
|
|
9249
|
+
* itself (a filled primary button when active, a ghost one otherwise); this
|
|
9250
|
+
* only keeps an inactive segment's box the same size as an active one, whose
|
|
9251
|
+
* fill variant carries a real border.
|
|
9297
9252
|
*/
|
|
9298
9253
|
active: {
|
|
9299
|
-
true: {
|
|
9300
|
-
segment: string;
|
|
9301
|
-
};
|
|
9254
|
+
true: {};
|
|
9302
9255
|
false: {
|
|
9303
9256
|
segment: string;
|
|
9304
9257
|
};
|
|
@@ -9372,6 +9325,10 @@ type MnSegmentedDataSource = {
|
|
|
9372
9325
|
* URL, so it can sit on a page that already has a tab bar without the two
|
|
9373
9326
|
* fighting over the query string.
|
|
9374
9327
|
*
|
|
9328
|
+
* Each segment is an `mnButton` — a filled primary one when active, a ghost one
|
|
9329
|
+
* otherwise — so the control inherits the button's sizes, colours and disabled
|
|
9330
|
+
* look rather than maintaining a parallel set.
|
|
9331
|
+
*
|
|
9375
9332
|
* For switching between panes of a page, reach for `mn-tab`; this is for
|
|
9376
9333
|
* switching how one pane is rendered.
|
|
9377
9334
|
*/
|
|
@@ -9394,29 +9351,25 @@ declare class MnSegmented {
|
|
|
9394
9351
|
valueChange: EventEmitter<string>;
|
|
9395
9352
|
/** Resolves this control's own accessible names against the app's bundle. */
|
|
9396
9353
|
private readonly lang;
|
|
9397
|
-
/** Resolved slot classes for the current
|
|
9354
|
+
/** Resolved slot classes for the current rounding and layout. */
|
|
9398
9355
|
get styles(): {
|
|
9399
9356
|
root: (slotProps?: ({
|
|
9400
|
-
size?: "sm" | "md" | undefined;
|
|
9401
9357
|
borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | "full" | undefined;
|
|
9402
9358
|
active?: boolean | undefined;
|
|
9403
9359
|
justified?: boolean | undefined;
|
|
9404
9360
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
9405
9361
|
segment: (slotProps?: ({
|
|
9406
|
-
size?: "sm" | "md" | undefined;
|
|
9407
9362
|
borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | "full" | undefined;
|
|
9408
9363
|
active?: boolean | undefined;
|
|
9409
9364
|
justified?: boolean | undefined;
|
|
9410
9365
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
9411
9366
|
} & {
|
|
9412
9367
|
root: (slotProps?: ({
|
|
9413
|
-
size?: "sm" | "md" | undefined;
|
|
9414
9368
|
borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | "full" | undefined;
|
|
9415
9369
|
active?: boolean | undefined;
|
|
9416
9370
|
justified?: boolean | undefined;
|
|
9417
9371
|
} & tailwind_variants.ClassProp<tailwind_merge.ClassNameValue>) | undefined) => string;
|
|
9418
9372
|
segment: (slotProps?: ({
|
|
9419
|
-
size?: "sm" | "md" | undefined;
|
|
9420
9373
|
borderRadius?: "sm" | "md" | "lg" | "none" | "xs" | "xl" | "two_xl" | "three_xl" | "four_xl" | "full" | undefined;
|
|
9421
9374
|
active?: boolean | undefined;
|
|
9422
9375
|
justified?: boolean | undefined;
|
|
@@ -9432,10 +9385,20 @@ declare class MnSegmented {
|
|
|
9432
9385
|
*/
|
|
9433
9386
|
isActive(item: MnSegmentedItem): boolean;
|
|
9434
9387
|
/**
|
|
9435
|
-
*
|
|
9388
|
+
* Layout classes for one segment — how it sits in the track. Its size, colour,
|
|
9389
|
+
* radius and disabled look come from the button itself; see
|
|
9390
|
+
* {@link segmentButton}.
|
|
9436
9391
|
* @param item - The segment to style.
|
|
9437
9392
|
*/
|
|
9438
9393
|
segmentClass(item: MnSegmentedItem): string;
|
|
9394
|
+
/**
|
|
9395
|
+
* The `mnButton` configuration of one segment: a filled primary button when it
|
|
9396
|
+
* is the active choice, a ghost button otherwise, at the control's size and one
|
|
9397
|
+
* radius step inside the track. The active segment has no hover — re-picking it
|
|
9398
|
+
* does nothing, so nothing should invite the click.
|
|
9399
|
+
* @param item - The segment to configure.
|
|
9400
|
+
*/
|
|
9401
|
+
segmentButton(item: MnSegmentedItem): Partial<MnButtonTypes>;
|
|
9439
9402
|
/**
|
|
9440
9403
|
* Accessible name for an icon-only segment, or null when the segment shows a
|
|
9441
9404
|
* label — that label already names it, and a second name would only compete.
|