@aurodesignsystem-dev/auro-datetime 0.0.0-pr100.0

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/demo/index.js ADDED
@@ -0,0 +1,5 @@
1
+ /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
2
+ import { AuroDatetime } from "../src/index";
3
+
4
+ AuroDatetime.register();
5
+ AuroDatetime.register("custom-datetime");
package/demo/index.md ADDED
@@ -0,0 +1,60 @@
1
+ <!--
2
+ THIS PAGE'S CONTENT SHOULD BE KEPT MINIMAL.
3
+ ONLY ADD EXAMPLES THAT ARE TRULY NECESSARY FOR THE INDEX PAGE — THE BASIC EXAMPLE IS USUALLY ENOUGH.
4
+ ALL OTHER EXAMPLES SHOULD GO IN THE API DOCUMENTATION.
5
+ -->
6
+
7
+ # Datetime
8
+
9
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/description.md) -->
10
+ <!-- The below content is automatically added from ./../docs/partials/description.md -->
11
+ The `<auro-datetime>` custom element makes it really easy to add dates to your web app with a simple HTML API.
12
+ <!-- AURO-GENERATED-CONTENT:END -->
13
+
14
+ ## Use Cases
15
+
16
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../docs/partials/useCases.md) -->
17
+ <!-- The below content is automatically added from ./../docs/partials/useCases.md -->
18
+ The `<auro-datetime>` element should be used in situations where users may:
19
+
20
+ * A date and/or time is required
21
+ <!-- AURO-GENERATED-CONTENT:END -->
22
+
23
+ ## Basic Date
24
+
25
+ <div class="exampleWrapper">
26
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
27
+ <!-- The below content is automatically added from ./../apiExamples/basic.html -->
28
+ <auro-datetime type="date"></auro-datetime>
29
+ <!-- AURO-GENERATED-CONTENT:END -->
30
+ </div>
31
+ <auro-accordion alignRight>
32
+ <span slot="trigger">See code</span>
33
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic.html) -->
34
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
35
+
36
+ ```html
37
+ <auro-datetime type="date"></auro-datetime>
38
+ ```
39
+ <!-- AURO-GENERATED-CONTENT:END -->
40
+ </auro-accordion>
41
+
42
+ ## Basic Time
43
+
44
+ <div class="exampleWrapper">
45
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic-time.html) -->
46
+ <!-- The below content is automatically added from ./../apiExamples/basic-time.html -->
47
+ <auro-datetime type="time"></auro-datetime>
48
+ <!-- AURO-GENERATED-CONTENT:END -->
49
+ </div>
50
+ <auro-accordion alignRight>
51
+ <span slot="trigger">See code</span>
52
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basic-time.html) -->
53
+ <!-- The below code snippet is automatically added from ./../apiExamples/basic-time.html -->
54
+
55
+ ```html
56
+ <auro-datetime type="time"></auro-datetime>
57
+ ```
58
+ <!-- AURO-GENERATED-CONTENT:END -->
59
+ </auro-accordion>
60
+
@@ -0,0 +1,6 @@
1
+ import { A as AuroDatetime } from './auro-datetime.min.js';
2
+
3
+ /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
4
+
5
+ AuroDatetime.register();
6
+ AuroDatetime.register("custom-datetime");
@@ -0,0 +1,6 @@
1
+ import{LitElement as e,html as t}from"lit";class i{registerComponent(e,t){customElements.get(e)||customElements.define(e,class extends t{})}closestElement(e,t=this,i=(t,a=t&&t.closest(e))=>t&&t!==document&&t!==window?a||i(t.getRootNode().host):null){return i(t)}handleComponentTagRename(e,t){const i=t.toLowerCase();e.tagName.toLowerCase()!==i&&e.setAttribute(i,!0)}elementMatch(e,t){const i=t.toLowerCase();return e.tagName.toLowerCase()===i||e.hasAttribute(i)}getSlotText(e,t){const i=e.shadowRoot?.querySelector(`slot[name="${t}"]`);return(i?.assignedNodes({flatten:!0})||[]).map(e=>e.textContent?.trim()).join(" ").trim()||null}}const a=/^(\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?)(Z|[+-]\d{2}:\d{2})?$/u;class n extends e{constructor(){super(),this._initializeDefaults()}_initializeDefaults(){this.weekday="short",this.month="short",this.locale="en-US",this._warnedLocales=new Set,this._warnedTimeZones=new Set,this._warnedValues=new Set,this._effectiveLocale=this._resolveLocale(this.locale),this._effectiveTimeZone=this._resolveTimeZone(this.timezone),this.runtimeUtils=new i}_resolveLocale(e){if(!e)return"en-US";try{return Intl.getCanonicalLocales(e)[0]}catch{return this._warnedLocales&&!this._warnedLocales.has(e)&&(this._warnedLocales.add(e),console.warn(`auro-datetime: "${e}" is not a valid BCP 47 locale tag. Falling back to "en-US".`)),"en-US"}}_resolveTimeZone(e){if(e)try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),e}catch{return void(this._warnedTimeZones&&!this._warnedTimeZones.has(e)&&(this._warnedTimeZones.add(e),console.warn(`auro-datetime: "${e}" is not a valid IANA timezone. Falling back to viewer-local.`)))}}connectedCallback(){super.connectedCallback(),this.dateTemplate={weekday:this.weekday,year:"numeric",month:this.month,day:"numeric"},this.timeTemplate={hour:"2-digit",minute:"2-digit"}}static get properties(){return{locale:{type:String},month:{type:String},timezone:{type:String},type:{type:String},value:{type:String},weekday:{type:String}}}static register(e="auro-datetime"){i.prototype.registerComponent(e,n)}willUpdate(e){e.has("locale")&&(this._effectiveLocale=this._resolveLocale(this.locale)),e.has("timezone")&&(this._effectiveTimeZone=this._resolveTimeZone(this.timezone))}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-datetime")}_zonedWallClockToUtc(e,t){const i=new Date(`${e}Z`),a=new Intl.DateTimeFormat("en-US",{timeZone:t,hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).formatToParts(i),n=Object.fromEntries(a.filter(e=>"literal"!==e.type).map(e=>[e.type,e.value])),o=new Date(`${n.year}-${n.month}-${n.day}T${n.hour}:${n.minute}:${n.second}Z`),s=i.getTime()-o.getTime();return new Date(i.getTime()+s)}_resolveInputDate(){const e=this._effectiveTimeZone;if(null==this.value)return{date:new Date,timeZoneOption:e};const t=this.value.match(a);if(!t)return this._warnedValues.has(this.value)||(this._warnedValues.add(this.value),console.warn(`auro-datetime: "${this.value}" is not a valid ISO 8601 string.`)),{date:null,timeZoneOption:void 0};const i=t[1],n=Boolean(t[2]);if(n&&!i.includes("T"))return this._warnedValues.has(this.value)||(this._warnedValues.add(this.value),console.warn(`auro-datetime: "${this.value}" is not a valid ISO 8601 string (offset/Z requires a time component).`)),{date:null,timeZoneOption:void 0};const o=i.includes("T")?i:`${i}T00:00:00`,s=(()=>e&&!n?this._zonedWallClockToUtc(o,e):e&&n?new Date(this.value):new Date(o))();return Number.isNaN(s.getTime())?(this._warnedValues.has(this.value)||(this._warnedValues.add(this.value),console.warn(`auro-datetime: "${this.value}" is not a valid ISO 8601 date.`)),{date:null,timeZoneOption:void 0}):{date:s,timeZoneOption:e}}humanDate(){const{date:e,timeZoneOption:t}=this._resolveInputDate();if(!e)return"";const i={...this.dateTemplate};return t&&(i.timeZone=t),e.toLocaleString(this._effectiveLocale,i)}humanDateConversion(){const{date:e,timeZoneOption:t}=this._resolveInputDate();if(!e)return"";const i={};switch(t&&(i.timeZone=t),this.type){case"day":i.day="numeric";break;case"month":i.month=this.month;break;case"year":i.year="numeric";break;case"weekday":i.weekday=this.weekday}return e.toLocaleString(this._effectiveLocale,i)}numericDate(){const{date:e,timeZoneOption:t}=this._resolveInputDate();if(!e)return"";const i={...this.dateTemplate,month:"numeric"};return Reflect.deleteProperty(i,"weekday"),t&&(i.timeZone=t),e.toLocaleString(this._effectiveLocale,i)}humanTime(){const{date:e,timeZoneOption:t}=this._resolveInputDate();if(!e)return"";const i={...this.timeTemplate};t&&(i.timeZone=t);const a=e.toLocaleString(this._effectiveLocale,i);return/[ap]\.?m\.?/iu.test(a)?a.replace(/^0+/u,"").toLowerCase():a}whichDate(){switch(this.type){case"date":default:return this.humanDate();case"time":return this.humanTime();case"year":case"month":case"weekday":case"day":return this.humanDateConversion();case"numeric":return this.numericDate()}}render(){return t`
2
+ <slot name="pre"></slot>
3
+ <span class="yield">${this.whichDate()}</span>
4
+ <slot name="post"></slot>
5
+ <slot></slot>
6
+ `}}export{n as A};
@@ -0,0 +1,273 @@
1
+ import type { AuroDatetime } from "src/auro-datetime.js";
2
+
3
+ /**
4
+ * This type can be used to create scoped tags for your components.
5
+ *
6
+ * Usage:
7
+ *
8
+ * ```ts
9
+ * import type { ScopedElements } from "path/to/library/jsx-integration";
10
+ *
11
+ * declare module "my-library" {
12
+ * namespace JSX {
13
+ * interface IntrinsicElements
14
+ * extends ScopedElements<'test-', ''> {}
15
+ * }
16
+ * }
17
+ * ```
18
+ *
19
+ * @deprecated Runtime scoped elements result in duplicate types and can confusing for developers. It is recommended to use the `prefix` and `suffix` options to generate new types instead.
20
+ */
21
+ export type ScopedElements<
22
+ Prefix extends string = "",
23
+ Suffix extends string = "",
24
+ > = {
25
+ [Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
26
+ };
27
+
28
+ type BaseProps<T extends HTMLElement> = {
29
+ /** Content added between the opening and closing tags of the element */
30
+ children?: any;
31
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
32
+ class?: string;
33
+ /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
34
+ className?: string;
35
+ /** Takes an object where the key is the class name(s) and the value is a boolean expression. When true, the class is applied, and when false, it is removed. */
36
+ classList?: Record<string, boolean | undefined>;
37
+ /** Specifies the text direction of the element. */
38
+ dir?: "ltr" | "rtl";
39
+ /** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
40
+ exportparts?: string;
41
+ /** For <label> and <output>, lets you associate the label with some control. */
42
+ htmlFor?: string;
43
+ /** Specifies whether the element should be hidden. */
44
+ hidden?: boolean | string;
45
+ /** A unique identifier for the element. */
46
+ id?: string;
47
+ /** Keys tell React which array item each component corresponds to */
48
+ key?: string | number;
49
+ /** Specifies the language of the element. */
50
+ lang?: string;
51
+ /** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
52
+ part?: string;
53
+ /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
54
+ ref?: T | ((e: T) => void);
55
+ /** Adds a reference for a custom element slot */
56
+ slot?: string;
57
+ /** Prop for setting inline styles */
58
+ style?: Record<string, string | number>;
59
+ /** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
60
+ tabIndex?: number;
61
+ /** Specifies the tooltip text for the element. */
62
+ title?: string;
63
+ /** Passing 'no' excludes the element content from being translated. */
64
+ translate?: "yes" | "no";
65
+ /** The popover global attribute is used to designate an element as a popover element. */
66
+ popover?: "auto" | "hint" | "manual";
67
+ /** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
68
+ popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
69
+ /** Specifies the action to be performed on a popover element being controlled by a control element. */
70
+ popovertargetaction?: "show" | "hide" | "toggle";
71
+ };
72
+
73
+ type BaseEvents = {};
74
+
75
+ export type AuroDatetimeProps = {
76
+ /** BCP 47 language tag for locale-aware date/time formatting (e.g. 'en-GB', 'de-DE', 'ja-JP'). */
77
+ locale?: AuroDatetime["locale"];
78
+ /** Defines format of month */
79
+ month?: AuroDatetime["month"];
80
+ /** Pass in string to define [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
81
+ When set, the moment described by `value` is converted into this IANA zone for display.
82
+ When unset, the wall-clock time from the input string is rendered as-is. */
83
+ timezone?: AuroDatetime["timezone"];
84
+ /** Defines type of data to render */
85
+ type?: AuroDatetime["type"];
86
+ /** ISO 8601 date or date-time string. Examples:
87
+ - `2022-07-14T08:00:00-07:00` (with offset)
88
+ - `2022-07-14T08:00:00Z` (UTC)
89
+ - `2022-07-14T08:00:00` (no offset)
90
+ - `2022-07-14` (date only)
91
+
92
+ When omitted, the component renders today's date.
93
+ Invalid input is logged as a warning and renders nothing. */
94
+ value?: AuroDatetime["value"];
95
+ /** Defines format of weekday */
96
+ weekday?: AuroDatetime["weekday"];
97
+ };
98
+
99
+ export type AuroDatetimeSolidJsProps = {
100
+ /** BCP 47 language tag for locale-aware date/time formatting (e.g. 'en-GB', 'de-DE', 'ja-JP'). */
101
+ "prop:locale"?: AuroDatetime["locale"];
102
+ /** Defines format of month */
103
+ "prop:month"?: AuroDatetime["month"];
104
+ /** Pass in string to define [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
105
+ When set, the moment described by `value` is converted into this IANA zone for display.
106
+ When unset, the wall-clock time from the input string is rendered as-is. */
107
+ "prop:timezone"?: AuroDatetime["timezone"];
108
+ /** Defines type of data to render */
109
+ "prop:type"?: AuroDatetime["type"];
110
+ /** ISO 8601 date or date-time string. Examples:
111
+ - `2022-07-14T08:00:00-07:00` (with offset)
112
+ - `2022-07-14T08:00:00Z` (UTC)
113
+ - `2022-07-14T08:00:00` (no offset)
114
+ - `2022-07-14` (date only)
115
+
116
+ When omitted, the component renders today's date.
117
+ Invalid input is logged as a warning and renders nothing. */
118
+ "prop:value"?: AuroDatetime["value"];
119
+ /** Defines format of weekday */
120
+ "prop:weekday"?: AuroDatetime["weekday"];
121
+
122
+ /** Set the innerHTML of the element */
123
+ innerHTML?: string;
124
+ /** Set the textContent of the element */
125
+ textContent?: string | number;
126
+ };
127
+
128
+ export type CustomElements = {
129
+ /**
130
+ * The `auro-datetime` element is for the purposes of providing an easy to use date and time API.
131
+ *
132
+ * ## Attributes & Properties
133
+ *
134
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
135
+ *
136
+ * - `locale`: BCP 47 language tag for locale-aware date/time formatting (e.g. 'en-GB', 'de-DE', 'ja-JP').
137
+ * - `month`: Defines format of month
138
+ * - `timezone`: Pass in string to define [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
139
+ * When set, the moment described by `value` is converted into this IANA zone for display.
140
+ * When unset, the wall-clock time from the input string is rendered as-is.
141
+ * - `type`: Defines type of data to render
142
+ * - `value`: ISO 8601 date or date-time string. Examples:
143
+ * - `2022-07-14T08:00:00-07:00` (with offset)
144
+ * - `2022-07-14T08:00:00Z` (UTC)
145
+ * - `2022-07-14T08:00:00` (no offset)
146
+ * - `2022-07-14` (date only)
147
+ *
148
+ * When omitted, the component renders today's date.
149
+ * Invalid input is logged as a warning and renders nothing.
150
+ * - `weekday`: Defines format of weekday
151
+ *
152
+ * ## Slots
153
+ *
154
+ * Areas where markup can be added to the component.
155
+ *
156
+ * - `post`: Content that comes after the `pre` content
157
+ * - `pre`: Content that comes before the `post` content
158
+ *
159
+ * ## Methods
160
+ *
161
+ * Methods that can be called to access component functionality.
162
+ *
163
+ * - `_initializeDefaults() => void`: undefined
164
+ * - `register(name?: string = "auro-datetime") => void`: This will register this element with the browser.
165
+ */
166
+ "auro-datetime": Partial<
167
+ AuroDatetimeProps & BaseProps<AuroDatetime> & BaseEvents
168
+ >;
169
+ };
170
+
171
+ export type CustomElementsSolidJs = {
172
+ /**
173
+ * The `auro-datetime` element is for the purposes of providing an easy to use date and time API.
174
+ *
175
+ * ## Attributes & Properties
176
+ *
177
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
178
+ *
179
+ * - `locale`: BCP 47 language tag for locale-aware date/time formatting (e.g. 'en-GB', 'de-DE', 'ja-JP').
180
+ * - `month`: Defines format of month
181
+ * - `timezone`: Pass in string to define [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
182
+ * When set, the moment described by `value` is converted into this IANA zone for display.
183
+ * When unset, the wall-clock time from the input string is rendered as-is.
184
+ * - `type`: Defines type of data to render
185
+ * - `value`: ISO 8601 date or date-time string. Examples:
186
+ * - `2022-07-14T08:00:00-07:00` (with offset)
187
+ * - `2022-07-14T08:00:00Z` (UTC)
188
+ * - `2022-07-14T08:00:00` (no offset)
189
+ * - `2022-07-14` (date only)
190
+ *
191
+ * When omitted, the component renders today's date.
192
+ * Invalid input is logged as a warning and renders nothing.
193
+ * - `weekday`: Defines format of weekday
194
+ *
195
+ * ## Slots
196
+ *
197
+ * Areas where markup can be added to the component.
198
+ *
199
+ * - `post`: Content that comes after the `pre` content
200
+ * - `pre`: Content that comes before the `post` content
201
+ *
202
+ * ## Methods
203
+ *
204
+ * Methods that can be called to access component functionality.
205
+ *
206
+ * - `_initializeDefaults() => void`: undefined
207
+ * - `register(name?: string = "auro-datetime") => void`: This will register this element with the browser.
208
+ */
209
+ "auro-datetime": Partial<
210
+ AuroDatetimeProps &
211
+ AuroDatetimeSolidJsProps &
212
+ BaseProps<AuroDatetime> &
213
+ BaseEvents
214
+ >;
215
+ };
216
+
217
+ export type CustomCssProperties = {};
218
+
219
+ declare module "react" {
220
+ namespace JSX {
221
+ interface IntrinsicElements extends CustomElements {}
222
+ }
223
+ }
224
+
225
+ declare module "preact" {
226
+ namespace JSX {
227
+ interface IntrinsicElements extends CustomElements {}
228
+ }
229
+ }
230
+
231
+ declare module "@builder.io/qwik" {
232
+ namespace JSX {
233
+ interface IntrinsicElements extends CustomElements {}
234
+ }
235
+ }
236
+
237
+ declare module "@stencil/core" {
238
+ namespace JSX {
239
+ interface IntrinsicElements extends CustomElements {}
240
+ }
241
+ }
242
+
243
+ declare module "hono/jsx" {
244
+ namespace JSX {
245
+ interface IntrinsicElements extends CustomElements {}
246
+ }
247
+ }
248
+
249
+ declare module "react-native" {
250
+ namespace JSX {
251
+ interface IntrinsicElements extends CustomElements {}
252
+ }
253
+ }
254
+
255
+ declare module "solid-js" {
256
+ namespace JSX {
257
+ interface IntrinsicElements extends CustomElementsSolidJs {}
258
+ }
259
+ }
260
+
261
+ declare global {
262
+ namespace JSX {
263
+ interface IntrinsicElements extends CustomElements {}
264
+ }
265
+ }
266
+ declare global {
267
+ namespace svelteHTML {
268
+ interface IntrinsicElements extends CustomElements {}
269
+ }
270
+ }
271
+
272
+
273
+ export { AuroDatetime } from "./index.js";
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export{A as AuroDatetime}from"./auro-datetime-39FU0ZIU.js";import"lit";
@@ -0,0 +1 @@
1
+ import{A as r}from"./auro-datetime-39FU0ZIU.js";import"lit";r.register();
package/package.json ADDED
@@ -0,0 +1,86 @@
1
+ {
2
+ "//": [
3
+ "================================================================================",
4
+ "# To work within the development environment, run the following tasks",
5
+ " 1. $ npm run dev",
6
+ " 2. Go to http://localhost:8000",
7
+ "================================================================================"
8
+ ],
9
+ "name": "@aurodesignsystem-dev/auro-datetime",
10
+ "version": "0.0.0-pr100.0",
11
+ "description": "auro-datetime HTML custom element",
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "https://github.com/AlaskaAirlines/auro-datetime"
15
+ },
16
+ "type": "module",
17
+ "main": "dist/registered.js",
18
+ "types": "dist/index.d.ts",
19
+ "license": "Apache-2.0",
20
+ "engines": {
21
+ "node": ">=20"
22
+ },
23
+ "dependencies": {
24
+ "lit": "^3.3.2"
25
+ },
26
+ "devDependencies": {
27
+ "@aurodesignsystem/auro-cli": "^3.6.0",
28
+ "@aurodesignsystem/auro-config": "^1.3.1",
29
+ "@aurodesignsystem/auro-library": "^5.12.2",
30
+ "husky": "^9.1.7"
31
+ },
32
+ "browserslist": [
33
+ "last 2 Chrome versions",
34
+ "last 2 iOS major versions",
35
+ "last 2 Firefox versions",
36
+ "last 2 Edge versions",
37
+ "last 2 Safari major versions"
38
+ ],
39
+ "publishConfig": {
40
+ "access": "public",
41
+ "provenance": true
42
+ },
43
+ "keywords": [
44
+ "alaska airlines",
45
+ "auro",
46
+ "design system",
47
+ "web components"
48
+ ],
49
+ "scripts": {
50
+ "build": "auro build",
51
+ "dev": "auro dev -w -s",
52
+ "dev:open": "auro dev -w -s --open",
53
+ "lint": "biome check --no-errors-on-unmatched && stylelint \"./src/**/*.scss\"",
54
+ "lint:fix": "biome check --fix --no-errors-on-unmatched && stylelint \"./src/**/*.scss\" --fix",
55
+ "test": "auro test",
56
+ "test:watch": "auro test --watch",
57
+ "prepare": "husky",
58
+ "test:coverage": "auro test --coverage-report --open"
59
+ },
60
+ "exports": {
61
+ "./package.json": "./package.json",
62
+ "./readme.md": "./README.md",
63
+ "./custom-elements.json": "./custom-elements.json",
64
+ ".": {
65
+ "module": "./dist/registered.js",
66
+ "types": "./dist/index.d.ts",
67
+ "default": "./dist/registered.js"
68
+ },
69
+ "./demo/*.md": "./demo/*.md",
70
+ "./demo/*.js": "./demo/*.min.js",
71
+ "./class": {
72
+ "module": "./dist/index.js",
73
+ "types": "./dist/index.d.ts",
74
+ "default": "./dist/index.js"
75
+ }
76
+ },
77
+ "files": [
78
+ "dist/**/*",
79
+ "demo/**/*",
80
+ "CHANGELOG.md",
81
+ "README.md",
82
+ "LICENSE",
83
+ "NOTICE"
84
+ ],
85
+ "customElements": "custom-elements.json"
86
+ }