@bsginstitute/bsg-integra 0.0.2 → 0.0.4
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/bsginstitute-bsg-integra-0.0.1.tgz +0 -0
- package/bsginstitute-bsg-integra-0.0.4.tgz +0 -0
- package/fesm2022/bsginstitute-bsg-integra.mjs +311 -306
- package/fesm2022/bsginstitute-bsg-integra.mjs.map +1 -1
- package/index.d.ts +95 -80
- package/package.json +1 -1
- package/src/lib/tokens/themes.css +28 -5
package/index.d.ts
CHANGED
|
@@ -140,7 +140,7 @@ declare class AccordionContentComponent {
|
|
|
140
140
|
* Controls the overall alert container layout and colors
|
|
141
141
|
*/
|
|
142
142
|
declare const alertVariants: (props?: ({
|
|
143
|
-
variant?: "default" | "
|
|
143
|
+
variant?: "default" | "info" | "success" | "warning" | "destructive" | null | undefined;
|
|
144
144
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
145
145
|
/**
|
|
146
146
|
* Alert icon variants
|
|
@@ -200,8 +200,8 @@ declare class AlertComponent {
|
|
|
200
200
|
* Controls the avatar size and base styles
|
|
201
201
|
*/
|
|
202
202
|
declare const avatarVariants: (props?: ({
|
|
203
|
-
size?: "
|
|
204
|
-
type?: "default" | "
|
|
203
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
204
|
+
type?: "default" | "fallback" | "image" | null | undefined;
|
|
205
205
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
206
206
|
/**
|
|
207
207
|
* Avatar initials variants
|
|
@@ -209,7 +209,7 @@ declare const avatarVariants: (props?: ({
|
|
|
209
209
|
* Controls the initials text styles for fallback type
|
|
210
210
|
*/
|
|
211
211
|
declare const avatarInitialsVariants: (props?: ({
|
|
212
|
-
size?: "
|
|
212
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
213
213
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
214
214
|
/**
|
|
215
215
|
* Avatar icon variants
|
|
@@ -305,7 +305,7 @@ declare class BadgeComponent {
|
|
|
305
305
|
}
|
|
306
306
|
|
|
307
307
|
declare const badgeVariants: (props?: ({
|
|
308
|
-
variant?: "default" | "
|
|
308
|
+
variant?: "default" | "success" | "destructive" | "secondary" | "outline" | null | undefined;
|
|
309
309
|
size?: "default" | "dot" | "large" | null | undefined;
|
|
310
310
|
layout?: "text" | "text-icon" | null | undefined;
|
|
311
311
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -313,92 +313,53 @@ type BadgeVariantsProps = VariantProps<typeof badgeVariants>;
|
|
|
313
313
|
declare const badgeIconVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
314
314
|
type BadgeIconVariantsProps = VariantProps<typeof badgeIconVariants>;
|
|
315
315
|
|
|
316
|
-
/**
|
|
317
|
-
* Button variants
|
|
318
|
-
*
|
|
319
|
-
* Controls the button styles including size, variant, shape, and state
|
|
320
|
-
*/
|
|
321
316
|
declare const buttonVariants: (props?: ({
|
|
322
317
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
323
|
-
variant?: "default" | "
|
|
318
|
+
variant?: "default" | "destructive" | "secondary" | "outline" | "ghost" | "link" | null | undefined;
|
|
324
319
|
shape?: "rectangular" | "pill" | "icon" | "icon-text" | "icon-only" | null | undefined;
|
|
325
320
|
disabled?: boolean | null | undefined;
|
|
326
321
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
327
|
-
/**
|
|
328
|
-
* Button icon variants
|
|
329
|
-
*
|
|
330
|
-
* Controls the icon styling within buttons
|
|
331
|
-
*/
|
|
332
322
|
declare const buttonIconVariants: (props?: ({
|
|
333
323
|
position?: "left" | "right" | "center" | null | undefined;
|
|
334
324
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
335
|
-
/**
|
|
336
|
-
* Button label variants
|
|
337
|
-
*
|
|
338
|
-
* Controls the label text styling
|
|
339
|
-
*/
|
|
340
325
|
declare const buttonLabelVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
341
|
-
/**
|
|
342
|
-
* Button icon-only wrapper variants
|
|
343
|
-
*
|
|
344
|
-
* Controls the icon wrapper for icon-only buttons
|
|
345
|
-
*/
|
|
346
326
|
declare const buttonIconOnlyVariants: (props?: ({
|
|
347
327
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
348
328
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
329
|
+
/** ✅ nuevo: spinner overlay centrado */
|
|
330
|
+
declare const buttonSpinnerVariants: (props?: ({
|
|
331
|
+
shape?: "rectangular" | "pill" | "icon" | "icon-text" | "icon-only" | null | undefined;
|
|
332
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
349
333
|
|
|
350
334
|
type ButtonSize = 'sm' | 'md' | 'lg';
|
|
351
335
|
type ButtonVariant = 'default' | 'secondary' | 'outline' | 'ghost' | 'link' | 'destructive';
|
|
352
336
|
type ButtonShape = 'rectangular' | 'pill' | 'icon' | 'icon-text' | 'icon-only';
|
|
353
|
-
type IconName = 'check' | 'chevron-left' | 'chevron-right' | 'chevron-up' | 'chevron-down' | 'none';
|
|
354
337
|
type ButtonVariantsProps = VariantProps<typeof buttonVariants>;
|
|
355
|
-
/**
|
|
356
|
-
* Button Component - Interactive button with multiple variants
|
|
357
|
-
*
|
|
358
|
-
* Following shadcn/ui pattern:
|
|
359
|
-
* ```html
|
|
360
|
-
* <bsg-button
|
|
361
|
-
* [variant]="'default'"
|
|
362
|
-
* [size]="'md'"
|
|
363
|
-
* [shape]="'rectangular'"
|
|
364
|
-
* [label]="'Click me'"
|
|
365
|
-
* (Click)="onClick()"
|
|
366
|
-
* />
|
|
367
|
-
* ```
|
|
368
|
-
*/
|
|
369
338
|
declare class ButtonComponent {
|
|
370
|
-
private sanitizer;
|
|
371
|
-
constructor(sanitizer: DomSanitizer);
|
|
372
|
-
/** Size of the button */
|
|
373
339
|
readonly size: _angular_core.InputSignal<ButtonSize>;
|
|
374
|
-
/** Visual variant of the button */
|
|
375
340
|
readonly variant: _angular_core.InputSignal<ButtonVariant>;
|
|
376
|
-
/** Shape of the button */
|
|
377
341
|
readonly shape: _angular_core.InputSignal<ButtonShape>;
|
|
378
|
-
/** Button label text */
|
|
379
342
|
readonly label: _angular_core.InputSignal<string>;
|
|
380
|
-
/** Show icon */
|
|
381
|
-
readonly icon: _angular_core.InputSignal<boolean>;
|
|
382
|
-
/** Icon position (left or right) */
|
|
383
|
-
readonly iconPosition: _angular_core.InputSignal<"left" | "right">;
|
|
384
|
-
/** Icon name for icon-only buttons */
|
|
385
|
-
readonly iconName: _angular_core.InputSignal<IconName>;
|
|
386
|
-
/** Disabled state */
|
|
387
343
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
388
|
-
/**
|
|
344
|
+
/** ✅ nuevo: muestra spinner y bloquea click */
|
|
345
|
+
readonly spinner: _angular_core.InputSignal<boolean>;
|
|
346
|
+
/** Accesibilidad para icon buttons */
|
|
347
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
389
348
|
readonly className: _angular_core.InputSignal<string | undefined>;
|
|
390
|
-
/** Click event emitter */
|
|
391
349
|
readonly Click: _angular_core.OutputEmitterRef<Event>;
|
|
392
350
|
readonly isDisabled: _angular_core.Signal<boolean>;
|
|
351
|
+
readonly isIconButton: _angular_core.Signal<boolean>;
|
|
352
|
+
readonly buttonSquarePx: _angular_core.Signal<27 | 43 | 35>;
|
|
353
|
+
readonly iconFontPx: _angular_core.Signal<15 | 22 | 18>;
|
|
354
|
+
readonly spinnerPx: _angular_core.Signal<14 | 20 | 16>;
|
|
393
355
|
readonly buttonClasses: _angular_core.Signal<string>;
|
|
394
|
-
iconClasses(position: 'left' | 'right' | 'center'): string;
|
|
395
356
|
readonly labelClasses: _angular_core.Signal<string>;
|
|
396
357
|
readonly iconOnlyClasses: _angular_core.Signal<string>;
|
|
397
|
-
readonly
|
|
398
|
-
|
|
358
|
+
readonly spinnerClasses: _angular_core.Signal<string>;
|
|
359
|
+
iconClasses(position: 'left' | 'right' | 'center'): string;
|
|
399
360
|
handleClick(event: Event): void;
|
|
400
361
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
401
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "bsg-button", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "
|
|
362
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ButtonComponent, "bsg-button", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "shape": { "alias": "shape"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "spinner": { "alias": "spinner"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, { "Click": "Click"; }, never, ["*", "[left-icon]", "[right-icon]"], true, never>;
|
|
402
363
|
}
|
|
403
364
|
|
|
404
365
|
/**
|
|
@@ -653,7 +614,7 @@ declare class CarouselComponent implements AfterContentInit {
|
|
|
653
614
|
}
|
|
654
615
|
|
|
655
616
|
declare const checkboxVariants: (props?: ({
|
|
656
|
-
size?: "
|
|
617
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
657
618
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
658
619
|
type CheckboxSize = VariantProps<typeof checkboxVariants>['size'];
|
|
659
620
|
declare class CheckboxComponent implements ControlValueAccessor {
|
|
@@ -661,7 +622,7 @@ declare class CheckboxComponent implements ControlValueAccessor {
|
|
|
661
622
|
disabled: _angular_core.InputSignal<boolean>;
|
|
662
623
|
required: _angular_core.InputSignal<boolean>;
|
|
663
624
|
ariaInvalid: _angular_core.InputSignal<boolean | undefined>;
|
|
664
|
-
size: _angular_core.InputSignal<"
|
|
625
|
+
size: _angular_core.InputSignal<"default" | "sm" | "lg" | null | undefined>;
|
|
665
626
|
className: _angular_core.InputSignal<string | undefined>;
|
|
666
627
|
get hostClasses(): string;
|
|
667
628
|
checked: _angular_core.WritableSignal<boolean>;
|
|
@@ -987,7 +948,7 @@ type DialogContentVariantsProps = VariantProps<typeof dialogContentVariants>;
|
|
|
987
948
|
* Dialog header variants
|
|
988
949
|
*/
|
|
989
950
|
declare const dialogHeaderVariants: (props?: ({
|
|
990
|
-
tone?: "
|
|
951
|
+
tone?: "info" | "secondary" | "brand" | null | undefined;
|
|
991
952
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
992
953
|
type DialogHeaderVariantsProps = VariantProps<typeof dialogHeaderVariants>;
|
|
993
954
|
/**
|
|
@@ -1004,7 +965,7 @@ declare const dialogFooterVariants: (props?: class_variance_authority_types.Clas
|
|
|
1004
965
|
type DialogFooterVariantsProps = VariantProps<typeof dialogFooterVariants>;
|
|
1005
966
|
|
|
1006
967
|
declare const inputVariants: (props?: ({
|
|
1007
|
-
size?: "
|
|
968
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1008
969
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1009
970
|
type InputSize = VariantProps<typeof inputVariants>['size'];
|
|
1010
971
|
declare class InputComponent implements ControlValueAccessor, Validator {
|
|
@@ -1014,7 +975,7 @@ declare class InputComponent implements ControlValueAccessor, Validator {
|
|
|
1014
975
|
required: _angular_core.InputSignal<boolean>;
|
|
1015
976
|
readonly: _angular_core.InputSignal<boolean>;
|
|
1016
977
|
ariaInvalid: _angular_core.InputSignal<boolean | undefined>;
|
|
1017
|
-
size: _angular_core.InputSignal<"
|
|
978
|
+
size: _angular_core.InputSignal<"default" | "sm" | "lg" | null | undefined>;
|
|
1018
979
|
className: _angular_core.InputSignal<string | undefined>;
|
|
1019
980
|
get hostClasses(): string;
|
|
1020
981
|
value: _angular_core.WritableSignal<string>;
|
|
@@ -1135,8 +1096,8 @@ declare class RadioComponent {
|
|
|
1135
1096
|
readonly focusRingClasses: _angular_core.Signal<string>;
|
|
1136
1097
|
readonly outerClasses: _angular_core.Signal<string>;
|
|
1137
1098
|
readonly innerClasses: _angular_core.Signal<string>;
|
|
1138
|
-
readonly outerSize: _angular_core.Signal<
|
|
1139
|
-
readonly innerSize: _angular_core.Signal<
|
|
1099
|
+
readonly outerSize: _angular_core.Signal<20 | 16>;
|
|
1100
|
+
readonly innerSize: _angular_core.Signal<14 | 10>;
|
|
1140
1101
|
readonly focusRingSize: _angular_core.Signal<22 | 26>;
|
|
1141
1102
|
readonly outerCircleClasses: _angular_core.Signal<"stroke-muted-foreground fill-muted-foreground" | "stroke-primary/70 fill-none" | "stroke-primary fill-none" | "stroke-muted-foreground fill-none">;
|
|
1142
1103
|
handleClick(): void;
|
|
@@ -1277,7 +1238,7 @@ declare const selectOptionVariants: (props?: ({
|
|
|
1277
1238
|
declare const selectErrorVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
|
|
1278
1239
|
|
|
1279
1240
|
type SelectSize = 'sm' | 'md' | 'lg';
|
|
1280
|
-
type SelectState = 'default' | '
|
|
1241
|
+
type SelectState = 'default' | 'focus' | 'disabled' | 'error';
|
|
1281
1242
|
interface SelectOption {
|
|
1282
1243
|
value: string;
|
|
1283
1244
|
label: string;
|
|
@@ -1475,7 +1436,7 @@ declare const sidebarProviderVariants: (props?: class_variance_authority_types.C
|
|
|
1475
1436
|
* Sidebar container variants (following shadcn pattern)
|
|
1476
1437
|
*/
|
|
1477
1438
|
declare const sidebarVariants: (props?: ({
|
|
1478
|
-
collapsible?: "icon" | "
|
|
1439
|
+
collapsible?: "icon" | "offcanvas" | "none" | null | undefined;
|
|
1479
1440
|
side?: "left" | "right" | null | undefined;
|
|
1480
1441
|
variant?: "sidebar" | "floating" | "inset" | null | undefined;
|
|
1481
1442
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
@@ -1526,7 +1487,7 @@ declare const sidebarMenuItemVariants: (props?: class_variance_authority_types.C
|
|
|
1526
1487
|
*/
|
|
1527
1488
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
1528
1489
|
variant?: "default" | "outline" | null | undefined;
|
|
1529
|
-
size?: "
|
|
1490
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1530
1491
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
1531
1492
|
/**
|
|
1532
1493
|
* Sidebar menu action variants
|
|
@@ -1871,7 +1832,7 @@ declare class SidebarMenuButtonComponent {
|
|
|
1871
1832
|
/** Visual variant */
|
|
1872
1833
|
readonly variant: _angular_core.InputSignal<"default" | "outline">;
|
|
1873
1834
|
/** Size variant */
|
|
1874
|
-
readonly size: _angular_core.InputSignal<"
|
|
1835
|
+
readonly size: _angular_core.InputSignal<"default" | "sm" | "lg">;
|
|
1875
1836
|
/** Disabled state */
|
|
1876
1837
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
1877
1838
|
/** Additional CSS classes */
|
|
@@ -2127,7 +2088,7 @@ declare class SidebarInsetComponent {
|
|
|
2127
2088
|
* Skeleton variants
|
|
2128
2089
|
*/
|
|
2129
2090
|
declare const skeletonVariants: (props?: ({
|
|
2130
|
-
type?: "
|
|
2091
|
+
type?: "text" | "rectangular" | "circular" | null | undefined;
|
|
2131
2092
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2132
2093
|
|
|
2133
2094
|
type SkeletonType = 'text' | 'circular' | 'rectangular';
|
|
@@ -2151,6 +2112,56 @@ declare class SkeletonComponent {
|
|
|
2151
2112
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SkeletonComponent, "bsg-skeleton", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2152
2113
|
}
|
|
2153
2114
|
|
|
2115
|
+
/**
|
|
2116
|
+
* Spinner variants
|
|
2117
|
+
*
|
|
2118
|
+
* Controls the spinner appearance including size and color variants.
|
|
2119
|
+
* Based on shadcn/ui spinner pattern.
|
|
2120
|
+
*/
|
|
2121
|
+
declare const spinnerVariants: (props?: ({
|
|
2122
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
2123
|
+
variant?: "default" | "info" | "success" | "warning" | "destructive" | "secondary" | "brand" | "primary" | "muted" | null | undefined;
|
|
2124
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2125
|
+
|
|
2126
|
+
type SpinnerSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
2127
|
+
type SpinnerVariant = 'default' | 'primary' | 'secondary' | 'muted' | 'destructive' | 'success' | 'warning' | 'info' | 'brand';
|
|
2128
|
+
type SpinnerVariantsProps = VariantProps<typeof spinnerVariants>;
|
|
2129
|
+
/**
|
|
2130
|
+
* Spinner Component
|
|
2131
|
+
*
|
|
2132
|
+
* A loading indicator that shows a spinning animation.
|
|
2133
|
+
* Based on shadcn/ui spinner pattern using an SVG loader icon.
|
|
2134
|
+
*
|
|
2135
|
+
* @example
|
|
2136
|
+
* ```html
|
|
2137
|
+
* <!-- Basic usage -->
|
|
2138
|
+
* <bsg-spinner />
|
|
2139
|
+
*
|
|
2140
|
+
* <!-- With size -->
|
|
2141
|
+
* <bsg-spinner size="lg" />
|
|
2142
|
+
*
|
|
2143
|
+
* <!-- With variant (color) -->
|
|
2144
|
+
* <bsg-spinner variant="destructive" />
|
|
2145
|
+
*
|
|
2146
|
+
* <!-- Custom aria-label -->
|
|
2147
|
+
* <bsg-spinner ariaLabel="Processing request..." />
|
|
2148
|
+
* ```
|
|
2149
|
+
*/
|
|
2150
|
+
declare class SpinnerComponent {
|
|
2151
|
+
/** Spinner size */
|
|
2152
|
+
readonly size: _angular_core.InputSignal<SpinnerSize>;
|
|
2153
|
+
/** Spinner color variant */
|
|
2154
|
+
readonly variant: _angular_core.InputSignal<SpinnerVariant>;
|
|
2155
|
+
/** Accessibility label for screen readers */
|
|
2156
|
+
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
2157
|
+
/** Additional CSS classes */
|
|
2158
|
+
readonly className: _angular_core.InputSignal<string | undefined>;
|
|
2159
|
+
/** Computed spinner classes */
|
|
2160
|
+
readonly spinnerClasses: _angular_core.Signal<string>;
|
|
2161
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
2162
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpinnerComponent, "bsg-spinner", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "className": { "alias": "className"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2163
|
+
}
|
|
2164
|
+
|
|
2154
2165
|
/**
|
|
2155
2166
|
* Switch root variants
|
|
2156
2167
|
*
|
|
@@ -2160,7 +2171,7 @@ declare class SkeletonComponent {
|
|
|
2160
2171
|
declare const switchRootVariants: (props?: ({
|
|
2161
2172
|
checked?: boolean | null | undefined;
|
|
2162
2173
|
disabled?: boolean | null | undefined;
|
|
2163
|
-
size?: "
|
|
2174
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
2164
2175
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2165
2176
|
/**
|
|
2166
2177
|
* Switch thumb variants
|
|
@@ -2169,7 +2180,7 @@ declare const switchRootVariants: (props?: ({
|
|
|
2169
2180
|
*/
|
|
2170
2181
|
declare const switchThumbVariants: (props?: ({
|
|
2171
2182
|
checked?: boolean | null | undefined;
|
|
2172
|
-
size?: "
|
|
2183
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
2173
2184
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2174
2185
|
|
|
2175
2186
|
type SwitchSize = 'sm' | 'default' | 'lg';
|
|
@@ -2209,7 +2220,7 @@ declare class SwitchComponent {
|
|
|
2209
2220
|
}
|
|
2210
2221
|
|
|
2211
2222
|
declare const textareaVariants: (props?: ({
|
|
2212
|
-
size?: "
|
|
2223
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
2213
2224
|
resize?: "horizontal" | "vertical" | "none" | "both" | null | undefined;
|
|
2214
2225
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2215
2226
|
type TextareaSize = VariantProps<typeof textareaVariants>['size'];
|
|
@@ -2221,7 +2232,7 @@ declare class TextareaComponent implements ControlValueAccessor, Validator {
|
|
|
2221
2232
|
readonly: _angular_core.InputSignal<boolean>;
|
|
2222
2233
|
rows: _angular_core.InputSignal<number>;
|
|
2223
2234
|
ariaInvalid: _angular_core.InputSignal<boolean | undefined>;
|
|
2224
|
-
size: _angular_core.InputSignal<"
|
|
2235
|
+
size: _angular_core.InputSignal<"default" | "sm" | "lg" | null | undefined>;
|
|
2225
2236
|
resize: _angular_core.InputSignal<"horizontal" | "vertical" | "none" | "both" | null | undefined>;
|
|
2226
2237
|
className: _angular_core.InputSignal<string | undefined>;
|
|
2227
2238
|
get hostClasses(): string;
|
|
@@ -2406,6 +2417,10 @@ declare class TimePickerComponent implements OnInit {
|
|
|
2406
2417
|
selectHour(hour: number): void;
|
|
2407
2418
|
selectMinute(minute: number): void;
|
|
2408
2419
|
selectNow(): void;
|
|
2420
|
+
/** Scroll both lists to show the selected values centered */
|
|
2421
|
+
private scrollToSelected;
|
|
2422
|
+
/** Scroll a list to center the element with the given value */
|
|
2423
|
+
private scrollToElement;
|
|
2409
2424
|
clearTime(): void;
|
|
2410
2425
|
updateTimeValue(): void;
|
|
2411
2426
|
toggleDropdown(): void;
|
|
@@ -2424,7 +2439,7 @@ declare class TimePickerComponent implements OnInit {
|
|
|
2424
2439
|
* Controls the overall toast container styles
|
|
2425
2440
|
*/
|
|
2426
2441
|
declare const toastVariants: (props?: ({
|
|
2427
|
-
variant?: "default" | "
|
|
2442
|
+
variant?: "default" | "info" | "success" | "warning" | "destructive" | null | undefined;
|
|
2428
2443
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2429
2444
|
/**
|
|
2430
2445
|
* Toast accent variants
|
|
@@ -2432,7 +2447,7 @@ declare const toastVariants: (props?: ({
|
|
|
2432
2447
|
* Controls the left accent bar
|
|
2433
2448
|
*/
|
|
2434
2449
|
declare const toastAccentVariants: (props?: ({
|
|
2435
|
-
variant?: "default" | "
|
|
2450
|
+
variant?: "default" | "info" | "success" | "warning" | "destructive" | null | undefined;
|
|
2436
2451
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
2437
2452
|
/**
|
|
2438
2453
|
* Toast icon variants
|
|
@@ -2581,5 +2596,5 @@ declare class TooltipComponent implements AfterContentInit {
|
|
|
2581
2596
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TooltipComponent, "bsg-tooltip", never, { "content": { "alias": "content"; "required": false; "isSignal": true; }; "placement": { "alias": "placement"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "triggerClassName": { "alias": "triggerClassName"; "required": false; "isSignal": true; }; "contentClassName": { "alias": "contentClassName"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
2582
2597
|
}
|
|
2583
2598
|
|
|
2584
|
-
export { AccordionComponent, AccordionContentComponent, AccordionItemComponent, AccordionTriggerComponent, AlertComponent, AvatarComponent, BadgeComponent, ButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CarouselComponent, CarouselItemComponent, CheckboxComponent, CollapsibleComponent, CollapsibleContentComponent, CollapsibleTriggerDirective, ComboboxComponent, DialogComponent, InputComponent, LabelComponent, RadioComponent, RadioGroupComponent, SelectComponent, SidebarComponent, SidebarContentComponent, SidebarFooterComponent, SidebarGroupActionComponent, SidebarGroupComponent, SidebarGroupContentComponent, SidebarGroupLabelComponent, SidebarHeaderComponent, SidebarInsetComponent, SidebarMenuActionComponent, SidebarMenuBadgeComponent, SidebarMenuButtonComponent, SidebarMenuComponent, SidebarMenuItemComponent, SidebarMenuSubButtonComponent, SidebarMenuSubComponent, SidebarMenuSubItemComponent, SidebarProviderComponent, SidebarRailComponent, SidebarSeparatorComponent, SidebarService, SidebarTriggerComponent, SkeletonComponent, SwitchComponent, TextareaComponent, TimePickerComponent, ToastComponent, TooltipComponent, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, accordionVariants, alertCloseVariants, alertContentVariants, alertIconVariants, alertVariants, avatarIconVariants, avatarImgVariants, avatarInitialsVariants, avatarVariants, badgeIconVariants, badgeVariants, buttonIconOnlyVariants, buttonIconVariants, buttonLabelVariants, buttonVariants, cardActionIconVariants, cardCurrencyContentVariants, cardCurrencyIconVariants, cardCurrencyLabelVariants, cardCurrencyTextVariants, cardHeaderRowVariants, cardHeaderVariants, cardHelperDescriptionVariants, cardHelperRowVariants, cardHelperVariants, cardInfoIconVariants, cardInfoLabelVariants, cardInfoTextVariants, cardMetricTitleVariants, cardMetricValueVariants, cardSlotBodyVariants, cardSlotFooterVariants, cardSlotHeaderVariants, cardValueVariants, cardVariants, carouselArrowVariants, carouselChevronVariants, carouselContainerVariants, carouselIndicatorVariants, carouselIndicatorsVariants, carouselRootVariants, carouselTrackVariants, carouselViewportVariants, checkboxVariants, comboboxDropdownVariants, comboboxEmptyStateVariants, comboboxErrorMessageVariants, comboboxIconVariants, comboboxOptionVariants, comboboxOptionsContainerVariants, comboboxSearchInputVariants, comboboxSearchWrapperVariants, comboboxTriggerVariants, comboboxValueVariants, comboboxWrapperVariants, dialogBodyVariants, dialogContentVariants, dialogFooterVariants, dialogHeaderVariants, dialogOverlayVariants, inputVariants, labelVariants, radioFocusRingVariants, radioGroupVariants, radioInnerVariants, radioLabelVariants, radioOptionVariants, radioOuterVariants, radioWrapperVariants, selectDropdownVariants, selectErrorVariants, selectIconVariants, selectOptionVariants, selectTriggerVariants, selectValueVariants, selectWrapperVariants, sidebarChevronVariants, sidebarContentVariants, sidebarFooterVariants, sidebarGroupActionVariants, sidebarGroupContentVariants, sidebarGroupLabelVariants, sidebarGroupVariants, sidebarHeaderVariants, sidebarInsetVariants, sidebarMenuActionVariants, sidebarMenuBadgeVariants, sidebarMenuButtonVariants, sidebarMenuItemVariants, sidebarMenuSkeletonVariants, sidebarMenuSubButtonVariants, sidebarMenuSubItemVariants, sidebarMenuSubVariants, sidebarMenuVariants, sidebarProviderVariants, sidebarRailVariants, sidebarSeparatorVariants, sidebarTriggerVariants, sidebarVariants, sidebarWrapperVariants, skeletonVariants, switchRootVariants, switchThumbVariants, textareaVariants, timepickerActionButtonVariants, timepickerActionsVariants, timepickerColumnHeaderVariants, timepickerColumnVariants, timepickerDropdownVariants, timepickerErrorMessageVariants, timepickerFieldVariants, timepickerIconButtonVariants, timepickerInputVariants, timepickerLabelVariants, timepickerListVariants, timepickerOptionVariants, timepickerSelectionAreaVariants, timepickerSeparatorVariants, timepickerWrapperVariants, toastAccentVariants, toastCloseVariants, toastContentVariants, toastIconVariants, toastVariants, tooltipArrowVariants, tooltipContentVariants, tooltipTriggerVariants };
|
|
2585
|
-
export type { AccordionType, AccordionVariant, AccordionVariantsProps, AlertVariant, AlertVariantsProps, AvatarSize, AvatarType, AvatarVariantsProps, BadgeIconVariantsProps, BadgeLayout, BadgeSize, BadgeVariant, BadgeVariantsProps, ButtonShape, ButtonSize, ButtonVariant, ButtonVariantsProps, CardContentVariant, CardVariant, CardVariantsProps, CarouselArrowVariantsProps, CarouselIndicatorVariantsProps, CheckboxSize, ComboboxOption, ComboboxSize, ComboboxState, ComboboxTriggerVariantsProps, ComboboxWrapperVariantsProps, DialogBodyVariantsProps, DialogContentVariantsProps, DialogFooterVariantsProps, DialogHeaderTone, DialogHeaderVariantsProps, DialogSize,
|
|
2599
|
+
export { AccordionComponent, AccordionContentComponent, AccordionItemComponent, AccordionTriggerComponent, AlertComponent, AvatarComponent, BadgeComponent, ButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CarouselComponent, CarouselItemComponent, CheckboxComponent, CollapsibleComponent, CollapsibleContentComponent, CollapsibleTriggerDirective, ComboboxComponent, DialogComponent, InputComponent, LabelComponent, RadioComponent, RadioGroupComponent, SelectComponent, SidebarComponent, SidebarContentComponent, SidebarFooterComponent, SidebarGroupActionComponent, SidebarGroupComponent, SidebarGroupContentComponent, SidebarGroupLabelComponent, SidebarHeaderComponent, SidebarInsetComponent, SidebarMenuActionComponent, SidebarMenuBadgeComponent, SidebarMenuButtonComponent, SidebarMenuComponent, SidebarMenuItemComponent, SidebarMenuSubButtonComponent, SidebarMenuSubComponent, SidebarMenuSubItemComponent, SidebarProviderComponent, SidebarRailComponent, SidebarSeparatorComponent, SidebarService, SidebarTriggerComponent, SkeletonComponent, SpinnerComponent, SwitchComponent, TextareaComponent, TimePickerComponent, ToastComponent, TooltipComponent, accordionContentVariants, accordionItemVariants, accordionTriggerVariants, accordionVariants, alertCloseVariants, alertContentVariants, alertIconVariants, alertVariants, avatarIconVariants, avatarImgVariants, avatarInitialsVariants, avatarVariants, badgeIconVariants, badgeVariants, buttonIconOnlyVariants, buttonIconVariants, buttonLabelVariants, buttonSpinnerVariants, buttonVariants, cardActionIconVariants, cardCurrencyContentVariants, cardCurrencyIconVariants, cardCurrencyLabelVariants, cardCurrencyTextVariants, cardHeaderRowVariants, cardHeaderVariants, cardHelperDescriptionVariants, cardHelperRowVariants, cardHelperVariants, cardInfoIconVariants, cardInfoLabelVariants, cardInfoTextVariants, cardMetricTitleVariants, cardMetricValueVariants, cardSlotBodyVariants, cardSlotFooterVariants, cardSlotHeaderVariants, cardValueVariants, cardVariants, carouselArrowVariants, carouselChevronVariants, carouselContainerVariants, carouselIndicatorVariants, carouselIndicatorsVariants, carouselRootVariants, carouselTrackVariants, carouselViewportVariants, checkboxVariants, comboboxDropdownVariants, comboboxEmptyStateVariants, comboboxErrorMessageVariants, comboboxIconVariants, comboboxOptionVariants, comboboxOptionsContainerVariants, comboboxSearchInputVariants, comboboxSearchWrapperVariants, comboboxTriggerVariants, comboboxValueVariants, comboboxWrapperVariants, dialogBodyVariants, dialogContentVariants, dialogFooterVariants, dialogHeaderVariants, dialogOverlayVariants, inputVariants, labelVariants, radioFocusRingVariants, radioGroupVariants, radioInnerVariants, radioLabelVariants, radioOptionVariants, radioOuterVariants, radioWrapperVariants, selectDropdownVariants, selectErrorVariants, selectIconVariants, selectOptionVariants, selectTriggerVariants, selectValueVariants, selectWrapperVariants, sidebarChevronVariants, sidebarContentVariants, sidebarFooterVariants, sidebarGroupActionVariants, sidebarGroupContentVariants, sidebarGroupLabelVariants, sidebarGroupVariants, sidebarHeaderVariants, sidebarInsetVariants, sidebarMenuActionVariants, sidebarMenuBadgeVariants, sidebarMenuButtonVariants, sidebarMenuItemVariants, sidebarMenuSkeletonVariants, sidebarMenuSubButtonVariants, sidebarMenuSubItemVariants, sidebarMenuSubVariants, sidebarMenuVariants, sidebarProviderVariants, sidebarRailVariants, sidebarSeparatorVariants, sidebarTriggerVariants, sidebarVariants, sidebarWrapperVariants, skeletonVariants, spinnerVariants, switchRootVariants, switchThumbVariants, textareaVariants, timepickerActionButtonVariants, timepickerActionsVariants, timepickerColumnHeaderVariants, timepickerColumnVariants, timepickerDropdownVariants, timepickerErrorMessageVariants, timepickerFieldVariants, timepickerIconButtonVariants, timepickerInputVariants, timepickerLabelVariants, timepickerListVariants, timepickerOptionVariants, timepickerSelectionAreaVariants, timepickerSeparatorVariants, timepickerWrapperVariants, toastAccentVariants, toastCloseVariants, toastContentVariants, toastIconVariants, toastVariants, tooltipArrowVariants, tooltipContentVariants, tooltipTriggerVariants };
|
|
2600
|
+
export type { AccordionType, AccordionVariant, AccordionVariantsProps, AlertVariant, AlertVariantsProps, AvatarSize, AvatarType, AvatarVariantsProps, BadgeIconVariantsProps, BadgeLayout, BadgeSize, BadgeVariant, BadgeVariantsProps, ButtonShape, ButtonSize, ButtonVariant, ButtonVariantsProps, CardContentVariant, CardVariant, CardVariantsProps, CarouselArrowVariantsProps, CarouselIndicatorVariantsProps, CheckboxSize, ComboboxOption, ComboboxSize, ComboboxState, ComboboxTriggerVariantsProps, ComboboxWrapperVariantsProps, DialogBodyVariantsProps, DialogContentVariantsProps, DialogFooterVariantsProps, DialogHeaderTone, DialogHeaderVariantsProps, DialogSize, InputSize, RadioFocusRingVariantsProps, RadioGroupOption, RadioGroupOrientation, RadioGroupVariantsProps, RadioInnerVariantsProps, RadioLabelVariantsProps, RadioOptionVariantsProps, RadioOuterVariantsProps, RadioSize, RadioState, RadioWrapperVariantsProps, SelectOption, SelectSize, SelectState, SelectTriggerVariantsProps, SidebarCollapsible, SidebarMenuActionVariantsProps, SidebarMenuButtonVariantsProps, SidebarMenuSubButtonVariantsProps, SidebarSide, SidebarState, SidebarVariant, SkeletonType, SkeletonVariantsProps, SpinnerSize, SpinnerVariant, SpinnerVariantsProps, SwitchSize, SwitchVariantsProps, TextareaResize, TextareaSize, TimePickerSize, TimePickerState, TimePickerWrapperVariantsProps, ToastVariant, ToastVariantsProps, TooltipContentVariantsProps, TooltipPlacement };
|
package/package.json
CHANGED
|
@@ -41,6 +41,18 @@
|
|
|
41
41
|
--input: oklch(0.922 0 0);
|
|
42
42
|
--ring: oklch(0.702 0.183 293.541);
|
|
43
43
|
|
|
44
|
+
/* State colors */
|
|
45
|
+
--info: oklch(0.623 0.214 259.815);
|
|
46
|
+
--info-foreground: oklch(0.985 0 0);
|
|
47
|
+
--success: oklch(0.627 0.194 149.214);
|
|
48
|
+
--success-foreground: oklch(0.985 0 0);
|
|
49
|
+
--warning: oklch(0.795 0.184 86.047);
|
|
50
|
+
--warning-foreground: oklch(0.145 0 0);
|
|
51
|
+
|
|
52
|
+
/* Brand color (orange) */
|
|
53
|
+
--brand: oklch(0.646 0.222 41.116);
|
|
54
|
+
--brand-foreground: oklch(0.985 0 0);
|
|
55
|
+
|
|
44
56
|
--radius: 0.625rem;
|
|
45
57
|
|
|
46
58
|
/* Tooltip semantic tokens */
|
|
@@ -98,6 +110,18 @@
|
|
|
98
110
|
--input: oklch(0.269 0 0);
|
|
99
111
|
--ring: oklch(0.439 0 0);
|
|
100
112
|
|
|
113
|
+
/* State colors (dark) */
|
|
114
|
+
--info: oklch(0.546 0.245 262.881);
|
|
115
|
+
--info-foreground: oklch(0.985 0 0);
|
|
116
|
+
--success: oklch(0.627 0.194 149.214);
|
|
117
|
+
--success-foreground: oklch(0.985 0 0);
|
|
118
|
+
--warning: oklch(0.768 0.189 70.08);
|
|
119
|
+
--warning-foreground: oklch(0.145 0 0);
|
|
120
|
+
|
|
121
|
+
/* Brand color (dark) */
|
|
122
|
+
--brand: oklch(0.702 0.209 41.116);
|
|
123
|
+
--brand-foreground: oklch(0.985 0 0);
|
|
124
|
+
|
|
101
125
|
/* Tooltip semantic tokens (dark theme) */
|
|
102
126
|
--tooltip: oklch(0.985 0 0);
|
|
103
127
|
--tooltip-foreground: oklch(0.145 0 0);
|
|
@@ -144,15 +168,14 @@
|
|
|
144
168
|
--color-destructive: var(--destructive);
|
|
145
169
|
--color-destructive-foreground: var(--destructive-foreground);
|
|
146
170
|
|
|
147
|
-
|
|
171
|
+
--color-info: var(--info);
|
|
172
|
+
--color-info-foreground: var(--info-foreground);
|
|
148
173
|
--color-success: var(--success);
|
|
149
174
|
--color-success-foreground: var(--success-foreground);
|
|
150
|
-
|
|
151
175
|
--color-warning: var(--warning);
|
|
152
176
|
--color-warning-foreground: var(--warning-foreground);
|
|
153
|
-
|
|
154
|
-
--color-
|
|
155
|
-
--color-info-foreground: var(--info-foreground);
|
|
177
|
+
--color-brand: var(--brand);
|
|
178
|
+
--color-brand-foreground: var(--brand-foreground);
|
|
156
179
|
|
|
157
180
|
--color-border: var(--border);
|
|
158
181
|
--color-input: var(--input);
|