saha-ui 1.23.0 → 1.25.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.
- package/LICENSE +275 -21
- package/README.md +3 -2
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/index.js +1 -0
- package/dist/components/CodeEditor/CodeEditor.js +1 -1
- package/dist/components/CodeEditor/{variants.d.ts → CodeEditor.styles.d.ts} +1 -1
- package/dist/components/CodeEditor/CodeEditor.styles.d.ts.map +1 -0
- package/dist/components/CodeEditor/CodeEditor.types.d.ts +1 -1
- package/dist/components/CodeEditor/CodeEditor.types.d.ts.map +1 -1
- package/dist/components/CodeEditor/StatusBar.js +1 -1
- package/dist/components/CodeEditor/TabBar.js +1 -1
- package/dist/components/CodeEditor/Toolbar.js +1 -1
- package/dist/components/CookieConsent/index.js +1 -1
- package/dist/components/CountdownTimer/CountdownTimer.styles.d.ts +13 -0
- package/dist/components/CountdownTimer/CountdownTimer.styles.d.ts.map +1 -0
- package/dist/components/CountdownTimer/CountdownTimer.styles.js +69 -0
- package/dist/components/CountdownTimer/index.d.ts.map +1 -1
- package/dist/components/CountdownTimer/index.js +47 -62
- package/dist/components/DateRangePicker/DateRangePicker.styles.d.ts +2 -0
- package/dist/components/DateRangePicker/DateRangePicker.styles.d.ts.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.styles.js +5 -0
- package/dist/components/DateRangePicker/index.d.ts.map +1 -1
- package/dist/components/DateRangePicker/index.js +17 -14
- package/dist/components/DateTimePicker/DateTimePicker.styles.d.ts +11 -0
- package/dist/components/DateTimePicker/DateTimePicker.styles.d.ts.map +1 -0
- package/dist/components/DateTimePicker/DateTimePicker.styles.js +26 -0
- package/dist/components/DateTimePicker/index.d.ts.map +1 -1
- package/dist/components/DateTimePicker/index.js +52 -54
- package/dist/components/DragDrop/VirtualList.d.ts +1 -18
- package/dist/components/DragDrop/VirtualList.d.ts.map +1 -1
- package/dist/components/DragDrop/VirtualList.js +16 -15
- package/dist/components/GanttChart/GanttChart.styles.d.ts +3 -0
- package/dist/components/GanttChart/GanttChart.styles.d.ts.map +1 -0
- package/dist/components/GanttChart/GanttChart.styles.js +10 -0
- package/dist/components/GanttChart/index.d.ts.map +1 -1
- package/dist/components/GanttChart/index.js +41 -40
- package/dist/components/ImageGallery/ImageGallery.styles.d.ts +21 -0
- package/dist/components/ImageGallery/ImageGallery.styles.d.ts.map +1 -0
- package/dist/components/ImageGallery/ImageGallery.styles.js +72 -0
- package/dist/components/ImageGallery/index.d.ts.map +1 -1
- package/dist/components/ImageGallery/index.js +61 -68
- package/dist/components/InfiniteScroll/InfiniteScroll.styles.d.ts +5 -0
- package/dist/components/InfiniteScroll/InfiniteScroll.styles.d.ts.map +1 -0
- package/dist/components/InfiniteScroll/InfiniteScroll.styles.js +8 -0
- package/dist/components/InfiniteScroll/index.d.ts.map +1 -1
- package/dist/components/InfiniteScroll/index.js +37 -36
- package/dist/components/KanbanBoard/KanbanBoard.styles.d.ts +12 -0
- package/dist/components/KanbanBoard/KanbanBoard.styles.d.ts.map +1 -0
- package/dist/components/KanbanBoard/KanbanBoard.styles.js +15 -0
- package/dist/components/KanbanBoard/index.d.ts.map +1 -1
- package/dist/components/KanbanBoard/index.js +63 -65
- package/dist/components/MultiSelect/MultiSelect.styles.d.ts +4 -0
- package/dist/components/MultiSelect/MultiSelect.styles.d.ts.map +1 -0
- package/dist/components/MultiSelect/MultiSelect.styles.js +7 -0
- package/dist/components/MultiSelect/index.d.ts.map +1 -1
- package/dist/components/MultiSelect/index.js +27 -26
- package/dist/components/Notification/Notification.styles.d.ts +7 -0
- package/dist/components/Notification/Notification.styles.d.ts.map +1 -0
- package/dist/components/Notification/Notification.styles.js +38 -0
- package/dist/components/Notification/Notification.types.d.ts +34 -0
- package/dist/components/Notification/Notification.types.d.ts.map +1 -0
- package/dist/components/Notification/index.d.ts +6 -0
- package/dist/components/Notification/index.d.ts.map +1 -0
- package/dist/components/Notification/index.js +114 -0
- package/dist/components/QRCode/QRCode.styles.d.ts +2 -0
- package/dist/components/QRCode/QRCode.styles.d.ts.map +1 -0
- package/dist/components/QRCode/QRCode.styles.js +7 -0
- package/dist/components/QRCode/index.d.ts.map +1 -1
- package/dist/components/QRCode/index.js +29 -28
- package/dist/components/SplitButton/SplitButton.styles.d.ts +5 -0
- package/dist/components/SplitButton/SplitButton.styles.d.ts.map +1 -0
- package/dist/components/SplitButton/SplitButton.styles.js +10 -0
- package/dist/components/SplitButton/index.d.ts.map +1 -1
- package/dist/components/SplitButton/index.js +59 -61
- package/dist/components/ThemeProvider/ThemeProvider.styles.d.ts +2 -0
- package/dist/components/ThemeProvider/ThemeProvider.styles.d.ts.map +1 -0
- package/dist/components/ThemeProvider/ThemeProvider.styles.js +5 -0
- package/dist/components/TickerCarousel/TickerCarousel.styles.d.ts +16 -0
- package/dist/components/TickerCarousel/TickerCarousel.styles.d.ts.map +1 -0
- package/dist/components/TickerCarousel/TickerCarousel.styles.js +57 -0
- package/dist/components/TickerCarousel/TickerCarousel.types.d.ts +161 -0
- package/dist/components/TickerCarousel/TickerCarousel.types.d.ts.map +1 -0
- package/dist/components/TickerCarousel/index.d.ts +7 -0
- package/dist/components/TickerCarousel/index.d.ts.map +1 -0
- package/dist/components/TickerCarousel/index.js +520 -0
- package/dist/components/VirtualList/VirtualList.styles.d.ts +2 -0
- package/dist/components/VirtualList/VirtualList.styles.d.ts.map +1 -0
- package/dist/components/VirtualList/VirtualList.styles.js +5 -0
- package/dist/components/VirtualList/VirtualList.types.d.ts +25 -0
- package/dist/components/VirtualList/VirtualList.types.d.ts.map +1 -0
- package/dist/components/VirtualList/index.d.ts +2 -0
- package/dist/components/VirtualList/index.d.ts.map +1 -1
- package/dist/components/VirtualList/index.js +5 -3
- package/dist/index.d.ts +10 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +935 -915
- package/mcp/server.ts +1074 -1031
- package/mcp/tsconfig.json +1 -1
- package/package.json +12 -19
- package/dist/components/CodeEditor/variants.d.ts.map +0 -1
- /package/dist/components/CodeEditor/{variants.js → CodeEditor.styles.js} +0 -0
package/LICENSE
CHANGED
|
@@ -1,21 +1,275 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
1
|
+
# CONTRIBUTIVE SOURCE LICENSE (CSL) Version 1.0
|
|
2
|
+
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
## PREAMBLE
|
|
6
|
+
|
|
7
|
+
This License Agreement ("Agreement") is a legally binding contract between
|
|
8
|
+
the original author/owner ("Licensor") and any individual or entity
|
|
9
|
+
("Contributor") who wishes to access, view, or contribute to the covered
|
|
10
|
+
work ("Software"). By accessing, cloning, forking, or otherwise interacting
|
|
11
|
+
with this Software, you agree to be fully bound by the terms of this
|
|
12
|
+
Agreement.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## ARTICLE 1 — DEFINITIONS
|
|
17
|
+
|
|
18
|
+
**1.1 "Licensor"**
|
|
19
|
+
means the original creator and sole owner of the Software,
|
|
20
|
+
who retains all intellectual property rights.
|
|
21
|
+
|
|
22
|
+
**1.2 "Contributor"**
|
|
23
|
+
means any individual or legal entity that accesses, forks,
|
|
24
|
+
or submits contributions to the Software under this License.
|
|
25
|
+
|
|
26
|
+
**1.3 "Software"**
|
|
27
|
+
means the source code, documentation, assets, scripts,
|
|
28
|
+
configurations, and any related materials covered under this License.
|
|
29
|
+
|
|
30
|
+
**1.4 "Fork"**
|
|
31
|
+
means a personal copy of the Software repository created by a
|
|
32
|
+
Contributor for the sole and exclusive purpose of preparing a Merge Request.
|
|
33
|
+
|
|
34
|
+
**1.5 "Merge Request"**
|
|
35
|
+
(also referred to as a "Pull Request") means a formal submission
|
|
36
|
+
by a Contributor proposing specific changes to be reviewed and potentially
|
|
37
|
+
integrated into the Software by the Licensor.
|
|
38
|
+
|
|
39
|
+
**1.6 "Contribution"**
|
|
40
|
+
means any modification, addition, deletion, bug fix, documentation
|
|
41
|
+
update, or improvement submitted by a Contributor through a Merge Request.
|
|
42
|
+
|
|
43
|
+
**1.7 "Unauthorized Use"**
|
|
44
|
+
means any use of the Software or its derivatives outside the
|
|
45
|
+
permissions explicitly granted under this License.
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## ARTICLE 2 — GRANT OF LIMITED RIGHTS
|
|
50
|
+
|
|
51
|
+
**2.1 Permitted Actions**
|
|
52
|
+
|
|
53
|
+
Subject to full compliance with this Agreement, the Licensor hereby grants
|
|
54
|
+
the Contributor a **limited, non-exclusive, non-transferable, revocable**
|
|
55
|
+
right to:
|
|
56
|
+
|
|
57
|
+
- ✅ **View** the source code of the Software
|
|
58
|
+
- ✅ **Fork** the Software solely for the purpose of preparing a Merge Request
|
|
59
|
+
- ✅ **Modify** the forked copy solely for the purpose of submitting a Merge Request
|
|
60
|
+
- ✅ **Submit** a Merge Request to the Licensor for review and approval
|
|
61
|
+
|
|
62
|
+
**2.2** These rights are **strictly conditional** upon compliance with all
|
|
63
|
+
terms of this License.
|
|
64
|
+
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
## ARTICLE 3 — STRICT PROHIBITIONS
|
|
68
|
+
|
|
69
|
+
**3.1 The Contributor is explicitly PROHIBITED from:**
|
|
70
|
+
|
|
71
|
+
- ❌ **Distributing** the Software or any modified version thereof
|
|
72
|
+
- ❌ **Publishing** the Software or derivatives on any platform, website,
|
|
73
|
+
or repository other than the official repository
|
|
74
|
+
- ❌ **Selling**, licensing, sublicensing, or commercially exploiting
|
|
75
|
+
the Software or any part thereof
|
|
76
|
+
- ❌ **Merging**, deploying, or integrating changes into any production
|
|
77
|
+
or personal project without explicit written permission from the Licensor
|
|
78
|
+
- ❌ **Using** the forked copy or any derived version for any purpose
|
|
79
|
+
other than submitting a Merge Request
|
|
80
|
+
- ❌ **Sharing** the forked copy publicly as an independent project
|
|
81
|
+
- ❌ **Claiming ownership** or co-ownership of the Software or any
|
|
82
|
+
portion thereof
|
|
83
|
+
- ❌ **Removing or altering** any copyright notices, license headers,
|
|
84
|
+
or attribution present in the Software
|
|
85
|
+
- ❌ **Reverse engineering**, decompiling, or using the Software
|
|
86
|
+
for competing purposes
|
|
87
|
+
- ❌ **Keeping** a fork active beyond a reasonable period after a
|
|
88
|
+
Merge Request has been accepted, rejected, or closed
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## ARTICLE 4 — MERGE REQUEST PROTOCOL
|
|
93
|
+
|
|
94
|
+
**4.1 Submission Requirements**
|
|
95
|
+
|
|
96
|
+
All Merge Requests submitted by a Contributor must:
|
|
97
|
+
|
|
98
|
+
- Be submitted through the official and designated repository platform
|
|
99
|
+
(e.g., GitHub, GitLab, Bitbucket) as specified by the Licensor
|
|
100
|
+
- Clearly describe the nature and purpose of the proposed changes
|
|
101
|
+
- Be limited in scope to a single feature, fix, or improvement per request
|
|
102
|
+
unless otherwise agreed in writing by the Licensor
|
|
103
|
+
- Not include any third-party code, libraries, or assets without prior
|
|
104
|
+
written consent from the Licensor
|
|
105
|
+
|
|
106
|
+
**4.2 Review and Discretion**
|
|
107
|
+
|
|
108
|
+
The Licensor retains **absolute and sole discretion** to:
|
|
109
|
+
|
|
110
|
+
- Accept, reject, modify, or ignore any Merge Request for any reason
|
|
111
|
+
or no reason at all
|
|
112
|
+
- Request revisions from the Contributor before any consideration
|
|
113
|
+
of acceptance
|
|
114
|
+
- Close any Merge Request deemed inconsistent with the goals or
|
|
115
|
+
standards of the Software
|
|
116
|
+
|
|
117
|
+
**4.3 No Obligation**
|
|
118
|
+
|
|
119
|
+
The Licensor is under **no obligation** to:
|
|
120
|
+
|
|
121
|
+
- Review any Merge Request within a specific timeframe
|
|
122
|
+
- Provide feedback or justification for rejection
|
|
123
|
+
- Accept any Contribution regardless of quality or effort
|
|
124
|
+
|
|
125
|
+
**4.4 Transfer of Rights Upon Acceptance**
|
|
126
|
+
|
|
127
|
+
By submitting a Merge Request, the Contributor **irrevocably assigns
|
|
128
|
+
and transfers** to the Licensor all intellectual property rights,
|
|
129
|
+
including but not limited to copyright, in and to the Contribution,
|
|
130
|
+
effective upon submission. The Contributor waives any and all moral
|
|
131
|
+
rights to the Contribution to the fullest extent permitted by
|
|
132
|
+
applicable law.
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## ARTICLE 5 — CONTRIBUTOR REPRESENTATIONS AND WARRANTIES
|
|
137
|
+
|
|
138
|
+
**5.1 By submitting a Merge Request, the Contributor represents
|
|
139
|
+
and warrants that:**
|
|
140
|
+
|
|
141
|
+
- The Contribution is the original work of the Contributor
|
|
142
|
+
- The Contributor has full legal authority to submit the Contribution
|
|
143
|
+
and assign rights therein
|
|
144
|
+
- The Contribution does not infringe upon any third-party intellectual
|
|
145
|
+
property rights, patents, trademarks, or trade secrets
|
|
146
|
+
- The Contribution does not contain any malicious code, backdoors,
|
|
147
|
+
or harmful components
|
|
148
|
+
- The Contribution complies with all applicable laws and regulations
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
## ARTICLE 6 — INTELLECTUAL PROPERTY AND OWNERSHIP
|
|
153
|
+
|
|
154
|
+
**6.1** The Licensor retains **full, exclusive, and perpetual ownership**
|
|
155
|
+
of the Software, including all accepted Contributions.
|
|
156
|
+
|
|
157
|
+
**6.2** Nothing in this License shall be construed as transferring any
|
|
158
|
+
ownership rights to the Contributor.
|
|
159
|
+
|
|
160
|
+
**6.3** The Contributor shall receive **no compensation, royalty, or
|
|
161
|
+
payment** of any kind for any Contribution unless a separate written
|
|
162
|
+
agreement expressly provides otherwise.
|
|
163
|
+
|
|
164
|
+
**6.4** The Licensor may credit the Contributor at the Licensor's sole
|
|
165
|
+
discretion but is under no obligation to do so.
|
|
166
|
+
|
|
167
|
+
---
|
|
168
|
+
|
|
169
|
+
## ARTICLE 7 — TERMINATION
|
|
170
|
+
|
|
171
|
+
**7.1** This License and all rights granted hereunder shall **automatically
|
|
172
|
+
terminate**, with immediate effect, if the Contributor:
|
|
173
|
+
|
|
174
|
+
- Violates any term or condition of this License
|
|
175
|
+
- Distributes, publishes, or misuses the Software or any fork thereof
|
|
176
|
+
- Engages in any conduct that the Licensor reasonably determines to be
|
|
177
|
+
harmful to the Software or its reputation
|
|
178
|
+
|
|
179
|
+
**7.2** Upon termination, the Contributor must:
|
|
180
|
+
|
|
181
|
+
- Immediately **delete and destroy** all copies, forks, and derivatives
|
|
182
|
+
of the Software in their possession
|
|
183
|
+
- **Cease all use** of the Software without exception
|
|
184
|
+
|
|
185
|
+
**7.3** Termination of this License does not limit any other remedies
|
|
186
|
+
available to the Licensor at law or in equity.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## ARTICLE 8 — DISCLAIMER OF WARRANTIES
|
|
191
|
+
|
|
192
|
+
**8.1** THE SOFTWARE IS PROVIDED **"AS IS"** WITHOUT WARRANTY OF ANY KIND,
|
|
193
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO WARRANTIES OF
|
|
194
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT.
|
|
195
|
+
|
|
196
|
+
**8.2** THE LICENSOR DOES NOT WARRANT THAT THE SOFTWARE WILL BE
|
|
197
|
+
ERROR-FREE OR UNINTERRUPTED.
|
|
198
|
+
|
|
199
|
+
---
|
|
200
|
+
|
|
201
|
+
## ARTICLE 9 — LIMITATION OF LIABILITY
|
|
202
|
+
|
|
203
|
+
**9.1** TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THE LICENSOR
|
|
204
|
+
SHALL NOT BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
205
|
+
CONSEQUENTIAL, OR PUNITIVE DAMAGES ARISING OUT OF OR RELATED TO THIS
|
|
206
|
+
LICENSE OR THE USE OF THE SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
|
|
207
|
+
OF SUCH DAMAGES.
|
|
208
|
+
|
|
209
|
+
---
|
|
210
|
+
|
|
211
|
+
## ARTICLE 10 — GOVERNING LAW AND DISPUTE RESOLUTION
|
|
212
|
+
|
|
213
|
+
**10.1** This License shall be governed by and construed in accordance
|
|
214
|
+
with the laws of **[YOUR JURISDICTION/COUNTRY]**, without regard to
|
|
215
|
+
conflict of law principles.
|
|
216
|
+
|
|
217
|
+
**10.2** Any dispute arising out of or in connection with this License
|
|
218
|
+
shall be subject to the **exclusive jurisdiction** of the courts located
|
|
219
|
+
in **[YOUR CITY/COUNTRY]**.
|
|
220
|
+
|
|
221
|
+
**10.3** In the event of any dispute, the prevailing party shall be
|
|
222
|
+
entitled to recover reasonable **attorney's fees and legal costs**.
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## ARTICLE 11 — GENERAL PROVISIONS
|
|
227
|
+
|
|
228
|
+
**11.1 Entire Agreement**
|
|
229
|
+
This License constitutes the entire agreement between the Licensor
|
|
230
|
+
and Contributor with respect to the Software and supersedes all
|
|
231
|
+
prior understandings.
|
|
232
|
+
|
|
233
|
+
**11.2 Severability**
|
|
234
|
+
If any provision of this License is found to be unenforceable,
|
|
235
|
+
the remaining provisions shall continue in full force and effect.
|
|
236
|
+
|
|
237
|
+
**11.3 No Waiver**
|
|
238
|
+
Failure by the Licensor to enforce any provision of this License
|
|
239
|
+
shall not constitute a waiver of the Licensor's right to enforce
|
|
240
|
+
such provision in the future.
|
|
241
|
+
|
|
242
|
+
**11.4 Amendments**
|
|
243
|
+
The Licensor reserves the right to modify this License at any time.
|
|
244
|
+
Continued use of or contribution to the Software after such
|
|
245
|
+
modification constitutes acceptance of the updated License.
|
|
246
|
+
|
|
247
|
+
**11.5 No Partnership**
|
|
248
|
+
Nothing in this License creates a partnership, employment
|
|
249
|
+
relationship, or agency between the Licensor and any Contributor.
|
|
250
|
+
|
|
251
|
+
---
|
|
252
|
+
|
|
253
|
+
## ACCEPTANCE
|
|
254
|
+
|
|
255
|
+
> **By forking, cloning, accessing, or submitting a Merge Request to
|
|
256
|
+
> the Software, you acknowledge that you have read, understood, and
|
|
257
|
+
> agree to be legally bound by all terms and conditions of this
|
|
258
|
+
> Contributive Source License (CSL) Version 1.0.**
|
|
259
|
+
|
|
260
|
+
---
|
|
261
|
+
|
|
262
|
+
**Copyright © 2026 Xenial-Devil**
|
|
263
|
+
**All Rights Reserved.**
|
|
264
|
+
|
|
265
|
+
---
|
|
266
|
+
|
|
267
|
+
### How To Apply This License
|
|
268
|
+
|
|
269
|
+
Place this file in the root of your repository as `LICENSE.md`
|
|
270
|
+
and add the following header to your source files:
|
|
271
|
+
|
|
272
|
+
> Copyright (c) 2026 Xenial-Devil. All Rights Reserved.
|
|
273
|
+
> Licensed under the Contributive Source License (CSL) v1.0.
|
|
274
|
+
> Forking permitted for Merge Request purposes ONLY.
|
|
275
|
+
> See LICENSE.md for full terms.
|
package/README.md
CHANGED
|
@@ -350,7 +350,7 @@ We welcome contributions from the community! Whether it's:
|
|
|
350
350
|
|
|
351
351
|
<div align="center">
|
|
352
352
|
|
|
353
|
-
**
|
|
353
|
+
**CSL License** ©2026 [Saha UI](https://saha-ui.isubroto.com.bd)
|
|
354
354
|
|
|
355
355
|
Free to use for personal and commercial projects
|
|
356
356
|
|
|
@@ -358,6 +358,7 @@ Free to use for personal and commercial projects
|
|
|
358
358
|
|
|
359
359
|
<sub>Built with ❤️ by the Saha UI Team</sub>
|
|
360
360
|
|
|
361
|
-
**[⭐ Star on GitHub](https://github.com/Xenial-Devil/Saha-ui)**
|
|
361
|
+
**[⭐ Star on GitHub](https://github.com/Xenial-Devil/Saha-ui)**
|
|
362
|
+
<!-- **[⭐ Star on GitHub](https://github.com/Xenial-Devil/Saha-ui)** • **[🐦 Follow on Twitter](https://twitter.com/saha-ui)** • **[💬 Join Discord](https://discord.gg/saha-ui)** -->
|
|
362
363
|
|
|
363
364
|
</div>
|
|
@@ -31,5 +31,5 @@ import { buttonVariants } from './Button.styles';
|
|
|
31
31
|
*/
|
|
32
32
|
declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
33
33
|
export default Button;
|
|
34
|
-
export { buttonVariants };
|
|
34
|
+
export { Button, buttonVariants };
|
|
35
35
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAmB,MAAM,iBAAiB,CAAC;AA+BlE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,QAAA,MAAM,MAAM,uFAoEX,CAAC;AAIF,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Button/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAmB,MAAM,iBAAiB,CAAC;AA+BlE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,QAAA,MAAM,MAAM,uFAoEX,CAAC;AAIF,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as _, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import * as t from "react";
|
|
3
3
|
import Se, { useMonaco as Le } from "@monaco-editor/react";
|
|
4
|
-
import { codeEditorVariants as xe } from "./
|
|
4
|
+
import { codeEditorVariants as xe } from "./CodeEditor.styles.js";
|
|
5
5
|
import { Toolbar as Ce } from "./Toolbar.js";
|
|
6
6
|
import { StatusBar as ye } from "./StatusBar.js";
|
|
7
7
|
import { TabBar as Me } from "./TabBar.js";
|
|
@@ -79,4 +79,4 @@ export declare const buttonVariants: (props?: ({
|
|
|
79
79
|
export declare const shimmerVariants: (props?: ({
|
|
80
80
|
variant?: "error" | "primary" | "secondary" | "success" | "warning" | "info" | "glass" | "accent" | "outline" | "ghost" | null | undefined;
|
|
81
81
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
82
|
-
//# sourceMappingURL=
|
|
82
|
+
//# sourceMappingURL=CodeEditor.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CodeEditor.styles.d.ts","sourceRoot":"","sources":["../../../src/components/CodeEditor/CodeEditor.styles.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,iBAAiB,GACzB,SAAS,GACT,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,SAAS,GACT,OAAO,GACP,MAAM,GACN,SAAS,GACT,OAAO,CAAC;AAEZ,MAAM,MAAM,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;AAE5D,MAAM,MAAM,eAAe,GACvB,OAAO,GACP,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,MAAM,GACN,WAAW,GACX,eAAe,GACf,cAAc,CAAC;AAMnB,eAAO,MAAM,kBAAkB;;;;;8EAiF9B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;8EA8BhC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;8EAiCjC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;8EAgC7B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;8EA8BnC,CAAC;AAGF,eAAO,MAAM,oBAAoB;;8EAmBhC,CAAC;AAGF,eAAO,MAAM,iBAAiB;;;8EAuD7B,CAAC;AAGF,eAAO,MAAM,qBAAqB;;;;8EA+IjC,CAAC;AAGF,eAAO,MAAM,oBAAoB;;;;;8EAoRhC,CAAC;AAGF,eAAO,MAAM,wBAAwB;;;8EA2BpC,CAAC;AAGF,eAAO,MAAM,oBAAoB;;;8EAuChC,CAAC;AAGF,eAAO,MAAM,qBAAqB;;;8EA4BjC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;8EAgCnC,CAAC;AAGF,eAAO,MAAM,qBAAqB;;;8EA4BjC,CAAC;AAGF,eAAO,MAAM,qBAAqB;;;8EA+BjC,CAAC;AAGF,eAAO,MAAM,0BAA0B;;;8EAsBtC,CAAC;AAGF,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC;AAC9C,MAAM,MAAM,mBAAmB,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAChE,MAAM,MAAM,kBAAkB,GAC1B,SAAS,GACT,SAAS,GACT,WAAW,GACX,QAAQ,GACR,MAAM,GACN,SAAS,GACT,SAAS,GACT,OAAO,CAAC;AAGZ,eAAO,MAAM,cAAc;;;8EAkC1B,CAAC;AAEF,eAAO,MAAM,eAAe;;8EAsB1B,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CodeEditorVariant, CodeEditorSize, CodeEditorTheme } from './
|
|
1
|
+
import { CodeEditorVariant, CodeEditorSize, CodeEditorTheme } from './CodeEditor.styles';
|
|
2
2
|
export type { CodeEditorVariant, CodeEditorSize, CodeEditorTheme };
|
|
3
3
|
export type LineNumbersSetting = "on" | "off" | "relative" | "interval";
|
|
4
4
|
export type IndentInfo = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeEditor.types.d.ts","sourceRoot":"","sources":["../../../src/components/CodeEditor/CodeEditor.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,eAAe,EAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"CodeEditor.types.d.ts","sourceRoot":"","sources":["../../../src/components/CodeEditor/CodeEditor.types.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,cAAc,EACd,eAAe,EAChB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,CAAC;AAEnE,MAAM,MAAM,kBAAkB,GAAG,IAAI,GAAG,KAAK,GAAG,UAAU,GAAG,UAAU,CAAC;AAExE,MAAM,MAAM,UAAU,GAAG;IAAE,YAAY,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AACpE,MAAM,MAAM,UAAU,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { editorTabVariants as d, editorTabBarVariants as p } from "./
|
|
2
|
+
import { editorTabVariants as d, editorTabBarVariants as p } from "./CodeEditor.styles.js";
|
|
3
3
|
const u = () => /* @__PURE__ */ t(
|
|
4
4
|
"svg",
|
|
5
5
|
{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as o, jsx as e, Fragment as s } from "react/jsx-runtime";
|
|
2
2
|
import * as k from "react";
|
|
3
|
-
import { editorSelectVariants as W, editorIconButtonVariants as a, editorActionVariants as j, editorToolbarVariants as B } from "./
|
|
3
|
+
import { editorSelectVariants as W, editorIconButtonVariants as a, editorActionVariants as j, editorToolbarVariants as B } from "./CodeEditor.styles.js";
|
|
4
4
|
const F = () => /* @__PURE__ */ o(
|
|
5
5
|
"svg",
|
|
6
6
|
{
|
|
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { forwardRef as k, useState as b, useEffect as y } from "react";
|
|
3
3
|
import { cn as N } from "../../lib/utils.js";
|
|
4
4
|
import { Card as g, CardHeader as A, CardTitle as v, CardDescription as z, CardFooter as j } from "../Card/index.js";
|
|
5
|
-
import r from "../Button/index.js";
|
|
5
|
+
import { Button as r } from "../Button/index.js";
|
|
6
6
|
import { cookieConsentVariants as w } from "./CookieConsent.styles.js";
|
|
7
7
|
const D = k(
|
|
8
8
|
({
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const countdownTimerVariants: (props?: ({
|
|
2
|
+
variant?: "primary" | "secondary" | "default" | "glass" | "outline" | null | undefined;
|
|
3
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
4
|
+
export declare const countdownDigitVariants: (props?: ({
|
|
5
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export declare const countdownLabelVariants: (props?: ({
|
|
8
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
9
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
10
|
+
export declare const countdownSeparatorVariants: (props?: ({
|
|
11
|
+
size?: "sm" | "md" | "lg" | "xl" | null | undefined;
|
|
12
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
13
|
+
//# sourceMappingURL=CountdownTimer.styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CountdownTimer.styles.d.ts","sourceRoot":"","sources":["../../../src/components/CountdownTimer/CountdownTimer.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB;;8EAgBlC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;8EAelC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;8EAelC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;8EAetC,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { cva as t } from "class-variance-authority";
|
|
2
|
+
const o = t(
|
|
3
|
+
"inline-flex items-start gap-2",
|
|
4
|
+
{
|
|
5
|
+
variants: {
|
|
6
|
+
variant: {
|
|
7
|
+
default: "text-foreground",
|
|
8
|
+
primary: "text-primary",
|
|
9
|
+
secondary: "text-secondary",
|
|
10
|
+
glass: "bg-white/10 dark:bg-black/10 backdrop-blur-md border border-white/20 p-4 rounded-xl",
|
|
11
|
+
outline: "border-2 border-border p-4 rounded-xl"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
defaultVariants: {
|
|
15
|
+
variant: "default"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
), a = t(
|
|
19
|
+
"tabular-nums leading-none",
|
|
20
|
+
{
|
|
21
|
+
variants: {
|
|
22
|
+
size: {
|
|
23
|
+
sm: "text-xl font-bold font-mono",
|
|
24
|
+
md: "text-3xl font-bold font-mono tracking-tight",
|
|
25
|
+
lg: "text-5xl font-black font-mono tracking-tighter",
|
|
26
|
+
xl: "text-7xl font-black font-mono tracking-tighter"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
defaultVariants: {
|
|
30
|
+
size: "md"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
), r = t(
|
|
34
|
+
"uppercase font-semibold text-muted-foreground",
|
|
35
|
+
{
|
|
36
|
+
variants: {
|
|
37
|
+
size: {
|
|
38
|
+
sm: "text-[10px] tracking-wider mt-1",
|
|
39
|
+
md: "text-xs tracking-wider mt-1",
|
|
40
|
+
lg: "text-sm tracking-wider mt-2",
|
|
41
|
+
xl: "text-base tracking-widest mt-3"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
defaultVariants: {
|
|
45
|
+
size: "md"
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
), e = t(
|
|
49
|
+
"opacity-50 mt-[-2px] sm:mt-[-4px]",
|
|
50
|
+
{
|
|
51
|
+
variants: {
|
|
52
|
+
size: {
|
|
53
|
+
sm: "text-xl font-bold font-mono",
|
|
54
|
+
md: "text-3xl font-bold font-mono tracking-tight",
|
|
55
|
+
lg: "text-5xl font-black font-mono tracking-tighter",
|
|
56
|
+
xl: "text-7xl font-black font-mono tracking-tighter"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
defaultVariants: {
|
|
60
|
+
size: "md"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
export {
|
|
65
|
+
a as countdownDigitVariants,
|
|
66
|
+
r as countdownLabelVariants,
|
|
67
|
+
e as countdownSeparatorVariants,
|
|
68
|
+
o as countdownTimerVariants
|
|
69
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CountdownTimer/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/CountdownTimer/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAQlE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,gHA2G1B,CAAC;AAIF,eAAe,cAAc,CAAC"}
|
|
@@ -1,86 +1,71 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { cn as
|
|
4
|
-
|
|
1
|
+
import { jsxs as c, Fragment as T, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as y, useMemo as D, useState as M, useEffect as N } from "react";
|
|
3
|
+
import { cn as S } from "../../lib/utils.js";
|
|
4
|
+
import { countdownTimerVariants as b, countdownDigitVariants as g, countdownLabelVariants as E, countdownSeparatorVariants as I } from "./CountdownTimer.styles.js";
|
|
5
|
+
const L = y(
|
|
5
6
|
({
|
|
6
|
-
targetDate:
|
|
7
|
-
onComplete:
|
|
8
|
-
showLabels:
|
|
9
|
-
variant:
|
|
10
|
-
size:
|
|
11
|
-
className:
|
|
12
|
-
...
|
|
13
|
-
},
|
|
14
|
-
const
|
|
7
|
+
targetDate: t,
|
|
8
|
+
onComplete: o,
|
|
9
|
+
showLabels: p = !0,
|
|
10
|
+
variant: h = "default",
|
|
11
|
+
size: i = "md",
|
|
12
|
+
className: x,
|
|
13
|
+
...v
|
|
14
|
+
}, w) => {
|
|
15
|
+
const d = D(() => t instanceof Date ? t : new Date(t), [t]), [s, u] = M({
|
|
15
16
|
days: 0,
|
|
16
17
|
hours: 0,
|
|
17
18
|
minutes: 0,
|
|
18
19
|
seconds: 0,
|
|
19
20
|
isExpired: !1
|
|
20
21
|
});
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
return
|
|
25
|
-
days: Math.floor(
|
|
26
|
-
hours: Math.floor(
|
|
27
|
-
minutes: Math.floor(
|
|
28
|
-
seconds: Math.floor(
|
|
22
|
+
N(() => {
|
|
23
|
+
const n = () => {
|
|
24
|
+
const r = d.getTime() - (/* @__PURE__ */ new Date()).getTime();
|
|
25
|
+
return r <= 0 ? (u({ days: 0, hours: 0, minutes: 0, seconds: 0, isExpired: !0 }), !0) : (u({
|
|
26
|
+
days: Math.floor(r / 864e5),
|
|
27
|
+
hours: Math.floor(r / 36e5 % 24),
|
|
28
|
+
minutes: Math.floor(r / 1e3 / 60 % 60),
|
|
29
|
+
seconds: Math.floor(r / 1e3 % 60),
|
|
29
30
|
isExpired: !1
|
|
30
31
|
}), !1);
|
|
31
32
|
};
|
|
32
|
-
if (
|
|
33
|
-
|
|
33
|
+
if (n()) {
|
|
34
|
+
o?.();
|
|
34
35
|
return;
|
|
35
36
|
}
|
|
36
|
-
const
|
|
37
|
-
|
|
37
|
+
const m = setInterval(() => {
|
|
38
|
+
n() && (clearInterval(m), o?.());
|
|
38
39
|
}, 1e3);
|
|
39
|
-
return () => clearInterval(
|
|
40
|
-
}, [
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
outline: "border-2 border-border p-4 rounded-xl"
|
|
47
|
-
}[b], f = {
|
|
48
|
-
sm: "text-xl font-bold font-mono",
|
|
49
|
-
md: "text-3xl font-bold font-mono tracking-tight",
|
|
50
|
-
lg: "text-5xl font-black font-mono tracking-tighter",
|
|
51
|
-
xl: "text-7xl font-black font-mono tracking-tighter"
|
|
52
|
-
}[c], v = {
|
|
53
|
-
sm: "text-[10px] uppercase font-semibold text-muted-foreground tracking-wider mt-1",
|
|
54
|
-
md: "text-xs uppercase font-semibold text-muted-foreground tracking-wider mt-1",
|
|
55
|
-
lg: "text-sm uppercase font-semibold text-muted-foreground tracking-wider mt-2",
|
|
56
|
-
xl: "text-base uppercase font-semibold text-muted-foreground tracking-widest mt-3"
|
|
57
|
-
}[c], n = ({ value: o, label: x }) => /* @__PURE__ */ l("div", { className: "flex flex-col items-center justify-center min-w-[50px]", children: [
|
|
58
|
-
/* @__PURE__ */ e("span", { className: d(f, "tabular-nums leading-none"), children: String(o).padStart(2, "0") }),
|
|
59
|
-
g && /* @__PURE__ */ e("span", { className: v, children: x })
|
|
60
|
-
] }), i = () => /* @__PURE__ */ e("div", { className: d(f, "mt-[-2px] sm:mt-[-4px] opacity-50"), children: ":" });
|
|
61
|
-
return /* @__PURE__ */ l(
|
|
40
|
+
return () => clearInterval(m);
|
|
41
|
+
}, [d, o]);
|
|
42
|
+
const a = ({ value: n, label: f }) => /* @__PURE__ */ c("div", { className: "flex flex-col items-center justify-center min-w-[50px]", children: [
|
|
43
|
+
/* @__PURE__ */ e("span", { className: g({ size: i }), children: String(n).padStart(2, "0") }),
|
|
44
|
+
p && /* @__PURE__ */ e("span", { className: E({ size: i }), children: f })
|
|
45
|
+
] }), l = () => /* @__PURE__ */ e("div", { className: I({ size: i }), children: ":" });
|
|
46
|
+
return /* @__PURE__ */ c(
|
|
62
47
|
"div",
|
|
63
48
|
{
|
|
64
|
-
ref:
|
|
65
|
-
className:
|
|
66
|
-
...
|
|
49
|
+
ref: w,
|
|
50
|
+
className: S(b({ variant: h }), x),
|
|
51
|
+
...v,
|
|
67
52
|
children: [
|
|
68
|
-
|
|
69
|
-
/* @__PURE__ */ e(
|
|
70
|
-
/* @__PURE__ */ e(
|
|
53
|
+
s.days > 0 && /* @__PURE__ */ c(T, { children: [
|
|
54
|
+
/* @__PURE__ */ e(a, { value: s.days, label: "Days" }),
|
|
55
|
+
/* @__PURE__ */ e(l, {})
|
|
71
56
|
] }),
|
|
72
|
-
/* @__PURE__ */ e(
|
|
73
|
-
/* @__PURE__ */ e(
|
|
74
|
-
/* @__PURE__ */ e(
|
|
75
|
-
/* @__PURE__ */ e(
|
|
76
|
-
/* @__PURE__ */ e(
|
|
57
|
+
/* @__PURE__ */ e(a, { value: s.hours, label: "Hours" }),
|
|
58
|
+
/* @__PURE__ */ e(l, {}),
|
|
59
|
+
/* @__PURE__ */ e(a, { value: s.minutes, label: "Mins" }),
|
|
60
|
+
/* @__PURE__ */ e(l, {}),
|
|
61
|
+
/* @__PURE__ */ e(a, { value: s.seconds, label: "Secs" })
|
|
77
62
|
]
|
|
78
63
|
}
|
|
79
64
|
);
|
|
80
65
|
}
|
|
81
66
|
);
|
|
82
|
-
|
|
67
|
+
L.displayName = "CountdownTimer";
|
|
83
68
|
export {
|
|
84
|
-
|
|
85
|
-
|
|
69
|
+
L as CountdownTimer,
|
|
70
|
+
L as default
|
|
86
71
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DateRangePicker.styles.d.ts","sourceRoot":"","sources":["../../../src/components/DateRangePicker/DateRangePicker.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,uBAAuB,oFAAyB,CAAC"}
|