lituix 0.1.34 → 0.1.35
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/components.json +20 -5
- package/dist/components/lui-card.d.ts +2 -0
- package/dist/components/lui-card.d.ts.map +1 -1
- package/dist/components/lui-dialog.d.ts +1 -0
- package/dist/components/lui-dialog.d.ts.map +1 -1
- package/dist/components/lui-drawer.d.ts +1 -0
- package/dist/components/lui-drawer.d.ts.map +1 -1
- package/dist/components/lui-dropmenu.d.ts +24 -1
- package/dist/components/lui-dropmenu.d.ts.map +1 -1
- package/dist/components/lui-overlay-root.d.ts.map +1 -1
- package/dist/components/lui-popover.d.ts +37 -0
- package/dist/components/lui-popover.d.ts.map +1 -1
- package/dist/components/lui-slider.d.ts.map +1 -1
- package/dist/components/lui-tab.d.ts.map +1 -1
- package/dist/components/lui-tree.d.ts +1 -0
- package/dist/components/lui-tree.d.ts.map +1 -1
- package/dist/index.browser.js +514 -274
- package/dist/index.browser.js.map +4 -4
- package/dist/index.cjs +814 -574
- package/dist/index.cjs.map +4 -4
- package/dist/index.mjs +984 -744
- package/dist/index.mjs.map +4 -4
- package/dist/themes/tokens.d.ts.map +1 -1
- package/dist/utils/overlay-stack.d.ts +5 -0
- package/dist/utils/overlay-stack.d.ts.map +1 -1
- package/dist/utils/scroll-lock.d.ts +3 -0
- package/dist/utils/scroll-lock.d.ts.map +1 -0
- package/dist/utils/sheet-query.d.ts +23 -0
- package/dist/utils/sheet-query.d.ts.map +1 -0
- package/package.json +90 -83
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/themes/tokens.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,yBAuTlB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,EAAE,SAAS,MAAM,EAEtC,CAAC;AAEH,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../src/themes/tokens.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,yBAuTlB,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,EAAE,SAAS,MAAM,EAEtC,CAAC;AAEH,eAAO,MAAM,UAAU,yBA2BtB,CAAC"}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import type { OverlayLayerName } from "../components/lui-overlay-root";
|
|
2
2
|
export declare function setOverlayOwner(element: HTMLElement, owner: HTMLElement | null | undefined): void;
|
|
3
3
|
export declare function eventPathContainsOwnedOverlay(path: EventTarget[], ancestor: Node): boolean;
|
|
4
|
+
/**
|
|
5
|
+
* 事件路径里是否包含 host 内部仍打开的嵌套浮层。
|
|
6
|
+
* 用于 ESC 关闭宿主弹层前让路:嵌套浮层(select / popover 等)自己处理 Escape。
|
|
7
|
+
*/
|
|
8
|
+
export declare function hasOpenNestedOverlayInPath(path: EventTarget[], host: Node): boolean;
|
|
4
9
|
export declare function markOverlayInteraction(element: HTMLElement | null | undefined, duration?: number): void;
|
|
5
10
|
export declare function hasRecentOverlayInteraction(element: HTMLElement | null | undefined): boolean;
|
|
6
11
|
export declare function registerOverlayStack(element: HTMLElement, layer: HTMLElement, layerName: OverlayLayerName): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay-stack.d.ts","sourceRoot":"","sources":["../../src/utils/overlay-stack.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAkDvE,wBAAgB,eAAe,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAMjG;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,GAAG,OAAO,CAK1F;AAGD,wBAAgB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I,CAWpG;AAED,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,OAAO,CAI5F;AAuCD,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,WAAW,EACpB,KAAK,EAAE,WAAW,EAClB,SAAS,EAAE,gBAAgB,GAC1B,IAAI,CAoBN;AAED,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAatE;AAED,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAepE;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAK9D;AAED,wBAAgB,+BAA+B,CAC7C,OAAO,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GACtC;IAAE,KAAK,EAAE,WAAW,CAAC;IAAC,SAAS,EAAE,gBAAgB,CAAA;CAAE,GAAG,IAAI,CAK5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scroll-lock.d.ts","sourceRoot":"","sources":["../../src/utils/scroll-lock.ts"],"names":[],"mappings":"AAUA,wBAAgB,cAAc,CAAC,GAAG,GAAE,QAAmB,GAAG,IAAI,CAK7D;AAED,wBAAgB,gBAAgB,CAAC,GAAG,GAAE,QAAmB,GAAG,IAAI,CAK/D"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Viewport-breakpoint helper for the popover sheet mode.
|
|
3
|
+
*
|
|
4
|
+
* A floating panel opts in with a `sheet-below` CSS length (e.g. `"768"`,
|
|
5
|
+
* `"768px"`, `"48em"`); while the viewport is at or below that width the panel
|
|
6
|
+
* renders as a bottom sheet instead of an anchored floating panel. Nothing in
|
|
7
|
+
* the library used matchMedia before this — keep the controller tiny so the
|
|
8
|
+
* next consumer (select, datepicker, …) can reuse it verbatim.
|
|
9
|
+
*/
|
|
10
|
+
export declare function parseSheetBreakpoint(value: string | null | undefined): string | null;
|
|
11
|
+
export declare class SheetQuery {
|
|
12
|
+
private _mql;
|
|
13
|
+
private _onChange;
|
|
14
|
+
private _lastMatches;
|
|
15
|
+
/** True when a breakpoint is configured AND the viewport currently matches. */
|
|
16
|
+
get active(): boolean;
|
|
17
|
+
get configured(): boolean;
|
|
18
|
+
/** Rebinds to a new breakpoint value; no-op when it parses to the same query. */
|
|
19
|
+
set(value: string | null | undefined, onChange: () => void): void;
|
|
20
|
+
disconnect(): void;
|
|
21
|
+
private _handleChange;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=sheet-query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sheet-query.d.ts","sourceRoot":"","sources":["../../src/utils/sheet-query.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAMpF;AAED,qBAAa,UAAU;IACrB,OAAO,CAAC,IAAI,CAA+B;IAC3C,OAAO,CAAC,SAAS,CAA6B;IAC9C,OAAO,CAAC,YAAY,CAAS;IAE7B,+EAA+E;IAC/E,IAAI,MAAM,IAAI,OAAO,CAEpB;IAED,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,iFAAiF;IACjF,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,MAAM,IAAI,GAAG,IAAI;IAkBjE,UAAU,IAAI,IAAI;IAOlB,OAAO,CAAC,aAAa,CAInB;CACH"}
|
package/package.json
CHANGED
|
@@ -1,83 +1,90 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "lituix",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Framework-agnostic UI components based on Lit Web Components",
|
|
5
|
-
"main": "./dist/index.cjs",
|
|
6
|
-
"module": "./dist/index.mjs",
|
|
7
|
-
"type": "module",
|
|
8
|
-
"exports": {
|
|
9
|
-
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
|
-
"import": "./dist/index.mjs",
|
|
12
|
-
"require": "./dist/index.cjs",
|
|
13
|
-
"default": "./dist/index.mjs"
|
|
14
|
-
},
|
|
15
|
-
"./styles": "./dist/index.browser.css",
|
|
16
|
-
"./browser": "./dist/index.browser.js"
|
|
17
|
-
},
|
|
18
|
-
"files": [
|
|
19
|
-
"dist",
|
|
20
|
-
"README.md",
|
|
21
|
-
"llm.txt",
|
|
22
|
-
"llms.txt",
|
|
23
|
-
"llms-full.txt",
|
|
24
|
-
"components.json",
|
|
25
|
-
"recipes.json"
|
|
26
|
-
],
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
|
|
49
|
-
"
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
"
|
|
66
|
-
|
|
67
|
-
"
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "lituix",
|
|
3
|
+
"version": "0.1.35",
|
|
4
|
+
"description": "Framework-agnostic UI components based on Lit Web Components",
|
|
5
|
+
"main": "./dist/index.cjs",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.cjs",
|
|
13
|
+
"default": "./dist/index.mjs"
|
|
14
|
+
},
|
|
15
|
+
"./styles": "./dist/index.browser.css",
|
|
16
|
+
"./browser": "./dist/index.browser.js"
|
|
17
|
+
},
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"README.md",
|
|
21
|
+
"llm.txt",
|
|
22
|
+
"llms.txt",
|
|
23
|
+
"llms-full.txt",
|
|
24
|
+
"components.json",
|
|
25
|
+
"recipes.json"
|
|
26
|
+
],
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build:esm": "cross-env BUILD_FORMAT=es node esbuild.config.js",
|
|
29
|
+
"build:cjs": "cross-env BUILD_FORMAT=cjs node esbuild.config.js",
|
|
30
|
+
"build:umd": "cross-env BUILD_FORMAT=umd node esbuild.config.js",
|
|
31
|
+
"build": "pnpm run build:types && pnpm run build:esm && pnpm run build:cjs && pnpm run build:umd",
|
|
32
|
+
"dev": "cross-env BUILD_FORMAT=es node esbuild.config.js --watch",
|
|
33
|
+
"typecheck": "tsc --noEmit",
|
|
34
|
+
"storybook": "storybook dev --host 0.0.0.0 -p 6006 --no-open",
|
|
35
|
+
"build-storybook": "storybook build",
|
|
36
|
+
"build:types": "tsc -p tsconfig.build.json",
|
|
37
|
+
"pack:dry-run": "npm pack --dry-run",
|
|
38
|
+
"release:check": "pnpm docs:llm && pnpm typecheck && pnpm build && pnpm pack:dry-run",
|
|
39
|
+
"prepack": "pnpm build",
|
|
40
|
+
"prepublishOnly": "pnpm docs:llm && pnpm typecheck && pnpm build",
|
|
41
|
+
"docs:llm": "node scripts/generate-llm-docs.mjs"
|
|
42
|
+
},
|
|
43
|
+
"keywords": [
|
|
44
|
+
"web-components",
|
|
45
|
+
"lit",
|
|
46
|
+
"ui-components",
|
|
47
|
+
"design-system"
|
|
48
|
+
],
|
|
49
|
+
"author": "ppnow",
|
|
50
|
+
"license": "MIT",
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@floating-ui/dom": "^1.7.6",
|
|
53
|
+
"@iconify-json/lucide": "^1.2.104",
|
|
54
|
+
"@lit-labs/virtualizer": "^2.0.13",
|
|
55
|
+
"@lit/context": "^1.1.5",
|
|
56
|
+
"@panzoom/panzoom": "^4.6.2",
|
|
57
|
+
"@tanstack/lit-form": "^1.23.28",
|
|
58
|
+
"cropperjs": "^2.1.1",
|
|
59
|
+
"flatpickr": "^4.6.13",
|
|
60
|
+
"iconify-icon": "^3.0.2",
|
|
61
|
+
"interactjs": "^1.10.27",
|
|
62
|
+
"just-debounce-it": "^3.2.0",
|
|
63
|
+
"lit": "^3.3.1"
|
|
64
|
+
},
|
|
65
|
+
"devDependencies": {
|
|
66
|
+
"@storybook/addon-docs": "^10.5.10",
|
|
67
|
+
"@storybook/addon-links": "^10.5.10",
|
|
68
|
+
"@storybook/addon-themes": "^10.5.10",
|
|
69
|
+
"@storybook/web-components": "^10.5.10",
|
|
70
|
+
"@storybook/web-components-vite": "^10.5.10",
|
|
71
|
+
"@types/node": "^22.5.4",
|
|
72
|
+
"cross-env": "^7.0.3",
|
|
73
|
+
"esbuild": "^0.24.0",
|
|
74
|
+
"react": "^19.2.5",
|
|
75
|
+
"storybook": "^10.5.10",
|
|
76
|
+
"typescript": "^5.5.4",
|
|
77
|
+
"vite": "^6.4.2",
|
|
78
|
+
"zod": "^4.4.3"
|
|
79
|
+
},
|
|
80
|
+
"pnpm": {
|
|
81
|
+
"onlyBuiltDependencies": [
|
|
82
|
+
"esbuild"
|
|
83
|
+
]
|
|
84
|
+
},
|
|
85
|
+
"types": "./dist/index.d.ts",
|
|
86
|
+
"sideEffects": true,
|
|
87
|
+
"publishConfig": {
|
|
88
|
+
"access": "public"
|
|
89
|
+
}
|
|
90
|
+
}
|