loseta 0.16.0 → 0.18.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/README.md +33 -8
- package/dist/commands/add.d.ts +8 -0
- package/dist/commands/add.js +60 -15
- package/dist/commands/add.js.map +1 -1
- package/dist/commands/init.js +2 -1
- package/dist/commands/init.js.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.js +13 -0
- package/dist/config.js.map +1 -1
- package/dist/imports.d.ts +4 -0
- package/dist/imports.js +30 -2
- package/dist/imports.js.map +1 -1
- package/dist/install.d.ts +23 -3
- package/dist/install.js +84 -5
- package/dist/install.js.map +1 -1
- package/dist/style-switch.js +2 -1
- package/dist/style-switch.js.map +1 -1
- package/dist/types.d.ts +11 -0
- package/dist/ui.js +4 -1
- package/dist/ui.js.map +1 -1
- package/package.json +4 -3
- package/registry/behaviors/code-block.js +106 -0
- package/registry/behaviors/combobox.js +237 -0
- package/registry/behaviors/command.js +105 -0
- package/registry/behaviors/core.js +302 -0
- package/registry/behaviors/dialog.js +97 -0
- package/registry/behaviors/listbox.js +135 -0
- package/registry/behaviors/menu.js +586 -0
- package/registry/behaviors/popover.js +127 -0
- package/registry/behaviors/select.js +196 -0
- package/registry/behaviors/tabs.js +95 -0
- package/registry/behaviors/toast.js +137 -0
- package/registry/components/badge.css +4 -7
- package/registry/components/breadcrumb.css +9 -1
- package/registry/components/calendar.css +39 -0
- package/registry/components/card.css +5 -0
- package/registry/components/code-block.css +19 -0
- package/registry/components/input-otp.css +103 -10
- package/registry/components/kbd.css +8 -0
- package/registry/components/native-select.css +6 -0
- package/registry/components/select.css +3 -0
- package/registry/components/tooltip.css +295 -144
- package/registry/examples/alert-dialog.html +21 -21
- package/registry/examples/badge.html +37 -0
- package/registry/examples/breadcrumb.html +86 -6
- package/registry/examples/button-group.html +3 -3
- package/registry/examples/calendar.html +687 -51
- package/registry/examples/card.html +190 -4
- package/registry/examples/code-block.html +10 -4
- package/registry/examples/combobox.html +2 -0
- package/registry/examples/command.html +17 -17
- package/registry/examples/context-menu.html +18 -18
- package/registry/examples/dialog.html +15 -15
- package/registry/examples/drawer.html +22 -22
- package/registry/examples/input-otp.html +116 -11
- package/registry/examples/kbd.html +90 -2
- package/registry/examples/native-select.html +83 -2
- package/registry/examples/select.html +206 -6
- package/registry/examples/sheet.html +23 -23
- package/registry/examples/sidebar.html +11 -11
- package/registry/examples/toast.html +11 -0
- package/registry/examples/tooltip.html +75 -70
- package/registry/primitives/dialog-shell.css +5 -0
- package/registry/primitives/menu.css +15 -3
- package/registry/registry.json +231 -9
- package/registry/schema.json +17 -0
- package/registry/styles/luma/badge.css +28 -0
- package/registry/styles/luma/breadcrumb.css +2 -1
- package/registry/styles/luma/calendar.css +62 -0
- package/registry/styles/luma/card.css +9 -27
- package/registry/styles/luma/input-otp.css +79 -36
- package/registry/styles/luma/native-select.css +9 -2
- package/registry/styles/luma/primitives/listbox.css +8 -0
- package/registry/styles/luma/select.css +7 -2
- package/registry/styles/luma/tooltip.css +29 -16
- package/registry/styles/lyra/badge.css +28 -0
- package/registry/styles/lyra/breadcrumb.css +2 -1
- package/registry/styles/lyra/calendar.css +62 -0
- package/registry/styles/lyra/card.css +9 -27
- package/registry/styles/lyra/input-otp.css +79 -36
- package/registry/styles/lyra/native-select.css +6 -1
- package/registry/styles/lyra/primitives/listbox.css +8 -0
- package/registry/styles/lyra/select.css +6 -1
- package/registry/styles/lyra/tooltip.css +29 -16
- package/registry/styles/maia/badge.css +29 -0
- package/registry/styles/maia/breadcrumb.css +2 -1
- package/registry/styles/maia/calendar.css +62 -0
- package/registry/styles/maia/card.css +9 -27
- package/registry/styles/maia/input-otp.css +79 -36
- package/registry/styles/maia/native-select.css +9 -2
- package/registry/styles/maia/primitives/listbox.css +8 -0
- package/registry/styles/maia/select.css +7 -2
- package/registry/styles/maia/tooltip.css +29 -16
- package/registry/styles/mira/badge.css +32 -0
- package/registry/styles/mira/breadcrumb.css +2 -1
- package/registry/styles/mira/calendar.css +62 -0
- package/registry/styles/mira/card.css +9 -27
- package/registry/styles/mira/input-otp.css +79 -36
- package/registry/styles/mira/native-select.css +7 -2
- package/registry/styles/mira/primitives/listbox.css +8 -0
- package/registry/styles/mira/select.css +7 -2
- package/registry/styles/mira/tooltip.css +29 -16
- package/registry/styles/nova/badge.css +28 -0
- package/registry/styles/nova/breadcrumb.css +2 -1
- package/registry/styles/nova/calendar.css +62 -0
- package/registry/styles/nova/card.css +9 -27
- package/registry/styles/nova/input-otp.css +79 -36
- package/registry/styles/nova/native-select.css +9 -2
- package/registry/styles/nova/primitives/listbox.css +8 -0
- package/registry/styles/nova/select.css +7 -2
- package/registry/styles/nova/tooltip.css +29 -16
- package/registry/styles/rhea/badge.css +28 -0
- package/registry/styles/rhea/breadcrumb.css +2 -1
- package/registry/styles/rhea/calendar.css +62 -0
- package/registry/styles/rhea/card.css +9 -27
- package/registry/styles/rhea/input-otp.css +79 -36
- package/registry/styles/rhea/native-select.css +9 -2
- package/registry/styles/rhea/primitives/listbox.css +8 -0
- package/registry/styles/rhea/select.css +7 -2
- package/registry/styles/rhea/tooltip.css +29 -16
- package/registry/styles/sera/badge.css +29 -1
- package/registry/styles/sera/breadcrumb.css +2 -1
- package/registry/styles/sera/calendar.css +66 -0
- package/registry/styles/sera/card.css +9 -27
- package/registry/styles/sera/input-otp.css +80 -37
- package/registry/styles/sera/native-select.css +9 -2
- package/registry/styles/sera/primitives/listbox.css +8 -0
- package/registry/styles/sera/select.css +7 -2
- package/registry/styles/sera/tooltip.css +29 -16
- package/registry/styles/vega/badge.css +28 -0
- package/registry/styles/vega/breadcrumb.css +2 -1
- package/registry/styles/vega/calendar.css +62 -0
- package/registry/styles/vega/card.css +9 -27
- package/registry/styles/vega/input-otp.css +79 -36
- package/registry/styles/vega/native-select.css +9 -2
- package/registry/styles/vega/primitives/listbox.css +8 -0
- package/registry/styles/vega/select.css +7 -2
- package/registry/styles/vega/tooltip.css +29 -16
|
@@ -1,101 +1,106 @@
|
|
|
1
1
|
<!-- Default -->
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<span class="tooltip" id="demo-tooltip-default">
|
|
3
|
+
<button type="button" class="btn" data-variant="outline" aria-describedby="demo-tooltip-default-description">
|
|
4
|
+
Hover
|
|
5
|
+
</button>
|
|
6
|
+
<span data-slot="content" role="tooltip" id="demo-tooltip-default-description">Add to library</span>
|
|
7
|
+
</span>
|
|
6
8
|
|
|
7
9
|
<!-- Sides -->
|
|
8
10
|
<div style="display: grid; grid-template-areas: '. top .' 'left . right' '. bottom .'; grid-template-columns: repeat(3, max-content); align-items: center; justify-items: center; gap: 1rem; padding-block: 2rem">
|
|
9
|
-
<
|
|
10
|
-
Top
|
|
11
|
-
</
|
|
12
|
-
<
|
|
13
|
-
Right
|
|
14
|
-
</
|
|
15
|
-
<
|
|
16
|
-
Bottom
|
|
17
|
-
</
|
|
18
|
-
<
|
|
19
|
-
Left
|
|
20
|
-
</
|
|
11
|
+
<span class="tooltip" data-tooltip="Top side" data-side="top" style="grid-area: top" id="demo-tooltip-side-top">
|
|
12
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">Top</button>
|
|
13
|
+
</span>
|
|
14
|
+
<span class="tooltip" data-tooltip="Right side" data-side="right" style="grid-area: right" id="demo-tooltip-side-right">
|
|
15
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">Right</button>
|
|
16
|
+
</span>
|
|
17
|
+
<span class="tooltip" data-tooltip="Bottom side" data-side="bottom" style="grid-area: bottom" id="demo-tooltip-side-bottom">
|
|
18
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">Bottom</button>
|
|
19
|
+
</span>
|
|
20
|
+
<span class="tooltip" data-tooltip="Left side" data-side="left" style="grid-area: left" id="demo-tooltip-side-left">
|
|
21
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">Left</button>
|
|
22
|
+
</span>
|
|
21
23
|
</div>
|
|
22
24
|
|
|
23
25
|
<!-- Alignments -->
|
|
24
26
|
<div style="display: grid; gap: 2rem; justify-items: center; padding-block: 3.5rem 2.5rem">
|
|
25
27
|
<div style="display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem">
|
|
26
|
-
<
|
|
27
|
-
Start
|
|
28
|
-
</
|
|
29
|
-
<
|
|
30
|
-
Center
|
|
31
|
-
</
|
|
32
|
-
<
|
|
33
|
-
End
|
|
34
|
-
</
|
|
28
|
+
<span class="tooltip" data-tooltip="Align start" data-side="top" data-align="start" id="demo-tooltip-align-top-start">
|
|
29
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">Start</button>
|
|
30
|
+
</span>
|
|
31
|
+
<span class="tooltip" data-tooltip="Align center" data-side="top" data-align="center" id="demo-tooltip-align-top-center">
|
|
32
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">Center</button>
|
|
33
|
+
</span>
|
|
34
|
+
<span class="tooltip" data-tooltip="Align end" data-side="top" data-align="end" id="demo-tooltip-align-top-end">
|
|
35
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">End</button>
|
|
36
|
+
</span>
|
|
35
37
|
</div>
|
|
36
38
|
<div style="display: grid; gap: 0.75rem; justify-items: center">
|
|
37
|
-
<
|
|
38
|
-
Start
|
|
39
|
-
</
|
|
40
|
-
<
|
|
41
|
-
Center
|
|
42
|
-
</
|
|
43
|
-
<
|
|
44
|
-
End
|
|
45
|
-
</
|
|
39
|
+
<span class="tooltip" data-tooltip="Align start" data-side="left" data-align="start" id="demo-tooltip-align-left-start">
|
|
40
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">Start</button>
|
|
41
|
+
</span>
|
|
42
|
+
<span class="tooltip" data-tooltip="Align center" data-side="left" data-align="center" id="demo-tooltip-align-left-center">
|
|
43
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">Center</button>
|
|
44
|
+
</span>
|
|
45
|
+
<span class="tooltip" data-tooltip="Align end" data-side="left" data-align="end" id="demo-tooltip-align-left-end">
|
|
46
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm">End</button>
|
|
47
|
+
</span>
|
|
46
48
|
</div>
|
|
47
49
|
</div>
|
|
48
50
|
|
|
49
|
-
<!-- Arrow -->
|
|
50
|
-
<div style="display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.75rem; padding-block: 2rem">
|
|
51
|
-
<button type="button" class="btn tooltip" data-variant="outline" data-size="sm" data-tooltip="Add to library" data-arrow id="demo-tooltip-with-arrow">
|
|
52
|
-
With arrow
|
|
53
|
-
</button>
|
|
54
|
-
<button type="button" class="btn tooltip" data-variant="outline" data-size="sm" data-tooltip="Add to library" id="demo-tooltip-without-arrow">
|
|
55
|
-
Without arrow
|
|
56
|
-
</button>
|
|
57
|
-
</div>
|
|
58
|
-
|
|
59
51
|
<!-- Keyboard shortcut -->
|
|
60
|
-
<
|
|
61
|
-
<button type="button" class="btn
|
|
52
|
+
<span class="tooltip" id="demo-tooltip-keyboard">
|
|
53
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-label="Save changes" aria-keyshortcuts="S" aria-describedby="demo-tooltip-keyboard-description">
|
|
62
54
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><path d="M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z"/><path d="M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7"/><path d="M7 3v4a1 1 0 0 0 1 1h7"/></svg>
|
|
63
55
|
</button>
|
|
64
|
-
|
|
56
|
+
<span data-slot="content" role="tooltip" id="demo-tooltip-keyboard-description">
|
|
57
|
+
Save changes <span class="kbd">S</span>
|
|
58
|
+
</span>
|
|
59
|
+
</span>
|
|
65
60
|
|
|
66
61
|
<!-- Disabled button -->
|
|
67
|
-
<
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
</span>
|
|
74
|
-
</div>
|
|
62
|
+
<span class="tooltip" id="demo-tooltip-disabled">
|
|
63
|
+
<button type="button" class="btn" data-variant="outline" disabled aria-describedby="demo-tooltip-disabled-description">
|
|
64
|
+
Disabled
|
|
65
|
+
</button>
|
|
66
|
+
<span data-slot="content" role="tooltip" id="demo-tooltip-disabled-description">This feature is currently unavailable</span>
|
|
67
|
+
</span>
|
|
75
68
|
|
|
76
69
|
<!-- Long content -->
|
|
77
|
-
<
|
|
78
|
-
<button type="button" class="btn
|
|
70
|
+
<span class="tooltip" id="demo-tooltip-long-content">
|
|
71
|
+
<button type="button" class="btn" data-variant="outline" aria-describedby="demo-tooltip-long-content-description">
|
|
79
72
|
Long content
|
|
80
73
|
</button>
|
|
81
|
-
|
|
74
|
+
<span data-slot="content" role="tooltip" id="demo-tooltip-long-content-description">Tooltips wrap onto multiple lines once the text is longer than the 20rem maximum width.</span>
|
|
75
|
+
</span>
|
|
82
76
|
|
|
83
77
|
<!-- Right-to-left -->
|
|
84
78
|
<div dir="rtl" lang="ar" style="display: grid; gap: 2rem; justify-items: center; padding-block: 2.5rem">
|
|
85
79
|
<div style="display: flex; justify-content: center; gap: 0.75rem">
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
80
|
+
<span class="tooltip" data-side="inline-start" id="demo-tooltip-rtl-inline-start">
|
|
81
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" aria-describedby="demo-tooltip-rtl-inline-start-description">بداية السطر</button>
|
|
82
|
+
<span data-slot="content" role="tooltip" id="demo-tooltip-rtl-inline-start-description">إضافة</span>
|
|
83
|
+
</span>
|
|
84
|
+
<span class="tooltip" data-side="inline-end" id="demo-tooltip-rtl-inline-end">
|
|
85
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" aria-describedby="demo-tooltip-rtl-inline-end-description">نهاية السطر</button>
|
|
86
|
+
<span data-slot="content" role="tooltip" id="demo-tooltip-rtl-inline-end-description">إضافة</span>
|
|
87
|
+
</span>
|
|
92
88
|
</div>
|
|
93
89
|
<div style="display: flex; justify-content: center; gap: 0.75rem">
|
|
94
|
-
<
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
90
|
+
<span class="tooltip" data-side="right" id="demo-tooltip-rtl-right">
|
|
91
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" aria-describedby="demo-tooltip-rtl-right-description">يمين</button>
|
|
92
|
+
<span data-slot="content" role="tooltip" id="demo-tooltip-rtl-right-description">إضافة</span>
|
|
93
|
+
</span>
|
|
94
|
+
<span class="tooltip" data-side="left" id="demo-tooltip-rtl-left">
|
|
95
|
+
<button type="button" class="btn" data-variant="outline" data-size="sm" aria-describedby="demo-tooltip-rtl-left-description">يسار</button>
|
|
96
|
+
<span data-slot="content" role="tooltip" id="demo-tooltip-rtl-left-description">إضافة</span>
|
|
97
|
+
</span>
|
|
100
98
|
</div>
|
|
101
99
|
</div>
|
|
100
|
+
|
|
101
|
+
<!-- Text shorthand -->
|
|
102
|
+
<span class="tooltip" data-tooltip="Copy link (C)" id="demo-tooltip-shorthand">
|
|
103
|
+
<button type="button" class="btn" data-variant="outline" data-size="icon" aria-label="Copy link" aria-keyshortcuts="C">
|
|
104
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="14" x="8" y="8" rx="2" ry="2"/><path d="M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2"/></svg>
|
|
105
|
+
</button>
|
|
106
|
+
</span>
|
|
@@ -66,17 +66,29 @@
|
|
|
66
66
|
border-width: 0;
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
[role='menu'] :is(
|
|
69
|
+
[role='menu'] :is(
|
|
70
|
+
[role='menuitem'],
|
|
71
|
+
[role='menuitemcheckbox'],
|
|
72
|
+
[role='menuitemradio']
|
|
73
|
+
) > :is([data-slot='shortcut'], kbd:last-child, .kbd:last-child, .kbd-group:last-child) {
|
|
70
74
|
margin-inline-start: auto;
|
|
71
75
|
flex-shrink: 0;
|
|
72
76
|
text-align: end;
|
|
73
77
|
}
|
|
74
78
|
|
|
75
|
-
[role='menu']
|
|
79
|
+
[role='menu'] :is(
|
|
80
|
+
[role='menuitem'],
|
|
81
|
+
[role='menuitemcheckbox'],
|
|
82
|
+
[role='menuitemradio']
|
|
83
|
+
) > [data-slot='shortcut'] {
|
|
76
84
|
padding-inline-start: 2rem;
|
|
77
85
|
}
|
|
78
86
|
|
|
79
|
-
[role='menu'] :is(
|
|
87
|
+
[role='menu'] :is(
|
|
88
|
+
[role='menuitem'],
|
|
89
|
+
[role='menuitemcheckbox'],
|
|
90
|
+
[role='menuitemradio']
|
|
91
|
+
) > :is(kbd:last-child, .kbd:last-child, .kbd-group:last-child):not([data-slot='shortcut']) {
|
|
80
92
|
padding-inline-start: 2rem;
|
|
81
93
|
}
|
|
82
94
|
|
package/registry/registry.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./schema.json",
|
|
3
3
|
"name": "loseta",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.18.0",
|
|
5
5
|
"styles": [
|
|
6
6
|
{
|
|
7
7
|
"name": "nova",
|
|
@@ -524,6 +524,18 @@
|
|
|
524
524
|
],
|
|
525
525
|
"examples": [
|
|
526
526
|
"examples/alert-dialog.html"
|
|
527
|
+
],
|
|
528
|
+
"behaviors": [
|
|
529
|
+
{
|
|
530
|
+
"path": "behaviors/core.js",
|
|
531
|
+
"target": "behaviors/core.js",
|
|
532
|
+
"kind": "support"
|
|
533
|
+
},
|
|
534
|
+
{
|
|
535
|
+
"path": "behaviors/dialog.js",
|
|
536
|
+
"target": "behaviors/dialog.js",
|
|
537
|
+
"kind": "entry"
|
|
538
|
+
}
|
|
527
539
|
]
|
|
528
540
|
},
|
|
529
541
|
{
|
|
@@ -537,7 +549,12 @@
|
|
|
537
549
|
".badge"
|
|
538
550
|
],
|
|
539
551
|
"registryDependencies": [],
|
|
540
|
-
"optionalDependencies": [
|
|
552
|
+
"optionalDependencies": [
|
|
553
|
+
"field",
|
|
554
|
+
"input",
|
|
555
|
+
"label",
|
|
556
|
+
"spinner"
|
|
557
|
+
],
|
|
541
558
|
"files": [
|
|
542
559
|
{
|
|
543
560
|
"path": "components/badge.css",
|
|
@@ -765,10 +782,13 @@
|
|
|
765
782
|
],
|
|
766
783
|
"registryDependencies": [],
|
|
767
784
|
"optionalDependencies": [
|
|
785
|
+
"accordion",
|
|
786
|
+
"badge",
|
|
768
787
|
"button",
|
|
769
788
|
"field",
|
|
770
789
|
"input",
|
|
771
|
-
"label"
|
|
790
|
+
"label",
|
|
791
|
+
"skeleton"
|
|
772
792
|
],
|
|
773
793
|
"files": [
|
|
774
794
|
{
|
|
@@ -978,6 +998,18 @@
|
|
|
978
998
|
],
|
|
979
999
|
"examples": [
|
|
980
1000
|
"examples/code-block.html"
|
|
1001
|
+
],
|
|
1002
|
+
"behaviors": [
|
|
1003
|
+
{
|
|
1004
|
+
"path": "behaviors/core.js",
|
|
1005
|
+
"target": "behaviors/core.js",
|
|
1006
|
+
"kind": "support"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
"path": "behaviors/code-block.js",
|
|
1010
|
+
"target": "behaviors/code-block.js",
|
|
1011
|
+
"kind": "entry"
|
|
1012
|
+
}
|
|
981
1013
|
]
|
|
982
1014
|
},
|
|
983
1015
|
{
|
|
@@ -1057,6 +1089,18 @@
|
|
|
1057
1089
|
],
|
|
1058
1090
|
"examples": [
|
|
1059
1091
|
"examples/dialog.html"
|
|
1092
|
+
],
|
|
1093
|
+
"behaviors": [
|
|
1094
|
+
{
|
|
1095
|
+
"path": "behaviors/core.js",
|
|
1096
|
+
"target": "behaviors/core.js",
|
|
1097
|
+
"kind": "support"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"path": "behaviors/dialog.js",
|
|
1101
|
+
"target": "behaviors/dialog.js",
|
|
1102
|
+
"kind": "entry"
|
|
1103
|
+
}
|
|
1060
1104
|
]
|
|
1061
1105
|
},
|
|
1062
1106
|
{
|
|
@@ -1135,6 +1179,18 @@
|
|
|
1135
1179
|
],
|
|
1136
1180
|
"examples": [
|
|
1137
1181
|
"examples/dropdown-menu.html"
|
|
1182
|
+
],
|
|
1183
|
+
"behaviors": [
|
|
1184
|
+
{
|
|
1185
|
+
"path": "behaviors/core.js",
|
|
1186
|
+
"target": "behaviors/core.js",
|
|
1187
|
+
"kind": "support"
|
|
1188
|
+
},
|
|
1189
|
+
{
|
|
1190
|
+
"path": "behaviors/menu.js",
|
|
1191
|
+
"target": "behaviors/menu.js",
|
|
1192
|
+
"kind": "entry"
|
|
1193
|
+
}
|
|
1138
1194
|
]
|
|
1139
1195
|
},
|
|
1140
1196
|
{
|
|
@@ -1460,10 +1516,17 @@
|
|
|
1460
1516
|
"description": "Displays keyboard shortcuts.",
|
|
1461
1517
|
"docs": "/docs/components/kbd",
|
|
1462
1518
|
"root": [
|
|
1463
|
-
".kbd"
|
|
1519
|
+
".kbd",
|
|
1520
|
+
".kbd-group"
|
|
1464
1521
|
],
|
|
1465
1522
|
"registryDependencies": [],
|
|
1466
|
-
"optionalDependencies": [
|
|
1523
|
+
"optionalDependencies": [
|
|
1524
|
+
"button",
|
|
1525
|
+
"dropdown-menu",
|
|
1526
|
+
"input",
|
|
1527
|
+
"input-group",
|
|
1528
|
+
"tooltip"
|
|
1529
|
+
],
|
|
1467
1530
|
"files": [
|
|
1468
1531
|
{
|
|
1469
1532
|
"path": "components/kbd.css",
|
|
@@ -1751,6 +1814,18 @@
|
|
|
1751
1814
|
],
|
|
1752
1815
|
"examples": [
|
|
1753
1816
|
"examples/popover.html"
|
|
1817
|
+
],
|
|
1818
|
+
"behaviors": [
|
|
1819
|
+
{
|
|
1820
|
+
"path": "behaviors/core.js",
|
|
1821
|
+
"target": "behaviors/core.js",
|
|
1822
|
+
"kind": "support"
|
|
1823
|
+
},
|
|
1824
|
+
{
|
|
1825
|
+
"path": "behaviors/popover.js",
|
|
1826
|
+
"target": "behaviors/popover.js",
|
|
1827
|
+
"kind": "entry"
|
|
1828
|
+
}
|
|
1754
1829
|
]
|
|
1755
1830
|
},
|
|
1756
1831
|
{
|
|
@@ -2123,6 +2198,18 @@
|
|
|
2123
2198
|
],
|
|
2124
2199
|
"examples": [
|
|
2125
2200
|
"examples/tabs.html"
|
|
2201
|
+
],
|
|
2202
|
+
"behaviors": [
|
|
2203
|
+
{
|
|
2204
|
+
"path": "behaviors/core.js",
|
|
2205
|
+
"target": "behaviors/core.js",
|
|
2206
|
+
"kind": "support"
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
"path": "behaviors/tabs.js",
|
|
2210
|
+
"target": "behaviors/tabs.js",
|
|
2211
|
+
"kind": "entry"
|
|
2212
|
+
}
|
|
2126
2213
|
]
|
|
2127
2214
|
},
|
|
2128
2215
|
{
|
|
@@ -2213,7 +2300,8 @@
|
|
|
2213
2300
|
],
|
|
2214
2301
|
"registryDependencies": [],
|
|
2215
2302
|
"optionalDependencies": [
|
|
2216
|
-
"button"
|
|
2303
|
+
"button",
|
|
2304
|
+
"kbd"
|
|
2217
2305
|
],
|
|
2218
2306
|
"files": [
|
|
2219
2307
|
{
|
|
@@ -2504,6 +2592,7 @@
|
|
|
2504
2592
|
],
|
|
2505
2593
|
"registryDependencies": [],
|
|
2506
2594
|
"optionalDependencies": [
|
|
2595
|
+
"button",
|
|
2507
2596
|
"dropdown-menu"
|
|
2508
2597
|
],
|
|
2509
2598
|
"files": [
|
|
@@ -3077,6 +3166,18 @@
|
|
|
3077
3166
|
],
|
|
3078
3167
|
"examples": [
|
|
3079
3168
|
"examples/context-menu.html"
|
|
3169
|
+
],
|
|
3170
|
+
"behaviors": [
|
|
3171
|
+
{
|
|
3172
|
+
"path": "behaviors/core.js",
|
|
3173
|
+
"target": "behaviors/core.js",
|
|
3174
|
+
"kind": "support"
|
|
3175
|
+
},
|
|
3176
|
+
{
|
|
3177
|
+
"path": "behaviors/menu.js",
|
|
3178
|
+
"target": "behaviors/menu.js",
|
|
3179
|
+
"kind": "entry"
|
|
3180
|
+
}
|
|
3080
3181
|
]
|
|
3081
3182
|
},
|
|
3082
3183
|
{
|
|
@@ -3156,6 +3257,18 @@
|
|
|
3156
3257
|
],
|
|
3157
3258
|
"examples": [
|
|
3158
3259
|
"examples/drawer.html"
|
|
3260
|
+
],
|
|
3261
|
+
"behaviors": [
|
|
3262
|
+
{
|
|
3263
|
+
"path": "behaviors/core.js",
|
|
3264
|
+
"target": "behaviors/core.js",
|
|
3265
|
+
"kind": "support"
|
|
3266
|
+
},
|
|
3267
|
+
{
|
|
3268
|
+
"path": "behaviors/dialog.js",
|
|
3269
|
+
"target": "behaviors/dialog.js",
|
|
3270
|
+
"kind": "entry"
|
|
3271
|
+
}
|
|
3159
3272
|
]
|
|
3160
3273
|
},
|
|
3161
3274
|
{
|
|
@@ -3305,6 +3418,18 @@
|
|
|
3305
3418
|
],
|
|
3306
3419
|
"examples": [
|
|
3307
3420
|
"examples/menubar.html"
|
|
3421
|
+
],
|
|
3422
|
+
"behaviors": [
|
|
3423
|
+
{
|
|
3424
|
+
"path": "behaviors/core.js",
|
|
3425
|
+
"target": "behaviors/core.js",
|
|
3426
|
+
"kind": "support"
|
|
3427
|
+
},
|
|
3428
|
+
{
|
|
3429
|
+
"path": "behaviors/menu.js",
|
|
3430
|
+
"target": "behaviors/menu.js",
|
|
3431
|
+
"kind": "entry"
|
|
3432
|
+
}
|
|
3308
3433
|
]
|
|
3309
3434
|
},
|
|
3310
3435
|
{
|
|
@@ -3379,6 +3504,18 @@
|
|
|
3379
3504
|
],
|
|
3380
3505
|
"examples": [
|
|
3381
3506
|
"examples/navigation-menu.html"
|
|
3507
|
+
],
|
|
3508
|
+
"behaviors": [
|
|
3509
|
+
{
|
|
3510
|
+
"path": "behaviors/core.js",
|
|
3511
|
+
"target": "behaviors/core.js",
|
|
3512
|
+
"kind": "support"
|
|
3513
|
+
},
|
|
3514
|
+
{
|
|
3515
|
+
"path": "behaviors/menu.js",
|
|
3516
|
+
"target": "behaviors/menu.js",
|
|
3517
|
+
"kind": "entry"
|
|
3518
|
+
}
|
|
3382
3519
|
]
|
|
3383
3520
|
},
|
|
3384
3521
|
{
|
|
@@ -3458,6 +3595,18 @@
|
|
|
3458
3595
|
],
|
|
3459
3596
|
"examples": [
|
|
3460
3597
|
"examples/sheet.html"
|
|
3598
|
+
],
|
|
3599
|
+
"behaviors": [
|
|
3600
|
+
{
|
|
3601
|
+
"path": "behaviors/core.js",
|
|
3602
|
+
"target": "behaviors/core.js",
|
|
3603
|
+
"kind": "support"
|
|
3604
|
+
},
|
|
3605
|
+
{
|
|
3606
|
+
"path": "behaviors/dialog.js",
|
|
3607
|
+
"target": "behaviors/dialog.js",
|
|
3608
|
+
"kind": "entry"
|
|
3609
|
+
}
|
|
3461
3610
|
]
|
|
3462
3611
|
},
|
|
3463
3612
|
{
|
|
@@ -3617,7 +3766,7 @@
|
|
|
3617
3766
|
"type": "component",
|
|
3618
3767
|
"status": "stable",
|
|
3619
3768
|
"title": "Input OTP",
|
|
3620
|
-
"description": "A
|
|
3769
|
+
"description": "A one-time code input drawn as a row of character slots.",
|
|
3621
3770
|
"docs": "/docs/components/input-otp",
|
|
3622
3771
|
"root": [
|
|
3623
3772
|
".input-otp"
|
|
@@ -3852,7 +4001,10 @@
|
|
|
3852
4001
|
"listbox",
|
|
3853
4002
|
"popover-primitive"
|
|
3854
4003
|
],
|
|
3855
|
-
"optionalDependencies": [
|
|
4004
|
+
"optionalDependencies": [
|
|
4005
|
+
"field",
|
|
4006
|
+
"label"
|
|
4007
|
+
],
|
|
3856
4008
|
"files": [
|
|
3857
4009
|
{
|
|
3858
4010
|
"path": "components/select.css",
|
|
@@ -3911,6 +4063,23 @@
|
|
|
3911
4063
|
],
|
|
3912
4064
|
"examples": [
|
|
3913
4065
|
"examples/select.html"
|
|
4066
|
+
],
|
|
4067
|
+
"behaviors": [
|
|
4068
|
+
{
|
|
4069
|
+
"path": "behaviors/core.js",
|
|
4070
|
+
"target": "behaviors/core.js",
|
|
4071
|
+
"kind": "support"
|
|
4072
|
+
},
|
|
4073
|
+
{
|
|
4074
|
+
"path": "behaviors/listbox.js",
|
|
4075
|
+
"target": "behaviors/listbox.js",
|
|
4076
|
+
"kind": "support"
|
|
4077
|
+
},
|
|
4078
|
+
{
|
|
4079
|
+
"path": "behaviors/select.js",
|
|
4080
|
+
"target": "behaviors/select.js",
|
|
4081
|
+
"kind": "entry"
|
|
4082
|
+
}
|
|
3914
4083
|
]
|
|
3915
4084
|
},
|
|
3916
4085
|
{
|
|
@@ -3988,6 +4157,23 @@
|
|
|
3988
4157
|
],
|
|
3989
4158
|
"examples": [
|
|
3990
4159
|
"examples/combobox.html"
|
|
4160
|
+
],
|
|
4161
|
+
"behaviors": [
|
|
4162
|
+
{
|
|
4163
|
+
"path": "behaviors/core.js",
|
|
4164
|
+
"target": "behaviors/core.js",
|
|
4165
|
+
"kind": "support"
|
|
4166
|
+
},
|
|
4167
|
+
{
|
|
4168
|
+
"path": "behaviors/listbox.js",
|
|
4169
|
+
"target": "behaviors/listbox.js",
|
|
4170
|
+
"kind": "support"
|
|
4171
|
+
},
|
|
4172
|
+
{
|
|
4173
|
+
"path": "behaviors/combobox.js",
|
|
4174
|
+
"target": "behaviors/combobox.js",
|
|
4175
|
+
"kind": "entry"
|
|
4176
|
+
}
|
|
3991
4177
|
]
|
|
3992
4178
|
},
|
|
3993
4179
|
{
|
|
@@ -4071,6 +4257,23 @@
|
|
|
4071
4257
|
],
|
|
4072
4258
|
"examples": [
|
|
4073
4259
|
"examples/command.html"
|
|
4260
|
+
],
|
|
4261
|
+
"behaviors": [
|
|
4262
|
+
{
|
|
4263
|
+
"path": "behaviors/core.js",
|
|
4264
|
+
"target": "behaviors/core.js",
|
|
4265
|
+
"kind": "support"
|
|
4266
|
+
},
|
|
4267
|
+
{
|
|
4268
|
+
"path": "behaviors/listbox.js",
|
|
4269
|
+
"target": "behaviors/listbox.js",
|
|
4270
|
+
"kind": "support"
|
|
4271
|
+
},
|
|
4272
|
+
{
|
|
4273
|
+
"path": "behaviors/command.js",
|
|
4274
|
+
"target": "behaviors/command.js",
|
|
4275
|
+
"kind": "entry"
|
|
4276
|
+
}
|
|
4074
4277
|
]
|
|
4075
4278
|
},
|
|
4076
4279
|
{
|
|
@@ -4084,7 +4287,14 @@
|
|
|
4084
4287
|
".calendar"
|
|
4085
4288
|
],
|
|
4086
4289
|
"registryDependencies": [],
|
|
4087
|
-
"optionalDependencies": [
|
|
4290
|
+
"optionalDependencies": [
|
|
4291
|
+
"card",
|
|
4292
|
+
"button",
|
|
4293
|
+
"popover",
|
|
4294
|
+
"field",
|
|
4295
|
+
"label",
|
|
4296
|
+
"input"
|
|
4297
|
+
],
|
|
4088
4298
|
"files": [
|
|
4089
4299
|
{
|
|
4090
4300
|
"path": "components/calendar.css",
|
|
@@ -4515,6 +4725,18 @@
|
|
|
4515
4725
|
],
|
|
4516
4726
|
"examples": [
|
|
4517
4727
|
"examples/toast.html"
|
|
4728
|
+
],
|
|
4729
|
+
"behaviors": [
|
|
4730
|
+
{
|
|
4731
|
+
"path": "behaviors/core.js",
|
|
4732
|
+
"target": "behaviors/core.js",
|
|
4733
|
+
"kind": "support"
|
|
4734
|
+
},
|
|
4735
|
+
{
|
|
4736
|
+
"path": "behaviors/toast.js",
|
|
4737
|
+
"target": "behaviors/toast.js",
|
|
4738
|
+
"kind": "entry"
|
|
4739
|
+
}
|
|
4518
4740
|
]
|
|
4519
4741
|
},
|
|
4520
4742
|
{
|
package/registry/schema.json
CHANGED
|
@@ -61,6 +61,10 @@
|
|
|
61
61
|
"minItems": 1,
|
|
62
62
|
"items": { "$ref": "#/$defs/file" }
|
|
63
63
|
},
|
|
64
|
+
"behaviors": {
|
|
65
|
+
"type": "array",
|
|
66
|
+
"items": { "$ref": "#/$defs/behavior" }
|
|
67
|
+
},
|
|
64
68
|
"examples": {
|
|
65
69
|
"type": "array",
|
|
66
70
|
"items": { "type": "string" },
|
|
@@ -87,6 +91,19 @@
|
|
|
87
91
|
]
|
|
88
92
|
}
|
|
89
93
|
}
|
|
94
|
+
},
|
|
95
|
+
"behavior": {
|
|
96
|
+
"type": "object",
|
|
97
|
+
"required": ["path", "target", "kind"],
|
|
98
|
+
"additionalProperties": false,
|
|
99
|
+
"properties": {
|
|
100
|
+
"path": { "type": "string", "minLength": 1 },
|
|
101
|
+
"target": {
|
|
102
|
+
"type": "string",
|
|
103
|
+
"pattern": "^behaviors/[a-z0-9-]+\\.js$"
|
|
104
|
+
},
|
|
105
|
+
"kind": { "enum": ["entry", "support"] }
|
|
106
|
+
}
|
|
90
107
|
}
|
|
91
108
|
}
|
|
92
109
|
}
|