-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(date-picker-field): Initial check-in of the
DatePickerField
co…
…mponent package
- Loading branch information
1 parent
ed41708
commit 85558e7
Showing
31 changed files
with
1,147 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,298 @@ | ||
<!-- START header --> | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
|
||
|
||
<div align="center"><img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/storm-banner.gif" width="100%" alt="Storm Software" /></div> | ||
<br /> | ||
|
||
<div align="center"> | ||
<b> | ||
<a href="https://stormsoftware.com" target="_blank">Website</a> • | ||
<a href="https://github.com/storm-software/cyclone-ui" target="_blank">GitHub</a> • | ||
<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> • | ||
<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> | ||
</b> | ||
</div> | ||
|
||
<br /> | ||
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. | ||
<br /> | ||
|
||
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br /> | ||
|
||
[![Version](https://img.shields.io/badge/version-0.5.0-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/) [![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/) [![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/) [![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/) ![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) [![documented with docusaurus](https://img.shields.io/badge/documented_with-docusaurus-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://docusaurus.io/) ![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) | ||
|
||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
|
||
> [!IMPORTANT] | ||
> 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. | ||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
|
||
<br /> | ||
|
||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
|
||
<!-- END header --> | ||
|
||
# date-picker | ||
|
||
A package containing the Date Picker component used by Storm Software | ||
|
||
<!-- START doctoc --> | ||
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --> | ||
## Table of Contents | ||
|
||
- [Installing](#installing) | ||
- [Reduced Package Size](#reduced-package-size) | ||
- [Development](#development) | ||
- [Building](#building) | ||
- [Running unit tests](#running-unit-tests) | ||
- [Linting](#linting) | ||
- [Storm Workspaces](#storm-workspaces) | ||
- [Roadmap](#roadmap) | ||
- [Support](#support) | ||
- [License](#license) | ||
- [Documentation](#documentation) | ||
- [Changelog](#changelog) | ||
- [Contributing](#contributing) | ||
- [Contributors](#contributors) | ||
- [💻 Visit stormsoftware.com to stay up to date with this developer](#-visit-stormsoftwarecom-to-stay-up-to-date-with-this-developer) | ||
|
||
<!-- END doctoc --> | ||
|
||
## Installing | ||
|
||
Using [pnpm](http://pnpm.io): | ||
|
||
```bash | ||
pnpm add -D @cyclone-ui/date-picker | ||
``` | ||
|
||
<details> | ||
<summary>Using npm</summary> | ||
|
||
```bash | ||
npm install -D @cyclone-ui/date-picker | ||
``` | ||
|
||
</details> | ||
|
||
<details> | ||
<summary>Using yarn</summary> | ||
|
||
```bash | ||
yarn add -D @cyclone-ui/date-picker | ||
``` | ||
|
||
</details> | ||
|
||
## Reduced Package Size | ||
|
||
This project uses [tsup](https://tsup.egoist.dev/) to package the source code due to its ability to remove unused code and ship smaller javascript files thanks to code splitting. This helps to greatly reduce the size of the package and to make it easier to use in other projects. | ||
|
||
## Development | ||
|
||
This project is built using [Nx](https://nx.dev). As a result, many of the usual commands are available to assist in development. | ||
|
||
### Building | ||
|
||
Run `nx build date-picker` to build the library. | ||
|
||
### Running unit tests | ||
|
||
Run `nx test date-picker` to execute the unit tests via [Jest](https://jestjs.io). | ||
|
||
### Linting | ||
|
||
Run `nx lint date-picker` to run [ESLint](https://eslint.org/) on the package. | ||
|
||
<!-- START footer --> | ||
<!-- prettier-ignore-start --> | ||
<!-- markdownlint-disable --> | ||
|
||
|
||
## Storm Workspaces | ||
|
||
Storm workspaces are built using | ||
<a href="https://nx.dev/" target="_blank">Nx</a>, a set of extensible dev tools | ||
for monorepos, which helps you develop like Google, Facebook, and Microsoft. | ||
Building on top of Nx, the Open System provides a set of tools and patterns that | ||
help you scale your monorepo to many teams while keeping the codebase | ||
maintainable. | ||
|
||
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div> | ||
<br /> | ||
|
||
## Roadmap | ||
|
||
See the [open issues](https://github.com/storm-software/cyclone-ui/issues) for a | ||
list of proposed features (and known issues). | ||
|
||
- [Top Feature Requests](https://github.com/storm-software/cyclone-ui/issues?q=label%3Aenhancement+is%3Aopen+sort%3Areactions-%2B1-desc) | ||
(Add your votes using the 👍 reaction) | ||
- [Top Bugs](https://github.com/storm-software/cyclone-ui/issues?q=is%3Aissue+is%3Aopen+label%3Abug+sort%3Areactions-%2B1-desc) | ||
(Add your votes using the 👍 reaction) | ||
- [Newest Bugs](https://github.com/storm-software/cyclone-ui/issues?q=is%3Aopen+is%3Aissue+label%3Abug) | ||
|
||
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div> | ||
<br /> | ||
|
||
## Support | ||
|
||
Reach out to the maintainer at one of the following places: | ||
|
||
- [Contact](https://stormsoftware.com/contact) | ||
- [GitHub discussions](https://github.com/storm-software/cyclone-ui/discussions) | ||
- <[email protected]> | ||
|
||
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div> | ||
<br /> | ||
|
||
## License | ||
|
||
This project is licensed under the **Apache License, Version 2.0**. Feel free to | ||
edit and distribute this template as you like. | ||
|
||
``` | ||
Copyright (C) 2023 - 2024 Storm Software | ||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
http://www.apache.org/licenses/LICENSE-2.0 | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. | ||
``` | ||
|
||
See [LICENSE](LICENSE) for more information. | ||
|
||
### Documentation | ||
|
||
All documentation is licensed under the | ||
[Creative Commons](http://creativecommons.org/licenses/by/4.0/) (attribute) | ||
license. | ||
|
||
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div> | ||
<br /> | ||
|
||
## Changelog | ||
|
||
This project adheres to | ||
[Semantic Versioning](https://semver.org/spec/v2.0.0.html). Every release, along | ||
with the migration instructions, is documented in the [CHANGELOG](CHANGELOG.md) | ||
file | ||
|
||
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div> | ||
<br /> | ||
|
||
## Contributing | ||
|
||
First off, thanks for taking the time to contribute! Contributions are what | ||
makes the open-source community such an amazing place to learn, inspire, and | ||
create. Any contributions you make will benefit everybody else and are **greatly | ||
appreciated**. | ||
|
||
Please try to create bug reports that are: | ||
|
||
- _Reproducible._ Include steps to reproduce the problem. | ||
- _Specific._ Include as much detail as possible: which version, what | ||
environment, etc. | ||
- _Unique._ Do not duplicate existing opened issues. | ||
- _Scoped to a Single Bug._ One bug per report. | ||
|
||
Please adhere to this project's [code of conduct](.github/CODE_OF_CONDUCT.md). | ||
|
||
You can use | ||
[markdownlint-cli](https://github.com/storm-software/cyclone-ui/markdownlint-cli) | ||
to check for common markdown style inconsistency. | ||
|
||
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div> | ||
<br /> | ||
|
||
## Contributors | ||
|
||
Thanks goes to these wonderful people | ||
([emoji key](https://allcontributors.org/docs/en/emoji-key)): | ||
|
||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> | ||
|
||
<table> | ||
<tbody> | ||
<tr> | ||
<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> | ||
<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> | ||
<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> | ||
</tr> | ||
</tbody> | ||
<tfoot> | ||
<tr> | ||
<td align="center" size="13px" colspan="7"> | ||
<img src="https://raw.githubusercontent.com/all-contributors/all-contributors-cli/1b8533af435da9854653492b1327a23a4dbd0a10/assets/logo-small.svg" alt="All Contributors"> | ||
<a href="https://all-contributors.js.org/docs/en/bot/usage">Add your contributions</a> | ||
</img> | ||
</td> | ||
</tr> | ||
</tfoot> | ||
</table> | ||
|
||
<!-- ALL-CONTRIBUTORS-LIST:END --> | ||
|
||
This project follows the | ||
[all-contributors](https://github.com/all-contributors/all-contributors) | ||
specification. Contributions of any kind welcome! | ||
|
||
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div> | ||
<br /> | ||
|
||
<hr /> | ||
<br /> | ||
|
||
<div align="center"> | ||
<img src="https://pub-761b436209f44a4d886487c917806c08.r2.dev/logo-banner.png" width="100%" alt="Storm Software" /> | ||
</div> | ||
<br /> | ||
|
||
<div align="center"> | ||
<b> | ||
<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> | ||
</b> | ||
</div> | ||
|
||
<div align="center"> | ||
<b>Fingerprint:</b> 1BD2 7192 7770 2549 F4C9 F238 E6AD C420 DA5C 4C2D | ||
</div> | ||
<br /> | ||
|
||
Storm Software is an open source software development organization and creator | ||
of Acidic, StormStack and StormCloud. | ||
|
||
Our mission is to make software development more accessible. Our ideal future is | ||
one where anyone can create software without years of prior development | ||
experience serving as a barrier to entry. We hope to achieve this via LLMs, | ||
Generative AI, and intuitive, high-level data modeling/programming languages. | ||
|
||
If this sounds interesting, and you would like to help us in creating the next | ||
generation of development tools, please reach out on our website! | ||
|
||
<br /> | ||
<h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3> | ||
|
||
<br /> | ||
<div align="right">[ <a href="#table-of-contents">Back to top ▲</a> ]</div> | ||
<br /> | ||
|
||
|
||
<!-- markdownlint-restore --> | ||
<!-- prettier-ignore-end --> | ||
|
||
<!-- END footer --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { getJestConfig } from "@storm-software/testing-tools"; | ||
|
||
export default getJestConfig( | ||
"components/date-picker-field", | ||
true, | ||
"date-picker-field" | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"name": "@cyclone-ui/date-picker-field", | ||
"version": "0.5.0", | ||
"type": "module", | ||
"description": "A repository containing the core front-end components used by Storm Software across many platforms", | ||
"repository": { | ||
"type": "github", | ||
"url": "https://github.com/storm-software/cyclone-ui.git", | ||
"directory": "components/date-picker-field" | ||
}, | ||
"private": false, | ||
"main": "dist/cjs", | ||
"module": "dist/esm", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./types/index.d.ts", | ||
"import": "./dist/esm/index.mjs", | ||
"require": "./dist/cjs/index.js", | ||
"react-native": "./dist/cjs/index.native.js" | ||
} | ||
}, | ||
"types": "./types/index.d.ts", | ||
"files": [ | ||
"dist", | ||
"src", | ||
"types" | ||
], | ||
"peerDependencies": { | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1", | ||
"react-native": "0.74.1" | ||
}, | ||
"dependencies": { | ||
"@maskito/core": "^3.1.2", | ||
"@maskito/kit": "^3.1.2", | ||
"@storm-stack/date-time": "latest", | ||
"@tamagui/core": "^1.110.5", | ||
"@tamagui/lucide-icons": "^1.110.5", | ||
"react-native-svg": "^15.2.0" | ||
}, | ||
"devDependencies": { | ||
"react": "18.3.1", | ||
"react-dom": "18.3.1", | ||
"react-native": "0.74.1" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"sideEffects": [ | ||
"*.css" | ||
], | ||
"module:jsx": "dist/jsx" | ||
} |
Oops, something went wrong.