karsten-design-system 1.0.10 → 1.0.11
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 +65 -37
- package/dist/.storybook/index.css.js +0 -0
- package/dist/.storybook/index.css.js.map +0 -0
- package/dist/_virtual/jsx-runtime.js +0 -0
- package/dist/_virtual/jsx-runtime.js.map +0 -0
- package/dist/_virtual/jsx-runtime2.js +0 -0
- package/dist/_virtual/jsx-runtime2.js.map +0 -0
- package/dist/_virtual/react-jsx-runtime.development.js +0 -0
- package/dist/_virtual/react-jsx-runtime.development.js.map +0 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js +0 -0
- package/dist/_virtual/react-jsx-runtime.production.min.js.map +0 -0
- package/dist/assets/icons/bell.js +0 -0
- package/dist/assets/icons/bell.js.map +0 -0
- package/dist/assets/icons/circleCheck.js +0 -0
- package/dist/assets/icons/circleCheck.js.map +0 -0
- package/dist/assets/icons/close.js +0 -0
- package/dist/assets/icons/close.js.map +0 -0
- package/dist/assets/icons/dashboard.js +0 -0
- package/dist/assets/icons/dashboard.js.map +0 -0
- package/dist/assets/icons/error.js +0 -0
- package/dist/assets/icons/error.js.map +0 -0
- package/dist/assets/icons/filter.js +0 -0
- package/dist/assets/icons/filter.js.map +0 -0
- package/dist/assets/icons/home.js +0 -0
- package/dist/assets/icons/home.js.map +0 -0
- package/dist/assets/icons/info.js +0 -0
- package/dist/assets/icons/info.js.map +0 -0
- package/dist/assets/icons/menu.js +0 -0
- package/dist/assets/icons/menu.js.map +0 -0
- package/dist/assets/icons/success.js +0 -0
- package/dist/assets/icons/success.js.map +0 -0
- package/dist/assets/icons/text.js +0 -0
- package/dist/assets/icons/text.js.map +0 -0
- package/dist/assets/icons/trash.js +0 -0
- package/dist/assets/icons/trash.js.map +0 -0
- package/dist/assets/logoSmall.js +0 -0
- package/dist/assets/logoSmall.js.map +0 -0
- package/dist/index.js +0 -0
- package/dist/index.js.map +0 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js +0 -0
- package/dist/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -0
- package/dist/node_modules/date-fns/_lib/defaultOptions.js.map +0 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js +0 -0
- package/dist/node_modules/date-fns/_lib/format/formatters.js.map +0 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js +0 -0
- package/dist/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js +0 -0
- package/dist/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -0
- package/dist/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -0
- package/dist/node_modules/date-fns/_lib/normalizeDates.js.map +0 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js +0 -0
- package/dist/node_modules/date-fns/_lib/protectedTokens.js.map +0 -0
- package/dist/node_modules/date-fns/constants.js +0 -0
- package/dist/node_modules/date-fns/constants.js.map +0 -0
- package/dist/node_modules/date-fns/constructFrom.js +0 -0
- package/dist/node_modules/date-fns/constructFrom.js.map +0 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js +0 -0
- package/dist/node_modules/date-fns/differenceInCalendarDays.js.map +0 -0
- package/dist/node_modules/date-fns/format.js +0 -0
- package/dist/node_modules/date-fns/format.js.map +0 -0
- package/dist/node_modules/date-fns/getDayOfYear.js +0 -0
- package/dist/node_modules/date-fns/getDayOfYear.js.map +0 -0
- package/dist/node_modules/date-fns/getISOWeek.js +0 -0
- package/dist/node_modules/date-fns/getISOWeek.js.map +0 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js +0 -0
- package/dist/node_modules/date-fns/getISOWeekYear.js.map +0 -0
- package/dist/node_modules/date-fns/getWeek.js +0 -0
- package/dist/node_modules/date-fns/getWeek.js.map +0 -0
- package/dist/node_modules/date-fns/getWeekYear.js +0 -0
- package/dist/node_modules/date-fns/getWeekYear.js.map +0 -0
- package/dist/node_modules/date-fns/isDate.js +0 -0
- package/dist/node_modules/date-fns/isDate.js.map +0 -0
- package/dist/node_modules/date-fns/isValid.js +0 -0
- package/dist/node_modules/date-fns/isValid.js.map +0 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -0
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -0
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -0
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -0
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -0
- package/dist/node_modules/date-fns/locale/en-US.js +0 -0
- package/dist/node_modules/date-fns/locale/en-US.js.map +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatDistance.js.map +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.js +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatLong.js.map +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/formatRelative.js.map +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.js +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/localize.js.map +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.js +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR/_lib/match.js.map +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR.js +0 -0
- package/dist/node_modules/date-fns/locale/pt-BR.js.map +0 -0
- package/dist/node_modules/date-fns/startOfDay.js +0 -0
- package/dist/node_modules/date-fns/startOfDay.js.map +0 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js +0 -0
- package/dist/node_modules/date-fns/startOfISOWeek.js.map +0 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js +0 -0
- package/dist/node_modules/date-fns/startOfISOWeekYear.js.map +0 -0
- package/dist/node_modules/date-fns/startOfWeek.js +0 -0
- package/dist/node_modules/date-fns/startOfWeek.js.map +0 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js +0 -0
- package/dist/node_modules/date-fns/startOfWeekYear.js.map +0 -0
- package/dist/node_modules/date-fns/startOfYear.js +0 -0
- package/dist/node_modules/date-fns/startOfYear.js.map +0 -0
- package/dist/node_modules/date-fns/toDate.js +0 -0
- package/dist/node_modules/date-fns/toDate.js.map +0 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +0 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.js.map +0 -0
- package/dist/node_modules/react/jsx-runtime.js +0 -0
- package/dist/node_modules/react/jsx-runtime.js.map +0 -0
- package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -0
- package/dist/node_modules/style-inject/dist/style-inject.es.js.map +0 -0
- package/dist/stories/components/accordion.js +0 -0
- package/dist/stories/components/accordion.js.map +0 -0
- package/dist/stories/components/autoComplete.js +0 -0
- package/dist/stories/components/autoComplete.js.map +0 -0
- package/dist/stories/components/breadcrumb.js +0 -0
- package/dist/stories/components/breadcrumb.js.map +0 -0
- package/dist/stories/components/button.js +0 -0
- package/dist/stories/components/button.js.map +0 -0
- package/dist/stories/components/card.js +0 -0
- package/dist/stories/components/card.js.map +0 -0
- package/dist/stories/components/chart.js +0 -0
- package/dist/stories/components/chart.js.map +0 -0
- package/dist/stories/components/dialog.js +0 -0
- package/dist/stories/components/dialog.js.map +0 -0
- package/dist/stories/components/divider.js +0 -0
- package/dist/stories/components/divider.js.map +0 -0
- package/dist/stories/components/filterButton.js +0 -0
- package/dist/stories/components/filterButton.js.map +0 -0
- package/dist/stories/components/header.js +2 -2
- package/dist/stories/components/header.js.map +1 -1
- package/dist/stories/components/iconButton.js +0 -0
- package/dist/stories/components/iconButton.js.map +0 -0
- package/dist/stories/components/infoCard.js +0 -0
- package/dist/stories/components/infoCard.js.map +0 -0
- package/dist/stories/components/input.js +0 -0
- package/dist/stories/components/input.js.map +0 -0
- package/dist/stories/components/internalMenu.js +0 -0
- package/dist/stories/components/internalMenu.js.map +0 -0
- package/dist/stories/components/link.js +0 -0
- package/dist/stories/components/link.js.map +0 -0
- package/dist/stories/components/megaMenu.js +0 -0
- package/dist/stories/components/megaMenu.js.map +0 -0
- package/dist/stories/components/notification.js +0 -0
- package/dist/stories/components/notification.js.map +0 -0
- package/dist/stories/components/notificationItem.js +0 -0
- package/dist/stories/components/notificationItem.js.map +0 -0
- package/dist/stories/components/paginator.js +0 -0
- package/dist/stories/components/paginator.js.map +0 -0
- package/dist/stories/components/radioButton.js +0 -0
- package/dist/stories/components/radioButton.js.map +0 -0
- package/dist/stories/components/select.js +0 -0
- package/dist/stories/components/select.js.map +0 -0
- package/dist/stories/components/sidebar.js +3 -3
- package/dist/stories/components/sidebar.js.map +1 -1
- package/dist/stories/components/skeleton.js +0 -0
- package/dist/stories/components/skeleton.js.map +0 -0
- package/dist/stories/components/spinner.js +0 -0
- package/dist/stories/components/spinner.js.map +0 -0
- package/dist/stories/components/table.js +0 -0
- package/dist/stories/components/table.js.map +0 -0
- package/dist/stories/components/toast.js +0 -0
- package/dist/stories/components/toast.js.map +0 -0
- package/dist/types/assets/icons/bell.d.ts +0 -0
- package/dist/types/assets/icons/cart.d.ts +0 -0
- package/dist/types/assets/icons/check.d.ts +0 -0
- package/dist/types/assets/icons/circleCheck.d.ts +0 -0
- package/dist/types/assets/icons/clock.d.ts +0 -0
- package/dist/types/assets/icons/close.d.ts +0 -0
- package/dist/types/assets/icons/dashboard.d.ts +0 -0
- package/dist/types/assets/icons/error.d.ts +0 -0
- package/dist/types/assets/icons/filter.d.ts +0 -0
- package/dist/types/assets/icons/grayInfo.d.ts +0 -0
- package/dist/types/assets/icons/home/account.d.ts +0 -0
- package/dist/types/assets/icons/home/accountsReceivable.d.ts +0 -0
- package/dist/types/assets/icons/home/box.d.ts +0 -0
- package/dist/types/assets/icons/home/circleWithDollarSign.d.ts +0 -0
- package/dist/types/assets/icons/home/computer.d.ts +0 -0
- package/dist/types/assets/icons/home/credit.d.ts +0 -0
- package/dist/types/assets/icons/home/payments.d.ts +0 -0
- package/dist/types/assets/icons/home/pieChart.d.ts +0 -0
- package/dist/types/assets/icons/home/profitability.d.ts +0 -0
- package/dist/types/assets/icons/home.d.ts +0 -0
- package/dist/types/assets/icons/info.d.ts +0 -0
- package/dist/types/assets/icons/menu.d.ts +0 -0
- package/dist/types/assets/icons/success.d.ts +0 -0
- package/dist/types/assets/icons/text.d.ts +0 -0
- package/dist/types/assets/icons/trash.d.ts +0 -0
- package/dist/types/assets/logo.d.ts +0 -0
- package/dist/types/assets/logoSmall.d.ts +0 -0
- package/dist/types/hook/useToast.d.ts +0 -0
- package/dist/types/index.d.ts +0 -0
- package/dist/types/mock/internalMenu.d.ts +0 -0
- package/dist/types/mock/mockedComponente/mockedChart.d.ts +0 -0
- package/dist/types/mock/mockedComponente/mockedInternalMenu.d.ts +0 -0
- package/dist/types/mock/mockedComponente/notificationMocked.d.ts +0 -0
- package/dist/types/mock/mockedComponente/screenContainer.d.ts +0 -0
- package/dist/types/mock/notifications.d.ts +0 -0
- package/dist/types/mock/tableItems.d.ts +0 -0
- package/dist/types/stories/components/accordion.d.ts +0 -0
- package/dist/types/stories/components/autoComplete.d.ts +0 -0
- package/dist/types/stories/components/breadcrumb.d.ts +0 -0
- package/dist/types/stories/components/breadcrumb.stories.d.ts +0 -0
- package/dist/types/stories/components/button.d.ts +0 -0
- package/dist/types/stories/components/button.stories.d.ts +0 -0
- package/dist/types/stories/components/card.d.ts +0 -0
- package/dist/types/stories/components/chart.d.ts +0 -0
- package/dist/types/stories/components/dateInput.d.ts +0 -0
- package/dist/types/stories/components/dialog.d.ts +0 -0
- package/dist/types/stories/components/divider.d.ts +0 -0
- package/dist/types/stories/components/filterButton.d.ts +0 -0
- package/dist/types/stories/components/header.d.ts +2 -1
- package/dist/types/stories/components/iconButton.d.ts +0 -0
- package/dist/types/stories/components/iconButton.stories.d.ts +0 -0
- package/dist/types/stories/components/icons.d.ts +0 -0
- package/dist/types/stories/components/infoCard.d.ts +0 -0
- package/dist/types/stories/components/input.d.ts +0 -0
- package/dist/types/stories/components/internalMenu.d.ts +0 -0
- package/dist/types/stories/components/link.d.ts +0 -0
- package/dist/types/stories/components/megaMenu.d.ts +0 -0
- package/dist/types/stories/components/megaMenu.stories.d.ts +0 -0
- package/dist/types/stories/components/notification.d.ts +0 -0
- package/dist/types/stories/components/notificationItem.d.ts +0 -0
- package/dist/types/stories/components/paginator.d.ts +0 -0
- package/dist/types/stories/components/radioButton.d.ts +0 -0
- package/dist/types/stories/components/select.d.ts +0 -0
- package/dist/types/stories/components/sidebar.d.ts +2 -1
- package/dist/types/stories/components/skeleton.d.ts +0 -0
- package/dist/types/stories/components/spinner.d.ts +0 -0
- package/dist/types/stories/components/spinner.stories.d.ts +0 -0
- package/dist/types/stories/components/table.d.ts +0 -0
- package/dist/types/stories/components/toast.d.ts +0 -0
- package/dist/types/stories/screens/accountsPayable.d.ts +0 -0
- package/dist/types/stories/screens/dashboard.d.ts +0 -0
- package/dist/types/stories/screens/home.d.ts +0 -0
- package/dist/types/stories/screens/sign-in.d.ts +0 -0
- package/dist/types/stories/screens/table.d.ts +0 -0
- package/dist/types/types/breadcrumbItems.d.ts +0 -0
- package/dist/types/types/index.d.ts +0 -0
- package/dist/types/types/internalMenu.d.ts +0 -0
- package/dist/types/types/megaMenuItems.d.ts +0 -0
- package/dist/types/types/notification.d.ts +0 -0
- package/dist/types/types/options.d.ts +0 -0
- package/dist/types/types/table.d.ts +0 -0
- package/dist/types/utils/sortData.d.ts +0 -0
- package/dist/utils/sortData.js +0 -0
- package/dist/utils/sortData.js.map +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -21,22 +21,22 @@ yarn add karsten-design-system
|
|
|
21
21
|
No main.tsx adicione:
|
|
22
22
|
|
|
23
23
|
```js
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
24
|
+
import { StrictMode } from "react";
|
|
25
|
+
import { createRoot } from "react-dom/client";
|
|
26
|
+
import "./index.css";
|
|
27
|
+
import App from "./App.tsx";
|
|
28
|
+
|
|
29
|
+
import { PrimeReactProvider } from 'primereact/api'; // Adicione o PrimeReactProvider
|
|
30
|
+
import Tailwind from 'primereact/passthrough/tailwind'; // Importe o Tailwind
|
|
31
|
+
import './index.css';
|
|
32
|
+
|
|
33
|
+
createRoot(document.getElementById("root")!).render(
|
|
34
|
+
<StrictMode>
|
|
35
|
+
<PrimeReactProvider value={{ pt: Tailwind }}> {/* Envolva o app no Provider do PrimeReact */}
|
|
36
|
+
<App />
|
|
37
|
+
</PrimeReactProvider>
|
|
38
|
+
</StrictMode>
|
|
39
|
+
);
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
## Pré-requisitos
|
|
@@ -49,7 +49,7 @@ Esta biblioteca requer as seguintes dependências:
|
|
|
49
49
|
- @types/date-fns 2 ou superior
|
|
50
50
|
- Chart.js 4 ou superior
|
|
51
51
|
- clsx 2 ou superior
|
|
52
|
-
-
|
|
52
|
+
- date-fns 1 ou superior
|
|
53
53
|
- Primeicons 7 ou superior
|
|
54
54
|
- Primereact 10 ou superior
|
|
55
55
|
- Postcss 8 ou superior
|
|
@@ -60,23 +60,19 @@ Esta biblioteca requer as seguintes dependências:
|
|
|
60
60
|
1. Importe o componente desejado da biblioteca:
|
|
61
61
|
|
|
62
62
|
```jsx
|
|
63
|
-
import { Button } from 'karsten-design-system'
|
|
63
|
+
import { Button } from 'karsten-design-system';
|
|
64
64
|
```
|
|
65
65
|
|
|
66
66
|
2. Use o componente em seu projeto:
|
|
67
67
|
|
|
68
68
|
```jsx
|
|
69
69
|
function App() {
|
|
70
|
-
return <Button label="Clique aqui"
|
|
70
|
+
return <Button label="Clique aqui" />;
|
|
71
71
|
}
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
## Componentes Disponíveis
|
|
75
75
|
|
|
76
|
-
[Liste aqui os componentes disponíveis na sua biblioteca com uma breve descrição de cada um]
|
|
77
|
-
|
|
78
|
-
Por exemplo:
|
|
79
|
-
|
|
80
76
|
- `Accordion` - Componente para exibir conteúdo em seções expansíveis e colapsáveis.
|
|
81
77
|
- `AutoComplete` - Campo de entrada com sugestões automáticas baseadas no texto digitado.
|
|
82
78
|
- `Breadcrumb` - Navegação hierárquica para indicar a localização atual do usuário.
|
|
@@ -104,21 +100,17 @@ Por exemplo:
|
|
|
104
100
|
- `Table` - Tabela para exibição de dados estruturados.
|
|
105
101
|
- `Toast` - Mensagens temporárias exibidas no canto da tela.
|
|
106
102
|
|
|
107
|
-
## Documentação
|
|
108
|
-
|
|
109
|
-
Para uma documentação completa e exemplos, visite nosso [Storybook](link-do-seu-storybook).
|
|
110
|
-
|
|
111
103
|
## Desenvolvimento
|
|
112
104
|
|
|
113
105
|
Para contribuir com o projeto:
|
|
114
106
|
|
|
115
|
-
1. Clone o repositório
|
|
107
|
+
1. Clone o repositório:
|
|
116
108
|
|
|
117
109
|
```bash
|
|
118
|
-
git clone https://github.com/
|
|
110
|
+
git clone https://github.com/KarstenSA/karsten-design-system.git
|
|
119
111
|
```
|
|
120
112
|
|
|
121
|
-
2. Instale as dependências
|
|
113
|
+
2. Instale as dependências:
|
|
122
114
|
|
|
123
115
|
Com npm:
|
|
124
116
|
|
|
@@ -132,7 +124,7 @@ Com yarn:
|
|
|
132
124
|
yarn
|
|
133
125
|
```
|
|
134
126
|
|
|
135
|
-
3. Execute o Storybook para desenvolvimento
|
|
127
|
+
3. Execute o Storybook para desenvolvimento:
|
|
136
128
|
|
|
137
129
|
Com npm:
|
|
138
130
|
|
|
@@ -151,16 +143,48 @@ yarn storybook
|
|
|
151
143
|
Com npm:
|
|
152
144
|
|
|
153
145
|
- `npm run storybook` - Inicia o ambiente de desenvolvimento do Storybook
|
|
154
|
-
- `npm run build` - Gera o build da biblioteca
|
|
146
|
+
- `npm run build-storybook` - Gera o build da biblioteca para hospedagem
|
|
147
|
+
- `npm run build` - Gera o build da biblioteca para publicação no npm
|
|
155
148
|
|
|
156
149
|
Com yarn:
|
|
157
150
|
|
|
158
151
|
- `yarn storybook` - Inicia o ambiente de desenvolvimento do Storybook
|
|
159
|
-
- `yarn build` - Gera o build
|
|
152
|
+
- `yarn build-storybook` - Gera o build do Storybook para hospedagem
|
|
153
|
+
- `yarn build` - Gera o build da biblioteca para publicação no npm
|
|
154
|
+
|
|
155
|
+
## Publicando uma Nova Versão no NPM
|
|
156
|
+
|
|
157
|
+
1. Atualizar a Versão
|
|
160
158
|
|
|
161
|
-
|
|
159
|
+
Antes de publicar, aumente a versão no `package.json` e `package-lock.json`.
|
|
162
160
|
|
|
163
|
-
|
|
161
|
+
2. Fazer o Build
|
|
162
|
+
|
|
163
|
+
Com npm:
|
|
164
|
+
|
|
165
|
+
```bash
|
|
166
|
+
npm run build
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
Com yarn:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
yarn build
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
3. Login no NPM
|
|
176
|
+
|
|
177
|
+
Se ainda não estiver autenticado, faça login:
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
npm login
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
4. Publicar
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
npm publish --access public
|
|
187
|
+
```
|
|
164
188
|
|
|
165
189
|
## Resolução de Problemas
|
|
166
190
|
|
|
@@ -169,11 +193,15 @@ Se você encontrar o erro "peer dependencies missing", instale as dependências
|
|
|
169
193
|
Com npm:
|
|
170
194
|
|
|
171
195
|
```bash
|
|
172
|
-
npm install react react-dom primereact
|
|
196
|
+
npm install react@^18 react-dom@^18 tailwindcss@^3.4.0 @types/date-fns@^2 chart.js@^4 clsx@^2 date-fns@^1 primeicons@^7 primereact@^10 postcss@^8 autoprefixer@^10
|
|
173
197
|
```
|
|
174
198
|
|
|
175
199
|
Com yarn:
|
|
176
200
|
|
|
177
201
|
```bash
|
|
178
|
-
yarn add react react-dom primereact
|
|
202
|
+
yarn add react@^18 react-dom@^18 tailwindcss@^3.4.0 @types/date-fns@^2 chart.js@^4 clsx@^2 date-fns@^1 primeicons@^7 primereact@^10 postcss@^8 autoprefixer@^10
|
|
179
203
|
```
|
|
204
|
+
|
|
205
|
+
## Licença
|
|
206
|
+
|
|
207
|
+
Este projeto está licenciado sob a licença MIT.
|
|
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
|
|
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
|
|
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
|
package/dist/assets/logoSmall.js
CHANGED
|
File without changes
|
|
File without changes
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/index.js.map
CHANGED
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,14 +4,14 @@ import MenuIcon from '../../assets/icons/menu.js';
|
|
|
4
4
|
import LogoSmall from '../../assets/logoSmall.js';
|
|
5
5
|
import { Sidebar } from './sidebar.js';
|
|
6
6
|
|
|
7
|
-
function Header({ sidebarItems, username, userConfigItems, setOpenNotifications, }) {
|
|
7
|
+
function Header({ sidebarItems, dashboardHref, username, userConfigItems, setOpenNotifications, }) {
|
|
8
8
|
const [openSidebar, setOpenSidebar] = useState(false);
|
|
9
9
|
const [openUserConfig, setOpenUserConfig] = useState(false);
|
|
10
10
|
return (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs("div", { className: "w-100 min-h-16 border-b border-b-stone flex flex-row justify-between items-center px-8 shadow-header", children: [jsxRuntimeExports.jsxs("div", { className: "flex flex-row items-center gap-4", children: [jsxRuntimeExports.jsx("button", { className: "bg-transparent border-none", onClick: () => setOpenSidebar(!openSidebar), children: jsxRuntimeExports.jsx(MenuIcon, {}) }), jsxRuntimeExports.jsx(LogoSmall, {})] }), jsxRuntimeExports.jsxs("div", { className: "relative flex flex-row gap-4 items-center", children: [jsxRuntimeExports.jsx("i", { className: "pi pi-bell text-stoneDark cursor-pointer", onClick: () => setOpenNotifications(true) }), jsxRuntimeExports.jsxs("p", { className: "text-grayDark font-roboto font-semibold cursor-pointer", onClick: () => setOpenUserConfig(!openUserConfig), children: ["Ol\u00E1, ", username] }), openUserConfig && (jsxRuntimeExports.jsx("div", { className: `absolute w-100 bg-background shadow-md border border-stoneLight z-20 rounded-md p-2 -bottom-1 translate-y-full`, children: jsxRuntimeExports.jsx("ul", { children: userConfigItems.map(({ id, title, onClick, path }) => (jsxRuntimeExports.jsx("li", { className: "p-2", children: jsxRuntimeExports.jsx("a", { onClick: () => {
|
|
11
11
|
if (onClick)
|
|
12
12
|
onClick();
|
|
13
13
|
setOpenUserConfig(false);
|
|
14
|
-
}, href: path, className: "font-base font-roboto text-stoneDark cursor-pointer ", children: title }, id) }))) }) }))] })] }), openSidebar && (jsxRuntimeExports.jsx(Sidebar, { item: sidebarItems, onClose: () => {
|
|
14
|
+
}, href: path, className: "font-base font-roboto text-stoneDark cursor-pointer ", children: title }, id) }))) }) }))] })] }), openSidebar && (jsxRuntimeExports.jsx(Sidebar, { dashboardHref: dashboardHref, item: sidebarItems, onClose: () => {
|
|
15
15
|
setOpenSidebar(false);
|
|
16
16
|
} }))] }));
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"header.js","sources":["../../../../src/stories/components/header.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"header.js","sources":["../../../../src/stories/components/header.tsx"],"sourcesContent":[null],"names":["_jsxs","_Fragment","_jsx"],"mappings":";;;;;;AAcgB,SAAA,MAAM,CAAC,EACrB,YAAY,EACZ,aAAa,EACb,QAAQ,EACR,eAAe,EACf,oBAAoB,GACP,EAAA;IACb,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;IACrD,MAAM,CAAC,cAAc,EAAE,iBAAiB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;IAE3D,QACEA,sBACE,CAAAC,0BAAA,EAAA,EAAA,QAAA,EAAA,CAAAD,sBAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,uGAAuG,EACpH,QAAA,EAAA,CAAAA,sBAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,kCAAkC,EAAA,QAAA,EAAA,CAC/CE,kCACE,SAAS,EAAC,4BAA4B,EACtC,OAAO,EAAE,MAAM,cAAc,CAAC,CAAC,WAAW,CAAC,YAE3CA,qBAAC,CAAA,QAAQ,EAAG,EAAA,CAAA,EAAA,CACL,EACTA,qBAAA,CAAC,SAAS,EAAA,EAAA,CAAG,CACT,EAAA,CAAA,EAENF,sBAAK,CAAA,KAAA,EAAA,EAAA,SAAS,EAAC,2CAA2C,aACxDE,qBACE,CAAA,GAAA,EAAA,EAAA,SAAS,EAAC,0CAA0C,EACpD,OAAO,EAAE,MAAM,oBAAoB,CAAC,IAAI,CAAC,GACzC,EACFF,sBAAA,CAAA,GAAA,EAAA,EACE,SAAS,EAAC,wDAAwD,EAClE,OAAO,EAAE,MAAM,iBAAiB,CAAC,CAAC,cAAc,CAAC,EAE3C,QAAA,EAAA,CAAA,YAAA,EAAA,QAAQ,CACZ,EAAA,CAAA,EACH,cAAc,KACbE,qBAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,CAAgH,8GAAA,CAAA,EAAA,QAAA,EAE3HA,wCACG,eAAe,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,MAChDA,qBAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAC,KAAK,EAAA,QAAA,EACjBA,qBACE,CAAA,GAAA,EAAA,EAAA,OAAO,EAAE,MAAK;AACZ,gDAAA,IAAI,OAAO;AAAE,oDAAA,OAAO,EAAE;gDACtB,iBAAiB,CAAC,KAAK,CAAC;AAC1B,6CAAC,EAED,IAAI,EAAE,IAAI,EACV,SAAS,EAAC,sDAAsD,EAE/D,QAAA,EAAA,KAAK,IAJD,EAAE,CAKL,GACD,CACN,CAAC,GACC,EACD,CAAA,CACP,CACG,EAAA,CAAA,CAAA,EAAA,CACF,EACL,WAAW,KACVA,qBAAC,CAAA,OAAO,IACR,aAAa,EAAE,aAAa,EAC1B,IAAI,EAAE,YAAY,EAClB,OAAO,EAAE,MAAK;oBACZ,cAAc,CAAC,KAAK,CAAC;AACvB,iBAAC,EACD,CAAA,CACH,CACA,EAAA,CAAA;AAEP;;;;"}
|
|
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
|