@vaadin/react-components 25.0.0-alpha18 → 25.0.0-alpha19

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vaadin/react-components",
3
- "version": "25.0.0-alpha18",
3
+ "version": "25.0.0-alpha19",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -27,66 +27,66 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@lit/react": "^1.0.7",
30
- "@vaadin/a11y-base": "25.0.0-alpha18",
31
- "@vaadin/accordion": "25.0.0-alpha18",
32
- "@vaadin/app-layout": "25.0.0-alpha18",
33
- "@vaadin/avatar": "25.0.0-alpha18",
34
- "@vaadin/avatar-group": "25.0.0-alpha18",
35
- "@vaadin/button": "25.0.0-alpha18",
36
- "@vaadin/card": "25.0.0-alpha18",
37
- "@vaadin/checkbox": "25.0.0-alpha18",
38
- "@vaadin/checkbox-group": "25.0.0-alpha18",
39
- "@vaadin/combo-box": "25.0.0-alpha18",
40
- "@vaadin/component-base": "25.0.0-alpha18",
41
- "@vaadin/confirm-dialog": "25.0.0-alpha18",
42
- "@vaadin/context-menu": "25.0.0-alpha18",
43
- "@vaadin/custom-field": "25.0.0-alpha18",
44
- "@vaadin/date-picker": "25.0.0-alpha18",
45
- "@vaadin/date-time-picker": "25.0.0-alpha18",
46
- "@vaadin/details": "25.0.0-alpha18",
47
- "@vaadin/dialog": "25.0.0-alpha18",
48
- "@vaadin/email-field": "25.0.0-alpha18",
49
- "@vaadin/field-base": "25.0.0-alpha18",
50
- "@vaadin/field-highlighter": "25.0.0-alpha18",
51
- "@vaadin/form-layout": "25.0.0-alpha18",
52
- "@vaadin/grid": "25.0.0-alpha18",
53
- "@vaadin/horizontal-layout": "25.0.0-alpha18",
54
- "@vaadin/icon": "25.0.0-alpha18",
55
- "@vaadin/icons": "25.0.0-alpha18",
56
- "@vaadin/input-container": "25.0.0-alpha18",
57
- "@vaadin/integer-field": "25.0.0-alpha18",
58
- "@vaadin/item": "25.0.0-alpha18",
59
- "@vaadin/list-box": "25.0.0-alpha18",
60
- "@vaadin/lit-renderer": "25.0.0-alpha18",
61
- "@vaadin/login": "25.0.0-alpha18",
62
- "@vaadin/markdown": "25.0.0-alpha18",
63
- "@vaadin/master-detail-layout": "25.0.0-alpha18",
64
- "@vaadin/menu-bar": "25.0.0-alpha18",
65
- "@vaadin/message-input": "25.0.0-alpha18",
66
- "@vaadin/message-list": "25.0.0-alpha18",
67
- "@vaadin/multi-select-combo-box": "25.0.0-alpha18",
68
- "@vaadin/notification": "25.0.0-alpha18",
69
- "@vaadin/number-field": "25.0.0-alpha18",
70
- "@vaadin/overlay": "25.0.0-alpha18",
71
- "@vaadin/password-field": "25.0.0-alpha18",
72
- "@vaadin/popover": "25.0.0-alpha18",
73
- "@vaadin/progress-bar": "25.0.0-alpha18",
74
- "@vaadin/radio-group": "25.0.0-alpha18",
75
- "@vaadin/scroller": "25.0.0-alpha18",
76
- "@vaadin/select": "25.0.0-alpha18",
77
- "@vaadin/side-nav": "25.0.0-alpha18",
78
- "@vaadin/split-layout": "25.0.0-alpha18",
79
- "@vaadin/tabs": "25.0.0-alpha18",
80
- "@vaadin/tabsheet": "25.0.0-alpha18",
81
- "@vaadin/text-area": "25.0.0-alpha18",
82
- "@vaadin/text-field": "25.0.0-alpha18",
83
- "@vaadin/time-picker": "25.0.0-alpha18",
84
- "@vaadin/tooltip": "25.0.0-alpha18",
85
- "@vaadin/upload": "25.0.0-alpha18",
86
- "@vaadin/vaadin-lumo-styles": "25.0.0-alpha18",
87
- "@vaadin/vaadin-themable-mixin": "25.0.0-alpha18",
88
- "@vaadin/vertical-layout": "25.0.0-alpha18",
89
- "@vaadin/virtual-list": "25.0.0-alpha18"
30
+ "@vaadin/a11y-base": "25.0.0-alpha19",
31
+ "@vaadin/accordion": "25.0.0-alpha19",
32
+ "@vaadin/app-layout": "25.0.0-alpha19",
33
+ "@vaadin/avatar": "25.0.0-alpha19",
34
+ "@vaadin/avatar-group": "25.0.0-alpha19",
35
+ "@vaadin/button": "25.0.0-alpha19",
36
+ "@vaadin/card": "25.0.0-alpha19",
37
+ "@vaadin/checkbox": "25.0.0-alpha19",
38
+ "@vaadin/checkbox-group": "25.0.0-alpha19",
39
+ "@vaadin/combo-box": "25.0.0-alpha19",
40
+ "@vaadin/component-base": "25.0.0-alpha19",
41
+ "@vaadin/confirm-dialog": "25.0.0-alpha19",
42
+ "@vaadin/context-menu": "25.0.0-alpha19",
43
+ "@vaadin/custom-field": "25.0.0-alpha19",
44
+ "@vaadin/date-picker": "25.0.0-alpha19",
45
+ "@vaadin/date-time-picker": "25.0.0-alpha19",
46
+ "@vaadin/details": "25.0.0-alpha19",
47
+ "@vaadin/dialog": "25.0.0-alpha19",
48
+ "@vaadin/email-field": "25.0.0-alpha19",
49
+ "@vaadin/field-base": "25.0.0-alpha19",
50
+ "@vaadin/field-highlighter": "25.0.0-alpha19",
51
+ "@vaadin/form-layout": "25.0.0-alpha19",
52
+ "@vaadin/grid": "25.0.0-alpha19",
53
+ "@vaadin/horizontal-layout": "25.0.0-alpha19",
54
+ "@vaadin/icon": "25.0.0-alpha19",
55
+ "@vaadin/icons": "25.0.0-alpha19",
56
+ "@vaadin/input-container": "25.0.0-alpha19",
57
+ "@vaadin/integer-field": "25.0.0-alpha19",
58
+ "@vaadin/item": "25.0.0-alpha19",
59
+ "@vaadin/list-box": "25.0.0-alpha19",
60
+ "@vaadin/lit-renderer": "25.0.0-alpha19",
61
+ "@vaadin/login": "25.0.0-alpha19",
62
+ "@vaadin/markdown": "25.0.0-alpha19",
63
+ "@vaadin/master-detail-layout": "25.0.0-alpha19",
64
+ "@vaadin/menu-bar": "25.0.0-alpha19",
65
+ "@vaadin/message-input": "25.0.0-alpha19",
66
+ "@vaadin/message-list": "25.0.0-alpha19",
67
+ "@vaadin/multi-select-combo-box": "25.0.0-alpha19",
68
+ "@vaadin/notification": "25.0.0-alpha19",
69
+ "@vaadin/number-field": "25.0.0-alpha19",
70
+ "@vaadin/overlay": "25.0.0-alpha19",
71
+ "@vaadin/password-field": "25.0.0-alpha19",
72
+ "@vaadin/popover": "25.0.0-alpha19",
73
+ "@vaadin/progress-bar": "25.0.0-alpha19",
74
+ "@vaadin/radio-group": "25.0.0-alpha19",
75
+ "@vaadin/scroller": "25.0.0-alpha19",
76
+ "@vaadin/select": "25.0.0-alpha19",
77
+ "@vaadin/side-nav": "25.0.0-alpha19",
78
+ "@vaadin/split-layout": "25.0.0-alpha19",
79
+ "@vaadin/tabs": "25.0.0-alpha19",
80
+ "@vaadin/tabsheet": "25.0.0-alpha19",
81
+ "@vaadin/text-area": "25.0.0-alpha19",
82
+ "@vaadin/text-field": "25.0.0-alpha19",
83
+ "@vaadin/time-picker": "25.0.0-alpha19",
84
+ "@vaadin/tooltip": "25.0.0-alpha19",
85
+ "@vaadin/upload": "25.0.0-alpha19",
86
+ "@vaadin/vaadin-lumo-styles": "25.0.0-alpha19",
87
+ "@vaadin/vaadin-themable-mixin": "25.0.0-alpha19",
88
+ "@vaadin/vertical-layout": "25.0.0-alpha19",
89
+ "@vaadin/virtual-list": "25.0.0-alpha19"
90
90
  },
91
91
  "author": "Vaadin Ltd.",
92
92
  "license": "Apache-2.0",
@@ -476,17 +476,6 @@
476
476
  "./Upload": "./Upload.js",
477
477
  "./VerticalLayout": "./VerticalLayout.js",
478
478
  "./VirtualList": "./VirtualList.js",
479
- "./css/Lumo.css": "./css/Lumo.css",
480
- "./css/lumo/Badge.css": "./css/lumo/Badge.css",
481
- "./css/lumo/Color.css": "./css/lumo/Color.css",
482
- "./css/lumo/ColorBase.css": "./css/lumo/ColorBase.css",
483
- "./css/lumo/Font.css": "./css/lumo/Font.css",
484
- "./css/lumo/FontIcons.css": "./css/lumo/FontIcons.css",
485
- "./css/lumo/Sizing.css": "./css/lumo/Sizing.css",
486
- "./css/lumo/Spacing.css": "./css/lumo/Spacing.css",
487
- "./css/lumo/Style.css": "./css/lumo/Style.css",
488
- "./css/lumo/Typography.css": "./css/lumo/Typography.css",
489
- "./css/lumo/UserColors.css": "./css/lumo/UserColors.css",
490
479
  "./css/lumo/Utility.module.css": "./css/lumo/Utility.module.css",
491
480
  "./utils/createComponent.d.ts": "./utils/createComponent.d.ts",
492
481
  "./utils/createComponent.d.ts.map": "./utils/createComponent.d.ts.map",
@@ -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:"25.0.0-alpha18"});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:"25.0.0-alpha19"});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 */ '25.0.0-alpha18',\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 */ '25.0.0-alpha19',\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,gBACnC,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
  }
package/css/Lumo.css DELETED
@@ -1,15 +0,0 @@
1
- /* Generated file, do not edit */
2
-
3
- @import url(./lumo/ColorBase.css);
4
-
5
- @import url(./lumo/FontIcons.css);
6
-
7
- @import url(./lumo/Sizing.css);
8
-
9
- @import url(./lumo/Style.css);
10
-
11
- @import url(./lumo/Spacing.css);
12
-
13
- @import url(./lumo/Font.css);
14
-
15
- @import url(./lumo/UserColors.css);
@@ -1,165 +0,0 @@
1
- /* Generated file, do not edit */
2
-
3
-
4
- [theme~='badge'] {
5
- display: inline-flex;
6
- align-items: center;
7
- justify-content: center;
8
- box-sizing: border-box;
9
- padding: 0.4em calc(0.5em + var(--lumo-border-radius-s) / 4);
10
- color: var(--lumo-primary-text-color);
11
- background-color: var(--lumo-primary-color-10pct);
12
- border-radius: var(--lumo-border-radius-s);
13
- font-family: var(--lumo-font-family);
14
- font-size: var(--lumo-font-size-s);
15
- line-height: 1;
16
- font-weight: 500;
17
- text-transform: initial;
18
- letter-spacing: initial;
19
- min-width: calc(var(--lumo-line-height-xs) * 1em + 0.45em);
20
- flex-shrink: 0;
21
- }
22
-
23
- /* Ensure proper vertical alignment */
24
- [theme~='badge']::before {
25
- display: inline-block;
26
- content: '\\2003';
27
- width: 0;
28
- }
29
-
30
- [theme~='badge'][theme~='small'] {
31
- font-size: var(--lumo-font-size-xxs);
32
- line-height: 1;
33
- }
34
-
35
- /* Colors */
36
-
37
- [theme~='badge'][theme~='success'] {
38
- color: var(--lumo-success-text-color);
39
- background-color: var(--lumo-success-color-10pct);
40
- }
41
-
42
- [theme~='badge'][theme~='error'] {
43
- color: var(--lumo-error-text-color);
44
- background-color: var(--lumo-error-color-10pct);
45
- }
46
-
47
- [theme~='badge'][theme~='warning'] {
48
- color: var(--lumo-warning-text-color);
49
- background-color: var(--lumo-warning-color-10pct);
50
- }
51
-
52
- [theme~='badge'][theme~='contrast'] {
53
- color: var(--lumo-contrast-80pct);
54
- background-color: var(--lumo-contrast-5pct);
55
- }
56
-
57
- /* Primary */
58
-
59
- [theme~='badge'][theme~='primary'] {
60
- color: var(--lumo-primary-contrast-color);
61
- background-color: var(--lumo-primary-color);
62
- }
63
-
64
- [theme~='badge'][theme~='success'][theme~='primary'] {
65
- color: var(--lumo-success-contrast-color);
66
- background-color: var(--lumo-success-color);
67
- }
68
-
69
- [theme~='badge'][theme~='error'][theme~='primary'] {
70
- color: var(--lumo-error-contrast-color);
71
- background-color: var(--lumo-error-color);
72
- }
73
-
74
- [theme~='badge'][theme~='warning'][theme~='primary'] {
75
- color: var(--lumo-warning-contrast-color);
76
- background-color: var(--lumo-warning-color);
77
- }
78
-
79
- [theme~='badge'][theme~='contrast'][theme~='primary'] {
80
- color: var(--lumo-base-color);
81
- background-color: var(--lumo-contrast);
82
- }
83
-
84
- /* Links */
85
-
86
- [theme~='badge'][href]:hover {
87
- text-decoration: none;
88
- }
89
-
90
- /* Icon */
91
-
92
- [theme~='badge'] > vaadin-icon {
93
- margin: -0.25em 0;
94
- }
95
-
96
- [theme~='badge'] > vaadin-icon:first-child {
97
- margin-left: -0.375em;
98
- }
99
-
100
- [theme~='badge'] > vaadin-icon:last-child {
101
- margin-right: -0.375em;
102
- }
103
-
104
- vaadin-icon[theme~='badge'][icon] {
105
- min-width: 0;
106
- padding: 0;
107
- font-size: 1rem;
108
- width: var(--lumo-icon-size-m);
109
- height: var(--lumo-icon-size-m);
110
- }
111
-
112
- vaadin-icon[theme~='badge'][icon][theme~='small'] {
113
- width: var(--lumo-icon-size-s);
114
- height: var(--lumo-icon-size-s);
115
- }
116
-
117
- /* Empty */
118
-
119
- [theme~='badge']:not([icon]):empty {
120
- min-width: 0;
121
- width: 1em;
122
- height: 1em;
123
- padding: 0;
124
- border-radius: 50%;
125
- background-color: var(--lumo-primary-color);
126
- }
127
-
128
- [theme~='badge'][theme~='small']:not([icon]):empty {
129
- width: 0.75em;
130
- height: 0.75em;
131
- }
132
-
133
- [theme~='badge'][theme~='contrast']:not([icon]):empty {
134
- background-color: var(--lumo-contrast);
135
- }
136
-
137
- [theme~='badge'][theme~='success']:not([icon]):empty {
138
- background-color: var(--lumo-success-color);
139
- }
140
-
141
- [theme~='badge'][theme~='error']:not([icon]):empty {
142
- background-color: var(--lumo-error-color);
143
- }
144
-
145
- [theme~='badge'][theme~='warning']:not([icon]):empty {
146
- background-color: var(--lumo-warning-color);
147
- }
148
-
149
- /* Pill */
150
-
151
- [theme~='badge'][theme~='pill'] {
152
- --lumo-border-radius-s: 1em;
153
- }
154
-
155
- /* RTL specific styles */
156
-
157
- [dir='rtl'][theme~='badge'] vaadin-icon:first-child {
158
- margin-right: -0.375em;
159
- margin-left: 0;
160
- }
161
-
162
- [dir='rtl'][theme~='badge'] vaadin-icon:last-child {
163
- margin-left: -0.375em;
164
- margin-right: 0;
165
- }
@@ -1,122 +0,0 @@
1
- /* Generated file, do not edit */
2
-
3
- @import url(./ColorBase.css);
4
-
5
-
6
- [theme~='dark'] {
7
- /* Base (background) */
8
- --lumo-base-color: hsl(214, 35%, 21%);
9
-
10
- /* Tint */
11
- --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
12
- --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
13
- --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
14
- --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
15
- --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
16
- --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
17
- --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
18
- --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
19
- --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
20
- --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
21
- --lumo-tint: hsl(214, 100%, 98%);
22
-
23
- /* Shade */
24
- --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
25
- --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
26
- --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
27
- --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
28
- --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
29
- --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
30
- --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
31
- --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
32
- --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
33
- --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
34
- --lumo-shade: hsl(214, 33%, 13%);
35
-
36
- /* Contrast */
37
- --lumo-contrast-5pct: var(--lumo-tint-5pct);
38
- --lumo-contrast-10pct: var(--lumo-tint-10pct);
39
- --lumo-contrast-20pct: var(--lumo-tint-20pct);
40
- --lumo-contrast-30pct: var(--lumo-tint-30pct);
41
- --lumo-contrast-40pct: var(--lumo-tint-40pct);
42
- --lumo-contrast-50pct: var(--lumo-tint-50pct);
43
- --lumo-contrast-60pct: var(--lumo-tint-60pct);
44
- --lumo-contrast-70pct: var(--lumo-tint-70pct);
45
- --lumo-contrast-80pct: var(--lumo-tint-80pct);
46
- --lumo-contrast-90pct: var(--lumo-tint-90pct);
47
- --lumo-contrast: var(--lumo-tint);
48
-
49
- /* Text */
50
- --lumo-header-text-color: var(--lumo-contrast);
51
- --lumo-body-text-color: var(--lumo-contrast-90pct);
52
- --lumo-secondary-text-color: var(--lumo-contrast-70pct);
53
- --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
54
- --lumo-disabled-text-color: var(--lumo-contrast-30pct);
55
-
56
- /* Primary */
57
- --lumo-primary-color: hsl(214, 90%, 48%);
58
- --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
59
- --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
60
- --lumo-primary-text-color: hsl(214, 90%, 77%);
61
- --lumo-primary-contrast-color: #fff;
62
-
63
- /* Error */
64
- --lumo-error-color: hsl(3, 79%, 49%);
65
- --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
66
- --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
67
- --lumo-error-text-color: hsl(3, 100%, 80%);
68
-
69
- /* Success */
70
- --lumo-success-color: hsl(145, 72%, 30%);
71
- --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
72
- --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
73
- --lumo-success-text-color: hsl(145, 85%, 46%);
74
-
75
- /* Warning */
76
- --lumo-warning-color: hsl(43, 100%, 48%);
77
- --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
78
- --lumo-warning-text-color: hsl(45, 100%, 60%);
79
- --lumo-warning-contrast-color: var(--lumo-shade-90pct);
80
- }
81
-
82
- html {
83
- color: var(--lumo-body-text-color);
84
- background-color: var(--lumo-base-color);
85
- color-scheme: light;
86
- }
87
-
88
- [theme~='dark'] {
89
- color: var(--lumo-body-text-color);
90
- background-color: var(--lumo-base-color);
91
- color-scheme: dark;
92
- }
93
-
94
- h1,
95
- h2,
96
- h3,
97
- h4,
98
- h5,
99
- h6 {
100
- color: var(--lumo-header-text-color);
101
- }
102
-
103
- a:where(:any-link) {
104
- color: var(--lumo-primary-text-color);
105
- }
106
-
107
- a:not(:any-link) {
108
- color: var(--lumo-disabled-text-color);
109
- }
110
-
111
- blockquote {
112
- color: var(--lumo-secondary-text-color);
113
- }
114
-
115
- code,
116
- pre {
117
- background-color: var(--lumo-contrast-10pct);
118
- border-radius: var(--lumo-border-radius-m);
119
- }
120
- pre code {
121
- background: transparent;
122
- }
@@ -1,87 +0,0 @@
1
- /* Generated file, do not edit */
2
-
3
-
4
- html {
5
- /* Base (background) */
6
- --lumo-base-color: #fff;
7
-
8
- /* Tint */
9
- --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
10
- --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
11
- --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
12
- --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
13
- --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
14
- --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
15
- --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
16
- --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
17
- --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
18
- --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
19
- --lumo-tint: #fff;
20
-
21
- /* Shade */
22
- --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
23
- --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
24
- --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
25
- --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
26
- --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
27
- --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
28
- --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
29
- --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
30
- --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
31
- --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
32
- --lumo-shade: hsl(214, 35%, 15%);
33
-
34
- /* Contrast */
35
- --lumo-contrast-5pct: var(--lumo-shade-5pct);
36
- --lumo-contrast-10pct: var(--lumo-shade-10pct);
37
- --lumo-contrast-20pct: var(--lumo-shade-20pct);
38
- --lumo-contrast-30pct: var(--lumo-shade-30pct);
39
- --lumo-contrast-40pct: var(--lumo-shade-40pct);
40
- --lumo-contrast-50pct: var(--lumo-shade-50pct);
41
- --lumo-contrast-60pct: var(--lumo-shade-60pct);
42
- --lumo-contrast-70pct: var(--lumo-shade-70pct);
43
- --lumo-contrast-80pct: var(--lumo-shade-80pct);
44
- --lumo-contrast-90pct: var(--lumo-shade-90pct);
45
- --lumo-contrast: var(--lumo-shade);
46
-
47
- /* Text */
48
- --lumo-header-text-color: var(--lumo-contrast);
49
- --lumo-body-text-color: var(--lumo-contrast-90pct);
50
- --lumo-secondary-text-color: var(--lumo-contrast-70pct);
51
- --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
52
- --lumo-disabled-text-color: var(--lumo-contrast-30pct);
53
-
54
- /* Primary */
55
- --lumo-primary-color: hsl(214, 100%, 48%);
56
- --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
57
- --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
58
- --lumo-primary-text-color: hsl(214, 100%, 43%);
59
- --lumo-primary-contrast-color: #fff;
60
-
61
- /* Error */
62
- --lumo-error-color: hsl(3, 85%, 48%);
63
- --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
64
- --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
65
- --lumo-error-text-color: hsl(3, 89%, 42%);
66
- --lumo-error-contrast-color: #fff;
67
-
68
- /* Success */
69
- --lumo-success-color: hsl(145, 72%, 30%);
70
- --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
71
- --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
72
- --lumo-success-text-color: hsl(145, 85%, 25%);
73
- --lumo-success-contrast-color: #fff;
74
-
75
- /* Warning */
76
- --lumo-warning-color: hsl(48, 100%, 50%);
77
- --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
78
- --lumo-warning-text-color: hsl(32, 100%, 30%);
79
- --lumo-warning-contrast-color: var(--lumo-shade-90pct);
80
- }
81
-
82
- /* forced-colors mode adjustments */
83
- @media (forced-colors: active) {
84
- html {
85
- --lumo-disabled-text-color: GrayText;
86
- }
87
- }
package/css/lumo/Font.css DELETED
@@ -1,22 +0,0 @@
1
- /* Generated file, do not edit */
2
-
3
-
4
- html {
5
- /* prettier-ignore */
6
- --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
7
-
8
- /* Font sizes */
9
- --lumo-font-size-xxs: 0.75rem;
10
- --lumo-font-size-xs: 0.8125rem;
11
- --lumo-font-size-s: 0.875rem;
12
- --lumo-font-size-m: 1rem;
13
- --lumo-font-size-l: 1.125rem;
14
- --lumo-font-size-xl: 1.375rem;
15
- --lumo-font-size-xxl: 1.75rem;
16
- --lumo-font-size-xxxl: 2.5rem;
17
-
18
- /* Line heights */
19
- --lumo-line-height-xs: 1.25;
20
- --lumo-line-height-s: 1.375;
21
- --lumo-line-height-m: 1.625;
22
- }