@vaadin/react-components 24.7.0-alpha5 → 24.7.0-alpha6

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.
@@ -316,19 +316,19 @@
316
316
 
317
317
  /* === Responsive design === */
318
318
  @media (min-width: 640px) {
319
- .sm\\items-baseline {
319
+ .sm\\:items-baseline {
320
320
  align-items: baseline;
321
321
  }
322
- .sm\\items-center {
322
+ .sm\\:items-center {
323
323
  align-items: center;
324
324
  }
325
- .sm\\items-end {
325
+ .sm\\:items-end {
326
326
  align-items: flex-end;
327
327
  }
328
- .sm\\items-start {
328
+ .sm\\:items-start {
329
329
  align-items: flex-start;
330
330
  }
331
- .sm\\items-stretch {
331
+ .sm\\:items-stretch {
332
332
  align-items: stretch;
333
333
  }
334
334
  .sm\\:flex-col {
@@ -376,19 +376,19 @@
376
376
  }
377
377
 
378
378
  @media (min-width: 768px) {
379
- .md\\items-baseline {
379
+ .md\\:items-baseline {
380
380
  align-items: baseline;
381
381
  }
382
- .md\\items-center {
382
+ .md\\:items-center {
383
383
  align-items: center;
384
384
  }
385
- .md\\items-end {
385
+ .md\\:items-end {
386
386
  align-items: flex-end;
387
387
  }
388
- .md\\items-start {
388
+ .md\\:items-start {
389
389
  align-items: flex-start;
390
390
  }
391
- .md\\items-stretch {
391
+ .md\\:items-stretch {
392
392
  align-items: stretch;
393
393
  }
394
394
  .md\\:flex-col {
@@ -435,19 +435,19 @@
435
435
  }
436
436
  }
437
437
  @media (min-width: 1024px) {
438
- .lg\\items-baseline {
438
+ .lg\\:items-baseline {
439
439
  align-items: baseline;
440
440
  }
441
- .lg\\items-center {
441
+ .lg\\:items-center {
442
442
  align-items: center;
443
443
  }
444
- .lg\\items-end {
444
+ .lg\\:items-end {
445
445
  align-items: flex-end;
446
446
  }
447
- .lg\\items-start {
447
+ .lg\\:items-start {
448
448
  align-items: flex-start;
449
449
  }
450
- .lg\\items-stretch {
450
+ .lg\\:items-stretch {
451
451
  align-items: stretch;
452
452
  }
453
453
  .lg\\:flex-col {
@@ -494,19 +494,19 @@
494
494
  }
495
495
  }
496
496
  @media (min-width: 1280px) {
497
- .xl\\items-baseline {
497
+ .xl\\:items-baseline {
498
498
  align-items: baseline;
499
499
  }
500
- .xl\\items-center {
500
+ .xl\\:items-center {
501
501
  align-items: center;
502
502
  }
503
- .xl\\items-end {
503
+ .xl\\:items-end {
504
504
  align-items: flex-end;
505
505
  }
506
- .xl\\items-start {
506
+ .xl\\:items-start {
507
507
  align-items: flex-start;
508
508
  }
509
- .xl\\items-stretch {
509
+ .xl\\:items-stretch {
510
510
  align-items: stretch;
511
511
  }
512
512
  .xl\\:flex-col {
@@ -553,19 +553,19 @@
553
553
  }
554
554
  }
555
555
  @media (min-width: 1536px) {
556
- .\\32xl\\items-baseline {
556
+ .\\32xl\\:items-baseline {
557
557
  align-items: baseline;
558
558
  }
559
- .\\32xl\\items-center {
559
+ .\\32xl\\:items-center {
560
560
  align-items: center;
561
561
  }
562
- .\\32xl\\items-end {
562
+ .\\32xl\\:items-end {
563
563
  align-items: flex-end;
564
564
  }
565
- .\\32xl\\items-start {
565
+ .\\32xl\\:items-start {
566
566
  align-items: flex-start;
567
567
  }
568
- .\\32xl\\items-stretch {
568
+ .\\32xl\\:items-stretch {
569
569
  align-items: stretch;
570
570
  }
571
571
  .\\32xl\\:flex-col {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/react-components",
3
- "version": "24.7.0-alpha5",
3
+ "version": "24.7.0-alpha6",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -27,65 +27,65 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@lit/react": "^1.0.7",
30
- "@vaadin/a11y-base": "24.7.0-alpha5",
31
- "@vaadin/accordion": "24.7.0-alpha5",
32
- "@vaadin/app-layout": "24.7.0-alpha5",
33
- "@vaadin/avatar": "24.7.0-alpha5",
34
- "@vaadin/avatar-group": "24.7.0-alpha5",
35
- "@vaadin/button": "24.7.0-alpha5",
36
- "@vaadin/card": "24.7.0-alpha5",
37
- "@vaadin/checkbox": "24.7.0-alpha5",
38
- "@vaadin/checkbox-group": "24.7.0-alpha5",
39
- "@vaadin/combo-box": "24.7.0-alpha5",
40
- "@vaadin/component-base": "24.7.0-alpha5",
41
- "@vaadin/confirm-dialog": "24.7.0-alpha5",
42
- "@vaadin/context-menu": "24.7.0-alpha5",
43
- "@vaadin/custom-field": "24.7.0-alpha5",
44
- "@vaadin/date-picker": "24.7.0-alpha5",
45
- "@vaadin/date-time-picker": "24.7.0-alpha5",
46
- "@vaadin/details": "24.7.0-alpha5",
47
- "@vaadin/dialog": "24.7.0-alpha5",
48
- "@vaadin/email-field": "24.7.0-alpha5",
49
- "@vaadin/field-base": "24.7.0-alpha5",
50
- "@vaadin/field-highlighter": "24.7.0-alpha5",
51
- "@vaadin/form-layout": "24.7.0-alpha5",
52
- "@vaadin/grid": "24.7.0-alpha5",
53
- "@vaadin/horizontal-layout": "24.7.0-alpha5",
54
- "@vaadin/icon": "24.7.0-alpha5",
55
- "@vaadin/icons": "24.7.0-alpha5",
56
- "@vaadin/input-container": "24.7.0-alpha5",
57
- "@vaadin/integer-field": "24.7.0-alpha5",
58
- "@vaadin/item": "24.7.0-alpha5",
59
- "@vaadin/list-box": "24.7.0-alpha5",
60
- "@vaadin/lit-renderer": "24.7.0-alpha5",
61
- "@vaadin/login": "24.7.0-alpha5",
62
- "@vaadin/menu-bar": "24.7.0-alpha5",
63
- "@vaadin/message-input": "24.7.0-alpha5",
64
- "@vaadin/message-list": "24.7.0-alpha5",
65
- "@vaadin/multi-select-combo-box": "24.7.0-alpha5",
66
- "@vaadin/notification": "24.7.0-alpha5",
67
- "@vaadin/number-field": "24.7.0-alpha5",
68
- "@vaadin/overlay": "24.7.0-alpha5",
69
- "@vaadin/password-field": "24.7.0-alpha5",
70
- "@vaadin/popover": "24.7.0-alpha5",
71
- "@vaadin/progress-bar": "24.7.0-alpha5",
72
- "@vaadin/radio-group": "24.7.0-alpha5",
73
- "@vaadin/scroller": "24.7.0-alpha5",
74
- "@vaadin/select": "24.7.0-alpha5",
75
- "@vaadin/side-nav": "24.7.0-alpha5",
76
- "@vaadin/split-layout": "24.7.0-alpha5",
77
- "@vaadin/tabs": "24.7.0-alpha5",
78
- "@vaadin/tabsheet": "24.7.0-alpha5",
79
- "@vaadin/text-area": "24.7.0-alpha5",
80
- "@vaadin/text-field": "24.7.0-alpha5",
81
- "@vaadin/time-picker": "24.7.0-alpha5",
82
- "@vaadin/tooltip": "24.7.0-alpha5",
83
- "@vaadin/upload": "24.7.0-alpha5",
84
- "@vaadin/vaadin-lumo-styles": "24.7.0-alpha5",
85
- "@vaadin/vaadin-material-styles": "24.7.0-alpha5",
86
- "@vaadin/vaadin-themable-mixin": "24.7.0-alpha5",
87
- "@vaadin/vertical-layout": "24.7.0-alpha5",
88
- "@vaadin/virtual-list": "24.7.0-alpha5"
30
+ "@vaadin/a11y-base": "24.7.0-alpha6",
31
+ "@vaadin/accordion": "24.7.0-alpha6",
32
+ "@vaadin/app-layout": "24.7.0-alpha6",
33
+ "@vaadin/avatar": "24.7.0-alpha6",
34
+ "@vaadin/avatar-group": "24.7.0-alpha6",
35
+ "@vaadin/button": "24.7.0-alpha6",
36
+ "@vaadin/card": "24.7.0-alpha6",
37
+ "@vaadin/checkbox": "24.7.0-alpha6",
38
+ "@vaadin/checkbox-group": "24.7.0-alpha6",
39
+ "@vaadin/combo-box": "24.7.0-alpha6",
40
+ "@vaadin/component-base": "24.7.0-alpha6",
41
+ "@vaadin/confirm-dialog": "24.7.0-alpha6",
42
+ "@vaadin/context-menu": "24.7.0-alpha6",
43
+ "@vaadin/custom-field": "24.7.0-alpha6",
44
+ "@vaadin/date-picker": "24.7.0-alpha6",
45
+ "@vaadin/date-time-picker": "24.7.0-alpha6",
46
+ "@vaadin/details": "24.7.0-alpha6",
47
+ "@vaadin/dialog": "24.7.0-alpha6",
48
+ "@vaadin/email-field": "24.7.0-alpha6",
49
+ "@vaadin/field-base": "24.7.0-alpha6",
50
+ "@vaadin/field-highlighter": "24.7.0-alpha6",
51
+ "@vaadin/form-layout": "24.7.0-alpha6",
52
+ "@vaadin/grid": "24.7.0-alpha6",
53
+ "@vaadin/horizontal-layout": "24.7.0-alpha6",
54
+ "@vaadin/icon": "24.7.0-alpha6",
55
+ "@vaadin/icons": "24.7.0-alpha6",
56
+ "@vaadin/input-container": "24.7.0-alpha6",
57
+ "@vaadin/integer-field": "24.7.0-alpha6",
58
+ "@vaadin/item": "24.7.0-alpha6",
59
+ "@vaadin/list-box": "24.7.0-alpha6",
60
+ "@vaadin/lit-renderer": "24.7.0-alpha6",
61
+ "@vaadin/login": "24.7.0-alpha6",
62
+ "@vaadin/menu-bar": "24.7.0-alpha6",
63
+ "@vaadin/message-input": "24.7.0-alpha6",
64
+ "@vaadin/message-list": "24.7.0-alpha6",
65
+ "@vaadin/multi-select-combo-box": "24.7.0-alpha6",
66
+ "@vaadin/notification": "24.7.0-alpha6",
67
+ "@vaadin/number-field": "24.7.0-alpha6",
68
+ "@vaadin/overlay": "24.7.0-alpha6",
69
+ "@vaadin/password-field": "24.7.0-alpha6",
70
+ "@vaadin/popover": "24.7.0-alpha6",
71
+ "@vaadin/progress-bar": "24.7.0-alpha6",
72
+ "@vaadin/radio-group": "24.7.0-alpha6",
73
+ "@vaadin/scroller": "24.7.0-alpha6",
74
+ "@vaadin/select": "24.7.0-alpha6",
75
+ "@vaadin/side-nav": "24.7.0-alpha6",
76
+ "@vaadin/split-layout": "24.7.0-alpha6",
77
+ "@vaadin/tabs": "24.7.0-alpha6",
78
+ "@vaadin/tabsheet": "24.7.0-alpha6",
79
+ "@vaadin/text-area": "24.7.0-alpha6",
80
+ "@vaadin/text-field": "24.7.0-alpha6",
81
+ "@vaadin/time-picker": "24.7.0-alpha6",
82
+ "@vaadin/tooltip": "24.7.0-alpha6",
83
+ "@vaadin/upload": "24.7.0-alpha6",
84
+ "@vaadin/vaadin-lumo-styles": "24.7.0-alpha6",
85
+ "@vaadin/vaadin-material-styles": "24.7.0-alpha6",
86
+ "@vaadin/vaadin-themable-mixin": "24.7.0-alpha6",
87
+ "@vaadin/vertical-layout": "24.7.0-alpha6",
88
+ "@vaadin/virtual-list": "24.7.0-alpha6"
89
89
  },
90
90
  "author": "Vaadin Ltd.",
91
91
  "license": "Apache-2.0",
@@ -1,2 +1,2 @@
1
- import{createComponent as n}from"@lit/react";window.Vaadin??={},window.Vaadin.registrations??=[],window.Vaadin.registrations.push({is:"@vaadin/react-components",version:"24.7.0-alpha5"});function s(e){const{elementClass:t}=e;return n("_properties"in t?{...e,elementClass:{name:t.name,prototype:{...t._properties,hidden:Boolean}}}:e)}export{s as createComponent};
1
+ import{createComponent as n}from"@lit/react";window.Vaadin??={},window.Vaadin.registrations??=[],window.Vaadin.registrations.push({is:"@vaadin/react-components",version:"24.7.0-alpha6"});function s(e){const{elementClass:t}=e;return n("_properties"in t?{...e,elementClass:{name:t.name,prototype:{...t._properties,hidden:Boolean}}}:e)}export{s as createComponent};
2
2
  //# sourceMappingURL=createComponent.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../src/utils/createComponent.ts"],
4
- "sourcesContent": ["import { createComponent as _createComponent, type EventName } from '@lit/react';\nimport type { ThemePropertyMixinClass } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';\nimport type React from 'react';\nimport type { RefAttributes } from 'react';\n\ndeclare const __VERSION__: string;\n\ndeclare global {\n interface VaadinRegistration {\n is: string;\n version: string;\n }\n\n interface Vaadin {\n registrations?: VaadinRegistration[];\n }\n\n interface Window {\n // @ts-expect-error: Different declaration from one of the dependencies.\n Vaadin?: Vaadin;\n }\n}\n\nwindow.Vaadin ??= {};\nwindow.Vaadin.registrations ??= [];\nwindow.Vaadin.registrations.push({\n is: '@vaadin/react-components',\n version: /* updated-by-script */ '24.7.0-alpha5',\n});\n\n// TODO: Remove when types from @lit-labs/react are exported\nexport type EventNames = Record<string, EventName | string>;\ntype Constructor<T> = { new (): T; name: string };\ntype PolymerConstructor<T> = Constructor<T> & { _properties: Record<string, unknown> };\ntype Options<I extends HTMLElement, E extends EventNames = {}> = Readonly<{\n displayName?: string;\n elementClass: Constructor<I> | PolymerConstructor<I>;\n events?: E;\n react: typeof window.React;\n tagName: string;\n}>;\n\n// A map of expected event listener types based on EventNames.\ntype EventListeners<R extends EventNames> = {\n [K in keyof R]?: R[K] extends EventName ? (e: R[K]['__eventType']) => void : (e: Event) => void;\n};\n\n// Props derived from custom element class. Currently has limitations of making\n// all properties optional and also surfaces life cycle methods in autocomplete.\n// TODO: LoginOverlay has \"autofocus\" property, so we add it back manually.\ntype ElementProps<I> = Partial<Omit<I, keyof HTMLElement>> & { autofocus?: boolean };\n\n// Acceptable props to the React component.\ntype ComponentProps<I, E extends EventNames = {}> = Omit<\n React.HTMLAttributes<I>,\n // Prefer type of provided event handler props or those on element over\n // built-in HTMLAttributes\n keyof E | keyof ElementProps<I>\n> &\n EventListeners<E> &\n ElementProps<I>;\n\nexport type ThemedWebComponentProps<\n I extends ThemePropertyMixinClass & HTMLElement,\n E extends EventNames = {},\n> = ComponentProps<I, E> & {\n /**\n * Attribute that can be used by the component to apply built-in style variants,\n * or to propagate its value to the sub-components in Shadow DOM.\n *\n * @see ThemePropertyMixinClass#_theme\n */\n theme?: string;\n};\n\ntype AllWebComponentProps<I extends HTMLElement, E extends EventNames = {}> = I extends ThemePropertyMixinClass\n ? ThemedWebComponentProps<I, E>\n : ComponentProps<I, E>;\n\nexport type WebComponentProps<I extends HTMLElement, E extends EventNames = {}> = Partial<AllWebComponentProps<I, E>>;\n\n// We need a separate declaration here; otherwise, the TypeScript fails into the\n// endless loop trying to resolve the typings.\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>(\n options: Options<I, E>,\n): (props: WebComponentProps<I, E> & RefAttributes<I>) => React.ReactElement | null;\n\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>(options: Options<I, E>): any {\n const { elementClass } = options;\n\n return _createComponent(\n '_properties' in elementClass\n ? {\n ...options,\n // TODO: improve or remove the Polymer workaround\n // 'createComponent' relies on key presence on the custom element class,\n // but Polymer defines properties on the prototype when the first element\n // is created. Workaround: pass a mock object with properties in\n // the prototype.\n elementClass: {\n // @ts-expect-error: it is a specific workaround for Polymer classes.\n name: elementClass.name,\n prototype: { ...elementClass._properties, hidden: Boolean },\n },\n }\n : options,\n );\n}\n"],
4
+ "sourcesContent": ["import { createComponent as _createComponent, type EventName } from '@lit/react';\nimport type { ThemePropertyMixinClass } from '@vaadin/vaadin-themable-mixin/vaadin-theme-property-mixin.js';\nimport type React from 'react';\nimport type { RefAttributes } from 'react';\n\ndeclare const __VERSION__: string;\n\ndeclare global {\n interface VaadinRegistration {\n is: string;\n version: string;\n }\n\n interface Vaadin {\n registrations?: VaadinRegistration[];\n }\n\n interface Window {\n // @ts-expect-error: Different declaration from one of the dependencies.\n Vaadin?: Vaadin;\n }\n}\n\nwindow.Vaadin ??= {};\nwindow.Vaadin.registrations ??= [];\nwindow.Vaadin.registrations.push({\n is: '@vaadin/react-components',\n version: /* updated-by-script */ '24.7.0-alpha6',\n});\n\n// TODO: Remove when types from @lit-labs/react are exported\nexport type EventNames = Record<string, EventName | string>;\ntype Constructor<T> = { new (): T; name: string };\ntype PolymerConstructor<T> = Constructor<T> & { _properties: Record<string, unknown> };\ntype Options<I extends HTMLElement, E extends EventNames = {}> = Readonly<{\n displayName?: string;\n elementClass: Constructor<I> | PolymerConstructor<I>;\n events?: E;\n react: typeof window.React;\n tagName: string;\n}>;\n\n// A map of expected event listener types based on EventNames.\ntype EventListeners<R extends EventNames> = {\n [K in keyof R]?: R[K] extends EventName ? (e: R[K]['__eventType']) => void : (e: Event) => void;\n};\n\n// Props derived from custom element class. Currently has limitations of making\n// all properties optional and also surfaces life cycle methods in autocomplete.\n// TODO: LoginOverlay has \"autofocus\" property, so we add it back manually.\ntype ElementProps<I> = Partial<Omit<I, keyof HTMLElement>> & { autofocus?: boolean };\n\n// Acceptable props to the React component.\ntype ComponentProps<I, E extends EventNames = {}> = Omit<\n React.HTMLAttributes<I>,\n // Prefer type of provided event handler props or those on element over\n // built-in HTMLAttributes\n keyof E | keyof ElementProps<I>\n> &\n EventListeners<E> &\n ElementProps<I>;\n\nexport type ThemedWebComponentProps<\n I extends ThemePropertyMixinClass & HTMLElement,\n E extends EventNames = {},\n> = ComponentProps<I, E> & {\n /**\n * Attribute that can be used by the component to apply built-in style variants,\n * or to propagate its value to the sub-components in Shadow DOM.\n *\n * @see ThemePropertyMixinClass#_theme\n */\n theme?: string;\n};\n\ntype AllWebComponentProps<I extends HTMLElement, E extends EventNames = {}> = I extends ThemePropertyMixinClass\n ? ThemedWebComponentProps<I, E>\n : ComponentProps<I, E>;\n\nexport type WebComponentProps<I extends HTMLElement, E extends EventNames = {}> = Partial<AllWebComponentProps<I, E>>;\n\n// We need a separate declaration here; otherwise, the TypeScript fails into the\n// endless loop trying to resolve the typings.\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>(\n options: Options<I, E>,\n): (props: WebComponentProps<I, E> & RefAttributes<I>) => React.ReactElement | null;\n\nexport function createComponent<I extends HTMLElement, E extends EventNames = {}>(options: Options<I, E>): any {\n const { elementClass } = options;\n\n return _createComponent(\n '_properties' in elementClass\n ? {\n ...options,\n // TODO: improve or remove the Polymer workaround\n // 'createComponent' relies on key presence on the custom element class,\n // but Polymer defines properties on the prototype when the first element\n // is created. Workaround: pass a mock object with properties in\n // the prototype.\n elementClass: {\n // @ts-expect-error: it is a specific workaround for Polymer classes.\n name: elementClass.name,\n prototype: { ...elementClass._properties, hidden: Boolean },\n },\n }\n : options,\n );\n}\n"],
5
5
  "mappings": "AAAA,OAAS,mBAAmBA,MAAwC,aAuBpE,OAAO,SAAW,CAAC,EACnB,OAAO,OAAO,gBAAkB,CAAC,EACjC,OAAO,OAAO,cAAc,KAAK,CAC/B,GAAI,2BACJ,QAAiC,eACnC,CAAC,EA2DM,SAASC,EAAkEC,EAA6B,CAC7G,KAAM,CAAE,aAAAC,CAAa,EAAID,EAEzB,OAAOF,EACL,gBAAiBG,EACb,CACE,GAAGD,EAMH,aAAc,CAEZ,KAAMC,EAAa,KACnB,UAAW,CAAE,GAAGA,EAAa,YAAa,OAAQ,OAAQ,CAC5D,CACF,EACAD,CACN,CACF",
6
6
  "names": ["_createComponent", "createComponent", "options", "elementClass"]
7
7
  }