tyrell-components 1.0.0-RC6

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 (330) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +221 -0
  3. package/css/tyrell.css +1783 -0
  4. package/dist/tyrell.css +1783 -0
  5. package/dist/tyrell.js +2 -0
  6. package/lib/base/ty-component.d.ts +133 -0
  7. package/lib/base/ty-component.d.ts.map +1 -0
  8. package/lib/base/ty-component.js +297 -0
  9. package/lib/base/ty-component.js.map +1 -0
  10. package/lib/components/button.d.ts +126 -0
  11. package/lib/components/button.d.ts.map +1 -0
  12. package/lib/components/button.js +244 -0
  13. package/lib/components/button.js.map +1 -0
  14. package/lib/components/calendar-month.d.ts +132 -0
  15. package/lib/components/calendar-month.d.ts.map +1 -0
  16. package/lib/components/calendar-month.js +440 -0
  17. package/lib/components/calendar-month.js.map +1 -0
  18. package/lib/components/calendar-navigation.d.ts +137 -0
  19. package/lib/components/calendar-navigation.d.ts.map +1 -0
  20. package/lib/components/calendar-navigation.js +366 -0
  21. package/lib/components/calendar-navigation.js.map +1 -0
  22. package/lib/components/calendar.d.ts +166 -0
  23. package/lib/components/calendar.d.ts.map +1 -0
  24. package/lib/components/calendar.js +774 -0
  25. package/lib/components/calendar.js.map +1 -0
  26. package/lib/components/checkbox.d.ts +189 -0
  27. package/lib/components/checkbox.d.ts.map +1 -0
  28. package/lib/components/checkbox.js +400 -0
  29. package/lib/components/checkbox.js.map +1 -0
  30. package/lib/components/copy.d.ts +180 -0
  31. package/lib/components/copy.d.ts.map +1 -0
  32. package/lib/components/copy.js +393 -0
  33. package/lib/components/copy.js.map +1 -0
  34. package/lib/components/date-picker.d.ts +379 -0
  35. package/lib/components/date-picker.d.ts.map +1 -0
  36. package/lib/components/date-picker.js +1586 -0
  37. package/lib/components/date-picker.js.map +1 -0
  38. package/lib/components/dropdown.d.ts +402 -0
  39. package/lib/components/dropdown.d.ts.map +1 -0
  40. package/lib/components/dropdown.js +1552 -0
  41. package/lib/components/dropdown.js.map +1 -0
  42. package/lib/components/icon.d.ts +118 -0
  43. package/lib/components/icon.d.ts.map +1 -0
  44. package/lib/components/icon.js +245 -0
  45. package/lib/components/icon.js.map +1 -0
  46. package/lib/components/input.d.ts +270 -0
  47. package/lib/components/input.d.ts.map +1 -0
  48. package/lib/components/input.js +721 -0
  49. package/lib/components/input.js.map +1 -0
  50. package/lib/components/modal.d.ts +58 -0
  51. package/lib/components/modal.d.ts.map +1 -0
  52. package/lib/components/modal.js +473 -0
  53. package/lib/components/modal.js.map +1 -0
  54. package/lib/components/multiselect.d.ts +397 -0
  55. package/lib/components/multiselect.d.ts.map +1 -0
  56. package/lib/components/multiselect.js +1580 -0
  57. package/lib/components/multiselect.js.map +1 -0
  58. package/lib/components/option.d.ts +66 -0
  59. package/lib/components/option.d.ts.map +1 -0
  60. package/lib/components/option.js +314 -0
  61. package/lib/components/option.js.map +1 -0
  62. package/lib/components/popup.d.ts +43 -0
  63. package/lib/components/popup.d.ts.map +1 -0
  64. package/lib/components/popup.js +380 -0
  65. package/lib/components/popup.js.map +1 -0
  66. package/lib/components/radio.d.ts +198 -0
  67. package/lib/components/radio.d.ts.map +1 -0
  68. package/lib/components/radio.js +437 -0
  69. package/lib/components/radio.js.map +1 -0
  70. package/lib/components/resize-observer.d.ts +48 -0
  71. package/lib/components/resize-observer.d.ts.map +1 -0
  72. package/lib/components/resize-observer.js +108 -0
  73. package/lib/components/resize-observer.js.map +1 -0
  74. package/lib/components/scroll-container.d.ts +51 -0
  75. package/lib/components/scroll-container.d.ts.map +1 -0
  76. package/lib/components/scroll-container.js +239 -0
  77. package/lib/components/scroll-container.js.map +1 -0
  78. package/lib/components/step.d.ts +26 -0
  79. package/lib/components/step.d.ts.map +1 -0
  80. package/lib/components/step.js +75 -0
  81. package/lib/components/step.js.map +1 -0
  82. package/lib/components/switch.d.ts +111 -0
  83. package/lib/components/switch.d.ts.map +1 -0
  84. package/lib/components/switch.js +240 -0
  85. package/lib/components/switch.js.map +1 -0
  86. package/lib/components/tab.d.ts +23 -0
  87. package/lib/components/tab.d.ts.map +1 -0
  88. package/lib/components/tab.js +76 -0
  89. package/lib/components/tab.js.map +1 -0
  90. package/lib/components/tabs.d.ts +93 -0
  91. package/lib/components/tabs.d.ts.map +1 -0
  92. package/lib/components/tabs.js +653 -0
  93. package/lib/components/tabs.js.map +1 -0
  94. package/lib/components/tag.d.ts +144 -0
  95. package/lib/components/tag.d.ts.map +1 -0
  96. package/lib/components/tag.js +316 -0
  97. package/lib/components/tag.js.map +1 -0
  98. package/lib/components/textarea.d.ts +241 -0
  99. package/lib/components/textarea.d.ts.map +1 -0
  100. package/lib/components/textarea.js +585 -0
  101. package/lib/components/textarea.js.map +1 -0
  102. package/lib/components/tooltip.d.ts +40 -0
  103. package/lib/components/tooltip.d.ts.map +1 -0
  104. package/lib/components/tooltip.js +439 -0
  105. package/lib/components/tooltip.js.map +1 -0
  106. package/lib/components/wizard.d.ts +86 -0
  107. package/lib/components/wizard.d.ts.map +1 -0
  108. package/lib/components/wizard.js +636 -0
  109. package/lib/components/wizard.js.map +1 -0
  110. package/lib/icons/fontawesome/brands.d.ts +557 -0
  111. package/lib/icons/fontawesome/brands.d.ts.map +1 -0
  112. package/lib/icons/fontawesome/brands.js +557 -0
  113. package/lib/icons/fontawesome/brands.js.map +1 -0
  114. package/lib/icons/fontawesome/regular.d.ts +281 -0
  115. package/lib/icons/fontawesome/regular.d.ts.map +1 -0
  116. package/lib/icons/fontawesome/regular.js +281 -0
  117. package/lib/icons/fontawesome/regular.js.map +1 -0
  118. package/lib/icons/fontawesome/solid.d.ts +1992 -0
  119. package/lib/icons/fontawesome/solid.d.ts.map +1 -0
  120. package/lib/icons/fontawesome/solid.js +1992 -0
  121. package/lib/icons/fontawesome/solid.js.map +1 -0
  122. package/lib/icons/heroicons/micro.d.ts +324 -0
  123. package/lib/icons/heroicons/micro.d.ts.map +1 -0
  124. package/lib/icons/heroicons/micro.js +1032 -0
  125. package/lib/icons/heroicons/micro.js.map +1 -0
  126. package/lib/icons/heroicons/mini.d.ts +332 -0
  127. package/lib/icons/heroicons/mini.d.ts.map +1 -0
  128. package/lib/icons/heroicons/mini.js +1038 -0
  129. package/lib/icons/heroicons/mini.js.map +1 -0
  130. package/lib/icons/heroicons/outline.d.ts +332 -0
  131. package/lib/icons/heroicons/outline.d.ts.map +1 -0
  132. package/lib/icons/heroicons/outline.js +993 -0
  133. package/lib/icons/heroicons/outline.js.map +1 -0
  134. package/lib/icons/heroicons/solid.d.ts +332 -0
  135. package/lib/icons/heroicons/solid.d.ts.map +1 -0
  136. package/lib/icons/heroicons/solid.js +1063 -0
  137. package/lib/icons/heroicons/solid.js.map +1 -0
  138. package/lib/icons/lucide.d.ts +1872 -0
  139. package/lib/icons/lucide.d.ts.map +1 -0
  140. package/lib/icons/lucide.js +28212 -0
  141. package/lib/icons/lucide.js.map +1 -0
  142. package/lib/icons/material/filled.d.ts +2180 -0
  143. package/lib/icons/material/filled.d.ts.map +1 -0
  144. package/lib/icons/material/filled.js +14003 -0
  145. package/lib/icons/material/filled.js.map +1 -0
  146. package/lib/icons/material/outlined.d.ts +2142 -0
  147. package/lib/icons/material/outlined.d.ts.map +1 -0
  148. package/lib/icons/material/outlined.js +14545 -0
  149. package/lib/icons/material/outlined.js.map +1 -0
  150. package/lib/icons/material/round.d.ts +2147 -0
  151. package/lib/icons/material/round.d.ts.map +1 -0
  152. package/lib/icons/material/round.js +14779 -0
  153. package/lib/icons/material/round.js.map +1 -0
  154. package/lib/icons/material/sharp.d.ts +2147 -0
  155. package/lib/icons/material/sharp.d.ts.map +1 -0
  156. package/lib/icons/material/sharp.js +14189 -0
  157. package/lib/icons/material/sharp.js.map +1 -0
  158. package/lib/icons/material/two-tone.d.ts +2185 -0
  159. package/lib/icons/material/two-tone.d.ts.map +1 -0
  160. package/lib/icons/material/two-tone.js +17152 -0
  161. package/lib/icons/material/two-tone.js.map +1 -0
  162. package/lib/index.d.ts +78 -0
  163. package/lib/index.d.ts.map +1 -0
  164. package/lib/index.js +71 -0
  165. package/lib/index.js.map +1 -0
  166. package/lib/styles/button.d.ts +14 -0
  167. package/lib/styles/button.d.ts.map +1 -0
  168. package/lib/styles/button.js +457 -0
  169. package/lib/styles/button.js.map +1 -0
  170. package/lib/styles/calendar-month.d.ts +6 -0
  171. package/lib/styles/calendar-month.d.ts.map +1 -0
  172. package/lib/styles/calendar-month.js +275 -0
  173. package/lib/styles/calendar-month.js.map +1 -0
  174. package/lib/styles/calendar-navigation.d.ts +6 -0
  175. package/lib/styles/calendar-navigation.d.ts.map +1 -0
  176. package/lib/styles/calendar-navigation.js +143 -0
  177. package/lib/styles/calendar-navigation.js.map +1 -0
  178. package/lib/styles/calendar.d.ts +6 -0
  179. package/lib/styles/calendar.d.ts.map +1 -0
  180. package/lib/styles/calendar.js +28 -0
  181. package/lib/styles/calendar.js.map +1 -0
  182. package/lib/styles/checkbox.d.ts +9 -0
  183. package/lib/styles/checkbox.d.ts.map +1 -0
  184. package/lib/styles/checkbox.js +19 -0
  185. package/lib/styles/checkbox.js.map +1 -0
  186. package/lib/styles/copy.d.ts +7 -0
  187. package/lib/styles/copy.d.ts.map +1 -0
  188. package/lib/styles/copy.js +94 -0
  189. package/lib/styles/copy.js.map +1 -0
  190. package/lib/styles/custom-scrollbar.d.ts +6 -0
  191. package/lib/styles/custom-scrollbar.d.ts.map +1 -0
  192. package/lib/styles/custom-scrollbar.js +157 -0
  193. package/lib/styles/custom-scrollbar.js.map +1 -0
  194. package/lib/styles/date-picker.d.ts +6 -0
  195. package/lib/styles/date-picker.d.ts.map +1 -0
  196. package/lib/styles/date-picker.js +435 -0
  197. package/lib/styles/date-picker.js.map +1 -0
  198. package/lib/styles/dropdown.d.ts +12 -0
  199. package/lib/styles/dropdown.d.ts.map +1 -0
  200. package/lib/styles/dropdown.js +983 -0
  201. package/lib/styles/dropdown.js.map +1 -0
  202. package/lib/styles/icon.d.ts +6 -0
  203. package/lib/styles/icon.d.ts.map +1 -0
  204. package/lib/styles/icon.js +241 -0
  205. package/lib/styles/icon.js.map +1 -0
  206. package/lib/styles/input.d.ts +7 -0
  207. package/lib/styles/input.d.ts.map +1 -0
  208. package/lib/styles/input.js +685 -0
  209. package/lib/styles/input.js.map +1 -0
  210. package/lib/styles/modal.d.ts +8 -0
  211. package/lib/styles/modal.d.ts.map +1 -0
  212. package/lib/styles/modal.js +134 -0
  213. package/lib/styles/modal.js.map +1 -0
  214. package/lib/styles/multiselect.d.ts +6 -0
  215. package/lib/styles/multiselect.d.ts.map +1 -0
  216. package/lib/styles/multiselect.js +774 -0
  217. package/lib/styles/multiselect.js.map +1 -0
  218. package/lib/styles/option.d.ts +6 -0
  219. package/lib/styles/option.d.ts.map +1 -0
  220. package/lib/styles/option.js +116 -0
  221. package/lib/styles/option.js.map +1 -0
  222. package/lib/styles/popup.d.ts +8 -0
  223. package/lib/styles/popup.d.ts.map +1 -0
  224. package/lib/styles/popup.js +95 -0
  225. package/lib/styles/popup.js.map +1 -0
  226. package/lib/styles/radio.d.ts +8 -0
  227. package/lib/styles/radio.d.ts.map +1 -0
  228. package/lib/styles/radio.js +160 -0
  229. package/lib/styles/radio.js.map +1 -0
  230. package/lib/styles/resize-observer.d.ts +6 -0
  231. package/lib/styles/resize-observer.d.ts.map +1 -0
  232. package/lib/styles/resize-observer.js +18 -0
  233. package/lib/styles/resize-observer.js.map +1 -0
  234. package/lib/styles/scroll-container.d.ts +6 -0
  235. package/lib/styles/scroll-container.d.ts.map +1 -0
  236. package/lib/styles/scroll-container.js +198 -0
  237. package/lib/styles/scroll-container.js.map +1 -0
  238. package/lib/styles/step.d.ts +5 -0
  239. package/lib/styles/step.d.ts.map +1 -0
  240. package/lib/styles/step.js +50 -0
  241. package/lib/styles/step.js.map +1 -0
  242. package/lib/styles/switch.d.ts +9 -0
  243. package/lib/styles/switch.d.ts.map +1 -0
  244. package/lib/styles/switch.js +100 -0
  245. package/lib/styles/switch.js.map +1 -0
  246. package/lib/styles/tab.d.ts +5 -0
  247. package/lib/styles/tab.d.ts.map +1 -0
  248. package/lib/styles/tab.js +51 -0
  249. package/lib/styles/tab.js.map +1 -0
  250. package/lib/styles/tabs.d.ts +13 -0
  251. package/lib/styles/tabs.d.ts.map +1 -0
  252. package/lib/styles/tabs.js +184 -0
  253. package/lib/styles/tabs.js.map +1 -0
  254. package/lib/styles/tag.d.ts +6 -0
  255. package/lib/styles/tag.d.ts.map +1 -0
  256. package/lib/styles/tag.js +420 -0
  257. package/lib/styles/tag.js.map +1 -0
  258. package/lib/styles/textarea.d.ts +6 -0
  259. package/lib/styles/textarea.d.ts.map +1 -0
  260. package/lib/styles/textarea.js +350 -0
  261. package/lib/styles/textarea.js.map +1 -0
  262. package/lib/styles/tooltip.d.ts +9 -0
  263. package/lib/styles/tooltip.d.ts.map +1 -0
  264. package/lib/styles/tooltip.js +136 -0
  265. package/lib/styles/tooltip.js.map +1 -0
  266. package/lib/styles/wizard.d.ts +25 -0
  267. package/lib/styles/wizard.d.ts.map +1 -0
  268. package/lib/styles/wizard.js +325 -0
  269. package/lib/styles/wizard.js.map +1 -0
  270. package/lib/types/common.d.ts +143 -0
  271. package/lib/types/common.d.ts.map +1 -0
  272. package/lib/types/common.js +5 -0
  273. package/lib/types/common.js.map +1 -0
  274. package/lib/utils/calendar-utils.d.ts +176 -0
  275. package/lib/utils/calendar-utils.d.ts.map +1 -0
  276. package/lib/utils/calendar-utils.js +370 -0
  277. package/lib/utils/calendar-utils.js.map +1 -0
  278. package/lib/utils/custom-scrollbar.d.ts +82 -0
  279. package/lib/utils/custom-scrollbar.d.ts.map +1 -0
  280. package/lib/utils/custom-scrollbar.js +320 -0
  281. package/lib/utils/custom-scrollbar.js.map +1 -0
  282. package/lib/utils/icon-registry.d.ts +78 -0
  283. package/lib/utils/icon-registry.d.ts.map +1 -0
  284. package/lib/utils/icon-registry.js +304 -0
  285. package/lib/utils/icon-registry.js.map +1 -0
  286. package/lib/utils/locale.d.ts +136 -0
  287. package/lib/utils/locale.d.ts.map +1 -0
  288. package/lib/utils/locale.js +213 -0
  289. package/lib/utils/locale.js.map +1 -0
  290. package/lib/utils/mobile.d.ts +14 -0
  291. package/lib/utils/mobile.d.ts.map +1 -0
  292. package/lib/utils/mobile.js +21 -0
  293. package/lib/utils/mobile.js.map +1 -0
  294. package/lib/utils/number-format.d.ts +83 -0
  295. package/lib/utils/number-format.d.ts.map +1 -0
  296. package/lib/utils/number-format.js +143 -0
  297. package/lib/utils/number-format.js.map +1 -0
  298. package/lib/utils/parse-boolean.d.ts +39 -0
  299. package/lib/utils/parse-boolean.d.ts.map +1 -0
  300. package/lib/utils/parse-boolean.js +58 -0
  301. package/lib/utils/parse-boolean.js.map +1 -0
  302. package/lib/utils/positioning.d.ts +143 -0
  303. package/lib/utils/positioning.d.ts.map +1 -0
  304. package/lib/utils/positioning.js +308 -0
  305. package/lib/utils/positioning.js.map +1 -0
  306. package/lib/utils/property-capture.d.ts +132 -0
  307. package/lib/utils/property-capture.d.ts.map +1 -0
  308. package/lib/utils/property-capture.js +152 -0
  309. package/lib/utils/property-capture.js.map +1 -0
  310. package/lib/utils/property-manager.d.ts +90 -0
  311. package/lib/utils/property-manager.d.ts.map +1 -0
  312. package/lib/utils/property-manager.js +197 -0
  313. package/lib/utils/property-manager.js.map +1 -0
  314. package/lib/utils/resize-observer.d.ts +42 -0
  315. package/lib/utils/resize-observer.d.ts.map +1 -0
  316. package/lib/utils/resize-observer.js +71 -0
  317. package/lib/utils/resize-observer.js.map +1 -0
  318. package/lib/utils/scroll-lock.d.ts +79 -0
  319. package/lib/utils/scroll-lock.d.ts.map +1 -0
  320. package/lib/utils/scroll-lock.js +197 -0
  321. package/lib/utils/scroll-lock.js.map +1 -0
  322. package/lib/utils/styles.d.ts +27 -0
  323. package/lib/utils/styles.d.ts.map +1 -0
  324. package/lib/utils/styles.js +53 -0
  325. package/lib/utils/styles.js.map +1 -0
  326. package/lib/version.d.ts +8 -0
  327. package/lib/version.d.ts.map +1 -0
  328. package/lib/version.js +11 -0
  329. package/lib/version.js.map +1 -0
  330. package/package.json +159 -0
@@ -0,0 +1,685 @@
1
+ /**
2
+ * Input Component Styles
3
+ * PORTED FROM: clj/ty/components/input.css
4
+ * Phase A: Regular input styles only (no checkbox, no numeric formatting)
5
+ */
6
+ export const inputStyles = `
7
+ :host {
8
+ display: block;
9
+ font-family: var(--ty-font-sans);
10
+ width: 100%;
11
+ }
12
+
13
+ :host([size="xl"]) {
14
+ font-size: 20px;
15
+ }
16
+
17
+
18
+ :host([size="xs"]) {
19
+ font-size: 12px;
20
+ }
21
+
22
+
23
+ :host([size="sm"]) {
24
+ font-size: 14px;
25
+ }
26
+
27
+ :host([size="lg"]) {
28
+ font-size: 18px;
29
+ }
30
+
31
+ .input-container {
32
+ display: flex;
33
+ flex-direction: column;
34
+ width: 100%;
35
+ box-sizing: border-box;
36
+ }
37
+
38
+ /* ===== LABEL STYLING ===== */
39
+
40
+ .input-label {
41
+ font-size: var(--ty-font-sm);
42
+ line-height: var(--ty-leading-sm);
43
+ letter-spacing: var(--ty-tracking-sm);
44
+ font-weight: var(--ty-font-medium);
45
+ color: var(--ty-label-color);
46
+ margin-bottom: 6px;
47
+ padding-left: 12px;
48
+ display: flex;
49
+ align-items: center;
50
+ }
51
+
52
+ /* Required indicator - using SVG icon */
53
+ .required-icon {
54
+ display: inline-flex;
55
+ align-items: center;
56
+ color: var(--ty-color-danger);
57
+ width: 12px;
58
+ height: 12px;
59
+ margin-left: 4px;
60
+ vertical-align: middle;
61
+ }
62
+
63
+ .required-icon svg {
64
+ width: 100%;
65
+ height: 100%;
66
+ }
67
+
68
+ /* ===== INPUT WRAPPER WITH SLOTS ===== */
69
+
70
+ .input-wrapper {
71
+ display: flex;
72
+ align-items: center;
73
+ gap: 0.5rem; /* No gap by default */
74
+ width: 100%;
75
+ box-sizing: border-box;
76
+ border: 1px solid var(--input-border, var(--ty-input-border));
77
+ border-radius: var(--ty-radius-base);
78
+ background: var(--input-bg, var(--input-bg, var(--ty-input-bg)));
79
+ transition: all 0.15s ease-in-out;
80
+
81
+ /* Default size (md) */
82
+ min-height: 40px;
83
+ padding: 0 12px;
84
+ }
85
+
86
+ /* Wrapper states */
87
+ .input-wrapper:hover:not(.disabled) {
88
+ border-color: var(--input-border-hover, var(--ty-input-border-hover));
89
+ }
90
+
91
+ .input-wrapper.focused {
92
+ border-color: var(--input-border-focus, var(--ty-input-border-focus));
93
+ box-shadow: 0 0 0 3px var(--input-shadow-focus, var(--ty-input-shadow-focus));
94
+ }
95
+
96
+ .input-wrapper.disabled {
97
+ cursor: not-allowed;
98
+ opacity: 0.5;
99
+ background: var(--input-disabled-bg, var(--ty-input-disabled-bg));
100
+ border-color: var(--input-disabled-border, var(--ty-input-disabled-border));
101
+ }
102
+
103
+ /* ===== SLOT STYLING ===== */
104
+
105
+ /* Style slotted content directly (no wrappers needed) */
106
+ ::slotted([slot="start"]),
107
+ ::slotted([slot="end"]) {
108
+ display: flex;
109
+ align-items: center;
110
+ justify-content: center;
111
+ flex-shrink: 0;
112
+ color: var(--ty-color-text-soft);
113
+ }
114
+
115
+ /* Icon sizing for slotted icons */
116
+ ::slotted(ty-icon) {
117
+ width: 1em;
118
+ height: 1em;
119
+ flex-shrink: 0;
120
+ }
121
+
122
+ /* ===== ERROR MESSAGE STYLING ===== */
123
+
124
+ .error-message {
125
+ font-size: var(--ty-font-xs);
126
+ line-height: var(--ty-leading-xs);
127
+ letter-spacing: var(--ty-tracking-xs);
128
+ color: var(--ty-color-danger);
129
+ margin-top: 4px;
130
+ padding-left: 12px;
131
+ }
132
+
133
+ /* Error state for wrapper */
134
+ .input-wrapper.error {
135
+ border-color: var(--ty-color-danger);
136
+ background: var(--ty-bg-danger-soft);
137
+ }
138
+
139
+ .input-wrapper.error.focused {
140
+ border-color: var(--ty-color-danger-mild);
141
+ box-shadow: 0 0 0 3px var(--input-shadow-focus, var(--ty-input-shadow-focus));
142
+ }
143
+
144
+ /* ===== INPUT BASE STYLING ===== */
145
+
146
+ input {
147
+ /* Reset and base styles — Linear-paired typography */
148
+ flex: 1;
149
+ min-width: 0;
150
+ box-sizing: border-box;
151
+ border: none;
152
+ outline: none;
153
+ background: transparent;
154
+ color: var(--input-color, var(--ty-input-color));
155
+ font-family: inherit;
156
+ font-size: var(--ty-font-sm);
157
+ line-height: var(--ty-leading-sm);
158
+ letter-spacing: var(--ty-tracking-sm);
159
+ font-weight: var(--ty-font-normal);
160
+ padding: 0;
161
+ margin: 0;
162
+ }
163
+
164
+ /* Remove number input spinner arrows */
165
+ input[type="number"]::-webkit-outer-spin-button,
166
+ input[type="number"]::-webkit-inner-spin-button {
167
+ -webkit-appearance: none;
168
+ margin: 0;
169
+ }
170
+
171
+ input[type="number"] {
172
+ -moz-appearance: textfield;
173
+ }
174
+
175
+ /* Disabled state */
176
+ input:disabled {
177
+ cursor: not-allowed;
178
+ color: var(--input-disabled-color, var(--ty-input-disabled-color));
179
+ }
180
+
181
+ /* Placeholder styling */
182
+ input::placeholder {
183
+ color: var(--input-placeholder, var(--ty-input-placeholder));
184
+ font-weight: 400;
185
+ }
186
+
187
+ /* ===== SIZE MODIFIERS ===== */
188
+
189
+ /* Extra Small */
190
+ .input-wrapper.xs {
191
+ min-height: 32px;
192
+ padding: 0 8px;
193
+ border-radius: var(--ty-input-radius-xs, var(--ty-radius-base));
194
+ }
195
+
196
+ .input-wrapper.xs input {
197
+ font-size: var(--ty-font-xs);
198
+ line-height: var(--ty-leading-xs);
199
+ letter-spacing: var(--ty-tracking-xs);
200
+ }
201
+
202
+ /* Small */
203
+ .input-wrapper.sm {
204
+ min-height: 36px;
205
+ padding: 0 10px;
206
+ border-radius: var(--ty-input-radius-sm, var(--ty-radius-base));
207
+ }
208
+
209
+ .input-wrapper.sm input {
210
+ font-size: var(--ty-font-sm);
211
+ line-height: var(--ty-leading-sm);
212
+ letter-spacing: var(--ty-tracking-sm);
213
+ }
214
+
215
+ /* Medium (default) */
216
+ .input-wrapper.md {
217
+ min-height: 40px;
218
+ padding: 0 12px;
219
+ border-radius: var(--ty-input-radius-md, var(--ty-radius-base));
220
+ }
221
+
222
+ .input-wrapper.md input {
223
+ font-size: var(--ty-font-sm);
224
+ line-height: var(--ty-leading-sm);
225
+ letter-spacing: var(--ty-tracking-sm);
226
+ }
227
+
228
+ /* Large */
229
+ .input-wrapper.lg {
230
+ min-height: 44px;
231
+ padding: 0 14px;
232
+ border-radius: var(--ty-input-radius-lg, var(--ty-radius-base));
233
+ }
234
+
235
+ .input-wrapper.lg input {
236
+ font-size: var(--ty-font-base);
237
+ line-height: var(--ty-leading-base);
238
+ letter-spacing: var(--ty-tracking-base);
239
+ }
240
+
241
+ /* Extra Large */
242
+ .input-wrapper.xl {
243
+ min-height: 48px;
244
+ padding: 0 16px;
245
+ border-radius: var(--ty-input-radius-xl, var(--ty-radius-base));
246
+ }
247
+
248
+ .input-wrapper.xl input {
249
+ font-size: var(--ty-font-lg);
250
+ line-height: var(--ty-leading-lg);
251
+ letter-spacing: var(--ty-tracking-lg);
252
+ }
253
+
254
+ /* ===== SEMANTIC FLAVOR MODIFIERS ===== */
255
+
256
+ /* Primary */
257
+ .input-wrapper.primary {
258
+ border-color: var(--ty-input-primary-border, var(--ty-color-primary));
259
+ }
260
+
261
+ .input-wrapper.primary:hover:not(.disabled) {
262
+ border-color: var(--ty-color-primary-mild);
263
+ }
264
+
265
+ .input-wrapper.primary.focused {
266
+ border-color: var(--ty-color-primary-mild);
267
+ box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
268
+ }
269
+
270
+ /* Secondary */
271
+ .input-wrapper.secondary {
272
+ border-color: var(--ty-input-secondary-border, var(--ty-color-secondary));
273
+ }
274
+
275
+ .input-wrapper.secondary.focused {
276
+ border-color: var(--ty-color-secondary-mild);
277
+ box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
278
+ }
279
+
280
+ /* Success */
281
+ .input-wrapper.success {
282
+ border-color: var(--ty-input-success-border);
283
+ }
284
+
285
+ .input-wrapper.success:hover:not(.disabled) {
286
+ border-color: var(--ty-color-success-mild);
287
+ }
288
+
289
+ .input-wrapper.success.focused {
290
+ border-color: var(--ty-color-success-mild);
291
+ box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
292
+ }
293
+
294
+ /* Danger */
295
+ .input-wrapper.danger {
296
+ border-color: var(--ty-input-danger-border);
297
+ }
298
+
299
+ .input-wrapper.danger:hover:not(.disabled) {
300
+ border-color: var(--ty-color-danger-mild);
301
+ }
302
+
303
+ .input-wrapper.danger.focused {
304
+ border-color: var(--ty-color-danger-mild);
305
+ box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
306
+ }
307
+
308
+ /* Warning */
309
+ .input-wrapper.warning {
310
+ border-color: var(--ty-input-warning-border);
311
+ }
312
+
313
+ .input-wrapper.warning:hover:not(.disabled) {
314
+ border-color: var(--ty-color-warning-mild);
315
+ }
316
+
317
+ .input-wrapper.warning.focused {
318
+ border-color: var(--ty-color-warning-mild);
319
+ box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.1);
320
+ }
321
+
322
+ /* Neutral (default) */
323
+ .input-wrapper.neutral.focused {
324
+ border-color: var(--input-border-focus, var(--ty-input-border-focus));
325
+ box-shadow: 0 0 0 3px var(--input-shadow-focus, var(--ty-input-shadow-focus));
326
+ }
327
+
328
+ /* ===== ACCESSIBILITY ENHANCEMENTS ===== */
329
+
330
+ input:focus-visible {
331
+ outline: none;
332
+ }
333
+
334
+ /* High contrast mode support */
335
+ @media (prefers-contrast: high) {
336
+ .input-wrapper {
337
+ border-width: 2px;
338
+ }
339
+ }
340
+
341
+ /* Reduced motion support */
342
+ @media (prefers-reduced-motion: reduce) {
343
+ .input-wrapper {
344
+ transition: none;
345
+ }
346
+ }
347
+
348
+ /* ===== RESPONSIVE BEHAVIOR ===== */
349
+
350
+ @media (max-width: 640px) {
351
+ .input-wrapper.lg {
352
+ min-height: 40px;
353
+ padding: 0 12px;
354
+ }
355
+
356
+ .input-wrapper.lg input {
357
+ font-size: var(--ty-font-sm);
358
+ line-height: var(--ty-leading-sm);
359
+ letter-spacing: var(--ty-tracking-sm);
360
+ }
361
+
362
+ .input-wrapper.xl {
363
+ min-height: 44px;
364
+ padding: 0 14px;
365
+ }
366
+
367
+ .input-wrapper.xl input {
368
+ font-size: var(--ty-font-base);
369
+ line-height: var(--ty-leading-base);
370
+ letter-spacing: var(--ty-tracking-base);
371
+ }
372
+ }
373
+
374
+ @media (max-width: 480px) {
375
+ .input-wrapper.xl {
376
+ min-height: 40px;
377
+ padding: 0 12px;
378
+ }
379
+
380
+ .input-wrapper.xl input {
381
+ font-size: var(--ty-font-sm);
382
+ line-height: var(--ty-leading-sm);
383
+ letter-spacing: var(--ty-tracking-sm);
384
+ }
385
+ }
386
+
387
+ /* ===== CHECKBOX STYLING ===== */
388
+
389
+ .checkbox-container {
390
+ display: inline-flex;
391
+ align-items: center;
392
+ outline: none;
393
+ transition: all 0.15s ease-in-out;
394
+ user-select: none;
395
+ cursor: pointer;
396
+
397
+ /* Default size (md) - matching input sizes */
398
+ border-radius: 6px;
399
+ gap: var(--ty-spacing-1);
400
+ color: var(--ty-text-faint);
401
+ }
402
+
403
+ .checkbox-container[aria-checked="true"] {
404
+ color: var(--ty-text);
405
+ }
406
+
407
+ /* Ensure slotted label content inherits the color from container */
408
+ .checkbox-container ::slotted(*) {
409
+ color: inherit;
410
+ transition: color 0.15s ease-in-out;
411
+ }
412
+
413
+ .checkbox-container label {
414
+ cursor: pointer;
415
+ }
416
+
417
+ .checkbox-container label {
418
+ font-size: var(--ty-font-sm);
419
+ }
420
+
421
+ .checkbox-container.sm label {
422
+ font-size: var(--ty-font-xs);
423
+ }
424
+
425
+ .checkbox-container.lg label {
426
+ font-size: var(--ty-font-base);
427
+ }
428
+
429
+ .checkbox-container.xl label {
430
+ font-size: var(--ty-font-lg);
431
+ }
432
+
433
+ /* Checkbox input container - different layout for checkboxes */
434
+ .input-container.checkbox-layout {
435
+ flex-direction: row;
436
+ align-items: center;
437
+ gap: 12px;
438
+ width: auto;
439
+ /* Don't force full width for checkboxes */
440
+ }
441
+
442
+ .input-container.checkbox-layout .input-label {
443
+ margin-bottom: 0;
444
+ padding-left: 0;
445
+ order: 2;
446
+ cursor: pointer;
447
+ flex: 1;
448
+ }
449
+
450
+ .input-container.checkbox-layout .checkbox-container {
451
+ order: 1;
452
+ flex-shrink: 0;
453
+ }
454
+
455
+ /* Error message positioning for checkboxes */
456
+ .input-container.checkbox-layout .error-message {
457
+ padding-left: 0;
458
+ margin-left: 52px;
459
+ /* Align with label text */
460
+ }
461
+
462
+ .checkbox-icon {
463
+ display: flex;
464
+ align-items: center;
465
+ justify-content: center;
466
+ color: inherit;
467
+ transition: color 0.15s ease-in-out;
468
+ pointer-events: none;
469
+ /* Let the container handle the click */
470
+ }
471
+
472
+ .checkbox-container svg {
473
+ width: 24px;
474
+ height: 24px;
475
+ }
476
+
477
+ /* ===== CHECKBOX SIZE MODIFIERS ===== */
478
+
479
+ .checkbox-container.xs svg {
480
+ width: 16px;
481
+ height: 16px;
482
+ }
483
+
484
+ /* Adjust error message margin for XS */
485
+ .input-container.checkbox-layout .checkbox-container.xs~.error-message {
486
+ margin-left: 44px;
487
+ }
488
+
489
+
490
+ .checkbox-container.sm svg {
491
+ width: 20px;
492
+ height: 20px;
493
+ }
494
+
495
+ /* Adjust error message margin for SM */
496
+ .input-container.checkbox-layout .checkbox-container.sm~.error-message {
497
+ margin-left: 48px;
498
+ }
499
+
500
+
501
+ .checkbox-container.md svg {
502
+ width: 24px;
503
+ height: 24px;
504
+ }
505
+
506
+
507
+ .checkbox-container.lg svg {
508
+ width: 28px;
509
+ height: 28px;
510
+ }
511
+
512
+ .checkbox-container.xl svg {
513
+ width: 32px;
514
+ height: 32px;
515
+ }
516
+
517
+
518
+ .checkbox-container.xl svg {
519
+ font-size: 20px;
520
+ }
521
+
522
+ /* Adjust error message margin for LG */
523
+ .input-container.checkbox-layout .checkbox-container.lg~.error-message {
524
+ margin-left: 56px;
525
+ }
526
+
527
+
528
+ /* Adjust error message margin for XL */
529
+ .input-container.checkbox-layout .checkbox-container.xl~.error-message {
530
+ margin-left: 60px;
531
+ /* 48px + 12px gap */
532
+ }
533
+
534
+ /* ===== CHECKBOX SEMANTIC FLAVORS ===== */
535
+
536
+ .checkbox-container.primary {
537
+ color: var(--ty-color-primary-soft);
538
+ }
539
+
540
+
541
+ .checkbox-container.primary[aria-checked="true"] {
542
+ color: var(--ty-color-primary);
543
+ }
544
+
545
+ .checkbox-container.secondary {
546
+ color: var(--ty-color-secondary-soft);
547
+ }
548
+
549
+
550
+ .checkbox-container.secondary[aria-checked="true"] {
551
+ color: var(--ty-color-secondary);
552
+ }
553
+
554
+ .checkbox-container.success {
555
+ color: var(--ty-color-success-soft);
556
+ }
557
+
558
+
559
+ .checkbox-container.success[aria-checked="true"] {
560
+ color: var(--ty-color-success);
561
+ }
562
+
563
+ .checkbox-container.danger {
564
+ color: var(--ty-color-danger-soft);
565
+ }
566
+
567
+ .checkbox-container.danger[aria-checked="true"] {
568
+ color: var(--ty-color-danger);
569
+ }
570
+
571
+ .checkbox-container.warning {
572
+ color: var(--ty-color-warning-soft);
573
+ }
574
+
575
+ .checkbox-container.warning[aria-checked="true"] {
576
+ color: var(--ty-color-warning);
577
+ }
578
+
579
+
580
+ /* Neutral */
581
+ .checkbox-container.neutral {
582
+ color: var(--ty-color-neutral-soft);
583
+ }
584
+
585
+ .checkbox-container.neutral[aria-checked="true"] {
586
+ color: var(--ty-color-neutral);
587
+ }
588
+
589
+ /* Disabled state */
590
+ .checkbox-container.disabled {
591
+ pointer-events: none;
592
+ cursor: not-allowed;
593
+ opacity: 0.5;
594
+ }
595
+
596
+ .checkbox-container.disabled .checkbox-icon {
597
+ color: var(--ty-color-neutral-faint);
598
+ }
599
+
600
+ /* Error state */
601
+ .checkbox-container.error .checkbox-icon {
602
+ color: var(--ty-color-danger);
603
+ }
604
+
605
+ .checkbox-container.error:focus {
606
+ box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
607
+ }
608
+
609
+ /* Required state */
610
+ .checkbox-container.required .checkbox-icon {
611
+ /* Could add specific styling for required checkboxes */
612
+ }
613
+
614
+ /* ===== RESPONSIVE CHECKBOX BEHAVIOR ===== */
615
+
616
+ @container (max-width: 480px) {
617
+ .checkbox-container.lg {
618
+ width: 40px;
619
+ height: 40px;
620
+ }
621
+
622
+ .checkbox-container.lg svg {
623
+ width: 20px;
624
+ height: 20px;
625
+ }
626
+
627
+ .checkbox-container.xl {
628
+ width: 44px;
629
+ height: 44px;
630
+ }
631
+
632
+ .checkbox-container.xl svg {
633
+ width: 22px;
634
+ height: 22px;
635
+ }
636
+ }
637
+
638
+ @container (max-width: 320px) {
639
+ .checkbox-container.xl {
640
+ width: 40px;
641
+ height: 40px;
642
+ }
643
+
644
+ .checkbox-container.xl svg {
645
+ width: 20px;
646
+ height: 20px;
647
+ }
648
+ }
649
+
650
+ /* Fallback for browsers without container query support */
651
+ @media (max-width: 640px) {
652
+ .checkbox-container.lg {
653
+ width: 40px;
654
+ height: 40px;
655
+ }
656
+
657
+ .checkbox-container.lg svg {
658
+ width: 20px;
659
+ height: 20px;
660
+ }
661
+
662
+ .checkbox-container.xl {
663
+ width: 44px;
664
+ height: 44px;
665
+ }
666
+
667
+ .checkbox-container.xl svg {
668
+ width: 22px;
669
+ height: 22px;
670
+ }
671
+ }
672
+
673
+ @media (max-width: 480px) {
674
+ .checkbox-container.xl {
675
+ width: 40px;
676
+ height: 40px;
677
+ }
678
+
679
+ .checkbox-container.xl svg {
680
+ width: 20px;
681
+ height: 20px;
682
+ }
683
+ }
684
+ `;
685
+ //# sourceMappingURL=input.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"input.js","sourceRoot":"","sources":["../../src/styles/input.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsqB1B,CAAA"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Modal Styles
3
+ *
4
+ * CSS for the modal component wrapper.
5
+ * The modal is a pure wrapper - all content styling is user-defined.
6
+ */
7
+ export declare const modalStyles = "\n/* Modal Host Styling */\n:host {\n display: contents;\n /* Don't interfere with layout */\n /* CSS variables are now auto-generated via the with-vars? option */\n}\n\n/* ===== CLOSE BUTTON STYLING ===== */\n/* This is part of the modal wrapper functionality, not user content styling */\n\n.close-button {\n position: absolute;\n top: -8px;\n right: -8px;\n background: transparent;\n border: none;\n cursor: pointer;\n padding: 4px;\n border-radius: 4px;\n transition: var(--ty-transition-colors);\n z-index: 1;\n color: #d8d8d8;\n\n /* Remove all default browser styling that could cause outlines/borders */\n outline: none;\n box-shadow: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n appearance: none;\n\n /* Remove mobile tap highlights and focus rings */\n -webkit-tap-highlight-color: transparent;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.close-button:hover {\n color: white;\n}\n\n/* Explicitly remove focus and active states for all interaction modes */\n.close-button:focus,\n.close-button:focus-visible,\n.close-button:focus-within,\n.close-button:active {\n outline: none !important;\n box-shadow: none !important;\n border: none !important;\n background: transparent !important;\n}\n\n/* Override hover color even in focus/active states */\n.close-button:hover,\n.close-button:focus:hover,\n.close-button:active:hover {\n color: white;\n}\n\n.close-button.hide {\n visibility: hidden;\n}\n\n/* ===== DIALOG ELEMENT - PURE WRAPPER ===== */\n/* Modal dialog - provides only essential modal functionality without styling user content */\n\n.ty-modal-dialog {\n /* Reset default dialog styles */\n padding: 18px;\n border: none;\n margin: 0;\n background: transparent;\n\n /* Modal positioning - centered */\n position: fixed;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n\n /* Layer management */\n z-index: 1000;\n overflow: hidden;\n\n /* No sizing - let user content determine size */\n max-width: 85vw;\n max-height: 90vh;\n\n outline: none;\n}\n\n/* ===== BACKDROP STYLING ===== */\n/* Backdrop is part of modal functionality, not user content */\n\n.ty-modal-dialog::backdrop {\n background: var(--ty-modal-backdrop, rgba(0, 0, 0, 0.5));\n backdrop-filter: var(--ty-modal-backdrop-blur, blur(2px));\n animation: ty-modal-backdrop-enter var(--ty-modal-duration, 200ms) ease-out;\n}\n\n/* When backdrop is disabled */\n.ty-modal-dialog:not([data-backdrop])::backdrop {\n background: transparent;\n backdrop-filter: none;\n}\n\n/* ===== MODAL CONTENT CONTAINER ===== */\n/* Minimal container - no styling imposed on user content */\n\n.modal-content {\n color: var(--ty-text);\n}\n\n/* ===== ANIMATION KEYFRAMES ===== */\n\n@keyframes ty-modal-backdrop-enter {\n from {\n opacity: 0;\n }\n\n to {\n opacity: 1;\n }\n}\n";
8
+ //# sourceMappingURL=modal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../src/styles/modal.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,eAAO,MAAM,WAAW,w3FA8HvB,CAAC"}