@vonage/vivid 3.49.0 → 3.50.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/accordion/index.cjs +0 -2
- package/accordion/index.js +0 -2
- package/accordion-item/index.cjs +0 -2
- package/accordion-item/index.js +0 -2
- package/alert/index.cjs +0 -2
- package/alert/index.js +0 -2
- package/audio-player/index.cjs +0 -2
- package/audio-player/index.js +0 -2
- package/banner/index.cjs +0 -2
- package/banner/index.js +0 -2
- package/breadcrumb-item/index.cjs +0 -2
- package/breadcrumb-item/index.js +0 -2
- package/button/index.cjs +0 -2
- package/button/index.js +0 -2
- package/checkbox/index.cjs +0 -3
- package/checkbox/index.js +0 -3
- package/combobox/index.cjs +4 -4
- package/combobox/index.js +4 -4
- package/custom-elements.json +749 -230
- package/data-grid/index.cjs +0 -2
- package/data-grid/index.js +0 -2
- package/date-picker/index.cjs +3 -2
- package/date-picker/index.js +3 -2
- package/date-range-picker/index.cjs +3 -2
- package/date-range-picker/index.js +3 -2
- package/dialog/index.cjs +0 -3
- package/dialog/index.js +0 -3
- package/fab/index.cjs +0 -2
- package/fab/index.js +0 -2
- package/file-picker/index.cjs +1 -2
- package/file-picker/index.js +1 -2
- package/focus/index.cjs +1 -1
- package/focus/index.js +1 -1
- package/index.cjs +20 -15
- package/index.js +9 -7
- package/lib/components.d.ts +1 -0
- package/lib/file-picker/file-picker.d.ts +2 -2
- package/lib/menu/definition.d.ts +2 -2
- package/lib/radio-group/definition.d.ts +2 -2
- package/lib/switch/switch.d.ts +2 -2
- package/lib/time-picker/definition.d.ts +3 -0
- package/lib/time-picker/locale.d.ts +12 -0
- package/lib/time-picker/time/picker.d.ts +9 -0
- package/lib/time-picker/time/presentationTime.d.ts +5 -0
- package/lib/time-picker/time/time.d.ts +15 -0
- package/lib/time-picker/time-picker.d.ts +16 -0
- package/lib/time-picker/time-picker.form-associated.d.ts +10 -0
- package/lib/time-picker/time-picker.template.d.ts +4 -0
- package/listbox/index.cjs +4 -12
- package/listbox/index.js +4 -12
- package/locales/en-GB.cjs +15 -0
- package/locales/en-GB.js +15 -0
- package/locales/en-US.cjs +15 -0
- package/locales/en-US.js +15 -0
- package/locales/ja-JP.cjs +15 -0
- package/locales/ja-JP.js +15 -0
- package/locales/zh-CN.cjs +15 -0
- package/locales/zh-CN.js +15 -0
- package/menu/index.cjs +0 -2
- package/menu/index.js +0 -2
- package/menu-item/index.cjs +0 -2
- package/menu-item/index.js +0 -2
- package/nav-disclosure/index.cjs +0 -2
- package/nav-disclosure/index.js +0 -2
- package/nav-item/index.cjs +0 -2
- package/nav-item/index.js +0 -2
- package/number-field/index.cjs +1 -2
- package/number-field/index.js +1 -2
- package/option/index.cjs +0 -5
- package/option/index.js +0 -5
- package/package.json +1 -1
- package/pagination/index.cjs +0 -2
- package/pagination/index.js +0 -2
- package/popup/index.cjs +0 -2
- package/popup/index.js +0 -2
- package/radio/index.cjs +0 -3
- package/radio/index.js +0 -3
- package/select/index.cjs +0 -3
- package/select/index.js +0 -3
- package/selectable-box/index.cjs +0 -3
- package/selectable-box/index.js +0 -3
- package/shared/date-picker/date-picker-base.d.ts +2 -2
- package/shared/definition.cjs +2 -6
- package/shared/definition.js +2 -6
- package/shared/definition11.cjs +1 -2
- package/shared/definition11.js +1 -2
- package/shared/definition15.cjs +2 -6
- package/shared/definition15.js +2 -6
- package/shared/definition16.cjs +1 -1
- package/shared/definition16.js +1 -1
- package/shared/definition17.cjs +1 -4
- package/shared/definition17.js +1 -4
- package/shared/definition18.cjs +2 -4
- package/shared/definition18.js +0 -2
- package/shared/definition19.cjs +2 -4
- package/shared/definition19.js +0 -2
- package/shared/definition20.cjs +1 -4
- package/shared/definition20.js +1 -4
- package/shared/definition23.cjs +1 -2
- package/shared/definition23.js +1 -2
- package/shared/definition24.cjs +2 -5
- package/shared/definition24.js +2 -5
- package/shared/definition28.cjs +2 -3
- package/shared/definition28.js +2 -3
- package/shared/definition30.cjs +2 -3
- package/shared/definition30.js +2 -3
- package/shared/definition31.cjs +2 -3
- package/shared/definition31.js +2 -3
- package/shared/definition34.cjs +1 -1
- package/shared/definition34.js +1 -1
- package/shared/definition35.cjs +2 -7
- package/shared/definition35.js +2 -7
- package/shared/definition4.cjs +3 -3
- package/shared/definition4.js +4 -4
- package/shared/definition40.cjs +3 -7
- package/shared/definition40.js +3 -7
- package/shared/definition41.cjs +5 -6
- package/shared/definition41.js +4 -5
- package/shared/definition42.cjs +5 -10
- package/shared/definition42.js +3 -8
- package/shared/definition44.cjs +1 -2
- package/shared/definition44.js +1 -2
- package/shared/definition45.cjs +1 -2
- package/shared/definition45.js +1 -2
- package/shared/definition46.cjs +1 -2
- package/shared/definition46.js +1 -2
- package/shared/definition48.cjs +2 -6
- package/shared/definition48.js +2 -6
- package/shared/definition5.cjs +1 -2
- package/shared/definition5.js +1 -2
- package/shared/definition51.cjs +2 -6
- package/shared/definition51.js +2 -6
- package/shared/definition52.cjs +2 -3
- package/shared/definition52.js +2 -3
- package/shared/definition53.cjs +1 -1
- package/shared/definition53.js +1 -1
- package/shared/definition54.cjs +768 -90
- package/shared/definition54.js +767 -89
- package/shared/definition55.cjs +75 -57
- package/shared/definition55.js +74 -56
- package/shared/definition56.cjs +100 -71
- package/shared/definition56.js +99 -70
- package/shared/definition57.cjs +76 -291
- package/shared/definition57.js +77 -292
- package/shared/definition58.cjs +303 -13
- package/shared/definition58.js +302 -13
- package/shared/definition61.cjs +20 -0
- package/shared/definition61.js +17 -0
- package/shared/definition9.cjs +1 -2
- package/shared/definition9.js +1 -2
- package/shared/icon.cjs +1 -1
- package/shared/icon.js +1 -1
- package/shared/localization/Locale.d.ts +2 -0
- package/shared/patterns/index.d.ts +1 -0
- package/shared/patterns/trapped-focus.d.ts +4 -0
- package/shared/presentationDate.cjs +15 -34
- package/shared/presentationDate.js +15 -34
- package/shared/text-field.cjs +1 -1
- package/shared/text-field.js +1 -1
- package/shared/trapped-focus.cjs +29 -0
- package/shared/trapped-focus.js +27 -0
- package/slider/index.cjs +0 -2
- package/slider/index.js +0 -2
- package/split-button/index.cjs +0 -2
- package/split-button/index.js +0 -2
- 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 +0 -2
- package/switch/index.js +0 -2
- package/tab/index.cjs +0 -3
- package/tab/index.js +0 -3
- package/tabs/index.cjs +0 -3
- package/tabs/index.js +0 -3
- package/tag/index.cjs +0 -3
- package/tag/index.js +0 -3
- package/text-area/index.cjs +0 -2
- package/text-area/index.js +0 -2
- package/text-field/index.cjs +1 -1
- package/text-field/index.js +1 -1
- package/time-picker/index.cjs +38 -0
- package/time-picker/index.js +36 -0
- package/toggletip/index.cjs +1 -3
- package/toggletip/index.js +1 -3
- package/tooltip/index.cjs +1 -3
- package/tooltip/index.js +1 -3
- package/tree-item/index.cjs +1 -4
- package/tree-item/index.js +1 -4
- package/tree-view/index.cjs +1 -1
- package/tree-view/index.js +1 -1
- package/vivid.api.json +111 -42
- package/style.css +0 -1
package/locales/en-GB.cjs
CHANGED
|
@@ -74,6 +74,21 @@ const enGB = {
|
|
|
74
74
|
(maxDate) => `The end date must be ${maxDate} or earlier.`
|
|
75
75
|
)
|
|
76
76
|
},
|
|
77
|
+
timePicker: {
|
|
78
|
+
defaultTo12HourClock: false,
|
|
79
|
+
chooseTimeLabel: "Choose time",
|
|
80
|
+
changeTimeLabel: (
|
|
81
|
+
/* istanbul ignore next */
|
|
82
|
+
(time) => `Change time, ${time}`
|
|
83
|
+
),
|
|
84
|
+
hoursLabel: "hours",
|
|
85
|
+
minutesLabel: "minutes",
|
|
86
|
+
secondsLabel: "seconds",
|
|
87
|
+
meridiesLabel: "AM/PM",
|
|
88
|
+
clearLabel: "Clear",
|
|
89
|
+
okLabel: "OK",
|
|
90
|
+
invalidTimeError: "Please enter a valid time."
|
|
91
|
+
},
|
|
77
92
|
filePicker: {
|
|
78
93
|
invalidFileTypeError: "You can't select files of this type.",
|
|
79
94
|
maxFilesExceededError: "You can't select any more files.",
|
package/locales/en-GB.js
CHANGED
|
@@ -72,6 +72,21 @@ const enGB = {
|
|
|
72
72
|
(maxDate) => `The end date must be ${maxDate} or earlier.`
|
|
73
73
|
)
|
|
74
74
|
},
|
|
75
|
+
timePicker: {
|
|
76
|
+
defaultTo12HourClock: false,
|
|
77
|
+
chooseTimeLabel: "Choose time",
|
|
78
|
+
changeTimeLabel: (
|
|
79
|
+
/* istanbul ignore next */
|
|
80
|
+
(time) => `Change time, ${time}`
|
|
81
|
+
),
|
|
82
|
+
hoursLabel: "hours",
|
|
83
|
+
minutesLabel: "minutes",
|
|
84
|
+
secondsLabel: "seconds",
|
|
85
|
+
meridiesLabel: "AM/PM",
|
|
86
|
+
clearLabel: "Clear",
|
|
87
|
+
okLabel: "OK",
|
|
88
|
+
invalidTimeError: "Please enter a valid time."
|
|
89
|
+
},
|
|
75
90
|
filePicker: {
|
|
76
91
|
invalidFileTypeError: "You can't select files of this type.",
|
|
77
92
|
maxFilesExceededError: "You can't select any more files.",
|
package/locales/en-US.cjs
CHANGED
|
@@ -74,6 +74,21 @@ const enUS = {
|
|
|
74
74
|
(maxDate) => `The end date must be ${maxDate} or earlier.`
|
|
75
75
|
)
|
|
76
76
|
},
|
|
77
|
+
timePicker: {
|
|
78
|
+
defaultTo12HourClock: true,
|
|
79
|
+
chooseTimeLabel: "Choose time",
|
|
80
|
+
changeTimeLabel: (
|
|
81
|
+
/* istanbul ignore next */
|
|
82
|
+
(time) => `Change time, ${time}`
|
|
83
|
+
),
|
|
84
|
+
hoursLabel: "hours",
|
|
85
|
+
minutesLabel: "minutes",
|
|
86
|
+
secondsLabel: "seconds",
|
|
87
|
+
meridiesLabel: "AM/PM",
|
|
88
|
+
clearLabel: "Clear",
|
|
89
|
+
okLabel: "OK",
|
|
90
|
+
invalidTimeError: "Please enter a valid time."
|
|
91
|
+
},
|
|
77
92
|
filePicker: {
|
|
78
93
|
invalidFileTypeError: "You can't select files of this type.",
|
|
79
94
|
maxFilesExceededError: "You can't select any more files.",
|
package/locales/en-US.js
CHANGED
|
@@ -72,6 +72,21 @@ const enUS = {
|
|
|
72
72
|
(maxDate) => `The end date must be ${maxDate} or earlier.`
|
|
73
73
|
)
|
|
74
74
|
},
|
|
75
|
+
timePicker: {
|
|
76
|
+
defaultTo12HourClock: true,
|
|
77
|
+
chooseTimeLabel: "Choose time",
|
|
78
|
+
changeTimeLabel: (
|
|
79
|
+
/* istanbul ignore next */
|
|
80
|
+
(time) => `Change time, ${time}`
|
|
81
|
+
),
|
|
82
|
+
hoursLabel: "hours",
|
|
83
|
+
minutesLabel: "minutes",
|
|
84
|
+
secondsLabel: "seconds",
|
|
85
|
+
meridiesLabel: "AM/PM",
|
|
86
|
+
clearLabel: "Clear",
|
|
87
|
+
okLabel: "OK",
|
|
88
|
+
invalidTimeError: "Please enter a valid time."
|
|
89
|
+
},
|
|
75
90
|
filePicker: {
|
|
76
91
|
invalidFileTypeError: "You can't select files of this type.",
|
|
77
92
|
maxFilesExceededError: "You can't select any more files.",
|
package/locales/ja-JP.cjs
CHANGED
|
@@ -74,6 +74,21 @@ const jaJP = {
|
|
|
74
74
|
(maxDate) => `終了日は${maxDate}以前である必要があります。`
|
|
75
75
|
)
|
|
76
76
|
},
|
|
77
|
+
timePicker: {
|
|
78
|
+
defaultTo12HourClock: false,
|
|
79
|
+
chooseTimeLabel: "時間を選択",
|
|
80
|
+
changeTimeLabel: (
|
|
81
|
+
/* istanbul ignore next */
|
|
82
|
+
(time) => `時間を変更, ${time}`
|
|
83
|
+
),
|
|
84
|
+
hoursLabel: "時間",
|
|
85
|
+
minutesLabel: "分",
|
|
86
|
+
secondsLabel: "秒",
|
|
87
|
+
meridiesLabel: "午前/午後",
|
|
88
|
+
clearLabel: "クリア",
|
|
89
|
+
okLabel: "OK",
|
|
90
|
+
invalidTimeError: "有効な時間を入力してください。"
|
|
91
|
+
},
|
|
77
92
|
filePicker: {
|
|
78
93
|
invalidFileTypeError: "この種類のファイルは選択できません。",
|
|
79
94
|
maxFilesExceededError: "これ以上ファイルを選択できません。",
|
package/locales/ja-JP.js
CHANGED
|
@@ -72,6 +72,21 @@ const jaJP = {
|
|
|
72
72
|
(maxDate) => `終了日は${maxDate}以前である必要があります。`
|
|
73
73
|
)
|
|
74
74
|
},
|
|
75
|
+
timePicker: {
|
|
76
|
+
defaultTo12HourClock: false,
|
|
77
|
+
chooseTimeLabel: "時間を選択",
|
|
78
|
+
changeTimeLabel: (
|
|
79
|
+
/* istanbul ignore next */
|
|
80
|
+
(time) => `時間を変更, ${time}`
|
|
81
|
+
),
|
|
82
|
+
hoursLabel: "時間",
|
|
83
|
+
minutesLabel: "分",
|
|
84
|
+
secondsLabel: "秒",
|
|
85
|
+
meridiesLabel: "午前/午後",
|
|
86
|
+
clearLabel: "クリア",
|
|
87
|
+
okLabel: "OK",
|
|
88
|
+
invalidTimeError: "有効な時間を入力してください。"
|
|
89
|
+
},
|
|
75
90
|
filePicker: {
|
|
76
91
|
invalidFileTypeError: "この種類のファイルは選択できません。",
|
|
77
92
|
maxFilesExceededError: "これ以上ファイルを選択できません。",
|
package/locales/zh-CN.cjs
CHANGED
|
@@ -74,6 +74,21 @@ const zhCN = {
|
|
|
74
74
|
(maxDate) => `结束日期必须是${maxDate}或之前。`
|
|
75
75
|
)
|
|
76
76
|
},
|
|
77
|
+
timePicker: {
|
|
78
|
+
defaultTo12HourClock: false,
|
|
79
|
+
chooseTimeLabel: "选择时间",
|
|
80
|
+
changeTimeLabel: (
|
|
81
|
+
/* istanbul ignore next */
|
|
82
|
+
(time) => `更改时间, ${time}`
|
|
83
|
+
),
|
|
84
|
+
hoursLabel: "小时",
|
|
85
|
+
minutesLabel: "分钟",
|
|
86
|
+
secondsLabel: "秒",
|
|
87
|
+
meridiesLabel: "上午/下午",
|
|
88
|
+
clearLabel: "清除",
|
|
89
|
+
okLabel: "确定",
|
|
90
|
+
invalidTimeError: "请输入有效的时间。"
|
|
91
|
+
},
|
|
77
92
|
filePicker: {
|
|
78
93
|
invalidFileTypeError: "您不能选择此类型的文件。",
|
|
79
94
|
maxFilesExceededError: "您不能再选择任何文件。",
|
package/locales/zh-CN.js
CHANGED
|
@@ -72,6 +72,21 @@ const zhCN = {
|
|
|
72
72
|
(maxDate) => `结束日期必须是${maxDate}或之前。`
|
|
73
73
|
)
|
|
74
74
|
},
|
|
75
|
+
timePicker: {
|
|
76
|
+
defaultTo12HourClock: false,
|
|
77
|
+
chooseTimeLabel: "选择时间",
|
|
78
|
+
changeTimeLabel: (
|
|
79
|
+
/* istanbul ignore next */
|
|
80
|
+
(time) => `更改时间, ${time}`
|
|
81
|
+
),
|
|
82
|
+
hoursLabel: "小时",
|
|
83
|
+
minutesLabel: "分钟",
|
|
84
|
+
secondsLabel: "秒",
|
|
85
|
+
meridiesLabel: "上午/下午",
|
|
86
|
+
clearLabel: "清除",
|
|
87
|
+
okLabel: "确定",
|
|
88
|
+
invalidTimeError: "请输入有效的时间。"
|
|
89
|
+
},
|
|
75
90
|
filePicker: {
|
|
76
91
|
invalidFileTypeError: "您不能选择此类型的文件。",
|
|
77
92
|
maxFilesExceededError: "您不能再选择任何文件。",
|
package/menu/index.cjs
CHANGED
|
@@ -9,8 +9,6 @@ require('../shared/icon.cjs');
|
|
|
9
9
|
require('../shared/_has.cjs');
|
|
10
10
|
require('../shared/class-names.cjs');
|
|
11
11
|
require('../shared/when.cjs');
|
|
12
|
-
require('../shared/definition58.cjs');
|
|
13
|
-
require('../shared/focus.cjs');
|
|
14
12
|
require('../shared/definition37.cjs');
|
|
15
13
|
require('../shared/base-progress.cjs');
|
|
16
14
|
require('../shared/affix.cjs');
|
package/menu/index.js
CHANGED
|
@@ -7,8 +7,6 @@ import '../shared/icon.js';
|
|
|
7
7
|
import '../shared/_has.js';
|
|
8
8
|
import '../shared/class-names.js';
|
|
9
9
|
import '../shared/when.js';
|
|
10
|
-
import '../shared/definition58.js';
|
|
11
|
-
import '../shared/focus.js';
|
|
12
10
|
import '../shared/definition37.js';
|
|
13
11
|
import '../shared/base-progress.js';
|
|
14
12
|
import '../shared/affix.js';
|
package/menu-item/index.cjs
CHANGED
|
@@ -7,8 +7,6 @@ require('../shared/icon.cjs');
|
|
|
7
7
|
require('../shared/_has.cjs');
|
|
8
8
|
require('../shared/class-names.cjs');
|
|
9
9
|
require('../shared/when.cjs');
|
|
10
|
-
require('../shared/definition58.cjs');
|
|
11
|
-
require('../shared/focus.cjs');
|
|
12
10
|
require('../shared/affix.cjs');
|
|
13
11
|
require('../shared/slotted.cjs');
|
|
14
12
|
require('../shared/apply-mixins.cjs');
|
package/menu-item/index.js
CHANGED
|
@@ -5,8 +5,6 @@ import '../shared/icon.js';
|
|
|
5
5
|
import '../shared/_has.js';
|
|
6
6
|
import '../shared/class-names.js';
|
|
7
7
|
import '../shared/when.js';
|
|
8
|
-
import '../shared/definition58.js';
|
|
9
|
-
import '../shared/focus.js';
|
|
10
8
|
import '../shared/affix.js';
|
|
11
9
|
import '../shared/slotted.js';
|
|
12
10
|
import '../shared/apply-mixins.js';
|
package/nav-disclosure/index.cjs
CHANGED
|
@@ -7,8 +7,6 @@ require('../shared/icon.cjs');
|
|
|
7
7
|
require('../shared/_has.cjs');
|
|
8
8
|
require('../shared/class-names.cjs');
|
|
9
9
|
require('../shared/when.cjs');
|
|
10
|
-
require('../shared/definition58.cjs');
|
|
11
|
-
require('../shared/focus.cjs');
|
|
12
10
|
require('../shared/affix.cjs');
|
|
13
11
|
require('../shared/slotted.cjs');
|
|
14
12
|
require('../shared/apply-mixins.cjs');
|
package/nav-disclosure/index.js
CHANGED
|
@@ -5,8 +5,6 @@ import '../shared/icon.js';
|
|
|
5
5
|
import '../shared/_has.js';
|
|
6
6
|
import '../shared/class-names.js';
|
|
7
7
|
import '../shared/when.js';
|
|
8
|
-
import '../shared/definition58.js';
|
|
9
|
-
import '../shared/focus.js';
|
|
10
8
|
import '../shared/affix.js';
|
|
11
9
|
import '../shared/slotted.js';
|
|
12
10
|
import '../shared/apply-mixins.js';
|
package/nav-item/index.cjs
CHANGED
|
@@ -7,8 +7,6 @@ require('../shared/icon.cjs');
|
|
|
7
7
|
require('../shared/_has.cjs');
|
|
8
8
|
require('../shared/class-names.cjs');
|
|
9
9
|
require('../shared/when.cjs');
|
|
10
|
-
require('../shared/definition58.cjs');
|
|
11
|
-
require('../shared/focus.cjs');
|
|
12
10
|
require('../shared/affix.cjs');
|
|
13
11
|
require('../shared/slotted.cjs');
|
|
14
12
|
require('../shared/text-anchor.cjs');
|
package/nav-item/index.js
CHANGED
|
@@ -5,8 +5,6 @@ import '../shared/icon.js';
|
|
|
5
5
|
import '../shared/_has.js';
|
|
6
6
|
import '../shared/class-names.js';
|
|
7
7
|
import '../shared/when.js';
|
|
8
|
-
import '../shared/definition58.js';
|
|
9
|
-
import '../shared/focus.js';
|
|
10
8
|
import '../shared/affix.js';
|
|
11
9
|
import '../shared/slotted.js';
|
|
12
10
|
import '../shared/text-anchor.js';
|
package/number-field/index.cjs
CHANGED
|
@@ -8,8 +8,6 @@ require('../shared/icon.cjs');
|
|
|
8
8
|
require('../shared/_has.cjs');
|
|
9
9
|
require('../shared/class-names.cjs');
|
|
10
10
|
require('../shared/when.cjs');
|
|
11
|
-
require('../shared/definition58.cjs');
|
|
12
|
-
require('../shared/focus.cjs');
|
|
13
11
|
require('../shared/definition37.cjs');
|
|
14
12
|
require('../shared/base-progress.cjs');
|
|
15
13
|
require('../shared/affix.cjs');
|
|
@@ -29,5 +27,6 @@ require('../locales/en-US.cjs');
|
|
|
29
27
|
require('../shared/localized.cjs');
|
|
30
28
|
require('../shared/text-field2.cjs');
|
|
31
29
|
require('../shared/focus2.cjs');
|
|
30
|
+
require('../shared/focus.cjs');
|
|
32
31
|
|
|
33
32
|
definition.registerNumberField();
|
package/number-field/index.js
CHANGED
|
@@ -6,8 +6,6 @@ import '../shared/icon.js';
|
|
|
6
6
|
import '../shared/_has.js';
|
|
7
7
|
import '../shared/class-names.js';
|
|
8
8
|
import '../shared/when.js';
|
|
9
|
-
import '../shared/definition58.js';
|
|
10
|
-
import '../shared/focus.js';
|
|
11
9
|
import '../shared/definition37.js';
|
|
12
10
|
import '../shared/base-progress.js';
|
|
13
11
|
import '../shared/affix.js';
|
|
@@ -27,5 +25,6 @@ import '../locales/en-US.js';
|
|
|
27
25
|
import '../shared/localized.js';
|
|
28
26
|
import '../shared/text-field2.js';
|
|
29
27
|
import '../shared/focus2.js';
|
|
28
|
+
import '../shared/focus.js';
|
|
30
29
|
|
|
31
30
|
registerNumberField();
|
package/option/index.cjs
CHANGED
|
@@ -7,8 +7,6 @@ require('../shared/icon.cjs');
|
|
|
7
7
|
require('../shared/_has.cjs');
|
|
8
8
|
require('../shared/class-names.cjs');
|
|
9
9
|
require('../shared/when.cjs');
|
|
10
|
-
require('../shared/definition58.cjs');
|
|
11
|
-
require('../shared/focus.cjs');
|
|
12
10
|
require('../shared/affix.cjs');
|
|
13
11
|
require('../shared/slotted.cjs');
|
|
14
12
|
require('../shared/aria-global.cjs');
|
|
@@ -16,8 +14,5 @@ require('../shared/start-end.cjs');
|
|
|
16
14
|
require('../shared/ref.cjs');
|
|
17
15
|
require('../shared/apply-mixins.cjs');
|
|
18
16
|
require('../shared/dom.cjs');
|
|
19
|
-
require('../shared/focus2.cjs');
|
|
20
|
-
require('../shared/index2.cjs');
|
|
21
|
-
require('../locales/en-US.cjs');
|
|
22
17
|
|
|
23
18
|
definition.registerOption();
|
package/option/index.js
CHANGED
|
@@ -5,8 +5,6 @@ import '../shared/icon.js';
|
|
|
5
5
|
import '../shared/_has.js';
|
|
6
6
|
import '../shared/class-names.js';
|
|
7
7
|
import '../shared/when.js';
|
|
8
|
-
import '../shared/definition58.js';
|
|
9
|
-
import '../shared/focus.js';
|
|
10
8
|
import '../shared/affix.js';
|
|
11
9
|
import '../shared/slotted.js';
|
|
12
10
|
import '../shared/aria-global.js';
|
|
@@ -14,8 +12,5 @@ import '../shared/start-end.js';
|
|
|
14
12
|
import '../shared/ref.js';
|
|
15
13
|
import '../shared/apply-mixins.js';
|
|
16
14
|
import '../shared/dom.js';
|
|
17
|
-
import '../shared/focus2.js';
|
|
18
|
-
import '../shared/index2.js';
|
|
19
|
-
import '../locales/en-US.js';
|
|
20
15
|
|
|
21
16
|
registerOption();
|
package/package.json
CHANGED
package/pagination/index.cjs
CHANGED
|
@@ -8,8 +8,6 @@ require('../shared/icon.cjs');
|
|
|
8
8
|
require('../shared/_has.cjs');
|
|
9
9
|
require('../shared/class-names.cjs');
|
|
10
10
|
require('../shared/when.cjs');
|
|
11
|
-
require('../shared/definition58.cjs');
|
|
12
|
-
require('../shared/focus.cjs');
|
|
13
11
|
require('../shared/definition37.cjs');
|
|
14
12
|
require('../shared/base-progress.cjs');
|
|
15
13
|
require('../shared/affix.cjs');
|
package/pagination/index.js
CHANGED
|
@@ -6,8 +6,6 @@ import '../shared/icon.js';
|
|
|
6
6
|
import '../shared/_has.js';
|
|
7
7
|
import '../shared/class-names.js';
|
|
8
8
|
import '../shared/when.js';
|
|
9
|
-
import '../shared/definition58.js';
|
|
10
|
-
import '../shared/focus.js';
|
|
11
9
|
import '../shared/definition37.js';
|
|
12
10
|
import '../shared/base-progress.js';
|
|
13
11
|
import '../shared/affix.js';
|
package/popup/index.cjs
CHANGED
|
@@ -8,8 +8,6 @@ require('../shared/icon.cjs');
|
|
|
8
8
|
require('../shared/_has.cjs');
|
|
9
9
|
require('../shared/class-names.cjs');
|
|
10
10
|
require('../shared/when.cjs');
|
|
11
|
-
require('../shared/definition58.cjs');
|
|
12
|
-
require('../shared/focus.cjs');
|
|
13
11
|
require('../shared/definition37.cjs');
|
|
14
12
|
require('../shared/base-progress.cjs');
|
|
15
13
|
require('../shared/affix.cjs');
|
package/popup/index.js
CHANGED
|
@@ -6,8 +6,6 @@ import '../shared/icon.js';
|
|
|
6
6
|
import '../shared/_has.js';
|
|
7
7
|
import '../shared/class-names.js';
|
|
8
8
|
import '../shared/when.js';
|
|
9
|
-
import '../shared/definition58.js';
|
|
10
|
-
import '../shared/focus.js';
|
|
11
9
|
import '../shared/definition37.js';
|
|
12
10
|
import '../shared/base-progress.js';
|
|
13
11
|
import '../shared/affix.js';
|
package/radio/index.cjs
CHANGED
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
const definition = require('../shared/definition40.cjs');
|
|
4
4
|
require('../shared/index.cjs');
|
|
5
|
-
require('../shared/definition58.cjs');
|
|
6
|
-
require('../shared/focus.cjs');
|
|
7
5
|
require('../shared/radio.cjs');
|
|
8
6
|
require('../shared/form-associated.cjs');
|
|
9
7
|
require('../shared/key-codes.cjs');
|
|
10
|
-
require('../shared/focus2.cjs');
|
|
11
8
|
require('../shared/when.cjs');
|
|
12
9
|
require('../shared/class-names.cjs');
|
|
13
10
|
|
package/radio/index.js
CHANGED
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { b as registerRadio } from '../shared/definition40.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/definition58.js';
|
|
4
|
-
import '../shared/focus.js';
|
|
5
3
|
import '../shared/radio.js';
|
|
6
4
|
import '../shared/form-associated.js';
|
|
7
5
|
import '../shared/key-codes.js';
|
|
8
|
-
import '../shared/focus2.js';
|
|
9
6
|
import '../shared/when.js';
|
|
10
7
|
import '../shared/class-names.js';
|
|
11
8
|
|
package/select/index.cjs
CHANGED
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const definition = require('../shared/definition41.cjs');
|
|
4
4
|
require('../shared/index.cjs');
|
|
5
|
-
require('../shared/definition58.cjs');
|
|
6
|
-
require('../shared/focus.cjs');
|
|
7
5
|
require('../shared/definition60.cjs');
|
|
8
6
|
require('../shared/definition11.cjs');
|
|
9
7
|
require('../shared/definition26.cjs');
|
|
@@ -26,7 +24,6 @@ require('../shared/enums.cjs');
|
|
|
26
24
|
require('../shared/definition59.cjs');
|
|
27
25
|
require('../shared/definition35.cjs');
|
|
28
26
|
require('../shared/dom.cjs');
|
|
29
|
-
require('../shared/focus2.cjs');
|
|
30
27
|
require('../shared/index2.cjs');
|
|
31
28
|
require('../locales/en-US.cjs');
|
|
32
29
|
require('../shared/listbox.cjs');
|
package/select/index.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { r as registerSelect } from '../shared/definition41.js';
|
|
2
2
|
import '../shared/index.js';
|
|
3
|
-
import '../shared/definition58.js';
|
|
4
|
-
import '../shared/focus.js';
|
|
5
3
|
import '../shared/definition60.js';
|
|
6
4
|
import '../shared/definition11.js';
|
|
7
5
|
import '../shared/definition26.js';
|
|
@@ -24,7 +22,6 @@ import '../shared/enums.js';
|
|
|
24
22
|
import '../shared/definition59.js';
|
|
25
23
|
import '../shared/definition35.js';
|
|
26
24
|
import '../shared/dom.js';
|
|
27
|
-
import '../shared/focus2.js';
|
|
28
25
|
import '../shared/index2.js';
|
|
29
26
|
import '../locales/en-US.js';
|
|
30
27
|
import '../shared/listbox.js';
|
package/selectable-box/index.cjs
CHANGED
|
@@ -8,8 +8,6 @@ require('../shared/icon.cjs');
|
|
|
8
8
|
require('../shared/_has.cjs');
|
|
9
9
|
require('../shared/class-names.cjs');
|
|
10
10
|
require('../shared/when.cjs');
|
|
11
|
-
require('../shared/definition58.cjs');
|
|
12
|
-
require('../shared/focus.cjs');
|
|
13
11
|
require('../shared/affix.cjs');
|
|
14
12
|
require('../shared/slotted.cjs');
|
|
15
13
|
require('../shared/index2.cjs');
|
|
@@ -17,7 +15,6 @@ require('../locales/en-US.cjs');
|
|
|
17
15
|
require('../shared/form-associated.cjs');
|
|
18
16
|
require('../shared/key-codes.cjs');
|
|
19
17
|
require('../shared/apply-mixins.cjs');
|
|
20
|
-
require('../shared/focus2.cjs');
|
|
21
18
|
require('../shared/definition40.cjs');
|
|
22
19
|
require('../shared/radio.cjs');
|
|
23
20
|
require('../shared/enums.cjs');
|
package/selectable-box/index.js
CHANGED
|
@@ -6,8 +6,6 @@ import '../shared/icon.js';
|
|
|
6
6
|
import '../shared/_has.js';
|
|
7
7
|
import '../shared/class-names.js';
|
|
8
8
|
import '../shared/when.js';
|
|
9
|
-
import '../shared/definition58.js';
|
|
10
|
-
import '../shared/focus.js';
|
|
11
9
|
import '../shared/affix.js';
|
|
12
10
|
import '../shared/slotted.js';
|
|
13
11
|
import '../shared/index2.js';
|
|
@@ -15,7 +13,6 @@ import '../locales/en-US.js';
|
|
|
15
13
|
import '../shared/form-associated.js';
|
|
16
14
|
import '../shared/key-codes.js';
|
|
17
15
|
import '../shared/apply-mixins.js';
|
|
18
|
-
import '../shared/focus2.js';
|
|
19
16
|
import '../shared/definition40.js';
|
|
20
17
|
import '../shared/radio.js';
|
|
21
18
|
import '../shared/enums.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { FormElementHelperText, Localized } from '../patterns';
|
|
1
|
+
import { FormElementHelperText, Localized, TrappedFocus } from '../patterns';
|
|
2
2
|
import { type DateStr } from './calendar/dateStr';
|
|
3
3
|
import { FormAssociatedDatePickerBase } from './date-picker-base.form-associated';
|
|
4
4
|
export declare abstract class DatePickerBase extends FormAssociatedDatePickerBase {
|
|
@@ -16,5 +16,5 @@ export declare abstract class DatePickerBase extends FormAssociatedDatePickerBas
|
|
|
16
16
|
protected abstract _getCustomValidationError(): string | null;
|
|
17
17
|
protected abstract _getSelectedDates(): DateStr[];
|
|
18
18
|
}
|
|
19
|
-
export interface DatePickerBase extends Localized, FormElementHelperText {
|
|
19
|
+
export interface DatePickerBase extends Localized, FormElementHelperText, TrappedFocus {
|
|
20
20
|
}
|
package/shared/definition.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index.cjs');
|
|
4
4
|
const definition = require('./definition26.cjs');
|
|
5
|
-
const definition$1 = require('./definition58.cjs');
|
|
6
5
|
const affix = require('./affix.cjs');
|
|
7
6
|
const applyMixins = require('./apply-mixins.cjs');
|
|
8
7
|
const startEnd = require('./start-end.cjs');
|
|
@@ -151,12 +150,9 @@ const AccordionItemTemplate = (context) => index.html`
|
|
|
151
150
|
const accordionItemDefinition = AccordionItem.compose({
|
|
152
151
|
baseName: "accordion-item",
|
|
153
152
|
template: AccordionItemTemplate,
|
|
154
|
-
styles
|
|
155
|
-
shadowOptions: {
|
|
156
|
-
delegatesFocus: true
|
|
157
|
-
}
|
|
153
|
+
styles
|
|
158
154
|
});
|
|
159
|
-
const accordionItemRegistries = [accordionItemDefinition(), ...definition.iconRegistries
|
|
155
|
+
const accordionItemRegistries = [accordionItemDefinition(), ...definition.iconRegistries];
|
|
160
156
|
const registerAccordionItem = index.registerFactory(accordionItemRegistries);
|
|
161
157
|
|
|
162
158
|
exports.AccordionItem = AccordionItem$1;
|
package/shared/definition.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { F as FoundationElement, _ as __decorate, a as attr, n as nullableNumberConverter, h as html, r as registerFactory } from './index.js';
|
|
2
2
|
import { a as iconRegistries } from './definition26.js';
|
|
3
|
-
import { f as focusRegistries } from './definition58.js';
|
|
4
3
|
import { b as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper } from './affix.js';
|
|
5
4
|
import { a as applyMixins } from './apply-mixins.js';
|
|
6
5
|
import { S as StartEnd } from './start-end.js';
|
|
@@ -149,12 +148,9 @@ const AccordionItemTemplate = (context) => html`
|
|
|
149
148
|
const accordionItemDefinition = AccordionItem.compose({
|
|
150
149
|
baseName: "accordion-item",
|
|
151
150
|
template: AccordionItemTemplate,
|
|
152
|
-
styles
|
|
153
|
-
shadowOptions: {
|
|
154
|
-
delegatesFocus: true
|
|
155
|
-
}
|
|
151
|
+
styles
|
|
156
152
|
});
|
|
157
|
-
const accordionItemRegistries = [accordionItemDefinition(), ...iconRegistries
|
|
153
|
+
const accordionItemRegistries = [accordionItemDefinition(), ...iconRegistries];
|
|
158
154
|
const registerAccordionItem = registerFactory(accordionItemRegistries);
|
|
159
155
|
|
|
160
156
|
export { AccordionItem$1 as A, accordionItemDefinition as a, accordionItemRegistries as b, registerAccordionItem as r };
|
package/shared/definition11.cjs
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index.cjs');
|
|
4
4
|
const definition$1 = require('./definition26.cjs');
|
|
5
|
-
const definition$2 = require('./definition58.cjs');
|
|
6
5
|
const definition = require('./definition37.cjs');
|
|
7
6
|
const affix = require('./affix.cjs');
|
|
8
7
|
const button = require('./button.cjs');
|
|
@@ -155,7 +154,7 @@ const buttonDefinition = Button.compose({
|
|
|
155
154
|
delegatesFocus: true
|
|
156
155
|
}
|
|
157
156
|
});
|
|
158
|
-
const buttonRegistries = [buttonDefinition(), ...definition$1.iconRegistries, ...definition
|
|
157
|
+
const buttonRegistries = [buttonDefinition(), ...definition$1.iconRegistries, ...definition.progressRingRegistries];
|
|
159
158
|
const registerButton = index.registerFactory(buttonRegistries);
|
|
160
159
|
|
|
161
160
|
exports.Button = Button;
|
package/shared/definition11.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { a as attr, h as html, r as registerFactory } from './index.js';
|
|
2
2
|
import { a as iconRegistries } from './definition26.js';
|
|
3
|
-
import { f as focusRegistries } from './definition58.js';
|
|
4
3
|
import { P as ProgressRing, a as progressRingRegistries } from './definition37.js';
|
|
5
4
|
import { b as AffixIconWithTrailing, a as affixIconTemplateFactory, I as IconWrapper, c as IconAriaHidden } from './affix.js';
|
|
6
5
|
import { B as Button$1 } from './button.js';
|
|
@@ -153,7 +152,7 @@ const buttonDefinition = Button.compose({
|
|
|
153
152
|
delegatesFocus: true
|
|
154
153
|
}
|
|
155
154
|
});
|
|
156
|
-
const buttonRegistries = [buttonDefinition(), ...iconRegistries, ...
|
|
155
|
+
const buttonRegistries = [buttonDefinition(), ...iconRegistries, ...progressRingRegistries];
|
|
157
156
|
const registerButton = registerFactory(buttonRegistries);
|
|
158
157
|
|
|
159
158
|
export { Button as B, buttonRegistries as a, buttonDefinition as b, registerButton as r };
|
package/shared/definition15.cjs
CHANGED
|
@@ -2,13 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
const index = require('./index.cjs');
|
|
4
4
|
const definition = require('./definition26.cjs');
|
|
5
|
-
const definition$1 = require('./definition58.cjs');
|
|
6
5
|
require('./affix.cjs');
|
|
7
6
|
const index$1 = require('./index2.cjs');
|
|
8
7
|
const formAssociated = require('./form-associated.cjs');
|
|
9
8
|
const keyCodes = require('./key-codes.cjs');
|
|
10
9
|
const applyMixins = require('./apply-mixins.cjs');
|
|
11
|
-
const focus = require('./focus2.cjs');
|
|
12
10
|
const icon = require('./icon.cjs');
|
|
13
11
|
const when = require('./when.cjs');
|
|
14
12
|
const slotted = require('./slotted.cjs');
|
|
@@ -100,7 +98,7 @@ index.__decorate([
|
|
|
100
98
|
index.observable
|
|
101
99
|
], Checkbox$1.prototype, "indeterminate", void 0);
|
|
102
100
|
|
|
103
|
-
const styles = ":host{display:inline-flex;flex-direction:column;vertical-align:middle}:host([disabled]){cursor:not-allowed}.base{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}.base.connotation-cta{--_connotation-color-primary: var(--vvd-checkbox-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-checkbox-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-checkbox-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-fierce: var(--vvd-checkbox-cta-fierce, var(--vvd-color-cta-700));--_connotation-color-intermediate: var(--vvd-checkbox-cta-intermediate, var(--vvd-color-cta-500));--_connotation-color-firm: var(--vvd-checkbox-cta-firm, var(--vvd-color-cta-600))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-checkbox-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-checkbox-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-checkbox-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-fierce: var(--vvd-checkbox-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-intermediate: var(--vvd-checkbox-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-firm: var(--vvd-checkbox-accent-firm, var(--vvd-color-canvas-text))}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-intermediate)}.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(:checked,.checked):where(:not(:disabled,.disabled)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: var(--_connotation-color-primary)}.base:where(:checked,.checked):where(:hover,.hover):where(:not(:disabled,.disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: var(--_connotation-color-primary-increment)}.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(.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)}
|
|
101
|
+
const styles = ":host{display:inline-flex;flex-direction:column;vertical-align:middle}:host([disabled]){cursor:not-allowed}.base{display:inline-flex;align-items:center;gap:8px;vertical-align:middle}.base.connotation-cta{--_connotation-color-primary: var(--vvd-checkbox-cta-primary, var(--vvd-color-cta-500));--_connotation-color-primary-text: var(--vvd-checkbox-cta-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-checkbox-cta-primary-increment, var(--vvd-color-cta-600));--_connotation-color-fierce: var(--vvd-checkbox-cta-fierce, var(--vvd-color-cta-700));--_connotation-color-intermediate: var(--vvd-checkbox-cta-intermediate, var(--vvd-color-cta-500));--_connotation-color-firm: var(--vvd-checkbox-cta-firm, var(--vvd-color-cta-600))}.base:not(.connotation-cta){--_connotation-color-primary: var(--vvd-checkbox-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-primary-text: var(--vvd-checkbox-accent-primary-text, var(--vvd-color-canvas));--_connotation-color-primary-increment: var(--vvd-checkbox-accent-primary-increment, var(--vvd-color-neutral-800));--_connotation-color-fierce: var(--vvd-checkbox-accent-fierce, var(--vvd-color-neutral-700));--_connotation-color-intermediate: var(--vvd-checkbox-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-firm: var(--vvd-checkbox-accent-firm, var(--vvd-color-canvas-text))}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-intermediate)}.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(:checked,.checked):where(:not(:disabled,.disabled)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary);--_appearance-color-outline: var(--_connotation-color-primary)}.base:where(:checked,.checked):where(:hover,.hover):where(:not(:disabled,.disabled,.readonly)){--_appearance-color-text: var(--_connotation-color-primary-text);--_appearance-color-fill: var(--_connotation-color-primary-increment);--_appearance-color-outline: var(--_connotation-color-primary-increment)}.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(.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:focus-visible{outline:none}@supports (user-select: none){.base{user-select:none}}.base:not(.disabled){cursor:pointer}.base.disabled{pointer-events:none}.control{position:relative;display:flex;flex-shrink:0;align-items:center;justify-content:center;background-color:var(--_appearance-color-fill);block-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)));border-radius:4px;box-shadow:inset 0 0 0 2px var(--_appearance-color-outline);color:var(--_appearance-color-text);inline-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base:focus-visible .control{--focus-inset: -3px;--focus-stroke-gap-color: transparent}.base:focus-visible .control:before{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));position:absolute;display:block;block-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)));border-radius:2px;content:\"\";inline-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)))}.base.error:not(.checked) .control{background-color:var(--vvd-color-alert-50);box-shadow:inset 0 0 0 2px var(--vvd-color-alert-500)}.indicator{font-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2)) - 4px)}.base:not(.checked) .indicator.checkmark{display:none}.base.checked .indicator.minus,.base:not(.indeterminate) .indicator.minus{display:none}label{display:flex;flex-wrap:wrap;align-items:center;color:var(--vvd-color-canvas-text);column-gap:4px;cursor:pointer;font:var(--vvd-typography-base)}.hide-label label{display:none}.icon{font-size:calc(1px*(20 + 4*clamp(-1,var(--vvd-size-density, 0),2))*.6);line-height:1}.message{margin-block-start:4px;--_low-ink-color: var(--vvd-color-neutral-600)}\n";
|
|
104
102
|
|
|
105
103
|
var __defProp = Object.defineProperty;
|
|
106
104
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -207,7 +205,6 @@ const getClasses = ({
|
|
|
207
205
|
["hide-label", !label && !slottedContent?.length]
|
|
208
206
|
);
|
|
209
207
|
const CheckboxTemplate = (context) => {
|
|
210
|
-
const focusTemplate = focus.focusTemplateFactory(context);
|
|
211
208
|
const iconTag = context.tagFor(icon.Icon);
|
|
212
209
|
return index.html`<template role="${(x) => x.ariaLabel ? "presentation" : null}">
|
|
213
210
|
<div class="${getClasses}"
|
|
@@ -223,7 +220,6 @@ const CheckboxTemplate = (context) => {
|
|
|
223
220
|
<div class="control">
|
|
224
221
|
${when.when((x) => x.checked, index.html`<${iconTag} name="check-solid" class="icon"></${iconTag}>`)}
|
|
225
222
|
${when.when((x) => x.indeterminate, index.html`<${iconTag} name="minus-solid" class="icon"></${iconTag}>`)}
|
|
226
|
-
${() => focusTemplate}
|
|
227
223
|
</div>
|
|
228
224
|
${index.html`<label>${(x) => x.label}<slot ${slotted.slotted("slottedContent")}></slot></label>`}
|
|
229
225
|
</div>
|
|
@@ -241,7 +237,7 @@ const checkboxDefinition = exports.Checkbox.compose({
|
|
|
241
237
|
delegatesFocus: true
|
|
242
238
|
}
|
|
243
239
|
});
|
|
244
|
-
const checkboxRegistries = [checkboxDefinition(), ...definition.iconRegistries
|
|
240
|
+
const checkboxRegistries = [checkboxDefinition(), ...definition.iconRegistries];
|
|
245
241
|
const registerCheckbox = index.registerFactory(checkboxRegistries);
|
|
246
242
|
|
|
247
243
|
exports.checkboxDefinition = checkboxDefinition;
|