@ctrliq/quantic-components 1.60.1 → 1.61.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.
@@ -63,6 +63,11 @@ Badge.styles = css `
63
63
  border-radius: var(--quantic-radius-sm);
64
64
  }
65
65
 
66
+ .size--xs {
67
+ padding: 0 var(--quantic-spacing-1);
68
+ font-size: var(--quantic-font-size-body-xs);
69
+ }
70
+
66
71
  .size--sm {
67
72
  padding: var(--quantic-spacing-0-5) var(--quantic-spacing-1-5);
68
73
  font-size: var(--quantic-font-size-body-xs);
@@ -89,6 +94,11 @@ Badge.styles = css `
89
94
  line-height: 100%;
90
95
  }
91
96
 
97
+ .icon.size--xs {
98
+ width: calc(var(--quantic-line-height-body-xs) + 2px);
99
+ height: calc(var(--quantic-line-height-body-xs) + 2px);
100
+ }
101
+
92
102
  .icon.size--sm {
93
103
  width: calc(var(--quantic-line-height-body-xs) + 4px);
94
104
  height: calc(var(--quantic-line-height-body-xs) + 4px);
@@ -15,6 +15,7 @@ export declare const BadgeColor: {
15
15
  };
16
16
  export type BadgeColor = ComponentColor;
17
17
  export declare const BadgeSize: {
18
+ readonly ExtraSmall: "xs";
18
19
  readonly Small: "sm";
19
20
  readonly Medium: "md";
20
21
  readonly Large: "lg";
@@ -1,6 +1,7 @@
1
1
  import { ComponentColor } from '../shared/shared.constants';
2
2
  export const BadgeColor = ComponentColor;
3
3
  export const BadgeSize = {
4
+ ExtraSmall: 'xs',
4
5
  Small: 'sm',
5
6
  Medium: 'md',
6
7
  Large: 'lg',
@@ -25,7 +25,7 @@ declare const _default: {
25
25
  control: {
26
26
  type: string;
27
27
  };
28
- options: ("sm" | "md" | "lg")[];
28
+ options: ("xs" | "sm" | "md" | "lg")[];
29
29
  description: string;
30
30
  };
31
31
  rounded: {
@@ -51,6 +51,7 @@ export declare const Indigo: import("../shared/story").StoryObject<Args>;
51
51
  export declare const Purple: import("../shared/story").StoryObject<Args>;
52
52
  export declare const Pink: import("../shared/story").StoryObject<Args>;
53
53
  export declare const Orange: import("../shared/story").StoryObject<Args>;
54
+ export declare const ExtraSmall: import("../shared/story").StoryObject<Args>;
54
55
  export declare const Small: import("../shared/story").StoryObject<Args>;
55
56
  export declare const Medium: import("../shared/story").StoryObject<Args>;
56
57
  export declare const Large: import("../shared/story").StoryObject<Args>;
@@ -72,6 +72,10 @@ export const Orange = base.override({
72
72
  color: BadgeColor.Orange,
73
73
  });
74
74
  // ── sizes ─────────────────────────────────────────────────────────────────────
75
+ export const ExtraSmall = base.override({
76
+ label: 'Label',
77
+ size: BadgeSize.ExtraSmall,
78
+ });
75
79
  export const Small = base.override({ label: 'Label', size: BadgeSize.Small });
76
80
  export const Medium = base.override({ label: 'Label', size: BadgeSize.Medium });
77
81
  export const Large = base.override({ label: 'Label', size: BadgeSize.Large });
@@ -23,7 +23,7 @@ declare const _default: {
23
23
  control: {
24
24
  type: string;
25
25
  };
26
- options: ("sm" | "md" | "lg")[];
26
+ options: ("xs" | "sm" | "md" | "lg")[];
27
27
  description: string;
28
28
  };
29
29
  };