@tachui/modifiers 0.8.0-alpha → 0.8.5-alpha

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 +19 -9
  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-DLmE749_.js +5604 -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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GAQG;AACH,wBAAgB,YAAY,CAC1B,UAAU,GAAE,MAAmC,EAC/C,SAAS,GAAE,MAA6B,GACvC,kBAAkB,CAOpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,YAAY,CAC1B,SAAS,GAAE,MAA6B,EACxC,UAAU,GAAE,MAAmC,GAC9C,kBAAkB,CAOpB;AAMD;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,MAAM,GAAE;IACN,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,CAAC,CAAC,EAAE,MAAM,CAAA;IACV,CAAC,CAAC,EAAE,MAAM,CAAA;CACN,GACL,cAAc,CAMhB;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B;;OAEG;sBACc,MAAM,KAAO,cAAc;IAQ5C;;OAEG;yBACiB,MAAM,KAAO,cAAc;IAQ/C;;OAEG;uBACe,MAAM,KAAO,cAAc;IAQ7C;;OAEG;wBACgB,MAAM,KAAO,cAAc;IAQ9C;;OAEG;yBACiB,MAAM,KAAO,cAAc;CAQhD,CAAA;AAMD;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAC5B,SAAS,EAAE,MAAM,CAAC,OAAO,CAAC,EAC1B,UAAU,EAAE,YAAY,EACxB,WAAW,GAAE,YAA4D,GACxE,cAAc,CAMhB;AAED;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,SAAS,GAAE,MAAY,GAAG,cAAc,CAItE"}
@@ -0,0 +1,405 @@
1
+ var y = Object.defineProperty;
2
+ var b = (r, s, e) => s in r ? y(r, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[s] = e;
3
+ var i = (r, s, e) => b(r, typeof s != "symbol" ? s + "" : s, e);
4
+ import { isSignal as n, isComputed as h, createEffect as p } from "@tachui/core/reactive";
5
+ import { BaseModifier as c } from "@tachui/core/modifiers/base";
6
+ class d extends c {
7
+ constructor(e) {
8
+ const o = {};
9
+ for (const [a, t] of Object.entries(e))
10
+ typeof t == "function" && "peek" in t ? o[a] = t.peek() : o[a] = t;
11
+ super(o);
12
+ i(this, "type", "shadow");
13
+ i(this, "priority", 25);
14
+ }
15
+ apply(e, o) {
16
+ o.element && this.applyShadowStyles(o.element, this.properties);
17
+ }
18
+ applyShadowStyles(e, o) {
19
+ o.shadow && (typeof o.shadow == "string" ? this.applyStyles(e, { boxShadow: o.shadow }) : Array.isArray(o.shadow) ? this.applyMultipleShadows(e, o.shadow) : this.applySingleShadow(e, o.shadow));
20
+ }
21
+ applySingleShadow(e, o) {
22
+ if (Object.values(o).some(
23
+ (t) => n(t) || h(t)
24
+ ))
25
+ p(() => {
26
+ const t = this.generateShadowCSS(o);
27
+ this.applyStyleChange(e, "boxShadow", t);
28
+ });
29
+ else {
30
+ const t = this.generateShadowCSS(o);
31
+ this.applyStyles(e, { boxShadow: t });
32
+ }
33
+ }
34
+ applyMultipleShadows(e, o) {
35
+ if (o.some(
36
+ (t) => Object.values(t).some((l) => n(l) || h(l))
37
+ ))
38
+ p(() => {
39
+ const t = o.map((l) => this.generateShadowCSS(l)).join(", ");
40
+ this.applyStyleChange(e, "boxShadow", t);
41
+ });
42
+ else {
43
+ const t = o.map((l) => this.generateShadowCSS(l)).join(", ");
44
+ this.applyStyles(e, { boxShadow: t });
45
+ }
46
+ }
47
+ generateShadowCSS(e) {
48
+ const o = this.resolveValue(e.x, 0), a = this.resolveValue(e.y, 0), t = this.resolveValue(e.blur !== void 0 ? e.blur : e.radius, 0), l = e.spread !== void 0 ? this.resolveValue(e.spread, 0) : 0, S = this.resolveValue(e.color, "rgba(0,0,0,0.25)");
49
+ return `${this.resolveValue(e.inset, !1) ? "inset " : ""}${o}px ${a}px ${t}px ${l}px ${S}`;
50
+ }
51
+ resolveValue(e, o) {
52
+ return n(e) || h(e) ? e() : typeof e == "object" && e !== null && "resolve" in e && typeof e.resolve == "function" ? e.resolve() : e !== void 0 ? e : o;
53
+ }
54
+ }
55
+ class u extends c {
56
+ constructor(e) {
57
+ const o = {};
58
+ for (const [a, t] of Object.entries(e))
59
+ typeof t == "function" && "peek" in t ? o[a] = t.peek() : o[a] = t;
60
+ super(o);
61
+ i(this, "type", "textShadow");
62
+ i(this, "priority", 26);
63
+ }
64
+ apply(e, o) {
65
+ o.element && this.applyTextShadowStyles(o.element, this.properties);
66
+ }
67
+ applyTextShadowStyles(e, o) {
68
+ o.textShadow && (typeof o.textShadow == "string" ? this.applyStyles(e, { textShadow: o.textShadow }) : Array.isArray(o.textShadow) ? this.applyMultipleTextShadows(e, o.textShadow) : this.applySingleTextShadow(e, o.textShadow));
69
+ }
70
+ applySingleTextShadow(e, o) {
71
+ if (Object.values(o).some(
72
+ (t) => n(t) || h(t)
73
+ ))
74
+ p(() => {
75
+ const t = this.generateTextShadowCSS(o);
76
+ this.applyStyleChange(e, "textShadow", t);
77
+ });
78
+ else {
79
+ const t = this.generateTextShadowCSS(o);
80
+ this.applyStyles(e, { textShadow: t });
81
+ }
82
+ }
83
+ applyMultipleTextShadows(e, o) {
84
+ if (o.some(
85
+ (t) => Object.values(t).some((l) => n(l) || h(l))
86
+ ))
87
+ p(() => {
88
+ const t = o.map((l) => this.generateTextShadowCSS(l)).join(", ");
89
+ this.applyStyleChange(e, "textShadow", t);
90
+ });
91
+ else {
92
+ const t = o.map((l) => this.generateTextShadowCSS(l)).join(", ");
93
+ this.applyStyles(e, { textShadow: t });
94
+ }
95
+ }
96
+ generateTextShadowCSS(e) {
97
+ const o = this.resolveValue(e.x, 0), a = this.resolveValue(e.y, 0), t = this.resolveValue(e.blur !== void 0 ? e.blur : e.radius, 0), l = this.resolveValue(e.color, "rgba(0,0,0,0.5)");
98
+ return `${o}px ${a}px ${t}px ${l}`;
99
+ }
100
+ resolveValue(e, o) {
101
+ return n(e) || h(e) ? e() : typeof e == "object" && e !== null && "resolve" in e && typeof e.resolve == "function" ? e.resolve() : e !== void 0 ? e : o;
102
+ }
103
+ }
104
+ class x extends c {
105
+ constructor(e) {
106
+ const o = {};
107
+ for (const [a, t] of Object.entries(e))
108
+ typeof t == "function" && "peek" in t ? o[a] = t.peek() : o[a] = t;
109
+ super(o);
110
+ i(this, "type", "dropShadow");
111
+ i(this, "priority", 27);
112
+ }
113
+ apply(e, o) {
114
+ o.element && this.applyDropShadowStyles(o.element, this.properties);
115
+ }
116
+ applyDropShadowStyles(e, o) {
117
+ o.dropShadow && (typeof o.dropShadow == "string" ? this.applyFilterDropShadow(e, o.dropShadow) : Array.isArray(o.dropShadow) ? this.applyMultipleDropShadows(e, o.dropShadow) : this.applySingleDropShadow(e, o.dropShadow));
118
+ }
119
+ applySingleDropShadow(e, o) {
120
+ if (Object.values(o).some(
121
+ (t) => n(t) || h(t)
122
+ ))
123
+ p(() => {
124
+ const t = this.generateDropShadowCSS(o);
125
+ this.applyFilterDropShadow(e, t);
126
+ });
127
+ else {
128
+ const t = this.generateDropShadowCSS(o);
129
+ this.applyFilterDropShadow(e, t);
130
+ }
131
+ }
132
+ applyMultipleDropShadows(e, o) {
133
+ if (o.some(
134
+ (t) => Object.values(t).some((l) => n(l) || h(l))
135
+ ))
136
+ p(() => {
137
+ const t = o.map((l) => `drop-shadow(${this.generateDropShadowCSS(l)})`).join(" ");
138
+ this.applyStyles(e, { filter: t });
139
+ });
140
+ else {
141
+ const t = o.map((l) => `drop-shadow(${this.generateDropShadowCSS(l)})`).join(" ");
142
+ this.applyStyles(e, { filter: t });
143
+ }
144
+ }
145
+ applyFilterDropShadow(e, o) {
146
+ const t = (e.style.filter || "").split(" ").filter((S) => S && !S.startsWith("drop-shadow(")).join(" "), l = t ? `${t} drop-shadow(${o})` : `drop-shadow(${o})`;
147
+ this.applyStyles(e, { filter: l });
148
+ }
149
+ generateDropShadowCSS(e) {
150
+ const o = this.resolveValue(e.x, 0), a = this.resolveValue(e.y, 0), t = this.resolveValue(e.blur !== void 0 ? e.blur : e.radius, 0), l = this.resolveValue(e.color, "rgba(0,0,0,0.25)");
151
+ return `${o}px ${a}px ${t}px ${l}`;
152
+ }
153
+ resolveValue(e, o) {
154
+ return n(e) || h(e) ? e() : typeof e == "object" && e !== null && "resolve" in e && typeof e.resolve == "function" ? e.resolve() : e !== void 0 ? e : o;
155
+ }
156
+ }
157
+ function w(r) {
158
+ return new d({ shadow: r });
159
+ }
160
+ function $(r) {
161
+ return new u({ textShadow: r });
162
+ }
163
+ function j(r) {
164
+ return new x({ dropShadow: r });
165
+ }
166
+ function D(r) {
167
+ return new d({ shadow: r });
168
+ }
169
+ function O(r) {
170
+ return new d({ shadow: { ...r, inset: !0 } });
171
+ }
172
+ function f(r) {
173
+ const s = {
174
+ none: "none",
175
+ small: { x: 0, y: 1, blur: 3, spread: 0, color: "rgba(0, 0, 0, 0.12)" },
176
+ medium: { x: 0, y: 4, blur: 6, spread: -1, color: "rgba(0, 0, 0, 0.1)" },
177
+ large: { x: 0, y: 10, blur: 15, spread: -3, color: "rgba(0, 0, 0, 0.1)" },
178
+ xlarge: {
179
+ x: 0,
180
+ y: 20,
181
+ blur: 25,
182
+ spread: -5,
183
+ color: "rgba(0, 0, 0, 0.1)"
184
+ },
185
+ "2xlarge": {
186
+ x: 0,
187
+ y: 25,
188
+ blur: 50,
189
+ spread: -12,
190
+ color: "rgba(0, 0, 0, 0.25)"
191
+ },
192
+ inner: {
193
+ x: 0,
194
+ y: 2,
195
+ blur: 4,
196
+ spread: 0,
197
+ color: "rgba(0, 0, 0, 0.06)",
198
+ inset: !0
199
+ },
200
+ outline: { x: 0, y: 0, blur: 0, spread: 1, color: "rgba(0, 0, 0, 0.05)" }
201
+ };
202
+ return new d({ shadow: s[r] });
203
+ }
204
+ function R(r) {
205
+ const s = {
206
+ 0: [],
207
+ 1: [
208
+ { x: 0, y: 1, blur: 3, spread: 0, color: "rgba(0, 0, 0, 0.12)" },
209
+ { x: 0, y: 1, blur: 2, spread: 0, color: "rgba(0, 0, 0, 0.24)" }
210
+ ],
211
+ 2: [
212
+ { x: 0, y: 3, blur: 6, spread: 0, color: "rgba(0, 0, 0, 0.15)" },
213
+ { x: 0, y: 2, blur: 4, spread: 0, color: "rgba(0, 0, 0, 0.12)" }
214
+ ],
215
+ 3: [
216
+ { x: 0, y: 10, blur: 20, spread: 0, color: "rgba(0, 0, 0, 0.15)" },
217
+ { x: 0, y: 3, blur: 6, spread: 0, color: "rgba(0, 0, 0, 0.10)" }
218
+ ],
219
+ 4: [
220
+ { x: 0, y: 15, blur: 25, spread: 0, color: "rgba(0, 0, 0, 0.15)" },
221
+ { x: 0, y: 5, blur: 10, spread: 0, color: "rgba(0, 0, 0, 0.12)" }
222
+ ],
223
+ 8: [
224
+ { x: 0, y: 30, blur: 60, spread: 0, color: "rgba(0, 0, 0, 0.15)" },
225
+ { x: 0, y: 8, blur: 16, spread: 0, color: "rgba(0, 0, 0, 0.12)" }
226
+ ]
227
+ }, e = s[r] || s[1];
228
+ return new d({ shadow: e });
229
+ }
230
+ function T(r, s = 6) {
231
+ const e = [
232
+ { x: 0, y: 0, blur: s, spread: 0, color: r },
233
+ { x: 0, y: 0, blur: s * 2, spread: 0, color: r + "80" },
234
+ // 50% opacity
235
+ { x: 0, y: 0, blur: s * 3, spread: 0, color: r + "40" }
236
+ // 25% opacity
237
+ ];
238
+ return new d({ shadow: e });
239
+ }
240
+ function M(r, s = 10) {
241
+ const e = [
242
+ { x: 0, y: 0, blur: s / 2, spread: 0, color: r },
243
+ { x: 0, y: 0, blur: s, spread: 0, color: r + "CC" },
244
+ // 80% opacity
245
+ { x: 0, y: 0, blur: s * 2, spread: 0, color: r + "99" },
246
+ // 60% opacity
247
+ { x: 0, y: 0, blur: s * 3, spread: 0, color: r + "66" }
248
+ // 40% opacity
249
+ ];
250
+ return new d({ shadow: e });
251
+ }
252
+ function k(r, s = !1) {
253
+ const a = [
254
+ { x: -8, y: -8, blur: 16, spread: 0, color: s ? "rgba(255, 255, 255, 0.1)" : "rgba(255, 255, 255, 0.7)" },
255
+ // Top-left light
256
+ { x: 8, y: 8, blur: 16, spread: 0, color: s ? "rgba(0, 0, 0, 0.5)" : "rgba(0, 0, 0, 0.15)" }
257
+ // Bottom-right dark
258
+ ];
259
+ return new d({ shadow: a });
260
+ }
261
+ function F(r, s = !1) {
262
+ const a = [
263
+ { x: 8, y: 8, blur: 16, spread: 0, color: s ? "rgba(0, 0, 0, 0.8)" : "rgba(0, 0, 0, 0.2)", inset: !0 },
264
+ // Inner dark
265
+ { x: -8, y: -8, blur: 16, spread: 0, color: s ? "rgba(255, 255, 255, 0.05)" : "rgba(255, 255, 255, 0.5)", inset: !0 }
266
+ // Inner light
267
+ ];
268
+ return new d({ shadow: a });
269
+ }
270
+ function A(r = 3, s = 0.6) {
271
+ const e = [];
272
+ for (let o = 1; o <= r; o++) {
273
+ const a = Math.max(0.05, s * (1 - (o - 1) / r));
274
+ e.push({
275
+ x: 0,
276
+ y: o * 2,
277
+ blur: o * 4,
278
+ spread: 0,
279
+ color: `rgba(0, 0, 0, ${a})`
280
+ });
281
+ }
282
+ return new d({ shadow: e });
283
+ }
284
+ function _(r = "rgba(0, 0, 0, 0.2)") {
285
+ return new u({
286
+ textShadow: { x: 0, y: 1, blur: 1, color: r }
287
+ });
288
+ }
289
+ function E(r = "rgba(0, 0, 0, 0.5)") {
290
+ return new u({
291
+ textShadow: { x: 1, y: 1, blur: 3, color: r }
292
+ });
293
+ }
294
+ function P(r, s = 1) {
295
+ const e = [];
296
+ for (let o = -s; o <= s; o++)
297
+ for (let a = -s; a <= s; a++)
298
+ (o !== 0 || a !== 0) && e.push({ x: o, y: a, blur: 0, color: r });
299
+ return new u({ textShadow: e });
300
+ }
301
+ function B(r = "rgba(255, 255, 255, 0.8)", s = "rgba(0, 0, 0, 0.3)") {
302
+ const e = [
303
+ { x: 0, y: 1, blur: 0, color: r },
304
+ // Light highlight
305
+ { x: 0, y: -1, blur: 0, color: s }
306
+ // Dark shadow
307
+ ];
308
+ return new u({ textShadow: e });
309
+ }
310
+ function I(r = "rgba(0, 0, 0, 0.5)", s = "rgba(255, 255, 255, 0.2)") {
311
+ const e = [
312
+ { x: 0, y: 1, blur: 0, color: r },
313
+ // Dark shadow
314
+ { x: 0, y: -1, blur: 0, color: s }
315
+ // Light highlight
316
+ ];
317
+ return new u({ textShadow: e });
318
+ }
319
+ function U(r = {}) {
320
+ const { color: s = "rgba(0, 0, 0, 0.2)", radius: e = 10, x: o = 0, y: a = 0 } = r;
321
+ return new d({
322
+ shadow: { x: o, y: a, blur: e, color: s }
323
+ });
324
+ }
325
+ const W = {
326
+ /**
327
+ * Top shadow (light coming from below)
328
+ */
329
+ top: (r = 4) => w({
330
+ x: 0,
331
+ y: -r,
332
+ blur: r * 2,
333
+ color: "rgba(0,0,0,0.15)"
334
+ }),
335
+ /**
336
+ * Bottom shadow (light coming from above) - most common
337
+ */
338
+ bottom: (r = 4) => w({
339
+ x: 0,
340
+ y: r,
341
+ blur: r * 2,
342
+ color: "rgba(0,0,0,0.15)"
343
+ }),
344
+ /**
345
+ * Left shadow (light coming from right)
346
+ */
347
+ left: (r = 4) => w({
348
+ x: -r,
349
+ y: 0,
350
+ blur: r * 2,
351
+ color: "rgba(0,0,0,0.15)"
352
+ }),
353
+ /**
354
+ * Right shadow (light coming from left)
355
+ */
356
+ right: (r = 4) => w({
357
+ x: r,
358
+ y: 0,
359
+ blur: r * 2,
360
+ color: "rgba(0,0,0,0.15)"
361
+ }),
362
+ /**
363
+ * All-around shadow (ambient lighting)
364
+ */
365
+ around: (r = 6) => w({
366
+ x: 0,
367
+ y: 0,
368
+ blur: r * 2,
369
+ spread: r,
370
+ color: "rgba(0,0,0,0.1)"
371
+ })
372
+ };
373
+ function q(r, s, e = { x: 0, y: 0, blur: 0, color: "transparent" }) {
374
+ const o = r() ? s : e;
375
+ return new d({ shadow: o });
376
+ }
377
+ function z(r = 200) {
378
+ return f("medium");
379
+ }
380
+ export {
381
+ x as DropShadowModifier,
382
+ d as ShadowModifier,
383
+ u as TextShadowModifier,
384
+ z as animatedShadow,
385
+ j as dropShadow,
386
+ R as elevationShadow,
387
+ T as glowEffect,
388
+ O as insetShadow,
389
+ A as layeredShadow,
390
+ M as neonEffect,
391
+ k as neumorphism,
392
+ F as neumorphismPressed,
393
+ q as reactiveShadow,
394
+ w as shadow,
395
+ W as shadowDirections,
396
+ f as shadowPreset,
397
+ D as shadows,
398
+ U as swiftUIShadow,
399
+ B as textEmbossed,
400
+ I as textEngraved,
401
+ P as textOutline,
402
+ $ as textShadow,
403
+ E as textShadowStrong,
404
+ _ as textShadowSubtle
405
+ };