@tachui/modifiers 0.8.1-alpha → 0.8.8

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 (197) hide show
  1. package/README.md +21 -11
  2. package/dist/animation/index.d.ts +11 -0
  3. package/dist/animation/index.d.ts.map +1 -0
  4. package/dist/appearance/background.d.ts +23 -6
  5. package/dist/appearance/background.d.ts.map +1 -1
  6. package/dist/appearance/border.d.ts +2 -2
  7. package/dist/appearance/border.d.ts.map +1 -1
  8. package/dist/appearance/clip-shape.d.ts +2 -2
  9. package/dist/appearance/clip-shape.d.ts.map +1 -1
  10. package/dist/appearance/clipped.d.ts +2 -2
  11. package/dist/appearance/clipped.d.ts.map +1 -1
  12. package/dist/appearance/foreground.d.ts +14 -5
  13. package/dist/appearance/foreground.d.ts.map +1 -1
  14. package/dist/appearance/index.js +11 -12
  15. package/dist/appearance/reactive-factories.d.ts +20 -0
  16. package/dist/appearance/reactive-factories.d.ts.map +1 -0
  17. package/dist/attributes/accessibility.d.ts +10 -0
  18. package/dist/attributes/accessibility.d.ts.map +1 -0
  19. package/dist/attributes/aria.d.ts +2 -2
  20. package/dist/attributes/aria.d.ts.map +1 -1
  21. package/dist/attributes/css-properties.d.ts +2 -2
  22. package/dist/attributes/css-properties.d.ts.map +1 -1
  23. package/dist/attributes/html.d.ts +2 -2
  24. package/dist/attributes/html.d.ts.map +1 -1
  25. package/dist/attributes/index.d.ts +1 -0
  26. package/dist/attributes/index.d.ts.map +1 -1
  27. package/dist/base.d.ts +6 -7
  28. package/dist/base.d.ts.map +1 -1
  29. package/dist/base.js +9 -840
  30. package/dist/basic/animation.d.ts +41 -0
  31. package/dist/basic/animation.d.ts.map +1 -0
  32. package/dist/basic/base.d.ts +7 -8
  33. package/dist/basic/base.d.ts.map +1 -1
  34. package/dist/basic/index.d.ts +19 -2
  35. package/dist/basic/index.d.ts.map +1 -1
  36. package/dist/basic/index.js +252 -0
  37. package/dist/basic/margin.d.ts +2 -2
  38. package/dist/basic/margin.d.ts.map +1 -1
  39. package/dist/basic/margin.js +13 -158
  40. package/dist/basic/padding.d.ts +2 -2
  41. package/dist/basic/padding.d.ts.map +1 -1
  42. package/dist/basic/padding.js +13 -153
  43. package/dist/basic/size.d.ts +2 -2
  44. package/dist/basic/size.d.ts.map +1 -1
  45. package/dist/basic/size.js +10 -76
  46. package/dist/effects/backdrop/index.d.ts +60 -0
  47. package/dist/effects/backdrop/index.d.ts.map +1 -0
  48. package/dist/effects/backdrop/index.js +118 -0
  49. package/dist/effects/effects/index.d.ts +190 -0
  50. package/dist/effects/effects/index.d.ts.map +1 -0
  51. package/dist/effects/filters/index.d.ts +297 -0
  52. package/dist/effects/filters/index.d.ts.map +1 -0
  53. package/dist/effects/filters/index.js +234 -0
  54. package/dist/effects/index.d.ts +14 -0
  55. package/dist/effects/index.d.ts.map +1 -0
  56. package/dist/effects/index.js +373 -0
  57. package/dist/effects/internal-exports.d.ts +9 -0
  58. package/dist/effects/internal-exports.d.ts.map +1 -0
  59. package/dist/effects/shadows/index.d.ts +316 -0
  60. package/dist/effects/shadows/index.d.ts.map +1 -0
  61. package/dist/effects/shadows/index.js +405 -0
  62. package/dist/effects/transforms/index.d.ts +316 -0
  63. package/dist/effects/transforms/index.d.ts.map +1 -0
  64. package/dist/effects/transforms/index.js +193 -0
  65. package/dist/elements/pseudo-elements.d.ts +2 -2
  66. package/dist/elements/pseudo-elements.d.ts.map +1 -1
  67. package/dist/essential-manifest.d.ts +5 -0
  68. package/dist/essential-manifest.d.ts.map +1 -0
  69. package/dist/index.d.ts +10 -3
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.js +273 -881
  72. package/dist/interaction/allows-hit-testing.d.ts +1 -1
  73. package/dist/interaction/allows-hit-testing.d.ts.map +1 -1
  74. package/dist/interaction/dom-events.d.ts +35 -0
  75. package/dist/interaction/dom-events.d.ts.map +1 -0
  76. package/dist/interaction/focus-events.d.ts +54 -0
  77. package/dist/interaction/focus-events.d.ts.map +1 -0
  78. package/dist/interaction/focusable.d.ts +1 -1
  79. package/dist/interaction/focusable.d.ts.map +1 -1
  80. package/dist/interaction/focused.d.ts +1 -1
  81. package/dist/interaction/focused.d.ts.map +1 -1
  82. package/dist/interaction/index.d.ts +5 -0
  83. package/dist/interaction/index.d.ts.map +1 -1
  84. package/dist/interaction/index.js +75 -28
  85. package/dist/interaction/keyboard-events.d.ts +69 -0
  86. package/dist/interaction/keyboard-events.d.ts.map +1 -0
  87. package/dist/interaction/keyboard-shortcut.d.ts +1 -1
  88. package/dist/interaction/keyboard-shortcut.d.ts.map +1 -1
  89. package/dist/interaction/mouse-events.d.ts +125 -0
  90. package/dist/interaction/mouse-events.d.ts.map +1 -0
  91. package/dist/interaction/on-continuous-hover.d.ts +1 -1
  92. package/dist/interaction/on-continuous-hover.d.ts.map +1 -1
  93. package/dist/interaction/on-hover.d.ts +30 -0
  94. package/dist/interaction/on-hover.d.ts.map +1 -0
  95. package/dist/interaction/on-long-press-gesture.d.ts +1 -1
  96. package/dist/interaction/on-long-press-gesture.d.ts.map +1 -1
  97. package/dist/interaction/scroll.d.ts +2 -2
  98. package/dist/interaction/scroll.d.ts.map +1 -1
  99. package/dist/layout/aspect-ratio.d.ts +2 -2
  100. package/dist/layout/aspect-ratio.d.ts.map +1 -1
  101. package/dist/layout/fixed-size.d.ts +2 -2
  102. package/dist/layout/fixed-size.d.ts.map +1 -1
  103. package/dist/layout/flexbox.d.ts +2 -2
  104. package/dist/layout/flexbox.d.ts.map +1 -1
  105. package/dist/layout/frame.d.ts +13 -0
  106. package/dist/layout/frame.d.ts.map +1 -0
  107. package/dist/layout/index.d.ts +2 -0
  108. package/dist/layout/index.d.ts.map +1 -1
  109. package/dist/layout/index.js +25 -22
  110. package/dist/layout/offset.d.ts +2 -2
  111. package/dist/layout/offset.d.ts.map +1 -1
  112. package/dist/layout/overlay.d.ts +1 -1
  113. package/dist/layout/overlay.d.ts.map +1 -1
  114. package/dist/layout/position.d.ts +2 -2
  115. package/dist/layout/position.d.ts.map +1 -1
  116. package/dist/layout/resizable.d.ts +6 -0
  117. package/dist/layout/resizable.d.ts.map +1 -0
  118. package/dist/layout/scale-effect.d.ts +6 -5
  119. package/dist/layout/scale-effect.d.ts.map +1 -1
  120. package/dist/layout/z-index.d.ts +2 -2
  121. package/dist/layout/z-index.d.ts.map +1 -1
  122. package/dist/lifecycle/index.d.ts +6 -0
  123. package/dist/lifecycle/index.d.ts.map +1 -0
  124. package/dist/modifiers-basic-BUJmEsTR.js +5615 -0
  125. package/dist/navigation/index.d.ts +12 -0
  126. package/dist/navigation/index.d.ts.map +1 -0
  127. package/dist/preload/backdrop.d.ts +5 -0
  128. package/dist/preload/backdrop.d.ts.map +1 -0
  129. package/dist/preload/backdrop.js +7 -0
  130. package/dist/preload/basic.d.ts +7 -0
  131. package/dist/preload/basic.d.ts.map +1 -0
  132. package/dist/preload/basic.js +251 -0
  133. package/dist/preload/effects.d.ts +6 -0
  134. package/dist/preload/effects.d.ts.map +1 -0
  135. package/dist/preload/effects.js +95 -0
  136. package/dist/preload/filters.d.ts +6 -0
  137. package/dist/preload/filters.d.ts.map +1 -0
  138. package/dist/preload/filters.js +31 -0
  139. package/dist/preload/shadows.d.ts +5 -0
  140. package/dist/preload/shadows.d.ts.map +1 -0
  141. package/dist/preload/shadows.js +27 -0
  142. package/dist/preload/transforms.d.ts +5 -0
  143. package/dist/preload/transforms.d.ts.map +1 -0
  144. package/dist/preload/transforms.js +30 -0
  145. package/dist/types.d.ts +7 -6
  146. package/dist/types.d.ts.map +1 -1
  147. package/dist/types.js +0 -1
  148. package/dist/typography/font.d.ts +5 -2
  149. package/dist/typography/font.d.ts.map +1 -1
  150. package/dist/typography/index.d.ts +1 -0
  151. package/dist/typography/index.d.ts.map +1 -1
  152. package/dist/typography/index.js +26 -28
  153. package/dist/typography/text.d.ts +2 -2
  154. package/dist/typography/text.d.ts.map +1 -1
  155. package/dist/typography/text.js +9 -127
  156. package/dist/typography/typography.d.ts +6 -4
  157. package/dist/typography/typography.d.ts.map +1 -1
  158. package/dist/utility/as-html-validator.d.ts +20 -0
  159. package/dist/utility/as-html-validator.d.ts.map +1 -0
  160. package/dist/utility/as-html.d.ts +65 -0
  161. package/dist/utility/as-html.d.ts.map +1 -0
  162. package/dist/utility/basic-sanitizer.d.ts +54 -0
  163. package/dist/utility/basic-sanitizer.d.ts.map +1 -0
  164. package/dist/utility/css.d.ts +2 -2
  165. package/dist/utility/css.d.ts.map +1 -1
  166. package/dist/utility/index.d.ts +3 -0
  167. package/dist/utility/index.d.ts.map +1 -1
  168. package/dist/utility/index.js +19 -15
  169. package/dist/utility/utility.d.ts +2 -2
  170. package/dist/utility/utility.d.ts.map +1 -1
  171. package/dist/version.d.ts +14 -0
  172. package/dist/version.d.ts.map +1 -0
  173. package/package.json +59 -4
  174. package/dist/allows-hit-testing-DscPrcOw.js +0 -464
  175. package/dist/allows-hit-testing-DscPrcOw.js.map +0 -1
  176. package/dist/appearance/index.js.map +0 -1
  177. package/dist/base-CkGf4b9G.js +0 -786
  178. package/dist/base-CkGf4b9G.js.map +0 -1
  179. package/dist/base.js.map +0 -1
  180. package/dist/basic/margin.js.map +0 -1
  181. package/dist/basic/padding.js.map +0 -1
  182. package/dist/basic/size.js.map +0 -1
  183. package/dist/clipped-CCW8gJqJ.js +0 -282
  184. package/dist/clipped-CCW8gJqJ.js.map +0 -1
  185. package/dist/css-CJEXRr6H.js +0 -124
  186. package/dist/css-CJEXRr6H.js.map +0 -1
  187. package/dist/font-3qM2Z97N.js +0 -135
  188. package/dist/font-3qM2Z97N.js.map +0 -1
  189. package/dist/index.js.map +0 -1
  190. package/dist/interaction/index.js.map +0 -1
  191. package/dist/layout/index.js.map +0 -1
  192. package/dist/overlay-DDiSLprp.js +0 -774
  193. package/dist/overlay-DDiSLprp.js.map +0 -1
  194. package/dist/types.js.map +0 -1
  195. package/dist/typography/index.js.map +0 -1
  196. package/dist/typography/text.js.map +0 -1
  197. package/dist/utility/index.js.map +0 -1
@@ -1,17 +1,21 @@
1
- import { C as o, U as i, f as e, g as r, h as t, i as f, c as l, d as c, b as d, e as u, a as y, o as n, u as p } from "../css-CJEXRr6H.js";
1
+ import { bZ as i, b$ as b, bX as o, bS as r, bK as e, b_ as t, bY as l, bT as f, bU as c, bV as M, bW as d, bM as n, bP as S, bQ as u, bR as y, bO as L, bN as T, bL as V } from "../modifiers-basic-BUJmEsTR.js";
2
2
  export {
3
- o as CSSModifier,
4
- i as UtilityModifier,
5
- e as css,
6
- r as cssProperty,
7
- t as cssVariable,
8
- f as cssVendor,
9
- l as cursor,
10
- c as display,
11
- d as outline,
12
- u as outlineOffset,
13
- y as overflowX,
14
- n as overflowY,
15
- p as utility
3
+ i as AsHTMLModifier,
4
+ b as AsHTMLValidator,
5
+ o as BasicSanitizer,
6
+ r as CSSModifier,
7
+ e as UtilityModifier,
8
+ t as asHTML,
9
+ l as basicSanitize,
10
+ f as css,
11
+ c as cssProperty,
12
+ M as cssVariable,
13
+ d as cssVendor,
14
+ n as cursor,
15
+ S as display,
16
+ u as outline,
17
+ y as outlineOffset,
18
+ L as overflowX,
19
+ T as overflowY,
20
+ V as utility
16
21
  };
17
- //# sourceMappingURL=index.js.map
@@ -4,9 +4,9 @@
4
4
  * Provides access to various CSS properties that don't fit
5
5
  * into other specific modifier categories.
6
6
  */
7
- import type { DOMNode } from '@tachui/core/runtime/types';
7
+ import type { DOMNode } from '@tachui/types/runtime';
8
8
  import { BaseModifier } from '../basic/base';
9
- import type { ModifierContext, ReactiveModifierProps } from '@tachui/core/modifiers/types';
9
+ import type { ModifierContext, ReactiveModifierProps } from '@tachui/types/modifiers';
10
10
  export interface UtilityOptions {
11
11
  cursor?: 'auto' | 'default' | 'pointer' | 'text' | 'wait' | 'help' | 'not-allowed' | 'none' | 'grab' | 'grabbing' | 'zoom-in' | 'zoom-out' | 'alias' | 'cell' | 'copy' | string;
12
12
  overflow?: 'visible' | 'hidden' | 'scroll' | 'auto';
@@ -1 +1 @@
1
-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AAC,WAAW,CAAC,GAAG,eAAe,CAE7E;AAKD;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,cAAc,CAAC,SAAS,CAAC,GAAG,eAAe,CAEzE;AAED;;GAEG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,eAAe,CAEtD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,eAAe,CAErE"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Package Information
3
+ *
4
+ * Provides consistent package name and version exports across all TachUI packages
5
+ */
6
+ /**
7
+ * The name of this TachUI package (from package.json)
8
+ */
9
+ export declare const TACHUI_PACKAGE: any;
10
+ /**
11
+ * The version of this TachUI package (from package.json)
12
+ */
13
+ export declare const TACHUI_PACKAGE_VERSION: any;
14
+ //# sourceMappingURL=version.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH;;GAEG;AACH,eAAO,MAAM,cAAc,KAA4B,CAAA;AAEvD;;GAEG;AACH,eAAO,MAAM,sBAAsB,KAA+B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachui/modifiers",
3
- "version": "0.8.1-alpha",
3
+ "version": "0.8.8",
4
4
  "description": "Essential styling modifiers for tachUI framework",
5
5
  "homepage": "https://tachui.dev/",
6
6
  "type": "module",
@@ -20,6 +20,10 @@
20
20
  "types": "./dist/types.d.ts",
21
21
  "import": "./dist/types.js"
22
22
  },
23
+ "./basic": {
24
+ "types": "./dist/basic/index.d.ts",
25
+ "import": "./dist/basic/index.js"
26
+ },
23
27
  "./basic/padding": {
24
28
  "types": "./dist/basic/padding.d.ts",
25
29
  "import": "./dist/basic/padding.js"
@@ -55,13 +59,59 @@
55
59
  "./utility": {
56
60
  "types": "./dist/utility/index.d.ts",
57
61
  "import": "./dist/utility/index.js"
62
+ },
63
+ "./effects": {
64
+ "types": "./dist/effects/index.d.ts",
65
+ "import": "./dist/effects/index.js"
66
+ },
67
+ "./effects/filters": {
68
+ "types": "./dist/effects/filters/index.d.ts",
69
+ "import": "./dist/effects/filters/index.js"
70
+ },
71
+ "./effects/transforms": {
72
+ "types": "./dist/effects/transforms/index.d.ts",
73
+ "import": "./dist/effects/transforms/index.js"
74
+ },
75
+ "./effects/shadows": {
76
+ "types": "./dist/effects/shadows/index.d.ts",
77
+ "import": "./dist/effects/shadows/index.js"
78
+ },
79
+ "./effects/backdrop": {
80
+ "types": "./dist/effects/backdrop/index.d.ts",
81
+ "import": "./dist/effects/backdrop/index.js"
82
+ },
83
+ "./preload/basic": {
84
+ "types": "./dist/preload/basic.d.ts",
85
+ "import": "./dist/preload/basic.js"
86
+ },
87
+ "./preload/effects": {
88
+ "types": "./dist/preload/effects.d.ts",
89
+ "import": "./dist/preload/effects.js"
90
+ },
91
+ "./preload/filters": {
92
+ "types": "./dist/preload/filters.d.ts",
93
+ "import": "./dist/preload/filters.js"
94
+ },
95
+ "./preload/shadows": {
96
+ "types": "./dist/preload/shadows.d.ts",
97
+ "import": "./dist/preload/shadows.js"
98
+ },
99
+ "./preload/transforms": {
100
+ "types": "./dist/preload/transforms.d.ts",
101
+ "import": "./dist/preload/transforms.js"
102
+ },
103
+ "./preload/backdrop": {
104
+ "types": "./dist/preload/backdrop.d.ts",
105
+ "import": "./dist/preload/backdrop.js"
58
106
  }
59
107
  },
60
108
  "files": [
61
109
  "dist"
62
110
  ],
63
111
  "dependencies": {
64
- "@tachui/core": "0.8.1-alpha"
112
+ "@tachui/types": "0.8.8",
113
+ "@tachui/core": "0.8.8",
114
+ "@tachui/registry": "0.8.8"
65
115
  },
66
116
  "devDependencies": {
67
117
  "@types/node": "^20.0.0",
@@ -98,12 +148,16 @@
98
148
  "engines": {
99
149
  "node": ">=20.0.0"
100
150
  },
101
- "sideEffects": false,
151
+ "sideEffects": [
152
+ "./dist/preload/*.js"
153
+ ],
102
154
  "publishConfig": {
103
155
  "access": "public"
104
156
  },
105
157
  "scripts": {
106
- "build": "rm -rf dist && vite build --mode production && tsc --project tsconfig.build.json --emitDeclarationOnly",
158
+ "build": "rm -rf dist tsconfig.build.tsbuildinfo && vite build --mode production && tsc --project tsconfig.build.json --emitDeclarationOnly",
159
+ "build:dev": "rm -rf dist && vite build --mode development --mode production && tsc --project tsconfig.build.json --emitDeclarationOnly",
160
+ "build:prod": "rm -rf dist && vite build --mode production --mode production && tsc --project tsconfig.build.json --emitDeclarationOnly",
107
161
  "dev": "vite build --watch",
108
162
  "valid": "clear && vitest run && pnpm type-check && pnpm lint && pnpm build",
109
163
  "test": "vitest run",
@@ -111,6 +165,7 @@
111
165
  "test:watch": "vitest",
112
166
  "test:ci": "vitest run",
113
167
  "type-check": "tsc --project tsconfig.type-check.json",
168
+ "verify:tree-shaking": "tsx scripts/verify-tree-shaking.ts",
114
169
  "clean": "rm -rf dist",
115
170
  "lint": "oxlint src"
116
171
  }
@@ -1,464 +0,0 @@
1
- var F = Object.defineProperty;
2
- var K = (r, u, e) => u in r ? F(r, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[u] = e;
3
- var h = (r, u, e) => K(r, typeof u != "symbol" ? u + "" : u, e);
4
- import { B as X } from "./base-CkGf4b9G.js";
5
- import { BaseModifier as S } from "./base.js";
6
- class b extends X {
7
- constructor(e) {
8
- const t = {};
9
- for (const [o, a] of Object.entries(e))
10
- typeof a == "function" && "peek" in a ? t[o] = a.peek() : t[o] = a;
11
- super(t);
12
- h(this, "type", "scroll");
13
- h(this, "priority", 20);
14
- }
15
- apply(e, t) {
16
- if (!t.element) return;
17
- const o = this.computeScrollStyles(this.properties);
18
- this.applyStyles(t.element, o);
19
- }
20
- computeScrollStyles(e) {
21
- const t = {};
22
- return e.scroll && Object.assign(t, this.generateScrollCSS(e.scroll)), e.scrollBehavior && (t.scrollBehavior = e.scrollBehavior), e.overscrollBehavior && (t.overscrollBehavior = e.overscrollBehavior), e.overscrollBehaviorX && (t.overscrollBehaviorX = e.overscrollBehaviorX), e.overscrollBehaviorY && (t.overscrollBehaviorY = e.overscrollBehaviorY), t;
23
- }
24
- generateScrollCSS(e) {
25
- const t = {};
26
- return e.behavior && (t.scrollBehavior = e.behavior), e.margin && Object.assign(t, this.generateScrollMarginCSS(e.margin)), e.padding && Object.assign(t, this.generateScrollPaddingCSS(e.padding)), e.snap && Object.assign(t, this.generateScrollSnapCSS(e.snap)), t;
27
- }
28
- generateScrollMarginCSS(e) {
29
- if (typeof e == "number" || typeof e == "string")
30
- return { scrollMargin: this.formatSpacing(e) };
31
- const t = {};
32
- return e.top !== void 0 && (t.scrollMarginTop = this.formatSpacing(e.top)), e.right !== void 0 && (t.scrollMarginRight = this.formatSpacing(e.right)), e.bottom !== void 0 && (t.scrollMarginBottom = this.formatSpacing(e.bottom)), e.left !== void 0 && (t.scrollMarginLeft = this.formatSpacing(e.left)), t;
33
- }
34
- generateScrollPaddingCSS(e) {
35
- if (typeof e == "number" || typeof e == "string")
36
- return { scrollPadding: this.formatSpacing(e) };
37
- const t = {};
38
- return e.top !== void 0 && (t.scrollPaddingTop = this.formatSpacing(e.top)), e.right !== void 0 && (t.scrollPaddingRight = this.formatSpacing(e.right)), e.bottom !== void 0 && (t.scrollPaddingBottom = this.formatSpacing(e.bottom)), e.left !== void 0 && (t.scrollPaddingLeft = this.formatSpacing(e.left)), t;
39
- }
40
- generateScrollSnapCSS(e) {
41
- const t = {};
42
- return e?.type && (t.scrollSnapType = e.type), e?.align && (t.scrollSnapAlign = e.align), e?.stop && (t.scrollSnapStop = e.stop), t;
43
- }
44
- formatSpacing(e) {
45
- return typeof e == "number" ? `${e}px` : e;
46
- }
47
- }
48
- function U(r) {
49
- return new b({ scroll: r });
50
- }
51
- function $(r) {
52
- return new b({ scrollBehavior: r });
53
- }
54
- function J(r) {
55
- return new b({ overscrollBehavior: r });
56
- }
57
- function Q(r) {
58
- return new b({ overscrollBehaviorX: r });
59
- }
60
- function W(r) {
61
- return new b({ overscrollBehaviorY: r });
62
- }
63
- function Z(r) {
64
- return new b({ scroll: { margin: r } });
65
- }
66
- function ee(r) {
67
- return new b({ scroll: { padding: r } });
68
- }
69
- function te(r, u, e) {
70
- return new b({
71
- scroll: {
72
- snap: { type: r, align: u, stop: e }
73
- }
74
- });
75
- }
76
- class Y extends S {
77
- constructor() {
78
- super(...arguments);
79
- h(this, "type", "onLongPressGesture");
80
- h(this, "priority", 85);
81
- }
82
- apply(e, t) {
83
- t.element && this.setupLongPressGesture(t.element, this.properties);
84
- }
85
- setupLongPressGesture(e, t) {
86
- const o = t.minimumDuration ?? 500, a = t.maximumDistance ?? 10;
87
- let f = null, p = null, n = !1, i = !1;
88
- const d = (v, c) => {
89
- n || (f = { x: v, y: c }, n = !0, i = !1, t.onPressingChanged?.(!0), p = window.setTimeout(() => {
90
- n && !i && (i = !0, t.perform());
91
- }, o));
92
- }, s = (v, c) => f ? Math.sqrt(
93
- Math.pow(v - f.x, 2) + Math.pow(c - f.y, 2)
94
- ) <= a : !1, l = () => {
95
- p && (clearTimeout(p), p = null), n && (n = !1, t.onPressingChanged?.(!1)), f = null, i = !1;
96
- }, m = (v) => {
97
- const c = v;
98
- v.preventDefault(), d(c.clientX, c.clientY);
99
- }, E = (v) => {
100
- if (!n) return;
101
- const c = v;
102
- s(c.clientX, c.clientY) || l();
103
- }, y = () => {
104
- l();
105
- }, L = () => {
106
- l();
107
- }, w = (v) => {
108
- const c = v;
109
- if (c.touches.length === 1) {
110
- const g = c.touches[0];
111
- v.preventDefault(), d(g.clientX, g.clientY);
112
- }
113
- }, M = (v) => {
114
- if (!n) return;
115
- const c = v;
116
- if (c.touches.length === 1) {
117
- const g = c.touches[0];
118
- s(g.clientX, g.clientY) || l();
119
- } else
120
- l();
121
- }, C = () => {
122
- l();
123
- }, B = () => {
124
- l();
125
- }, P = (v) => {
126
- const c = v;
127
- c.button === 0 && (v.preventDefault(), d(c.clientX, c.clientY));
128
- }, A = (v) => {
129
- if (!n) return;
130
- const c = v;
131
- s(c.clientX, c.clientY) || l();
132
- }, T = () => {
133
- l();
134
- }, k = () => {
135
- l();
136
- };
137
- "onpointerdown" in e ? (e.addEventListener(
138
- "pointerdown",
139
- m
140
- ), e.addEventListener(
141
- "pointermove",
142
- E
143
- ), e.addEventListener("pointerup", y), e.addEventListener(
144
- "pointercancel",
145
- L
146
- )) : "ontouchstart" in e ? (e.addEventListener(
147
- "touchstart",
148
- w,
149
- { passive: !1 }
150
- ), e.addEventListener("touchmove", M), e.addEventListener("touchend", C), e.addEventListener(
151
- "touchcancel",
152
- B
153
- )) : (e.addEventListener("mousedown", P), e.addEventListener("mousemove", A), e.addEventListener("mouseup", T), e.addEventListener("mouseleave", k));
154
- const D = () => {
155
- l(), "onpointerdown" in e ? (e.removeEventListener(
156
- "pointerdown",
157
- m
158
- ), e.removeEventListener(
159
- "pointermove",
160
- E
161
- ), e.removeEventListener(
162
- "pointerup",
163
- y
164
- ), e.removeEventListener(
165
- "pointercancel",
166
- L
167
- )) : "ontouchstart" in e ? (e.removeEventListener(
168
- "touchstart",
169
- w
170
- ), e.removeEventListener(
171
- "touchmove",
172
- M
173
- ), e.removeEventListener("touchend", C), e.removeEventListener(
174
- "touchcancel",
175
- B
176
- )) : (e.removeEventListener(
177
- "mousedown",
178
- P
179
- ), e.removeEventListener(
180
- "mousemove",
181
- A
182
- ), e.removeEventListener("mouseup", T), e.removeEventListener(
183
- "mouseleave",
184
- k
185
- ));
186
- };
187
- e._longPressCleanup = D;
188
- }
189
- }
190
- function oe(r) {
191
- return new Y(r);
192
- }
193
- class O extends S {
194
- constructor(e) {
195
- const t = {
196
- ...e,
197
- modifiers: e.modifiers || []
198
- };
199
- super(t);
200
- h(this, "type", "keyboardShortcut");
201
- h(this, "priority", 80);
202
- }
203
- apply(e, t) {
204
- t.element && this.setupKeyboardShortcut(t.element, this.properties);
205
- }
206
- setupKeyboardShortcut(e, t) {
207
- const o = t.modifiers || [], a = (n) => {
208
- const i = n;
209
- if (i.key.toLowerCase() !== t.key.toLowerCase())
210
- return;
211
- const d = new Set(o), s = /* @__PURE__ */ new Set();
212
- (i.ctrlKey || i.metaKey) && (navigator.platform.includes("Mac") ? (i.metaKey && (s.add("cmd"), s.add("meta")), i.ctrlKey && s.add("ctrl")) : (i.ctrlKey && (s.add("ctrl"), s.add("cmd")), i.metaKey && s.add("meta"))), i.shiftKey && s.add("shift"), i.altKey && s.add("alt");
213
- const l = Array.from(d).every(
214
- (y) => s.has(y)
215
- ), m = /* @__PURE__ */ new Set([...d]);
216
- d.has("cmd") && (m.add("meta"), m.add("ctrl")), d.has("meta") && m.add("cmd"), d.has("ctrl") && m.add("cmd");
217
- const E = Array.from(s).some(
218
- (y) => !m.has(
219
- y
220
- )
221
- );
222
- l && !E && (n.preventDefault(), n.stopPropagation(), t.action());
223
- }, f = e instanceof HTMLElement && e.tabIndex >= 0 ? e : document;
224
- f.addEventListener("keydown", a);
225
- const p = () => {
226
- f.removeEventListener(
227
- "keydown",
228
- a
229
- );
230
- };
231
- e._keyboardShortcutCleanup = p;
232
- }
233
- }
234
- function j(r) {
235
- return new O(r);
236
- }
237
- function re(r, u, e) {
238
- return j({ key: r, modifiers: u, action: e });
239
- }
240
- class q extends S {
241
- constructor() {
242
- super(...arguments);
243
- h(this, "type", "focused");
244
- h(this, "priority", 75);
245
- }
246
- apply(e, t) {
247
- t.element && this.setupFocusManagement(t.element, this.properties.focused);
248
- }
249
- setupFocusManagement(e, t) {
250
- if (!e || typeof e.focus != "function") return;
251
- const o = e;
252
- o.tabIndex < 0 && (o.tabIndex = 0);
253
- let a;
254
- const f = (n) => {
255
- n ? requestAnimationFrame(() => {
256
- document.activeElement !== o && o.focus();
257
- }) : document.activeElement === o && o.blur();
258
- };
259
- if (typeof t == "function") {
260
- const n = t;
261
- if (f(n()), n.subscribe)
262
- a = n.subscribe((i) => {
263
- f(i);
264
- });
265
- else if (process.env.NODE_ENV !== "test") {
266
- let i = n(), d = !0;
267
- const s = () => {
268
- if (!d) return;
269
- const l = n();
270
- l !== i && (i = l, f(l)), d && requestAnimationFrame(s);
271
- };
272
- a = () => {
273
- d = !1;
274
- }, requestAnimationFrame(s);
275
- } else
276
- a = () => {
277
- };
278
- } else
279
- f(t);
280
- const p = () => {
281
- a && a();
282
- };
283
- e._focusedCleanup = p;
284
- }
285
- }
286
- function ne(r) {
287
- return new q({ focused: r });
288
- }
289
- class G extends S {
290
- constructor(e = {}) {
291
- const t = {
292
- ...e,
293
- interactions: e.interactions || []
294
- };
295
- super(t);
296
- h(this, "type", "focusable");
297
- h(this, "priority", 75);
298
- }
299
- apply(e, t) {
300
- t.element && this.setupFocusable(t.element, this.properties);
301
- }
302
- setupFocusable(e, t) {
303
- if (!e || typeof e.focus != "function") return;
304
- const o = e, a = t.isFocusable ?? !0, f = t.interactions ?? [];
305
- if (a) {
306
- o.tabIndex < 0 && (o.tabIndex = 0);
307
- const p = o.getAttribute("role");
308
- if (f.includes("edit") ? (p || o.setAttribute("role", "textbox"), o.setAttribute("contenteditable", "true"), o.setAttribute(
309
- "aria-label",
310
- o.getAttribute("aria-label") || "Editable content"
311
- )) : f.includes("activate") && (p || o.setAttribute("role", "button"), o.setAttribute(
312
- "aria-label",
313
- o.getAttribute("aria-label") || "Activatable element"
314
- )), f.includes("activate")) {
315
- const n = (d) => {
316
- (d.key === " " || d.key === "Enter") && (d.preventDefault(), o.click());
317
- };
318
- o.addEventListener("keydown", n);
319
- const i = o._focusableCleanup || (() => {
320
- });
321
- o._focusableCleanup = () => {
322
- i(), o.removeEventListener("keydown", n);
323
- };
324
- }
325
- !o.getAttribute("aria-label") && !o.getAttribute("aria-labelledby") && o.setAttribute("aria-label", "Focusable element"), o._focusableCleanup || (o._focusableCleanup = () => {
326
- });
327
- } else {
328
- o.tabIndex = -1, o.removeAttribute("role"), o.removeAttribute("aria-label"), o.removeAttribute("contenteditable");
329
- const p = o._focusableCleanup;
330
- p && (p(), delete o._focusableCleanup);
331
- }
332
- }
333
- }
334
- function x(r, u) {
335
- return new G({
336
- isFocusable: r ?? !0,
337
- interactions: u ?? []
338
- });
339
- }
340
- function se() {
341
- return x(!0, ["activate"]);
342
- }
343
- function ie() {
344
- return x(!0, ["edit"]);
345
- }
346
- class I extends S {
347
- constructor() {
348
- super(...arguments);
349
- h(this, "type", "onContinuousHover");
350
- h(this, "priority", 70);
351
- }
352
- apply(e, t) {
353
- t.element && this.setupContinuousHover(t.element, this.properties);
354
- }
355
- setupContinuousHover(e, t) {
356
- const o = t.coordinateSpace ?? "local";
357
- let a = !1;
358
- const f = (s) => {
359
- if (o === "global")
360
- return {
361
- x: s.clientX,
362
- y: s.clientY
363
- };
364
- {
365
- const l = e.getBoundingClientRect();
366
- return {
367
- x: s.clientX - l.left,
368
- y: s.clientY - l.top
369
- };
370
- }
371
- }, p = (s) => {
372
- a = !0;
373
- const m = f(s);
374
- t.perform(m);
375
- }, n = (s) => {
376
- if (!a) return;
377
- const m = f(s);
378
- t.perform(m);
379
- }, i = () => {
380
- a = !1, t.perform(null);
381
- };
382
- e.addEventListener("mouseenter", p), e.addEventListener("mousemove", n), e.addEventListener("mouseleave", i);
383
- const d = () => {
384
- a && (a = !1, t.perform(null)), e.removeEventListener(
385
- "mouseenter",
386
- p
387
- ), e.removeEventListener("mousemove", n), e.removeEventListener(
388
- "mouseleave",
389
- i
390
- );
391
- };
392
- e._continuousHoverCleanup = d;
393
- }
394
- }
395
- function _(r) {
396
- return new I(r);
397
- }
398
- function ae(r) {
399
- return _({
400
- coordinateSpace: "local",
401
- perform: r
402
- });
403
- }
404
- function le(r) {
405
- return _({
406
- coordinateSpace: "global",
407
- perform: r
408
- });
409
- }
410
- class R extends S {
411
- constructor() {
412
- super(...arguments);
413
- h(this, "type", "allowsHitTesting");
414
- h(this, "priority", 95);
415
- }
416
- apply(e, t) {
417
- t.element && this.setupHitTesting(t.element, this.properties.enabled);
418
- }
419
- setupHitTesting(e, t) {
420
- if (!e || typeof e.style != "object") return;
421
- const o = e;
422
- t ? o.style.pointerEvents === "none" && (o.style.pointerEvents = "") : o.style.pointerEvents = "none", e._hitTestingEnabled = t;
423
- }
424
- }
425
- function H(r) {
426
- return new R({ enabled: r });
427
- }
428
- function ce() {
429
- return H(!0);
430
- }
431
- function ue() {
432
- return H(!1);
433
- }
434
- export {
435
- R as A,
436
- q as F,
437
- O as K,
438
- Y as O,
439
- b as S,
440
- $ as a,
441
- Q as b,
442
- W as c,
443
- Z as d,
444
- ee as e,
445
- te as f,
446
- oe as g,
447
- re as h,
448
- ne as i,
449
- G as j,
450
- j as k,
451
- x as l,
452
- se as m,
453
- ie as n,
454
- J as o,
455
- I as p,
456
- _ as q,
457
- ae as r,
458
- U as s,
459
- le as t,
460
- H as u,
461
- ce as v,
462
- ue as w
463
- };
464
- //# sourceMappingURL=allows-hit-testing-DscPrcOw.js.map