@muxima-ui/core 2.0.0 → 2.0.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/README.md CHANGED
@@ -1,36 +1,43 @@
1
1
  # @muxima-ui/core
2
2
 
3
- Componentes Angular acessíveis, com temas por variáveis CSS e modo escuro.
4
- Requer Angular 21 ou superior e `@angular/cdk`.
3
+ **English** · [Português](https://github.com/Aldemiro20/muxima-ui/blob/HEAD/projects/core/README.pt.md)
4
+
5
+ Accessible Angular components, themed with CSS variables, with dark mode included.
6
+ Requires Angular 21 or later and `@angular/cdk`.
5
7
 
6
8
  ```bash
7
9
  npm install @muxima-ui/core @angular/cdk
8
10
  ```
9
11
 
10
- Estilos (em `angular.json`):
12
+ Styles (in `angular.json`):
11
13
 
12
14
  ```json
13
15
  "styles": ["@muxima-ui/core/styles.css"]
14
16
  ```
15
17
 
16
- Fontes (opcional; sem elas usa as fontes do sistema):
18
+ Fonts (optional; without them the system fonts are used):
17
19
 
18
20
  ```bash
19
21
  npm install @fontsource/instrument-sans @fontsource/ibm-plex-mono
20
22
  ```
21
23
 
22
- Cada componente tem o seu ponto de entrada, para só importares o que usas:
24
+ Each component has its own entry point, so you only import what you use:
25
+
26
+ ```ts
27
+ import { MxButton } from '@muxima-ui/core/button';
28
+ import { MxFormField, MxLabel, MxInput } from '@muxima-ui/core/form-field';
29
+ ```
23
30
 
24
- | Ponto de entrada | Exporta |
31
+ | Entry point | Exports |
25
32
  | --- | --- |
26
33
  | `@muxima-ui/core/button` | `MxButton` |
27
- | `@muxima-ui/core/form-field` | `MxFormField`, `MxLabel`, `MxHint`, `MxError`, `MxInput` (input e textarea), `MxChoice`, `MxFieldset` |
28
- | `@muxima-ui/core/select` | `MxSelect` (simples e `multiple`), `MxOption` |
34
+ | `@muxima-ui/core/form-field` | `MxFormField`, `MxLabel`, `MxHint`, `MxError`, `MxInput` (input and textarea), `MxChoice`, `MxFieldset` |
35
+ | `@muxima-ui/core/select` | `MxSelect` (single and `multiple`), `MxOption` |
29
36
  | `@muxima-ui/core/combobox` | `MxCombobox` |
30
37
  | `@muxima-ui/core/checkbox` | `MxCheckbox` |
31
38
  | `@muxima-ui/core/radio` | `MxRadio` |
32
39
  | `@muxima-ui/core/switch` | `MxSwitch` |
33
- | `@muxima-ui/core/slider` | `MxSlider`, `MxRangeSlider` (dois cursores) |
40
+ | `@muxima-ui/core/slider` | `MxSlider`, `MxRangeSlider` (two thumbs) |
34
41
  | `@muxima-ui/core/date-picker` | `MxDatePicker`, `MxDateRangePicker`, `MxCalendar`, `mxDefaultRangePresets`, `mxDateRangeComplete`, `mxParseDate`, `mxFormatDate` |
35
42
  | `@muxima-ui/core/time-picker` | `MxTimePicker`, `mxParseTime` |
36
43
  | `@muxima-ui/core/otp` | `MxOtp` |
@@ -46,7 +53,7 @@ Cada componente tem o seu ponto de entrada, para só importares o que usas:
46
53
  | `@muxima-ui/core/data-grid` | `MX_DATA_GRID`, `MxGridColumn` |
47
54
  | `@muxima-ui/core/kanban` | `MX_KANBAN`, `MxKanbanColumn` |
48
55
  | `@muxima-ui/core/image-cropper` | `MxImageCropper` |
49
- | `@muxima-ui/core/editor` | `MxEditor` (precisa do Tiptap, ver abaixo) |
56
+ | `@muxima-ui/core/editor` | `MxEditor` (needs Tiptap, see below) |
50
57
  | `@muxima-ui/core/table` | `MX_TABLE`, `mxSortData` |
51
58
  | `@muxima-ui/core/card` | `MX_CARD` |
52
59
  | `@muxima-ui/core/badge` | `MxBadge` |
@@ -63,14 +70,16 @@ Cada componente tem o seu ponto de entrada, para só importares o que usas:
63
70
  | `@muxima-ui/core/menu` | `MX_MENU` |
64
71
  | `@muxima-ui/core/popover` | `MX_POPOVER` |
65
72
  | `@muxima-ui/core/tooltip` | `MxTooltip` |
66
- | `@muxima-ui/core/tour` | `MxTour`, `MxTourAnchor` (visita guiada) |
73
+ | `@muxima-ui/core/tour` | `MxTour`, `MxTourAnchor` (guided tour) |
67
74
  | `@muxima-ui/core/alert` | `MX_ALERT` |
68
75
  | `@muxima-ui/core/progress` | `MxProgress`, `MxSpinner` |
69
76
  | `@muxima-ui/core/skeleton` | `MxSkeleton` |
70
77
  | `@muxima-ui/core/toast` | `MxToast` |
71
78
  | `@muxima-ui/core/i18n` | `provideMuximaI18n`, `MxI18n`, `MX_MESSAGES_PT`, `MX_MESSAGES_EN`, `injectMxMessages` |
72
79
 
73
- Idiomas: os textos dos componentes vêm em inglês (por omissão desde a 2.0) e em português. Para português:
80
+ ## Languages
81
+
82
+ Component texts (buttons, screen reader announcements, color names, date shortcuts) come in English (the default) and Portuguese. For Portuguese:
74
83
 
75
84
  ```ts
76
85
  import { provideMuximaI18n } from '@muxima-ui/core/i18n';
@@ -78,12 +87,32 @@ import { provideMuximaI18n } from '@muxima-ui/core/i18n';
78
87
  providers: [provideMuximaI18n({ locale: 'pt' })]
79
88
  ```
80
89
 
81
- `inject(MxI18n).setLocale('en')` muda o idioma sem recarregar. Quem vem da 1.x e quer manter o português indica `locale: 'pt'`.
90
+ `inject(MxI18n).setLocale('en')` switches the language without reloading. Use `messages` to change any text or add another language. Upgrading from 1.x and want to keep Portuguese? Set `locale: 'pt'`.
91
+
92
+ ## Theming
82
93
 
83
- O editor de texto usa o Tiptap, que é opcional: só é preciso se importares `@muxima-ui/core/editor`.
94
+ Every color comes from `--mx-*` variables. To match your brand:
95
+
96
+ ```css
97
+ :root {
98
+ --mx-accent: #7a1f3d;
99
+ --mx-radius: 8px;
100
+ }
101
+ ```
102
+
103
+ Dark mode follows the system by default; force it with `<html data-theme="dark">` or `data-theme="light"`.
104
+
105
+ ## Rich text editor
106
+
107
+ The editor uses Tiptap, which is optional: you only need it if you import `@muxima-ui/core/editor`.
84
108
 
85
109
  ```bash
86
110
  npm install @tiptap/core @tiptap/pm @tiptap/starter-kit @tiptap/extensions
87
111
  ```
88
112
 
89
- Licença MIT.
113
+ ## Links
114
+
115
+ - [Changelog](https://github.com/Aldemiro20/muxima-ui/blob/HEAD/CHANGELOG.md)
116
+ - [Issues](https://github.com/Aldemiro20/muxima-ui/issues)
117
+
118
+ MIT license.
@@ -3,7 +3,7 @@
3
3
  * Os componentes vivem em entradas secundárias, para só incluíres o que usas:
4
4
  * import { MxButton } from '@muxima-ui/core/button';
5
5
  */
6
- const MUXIMA_VERSION = '2.0.0';
6
+ const MUXIMA_VERSION = '2.0.1';
7
7
 
8
8
  /**
9
9
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"muxima-ui-core.mjs","sources":["../../../projects/core/src/public-api.ts","../../../projects/core/src/muxima-ui-core.ts"],"sourcesContent":["/*\n * Muxima UI — ponto de entrada principal.\n * Os componentes vivem em entradas secundárias, para só incluíres o que usas:\n * import { MxButton } from '@muxima-ui/core/button';\n */\nexport const MUXIMA_VERSION = '2.0.0';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;AAIG;AACI,MAAM,cAAc,GAAG;;ACL9B;;AAEG;;"}
1
+ {"version":3,"file":"muxima-ui-core.mjs","sources":["../../../projects/core/src/public-api.ts","../../../projects/core/src/muxima-ui-core.ts"],"sourcesContent":["/*\n * Muxima UI — ponto de entrada principal.\n * Os componentes vivem em entradas secundárias, para só incluíres o que usas:\n * import { MxButton } from '@muxima-ui/core/button';\n */\nexport const MUXIMA_VERSION = '2.0.1';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;AAIG;AACI,MAAM,cAAc,GAAG;;ACL9B;;AAEG;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@muxima-ui/core",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "Componentes Angular acessíveis e sóbrios para aplicações empresariais.",
5
5
  "keywords": [
6
6
  "angular",
@@ -1,3 +1,3 @@
1
- declare const MUXIMA_VERSION = "2.0.0";
1
+ declare const MUXIMA_VERSION = "2.0.1";
2
2
 
3
3
  export { MUXIMA_VERSION };