@close-by/clay 0.2.7 → 0.2.9
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 +1 -1
- package/SKILL.md +137 -0
- package/docs/README.md +80 -0
- package/docs/SKILL.md +137 -0
- package/docs/ai.md +65 -0
- package/docs/api.md +2136 -0
- package/docs/architecture.md +103 -0
- package/docs/boot.md +103 -0
- package/docs/browser-apis.md +65 -0
- package/docs/clickhouse.md +59 -0
- package/docs/concepts.md +269 -0
- package/docs/duckdb.md +68 -0
- package/docs/elements.md +206 -0
- package/docs/examples.md +316 -0
- package/docs/getting-started.md +278 -0
- package/docs/jsx-investigation.md +167 -0
- package/docs/kibana.md +138 -0
- package/docs/llms.txt +45 -0
- package/docs/ops-patterns.md +219 -0
- package/docs/production.md +71 -0
- package/docs/protocol.md +238 -0
- package/docs/reactive-let.md +217 -0
- package/docs/tailwind.md +73 -0
- package/docs/tutorial.md +234 -0
- package/package.json +16 -6
- package/src/docs-dir.ts +44 -0
- package/src/index.ts +120 -3
package/src/index.ts
CHANGED
|
@@ -29,6 +29,19 @@ import {
|
|
|
29
29
|
statusDot as statusDotFactory,
|
|
30
30
|
feedRow as feedRowFactory,
|
|
31
31
|
feedList as feedListFactory,
|
|
32
|
+
buttonGroup as buttonGroupFactory,
|
|
33
|
+
empty as emptyFactory,
|
|
34
|
+
pagination as paginationFactory,
|
|
35
|
+
filterBar as filterBarFactory,
|
|
36
|
+
filterChips as filterChipsFactory,
|
|
37
|
+
numberField as numberFieldFactory,
|
|
38
|
+
phoneInput as phoneInputFactory,
|
|
39
|
+
field as fieldFactory,
|
|
40
|
+
nativeSelect as nativeSelectFactory,
|
|
41
|
+
navigationMenu as navigationMenuFactory,
|
|
42
|
+
NavigationMenuElement,
|
|
43
|
+
notice as noticeFactory,
|
|
44
|
+
eventCalendar as eventCalendarFactory,
|
|
32
45
|
stat as statFactory,
|
|
33
46
|
dataTable as dataTableFactory,
|
|
34
47
|
areaChart as areaChartFactory,
|
|
@@ -134,9 +147,25 @@ import {
|
|
|
134
147
|
type FeedRowProps,
|
|
135
148
|
type FeedRowStatus,
|
|
136
149
|
type FeedListProps,
|
|
137
|
-
type
|
|
138
|
-
type
|
|
139
|
-
type
|
|
150
|
+
type ButtonGroupProps,
|
|
151
|
+
type ButtonGroupOrientation,
|
|
152
|
+
type EmptyProps,
|
|
153
|
+
type PaginationProps,
|
|
154
|
+
type FilterBarProps,
|
|
155
|
+
type FilterChip,
|
|
156
|
+
type NumberFieldProps,
|
|
157
|
+
type PhoneInputProps,
|
|
158
|
+
type PhoneCountry,
|
|
159
|
+
type FieldProps,
|
|
160
|
+
type FieldOrientation,
|
|
161
|
+
type NativeSelectProps,
|
|
162
|
+
type NativeSelectOption,
|
|
163
|
+
type NavigationMenuProps,
|
|
164
|
+
type NavigationMenuLinkItem,
|
|
165
|
+
type NoticeProps,
|
|
166
|
+
type NoticeVariant,
|
|
167
|
+
type EventCalendarProps,
|
|
168
|
+
type EventCalendarEvent,
|
|
140
169
|
type StatItem,
|
|
141
170
|
type DataTableProps,
|
|
142
171
|
type DataTableAction,
|
|
@@ -344,6 +373,7 @@ import {
|
|
|
344
373
|
DialogElement,
|
|
345
374
|
DialogStackElement,
|
|
346
375
|
StepperElement,
|
|
376
|
+
NavigationMenuElement,
|
|
347
377
|
AlertDialogElement,
|
|
348
378
|
DropdownMenuElement,
|
|
349
379
|
ContextMenuElement,
|
|
@@ -635,6 +665,7 @@ export {
|
|
|
635
665
|
DialogElement,
|
|
636
666
|
DialogStackElement,
|
|
637
667
|
StepperElement,
|
|
668
|
+
NavigationMenuElement,
|
|
638
669
|
AlertDialogElement,
|
|
639
670
|
DropdownMenuElement,
|
|
640
671
|
SheetElement,
|
|
@@ -867,6 +898,80 @@ export function feedRow(props: FeedRowProps, footer?: () => void): Element {
|
|
|
867
898
|
return feedRowFactory(props, footer);
|
|
868
899
|
}
|
|
869
900
|
|
|
901
|
+
/** Visually grouped buttons / controls. See {@link ButtonGroupProps}. */
|
|
902
|
+
export function buttonGroup(fn: () => void, props?: ButtonGroupProps): Element;
|
|
903
|
+
export function buttonGroup(props: ButtonGroupProps, fn: () => void): Element;
|
|
904
|
+
export function buttonGroup(a: any, b?: any): Element {
|
|
905
|
+
return buttonGroupFactory(a, b);
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
/** Centered empty state. See {@link EmptyProps}. */
|
|
909
|
+
export function empty(props: EmptyProps, footer?: () => void): Element {
|
|
910
|
+
return emptyFactory(props, footer);
|
|
911
|
+
}
|
|
912
|
+
|
|
913
|
+
/** Standalone pager. See {@link PaginationProps}. */
|
|
914
|
+
export function pagination(props?: PaginationProps): Element {
|
|
915
|
+
return paginationFactory(props);
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
/** Ops filter toolbar with chips + control slot. See {@link FilterBarProps}. */
|
|
919
|
+
export function filterBar(fn: () => void, props?: FilterBarProps): Element;
|
|
920
|
+
export function filterBar(props: FilterBarProps, fn: () => void): Element;
|
|
921
|
+
export function filterBar(a: any, b?: any): Element {
|
|
922
|
+
return filterBarFactory(a, b);
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
/** Removable filter chips row. */
|
|
926
|
+
export function filterChips(props: Parameters<typeof filterChipsFactory>[0]): Element {
|
|
927
|
+
return filterChipsFactory(props);
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/** Numeric input with steppers. See {@link NumberFieldProps}. */
|
|
931
|
+
export function numberField(props?: NumberFieldProps): Element {
|
|
932
|
+
return numberFieldFactory(props);
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
/** Country dial code + phone number. See {@link PhoneInputProps}. */
|
|
936
|
+
export function phoneInput(props?: PhoneInputProps): Element {
|
|
937
|
+
return phoneInputFactory(props);
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/** Label + description + error field wrapper. See {@link FieldProps}. */
|
|
941
|
+
export function field(fn: () => void, props?: FieldProps): Element;
|
|
942
|
+
export function field(props: FieldProps, fn: () => void): Element;
|
|
943
|
+
export function field(a: any, b?: any): Element {
|
|
944
|
+
return fieldFactory(a, b);
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
/** Styled native `<select>`. See {@link NativeSelectProps}. */
|
|
948
|
+
export function nativeSelect(props: NativeSelectProps): Element {
|
|
949
|
+
return nativeSelectFactory(props);
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
/** Top navigation mega-menu. See {@link NavigationMenuProps}. */
|
|
953
|
+
export function navigationMenu(
|
|
954
|
+
fn: (menu: NavigationMenuElement) => void,
|
|
955
|
+
props?: NavigationMenuProps,
|
|
956
|
+
): NavigationMenuElement;
|
|
957
|
+
export function navigationMenu(
|
|
958
|
+
props: NavigationMenuProps,
|
|
959
|
+
fn: (menu: NavigationMenuElement) => void,
|
|
960
|
+
): NavigationMenuElement;
|
|
961
|
+
export function navigationMenu(a: any, b?: any): NavigationMenuElement {
|
|
962
|
+
return navigationMenuFactory(a, b);
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
/** Dismissible app banner. See {@link NoticeProps}. */
|
|
966
|
+
export function notice(message?: string | (() => string), props?: Omit<NoticeProps, 'message'>): Element {
|
|
967
|
+
return noticeFactory(message, props);
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/** Month calendar with day events. See {@link EventCalendarProps}. */
|
|
971
|
+
export function eventCalendar(props?: EventCalendarProps): Element {
|
|
972
|
+
return eventCalendarFactory(props);
|
|
973
|
+
}
|
|
974
|
+
|
|
870
975
|
/** Render markdown to HTML. Prefer `ui.markdown`. See {@link MarkdownProps}. */
|
|
871
976
|
export function markdown(text?: string, props?: MarkdownProps): Element {
|
|
872
977
|
return markdownFactory(text, props);
|
|
@@ -1624,6 +1729,18 @@ export const ui = {
|
|
|
1624
1729
|
statusDot,
|
|
1625
1730
|
feedRow,
|
|
1626
1731
|
feedList,
|
|
1732
|
+
buttonGroup,
|
|
1733
|
+
empty,
|
|
1734
|
+
pagination,
|
|
1735
|
+
filterBar,
|
|
1736
|
+
filterChips,
|
|
1737
|
+
numberField,
|
|
1738
|
+
phoneInput,
|
|
1739
|
+
field,
|
|
1740
|
+
nativeSelect,
|
|
1741
|
+
navigationMenu,
|
|
1742
|
+
notice,
|
|
1743
|
+
eventCalendar,
|
|
1627
1744
|
markdown,
|
|
1628
1745
|
html,
|
|
1629
1746
|
image,
|