hp-design-system 1.0.6 → 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/README.md CHANGED
@@ -3,3 +3,41 @@
3
3
  This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
4
 
5
5
  Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
6
+
7
+ hp-design-system/
8
+ ├── src/
9
+ │ ├── components/
10
+ │ │ ├── Button.vue
11
+ │ │ ├── Checkbox.vue
12
+ │ │ └── ... (outros componentes)
13
+ │ ├── styles/
14
+ │ │ ├── variables.scss # Variáveis globais, como cores
15
+ │ │ ├── colors.scss # Tokens de cores para temas claro e escuro
16
+ │ │ ├── theme.scss # Mixins e funções para aplicação de temas
17
+ │ │ └── global.scss # Estilos globais da biblioteca
18
+ │ ├── composables/
19
+ │ │ └── useTheme.ts # Composable para gerenciar o estado do tema
20
+ │ ├── assets/
21
+ │ │ ├── fonts/
22
+ │ │ │ └── VarelaRound-Regular.ttf
23
+ │ │ └── icons/
24
+ │ │ └── ... (ícones SVG)
25
+ │ └── main.ts # Arquivo de entrada principal
26
+ ├── stories/ # Configuração e documentação do Storybook
27
+ │ ├── Button.stories.ts
28
+ │ ├── Checkbox.stories.ts
29
+ │ └── ... (outras histórias)
30
+ ├── public/ # Arquivos públicos como favicon, imagens etc.
31
+ │ └── ...
32
+ ├── .storybook/ # Configurações do Storybook
33
+ │ ├── main.js
34
+ │ ├── preview.js
35
+ │ └── manager.js
36
+ ├── dist/ # Saída de build da biblioteca
37
+ │ └── ...
38
+ ├── tests/ # Testes unitários
39
+ │ └── ...
40
+ ├── package.json # Configurações de dependências e scripts
41
+ ├── tsconfig.json # Configuração do TypeScript
42
+ ├── vite.config.ts # Configuração do Vite
43
+ └── README.md # Documentação do projeto
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hp-design-system",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "type": "module",
5
5
  "main": "dist/hp-design-system.umd.js",
6
6
  "scripts": {
package/src/App.vue CHANGED
@@ -23,10 +23,11 @@
23
23
  <Icon name="AA0010" size="lg" color="red" />
24
24
  <Icon name="AA0010" size="md" color="green" />
25
25
  <Icon name="AA0010" size="sm" color="blue" /> -->
26
+ <HpIcon name="AA0020" size="lg" color="red" />
26
27
  </div>
27
28
  </template>
28
29
 
29
30
  <script setup lang="ts">
30
- import { HpButton, HpCheckbox } from './components/index'
31
- import Icon from './components/icons/Icon/Icon.vue'
31
+ import { HpButton, HpCheckbox, HpIcon } from './components/index'
32
+ // import Icon from './components/icons/icon/Icon.vue'
32
33
  </script>
@@ -13,7 +13,7 @@
13
13
  </template>
14
14
 
15
15
  <script setup lang="ts">
16
- import Icon from '../icons/Icon/Icon.vue'
16
+ import Icon from '../icons/icon/Icon.vue'
17
17
 
18
18
  const props = defineProps({
19
19
  label: {
@@ -103,7 +103,7 @@
103
103
  <script setup>
104
104
  import { computed } from 'vue'
105
105
  import IconListButton from './components/IconListButton.vue'
106
- import AllIcons from '../../../../public/assets/icons/icons.json'
106
+ import AllIcons from '@assets/icons/icons.json'
107
107
 
108
108
  const props = defineProps({
109
109
  color: {
@@ -14,7 +14,7 @@
14
14
  </template>
15
15
 
16
16
  <script lang="ts" setup>
17
- import Icon from '../../Icon/Icon.vue'
17
+ import Icon from '../../icon/Icon.vue'
18
18
 
19
19
  defineProps({
20
20
  isDarkMode: {
@@ -1,6 +1,6 @@
1
1
  import HpButton from './button/Button.vue'
2
2
  import HpCheckbox from './inputs/checkbox/Checkbox.vue'
3
- import HpIcon from './icons//Icon/Icon.vue'
3
+ import HpIcon from './icons/icon/Icon.vue'
4
4
  import HpTeste from './teste/Teste.vue'
5
5
 
6
6
  export { HpButton, HpCheckbox, HpIcon, HpTeste }
package/src/style.scss CHANGED
@@ -1,27 +1,27 @@
1
1
  @font-face {
2
2
  font-family: 'Quicksand';
3
- src: url('../public/assets/fonts/Quicksand-Regular.ttf') format('truetype');
3
+ src: url('@assets/fonts/Quicksand-Regular.ttf') format('truetype');
4
4
  font-weight: normal;
5
5
  font-style: normal;
6
6
  }
7
7
 
8
8
  @font-face {
9
9
  font-family: 'Quicksand';
10
- src: url('../public/assets/fonts/Quicksand-Bold.ttf') format('truetype');
10
+ src: url('@assets/fonts/Quicksand-Bold.ttf') format('truetype');
11
11
  font-weight: bold;
12
12
  font-style: normal;
13
13
  }
14
14
 
15
15
  @font-face {
16
16
  font-family: 'Quicksand';
17
- src: url('../public/assets/fonts/Quicksand-Italic.ttf') format('truetype');
17
+ src: url('@assets/fonts/Quicksand-Italic.ttf') format('truetype');
18
18
  font-weight: normal;
19
19
  font-style: italic;
20
20
  }
21
21
 
22
22
  @font-face {
23
23
  font-family: 'Quicksand';
24
- src: url('../public/assets/fonts/Quicksand-BoldItalic.ttf') format('truetype');
24
+ src: url('@assets/fonts/Quicksand-BoldItalic.ttf') format('truetype');
25
25
  font-weight: bold;
26
26
  font-style: italic;
27
27
  }
File without changes