@q1travel/design-system 0.18.0 → 0.19.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.
@@ -448,7 +448,9 @@ These components ship in the package. Compose from this list before writing new
448
448
  - Tabs switch between peer views of the same subject. They are not a way to shorten a page.
449
449
  - ContextSwitcher is the two-level selection model; the consumer owns the state behind it.
450
450
 
451
- **Identity and media.** Avatar, AvatarGroup, Book, Browser, BrowserDots, BrowserControls, BrowserAddress, BrowserTabs, BrowserPlaceholder, Phone, Video, ThemeSwitcher.
451
+ **Identity and media.** Avatar, AvatarGroup, Book, Browser, BrowserDots, BrowserControls, BrowserAddress, BrowserTabs, BrowserPlaceholder, Phone, Video, ThemeSwitcher, ProductLockup, Q1travelSymbol.
452
+
453
+ - ProductLockup combines a product icon, product name, and brand endorsement into one identity mark. The endorsement is smaller and uses secondary text color.
452
454
 
453
455
  **Text utilities.** Code, CodeInline, CodeTokens, CodeBlock, Snippet, Kbd, MiddleTruncate, TextWithCopyButton.
454
456
 
@@ -448,7 +448,9 @@ These components ship in the package. Compose from this list before writing new
448
448
  - Tabs switch between peer views of the same subject. They are not a way to shorten a page.
449
449
  - ContextSwitcher is the two-level selection model; the consumer owns the state behind it.
450
450
 
451
- **Identity and media.** Avatar, AvatarGroup, Book, Browser, BrowserDots, BrowserControls, BrowserAddress, BrowserTabs, BrowserPlaceholder, Phone, Video, ThemeSwitcher.
451
+ **Identity and media.** Avatar, AvatarGroup, Book, Browser, BrowserDots, BrowserControls, BrowserAddress, BrowserTabs, BrowserPlaceholder, Phone, Video, ThemeSwitcher, ProductLockup, Q1travelSymbol.
452
+
453
+ - ProductLockup combines a product icon, product name, and brand endorsement into one identity mark. The endorsement is smaller and uses secondary text color.
452
454
 
453
455
  **Text utilities.** Code, CodeInline, CodeTokens, CodeBlock, Snippet, Kbd, MiddleTruncate, TextWithCopyButton.
454
456
 
@@ -16,6 +16,7 @@ import { Ref } from 'react';
16
16
  import { RefAttributes } from 'react';
17
17
  import { RefObject } from 'react';
18
18
  import { SelectHTMLAttributes } from 'react';
19
+ import { SVGProps } from 'react';
19
20
  import { TableHTMLAttributes } from 'react';
20
21
  import { TextareaHTMLAttributes } from 'react';
21
22
 
@@ -1380,6 +1381,20 @@ export declare type PillProps = {
1380
1381
 
1381
1382
  export declare type PopoverLayout = 'vertical' | 'horizontal';
1382
1383
 
1384
+ export declare function ProductLockup({ name, icon, endorsement, size, className, 'aria-label': ariaLabel, ...rest }: ProductLockupProps): JSX.Element;
1385
+
1386
+ export declare type ProductLockupProps = {
1387
+ /** 产品名称,以文字渲染,随主题承色。 */
1388
+ name: string;
1389
+ /** 产品图标,视为装饰,不参与朗读。默认为品牌符号。 */
1390
+ icon?: ReactNode;
1391
+ /** 背书文字。 */
1392
+ endorsement?: string;
1393
+ size?: ProductLockupSize;
1394
+ } & Omit<HTMLAttributes<HTMLSpanElement>, 'children' | 'role'>;
1395
+
1396
+ export declare type ProductLockupSize = 'sm' | 'md';
1397
+
1383
1398
  export declare function Progress({ value, max, tone, slim, stops, label, }: {
1384
1399
  value: number;
1385
1400
  max?: number;
@@ -1414,6 +1429,8 @@ export declare type ProjectBannerProps = {
1414
1429
  action: ProjectBannerAction;
1415
1430
  };
1416
1431
 
1432
+ export declare function Q1travelSymbol(props: SVGProps<SVGSVGElement>): JSX.Element;
1433
+
1417
1434
  export declare function Radio({ ...props }: RadioProps): JSX.Element;
1418
1435
 
1419
1436
  /** Radio 的完整 props。 */