@close-by/clay 0.2.6 → 0.2.7

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 (2) hide show
  1. package/package.json +5 -5
  2. package/src/index.ts +30 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@close-by/clay",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "NiceGUI-like ui.* facade for Clay apps",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,10 +27,10 @@
27
27
  "access": "public"
28
28
  },
29
29
  "dependencies": {
30
- "@close-by/clay-compiler": "0.2.6",
31
- "@close-by/clay-core": "0.2.6",
32
- "@close-by/clay-components": "0.2.6",
33
- "@close-by/clay-server": "0.2.6",
30
+ "@close-by/clay-compiler": "0.2.7",
31
+ "@close-by/clay-core": "0.2.7",
32
+ "@close-by/clay-components": "0.2.7",
33
+ "@close-by/clay-server": "0.2.7",
34
34
  "@tailwindcss/cli": "^4.3.3",
35
35
  "tailwindcss": "^4.3.3"
36
36
  }
package/src/index.ts CHANGED
@@ -27,6 +27,8 @@ import {
27
27
  icon as iconFactory,
28
28
  iconText as iconTextFactory,
29
29
  statusDot as statusDotFactory,
30
+ feedRow as feedRowFactory,
31
+ feedList as feedListFactory,
30
32
  stat as statFactory,
31
33
  dataTable as dataTableFactory,
32
34
  areaChart as areaChartFactory,
@@ -129,6 +131,12 @@ import {
129
131
  type IconSlotProps,
130
132
  type StatusDotProps,
131
133
  type StatusDotColor,
134
+ type FeedRowProps,
135
+ type FeedRowStatus,
136
+ type FeedListProps,
137
+ type FeedRowProps,
138
+ type FeedRowStatus,
139
+ type FeedListProps,
132
140
  type StatItem,
133
141
  type DataTableProps,
134
142
  type DataTableAction,
@@ -841,6 +849,24 @@ export function statusDot(props?: StatusDotProps): Element {
841
849
  return statusDotFactory(props);
842
850
  }
843
851
 
852
+ /** Bordered container for live feed rows. See {@link FeedListProps}. */
853
+ export function feedList(props: FeedListProps, fn: () => void): Element;
854
+ export function feedList(fn: () => void): Element;
855
+ export function feedList(
856
+ propsOrFn: FeedListProps | (() => void),
857
+ fn?: () => void,
858
+ ): Element {
859
+ if (typeof propsOrFn === 'function') {
860
+ return feedListFactory(propsOrFn);
861
+ }
862
+ return feedListFactory(propsOrFn, fn!);
863
+ }
864
+
865
+ /** One live-feed row (status, link title, meta/issue, trailing time). See {@link FeedRowProps}. */
866
+ export function feedRow(props: FeedRowProps, footer?: () => void): Element {
867
+ return feedRowFactory(props, footer);
868
+ }
869
+
844
870
  /** Render markdown to HTML. Prefer `ui.markdown`. See {@link MarkdownProps}. */
845
871
  export function markdown(text?: string, props?: MarkdownProps): Element {
846
872
  return markdownFactory(text, props);
@@ -1594,6 +1620,10 @@ export const ui = {
1594
1620
  progress,
1595
1621
  separator,
1596
1622
  icon,
1623
+ iconText,
1624
+ statusDot,
1625
+ feedRow,
1626
+ feedList,
1597
1627
  markdown,
1598
1628
  html,
1599
1629
  image,