polaris-vue-elements 0.3.0 → 0.4.1

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/CHANGELOG.md CHANGED
@@ -11,6 +11,37 @@ major your app loads (`polaris-1.js`, `polaris-2.js`, …).
11
11
 
12
12
  ## [Unreleased]
13
13
 
14
+ ## [0.4.1] - 2026-10-29
15
+
16
+ Still generated from `@shopify/polaris-types` 2.0.0.
17
+
18
+ ### Fixed
19
+
20
+ - A boolean prop written as a bare attribute (`<SChip removable />`, `<SButton disabled />`) is
21
+ now on. Vue passes such an attribute to a prop declared without a Boolean type as `''`, which
22
+ the wrapper treated as falsy, so the attribute never reached the element and only
23
+ `:removable="true"` worked.
24
+
25
+ ## [0.4.0] - 2026-10-27
26
+
27
+ Still generated from `@shopify/polaris-types` 2.0.0.
28
+
29
+ ### Added
30
+
31
+ - Opt-in types for raw `<s-*>` tags: add `"types": ["polaris-vue-elements/elements"]` to
32
+ `tsconfig.json` and Volar / vue-tsc type-check `<s-button variant="…">` in templates the
33
+ same way they check the `SButton` wrapper, by augmenting Vue's `GlobalComponents` for
34
+ every Polaris tag. Types only; `v-model` remains wrapper-only.
35
+
36
+ ### Fixed
37
+
38
+ - `click`, `focus`, `blur`, `input` and `change` listeners are typed with the events the
39
+ Polaris runtime actually fires (`MouseEvent`, `FocusEvent`, `Event`) instead of the
40
+ manifest's blanket `CustomEvent`. An ordinary `@click="(e: MouseEvent) => …"` handler
41
+ previously failed vue-tsc. **Breaking (types):** handlers annotated with `CustomEvent`,
42
+ or reading `event.detail` (always `undefined` at runtime for these events), no longer
43
+ type-check.
44
+
14
45
  ## [0.3.0] - 2026-10-27
15
46
 
16
47
  Generated from `@shopify/polaris-types` 2.0.0 (was 1.1.0). No props, slots or icons were
@@ -76,7 +107,9 @@ Initial release: typed Vue 3 wrappers for the 59 Shopify Polaris web components
76
107
  `showOverlay()` / `hideOverlay()` / `toggleOverlay()`).
77
108
  - ESM build with bundled type declarations; `vue` ^3.5 as a peer dependency.
78
109
 
79
- [Unreleased]: https://github.com/HQCuong/polaris-vue/compare/v0.3.0...HEAD
110
+ [Unreleased]: https://github.com/HQCuong/polaris-vue/compare/v0.4.1...HEAD
111
+ [0.4.1]: https://github.com/HQCuong/polaris-vue/compare/v0.4.0...v0.4.1
112
+ [0.4.0]: https://github.com/HQCuong/polaris-vue/compare/v0.3.0...v0.4.0
80
113
  [0.3.0]: https://github.com/HQCuong/polaris-vue/compare/v0.2.0...v0.3.0
81
114
  [0.2.0]: https://github.com/HQCuong/polaris-vue/compare/v0.1.0...v0.2.0
82
115
  [0.1.0]: https://github.com/HQCuong/polaris-vue/releases/tag/v0.1.0
package/README.md CHANGED
@@ -1,13 +1,13 @@
1
- # polaris-vue
1
+ # polaris-vue-elements
2
2
 
3
3
  Typed Vue 3 wrapper components for [Shopify Polaris web components](https://shopify.dev/docs/api/app-home/web-components) — the `s-*` custom elements used to build Shopify App Home (embedded admin) apps.
4
4
 
5
- **📖 Documentation: [polaris-vue.vict0r.net](https://polaris-vue.vict0r.net/)** — guides, known quirks, and live examples for all 59 components.
5
+ **📖 Documentation: [polaris-vue.vict0r.net](https://polaris-vue.vict0r.net/)** — guides, known quirks, and live examples for all 62 components.
6
6
 
7
7
  The Polaris runtime itself is loaded from Shopify's CDN (the `polaris-2.js` stable channel receives compatible updates automatically). This library gives you an idiomatic, fully typed Vue surface on top of it:
8
8
 
9
- - **Typed props & events for all 59 components**, generated from Shopify's official Custom Elements Manifest (`@shopify/polaris-types`) — union-typed props like `variant`, autocomplete in templates, typed `@click`/`@aftershow` listeners.
10
- - **`v-model` on 18 form components** (`STextField`, `SCheckbox`, `SSelect`, `SChoiceList`, …) with the correct property/event pair for each.
9
+ - **Typed props & events for all 62 components**, generated from Shopify's official Custom Elements Manifest (`@shopify/polaris-types`) — union-typed props like `variant`, autocomplete in templates, typed `@click`/`@aftershow` listeners.
10
+ - **`v-model` on 17 form components** (`STextField`, `SCheckbox`, `SSelect`, `SChoiceList`, …) with the correct property/event pair for each.
11
11
  - **Imperative overlay control** — `SModal` exposes a typed `$el` (`ModalElement`) so `modal.value?.$el.showOverlay()` type-checks, alongside Polaris's declarative `commandFor`/`command` pattern.
12
12
  - **Degrades gracefully, never blocks** — unknown props pass through via `$attrs`, user-provided slots are forwarded verbatim, and brand-new Polaris components can always be used as raw `s-*` tags. A stale wrapper means missing types for new features, never broken existing ones.
13
13
 
@@ -57,7 +57,9 @@ const name = ref('')
57
57
  </template>
58
58
  ```
59
59
 
60
- Full documentation — guides, known quirks, and generated reference pages with live examples for all 59 components — is at **[polaris-vue.vict0r.net](https://polaris-vue.vict0r.net/)** (source in `docs/`, `npm run docs:dev` to run locally).
60
+ Prefer writing Polaris's own `<s-button>` tags? Add `"types": ["polaris-vue-elements/elements"]` to your `tsconfig.json` and Volar / `vue-tsc` type-check raw `<s-*>` tags too (types only; `v-model` stays wrapper-only). See [Typing raw `<s-*>` tags](https://polaris-vue.vict0r.net/guide/getting-started#_7-typing-raw-s-tags-optional).
61
+
62
+ Full documentation — guides, known quirks, and generated reference pages with live examples for all 62 components — is at **[polaris-vue.vict0r.net](https://polaris-vue.vict0r.net/)** (source in `docs/`, `npm run docs:dev` to run locally).
61
63
 
62
64
  ## Architecture
63
65
 
@@ -68,7 +70,7 @@ Everything derivable from Shopify's manifest is machine-generated; human judgmen
68
70
  │ npm run generate
69
71
  ▼
70
72
  src/lib/generated/ ← metadata, Props/Events/Element types, components (DO NOT EDIT)
71
- src/lib/runtime/ ← createWrapper: one generic factory for all 59 components
73
+ src/lib/runtime/ ← createWrapper: one generic factory for all 62 components
72
74
  src/lib/overrides.ts ← hand-written: v-model mappings only
73
75
  ```
74
76
 
@@ -99,11 +101,7 @@ npm run build:lib # build the publishable package into dist/
99
101
 
100
102
  ## Contributing
101
103
 
102
- 1. **Never edit `src/lib/generated/` or `docs/components/` by hand** — they are overwritten by the generators. Change `scripts/generate.mjs` / `scripts/generate-docs.mjs` instead.
103
- 2. **New form component needs v-model?** Add one line to `src/lib/overrides.ts` (the `overrides.spec.ts` drift guard will point at exactly what's missing).
104
- 3. **Curated docs example?** Add `docs/examples/<tag>.md` (complex live demos go in `docs/examples/demos/*.vue` — SFCs are immune to markdown-it mangling); the docs generator inlines it automatically.
105
- 4. Before opening a PR, make sure the full suite passes: `npm run generate && npm run docs:generate && npx vitest run && npm run type-check && npx oxlint . && npx eslint .` — CI runs the same checks plus a codegen-freshness diff.
106
- 5. Behavioral claims about Polaris components (slot rules, rendering quirks) should be verified against the real CDN runtime in a browser, not just jsdom — see `docs/guide/quirks.md` for previously verified findings.
104
+ See [CONTRIBUTING.md](./CONTRIBUTING.md) for setup, ground rules and the pre-PR checklist.
107
105
 
108
106
  ## Releasing
109
107
 
@@ -0,0 +1,71 @@
1
+ import type { PolarisElementTag } from '../runtime/createWrapper';
2
+ import type { AvatarProps, AvatarEvents, BadgeProps, BadgeEvents, BannerProps, BannerEvents, BoxProps, BoxEvents, ButtonProps, ButtonEvents, ButtonGroupProps, ButtonGroupEvents, CheckboxProps, CheckboxEvents, ChipProps, ChipEvents, ChoiceProps, ChoiceEvents, ChoiceListProps, ChoiceListEvents, ClickableProps, ClickableEvents, ClickableChipProps, ClickableChipEvents, ColorFieldProps, ColorFieldEvents, ColorPickerProps, ColorPickerEvents, DateFieldProps, DateFieldEvents, DatePickerProps, DatePickerEvents, DividerProps, DividerEvents, DropZoneProps, DropZoneEvents, EmailFieldProps, EmailFieldEvents, EmptyStateProps, EmptyStateEvents, GridProps, GridEvents, GridItemProps, GridItemEvents, HeadingProps, HeadingEvents, IconProps, IconEvents, ImageProps, ImageEvents, LinkProps, LinkEvents, ListItemProps, ListItemEvents, MenuProps, MenuEvents, ModalProps, ModalEvents, ModalElement, MoneyFieldProps, MoneyFieldEvents, NumberProps, NumberEvents, NumberFieldProps, NumberFieldEvents, OptionProps, OptionEvents, OptionGroupProps, OptionGroupEvents, OrderedListProps, OrderedListEvents, PageProps, PageEvents, ParagraphProps, ParagraphEvents, PasswordFieldProps, PasswordFieldEvents, PopoverProps, PopoverEvents, PressButtonProps, PressButtonEvents, ProgressProps, ProgressEvents, QueryContainerProps, QueryContainerEvents, ScrollBoxProps, ScrollBoxEvents, SearchFieldProps, SearchFieldEvents, SectionProps, SectionEvents, SelectProps, SelectEvents, SpinnerProps, SpinnerEvents, StackProps, StackEvents, SwitchProps, SwitchEvents, TableProps, TableEvents, TableBodyProps, TableBodyEvents, TableCellProps, TableCellEvents, TableHeaderProps, TableHeaderEvents, TableHeaderRowProps, TableHeaderRowEvents, TableRowProps, TableRowEvents, TextProps, TextEvents, TextAreaProps, TextAreaEvents, TextFieldProps, TextFieldEvents, ThumbnailProps, ThumbnailEvents, TooltipProps, TooltipEvents, UnorderedListProps, UnorderedListEvents, UrlFieldProps, UrlFieldEvents } from './types';
3
+ declare module 'vue' {
4
+ interface GlobalComponents {
5
+ "s-avatar": PolarisElementTag<AvatarProps, AvatarEvents>;
6
+ "s-badge": PolarisElementTag<BadgeProps, BadgeEvents>;
7
+ "s-banner": PolarisElementTag<BannerProps, BannerEvents>;
8
+ "s-box": PolarisElementTag<BoxProps, BoxEvents>;
9
+ "s-button": PolarisElementTag<ButtonProps, ButtonEvents>;
10
+ "s-button-group": PolarisElementTag<ButtonGroupProps, ButtonGroupEvents>;
11
+ "s-checkbox": PolarisElementTag<CheckboxProps, CheckboxEvents>;
12
+ "s-chip": PolarisElementTag<ChipProps, ChipEvents>;
13
+ "s-choice": PolarisElementTag<ChoiceProps, ChoiceEvents>;
14
+ "s-choice-list": PolarisElementTag<ChoiceListProps, ChoiceListEvents>;
15
+ "s-clickable": PolarisElementTag<ClickableProps, ClickableEvents>;
16
+ "s-clickable-chip": PolarisElementTag<ClickableChipProps, ClickableChipEvents>;
17
+ "s-color-field": PolarisElementTag<ColorFieldProps, ColorFieldEvents>;
18
+ "s-color-picker": PolarisElementTag<ColorPickerProps, ColorPickerEvents>;
19
+ "s-date-field": PolarisElementTag<DateFieldProps, DateFieldEvents>;
20
+ "s-date-picker": PolarisElementTag<DatePickerProps, DatePickerEvents>;
21
+ "s-divider": PolarisElementTag<DividerProps, DividerEvents>;
22
+ "s-drop-zone": PolarisElementTag<DropZoneProps, DropZoneEvents>;
23
+ "s-email-field": PolarisElementTag<EmailFieldProps, EmailFieldEvents>;
24
+ "s-empty-state": PolarisElementTag<EmptyStateProps, EmptyStateEvents>;
25
+ "s-grid": PolarisElementTag<GridProps, GridEvents>;
26
+ "s-grid-item": PolarisElementTag<GridItemProps, GridItemEvents>;
27
+ "s-heading": PolarisElementTag<HeadingProps, HeadingEvents>;
28
+ "s-icon": PolarisElementTag<IconProps, IconEvents>;
29
+ "s-image": PolarisElementTag<ImageProps, ImageEvents>;
30
+ "s-link": PolarisElementTag<LinkProps, LinkEvents>;
31
+ "s-list-item": PolarisElementTag<ListItemProps, ListItemEvents>;
32
+ "s-menu": PolarisElementTag<MenuProps, MenuEvents>;
33
+ "s-modal": PolarisElementTag<ModalProps, ModalEvents, ModalElement>;
34
+ "s-money-field": PolarisElementTag<MoneyFieldProps, MoneyFieldEvents>;
35
+ "s-number": PolarisElementTag<NumberProps, NumberEvents>;
36
+ "s-number-field": PolarisElementTag<NumberFieldProps, NumberFieldEvents>;
37
+ "s-option": PolarisElementTag<OptionProps, OptionEvents>;
38
+ "s-option-group": PolarisElementTag<OptionGroupProps, OptionGroupEvents>;
39
+ "s-ordered-list": PolarisElementTag<OrderedListProps, OrderedListEvents>;
40
+ "s-page": PolarisElementTag<PageProps, PageEvents>;
41
+ "s-paragraph": PolarisElementTag<ParagraphProps, ParagraphEvents>;
42
+ "s-password-field": PolarisElementTag<PasswordFieldProps, PasswordFieldEvents>;
43
+ "s-popover": PolarisElementTag<PopoverProps, PopoverEvents>;
44
+ "s-press-button": PolarisElementTag<PressButtonProps, PressButtonEvents>;
45
+ "s-progress": PolarisElementTag<ProgressProps, ProgressEvents>;
46
+ "s-query-container": PolarisElementTag<QueryContainerProps, QueryContainerEvents>;
47
+ "s-scroll-box": PolarisElementTag<ScrollBoxProps, ScrollBoxEvents>;
48
+ "s-search-field": PolarisElementTag<SearchFieldProps, SearchFieldEvents>;
49
+ "s-section": PolarisElementTag<SectionProps, SectionEvents>;
50
+ "s-select": PolarisElementTag<SelectProps, SelectEvents>;
51
+ "s-spinner": PolarisElementTag<SpinnerProps, SpinnerEvents>;
52
+ "s-stack": PolarisElementTag<StackProps, StackEvents>;
53
+ "s-switch": PolarisElementTag<SwitchProps, SwitchEvents>;
54
+ "s-table": PolarisElementTag<TableProps, TableEvents>;
55
+ "s-table-body": PolarisElementTag<TableBodyProps, TableBodyEvents>;
56
+ "s-table-cell": PolarisElementTag<TableCellProps, TableCellEvents>;
57
+ "s-table-header": PolarisElementTag<TableHeaderProps, TableHeaderEvents>;
58
+ "s-table-header-row": PolarisElementTag<TableHeaderRowProps, TableHeaderRowEvents>;
59
+ "s-table-row": PolarisElementTag<TableRowProps, TableRowEvents>;
60
+ "s-text": PolarisElementTag<TextProps, TextEvents>;
61
+ "s-text-area": PolarisElementTag<TextAreaProps, TextAreaEvents>;
62
+ "s-text-field": PolarisElementTag<TextFieldProps, TextFieldEvents>;
63
+ "s-thumbnail": PolarisElementTag<ThumbnailProps, ThumbnailEvents>;
64
+ "s-tooltip": PolarisElementTag<TooltipProps, TooltipEvents>;
65
+ "s-unordered-list": PolarisElementTag<UnorderedListProps, UnorderedListEvents>;
66
+ "s-url-field": PolarisElementTag<UrlFieldProps, UrlFieldEvents>;
67
+ }
68
+ }
69
+ /** Every Polaris tag this augmentation types. */
70
+ export type PolarisElementTagName = "s-avatar" | "s-badge" | "s-banner" | "s-box" | "s-button" | "s-button-group" | "s-checkbox" | "s-chip" | "s-choice" | "s-choice-list" | "s-clickable" | "s-clickable-chip" | "s-color-field" | "s-color-picker" | "s-date-field" | "s-date-picker" | "s-divider" | "s-drop-zone" | "s-email-field" | "s-empty-state" | "s-grid" | "s-grid-item" | "s-heading" | "s-icon" | "s-image" | "s-link" | "s-list-item" | "s-menu" | "s-modal" | "s-money-field" | "s-number" | "s-number-field" | "s-option" | "s-option-group" | "s-ordered-list" | "s-page" | "s-paragraph" | "s-password-field" | "s-popover" | "s-press-button" | "s-progress" | "s-query-container" | "s-scroll-box" | "s-search-field" | "s-section" | "s-select" | "s-spinner" | "s-stack" | "s-switch" | "s-table" | "s-table-body" | "s-table-cell" | "s-table-header" | "s-table-header-row" | "s-table-row" | "s-text" | "s-text-area" | "s-text-field" | "s-thumbnail" | "s-tooltip" | "s-unordered-list" | "s-url-field";
71
+ //# sourceMappingURL=elements.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elements.d.ts","sourceRoot":"","sources":["../../src/lib/generated/elements.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,gBAAgB,EAAE,eAAe,EAAE,gBAAgB,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,UAAU,EAAE,U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a,EAAE,iBAAiB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAA;KAChE;CACF;AAED,iDAAiD;AACjD,MAAM,MAAM,qBAAqB,GAC7B,UAAU,GACV,SAAS,GACT,UAAU,GACV,OAAO,GACP,UAAU,GACV,gBAAgB,GAChB,YAAY,GACZ,QAAQ,GACR,UAAU,GACV,eAAe,GACf,aAAa,GACb,kBAAkB,GAClB,eAAe,GACf,gBAAgB,GAChB,cAAc,GACd,eAAe,GACf,WAAW,GACX,aAAa,GACb,eAAe,GACf,eAAe,GACf,QAAQ,GACR,aAAa,GACb,WAAW,GACX,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,aAAa,GACb,QAAQ,GACR,SAAS,GACT,eAAe,GACf,UAAU,GACV,gBAAgB,GAChB,UAAU,GACV,gBAAgB,GAChB,gBAAgB,GAChB,QAAQ,GACR,aAAa,GACb,kBAAkB,GAClB,WAAW,GACX,gBAAgB,GAChB,YAAY,GACZ,mBAAmB,GACnB,cAAc,GACd,gBAAgB,GAChB,WAAW,GACX,UAAU,GACV,WAAW,GACX,SAAS,GACT,UAAU,GACV,SAAS,GACT,cAAc,GACd,cAAc,GACd,gBAAgB,GAChB,oBAAoB,GACpB,aAAa,GACb,QAAQ,GACR,aAAa,GACb,cAAc,GACd,aAAa,GACb,WAAW,GACX,kBAAkB,GAClB,aAAa,CAAA"}
@@ -77,9 +77,9 @@ export interface ButtonProps {
77
77
  variant?: "auto" | "primary" | "secondary" | "tertiary";
78
78
  }
79
79
  export interface ButtonEvents {
80
- blur: CustomEvent;
81
- click: CustomEvent;
82
- focus: CustomEvent;
80
+ blur: FocusEvent;
81
+ click: MouseEvent;
82
+ focus: FocusEvent;
83
83
  }
84
84
  export interface ButtonGroupProps {
85
85
  accessibilityLabel?: string;
@@ -105,9 +105,9 @@ export interface CheckboxProps {
105
105
  value?: string;
106
106
  }
107
107
  export interface CheckboxEvents {
108
- blur: CustomEvent;
109
- change: CustomEvent;
110
- input: CustomEvent;
108
+ blur: FocusEvent;
109
+ change: Event;
110
+ input: Event;
111
111
  }
112
112
  export interface ChipProps {
113
113
  accessibilityLabel?: string;
@@ -139,8 +139,8 @@ export interface ChoiceListProps {
139
139
  values?: string[];
140
140
  }
141
141
  export interface ChoiceListEvents {
142
- change: CustomEvent;
143
- input: CustomEvent;
142
+ change: Event;
143
+ input: Event;
144
144
  }
145
145
  export interface ClickableProps {
146
146
  accessibilityLabel?: string;
@@ -186,9 +186,9 @@ export interface ClickableProps {
186
186
  type?: "button" | "reset" | "submit";
187
187
  }
188
188
  export interface ClickableEvents {
189
- blur: CustomEvent;
190
- click: CustomEvent;
191
- focus: CustomEvent;
189
+ blur: FocusEvent;
190
+ click: MouseEvent;
191
+ focus: FocusEvent;
192
192
  }
193
193
  export interface ClickableChipProps {
194
194
  accessibilityLabel?: string;
@@ -203,7 +203,7 @@ export interface ClickableChipProps {
203
203
  }
204
204
  export interface ClickableChipEvents {
205
205
  afterhide: CustomEvent;
206
- click: CustomEvent;
206
+ click: MouseEvent;
207
207
  remove: CustomEvent;
208
208
  }
209
209
  export interface ColorFieldProps {
@@ -226,10 +226,10 @@ export interface ColorFieldProps {
226
226
  value?: string;
227
227
  }
228
228
  export interface ColorFieldEvents {
229
- blur: CustomEvent;
230
- change: CustomEvent;
231
- focus: CustomEvent;
232
- input: CustomEvent;
229
+ blur: FocusEvent;
230
+ change: Event;
231
+ focus: FocusEvent;
232
+ input: Event;
233
233
  }
234
234
  export interface ColorPickerProps {
235
235
  alpha?: boolean;
@@ -239,8 +239,8 @@ export interface ColorPickerProps {
239
239
  value?: string;
240
240
  }
241
241
  export interface ColorPickerEvents {
242
- change: CustomEvent;
243
- input: CustomEvent;
242
+ change: Event;
243
+ input: Event;
244
244
  }
245
245
  export interface DateFieldProps {
246
246
  allow?: string;
@@ -267,10 +267,10 @@ export interface DateFieldProps {
267
267
  view?: string;
268
268
  }
269
269
  export interface DateFieldEvents {
270
- blur: CustomEvent;
271
- change: CustomEvent;
272
- focus: CustomEvent;
273
- input: CustomEvent;
270
+ blur: Event;
271
+ change: Event;
272
+ focus: Event;
273
+ input: Event;
274
274
  invalid: CustomEvent;
275
275
  viewchange: CustomEvent;
276
276
  }
@@ -288,10 +288,10 @@ export interface DatePickerProps {
288
288
  visibleMonths?: "auto" | "1" | "2";
289
289
  }
290
290
  export interface DatePickerEvents {
291
- blur: CustomEvent;
292
- change: CustomEvent;
293
- focus: CustomEvent;
294
- input: CustomEvent;
291
+ blur: FocusEvent;
292
+ change: Event;
293
+ focus: FocusEvent;
294
+ input: Event;
295
295
  viewchange: CustomEvent;
296
296
  }
297
297
  export interface DividerProps {
@@ -316,9 +316,9 @@ export interface DropZoneProps {
316
316
  value?: string;
317
317
  }
318
318
  export interface DropZoneEvents {
319
- change: CustomEvent;
319
+ change: Event;
320
320
  droprejected: CustomEvent;
321
- input: CustomEvent;
321
+ input: Event;
322
322
  }
323
323
  export interface EmailFieldProps {
324
324
  autocomplete?: "email" | "home email" | "mobile email" | "fax email" | "pager email" | "on" | "off" | "shipping email" | "shipping home email" | "shipping mobile email" | "shipping fax email" | "shipping pager email" | "billing email" | "billing home email" | "billing mobile email" | "billing fax email" | "billing pager email";
@@ -341,10 +341,10 @@ export interface EmailFieldProps {
341
341
  value?: string;
342
342
  }
343
343
  export interface EmailFieldEvents {
344
- blur: CustomEvent;
345
- change: CustomEvent;
346
- focus: CustomEvent;
347
- input: CustomEvent;
344
+ blur: FocusEvent;
345
+ change: Event;
346
+ focus: FocusEvent;
347
+ input: Event;
348
348
  }
349
349
  export interface EmptyStateProps {
350
350
  heading?: string;
@@ -486,7 +486,7 @@ export interface LinkProps {
486
486
  tone?: "auto" | "neutral" | "critical";
487
487
  }
488
488
  export interface LinkEvents {
489
- click: CustomEvent;
489
+ click: MouseEvent;
490
490
  }
491
491
  export interface ListItemProps {
492
492
  /** original manifest type: any */
@@ -538,10 +538,10 @@ export interface MoneyFieldProps {
538
538
  value?: string;
539
539
  }
540
540
  export interface MoneyFieldEvents {
541
- blur: CustomEvent;
542
- change: CustomEvent;
543
- focus: CustomEvent;
544
- input: CustomEvent;
541
+ blur: FocusEvent;
542
+ change: Event;
543
+ focus: FocusEvent;
544
+ input: Event;
545
545
  }
546
546
  export interface NumberProps {
547
547
  accessibilityVisibility?: "visible" | "hidden" | "exclusive";
@@ -577,10 +577,10 @@ export interface NumberFieldProps {
577
577
  value?: string;
578
578
  }
579
579
  export interface NumberFieldEvents {
580
- blur: CustomEvent;
581
- change: CustomEvent;
582
- focus: CustomEvent;
583
- input: CustomEvent;
580
+ blur: FocusEvent;
581
+ change: Event;
582
+ focus: FocusEvent;
583
+ input: Event;
584
584
  }
585
585
  export interface OptionProps {
586
586
  defaultSelected?: boolean;
@@ -637,10 +637,10 @@ export interface PasswordFieldProps {
637
637
  value?: string;
638
638
  }
639
639
  export interface PasswordFieldEvents {
640
- blur: CustomEvent;
641
- change: CustomEvent;
642
- focus: CustomEvent;
643
- input: CustomEvent;
640
+ blur: FocusEvent;
641
+ change: Event;
642
+ focus: FocusEvent;
643
+ input: Event;
644
644
  }
645
645
  export interface PopoverProps {
646
646
  blockSize?: "auto" | "0";
@@ -671,9 +671,9 @@ export interface PressButtonProps {
671
671
  variant?: "secondary" | "tertiary";
672
672
  }
673
673
  export interface PressButtonEvents {
674
- blur: CustomEvent;
675
- click: CustomEvent;
676
- focus: CustomEvent;
674
+ blur: FocusEvent;
675
+ click: MouseEvent;
676
+ focus: FocusEvent;
677
677
  }
678
678
  export interface ProgressProps {
679
679
  accessibilityLabel?: string;
@@ -748,10 +748,10 @@ export interface SearchFieldProps {
748
748
  value?: string;
749
749
  }
750
750
  export interface SearchFieldEvents {
751
- blur: CustomEvent;
752
- change: CustomEvent;
753
- focus: CustomEvent;
754
- input: CustomEvent;
751
+ blur: FocusEvent;
752
+ change: Event;
753
+ focus: FocusEvent;
754
+ input: Event;
755
755
  }
756
756
  export interface SectionProps {
757
757
  accessibilityLabel?: string;
@@ -777,10 +777,10 @@ export interface SelectProps {
777
777
  value?: string;
778
778
  }
779
779
  export interface SelectEvents {
780
- blur: CustomEvent;
781
- change: CustomEvent;
782
- focus: CustomEvent;
783
- input: CustomEvent;
780
+ blur: FocusEvent;
781
+ change: Event;
782
+ focus: FocusEvent;
783
+ input: Event;
784
784
  }
785
785
  export interface SpinnerProps {
786
786
  accessibilityLabel?: string;
@@ -846,9 +846,9 @@ export interface SwitchProps {
846
846
  value?: string;
847
847
  }
848
848
  export interface SwitchEvents {
849
- blur: CustomEvent;
850
- change: CustomEvent;
851
- input: CustomEvent;
849
+ blur: FocusEvent;
850
+ change: Event;
851
+ input: Event;
852
852
  }
853
853
  export interface TableProps {
854
854
  hasNextPage?: boolean;
@@ -924,10 +924,10 @@ export interface TextAreaProps {
924
924
  value?: string;
925
925
  }
926
926
  export interface TextAreaEvents {
927
- blur: CustomEvent;
928
- change: CustomEvent;
929
- focus: CustomEvent;
930
- input: CustomEvent;
927
+ blur: FocusEvent;
928
+ change: Event;
929
+ focus: FocusEvent;
930
+ input: Event;
931
931
  }
932
932
  export interface TextFieldProps {
933
933
  autocomplete?: "language" | "organization" | "name" | "additional-name" | "address-level1" | "address-level2" | "address-level3" | "address-level4" | "address-line1" | "address-line2" | "address-line3" | "country-name" | "country" | "family-name" | "given-name" | "honorific-prefix" | "honorific-suffix" | "nickname" | "one-time-code" | "organization-title" | "postal-code" | "sex" | "street-address" | "transaction-currency" | "username" | "cc-additional-name" | "cc-family-name" | "cc-given-name" | "cc-name" | "cc-type" | "on" | "off" | "shipping language" | "shipping organization" | "shipping name" | "shipping additional-name" | "shipping address-level1" | "shipping address-level2" | "shipping address-level3" | "shipping address-level4" | "shipping address-line1" | "shipping address-line2" | "shipping address-line3" | "shipping country-name" | "shipping country" | "shipping family-name" | "shipping given-name" | "shipping honorific-prefix" | "shipping honorific-suffix" | "shipping nickname" | "shipping one-time-code" | "shipping organization-title" | "shipping postal-code" | "shipping sex" | "shipping street-address" | "shipping transaction-currency" | "shipping username" | "shipping cc-additional-name" | "shipping cc-family-name" | "shipping cc-given-name" | "shipping cc-name" | "shipping cc-type" | "billing language" | "billing organization" | "billing name" | "billing additional-name" | "billing address-level1" | "billing address-level2" | "billing address-level3" | "billing address-level4" | "billing address-line1" | "billing address-line2" | "billing address-line3" | "billing country-name" | "billing country" | "billing family-name" | "billing given-name" | "billing honorific-prefix" | "billing honorific-suffix" | "billing nickname" | "billing one-time-code" | "billing organization-title" | "billing postal-code" | "billing sex" | "billing street-address" | "billing transaction-currency" | "billing username" | "billing cc-additional-name" | "billing cc-family-name" | "billing cc-given-name" | "billing cc-name" | "billing cc-type";
@@ -953,10 +953,10 @@ export interface TextFieldProps {
953
953
  value?: string;
954
954
  }
955
955
  export interface TextFieldEvents {
956
- blur: CustomEvent;
957
- change: CustomEvent;
958
- focus: CustomEvent;
959
- input: CustomEvent;
956
+ blur: FocusEvent;
957
+ change: Event;
958
+ focus: FocusEvent;
959
+ input: Event;
960
960
  }
961
961
  export interface ThumbnailProps {
962
962
  alt?: string;
@@ -999,9 +999,9 @@ export interface UrlFieldProps {
999
999
  value?: string;
1000
1000
  }
1001
1001
  export interface UrlFieldEvents {
1002
- blur: CustomEvent;
1003
- change: CustomEvent;
1004
- focus: CustomEvent;
1005
- input: CustomEvent;
1002
+ blur: FocusEvent;
1003
+ change: Event;
1004
+ focus: FocusEvent;
1005
+ input: Event;
1006
1006
  }
1007
1007
  //# sourceMappingURL=types.d.ts.map