@hypoth-ui/wc 0.1.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.
Files changed (87) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +60 -0
  3. package/dist/button-MKQKTC5Q.js +10 -0
  4. package/dist/button-MKQKTC5Q.js.map +1 -0
  5. package/dist/chunk-4HLM6DBG.js +910 -0
  6. package/dist/chunk-4HLM6DBG.js.map +1 -0
  7. package/dist/chunk-55ID7LJL.js +3602 -0
  8. package/dist/chunk-55ID7LJL.js.map +1 -0
  9. package/dist/chunk-66HFYJD7.js +86 -0
  10. package/dist/chunk-66HFYJD7.js.map +1 -0
  11. package/dist/chunk-CZOXIJVS.js +70 -0
  12. package/dist/chunk-CZOXIJVS.js.map +1 -0
  13. package/dist/chunk-DHUM4Q5Y.js +495 -0
  14. package/dist/chunk-DHUM4Q5Y.js.map +1 -0
  15. package/dist/chunk-DNNI5BDE.js +1842 -0
  16. package/dist/chunk-DNNI5BDE.js.map +1 -0
  17. package/dist/chunk-GXKZ6E6K.js +99 -0
  18. package/dist/chunk-GXKZ6E6K.js.map +1 -0
  19. package/dist/chunk-H4GJJZ3N.js +51 -0
  20. package/dist/chunk-H4GJJZ3N.js.map +1 -0
  21. package/dist/chunk-JMPTFALJ.js +175 -0
  22. package/dist/chunk-JMPTFALJ.js.map +1 -0
  23. package/dist/chunk-MYQWCLUJ.js +45 -0
  24. package/dist/chunk-MYQWCLUJ.js.map +1 -0
  25. package/dist/chunk-QZSPWT7L.js +183 -0
  26. package/dist/chunk-QZSPWT7L.js.map +1 -0
  27. package/dist/chunk-TSKBQCTR.js +5137 -0
  28. package/dist/chunk-TSKBQCTR.js.map +1 -0
  29. package/dist/chunk-TXIIUVL3.js +130 -0
  30. package/dist/chunk-TXIIUVL3.js.map +1 -0
  31. package/dist/chunk-UM7WRO7W.js +237 -0
  32. package/dist/chunk-UM7WRO7W.js.map +1 -0
  33. package/dist/chunk-VPXL4RB3.js +202 -0
  34. package/dist/chunk-VPXL4RB3.js.map +1 -0
  35. package/dist/chunk-VX5CKSMN.js +39 -0
  36. package/dist/chunk-VX5CKSMN.js.map +1 -0
  37. package/dist/chunk-WQ5BEP3E.js +2845 -0
  38. package/dist/chunk-WQ5BEP3E.js.map +1 -0
  39. package/dist/chunk-YDQ434UH.js +60 -0
  40. package/dist/chunk-YDQ434UH.js.map +1 -0
  41. package/dist/chunk-ZWV4VI6D.js +153 -0
  42. package/dist/chunk-ZWV4VI6D.js.map +1 -0
  43. package/dist/core.d.ts +127 -0
  44. package/dist/core.js +38 -0
  45. package/dist/core.js.map +1 -0
  46. package/dist/data-display.d.ts +872 -0
  47. package/dist/data-display.js +57 -0
  48. package/dist/data-display.js.map +1 -0
  49. package/dist/ds-element-Db0LMfxI.d.ts +43 -0
  50. package/dist/feedback.d.ts +292 -0
  51. package/dist/feedback.js +31 -0
  52. package/dist/feedback.js.map +1 -0
  53. package/dist/form-controls.d.ts +1713 -0
  54. package/dist/form-controls.js +63 -0
  55. package/dist/form-controls.js.map +1 -0
  56. package/dist/icon-7IZTJ5WT.js +8 -0
  57. package/dist/icon-7IZTJ5WT.js.map +1 -0
  58. package/dist/index.d.ts +15 -0
  59. package/dist/index.js +423 -0
  60. package/dist/index.js.map +1 -0
  61. package/dist/input-LB6UR37A.js +10 -0
  62. package/dist/input-LB6UR37A.js.map +1 -0
  63. package/dist/layout.d.ts +504 -0
  64. package/dist/layout.js +34 -0
  65. package/dist/layout.js.map +1 -0
  66. package/dist/link-NHDJ6SFY.js +9 -0
  67. package/dist/link-NHDJ6SFY.js.map +1 -0
  68. package/dist/navigation.d.ts +255 -0
  69. package/dist/navigation.js +111 -0
  70. package/dist/navigation.js.map +1 -0
  71. package/dist/overlays.d.ts +1291 -0
  72. package/dist/overlays.js +106 -0
  73. package/dist/overlays.js.map +1 -0
  74. package/dist/primitives.d.ts +230 -0
  75. package/dist/primitives.js +26 -0
  76. package/dist/primitives.js.map +1 -0
  77. package/dist/registry-Bns0t11H.d.ts +233 -0
  78. package/dist/skeleton-MUdd2029.d.ts +109 -0
  79. package/dist/spinner-BWaNlc-Y.d.ts +45 -0
  80. package/dist/spinner-UIYDUVBZ.js +8 -0
  81. package/dist/spinner-UIYDUVBZ.js.map +1 -0
  82. package/dist/stepper-CCRwcQOe.d.ts +851 -0
  83. package/dist/text-MT3S3EMU.js +8 -0
  84. package/dist/text-MT3S3EMU.js.map +1 -0
  85. package/dist/visually-hidden-MW2XY4CS.js +8 -0
  86. package/dist/visually-hidden-MW2XY4CS.js.map +1 -0
  87. package/package.json +92 -0
@@ -0,0 +1,255 @@
1
+ export { i as AccordionOrientation, A as AccordionType, h as DsAccordion, l as DsAccordionContent, j as DsAccordionItem, k as DsAccordionTrigger, y as DsBreadcrumb, B as DsBreadcrumbItem, C as DsBreadcrumbLink, z as DsBreadcrumbList, E as DsBreadcrumbPage, F as DsBreadcrumbSeparator, D as DsCollapsible, b as DsCollapsibleContent, a as DsCollapsibleTrigger, m as DsNavigationMenu, q as DsNavigationMenuContent, s as DsNavigationMenuIndicator, o as DsNavigationMenuItem, r as DsNavigationMenuLink, n as DsNavigationMenuList, p as DsNavigationMenuTrigger, t as DsNavigationMenuViewport, G as DsPagination, H as DsPaginationContent, M as DsPaginationEllipsis, I as DsPaginationItem, J as DsPaginationLink, L as DsPaginationNext, K as DsPaginationPrevious, u as DsScrollArea, w as DsScrollAreaScrollbar, x as DsScrollAreaThumb, v as DsScrollAreaViewport, N as DsStepper, X as DsStepperContent, V as DsStepperDescription, R as DsStepperIndicator, P as DsStepperItem, W as DsStepperSeparator, U as DsStepperTitle, Q as DsStepperTrigger, c as DsTabs, g as DsTabsContent, e as DsTabsList, f as DsTabsTrigger, S as ScrollAreaType, O as StepperOrientation, d as TabsActivationMode, T as TabsOrientation } from './stepper-CCRwcQOe.js';
2
+ import { D as DSElement } from './ds-element-Db0LMfxI.js';
3
+ import 'lit';
4
+ import '@hypoth-ui/primitives-dom';
5
+
6
+ /**
7
+ * Command palette root component - provides search-based command/option selection.
8
+ *
9
+ * @element ds-command
10
+ * @slot - Command children (input, list, etc.)
11
+ *
12
+ * @fires ds:value-change - When the input value changes
13
+ * @fires ds:select - When an item is selected
14
+ *
15
+ * @example
16
+ * ```html
17
+ * <ds-command>
18
+ * <ds-command-input placeholder="Search commands..."></ds-command-input>
19
+ * <ds-command-list>
20
+ * <ds-command-group heading="Actions">
21
+ * <ds-command-item value="copy">Copy</ds-command-item>
22
+ * <ds-command-item value="paste">Paste</ds-command-item>
23
+ * </ds-command-group>
24
+ * </ds-command-list>
25
+ * </ds-command>
26
+ * ```
27
+ */
28
+ declare class DsCommand extends DSElement {
29
+ /**
30
+ * Current search/filter value.
31
+ */
32
+ value: string;
33
+ /**
34
+ * Whether the command palette is in a loading state.
35
+ */
36
+ loading: boolean;
37
+ /**
38
+ * Whether to use built-in fuzzy filtering.
39
+ * When false, filtering must be handled externally.
40
+ */
41
+ filter: boolean;
42
+ /**
43
+ * Label for accessibility.
44
+ */
45
+ label: string;
46
+ /**
47
+ * Tracks visible item count after filtering.
48
+ */
49
+ private _visibleCount;
50
+ connectedCallback(): void;
51
+ disconnectedCallback(): void;
52
+ private _handleInputChange;
53
+ private _handleSelect;
54
+ private _filterItems;
55
+ private _fuzzyMatch;
56
+ private _updateGroupVisibility;
57
+ private _updateEmptyState;
58
+ /**
59
+ * Programmatically set the search value.
60
+ */
61
+ setValue(value: string): void;
62
+ /**
63
+ * Clear the search value.
64
+ */
65
+ clear(): void;
66
+ }
67
+
68
+ /**
69
+ * Command palette input component - search input for filtering commands.
70
+ *
71
+ * @element ds-command-input
72
+ *
73
+ * @fires ds:command-input - When the input value changes (bubbles to ds-command)
74
+ *
75
+ * @example
76
+ * ```html
77
+ * <ds-command-input placeholder="Type a command or search..."></ds-command-input>
78
+ * ```
79
+ */
80
+ declare class DsCommandInput extends DSElement {
81
+ /**
82
+ * Current input value.
83
+ */
84
+ value: string;
85
+ /**
86
+ * Placeholder text.
87
+ */
88
+ placeholder: string;
89
+ /**
90
+ * Whether the input is disabled.
91
+ */
92
+ disabled: boolean;
93
+ private _input;
94
+ connectedCallback(): void;
95
+ disconnectedCallback(): void;
96
+ private _createInput;
97
+ private _handleInput;
98
+ private _handleKeyDown;
99
+ /**
100
+ * Focus the input.
101
+ */
102
+ focus(): void;
103
+ /**
104
+ * Blur the input.
105
+ */
106
+ blur(): void;
107
+ }
108
+
109
+ /**
110
+ * Command palette list component - contains command items with keyboard navigation.
111
+ *
112
+ * @element ds-command-list
113
+ * @slot - Command items and groups
114
+ *
115
+ * @example
116
+ * ```html
117
+ * <ds-command-list>
118
+ * <ds-command-item value="copy">Copy</ds-command-item>
119
+ * <ds-command-item value="paste">Paste</ds-command-item>
120
+ * </ds-command-list>
121
+ * ```
122
+ */
123
+ declare class DsCommandList extends DSElement {
124
+ private _rovingFocus;
125
+ private _observer;
126
+ connectedCallback(): void;
127
+ disconnectedCallback(): void;
128
+ private _setupMutationObserver;
129
+ private _setupRovingFocus;
130
+ private _getVisibleItems;
131
+ /**
132
+ * Focus the first visible item.
133
+ */
134
+ focus(): void;
135
+ /**
136
+ * Focus the last visible item.
137
+ */
138
+ focusLast(): void;
139
+ }
140
+
141
+ /**
142
+ * Command palette item component - selectable command/option.
143
+ *
144
+ * @element ds-command-item
145
+ * @slot - Item content
146
+ *
147
+ * @fires ds:command-select - When the item is selected (bubbles to ds-command)
148
+ *
149
+ * @example
150
+ * ```html
151
+ * <ds-command-item value="copy" keywords="duplicate clone">
152
+ * <ds-icon name="copy"></ds-icon>
153
+ * Copy
154
+ * </ds-command-item>
155
+ * ```
156
+ */
157
+ declare class DsCommandItem extends DSElement {
158
+ /**
159
+ * Value to emit when selected.
160
+ */
161
+ value: string;
162
+ /**
163
+ * Additional keywords for fuzzy search (space-separated).
164
+ */
165
+ keywords: string;
166
+ /**
167
+ * Whether the item is disabled.
168
+ */
169
+ disabled: boolean;
170
+ connectedCallback(): void;
171
+ disconnectedCallback(): void;
172
+ private _handleClick;
173
+ private _handleKeyDown;
174
+ private _select;
175
+ }
176
+
177
+ /**
178
+ * Command palette group component - groups related command items with a heading.
179
+ *
180
+ * @element ds-command-group
181
+ * @slot - Command items
182
+ *
183
+ * @example
184
+ * ```html
185
+ * <ds-command-group heading="Actions">
186
+ * <ds-command-item value="copy">Copy</ds-command-item>
187
+ * <ds-command-item value="paste">Paste</ds-command-item>
188
+ * </ds-command-group>
189
+ * ```
190
+ */
191
+ declare class DsCommandGroup extends DSElement {
192
+ /**
193
+ * Heading text for the group.
194
+ */
195
+ heading: string;
196
+ private _headingEl;
197
+ connectedCallback(): void;
198
+ updated(changedProperties: Map<string, unknown>): void;
199
+ private _createHeading;
200
+ }
201
+
202
+ /**
203
+ * Command palette separator component - visual divider between items/groups.
204
+ *
205
+ * @element ds-command-separator
206
+ *
207
+ * @example
208
+ * ```html
209
+ * <ds-command-list>
210
+ * <ds-command-item value="copy">Copy</ds-command-item>
211
+ * <ds-command-separator></ds-command-separator>
212
+ * <ds-command-item value="delete">Delete</ds-command-item>
213
+ * </ds-command-list>
214
+ * ```
215
+ */
216
+ declare class DsCommandSeparator extends DSElement {
217
+ connectedCallback(): void;
218
+ }
219
+
220
+ /**
221
+ * Command palette empty state component - shown when no results match the search.
222
+ *
223
+ * @element ds-command-empty
224
+ * @slot - Empty state content
225
+ *
226
+ * @example
227
+ * ```html
228
+ * <ds-command-empty>
229
+ * No results found.
230
+ * </ds-command-empty>
231
+ * ```
232
+ */
233
+ declare class DsCommandEmpty extends DSElement {
234
+ connectedCallback(): void;
235
+ }
236
+
237
+ /**
238
+ * Command palette loading state component - shown when loading async results.
239
+ *
240
+ * @element ds-command-loading
241
+ * @slot - Loading state content (e.g., spinner)
242
+ *
243
+ * @example
244
+ * ```html
245
+ * <ds-command-loading>
246
+ * <ds-spinner size="sm"></ds-spinner>
247
+ * Loading...
248
+ * </ds-command-loading>
249
+ * ```
250
+ */
251
+ declare class DsCommandLoading extends DSElement {
252
+ connectedCallback(): void;
253
+ }
254
+
255
+ export { DsCommand, DsCommandEmpty, DsCommandGroup, DsCommandInput, DsCommandItem, DsCommandList, DsCommandLoading, DsCommandSeparator };
@@ -0,0 +1,111 @@
1
+ import {
2
+ DsAccordion,
3
+ DsAccordionContent,
4
+ DsAccordionItem,
5
+ DsAccordionTrigger,
6
+ DsBreadcrumb,
7
+ DsBreadcrumbItem,
8
+ DsBreadcrumbLink,
9
+ DsBreadcrumbList,
10
+ DsBreadcrumbPage,
11
+ DsBreadcrumbSeparator,
12
+ DsCollapsible,
13
+ DsCollapsibleContent,
14
+ DsCollapsibleTrigger,
15
+ DsCommand,
16
+ DsCommandEmpty,
17
+ DsCommandGroup,
18
+ DsCommandInput,
19
+ DsCommandItem,
20
+ DsCommandList,
21
+ DsCommandLoading,
22
+ DsCommandSeparator,
23
+ DsNavigationMenu,
24
+ DsNavigationMenuContent,
25
+ DsNavigationMenuIndicator,
26
+ DsNavigationMenuItem,
27
+ DsNavigationMenuLink,
28
+ DsNavigationMenuList,
29
+ DsNavigationMenuTrigger,
30
+ DsNavigationMenuViewport,
31
+ DsPagination,
32
+ DsPaginationContent,
33
+ DsPaginationEllipsis,
34
+ DsPaginationItem,
35
+ DsPaginationLink,
36
+ DsPaginationNext,
37
+ DsPaginationPrevious,
38
+ DsScrollArea,
39
+ DsScrollAreaScrollbar,
40
+ DsScrollAreaThumb,
41
+ DsScrollAreaViewport,
42
+ DsStepper,
43
+ DsStepperContent,
44
+ DsStepperDescription,
45
+ DsStepperIndicator,
46
+ DsStepperItem,
47
+ DsStepperSeparator,
48
+ DsStepperTitle,
49
+ DsStepperTrigger,
50
+ DsTabs,
51
+ DsTabsContent,
52
+ DsTabsList,
53
+ DsTabsTrigger
54
+ } from "./chunk-WQ5BEP3E.js";
55
+ import "./chunk-YDQ434UH.js";
56
+ import "./chunk-H4GJJZ3N.js";
57
+ export {
58
+ DsAccordion,
59
+ DsAccordionContent,
60
+ DsAccordionItem,
61
+ DsAccordionTrigger,
62
+ DsBreadcrumb,
63
+ DsBreadcrumbItem,
64
+ DsBreadcrumbLink,
65
+ DsBreadcrumbList,
66
+ DsBreadcrumbPage,
67
+ DsBreadcrumbSeparator,
68
+ DsCollapsible,
69
+ DsCollapsibleContent,
70
+ DsCollapsibleTrigger,
71
+ DsCommand,
72
+ DsCommandEmpty,
73
+ DsCommandGroup,
74
+ DsCommandInput,
75
+ DsCommandItem,
76
+ DsCommandList,
77
+ DsCommandLoading,
78
+ DsCommandSeparator,
79
+ DsNavigationMenu,
80
+ DsNavigationMenuContent,
81
+ DsNavigationMenuIndicator,
82
+ DsNavigationMenuItem,
83
+ DsNavigationMenuLink,
84
+ DsNavigationMenuList,
85
+ DsNavigationMenuTrigger,
86
+ DsNavigationMenuViewport,
87
+ DsPagination,
88
+ DsPaginationContent,
89
+ DsPaginationEllipsis,
90
+ DsPaginationItem,
91
+ DsPaginationLink,
92
+ DsPaginationNext,
93
+ DsPaginationPrevious,
94
+ DsScrollArea,
95
+ DsScrollAreaScrollbar,
96
+ DsScrollAreaThumb,
97
+ DsScrollAreaViewport,
98
+ DsStepper,
99
+ DsStepperContent,
100
+ DsStepperDescription,
101
+ DsStepperIndicator,
102
+ DsStepperItem,
103
+ DsStepperSeparator,
104
+ DsStepperTitle,
105
+ DsStepperTrigger,
106
+ DsTabs,
107
+ DsTabsContent,
108
+ DsTabsList,
109
+ DsTabsTrigger
110
+ };
111
+ //# sourceMappingURL=navigation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}