tutuca 0.9.39 → 0.9.41

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 (88) hide show
  1. package/dist/tutuca-cli.js +92 -39
  2. package/dist/tutuca-dev.js +18 -0
  3. package/dist/tutuca-dev.min.js +1 -1
  4. package/package.json +6 -7
  5. package/skill/immutable-js/SKILL.md +79 -0
  6. package/skill/immutable-js/references/collection.md +346 -0
  7. package/skill/immutable-js/references/conversions.md +99 -0
  8. package/skill/immutable-js/references/deep-updates.md +172 -0
  9. package/skill/immutable-js/references/equality.md +95 -0
  10. package/skill/immutable-js/references/list.md +266 -0
  11. package/skill/immutable-js/references/map.md +300 -0
  12. package/skill/immutable-js/references/predicates.md +93 -0
  13. package/skill/immutable-js/references/range-repeat.md +55 -0
  14. package/skill/immutable-js/references/record.md +196 -0
  15. package/skill/immutable-js/references/seq.md +248 -0
  16. package/skill/immutable-js/references/set.md +270 -0
  17. package/skill/immutable-js/references/shallow-functional.md +99 -0
  18. package/skill/immutable-js/references/stack.md +210 -0
  19. package/skill/margaui/SKILL.md +101 -0
  20. package/skill/margaui/components/accordion.md +127 -0
  21. package/skill/margaui/components/alert.md +174 -0
  22. package/skill/margaui/components/avatar.md +220 -0
  23. package/skill/margaui/components/badge.md +193 -0
  24. package/skill/margaui/components/breadcrumbs.md +103 -0
  25. package/skill/margaui/components/button.md +322 -0
  26. package/skill/margaui/components/calendar.md +67 -0
  27. package/skill/margaui/components/card.md +373 -0
  28. package/skill/margaui/components/carousel.md +387 -0
  29. package/skill/margaui/components/chat.md +171 -0
  30. package/skill/margaui/components/checkbox.md +101 -0
  31. package/skill/margaui/components/collapse.md +172 -0
  32. package/skill/margaui/components/countdown.md +165 -0
  33. package/skill/margaui/components/diff.md +53 -0
  34. package/skill/margaui/components/divider.md +107 -0
  35. package/skill/margaui/components/dock.md +173 -0
  36. package/skill/margaui/components/drawer.md +184 -0
  37. package/skill/margaui/components/dropdown.md +388 -0
  38. package/skill/margaui/components/fab.md +346 -0
  39. package/skill/margaui/components/fieldset.md +88 -0
  40. package/skill/margaui/components/file-input.md +84 -0
  41. package/skill/margaui/components/filter.md +52 -0
  42. package/skill/margaui/components/footer.md +583 -0
  43. package/skill/margaui/components/hero.md +135 -0
  44. package/skill/margaui/components/hover-3d.md +129 -0
  45. package/skill/margaui/components/hover-gallery.md +49 -0
  46. package/skill/margaui/components/indicator.md +265 -0
  47. package/skill/margaui/components/input.md +389 -0
  48. package/skill/margaui/components/join.md +100 -0
  49. package/skill/margaui/components/kbd.md +127 -0
  50. package/skill/margaui/components/label.md +102 -0
  51. package/skill/margaui/components/link.md +96 -0
  52. package/skill/margaui/components/list.md +182 -0
  53. package/skill/margaui/components/loading.md +105 -0
  54. package/skill/margaui/components/mask.md +168 -0
  55. package/skill/margaui/components/menu.md +856 -0
  56. package/skill/margaui/components/mockup-browser.md +39 -0
  57. package/skill/margaui/components/mockup-code.md +81 -0
  58. package/skill/margaui/components/mockup-phone.md +39 -0
  59. package/skill/margaui/components/mockup-window.md +33 -0
  60. package/skill/margaui/components/modal.md +178 -0
  61. package/skill/margaui/components/navbar.md +282 -0
  62. package/skill/margaui/components/pagination.md +122 -0
  63. package/skill/margaui/components/progress.md +135 -0
  64. package/skill/margaui/components/radial-progress.md +67 -0
  65. package/skill/margaui/components/radio.md +133 -0
  66. package/skill/margaui/components/range.md +134 -0
  67. package/skill/margaui/components/rating.md +170 -0
  68. package/skill/margaui/components/select.md +225 -0
  69. package/skill/margaui/components/skeleton.md +64 -0
  70. package/skill/margaui/components/stack.md +142 -0
  71. package/skill/margaui/components/stat.md +254 -0
  72. package/skill/margaui/components/status.md +73 -0
  73. package/skill/margaui/components/steps.md +138 -0
  74. package/skill/margaui/components/swap.md +152 -0
  75. package/skill/margaui/components/tab.md +248 -0
  76. package/skill/margaui/components/table.md +1018 -0
  77. package/skill/margaui/components/text-rotate.md +91 -0
  78. package/skill/margaui/components/textarea.md +85 -0
  79. package/skill/margaui/components/theme-controller.md +266 -0
  80. package/skill/margaui/components/timeline.md +1356 -0
  81. package/skill/margaui/components/toast.md +165 -0
  82. package/skill/margaui/components/toggle.md +135 -0
  83. package/skill/margaui/components/tooltip.md +181 -0
  84. package/skill/margaui/components/validator.md +163 -0
  85. package/skill/{advanced.md → tutuca/advanced.md} +5 -0
  86. package/skill/{cli.md → tutuca/cli.md} +17 -0
  87. package/skill/{core.md → tutuca/core.md} +5 -0
  88. /package/skill/{SKILL.md → tutuca/SKILL.md} +0 -0
@@ -0,0 +1,322 @@
1
+ # button
2
+
3
+ _`btn` with color / size / shape / style modifiers_
4
+
5
+ ## What it does
6
+
7
+ Primary action element. The `btn` class works on `<button>`, `<a>`, `<input>`, `<label>`, `<div>`, etc.
8
+
9
+ ## When to use
10
+
11
+ - Any clickable action.
12
+ - For navigation-only links inside body text, use **link** instead.
13
+ - For floating action buttons, use **fab**.
14
+
15
+ ## Core classes
16
+
17
+ `btn`; color `btn-primary|secondary|accent|info|success|warning|error|neutral`; style `btn-outline|dash|soft|ghost|link`; size `btn-xs|sm|md|lg|xl`; shape `btn-square|circle|wide|block`; state `btn-active|disabled`.
18
+
19
+ ## Examples
20
+
21
+ ### Button
22
+
23
+ Source: `playground/components/button/button.html`
24
+
25
+ ```html
26
+ <button class="btn">Default</button>
27
+ ```
28
+
29
+ ### Active buttons
30
+
31
+ Source: `playground/components/button/active-buttons.html`
32
+
33
+ ```html
34
+ <button class="btn btn-active">Default</button>
35
+ <button class="btn btn-active btn-primary">Primary</button>
36
+ <button class="btn btn-active btn-secondary">Secondary</button>
37
+ <button class="btn btn-active btn-accent">Accent</button>
38
+ <button class="btn btn-active btn-info">Info</button>
39
+ <button class="btn btn-active btn-success">Success</button>
40
+ <button class="btn btn-active btn-warning">Warning</button>
41
+ <button class="btn btn-active btn-error">Error</button>
42
+ ```
43
+
44
+ ### Button block
45
+
46
+ Source: `playground/components/button/button-block.html`
47
+
48
+ ```html
49
+ <button class="btn btn-block">block</button>
50
+ ```
51
+
52
+ ### Button sizes
53
+
54
+ Source: `playground/components/button/button-sizes.html`
55
+
56
+ ```html
57
+ <button class="btn btn-xs">Xsmall</button>
58
+ <button class="btn btn-sm">Small</button>
59
+ <button class="btn">Medium</button>
60
+ <button class="btn btn-lg">Large</button>
61
+ <button class="btn btn-xl">Xlarge</button>
62
+ ```
63
+
64
+ ### Button with icon
65
+
66
+ Source: `playground/components/button/button-with-icon.html`
67
+
68
+ ```html
69
+ <button class="btn">
70
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" class="size-[1.2em]"><path stroke-linecap="round" stroke-linejoin="round" d="M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z" /></svg>
71
+ Like
72
+ </button>
73
+ <button class="btn">
74
+ Like
75
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" class="size-[1.2em]"><path stroke-linecap="round" stroke-linejoin="round" d="M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z" /></svg>
76
+ </button>
77
+ ```
78
+
79
+ ### Button with loading spinner
80
+
81
+ Source: `playground/components/button/button-with-loading-spinner.html`
82
+
83
+ ```html
84
+ <button class="btn btn-square">
85
+ <span class="loading loading-spinner"></span>
86
+ </button>
87
+
88
+ <button class="btn">
89
+ <span class="loading loading-spinner"></span>
90
+ loading
91
+ </button>
92
+ ```
93
+
94
+ ### Buttons colors
95
+
96
+ Source: `playground/components/button/buttons-colors.html`
97
+
98
+ ```html
99
+ <button class="btn btn-neutral">Neutral</button>
100
+ <button class="btn btn-primary">Primary</button>
101
+ <button class="btn btn-secondary">Secondary</button>
102
+ <button class="btn btn-accent">Accent</button>
103
+ <button class="btn btn-info">Info</button>
104
+ <button class="btn btn-success">Success</button>
105
+ <button class="btn btn-warning">Warning</button>
106
+ <button class="btn btn-error">Error</button>
107
+ ```
108
+
109
+ ### Buttons ghost and button link
110
+
111
+ Source: `playground/components/button/buttons-ghost-and-button-link.html`
112
+
113
+ ```html
114
+ <button class="btn btn-ghost">Ghost</button>
115
+ <button class="btn btn-link">Link</button>
116
+ ```
117
+
118
+ ### Buttons with any html tags
119
+
120
+ Source: `playground/components/button/buttons-with-any-html-tags.html`
121
+
122
+ ```html
123
+ <a role="button" class="btn">Link</a>
124
+ <button type="submit" class="btn">Button</button>
125
+ <input type="button" value="Input" class="btn" />
126
+ <input type="submit" value="Submit" class="btn" />
127
+ <input type="radio" aria-label="Radio" class="btn" />
128
+ <input type="checkbox" aria-label="Checkbox" class="btn" />
129
+ <input type="reset" value="Reset" class="btn" />
130
+ ```
131
+
132
+ ### Dash buttons
133
+
134
+ Source: `playground/components/button/dash-buttons.html`
135
+
136
+ ```html
137
+ <button class="btn btn-dash">Default</button>
138
+ <button class="btn btn-dash btn-primary">Primary</button>
139
+ <button class="btn btn-dash btn-secondary">Secondary</button>
140
+ <button class="btn btn-dash btn-accent">Accent</button>
141
+ <button class="btn btn-dash btn-info">Info</button>
142
+ <button class="btn btn-dash btn-success">Success</button>
143
+ <button class="btn btn-dash btn-warning">Warning</button>
144
+ <button class="btn btn-dash btn-error">Error</button>
145
+ ```
146
+
147
+ ### Disabled buttons
148
+
149
+ Source: `playground/components/button/disabled-buttons.html`
150
+
151
+ ```html
152
+ <button class="btn" disabled="disabled">Disabled using attribute</button>
153
+ <button class="btn btn-disabled" tabindex="-1" role="button" aria-disabled="true">
154
+ Disabled using class name
155
+ </button>
156
+ ```
157
+
158
+ ### Login buttons
159
+
160
+ Source: `playground/components/button/login-buttons.html`
161
+
162
+ ```html
163
+ <!-- Email -->
164
+ <button class="btn bg-white text-black border-[#e5e5e5]">
165
+ <svg aria-label="Email icon" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><g stroke-linejoin="round" stroke-linecap="round" stroke-width="2" fill="none" stroke="black"><rect width="20" height="16" x="2" y="4" rx="2"></rect><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"></path></g></svg>
166
+ Login with Email
167
+ </button>
168
+
169
+ <!-- GitHub -->
170
+ <button class="btn bg-black text-white border-black">
171
+ <svg aria-label="GitHub logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M12,2A10,10 0 0,0 2,12C2,16.42 4.87,20.17 8.84,21.5C9.34,21.58 9.5,21.27 9.5,21C9.5,20.77 9.5,20.14 9.5,19.31C6.73,19.91 6.14,17.97 6.14,17.97C5.68,16.81 5.03,16.5 5.03,16.5C4.12,15.88 5.1,15.9 5.1,15.9C6.1,15.97 6.63,16.93 6.63,16.93C7.5,18.45 8.97,18 9.54,17.76C9.63,17.11 9.89,16.67 10.17,16.42C7.95,16.17 5.62,15.31 5.62,11.5C5.62,10.39 6,9.5 6.65,8.79C6.55,8.54 6.2,7.5 6.75,6.15C6.75,6.15 7.59,5.88 9.5,7.17C10.29,6.95 11.15,6.84 12,6.84C12.85,6.84 13.71,6.95 14.5,7.17C16.41,5.88 17.25,6.15 17.25,6.15C17.8,7.5 17.45,8.54 17.35,8.79C18,9.5 18.38,10.39 18.38,11.5C18.38,15.32 16.04,16.16 13.81,16.41C14.17,16.72 14.5,17.33 14.5,18.26C14.5,19.6 14.5,20.68 14.5,21C14.5,21.27 14.66,21.59 15.17,21.5C19.14,20.16 22,16.42 22,12A10,10 0 0,0 12,2Z"></path></svg>
172
+ Login with GitHub
173
+ </button>
174
+
175
+ <!-- Google -->
176
+ <button class="btn bg-white text-black border-[#e5e5e5]">
177
+ <svg aria-label="Google logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g><path d="m0 0H512V512H0" fill="#fff"></path><path fill="#34a853" d="M153 292c30 82 118 95 171 60h62v48A192 192 0 0190 341"></path><path fill="#4285f4" d="m386 400a140 175 0 0053-179H260v74h102q-7 37-38 57"></path><path fill="#fbbc02" d="m90 341a208 200 0 010-171l63 49q-12 37 0 73"></path><path fill="#ea4335" d="m153 219c22-69 116-109 179-50l55-54c-78-75-230-72-297 55"></path></g></svg>
178
+ Login with Google
179
+ </button>
180
+
181
+ <!-- Facebook -->
182
+ <button class="btn bg-[#1A77F2] text-white border-[#005fd8]">
183
+ <svg aria-label="Facebook logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="white" d="M8 12h5V8c0-6 4-7 11-6v5c-4 0-5 0-5 3v2h5l-1 6h-4v12h-6V18H8z"></path></svg>
184
+ Login with Facebook
185
+ </button>
186
+
187
+ <!-- X -->
188
+ <button class="btn bg-black text-white border-black">
189
+ <svg aria-label="X logo" width="16" height="12" viewBox="0 0 300 271" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="m236 0h46l-101 115 118 156h-92.6l-72.5-94.8-83 94.8h-46l107-123-113-148h94.9l65.5 86.6zm-16.1 244h25.5l-165-218h-27.4z"/></svg>
190
+ Login with X
191
+ </button>
192
+
193
+ <!-- Kakao -->
194
+ <button class="btn bg-[#FEE502] text-[#181600] border-[#f1d800]">
195
+ <svg aria-label="Kakao logo" width="16" height="16" viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path fill="#181600" d="M255.5 48C299.345 48 339.897 56.5332 377.156 73.5996C414.415 90.666 443.871 113.873 465.522 143.22C487.174 172.566 498 204.577 498 239.252C498 273.926 487.174 305.982 465.522 335.42C443.871 364.857 414.46 388.109 377.291 405.175C340.122 422.241 299.525 430.775 255.5 430.775C241.607 430.775 227.262 429.781 212.467 427.795C148.233 472.402 114.042 494.977 109.892 495.518C107.907 496.241 106.012 496.15 104.208 495.248C103.486 494.706 102.945 493.983 102.584 493.08C102.223 492.177 102.043 491.365 102.043 490.642V489.559C103.126 482.515 111.335 453.169 126.672 401.518C91.8486 384.181 64.1974 361.2 43.7185 332.575C23.2395 303.951 13 272.843 13 239.252C13 204.577 23.8259 172.566 45.4777 143.22C67.1295 113.873 96.5849 90.666 133.844 73.5996C171.103 56.5332 211.655 48 255.5 48Z"></path></svg>
196
+ 카카오 로그인
197
+ </button>
198
+
199
+ <!-- Apple -->
200
+ <button class="btn bg-black text-white border-black">
201
+ <svg aria-label="Apple logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1195 1195"><path fill="white" d="M1006.933 812.8c-32 153.6-115.2 211.2-147.2 249.6-32 25.6-121.6 25.6-153.6 6.4-38.4-25.6-134.4-25.6-166.4 0-44.8 32-115.2 19.2-128 12.8-256-179.2-352-716.8 12.8-774.4 64-12.8 134.4 32 134.4 32 51.2 25.6 70.4 12.8 115.2-6.4 96-44.8 243.2-44.8 313.6 76.8-147.2 96-153.6 294.4 19.2 403.2zM802.133 64c12.8 70.4-64 224-204.8 230.4-12.8-38.4 32-217.6 204.8-230.4z"></path></svg>
202
+ Login with Apple
203
+ </button>
204
+
205
+ <!-- Amazon -->
206
+ <button class="btn bg-[#FF9900] text-black border-[#e17d00]">
207
+ <svg aria-label="Amazon logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g fill="black"><path d="M14.463 13.831c-1.753 1.294-4.291 1.981-6.478 1.981-3.066 0-5.825-1.131-7.912-3.019-.163-.147-.019-.35.178-.234 2.253 1.313 5.041 2.1 7.919 2.1 1.941 0 4.075-.403 6.041-1.238.294-.125.544.197.253.409z"></path><path d="M15.191 13c-.225-.287-1.481-.137-2.047-.069-.172.019-.197-.128-.044-.238 1.003-.703 2.647-.5 2.838-.266.194.238-.05 1.884-.991 2.672-.144.122-.281.056-.219-.103.216-.528.688-1.709.463-1.997zM11.053 11.838l.003.003c.387-.341 1.084-.95 1.478-1.278.156-.125.128-.334.006-.509-.353-.488-.728-.884-.728-1.784v-3c0-1.272.088-2.438-.847-3.313-.738-.706-1.963-.956-2.9-.956-1.831 0-3.875.684-4.303 2.947-.047.241.131.369.287.403l1.866.203c.175-.009.3-.181.334-.356.159-.778.813-1.156 1.547-1.156.397 0 .847.144 1.081.5.269.397.234.938.234 1.397v.25c-1.116.125-2.575.206-3.619.666-1.206.522-2.053 1.584-2.053 3.147 0 2 1.259 3 2.881 3 1.369 0 2.116-.322 3.172-1.403.35.506.463.753 1.103 1.284a.395.395 0 0 0 .456-.044zm-1.94-4.694c0 .75.019 1.375-.359 2.041-.306.544-.791.875-1.331.875-.737 0-1.169-.563-1.169-1.394 0-1.641 1.472-1.938 2.863-1.938v.416z"></path></g></svg>
208
+ Login with Amazon
209
+ </button>
210
+
211
+ <!-- Microsoft -->
212
+ <button class="btn bg-[#2F2F2F] text-white border-black">
213
+ <svg aria-label="Microsoft logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M96 96H247V247H96" fill="#f24f23"></path><path d="M265 96V247H416V96" fill="#7eba03"></path><path d="M96 265H247V416H96" fill="#3ca4ef"></path><path d="M265 265H416V416H265" fill="#f9ba00"></path></svg>
214
+ Login with Microsoft
215
+ </button>
216
+
217
+ <!-- Line -->
218
+ <button class="btn bg-[#03C755] text-white border-[#00b544]">
219
+ <svg aria-label="Line logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g fill-rule="evenodd" stroke-linejoin="round" fill="white"><path fill-rule="nonzero" d="M12.91 6.57c.232 0 .42.19.42.42 0 .23-.188.42-.42.42h-1.17v.75h1.17a.42.42 0 1 1 0 .84h-1.59a.42.42 0 0 1-.418-.42V5.4c0-.23.188-.42.42-.42h1.59a.42.42 0 0 1-.002.84h-1.17v.75h1.17zm-2.57 2.01a.421.421 0 0 1-.757.251l-1.63-2.217V8.58a.42.42 0 0 1-.42.42.42.42 0 0 1-.418-.42V5.4a.418.418 0 0 1 .755-.249L9.5 7.366V5.4c0-.23.188-.42.42-.42.23 0 .42.19.42.42v3.18zm-3.828 0c0 .23-.188.42-.42.42a.42.42 0 0 1-.418-.42V5.4c0-.23.188-.42.42-.42.23 0 .418.19.418.42v3.18zM4.868 9h-1.59c-.23 0-.42-.19-.42-.42V5.4c0-.23.19-.42.42-.42.232 0 .42.19.42.42v2.76h1.17a.42.42 0 1 1 0 .84M16 6.87C16 3.29 12.41.376 8 .376S0 3.29 0 6.87c0 3.208 2.846 5.896 6.69 6.405.26.056.615.172.705.394.08.2.053.518.026.722 0 0-.092.565-.113.685-.035.203-.16.79.693.432.854-.36 4.607-2.714 6.285-4.646C15.445 9.594 16 8.302 16 6.87"></path></g></svg>
220
+ LINEでログイン
221
+ </button>
222
+
223
+ <!-- Slack -->
224
+ <button class="btn bg-[#622069] text-white border-[#591660]">
225
+ <svg aria-label="Slack logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><g stroke-linecap="round" stroke-width="78"><path stroke="#36c5f0" d="m110 207h97m0-97h.1v-.1"></path><path stroke="#2eb67d" d="m305 110v97m97 0v.1h.1"></path><path stroke="#ecb22e" d="m402 305h-97m0 97h-.1v.1"></path><path stroke="#e01e5a" d="M110 305h.1v.1m97 0v97"></path></g></svg>
226
+ Login with Slack
227
+ </button>
228
+
229
+ <!-- LinkedIn -->
230
+ <button class="btn bg-[#0967C2] text-white border-[#0059b3]">
231
+ <svg aria-label="LinkedIn logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><path fill="white" d="M26.111,3H5.889c-1.595,0-2.889,1.293-2.889,2.889V26.111c0,1.595,1.293,2.889,2.889,2.889H26.111c1.595,0,2.889-1.293,2.889-2.889V5.889c0-1.595-1.293-2.889-2.889-2.889ZM10.861,25.389h-3.877V12.87h3.877v12.519Zm-1.957-14.158c-1.267,0-2.293-1.034-2.293-2.31s1.026-2.31,2.293-2.31,2.292,1.034,2.292,2.31-1.026,2.31-2.292,2.31Zm16.485,14.158h-3.858v-6.571c0-1.802-.685-2.809-2.111-2.809-1.551,0-2.362,1.048-2.362,2.809v6.571h-3.718V12.87h3.718v1.686s1.118-2.069,3.775-2.069,4.556,1.621,4.556,4.975v7.926Z" fill-rule="evenodd"></path></svg>
232
+ Login with LinkedIn
233
+ </button>
234
+
235
+ <!-- VK -->
236
+ <button class="btn bg-[#47698F] text-white border-[#35567b]">
237
+ <svg aria-label="VK logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 2240 2240"><g fill="white"><path d="M2077 904q23 64-150 294-24 32-65 85-78 100-90 131-17 41 14 81 17 21 81 82h1l1 1 1 1 2 2q141 131 191 221 3 5 6.5 12.5t7 26.5-.5 34-25 27.5-59 12.5l-256 4q-24 5-56-5t-52-22l-20-12q-30-21-70-64t-68.5-77.5-61-58-56.5-15.5q-3 1-8 3.5t-17 14.5-21.5 29.5-17 52-6.5 77.5q0 15-3.5 27.5t-7.5 18.5l-4 5q-18 19-53 22h-115q-71 4-146-16.5t-131.5-53-103-66T648 1722l-25-24q-10-10-27.5-30t-71.5-91-106-151-122.5-211T165 943q-6-16-6-27t3-16l4-6q15-19 57-19l274-2q12 2 23 6.5t16 8.5l5 3q16 11 24 32 20 50 46 103.5t41 81.5l16 29q29 60 56 104t48.5 68.5T814 1348t34 14 27-5q2-1 5-5t12-22 13.5-47 9.5-81 0-125q-2-40-9-73t-14-46l-6-12q-25-34-85-43-13-2 5-24 17-19 38-30 53-26 239-24 82 1 135 13 20 5 33.5 13.5t20.5 24 10.5 32 3.5 45.5-1 55-2.5 70.5-1.5 82.5q0 11-1 42t-.5 48 3.5 40.5 11.5 39 22.5 24.5q8 2 17 4t26-11 38-34.5 52-67 68-107.5q60-104 107-225 4-10 10-17.5t11-10.5l4-3 5-2.5 13-3 20-.5 288-2q39-5 64 2.5t31 16.5z"></path></g></svg>
238
+ Login with VK
239
+ </button>
240
+
241
+ <!-- WeChat -->
242
+ <button class="btn bg-[#5EBB2B] text-white border-[#4eaa0c]">
243
+ <svg aria-label="WeChat logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><g fill="white"><path d="M11.606,3.068C5.031,3.068,0,7.529,0,12.393s4.344,7.681,4.344,7.681l-.706,2.676c-.093,.353,.284,.644,.602,.464l3.173-1.798c1.403,.447,4.381,.59,4.671,.603-.208-.721-.311-1.432-.311-2.095,0-3.754,3.268-9.04,10.532-9.04,.165,0,.331,.004,.496,.011-.965-4.627-5.769-7.827-11.195-7.827Zm-4.327,7.748c-.797,0-1.442-.646-1.442-1.442s.646-1.442,1.442-1.442,1.442,.646,1.442,1.442-.646,1.442-1.442,1.442Zm8.386,0c-.797,0-1.442-.646-1.442-1.442s.646-1.442,1.442-1.442,1.442,.646,1.442,1.442-.646,1.442-1.442,1.442Z"></path><path d="M32,19.336c0-4.26-4.998-7.379-9.694-7.379-6.642,0-9.459,4.797-9.459,7.966s2.818,7.966,9.459,7.966c1.469,0,2.762-.211,3.886-.584l2.498,1.585c.197,.125,.447-.052,.394-.279l-.567-2.46c2.36-1.643,3.483-4.234,3.483-6.815Zm-12.73-.81c-.704,0-1.275-.571-1.275-1.275s.571-1.275,1.275-1.275,1.275,.571,1.275,1.275c0,.705-.571,1.275-1.275,1.275Zm6.373,0c-.704,0-1.275-.571-1.275-1.275s.571-1.275,1.275-1.275,1.275,.571,1.275,1.275-.571,1.275-1.275,1.275Z"></path></g></svg>
244
+ Login with WeChat
245
+ </button>
246
+
247
+ <!-- Metamask -->
248
+ <button class="btn bg-white text-black border-[#e5e5e5]">
249
+ <svg aria-label="MetaMask logo" width="16" height="16" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 507.83 470.86"><defs><style>.b,.c,.d,.e,.f,.g,.j{stroke-linecap:round;stroke-linejoin:round}.b{fill:#e4761b;stroke:#e4761b}.c{fill:#d7c1b3;stroke:#d7c1b3}.d{fill:#233447;stroke:#233447}.e{fill:#cd6116;stroke:#cd6116}.f{fill:#e4751f;stroke:#e4751f}.g{fill:#f6851b;stroke:#f6851b}.j{fill:#763d16;stroke:#763d16}</style></defs><path d="M482.09.5 284.32 147.38l36.58-86.66z" style="fill:#e2761b;stroke:#e2761b;stroke-linecap:round;stroke-linejoin:round"/><path d="m25.54.5 196.18 148.27-34.79-88.05zM410.93 340.97l-52.67 80.7 112.7 31 32.4-109.91zM4.67 342.76l32.2 109.91 112.7-31-52.67-80.7z" class="b"/><path d="m143.21 204.62-31.41 47.51 111.9 4.97-3.97-120.25zM364.42 204.62l-77.51-69.16-2.59 121.64 111.71-4.97zM149.57 421.67l67.18-32.8-58.04-45.32zM290.88 388.87l67.38 32.8-9.34-78.12z" class="b"/><path d="m358.26 421.67-67.38-32.8 5.37 43.93-.6 18.48zM149.57 421.67l62.61 29.61-.4-18.48 4.97-43.93z" class="c"/><path d="m213.17 314.54-56.05-16.5 39.55-18.09zM294.46 314.54l16.5-34.59 39.75 18.09z" class="d"/><path d="m149.57 421.67 9.54-80.7-62.21 1.79zM348.72 340.97l9.54 80.7 52.67-78.91zM396.03 252.13l-111.71 4.97 10.34 57.44 16.5-34.59 39.75 18.09zM157.12 298.04l39.75-18.09 16.3 34.59 10.53-57.44-111.9-4.97z" class="e"/><path d="m111.8 252.13 46.91 91.42-1.59-45.51zM350.91 298.04l-1.99 45.51 47.11-91.42zM223.7 257.1l-10.53 57.44 13.12 67.77 2.98-89.24zM284.32 257.1l-5.36 35.77 2.38 89.44 13.32-67.77z" class="f"/><path d="m294.66 314.54-13.32 67.77 9.54 6.56 58.04-45.32 1.99-45.51zM157.12 298.04l1.59 45.51 58.04 45.32 9.54-6.56-13.12-67.77z" class="g"/><path d="m295.65 451.28.6-18.48-4.97-4.38h-74.93l-4.57 4.38.4 18.48-62.61-29.61 21.86 17.88 44.32 30.81h76.13l44.52-30.81 21.86-17.88z" style="stroke-linecap:round;stroke-linejoin:round;fill:#c0ad9e;stroke:#c0ad9e"/><path d="m290.88 388.87-9.54-6.56h-55.05l-9.54 6.56-4.97 43.93 4.57-4.38h74.93l4.97 4.38z" style="stroke-linecap:round;stroke-linejoin:round;fill:#161616;stroke:#161616"/><path d="m490.44 156.92 16.89-81.09L482.09.5 290.88 142.41l73.54 62.21 103.95 30.41 23.06-26.83-9.94-7.15 15.9-14.51-12.32-9.54 15.9-12.13zM.5 75.83l16.89 81.09-10.73 7.95L22.56 177l-12.12 9.54 15.9 14.51-9.94 7.15 22.86 26.83 103.95-30.41 73.54-62.21L25.54.5z" class="j"/><path d="m468.37 235.03-103.95-30.41 31.61 47.51-47.11 91.42 62.01-.79h92.43zM143.21 204.62 39.26 235.03 4.67 342.76H96.9l61.81.79-46.91-91.42zM284.32 257.1l6.56-114.69 30.22-81.69H186.93l29.82 81.69 6.95 114.69 2.39 36.17.2 89.04h55.05l.4-89.04z" class="g"/></svg>
250
+ Login with MetaMask
251
+ </button>
252
+ ```
253
+
254
+ ### Neutral button with outline or dash style
255
+
256
+ Source: `playground/components/button/neutral-button-with-outline-or-dash-style.html`
257
+
258
+ ```html
259
+ <div class="bg-white p-6">
260
+ <button class="btn btn-neutral btn-outline">Outline</button>
261
+ <button class="btn btn-neutral btn-dash">Dash</button>
262
+ </div>
263
+ ```
264
+
265
+ ### Outline buttons
266
+
267
+ Source: `playground/components/button/outline-buttons.html`
268
+
269
+ ```html
270
+ <button class="btn btn-outline">Default</button>
271
+ <button class="btn btn-outline btn-primary">Primary</button>
272
+ <button class="btn btn-outline btn-secondary">Secondary</button>
273
+ <button class="btn btn-outline btn-accent">Accent</button>
274
+ <button class="btn btn-outline btn-info">Info</button>
275
+ <button class="btn btn-outline btn-success">Success</button>
276
+ <button class="btn btn-outline btn-warning">Warning</button>
277
+ <button class="btn btn-outline btn-error">Error</button>
278
+ ```
279
+
280
+ ### Responsive button
281
+
282
+ Source: `playground/components/button/responsive-button.html`
283
+
284
+ ```html
285
+ <button class="btn btn-xs sm:btn-sm md:btn-md lg:btn-lg xl:btn-xl">Responsive</button>
286
+ ```
287
+
288
+ ### Soft buttons
289
+
290
+ Source: `playground/components/button/soft-buttons.html`
291
+
292
+ ```html
293
+ <button class="btn btn-soft">Default</button>
294
+ <button class="btn btn-soft btn-primary">Primary</button>
295
+ <button class="btn btn-soft btn-secondary">Secondary</button>
296
+ <button class="btn btn-soft btn-accent">Accent</button>
297
+ <button class="btn btn-soft btn-info">Info</button>
298
+ <button class="btn btn-soft btn-success">Success</button>
299
+ <button class="btn btn-soft btn-warning">Warning</button>
300
+ <button class="btn btn-soft btn-error">Error</button>
301
+ ```
302
+
303
+ ### Square button and circle button
304
+
305
+ Source: `playground/components/button/square-button-and-circle-button.html`
306
+
307
+ ```html
308
+ <button class="btn btn-square">
309
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" class="size-[1.2em]"><path stroke-linecap="round" stroke-linejoin="round" d="M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z" /></svg>
310
+ </button>
311
+ <button class="btn btn-circle">
312
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2.5" stroke="currentColor" class="size-[1.2em]"><path stroke-linecap="round" stroke-linejoin="round" d="M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12Z" /></svg>
313
+ </button>
314
+ ```
315
+
316
+ ### Wide button
317
+
318
+ Source: `playground/components/button/wide-button.html`
319
+
320
+ ```html
321
+ <button class="btn btn-wide">Wide</button>
322
+ ```
@@ -0,0 +1,67 @@
1
+ # calendar
2
+
3
+ _date picker (uses external Cally web component)_
4
+
5
+ ## What it does
6
+
7
+ Styled wrapper around the [Cally](https://wicg.github.io/cal-cally/) `<calendar-date>` / `<calendar-range>` web components — margaui supplies the styling, Cally supplies the behavior.
8
+
9
+ ## When to use
10
+
11
+ - Inline date picker or date-range picker.
12
+ - Requires loading Cally separately (CDN script tag in the example).
13
+
14
+ ## Core classes
15
+
16
+ `cally` on the Cally element.
17
+
18
+ ## Examples
19
+
20
+ ### Cally calendar example
21
+
22
+ Source: `playground/components/calendar/cally-calendar-example.html`
23
+
24
+ ```html
25
+ <!--
26
+ * Import Cally web component from CDN
27
+ <script type="module" src="https://unpkg.com/cally"></script>
28
+
29
+ * Or install as a dependency:
30
+ npm i cally
31
+ * and import it in JS
32
+ import "cally";
33
+ -->
34
+
35
+ <calendar-date class="cally bg-base-100 border border-base-300 shadow-lg rounded-box">
36
+ <svg aria-label="Previous" class="fill-current size-4" slot="previous" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="M15.75 19.5 8.25 12l7.5-7.5"></path></svg>
37
+ <svg aria-label="Next" class="fill-current size-4" slot="next" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="currentColor" d="m8.25 4.5 7.5 7.5-7.5 7.5"></path></svg>
38
+ <calendar-month></calendar-month>
39
+ </calendar-date>
40
+ ```
41
+
42
+ ### Cally date picker example
43
+
44
+ Source: `playground/components/calendar/cally-date-picker-example.html`
45
+
46
+ ```html
47
+ <!--
48
+ * Import Cally web component from CDN
49
+ <script type="module" src="https://unpkg.com/cally"></script>
50
+
51
+ * Or install as a dependency:
52
+ npm i cally
53
+ * and import it in JS
54
+ import "cally";
55
+ -->
56
+
57
+ <button popovertarget="cally-popover1" class="input input-border" id="cally1" style="anchor-name:--cally1">
58
+ Pick a date
59
+ </button>
60
+ <div popover id="cally-popover1" class="dropdown bg-base-100 rounded-box shadow-lg" style="position-anchor:--cally1">
61
+ <calendar-date class="cally" onchange={document.getElementById('cally1').innerText = this.value}>
62
+ <svg aria-label="Previous" class="fill-current size-4" slot="previous" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.75 19.5 8.25 12l7.5-7.5"></path></svg>
63
+ <svg aria-label="Next" class="fill-current size-4" slot="next" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="m8.25 4.5 7.5 7.5-7.5 7.5"></path></svg>
64
+ <calendar-month></calendar-month>
65
+ </calendar-date>
66
+ </div>
67
+ ```