Skip to content

Commit 939ca71

Browse files
authored
Latest changes from Admin UI Foundations (#2653)
1 parent 7285fd8 commit 939ca71

File tree

1 file changed

+66
-59
lines changed

1 file changed

+66
-59
lines changed

packages/ui-extensions/src/surfaces/admin/components.d.ts

Lines changed: 66 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,7 @@ type IconType =
225225
| 'favicon'
226226
| 'file'
227227
| 'filter'
228+
| 'fingerprint'
228229
| 'flag'
229230
| 'flip-horizontal'
230231
| 'flip-vertical'
@@ -1494,11 +1495,6 @@ interface AutocompleteProps<AutocompleteField extends AnyAutocompleteField> {
14941495
type AutocompleteSection = `section-${string}`;
14951496
type AutocompleteGroup = 'shipping' | 'billing';
14961497
type AutocompleteAddressGroup = 'fax' | 'home' | 'mobile' | 'pager';
1497-
type AutocompleteFieldTelephoneAlias = 'tel' | 'telephone';
1498-
type AutocompleteFieldBirthdayAlias = 'bday' | 'birthday';
1499-
type AutocompleteFieldCreditCardAlias = 'cc' | 'credit-card';
1500-
type AutocompleteFieldInstantMessageAlias = 'impp' | 'instant-message';
1501-
type AutocompleteFieldSecurityCodeAlias = 'csc' | 'security-code';
15021498
type AnyAutocompleteField =
15031499
| 'additional-name'
15041500
| 'address-level1'
@@ -1531,39 +1527,39 @@ type AnyAutocompleteField =
15311527
| 'transaction-currency'
15321528
| 'url'
15331529
| 'username'
1534-
| `${AutocompleteFieldBirthdayAlias}-day`
1535-
| `${AutocompleteFieldBirthdayAlias}-month`
1536-
| `${AutocompleteFieldBirthdayAlias}-year`
1537-
| `${AutocompleteFieldBirthdayAlias}`
1538-
| `${AutocompleteFieldCreditCardAlias}-additional-name`
1539-
| `${AutocompleteFieldCreditCardAlias}-expiry-month`
1540-
| `${AutocompleteFieldCreditCardAlias}-expiry-year`
1541-
| `${AutocompleteFieldCreditCardAlias}-expiry`
1542-
| `${AutocompleteFieldCreditCardAlias}-family-name`
1543-
| `${AutocompleteFieldCreditCardAlias}-given-name`
1544-
| `${AutocompleteFieldCreditCardAlias}-name`
1545-
| `${AutocompleteFieldCreditCardAlias}-number`
1546-
| `${AutocompleteFieldCreditCardAlias}-${AutocompleteFieldSecurityCodeAlias}`
1547-
| `${AutocompleteFieldCreditCardAlias}-type`
1530+
| 'bday-day'
1531+
| 'bday-month'
1532+
| 'bday-year'
1533+
| 'bday'
1534+
| 'cc-additional-name'
1535+
| 'cc-expiry-month'
1536+
| 'cc-expiry-year'
1537+
| 'cc-expiry'
1538+
| 'cc-family-name'
1539+
| 'cc-given-name'
1540+
| 'cc-name'
1541+
| 'cc-number'
1542+
| 'cc-csc'
1543+
| 'cc-type'
15481544
| `${AutocompleteAddressGroup} email`
1549-
| `${AutocompleteFieldInstantMessageAlias}`
1550-
| `${AutocompleteAddressGroup} ${AutocompleteFieldInstantMessageAlias}`
1551-
| `${AutocompleteFieldTelephoneAlias}`
1552-
| `${AutocompleteFieldTelephoneAlias}-area-code`
1553-
| `${AutocompleteFieldTelephoneAlias}-country-code`
1554-
| `${AutocompleteFieldTelephoneAlias}-extension`
1555-
| `${AutocompleteFieldTelephoneAlias}-local-prefix`
1556-
| `${AutocompleteFieldTelephoneAlias}-local-suffix`
1557-
| `${AutocompleteFieldTelephoneAlias}-local`
1558-
| `${AutocompleteFieldTelephoneAlias}-national`
1559-
| `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}`
1560-
| `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-area-code`
1561-
| `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-country-code`
1562-
| `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-extension`
1563-
| `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-local-prefix`
1564-
| `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-local-suffix`
1565-
| `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-local`
1566-
| `${AutocompleteAddressGroup} ${AutocompleteFieldTelephoneAlias}-national`;
1545+
| 'impp'
1546+
| `${AutocompleteAddressGroup} impp`
1547+
| 'tel'
1548+
| 'tel-area-code'
1549+
| 'tel-country-code'
1550+
| 'tel-extension'
1551+
| 'tel-local-prefix'
1552+
| 'tel-local-suffix'
1553+
| 'tel-local'
1554+
| 'tel-national'
1555+
| `${AutocompleteAddressGroup} tel`
1556+
| `${AutocompleteAddressGroup} tel-area-code`
1557+
| `${AutocompleteAddressGroup} tel-country-code`
1558+
| `${AutocompleteAddressGroup} tel-extension`
1559+
| `${AutocompleteAddressGroup} tel-local-prefix`
1560+
| `${AutocompleteAddressGroup} tel-local-suffix`
1561+
| `${AutocompleteAddressGroup} tel-local`
1562+
| `${AutocompleteAddressGroup} tel-national`;
15671563
type TextAutocompleteField = ExtractStrict<
15681564
AnyAutocompleteField,
15691565
| 'additional-name'
@@ -1591,11 +1587,11 @@ type TextAutocompleteField = ExtractStrict<
15911587
| 'street-address'
15921588
| 'transaction-currency'
15931589
| 'username'
1594-
| `${AutocompleteFieldCreditCardAlias}-name`
1595-
| `${AutocompleteFieldCreditCardAlias}-given-name`
1596-
| `${AutocompleteFieldCreditCardAlias}-additional-name`
1597-
| `${AutocompleteFieldCreditCardAlias}-family-name`
1598-
| `${AutocompleteFieldCreditCardAlias}-type`
1590+
| 'cc-name'
1591+
| 'cc-given-name'
1592+
| 'cc-additional-name'
1593+
| 'cc-family-name'
1594+
| 'cc-type'
15991595
>;
16001596
interface DividerProps$1 extends GlobalProps {
16011597
/**
@@ -1920,9 +1916,7 @@ interface NumberFieldProps$1
19201916
}
19211917
type NumberAutocompleteField = ExtractStrict<
19221918
AnyAutocompleteField,
1923-
| 'one-time-code'
1924-
| `${AutocompleteFieldCreditCardAlias}-number`
1925-
| `${AutocompleteFieldCreditCardAlias}-${AutocompleteFieldSecurityCodeAlias}`
1919+
'one-time-code' | 'cc-number' | 'cc-csc'
19261920
>;
19271921
interface OptionProps$1 extends GlobalProps, BaseOptionProps {
19281922
/**
@@ -1976,7 +1970,7 @@ type ParagraphType =
19761970
* Indicates the text is considered less important than the main content, but is still necessary for the reader to understand.
19771971
* It can be used for secondary content but also for disclaimers, terms and conditions, or legal information.
19781972
*
1979-
* Surfaces should apply a smaller font size than the default size for Paragraph.
1973+
* Surfaces should apply a smaller font size than the default size.
19801974
*
19811975
* In an HTML host, the text will be rendered in a `<small>` element.
19821976
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small
@@ -2017,7 +2011,7 @@ interface SelectProps$1
20172011
extends GlobalProps,
20182012
AutocompleteProps<AnyAutocompleteField>,
20192013
Pick<FieldDecorationProps, 'icon'>,
2020-
Exclude<FieldProps, 'defaultValue'>,
2014+
Omit<FieldProps, 'defaultValue'>,
20212015
FocusEventProps {
20222016
/**
20232017
* The options a user can select from.
@@ -2061,21 +2055,21 @@ interface StackProps$1 extends BaseBoxPropsWithRole, GapProps {
20612055
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content
20622056
* @default 'normal'
20632057
*/
2064-
justifyContent: JustifyContentKeyword;
2058+
justifyContent?: JustifyContentKeyword;
20652059
/**
20662060
* Aligns the Stack's children along the cross axis.
20672061
*
20682062
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-items
20692063
* @default 'normal'
20702064
*/
2071-
alignItems: AlignItemsKeyword;
2065+
alignItems?: AlignItemsKeyword;
20722066
/**
20732067
* Aligns the Stack along the cross axis.
20742068
*
20752069
* @see https://developer.mozilla.org/en-US/docs/Web/CSS/align-content
20762070
* @default 'normal'
20772071
*/
2078-
alignContent: AlignContentKeyword;
2072+
alignContent?: AlignContentKeyword;
20792073
}
20802074
interface PaginationProps {
20812075
/**
@@ -2190,6 +2184,9 @@ type TextType =
21902184
* Surfaces may apply styling to this type.
21912185
*
21922186
* In an HTML host, the text will be rendered in an `<address>` element.
2187+
*
2188+
* @implementation vertical alignment should be `baseline` (`vertical-align: baseline`)
2189+
*
21932190
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address
21942191
*/
21952192
| 'address'
@@ -2241,6 +2238,16 @@ type TextType =
22412238
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong
22422239
*/
22432240
| 'strong'
2241+
/**
2242+
* Indicates the text is considered less important than the main content, but is still necessary for the reader to understand.
2243+
* It can be used for secondary content but also for disclaimers, terms and conditions, or legal information.
2244+
*
2245+
* Surfaces should apply a smaller font size than the default size.
2246+
*
2247+
* In an HTML host, the text will be rendered in a `<small>` element.
2248+
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small
2249+
*/
2250+
| 'small'
22442251
/**
22452252
* No additional semantics or styling is applied.
22462253
*
@@ -3195,14 +3202,14 @@ export interface PreactOverlayControlProps
31953202
declare const Button_base: (abstract new (...args: any) => {
31963203
activateTarget: PreactOverlayControlProps['activateTarget'];
31973204
activateAction: PreactOverlayControlProps['activateAction'];
3198-
'__#44918@#queueRender': (() => void) | undefined;
3199-
'__#44918@#legacyStyleComponents': Map<string, preact.VNode<{}>>;
3205+
'__#44926@#queueRender': (() => void) | undefined;
3206+
'__#44926@#legacyStyleComponents': Map<string, preact.VNode<{}>>;
32003207
attributeChangedCallback(name: string): void;
32013208
connectedCallback(): void;
32023209
disconnectedCallback(): void;
32033210
adoptedCallback(): void;
32043211
queueRender(): void;
3205-
'__#44918@#checkElementPrototype'(): void;
3212+
'__#44926@#checkElementPrototype'(): void;
32063213
_addLegacyStyleComponent(style: string): void;
32073214
click({sourceEvent}?: ClickOptions): void;
32083215
accessKey: string;
@@ -3782,14 +3789,14 @@ export interface ClickableProps
37823789
declare const Clickable_base: (abstract new (...args: any) => {
37833790
activateTarget: PreactOverlayControlProps['activateTarget'];
37843791
activateAction: PreactOverlayControlProps['activateAction'];
3785-
'__#44918@#queueRender': (() => void) | undefined;
3786-
'__#44918@#legacyStyleComponents': Map<string, preact.VNode<{}>>;
3792+
'__#44926@#queueRender': (() => void) | undefined;
3793+
'__#44926@#legacyStyleComponents': Map<string, preact.VNode<{}>>;
37873794
attributeChangedCallback(name: string): void;
37883795
connectedCallback(): void;
37893796
disconnectedCallback(): void;
37903797
adoptedCallback(): void;
37913798
queueRender(): void;
3792-
'__#44918@#checkElementPrototype'(): void;
3799+
'__#44926@#checkElementPrototype'(): void;
37933800
_addLegacyStyleComponent(style: string): void;
37943801
click({sourceEvent}?: ClickOptions): void;
37953802
accessKey: string;
@@ -4417,14 +4424,14 @@ export interface LinkProps {
44174424
declare const Link_base: (abstract new (...args: any) => {
44184425
activateTarget: PreactOverlayControlProps['activateTarget'];
44194426
activateAction: PreactOverlayControlProps['activateAction'];
4420-
'__#44918@#queueRender': (() => void) | undefined;
4421-
'__#44918@#legacyStyleComponents': Map<string, preact.VNode<{}>>;
4427+
'__#44926@#queueRender': (() => void) | undefined;
4428+
'__#44926@#legacyStyleComponents': Map<string, preact.VNode<{}>>;
44224429
attributeChangedCallback(name: string): void;
44234430
connectedCallback(): void;
44244431
disconnectedCallback(): void;
44254432
adoptedCallback(): void;
44264433
queueRender(): void;
4427-
'__#44918@#checkElementPrototype'(): void;
4434+
'__#44926@#checkElementPrototype'(): void;
44284435
_addLegacyStyleComponent(style: string): void;
44294436
click({sourceEvent}?: ClickOptions): void;
44304437
accessKey: string;

0 commit comments

Comments
 (0)