@torq-north/react-tools 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -0
- package/dist/index.cjs +5220 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.es.js +5180 -0
- package/dist/index.es.js.map +1 -0
- package/dist/src/Core/Api/apiHelpers.d.ts +5 -0
- package/dist/src/Core/Api/index.d.ts +1 -0
- package/dist/src/Core/Hooks/index.d.ts +4 -0
- package/dist/src/Core/Hooks/useAsyncData.d.ts +15 -0
- package/dist/src/Core/Hooks/useDebounce.d.ts +1 -0
- package/dist/src/Core/Hooks/useDebounceEffect.d.ts +2 -0
- package/dist/src/Core/Hooks/usePartialSetterState.d.ts +5 -0
- package/dist/src/Form/Components/CheckboxFormField.d.ts +9 -0
- package/dist/src/Form/Components/ComboboxFormField.d.ts +9 -0
- package/dist/src/Form/Components/DateFormField.d.ts +8 -0
- package/dist/src/Form/Components/DateTimeFormField.d.ts +8 -0
- package/dist/src/Form/Components/FieldWrapper.d.ts +7 -0
- package/dist/src/Form/Components/FileEditorField/DropIndicator.d.ts +9 -0
- package/dist/src/Form/Components/FileEditorField/FileEditorField.d.ts +13 -0
- package/dist/src/Form/Components/FileEditorField/index.d.ts +1 -0
- package/dist/src/Form/Components/FileEditorField/useFileEditorField.d.ts +40 -0
- package/dist/src/Form/Components/MultiSelectFormField.d.ts +10 -0
- package/dist/src/Form/Components/RadioFormField.d.ts +16 -0
- package/dist/src/Form/Components/RadioOption.d.ts +7 -0
- package/dist/src/Form/Components/SelectFormField.d.ts +10 -0
- package/dist/src/Form/Components/TextFormField.d.ts +9 -0
- package/dist/src/Form/Components/index.d.ts +9 -0
- package/dist/src/Form/Types/Validator.d.ts +3 -0
- package/dist/src/Form/Types/commonFieldProps.d.ts +15 -0
- package/dist/src/Form/Types/index.d.ts +1 -0
- package/dist/src/Form/Utilities/asInteger.d.ts +1 -0
- package/dist/src/Form/Utilities/asPhoneNumber.d.ts +1 -0
- package/dist/src/Form/Utilities/composeValidators.d.ts +2 -0
- package/dist/src/Form/Utilities/index.d.ts +4 -0
- package/dist/src/Form/Utilities/isEmail.d.ts +3 -0
- package/dist/src/Form/Utilities/isPostalCode.d.ts +3 -0
- package/dist/src/Form/Utilities/isRequired.d.ts +2 -0
- package/dist/src/Form/Utilities/mustBeChecked.d.ts +2 -0
- package/dist/src/Form/Utilities/renderSelectOptions.d.ts +14 -0
- package/dist/src/Form/index.d.ts +3 -0
- package/dist/src/MUI/Components/CloseableDialog/CloseableDialog.d.ts +9 -0
- package/dist/src/MUI/Components/CloseableDialog/index.d.ts +2 -0
- package/dist/src/MUI/Components/ConfirmCancel/ConfirmCancel.d.ts +16 -0
- package/dist/src/MUI/Components/ConfirmCancel/index.d.ts +2 -0
- package/dist/src/MUI/Components/EditableBlock/EditableBlock.d.ts +9 -0
- package/dist/src/MUI/Components/EditableBlock/index.d.ts +2 -0
- package/dist/src/MUI/Components/Error/ErrorMessage.d.ts +6 -0
- package/dist/src/MUI/Components/Error/ErrorNotification.d.ts +10 -0
- package/dist/src/MUI/Components/Error/ErrorOverlay.d.ts +20 -0
- package/dist/src/MUI/Components/Error/index.d.ts +6 -0
- package/dist/src/MUI/Components/ExtendedPagination/ExtendedPagination.d.ts +13 -0
- package/dist/src/MUI/Components/ExtendedPagination/index.d.ts +2 -0
- package/dist/src/MUI/Components/ExtendedTable/ExtendedTable.d.ts +2 -0
- package/dist/src/MUI/Components/ExtendedTable/ExtendedTableBody.d.ts +18 -0
- package/dist/src/MUI/Components/ExtendedTable/ExtendedTableProps.d.ts +53 -0
- package/dist/src/MUI/Components/ExtendedTable/column.d.ts +36 -0
- package/dist/src/MUI/Components/ExtendedTable/index.d.ts +3 -0
- package/dist/src/MUI/Components/FileDisplay/FileBox.d.ts +7 -0
- package/dist/src/MUI/Components/FileDisplay/FileDisplay.d.ts +6 -0
- package/dist/src/MUI/Components/FileDisplay/IndividualFile.d.ts +8 -0
- package/dist/src/MUI/Components/FileDisplay/asset.d.ts +7 -0
- package/dist/src/MUI/Components/FileDisplay/index.d.ts +2 -0
- package/dist/src/MUI/Components/FileDropper/FileDropper.d.ts +12 -0
- package/dist/src/MUI/Components/FileDropper/index.d.ts +2 -0
- package/dist/src/MUI/Components/LabeledValue/LabeledValue.d.ts +16 -0
- package/dist/src/MUI/Components/LabeledValue/index.d.ts +2 -0
- package/dist/src/MUI/Components/LoaderButton/LoaderButton.d.ts +10 -0
- package/dist/src/MUI/Components/LoaderButton/index.d.ts +2 -0
- package/dist/src/MUI/Components/Panel/Panel.d.ts +17 -0
- package/dist/src/MUI/Components/Panel/index.d.ts +1 -0
- package/dist/src/MUI/Components/TabSet/TabSet.d.ts +20 -0
- package/dist/src/MUI/Components/TabSet/index.d.ts +2 -0
- package/dist/src/MUI/Utilities/toTitleText.d.ts +1 -0
- package/dist/src/_ladle/darkModeDecorator.d.ts +2 -0
- package/dist/src/index.d.ts +15 -0
- package/package.json +63 -0
package/README.md
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Torq Tools
|
|
2
|
+
|
|
3
|
+
A collection of react components, hooks and other utilities used in various Crew 2 projects
|
|
4
|
+
|
|
5
|
+
## Getting it running
|
|
6
|
+
|
|
7
|
+
Upon pulling down the repo, in order to get the component browser running, all you need to do is run `npm install` in the root, and then run `npm run ladle` once that's done. This should provide you with a link to a site containing a list of all the components available in crew-2ls.
|
|
8
|
+
|
|
9
|
+

|
|
10
|
+
|
|
11
|
+
## Adding your own component
|
|
12
|
+
|
|
13
|
+
1. Copy/paste in component from IRC project
|
|
14
|
+
2. Add a story that gives a basic demonstration of your component. Check out the [ladle documentation](https://ladle.dev/docs/stories) on how to create stories
|
|
15
|
+
3. Add jsDocs comments (/\*\* \*/) to your components props, indicating what each one does as well as any default behaviors for optional props (just so downstream users know what does what)
|
|
16
|
+
4. Export your component from `src/index.ts` (which is what actually adds your component to the final built npm package)
|
|
17
|
+
|
|
18
|
+
## Building and Publishing
|
|
19
|
+
|
|
20
|
+
You can build the project using `npm run build` to see what the final npm package looks like. Unfortunately though, deploying currently can only be done by Nick MacDonald until the package is moved under the @torqit scope
|