@producteca/producteca-ui-kit 0.0.7 → 0.0.8

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.
Files changed (37) hide show
  1. package/README.md +3 -4
  2. package/dist/assets/main-D1-kQsnO.js +1 -0
  3. package/dist/index.d.ts +1 -1
  4. package/dist/{components → src/components}/button/button.d.ts +4 -3
  5. package/dist/src/components/button/button.stories.d.ts +43 -0
  6. package/dist/{components → src/components}/emptyState/emptyState.d.ts +5 -4
  7. package/dist/src/components/emptyState/emptyState.stories.d.ts +51 -0
  8. package/dist/src/components/icons/searchPublication/searchPublication.d.ts +8 -0
  9. package/dist/src/components/icons/searchPublication/searchPublication.stories.d.ts +29 -0
  10. package/dist/src/components/spinner/spinner.d.ts +7 -0
  11. package/dist/src/components/spinner/spinner.stories.d.ts +29 -0
  12. package/dist/src/index.d.ts +1 -0
  13. package/dist/src/locales/index.d.ts +2 -0
  14. package/dist/src/locales/translator.d.ts +3 -0
  15. package/dist/src/manager.d.ts +1 -0
  16. package/package.json +2 -2
  17. package/dist/components/button/button.js +0 -34
  18. package/dist/components/emptyState/emptyState.js +0 -17
  19. package/dist/components/icons/index.js +0 -5
  20. package/dist/components/icons/searchPublication/searchPublication.d.ts +0 -7
  21. package/dist/components/icons/searchPublication/searchPublication.js +0 -11
  22. package/dist/components/index.js +0 -20
  23. package/dist/components/spinner/spinner.d.ts +0 -6
  24. package/dist/components/spinner/spinner.js +0 -11
  25. package/dist/index.js +0 -17
  26. package/dist/locales/es.js +0 -6
  27. package/dist/locales/index.d.ts +0 -2
  28. package/dist/locales/index.js +0 -7
  29. package/dist/locales/translator.d.ts +0 -2
  30. package/dist/locales/translator.js +0 -25
  31. package/dist/manager.js +0 -25
  32. package/dist/storybook-utils.js +0 -11
  33. /package/dist/{manager.d.ts → src/components/button/button.test.d.ts} +0 -0
  34. /package/dist/{components → src/components}/icons/index.d.ts +0 -0
  35. /package/dist/{components → src/components}/index.d.ts +0 -0
  36. /package/dist/{locales → src/locales}/es.d.ts +0 -0
  37. /package/dist/{storybook-utils.d.ts → src/storybook-utils.d.ts} +0 -0
package/README.md CHANGED
@@ -1,7 +1,8 @@
1
- # ⚛️⚡ Vite + React + Typescript Component Library Template
1
+ # ⚛️⚡ Node + Vite + React + Typescript
2
2
 
3
3
  ## Features
4
4
 
5
+ - 🔹 [Node 22](https://nodejs.org/)
5
6
  - ⚛️ [React 18](https://reactjs.org/)
6
7
  - 📚 [Storybook 8](https://storybook.js.org/) - Components preview
7
8
  - ⏩ [Vite](https://vitejs.dev/) - Run and build the project blazingly fast!
@@ -9,12 +10,10 @@
9
10
  - 📐 [ESLint](https://eslint.org/) & [Prettier](https://prettier.io/) - Formatting and Linting
10
11
  - 🌟 [Typescript](https://www.typescriptlang.org/)
11
12
  - 🐶 [Husky](https://typicode.github.io/husky) & [Lint Staged](https://www.npmjs.com/package/lint-staged) - Pre-commit Hooks
12
- - 👷 [Github Actions](https://github.com/features/actions) — Releasing versions to NPM
13
+ - 👷 [Github Actions](https://github.com/features/actions)
13
14
 
14
15
  ## Main Scripts
15
16
 
16
- Always prepending pnpm:
17
-
18
17
  - `dev`: Bootstrap the Storybook preview with Hot Reload.
19
18
  - `build`: Builds the static storybook project.
20
19
  - `build:lib`: Builds the component library into the **dist** folder.
@@ -0,0 +1 @@
1
+ var o=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);var p=o((s,r)=>{r.exports=require("./dist")});export default p();
package/dist/index.d.ts CHANGED
@@ -1 +1 @@
1
- export * from './components';
1
+ export * from './index'
@@ -1,5 +1,5 @@
1
- import './button.scss';
2
- interface Props {
1
+
2
+ interface ButtonProps {
3
3
  label: string;
4
4
  variant?: 'primary' | 'secondary' | 'success' | 'error';
5
5
  outline?: boolean;
@@ -7,5 +7,6 @@ interface Props {
7
7
  type?: 'submit' | 'button' | 'reset';
8
8
  onClick?: () => void;
9
9
  }
10
- export declare const Button: ({ type, variant, size, label, outline, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const Button: ({ type, variant, size, label, outline, ...props }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
11
+ export type { ButtonProps };
11
12
  export default Button;
@@ -0,0 +1,43 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ type, variant, size, label, outline, ...props }: import('./button').ButtonProps) => import("react/jsx-runtime").JSX.Element;
6
+ parameters: {
7
+ layout: string;
8
+ design: {
9
+ type: string;
10
+ url: string;
11
+ };
12
+ };
13
+ tags: string[];
14
+ argTypes: {
15
+ label: {
16
+ control: "text";
17
+ };
18
+ variant: {
19
+ control: "select";
20
+ options: string[];
21
+ };
22
+ outline: {
23
+ control: "boolean";
24
+ };
25
+ size: {
26
+ control: "select";
27
+ options: string[];
28
+ };
29
+ type: {
30
+ control: "select";
31
+ options: string[];
32
+ };
33
+ onClick: import('@vitest/spy').Mock<any, any>;
34
+ };
35
+ };
36
+ type Story = StoryObj<typeof meta>;
37
+ export declare const Primary: Story;
38
+ export declare const Success: Story;
39
+ export declare const Secondary: Story;
40
+ export declare const Error: Story;
41
+ export declare const Large: Story;
42
+ export declare const Small: Story;
43
+ export default meta;
@@ -1,10 +1,11 @@
1
- import React from 'react';
2
- import './emptyState.scss';
3
- interface Props {
1
+ import { default as React } from 'react';
2
+
3
+ interface EmptyStateProps {
4
4
  onActionClick?: () => void;
5
5
  actionTex?: string;
6
6
  text?: string;
7
7
  icon?: React.ReactNode;
8
8
  }
9
- export declare const EmptyState: ({ onActionClick, icon, actionTex, text, }: Props) => import("react/jsx-runtime").JSX.Element;
9
+ export declare const EmptyState: ({ onActionClick, icon, actionTex, text, }: EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
10
+ export type { EmptyStateProps };
10
11
  export default EmptyState;
@@ -0,0 +1,51 @@
1
+ declare const meta: {
2
+ title: string;
3
+ component: ({ onActionClick, icon, actionTex, text, }: import('./emptyState').EmptyStateProps) => import("react/jsx-runtime").JSX.Element;
4
+ parameters: {
5
+ actions: {
6
+ argTypesRegex: string;
7
+ };
8
+ layout: string;
9
+ design: {
10
+ type: string;
11
+ url: string;
12
+ };
13
+ };
14
+ tags: string[];
15
+ argTypes: {
16
+ actionTex: {
17
+ table: {
18
+ defaultValue: {
19
+ summary: string;
20
+ };
21
+ type: {
22
+ summary: string;
23
+ };
24
+ };
25
+ };
26
+ text: {
27
+ table: {
28
+ defaultValue: {
29
+ summary: string;
30
+ };
31
+ type: {
32
+ summary: string;
33
+ };
34
+ };
35
+ };
36
+ icon: import('@vitest/spy').Mock<any, any>;
37
+ onActionClick: import('@vitest/spy').Mock<any, any>;
38
+ };
39
+ };
40
+ export default meta;
41
+ export declare const emptyState: {
42
+ args: {};
43
+ };
44
+ export declare const emptyStateWithAction: {
45
+ argTypes: {
46
+ onActionClick: {
47
+ <T>(value: T): T;
48
+ (): undefined;
49
+ };
50
+ };
51
+ };
@@ -0,0 +1,8 @@
1
+
2
+ interface SearchPublicationProps {
3
+ size?: number;
4
+ color?: string | undefined;
5
+ }
6
+ export declare const SearchPublication: ({ size, color }: SearchPublicationProps) => import("react/jsx-runtime").JSX.Element;
7
+ export type { SearchPublicationProps };
8
+ export default SearchPublication;
@@ -0,0 +1,29 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ size, color }: import('./searchPublication').SearchPublicationProps) => import("react/jsx-runtime").JSX.Element;
6
+ parameters: {
7
+ layout: string;
8
+ design: {
9
+ type: string;
10
+ url: string;
11
+ };
12
+ };
13
+ tags: string[];
14
+ argTypes: {
15
+ size: {
16
+ control: {
17
+ type: "number";
18
+ };
19
+ };
20
+ color: {
21
+ control: {
22
+ type: "color";
23
+ };
24
+ };
25
+ };
26
+ };
27
+ export default meta;
28
+ type Story = StoryObj<typeof meta>;
29
+ export declare const searchPublication: Story;
@@ -0,0 +1,7 @@
1
+
2
+ interface SpinnerProps {
3
+ size?: number;
4
+ }
5
+ export declare const Spinner: ({ size }: SpinnerProps) => import("react/jsx-runtime").JSX.Element;
6
+ export type { SpinnerProps };
7
+ export default Spinner;
@@ -0,0 +1,29 @@
1
+ import { StoryObj } from '@storybook/react';
2
+
3
+ declare const meta: {
4
+ title: string;
5
+ component: ({ size }: import('./spinner').SpinnerProps) => import("react/jsx-runtime").JSX.Element;
6
+ parameters: {
7
+ layout: string;
8
+ design: {
9
+ type: string;
10
+ url: string;
11
+ };
12
+ };
13
+ tags: string[];
14
+ argTypes: {
15
+ size: {
16
+ table: {
17
+ defaultValue: {
18
+ summary: string;
19
+ };
20
+ type: {
21
+ summary: string;
22
+ };
23
+ };
24
+ };
25
+ };
26
+ };
27
+ export default meta;
28
+ type Story = StoryObj<typeof meta>;
29
+ export declare const spinner: Story;
@@ -0,0 +1 @@
1
+ export * from './components';
@@ -0,0 +1,2 @@
1
+ declare const _default: import('i18next').TFunction<["translation", ...string[]], undefined>;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { default as i18next } from 'i18next';
2
+
3
+ export default i18next;
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@producteca/producteca-ui-kit",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "repository": {
@@ -19,7 +19,7 @@
19
19
  "scripts": {
20
20
  "dev": "storybook dev -p 6006",
21
21
  "build": "storybook build",
22
- "build:lib": "tsc",
22
+ "build:lib": "tsc && vite build",
23
23
  "lint": "eslint --ext .js,.jsx,.ts,.tsx --fix",
24
24
  "prettier": "prettier --write \"src/**/*.{ts,tsx,js,mdx}\"",
25
25
  "test": "vitest",
@@ -1,34 +0,0 @@
1
- "use strict";
2
- var __assign = (this && this.__assign) || function () {
3
- __assign = Object.assign || function(t) {
4
- for (var s, i = 1, n = arguments.length; i < n; i++) {
5
- s = arguments[i];
6
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
- t[p] = s[p];
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __rest = (this && this.__rest) || function (s, e) {
14
- var t = {};
15
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
16
- t[p] = s[p];
17
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
18
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
19
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
20
- t[p[i]] = s[p[i]];
21
- }
22
- return t;
23
- };
24
- Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.Button = void 0;
26
- var jsx_runtime_1 = require("react/jsx-runtime");
27
- require("./button.scss");
28
- var Button = function (_a) {
29
- var _b = _a.type, type = _b === void 0 ? 'button' : _b, _c = _a.variant, variant = _c === void 0 ? 'primary' : _c, _d = _a.size, size = _d === void 0 ? 'lg' : _d, label = _a.label, outline = _a.outline, props = __rest(_a, ["type", "variant", "size", "label", "outline"]);
30
- var outlineClass = outline ? 'outline' : '';
31
- return ((0, jsx_runtime_1.jsx)("button", __assign({ type: type, className: "btn ".concat(size, " ").concat(variant, " ").concat(outlineClass, " ") }, props, { children: label })));
32
- };
33
- exports.Button = Button;
34
- exports.default = exports.Button;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.EmptyState = void 0;
7
- var jsx_runtime_1 = require("react/jsx-runtime");
8
- var locales_1 = __importDefault(require("../../locales"));
9
- var icons_1 = require("../icons");
10
- require("./emptyState.scss");
11
- var DefaultIcon = (0, jsx_runtime_1.jsx)(icons_1.SearchPublication, {});
12
- var EmptyState = function (_a) {
13
- var onActionClick = _a.onActionClick, _b = _a.icon, icon = _b === void 0 ? DefaultIcon : _b, _c = _a.actionTex, actionTex = _c === void 0 ? (0, locales_1.default)('reloadPage') : _c, _d = _a.text, text = _d === void 0 ? (0, locales_1.default)('noResultsFound') : _d;
14
- return ((0, jsx_runtime_1.jsxs)("div", { className: "empty-state-container", children: [icon, (0, jsx_runtime_1.jsxs)("div", { className: "link-container", children: [(0, jsx_runtime_1.jsxs)("span", { children: [" ", text, " "] }), onActionClick && (0, jsx_runtime_1.jsx)("a", { onClick: onActionClick, children: actionTex })] })] }));
15
- };
16
- exports.EmptyState = EmptyState;
17
- exports.default = exports.EmptyState;
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchPublication = void 0;
4
- var searchPublication_1 = require("./searchPublication/searchPublication");
5
- Object.defineProperty(exports, "SearchPublication", { enumerable: true, get: function () { return searchPublication_1.SearchPublication; } });
@@ -1,7 +0,0 @@
1
- import '../icons.scss';
2
- interface Props {
3
- size?: number;
4
- color?: string | undefined;
5
- }
6
- export declare const SearchPublication: ({ size, color }: Props) => import("react/jsx-runtime").JSX.Element;
7
- export default SearchPublication;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchPublication = void 0;
4
- var jsx_runtime_1 = require("react/jsx-runtime");
5
- require("../icons.scss");
6
- var SearchPublication = function (_a) {
7
- var _b = _a.size, size = _b === void 0 ? 100 : _b, _c = _a.color, color = _c === void 0 ? '#D4D9D8' : _c;
8
- return ((0, jsx_runtime_1.jsx)("svg", { id: "Capa_1", "data-name": "Capa 1", xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 95 95", children: (0, jsx_runtime_1.jsxs)("g", { id: "Grupo_1315", "data-name": "Grupo 1315", children: [(0, jsx_runtime_1.jsx)("path", { id: "Trazado_2280", "data-name": "Trazado 2280", style: { fill: color }, d: "M0,13.62c.09-.37.16-.76.26-1.14a7.22,7.22,0,0,1,7-5.28H24.3c.23,0,.3,0,.29-.29a7,7,0,0,1,.58-3.25A6.37,6.37,0,0,1,33.63.6a6.47,6.47,0,0,1,1.75,1.22,6.2,6.2,0,0,1,1.89,4.53c0,.22,0,.43,0,.65s0,.2.21.2H54.63a7.21,7.21,0,0,1,7.24,7.18V34.23a1.45,1.45,0,0,1-1.33,1.55h-.16A1.44,1.44,0,0,1,59,34.5c0-.12,0-.25,0-.37V14.55a4.33,4.33,0,0,0-4.2-4.46H7.4A4.34,4.34,0,0,0,3,13.44a4.07,4.07,0,0,0-.12,1V79.22a4.33,4.33,0,0,0,4.32,4.32H54.44a1.5,1.5,0,0,1,1.49.83,1.45,1.45,0,0,1-.68,1.93,1.39,1.39,0,0,1-.53.14,2.62,2.62,0,0,1-.28,0H7.29A7.25,7.25,0,0,1,.06,80.26c0-.1,0-.21-.06-.3ZM30.91,7.2h3.23c.17,0,.23,0,.22-.22s0-.47,0-.7A3.43,3.43,0,0,0,28,4.62a4.27,4.27,0,0,0-.45,2.3c0,.22,0,.29.27.29,1,0,2.09,0,3.14,0Z" }), (0, jsx_runtime_1.jsx)("path", { id: "Trazado_2281", "data-name": "Trazado 2281", style: { fill: color }, d: "M54.79,38.4c8.35-.94,15.22,1.7,20.36,8.46A19.94,19.94,0,0,1,79.1,57a20.86,20.86,0,0,1-2,11.63.24.24,0,0,0,.05.34h0L92.23,82.66a5.82,5.82,0,1,1-7.83,8.62l-.07-.06Q76.76,84.37,69.2,77.47c-.15-.13-.23-.09-.37,0a21.24,21.24,0,0,1-7,2.6,21.08,21.08,0,0,1-21-8.55,20.4,20.4,0,0,1-3.79-10A21.15,21.15,0,0,1,51.26,39.31,23.75,23.75,0,0,1,54.79,38.4Zm21.72,18A18.62,18.62,0,1,0,61,77.68h0A18.64,18.64,0,0,0,76.51,56.39Zm15.08,30a3.31,3.31,0,0,0-1.12-2L75.89,71.17c-.16-.14-.23-.14-.36,0a20.4,20.4,0,0,1-4.16,4.49c-.2.15-.19.23,0,.39,1.78,1.6,3.56,3.22,5.34,4.84l9.39,8.52a3.32,3.32,0,0,0,5.5-3Z" }), (0, jsx_runtime_1.jsx)("path", { id: "Trazado_2282", "data-name": "Trazado 2282", style: { fill: color }, d: "M31,19.9H20.38A5.76,5.76,0,0,1,14.57,15a3.12,3.12,0,0,1,0-1.1,1.45,1.45,0,0,1,2.88.22,2.85,2.85,0,0,0,1.74,2.68A2.54,2.54,0,0,0,20.3,17H42a2.9,2.9,0,0,0,2.89-2.85,1.46,1.46,0,0,1,2.91-.07v.1a5.8,5.8,0,0,1-5.72,5.72Z" }), (0, jsx_runtime_1.jsx)("path", { id: "Trazado_2283", "data-name": "Trazado 2283", style: { fill: color }, d: "M13.22,68V66.07A1.86,1.86,0,0,1,15,64.15c1.36,0,2.73,0,4.09,0A1.86,1.86,0,0,1,20.88,66q0,2,0,3.93A1.91,1.91,0,0,1,19,71.83c-1.28,0-2.57,0-3.85,0a1.91,1.91,0,0,1-1.91-1.9V68Zm2.24,0v.76a.77.77,0,0,0,.71.85.28.28,0,0,0,.13,0c.5,0,1,0,1.49,0a.78.78,0,0,0,.85-.73v-.09c0-.51,0-1,0-1.54a.76.76,0,0,0-.72-.8h0a12.2,12.2,0,0,0-1.71,0,.76.76,0,0,0-.72.79h0V68Z" }), (0, jsx_runtime_1.jsx)("path", { id: "Trazado_2284", "data-name": "Trazado 2284", style: { fill: color }, d: "M13.22,52.67V50.75a1.87,1.87,0,0,1,1.83-1.9q2,0,4,0a1.88,1.88,0,0,1,1.84,1.81c0,1.35,0,2.71,0,4.06a1.84,1.84,0,0,1-1.77,1.79,39.85,39.85,0,0,1-4.09,0,1.85,1.85,0,0,1-1.81-1.89.19.19,0,0,1,0-.08ZM17,54.27h.76a.79.79,0,0,0,.84-.73v-.07c0-.52,0-1,0-1.57a.76.76,0,0,0-.71-.79c-.6,0-1.2,0-1.79,0a.74.74,0,0,0-.68.75q0,.83,0,1.65a.77.77,0,0,0,.77.75Z" }), (0, jsx_runtime_1.jsx)("path", { id: "Trazado_2285", "data-name": "Trazado 2285", style: { fill: color }, d: "M13.22,37.38v-2a1.88,1.88,0,0,1,1.86-1.87q2,0,3.93,0a1.85,1.85,0,0,1,1.86,1.78c0,1.37,0,2.74,0,4.12A1.85,1.85,0,0,1,19,41.23q-2,0-4,0a1.88,1.88,0,0,1-1.85-1.9ZM17.05,39h.75a.8.8,0,0,0,.84-.74v-.06c0-.53,0-1,0-1.57a.77.77,0,0,0-.75-.8H16.2a.77.77,0,0,0-.74.76c0,.55,0,1.1,0,1.66a.77.77,0,0,0,.77.75c.27,0,.54,0,.81,0Z" }), (0, jsx_runtime_1.jsx)("path", { id: "Trazado_2286", "data-name": "Trazado 2286", style: { fill: color }, d: "M30.54,38.84h-5a1.45,1.45,0,0,1-1.47-1.43A1.48,1.48,0,0,1,25.26,36a2,2,0,0,1,.35,0h9.87a1.45,1.45,0,0,1,.11,2.9H30.54Z" }), (0, jsx_runtime_1.jsx)("path", { id: "Trazado_2287", "data-name": "Trazado 2287", style: { fill: color }, d: "M28.44,54.14H25.59a1.44,1.44,0,0,1-1.49-1.39s0,0,0-.06a1.48,1.48,0,0,1,1.47-1.46h5.73a1.45,1.45,0,0,1,1.52,1.38,1.44,1.44,0,0,1-1.37,1.52h-3Z" }), (0, jsx_runtime_1.jsx)("path", { id: "Trazado_2288", "data-name": "Trazado 2288", style: { fill: color }, d: "M27.36,66.54c.63,0,1.26,0,1.9,0a1.44,1.44,0,0,1,1.36,1.27,1.47,1.47,0,0,1-1,1.56,1.6,1.6,0,0,1-.54.07H25.64a1.46,1.46,0,0,1-.17-2.91.43.43,0,0,1,.16,0h1.73Z" }), (0, jsx_runtime_1.jsx)("path", { id: "Trazado_2289", "data-name": "Trazado 2289", style: { fill: color }, d: "M54.49,47.45a13.8,13.8,0,0,1,8.82,1.95,12.64,12.64,0,0,1,4.62,5.36,18.36,18.36,0,0,1,1.44,4.33,1.24,1.24,0,0,1-1,1.45h0A1.22,1.22,0,0,1,67,59.63a16.4,16.4,0,0,0-1.56-4.37A9.91,9.91,0,0,0,57,49.91a11.82,11.82,0,0,0-2.59.08,1.23,1.23,0,0,1-1.47-.94v0a1.23,1.23,0,0,1,1-1.47H54Z" })] }) }));
9
- };
10
- exports.SearchPublication = SearchPublication;
11
- exports.default = exports.SearchPublication;
@@ -1,20 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./button/button"), exports);
18
- __exportStar(require("./emptyState/emptyState"), exports);
19
- __exportStar(require("./icons"), exports);
20
- __exportStar(require("./spinner/spinner"), exports);
@@ -1,6 +0,0 @@
1
- import './spinner.scss';
2
- interface Props {
3
- size?: number;
4
- }
5
- export declare const Spinner: ({ size }: Props) => import("react/jsx-runtime").JSX.Element;
6
- export default Spinner;
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Spinner = void 0;
4
- var jsx_runtime_1 = require("react/jsx-runtime");
5
- require("./spinner.scss");
6
- var Spinner = function (_a) {
7
- var _b = _a.size, size = _b === void 0 ? 40 : _b;
8
- return (0, jsx_runtime_1.jsx)("div", { style: { width: size, height: size }, className: "loader" });
9
- };
10
- exports.Spinner = Spinner;
11
- exports.default = exports.Spinner;
package/dist/index.js DELETED
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./components"), exports);
@@ -1,6 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- noResultsFound: 'No se encontraron resultados',
5
- reloadPage: 'Recargar página',
6
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import("i18next").TFunction<["translation", ...string[]], undefined>;
2
- export default _default;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var translator_1 = __importDefault(require("./translator"));
7
- exports.default = translator_1.default.t;
@@ -1,2 +0,0 @@
1
- import i18next from 'i18next';
2
- export default i18next;
@@ -1,25 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var i18next_1 = __importDefault(require("i18next"));
7
- var react_i18next_1 = require("react-i18next");
8
- var es_1 = __importDefault(require("./es"));
9
- var resources = {
10
- en: {
11
- translation: {},
12
- },
13
- es: {
14
- translation: es_1.default,
15
- },
16
- };
17
- i18next_1.default.use(react_i18next_1.initReactI18next).init({
18
- resources: resources,
19
- lng: 'es',
20
- interpolation: {
21
- escapeValue: false,
22
- },
23
- debug: true,
24
- });
25
- exports.default = i18next_1.default;
package/dist/manager.js DELETED
@@ -1,25 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var manager_api_1 = require("@storybook/manager-api");
4
- manager_api_1.addons.setConfig({
5
- navSize: 300,
6
- bottomPanelHeight: 300,
7
- rightPanelWidth: 300,
8
- panelPosition: 'bottom',
9
- enableShortcuts: true,
10
- showToolbar: true,
11
- theme: undefined,
12
- selectedPanel: undefined,
13
- initialActive: 'sidebar',
14
- sidebar: {
15
- showRoots: false,
16
- collapsedRoots: ['other'],
17
- },
18
- toolbar: {
19
- title: { hidden: false },
20
- zoom: { hidden: false },
21
- eject: { hidden: false },
22
- copy: { hidden: false },
23
- fullscreen: { hidden: false },
24
- },
25
- });
@@ -1,11 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.objectValuesToControls = void 0;
4
- var objectValuesToControls = function (obj, control) {
5
- if (control === void 0) { control = 'select'; }
6
- return ({
7
- control: control,
8
- options: Object.keys(obj),
9
- });
10
- };
11
- exports.objectValuesToControls = objectValuesToControls;
File without changes
File without changes