@mp-front/components 0.0.1-next-1 → 0.0.1-next-3
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/dist/components/grid/col/col.component.d.ts +4 -0
- package/dist/components/grid/col/col.component.d.ts.map +1 -0
- package/dist/components/grid/col/index.d.ts +2 -0
- package/dist/components/grid/col/index.d.ts.map +1 -0
- package/dist/components/grid/grid.stories.d.ts +52 -0
- package/dist/components/grid/grid.stories.d.ts.map +1 -0
- package/dist/components/grid/grid.test.d.ts +2 -0
- package/dist/components/grid/grid.test.d.ts.map +1 -0
- package/dist/components/grid/grid.types.d.ts +33 -0
- package/dist/components/grid/grid.types.d.ts.map +1 -0
- package/dist/components/grid/index.d.ts +3 -0
- package/dist/components/grid/index.d.ts.map +1 -0
- package/dist/components/grid/row/index.d.ts +2 -0
- package/dist/components/grid/row/index.d.ts.map +1 -0
- package/dist/components/grid/row/row.component.d.ts +4 -0
- package/dist/components/grid/row/row.component.d.ts.map +1 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/tabs/index.d.ts +3 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/tabs.component.d.ts +4 -0
- package/dist/components/tabs/tabs.component.d.ts.map +1 -0
- package/dist/components/tabs/tabs.stories.d.ts +8 -0
- package/dist/components/tabs/tabs.stories.d.ts.map +1 -0
- package/dist/components/tabs/tabs.styles.d.ts +15 -0
- package/dist/components/tabs/tabs.styles.d.ts.map +1 -0
- package/dist/components/tabs/tabs.test.d.ts +2 -0
- package/dist/components/tabs/tabs.test.d.ts.map +1 -0
- package/dist/components/tabs/tabs.types.d.ts +19 -0
- package/dist/components/tabs/tabs.types.d.ts.map +1 -0
- package/dist/components/tabs/tabs.utils.d.ts +6 -0
- package/dist/components/tabs/tabs.utils.d.ts.map +1 -0
- package/dist/components/tabs/tabsContent.d.ts +10 -0
- package/dist/components/tabs/tabsContent.d.ts.map +1 -0
- package/dist/components/tabs/tabsList.d.ts +11 -0
- package/dist/components/tabs/tabsList.d.ts.map +1 -0
- package/dist/index-BP9HuXkV.cjs +31 -0
- package/dist/index-C0ENqrRs.js +570 -0
- package/dist/layout/content.component.d.ts +19 -0
- package/dist/layout/content.component.d.ts.map +1 -0
- package/dist/layout/footer.component.d.ts +17 -0
- package/dist/layout/footer.component.d.ts.map +1 -0
- package/dist/layout/header/header.component.d.ts +33 -0
- package/dist/layout/header/header.component.d.ts.map +1 -0
- package/dist/layout/header/header.types.d.ts +30 -0
- package/dist/layout/header/header.types.d.ts.map +1 -0
- package/dist/layout/header/left-side.component.d.ts +19 -0
- package/dist/layout/header/left-side.component.d.ts.map +1 -0
- package/dist/layout/header/right-side.component.d.ts +27 -0
- package/dist/layout/header/right-side.component.d.ts.map +1 -0
- package/dist/layout/header/store.component.d.ts +20 -0
- package/dist/layout/header/store.component.d.ts.map +1 -0
- package/dist/layout/header/user.component.d.ts +27 -0
- package/dist/layout/header/user.component.d.ts.map +1 -0
- package/dist/layout/index.d.ts +2 -0
- package/dist/layout/index.d.ts.map +1 -0
- package/dist/layout/root-layout.component.d.ts +46 -0
- package/dist/layout/root-layout.component.d.ts.map +1 -0
- package/dist/layout/root-layout.stories.d.ts +12 -0
- package/dist/layout/root-layout.stories.d.ts.map +1 -0
- package/dist/layout/root-layout.test.d.ts +2 -0
- package/dist/layout/root-layout.test.d.ts.map +1 -0
- package/dist/layout/root-layout.types.d.ts +10 -0
- package/dist/layout/root-layout.types.d.ts.map +1 -0
- package/dist/styles.css +1 -1
- package/dist/ui-components-hooks.cjs +1 -1
- package/dist/ui-components-hooks.js +29 -170
- package/dist/ui-components-index.cjs +35 -65
- package/dist/ui-components-index.js +6417 -6683
- package/dist/ui-components-layout.cjs +135 -0
- package/dist/ui-components-layout.js +19938 -0
- package/dist/useTranslation-Cenukg7h.js +147 -0
- package/dist/useTranslation-CnSCmJou.cjs +1 -0
- package/package.json +6 -18
- package/dist/constants/tailwind-config/index.d.ts +0 -3
- package/dist/constants/tailwind-config/index.d.ts.map +0 -1
- package/dist/ui-components-tailwind.cjs +0 -1
- package/dist/ui-components-tailwind.js +0 -9
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"col.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/grid/col/col.component.tsx"],"names":[],"mappings":"AACA,OAAO,EAAe,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAYrD,QAAA,MAAM,GAAG,8DAQN,IAAI,4CAgBN,CAAA;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/grid/col/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
/**
|
|
3
|
+
* Stories de Storybook para el sistema de Grid (Row y Col).
|
|
4
|
+
*
|
|
5
|
+
* Demuestra el uso combinado y responsivo de los componentes Row y Col,
|
|
6
|
+
* respetando sus interfaces y mostrando ejemplos prácticos.
|
|
7
|
+
*
|
|
8
|
+
* @module GridStories
|
|
9
|
+
* @see {@link Row} para el componente de fila
|
|
10
|
+
* @see {@link Col} para el componente de columna
|
|
11
|
+
*/
|
|
12
|
+
declare const meta: Meta;
|
|
13
|
+
export default meta;
|
|
14
|
+
type Story = StoryObj;
|
|
15
|
+
/**
|
|
16
|
+
* Ejemplo básico de grid con 3 columnas de igual tamaño.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* ```tsx
|
|
20
|
+
* <Row cols={3} gap={4}>
|
|
21
|
+
* <Col>Col 1</Col>
|
|
22
|
+
* <Col>Col 2</Col>
|
|
23
|
+
* <Col>Col 3</Col>
|
|
24
|
+
* </Row>
|
|
25
|
+
* ```
|
|
26
|
+
*/
|
|
27
|
+
export declare const Basico: Story;
|
|
28
|
+
/**
|
|
29
|
+
* Ejemplo de grid responsivo usando la prop `span` en Col.
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* <Row cols={12} gap={2}>
|
|
34
|
+
* <Col span={[12, { md: 6, lg: 4 }]}>Columna 1</Col>
|
|
35
|
+
* <Col span={[12, { md: 6, lg: 8 }]}>Columna 2</Col>
|
|
36
|
+
* </Row>
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
export declare const Responsive: Story;
|
|
40
|
+
/**
|
|
41
|
+
* Ejemplo avanzado con control de start, end, justify y align en columnas.
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```tsx
|
|
45
|
+
* <Row cols={6} gap={2}>
|
|
46
|
+
* <Col span={2} start={2} justify="center" align="center">A</Col>
|
|
47
|
+
* <Col span={3} end={6} justify="end" align="end">B</Col>
|
|
48
|
+
* </Row>
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare const Avanzado: Story;
|
|
52
|
+
//# sourceMappingURL=grid.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.stories.d.ts","sourceRoot":"","sources":["../../../src/lib/components/grid/grid.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAItD;;;;;;;;;GASG;AACH,QAAA,MAAM,IAAI,EAAE,IAYX,CAAA;AAED,eAAe,IAAI,CAAA;AAEnB,KAAK,KAAK,GAAG,QAAQ,CAAA;AAErB;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,MAAM,EAAE,KAoBpB,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,EAAE,KAexB,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,QAAQ,EAAE,KAqBtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.test.d.ts","sourceRoot":"","sources":["../../../src/lib/components/grid/grid.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Generic, TGapAllowed } from '../../interfaces/common';
|
|
2
|
+
import { HTMLMotionProps } from 'motion/react';
|
|
3
|
+
export type TNumberAllowed = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
4
|
+
export declare enum EPrefixGrid {
|
|
5
|
+
cols = "grid-cols",
|
|
6
|
+
rows = "grid-rows",
|
|
7
|
+
gap = "gap",
|
|
8
|
+
justifyItems = "justify-items",
|
|
9
|
+
alignContent = "content",
|
|
10
|
+
span = "col-span",
|
|
11
|
+
start = "col-start",
|
|
12
|
+
end = "col-end",
|
|
13
|
+
justifySelf = "justify-self",
|
|
14
|
+
alignSelf = "self"
|
|
15
|
+
}
|
|
16
|
+
export type TJustifyItems = "start" | "center" | "end" | "stretch" | "none";
|
|
17
|
+
export type TAlignContent = "center" | "start" | "end" | "between" | "around" | "evenly";
|
|
18
|
+
export type TJustifySelf = "auto" | "start" | "end" | "center" | "stretch";
|
|
19
|
+
export type TAlignSelf = "auto" | "start" | "end" | "center" | "stretch" | "baseline";
|
|
20
|
+
export interface IRow extends HTMLMotionProps<"div"> {
|
|
21
|
+
cols?: Generic<TNumberAllowed | "none">;
|
|
22
|
+
gap?: Generic<TGapAllowed>;
|
|
23
|
+
justify?: Generic<TJustifyItems>;
|
|
24
|
+
align?: Generic<TAlignContent | "none">;
|
|
25
|
+
}
|
|
26
|
+
export interface ICol extends HTMLMotionProps<"div"> {
|
|
27
|
+
span?: Generic<TNumberAllowed | "auto" | "full">;
|
|
28
|
+
start?: Generic<TNumberAllowed | 13 | "auto">;
|
|
29
|
+
end?: Generic<TNumberAllowed | 13 | "auto">;
|
|
30
|
+
justify?: Generic<TJustifySelf>;
|
|
31
|
+
align?: Generic<TAlignSelf>;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=grid.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grid.types.d.ts","sourceRoot":"","sources":["../../../src/lib/components/grid/grid.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAA;AAE7E,oBAAY,WAAW;IACrB,IAAI,cAAc;IAClB,IAAI,cAAc;IAClB,GAAG,QAAQ;IACX,YAAY,kBAAkB;IAC9B,YAAY,YAAY;IACxB,IAAI,aAAa;IACjB,KAAK,cAAc;IACnB,GAAG,YAAY;IACf,WAAW,iBAAiB;IAC5B,SAAS,SAAS;CACnB;AAED,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,GAAG,MAAM,CAAA;AAC3E,MAAM,MAAM,aAAa,GACrB,QAAQ,GACR,OAAO,GACP,KAAK,GACL,SAAS,GACT,QAAQ,GACR,QAAQ,CAAA;AACZ,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,SAAS,CAAA;AAC1E,MAAM,MAAM,UAAU,GAClB,MAAM,GACN,OAAO,GACP,KAAK,GACL,QAAQ,GACR,SAAS,GACT,UAAU,CAAA;AAEd,MAAM,WAAW,IAAK,SAAQ,eAAe,CAAC,KAAK,CAAC;IAClD,IAAI,CAAC,EAAE,OAAO,CAAC,cAAc,GAAG,MAAM,CAAC,CAAA;IACvC,GAAG,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;IAC1B,OAAO,CAAC,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAChC,KAAK,CAAC,EAAE,OAAO,CAAC,aAAa,GAAG,MAAM,CAAC,CAAA;CACxC;AAED,MAAM,WAAW,IAAK,SAAQ,eAAe,CAAC,KAAK,CAAC;IAClD,IAAI,CAAC,EAAE,OAAO,CAAC,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC,CAAA;IAChD,KAAK,CAAC,EAAE,OAAO,CAAC,cAAc,GAAG,EAAE,GAAG,MAAM,CAAC,CAAA;IAC7C,GAAG,CAAC,EAAE,OAAO,CAAC,cAAc,GAAG,EAAE,GAAG,MAAM,CAAC,CAAA;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,CAAA;IAC/B,KAAK,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,CAAA;CAC5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/components/grid/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA;AAC1C,OAAO,KAAK,GAAG,MAAM,qBAAqB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/grid/row/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,iBAAiB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"row.component.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/grid/row/row.component.tsx"],"names":[],"mappings":"AACA,OAAO,EAAe,IAAI,EAAE,MAAM,mBAAmB,CAAA;AAMrD,QAAA,MAAM,GAAG,uDAA6D,IAAI,4CAgBzE,CAAA;AAED,eAAe,GAAG,CAAA"}
|
|
@@ -29,7 +29,10 @@ export { default as Spinner } from './spinner/spinner.component';
|
|
|
29
29
|
export { default as Steps } from './steps/steps.component';
|
|
30
30
|
export { default as Switch } from './switch/switch.component';
|
|
31
31
|
export { default as Tag } from './tag/tag.component';
|
|
32
|
+
export { default as Tabs } from './tabs/tabs.component';
|
|
32
33
|
export { default as TextArea } from './textArea/text.area.component';
|
|
33
34
|
export { default as Tooltip } from './tooltip/tooltip.component';
|
|
34
35
|
export { default as Typography } from './typography';
|
|
36
|
+
export { default as Row } from './grid/row/row.component';
|
|
37
|
+
export { default as Col } from './grid/col/col.component';
|
|
35
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAA;AACtC,cAAc,WAAW,CAAA;AAEzB,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,6BAA6B,CAAA;AAChE,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AACnE,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,yBAAyB,CAAA;AAC1D,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,eAAe,CAAA;AAChD,OAAO,EAAE,O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cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ITabsProps } from './tabs.types';
|
|
2
|
+
declare const Tabs: ({ currentActiveKey, type, items, onChange, className, contentClassName, activeColorTabs, }: ITabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default Tabs;
|
|
4
|
+
//# sourceMappingURL=tabs.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.component.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tabs/tabs.component.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAIzC,QAAA,MAAM,IAAI,+FAQP,UAAU,4CAsBZ,CAAA;AACD,eAAe,IAAI,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { default as Tabs } from './tabs.component';
|
|
3
|
+
declare const meta: Meta<typeof Tabs>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof Tabs>;
|
|
6
|
+
export declare const Example: Story;
|
|
7
|
+
export declare const ImplementTab: Story;
|
|
8
|
+
//# sourceMappingURL=tabs.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tabs/tabs.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAGtD,OAAO,IAAI,MAAM,kBAAkB,CAAA;AAmCnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,IAAI,CAI3B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAA;AAElC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,KAY1B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.styles.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tabs/tabs.styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;CAIjC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.test.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tabs/tabs.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type TypeTabs = "default" | "underline" | "with-icon" | "pills" | "segmented";
|
|
3
|
+
export interface ITabItem {
|
|
4
|
+
key: string;
|
|
5
|
+
label: React.ReactNode | string;
|
|
6
|
+
href?: string;
|
|
7
|
+
content?: React.ReactNode | string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface ITabsProps {
|
|
11
|
+
currentActiveKey: string;
|
|
12
|
+
type?: TypeTabs;
|
|
13
|
+
items: ITabItem[];
|
|
14
|
+
onChange: (currentActiveKey: string) => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
contentClassName?: string;
|
|
17
|
+
activeColorTabs?: string;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=tabs.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.types.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tabs/tabs.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,MAAM,QAAQ,GAChB,SAAS,GACT,WAAW,GACX,WAAW,GACX,OAAO,GACP,WAAW,CAAA;AAEf,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;IAC/B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,UAAU;IACzB,gBAAgB,EAAE,MAAM,CAAA;IACxB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,QAAQ,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAA;IAC5C,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TypeTabs } from './tabs.types';
|
|
2
|
+
export declare const getContainerClasses: (type: TypeTabs, className?: string) => string;
|
|
3
|
+
export declare const getListClasses: (type: TypeTabs) => string;
|
|
4
|
+
export declare const getTriggerBaseClasses: (type: TypeTabs) => string;
|
|
5
|
+
export declare const getActiveClasses: (type: TypeTabs, activeColorTabs: string) => string;
|
|
6
|
+
//# sourceMappingURL=tabs.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabs.utils.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tabs/tabs.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEvC,eAAO,MAAM,mBAAmB,SAAU,QAAQ,cAAc,MAAM,WAWnE,CAAA;AAEH,eAAO,MAAM,cAAc,SAAU,QAAQ,WASzC,CAAA;AAEJ,eAAO,MAAM,qBAAqB,SAAU,QAAQ,WAUhD,CAAA;AAEJ,eAAO,MAAM,gBAAgB,SAAU,QAAQ,mBAAmB,MAAM,WAQpE,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ITabItem, TypeTabs } from './tabs.types';
|
|
2
|
+
interface TabsContentProps {
|
|
3
|
+
type: TypeTabs;
|
|
4
|
+
items: ITabItem[];
|
|
5
|
+
currentActiveKey: string;
|
|
6
|
+
contentClassName?: string;
|
|
7
|
+
}
|
|
8
|
+
declare const TabsContent: ({ type, items, currentActiveKey, contentClassName, }: TabsContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export default TabsContent;
|
|
10
|
+
//# sourceMappingURL=tabsContent.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabsContent.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tabs/tabsContent.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAIjD,UAAU,gBAAgB;IACxB,IAAI,EAAE,QAAQ,CAAA;IACd,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,gBAAgB,EAAE,MAAM,CAAA;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED,QAAA,MAAM,WAAW,yDAKd,gBAAgB,4CAoClB,CAAA;AACD,eAAe,WAAW,CAAA"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ITabItem, TypeTabs } from './tabs.types';
|
|
2
|
+
interface TabsListProps {
|
|
3
|
+
type: TypeTabs;
|
|
4
|
+
items: ITabItem[];
|
|
5
|
+
currentActiveKey: string;
|
|
6
|
+
activeColorTabs: string;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
declare const TabsList: ({ type, items, currentActiveKey, activeColorTabs, className, }: TabsListProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default TabsList;
|
|
11
|
+
//# sourceMappingURL=tabsList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tabsList.d.ts","sourceRoot":"","sources":["../../../src/lib/components/tabs/tabsList.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAA;AAEjD,UAAU,aAAa;IACrB,IAAI,EAAE,QAAQ,CAAA;IACd,KAAK,EAAE,QAAQ,EAAE,CAAA;IACjB,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,QAAA,MAAM,QAAQ,mEAMX,aAAa,4CAkCf,CAAA;AACD,eAAe,QAAQ,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";const _e=require("react"),Se=require("react-dom");function Ce(o){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(o){for(const u in o)if(u!=="default"){const s=Object.getOwnPropertyDescriptor(o,u);Object.defineProperty(n,u,s.get?s:{enumerable:!0,get:()=>o[u]})}}return n.default=o,Object.freeze(n)}const E=Ce(_e),$e=Ce(Se);var P={exports:{}},O={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react-jsx-runtime.production.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var be;function We(){if(be)return O;be=1;var o=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function u(s,a,c){var d=null;if(c!==void 0&&(d=""+c),a.key!==void 0&&(d=""+a.key),"key"in a){c={};for(var v in a)v!=="key"&&(c[v]=a[v])}else c=a;return a=c.ref,{$$typeof:o,type:s,key:d,ref:a!==void 0?a:null,props:c}}return O.Fragment=n,O.jsx=u,O.jsxs=u,O}var N={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.development.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var ge;function Ve(){return ge||(ge=1,process.env.NODE_ENV!=="production"&&(function(){function o(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Pe?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case W:return"Fragment";case Ae:return"Portal";case ee:return"Profiler";case K:return"StrictMode";case U:return"Suspense";case q:return"SuspenseList"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case te:return(e.displayName||"Context")+".Provider";case re:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z:return r=e.displayName||null,r!==null?r:o(e.type)||"Memo";case J:r=e._payload,e=e._init;try{return o(e(r))}catch{}}return null}function n(e){return""+e}function u(e){try{n(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,i=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",i),n(e)}}function s(){}function a(){if(w===0){ae=console.log,le=console.info,ue=console.warn,se=console.error,ie=console.group,ce=console.groupCollapsed,fe=console.groupEnd;var e={configurable:!0,enumerable:!0,value:s,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}w++}function c(){if(w--,w===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:C({},e,{value:ae}),info:C({},e,{value:le}),warn:C({},e,{value:ue}),error:C({},e,{value:se}),group:C({},e,{value:ie}),groupCollapsed:C({},e,{value:ce}),groupEnd:C({},e,{value:fe})})}0>w&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function d(e){if(L===void 0)try{throw Error()}catch(t){var r=t.stack.trim().match(/\n( *(at )?)/);L=r&&r[1]||"",de=-1<t.stack.indexOf(`
|
|
18
|
+
at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
19
|
+
`+L+e+de}function v(e,r){if(!e||B)return"";var t=G.get(e);if(t!==void 0)return t;B=!0,t=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var i=null;i=S.H,S.H=null,a();try{var m={DetermineComponentFrameRoot:function(){try{if(r){var _=function(){throw Error()};if(Object.defineProperty(_.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_,[])}catch(R){var k=R}Reflect.construct(e,[],_)}else{try{_.call()}catch(R){k=R}e.call(_.prototype)}}else{try{throw Error()}catch(R){k=R}(_=e())&&typeof _.catch=="function"&&_.catch(function(){})}}catch(R){if(R&&k&&typeof R.stack=="string")return[R.stack,k.stack]}return[null,null]}};m.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var f=Object.getOwnPropertyDescriptor(m.DetermineComponentFrameRoot,"name");f&&f.configurable&&Object.defineProperty(m.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=m.DetermineComponentFrameRoot(),y=l[0],T=l[1];if(y&&T){var p=y.split(`
|
|
20
|
+
`),h=T.split(`
|
|
21
|
+
`);for(l=f=0;f<p.length&&!p[f].includes("DetermineComponentFrameRoot");)f++;for(;l<h.length&&!h[l].includes("DetermineComponentFrameRoot");)l++;if(f===p.length||l===h.length)for(f=p.length-1,l=h.length-1;1<=f&&0<=l&&p[f]!==h[l];)l--;for(;1<=f&&0<=l;f--,l--)if(p[f]!==h[l]){if(f!==1||l!==1)do if(f--,l--,0>l||p[f]!==h[l]){var j=`
|
|
22
|
+
`+p[f].replace(" at new "," at ");return e.displayName&&j.includes("<anonymous>")&&(j=j.replace("<anonymous>",e.displayName)),typeof e=="function"&&G.set(e,j),j}while(1<=f&&0<=l);break}}}finally{B=!1,S.H=i,c(),Error.prepareStackTrace=t}return p=(p=e?e.displayName||e.name:"")?d(p):"",typeof e=="function"&&G.set(e,p),p}function b(e){if(e==null)return"";if(typeof e=="function"){var r=e.prototype;return v(e,!(!r||!r.isReactComponent))}if(typeof e=="string")return d(e);switch(e){case U:return d("Suspense");case q:return d("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case V:return e=v(e.render,!1),e;case z:return b(e.type);case J:r=e._payload,e=e._init;try{return b(e(r))}catch{}}return""}function g(){var e=S.A;return e===null?null:e.getOwner()}function M(e){if(ne.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function A(e,r){function t(){ve||(ve=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function we(){var e=o(this.type);return Ee[e]||(Ee[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function je(e,r,t,i,m,f){return t=f.ref,e={$$typeof:$,type:e,key:r,props:f,_owner:m},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:we}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function Z(e,r,t,i,m,f){if(typeof e=="string"||typeof e=="function"||e===W||e===ee||e===K||e===U||e===q||e===ke||typeof e=="object"&&e!==null&&(e.$$typeof===J||e.$$typeof===z||e.$$typeof===te||e.$$typeof===re||e.$$typeof===V||e.$$typeof===Me||e.getModuleId!==void 0)){var l=r.children;if(l!==void 0)if(i)if(H(l)){for(i=0;i<l.length;i++)D(l[i],e);Object.freeze&&Object.freeze(l)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else D(l,e)}else l="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(l+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?i="null":H(e)?i="array":e!==void 0&&e.$$typeof===$?(i="<"+(o(e.type)||"Unknown")+" />",l=" Did you accidentally export a JSX literal instead of a component?"):i=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",i,l);if(ne.call(r,"key")){l=o(e);var y=Object.keys(r).filter(function(p){return p!=="key"});i=0<y.length?"{key: someKey, "+y.join(": ..., ")+": ...}":"{key: someKey}",me[l+i]||(y=0<y.length?"{"+y.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
23
|
+
let props = %s;
|
|
24
|
+
<%s {...props} />
|
|
25
|
+
React keys must be passed directly to JSX without using spread:
|
|
26
|
+
let props = %s;
|
|
27
|
+
<%s key={someKey} {...props} />`,i,l,y,l),me[l+i]=!0)}if(l=null,t!==void 0&&(u(t),l=""+t),M(r)&&(u(r.key),l=""+r.key),"key"in r){t={};for(var T in r)T!=="key"&&(t[T]=r[T])}else t=r;return l&&A(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),je(e,l,f,m,g(),t)}function D(e,r){if(typeof e=="object"&&e&&e.$$typeof!==Ye){if(H(e))for(var t=0;t<e.length;t++){var i=e[t];Y(i)&&Q(i,r)}else if(Y(e))e._store&&(e._store.validated=1);else if(e===null||typeof e!="object"?t=null:(t=oe&&e[oe]||e["@@iterator"],t=typeof t=="function"?t:null),typeof t=="function"&&t!==e.entries&&(t=t.call(e),t!==e))for(;!(e=t.next()).done;)Y(e.value)&&Q(e.value,r)}}function Y(e){return typeof e=="object"&&e!==null&&e.$$typeof===$}function Q(e,r){if(e._store&&!e._store.validated&&e.key==null&&(e._store.validated=1,r=Oe(r),!pe[r])){pe[r]=!0;var t="";e&&e._owner!=null&&e._owner!==g()&&(t=null,typeof e._owner.tag=="number"?t=o(e._owner.type):typeof e._owner.name=="string"&&(t=e._owner.name),t=" It was passed a child from "+t+".");var i=S.getCurrentStack;S.getCurrentStack=function(){var m=b(e.type);return i&&(m+=i()||""),m},console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',r,t),S.getCurrentStack=i}}function Oe(e){var r="",t=g();return t&&(t=o(t.type))&&(r=`
|
|
28
|
+
|
|
29
|
+
Check the render method of \``+t+"`."),r||(e=o(e))&&(r=`
|
|
30
|
+
|
|
31
|
+
Check the top-level render call using <`+e+">."),r}var Ne=_e,$=Symbol.for("react.transitional.element"),Ae=Symbol.for("react.portal"),W=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),ee=Symbol.for("react.profiler"),re=Symbol.for("react.consumer"),te=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),ke=Symbol.for("react.offscreen"),oe=Symbol.iterator,Pe=Symbol.for("react.client.reference"),S=Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=Object.prototype.hasOwnProperty,C=Object.assign,Me=Symbol.for("react.client.reference"),H=Array.isArray,w=0,ae,le,ue,se,ie,ce,fe;s.__reactDisabledLog=!0;var L,de,B=!1,G=new(typeof WeakMap=="function"?WeakMap:Map),Ye=Symbol.for("react.client.reference"),ve,Ee={},me={},pe={};N.Fragment=W,N.jsx=function(e,r,t,i,m){return Z(e,r,t,!1,i,m)},N.jsxs=function(e,r,t,i,m){return Z(e,r,t,!0,i,m)}})()),N}var ye;function Ue(){return ye||(ye=1,process.env.NODE_ENV==="production"?P.exports=We():P.exports=Ve()),P.exports}var x=Ue();function Re(o,n){if(typeof o=="function")return o(n);o!=null&&(o.current=n)}function I(...o){return n=>{let u=!1;const s=o.map(a=>{const c=Re(a,n);return!u&&typeof c=="function"&&(u=!0),c});if(u)return()=>{for(let a=0;a<s.length;a++){const c=s[a];typeof c=="function"?c():Re(o[a],null)}}}}function qe(...o){return E.useCallback(I(...o),o)}function F(o){const n=Je(o),u=E.forwardRef((s,a)=>{const{children:c,...d}=s,v=E.Children.toArray(c),b=v.find(Le);if(b){const g=b.props.children,M=v.map(A=>A===b?E.Children.count(g)>1?E.Children.only(null):E.isValidElement(g)?g.props.children:null:A);return x.jsx(n,{...d,ref:a,children:E.isValidElement(g)?E.cloneElement(g,void 0,M):null})}return x.jsx(n,{...d,ref:a,children:c})});return u.displayName=`${o}.Slot`,u}var ze=F("Slot");function Je(o){const n=E.forwardRef((u,s)=>{const{children:a,...c}=u;if(E.isValidElement(a)){const d=Ge(a),v=Be(c,a.props);return a.type!==E.Fragment&&(v.ref=s?I(s,d):d),E.cloneElement(a,v)}return E.Children.count(a)>1?E.Children.only(null):null});return n.displayName=`${o}.SlotClone`,n}var he=Symbol("radix.slottable");function He(o){const n=({children:u})=>x.jsx(x.Fragment,{children:u});return n.displayName=`${o}.Slottable`,n.__radixId=he,n}function Le(o){return E.isValidElement(o)&&typeof o.type=="function"&&"__radixId"in o.type&&o.type.__radixId===he}function Be(o,n){const u={...n};for(const s in n){const a=o[s],c=n[s];/^on[A-Z]/.test(s)?a&&c?u[s]=(...v)=>{const b=c(...v);return a(...v),b}:a&&(u[s]=a):s==="style"?u[s]={...a,...c}:s==="className"&&(u[s]=[a,c].filter(Boolean).join(" "))}return{...o,...u}}function Ge(o){var s,a;let n=(s=Object.getOwnPropertyDescriptor(o.props,"ref"))==null?void 0:s.get,u=n&&"isReactWarning"in n&&n.isReactWarning;return u?o.ref:(n=(a=Object.getOwnPropertyDescriptor(o,"ref"))==null?void 0:a.get,u=n&&"isReactWarning"in n&&n.isReactWarning,u?o.props.ref:o.props.ref||o.ref)}var Ie=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],xe=Ie.reduce((o,n)=>{const u=F(`Primitive.${n}`),s=E.forwardRef((a,c)=>{const{asChild:d,...v}=a,b=d?u:n;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),x.jsx(b,{...v,ref:c})});return s.displayName=`Primitive.${n}`,{...o,[n]:s}},{});function Fe(o,n){o&&$e.flushSync(()=>o.dispatchEvent(n))}var Te=globalThis!=null&&globalThis.document?E.useLayoutEffect:()=>{},Xe="Portal",X=E.forwardRef((o,n)=>{var v;const{container:u,...s}=o,[a,c]=E.useState(!1);Te(()=>c(!0),[]);const d=u||a&&((v=globalThis==null?void 0:globalThis.document)==null?void 0:v.body);return d?Se.createPortal(x.jsx(xe.div,{...s,ref:n}),d):null});X.displayName=Xe;var Ze=X;exports.Portal=X;exports.Primitive=xe;exports.Root=Ze;exports.Slot=ze;exports.composeRefs=I;exports.createSlot=F;exports.createSlottable=He;exports.dispatchDiscreteCustomEvent=Fe;exports.jsxRuntimeExports=x;exports.useComposedRefs=qe;exports.useLayoutEffect2=Te;
|