enwawa-ui 1.0.7
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/.babelrc.json +16 -0
- package/.eslintrc.cjs +37 -0
- package/.husky/pre-commit +6 -0
- package/.prettierignore +6 -0
- package/.prettierrc +4 -0
- package/.storybook/main.ts +21 -0
- package/.storybook/preview.tsx +57 -0
- package/.vscode/settings.json +14 -0
- package/CHANGELOG.md +118 -0
- package/auto.config.ts +34 -0
- package/constants.ts +1 -0
- package/createIndexes.js +34 -0
- package/index.ts +5 -0
- package/package.json +94 -0
- package/placeholder.ts +1 -0
- package/readme.md +1 -0
- package/rollup.config.mjs +48 -0
- package/stories/Introduction.mdx +221 -0
- package/stories/assets/backgrounds/bg-1.png +0 -0
- package/stories/assets/carousel/login/1st.png +0 -0
- package/stories/assets/icons/code-brackets.svg +1 -0
- package/stories/assets/icons/colors.svg +1 -0
- package/stories/assets/icons/comments.svg +1 -0
- package/stories/assets/icons/direction.svg +1 -0
- package/stories/assets/icons/flow.svg +1 -0
- package/stories/assets/icons/plugin.svg +1 -0
- package/stories/assets/icons/repo.svg +1 -0
- package/stories/assets/icons/stackalt.svg +1 -0
- package/stories/assets/icons/wawa-isotype.svg +4 -0
- package/stories/assets/icons/wawa-logo.svg +6 -0
- package/stories/atoms/AtAvatar/AtAvatar.stories.tsx +61 -0
- package/stories/atoms/AtAvatar/index.tsx +46 -0
- package/stories/atoms/AtButton/AtButton.stories.ts +88 -0
- package/stories/atoms/AtButton/index.tsx +69 -0
- package/stories/atoms/AtButton/styles.ts +13 -0
- package/stories/atoms/AtCheckBox/AtCheckBox.stories.tsx +30 -0
- package/stories/atoms/AtCheckBox/index.tsx +38 -0
- package/stories/atoms/AtDatePicker/AtDatePicker.stories.tsx +45 -0
- package/stories/atoms/AtDatePicker/index.tsx +93 -0
- package/stories/atoms/AtDivider/AtDivider.stories.tsx +57 -0
- package/stories/atoms/AtDivider/index.tsx +44 -0
- package/stories/atoms/AtImage/AtImage.stories.tsx +66 -0
- package/stories/atoms/AtImage/index.tsx +41 -0
- package/stories/atoms/AtLogo/AtLogo.stories.ts +47 -0
- package/stories/atoms/AtLogo/index.tsx +22 -0
- package/stories/atoms/AtLogo/styles.ts +26 -0
- package/stories/atoms/AtNumberInput/AtNumberInput.stories.ts +40 -0
- package/stories/atoms/AtNumberInput/index.tsx +138 -0
- package/stories/atoms/AtNumberInput/styles.tsx +7 -0
- package/stories/atoms/AtPasswordInput/AtPasswordInput.stories.ts +24 -0
- package/stories/atoms/AtPasswordInput/index.tsx +11 -0
- package/stories/atoms/AtRadio/AtRadio.stories.tsx +36 -0
- package/stories/atoms/AtRadio/index.tsx +44 -0
- package/stories/atoms/AtSelect/AtSelect.stories.tsx +132 -0
- package/stories/atoms/AtSelect/index.tsx +229 -0
- package/stories/atoms/AtSelect/styles.tsx +8 -0
- package/stories/atoms/AtText/AtText.stories.ts +104 -0
- package/stories/atoms/AtText/index.tsx +65 -0
- package/stories/atoms/AtTextInput/AtTextInput.stories.ts +40 -0
- package/stories/atoms/AtTextInput/index.tsx +85 -0
- package/stories/atoms/AtTitle/AtTitle.stories.ts +103 -0
- package/stories/atoms/AtTitle/index.tsx +77 -0
- package/stories/atoms/AtTitle/styles.ts +7 -0
- package/stories/atoms/index.ts +14 -0
- package/stories/molecules/MlBreadCrumb/MlBreadCrumb.stories.tsx +123 -0
- package/stories/molecules/MlBreadCrumb/index.tsx +29 -0
- package/stories/molecules/MlCard/MlCard.stories.tsx +55 -0
- package/stories/molecules/MlCard/index.tsx +100 -0
- package/stories/molecules/MlCard/styles.tsx +22 -0
- package/stories/molecules/MlCarousel/MlCarousel.stories.tsx +98 -0
- package/stories/molecules/MlCarousel/index.tsx +67 -0
- package/stories/molecules/MlDropdown/MlDropdown.stories.tsx +121 -0
- package/stories/molecules/MlDropdown/index.tsx +97 -0
- package/stories/molecules/MlFormItem/MlFormItem.stories.tsx +33 -0
- package/stories/molecules/MlFormItem/index.tsx +100 -0
- package/stories/molecules/MlRadioGroup/MlRadioGroup.stories.ts +40 -0
- package/stories/molecules/MlRadioGroup/index.tsx +60 -0
- package/stories/molecules/index.ts +6 -0
- package/stories/organisms/OrAlert/OrAlert.stories.tsx +136 -0
- package/stories/organisms/OrAlert/index.tsx +64 -0
- package/stories/organisms/OrCol/OrCol.stories.tsx +33 -0
- package/stories/organisms/OrCol/index.tsx +108 -0
- package/stories/organisms/OrCol/styles.ts +86 -0
- package/stories/organisms/OrContent/index.tsx +6 -0
- package/stories/organisms/OrCountryCard/OrCountryCard.stories.ts +19 -0
- package/stories/organisms/OrCountryCard/index.tsx +55 -0
- package/stories/organisms/OrFlagGrid/OrFlagGrid.stories.ts +41 -0
- package/stories/organisms/OrFlagGrid/index.tsx +54 -0
- package/stories/organisms/OrFrom/index.tsx +10 -0
- package/stories/organisms/OrHeader/index.tsx +6 -0
- package/stories/organisms/OrLayout/index.tsx +6 -0
- package/stories/organisms/OrLoginLayout/OrLoginLayout.stories.tsx +34 -0
- package/stories/organisms/OrLoginLayout/index.tsx +63 -0
- package/stories/organisms/OrLoginLayout/styles.tsx +16 -0
- package/stories/organisms/OrRow/OrRow.stories.tsx +48 -0
- package/stories/organisms/OrRow/index.tsx +71 -0
- package/stories/organisms/OrRow/styles.ts +24 -0
- package/stories/organisms/OrSider/index.tsx +6 -0
- package/stories/organisms/OrSimpleBanner/OrSimpleBanner.stories.ts +18 -0
- package/stories/organisms/OrSimpleBanner/index.tsx +26 -0
- package/stories/organisms/OrSimpleBanner/styles.ts +12 -0
- package/stories/organisms/OrSpace/OrSpace.stories.tsx +169 -0
- package/stories/organisms/OrSpace/index.tsx +43 -0
- package/stories/organisms/OrSpaceCompact/OrSpaceCompact.stories.tsx +94 -0
- package/stories/organisms/OrSpaceCompact/index.tsx +35 -0
- package/stories/organisms/index.ts +14 -0
- package/stories/templates/TmLoginCountry/TmLoginCountry.stories.ts +44 -0
- package/stories/templates/TmLoginCountry/index.tsx +64 -0
- package/stories/templates/TmLoginCountry/styles.tsx +14 -0
- package/stories/templates/TmLoginPhone/TmLoginPhone.stories.tsx +49 -0
- package/stories/templates/TmLoginPhone/index.tsx +191 -0
- package/stories/templates/TmLoginPhone/styles.tsx +31 -0
- package/stories/templates/index.ts +2 -0
- package/theme.tsx +56 -0
- package/tsconfig.json +38 -0
package/.babelrc.json
ADDED
package/.eslintrc.cjs
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
parserOptions: {
|
|
3
|
+
requireConfigFile: false,
|
|
4
|
+
ecmaVersion: 'latest',
|
|
5
|
+
sourceType: 'module',
|
|
6
|
+
tsconfigRootDir: __dirname,
|
|
7
|
+
},
|
|
8
|
+
parser: '@typescript-eslint/parser',
|
|
9
|
+
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
10
|
+
extends: ['plugin:storybook/recommended'],
|
|
11
|
+
env: {
|
|
12
|
+
commonjs: true,
|
|
13
|
+
node: true,
|
|
14
|
+
},
|
|
15
|
+
ignorePatterns: ['.eslintrc.js', 'dist'],
|
|
16
|
+
rules: {
|
|
17
|
+
'@typescript-eslint/interface-name-prefix': 'off',
|
|
18
|
+
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
19
|
+
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
20
|
+
'@typescript-eslint/no-explicit-any': 'off',
|
|
21
|
+
'no-console': [
|
|
22
|
+
'error',
|
|
23
|
+
{
|
|
24
|
+
allow: ['warn', 'error'],
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
'@typescript-eslint/no-unused-vars': [
|
|
28
|
+
'error',
|
|
29
|
+
{
|
|
30
|
+
vars: 'all',
|
|
31
|
+
varsIgnorePattern: '^_',
|
|
32
|
+
args: 'after-used',
|
|
33
|
+
argsIgnorePattern: '^_',
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
},
|
|
37
|
+
};
|
package/.prettierignore
ADDED
package/.prettierrc
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/** @type { import('@storybook/react-webpack5').StorybookConfig } */
|
|
2
|
+
import type { StorybookConfig } from '@storybook/react-webpack5';
|
|
3
|
+
const config: StorybookConfig = {
|
|
4
|
+
stories: ['../stories/**/*.mdx', '../stories/**/*.stories.@(js|jsx|ts|tsx)'],
|
|
5
|
+
addons: [
|
|
6
|
+
'@storybook/addon-links',
|
|
7
|
+
'@storybook/addon-essentials',
|
|
8
|
+
'@storybook/addon-interactions',
|
|
9
|
+
'@storybook/addon-onboarding',
|
|
10
|
+
// '@storybook/addon-mdx-gfm',
|
|
11
|
+
// 'storybook-dark-mode', //TODO: check update with storybook 7.1.0
|
|
12
|
+
],
|
|
13
|
+
framework: {
|
|
14
|
+
name: '@storybook/react-webpack5',
|
|
15
|
+
options: {},
|
|
16
|
+
},
|
|
17
|
+
docs: {
|
|
18
|
+
autodocs: 'tag',
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export default config;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/** @type { import('@storybook/react').Preview } */
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import type { Preview } from '@storybook/react';
|
|
4
|
+
// import { themes } from '@storybook/theming';
|
|
5
|
+
import { WaWaThemeProvider } from '../theme';
|
|
6
|
+
// import { addons } from '@storybook/preview-api';
|
|
7
|
+
// import { DocsContainer } from '@storybook/addon-docs';
|
|
8
|
+
|
|
9
|
+
//import { DARK_MODE_EVENT_NAME } from 'storybook-dark-mode'; //TODO: check update with storybook 7.1.0
|
|
10
|
+
|
|
11
|
+
// const channel = addons.getChannel();
|
|
12
|
+
|
|
13
|
+
const preview: Preview = {
|
|
14
|
+
parameters: {
|
|
15
|
+
// darkMode: {
|
|
16
|
+
// dark: { ...themes.dark },
|
|
17
|
+
// light: { ...themes.light },
|
|
18
|
+
// stylePreview: true,
|
|
19
|
+
// darkClass: ['lights-out', 'foo'],
|
|
20
|
+
// lightClass: ['lights-on', 'bar'],
|
|
21
|
+
// },
|
|
22
|
+
actions: { argTypesRegex: '^on[A-Z].*' },
|
|
23
|
+
controls: {
|
|
24
|
+
matchers: {
|
|
25
|
+
color: /(background|color)$/i,
|
|
26
|
+
date: /Date$/,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
//TODO: check update with storybook 7.1.0
|
|
30
|
+
// docs: {
|
|
31
|
+
// container: (props) => {
|
|
32
|
+
// const [isDark, setDark] = React.useState();
|
|
33
|
+
|
|
34
|
+
// React.useEffect(() => {
|
|
35
|
+
// channel.on(DARK_MODE_EVENT_NAME, setDark);
|
|
36
|
+
// return () => channel.removeListener(DARK_MODE_EVENT_NAME, setDark);
|
|
37
|
+
// }, [channel, setDark]);
|
|
38
|
+
|
|
39
|
+
// return (
|
|
40
|
+
// <DocsContainer
|
|
41
|
+
// {...props}
|
|
42
|
+
// theme={isDark ? themes.dark : themes.light}
|
|
43
|
+
// />
|
|
44
|
+
// );
|
|
45
|
+
// },
|
|
46
|
+
// },
|
|
47
|
+
},
|
|
48
|
+
decorators: [
|
|
49
|
+
(Story) => (
|
|
50
|
+
<WaWaThemeProvider>
|
|
51
|
+
<Story />
|
|
52
|
+
</WaWaThemeProvider>
|
|
53
|
+
),
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export default preview;
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# (Tue Jul 25 2023)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# (Fri Jul 21 2023)
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fix
|
|
10
|
+
|
|
11
|
+
- release [#40](https://github.com/La-Wawa-Inc/wawa-ui/pull/40) ([@BrayhanV](https://github.com/BrayhanV))
|
|
12
|
+
- Main [#39](https://github.com/La-Wawa-Inc/wawa-ui/pull/39) ([@BrayhanV](https://github.com/BrayhanV))
|
|
13
|
+
- Merge branch 'develop' of https://github.com/La-Wawa-Inc/wawa-ui into develop [#38](https://github.com/La-Wawa-Inc/wawa-ui/pull/38) ([@BrayhanV](https://github.com/BrayhanV))
|
|
14
|
+
- OrAlert [#35](https://github.com/La-Wawa-Inc/wawa-ui/pull/35) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
15
|
+
- add breadCrumb [#34](https://github.com/La-Wawa-Inc/wawa-ui/pull/34) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
16
|
+
- MlRadioGroup [#11](https://github.com/La-Wawa-Inc/wawa-ui/pull/11) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
17
|
+
- First release for npm [#31](https://github.com/La-Wawa-Inc/wawa-ui/pull/31) ([@BrayhanV](https://github.com/BrayhanV) [@xzotacx](https://github.com/xzotacx) [@miguelesco](https://github.com/miguelesco))
|
|
18
|
+
- Rm tm login phone [#30](https://github.com/La-Wawa-Inc/wawa-ui/pull/30) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
19
|
+
- AtImage [#28](https://github.com/La-Wawa-Inc/wawa-ui/pull/28) ([@miguelesco](https://github.com/miguelesco))
|
|
20
|
+
- At-Button Fix [#26](https://github.com/La-Wawa-Inc/wawa-ui/pull/26) ([@xzotacx](https://github.com/xzotacx))
|
|
21
|
+
- AtAvatar [#20](https://github.com/La-Wawa-Inc/wawa-ui/pull/20) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
22
|
+
- TmLoginCountry [#25](https://github.com/La-Wawa-Inc/wawa-ui/pull/25) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
23
|
+
- MlSimpleBanner [#24](https://github.com/La-Wawa-Inc/wawa-ui/pull/24) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
24
|
+
- AtCol [#22](https://github.com/La-Wawa-Inc/wawa-ui/pull/22) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
25
|
+
- AtRow [#21](https://github.com/La-Wawa-Inc/wawa-ui/pull/21) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
26
|
+
- AtCheckbox [#19](https://github.com/La-Wawa-Inc/wawa-ui/pull/19) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
27
|
+
- AtDatePicker [#18](https://github.com/La-Wawa-Inc/wawa-ui/pull/18) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
28
|
+
- OrFlagGrid [#9](https://github.com/La-Wawa-Inc/wawa-ui/pull/9) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
29
|
+
- Merge branch 'develop' [#23](https://github.com/La-Wawa-Inc/wawa-ui/pull/23) ([@BrayhanV](https://github.com/BrayhanV))
|
|
30
|
+
- AtSpaceCompact [#14](https://github.com/La-Wawa-Inc/wawa-ui/pull/14) ([@xzotacx](https://github.com/xzotacx))
|
|
31
|
+
- AtSpace [#13](https://github.com/La-Wawa-Inc/wawa-ui/pull/13) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
32
|
+
- AtRadio [#10](https://github.com/La-Wawa-Inc/wawa-ui/pull/10) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
33
|
+
- MlCountryCard [#8](https://github.com/La-Wawa-Inc/wawa-ui/pull/8) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
34
|
+
- AtNumberInput [#17](https://github.com/La-Wawa-Inc/wawa-ui/pull/17) ([@xzotacx](https://github.com/xzotacx))
|
|
35
|
+
- AtDivider [#15](https://github.com/La-Wawa-Inc/wawa-ui/pull/15) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
36
|
+
- AtCarousel [#6](https://github.com/La-Wawa-Inc/wawa-ui/pull/6) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
37
|
+
- Box Shadow AtButton [#12](https://github.com/La-Wawa-Inc/wawa-ui/pull/12) ([@xzotacx](https://github.com/xzotacx))
|
|
38
|
+
- MlDropdown [#16](https://github.com/La-Wawa-Inc/wawa-ui/pull/16) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
39
|
+
- AtCard [#7](https://github.com/La-Wawa-Inc/wawa-ui/pull/7) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
40
|
+
- AtSelect [#5](https://github.com/La-Wawa-Inc/wawa-ui/pull/5) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
41
|
+
- AtTitle [#4](https://github.com/La-Wawa-Inc/wawa-ui/pull/4) ([@BrayhanV](https://github.com/BrayhanV) [@miguelesco](https://github.com/miguelesco) [@xzotacx](https://github.com/xzotacx))
|
|
42
|
+
- new storyline for Text [#3](https://github.com/La-Wawa-Inc/wawa-ui/pull/3) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
43
|
+
- Created AtButton #1 [#2](https://github.com/La-Wawa-Inc/wawa-ui/pull/2) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
44
|
+
|
|
45
|
+
#### ⚠️ Pushed to `main`
|
|
46
|
+
|
|
47
|
+
- Config release for npm ([@BrayhanV](https://github.com/BrayhanV))
|
|
48
|
+
- Styles fix on template ([@BrayhanV](https://github.com/BrayhanV))
|
|
49
|
+
- node version used on action updated ([@BrayhanV](https://github.com/BrayhanV))
|
|
50
|
+
- Fix main release ([@BrayhanV](https://github.com/BrayhanV))
|
|
51
|
+
- Revert "add colors file" ([@BrayhanV](https://github.com/BrayhanV))
|
|
52
|
+
- Build folder added to gitignore ([@BrayhanV](https://github.com/BrayhanV))
|
|
53
|
+
- First commit ([@BrayhanV](https://github.com/BrayhanV))
|
|
54
|
+
|
|
55
|
+
#### Authors: 3
|
|
56
|
+
|
|
57
|
+
- Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
|
|
58
|
+
- Miguelangel Escorche ([@miguelesco](https://github.com/miguelesco))
|
|
59
|
+
- Richard Martinez ([@xzotacx](https://github.com/xzotacx))
|
|
60
|
+
|
|
61
|
+
---
|
|
62
|
+
|
|
63
|
+
# (Fri Jul 21 2023)
|
|
64
|
+
|
|
65
|
+
#### 🐛 Bug Fix
|
|
66
|
+
|
|
67
|
+
- OrAlert [#35](https://github.com/La-Wawa-Inc/wawa-ui/pull/35) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
68
|
+
- add breadCrumb [#34](https://github.com/La-Wawa-Inc/wawa-ui/pull/34) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
69
|
+
- MlRadioGroup [#11](https://github.com/La-Wawa-Inc/wawa-ui/pull/11) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
70
|
+
- First release for npm [#31](https://github.com/La-Wawa-Inc/wawa-ui/pull/31) ([@BrayhanV](https://github.com/BrayhanV) [@xzotacx](https://github.com/xzotacx) [@miguelesco](https://github.com/miguelesco))
|
|
71
|
+
- Rm tm login phone [#30](https://github.com/La-Wawa-Inc/wawa-ui/pull/30) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
72
|
+
- AtImage [#28](https://github.com/La-Wawa-Inc/wawa-ui/pull/28) ([@miguelesco](https://github.com/miguelesco))
|
|
73
|
+
- At-Button Fix [#26](https://github.com/La-Wawa-Inc/wawa-ui/pull/26) ([@xzotacx](https://github.com/xzotacx))
|
|
74
|
+
- AtAvatar [#20](https://github.com/La-Wawa-Inc/wawa-ui/pull/20) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
75
|
+
- TmLoginCountry [#25](https://github.com/La-Wawa-Inc/wawa-ui/pull/25) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
76
|
+
- MlSimpleBanner [#24](https://github.com/La-Wawa-Inc/wawa-ui/pull/24) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
77
|
+
- AtCol [#22](https://github.com/La-Wawa-Inc/wawa-ui/pull/22) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
78
|
+
- AtRow [#21](https://github.com/La-Wawa-Inc/wawa-ui/pull/21) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
79
|
+
- AtCheckbox [#19](https://github.com/La-Wawa-Inc/wawa-ui/pull/19) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
80
|
+
- AtDatePicker [#18](https://github.com/La-Wawa-Inc/wawa-ui/pull/18) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
81
|
+
- OrFlagGrid [#9](https://github.com/La-Wawa-Inc/wawa-ui/pull/9) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
82
|
+
- Merge branch 'develop' [#23](https://github.com/La-Wawa-Inc/wawa-ui/pull/23) ([@BrayhanV](https://github.com/BrayhanV))
|
|
83
|
+
- AtSpaceCompact [#14](https://github.com/La-Wawa-Inc/wawa-ui/pull/14) ([@xzotacx](https://github.com/xzotacx))
|
|
84
|
+
- AtSpace [#13](https://github.com/La-Wawa-Inc/wawa-ui/pull/13) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
85
|
+
- AtRadio [#10](https://github.com/La-Wawa-Inc/wawa-ui/pull/10) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
86
|
+
- MlCountryCard [#8](https://github.com/La-Wawa-Inc/wawa-ui/pull/8) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
87
|
+
- AtNumberInput [#17](https://github.com/La-Wawa-Inc/wawa-ui/pull/17) ([@xzotacx](https://github.com/xzotacx))
|
|
88
|
+
- AtDivider [#15](https://github.com/La-Wawa-Inc/wawa-ui/pull/15) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
89
|
+
- AtCarousel [#6](https://github.com/La-Wawa-Inc/wawa-ui/pull/6) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
90
|
+
- Box Shadow AtButton [#12](https://github.com/La-Wawa-Inc/wawa-ui/pull/12) ([@xzotacx](https://github.com/xzotacx))
|
|
91
|
+
- MlDropdown [#16](https://github.com/La-Wawa-Inc/wawa-ui/pull/16) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
92
|
+
- AtCard [#7](https://github.com/La-Wawa-Inc/wawa-ui/pull/7) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
93
|
+
- AtSelect [#5](https://github.com/La-Wawa-Inc/wawa-ui/pull/5) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
94
|
+
- AtTitle [#4](https://github.com/La-Wawa-Inc/wawa-ui/pull/4) ([@BrayhanV](https://github.com/BrayhanV) [@miguelesco](https://github.com/miguelesco) [@xzotacx](https://github.com/xzotacx))
|
|
95
|
+
- new storyline for Text [#3](https://github.com/La-Wawa-Inc/wawa-ui/pull/3) ([@miguelesco](https://github.com/miguelesco) [@BrayhanV](https://github.com/BrayhanV))
|
|
96
|
+
- Created AtButton #1 [#2](https://github.com/La-Wawa-Inc/wawa-ui/pull/2) ([@xzotacx](https://github.com/xzotacx) [@BrayhanV](https://github.com/BrayhanV))
|
|
97
|
+
|
|
98
|
+
#### ⚠️ Pushed to `main`
|
|
99
|
+
|
|
100
|
+
- Layout components added ([@BrayhanV](https://github.com/BrayhanV))
|
|
101
|
+
- rename breadcrumb ([@BrayhanV](https://github.com/BrayhanV))
|
|
102
|
+
- Fix on name ([@BrayhanV](https://github.com/BrayhanV))
|
|
103
|
+
- actions removed ([@BrayhanV](https://github.com/BrayhanV))
|
|
104
|
+
- TmLoginCountry completed ([@BrayhanV](https://github.com/BrayhanV))
|
|
105
|
+
- Merge tag 'main' into develop ([@BrayhanV](https://github.com/BrayhanV))
|
|
106
|
+
- Config release for npm ([@BrayhanV](https://github.com/BrayhanV))
|
|
107
|
+
- Styles fix on template ([@BrayhanV](https://github.com/BrayhanV))
|
|
108
|
+
- node version used on action updated ([@BrayhanV](https://github.com/BrayhanV))
|
|
109
|
+
- Fix main release ([@BrayhanV](https://github.com/BrayhanV))
|
|
110
|
+
- Revert "add colors file" ([@BrayhanV](https://github.com/BrayhanV))
|
|
111
|
+
- Build folder added to gitignore ([@BrayhanV](https://github.com/BrayhanV))
|
|
112
|
+
- First commit ([@BrayhanV](https://github.com/BrayhanV))
|
|
113
|
+
|
|
114
|
+
#### Authors: 3
|
|
115
|
+
|
|
116
|
+
- Brayhan Villalba ([@BrayhanV](https://github.com/BrayhanV))
|
|
117
|
+
- Miguelangel Escorche ([@miguelesco](https://github.com/miguelesco))
|
|
118
|
+
- Richard Martinez ([@xzotacx](https://github.com/xzotacx))
|
package/auto.config.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AutoRc } from 'auto';
|
|
2
|
+
|
|
3
|
+
import { INpmConfig } from '@auto-it/npm';
|
|
4
|
+
import { IAllContributorsPluginOptions } from '@auto-it/all-contributors';
|
|
5
|
+
|
|
6
|
+
const npmOptions: INpmConfig = {
|
|
7
|
+
exact: true,
|
|
8
|
+
canaryScope: '@auto-canary',
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
const allContributorsOptions: IAllContributorsPluginOptions = {
|
|
12
|
+
types: {
|
|
13
|
+
plugin: '**/plugin/**/*',
|
|
14
|
+
code: ['**/src/**/*', '**/package.json', '**/tsconfig.json'],
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** Auto configuration */
|
|
19
|
+
export default function rc(): AutoRc {
|
|
20
|
+
return {
|
|
21
|
+
plugins: [
|
|
22
|
+
'released',
|
|
23
|
+
['npm', npmOptions],
|
|
24
|
+
['all-contributors', allContributorsOptions],
|
|
25
|
+
],
|
|
26
|
+
labels: [
|
|
27
|
+
{
|
|
28
|
+
name: 'blog-post',
|
|
29
|
+
changelogTitle: '📚 Blog Post',
|
|
30
|
+
releaseType: 'none',
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
};
|
|
34
|
+
}
|
package/constants.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const PRIMARY_COLOR = '#6C369C';
|
package/createIndexes.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { readdirSync, writeFileSync } from 'fs';
|
|
2
|
+
|
|
3
|
+
const getDirectories = (source) =>
|
|
4
|
+
readdirSync(source, { withFileTypes: true })
|
|
5
|
+
.filter((dirent) => dirent.isDirectory())
|
|
6
|
+
.map((dirent) => dirent.name);
|
|
7
|
+
|
|
8
|
+
let atoms = getDirectories('./stories/atoms');
|
|
9
|
+
let molecules = getDirectories('./stories/molecules');
|
|
10
|
+
let organisms = getDirectories('./stories/organisms');
|
|
11
|
+
let templates = getDirectories('./stories/templates');
|
|
12
|
+
|
|
13
|
+
const atomicDesign = { atoms, molecules, organisms, templates };
|
|
14
|
+
|
|
15
|
+
//Excluding empty folder from index.ts
|
|
16
|
+
Object.keys(atomicDesign).forEach((key) => {
|
|
17
|
+
atomicDesign[key].forEach(particle => {
|
|
18
|
+
const files = readdirSync(`./stories/${key}/${particle}`)
|
|
19
|
+
if (!files.length) {
|
|
20
|
+
atomicDesign[key] = atomicDesign[key].filter(el => el !== particle)
|
|
21
|
+
}
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
Object.keys(atomicDesign).forEach((key) => {
|
|
26
|
+
let fileImports = '';
|
|
27
|
+
atomicDesign[key].forEach((elementName) => {
|
|
28
|
+
fileImports += `export * from './${elementName}';`;
|
|
29
|
+
fileImports += '\n';
|
|
30
|
+
});
|
|
31
|
+
writeFileSync(`./stories/${key}/index.ts`, fileImports);
|
|
32
|
+
// eslint-disable-next-line no-console
|
|
33
|
+
console.log(fileImports);
|
|
34
|
+
});
|
package/index.ts
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "enwawa-ui",
|
|
3
|
+
"version": "1.0.7",
|
|
4
|
+
"main": "lib/index.js",
|
|
5
|
+
"module": "lib/index.esm.js",
|
|
6
|
+
"types": "lib/index.d.ts",
|
|
7
|
+
"author": "WaWa",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"lint-staged": {
|
|
11
|
+
"**/*.{js,jsx,json}": [
|
|
12
|
+
"eslint '**/*.{ts,tsx}' --fix"
|
|
13
|
+
]
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@babel/preset-env": "^7.22.9",
|
|
17
|
+
"@babel/preset-react": "^7.22.5",
|
|
18
|
+
"@babel/preset-typescript": "^7.22.5",
|
|
19
|
+
"@rollup/plugin-babel": "^6.0.3",
|
|
20
|
+
"@rollup/plugin-commonjs": "^25.0.3",
|
|
21
|
+
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
22
|
+
"@rollup/plugin-terser": "^0.4.3",
|
|
23
|
+
"@rollup/plugin-typescript": "^11.1.2",
|
|
24
|
+
"@storybook/addon-essentials": "7.1.0",
|
|
25
|
+
"@storybook/addon-interactions": "7.1.0",
|
|
26
|
+
"@storybook/addon-links": "7.1.0",
|
|
27
|
+
"@storybook/blocks": "7.1.0",
|
|
28
|
+
"@storybook/react": "7.1.0",
|
|
29
|
+
"@storybook/react-webpack5": "7.1.0",
|
|
30
|
+
"@storybook/testing-library": "0.2.0",
|
|
31
|
+
"@types/react": "^18.2.15",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^6.1.0",
|
|
33
|
+
"@typescript-eslint/parser": "^6.1.0",
|
|
34
|
+
"auto": "^10.46.0",
|
|
35
|
+
"eslint": "^8.0.1",
|
|
36
|
+
"eslint-config-prettier": "^8.3.0",
|
|
37
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
38
|
+
"eslint-plugin-storybook": "^0.6.12",
|
|
39
|
+
"husky": "^8.0.3",
|
|
40
|
+
"postcss": "^8.4.27",
|
|
41
|
+
"prettier": "^3.0.0",
|
|
42
|
+
"pretty-quick": "^3.1.3",
|
|
43
|
+
"prop-types": "15.8.1",
|
|
44
|
+
"react": "^18.2.0",
|
|
45
|
+
"react-dom": "^18.2.0",
|
|
46
|
+
"rollup": "^3.26.3",
|
|
47
|
+
"rollup-plugin-dts": "^5.3.0",
|
|
48
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
49
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
50
|
+
"rollup-plugin-svg": "^2.0.0",
|
|
51
|
+
"semantic-release": "^21.0.7",
|
|
52
|
+
"typescript": "^5.1.6"
|
|
53
|
+
},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"react": "^18.2.0",
|
|
56
|
+
"react-dom": "^18.2.0"
|
|
57
|
+
},
|
|
58
|
+
"resolutions": {
|
|
59
|
+
"jackspeak": "2.1.1"
|
|
60
|
+
},
|
|
61
|
+
"scripts": {
|
|
62
|
+
"storybook": "storybook dev -p 6006 --quiet",
|
|
63
|
+
"build-storybook": "storybook build -o dist",
|
|
64
|
+
"build": "rollup -c",
|
|
65
|
+
"create-indexes": "node createIndexes.js",
|
|
66
|
+
"release": "auto shipit",
|
|
67
|
+
"prepare": "husky install"
|
|
68
|
+
},
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@ant-design/colors": "^7.0.0",
|
|
71
|
+
"@fontsource/ibm-plex-sans": "^5.0.5",
|
|
72
|
+
"antd": "^5.7.0",
|
|
73
|
+
"react-fast-marquee": "^1.6.0",
|
|
74
|
+
"react-inlinesvg": "^3.0.2",
|
|
75
|
+
"storybook": "^7.1.0",
|
|
76
|
+
"styled-components": "^6.0.4",
|
|
77
|
+
"ts-transformer-keys": "^0.4.4"
|
|
78
|
+
},
|
|
79
|
+
"repository": "https://github.com/La-Wawa-Inc/wawa-ui.git",
|
|
80
|
+
"auto": {
|
|
81
|
+
"plugins": [
|
|
82
|
+
"npm"
|
|
83
|
+
],
|
|
84
|
+
"onlyPublishWithReleaseLabel": true
|
|
85
|
+
},
|
|
86
|
+
"plugins": [
|
|
87
|
+
"@semantic-release/commit-analyzer",
|
|
88
|
+
"@semantic-release/release-notes-generator",
|
|
89
|
+
"@semantic-release/changelog",
|
|
90
|
+
"@semantic-release/github",
|
|
91
|
+
"@semantic-release/npm",
|
|
92
|
+
"@semantic-release/git"
|
|
93
|
+
]
|
|
94
|
+
}
|
package/placeholder.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/readme.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Read me
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import peerDepsExternal from 'rollup-plugin-peer-deps-external';
|
|
2
|
+
import resolve from '@rollup/plugin-node-resolve';
|
|
3
|
+
import commonjs from '@rollup/plugin-commonjs';
|
|
4
|
+
import typescript from '@rollup/plugin-typescript';
|
|
5
|
+
import postcss from 'rollup-plugin-postcss';
|
|
6
|
+
import dts from 'rollup-plugin-dts';
|
|
7
|
+
import svg from 'rollup-plugin-svg';
|
|
8
|
+
|
|
9
|
+
// This is required to read package.json file when
|
|
10
|
+
// using Native ES modules in Node.js
|
|
11
|
+
// https://rollupjs.org/command-line-interface/#importing-package-json
|
|
12
|
+
import { createRequire } from 'node:module';
|
|
13
|
+
const requireFile = createRequire(import.meta.url);
|
|
14
|
+
const packageJson = requireFile('./package.json');
|
|
15
|
+
|
|
16
|
+
export default [
|
|
17
|
+
{
|
|
18
|
+
input: 'index.ts',
|
|
19
|
+
output: [
|
|
20
|
+
{
|
|
21
|
+
file: packageJson.main,
|
|
22
|
+
format: 'cjs',
|
|
23
|
+
sourcemap: true,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
file: packageJson.module,
|
|
27
|
+
format: 'esm',
|
|
28
|
+
sourcemap: true,
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
plugins: [
|
|
32
|
+
peerDepsExternal(),
|
|
33
|
+
resolve(),
|
|
34
|
+
commonjs(),
|
|
35
|
+
typescript(),
|
|
36
|
+
svg(),
|
|
37
|
+
postcss({
|
|
38
|
+
extensions: ['.css'],
|
|
39
|
+
}),
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
input: 'lib/index.d.ts',
|
|
44
|
+
output: [{ file: 'lib/index.d.ts', format: 'es' }],
|
|
45
|
+
plugins: [dts()],
|
|
46
|
+
external: [/\.css$/],
|
|
47
|
+
},
|
|
48
|
+
];
|