@vonage/vivid 4.17.0 → 4.19.0-preview.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/custom-elements.json +4248 -4149
- package/date-time-picker/index.cjs +5 -0
- package/date-time-picker/index.js +3 -0
- package/dial-pad/index.cjs +1 -1
- package/dial-pad/index.js +1 -1
- package/dialog/index.cjs +1 -1
- package/dialog/index.js +1 -1
- package/divider/index.cjs +1 -1
- package/divider/index.js +1 -1
- package/elevation/index.cjs +1 -1
- package/elevation/index.js +1 -1
- package/empty-state/index.cjs +1 -1
- package/empty-state/index.js +1 -1
- package/fab/index.cjs +1 -1
- package/fab/index.js +1 -1
- package/file-picker/index.cjs +1 -1
- package/file-picker/index.js +1 -1
- package/header/index.cjs +1 -1
- package/header/index.js +1 -1
- package/icon/index.cjs +1 -1
- package/icon/index.js +1 -1
- package/index.cjs +136 -133
- package/index.js +45 -44
- package/layout/index.cjs +1 -1
- package/layout/index.js +1 -1
- package/lib/action-group/action-group.d.ts +449 -3
- package/lib/banner/banner.d.ts +449 -3
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +449 -1
- package/lib/checkbox/checkbox.d.ts +449 -4
- package/lib/components.d.ts +1 -0
- package/lib/date-picker/date-picker.d.ts +2182 -4
- package/lib/date-picker/date-picker.template.d.ts +2 -0
- package/lib/date-range-picker/date-range-picker.d.ts +1110 -4
- package/lib/date-range-picker/date-range-picker.template.d.ts +2 -0
- package/lib/date-time-picker/date-time-picker.d.ts +2175 -0
- package/lib/date-time-picker/date-time-picker.template.d.ts +2 -0
- package/lib/date-time-picker/definition.d.ts +1 -0
- package/lib/date-time-picker/locale.d.ts +9 -0
- package/lib/dialog/dialog.d.ts +449 -2
- package/lib/divider/divider.d.ts +448 -1
- package/lib/menu/menu.d.ts +446 -1
- package/lib/nav-disclosure/nav-disclosure.d.ts +449 -2
- package/lib/number-field/number-field.d.ts +450 -3
- package/lib/option/option.d.ts +4 -11
- package/lib/progress/progress.d.ts +449 -2
- package/lib/progress-ring/progress-ring.d.ts +449 -2
- package/lib/rich-text-editor/facades/vivid-prose-mirror.facade.d.ts +1 -0
- package/lib/rich-text-editor/rich-text-editor.d.ts +7 -4
- package/lib/searchable-select/searchable-select.d.ts +3 -0
- package/lib/select/select.d.ts +1 -5
- package/lib/selectable-box/selectable-box.d.ts +449 -2
- package/lib/slider/slider.d.ts +449 -3
- package/lib/split-button/split-button.d.ts +449 -3
- package/lib/switch/switch.d.ts +449 -2
- package/lib/tag-group/tag-group.d.ts +449 -2
- package/lib/text-anchor/text-anchor.d.ts +449 -1
- package/lib/text-area/text-area.d.ts +450 -3
- package/lib/text-field/text-field.d.ts +450 -7
- package/lib/time-picker/locale.d.ts +0 -2
- package/lib/time-picker/time-picker.d.ts +1053 -9
- package/lib/time-picker/time-picker.template.d.ts +2 -1
- package/locales/de-DE.cjs +29 -5
- package/locales/de-DE.js +29 -5
- package/locales/en-GB.cjs +29 -5
- package/locales/en-GB.js +29 -5
- package/locales/en-US.cjs +29 -5
- package/locales/en-US.js +29 -5
- package/locales/ja-JP.cjs +29 -5
- package/locales/ja-JP.js +29 -5
- package/locales/zh-CN.cjs +29 -5
- package/locales/zh-CN.js +29 -5
- package/menu/index.cjs +1 -1
- package/menu/index.js +1 -1
- package/menu-item/index.cjs +1 -1
- package/menu-item/index.js +1 -1
- package/nav/index.cjs +1 -1
- package/nav/index.js +1 -1
- package/nav-disclosure/index.cjs +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.cjs +1 -1
- package/nav-item/index.js +1 -1
- package/note/index.cjs +1 -1
- package/note/index.js +1 -1
- package/number-field/index.cjs +1 -1
- package/number-field/index.js +1 -1
- package/option/index.cjs +1 -1
- package/option/index.js +1 -1
- package/package.json +1 -1
- package/pagination/index.cjs +1 -1
- package/pagination/index.js +1 -1
- package/popup/index.cjs +1 -1
- package/popup/index.js +1 -1
- package/progress/index.cjs +1 -1
- package/progress/index.js +1 -1
- package/progress-ring/index.cjs +1 -1
- package/progress-ring/index.js +1 -1
- package/radio/index.cjs +1 -1
- package/radio/index.js +1 -1
- package/radio-group/index.cjs +1 -1
- package/radio-group/index.js +1 -1
- package/range-slider/index.cjs +1 -1
- package/range-slider/index.js +1 -1
- package/rich-text-editor/index.cjs +1 -1
- package/rich-text-editor/index.js +1 -1
- package/searchable-select/index.cjs +1 -1
- package/searchable-select/index.js +1 -1
- package/select/index.cjs +1 -1
- package/select/index.js +1 -1
- package/selectable-box/index.cjs +1 -1
- package/selectable-box/index.js +1 -1
- package/shared/Reflector.cjs +71 -0
- package/shared/Reflector.js +69 -0
- package/shared/affix.cjs +1 -1
- package/shared/affix.js +1 -1
- package/shared/anchor.cjs +0 -10
- package/shared/anchor.js +0 -10
- package/shared/aria/delegates-aria.d.ts +454 -0
- package/shared/base-progress.js +1 -1
- package/shared/breadcrumb-item.cjs +2 -1
- package/shared/breadcrumb-item.js +2 -1
- package/shared/button.cjs +2 -13
- package/shared/button.js +2 -13
- package/shared/{presentationDate.cjs → calendar-picker.template.cjs} +730 -900
- package/shared/{presentationDate.js → calendar-picker.template.js} +672 -845
- package/shared/datetime/dateTimeStr.d.ts +6 -0
- package/shared/datetime/presentationDate.d.ts +4 -0
- package/shared/{date-picker/calendar → datetime}/presentationDateRange.d.ts +3 -3
- package/shared/datetime/presentationDateTime.d.ts +4 -0
- package/{lib/time-picker/time → shared/datetime}/time.d.ts +1 -0
- package/shared/definition.cjs +1 -1
- package/shared/definition.js +1 -1
- package/shared/definition11.cjs +8 -11
- package/shared/definition11.js +8 -11
- package/shared/definition14.cjs +2 -2
- package/shared/definition14.js +2 -2
- package/shared/definition15.cjs +3 -10
- package/shared/definition15.js +3 -10
- package/shared/definition16.cjs +29 -33
- package/shared/definition16.js +29 -33
- package/shared/definition17.cjs +1 -1
- package/shared/definition17.js +1 -1
- package/shared/definition18.cjs +56 -91
- package/shared/definition18.js +56 -91
- package/shared/definition19.cjs +68 -32
- package/shared/definition19.js +58 -22
- package/shared/definition20.cjs +253 -220
- package/shared/definition20.js +254 -220
- package/shared/definition21.cjs +200 -286
- package/shared/definition21.js +198 -284
- package/shared/definition22.cjs +302 -31
- package/shared/definition22.js +301 -30
- package/shared/definition23.cjs +37 -58
- package/shared/definition23.js +36 -57
- package/shared/definition24.cjs +50 -70
- package/shared/definition24.js +49 -69
- package/shared/definition25.cjs +75 -2475
- package/shared/definition25.js +74 -2475
- package/shared/definition26.cjs +2480 -50
- package/shared/definition26.js +2479 -48
- package/shared/definition27.cjs +53 -271
- package/shared/definition27.js +52 -269
- package/shared/definition28.cjs +271 -48
- package/shared/definition28.js +269 -47
- package/shared/definition29.cjs +37 -764
- package/shared/definition29.js +36 -758
- package/shared/definition3.cjs +2 -9
- package/shared/definition3.js +2 -9
- package/shared/definition30.cjs +739 -57
- package/shared/definition30.js +733 -56
- package/shared/definition31.cjs +93 -22
- package/shared/definition31.js +92 -21
- package/shared/definition32.cjs +28 -10
- package/shared/definition32.js +27 -9
- package/shared/definition33.cjs +10 -52
- package/shared/definition33.js +9 -51
- package/shared/definition34.cjs +30 -411
- package/shared/definition34.js +30 -412
- package/shared/definition35.cjs +422 -52
- package/shared/definition35.js +423 -53
- package/shared/definition36.cjs +54 -216
- package/shared/definition36.js +54 -215
- package/shared/definition37.cjs +201 -71
- package/shared/definition37.js +200 -70
- package/shared/definition38.cjs +53 -48
- package/shared/definition38.js +51 -46
- package/shared/definition39.cjs +57 -263
- package/shared/definition39.js +56 -262
- package/shared/definition4.cjs +2 -2
- package/shared/definition4.js +2 -2
- package/shared/definition40.cjs +220 -148
- package/shared/definition40.js +220 -148
- package/shared/definition41.cjs +143 -567
- package/shared/definition41.js +143 -568
- package/shared/definition42.cjs +596 -12573
- package/shared/definition42.js +596 -12573
- package/shared/definition43.cjs +13489 -1058
- package/shared/definition43.js +13489 -1059
- package/shared/definition44.cjs +968 -696
- package/shared/definition44.js +970 -697
- package/shared/definition45.cjs +850 -105
- package/shared/definition45.js +850 -104
- package/shared/definition46.cjs +110 -90
- package/shared/definition46.js +108 -88
- package/shared/definition47.cjs +88 -464
- package/shared/definition47.js +87 -463
- package/shared/definition48.cjs +457 -111
- package/shared/definition48.js +456 -110
- package/shared/definition49.cjs +103 -109
- package/shared/definition49.js +102 -108
- package/shared/definition5.cjs +3 -3
- package/shared/definition5.js +3 -3
- package/shared/definition50.cjs +136 -14
- package/shared/definition50.js +135 -13
- package/shared/definition51.cjs +16 -115
- package/shared/definition51.js +15 -114
- package/shared/definition52.cjs +79 -486
- package/shared/definition52.js +78 -485
- package/shared/definition53.cjs +503 -24
- package/shared/definition53.js +502 -23
- package/shared/definition54.cjs +23 -137
- package/shared/definition54.js +22 -136
- package/shared/definition55.cjs +96 -241
- package/shared/definition55.js +95 -241
- package/shared/definition56.cjs +261 -61
- package/shared/definition56.js +260 -60
- package/shared/definition57.cjs +419 -788
- package/shared/definition57.js +420 -789
- package/shared/definition58.cjs +27 -144
- package/shared/definition58.js +27 -143
- package/shared/definition59.cjs +83 -54
- package/shared/definition59.js +82 -53
- package/shared/definition6.cjs +1 -1
- package/shared/definition6.js +1 -1
- package/shared/definition60.cjs +80 -165
- package/shared/definition60.js +79 -163
- package/shared/definition61.cjs +143 -230
- package/shared/definition61.js +141 -229
- package/shared/definition62.cjs +233 -69344
- package/shared/definition62.js +232 -69343
- package/shared/definition63.cjs +69381 -28
- package/shared/definition63.js +69379 -26
- package/shared/definition64.cjs +28 -2168
- package/shared/definition64.js +27 -2166
- package/shared/definition65.cjs +2195 -0
- package/shared/definition65.js +2190 -0
- package/shared/definition7.cjs +1 -1
- package/shared/definition7.js +1 -1
- package/shared/definition8.cjs +3 -9
- package/shared/definition8.js +3 -9
- package/shared/definition9.cjs +1 -1
- package/shared/definition9.js +1 -1
- package/shared/delegates-aria.cjs +69 -0
- package/shared/delegates-aria.js +67 -0
- package/shared/form-associated.js +1 -1
- package/shared/form-elements.cjs +1 -1
- package/shared/form-elements.js +1 -1
- package/shared/foundation/anchor/anchor.d.ts +0 -8
- package/shared/foundation/button/button.d.ts +449 -7
- package/shared/foundation/listbox/listbox.d.ts +0 -9
- package/shared/listbox.cjs +4 -30
- package/shared/listbox.js +4 -30
- package/shared/localization/Locale.d.ts +6 -2
- package/shared/option.cjs +38 -50
- package/shared/option.js +39 -51
- package/shared/picker-field/locale.d.ts +4 -0
- package/shared/picker-field/mixins/calendar-picker.d.ts +558 -0
- package/shared/{date-picker/locale.d.ts → picker-field/mixins/calendar-picker.locale.d.ts} +1 -3
- package/shared/picker-field/mixins/calendar-picker.template.d.ts +555 -0
- package/shared/picker-field/mixins/calendar-segments/calendarGrid.d.ts +17 -0
- package/shared/{date-picker/calendar → picker-field/mixins/calendar-segments}/monthPickerGrid.d.ts +3 -3
- package/{lib/time-picker → shared/picker-field/mixins}/inline-time-picker/columns.d.ts +1 -1
- package/{lib/time-picker → shared/picker-field/mixins}/inline-time-picker/inline-time-picker.d.ts +2 -2
- package/{lib/time-picker/time/picker.d.ts → shared/picker-field/mixins/inline-time-picker/picker-option.d.ts} +1 -1
- package/shared/picker-field/mixins/min-max-calendar-picker.d.ts +1110 -0
- package/shared/picker-field/mixins/single-date-picker.d.ts +1626 -0
- package/shared/picker-field/mixins/single-value-picker.d.ts +518 -0
- package/shared/picker-field/mixins/time-selection-picker.d.ts +1053 -0
- package/shared/picker-field/mixins/time-selection-picker.template.d.ts +1050 -0
- package/shared/picker-field/picker-field.d.ts +11 -0
- package/shared/picker-field/picker-field.form-associated.d.ts +11 -0
- package/shared/picker-field/picker-field.template.d.ts +7 -0
- package/shared/picker-field.template.cjs +315 -0
- package/shared/picker-field.template.js +310 -0
- package/shared/single-date-picker.cjs +46 -0
- package/shared/single-date-picker.js +44 -0
- package/shared/single-value-picker.cjs +77 -0
- package/shared/single-value-picker.js +75 -0
- package/shared/slider.template.cjs +3 -3
- package/shared/slider.template.js +3 -3
- package/shared/text-anchor.cjs +2 -1
- package/shared/text-anchor.js +2 -1
- package/shared/text-anchor.template.cjs +3 -5
- package/shared/text-anchor.template.js +3 -5
- package/shared/text-field.cjs +2 -555
- package/shared/text-field.js +2 -554
- package/shared/time-selection-picker.template.cjs +776 -0
- package/shared/time-selection-picker.template.js +767 -0
- package/shared/vivid-element.cjs +1 -1
- package/shared/vivid-element.js +1 -1
- package/side-drawer/index.cjs +1 -1
- package/side-drawer/index.js +1 -1
- package/slider/index.cjs +1 -1
- package/slider/index.js +1 -1
- package/split-button/index.cjs +1 -1
- package/split-button/index.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- package/styles/tokens/vivid-2-compat.css +1 -1
- package/switch/index.cjs +1 -1
- package/switch/index.js +1 -1
- package/tab/index.cjs +1 -1
- package/tab/index.js +1 -1
- package/tab-panel/index.cjs +1 -1
- package/tab-panel/index.js +1 -1
- package/tabs/index.cjs +1 -1
- package/tabs/index.js +1 -1
- package/tag/index.cjs +1 -1
- package/tag/index.js +1 -1
- package/tag-group/index.cjs +1 -1
- package/tag-group/index.js +1 -1
- package/text-anchor/index.cjs +1 -1
- package/text-anchor/index.js +1 -1
- package/text-area/index.cjs +1 -1
- package/text-area/index.js +1 -1
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +1 -1
- package/time-picker/index.cjs +1 -1
- package/time-picker/index.js +1 -1
- package/toggletip/index.cjs +1 -1
- package/toggletip/index.js +1 -1
- package/tooltip/index.cjs +1 -1
- package/tooltip/index.js +1 -1
- package/tree-item/index.cjs +1 -1
- package/tree-item/index.js +1 -1
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +1 -1
- package/video-player/index.cjs +1 -1
- package/video-player/index.js +1 -1
- package/vivid.api.json +286 -1144
- package/lib/time-picker/time-picker.form-associated.d.ts +0 -11
- package/shared/aria-global.cjs +0 -93
- package/shared/aria-global.js +0 -91
- package/shared/date-picker/calendar/calendarGrid.d.ts +0 -17
- package/shared/date-picker/calendar/presentationDate.d.ts +0 -4
- package/shared/date-picker/date-picker-base.d.ts +0 -21
- package/shared/date-picker/date-picker-base.form-associated.d.ts +0 -11
- package/shared/date-picker/date-picker-base.template.d.ts +0 -3
- package/shared/foundation/patterns/aria-global.d.ts +0 -21
- package/shared/foundation/patterns/index.d.ts +0 -1
- package/shared/text-field2.cjs +0 -5
- package/shared/text-field2.js +0 -3
- package/shared/trapped-focus.cjs +0 -35
- package/shared/trapped-focus.js +0 -33
- /package/shared/{date-picker/calendar → datetime}/dateRange.d.ts +0 -0
- /package/shared/{date-picker/calendar → datetime}/dateStr.d.ts +0 -0
- /package/shared/{date-picker/calendar → datetime}/month.d.ts +0 -0
- /package/{lib/time-picker/time → shared/datetime}/presentationTime.d.ts +0 -0
- /package/shared/{date-picker/calendar → datetime}/year.d.ts +0 -0
- /package/shared/{date-picker/calendar → picker-field/mixins/calendar-segments}/segment.d.ts +0 -0
- /package/{lib/time-picker → shared/picker-field/mixins}/inline-time-picker/definition.d.ts +0 -0
- /package/{lib/time-picker → shared/picker-field/mixins}/inline-time-picker/inline-time-picker.template.d.ts +0 -0
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FormAssociated } from '../../shared/foundation/form-associated/form-associated';
|
|
2
|
-
import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
|
|
3
|
-
declare class _TimePicker extends VividElement {
|
|
4
|
-
}
|
|
5
|
-
interface _TimePicker extends FormAssociated {
|
|
6
|
-
}
|
|
7
|
-
declare const FormAssociatedTimePicker_base: typeof _TimePicker;
|
|
8
|
-
export declare class FormAssociatedTimePicker extends FormAssociatedTimePicker_base {
|
|
9
|
-
proxy: HTMLInputElement;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
package/shared/aria-global.cjs
DELETED
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const vividElement = require('./vivid-element.cjs');
|
|
4
|
-
|
|
5
|
-
var __defProp = Object.defineProperty;
|
|
6
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
7
|
-
var result = void 0 ;
|
|
8
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
9
|
-
if (decorator = decorators[i])
|
|
10
|
-
result = (decorator(target, key, result) ) || result;
|
|
11
|
-
if (result) __defProp(target, key, result);
|
|
12
|
-
return result;
|
|
13
|
-
};
|
|
14
|
-
class ARIAGlobalStatesAndProperties {
|
|
15
|
-
}
|
|
16
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
17
|
-
__decorateClass([
|
|
18
|
-
vividElement.attr({ attribute: "aria-atomic" })
|
|
19
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic");
|
|
20
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
21
|
-
__decorateClass([
|
|
22
|
-
vividElement.attr({ attribute: "aria-busy" })
|
|
23
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaBusy");
|
|
24
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
25
|
-
__decorateClass([
|
|
26
|
-
vividElement.attr({ attribute: "aria-controls" })
|
|
27
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaControls");
|
|
28
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
29
|
-
__decorateClass([
|
|
30
|
-
vividElement.attr({ attribute: "aria-current" })
|
|
31
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent");
|
|
32
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
33
|
-
__decorateClass([
|
|
34
|
-
vividElement.attr({ attribute: "aria-describedby" })
|
|
35
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby");
|
|
36
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
37
|
-
__decorateClass([
|
|
38
|
-
vividElement.attr({ attribute: "aria-details" })
|
|
39
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaDetails");
|
|
40
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
41
|
-
__decorateClass([
|
|
42
|
-
vividElement.attr({ attribute: "aria-disabled" })
|
|
43
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled");
|
|
44
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
45
|
-
__decorateClass([
|
|
46
|
-
vividElement.attr({ attribute: "aria-errormessage" })
|
|
47
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage");
|
|
48
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
49
|
-
__decorateClass([
|
|
50
|
-
vividElement.attr({ attribute: "aria-flowto" })
|
|
51
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto");
|
|
52
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
53
|
-
__decorateClass([
|
|
54
|
-
vividElement.attr({ attribute: "aria-haspopup" })
|
|
55
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup");
|
|
56
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
57
|
-
__decorateClass([
|
|
58
|
-
vividElement.attr({ attribute: "aria-hidden" })
|
|
59
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaHidden");
|
|
60
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
61
|
-
__decorateClass([
|
|
62
|
-
vividElement.attr({ attribute: "aria-invalid" })
|
|
63
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid");
|
|
64
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
65
|
-
__decorateClass([
|
|
66
|
-
vividElement.attr({ attribute: "aria-keyshortcuts" })
|
|
67
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts");
|
|
68
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
69
|
-
__decorateClass([
|
|
70
|
-
vividElement.attr({ attribute: "aria-label" })
|
|
71
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaLabel");
|
|
72
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
73
|
-
__decorateClass([
|
|
74
|
-
vividElement.attr({ attribute: "aria-labelledby" })
|
|
75
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby");
|
|
76
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
77
|
-
__decorateClass([
|
|
78
|
-
vividElement.attr({ attribute: "aria-live" })
|
|
79
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaLive");
|
|
80
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
81
|
-
__decorateClass([
|
|
82
|
-
vividElement.attr({ attribute: "aria-owns" })
|
|
83
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaOwns");
|
|
84
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
85
|
-
__decorateClass([
|
|
86
|
-
vividElement.attr({ attribute: "aria-relevant" })
|
|
87
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant");
|
|
88
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
89
|
-
__decorateClass([
|
|
90
|
-
vividElement.attr({ attribute: "aria-roledescription" })
|
|
91
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription");
|
|
92
|
-
|
|
93
|
-
exports.ARIAGlobalStatesAndProperties = ARIAGlobalStatesAndProperties;
|
package/shared/aria-global.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { a as attr } from './vivid-element.js';
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __decorateClass = (decorators, target, key, kind) => {
|
|
5
|
-
var result = void 0 ;
|
|
6
|
-
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
7
|
-
if (decorator = decorators[i])
|
|
8
|
-
result = (decorator(target, key, result) ) || result;
|
|
9
|
-
if (result) __defProp(target, key, result);
|
|
10
|
-
return result;
|
|
11
|
-
};
|
|
12
|
-
class ARIAGlobalStatesAndProperties {
|
|
13
|
-
}
|
|
14
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
15
|
-
__decorateClass([
|
|
16
|
-
attr({ attribute: "aria-atomic" })
|
|
17
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaAtomic");
|
|
18
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
19
|
-
__decorateClass([
|
|
20
|
-
attr({ attribute: "aria-busy" })
|
|
21
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaBusy");
|
|
22
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
23
|
-
__decorateClass([
|
|
24
|
-
attr({ attribute: "aria-controls" })
|
|
25
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaControls");
|
|
26
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
27
|
-
__decorateClass([
|
|
28
|
-
attr({ attribute: "aria-current" })
|
|
29
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaCurrent");
|
|
30
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
31
|
-
__decorateClass([
|
|
32
|
-
attr({ attribute: "aria-describedby" })
|
|
33
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaDescribedby");
|
|
34
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
35
|
-
__decorateClass([
|
|
36
|
-
attr({ attribute: "aria-details" })
|
|
37
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaDetails");
|
|
38
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
39
|
-
__decorateClass([
|
|
40
|
-
attr({ attribute: "aria-disabled" })
|
|
41
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaDisabled");
|
|
42
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
43
|
-
__decorateClass([
|
|
44
|
-
attr({ attribute: "aria-errormessage" })
|
|
45
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaErrormessage");
|
|
46
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
47
|
-
__decorateClass([
|
|
48
|
-
attr({ attribute: "aria-flowto" })
|
|
49
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaFlowto");
|
|
50
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
51
|
-
__decorateClass([
|
|
52
|
-
attr({ attribute: "aria-haspopup" })
|
|
53
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaHaspopup");
|
|
54
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
55
|
-
__decorateClass([
|
|
56
|
-
attr({ attribute: "aria-hidden" })
|
|
57
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaHidden");
|
|
58
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
59
|
-
__decorateClass([
|
|
60
|
-
attr({ attribute: "aria-invalid" })
|
|
61
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaInvalid");
|
|
62
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
63
|
-
__decorateClass([
|
|
64
|
-
attr({ attribute: "aria-keyshortcuts" })
|
|
65
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaKeyshortcuts");
|
|
66
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
67
|
-
__decorateClass([
|
|
68
|
-
attr({ attribute: "aria-label" })
|
|
69
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaLabel");
|
|
70
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
71
|
-
__decorateClass([
|
|
72
|
-
attr({ attribute: "aria-labelledby" })
|
|
73
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaLabelledby");
|
|
74
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
75
|
-
__decorateClass([
|
|
76
|
-
attr({ attribute: "aria-live" })
|
|
77
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaLive");
|
|
78
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
79
|
-
__decorateClass([
|
|
80
|
-
attr({ attribute: "aria-owns" })
|
|
81
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaOwns");
|
|
82
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
83
|
-
__decorateClass([
|
|
84
|
-
attr({ attribute: "aria-relevant" })
|
|
85
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaRelevant");
|
|
86
|
-
// @ts-expect-error Type is incorrectly non-optional
|
|
87
|
-
__decorateClass([
|
|
88
|
-
attr({ attribute: "aria-roledescription" })
|
|
89
|
-
], ARIAGlobalStatesAndProperties.prototype, "ariaRoledescription");
|
|
90
|
-
|
|
91
|
-
export { ARIAGlobalStatesAndProperties as A };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { DatePickerLocale } from '../locale';
|
|
2
|
-
import { type DateStr } from './dateStr';
|
|
3
|
-
import { type Month } from './month';
|
|
4
|
-
export interface Weekday {
|
|
5
|
-
name: string;
|
|
6
|
-
shortName: string;
|
|
7
|
-
}
|
|
8
|
-
export interface CalendarGridDate {
|
|
9
|
-
date: DateStr;
|
|
10
|
-
label: string;
|
|
11
|
-
isOutsideMonth: boolean;
|
|
12
|
-
}
|
|
13
|
-
export type CalendarGrid = {
|
|
14
|
-
weekdays: Weekday[];
|
|
15
|
-
grid: CalendarGridDate[][];
|
|
16
|
-
};
|
|
17
|
-
export declare const buildCalendarGrid: (month: Month, locale: DatePickerLocale) => CalendarGrid;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { DatePickerLocale } from '../locale';
|
|
2
|
-
import { type DateStr } from './dateStr';
|
|
3
|
-
export declare const formatPresentationDate: (dateStr: DateStr, locale: DatePickerLocale) => string;
|
|
4
|
-
export declare const parsePresentationDate: (presentationDate: string, locale: DatePickerLocale) => DateStr;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { FormElementHelperText, Localized, TrappedFocus } from '../patterns';
|
|
2
|
-
import { type DateStr } from './calendar/dateStr';
|
|
3
|
-
import { FormAssociatedDatePickerBase } from './date-picker-base.form-associated';
|
|
4
|
-
export declare abstract class DatePickerBase extends FormAssociatedDatePickerBase {
|
|
5
|
-
#private;
|
|
6
|
-
abstract label: string;
|
|
7
|
-
min: string;
|
|
8
|
-
max: string;
|
|
9
|
-
initialValue: string;
|
|
10
|
-
currentValue: string;
|
|
11
|
-
readOnly: boolean;
|
|
12
|
-
protected _adjustSelectedMonthToEnsureVisibilityOf(date: DateStr): boolean;
|
|
13
|
-
constructor();
|
|
14
|
-
connectedCallback(): void;
|
|
15
|
-
disconnectedCallback(): void;
|
|
16
|
-
protected abstract _getCustomValidationError(): string | null;
|
|
17
|
-
protected abstract _updatePresentationValue(): void;
|
|
18
|
-
protected abstract _getSelectedDates(): DateStr[];
|
|
19
|
-
}
|
|
20
|
-
export interface DatePickerBase extends Localized, FormElementHelperText, TrappedFocus {
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { FormAssociated } from '../foundation/form-associated/form-associated';
|
|
2
|
-
import { VividElement } from '../foundation/vivid-element/vivid-element';
|
|
3
|
-
declare class _DatePickerBase extends VividElement {
|
|
4
|
-
}
|
|
5
|
-
interface _DatePickerBase extends FormAssociated {
|
|
6
|
-
}
|
|
7
|
-
declare const FormAssociatedDatePickerBase_base: typeof _DatePickerBase;
|
|
8
|
-
export declare class FormAssociatedDatePickerBase extends FormAssociatedDatePickerBase_base {
|
|
9
|
-
proxy: HTMLInputElement;
|
|
10
|
-
}
|
|
11
|
-
export {};
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { VividElementDefinitionContext } from '../design-system/defineVividComponent';
|
|
2
|
-
import type { DatePickerBase } from './date-picker-base';
|
|
3
|
-
export declare const DatePickerBaseTemplate: (context: VividElementDefinitionContext) => import("@microsoft/fast-element").ViewTemplate<DatePickerBase, any>;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export declare class ARIAGlobalStatesAndProperties {
|
|
2
|
-
ariaAtomic: 'true' | 'false' | string | null;
|
|
3
|
-
ariaBusy: 'true' | 'false' | string | null;
|
|
4
|
-
ariaControls: string | null;
|
|
5
|
-
ariaCurrent: 'page' | 'step' | 'location' | 'date' | 'time' | 'true' | 'false' | string | null;
|
|
6
|
-
ariaDescribedby: string | null;
|
|
7
|
-
ariaDetails: string | null;
|
|
8
|
-
ariaDisabled: 'true' | 'false' | string | null;
|
|
9
|
-
ariaErrormessage: string | null;
|
|
10
|
-
ariaFlowto: string | null;
|
|
11
|
-
ariaHaspopup: 'false' | 'true' | 'menu' | 'listbox' | 'tree' | 'grid' | 'dialog' | string | null;
|
|
12
|
-
ariaHidden: 'false' | 'true' | string | null;
|
|
13
|
-
ariaInvalid: 'false' | 'true' | 'grammar' | 'spelling' | string | null;
|
|
14
|
-
ariaKeyshortcuts: string | null;
|
|
15
|
-
ariaLabel: string | null;
|
|
16
|
-
ariaLabelledby: string | null;
|
|
17
|
-
ariaLive: 'assertive' | 'off' | 'polite' | string | null;
|
|
18
|
-
ariaOwns: string | null;
|
|
19
|
-
ariaRelevant: 'additions' | 'additions text' | 'all' | 'removals' | 'text' | string | null;
|
|
20
|
-
ariaRoledescription: string | null;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './aria-global.js';
|
package/shared/text-field2.cjs
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
const styles = ":host{display:inline-block}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-fierce)}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.base:where(.disabled,:disabled).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.readonly):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.base:where(.readonly):where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-600);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.error):where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: var(--vvd-color-alert-500)}.base:where(.error):where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: transparent}.base:where(.success):where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: var(--vvd-color-success-500)}.base:where(.success):where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: transparent}.base{--_connotation-color-primary: var(--vvd-text-field-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-text-field-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-text-field-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-intermediate: var(--vvd-text-field-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-firm: var(--vvd-text-field-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-fierce: var(--vvd-text-field-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-faint: var(--vvd-text-field-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-text-field-accent-soft, var(--vvd-color-neutral-100))}.base{--_text-field-gutter-start: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;--_text-field-gutter-end: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;--_text-field-icon-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_text-field-border-radius: 8px;--_text-field-pill-border-radius: 24px;display:inline-grid;width:100%;gap:4px;grid-template-columns:min-content 1fr max-content}.base.size-condensed{--_text-field-gutter-start: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-gutter-end: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-icon-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_text-field-border-radius: 4px}@supports (user-select: none){.base{user-select:none}}.base:not(.disabled){--_low-ink-color: var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color: var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important;contain:inline-size!important;font:var(--vvd-typography-base);grid-column:1/4;grid-row:1}.char-count+.label:not(slot),.char-count+.label::slotted(label){grid-column:1/3}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base);grid-column:3/4}.fieldset{position:relative;display:flex;align-items:center;background-color:var(--_appearance-color-fill);font:var(--vvd-typography-base);grid-column:1/4;padding-block:0;transition:color .2s,background-color .2s}.fieldset:after{position:absolute;display:block;border-radius:inherit;block-size:100%;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:\"\";inline-size:100%;pointer-events:none;transition:box-shadow .2s}.fieldset:focus-visible{outline:none}.base>.fieldset{block-size:var(--_text-field-block-size)}.base:not(.shape-pill) .fieldset{border-radius:var(--_text-field-border-radius)}.base.shape-pill .fieldset{border-radius:var(--_text-field-pill-border-radius)}.wrapper{border-radius:inherit;block-size:100%;inline-size:100%}.control{border-radius:inherit;text-align:start}.control:not(slot),.control::slotted(input){width:100%!important;box-sizing:border-box!important;border:0 none!important;border-radius:inherit!important;margin:initial!important;appearance:none!important;background-color:transparent!important;block-size:100%!important;color:inherit!important;font:inherit;outline:transparent;padding-block:0!important;padding-inline:var(--_text-field-gutter-start) var(--_text-field-gutter-end)!important;text-align:inherit}.control:not(slot):disabled,.control::slotted(input:disabled){cursor:not-allowed!important;opacity:1!important;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control:not(slot)::placeholder{opacity:1!important;-webkit-text-fill-color:var(--_low-ink-color)!important}.control::slotted(input:-webkit-autofill),.control:not(slot):-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.has-icon .control:not(slot),.has-icon .control::slotted(input){padding-inline-start:calc(var(--_text-field-icon-size) + var(--_text-field-gutter-start) * 2)!important}.icon{position:absolute;z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);inset-block-start:50%;inset-inline-start:calc(100% + var(--_text-field-gutter-start));line-height:1;transform:translateY(-50%)}.leading-items-wrapper{position:relative}.base.no-leading .leading-items-wrapper{display:none}.action-items-wrapper{margin-inline-end:4px}.base:not(.action-items) .action-items-wrapper{display:none}@supports selector(:has(*)){.fieldset:has(.wrapper .control:focus-within):after{--focus-stroke-gap-color: transparent;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}}@supports not selector(:has(*)){.wrapper:focus-within:after{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent;position:absolute;z-index:1;display:block;border-radius:inherit;content:\"\";inset:0;pointer-events:none}}:host([internal-part]) .fieldset{background-color:transparent;font:var(--vvd-typography-heading-4);line-height:1.1}:host([internal-part]) .fieldset:not(:focus-within):after{block-size:1px;inset-block-end:0}@supports selector(:has(*)){:host([internal-part]) .fieldset:has(.action-items-wrapper:focus-within):after{block-size:1px;inset-block-end:0}}:host([internal-part]) .control{text-align:center}slot[name=_mirrored-helper-text]{display:none}";
|
|
4
|
-
|
|
5
|
-
exports.styles = styles;
|
package/shared/text-field2.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
const styles = ":host{display:inline-block}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-fierce)}.base:where(.hover,:hover):where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: var(--_connotation-color-faint);--_appearance-color-outline: transparent}.base:where(.disabled,:disabled){--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: var(--vvd-color-neutral-100);--_appearance-color-outline: var(--vvd-color-neutral-300)}.base:where(.disabled,:disabled).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.readonly):where(:not(.disabled,:disabled)){--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-neutral-200);--_appearance-color-outline: var(--vvd-color-neutral-400)}.base:where(.readonly):where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-600);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.error):where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: var(--vvd-color-alert-500)}.base:where(.error):where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-alert-50);--_appearance-color-outline: transparent}.base:where(.success):where(:not(.disabled,:disabled)){--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: var(--vvd-color-success-500)}.base:where(.success):where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text: notSet;--_appearance-color-fill: var(--vvd-color-success-50);--_appearance-color-outline: transparent}.base{--_connotation-color-primary: var(--vvd-text-field-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-text-field-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-text-field-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-intermediate: var(--vvd-text-field-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-firm: var(--vvd-text-field-accent-firm, var(--vvd-color-canvas-text));--_connotation-color-fierce: var(--vvd-text-field-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-faint: var(--vvd-text-field-accent-faint, var(--vvd-color-neutral-50));--_connotation-color-soft: var(--vvd-text-field-accent-soft, var(--vvd-color-neutral-100))}.base{--_text-field-gutter-start: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;--_text-field-gutter-end: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))*.4) ;--_text-field-icon-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-block-size: calc(1px*(40 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_text-field-border-radius: 8px;--_text-field-pill-border-radius: 24px;display:inline-grid;width:100%;gap:4px;grid-template-columns:min-content 1fr max-content}.base.size-condensed{--_text-field-gutter-start: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-gutter-end: calc(1px*(24 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-icon-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))/2) ;--_text-field-block-size: calc(1px*(32 + 4*clamp(-1, var(--vvd-size-density, 0), 2))) ;--_text-field-border-radius: 4px}@supports (user-select: none){.base{user-select:none}}.base:not(.disabled){--_low-ink-color: var(--vvd-color-neutral-600)}.base.disabled{--_low-ink-color: var(--_appearance-color-text)}.label:not(slot),.label::slotted(label){box-sizing:initial!important;padding:initial!important;margin:initial!important;color:var(--vvd-color-canvas-text)!important;contain:inline-size!important;font:var(--vvd-typography-base);grid-column:1/4;grid-row:1}.char-count+.label:not(slot),.char-count+.label::slotted(label){grid-column:1/3}.char-count{color:var(--_low-ink-color);font:var(--vvd-typography-base);grid-column:3/4}.fieldset{position:relative;display:flex;align-items:center;background-color:var(--_appearance-color-fill);font:var(--vvd-typography-base);grid-column:1/4;padding-block:0;transition:color .2s,background-color .2s}.fieldset:after{position:absolute;display:block;border-radius:inherit;block-size:100%;box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);content:\"\";inline-size:100%;pointer-events:none;transition:box-shadow .2s}.fieldset:focus-visible{outline:none}.base>.fieldset{block-size:var(--_text-field-block-size)}.base:not(.shape-pill) .fieldset{border-radius:var(--_text-field-border-radius)}.base.shape-pill .fieldset{border-radius:var(--_text-field-pill-border-radius)}.wrapper{border-radius:inherit;block-size:100%;inline-size:100%}.control{border-radius:inherit;text-align:start}.control:not(slot),.control::slotted(input){width:100%!important;box-sizing:border-box!important;border:0 none!important;border-radius:inherit!important;margin:initial!important;appearance:none!important;background-color:transparent!important;block-size:100%!important;color:inherit!important;font:inherit;outline:transparent;padding-block:0!important;padding-inline:var(--_text-field-gutter-start) var(--_text-field-gutter-end)!important;text-align:inherit}.control:not(slot):disabled,.control::slotted(input:disabled){cursor:not-allowed!important;opacity:1!important;-webkit-text-fill-color:var(--_appearance-color-text)!important}.control:not(slot)::placeholder{opacity:1!important;-webkit-text-fill-color:var(--_low-ink-color)!important}.control::slotted(input:-webkit-autofill),.control:not(slot):-webkit-autofill{-webkit-box-shadow:0 0 0 1000px var(--_appearance-color-fill) inset;-webkit-text-fill-color:var(--_appearance-color-text)!important}.has-icon .control:not(slot),.has-icon .control::slotted(input){padding-inline-start:calc(var(--_text-field-icon-size) + var(--_text-field-gutter-start) * 2)!important}.icon{position:absolute;z-index:1;color:var(--_low-ink-color);font-size:var(--_text-field-icon-size);inset-block-start:50%;inset-inline-start:calc(100% + var(--_text-field-gutter-start));line-height:1;transform:translateY(-50%)}.leading-items-wrapper{position:relative}.base.no-leading .leading-items-wrapper{display:none}.action-items-wrapper{margin-inline-end:4px}.base:not(.action-items) .action-items-wrapper{display:none}@supports selector(:has(*)){.fieldset:has(.wrapper .control:focus-within):after{--focus-stroke-gap-color: transparent;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}}@supports not selector(:has(*)){.wrapper:focus-within:after{box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px));--focus-stroke-gap-color: transparent;position:absolute;z-index:1;display:block;border-radius:inherit;content:\"\";inset:0;pointer-events:none}}:host([internal-part]) .fieldset{background-color:transparent;font:var(--vvd-typography-heading-4);line-height:1.1}:host([internal-part]) .fieldset:not(:focus-within):after{block-size:1px;inset-block-end:0}@supports selector(:has(*)){:host([internal-part]) .fieldset:has(.action-items-wrapper:focus-within):after{block-size:1px;inset-block-end:0}}:host([internal-part]) .control{text-align:center}slot[name=_mirrored-helper-text]{display:none}";
|
|
2
|
-
|
|
3
|
-
export { styles as s };
|
package/shared/trapped-focus.cjs
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
class TrappedFocus {
|
|
4
|
-
static {
|
|
5
|
-
this.ignoredEvents = /* @__PURE__ */ new WeakSet();
|
|
6
|
-
}
|
|
7
|
-
static ignoreEvent(event) {
|
|
8
|
-
this.ignoredEvents.add(event);
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* @returns Whether focus was trapped.
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
_trappedFocus(event, getFocusableEls) {
|
|
15
|
-
if (!TrappedFocus.ignoredEvents.has(event) && event.key === "Tab") {
|
|
16
|
-
const focusableEls = getFocusableEls();
|
|
17
|
-
const firstFocusableEl = focusableEls[0];
|
|
18
|
-
const lastFocusableEl = focusableEls[focusableEls.length - 1];
|
|
19
|
-
if (event.shiftKey) {
|
|
20
|
-
if (this.shadowRoot.activeElement === firstFocusableEl) {
|
|
21
|
-
lastFocusableEl.focus();
|
|
22
|
-
return true;
|
|
23
|
-
}
|
|
24
|
-
} else {
|
|
25
|
-
if (this.shadowRoot.activeElement === lastFocusableEl) {
|
|
26
|
-
firstFocusableEl.focus();
|
|
27
|
-
return true;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
exports.TrappedFocus = TrappedFocus;
|
package/shared/trapped-focus.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
class TrappedFocus {
|
|
2
|
-
static {
|
|
3
|
-
this.ignoredEvents = /* @__PURE__ */ new WeakSet();
|
|
4
|
-
}
|
|
5
|
-
static ignoreEvent(event) {
|
|
6
|
-
this.ignoredEvents.add(event);
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @returns Whether focus was trapped.
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
_trappedFocus(event, getFocusableEls) {
|
|
13
|
-
if (!TrappedFocus.ignoredEvents.has(event) && event.key === "Tab") {
|
|
14
|
-
const focusableEls = getFocusableEls();
|
|
15
|
-
const firstFocusableEl = focusableEls[0];
|
|
16
|
-
const lastFocusableEl = focusableEls[focusableEls.length - 1];
|
|
17
|
-
if (event.shiftKey) {
|
|
18
|
-
if (this.shadowRoot.activeElement === firstFocusableEl) {
|
|
19
|
-
lastFocusableEl.focus();
|
|
20
|
-
return true;
|
|
21
|
-
}
|
|
22
|
-
} else {
|
|
23
|
-
if (this.shadowRoot.activeElement === lastFocusableEl) {
|
|
24
|
-
firstFocusableEl.focus();
|
|
25
|
-
return true;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
return false;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export { TrappedFocus as T };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|