tycho-components 0.0.4 → 0.0.5-SNAPSHOT-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.
- package/dist/AppColorpicker/AppColorpicker.d.ts +10 -0
- package/dist/AppColorpicker/AppColorpicker.js +21 -0
- package/{src/AppColorpicker/index.tsx → dist/AppColorpicker/index.d.ts} +0 -1
- package/dist/AppColorpicker/index.js +2 -0
- package/dist/AppEditable/AppEditable.d.ts +14 -0
- package/dist/AppEditable/AppEditable.js +80 -0
- package/dist/AppEditable/AppEditableField.d.ts +7 -0
- package/dist/AppEditable/AppEditableField.js +1 -0
- package/dist/AppEditable/FormField.d.ts +14 -0
- package/dist/AppEditable/FormField.js +8 -0
- package/dist/AppEditable/FormFieldOption.d.ts +7 -0
- package/dist/AppEditable/FormFieldOption.js +20 -0
- package/{src/AppEditable/index.tsx → dist/AppEditable/index.d.ts} +0 -1
- package/dist/AppEditable/index.js +2 -0
- package/dist/AppModal/AppModal.d.ts +20 -0
- package/dist/AppModal/AppModal.js +22 -0
- package/dist/AppModal/AppModalConfirm.d.ts +11 -0
- package/dist/AppModal/AppModalConfirm.js +20 -0
- package/dist/AppModal/AppModalRemove.d.ts +9 -0
- package/dist/AppModal/AppModalRemove.js +20 -0
- package/{src/AppModal/index.tsx → dist/AppModal/index.d.ts} +0 -1
- package/dist/AppModal/index.js +2 -0
- package/dist/AppToast/AppToast.d.ts +2 -0
- package/dist/AppToast/AppToast.js +78 -0
- package/dist/AppToast/ToastMessage.d.ts +8 -0
- package/dist/AppToast/ToastMessage.js +4 -0
- package/{src/AppToast/index.tsx → dist/AppToast/index.d.ts} +0 -1
- package/dist/AppToast/index.js +2 -0
- package/dist/Dummy/Dummy.d.ts +9 -0
- package/dist/Dummy/Dummy.js +8 -0
- package/{src/Dummy/index.tsx → dist/Dummy/index.d.ts} +0 -1
- package/dist/Dummy/index.js +2 -0
- package/dist/Participants/ParticipantCreate/ParticipantCreate.d.ts +9 -0
- package/dist/Participants/ParticipantCreate/ParticipantCreate.js +41 -0
- package/{src/Participants/ParticipantCreate/index.tsx → dist/Participants/ParticipantCreate/index.d.ts} +0 -1
- package/dist/Participants/ParticipantCreate/index.js +2 -0
- package/dist/Participants/ParticipantRemove/ParticipantRemove.d.ts +11 -0
- package/dist/Participants/ParticipantRemove/ParticipantRemove.js +26 -0
- package/{src/Participants/ParticipantRemove/index.tsx → dist/Participants/ParticipantRemove/index.d.ts} +0 -1
- package/dist/Participants/ParticipantRemove/index.js +2 -0
- package/dist/Participants/Participants.d.ts +9 -0
- package/dist/Participants/Participants.js +57 -0
- package/{src/Participants/index.tsx → dist/Participants/index.d.ts} +0 -1
- package/dist/Participants/index.js +2 -0
- package/dist/Participants/types/Participant.d.ts +27 -0
- package/dist/Participants/types/Participant.js +17 -0
- package/dist/Participants/types/ParticipantService.d.ts +11 -0
- package/dist/Participants/types/ParticipantService.js +12 -0
- package/dist/configs/CommonContext.d.ts +10 -0
- package/dist/configs/CommonContext.js +10 -0
- package/dist/configs/CookieStorage.d.ts +10 -0
- package/dist/configs/CookieStorage.js +28 -0
- package/dist/configs/Localization.d.ts +64 -0
- package/dist/configs/Localization.js +28 -0
- package/dist/configs/MessageUtils.d.ts +20 -0
- package/dist/configs/MessageUtils.js +30 -0
- package/dist/configs/Storage.d.ts +9 -0
- package/dist/configs/Storage.js +16 -0
- package/dist/configs/api.d.ts +2 -0
- package/dist/configs/api.js +38 -0
- package/dist/configs/localization/CommonTexts.d.ts +27 -0
- package/dist/configs/localization/CommonTexts.js +27 -0
- package/dist/configs/localization/ParticipantsTexts.d.ts +34 -0
- package/dist/configs/localization/ParticipantsTexts.js +34 -0
- package/dist/configs/store/actions.d.ts +4 -0
- package/dist/configs/store/actions.js +9 -0
- package/dist/configs/store/reducer.d.ts +3 -0
- package/dist/configs/store/reducer.js +19 -0
- package/dist/configs/store/store.d.ts +3 -0
- package/dist/configs/store/store.js +6 -0
- package/dist/configs/store/types.d.ts +13 -0
- package/dist/configs/store/types.js +4 -0
- package/dist/index.js +9 -0
- package/package.json +33 -24
- package/.eslintignore +0 -2
- package/.eslintrc.cjs +0 -28
- package/.eslintrc.json +0 -31
- package/.gitlab-ci.yml +0 -14
- package/.storybook/main.ts +0 -32
- package/.storybook/preview-head.html +0 -4
- package/.storybook/preview.css +0 -6
- package/.storybook/preview.tsx +0 -29
- package/src/AppColorpicker/AppColorpicker.tsx +0 -69
- package/src/AppEditable/AppEditable.tsx +0 -280
- package/src/AppEditable/AppEditableField.ts +0 -7
- package/src/AppEditable/FormField.ts +0 -26
- package/src/AppEditable/FormFieldOption.ts +0 -38
- package/src/AppModal/AppModal.tsx +0 -93
- package/src/AppModal/AppModalConfirm.tsx +0 -62
- package/src/AppModal/AppModalRemove.tsx +0 -51
- package/src/AppToast/AppToast.tsx +0 -94
- package/src/AppToast/ToastMessage.ts +0 -9
- package/src/Dummy/Dummy.stories.tsx +0 -21
- package/src/Dummy/Dummy.tsx +0 -16
- package/src/Participants/ParticipantCreate/ParticipantCreate.tsx +0 -83
- package/src/Participants/ParticipantRemove/ParticipantRemove.tsx +0 -51
- package/src/Participants/Participants.stories.tsx +0 -45
- package/src/Participants/Participants.tsx +0 -145
- package/src/Participants/types/Participant.ts +0 -43
- package/src/Participants/types/ParticipantService.ts +0 -18
- package/src/configs/CommonContext.tsx +0 -23
- package/src/configs/CookieStorage.ts +0 -36
- package/src/configs/Localization.ts +0 -30
- package/src/configs/MessageUtils.ts +0 -60
- package/src/configs/Storage.ts +0 -21
- package/src/configs/api.ts +0 -49
- package/src/configs/localization/CommonTexts.ts +0 -27
- package/src/configs/localization/ParticipantsTexts.ts +0 -40
- package/src/configs/store/actions.ts +0 -12
- package/src/configs/store/reducer.ts +0 -22
- package/src/configs/store/store.ts +0 -9
- package/src/configs/store/types.ts +0 -16
- package/src/new-styles/base/_borders.scss +0 -30
- package/src/new-styles/base/_colors.scss +0 -100
- package/src/new-styles/base/_displays.scss +0 -207
- package/src/new-styles/base/_margins.css +0 -174
- package/src/new-styles/base/_spacing.scss +0 -26
- package/src/new-styles/base/_tokens.scss +0 -329
- package/src/new-styles/base/_typographs.scss +0 -348
- package/src/new-styles/main.scss +0 -27
- package/src/react-app-env.d.ts +0 -5
- package/src/vite-env.d.ts +0 -13
- package/stories/Configure.mdx +0 -171
- package/stories/StorybookUtils.tsx +0 -40
- package/tsconfig.json +0 -31
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -26
- /package/{src → dist}/AppColorpicker/style.scss +0 -0
- /package/{src → dist}/AppEditable/style.scss +0 -0
- /package/{src → dist}/AppModal/style.scss +0 -0
- /package/{src → dist}/AppToast/style.scss +0 -0
- /package/{src → dist}/Dummy/styles.scss +0 -0
- /package/{src → dist}/Participants/ParticipantCreate/style.scss +0 -0
- /package/{src → dist}/Participants/ParticipantRemove/style.scss +0 -0
- /package/{src → dist}/Participants/style.scss +0 -0
- /package/{src/index.ts → dist/index.d.ts} +0 -0
- /package/{src → dist}/styles/_variables.scss +0 -0
- /package/{src → dist}/styles/bootstrap.min.css +0 -0
- /package/{src → dist}/styles/main.scss +0 -0
package/src/vite-env.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite-plugin-svgr/client" />
|
|
2
|
-
/// <reference types="vitest" />
|
|
3
|
-
/// <reference types="vite/client" />
|
|
4
|
-
|
|
5
|
-
interface ImportMetaEnv {
|
|
6
|
-
readonly VITE_APP_TITLE: string;
|
|
7
|
-
readonly VITE_APP_URL_API: string;
|
|
8
|
-
readonly VITE_APP_PUBLIC_URL: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
interface ImportMeta {
|
|
12
|
-
readonly env: ImportMetaEnv;
|
|
13
|
-
}
|
package/stories/Configure.mdx
DELETED
|
@@ -1,171 +0,0 @@
|
|
|
1
|
-
import { Meta } from '@storybook/blocks';
|
|
2
|
-
|
|
3
|
-
<Meta title="Component Library" />
|
|
4
|
-
|
|
5
|
-
<div className="sb-container">
|
|
6
|
-
<div className="sb-section-title"># Component Library</div>
|
|
7
|
-
</div>
|
|
8
|
-
<div className="sb-container">
|
|
9
|
-
<div className="sb-section-title">
|
|
10
|
-
## TODO: Ajustar texto e estilo dessa tela
|
|
11
|
-
<a href="/?path=/docs/components-button--docs">Link de acesso ao Button</a>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
<style>
|
|
16
|
-
{`
|
|
17
|
-
.sb-container {
|
|
18
|
-
margin-bottom: 48px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.sb-section {
|
|
22
|
-
width: 100%;
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: row;
|
|
25
|
-
gap: 20px;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
img {
|
|
29
|
-
object-fit: cover;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.sb-section-title {
|
|
33
|
-
margin-bottom: 32px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.sb-section a:not(h1 a, h2 a, h3 a) {
|
|
37
|
-
font-size: 14px;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.sb-section-item, .sb-grid-item {
|
|
41
|
-
flex: 1;
|
|
42
|
-
display: flex;
|
|
43
|
-
flex-direction: column;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.sb-section-item-heading {
|
|
47
|
-
padding-top: 20px !important;
|
|
48
|
-
padding-bottom: 5px !important;
|
|
49
|
-
margin: 0 !important;
|
|
50
|
-
}
|
|
51
|
-
.sb-section-item-paragraph {
|
|
52
|
-
margin: 0;
|
|
53
|
-
padding-bottom: 10px;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.sb-chevron {
|
|
57
|
-
margin-left: 5px;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.sb-features-grid {
|
|
61
|
-
display: grid;
|
|
62
|
-
grid-template-columns: repeat(2, 1fr);
|
|
63
|
-
grid-gap: 32px 20px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.sb-socials {
|
|
67
|
-
display: grid;
|
|
68
|
-
grid-template-columns: repeat(4, 1fr);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.sb-socials p {
|
|
72
|
-
margin-bottom: 10px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.sb-explore-image {
|
|
76
|
-
max-height: 32px;
|
|
77
|
-
align-self: flex-start;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.sb-addon {
|
|
81
|
-
width: 100%;
|
|
82
|
-
display: flex;
|
|
83
|
-
align-items: center;
|
|
84
|
-
position: relative;
|
|
85
|
-
background-color: #EEF3F8;
|
|
86
|
-
border-radius: 5px;
|
|
87
|
-
border: 1px solid rgba(0, 0, 0, 0.05);
|
|
88
|
-
background: #EEF3F8;
|
|
89
|
-
height: 180px;
|
|
90
|
-
margin-bottom: 48px;
|
|
91
|
-
overflow: hidden;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.sb-addon-text {
|
|
95
|
-
padding-left: 48px;
|
|
96
|
-
max-width: 240px;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.sb-addon-text h4 {
|
|
100
|
-
padding-top: 0px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
.sb-addon-img {
|
|
104
|
-
position: absolute;
|
|
105
|
-
left: 345px;
|
|
106
|
-
top: 0;
|
|
107
|
-
height: 100%;
|
|
108
|
-
width: 200%;
|
|
109
|
-
overflow: hidden;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.sb-addon-img img {
|
|
113
|
-
width: 650px;
|
|
114
|
-
transform: rotate(-15deg);
|
|
115
|
-
margin-left: 40px;
|
|
116
|
-
margin-top: -72px;
|
|
117
|
-
box-shadow: 0 0 1px rgba(255, 255, 255, 0);
|
|
118
|
-
backface-visibility: hidden;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
@media screen and (max-width: 800px) {
|
|
122
|
-
.sb-addon-img {
|
|
123
|
-
left: 300px;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
@media screen and (max-width: 600px) {
|
|
128
|
-
.sb-section {
|
|
129
|
-
flex-direction: column;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.sb-features-grid {
|
|
133
|
-
grid-template-columns: repeat(1, 1fr);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.sb-socials {
|
|
137
|
-
grid-template-columns: repeat(2, 1fr);
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.sb-addon {
|
|
141
|
-
height: 280px;
|
|
142
|
-
align-items: flex-start;
|
|
143
|
-
padding-top: 32px;
|
|
144
|
-
overflow: hidden;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.sb-addon-text {
|
|
148
|
-
padding-left: 24px;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
.sb-addon-img {
|
|
152
|
-
right: 0;
|
|
153
|
-
left: 0;
|
|
154
|
-
top: 130px;
|
|
155
|
-
bottom: 0;
|
|
156
|
-
overflow: hidden;
|
|
157
|
-
height: auto;
|
|
158
|
-
width: 124%;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
.sb-addon-img img {
|
|
162
|
-
width: 1200px;
|
|
163
|
-
transform: rotate(-12deg);
|
|
164
|
-
margin-left: 0;
|
|
165
|
-
margin-top: 48px;
|
|
166
|
-
margin-bottom: -40px;
|
|
167
|
-
margin-left: -24px;
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
`}
|
|
171
|
-
</style>
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { useArgs } from '@storybook/preview-api';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
|
|
4
|
-
const secondaryBackgroundColor = '#185ABD';
|
|
5
|
-
|
|
6
|
-
const withDynamicDocsBackground = (Story: StoryFn) => {
|
|
7
|
-
const [{ color }] = useArgs();
|
|
8
|
-
|
|
9
|
-
const backgroundColor = color === 'white' ? '#185ABD' : '#FFFFFF';
|
|
10
|
-
const docsStoryElement = document.querySelector('.docs-story');
|
|
11
|
-
if (docsStoryElement) {
|
|
12
|
-
docsStoryElement.setAttribute(
|
|
13
|
-
'style',
|
|
14
|
-
`background-color: ${backgroundColor || 'defaultBackgroundColor'}`
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return <Story />;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
const withSecondaryDocsBackground = (Story: StoryFn) => {
|
|
22
|
-
const docsStoryElement = document.querySelector('.docs-story');
|
|
23
|
-
if (docsStoryElement) {
|
|
24
|
-
docsStoryElement.setAttribute(
|
|
25
|
-
'style',
|
|
26
|
-
`background-color: ${
|
|
27
|
-
secondaryBackgroundColor || 'defaultBackgroundColor'
|
|
28
|
-
}`
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
return <Story />;
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
const StorybookUtils = {
|
|
36
|
-
withDynamicDocsBackground,
|
|
37
|
-
withSecondaryDocsBackground,
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export default StorybookUtils;
|
package/tsconfig.json
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "ES2020",
|
|
4
|
-
"useDefineForClassFields": true,
|
|
5
|
-
"allowSyntheticDefaultImports": true,
|
|
6
|
-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"skipLibCheck": true,
|
|
9
|
-
"baseUrl": ".",
|
|
10
|
-
"paths": {
|
|
11
|
-
"@/*": ["src/*"]
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
/* Bundler mode */
|
|
15
|
-
"moduleResolution": "node",
|
|
16
|
-
"allowImportingTsExtensions": true,
|
|
17
|
-
"resolveJsonModule": true,
|
|
18
|
-
"isolatedModules": true,
|
|
19
|
-
"noEmit": true,
|
|
20
|
-
"jsx": "react-jsx",
|
|
21
|
-
|
|
22
|
-
/* Linting */
|
|
23
|
-
"strict": true,
|
|
24
|
-
"noUnusedLocals": false,
|
|
25
|
-
"noUnusedParameters": false,
|
|
26
|
-
"noFallthroughCasesInSwitch": true
|
|
27
|
-
},
|
|
28
|
-
"include": ["**/*.ts", "**/*.tsx"],
|
|
29
|
-
"exclude": ["node_modules"],
|
|
30
|
-
"references": [{ "path": "./tsconfig.node.json" }]
|
|
31
|
-
}
|
package/tsconfig.node.json
DELETED
package/vite.config.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import react from '@vitejs/plugin-react';
|
|
2
|
-
import { loadEnv } from 'vite';
|
|
3
|
-
import pluginChecker from 'vite-plugin-checker';
|
|
4
|
-
import svgr from 'vite-plugin-svgr';
|
|
5
|
-
import { defineConfig } from 'vitest/config';
|
|
6
|
-
|
|
7
|
-
const envDir = './environment';
|
|
8
|
-
|
|
9
|
-
export default ({ mode }: { mode: any }) => {
|
|
10
|
-
const env = loadEnv(mode, envDir);
|
|
11
|
-
|
|
12
|
-
return defineConfig({
|
|
13
|
-
base: env.VITE_APP_PUBLIC_URL,
|
|
14
|
-
plugins: [react(), svgr(), pluginChecker({ typescript: true })],
|
|
15
|
-
envDir: envDir,
|
|
16
|
-
server: {
|
|
17
|
-
port: 3000,
|
|
18
|
-
},
|
|
19
|
-
test: {
|
|
20
|
-
globals: true,
|
|
21
|
-
environment: 'jsdom',
|
|
22
|
-
setupFiles: './src/setupTest.ts',
|
|
23
|
-
css: false,
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|