@cyclone-ui/helpers 0.3.1

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 (59) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/LICENSE +187 -0
  3. package/README.md +303 -0
  4. package/dist/get-button-sized.cjs +1 -0
  5. package/dist/get-button-sized.d.cts +29 -0
  6. package/dist/get-button-sized.d.cts.map +1 -0
  7. package/dist/get-button-sized.d.mts +29 -0
  8. package/dist/get-button-sized.d.mts.map +1 -0
  9. package/dist/get-button-sized.mjs +2 -0
  10. package/dist/get-button-sized.mjs.map +1 -0
  11. package/dist/get-colors.cjs +1 -0
  12. package/dist/get-colors.d.cts +7 -0
  13. package/dist/get-colors.d.cts.map +1 -0
  14. package/dist/get-colors.d.mts +7 -0
  15. package/dist/get-colors.d.mts.map +1 -0
  16. package/dist/get-colors.mjs +2 -0
  17. package/dist/get-colors.mjs.map +1 -0
  18. package/dist/get-font-sized.cjs +1 -0
  19. package/dist/get-font-sized.d.cts +22 -0
  20. package/dist/get-font-sized.d.cts.map +1 -0
  21. package/dist/get-font-sized.d.mts +22 -0
  22. package/dist/get-font-sized.d.mts.map +1 -0
  23. package/dist/get-font-sized.mjs +2 -0
  24. package/dist/get-font-sized.mjs.map +1 -0
  25. package/dist/get-nearest-token.cjs +1 -0
  26. package/dist/get-nearest-token.d.cts +6 -0
  27. package/dist/get-nearest-token.d.cts.map +1 -0
  28. package/dist/get-nearest-token.d.mts +6 -0
  29. package/dist/get-nearest-token.d.mts.map +1 -0
  30. package/dist/get-nearest-token.mjs +2 -0
  31. package/dist/get-nearest-token.mjs.map +1 -0
  32. package/dist/get-sized.cjs +1 -0
  33. package/dist/get-sized.d.cts +61 -0
  34. package/dist/get-sized.d.cts.map +1 -0
  35. package/dist/get-sized.d.mts +61 -0
  36. package/dist/get-sized.d.mts.map +1 -0
  37. package/dist/get-sized.mjs +2 -0
  38. package/dist/get-sized.mjs.map +1 -0
  39. package/dist/index.cjs +1 -0
  40. package/dist/index.d.cts +7 -0
  41. package/dist/index.d.mts +7 -0
  42. package/dist/index.mjs +1 -0
  43. package/dist/token-value-DV6eTPCJ.d.cts +19 -0
  44. package/dist/token-value-DV6eTPCJ.d.cts.map +1 -0
  45. package/dist/token-value-DV6eTPCJ.d.mts +19 -0
  46. package/dist/token-value-DV6eTPCJ.d.mts.map +1 -0
  47. package/dist/token-value.cjs +1 -0
  48. package/dist/token-value.d.cts +2 -0
  49. package/dist/token-value.d.mts +2 -0
  50. package/dist/token-value.mjs +2 -0
  51. package/dist/token-value.mjs.map +1 -0
  52. package/dist/types.cjs +1 -0
  53. package/dist/types.d.cts +22 -0
  54. package/dist/types.d.cts.map +1 -0
  55. package/dist/types.d.mts +22 -0
  56. package/dist/types.d.mts.map +1 -0
  57. package/dist/types.mjs +2 -0
  58. package/dist/types.mjs.map +1 -0
  59. package/package.json +146 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ ## 0.3.0 (2024-06-13)
2
+
3
+ ### 🚀 Features
4
+
5
+ - **monorepo:** Added additional theme utilities packages
6
+ ([64d1596](https://github.com/storm-software/cyclone-ui/commit/64d1596))
7
+
8
+ ## 0.2.0 (2024-06-09)
9
+
10
+ ### 🚀 Features
11
+
12
+ - **monorepo:** Add publish target to project configuration
13
+ ([369a520](https://github.com/storm-software/cyclone-ui/commit/369a520))
package/LICENSE ADDED
@@ -0,0 +1,187 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction, and
10
+ distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by the
13
+ copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all other
16
+ entities that control, are controlled by, or are under common control with
17
+ that entity. For the purposes of this definition, "control" means (i) the
18
+ power, direct or indirect, to cause the direction or management of such
19
+ entity, whether by contract or otherwise, or (ii) ownership of fifty percent
20
+ (50%) or more of the outstanding shares, or (iii) beneficial ownership of
21
+ such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity exercising
24
+ permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation source, and
28
+ configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical transformation or
31
+ translation of a Source form, including but not limited to compiled object
32
+ code, generated documentation, and conversions to other media types.
33
+
34
+ "Work" shall mean the work of authorship, whether in Source or Object form,
35
+ made available under the License, as indicated by a copyright notice that is
36
+ included in or attached to the work (an example is provided in the Appendix
37
+ below).
38
+
39
+ "Derivative Works" shall mean any work, whether in Source or Object form,
40
+ that is based on (or derived from) the Work and for which the editorial
41
+ revisions, annotations, elaborations, or other modifications represent, as a
42
+ whole, an original work of authorship. For the purposes of this License,
43
+ Derivative Works shall not include works that remain separable from, or
44
+ merely link (or bind by name) to the interfaces of, the Work and Derivative
45
+ Works thereof.
46
+
47
+ "Contribution" shall mean any work of authorship, including the original
48
+ version of the Work and any modifications or additions to that Work or
49
+ Derivative Works thereof, that is intentionally submitted to Licensor for
50
+ inclusion in the Work by the copyright owner or by an individual or Legal
51
+ Entity authorized to submit on behalf of the copyright owner. For the
52
+ purposes of this definition, "submitted" means any form of electronic,
53
+ verbal, or written communication sent to the Licensor or its representatives,
54
+ including but not limited to communication on electronic mailing lists,
55
+ source code control systems, and issue tracking systems that are managed by,
56
+ or on behalf of, the Licensor for the purpose of discussing and improving the
57
+ Work, but excluding communication that is conspicuously marked or otherwise
58
+ designated in writing by the copyright owner as "Not a Contribution."
59
+
60
+ "Contributor" shall mean Licensor and any individual or Legal Entity on
61
+ behalf of whom a Contribution has been received by Licensor and subsequently
62
+ incorporated within the Work.
63
+
64
+ 2. Grant of Copyright License. Subject to the terms and conditions of this
65
+ License, each Contributor hereby grants to You a perpetual, worldwide,
66
+ non-exclusive, no-charge, royalty-free, irrevocable copyright license to
67
+ reproduce, prepare Derivative Works of, publicly display, publicly perform,
68
+ sublicense, and distribute the Work and such Derivative Works in Source or
69
+ Object form.
70
+
71
+ 3. Grant of Patent License. Subject to the terms and conditions of this License,
72
+ each Contributor hereby grants to You a perpetual, worldwide, non-exclusive,
73
+ no-charge, royalty-free, irrevocable (except as stated in this section)
74
+ patent license to make, have made, use, offer to sell, sell, import, and
75
+ otherwise transfer the Work, where such license applies only to those patent
76
+ claims licensable by such Contributor that are necessarily infringed by their
77
+ Contribution(s) alone or by combination of their Contribution(s) with the
78
+ Work to which such Contribution(s) was submitted. If You institute patent
79
+ litigation against any entity (including a cross-claim or counterclaim in a
80
+ lawsuit) alleging that the Work or a Contribution incorporated within the
81
+ Work constitutes direct or contributory patent infringement, then any patent
82
+ licenses granted to You under this License for that Work shall terminate as
83
+ of the date such litigation is filed.
84
+
85
+ 4. Redistribution. You may reproduce and distribute copies of the Work or
86
+ Derivative Works thereof in any medium, with or without modifications, and in
87
+ Source or Object form, provided that You meet the following conditions:
88
+
89
+ (a) You must give any other recipients of the Work or Derivative Works a copy
90
+ of this License; and
91
+
92
+ (b) You must cause any modified files to carry prominent notices stating that
93
+ You changed the files; and
94
+
95
+ (c) You must retain, in the Source form of any Derivative Works that You
96
+ distribute, all copyright, patent, trademark, and attribution notices from
97
+ the Source form of the Work, excluding those notices that do not pertain to
98
+ any part of the Derivative Works; and
99
+
100
+ (d) If the Work includes a "NOTICE" text file as part of its distribution,
101
+ then any Derivative Works that You distribute must include a readable copy of
102
+ the attribution notices contained within such NOTICE file, excluding those
103
+ notices that do not pertain to any part of the Derivative Works, in at least
104
+ one of the following places: within a NOTICE text file distributed as part of
105
+ the Derivative Works; within the Source form or documentation, if provided
106
+ along with the Derivative Works; or, within a display generated by the
107
+ Derivative Works, if and wherever such third-party notices normally appear.
108
+ The contents of the NOTICE file are for informational purposes only and do
109
+ not modify the License. You may add Your own attribution notices within
110
+ Derivative Works that You distribute, alongside or as an addendum to the
111
+ NOTICE text from the Work, provided that such additional attribution notices
112
+ cannot be construed as modifying the License.
113
+
114
+ You may add Your own copyright statement to Your modifications and may
115
+ provide additional or different license terms and conditions for use,
116
+ reproduction, or distribution of Your modifications, or for any such
117
+ Derivative Works as a whole, provided Your use, reproduction, and
118
+ distribution of the Work otherwise complies with the conditions stated in
119
+ this License.
120
+
121
+ 5. Submission of Contributions. Unless You explicitly state otherwise, any
122
+ Contribution intentionally submitted for inclusion in the Work by You to the
123
+ Licensor shall be under the terms and conditions of this License, without any
124
+ additional terms or conditions. Notwithstanding the above, nothing herein
125
+ shall supersede or modify the terms of any separate license agreement you may
126
+ have executed with Licensor regarding such Contributions.
127
+
128
+ 6. Trademarks. This License does not grant permission to use the trade names,
129
+ trademarks, service marks, or product names of the Licensor, except as
130
+ required for reasonable and customary use in describing the origin of the
131
+ Work and reproducing the content of the NOTICE file.
132
+
133
+ 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in
134
+ writing, Licensor provides the Work (and each Contributor provides its
135
+ Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
136
+ KIND, either express or implied, including, without limitation, any
137
+ warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or
138
+ FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining
139
+ the appropriateness of using or redistributing the Work and assume any risks
140
+ associated with Your exercise of permissions under this License.
141
+
142
+ 8. Limitation of Liability. In no event and under no legal theory, whether in
143
+ tort (including negligence), contract, or otherwise, unless required by
144
+ applicable law (such as deliberate and grossly negligent acts) or agreed to
145
+ in writing, shall any Contributor be liable to You for damages, including any
146
+ direct, indirect, special, incidental, or consequential damages of any
147
+ character arising as a result of this License or out of the use or inability
148
+ to use the Work (including but not limited to damages for loss of goodwill,
149
+ work stoppage, computer failure or malfunction, or any and all other
150
+ commercial damages or losses), even if such Contributor has been advised of
151
+ the possibility of such damages.
152
+
153
+ 9. Accepting Warranty or Additional Liability. While redistributing the Work or
154
+ Derivative Works thereof, You may choose to offer, and charge a fee for,
155
+ acceptance of support, warranty, indemnity, or other liability obligations
156
+ and/or rights consistent with this License. However, in accepting such
157
+ obligations, You may act only on Your own behalf and on Your sole
158
+ responsibility, not on behalf of any other Contributor, and only if You agree
159
+ to indemnify, defend, and hold each Contributor harmless for any liability
160
+ incurred by, or claims asserted against, such Contributor by reason of your
161
+ accepting any such warranty or additional liability.
162
+
163
+ END OF TERMS AND CONDITIONS
164
+
165
+ APPENDIX: How to apply the Apache License to your work.
166
+
167
+ To apply the Apache License to your work, attach the following
168
+ boilerplate notice, with the fields enclosed by brackets "[]"
169
+ replaced with your own identifying information. (Don't include
170
+ the brackets!) The text should be enclosed in the appropriate
171
+ comment syntax for the file format. We also recommend that a
172
+ file or class name and description of purpose be included on the
173
+ same "printed page" as the copyright notice for easier
174
+ identification within third-party archives.
175
+
176
+ Copyright [yyyy] [name of copyright owner]
177
+
178
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
179
+ this file except in compliance with the License. You may obtain a copy of the
180
+ License at
181
+
182
+ http://www.apache.org/licenses/LICENSE-2.0
183
+
184
+ Unless required by applicable law or agreed to in writing, software distributed
185
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
186
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
187
+ specific language governing permissions and limitations under the License.
package/README.md ADDED
@@ -0,0 +1,303 @@
1
+ <!-- START header -->
2
+ <!-- prettier-ignore-start -->
3
+ <!-- markdownlint-disable -->
4
+
5
+
6
+ <div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/storm-banner.gif" width="100%" alt="Storm Software" /></div>
7
+ <br />
8
+
9
+ <div align="center">
10
+ <b>
11
+ <a href="https://stormsoftware.com" target="_blank">Website</a> •
12
+ <a href="https://github.com/storm-software/cyclone-ui" target="_blank">GitHub</a> •
13
+ <a href="https://discord.gg/MQ6YVzakM5">Discord</a> • <a href="https://docs.stormsoftware.com/cyclone-ui" target="_blank">Docs</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> •
14
+ <a href="https://github.com/storm-software/cyclone-ui/issues/new?assignees=&labels=bug&template=bug-report.yml&title=Bug Report%3A+">Report a Bug</a>
15
+ </b>
16
+ </div>
17
+
18
+ <br />
19
+ This package is part of the <b>🌀 Cyclone UI</b> monorepo. The repository contains <a href="https://tamagui.dev" target="_blank">Tamagui</a> based design components used by Storm Software. Like <a href="https://ui.shadcn.com" target="_blank">Shadcn UI</a>, the components are copied into other repositories via the Cyclone CLI.
20
+ <br />
21
+
22
+ ### 💻 Visit [stormsoftware.com](https://stormsoftware.com) to stay up to date with this developer<br />
23
+
24
+ [![Version](https://img.shields.io/badge/version-0.3.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/cyclone-ui/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
+
26
+ <!-- prettier-ignore-start -->
27
+ <!-- markdownlint-disable -->
28
+
29
+ > [!IMPORTANT]
30
+ > This repository, and the apps, libraries, and tools contained within, is still in it's initial development phase. As a result, bugs and issues are expected with it's usage. When the main development phase completes, a proper release will be performed, the packages will be availible through NPM (and other distributions), and this message will be removed. However, in the meantime, please feel free to report any issues you may come across.
31
+
32
+ <!-- markdownlint-restore -->
33
+ <!-- prettier-ignore-end -->
34
+
35
+ <br />
36
+
37
+ <!-- markdownlint-restore -->
38
+ <!-- prettier-ignore-end -->
39
+
40
+ <!-- END header -->
41
+
42
+ # Cyclone-UI Helpers package
43
+
44
+ A package containing various helper utilities used in Storm Software applications
45
+
46
+ <!-- START doctoc -->
47
+ <!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
48
+ ## Table of Contents
49
+
50
+ - [Installing](#installing)
51
+ - [Reduced Package Size](#reduced-package-size)
52
+ - [Development](#development)
53
+ - [Building](#building)
54
+ - [Running unit tests](#running-unit-tests)
55
+ - [Linting](#linting)
56
+ - [Storm Workspaces](#storm-workspaces)
57
+ - [Roadmap](#roadmap)
58
+ - [Support](#support)
59
+ - [License](#license)
60
+ - [Documentation](#documentation)
61
+ - [Changelog](#changelog)
62
+ - [Contributing](#contributing)
63
+ - [Contributors](#contributors)
64
+ - [💻 Visit stormsoftware.com to stay up to date with this developer](#-visit-stormsoftwarecom-to-stay-up-to-date-with-this-developer)
65
+
66
+ <!-- END doctoc -->
67
+
68
+ ## Installing
69
+
70
+ Using [pnpm](http://pnpm.io):
71
+
72
+ ```bash
73
+ pnpm add -D @cyclone-ui/helpers
74
+ ```
75
+
76
+ <details>
77
+ <summary>Using npm</summary>
78
+
79
+ ```bash
80
+ npm install -D @cyclone-ui/helpers
81
+ ```
82
+
83
+ </details>
84
+
85
+ <details>
86
+ <summary>Using yarn</summary>
87
+
88
+ ```bash
89
+ yarn add -D @cyclone-ui/helpers
90
+ ```
91
+
92
+ </details>
93
+
94
+ ## Reduced Package Size
95
+
96
+ This project uses [tsup](https://tsup.egoist.dev/) to package the source code
97
+ due to its ability to remove unused code and ship smaller javascript files
98
+ thanks to code splitting. This helps to greatly reduce the size of the package
99
+ and to make it easier to use in other projects.
100
+
101
+ ## Development
102
+
103
+ This project is built using [Nx](https://nx.dev). As a result, many of the usual
104
+ commands are available to assist in development.
105
+
106
+ ### Building
107
+
108
+ Run `nx build helpers` to build the library.
109
+
110
+ ### Running unit tests
111
+
112
+ Run `nx test helpers` to execute the unit tests via
113
+ [Vitest](https://vitest.dev).
114
+
115
+ ### Linting
116
+
117
+ Run `nx lint helpers` to run [ESLint](https://eslint.org/) on the package.
118
+
119
+ <!-- START footer -->
120
+ <!-- prettier-ignore-start -->
121
+ <!-- markdownlint-disable -->
122
+
123
+
124
+ ## Storm Workspaces
125
+
126
+ Storm workspaces are built using
127
+ <a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools
128
+ for monorepos, which helps you develop like Google, Facebook, and Microsoft.
129
+ Building on top of Nx, the Open System provides a set of tools and patterns that
130
+ help you scale your monorepo to many teams while keeping the codebase
131
+ maintainable.
132
+
133
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
134
+ <br />
135
+
136
+ ## Roadmap
137
+
138
+ See the [open issues](https://github.com/storm-software/cyclone-ui/issues) for a
139
+ list of proposed features (and known issues).
140
+
141
+ - [Top Feature Requests](https://github.com/storm-software/cyclone-ui/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc)
142
+ (Add your votes using the 👍 reaction)
143
+ - [Top Bugs](https://github.com/storm-software/cyclone-ui/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc)
144
+ (Add your votes using the 👍 reaction)
145
+ - [Newest Bugs](https://github.com/storm-software/cyclone-ui/issues?q=is%3Aopen+is%3Aissue+label%3Abug)
146
+
147
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
148
+ <br />
149
+
150
+ ## Support
151
+
152
+ Reach out to the maintainer at one of the following places:
153
+
154
+ - [Contact](https://stormsoftware.com/contact)
155
+ - [GitHub discussions](https://github.com/storm-software/cyclone-ui/discussions)
156
+ - <support@stormsoftware.com>
157
+
158
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
159
+ <br />
160
+
161
+ ## License
162
+
163
+ This project is licensed under the **Apache License, Version 2.0**. Feel free to
164
+ edit and distribute this template as you like.
165
+
166
+ ```
167
+ Copyright (C) 2023 - 2024 Storm Software
168
+
169
+ Licensed under the Apache License, Version 2.0 (the "License");
170
+ you may not use this file except in compliance with the License.
171
+ You may obtain a copy of the License at
172
+
173
+ http://www.apache.org/licenses/LICENSE-2.0
174
+
175
+ Unless required by applicable law or agreed to in writing, software
176
+ distributed under the License is distributed on an "AS IS" BASIS,
177
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
178
+ See the License for the specific language governing permissions and
179
+ limitations under the License.
180
+ ```
181
+
182
+ See [LICENSE](LICENSE) for more information.
183
+
184
+ ### Documentation
185
+
186
+ All documentation is licensed under the
187
+ [Creative Commons](http://creativecommons.org/licenses/by/4.0/) (attribute)
188
+ license.
189
+
190
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
191
+ <br />
192
+
193
+ ## Changelog
194
+
195
+ This project adheres to
196
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along
197
+ with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md)
198
+ file
199
+
200
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
201
+ <br />
202
+
203
+ ## Contributing
204
+
205
+ First off, thanks for taking the time to contribute! Contributions are what
206
+ makes the open-source community such an amazing place to learn, inspire, and
207
+ create. Any contributions you make will benefit everybody else and are **greatly
208
+ appreciated**.
209
+
210
+ Please try to create bug reports that are:
211
+
212
+ - _Reproducible._ Include steps to reproduce the problem.
213
+ - _Specific._ Include as much detail as possible: which version, what
214
+ environment, etc.
215
+ - _Unique._ Do not duplicate existing opened issues.
216
+ - _Scoped to a Single Bug._ One bug per report.
217
+
218
+ Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md).
219
+
220
+ You can use
221
+ [markdownlint-cli](https://github.com/storm-software/cyclone-ui/markdownlint-cli)
222
+ to check for common markdown style inconsistency.
223
+
224
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
225
+ <br />
226
+
227
+ ## Contributors
228
+
229
+ Thanks goes to these wonderful people
230
+ ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
231
+
232
+ <!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
233
+
234
+ <table>
235
+ <tbody>
236
+ <tr>
237
+ <td align="center" valign="top" width="14.28%"><a href="https://patsullivan.org"><img src="https://avatars.githubusercontent.com/u/99053093?v=4?s=100" width="100px;" alt="Patrick Sullivan"/><br /><sub><b>Patrick Sullivan</b></sub></a><br /><a href="#design-sullivanpj" title="Design">🎨</a> <a href="https://github.com/storm-software/cyclone-ui/commits?author=sullivanpj" title="Code">💻</a> <a href="#tool-sullivanpj" title="Tools">🔧</a> <a href="https://github.com/storm-software/cyclone-ui/commits?author=sullivanpj" title="Documentation">📖</a> <a href="https://github.com/storm-software/cyclone-ui/commits?author=sullivanpj" title="Tests">⚠️</a></td>
238
+ <td align="center" valign="top" width="14.28%"><a href="https://tylerbenning.com/"><img src="https://avatars.githubusercontent.com/u/7265547?v=4?s=100" width="100px;" alt="Tyler Benning"/><br /><sub><b>Tyler Benning</b></sub></a><br /><a href="#design-tbenning" title="Design">🎨</a></td>
239
+ <td align="center" valign="top" width="14.28%"><a href="http://stormsoftware.com"><img src="https://avatars.githubusercontent.com/u/149802440?v=4?s=100" width="100px;" alt="Stormie"/><br /><sub><b>Stormie</b></sub></a><br /><a href="#maintenance-stormie-bot" title="Maintenance">🚧</a></td>
240
+ </tr>
241
+ </tbody>
242
+ <tfoot>
243
+ <tr>
244
+ <td align="center" size="13px" colspan="7">
245
+ <img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg" alt="All Contributors">
246
+ <a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a>
247
+ </img>
248
+ </td>
249
+ </tr>
250
+ </tfoot>
251
+ </table>
252
+
253
+ <!-- ALL-CONTRIBUTORS-LIST:END -->
254
+
255
+ This project follows the
256
+ [all-contributors](https://github.com/all-contributors/all-contributors)
257
+ specification. Contributions of any kind welcome!
258
+
259
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
260
+ <br />
261
+
262
+ <hr />
263
+ <br />
264
+
265
+ <div align="center">
266
+ <img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%" alt="Storm Software" />
267
+ </div>
268
+ <br />
269
+
270
+ <div align="center">
271
+ <b>
272
+ <a href="https://stormsoftware.com" target="_blank">Website</a> • <a href="https://stormsoftware.com/contact" target="_blank">Contact</a> • <a href="https://discord.gg/MQ6YVzakM5">Discord</a> • <a href="https://linkedin.com/in/pat-sullivan-dev" target="_blank">LinkedIn</a> • <a href="https://medium.com/@pat.joseph.sullivan" target="_blank">Medium</a> • <a href="https://github.com/storm-software" target="_blank">GitHub</a> • <a href="https://keybase.io/sullivanp" target="_blank">OpenPGP Key</a>
273
+ </b>
274
+ </div>
275
+
276
+ <div align="center">
277
+ <b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D
278
+ </div>
279
+ <br />
280
+
281
+ Storm Software is an open source software development organization and creator
282
+ of Acidic, StormStack and StormCloud.
283
+
284
+ Our mission is to make software development more accessible. Our ideal future is
285
+ one where anyone can create software without years of prior development
286
+ experience serving as a barrier to entry. We hope to achieve this via LLMs,
287
+ Generative AI, and intuitive, high-level data modeling/programming languages.
288
+
289
+ If this sounds interesting, and you would like to help us in creating the next
290
+ generation of development tools, please reach out on our website!
291
+
292
+ <br />
293
+ ### 💻 Visit [stormsoftware.com](https://stormsoftware.com) to stay up to date with this developer
294
+
295
+ <br />
296
+ <div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div>
297
+ <br />
298
+
299
+
300
+ <!-- markdownlint-restore -->
301
+ <!-- prettier-ignore-end -->
302
+
303
+ <!-- END footer -->
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./token-value.cjs");let t=require("@stryke/type-checks/is-number"),n=require("@tamagui/get-token");const r=e=>{if(typeof e==`number`)return e;if(e&&typeof e==`object`&&`val`in e){let t=e.val;return typeof t==`number`?t:void 0}},i=(e,t)=>{if(!e||typeof e!=`object`)return;let n=e,r=t.replace(/^\$/,``);return n[t]??n[`$${r}`]??n[r]},a=t=>{let n=String(e.normalizeTokenValue(t));return n===`$true`||n===`true`?`$5xl`:n},o=(o,{props:s,tokens:c})=>{if(!o)return;let l=!!s.circular,u=l?1e5:`$button`,d=e.normalizeTokenValue(o);if((0,t.isNumber)(d))return{paddingHorizontal:l?0:d*.25,gap:l?0:d*.25,height:d,minHeight:d,...l?{width:d,minWidth:d}:{minWidth:`fit-content`},borderRadius:u};let f=a(d),p=r(i(c?.size,f))??r(i(c?.size,`5xl`))??r((0,n.getSize)(f))??44,m=r((0,n.getSpace)(f,{shift:-1}))??r(i(c?.space,`2xl`))??10;return{paddingHorizontal:l?0:m,gap:l?0:m,height:p,minHeight:p,...l?{width:p,minWidth:p}:{minWidth:`fit-content`},borderRadius:u}};exports.getButtonSized=o;
@@ -0,0 +1,29 @@
1
+ import { t as TokenValue } from "./token-value-DV6eTPCJ.cjs";
2
+ import { VariantSpreadExtras } from "@tamagui/core";
3
+ //#region src/get-button-sized.d.ts
4
+ /**
5
+ * Get the sizing related style values for a button component based on the size token or number
6
+ *
7
+ * @param val - The size token or number to use
8
+ * @param param - The props to use
9
+ * @returns The style values for the button sizing
10
+ */
11
+ declare const getButtonSized: (val: TokenValue, { props, tokens }: VariantSpreadExtras<any>) => {
12
+ borderRadius: string | number;
13
+ width: number;
14
+ minWidth: number;
15
+ paddingHorizontal: number;
16
+ gap: number;
17
+ height: number;
18
+ minHeight: number;
19
+ } | {
20
+ borderRadius: string | number;
21
+ minWidth: string;
22
+ paddingHorizontal: number;
23
+ gap: number;
24
+ height: number;
25
+ minHeight: number;
26
+ } | undefined;
27
+ //#endregion
28
+ export { getButtonSized };
29
+ //# sourceMappingURL=get-button-sized.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-button-sized.d.cts","names":[],"sources":["../src/get-button-sized.ts"],"mappings":";;;;;;;;;;cAgEa,iBACX,KAAK,cACL,OAAA,UAAmB"}
@@ -0,0 +1,29 @@
1
+ import { t as TokenValue } from "./token-value-DV6eTPCJ.mjs";
2
+ import { VariantSpreadExtras } from "@tamagui/core";
3
+ //#region src/get-button-sized.d.ts
4
+ /**
5
+ * Get the sizing related style values for a button component based on the size token or number
6
+ *
7
+ * @param val - The size token or number to use
8
+ * @param param - The props to use
9
+ * @returns The style values for the button sizing
10
+ */
11
+ declare const getButtonSized: (val: TokenValue, { props, tokens }: VariantSpreadExtras<any>) => {
12
+ borderRadius: string | number;
13
+ width: number;
14
+ minWidth: number;
15
+ paddingHorizontal: number;
16
+ gap: number;
17
+ height: number;
18
+ minHeight: number;
19
+ } | {
20
+ borderRadius: string | number;
21
+ minWidth: string;
22
+ paddingHorizontal: number;
23
+ gap: number;
24
+ height: number;
25
+ minHeight: number;
26
+ } | undefined;
27
+ //#endregion
28
+ export { getButtonSized };
29
+ //# sourceMappingURL=get-button-sized.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-button-sized.d.mts","names":[],"sources":["../src/get-button-sized.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{normalizeTokenValue as e}from"./token-value.mjs";import{isNumber as t}from"@stryke/type-checks/is-number";import{getSize as n,getSpace as r}from"@tamagui/get-token";const i=e=>{if(typeof e==`number`)return e;if(e&&typeof e==`object`&&`val`in e){let t=e.val;return typeof t==`number`?t:void 0}},a=(e,t)=>{if(!e||typeof e!=`object`)return;let n=e,r=t.replace(/^\$/,``);return n[t]??n[`$${r}`]??n[r]},o=t=>{let n=String(e(t));return n===`$true`||n===`true`?`$5xl`:n},s=(s,{props:c,tokens:l})=>{if(!s)return;let u=!!c.circular,d=u?1e5:`$button`,f=e(s);if(t(f))return{paddingHorizontal:u?0:f*.25,gap:u?0:f*.25,height:f,minHeight:f,...u?{width:f,minWidth:f}:{minWidth:`fit-content`},borderRadius:d};let p=o(f),m=i(a(l?.size,p))??i(a(l?.size,`5xl`))??i(n(p))??44,h=i(r(p,{shift:-1}))??i(a(l?.space,`2xl`))??10;return{paddingHorizontal:u?0:h,gap:u?0:h,height:m,minHeight:m,...u?{width:m,minWidth:m}:{minWidth:`fit-content`},borderRadius:d}};export{s as getButtonSized};
2
+ //# sourceMappingURL=get-button-sized.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-button-sized.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},s=(n,r,s)=>(s=n==null?{}:e(i(n)),o(r||!n||!n.__esModule||!a.call(n,`default`)?t(s,`default`,{value:n,enumerable:!0}):s,n));const c=require("./types.cjs");let l=require("chroma-js");l=s(l,1);const u={[c.ColorScientificPalette.SURROUNDING]:[330,0,30],[c.ColorScientificPalette.ANALOGOUS]:[60,0,30],[c.ColorScientificPalette.TRIADIC]:[240,0,120],[c.ColorScientificPalette.TETRADIC]:[0,90,180,270],[c.ColorScientificPalette.COMPLEMENTARY]:[0,180],[c.ColorScientificPalette.SPLIT_COMPLEMENTARY]:[210,0,150]},d=new Map,f=e=>{if(d.has(e))return d.get(e);let t=(0,l.default)(e).get(`oklch.h`),n=Object.keys(u).reduce((n,r)=>(n[r]=u[r].map(n=>{let r=t+n;return r<0&&(r+=Math.ceil(-r/360)*360),(0,l.default)(e).set(`oklch.h`,r%360)}),n),{});return d.set(e,n),n},p=new Map,m=(e,t)=>{if(p.has(e))return p.get(e);let n=Object.entries(f(e)).reduce((e,[n,r])=>(e[n]=l.default.scale(r).mode(`hsl`).colors(t??(n===c.ColorScientificPalette.COMPLEMENTARY?2:n===c.ColorScientificPalette.TETRADIC?4:3)).map(e=>(0,l.default)(e).css(`hsl`)),e),{});return p.set(e,n),n};exports.createScientificPalettes=f,exports.createStylePalettes=m;
@@ -0,0 +1,7 @@
1
+ import { ColorScientificPaletteRecord, ColorStylePaletteRecord } from "./types.cjs";
2
+ //#region src/get-colors.d.ts
3
+ declare const createScientificPalettes: (color: string) => ColorScientificPaletteRecord;
4
+ declare const createStylePalettes: (color: string, scale?: number) => ColorStylePaletteRecord;
5
+ //#endregion
6
+ export { createScientificPalettes, createStylePalettes };
7
+ //# sourceMappingURL=get-colors.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-colors.d.cts","names":[],"sources":["../src/get-colors.ts"],"mappings":";;cAoCa,2BACX,kBACC;cA4BU,sBACX,eACA,mBACC"}
@@ -0,0 +1,7 @@
1
+ import { ColorScientificPaletteRecord, ColorStylePaletteRecord } from "./types.mjs";
2
+ //#region src/get-colors.d.ts
3
+ declare const createScientificPalettes: (color: string) => ColorScientificPaletteRecord;
4
+ declare const createStylePalettes: (color: string, scale?: number) => ColorStylePaletteRecord;
5
+ //#endregion
6
+ export { createScientificPalettes, createStylePalettes };
7
+ //# sourceMappingURL=get-colors.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-colors.d.mts","names":[],"sources":["../src/get-colors.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{ColorScientificPalette as e}from"./types.mjs";import t from"chroma-js";const n={[e.SURROUNDING]:[330,0,30],[e.ANALOGOUS]:[60,0,30],[e.TRIADIC]:[240,0,120],[e.TETRADIC]:[0,90,180,270],[e.COMPLEMENTARY]:[0,180],[e.SPLIT_COMPLEMENTARY]:[210,0,150]},r=new Map,i=e=>{if(r.has(e))return r.get(e);let i=t(e).get(`oklch.h`),a=Object.keys(n).reduce((r,a)=>(r[a]=n[a].map(n=>{let r=i+n;return r<0&&(r+=Math.ceil(-r/360)*360),t(e).set(`oklch.h`,r%360)}),r),{});return r.set(e,a),a},a=new Map,o=(n,r)=>{if(a.has(n))return a.get(n);let o=Object.entries(i(n)).reduce((n,[i,a])=>(n[i]=t.scale(a).mode(`hsl`).colors(r??(i===e.COMPLEMENTARY?2:i===e.TETRADIC?4:3)).map(e=>t(e).css(`hsl`)),n),{});return a.set(n,o),o};export{i as createScientificPalettes,o as createStylePalettes};
2
+ //# sourceMappingURL=get-colors.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-colors.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./token-value.cjs"),t=require("./get-nearest-token.cjs");let n=require("@stryke/type-checks/is-number"),r=require("@tamagui/core");const i=(t=`$true`,{font:r,fontFamily:i,props:a})=>{let o=e.normalizeTokenValue(t);if(!r)return{fontSize:o};if((0,n.isNumber)(o))return{fontFamily:i,fontSize:o};let c=(o===`$true`?s(r):o)??`$true`,l={},u=r.size[c],d=r.lineHeight?.[c],f=r.weight?.[c],p=r.letterSpacing?.[c],m=r.transform?.[c],h=a.fontStyle??r.style?.[c],g=a.color??r.color?.[c];return h&&(l.fontStyle=h),m&&(l.textTransform=m),i&&(l.fontFamily=i),f&&(l.fontWeight=f),p&&(l.letterSpacing=p),u&&(l.fontSize=u),d&&(l.lineHeight=d),g&&(l.color=g),l},a=(r=`$true`,a)=>{if(!a.font)return{fontSize:r};let o=e.normalizeTokenValue(r),s=(0,n.isNumber)(o)?t.getNearestToken(o,`size`):o;return i(s,a)},o=new WeakMap;function s(e){if(typeof e==`object`&&o.has(e))return o.get(e);let t=`$true`in e.size?e.size:(0,r.getTokens)().size,n=t.$true,i=n?Object.keys(t).find(e=>e!==`$true`&&t[e].val===n.val):null;return!n||!i?Object.keys(e.size)[3]:(o.set(e,i),i)}exports.getFontSized=i,exports.getFontSizedFromSize=a;
@@ -0,0 +1,22 @@
1
+ import { t as TokenValue } from "./token-value-DV6eTPCJ.cjs";
2
+ import { FontSizeTokens, TextProps, VariantSpreadFunction } from "@tamagui/core";
3
+ //#region src/get-font-sized.d.ts
4
+ /**
5
+ * Get the font size related styles
6
+ *
7
+ * @param sizeTokenIn - The size token to use
8
+ * @param extras - The extra props
9
+ * @returns The font size related styles
10
+ */
11
+ declare const getFontSized: VariantSpreadFunction<TextProps, FontSizeTokens | TokenValue>;
12
+ /**
13
+ * Get the font size related styles from a size token
14
+ *
15
+ * @param sizeTokenIn - The size token to use
16
+ * @param extras - The extra props
17
+ * @returns The font size related styles
18
+ */
19
+ declare const getFontSizedFromSize: VariantSpreadFunction<TextProps, TokenValue>;
20
+ //#endregion
21
+ export { getFontSized, getFontSizedFromSize };
22
+ //# sourceMappingURL=get-font-sized.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-font-sized.d.cts","names":[],"sources":["../src/get-font-sized.ts"],"mappings":";;;;;;;;;;cAuCa,cAAc,sBACzB,WACA,iBAAiB;;;;;;;;cAmEN,sBAAsB,sBACjC,WACA"}
@@ -0,0 +1,22 @@
1
+ import { t as TokenValue } from "./token-value-DV6eTPCJ.mjs";
2
+ import { FontSizeTokens, TextProps, VariantSpreadFunction } from "@tamagui/core";
3
+ //#region src/get-font-sized.d.ts
4
+ /**
5
+ * Get the font size related styles
6
+ *
7
+ * @param sizeTokenIn - The size token to use
8
+ * @param extras - The extra props
9
+ * @returns The font size related styles
10
+ */
11
+ declare const getFontSized: VariantSpreadFunction<TextProps, FontSizeTokens | TokenValue>;
12
+ /**
13
+ * Get the font size related styles from a size token
14
+ *
15
+ * @param sizeTokenIn - The size token to use
16
+ * @param extras - The extra props
17
+ * @returns The font size related styles
18
+ */
19
+ declare const getFontSizedFromSize: VariantSpreadFunction<TextProps, TokenValue>;
20
+ //#endregion
21
+ export { getFontSized, getFontSizedFromSize };
22
+ //# sourceMappingURL=get-font-sized.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-font-sized.d.mts","names":[],"sources":["../src/get-font-sized.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{normalizeTokenValue as e}from"./token-value.mjs";import{getNearestToken as t}from"./get-nearest-token.mjs";import{isNumber as n}from"@stryke/type-checks/is-number";import{getTokens as r}from"@tamagui/core";const i=(t=`$true`,{font:r,fontFamily:i,props:a})=>{let o=e(t);if(!r)return{fontSize:o};if(n(o))return{fontFamily:i,fontSize:o};let c=(o===`$true`?s(r):o)??`$true`,l={},u=r.size[c],d=r.lineHeight?.[c],f=r.weight?.[c],p=r.letterSpacing?.[c],m=r.transform?.[c],h=a.fontStyle??r.style?.[c],g=a.color??r.color?.[c];return h&&(l.fontStyle=h),m&&(l.textTransform=m),i&&(l.fontFamily=i),f&&(l.fontWeight=f),p&&(l.letterSpacing=p),u&&(l.fontSize=u),d&&(l.lineHeight=d),g&&(l.color=g),l},a=(r=`$true`,a)=>{if(!a.font)return{fontSize:r};let o=e(r),s=n(o)?t(o,`size`):o;return i(s,a)},o=new WeakMap;function s(e){if(typeof e==`object`&&o.has(e))return o.get(e);let t=`$true`in e.size?e.size:r().size,n=t.$true,i=n?Object.keys(t).find(e=>e!==`$true`&&t[e].val===n.val):null;return!n||!i?Object.keys(e.size)[3]:(o.set(e,i),i)}export{i as getFontSized,a as getFontSizedFromSize};
2
+ //# sourceMappingURL=get-font-sized.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-font-sized.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("@tamagui/core"),t=require("@stryke/type-checks/is-set");function n(e){return Object.entries(e).map(([e,t])=>`${e}:${t.val}`).toSorted().join(`|`)}const r=(e,n,i,a)=>{if(i>a)return i;let o=Math.floor((i+a)/2);return e.length<=o||!(0,t.isSet)(e[o])?i:e[o].val===n?o:e[o].val>n?r(e,n,i,o-1):r(e,n,o+1,a)},i=new Map,a=new Map,o=(o,s,c)=>{if(!s&&!c)return console.warn(`getNearestToken: type or tokensMap is required`),`$true`;let l=s;if(!l){if(!c)return`$true`;l=n(c)}let u={type:l},d={type:l,value:o};if(i.has(d))return i.get(d);if(!a.has(u)){let n=c??(0,e.getTokens)({prefixed:!0})[l];if(!n||Object.values(n).length===0)return`$true`;let r=Object.entries(n).reduce((e,[n,r])=>((0,t.isSet)(r)&&!e.some(e=>e[1].val===r.val)&&e.push([n,r]),e),[]);a.set(u,r.sort((e,t)=>e[1].val-t[1].val))}let f=a.get(u);if(!f)return`$true`;let p=f.map(e=>e[1]),m=r(p,o,0,p.length);if(m===-1||f.length<=m||!f[m]?.[0])return`$true`;let h=f[m][0];return i.set(d,h),h};exports.getNearestToken=o;
@@ -0,0 +1,6 @@
1
+ import { UnionableString, Variable } from "@tamagui/core";
2
+ //#region src/get-nearest-token.d.ts
3
+ declare const getNearestToken: <TToken extends number | `$${string}` | `$${number}` | UnionableString | `$${string}.${string}` | `$${string}.${number}` = number | `$${string}` | `$${number}` | UnionableString | `$${string}.${string}` | `$${string}.${number}`>(value: number, type?: "size" | "space" | "zIndex" | "radius" | string, tokensMap?: Record<string, Variable<number>>) => TToken;
4
+ //#endregion
5
+ export { getNearestToken };
6
+ //# sourceMappingURL=get-nearest-token.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-nearest-token.d.cts","names":[],"sources":["../src/get-nearest-token.ts"],"mappings":";;cAuEa,kBACX,sDAII,2GAMA,mEAIJ,eACA,wDACA,YAAY,eAAe,sBAC1B"}
@@ -0,0 +1,6 @@
1
+ import { UnionableString, Variable } from "@tamagui/core";
2
+ //#region src/get-nearest-token.d.ts
3
+ declare const getNearestToken: <TToken extends number | `$${string}` | `$${number}` | UnionableString | `$${string}.${string}` | `$${string}.${number}` = number | `$${string}` | `$${number}` | UnionableString | `$${string}.${string}` | `$${string}.${number}`>(value: number, type?: "size" | "space" | "zIndex" | "radius" | string, tokensMap?: Record<string, Variable<number>>) => TToken;
4
+ //#endregion
5
+ export { getNearestToken };
6
+ //# sourceMappingURL=get-nearest-token.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-nearest-token.d.mts","names":[],"sources":["../src/get-nearest-token.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{getTokens as e}from"@tamagui/core";import{isSet as t}from"@stryke/type-checks/is-set";function n(e){return Object.entries(e).map(([e,t])=>`${e}:${t.val}`).toSorted().join(`|`)}const r=(e,n,i,a)=>{if(i>a)return i;let o=Math.floor((i+a)/2);return e.length<=o||!t(e[o])?i:e[o].val===n?o:e[o].val>n?r(e,n,i,o-1):r(e,n,o+1,a)},i=new Map,a=new Map,o=(o,s,c)=>{if(!s&&!c)return console.warn(`getNearestToken: type or tokensMap is required`),`$true`;let l=s;if(!l){if(!c)return`$true`;l=n(c)}let u={type:l},d={type:l,value:o};if(i.has(d))return i.get(d);if(!a.has(u)){let n=c??e({prefixed:!0})[l];if(!n||Object.values(n).length===0)return`$true`;let r=Object.entries(n).reduce((e,[n,r])=>(t(r)&&!e.some(e=>e[1].val===r.val)&&e.push([n,r]),e),[]);a.set(u,r.sort((e,t)=>e[1].val-t[1].val))}let f=a.get(u);if(!f)return`$true`;let p=f.map(e=>e[1]),m=r(p,o,0,p.length);if(m===-1||f.length<=m||!f[m]?.[0])return`$true`;let h=f[m][0];return i.set(d,h),h};export{o as getNearestToken};
2
+ //# sourceMappingURL=get-nearest-token.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-nearest-token.mjs","names":[],"sources":[],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./token-value.cjs"),t=require("./get-nearest-token.cjs");let n=require("@stryke/type-checks/is-number"),r=require("@tamagui/get-token"),i=require("@tamagui/core"),a=require("@stryke/type-checks/is-set");const o=(i,o={})=>{let s=i?e.normalizeTokenValue(i):`$true`;if((0,n.isNumber)(s)){if(!o.shift&&!o.bounds)return s*((0,a.isSet)(o.scale)?o.scale:1);s=o.nearest===!1?s:t.getNearestToken(s,`size`)}let c=(0,r.getSize)(s,o),l=(0,a.isSet)(o.scale)?o.scale:1;return c.val*l},s=(r,i={})=>{let s=r?e.normalizeTokenValue(r):`$true`;if((0,n.isNumber)(s)){if(!i.shift&&!i.bounds)return s*((0,a.isSet)(i.scale)?i.scale:1);s=i.nearest===!1?s:t.getNearestToken(s,`size`)}return o(s,i)},c=e=>t.getNearestToken(e,`size`),l=(o,s={})=>{let c=o?e.normalizeTokenValue(o):`$true`;if((0,n.isNumber)(c)){if(!s.shift&&!s.bounds)return c*((0,a.isSet)(s.scale)?s.scale:1);c=s.nearest===!1?c:t.getNearestToken(c,`space`)}let l=(0,a.isSet)(s.scale)?s.scale:1;if(typeof c==`string`&&!s.shift&&!s.bounds){let e=(0,i.getTokens)({prefixed:!0}).space[c];if(e)return(0,i.getVariableValue)(e)*l}return(0,r.getSpace)(c,s).val*l},u=e=>l(e),d=(i,o={})=>{if(o.circular)return 1e5;let s=i?e.normalizeTokenValue(i):`$true`;if((0,n.isNumber)(s)){if(!o.shift&&!o.bounds)return s*((0,a.isSet)(o.scale)?o.scale:1);s=o.nearest===!1?s:t.getNearestToken(s,`radius`)}let c=(0,r.getRadius)(s,o),l=(0,a.isSet)(o.scale)?o.scale:1;return c.val*l};exports.fontSizeToSize=c,exports.getRadius=d,exports.getSizeFromFontSized=s,exports.getSized=o,exports.getSpaced=l,exports.sizeToSpace=u;
@@ -0,0 +1,61 @@
1
+ import { t as TokenValue } from "./token-value-DV6eTPCJ.cjs";
2
+ //#region src/get-sized.d.ts
3
+ interface GetSizedOptions {
4
+ scale?: number;
5
+ shift?: number;
6
+ bounds?: [number] | [number, number];
7
+ excludeHalfSteps?: boolean;
8
+ nearest?: boolean;
9
+ }
10
+ /**
11
+ * Get the size number from a token value or number value and a scale
12
+ *
13
+ * @param val - The size token or number to use
14
+ * @param options - The scale to use
15
+ * @returns The size number
16
+ */
17
+ declare const getSized: (val: TokenValue, options?: GetSizedOptions) => number;
18
+ /**
19
+ * Get the font size number from a token value or number value and a scale
20
+ *
21
+ * @param val - The size token or number to use
22
+ * @param options - The scale to use
23
+ * @returns The font size number
24
+ */
25
+ declare const getSizeFromFontSized: (val: TokenValue, options?: GetSizedOptions) => number;
26
+ /**
27
+ * Map a numeric font size to the nearest size token.
28
+ *
29
+ * @param fontSize - The font size in pixels
30
+ * @returns The nearest size token
31
+ */
32
+ declare const fontSizeToSize: (fontSize: number) => number | `$${string}` | `$${number}` | import("@tamagui/core").UnionableString | `$${string}.${string}` | `$${string}.${number}`;
33
+ /**
34
+ * Get the space number from a size token value or number value and a scale
35
+ *
36
+ * @param val - The size token or number to use
37
+ * @param options - The scale to use
38
+ * @returns The space number
39
+ */
40
+ declare const getSpaced: (val: TokenValue, options?: GetSizedOptions) => number;
41
+ /**
42
+ * Map a size token or numeric size to the corresponding space value.
43
+ *
44
+ * @param val - The size token or number to use
45
+ * @returns The space number
46
+ */
47
+ declare const sizeToSpace: (val: TokenValue) => number;
48
+ type GetRadiusOptions = GetSizedOptions & {
49
+ circular?: boolean;
50
+ };
51
+ /**
52
+ * Get the radius number from a size token value or number value and a scale
53
+ *
54
+ * @param val - The size token or number to use
55
+ * @param options - The options to use
56
+ * @returns The radius number
57
+ */
58
+ declare const getRadius: (val: TokenValue, options?: GetRadiusOptions) => number;
59
+ //#endregion
60
+ export { GetRadiusOptions, GetSizedOptions, fontSizeToSize, getRadius, getSizeFromFontSized, getSized, getSpaced, sizeToSpace };
61
+ //# sourceMappingURL=get-sized.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-sized.d.cts","names":[],"sources":["../src/get-sized.ts"],"mappings":";;UA8BiB;EACf;EACA;EACA;EACA;EACA;;;;;;;;;cAUW,WACX,KAAK,YACL,UAAS;;;;;;;;cAyBE,uBACX,KAAK,YACL,UAAS;;;;;;;cAqBE,iBAAkB,oFAAgB;;;;;;;;cAUlC,YACX,KAAK,YACL,UAAS;;;;;;;cAiCE,cAAe,KAAK;KAErB,mBAAmB;EAC7B;;;;;;;;;cAUW,YAAa,KAAK,YAAY,UAAS"}
@@ -0,0 +1,61 @@
1
+ import { t as TokenValue } from "./token-value-DV6eTPCJ.mjs";
2
+ //#region src/get-sized.d.ts
3
+ interface GetSizedOptions {
4
+ scale?: number;
5
+ shift?: number;
6
+ bounds?: [number] | [number, number];
7
+ excludeHalfSteps?: boolean;
8
+ nearest?: boolean;
9
+ }
10
+ /**
11
+ * Get the size number from a token value or number value and a scale
12
+ *
13
+ * @param val - The size token or number to use
14
+ * @param options - The scale to use
15
+ * @returns The size number
16
+ */
17
+ declare const getSized: (val: TokenValue, options?: GetSizedOptions) => number;
18
+ /**
19
+ * Get the font size number from a token value or number value and a scale
20
+ *
21
+ * @param val - The size token or number to use
22
+ * @param options - The scale to use
23
+ * @returns The font size number
24
+ */
25
+ declare const getSizeFromFontSized: (val: TokenValue, options?: GetSizedOptions) => number;
26
+ /**
27
+ * Map a numeric font size to the nearest size token.
28
+ *
29
+ * @param fontSize - The font size in pixels
30
+ * @returns The nearest size token
31
+ */
32
+ declare const fontSizeToSize: (fontSize: number) => number | `$${string}` | `$${number}` | import("@tamagui/core").UnionableString | `$${string}.${string}` | `$${string}.${number}`;
33
+ /**
34
+ * Get the space number from a size token value or number value and a scale
35
+ *
36
+ * @param val - The size token or number to use
37
+ * @param options - The scale to use
38
+ * @returns The space number
39
+ */
40
+ declare const getSpaced: (val: TokenValue, options?: GetSizedOptions) => number;
41
+ /**
42
+ * Map a size token or numeric size to the corresponding space value.
43
+ *
44
+ * @param val - The size token or number to use
45
+ * @returns The space number
46
+ */
47
+ declare const sizeToSpace: (val: TokenValue) => number;
48
+ type GetRadiusOptions = GetSizedOptions & {
49
+ circular?: boolean;
50
+ };
51
+ /**
52
+ * Get the radius number from a size token value or number value and a scale
53
+ *
54
+ * @param val - The size token or number to use
55
+ * @param options - The options to use
56
+ * @returns The radius number
57
+ */
58
+ declare const getRadius: (val: TokenValue, options?: GetRadiusOptions) => number;
59
+ //#endregion
60
+ export { GetRadiusOptions, GetSizedOptions, fontSizeToSize, getRadius, getSizeFromFontSized, getSized, getSpaced, sizeToSpace };
61
+ //# sourceMappingURL=get-sized.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-sized.d.mts","names":[],"sources":["../src/get-sized.ts"],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{normalizeTokenValue as e}from"./token-value.mjs";import{getNearestToken as t}from"./get-nearest-token.mjs";import{isNumber as n}from"@stryke/type-checks/is-number";import{getRadius as r,getSize as i,getSpace as a}from"@tamagui/get-token";import{getTokens as o,getVariableValue as s}from"@tamagui/core";import{isSet as c}from"@stryke/type-checks/is-set";const l=(r,a={})=>{let o=r?e(r):`$true`;if(n(o)){if(!a.shift&&!a.bounds)return o*(c(a.scale)?a.scale:1);o=a.nearest===!1?o:t(o,`size`)}let s=i(o,a),l=c(a.scale)?a.scale:1;return s.val*l},u=(r,i={})=>{let a=r?e(r):`$true`;if(n(a)){if(!i.shift&&!i.bounds)return a*(c(i.scale)?i.scale:1);a=i.nearest===!1?a:t(a,`size`)}return l(a,i)},d=e=>t(e,`size`),f=(r,i={})=>{let l=r?e(r):`$true`;if(n(l)){if(!i.shift&&!i.bounds)return l*(c(i.scale)?i.scale:1);l=i.nearest===!1?l:t(l,`space`)}let u=c(i.scale)?i.scale:1;if(typeof l==`string`&&!i.shift&&!i.bounds){let e=o({prefixed:!0}).space[l];if(e)return s(e)*u}return a(l,i).val*u},p=e=>f(e),m=(i,a={})=>{if(a.circular)return 1e5;let o=i?e(i):`$true`;if(n(o)){if(!a.shift&&!a.bounds)return o*(c(a.scale)?a.scale:1);o=a.nearest===!1?o:t(o,`radius`)}let s=r(o,a),l=c(a.scale)?a.scale:1;return s.val*l};export{d as fontSizeToSize,m as getRadius,u as getSizeFromFontSized,l as getSized,f as getSpaced,p as sizeToSpace};
2
+ //# sourceMappingURL=get-sized.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-sized.mjs","names":[],"sources":[],"mappings":""}
package/dist/index.cjs ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./types.cjs"),t=require("./get-button-sized.cjs"),n=require("./get-colors.cjs"),r=require("./get-nearest-token.cjs"),i=require("./get-font-sized.cjs"),a=require("./get-sized.cjs");exports.ColorScientificPalette=e.ColorScientificPalette,exports.createScientificPalettes=n.createScientificPalettes,exports.createStylePalettes=n.createStylePalettes,exports.fontSizeToSize=a.fontSizeToSize,exports.getButtonSized=t.getButtonSized,exports.getFontSized=i.getFontSized,exports.getFontSizedFromSize=i.getFontSizedFromSize,exports.getNearestToken=r.getNearestToken,exports.getRadius=a.getRadius,exports.getSizeFromFontSized=a.getSizeFromFontSized,exports.getSized=a.getSized,exports.getSpaced=a.getSpaced,exports.sizeToSpace=a.sizeToSpace;
@@ -0,0 +1,7 @@
1
+ import { getButtonSized } from "./get-button-sized.cjs";
2
+ import { ColorScientificPalette, ColorScientificPaletteRecord, ColorStylePaletteRecord, LCHColor } from "./types.cjs";
3
+ import { createScientificPalettes, createStylePalettes } from "./get-colors.cjs";
4
+ import { getFontSized, getFontSizedFromSize } from "./get-font-sized.cjs";
5
+ import { getNearestToken } from "./get-nearest-token.cjs";
6
+ import { GetRadiusOptions, GetSizedOptions, fontSizeToSize, getRadius, getSizeFromFontSized, getSized, getSpaced, sizeToSpace } from "./get-sized.cjs";
7
+ export { ColorScientificPalette, ColorScientificPaletteRecord, ColorStylePaletteRecord, GetRadiusOptions, GetSizedOptions, LCHColor, createScientificPalettes, createStylePalettes, fontSizeToSize, getButtonSized, getFontSized, getFontSizedFromSize, getNearestToken, getRadius, getSizeFromFontSized, getSized, getSpaced, sizeToSpace };
@@ -0,0 +1,7 @@
1
+ import { getButtonSized } from "./get-button-sized.mjs";
2
+ import { ColorScientificPalette, ColorScientificPaletteRecord, ColorStylePaletteRecord, LCHColor } from "./types.mjs";
3
+ import { createScientificPalettes, createStylePalettes } from "./get-colors.mjs";
4
+ import { getFontSized, getFontSizedFromSize } from "./get-font-sized.mjs";
5
+ import { getNearestToken } from "./get-nearest-token.mjs";
6
+ import { GetRadiusOptions, GetSizedOptions, fontSizeToSize, getRadius, getSizeFromFontSized, getSized, getSpaced, sizeToSpace } from "./get-sized.mjs";
7
+ export { ColorScientificPalette, ColorScientificPaletteRecord, ColorStylePaletteRecord, GetRadiusOptions, GetSizedOptions, LCHColor, createScientificPalettes, createStylePalettes, fontSizeToSize, getButtonSized, getFontSized, getFontSizedFromSize, getNearestToken, getRadius, getSizeFromFontSized, getSized, getSpaced, sizeToSpace };
package/dist/index.mjs ADDED
@@ -0,0 +1 @@
1
+ import{ColorScientificPalette as e}from"./types.mjs";import{getButtonSized as t}from"./get-button-sized.mjs";import{createScientificPalettes as n,createStylePalettes as r}from"./get-colors.mjs";import{getNearestToken as i}from"./get-nearest-token.mjs";import{getFontSized as a,getFontSizedFromSize as o}from"./get-font-sized.mjs";import{fontSizeToSize as s,getRadius as c,getSizeFromFontSized as l,getSized as u,getSpaced as d,sizeToSpace as f}from"./get-sized.mjs";export{e as ColorScientificPalette,n as createScientificPalettes,r as createStylePalettes,s as fontSizeToSize,t as getButtonSized,a as getFontSized,o as getFontSizedFromSize,i as getNearestToken,c as getRadius,l as getSizeFromFontSized,u as getSized,d as getSpaced,f as sizeToSpace};
@@ -0,0 +1,19 @@
1
+ //#region src/token-value.d.ts
2
+ /**
3
+ * A token key or an arbitrary Tailwind-style dimension.
4
+ *
5
+ * Token keys use their unprefixed theme name (`"4"`, `"sm"`, `"px"`) or
6
+ * Tamagui's legacy `$`-prefixed spelling. Arbitrary dimensions follow
7
+ * Tailwind's bracket syntax (`"[12px]"`, `"[1.5rem]"`).
8
+ */
9
+ type TokenValue = number | string;
10
+ /**
11
+ * Normalize a Tailwind-style token value for Tamagui's token lookup.
12
+ *
13
+ * Bare keys are token names, never pixel values: `"4"` resolves the `4`
14
+ * token. A literal length must use Tailwind's explicit bracket form.
15
+ */
16
+ declare function normalizeTokenValue(value: TokenValue): TokenValue;
17
+ //#endregion
18
+ export { normalizeTokenValue as n, TokenValue as t };
19
+ //# sourceMappingURL=token-value-DV6eTPCJ.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token-value-DV6eTPCJ.d.cts","names":[],"sources":["../src/token-value.ts"],"mappings":";;;;;;;;KAyBY;;;;;;;iBAWI,oBAAoB,OAAO,aAAa"}
@@ -0,0 +1,19 @@
1
+ //#region src/token-value.d.ts
2
+ /**
3
+ * A token key or an arbitrary Tailwind-style dimension.
4
+ *
5
+ * Token keys use their unprefixed theme name (`"4"`, `"sm"`, `"px"`) or
6
+ * Tamagui's legacy `$`-prefixed spelling. Arbitrary dimensions follow
7
+ * Tailwind's bracket syntax (`"[12px]"`, `"[1.5rem]"`).
8
+ */
9
+ type TokenValue = number | string;
10
+ /**
11
+ * Normalize a Tailwind-style token value for Tamagui's token lookup.
12
+ *
13
+ * Bare keys are token names, never pixel values: `"4"` resolves the `4`
14
+ * token. A literal length must use Tailwind's explicit bracket form.
15
+ */
16
+ declare function normalizeTokenValue(value: TokenValue): TokenValue;
17
+ //#endregion
18
+ export { normalizeTokenValue as n, TokenValue as t };
19
+ //# sourceMappingURL=token-value-DV6eTPCJ.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token-value-DV6eTPCJ.d.mts","names":[],"sources":["../src/token-value.ts"],"mappings":""}
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=/^(-?(?:\d+(?:\.\d*)?|\.\d+))(px|rem)?$/i;function t(t){if(typeof t==`number`)return t;let n=/^\[(.*)\]$/.exec(t.trim())?.[1]?.trim();if(n){let t=e.exec(n);if(t){let e=Number(t[1]);return t[2]?.toLowerCase()===`rem`?e*16:e}}return t.startsWith(`$`)?t:`$${t}`}exports.normalizeTokenValue=t;
@@ -0,0 +1,2 @@
1
+ import { n as normalizeTokenValue, t as TokenValue } from "./token-value-DV6eTPCJ.cjs";
2
+ export { TokenValue, normalizeTokenValue };
@@ -0,0 +1,2 @@
1
+ import { n as normalizeTokenValue, t as TokenValue } from "./token-value-DV6eTPCJ.mjs";
2
+ export { TokenValue, normalizeTokenValue };
@@ -0,0 +1,2 @@
1
+ const e=/^(-?(?:\d+(?:\.\d*)?|\.\d+))(px|rem)?$/i;function t(t){if(typeof t==`number`)return t;let n=/^\[(.*)\]$/.exec(t.trim())?.[1]?.trim();if(n){let t=e.exec(n);if(t){let e=Number(t[1]);return t[2]?.toLowerCase()===`rem`?e*16:e}}return t.startsWith(`$`)?t:`$${t}`}export{t as normalizeTokenValue};
2
+ //# sourceMappingURL=token-value.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"token-value.mjs","names":[],"sources":[],"mappings":""}
package/dist/types.cjs ADDED
@@ -0,0 +1 @@
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e={SURROUNDING:`surrounding`,ANALOGOUS:`analogous`,TRIADIC:`triadic`,TETRADIC:`tetradic`,COMPLEMENTARY:`complementary`,SPLIT_COMPLEMENTARY:`splitComplementary`};exports.ColorScientificPalette=e;
@@ -0,0 +1,22 @@
1
+ import { Color } from "chroma-js";
2
+ //#region src/types.d.ts
3
+ type ColorScientificPalette = "surrounding" | "analogous" | "triadic" | "tetradic" | "complementary" | "splitComplementary";
4
+ declare const ColorScientificPalette: {
5
+ SURROUNDING: ColorScientificPalette;
6
+ ANALOGOUS: ColorScientificPalette;
7
+ TRIADIC: ColorScientificPalette;
8
+ TETRADIC: ColorScientificPalette;
9
+ COMPLEMENTARY: ColorScientificPalette;
10
+ SPLIT_COMPLEMENTARY: ColorScientificPalette;
11
+ };
12
+ interface LCHColor {
13
+ l: number;
14
+ c: number;
15
+ h: number;
16
+ mode: "lch";
17
+ }
18
+ type ColorScientificPaletteRecord = Record<ColorScientificPalette, Color[]>;
19
+ type ColorStylePaletteRecord = Record<ColorScientificPalette, string[]>;
20
+ //#endregion
21
+ export { ColorScientificPalette, ColorScientificPaletteRecord, ColorStylePaletteRecord, LCHColor };
22
+ //# sourceMappingURL=types.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.cts","names":[],"sources":["../src/types.ts"],"mappings":";;KAoBY;cAQC;EACmB,aAAA;EACJ,WAAA;EACJ,SAAA;EACE,UAAA;EACU,eAAA;EACW,qBAAA;;UAG9B;EACf;EACA;EACA;EACA;;KAGU,+BAA+B,OACzC,wBACA;KAGU,0BAA0B,OAAO"}
@@ -0,0 +1,22 @@
1
+ import { Color } from "chroma-js";
2
+ //#region src/types.d.ts
3
+ type ColorScientificPalette = "surrounding" | "analogous" | "triadic" | "tetradic" | "complementary" | "splitComplementary";
4
+ declare const ColorScientificPalette: {
5
+ SURROUNDING: ColorScientificPalette;
6
+ ANALOGOUS: ColorScientificPalette;
7
+ TRIADIC: ColorScientificPalette;
8
+ TETRADIC: ColorScientificPalette;
9
+ COMPLEMENTARY: ColorScientificPalette;
10
+ SPLIT_COMPLEMENTARY: ColorScientificPalette;
11
+ };
12
+ interface LCHColor {
13
+ l: number;
14
+ c: number;
15
+ h: number;
16
+ mode: "lch";
17
+ }
18
+ type ColorScientificPaletteRecord = Record<ColorScientificPalette, Color[]>;
19
+ type ColorStylePaletteRecord = Record<ColorScientificPalette, string[]>;
20
+ //#endregion
21
+ export { ColorScientificPalette, ColorScientificPaletteRecord, ColorStylePaletteRecord, LCHColor };
22
+ //# sourceMappingURL=types.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.mts","names":[],"sources":["../src/types.ts"],"mappings":""}
package/dist/types.mjs ADDED
@@ -0,0 +1,2 @@
1
+ const e={SURROUNDING:`surrounding`,ANALOGOUS:`analogous`,TRIADIC:`triadic`,TETRADIC:`tetradic`,COMPLEMENTARY:`complementary`,SPLIT_COMPLEMENTARY:`splitComplementary`};export{e as ColorScientificPalette};
2
+ //# sourceMappingURL=types.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.mjs","names":[],"sources":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,146 @@
1
+ {
2
+ "name": "@cyclone-ui/helpers",
3
+ "version": "0.3.1",
4
+ "private": false,
5
+ "description": "A repository containing the core front-end components used by Storm Software across many platforms",
6
+ "repository": {
7
+ "type": "github",
8
+ "url": "https://github.com/storm-software/cyclone-ui.git",
9
+ "directory": "packages/helpers"
10
+ },
11
+ "type": "module",
12
+ "exports": {
13
+ ".": {
14
+ "require": {
15
+ "types": "./dist/index.d.cts",
16
+ "default": "./dist/index.cjs"
17
+ },
18
+ "import": {
19
+ "types": "./dist/index.d.mts",
20
+ "default": "./dist/index.mjs"
21
+ },
22
+ "default": {
23
+ "types": "./dist/index.d.mts",
24
+ "default": "./dist/index.mjs"
25
+ }
26
+ },
27
+ "./get-button-sized": {
28
+ "require": {
29
+ "types": "./dist/get-button-sized.d.cts",
30
+ "default": "./dist/get-button-sized.cjs"
31
+ },
32
+ "import": {
33
+ "types": "./dist/get-button-sized.d.mts",
34
+ "default": "./dist/get-button-sized.mjs"
35
+ },
36
+ "default": {
37
+ "types": "./dist/get-button-sized.d.mts",
38
+ "default": "./dist/get-button-sized.mjs"
39
+ }
40
+ },
41
+ "./get-colors": {
42
+ "require": {
43
+ "types": "./dist/get-colors.d.cts",
44
+ "default": "./dist/get-colors.cjs"
45
+ },
46
+ "import": {
47
+ "types": "./dist/get-colors.d.mts",
48
+ "default": "./dist/get-colors.mjs"
49
+ },
50
+ "default": {
51
+ "types": "./dist/get-colors.d.mts",
52
+ "default": "./dist/get-colors.mjs"
53
+ }
54
+ },
55
+ "./get-font-sized": {
56
+ "require": {
57
+ "types": "./dist/get-font-sized.d.cts",
58
+ "default": "./dist/get-font-sized.cjs"
59
+ },
60
+ "import": {
61
+ "types": "./dist/get-font-sized.d.mts",
62
+ "default": "./dist/get-font-sized.mjs"
63
+ },
64
+ "default": {
65
+ "types": "./dist/get-font-sized.d.mts",
66
+ "default": "./dist/get-font-sized.mjs"
67
+ }
68
+ },
69
+ "./get-nearest-token": {
70
+ "require": {
71
+ "types": "./dist/get-nearest-token.d.cts",
72
+ "default": "./dist/get-nearest-token.cjs"
73
+ },
74
+ "import": {
75
+ "types": "./dist/get-nearest-token.d.mts",
76
+ "default": "./dist/get-nearest-token.mjs"
77
+ },
78
+ "default": {
79
+ "types": "./dist/get-nearest-token.d.mts",
80
+ "default": "./dist/get-nearest-token.mjs"
81
+ }
82
+ },
83
+ "./get-sized": {
84
+ "require": {
85
+ "types": "./dist/get-sized.d.cts",
86
+ "default": "./dist/get-sized.cjs"
87
+ },
88
+ "import": {
89
+ "types": "./dist/get-sized.d.mts",
90
+ "default": "./dist/get-sized.mjs"
91
+ },
92
+ "default": {
93
+ "types": "./dist/get-sized.d.mts",
94
+ "default": "./dist/get-sized.mjs"
95
+ }
96
+ },
97
+ "./package.json": "./package.json",
98
+ "./token-value": {
99
+ "require": {
100
+ "types": "./dist/token-value.d.cts",
101
+ "default": "./dist/token-value.cjs"
102
+ },
103
+ "import": {
104
+ "types": "./dist/token-value.d.mts",
105
+ "default": "./dist/token-value.mjs"
106
+ },
107
+ "default": {
108
+ "types": "./dist/token-value.d.mts",
109
+ "default": "./dist/token-value.mjs"
110
+ }
111
+ },
112
+ "./types": {
113
+ "require": {
114
+ "types": "./dist/types.d.cts",
115
+ "default": "./dist/types.cjs"
116
+ },
117
+ "import": {
118
+ "types": "./dist/types.d.mts",
119
+ "default": "./dist/types.mjs"
120
+ },
121
+ "default": {
122
+ "types": "./dist/types.d.mts",
123
+ "default": "./dist/types.mjs"
124
+ }
125
+ }
126
+ },
127
+ "main": "./dist/index.cjs",
128
+ "types": "./dist/index.d.cts",
129
+ "dependencies": {
130
+ "@stryke/type-checks": "^0.6.46",
131
+ "@stryke/types": "^0.12.41",
132
+ "@tamagui/constants": "^2.7.7",
133
+ "@tamagui/core": "^2.7.7",
134
+ "@tamagui/get-token": "^2.7.7",
135
+ "chroma-js": "^2.6.0"
136
+ },
137
+ "devDependencies": {
138
+ "@powerlines/plugin-tamagui": "^0.1.663",
139
+ "@powerlines/plugin-tsdown": "^0.1.612",
140
+ "@types/chroma-js": "^2.4.5",
141
+ "powerlines": "^0.47.211"
142
+ },
143
+ "publishConfig": { "access": "public" },
144
+ "module": "./dist/index.mjs",
145
+ "gitHead": "78ff8af419bf314b579debf7dd9c07b25e5732c1"
146
+ }