@turquoisehealth/pit-viper 2.25.1 → 2.25.3

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.
@@ -430,12 +430,12 @@
430
430
  display: flex;
431
431
  align-items: center;
432
432
  justify-content: center;
433
- gap: var(--button-gap, 4px);
433
+ gap: var(--button-gap, 0.25rem);
434
434
  white-space: nowrap;
435
435
  font-weight: var(--button-font-weight, 500);
436
- line-height: var(--button-line-height, 1.45454545);
436
+ line-height: var(--button-line-height, 1.33333333);
437
437
  border-radius: var(--button-radius, 4px);
438
- font-size: var(--button-font-size, 0.6875rem);
438
+ font-size: var(--button-font-size, 0.75rem);
439
439
  transition-duration: 0.125s;
440
440
  transition-property: background-color, color;
441
441
  }
@@ -456,7 +456,7 @@
456
456
  .pv-button-ghost,
457
457
  .pv-button-destructive,
458
458
  .pv-button-ghost-destructive {
459
- padding: var(--button-padding, calc(0.5rem - 1px) 0.75rem);
459
+ padding: var(--button-padding, calc(0.25rem - 1px) 0.5rem);
460
460
  }
461
461
  .pv-button-primary:not(:disabled):hover, .pv-button-primary:not(:disabled):focus-visible,
462
462
  .pv-button-secondary:not(:disabled):hover,
@@ -627,15 +627,25 @@
627
627
  }
628
628
 
629
629
  .pv-button-small {
630
- padding: var(--button-small-padding, calc(0.25rem - 1px) 0.5rem);
630
+ padding: var(--button-small-padding, calc(0.125rem - 1px) 0.25rem);
631
631
  }
632
632
  .pv-button-small.pv-button-primary-outline {
633
633
  padding: calc(0.25rem - 1px) 0.5rem;
634
634
  }
635
635
 
636
636
  .pv-button-large {
637
- font-size: 1.125rem;
638
- line-height: 1.3333333;
637
+ padding: var(--button-large-padding, calc(0.5rem - 1px) 0.75rem);
638
+ gap: var(--button-large-gap, 0.5rem);
639
+ }
640
+
641
+ [class*=pv-button]:not(.pv-button-icon):has(svg:is(:only-child)) {
642
+ padding: var(--button-icon-only-padding, calc(0.25rem - 1px));
643
+ }
644
+ [class*=pv-button]:not(.pv-button-icon):has(svg:is(:only-child)).pv-button-small {
645
+ padding: var(--button-small-icon-only-padding, calc(0.125rem - 1px));
646
+ }
647
+ [class*=pv-button]:not(.pv-button-icon):has(svg:is(:only-child)).pv-button-large {
648
+ padding: var(--button-large-icon-only-padding, calc(0.5rem - 1px));
639
649
  }
640
650
 
641
651
  .pv-button-icon {
@@ -1338,7 +1348,7 @@ label:has(input:not(:disabled)).pv-label-hover:hover {
1338
1348
  border: 2px solid #E3E7EA;
1339
1349
  border-radius: var(--button-radius, 4px);
1340
1350
  color: #121313;
1341
- font-size: var(--button-font-size, 0.6875rem);
1351
+ font-size: var(--button-font-size, 0.75rem);
1342
1352
  font-weight: var(--button-font-weight, 500);
1343
1353
  padding: 0.25rem 0.5rem;
1344
1354
  transition-duration: 0.125s;
@@ -652,8 +652,18 @@
652
652
  }
653
653
 
654
654
  .pv-button-large {
655
- font-size: 1.125rem;
656
- line-height: 1.3333333;
655
+ padding: var(--button-large-padding, calc(0.5rem - 1px) 0.75rem);
656
+ gap: var(--button-large-gap, 0.5rem);
657
+ }
658
+
659
+ [class*=pv-button]:not(.pv-button-icon):has(svg:is(:only-child)) {
660
+ padding: var(--button-icon-only-padding, calc(0.25rem - 1px));
661
+ }
662
+ [class*=pv-button]:not(.pv-button-icon):has(svg:is(:only-child)).pv-button-small {
663
+ padding: var(--button-small-icon-only-padding, calc(0.125rem - 1px));
664
+ }
665
+ [class*=pv-button]:not(.pv-button-icon):has(svg:is(:only-child)).pv-button-large {
666
+ padding: var(--button-large-icon-only-padding, calc(0.5rem - 1px));
657
667
  }
658
668
 
659
669
  .pv-button-icon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turquoisehealth/pit-viper",
3
- "version": "2.25.1",
3
+ "version": "2.25.3",
4
4
  "description": "Turquoise Health's design system.",
5
5
  "main": "README.md",
6
6
  "publishConfig": {
@@ -179,6 +179,36 @@ declare type PvCompanyLogoProps = {
179
179
 
180
180
  declare type PvCompanyLogoSize = PvSize;
181
181
 
182
+ export declare const PvCompanyTag: DefineComponent<PvCompanyTag_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
183
+ "handle-close": (label: string) => any;
184
+ "handle-click": (label: string) => any;
185
+ }, string, PublicProps, Readonly<PvCompanyTag_2> & Readonly<{
186
+ "onHandle-close"?: ((label: string) => any) | undefined;
187
+ "onHandle-click"?: ((label: string) => any) | undefined;
188
+ }>, {
189
+ size: TagSize;
190
+ showClear: boolean;
191
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
192
+
193
+ declare interface PvCompanyTag_2 {
194
+ /**
195
+ * Tag Label
196
+ */
197
+ label: string;
198
+ /**
199
+ * Company name. Displayed on the left
200
+ */
201
+ companyName: string;
202
+ /**
203
+ * Size
204
+ */
205
+ size?: TagSize;
206
+ /**
207
+ * Show clear left icon
208
+ */
209
+ showClear?: boolean;
210
+ }
211
+
182
212
  export declare const PvCounterBadge: DefineComponent<PvBadgeProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<PvBadgeProps> & Readonly<{}>, {
183
213
  variant: "primary" | "secondary" | "tertiary" | "ghost";
184
214
  size: "sm" | "md";
@@ -556,6 +586,36 @@ declare type PvSize = (typeof PvSizes)[number];
556
586
 
557
587
  declare const PvSizes: readonly ["xs", "sm", "md", "lg", "xl", "2x"];
558
588
 
589
+ export declare const PvSuggestionTag: DefineComponent<PvSuggestionTag_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
590
+ "handle-close": (label: string) => any;
591
+ "handle-click": (label: string) => any;
592
+ }, string, PublicProps, Readonly<PvSuggestionTag_2> & Readonly<{
593
+ "onHandle-close"?: ((label: string) => any) | undefined;
594
+ "onHandle-click"?: ((label: string) => any) | undefined;
595
+ }>, {
596
+ size: TagSize;
597
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
598
+
599
+ declare interface PvSuggestionTag_2 {
600
+ /**
601
+ * @default 'Medium'
602
+ * Tag Size
603
+ */
604
+ size?: TagSize;
605
+ /**
606
+ * Tag Label
607
+ */
608
+ label: string;
609
+ /**
610
+ * Show left Icon
611
+ */
612
+ showIcon?: boolean;
613
+ /**
614
+ * Show rounded state
615
+ */
616
+ rounded?: boolean;
617
+ }
618
+
559
619
  export declare const PvTabList: DefineComponent<PvTabListBaseProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
560
620
  "update:modelValue": (...args: any[]) => void;
561
621
  }, string, PublicProps, Readonly<PvTabListBaseProps> & Readonly<{
@@ -568,24 +628,43 @@ declare interface PvTabListBaseProps {
568
628
  }
569
629
 
570
630
  export declare const PvTag: DefineComponent<PvTagProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
571
- "tag-clicked": () => any;
572
- "tag-icon-right-clicked": () => any;
573
- "tag-icon-left-clicked": () => any;
631
+ "handle-close": (payload: string) => any;
632
+ "handle-click": (payload: string) => any;
574
633
  }, string, PublicProps, Readonly<PvTagProps> & Readonly<{
575
- "onTag-clicked"?: (() => any) | undefined;
576
- "onTag-icon-right-clicked"?: (() => any) | undefined;
577
- "onTag-icon-left-clicked"?: (() => any) | undefined;
634
+ "onHandle-close"?: ((payload: string) => any) | undefined;
635
+ "onHandle-click"?: ((payload: string) => any) | undefined;
578
636
  }>, {
579
- rounded: boolean;
580
- isButton: boolean;
581
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
637
+ variant: TagVariant;
638
+ size: TagSize;
639
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, HTMLButtonElement>;
582
640
 
583
641
  declare interface PvTagProps {
642
+ /**
643
+ * @default 'Medium'
644
+ * Tag size
645
+ */
646
+ size?: TagSize;
647
+ /**
648
+ * @default 'Tertiary'
649
+ * Tag Variant
650
+ */
651
+ variant?: TagVariant;
652
+ /**
653
+ * Tag Icon
654
+ */
655
+ icon?: string;
656
+ /**
657
+ * Tag Label
658
+ */
584
659
  label: string;
660
+ /**
661
+ * Show left clear icon
662
+ */
663
+ showClear?: boolean;
664
+ /**
665
+ * Show rounded state
666
+ */
585
667
  rounded?: boolean;
586
- iconRight?: string;
587
- iconLeft?: string;
588
- isButton?: boolean;
589
668
  }
590
669
 
591
670
  export declare const PvToggle: __VLS_WithTemplateSlots_4<DefineComponent< {
@@ -622,4 +701,12 @@ declare type PvToggleVariant = (typeof PvToggleVariants)[number];
622
701
 
623
702
  declare const PvToggleVariants: readonly ["secondary", "tertiary", "icon"];
624
703
 
704
+ declare const PvVariants: readonly ["primary", "secondary", "tertiary"];
705
+
706
+ declare type PvVariants = (typeof PvVariants)[number];
707
+
708
+ declare type TagSize = Extract<PvSize, "sm" | "md" | "lg">;
709
+
710
+ declare type TagVariant = Extract<PvVariants, "primary" | "tertiary">;
711
+
625
712
  export { }