vira 2.5.4 → 20.0.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/README.md +1 -1
- package/dist/elements/define-vira-element.d.ts +1 -1
- package/dist/elements/index.d.ts +6 -6
- package/dist/elements/index.js +6 -6
- package/dist/elements/{vira-button/vira-button.element.d.ts → vira-button.element.d.ts} +2 -2
- package/dist/elements/{vira-button/vira-button.element.js → vira-button.element.js} +8 -8
- package/dist/elements/{vira-collapsible/vira-collapsible-wrapper.element.d.ts → vira-collapsible-wrapper.element.d.ts} +1 -1
- package/dist/elements/{vira-collapsible/vira-collapsible-wrapper.element.js → vira-collapsible-wrapper.element.js} +2 -2
- package/dist/elements/{vira-icon/vira-icon.element.d.ts → vira-icon.element.d.ts} +2 -2
- package/dist/elements/{vira-icon/vira-icon.element.js → vira-icon.element.js} +3 -3
- package/dist/elements/{vira-image/vira-image.element.d.ts → vira-image.element.d.ts} +2 -2
- package/dist/elements/{vira-image/vira-image.element.js → vira-image.element.js} +3 -3
- package/dist/elements/{vira-input/vira-input.element.d.ts → vira-input.element.d.ts} +4 -4
- package/dist/elements/{vira-input/vira-input.element.js → vira-input.element.js} +9 -9
- package/dist/elements/{vira-link/vira-link.element.d.ts → vira-link.element.d.ts} +1 -1
- package/dist/elements/{vira-link/vira-link.element.js → vira-link.element.js} +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/package.json +22 -31
- package/dist/element-book/all-element-book-entries.d.ts +0 -1
- package/dist/element-book/all-element-book-entries.js +0 -18
- package/dist/element-book/vira-book-app.element.d.ts +0 -1
- package/dist/element-book/vira-book-app.element.js +0 -39
- package/dist/util/dimensions.d.ts +0 -4
- package/dist/util/dimensions.js +0 -1
- package/dist/util/index.d.ts +0 -1
- package/dist/util/index.js +0 -1
- /package/dist/elements/{common/shared-text-input-logic.d.ts → shared-text-input-logic.d.ts} +0 -0
- /package/dist/elements/{common/shared-text-input-logic.js → shared-text-input-logic.js} +0 -0
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const ViraTagNamePrefix = "vira-";
|
|
2
2
|
export type ViraTagName = `${typeof ViraTagNamePrefix}${string}`;
|
|
3
|
-
export declare const defineViraElement: <
|
|
3
|
+
export declare const defineViraElement: <Inputs extends {}>() => <TagName extends `vira-${string}`, StateInit extends {}, EventsInit extends {}, HostClassKeys extends `${TagName}-${string}`, CssVarKeys extends `${TagName}-${string}`, SlotNames extends readonly string[]>(inputs: import("element-vir").VerifiedElementInit<TagName, Inputs, StateInit, EventsInit, HostClassKeys, CssVarKeys, SlotNames>) => import("element-vir").DeclarativeElementDefinition<TagName, Inputs, StateInit, EventsInit, HostClassKeys, CssVarKeys, SlotNames>, defineViraElementNoInputs: <TagName_1 extends `vira-${string}`, Inputs_1 extends {}, StateInit_1 extends {}, EventsInit_1 extends {}, HostClassKeys_1 extends `${TagName_1}-${string}`, CssVarKeys_1 extends `${TagName_1}-${string}`, SlotNames_1 extends readonly string[]>(inputs: import("element-vir").VerifiedElementNoInputsInit<TagName_1, Inputs_1, StateInit_1, EventsInit_1, HostClassKeys_1, CssVarKeys_1, SlotNames_1>) => import("element-vir").DeclarativeElementDefinition<TagName_1, Inputs_1, StateInit_1, EventsInit_1, HostClassKeys_1, CssVarKeys_1, SlotNames_1>;
|
package/dist/elements/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** This file is automatically updated by update-index-exports.ts */
|
|
2
2
|
export * from './define-vira-element';
|
|
3
|
-
export * from './vira-button
|
|
4
|
-
export * from './vira-collapsible
|
|
5
|
-
export * from './vira-icon
|
|
6
|
-
export * from './vira-image
|
|
7
|
-
export * from './vira-input
|
|
8
|
-
export * from './vira-link
|
|
3
|
+
export * from './vira-button.element';
|
|
4
|
+
export * from './vira-collapsible-wrapper.element';
|
|
5
|
+
export * from './vira-icon.element';
|
|
6
|
+
export * from './vira-image.element';
|
|
7
|
+
export * from './vira-input.element';
|
|
8
|
+
export * from './vira-link.element';
|
package/dist/elements/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/** This file is automatically updated by update-index-exports.ts */
|
|
2
2
|
export * from './define-vira-element';
|
|
3
|
-
export * from './vira-button
|
|
4
|
-
export * from './vira-collapsible
|
|
5
|
-
export * from './vira-icon
|
|
6
|
-
export * from './vira-image
|
|
7
|
-
export * from './vira-input
|
|
8
|
-
export * from './vira-link
|
|
3
|
+
export * from './vira-button.element';
|
|
4
|
+
export * from './vira-collapsible-wrapper.element';
|
|
5
|
+
export * from './vira-icon.element';
|
|
6
|
+
export * from './vira-image.element';
|
|
7
|
+
export * from './vira-input.element';
|
|
8
|
+
export * from './vira-link.element';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ViraIconSvg } from '
|
|
1
|
+
import { ViraIconSvg } from '../icons';
|
|
2
2
|
export declare enum ViraButtonStyleEnum {
|
|
3
3
|
Default = "vira-button-default",
|
|
4
4
|
Outline = "vira-button-outline"
|
|
@@ -8,4 +8,4 @@ export declare const ViraButton: import("element-vir").DeclarativeElementDefinit
|
|
|
8
8
|
icon?: undefined | Pick<ViraIconSvg, 'svgTemplate'>;
|
|
9
9
|
disabled?: boolean | undefined;
|
|
10
10
|
buttonStyle?: ViraButtonStyleEnum | undefined;
|
|
11
|
-
}, {}, {}, "vira-button-outline-style" | "vira-button-disabled", "vira-button-primary-color" | "vira-button-primary-hover-color" | "vira-button-primary-active-color" | "vira-button-secondary-color" | "vira-button-padding" | "vira-button-internal-foreground-color" | "vira-button-internal-background-color",
|
|
11
|
+
}, {}, {}, "vira-button-outline-style" | "vira-button-disabled", "vira-button-primary-color" | "vira-button-primary-hover-color" | "vira-button-primary-active-color" | "vira-button-secondary-color" | "vira-button-padding" | "vira-button-internal-foreground-color" | "vira-button-internal-background-color", readonly string[]>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { css, html } from 'element-vir';
|
|
2
|
-
import { noUserSelect } from '
|
|
3
|
-
import { viraDisabledStyles } from '
|
|
4
|
-
import { viraAnimationDurations } from '
|
|
5
|
-
import { createFocusStyles, viraFocusCssVars } from '
|
|
6
|
-
import { noNativeFormStyles } from '
|
|
7
|
-
import { viraCssVars } from '
|
|
8
|
-
import { defineViraElement } from '
|
|
9
|
-
import { ViraIcon } from '
|
|
2
|
+
import { noUserSelect } from '../styles';
|
|
3
|
+
import { viraDisabledStyles } from '../styles/disabled';
|
|
4
|
+
import { viraAnimationDurations } from '../styles/durations';
|
|
5
|
+
import { createFocusStyles, viraFocusCssVars } from '../styles/focus';
|
|
6
|
+
import { noNativeFormStyles } from '../styles/native-styles';
|
|
7
|
+
import { viraCssVars } from '../styles/vira-css-vars';
|
|
8
|
+
import { defineViraElement } from './define-vira-element';
|
|
9
|
+
import { ViraIcon } from './vira-icon.element';
|
|
10
10
|
export var ViraButtonStyleEnum;
|
|
11
11
|
(function (ViraButtonStyleEnum) {
|
|
12
12
|
ViraButtonStyleEnum["Default"] = "vira-button-default";
|
|
@@ -7,4 +7,4 @@ export declare const ViraCollapsibleWrapper: import("element-vir").DeclarativeEl
|
|
|
7
7
|
contentHeight: number;
|
|
8
8
|
}, {
|
|
9
9
|
expandChange: import("element-vir").DefinedTypedEventNameDefinition<boolean>;
|
|
10
|
-
}, "vira-collapsible-wrapper-expanded", `vira-collapsible-wrapper-${string}`,
|
|
10
|
+
}, "vira-collapsible-wrapper-expanded", `vira-collapsible-wrapper-${string}`, readonly string[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css, defineElementEvent, html, listen, onResize } from 'element-vir';
|
|
2
|
-
import { noNativeFormStyles, viraAnimationDurations } from '
|
|
3
|
-
import { defineViraElement } from '
|
|
2
|
+
import { noNativeFormStyles, viraAnimationDurations } from '../styles';
|
|
3
|
+
import { defineViraElement } from './define-vira-element';
|
|
4
4
|
export var ViraCollapsibleSlotNameEnum;
|
|
5
5
|
(function (ViraCollapsibleSlotNameEnum) {
|
|
6
6
|
ViraCollapsibleSlotNameEnum["Header"] = "header";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ViraIconSvg } from '
|
|
1
|
+
import { ViraIconSvg } from '../icons/icon-svg';
|
|
2
2
|
export declare const ViraIcon: import("element-vir").DeclarativeElementDefinition<"vira-icon", {
|
|
3
3
|
icon: Pick<ViraIconSvg, 'svgTemplate'> | undefined;
|
|
4
4
|
/** Ignores the given icon's embedded size and causes the <svg> element to fill its parent. */
|
|
5
5
|
fitContainer?: boolean | undefined;
|
|
6
|
-
}, {}, {}, "vira-icon-fit-container", `vira-icon-${string}`,
|
|
6
|
+
}, {}, {}, "vira-icon-fit-container", `vira-icon-${string}`, readonly string[]>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { css } from 'element-vir';
|
|
2
|
-
import { defineViraElement } from '
|
|
2
|
+
import { defineViraElement } from './define-vira-element';
|
|
3
3
|
export const ViraIcon = defineViraElement()({
|
|
4
4
|
tagName: 'vira-icon',
|
|
5
5
|
hostClasses: {
|
|
@@ -19,12 +19,12 @@ export const ViraIcon = defineViraElement()({
|
|
|
19
19
|
display: block;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
${hostClasses['vira-icon-fit-container'].selector} svg
|
|
22
|
+
${hostClasses['vira-icon-fit-container'].selector} svg
|
|
23
23
|
height: 100%;
|
|
24
24
|
width: 100%;
|
|
25
25
|
}
|
|
26
26
|
`,
|
|
27
|
-
renderCallback
|
|
27
|
+
renderCallback({ inputs }) {
|
|
28
28
|
if (!inputs.icon) {
|
|
29
29
|
return '';
|
|
30
30
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { Dimensions } from '@augment-vir/common';
|
|
1
2
|
import { Duration, DurationUnit } from 'date-vir';
|
|
2
|
-
import { Dimensions } from '../../util/dimensions';
|
|
3
3
|
export declare enum ViraImageSlotNameEnum {
|
|
4
4
|
Loading = "loading",
|
|
5
5
|
Error = "error"
|
|
@@ -42,4 +42,4 @@ export declare const ViraImage: import("element-vir").DeclarativeElementDefiniti
|
|
|
42
42
|
}, {
|
|
43
43
|
imageLoad: import("element-vir").DefinedTypedEventNameDefinition<void>;
|
|
44
44
|
imageError: import("element-vir").DefinedTypedEventNameDefinition<unknown>;
|
|
45
|
-
}, "vira-image-height-constrained", `vira-image-${string}`,
|
|
45
|
+
}, "vira-image-height-constrained", `vira-image-${string}`, readonly string[]>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { wait } from '@augment-vir/common';
|
|
2
2
|
import { classMap, css, defineElementEvent, html, listen, renderIf } from 'element-vir';
|
|
3
|
-
import { LoaderAnimated24Icon, StatusFailure24Icon } from '
|
|
4
|
-
import { defineViraElement } from '
|
|
5
|
-
import { ViraIcon } from '
|
|
3
|
+
import { LoaderAnimated24Icon, StatusFailure24Icon } from '../icons';
|
|
4
|
+
import { defineViraElement } from './define-vira-element';
|
|
5
|
+
import { ViraIcon } from './vira-icon.element';
|
|
6
6
|
export var ViraImageSlotNameEnum;
|
|
7
7
|
(function (ViraImageSlotNameEnum) {
|
|
8
8
|
ViraImageSlotNameEnum["Loading"] = "loading";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ViraIconSvg } from '
|
|
2
|
-
import { SharedTextInputElementInputs } from '
|
|
3
|
-
export * from '
|
|
1
|
+
import { ViraIconSvg } from '../icons';
|
|
2
|
+
import { SharedTextInputElementInputs } from './shared-text-input-logic';
|
|
3
|
+
export * from './shared-text-input-logic';
|
|
4
4
|
export declare const ViraInput: import("element-vir").DeclarativeElementDefinition<"vira-input", {
|
|
5
5
|
icon?: undefined | Pick<ViraIconSvg, 'svgTemplate'>;
|
|
6
6
|
/** A suffix that, if provided, is shown following the user input field. */
|
|
@@ -20,4 +20,4 @@ export declare const ViraInput: import("element-vir").DeclarativeElementDefiniti
|
|
|
20
20
|
* that was blocked out of programmatic "value" property assignments.
|
|
21
21
|
*/
|
|
22
22
|
inputBlocked: import("element-vir").DefinedTypedEventNameDefinition<string>;
|
|
23
|
-
}, "vira-input-disabled" | "vira-input-fit-text" | "vira-input-clear-button-shown", "vira-input-placeholder-color" | "vira-input-text-color" | "vira-input-border-color" | "vira-input-focus-border-color" | "vira-input-text-selection-color" | "vira-input-clear-button-color" | "vira-input-clear-button-hover-color" | "vira-input-clear-button-active-color" | "vira-input-padding-horizontal" | "vira-input-padding-vertical",
|
|
23
|
+
}, "vira-input-disabled" | "vira-input-fit-text" | "vira-input-clear-button-shown", "vira-input-placeholder-color" | "vira-input-text-color" | "vira-input-border-color" | "vira-input-focus-border-color" | "vira-input-text-selection-color" | "vira-input-clear-button-color" | "vira-input-clear-button-hover-color" | "vira-input-clear-button-active-color" | "vira-input-padding-horizontal" | "vira-input-padding-vertical", readonly string[]>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { css, defineElementEvent, html, listen, onResize, renderIf, } from 'element-vir';
|
|
2
|
-
import { CloseX24Icon } from '
|
|
3
|
-
import { noUserSelect, viraAnimationDurations, viraDisabledStyles } from '
|
|
4
|
-
import { createFocusStyles, viraFocusCssVars } from '
|
|
5
|
-
import { noNativeFormStyles } from '
|
|
6
|
-
import { viraCssVars } from '
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { ViraIcon } from '
|
|
10
|
-
export * from '
|
|
2
|
+
import { CloseX24Icon } from '../icons/icon-svgs/close-x-24.icon';
|
|
3
|
+
import { noUserSelect, viraAnimationDurations, viraDisabledStyles } from '../styles';
|
|
4
|
+
import { createFocusStyles, viraFocusCssVars } from '../styles/focus';
|
|
5
|
+
import { noNativeFormStyles } from '../styles/native-styles';
|
|
6
|
+
import { viraCssVars } from '../styles/vira-css-vars';
|
|
7
|
+
import { defineViraElement } from './define-vira-element';
|
|
8
|
+
import { filterTextInputValue, textInputListener, } from './shared-text-input-logic';
|
|
9
|
+
import { ViraIcon } from './vira-icon.element';
|
|
10
|
+
export * from './shared-text-input-logic';
|
|
11
11
|
export const ViraInput = defineViraElement()({
|
|
12
12
|
tagName: 'vira-input',
|
|
13
13
|
hostClasses: {
|
|
@@ -19,4 +19,4 @@ export declare const ViraLink: import("element-vir").DeclarativeElementDefinitio
|
|
|
19
19
|
};
|
|
20
20
|
}, {}, {
|
|
21
21
|
routeChange: import("element-vir").DefinedTypedEventNameDefinition<FullRoute>;
|
|
22
|
-
}, `vira-link-${string}`, "vira-link-hover-color",
|
|
22
|
+
}, `vira-link-${string}`, "vira-link-hover-color", readonly string[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { css, defineElementEvent, html, listen } from 'element-vir';
|
|
2
2
|
import { shouldMouseEventTriggerRoutes } from 'spa-router-vir';
|
|
3
|
-
import { defineViraElement } from '
|
|
3
|
+
import { defineViraElement } from './define-vira-element';
|
|
4
4
|
export const ViraLink = defineViraElement()({
|
|
5
5
|
tagName: 'vira-link',
|
|
6
6
|
cssVars: {
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vira",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.1",
|
|
4
4
|
"description": "A simple and highly versatile design system using element-vir.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design",
|
|
@@ -12,13 +12,13 @@
|
|
|
12
12
|
"web",
|
|
13
13
|
"element-vir"
|
|
14
14
|
],
|
|
15
|
-
"homepage": "https://github.
|
|
15
|
+
"homepage": "https://electrovir.github.io/element-vir/vira",
|
|
16
16
|
"bugs": {
|
|
17
|
-
"url": "https://github.com/electrovir/
|
|
17
|
+
"url": "https://github.com/electrovir/element-vir/issues"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
21
|
-
"url": "https://github.com/electrovir/
|
|
21
|
+
"url": "https://github.com/electrovir/element-vir"
|
|
22
22
|
},
|
|
23
23
|
"license": "(MIT or CC0 1.0)",
|
|
24
24
|
"author": {
|
|
@@ -28,48 +28,39 @@
|
|
|
28
28
|
"main": "dist/index.js",
|
|
29
29
|
"types": "dist/index.d.ts",
|
|
30
30
|
"scripts": {
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"prepublishOnly": "cd ../scripts && npm run publish:pre",
|
|
34
|
-
"preview": "npm run compile && virmator frontend preview --outDir ./dist-book",
|
|
35
|
-
"postpublish": "cd ../scripts && npm run publish:post",
|
|
36
|
-
"start": "npm run compile && virmator frontend",
|
|
37
|
-
"test": "virmator test-web",
|
|
38
|
-
"test:all": "concurrently --colors --kill-others-on-fail -c auto --names tests,docs \"npm run test\" \"npm run test:docs\"",
|
|
39
|
-
"test:coverage": "npm run test",
|
|
40
|
-
"test:docs": "virmator docs check"
|
|
31
|
+
"compile": "rm -rf dist && tsc -b -f --pretty",
|
|
32
|
+
"test": "virmator test-web"
|
|
41
33
|
},
|
|
42
34
|
"dependencies": {
|
|
43
|
-
"@augment-vir/browser": "^22.
|
|
44
|
-
"@augment-vir/common": "^22.
|
|
35
|
+
"@augment-vir/browser": "^22.4.0",
|
|
36
|
+
"@augment-vir/common": "^22.4.0",
|
|
45
37
|
"colorjs.io": "^0.4.5",
|
|
46
|
-
"date-vir": "^
|
|
47
|
-
"
|
|
48
|
-
"lit-css-vars": "^3.0.4",
|
|
38
|
+
"date-vir": "^5.0.0",
|
|
39
|
+
"lit-css-vars": "^3.0.8",
|
|
49
40
|
"spa-router-vir": "^3.0.3",
|
|
50
|
-
"type-fest": "^4.
|
|
41
|
+
"type-fest": "^4.9.0"
|
|
51
42
|
},
|
|
52
43
|
"devDependencies": {
|
|
53
|
-
"@augment-vir/browser-testing": "^22.
|
|
54
|
-
"@augment-vir/node-js": "^22.
|
|
44
|
+
"@augment-vir/browser-testing": "^22.4.0",
|
|
45
|
+
"@augment-vir/node-js": "^22.4.0",
|
|
55
46
|
"@open-wc/testing": "^4.0.0",
|
|
56
47
|
"@types/chai": "^4.3.11",
|
|
57
|
-
"@types/mocha": "^10.0.
|
|
48
|
+
"@types/mocha": "^10.0.6",
|
|
58
49
|
"@web/dev-server-esbuild": "^1.0.1",
|
|
59
50
|
"@web/test-runner": "^0.18.0",
|
|
60
51
|
"@web/test-runner-commands": "^0.9.0",
|
|
61
52
|
"@web/test-runner-playwright": "^0.11.0",
|
|
62
53
|
"@web/test-runner-visual-regression": "^0.9.0",
|
|
63
|
-
"
|
|
64
|
-
"element-book": "^10.1.8",
|
|
65
|
-
"esbuild": "^0.19.7",
|
|
54
|
+
"esbuild": "^0.19.11",
|
|
66
55
|
"istanbul-smart-text-reporter": "^1.1.3",
|
|
67
56
|
"markdown-code-example-inserter": "^0.3.3",
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"typescript": "~5.2.2",
|
|
57
|
+
"run-time-assertions": "^0.3.0",
|
|
58
|
+
"typedoc": "^0.25.7",
|
|
59
|
+
"typescript": "^5.3.3",
|
|
72
60
|
"vite": "^4.5.0",
|
|
73
|
-
"vite-tsconfig-paths": "^4.2.
|
|
61
|
+
"vite-tsconfig-paths": "^4.2.3"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"element-vir": ">=17"
|
|
74
65
|
}
|
|
75
66
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const allElementBookEntries: (import("element-book").BookPage<{}, undefined, {}> | import("element-book").BookPage<{}, import("element-book").BookPage<{}, undefined, {}>, {}>)[];
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { elementsBookPage } from '../elements/elements.book';
|
|
2
|
-
import { viraButtonBookPage } from '../elements/vira-button/vira-button.element.book';
|
|
3
|
-
import { viraCollapsibleBookPage } from '../elements/vira-collapsible/vira-collapsible-wrapper.element.book';
|
|
4
|
-
import { viraIconBookPage } from '../elements/vira-icon/vira-icon.element.book';
|
|
5
|
-
import { viraImageBookPage } from '../elements/vira-image/vira-image.element.book';
|
|
6
|
-
import { viraInputBookPage } from '../elements/vira-input/vira-input.element.book';
|
|
7
|
-
import { viraLinkBookPage } from '../elements/vira-link/vira-link.element.book';
|
|
8
|
-
import { iconsBookPage } from '../icons/icons.book';
|
|
9
|
-
export const allElementBookEntries = [
|
|
10
|
-
elementsBookPage,
|
|
11
|
-
iconsBookPage,
|
|
12
|
-
viraButtonBookPage,
|
|
13
|
-
viraCollapsibleBookPage,
|
|
14
|
-
viraIconBookPage,
|
|
15
|
-
viraImageBookPage,
|
|
16
|
-
viraInputBookPage,
|
|
17
|
-
viraLinkBookPage,
|
|
18
|
-
];
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const ViraBookApp: import("element-vir").DeclarativeElementDefinition<"vira-book-app", {}, {}, {}, "vira-book-app-", "vira-book-app-", import("lit-html").HTMLTemplateResult>;
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { ElementBookApp, ElementBookSlotName } from 'element-book';
|
|
2
|
-
import { css, defineElementNoInputs, html } from 'element-vir';
|
|
3
|
-
import { allElementBookEntries } from './all-element-book-entries';
|
|
4
|
-
export const ViraBookApp = defineElementNoInputs({
|
|
5
|
-
tagName: 'vira-book-app',
|
|
6
|
-
styles: css `
|
|
7
|
-
:host {
|
|
8
|
-
display: block;
|
|
9
|
-
height: 100%;
|
|
10
|
-
width: 100%;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
${ElementBookApp} {
|
|
14
|
-
height: 100%;
|
|
15
|
-
width: 100%;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
h1 {
|
|
19
|
-
margin: 0;
|
|
20
|
-
margin-bottom: 16px;
|
|
21
|
-
padding: 0;
|
|
22
|
-
margin-left: 16px;
|
|
23
|
-
}
|
|
24
|
-
`,
|
|
25
|
-
renderCallback() {
|
|
26
|
-
return html `
|
|
27
|
-
<${ElementBookApp.assign({
|
|
28
|
-
internalRouterConfig: {
|
|
29
|
-
basePath: 'vira',
|
|
30
|
-
useInternalRouter: true,
|
|
31
|
-
},
|
|
32
|
-
entries: allElementBookEntries,
|
|
33
|
-
themeColor: '#33ccff',
|
|
34
|
-
})}>
|
|
35
|
-
<h1 slot=${ElementBookSlotName.NavHeader}>Vira</h1>
|
|
36
|
-
</${ElementBookApp}>
|
|
37
|
-
`;
|
|
38
|
-
},
|
|
39
|
-
});
|
package/dist/util/dimensions.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/util/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dimensions';
|
package/dist/util/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './dimensions';
|
|
File without changes
|
|
File without changes
|