vira 31.28.2 → 31.29.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/dist/elements/vira-drawer.element.js +1 -1
- package/dist/elements/vira-form.element.js +2 -0
- package/dist/elements/vira-modal.element.js +1 -1
- package/dist/styles/vira-color-theme-object.d.ts +1 -1
- package/dist/styles/vira-color-theme.d.ts +1 -1
- package/dist/util/vira-form-fields.d.ts +4 -0
- package/dist/util/vira-theme-client.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { assertWrap } from '@augment-vir/assert';
|
|
2
2
|
import { colorCss } from '@electrovir/color';
|
|
3
3
|
import { css, defineElementEvent, html, listen, nothing, onDomCreated } from 'element-vir';
|
|
4
|
-
import { themeDefaultKey } from 'theme-vir';
|
|
4
|
+
import { themeDefaultKey } from 'theme-vir/dist/color-theme/color-theme.js';
|
|
5
5
|
import { listenToGlobal } from 'typed-event-target';
|
|
6
6
|
import { X24Icon } from '../icons/icon-svgs/24/x-24.icon.js';
|
|
7
7
|
import { viraAnimationDurations } from '../styles/durations.js';
|
|
@@ -270,6 +270,8 @@ export const ViraForm = defineViraElement()({
|
|
|
270
270
|
min: field.min,
|
|
271
271
|
max: field.max,
|
|
272
272
|
timezone: field.timezone,
|
|
273
|
+
showDateOnly: field.showDateOnly,
|
|
274
|
+
showTimeOnly: field.showTimeOnly,
|
|
273
275
|
isDisabled,
|
|
274
276
|
hasError: field.hasError,
|
|
275
277
|
isReadonly: inputs.isReadonly,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { assertWrap } from '@augment-vir/assert';
|
|
2
2
|
import { colorCss } from '@electrovir/color';
|
|
3
3
|
import { css, defineElementEvent, html, listen, nothing, onDomCreated } from 'element-vir';
|
|
4
|
-
import { themeDefaultKey } from 'theme-vir';
|
|
4
|
+
import { themeDefaultKey } from 'theme-vir/dist/color-theme/color-theme.js';
|
|
5
5
|
import { listenToGlobal } from 'typed-event-target';
|
|
6
6
|
import { X24Icon } from '../icons/icon-svgs/24/x-24.icon.js';
|
|
7
7
|
import { viraFormCssVars } from '../styles/form-styles.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type RemovePrefix, type RemoveSuffix, type UnionToTuple } from '@augment-vir/common';
|
|
2
2
|
import { ContrastLevelName } from '@electrovir/color/dist/data/contrast/contrast.js';
|
|
3
|
-
import { type ColorThemeColor, type themeDefaultKey } from 'theme-vir';
|
|
3
|
+
import { type ColorThemeColor, type themeDefaultKey } from 'theme-vir/dist/color-theme/color-theme.js';
|
|
4
4
|
import { viraTheme } from './vira-color-theme.js';
|
|
5
5
|
/**
|
|
6
6
|
* `ContrastLevelName` values with the values containing internal dashes to the beginning so they
|
|
@@ -1485,7 +1485,7 @@ export declare const viraTheme: import("theme-vir/dist/color-theme/color-theme.j
|
|
|
1485
1485
|
*
|
|
1486
1486
|
* @category Color
|
|
1487
1487
|
*/
|
|
1488
|
-
export declare const viraThemeDarkOverride: import("theme-vir").ColorThemeOverride<{
|
|
1488
|
+
export declare const viraThemeDarkOverride: import("theme-vir/dist/color-theme/color-theme-init.js").ColorThemeOverride<{
|
|
1489
1489
|
readonly 'vira-red-foreground-highest-contrast': {
|
|
1490
1490
|
readonly foreground: import("lit-css-vars").SingleCssVarDefinition;
|
|
1491
1491
|
};
|
|
@@ -116,6 +116,10 @@ export type ViraFormField = ({
|
|
|
116
116
|
max: FullDate;
|
|
117
117
|
/** Timezone used to interpret the selected date. Defaults to the user's timezone. */
|
|
118
118
|
timezone: string;
|
|
119
|
+
/** Only show the date part of the selected date when in readonly mode. */
|
|
120
|
+
showDateOnly: boolean;
|
|
121
|
+
/** Only show the time part of the selected date when in readonly mode. */
|
|
122
|
+
showTimeOnly: boolean;
|
|
119
123
|
}> & CommonViraFormFields);
|
|
120
124
|
/**
|
|
121
125
|
* A collection of form fields for `ViraForm`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { assert } from '@augment-vir/assert';
|
|
2
2
|
import { LocalStorageClient } from '@electrovir/local-storage-client';
|
|
3
3
|
import { defineShape, enumShape } from 'object-shape-tester';
|
|
4
|
-
import { applyColorThemeViaStyleElement } from 'theme-vir';
|
|
4
|
+
import { applyColorThemeViaStyleElement } from 'theme-vir/dist/color-theme/apply-color-theme.js';
|
|
5
5
|
import { listenTo } from 'typed-event-target';
|
|
6
6
|
import { viraTheme, viraThemeDarkOverride } from '../styles/vira-color-theme.js';
|
|
7
7
|
/**
|