Skip to content

Commit b703d63

Browse files
authored
Merge pull request #39 from maemreyo/feat/imprv-ui
Feat/imprv UI
2 parents dfbf861 + 485160e commit b703d63

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+3601
-1343
lines changed

.storybook/main.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
1+
const { TsconfigPathsPlugin } = require('tsconfig-paths-webpack-plugin');
12
const path = require('path');
23

34
module.exports = {
4-
stories: [
5-
'../src/**/*.stories.mdx',
6-
'../src/**/*.stories.@(js|jsx|ts|tsx)',
7-
'../stories/**/*.stories.mdx',
8-
'../stories/**/*.stories.@(js|jsx|ts|tsx)',
9-
],
5+
stories: ['../src/**/*.stories.mdx', '../src/**/*.stories.@(js|jsx|ts|tsx)'],
106
addons: [
117
'@storybook/addon-links',
128
'@storybook/addon-essentials',
@@ -20,6 +16,9 @@ module.exports = {
2016
autodocs: true,
2117
},
2218
webpackFinal: async (config) => {
19+
// config.resolve.plugins = config.resolve.plugins || [];
20+
// config.resolve.plugins.push(new TsconfigPathsPlugin({}));
21+
2322
config.module.rules.push({
2423
test: /\.(ts|tsx)$/,
2524
exclude: /node_modules/,

create_components.sh

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
#!/bin/bash
2+
3+
# List of component names
4+
components=(
5+
"InputBase" "InputLabel" "InputControl" "InputIcon" "InputHelperText"
6+
"InputErrorMessage" "InputGroup" "TextAreaControl" "NumberInput" "DatePicker"
7+
"TimePicker" "FileUpload" "ColorPicker" "SelectBase" "MultiSelect" "Combobox"
8+
"AutoComplete" "CheckboxGroup" "RadioGroup" "ToggleSwitch" "ScrollArea"
9+
"Badge" "Pill" "Tooltip" "Popover" "ValidationSummary" "ConfirmDialog"
10+
"FormActions" "ProgressIndicator" "LoadingSpinner" "ValidationIcon"
11+
"FormGroup" "FormRow" "FormDivider" "FormMessage" "FormSection"
12+
"FormGrid" "FormStepper" "FormAccordion" "FormTabs" "FieldArray"
13+
"DynamicField"
14+
)
15+
16+
# Loop through each component and create folder and files
17+
for component in "${components[@]}"
18+
do
19+
# Create component directory
20+
mkdir -p "$component"
21+
echo "Created directory $component"
22+
23+
# Create index.ts
24+
touch "$component/index.ts"
25+
echo "Created $component/index.ts"
26+
27+
# Create <component_name>.tsx
28+
touch "$component/${component}.tsx"
29+
echo "Created $component/${component}.tsx"
30+
31+
# Create TODO.md
32+
touch "$component/TODO.md"
33+
echo "Created $component/TODO.md"
34+
35+
# Create styled.ts
36+
touch "$component/styled.ts"
37+
echo "Created $component/styled.ts"
38+
39+
# Create types.ts
40+
touch "$component/types.ts"
41+
echo "Created $component/types.ts"
42+
done

example/.npmignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

example/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

example/index.tsx

Lines changed: 0 additions & 14 deletions
This file was deleted.

example/package.json

Lines changed: 0 additions & 24 deletions
This file was deleted.

example/tsconfig.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.0.14",
2+
"version": "0.0.37",
33
"publishConfig": {
44
"access": "public",
55
"registry": "https://registry.npmjs.org/"
@@ -139,6 +139,7 @@
139139
"storybook": "^8.4.7",
140140
"ts-jest": "^29.2.5",
141141
"ts-loader": "^9.5.1",
142+
"tsconfig-paths-webpack-plugin": "^4.2.0",
142143
"tsdx": "^0.14.1",
143144
"tslib": "^2.8.1",
144145
"typescript": "^5.7.2",
@@ -149,9 +150,8 @@
149150
},
150151
"dependencies": {
151152
"@hookform/resolvers": "^3.9.1",
153+
"@matthew.ngo/react-form-kit": "^0.0.14",
152154
"lodash": "^4.17.21",
153-
"react-dnd": "^16.0.1",
154-
"react-dnd-html5-backend": "^16.0.1",
155155
"react-hook-form": "^7.49.3",
156156
"styled-components": "^6.1.13",
157157
"yup": "^1.6.1"

0 commit comments

Comments
 (0)