lituix 0.0.7 → 0.1.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.
Files changed (85) hide show
  1. package/components.json +8599 -0
  2. package/dist/apis/dialog.d.ts +11 -0
  3. package/dist/apis/dialog.d.ts.map +1 -1
  4. package/dist/components/datepicker-dark-styles.d.ts +3 -0
  5. package/dist/components/datepicker-dark-styles.d.ts.map +1 -0
  6. package/dist/components/lui-alert.d.ts +49 -0
  7. package/dist/components/lui-alert.d.ts.map +1 -0
  8. package/dist/components/lui-autocomplete.d.ts +89 -0
  9. package/dist/components/lui-autocomplete.d.ts.map +1 -0
  10. package/dist/components/lui-button.d.ts +1 -0
  11. package/dist/components/lui-button.d.ts.map +1 -1
  12. package/dist/components/lui-card.d.ts +1 -0
  13. package/dist/components/lui-card.d.ts.map +1 -1
  14. package/dist/components/lui-cascader.d.ts +85 -0
  15. package/dist/components/lui-cascader.d.ts.map +1 -0
  16. package/dist/components/lui-checkbox.d.ts.map +1 -1
  17. package/dist/components/lui-collapse.d.ts +78 -0
  18. package/dist/components/lui-collapse.d.ts.map +1 -0
  19. package/dist/components/lui-color-picker.d.ts.map +1 -1
  20. package/dist/components/lui-command-palette.d.ts.map +1 -1
  21. package/dist/components/lui-context-menu.d.ts.map +1 -1
  22. package/dist/components/lui-datepicker.d.ts.map +1 -1
  23. package/dist/components/lui-dialog.d.ts.map +1 -1
  24. package/dist/components/lui-drawer.d.ts.map +1 -1
  25. package/dist/components/lui-dropdown.d.ts.map +1 -1
  26. package/dist/components/lui-dropmenu.d.ts.map +1 -1
  27. package/dist/components/lui-form-item.d.ts.map +1 -1
  28. package/dist/components/lui-form.d.ts.map +1 -1
  29. package/dist/components/lui-icon-picker.d.ts.map +1 -1
  30. package/dist/components/lui-icon.d.ts +20 -0
  31. package/dist/components/lui-icon.d.ts.map +1 -1
  32. package/dist/components/lui-image.d.ts.map +1 -1
  33. package/dist/components/lui-input-number.d.ts.map +1 -1
  34. package/dist/components/lui-input-opt.d.ts.map +1 -1
  35. package/dist/components/lui-input.d.ts.map +1 -1
  36. package/dist/components/lui-overlay-root.d.ts.map +1 -1
  37. package/dist/components/lui-popconfirm.d.ts +72 -0
  38. package/dist/components/lui-popconfirm.d.ts.map +1 -0
  39. package/dist/components/lui-popover.d.ts +53 -0
  40. package/dist/components/lui-popover.d.ts.map +1 -1
  41. package/dist/components/lui-progress.d.ts.map +1 -1
  42. package/dist/components/lui-qrcode.d.ts +69 -0
  43. package/dist/components/lui-qrcode.d.ts.map +1 -0
  44. package/dist/components/lui-select.d.ts +6 -0
  45. package/dist/components/lui-select.d.ts.map +1 -1
  46. package/dist/components/lui-skeleton.d.ts.map +1 -1
  47. package/dist/components/lui-spinner.d.ts +48 -0
  48. package/dist/components/lui-spinner.d.ts.map +1 -0
  49. package/dist/components/lui-splitter.d.ts +57 -0
  50. package/dist/components/lui-splitter.d.ts.map +1 -0
  51. package/dist/components/lui-table.d.ts.map +1 -1
  52. package/dist/components/lui-textarea.d.ts.map +1 -1
  53. package/dist/components/lui-toast.d.ts.map +1 -1
  54. package/dist/components/lui-tooltip.d.ts.map +1 -1
  55. package/dist/components/lui-tree-select.d.ts +83 -0
  56. package/dist/components/lui-tree-select.d.ts.map +1 -0
  57. package/dist/components/lui-tree.d.ts +9 -0
  58. package/dist/components/lui-tree.d.ts.map +1 -1
  59. package/dist/index.browser.js +2582 -1282
  60. package/dist/index.browser.js.map +4 -4
  61. package/dist/index.cjs +2456 -1156
  62. package/dist/index.cjs.map +4 -4
  63. package/dist/index.d.ts +20 -0
  64. package/dist/index.d.ts.map +1 -1
  65. package/dist/index.mjs +2515 -1215
  66. package/dist/index.mjs.map +4 -4
  67. package/dist/themes/control-shell.d.ts +17 -0
  68. package/dist/themes/control-shell.d.ts.map +1 -0
  69. package/dist/themes/option-row.d.ts +26 -0
  70. package/dist/themes/option-row.d.ts.map +1 -0
  71. package/dist/themes/tokens.d.ts +15 -0
  72. package/dist/themes/tokens.d.ts.map +1 -1
  73. package/dist/utils/format.d.ts +13 -0
  74. package/dist/utils/format.d.ts.map +1 -1
  75. package/dist/utils/i18n.d.ts.map +1 -1
  76. package/dist/utils/portal-styles.d.ts +17 -0
  77. package/dist/utils/portal-styles.d.ts.map +1 -0
  78. package/dist/utils/qrcode.d.ts +37 -0
  79. package/dist/utils/qrcode.d.ts.map +1 -0
  80. package/dist/utils/status.d.ts +32 -0
  81. package/dist/utils/status.d.ts.map +1 -0
  82. package/llm.txt +18 -3
  83. package/llms-full.txt +19 -7
  84. package/llms.txt +10 -7
  85. package/package.json +14 -15
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The closed box of a text-like control that opens a panel.
3
+ *
4
+ * Four components had grown their own copy of this -- lui-select's
5
+ * `[part="trigger"]`, lui-icon-picker's and lui-color-picker's `.trigger`, and
6
+ * lui-datepicker's `.wrapper` -- and they had drifted apart in padding, gap, how
7
+ * the height is applied, and which properties transition. Include this and add
8
+ * the `control-shell` class to the element; keep only what genuinely differs in
9
+ * the component's own rules, which come later in the styles array and therefore
10
+ * still win.
11
+ *
12
+ * Deliberately not covered here: hover, open, focused and disabled. Their
13
+ * conditions differ for real (some exclude the open state, some do not), so they
14
+ * stay with each component. Focus rings go through --lui-ring-focus.
15
+ */
16
+ export declare const controlShellStyles: import("lit").CSSResult;
17
+ //# sourceMappingURL=control-shell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"control-shell.d.ts","sourceRoot":"","sources":["../../src/themes/control-shell.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,yBAsE9B,CAAC"}
@@ -0,0 +1,26 @@
1
+ /**
2
+ * A row inside a panel that offers a choice.
3
+ *
4
+ * Four components had grown their own copy -- lui-select in both its slotted and
5
+ * data-driven paths, lui-autocomplete's suggestions, lui-cascader's columns -- and
6
+ * they had drifted. The select's two paths alone disagreed on gap, margin and
7
+ * padding, and the two newer controls hardcoded a radius rather than reading the
8
+ * option token, so restyling options only moved some of them.
9
+ *
10
+ * Include this and add the `option-row` class to the element. The box model and the
11
+ * four states come from here; the inner layout does not, because it genuinely
12
+ * differs -- the select uses a grid with a fixed check column, the others a plain
13
+ * flex row. Set `display` and `grid-template-columns` in the component.
14
+ *
15
+ * State hooks are data attributes rather than classes so they can be bound with
16
+ * lit's `?data-x=${}` directly from the model:
17
+ * data-current on the active path / keyboard cursor, not chosen
18
+ * data-selected the chosen row
19
+ * data-disabled not choosable
20
+ *
21
+ * Not for menu items. lui-menu-item is a three-column grid whose side inset comes
22
+ * from the menu panel's padding, at body font size, with a primary-tinted active
23
+ * state -- a different thing that happens to also be a row.
24
+ */
25
+ export declare const optionRowStyles: import("lit").CSSResult;
26
+ //# sourceMappingURL=option-row.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"option-row.d.ts","sourceRoot":"","sources":["../../src/themes/option-row.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,eAAO,MAAM,eAAe,yBAkC3B,CAAC"}
@@ -7,5 +7,20 @@
7
7
  * Override any token on the host element or any ancestor to customize the theme.
8
8
  */
9
9
  export declare const tokens: import("lit").CSSResult;
10
+ /**
11
+ * Every custom property this sheet declares, read off the sheet itself.
12
+ *
13
+ * Exists for lui-popover's portal: a portaled surface is mounted outside the
14
+ * element it belongs to, so it inherits nothing and every token it needs has to
15
+ * be copied onto the portal host. That used to be a hand-kept list, which fell
16
+ * behind three separate times -- the semantic status colours, the overlay
17
+ * elevation step, and the focus rings all went missing at runtime while the CSS
18
+ * still looked correct. Deriving it means adding a token here is enough.
19
+ *
20
+ * Computed once at module load: it is a regex over static text, not a per-call
21
+ * cost. Names only -- values are read from the live element at sync time so
22
+ * theme overrides and per-instance overrides come along.
23
+ */
24
+ export declare const tokenNames: readonly string[];
10
25
  export declare const baseStyles: import("lit").CSSResult;
11
26
  //# sourceMappingURL=tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/themes/tokens.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,yBA2MlB,CAAC;AAEF,eAAO,MAAM,UAAU,yBAsBtB,CAAC"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/themes/tokens.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,yBAyTlB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,EAAE,SAAS,MAAM,EAEtC,CAAC;AAEH,eAAO,MAAM,UAAU,yBAsBtB,CAAC"}
@@ -1,3 +1,16 @@
1
+ /**
2
+ * Turn a size into a CSS length.
3
+ *
4
+ * The case that matters is a bare numeric *string*, which is what an HTML attribute
5
+ * always gives you: `size="24"` arrives as `"24"`, and passing that straight through
6
+ * yields `width: 24`, an invalid length. The declaration is dropped, the element
7
+ * falls back to `auto`, and a component with no content collapses to nothing --
8
+ * which reads as "the size option does nothing" rather than as an error.
9
+ *
10
+ * Nine components were doing this conversion privately and five of them had this
11
+ * bug, so it lives here now.
12
+ */
13
+ export declare function toCssLength(value: string | number | null | undefined): string;
1
14
  export declare function formatSize(bytes: number | string | null | undefined): string;
2
15
  export declare function formatDate(input?: string | number | null): string;
3
16
  export declare function isImageIconSource(source?: string | null): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GACxC,MAAM,CAmBR;AAED,wBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CAajE;AAED,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAWjE"}
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/utils/format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACzB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GACxC,MAAM,CAQR;AAED,wBAAgB,UAAU,CACxB,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,GACxC,MAAM,CAmBR;AAED,wBAAgB,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,CAajE;AAED,wBAAgB,iBAAiB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAWjE"}
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/utils/i18n.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpD,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AA0PtF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAK9D,CAAC;AAMF,wBAAgB,0BAA0B,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc,CAI1E;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,CAAC,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,cAAc,GACzB,cAAc,CAOhB;AAED,wBAAgB,SAAS,CACvB,YAAY,EAAE,cAAc,GAAG,SAAS,EACxC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,iBAAiB,GACzB,MAAM,CAOR;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAK9C;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,GAAG,IAAI,CAUvF;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,kCAAkC,GAAG,MAAM,IAAI,CAGvF;AAED,wBAAgB,CAAC,CACf,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,cAAc,GACzB,MAAM,CAER"}
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/utils/i18n.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpD,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,CAAC;AA8PtF,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAK9D,CAAC;AAMF,wBAAgB,0BAA0B,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,cAAc,CAI1E;AAED,wBAAgB,iBAAiB,CAC/B,MAAM,CAAC,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,cAAc,GACzB,cAAc,CAOhB;AAED,wBAAgB,SAAS,CACvB,YAAY,EAAE,cAAc,GAAG,SAAS,EACxC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,iBAAiB,GACzB,MAAM,CAOR;AAED,wBAAgB,SAAS,IAAI,MAAM,CAElC;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAK9C;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,EAAE,cAAc,GAAG,IAAI,CAUvF;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,kCAAkC,GAAG,MAAM,IAAI,CAGvF;AAED,wBAAgB,CAAC,CACf,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,iBAAiB,EAC1B,MAAM,CAAC,EAAE,MAAM,EACf,SAAS,CAAC,EAAE,cAAc,GACzB,MAAM,CAER"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * The stylesheets a host must hand to a popover it composes.
3
+ *
4
+ * CSS scoping follows the tree a node currently lives in. A component that slots
5
+ * pre-styled content into lui-popover keeps that content in its own shadow root,
6
+ * so when the portal moves it into the overlay root it keeps its markup and loses
7
+ * every rule -- panels collapse to unstyled blocks, which reads as "the layout
8
+ * broke" rather than "the styles are missing". The popover copies its own sheets
9
+ * across but cannot reach the host's; `portalStyleSources` is how they get there.
10
+ *
11
+ * Returns an empty list where constructable stylesheets are unavailable (jsdom),
12
+ * which is harmless: without them there is nothing to adopt in the first place.
13
+ */
14
+ export declare function ownStyleSheets(host: {
15
+ renderRoot: HTMLElement | DocumentFragment;
16
+ }): readonly CSSStyleSheet[];
17
+ //# sourceMappingURL=portal-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"portal-styles.d.ts","sourceRoot":"","sources":["../../src/utils/portal-styles.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE;IAGnC,UAAU,EAAE,WAAW,GAAG,gBAAgB,CAAC;CAC5C,GAAG,SAAS,aAAa,EAAE,CAI3B"}
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Minimal QR encoder, byte mode.
3
+ *
4
+ * Written rather than pulled in: this is a published component library, so a
5
+ * runtime dependency lands in every consumer's bundle, and the UMD build inlines
6
+ * everything. The algorithm is self-contained and has no platform coupling, which
7
+ * makes it one of the few cases where owning the code is cheaper than depending on
8
+ * it. Verified against the published test vectors in the spec.
9
+ *
10
+ * Byte mode only, which covers any input once encoded as UTF-8. Numeric and
11
+ * alphanumeric modes would pack denser for digit-only payloads; that is a size
12
+ * optimisation, not a capability, so it is left out.
13
+ */
14
+ export type QrErrorCorrection = "L" | "M" | "Q" | "H";
15
+ /** A square grid of modules; true is dark. */
16
+ export type QrMatrix = boolean[][];
17
+ export interface QrEncodeOptions {
18
+ /** Higher levels survive more damage at the cost of capacity. Defaults to M. */
19
+ errorCorrection?: QrErrorCorrection;
20
+ /** Force a version (1-40). Omit to pick the smallest that fits. */
21
+ version?: number;
22
+ }
23
+ export interface QrResult {
24
+ matrix: QrMatrix;
25
+ size: number;
26
+ version: number;
27
+ errorCorrection: QrErrorCorrection;
28
+ }
29
+ /**
30
+ * Encode text as a QR matrix.
31
+ *
32
+ * Throws when the payload cannot fit, or when a forced version is too small --
33
+ * silently truncating would produce a code that scans to the wrong value, which is
34
+ * worse than refusing.
35
+ */
36
+ export declare function encodeQr(text: string, options?: QrEncodeOptions): QrResult;
37
+ //# sourceMappingURL=qrcode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"qrcode.d.ts","sourceRoot":"","sources":["../../src/utils/qrcode.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,MAAM,MAAM,iBAAiB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEtD,8CAA8C;AAC9C,MAAM,MAAM,QAAQ,GAAG,OAAO,EAAE,EAAE,CAAC;AAyanC,MAAM,WAAW,eAAe;IAC9B,gFAAgF;IAChF,eAAe,CAAC,EAAE,iBAAiB,CAAC;IACpC,mEAAmE;IACnE,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,MAAM,EAAE,QAAQ,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,iBAAiB,CAAC;CACpC;AAED;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,GAAE,eAAoB,GAAG,QAAQ,CAoC9E"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Shared semantic status layer.
3
+ *
4
+ * Every component that shows a success/warning/danger/info affordance resolves
5
+ * its icon and colour here instead of carrying a private mapping. Toast and
6
+ * Progress each used to own one, and they had already drifted apart: success was
7
+ * `circle-check-big` in one and `circle-check` in the other, danger was
8
+ * `circle-alert` in one and `circle-x` in the other. Add new consumers here.
9
+ *
10
+ * Pure data plus pure functions on purpose -- no Lit, no rendering -- so a
11
+ * component can call it from styles, render, or plain logic.
12
+ */
13
+ /** The canonical set. Component-facing aliases normalise onto these. */
14
+ export type LuiStatus = "info" | "success" | "warning" | "danger";
15
+ /**
16
+ * Resolve any component-facing status string to the canonical set. Returns null
17
+ * for the neutral states and for anything unrecognised, so callers can treat
18
+ * "no status" and "unknown status" the same way -- render no affordance.
19
+ */
20
+ export declare function normalizeStatus(value: string | null | undefined): LuiStatus | null;
21
+ /** Icon name for a status, or "" when the status carries no affordance. */
22
+ export declare function statusIcon(value: string | null | undefined): string;
23
+ /**
24
+ * The `--lui-color-*` token for a status. `soft` picks the translucent variant
25
+ * used for fills and borders; the solid one is for icons and text.
26
+ */
27
+ export declare function statusColorToken(value: string | null | undefined, soft?: boolean): string;
28
+ /** `var(...)` wrapper around {@link statusColorToken}, ready for a style value. */
29
+ export declare function statusColorVar(value: string | null | undefined, soft?: boolean): string;
30
+ /** Canonical statuses in the order used for docs, stories, and story controls. */
31
+ export declare const statusOrder: readonly LuiStatus[];
32
+ //# sourceMappingURL=status.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../src/utils/status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,wEAAwE;AACxE,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AA8BlE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,GAAG,IAAI,CAGlF;AAED,2EAA2E;AAC3E,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,CAGnE;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,IAAI,UAAQ,GACX,MAAM,CAIR;AAED,mFAAmF;AACnF,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAChC,IAAI,UAAQ,GACX,MAAM,CAGR;AAED,kFAAkF;AAClF,eAAO,MAAM,WAAW,EAAE,SAAS,SAAS,EAK1C,CAAC"}
package/llm.txt CHANGED
@@ -38,8 +38,6 @@ Important dependencies used by specific components:
38
38
  - public library export surface and side-effect component registration
39
39
  - `components.json`
40
40
  - machine-readable component / API / story index for tooling and AI
41
- - `recipes.json`
42
- - machine-readable composition recipes for common UI patterns
43
41
  - `stories/`
44
42
  - Storybook stories; best place to understand intended public API usage
45
43
  - `examples/`
@@ -100,6 +98,9 @@ Important dependencies used by specific components:
100
98
 
101
99
  5.4 Feedback / rich data
102
100
  - `lui-progress`
101
+ - `lui-alert` — inline notice; distinct from `dialog.alert()` and from toast
102
+ - `lui-spinner` — the one loading ring; button, card and tree all render it
103
+ - `lui-qrcode` — SVG QR code, encoder bundled in `src/utils/qrcode.ts`
103
104
  - `lui-skeleton`
104
105
  - `lui-toast`
105
106
  - `lui-empty-state`
@@ -107,6 +108,21 @@ Important dependencies used by specific components:
107
108
  - `lui-table`
108
109
  - `lui-tree`
109
110
 
111
+ 5.5 Added later
112
+ - `lui-collapse`, `lui-collapse-item` — accordion
113
+ - `lui-popconfirm` — bubble confirmation, composes `lui-popover`
114
+ - `lui-autocomplete` — free-text input with suggestions; value is what was typed
115
+ - `lui-tree-select` — a tree behind a select trigger; value is one key
116
+ - `lui-cascader` — column-per-level picker; value is the whole path
117
+
118
+ 5.6 Sub-elements that only work inside their parent
119
+ - `lui-tabs` / `lui-tab-panel`
120
+ - `lui-table-column`
121
+ - `lui-breadcrumb-item`
122
+ - `lui-option` / `lui-option-group`
123
+ - `lui-collapse-item`
124
+ - `lui-context-menu` is standalone but is usually driven by `showContextMenu`
125
+
110
126
  6. Important imperative APIs
111
127
  Defined under `src/apis/` and re-exported from `src/index.ts`.
112
128
 
@@ -205,7 +221,6 @@ If you are an LLM or coding agent trying to understand the repo quickly, read in
205
221
  - `README.md`
206
222
  - `package.json`
207
223
  - `components.json`
208
- - `recipes.json`
209
224
  - `src/index.ts`
210
225
  - target component file in `src/components/`
211
226
  - matching story in `stories/`
package/llms-full.txt CHANGED
@@ -167,6 +167,9 @@ Form schema conventions:
167
167
  - `lui-overlay-root`
168
168
 
169
169
  ### 5.5 Feedback / rich data
170
+ - `lui-alert` — inline notice; distinct from `dialog.alert()` and from toast
171
+ - `lui-spinner` — the one loading ring; button, card and tree all render it
172
+ - `lui-qrcode` — SVG QR code, encoder bundled in `src/utils/qrcode.ts`
170
173
  - `lui-progress`
171
174
  - `lui-skeleton`
172
175
  - `lui-toast`
@@ -178,6 +181,17 @@ Form schema conventions:
178
181
 
179
182
  ---
180
183
 
184
+ ### 5.6 Added later
185
+
186
+ - `lui-collapse`, `lui-collapse-item` — accordion; every level shares one shell
187
+ - `lui-popconfirm` — bubble confirmation; composes `lui-popover` rather than extending it
188
+ - `lui-autocomplete` — free-text input with suggestions; the value is what was typed
189
+ - `lui-tree-select` — a tree behind a select trigger; the value is a single key
190
+ - `lui-cascader` — column-per-level picker; the value is the whole path
191
+ - Sub-elements that must be used inside their parent: `lui-tabs` / `lui-tab-panel`,
192
+ `lui-table-column`, `lui-breadcrumb-item`, `lui-option` / `lui-option-group`,
193
+ `lui-menu-item` / `lui-menu-divider`, `lui-collapse-item`
194
+
181
195
  ## 6. Imperative APIs
182
196
 
183
197
  Defined under `src/apis/` and exported from `src/index.ts`.
@@ -351,12 +365,11 @@ For fast repo understanding, use this order:
351
365
  1. `README.md`
352
366
  2. `package.json`
353
367
  3. `components.json`
354
- 4. `recipes.json`
355
- 5. `src/index.ts`
356
- 6. `llm.txt`
357
- 7. `llms.txt`
358
- 8. target `src/components/lui-*.ts`
359
- 9. matching `stories/lui-*.stories.ts`
368
+ 4. `src/index.ts`
369
+ 5. `llm.txt`
370
+ 6. `llms.txt`
371
+ 7. target `src/components/lui-*.ts`
372
+ 8. matching `stories/lui-*.stories.ts`
360
373
  10. related helpers in `src/utils/` or `src/apis/`
361
374
 
362
375
  Recommended high-value stories:
@@ -406,7 +419,6 @@ Other useful commands:
406
419
  - `README.md`
407
420
  - `package.json`
408
421
  - `components.json`
409
- - `recipes.json`
410
422
  - `src/index.ts`
411
423
  - `src/components/lui-popover.ts`
412
424
  - `src/components/lui-dialog.ts`
package/llms.txt CHANGED
@@ -15,8 +15,11 @@
15
15
 
16
16
  - `README.md` — overview, install, usage, theming, API naming
17
17
  - `package.json` — scripts, build outputs, dependencies
18
- - `components.json` — machine-readable component / API / story index
19
- - `recipes.json` — machine-readable composition recipes for common usage patterns
18
+ - `components.json` — machine-readable index of every element, its properties,
19
+ events, parts and CSS custom properties. Generated from source by
20
+ `pnpm docs:llm`; trust it over the prose files below, which are hand-written
21
+ and can lag. A property whose `attribute` is `null` can only be set as a
22
+ property (`.source=${...}`), never as an attribute.
20
23
  - `src/index.ts` — complete public export surface
21
24
  - `llm.txt` — concise repo guide for coding agents
22
25
  - `llms-full.txt` — expanded component and architecture guide
@@ -35,11 +38,11 @@
35
38
  ## Main Public APIs
36
39
 
37
40
  ### Components
38
- - Foundation/display: `lui-button`, `lui-icon`, `lui-text`, `lui-card`, `lui-tag`, `lui-badge`, `lui-statistic`, `lui-avatar`, `lui-avatar-group`
39
- - Navigation/layout: `lui-tab`, `lui-breadcrumb`, `lui-pagination`, `lui-row`, `lui-divider`, `lui-background`, `lui-scroll-area`
40
- - Form: `lui-form`, `lui-form-item`, `lui-input`, `lui-input-number`, `lui-input-opt`, `lui-textarea`, `lui-select`, `lui-checkbox`, `lui-radio`, `lui-switch`, `lui-slider`, `lui-datepicker`, `lui-calendar`, `lui-date-range-picker`, `lui-file-input`, `lui-color-picker`
41
- - Overlay/menu: `lui-popover`, `lui-tooltip`, `lui-dropdown`, `lui-dropmenu`, `lui-dialog`, `lui-drawer`, `lui-command-palette`, `lui-menu`, `lui-context-menu`
42
- - Rich data/feedback: `lui-progress`, `lui-skeleton`, `lui-toast`, `lui-empty-state`, `lui-image`, `lui-image-cropper`, `lui-table`, `lui-tree`
41
+ - Foundation/display: `lui-button`, `lui-button-group`, `lui-button-group-item`, `lui-icon`, `lui-text`, `lui-card`, `lui-tag`, `lui-badge`, `lui-statistic`, `lui-avatar`, `lui-avatar-group`, `lui-config-provider`
42
+ - Navigation/layout: `lui-tab`, `lui-tabs`, `lui-tab-panel`, `lui-breadcrumb`, `lui-breadcrumb-item`, `lui-pagination`, `lui-row`, `lui-col`, `lui-divider`, `lui-background`, `lui-scroll-area`, `lui-collapse`, `lui-collapse-item`
43
+ - Form: `lui-form`, `lui-form-item`, `lui-input`, `lui-input-number`, `lui-input-opt`, `lui-textarea`, `lui-select` (+ `lui-option`, `lui-option-group`), `lui-autocomplete`, `lui-cascader`, `lui-tree-select`, `lui-checkbox`, `lui-checkbox-group`, `lui-radio`, `lui-radio-group`, `lui-switch`, `lui-slider`, `lui-datepicker`, `lui-calendar`, `lui-date-range-picker`, `lui-file-input`, `lui-color-picker`, `lui-icon-picker`
44
+ - Overlay/menu: `lui-popover`, `lui-tooltip`, `lui-popconfirm`, `lui-dropdown`, `lui-dropmenu`, `lui-dialog`, `lui-drawer`, `lui-command-palette`, `lui-menu`, `lui-menu-item`, `lui-menu-divider`, `lui-context-menu`, `lui-overlay-root`
45
+ - Rich data/feedback: `lui-alert`, `lui-progress`, `lui-spinner`, `lui-skeleton`, `lui-toast`, `lui-empty-state`, `lui-image`, `lui-image-cropper`, `lui-qrcode`, `lui-table`, `lui-table-column`, `lui-tree`
43
46
 
44
47
  ### Imperative APIs
45
48
  - `dialog`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lituix",
3
- "version": "0.0.7",
3
+ "version": "0.1.0",
4
4
  "description": "Framework-agnostic UI components based on Lit Web Components",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -20,7 +20,8 @@
20
20
  "README.md",
21
21
  "llm.txt",
22
22
  "llms.txt",
23
- "llms-full.txt"
23
+ "llms-full.txt",
24
+ "components.json"
24
25
  ],
25
26
  "scripts": {
26
27
  "build:esm": "cross-env BUILD_FORMAT=es node esbuild.config.js",
@@ -33,11 +34,10 @@
33
34
  "build-storybook": "storybook build",
34
35
  "build:types": "tsc -p tsconfig.build.json",
35
36
  "pack:dry-run": "npm pack --dry-run",
36
- "release:check": "pnpm typecheck && pnpm build && pnpm pack:dry-run",
37
+ "release:check": "pnpm docs:llm && pnpm typecheck && pnpm build && pnpm pack:dry-run",
37
38
  "prepack": "pnpm build",
38
- "prepublishOnly": "pnpm typecheck && pnpm build",
39
- "test": "vitest run",
40
- "test:watch": "vitest"
39
+ "prepublishOnly": "pnpm docs:llm && pnpm typecheck && pnpm build",
40
+ "docs:llm": "node scripts/generate-llm-docs.mjs"
41
41
  },
42
42
  "keywords": [
43
43
  "web-components",
@@ -62,20 +62,19 @@
62
62
  "lit": "^3.3.1"
63
63
  },
64
64
  "devDependencies": {
65
- "@storybook/addon-docs": "^10.3.5",
66
- "@storybook/addon-links": "^10.3.5",
67
- "@storybook/addon-themes": "^10.3.5",
68
- "@storybook/web-components": "^10.3.5",
69
- "@storybook/web-components-vite": "^10.3.5",
65
+ "@storybook/addon-docs": "^10.5.10",
66
+ "@storybook/addon-links": "^10.5.10",
67
+ "@storybook/addon-themes": "^10.5.10",
68
+ "@storybook/web-components": "^10.5.10",
69
+ "@storybook/web-components-vite": "^10.5.10",
70
70
  "@types/node": "^22.5.4",
71
71
  "cross-env": "^7.0.3",
72
72
  "esbuild": "^0.24.0",
73
- "storybook": "^10.3.5",
73
+ "react": "^19.2.5",
74
+ "storybook": "^10.5.10",
74
75
  "typescript": "^5.5.4",
75
76
  "vite": "^6.4.2",
76
- "zod": "^4.4.3",
77
- "vitest": "^3.2.4",
78
- "jsdom": "^26.1.0"
77
+ "zod": "^4.4.3"
79
78
  },
80
79
  "pnpm": {
81
80
  "onlyBuiltDependencies": [