trepur_components 2.3.4 → 2.3.6
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/archive/theme.ts +1 -1
- package/lib/components/Accordion/index.d.ts +1 -2
- package/lib/components/Accordion/index.js +8 -8
- package/lib/components/AlertBar/index.d.ts +1 -2
- package/lib/components/AlertBar/index.js +13 -13
- package/lib/components/index.d.ts +3 -3
- package/lib/index.js +4 -4
- package/lib/styles/{base.css → global.css} +1 -43
- package/lib/styles/themes/local.css +40 -0
- package/package.json +1 -1
- package/postcss.config.js +8 -0
- package/src/components/Accordion/Accordion.stories.tsx +1 -1
- package/src/components/Accordion/index.tsx +1 -3
- package/src/components/AlertBar/AlertBar.stories.tsx +1 -1
- package/src/components/AlertBar/index.tsx +2 -4
- package/src/components/index.ts +5 -5
- package/src/styles/{base.css → global.css} +1 -43
- package/src/styles/themes/local.css +40 -0
- package/tsconfig.json +1 -1
- package/storybook-build/assets/Accordion.stories-Cn994N1H.js +0 -103
- package/storybook-build/assets/AlertBar.stories-BkzNXFBh.js +0 -202
- package/storybook-build/assets/Avatar.stories-CpH6xVwM.js +0 -418
- package/storybook-build/assets/Color-6VNJS4EI-DQV2onvt.js +0 -1378
- package/storybook-build/assets/Colours-r29qjFlW.js +0 -324
- package/storybook-build/assets/DocsRenderer-NNNQARDV-OgWasCIs.js +0 -44
- package/storybook-build/assets/Introduction-Bs1PgnBZ.js +0 -40
- package/storybook-build/assets/WithTooltip-V3YHNWJZ-vi2V5TOO.js +0 -15
- package/storybook-build/assets/_commonjsHelpers-LQfde5yM.js +0 -35
- package/storybook-build/assets/axe-DnFZVv9V.js +0 -32561
- package/storybook-build/assets/chunk-EIRT5I3Z-DFD8udmD.js +0 -480
- package/storybook-build/assets/context-CIRBAiUz.js +0 -20
- package/storybook-build/assets/controls-DJSGrQKd.js +0 -23
- package/storybook-build/assets/entry-preview-DmlPV4-3.js +0 -41
- package/storybook-build/assets/entry-preview-docs-D46Drugi.js +0 -11861
- package/storybook-build/assets/formatter-SWP5E3XI-BWIasvKP.js +0 -14427
- package/storybook-build/assets/iframe-Dzzzanqi.js +0 -144
- package/storybook-build/assets/index-0FT4HXk-.js +0 -7222
- package/storybook-build/assets/index-B9Tccxv4.js +0 -107
- package/storybook-build/assets/index-BdOSk9or.js +0 -41
- package/storybook-build/assets/index-CU7cYjZD.js +0 -9604
- package/storybook-build/assets/index-Clz-aGG3.js +0 -39
- package/storybook-build/assets/index-CpyNLP69.js +0 -63
- package/storybook-build/assets/index-DM9bPmif.js +0 -319
- package/storybook-build/assets/index-ex9_VrIg.js +0 -3734
- package/storybook-build/assets/jsx-runtime-D2-sc1j1.js +0 -35
- package/storybook-build/assets/preview-3kSipVgK.js +0 -430
- package/storybook-build/assets/preview-B4rAxPmB.js +0 -27
- package/storybook-build/assets/preview-BMkwWyrh.js +0 -2920
- package/storybook-build/assets/preview-BeQelhbu.js +0 -204
- package/storybook-build/assets/preview-BiG-rflf.js +0 -2444
- package/storybook-build/assets/preview-BiYUJ7TP.js +0 -22
- package/storybook-build/assets/preview-C4ItOQzM.js +0 -34
- package/storybook-build/assets/preview-CWyhKACi.css +0 -886
- package/storybook-build/assets/preview-CtOV68TG.js +0 -10
- package/storybook-build/assets/preview-De9E9xaR.js +0 -140
- package/storybook-build/assets/preview-bL4x2zrN.js +0 -99
- package/storybook-build/assets/preview-gxqyGMHu.js +0 -323
- package/storybook-build/assets/react-18-B-gfo82w.js +0 -29
- package/storybook-build/assets/syntaxhighlighter-B5GMVT5T-DrY_Dc6-.js +0 -15
- package/storybook-build/favicon.svg +0 -7
- package/storybook-build/iframe.html +0 -458
- package/storybook-build/index.html +0 -163
- package/storybook-build/index.json +0 -1
- package/storybook-build/preview-stats.json +0 -172
- package/storybook-build/project.json +0 -1
- package/storybook-build/sb-addons/a11y-9/manager-bundle.js +0 -3
- package/storybook-build/sb-addons/a11y-9/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-addons/essentials-actions-2/manager-bundle.js +0 -3
- package/storybook-build/sb-addons/essentials-actions-2/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-addons/essentials-backgrounds-3/manager-bundle.js +0 -12
- package/storybook-build/sb-addons/essentials-backgrounds-3/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-addons/essentials-controls-1/manager-bundle.js +0 -63
- package/storybook-build/sb-addons/essentials-controls-1/manager-bundle.js.LEGAL.txt +0 -18
- package/storybook-build/sb-addons/essentials-measure-6/manager-bundle.js +0 -3
- package/storybook-build/sb-addons/essentials-measure-6/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-addons/essentials-outline-7/manager-bundle.js +0 -3
- package/storybook-build/sb-addons/essentials-outline-7/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-addons/essentials-toolbars-5/manager-bundle.js +0 -3
- package/storybook-build/sb-addons/essentials-toolbars-5/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-addons/essentials-viewport-4/manager-bundle.js +0 -3
- package/storybook-build/sb-addons/essentials-viewport-4/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-addons/interactions-8/manager-bundle.js +0 -12
- package/storybook-build/sb-addons/interactions-8/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-addons/links-0/manager-bundle.js +0 -3
- package/storybook-build/sb-addons/links-0/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-addons/storybook-12/manager-bundle.js +0 -151
- package/storybook-build/sb-addons/storybook-12/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-addons/storybook-react-i18next-11/manager-bundle.js +0 -3
- package/storybook-build/sb-addons/storybook-react-i18next-11/manager-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-addons/themes-10/register-bundle.js +0 -5
- package/storybook-build/sb-addons/themes-10/register-bundle.js.LEGAL.txt +0 -0
- package/storybook-build/sb-common-assets/fonts.css +0 -31
- package/storybook-build/sb-common-assets/nunito-sans-bold-italic.woff2 +0 -0
- package/storybook-build/sb-common-assets/nunito-sans-bold.woff2 +0 -0
- package/storybook-build/sb-common-assets/nunito-sans-italic.woff2 +0 -0
- package/storybook-build/sb-common-assets/nunito-sans-regular.woff2 +0 -0
- package/storybook-build/sb-manager/WithTooltip-V3YHNWJZ-TRLNWEGW.js +0 -1
- package/storybook-build/sb-manager/chunk-4IYAVH3S.js +0 -348
- package/storybook-build/sb-manager/chunk-CXYKRFSY.js +0 -9
- package/storybook-build/sb-manager/chunk-KZYAAUOR.js +0 -406
- package/storybook-build/sb-manager/chunk-LVLAH4SI.js +0 -7
- package/storybook-build/sb-manager/chunk-ZEU7PDD3.js +0 -1
- package/storybook-build/sb-manager/formatter-SWP5E3XI-7BGIK6BL.js +0 -156
- package/storybook-build/sb-manager/globals-module-info.js +0 -1
- package/storybook-build/sb-manager/globals.js +0 -1
- package/storybook-build/sb-manager/index.js +0 -1
- package/storybook-build/sb-manager/runtime.js +0 -1
- package/storybook-build/sb-manager/syntaxhighlighter-B5GMVT5T-EA5ASEYD.js +0 -1
- package/storybook-build/sb-preview/globals.js +0 -1
- package/storybook-build/sb-preview/runtime.js +0 -112
- package/storybook-build/src/components/Accordion/Accordion.stories.d.ts +0 -94
- package/storybook-build/src/components/Accordion/index.d.ts +0 -9
- package/storybook-build/src/components/AlertBar/AlertBar.stories.d.ts +0 -162
- package/storybook-build/src/components/AlertBar/index.d.ts +0 -13
- package/storybook-build/src/components/Avatar/Avatar.stories.d.ts +0 -44
- package/storybook-build/src/components/Avatar/index.d.ts +0 -4
- package/storybook-build/src/components/index.d.ts +0 -7
- package/storybook-build/src/index.d.ts +0 -1
- package/storybook-build/src/utils/controls.d.ts +0 -36
- package/storybook-build/src/utils/matchMedia.d.ts +0 -2
- package/storybook-build/src/utils/screens.d.ts +0 -7
- package/storybook-build/src/utils/theme.d.ts +0 -3
- package/storybook-build/stories.json +0 -1
- package/storybook-build/styles/base.css +0 -116
package/archive/theme.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
const
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import e from "classnames";
|
|
3
|
+
const i = ({
|
|
4
4
|
id: c,
|
|
5
5
|
className: a,
|
|
6
|
-
items:
|
|
7
|
-
}) => /* @__PURE__ */
|
|
6
|
+
items: r
|
|
7
|
+
}) => /* @__PURE__ */ o("div", { id: c, className: e(a, "theme-local"), children: r == null ? void 0 : r.map((l, m) => (
|
|
8
8
|
// <Collapsible key={`collapsible_item_${i}`} {...item}>
|
|
9
9
|
// {item.children}
|
|
10
10
|
// </Collapsible>
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
)) })
|
|
11
|
+
/* @__PURE__ */ o("div", {})
|
|
12
|
+
)) });
|
|
13
13
|
export {
|
|
14
|
-
|
|
14
|
+
i as Accordion
|
|
15
15
|
};
|
|
@@ -9,5 +9,4 @@ export interface Props {
|
|
|
9
9
|
isDismissable?: boolean;
|
|
10
10
|
onDismissClick?: MouseEventHandler;
|
|
11
11
|
}
|
|
12
|
-
declare const AlertBar: ({ id, className, type, text, textCenter, isDismissable, onDismissClick, }: Props) => JSX.Element;
|
|
13
|
-
export default AlertBar;
|
|
12
|
+
export declare const AlertBar: ({ id, className, type, text, textCenter, isDismissable, onDismissClick, }: Props) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
2
|
+
import { useState as m } from "react";
|
|
3
3
|
import t from "classnames";
|
|
4
|
-
const
|
|
4
|
+
const x = ({
|
|
5
5
|
id: a,
|
|
6
6
|
className: o,
|
|
7
7
|
type: s = "warning",
|
|
@@ -9,13 +9,13 @@ const f = ({
|
|
|
9
9
|
// leftIconProps,
|
|
10
10
|
// rightIconProps,
|
|
11
11
|
textCenter: n = !1,
|
|
12
|
-
isDismissable:
|
|
13
|
-
onDismissClick:
|
|
12
|
+
isDismissable: c = !1,
|
|
13
|
+
onDismissClick: d
|
|
14
14
|
}) => {
|
|
15
|
-
const [r,
|
|
15
|
+
const [r, f] = m({
|
|
16
16
|
state: "open",
|
|
17
17
|
display: !0
|
|
18
|
-
}),
|
|
18
|
+
}), l = t({
|
|
19
19
|
"bg-success": s === "success",
|
|
20
20
|
"bg-warning": s === "warning",
|
|
21
21
|
"bg-error": s === "error",
|
|
@@ -26,10 +26,10 @@ const f = ({
|
|
|
26
26
|
hidden: !r.display
|
|
27
27
|
}), u = t(
|
|
28
28
|
o,
|
|
29
|
-
|
|
29
|
+
l,
|
|
30
30
|
p,
|
|
31
|
-
"flex py-2 text-white duration-700
|
|
32
|
-
),
|
|
31
|
+
"flex py-2 text-white duration-700 w-parent transition-opactiy"
|
|
32
|
+
), g = t(
|
|
33
33
|
{
|
|
34
34
|
"text-center": n
|
|
35
35
|
// 'pl-20': !textCenter && leftIconProps !== null,
|
|
@@ -39,11 +39,11 @@ const f = ({
|
|
|
39
39
|
);
|
|
40
40
|
return t(
|
|
41
41
|
{
|
|
42
|
-
"hover:cursor-pointer":
|
|
42
|
+
"hover:cursor-pointer": c
|
|
43
43
|
},
|
|
44
44
|
"absolute right-0 pr-8 pt-3"
|
|
45
|
-
), /* @__PURE__ */ e("div", { id: a, className: u, children: /* @__PURE__ */ e("h3", { className:
|
|
46
|
-
}
|
|
45
|
+
), /* @__PURE__ */ e("div", { id: a, className: u, children: /* @__PURE__ */ e("h3", { className: g, children: i }) });
|
|
46
|
+
};
|
|
47
47
|
export {
|
|
48
|
-
|
|
48
|
+
x as AlertBar
|
|
49
49
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { AlertBar } from './AlertBar';
|
|
2
|
+
import { Accordion } from './Accordion';
|
|
3
3
|
|
|
4
|
-
export { Accordion, AlertBar,
|
|
4
|
+
export { Accordion, AlertBar, };
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { Accordion as e } from "./components/Accordion/index.js";
|
|
2
|
+
import { AlertBar as c } from "./components/AlertBar/index.js";
|
|
3
3
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
e as Accordion,
|
|
5
|
+
c as AlertBar
|
|
6
6
|
};
|
|
@@ -1,49 +1,7 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import './themes/local.css';
|
|
2
2
|
|
|
3
3
|
@tailwind base;
|
|
4
4
|
@tailwind components;
|
|
5
|
-
|
|
6
|
-
.theme-local {
|
|
7
|
-
--color-primary: #0036a0;
|
|
8
|
-
--color-secondary: #e2e2e2;
|
|
9
|
-
--color-tertiary: #921457;
|
|
10
|
-
--color-ink: #495863;
|
|
11
|
-
--color-transparent: transparent;
|
|
12
|
-
--color-white: #ffffff;
|
|
13
|
-
--color-black: #000000;
|
|
14
|
-
--color-red: #bb0a1e;
|
|
15
|
-
--color-grey: #2c373b;
|
|
16
|
-
--color-light-grey: #495c63;
|
|
17
|
-
--color-lightest-grey: #f5f5f5;
|
|
18
|
-
--color-primary-strict: #ff007d;
|
|
19
|
-
--color-border: #d0d0d0;
|
|
20
|
-
--color-border-lightest: #eeeeee;
|
|
21
|
-
--color-border-light: #d8d8d8;
|
|
22
|
-
--color-border-dark: #616161;
|
|
23
|
-
--color-error-light: #ffd9d9;
|
|
24
|
-
--color-success-light: #e7f5e7;
|
|
25
|
-
--color-facebook: #3b5999;
|
|
26
|
-
--color-whatsapp: #25d366;
|
|
27
|
-
--color-twitter: #55acee;
|
|
28
|
-
--color-linkedin: #0a66c2;
|
|
29
|
-
--color-email: #c71610;
|
|
30
|
-
--color-github: #171515;
|
|
31
|
-
--color-instagram: #8a3ab9;
|
|
32
|
-
--color-interactive-facebook: #2d4474;
|
|
33
|
-
--color-interactive-whatsapp: #25d566;
|
|
34
|
-
--color-interactive-twitter: #55acee;
|
|
35
|
-
--color-interactive-linkedin: #0a66c2;
|
|
36
|
-
--color-interactive-instagram: #6d2e92;
|
|
37
|
-
--color-interactive-email: #9f110c;
|
|
38
|
-
--color-interactive-github: #000000;
|
|
39
|
-
--color-gold: #e2b13c;
|
|
40
|
-
--color-error: #b11013;
|
|
41
|
-
--color-warning: #ffd35c;
|
|
42
|
-
--color-success: #69c364;
|
|
43
|
-
--color-info-light: #d8eaf5;
|
|
44
|
-
--color-linkedin: #0e76a8;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
5
|
@tailwind utilities;
|
|
48
6
|
|
|
49
7
|
@font-face {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
body {
|
|
2
|
+
--color-primary: #0036a0;
|
|
3
|
+
--color-secondary: #e2e2e2;
|
|
4
|
+
--color-tertiary: #921457;
|
|
5
|
+
--color-ink: #495863;
|
|
6
|
+
--color-transparent: transparent;
|
|
7
|
+
--color-white: #ffffff;
|
|
8
|
+
--color-black: #000000;
|
|
9
|
+
--color-red: #bb0a1e;
|
|
10
|
+
--color-grey: #2c373b;
|
|
11
|
+
--color-light-grey: #495c63;
|
|
12
|
+
--color-lightest-grey: #f5f5f5;
|
|
13
|
+
--color-primary-strict: #ff007d;
|
|
14
|
+
--color-border: #d0d0d0;
|
|
15
|
+
--color-border-lightest: #eeeeee;
|
|
16
|
+
--color-border-light: #d8d8d8;
|
|
17
|
+
--color-border-dark: #616161;
|
|
18
|
+
--color-error-light: #ffd9d9;
|
|
19
|
+
--color-success-light: #e7f5e7;
|
|
20
|
+
--color-facebook: #3b5999;
|
|
21
|
+
--color-whatsapp: #25d366;
|
|
22
|
+
--color-twitter: #55acee;
|
|
23
|
+
--color-linkedin: #0a66c2;
|
|
24
|
+
--color-email: #c71610;
|
|
25
|
+
--color-github: #171515;
|
|
26
|
+
--color-instagram: #8a3ab9;
|
|
27
|
+
--color-interactive-facebook: #2d4474;
|
|
28
|
+
--color-interactive-whatsapp: #25d566;
|
|
29
|
+
--color-interactive-twitter: #55acee;
|
|
30
|
+
--color-interactive-linkedin: #0a66c2;
|
|
31
|
+
--color-interactive-instagram: #6d2e92;
|
|
32
|
+
--color-interactive-email: #9f110c;
|
|
33
|
+
--color-interactive-github: #000000;
|
|
34
|
+
--color-gold: #e2b13c;
|
|
35
|
+
--color-error: #b11013;
|
|
36
|
+
--color-warning: #ffd35c;
|
|
37
|
+
--color-success: #69c364;
|
|
38
|
+
--color-info-light: #d8eaf5;
|
|
39
|
+
--color-linkedin: #0e76a8;
|
|
40
|
+
}
|
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ export interface Props {
|
|
|
8
8
|
items: any;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
const Accordion: React.FC<Props> = ({
|
|
11
|
+
export const Accordion: React.FC<Props> = ({
|
|
12
12
|
id,
|
|
13
13
|
className,
|
|
14
14
|
items,
|
|
@@ -26,5 +26,3 @@ const Accordion: React.FC<Props> = ({
|
|
|
26
26
|
</div>
|
|
27
27
|
);
|
|
28
28
|
};
|
|
29
|
-
|
|
30
|
-
export default Accordion;
|
|
@@ -15,7 +15,7 @@ export interface Props {
|
|
|
15
15
|
onDismissClick?: MouseEventHandler;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
const AlertBar = ({
|
|
18
|
+
export const AlertBar = ({
|
|
19
19
|
id,
|
|
20
20
|
className,
|
|
21
21
|
type = 'warning',
|
|
@@ -52,7 +52,7 @@ const AlertBar = ({
|
|
|
52
52
|
className,
|
|
53
53
|
bgColor,
|
|
54
54
|
alertBarState,
|
|
55
|
-
'flex py-2 text-white duration-700
|
|
55
|
+
'flex py-2 text-white duration-700 w-parent transition-opactiy',
|
|
56
56
|
);
|
|
57
57
|
|
|
58
58
|
const textClassList = classNames(
|
|
@@ -111,5 +111,3 @@ const AlertBar = ({
|
|
|
111
111
|
</div>
|
|
112
112
|
);
|
|
113
113
|
};
|
|
114
|
-
|
|
115
|
-
export default AlertBar;
|
package/src/components/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import Accordion from './Accordion';
|
|
2
|
-
import AlertBar from './AlertBar';
|
|
1
|
+
import { Accordion } from './Accordion';
|
|
2
|
+
import { AlertBar } from './AlertBar';
|
|
3
3
|
// import Breadcrumbs from '../../archive/Breadcrumbs';
|
|
4
4
|
// import BreadcrumbsBordered from '../../archive/BreadcrumbsBordered';
|
|
5
5
|
// import BreadcrumbsItem from '../../archive/BreadcrumbsItem';
|
|
@@ -60,9 +60,9 @@ import AlertBar from './AlertBar';
|
|
|
60
60
|
export {
|
|
61
61
|
Accordion,
|
|
62
62
|
AlertBar,
|
|
63
|
-
Breadcrumbs,
|
|
64
|
-
BreadcrumbsBordered,
|
|
65
|
-
BreadcrumbsItem,
|
|
63
|
+
// Breadcrumbs,
|
|
64
|
+
// BreadcrumbsBordered,
|
|
65
|
+
// BreadcrumbsItem,
|
|
66
66
|
// Button,
|
|
67
67
|
// Calendar,
|
|
68
68
|
// Card,
|
|
@@ -1,49 +1,7 @@
|
|
|
1
|
-
@import
|
|
1
|
+
@import './themes/local.css';
|
|
2
2
|
|
|
3
3
|
@tailwind base;
|
|
4
4
|
@tailwind components;
|
|
5
|
-
|
|
6
|
-
.theme-local {
|
|
7
|
-
--color-primary: #0036a0;
|
|
8
|
-
--color-secondary: #e2e2e2;
|
|
9
|
-
--color-tertiary: #921457;
|
|
10
|
-
--color-ink: #495863;
|
|
11
|
-
--color-transparent: transparent;
|
|
12
|
-
--color-white: #ffffff;
|
|
13
|
-
--color-black: #000000;
|
|
14
|
-
--color-red: #bb0a1e;
|
|
15
|
-
--color-grey: #2c373b;
|
|
16
|
-
--color-light-grey: #495c63;
|
|
17
|
-
--color-lightest-grey: #f5f5f5;
|
|
18
|
-
--color-primary-strict: #ff007d;
|
|
19
|
-
--color-border: #d0d0d0;
|
|
20
|
-
--color-border-lightest: #eeeeee;
|
|
21
|
-
--color-border-light: #d8d8d8;
|
|
22
|
-
--color-border-dark: #616161;
|
|
23
|
-
--color-error-light: #ffd9d9;
|
|
24
|
-
--color-success-light: #e7f5e7;
|
|
25
|
-
--color-facebook: #3b5999;
|
|
26
|
-
--color-whatsapp: #25d366;
|
|
27
|
-
--color-twitter: #55acee;
|
|
28
|
-
--color-linkedin: #0a66c2;
|
|
29
|
-
--color-email: #c71610;
|
|
30
|
-
--color-github: #171515;
|
|
31
|
-
--color-instagram: #8a3ab9;
|
|
32
|
-
--color-interactive-facebook: #2d4474;
|
|
33
|
-
--color-interactive-whatsapp: #25d566;
|
|
34
|
-
--color-interactive-twitter: #55acee;
|
|
35
|
-
--color-interactive-linkedin: #0a66c2;
|
|
36
|
-
--color-interactive-instagram: #6d2e92;
|
|
37
|
-
--color-interactive-email: #9f110c;
|
|
38
|
-
--color-interactive-github: #000000;
|
|
39
|
-
--color-gold: #e2b13c;
|
|
40
|
-
--color-error: #b11013;
|
|
41
|
-
--color-warning: #ffd35c;
|
|
42
|
-
--color-success: #69c364;
|
|
43
|
-
--color-info-light: #d8eaf5;
|
|
44
|
-
--color-linkedin: #0e76a8;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
5
|
@tailwind utilities;
|
|
48
6
|
|
|
49
7
|
@font-face {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
body {
|
|
2
|
+
--color-primary: #0036a0;
|
|
3
|
+
--color-secondary: #e2e2e2;
|
|
4
|
+
--color-tertiary: #921457;
|
|
5
|
+
--color-ink: #495863;
|
|
6
|
+
--color-transparent: transparent;
|
|
7
|
+
--color-white: #ffffff;
|
|
8
|
+
--color-black: #000000;
|
|
9
|
+
--color-red: #bb0a1e;
|
|
10
|
+
--color-grey: #2c373b;
|
|
11
|
+
--color-light-grey: #495c63;
|
|
12
|
+
--color-lightest-grey: #f5f5f5;
|
|
13
|
+
--color-primary-strict: #ff007d;
|
|
14
|
+
--color-border: #d0d0d0;
|
|
15
|
+
--color-border-lightest: #eeeeee;
|
|
16
|
+
--color-border-light: #d8d8d8;
|
|
17
|
+
--color-border-dark: #616161;
|
|
18
|
+
--color-error-light: #ffd9d9;
|
|
19
|
+
--color-success-light: #e7f5e7;
|
|
20
|
+
--color-facebook: #3b5999;
|
|
21
|
+
--color-whatsapp: #25d366;
|
|
22
|
+
--color-twitter: #55acee;
|
|
23
|
+
--color-linkedin: #0a66c2;
|
|
24
|
+
--color-email: #c71610;
|
|
25
|
+
--color-github: #171515;
|
|
26
|
+
--color-instagram: #8a3ab9;
|
|
27
|
+
--color-interactive-facebook: #2d4474;
|
|
28
|
+
--color-interactive-whatsapp: #25d566;
|
|
29
|
+
--color-interactive-twitter: #55acee;
|
|
30
|
+
--color-interactive-linkedin: #0a66c2;
|
|
31
|
+
--color-interactive-instagram: #6d2e92;
|
|
32
|
+
--color-interactive-email: #9f110c;
|
|
33
|
+
--color-interactive-github: #000000;
|
|
34
|
+
--color-gold: #e2b13c;
|
|
35
|
+
--color-error: #b11013;
|
|
36
|
+
--color-warning: #ffd35c;
|
|
37
|
+
--color-success: #69c364;
|
|
38
|
+
--color-info-light: #d8eaf5;
|
|
39
|
+
--color-linkedin: #0e76a8;
|
|
40
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
".storybook/docs",
|
|
33
33
|
"tailwind.config.ts",
|
|
34
34
|
"tailwind"
|
|
35
|
-
, "archive/Video", "archive/BreadcrumbsItem", "archive/BreadcrumbsBordered", "archive/Breadcrumbs", "archive/typography" ],
|
|
35
|
+
, "archive/Video", "archive/BreadcrumbsItem", "archive/BreadcrumbsBordered", "archive/Breadcrumbs", "archive/typography", "archive/theme.ts" ],
|
|
36
36
|
"files": ["svg.d.ts"],
|
|
37
37
|
"exclude": ["node_modules", "lib"],
|
|
38
38
|
"references": [
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
var _a, _b, _c;
|
|
2
|
-
import { j as jsxRuntimeExports } from "./jsx-runtime-D2-sc1j1.js";
|
|
3
|
-
import { i as idAndClassName } from "./controls-DJSGrQKd.js";
|
|
4
|
-
import { c as classNames } from "./index-CpyNLP69.js";
|
|
5
|
-
import "./index-DM9bPmif.js";
|
|
6
|
-
import "./_commonjsHelpers-LQfde5yM.js";
|
|
7
|
-
const Accordion = ({
|
|
8
|
-
id,
|
|
9
|
-
className,
|
|
10
|
-
items
|
|
11
|
-
}) => {
|
|
12
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { id, className: classNames(className, "theme-local"), children: items == null ? void 0 : items.map((item, i) => {
|
|
13
|
-
return (
|
|
14
|
-
// <Collapsible key={`collapsible_item_${i}`} {...item}>
|
|
15
|
-
// {item.children}
|
|
16
|
-
// </Collapsible>
|
|
17
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx("div", {})
|
|
18
|
-
);
|
|
19
|
-
}) });
|
|
20
|
-
};
|
|
21
|
-
try {
|
|
22
|
-
Accordion.displayName = "Accordion";
|
|
23
|
-
Accordion.__docgenInfo = { "description": "", "displayName": "Accordion", "props": { "id": { "defaultValue": null, "description": "", "name": "id", "required": false, "type": { "name": "string" } }, "className": { "defaultValue": null, "description": "", "name": "className", "required": false, "type": { "name": "string" } }, "items": { "defaultValue": null, "description": "", "name": "items", "required": true, "type": { "name": "any" } } } };
|
|
24
|
-
} catch (__react_docgen_typescript_loader_error) {
|
|
25
|
-
}
|
|
26
|
-
const propItems = [{
|
|
27
|
-
preText: "This is some text",
|
|
28
|
-
title: "This is a title",
|
|
29
|
-
subtitle: "This is a subtitle",
|
|
30
|
-
imageProps: {
|
|
31
|
-
src: "https://picsum.photos/100/100"
|
|
32
|
-
},
|
|
33
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
34
|
-
children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu."
|
|
35
|
-
})
|
|
36
|
-
}, {
|
|
37
|
-
preText: "Lorem, ipsum dolor sit amet consectetur adipisicing elit. Repellendus nihil, molestias amet sed, corrupti debitis odit doloribus perspiciatis est, quasi illum culpa iusto. Molestias, ducimus. Provident, quibusdam fuga. Voluptatem, saepe.",
|
|
38
|
-
title: "This is a title",
|
|
39
|
-
imageProps: {
|
|
40
|
-
src: "https://picsum.photos/101/100"
|
|
41
|
-
},
|
|
42
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
43
|
-
children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu."
|
|
44
|
-
})
|
|
45
|
-
}, {
|
|
46
|
-
subtitle: "This is a subtitle",
|
|
47
|
-
imageProps: {
|
|
48
|
-
src: "https://picsum.photos/100/101"
|
|
49
|
-
},
|
|
50
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
51
|
-
children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu."
|
|
52
|
-
})
|
|
53
|
-
}, {
|
|
54
|
-
imageProps: {
|
|
55
|
-
src: "https://picsum.photos/102/100"
|
|
56
|
-
},
|
|
57
|
-
children: /* @__PURE__ */ jsxRuntimeExports.jsx("p", {
|
|
58
|
-
children: "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam semper in neque in venenatis. Mauris scelerisque orci magna, et ultricies nulla lobortis ac. Aliquam vitae faucibus nisl. Nunc in tellus libero. Donec ut augue consequat, convallis risus in, pulvinar nibh. Duis mi nibh, posuere molestie pharetra cursus, viverra ut dolor. Vivamus eget arcu dui. Donec ullamcorper ornare justo sed feugiat. Curabitur aliquam lectus sed quam pharetra scelerisque. Integer vitae eleifend dolor. Duis luctus metus ipsum, et commodo magna bibendum quis. Quisque gravida leo sodales quam feugiat, id vulputate arcu pulvinar. Duis dictum gravida risus, et bibendum nunc condimentum eu."
|
|
59
|
-
})
|
|
60
|
-
}];
|
|
61
|
-
const meta = {
|
|
62
|
-
title: "Components/Accordion",
|
|
63
|
-
component: Accordion,
|
|
64
|
-
argTypes: {
|
|
65
|
-
...idAndClassName,
|
|
66
|
-
items: {
|
|
67
|
-
description: "An array of collapsible props",
|
|
68
|
-
control: {
|
|
69
|
-
type: "array",
|
|
70
|
-
default: void 0
|
|
71
|
-
},
|
|
72
|
-
table: {
|
|
73
|
-
category: "Accordion",
|
|
74
|
-
type: {
|
|
75
|
-
summary: "array"
|
|
76
|
-
},
|
|
77
|
-
defaultValue: {
|
|
78
|
-
summary: "undefined"
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
args: {
|
|
84
|
-
items: propItems
|
|
85
|
-
}
|
|
86
|
-
};
|
|
87
|
-
const Default = {};
|
|
88
|
-
Default.parameters = {
|
|
89
|
-
...Default.parameters,
|
|
90
|
-
docs: {
|
|
91
|
-
...(_a = Default.parameters) == null ? void 0 : _a.docs,
|
|
92
|
-
source: {
|
|
93
|
-
originalSource: "{}",
|
|
94
|
-
...(_c = (_b = Default.parameters) == null ? void 0 : _b.docs) == null ? void 0 : _c.source
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
const __namedExportsOrder = ["Default"];
|
|
99
|
-
export {
|
|
100
|
-
Default,
|
|
101
|
-
__namedExportsOrder,
|
|
102
|
-
meta as default
|
|
103
|
-
};
|