@ttdk-design-system/library-svelte 0.0.0-stage → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (270) hide show
  1. package/AI_GUIDE.md +6518 -0
  2. package/dist/core/index.d.ts +2 -0
  3. package/dist/core/index.js +2 -0
  4. package/dist/core/tailwind-preset.cjs +62 -0
  5. package/dist/core/tailwind-preset.d.cts +63 -0
  6. package/dist/core/tailwind-preset.d.ts +74 -0
  7. package/dist/core/tailwind-preset.js +79 -0
  8. package/dist/core/theme/tokens.css +663 -0
  9. package/dist/core/types.d.ts +152 -0
  10. package/dist/core/types.js +735 -0
  11. package/dist/index.d.ts +14 -0
  12. package/dist/index.js +15 -0
  13. package/dist/tailwind-preset.cjs +62 -0
  14. package/dist/tailwind-preset.d.cts +63 -0
  15. package/dist/tailwind-preset.d.ts +74 -0
  16. package/dist/tailwind-preset.js +79 -0
  17. package/dist/types.d.ts +1 -0
  18. package/dist/types.js +1 -0
  19. package/dist/web/accordion/AI_GUIDE.md +149 -0
  20. package/dist/web/accordion/accordion.css +1 -0
  21. package/dist/web/accordion/accordion.svelte +217 -0
  22. package/dist/web/accordion/accordion.svelte.d.ts +224 -0
  23. package/dist/web/accordion/index.d.ts +2 -0
  24. package/dist/web/accordion/index.js +2 -0
  25. package/dist/web/accordion/manifest.json +351 -0
  26. package/dist/web/alert/AI_GUIDE.md +139 -0
  27. package/dist/web/alert/alert.css +1 -0
  28. package/dist/web/alert/alert.svelte +175 -0
  29. package/dist/web/alert/alert.svelte.d.ts +165 -0
  30. package/dist/web/alert/index.d.ts +2 -0
  31. package/dist/web/alert/index.js +2 -0
  32. package/dist/web/alert/manifest.json +240 -0
  33. package/dist/web/avatar/AI_GUIDE.md +118 -0
  34. package/dist/web/avatar/avatar.css +1 -0
  35. package/dist/web/avatar/avatar.svelte +108 -0
  36. package/dist/web/avatar/avatar.svelte.d.ts +147 -0
  37. package/dist/web/avatar/index.d.ts +2 -0
  38. package/dist/web/avatar/index.js +2 -0
  39. package/dist/web/avatar/manifest.json +195 -0
  40. package/dist/web/badge/AI_GUIDE.md +94 -0
  41. package/dist/web/badge/badge.css +1 -0
  42. package/dist/web/badge/badge.svelte +50 -0
  43. package/dist/web/badge/badge.svelte.d.ts +111 -0
  44. package/dist/web/badge/index.d.ts +2 -0
  45. package/dist/web/badge/index.js +2 -0
  46. package/dist/web/badge/manifest.json +141 -0
  47. package/dist/web/banner/AI_GUIDE.md +130 -0
  48. package/dist/web/banner/banner.css +1 -0
  49. package/dist/web/banner/banner.svelte +180 -0
  50. package/dist/web/banner/banner.svelte.d.ts +172 -0
  51. package/dist/web/banner/index.d.ts +2 -0
  52. package/dist/web/banner/index.js +2 -0
  53. package/dist/web/banner/manifest.json +240 -0
  54. package/dist/web/breadcrumb/AI_GUIDE.md +120 -0
  55. package/dist/web/breadcrumb/breadcrumb.css +1 -0
  56. package/dist/web/breadcrumb/breadcrumb.svelte +168 -0
  57. package/dist/web/breadcrumb/breadcrumb.svelte.d.ts +141 -0
  58. package/dist/web/breadcrumb/index.d.ts +2 -0
  59. package/dist/web/breadcrumb/index.js +2 -0
  60. package/dist/web/breadcrumb/manifest.json +225 -0
  61. package/dist/web/button/AI_GUIDE.md +121 -0
  62. package/dist/web/button/button.css +1 -0
  63. package/dist/web/button/button.svelte +154 -0
  64. package/dist/web/button/button.svelte.d.ts +159 -0
  65. package/dist/web/button/index.d.ts +2 -0
  66. package/dist/web/button/index.js +2 -0
  67. package/dist/web/button/manifest.json +177 -0
  68. package/dist/web/calendar/AI_GUIDE.md +151 -0
  69. package/dist/web/calendar/calendar.css +1 -0
  70. package/dist/web/calendar/calendar.svelte +1091 -0
  71. package/dist/web/calendar/calendar.svelte.d.ts +268 -0
  72. package/dist/web/calendar/index.d.ts +2 -0
  73. package/dist/web/calendar/index.js +2 -0
  74. package/dist/web/calendar/manifest.json +470 -0
  75. package/dist/web/card/AI_GUIDE.md +133 -0
  76. package/dist/web/card/card.css +1 -0
  77. package/dist/web/card/card.svelte +217 -0
  78. package/dist/web/card/card.svelte.d.ts +242 -0
  79. package/dist/web/card/index.d.ts +2 -0
  80. package/dist/web/card/index.js +2 -0
  81. package/dist/web/card/manifest.json +357 -0
  82. package/dist/web/checkbox/AI_GUIDE.md +146 -0
  83. package/dist/web/checkbox/checkbox.css +1 -0
  84. package/dist/web/checkbox/checkbox.svelte +131 -0
  85. package/dist/web/checkbox/checkbox.svelte.d.ts +199 -0
  86. package/dist/web/checkbox/index.d.ts +2 -0
  87. package/dist/web/checkbox/index.js +2 -0
  88. package/dist/web/checkbox/manifest.json +294 -0
  89. package/dist/web/chip/AI_GUIDE.md +186 -0
  90. package/dist/web/chip/chip.css +1 -0
  91. package/dist/web/chip/chip.svelte +113 -0
  92. package/dist/web/chip/chip.svelte.d.ts +145 -0
  93. package/dist/web/chip/index.d.ts +2 -0
  94. package/dist/web/chip/index.js +2 -0
  95. package/dist/web/chip/manifest.json +186 -0
  96. package/dist/web/dropdown/AI_GUIDE.md +167 -0
  97. package/dist/web/dropdown/dropdown.css +1 -0
  98. package/dist/web/dropdown/dropdown.svelte +844 -0
  99. package/dist/web/dropdown/dropdown.svelte.d.ts +361 -0
  100. package/dist/web/dropdown/index.d.ts +2 -0
  101. package/dist/web/dropdown/index.js +2 -0
  102. package/dist/web/dropdown/manifest.json +576 -0
  103. package/dist/web/flex/AI_GUIDE.md +113 -0
  104. package/dist/web/flex/flex-item.svelte +37 -0
  105. package/dist/web/flex/flex-item.svelte.d.ts +96 -0
  106. package/dist/web/flex/flex.css +1 -0
  107. package/dist/web/flex/flex.svelte +39 -0
  108. package/dist/web/flex/flex.svelte.d.ts +104 -0
  109. package/dist/web/flex/index.d.ts +3 -0
  110. package/dist/web/flex/index.js +3 -0
  111. package/dist/web/flex/manifest.json +162 -0
  112. package/dist/web/form/index.d.ts +1 -0
  113. package/dist/web/form/index.js +2 -0
  114. package/dist/web/grid/AI_GUIDE.md +112 -0
  115. package/dist/web/grid/grid-item.svelte +41 -0
  116. package/dist/web/grid/grid-item.svelte.d.ts +112 -0
  117. package/dist/web/grid/grid.css +1 -0
  118. package/dist/web/grid/grid.svelte +37 -0
  119. package/dist/web/grid/grid.svelte.d.ts +96 -0
  120. package/dist/web/grid/index.d.ts +3 -0
  121. package/dist/web/grid/index.js +3 -0
  122. package/dist/web/grid/manifest.json +153 -0
  123. package/dist/web/index.d.ts +58 -0
  124. package/dist/web/index.js +57 -0
  125. package/dist/web/input/AI_GUIDE.md +159 -0
  126. package/dist/web/input/index.d.ts +2 -0
  127. package/dist/web/input/index.js +2 -0
  128. package/dist/web/input/input.css +1 -0
  129. package/dist/web/input/input.svelte +283 -0
  130. package/dist/web/input/input.svelte.d.ts +283 -0
  131. package/dist/web/input/manifest.json +465 -0
  132. package/dist/web/input-number/AI_GUIDE.md +164 -0
  133. package/dist/web/input-number/index.d.ts +2 -0
  134. package/dist/web/input-number/index.js +2 -0
  135. package/dist/web/input-number/input-number.css +1 -0
  136. package/dist/web/input-number/input-number.svelte +783 -0
  137. package/dist/web/input-number/input-number.svelte.d.ts +352 -0
  138. package/dist/web/input-number/manifest.json +575 -0
  139. package/dist/web/modal/AI_GUIDE.md +171 -0
  140. package/dist/web/modal/index.d.ts +2 -0
  141. package/dist/web/modal/index.js +2 -0
  142. package/dist/web/modal/manifest.json +375 -0
  143. package/dist/web/modal/modal.css +1 -0
  144. package/dist/web/modal/modal.svelte +333 -0
  145. package/dist/web/modal/modal.svelte.d.ts +231 -0
  146. package/dist/web/pagination/AI_GUIDE.md +148 -0
  147. package/dist/web/pagination/index.d.ts +19 -0
  148. package/dist/web/pagination/index.js +19 -0
  149. package/dist/web/pagination/manifest.json +432 -0
  150. package/dist/web/pagination/pagination-content.svelte +25 -0
  151. package/dist/web/pagination/pagination-content.svelte.d.ts +36 -0
  152. package/dist/web/pagination/pagination-ellipsis.svelte +38 -0
  153. package/dist/web/pagination/pagination-ellipsis.svelte.d.ts +35 -0
  154. package/dist/web/pagination/pagination-first.svelte +105 -0
  155. package/dist/web/pagination/pagination-first.svelte.d.ts +74 -0
  156. package/dist/web/pagination/pagination-item.svelte +25 -0
  157. package/dist/web/pagination/pagination-item.svelte.d.ts +36 -0
  158. package/dist/web/pagination/pagination-last.svelte +105 -0
  159. package/dist/web/pagination/pagination-last.svelte.d.ts +74 -0
  160. package/dist/web/pagination/pagination-link.svelte +67 -0
  161. package/dist/web/pagination/pagination-link.svelte.d.ts +69 -0
  162. package/dist/web/pagination/pagination-next.svelte +99 -0
  163. package/dist/web/pagination/pagination-next.svelte.d.ts +75 -0
  164. package/dist/web/pagination/pagination-previous.svelte +99 -0
  165. package/dist/web/pagination/pagination-previous.svelte.d.ts +75 -0
  166. package/dist/web/pagination/pagination.css +1 -0
  167. package/dist/web/pagination/pagination.svelte +471 -0
  168. package/dist/web/pagination/pagination.svelte.d.ts +256 -0
  169. package/dist/web/popover/AI_GUIDE.md +163 -0
  170. package/dist/web/popover/index.d.ts +3 -0
  171. package/dist/web/popover/index.js +3 -0
  172. package/dist/web/popover/manifest.json +396 -0
  173. package/dist/web/popover/popover.css +1 -0
  174. package/dist/web/popover/popover.svelte +497 -0
  175. package/dist/web/popover/popover.svelte.d.ts +116 -0
  176. package/dist/web/radio/AI_GUIDE.md +155 -0
  177. package/dist/web/radio/index.d.ts +2 -0
  178. package/dist/web/radio/index.js +2 -0
  179. package/dist/web/radio/manifest.json +294 -0
  180. package/dist/web/radio/radio.css +1 -0
  181. package/dist/web/radio/radio.svelte +123 -0
  182. package/dist/web/radio/radio.svelte.d.ts +192 -0
  183. package/dist/web/selectbox/AI_GUIDE.md +216 -0
  184. package/dist/web/selectbox/index.d.ts +2 -0
  185. package/dist/web/selectbox/index.js +2 -0
  186. package/dist/web/selectbox/manifest.json +477 -0
  187. package/dist/web/selectbox/selectbox.css +1 -0
  188. package/dist/web/selectbox/selectbox.svelte +704 -0
  189. package/dist/web/selectbox/selectbox.svelte.d.ts +296 -0
  190. package/dist/web/sonner/AI_GUIDE.md +98 -0
  191. package/dist/web/sonner/index.d.ts +46 -0
  192. package/dist/web/sonner/index.js +64 -0
  193. package/dist/web/sonner/manifest.json +132 -0
  194. package/dist/web/sonner/sonner.css +1 -0
  195. package/dist/web/sonner/sonner.svelte +85 -0
  196. package/dist/web/sonner/sonner.svelte.d.ts +105 -0
  197. package/dist/web/table/AI_GUIDE.md +145 -0
  198. package/dist/web/table/index.d.ts +21 -0
  199. package/dist/web/table/index.js +22 -0
  200. package/dist/web/table/manifest.json +168 -0
  201. package/dist/web/table/table-body.svelte +23 -0
  202. package/dist/web/table/table-body.svelte.d.ts +36 -0
  203. package/dist/web/table/table-caption.svelte +23 -0
  204. package/dist/web/table/table-caption.svelte.d.ts +36 -0
  205. package/dist/web/table/table-cell.svelte +35 -0
  206. package/dist/web/table/table-cell.svelte.d.ts +57 -0
  207. package/dist/web/table/table-empty.svelte +56 -0
  208. package/dist/web/table/table-empty.svelte.d.ts +65 -0
  209. package/dist/web/table/table-footer.svelte +23 -0
  210. package/dist/web/table/table-footer.svelte.d.ts +36 -0
  211. package/dist/web/table/table-head.svelte +39 -0
  212. package/dist/web/table/table-head.svelte.d.ts +58 -0
  213. package/dist/web/table/table-header.svelte +23 -0
  214. package/dist/web/table/table-header.svelte.d.ts +36 -0
  215. package/dist/web/table/table-row.svelte +33 -0
  216. package/dist/web/table/table-row.svelte.d.ts +52 -0
  217. package/dist/web/table/table.css +1 -0
  218. package/dist/web/table/table.svelte +178 -0
  219. package/dist/web/table/table.svelte.d.ts +120 -0
  220. package/dist/web/tabs/AI_GUIDE.md +150 -0
  221. package/dist/web/tabs/index.d.ts +2 -0
  222. package/dist/web/tabs/index.js +2 -0
  223. package/dist/web/tabs/manifest.json +315 -0
  224. package/dist/web/tabs/tabs.css +1 -0
  225. package/dist/web/tabs/tabs.svelte +138 -0
  226. package/dist/web/tabs/tabs.svelte.d.ts +204 -0
  227. package/dist/web/text/AI_GUIDE.md +129 -0
  228. package/dist/web/text/index.d.ts +2 -0
  229. package/dist/web/text/index.js +2 -0
  230. package/dist/web/text/manifest.json +195 -0
  231. package/dist/web/text/text.css +1 -0
  232. package/dist/web/text/text.svelte +515 -0
  233. package/dist/web/text/text.svelte.d.ts +168 -0
  234. package/dist/web/textarea/AI_GUIDE.md +141 -0
  235. package/dist/web/textarea/index.d.ts +2 -0
  236. package/dist/web/textarea/index.js +2 -0
  237. package/dist/web/textarea/manifest.json +438 -0
  238. package/dist/web/textarea/textarea.css +1 -0
  239. package/dist/web/textarea/textarea.svelte +224 -0
  240. package/dist/web/textarea/textarea.svelte.d.ts +274 -0
  241. package/dist/web/tooltip/AI_GUIDE.md +110 -0
  242. package/dist/web/tooltip/index.d.ts +2 -0
  243. package/dist/web/tooltip/index.js +2 -0
  244. package/dist/web/tooltip/manifest.json +222 -0
  245. package/dist/web/tooltip/tooltip.css +1 -0
  246. package/dist/web/tooltip/tooltip.svelte +292 -0
  247. package/dist/web/tooltip/tooltip.svelte.d.ts +140 -0
  248. package/dist/webview/bottomsheet/AI_GUIDE.md +141 -0
  249. package/dist/webview/bottomsheet/bottomsheet.css +1 -0
  250. package/dist/webview/bottomsheet/bottomsheet.svelte +462 -0
  251. package/dist/webview/bottomsheet/bottomsheet.svelte.d.ts +200 -0
  252. package/dist/webview/bottomsheet/index.d.ts +4 -0
  253. package/dist/webview/bottomsheet/index.js +3 -0
  254. package/dist/webview/bottomsheet/manifest.json +377 -0
  255. package/dist/webview/button/AI_GUIDE.md +79 -0
  256. package/dist/webview/button/button-ios.css +1 -0
  257. package/dist/webview/button/button-ios.svelte +58 -0
  258. package/dist/webview/button/button-ios.svelte.d.ts +114 -0
  259. package/dist/webview/button/button-material.css +1 -0
  260. package/dist/webview/button/button-material.svelte +58 -0
  261. package/dist/webview/button/button-material.svelte.d.ts +114 -0
  262. package/dist/webview/button/index.d.ts +6 -0
  263. package/dist/webview/button/index.js +4 -0
  264. package/dist/webview/button/manifest.json +148 -0
  265. package/dist/webview/index.d.ts +6 -0
  266. package/dist/webview/index.js +6 -0
  267. package/llms.txt +6518 -0
  268. package/package.json +709 -4
  269. package/ttdk-manifest.json +10188 -0
  270. package/README.md +0 -3
@@ -0,0 +1,19 @@
1
+ export { default as Pagination } from './pagination.svelte';
2
+ export { default as PaginationContent } from './pagination-content.svelte';
3
+ export { default as PaginationItem } from './pagination-item.svelte';
4
+ export { default as PaginationLink } from './pagination-link.svelte';
5
+ export { default as PaginationPrevious } from './pagination-previous.svelte';
6
+ export { default as PaginationNext } from './pagination-next.svelte';
7
+ export { default as PaginationFirst } from './pagination-first.svelte';
8
+ export { default as PaginationLast } from './pagination-last.svelte';
9
+ export { default as PaginationEllipsis } from './pagination-ellipsis.svelte';
10
+ export * from './pagination.svelte';
11
+ export * from './pagination-content.svelte';
12
+ export * from './pagination-item.svelte';
13
+ export * from './pagination-link.svelte';
14
+ export * from './pagination-previous.svelte';
15
+ export * from './pagination-next.svelte';
16
+ export * from './pagination-first.svelte';
17
+ export * from './pagination-last.svelte';
18
+ export * from './pagination-ellipsis.svelte';
19
+ export { default } from './pagination.svelte';
@@ -0,0 +1,19 @@
1
+ export { default as Pagination } from './pagination.svelte';
2
+ export { default as PaginationContent } from './pagination-content.svelte';
3
+ export { default as PaginationItem } from './pagination-item.svelte';
4
+ export { default as PaginationLink } from './pagination-link.svelte';
5
+ export { default as PaginationPrevious } from './pagination-previous.svelte';
6
+ export { default as PaginationNext } from './pagination-next.svelte';
7
+ export { default as PaginationFirst } from './pagination-first.svelte';
8
+ export { default as PaginationLast } from './pagination-last.svelte';
9
+ export { default as PaginationEllipsis } from './pagination-ellipsis.svelte';
10
+ export * from './pagination.svelte';
11
+ export * from './pagination-content.svelte';
12
+ export * from './pagination-item.svelte';
13
+ export * from './pagination-link.svelte';
14
+ export * from './pagination-previous.svelte';
15
+ export * from './pagination-next.svelte';
16
+ export * from './pagination-first.svelte';
17
+ export * from './pagination-last.svelte';
18
+ export * from './pagination-ellipsis.svelte';
19
+ export { default } from './pagination.svelte';
@@ -0,0 +1,432 @@
1
+ {
2
+ "name": "@ttdk-design-system/pagination",
3
+ "component": "Pagination",
4
+ "folder": "pagination",
5
+ "description": "Komponen Pagination navigasi halaman dengan dukungan Compound API (ala Shadcn UI) dan Props-driven mode.",
6
+ "stylesheets": [
7
+ {
8
+ "theme": "common",
9
+ "file": "pagination.css",
10
+ "importPath": "web/pagination/pagination.css"
11
+ }
12
+ ],
13
+ "props": {
14
+ "page": {
15
+ "name": "page",
16
+ "type": "number",
17
+ "optional": true,
18
+ "default": "1",
19
+ "description": "Nomor halaman saat ini (1-indexed).",
20
+ "example": null,
21
+ "param": null
22
+ },
23
+ "maxPages": {
24
+ "name": "maxPages",
25
+ "type": "number",
26
+ "optional": true,
27
+ "default": "1",
28
+ "description": "Jumlah total halaman maksimum (alias untuk totalPages).",
29
+ "example": null,
30
+ "param": null
31
+ },
32
+ "totalPages": {
33
+ "name": "totalPages",
34
+ "type": "number",
35
+ "optional": true,
36
+ "default": "1",
37
+ "description": "Jumlah total halaman (alias maxPages).",
38
+ "example": null,
39
+ "param": null
40
+ },
41
+ "limit": {
42
+ "name": "limit",
43
+ "type": "number",
44
+ "optional": true,
45
+ "default": "10",
46
+ "description": "Jumlah baris/item data per halaman (page size).",
47
+ "example": null,
48
+ "param": null
49
+ },
50
+ "onLimitChange": {
51
+ "name": "onLimitChange",
52
+ "type": "(limit: number) => void",
53
+ "optional": true,
54
+ "default": null,
55
+ "description": "Callback saat jumlah baris per halaman diubah via select box.",
56
+ "example": null,
57
+ "param": null
58
+ },
59
+ "limitOptions": {
60
+ "name": "limitOptions",
61
+ "type": "number[]",
62
+ "optional": true,
63
+ "default": "[10, 20, 50, 100]",
64
+ "description": "Pilihan angka baris per halaman pada select box.",
65
+ "example": null,
66
+ "param": null
67
+ },
68
+ "canPrevPage": {
69
+ "name": "canPrevPage",
70
+ "type": "boolean",
71
+ "optional": true,
72
+ "default": "false",
73
+ "description": "Menentukan apakah navigasi ke halaman sebelumnya diizinkan (false = tombol Previous dinonaktifkan).",
74
+ "example": null,
75
+ "param": null
76
+ },
77
+ "canNextPage": {
78
+ "name": "canNextPage",
79
+ "type": "boolean",
80
+ "optional": true,
81
+ "default": "false",
82
+ "description": "Menentukan apakah navigasi ke halaman berikutnya diizinkan (false = tombol Next dinonaktifkan).",
83
+ "example": null,
84
+ "param": null
85
+ },
86
+ "onFirstPage": {
87
+ "name": "onFirstPage",
88
+ "type": "() => void",
89
+ "optional": true,
90
+ "default": null,
91
+ "description": "Callback saat tombol First Page (halaman pertama) diklik.",
92
+ "example": null,
93
+ "param": null
94
+ },
95
+ "onPrevPage": {
96
+ "name": "onPrevPage",
97
+ "type": "() => void",
98
+ "optional": true,
99
+ "default": null,
100
+ "description": "Callback saat tombol Previous Page (halaman sebelumnya) diklik.",
101
+ "example": null,
102
+ "param": null
103
+ },
104
+ "onNextPage": {
105
+ "name": "onNextPage",
106
+ "type": "() => void",
107
+ "optional": true,
108
+ "default": null,
109
+ "description": "Callback saat tombol Next Page (halaman selanjutnya) diklik.",
110
+ "example": null,
111
+ "param": null
112
+ },
113
+ "onLastPage": {
114
+ "name": "onLastPage",
115
+ "type": "() => void",
116
+ "optional": true,
117
+ "default": null,
118
+ "description": "Callback saat tombol Last Page (halaman terakhir) diklik.",
119
+ "example": null,
120
+ "param": null
121
+ },
122
+ "onPageChange": {
123
+ "name": "onPageChange",
124
+ "type": "(page: number) => void",
125
+ "optional": true,
126
+ "default": null,
127
+ "description": "Callback saat nomor halaman tertentu diklik.",
128
+ "example": null,
129
+ "param": null
130
+ },
131
+ "siblingCount": {
132
+ "name": "siblingCount",
133
+ "type": "number",
134
+ "optional": true,
135
+ "default": "1",
136
+ "description": "Jumlah tetangga nomor halaman di samping kiri dan kanan halaman aktif.",
137
+ "example": null,
138
+ "param": null
139
+ },
140
+ "showEdges": {
141
+ "name": "showEdges",
142
+ "type": "boolean",
143
+ "optional": true,
144
+ "default": "false",
145
+ "description": "Menampilkan tombol First (<<) dan Last (>>).",
146
+ "example": null,
147
+ "param": null
148
+ },
149
+ "showPageNumbers": {
150
+ "name": "showPageNumbers",
151
+ "type": "boolean",
152
+ "optional": true,
153
+ "default": "true",
154
+ "description": "Menampilkan nomor halaman terpaginasi (1, 2, 3...).",
155
+ "example": null,
156
+ "param": null
157
+ },
158
+ "size": {
159
+ "name": "size",
160
+ "type": "'sm' | 'md' | 'lg'",
161
+ "optional": true,
162
+ "default": "md",
163
+ "description": "Skala ukuran pagination: - `'sm'`: 28px - `'md'`: 36px (standar) - `'lg'`: 44px",
164
+ "example": null,
165
+ "param": null
166
+ },
167
+ "style": {
168
+ "name": "style",
169
+ "type": "any",
170
+ "optional": true,
171
+ "default": null,
172
+ "description": "Inline CSS style object native.",
173
+ "example": null,
174
+ "param": null
175
+ },
176
+ "ui": {
177
+ "name": "ui",
178
+ "type": "UiProps",
179
+ "optional": true,
180
+ "default": null,
181
+ "description": "Kustomisasi visual granular root kontainer pagination (UiProps).",
182
+ "example": null,
183
+ "param": null
184
+ },
185
+ "contentStyle": {
186
+ "name": "contentStyle",
187
+ "type": "UiProps",
188
+ "optional": true,
189
+ "default": null,
190
+ "description": "Style kustom untuk kontainer daftar pagination content (ul.ttdk-pagination-content).",
191
+ "example": null,
192
+ "param": null
193
+ },
194
+ "contentClass": {
195
+ "name": "contentClass",
196
+ "type": "string",
197
+ "optional": true,
198
+ "default": null,
199
+ "description": "Class CSS kustom untuk kontainer daftar pagination content.",
200
+ "example": null,
201
+ "param": null
202
+ },
203
+ "linkStyle": {
204
+ "name": "linkStyle",
205
+ "type": "UiProps",
206
+ "optional": true,
207
+ "default": null,
208
+ "description": "Style kustom untuk tombol link nomor halaman / navigasi.",
209
+ "example": null,
210
+ "param": null
211
+ },
212
+ "linkClass": {
213
+ "name": "linkClass",
214
+ "type": "string",
215
+ "optional": true,
216
+ "default": null,
217
+ "description": "Class CSS kustom untuk tombol link nomor halaman / navigasi.",
218
+ "example": null,
219
+ "param": null
220
+ },
221
+ "activeLinkStyle": {
222
+ "name": "activeLinkStyle",
223
+ "type": "UiProps",
224
+ "optional": true,
225
+ "default": null,
226
+ "description": "Style kustom untuk tombol nomor halaman saat aktif.",
227
+ "example": null,
228
+ "param": null
229
+ },
230
+ "activeLinkClass": {
231
+ "name": "activeLinkClass",
232
+ "type": "string",
233
+ "optional": true,
234
+ "default": null,
235
+ "description": "Class CSS kustom untuk tombol nomor halaman saat aktif.",
236
+ "example": null,
237
+ "param": null
238
+ },
239
+ "limitStyle": {
240
+ "name": "limitStyle",
241
+ "type": "UiProps",
242
+ "optional": true,
243
+ "default": null,
244
+ "description": "Style kustom untuk kontainer baris per halaman (limit).",
245
+ "example": null,
246
+ "param": null
247
+ },
248
+ "limitClass": {
249
+ "name": "limitClass",
250
+ "type": "string",
251
+ "optional": true,
252
+ "default": null,
253
+ "description": "Class CSS kustom untuk kontainer baris per halaman (limit).",
254
+ "example": null,
255
+ "param": null
256
+ },
257
+ "limitSelectStyle": {
258
+ "name": "limitSelectStyle",
259
+ "type": "UiProps",
260
+ "optional": true,
261
+ "default": null,
262
+ "description": "Style kustom untuk elemen Selectbox baris per halaman (limit).",
263
+ "example": null,
264
+ "param": null
265
+ },
266
+ "limitSlot": {
267
+ "name": "limitSlot",
268
+ "type": "any",
269
+ "optional": true,
270
+ "default": null,
271
+ "description": "Slot kustom untuk menggantikan elemen limit selector bawaan.",
272
+ "example": null,
273
+ "param": null
274
+ },
275
+ "showLimit": {
276
+ "name": "showLimit",
277
+ "type": "boolean",
278
+ "optional": true,
279
+ "default": null,
280
+ "description": "Menentukan apakah kontrol baris per halaman (limit selectbox) ditampilkan. Jika tidak disetel, otomatis mengikuti keberadaan callback onLimitChange.",
281
+ "example": null,
282
+ "param": null
283
+ },
284
+ "showLimitLabel": {
285
+ "name": "showLimitLabel",
286
+ "type": "boolean",
287
+ "optional": true,
288
+ "default": "true",
289
+ "description": "Menentukan apakah teks label 'Baris per halaman:' ditampilkan di samping selectbox limit.",
290
+ "example": null,
291
+ "param": null
292
+ },
293
+ "limitLabel": {
294
+ "name": "limitLabel",
295
+ "type": "string",
296
+ "optional": true,
297
+ "default": "Baris per halaman:",
298
+ "description": "Teks label untuk opsi baris per halaman.",
299
+ "example": null,
300
+ "param": null
301
+ },
302
+ "firstIcon": {
303
+ "name": "firstIcon",
304
+ "type": "any",
305
+ "optional": true,
306
+ "default": null,
307
+ "description": "Ikon kustom untuk tombol halaman pertama (first page, menggantikan <<).",
308
+ "example": null,
309
+ "param": null
310
+ },
311
+ "prevIcon": {
312
+ "name": "prevIcon",
313
+ "type": "any",
314
+ "optional": true,
315
+ "default": null,
316
+ "description": "Ikon kustom untuk tombol halaman sebelumnya (previous page, menggantikan <).",
317
+ "example": null,
318
+ "param": null
319
+ },
320
+ "nextIcon": {
321
+ "name": "nextIcon",
322
+ "type": "any",
323
+ "optional": true,
324
+ "default": null,
325
+ "description": "Ikon kustom untuk tombol halaman selanjutnya (next page, menggantikan >).",
326
+ "example": null,
327
+ "param": null
328
+ },
329
+ "lastIcon": {
330
+ "name": "lastIcon",
331
+ "type": "any",
332
+ "optional": true,
333
+ "default": null,
334
+ "description": "Ikon kustom untuk tombol halaman terakhir (last page, menggantikan >>).",
335
+ "example": null,
336
+ "param": null
337
+ },
338
+ "ellipsisIcon": {
339
+ "name": "ellipsisIcon",
340
+ "type": "any",
341
+ "optional": true,
342
+ "default": null,
343
+ "description": "Ikon kustom untuk separator elipsis (menggantikan ...).",
344
+ "example": null,
345
+ "param": null
346
+ },
347
+ "prevText": {
348
+ "name": "prevText",
349
+ "type": "string",
350
+ "optional": true,
351
+ "default": "Previous",
352
+ "description": "Label teks tombol Previous.",
353
+ "example": null,
354
+ "param": null
355
+ },
356
+ "nextText": {
357
+ "name": "nextText",
358
+ "type": "string",
359
+ "optional": true,
360
+ "default": "Next",
361
+ "description": "Label teks tombol Next.",
362
+ "example": null,
363
+ "param": null
364
+ },
365
+ "iconOnly": {
366
+ "name": "iconOnly",
367
+ "type": "boolean",
368
+ "optional": true,
369
+ "default": "false",
370
+ "description": "Mode hanya menampilkan ikon pada tombol Previous dan Next tanpa teks label.",
371
+ "example": null,
372
+ "param": null
373
+ },
374
+ "className": {
375
+ "name": "className",
376
+ "type": "string",
377
+ "optional": true,
378
+ "default": null,
379
+ "description": "Class CSS kustom.",
380
+ "example": null,
381
+ "param": null
382
+ },
383
+ "children": {
384
+ "name": "children",
385
+ "type": "any",
386
+ "optional": true,
387
+ "default": null,
388
+ "description": "Konten kustom atau subkomponen compound (PaginationContent, PaginationItem, dll).",
389
+ "example": null,
390
+ "param": null
391
+ }
392
+ },
393
+ "subInterfaces": {
394
+ "PaginationPageItem": {
395
+ "type": {
396
+ "name": "type",
397
+ "type": "'page' | 'ellipsis'",
398
+ "optional": false,
399
+ "default": null,
400
+ "description": "",
401
+ "example": null,
402
+ "param": null
403
+ },
404
+ "value": {
405
+ "name": "value",
406
+ "type": "number | string",
407
+ "optional": false,
408
+ "default": null,
409
+ "description": "",
410
+ "example": null,
411
+ "param": null
412
+ },
413
+ "key": {
414
+ "name": "key",
415
+ "type": "string",
416
+ "optional": false,
417
+ "default": null,
418
+ "description": "",
419
+ "example": null,
420
+ "param": null
421
+ }
422
+ }
423
+ },
424
+ "supportedFrameworks": [
425
+ "react",
426
+ "vue",
427
+ "svelte"
428
+ ],
429
+ "themes": [
430
+ "tw"
431
+ ]
432
+ }
@@ -0,0 +1,25 @@
1
+ <script context="module"></script>
2
+
3
+ <script>import { buildUiVars, UiProps } from "../../core/types";
4
+ export let className = void 0;
5
+ export let ui = void 0;
6
+ function stringifyStyles(stylesObj) {
7
+ let styles = "";
8
+ for (let key in stylesObj) {
9
+ const dashedKey = key.replace(/[A-Z]/g, function(match) {
10
+ return "-" + match.toLowerCase();
11
+ });
12
+ styles += dashedKey + ":" + stylesObj[key] + ";";
13
+ }
14
+ return styles;
15
+ }
16
+ </script>
17
+
18
+ <ul
19
+ style={stringifyStyles({
20
+ ...buildUiVars(ui),
21
+ })}
22
+ class={`ttdk-pagination-content ${className || ""}`.trim()}
23
+ >
24
+ <slot />
25
+ </ul>
@@ -0,0 +1,36 @@
1
+ import { SvelteComponent } from "svelte";
2
+ export interface PaginationContentProps {
3
+ /**
4
+ * Kustomisasi visual granular ul.ttdk-pagination-content (UiProps).
5
+ */
6
+ ui?: UiProps;
7
+ /**
8
+ * Class CSS kustom.
9
+ */
10
+ className?: string;
11
+ /**
12
+ * Konten pagination content (kumpulan PaginationItem).
13
+ */
14
+ children?: any;
15
+ }
16
+ import { UiProps } from "../../core/types";
17
+ declare const __propDef: {
18
+ props: {
19
+ className?: PaginationContentProps["className"];
20
+ ui?: PaginationContentProps["ui"];
21
+ };
22
+ events: {
23
+ [evt: string]: CustomEvent<any>;
24
+ };
25
+ slots: {
26
+ default: {};
27
+ };
28
+ exports?: {} | undefined;
29
+ bindings?: string | undefined;
30
+ };
31
+ type PaginationContentProps_ = typeof __propDef.props;
32
+ export type PaginationContentEvents = typeof __propDef.events;
33
+ export type PaginationContentSlots = typeof __propDef.slots;
34
+ export default class PaginationContent extends SvelteComponent<PaginationContentProps_, PaginationContentEvents, PaginationContentSlots> {
35
+ }
36
+ export {};
@@ -0,0 +1,38 @@
1
+ <script context="module"></script>
2
+
3
+ <script>import { buildUiVars, UiProps } from "../../core/types";
4
+ export let className = void 0;
5
+ export let ui = void 0;
6
+ export let icon = void 0;
7
+ function stringifyStyles(stylesObj) {
8
+ let styles = "";
9
+ for (let key in stylesObj) {
10
+ const dashedKey = key.replace(/[A-Z]/g, function(match) {
11
+ return "-" + match.toLowerCase();
12
+ });
13
+ styles += dashedKey + ":" + stylesObj[key] + ";";
14
+ }
15
+ return styles;
16
+ }
17
+ </script>
18
+
19
+ <span
20
+ style={stringifyStyles({
21
+ ...buildUiVars(ui),
22
+ })}
23
+ aria-hidden="true"
24
+ class={`ttdk-pagination-ellipsis ${className || ""}`.trim()}
25
+ >
26
+ {#if icon}
27
+ {icon}
28
+ {/if}
29
+ {#if !icon}
30
+ <svg class="ttdk-pagination-icon" viewBox="0 0 24 24" fill="none"
31
+ ><circle cx="12" cy="12" r="1" /><circle cx="19" cy="12" r="1" /><circle
32
+ cx="5"
33
+ cy="12"
34
+ r="1"
35
+ /></svg
36
+ >
37
+ {/if}<span class="ttdk-sr-only">More pages</span></span
38
+ >
@@ -0,0 +1,35 @@
1
+ import { SvelteComponent } from "svelte";
2
+ export interface PaginationEllipsisProps {
3
+ /**
4
+ * Kustomisasi visual granular elipsis (UiProps).
5
+ */
6
+ ui?: UiProps;
7
+ /**
8
+ * Ikon kustom untuk pemisah elipsis (menggantikan ...).
9
+ */
10
+ icon?: any;
11
+ /**
12
+ * Class CSS kustom.
13
+ */
14
+ className?: string;
15
+ }
16
+ import { UiProps } from "../../core/types";
17
+ declare const __propDef: {
18
+ props: {
19
+ className?: PaginationEllipsisProps["className"];
20
+ ui?: PaginationEllipsisProps["ui"];
21
+ icon?: PaginationEllipsisProps["icon"];
22
+ };
23
+ events: {
24
+ [evt: string]: CustomEvent<any>;
25
+ };
26
+ slots: {};
27
+ exports?: {} | undefined;
28
+ bindings?: string | undefined;
29
+ };
30
+ type PaginationEllipsisProps_ = typeof __propDef.props;
31
+ export type PaginationEllipsisEvents = typeof __propDef.events;
32
+ export type PaginationEllipsisSlots = typeof __propDef.slots;
33
+ export default class PaginationEllipsis extends SvelteComponent<PaginationEllipsisProps_, PaginationEllipsisEvents, PaginationEllipsisSlots> {
34
+ }
35
+ export {};