@producteca/producteca-ui-kit 1.45.1 → 1.47.0
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 +13 -11
- package/dist/components/inputs/formField/textInput.d.ts +1 -1
- package/dist/components/inputs/selectField/selectField.types.d.ts +1 -1
- package/dist/locales/es.d.ts +34 -0
- package/dist/producteca-ui-kit.es.js +3 -3
- package/dist/producteca-ui-kit.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/theme/index.d.js +2 -0
- package/dist/styles/theme/index.d.ts +2 -0
- package/dist/styles/theme/theme.components.d.js +1 -0
- package/dist/styles/theme/theme.components.d.ts +19 -0
- package/dist/styles/theme/theme.styles.d.js +1 -0
- package/dist/styles/theme/theme.styles.d.ts +97 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,17 +18,19 @@
|
|
|
18
18
|
|
|
19
19
|
## Main Scripts
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
- `
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
21
|
+
| Script | Command | Description |
|
|
22
|
+
|--------|---------|-------------|
|
|
23
|
+
| `dev` | `storybook dev -p 6006` | Starts Storybook in development mode on port 6006 |
|
|
24
|
+
| `build` | `rm -rf dist && tsc && vite build && babel dist ...` | Removes the `dist` folder, compiles TypeScript, builds the library using Vite, and transpiles with Babel for maximum browser compatibility |
|
|
25
|
+
| `build:storybook` | `storybook build` | Builds the static Storybook project |
|
|
26
|
+
| `build-storybook` | `storybook build` | Alias for `build:storybook` |
|
|
27
|
+
| `deploy` | `make deploy` | Deploys the project using the specified Makefile configuration |
|
|
28
|
+
| `lint` | `node linterteca-lint` | Runs linterteca to lint files with `.js` and `.jsx` extensions |
|
|
29
|
+
| `prettier` | `prettier --write "src/**/*.{ts,tsx,js,mdx}"` | Formats files in the `src` folder using Prettier |
|
|
30
|
+
| `test` | `vitest` | Runs tests using Vitest in watch mode |
|
|
31
|
+
| `test:cov` | `vitest run --coverage` | Executes tests and generates a coverage report |
|
|
32
|
+
| `prepare` | `husky` | Prepares the repository by installing Husky for Git hooks |
|
|
33
|
+
| `pre-commit` | `husky && husky install` | Installs Husky and sets up Git hooks for pre-commit validation |
|
|
32
34
|
|
|
33
35
|
## 🌐 Browser Compatibility
|
|
34
36
|
|
|
@@ -13,7 +13,7 @@ export interface TextInputProps {
|
|
|
13
13
|
required?: boolean;
|
|
14
14
|
placeholder?: string;
|
|
15
15
|
isClearable?: boolean;
|
|
16
|
-
size?: 'sm' | 'md' | 'lg' | 'fullwidth';
|
|
16
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'fullwidth';
|
|
17
17
|
leftIcon?: React.ReactNode;
|
|
18
18
|
rightIcon?: React.ReactNode;
|
|
19
19
|
isValid?: (value: InputValue) => boolean;
|
|
@@ -18,7 +18,7 @@ export type SelectOptionType = SelectOption[] | SelectOption | null;
|
|
|
18
18
|
export interface BaseSelectProps {
|
|
19
19
|
name: string;
|
|
20
20
|
label?: string;
|
|
21
|
-
size?: 'md' | 'lg' | 'fullwidth';
|
|
21
|
+
size?: 'sm' | 'md' | 'lg' | 'fullwidth';
|
|
22
22
|
placeholder?: string;
|
|
23
23
|
disabled?: boolean;
|
|
24
24
|
required?: boolean;
|
package/dist/locales/es.d.ts
CHANGED
|
@@ -325,6 +325,40 @@ declare const _default: {
|
|
|
325
325
|
withUnderline: string;
|
|
326
326
|
exampleIntegrationName: string;
|
|
327
327
|
};
|
|
328
|
+
theme: {
|
|
329
|
+
colorPalettes: string;
|
|
330
|
+
colorPalettesDescription: string;
|
|
331
|
+
typography: string;
|
|
332
|
+
typographyDescription: string;
|
|
333
|
+
semanticTokens: string;
|
|
334
|
+
textColors: string;
|
|
335
|
+
borderColors: string;
|
|
336
|
+
borderRadius: string;
|
|
337
|
+
allVariables: string;
|
|
338
|
+
allVariablesDescription: string;
|
|
339
|
+
howToUse: string;
|
|
340
|
+
cssVariable: string;
|
|
341
|
+
variable: string;
|
|
342
|
+
value: string;
|
|
343
|
+
preview: string;
|
|
344
|
+
description: string;
|
|
345
|
+
usage: string;
|
|
346
|
+
sampleText: string;
|
|
347
|
+
textPrimary: string;
|
|
348
|
+
textSecondary: string;
|
|
349
|
+
textLink: string;
|
|
350
|
+
textDisabled: string;
|
|
351
|
+
borderDefault: string;
|
|
352
|
+
borderHover: string;
|
|
353
|
+
borderFocus: string;
|
|
354
|
+
borderDark: string;
|
|
355
|
+
borderDisabled: string;
|
|
356
|
+
fontFamily: string;
|
|
357
|
+
fontSizesDisplay: string;
|
|
358
|
+
fontSizesTitle: string;
|
|
359
|
+
fontSizesBody: string;
|
|
360
|
+
fontSizesHeadings: string;
|
|
361
|
+
};
|
|
328
362
|
asyncContent: {
|
|
329
363
|
errorOccurred: string;
|
|
330
364
|
noResultsFound: string;
|