@arcgis/lumina 5.2.0-next.90 → 5.2.0-next.91

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.
@@ -29,6 +29,9 @@ export class LitElement extends OriginalLitElement {
29
29
  static readonly lumina: true;
30
30
  /** @internal */
31
31
  constructor();
32
+ readonly "@cssParts": Record<never, HTMLElement | undefined>;
33
+ readonly "@cssStates": Record<never, boolean>;
34
+ readonly "@slots": Record<never, Node | Node[] | undefined>;
32
35
  /**
33
36
  * In lazy build, the actual DOM element differs from the class instance:
34
37
  * - "this.el" is a proxy custom element - it's physically present in the DOM
@@ -1,4 +1,4 @@
1
- import type { Properties as CssProperties } from "csstype";
1
+ import type { StandardProperties } from "csstype";
2
2
  import type { ClassInfo, ClassMapDirective } from "lit/directives/class-map.js";
3
3
  import type { DirectiveResult, DirectiveClass } from "lit/directive.js";
4
4
  import type { StyleMapDirective } from "lit/directives/style-map.js";
@@ -54,7 +54,7 @@ export function safeClassMap(parameters: ClassInfo | null | undefined | string):
54
54
  * @param parameters
55
55
  * @internal
56
56
  */
57
- export function safeStyleMap(parameters: CssProperties | null | undefined | string): DirectiveResult<typeof StyleMapDirective> | null | undefined | string;
57
+ export function safeStyleMap(parameters: null | undefined | StandardProperties | string): DirectiveResult<typeof StyleMapDirective> | null | undefined | string;
58
58
 
59
59
  /**
60
60
  * Do not use this directive directly. Use the `deferLoad` JSX prop instead.
@@ -3,7 +3,7 @@ import type { ClassInfo, ClassMapDirective } from "lit/directives/class-map.js";
3
3
  import type { StyleMapDirective } from "lit/directives/style-map.js";
4
4
  import type { ChangeEventHandlerUnion, CustomAttributes, EventHandlerUnion, FocusEventHandlerUnion, InputEventHandlerUnion } from "./baseTypes.js";
5
5
  import type { JsxNode } from "./types.js";
6
- import type { Properties as CssProperties } from "csstype";
6
+ import type { StandardProperties } from "csstype";
7
7
 
8
8
  export type HtmlAutocapitalize = "characters" | "none" | "off" | "on" | "sentences" | "words";
9
9
 
@@ -501,7 +501,7 @@ export interface HTMLAttributes<T = HTMLElement> extends AriaAttributes, DOMAttr
501
501
  */
502
502
  spellcheck?: boolean;
503
503
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/style) */
504
- style?: CssProperties | DirectiveResult<typeof StyleMapDirective> | string;
504
+ style?: DirectiveResult<typeof StyleMapDirective> | StandardProperties | string;
505
505
  /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/tabIndex) */
506
506
  tabIndex?: number | string;
507
507
  /**
@@ -2279,7 +2279,7 @@ export interface SvgCoreAttributes<T> extends AriaAttributes, DOMAttributes<T> {
2279
2279
  }
2280
2280
 
2281
2281
  export interface SvgStylableAttributes {
2282
- style?: CssProperties | DirectiveResult<typeof StyleMapDirective> | string;
2282
+ style?: DirectiveResult<typeof StyleMapDirective> | StandardProperties | string;
2283
2283
  }
2284
2284
 
2285
2285
  export interface SvgTransformableAttributes {
@@ -323,6 +323,14 @@ export type RemapEvents<Component extends { el: unknown; }> = {
323
323
  */
324
324
  export interface ImportStencilElements {}
325
325
 
326
+ /** @internal */
327
+ export interface DeclareCssProperties {}
328
+
329
+ /** @internal */
330
+ export type NormalizedDeclaredCssProperties = {
331
+ [key in keyof DeclareCssProperties]?: number | string;
332
+ };
333
+
326
334
  /**
327
335
  * Get the type of all events for a given component. Includes native DOM events
328
336
  * and custom events.
@@ -0,0 +1,8 @@
1
+ /**
2
+ * A helper for documenting the accepted syntax for a CSS property.
3
+ *
4
+ * @see https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@property/syntax
5
+ */
6
+ export type CssSyntax<Syntax extends CssSyntaxUnion, Multiplier extends "" | "#" | "+" = ""> = `<${Syntax}>${Multiplier}`;
7
+
8
+ export type CssSyntaxUnion = "absolute-size" | "alpha-value" | "angle-percentage" | "angle" | "axis" | "baseline-position" | "basic-shape" | "blend-mode" | "box-edge" | "calc-keyword" | "calc-sum" | "color-interpolation-method" | "color" | "content-distribution" | "content-position" | "corner-shape-value" | "custom-ident" | "dashed-function" | "dashed-ident" | "dimension" | "display-box" | "display-inside" | "display-internal" | "display-legacy" | "display-listitem" | "display-outside" | "easing-function" | "filter-function" | "flex" | "frequency-percentage" | "frequency" | "generic-family" | "gradient" | "hex-color" | "hue-interpolation-method" | "hue" | "ident" | "image" | "integer" | "length-percentage" | "length" | "line-style" | "line-width" | "named-color" | "number" | "overflow-position" | "overflow" | "percentage" | "position-area" | "position" | "ratio" | "relative-size" | "resolution" | "rule-list" | "self-position" | "shape" | "string" | "system-color" | "text-edge" | "time-percentage" | "time" | "timeline-range-name" | "transform-function" | "url";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arcgis/lumina",
3
- "version": "5.2.0-next.90",
3
+ "version": "5.2.0-next.91",
4
4
  "description": "Runtime for WebGIS SDK web components",
5
5
  "sideEffects": false,
6
6
  "type": "module",
@@ -24,6 +24,9 @@
24
24
  "./PublicLitElement": {
25
25
  "types": "./dist/PublicLitElement.d.ts"
26
26
  },
27
+ "./utils/cssSyntax": {
28
+ "types": "./dist/utils/cssSyntax.d.ts"
29
+ },
27
30
  "./controllers": "./dist/controllers/index.js",
28
31
  "./controllers/accessor": "./dist/controllers/accessor/index.js",
29
32
  "./package.json": "./package.json"
@@ -33,7 +36,7 @@
33
36
  ],
34
37
  "license": "SEE LICENSE IN LICENSE.md",
35
38
  "dependencies": {
36
- "@arcgis/toolkit": "~5.2.0-next.90",
39
+ "@arcgis/toolkit": "~5.2.0-next.91",
37
40
  "csstype": "^3.1.3",
38
41
  "tslib": "^2.8.1"
39
42
  },