@c-rex/components 0.0.1 → 0.0.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.
Files changed (116) hide show
  1. package/README.md +74 -0
  2. package/dist/components/src/autocomplete.d.ts +8 -0
  3. package/dist/components/src/autocomplete.d.ts.map +1 -0
  4. package/dist/components/src/autocomplete.js +36 -0
  5. package/dist/components/src/blog-card.d.ts +17 -0
  6. package/dist/components/src/blog-card.d.ts.map +1 -0
  7. package/dist/components/src/blog-card.js +16 -0
  8. package/dist/components/src/blur-image.d.ts +4 -0
  9. package/dist/components/src/blur-image.d.ts.map +1 -0
  10. package/dist/components/src/blur-image.js +16 -0
  11. package/dist/components/src/breadcrumb.d.ts +9 -0
  12. package/dist/components/src/breadcrumb.d.ts.map +1 -0
  13. package/dist/components/src/breadcrumb.js +33 -0
  14. package/dist/components/src/empty.d.ts +3 -0
  15. package/dist/components/src/empty.d.ts.map +1 -0
  16. package/dist/components/src/empty.js +9 -0
  17. package/dist/components/src/navbar.d.ts +8 -0
  18. package/dist/components/src/navbar.d.ts.map +1 -0
  19. package/dist/components/src/navbar.js +14 -0
  20. package/dist/components/src/providers/search-state-wrapper.d.ts +13 -0
  21. package/dist/components/src/providers/search-state-wrapper.d.ts.map +1 -0
  22. package/dist/components/src/providers/search-state-wrapper.js +10 -0
  23. package/dist/components/src/result-list.d.ts +8 -0
  24. package/dist/components/src/result-list.d.ts.map +1 -0
  25. package/dist/components/src/result-list.js +16 -0
  26. package/dist/components/src/result-view/blog-view.stories.d.ts +7 -0
  27. package/dist/components/src/result-view/blog-view.stories.d.ts.map +1 -0
  28. package/dist/components/src/result-view/blog-view.stories.js +58 -0
  29. package/dist/components/src/result-view/blog.d.ts +8 -0
  30. package/dist/components/src/result-view/blog.d.ts.map +1 -0
  31. package/dist/components/src/result-view/blog.js +22 -0
  32. package/dist/components/src/result-view/table-view.stories.d.ts +7 -0
  33. package/dist/components/src/result-view/table-view.stories.d.ts.map +1 -0
  34. package/dist/components/src/result-view/table-view.stories.js +55 -0
  35. package/dist/components/src/result-view/table.d.ts +8 -0
  36. package/dist/components/src/result-view/table.d.ts.map +1 -0
  37. package/dist/components/src/result-view/table.js +26 -0
  38. package/dist/components/src/sidebar.d.ts +10 -0
  39. package/dist/components/src/sidebar.d.ts.map +1 -0
  40. package/dist/components/src/sidebar.js +10 -0
  41. package/dist/components/src/stories/blog-card.stories.d.ts +7 -0
  42. package/dist/components/src/stories/blog-card.stories.d.ts.map +1 -0
  43. package/dist/components/src/stories/blog-card.stories.js +42 -0
  44. package/dist/components/src/stories/blur-image.stories.d.ts +32 -0
  45. package/dist/components/src/stories/blur-image.stories.d.ts.map +1 -0
  46. package/dist/components/src/stories/blur-image.stories.js +47 -0
  47. package/dist/components/src/stories/breadcrumb.stories.d.ts +7 -0
  48. package/dist/components/src/stories/breadcrumb.stories.d.ts.map +1 -0
  49. package/dist/components/src/stories/breadcrumb.stories.js +48 -0
  50. package/dist/components/src/stories/empty.stories.d.ts +10 -0
  51. package/dist/components/src/stories/empty.stories.d.ts.map +1 -0
  52. package/dist/components/src/stories/empty.stories.js +11 -0
  53. package/dist/components/src/stories/navbar.stories.d.ts +6 -0
  54. package/dist/components/src/stories/navbar.stories.d.ts.map +1 -0
  55. package/dist/components/src/stories/navbar.stories.js +14 -0
  56. package/dist/components/src/stories/sidebar.stories.d.ts +24 -0
  57. package/dist/components/src/stories/sidebar.stories.d.ts.map +1 -0
  58. package/dist/components/src/stories/sidebar.stories.js +80 -0
  59. package/dist/components/tailwind.config.d.ts +2 -0
  60. package/dist/components/tailwind.config.d.ts.map +1 -0
  61. package/dist/components/tailwind.config.js +15 -0
  62. package/dist/config/src/index.d.ts +4 -0
  63. package/dist/config/src/index.d.ts.map +1 -0
  64. package/dist/config/src/index.js +67 -0
  65. package/dist/constants/src/index.d.ts +17 -0
  66. package/dist/constants/src/index.d.ts.map +1 -0
  67. package/dist/constants/src/index.js +30 -0
  68. package/dist/contexts/src/index.d.ts +15 -0
  69. package/dist/contexts/src/index.d.ts.map +1 -0
  70. package/dist/contexts/src/index.js +18 -0
  71. package/dist/interfaces/src/common.d.ts +36 -0
  72. package/dist/interfaces/src/common.d.ts.map +1 -0
  73. package/dist/interfaces/src/common.js +2 -0
  74. package/dist/interfaces/src/config.d.ts +26 -0
  75. package/dist/interfaces/src/config.d.ts.map +1 -0
  76. package/dist/interfaces/src/config.js +2 -0
  77. package/dist/interfaces/src/directoryNodes.d.ts +8 -0
  78. package/dist/interfaces/src/directoryNodes.d.ts.map +1 -0
  79. package/dist/interfaces/src/directoryNodes.js +2 -0
  80. package/dist/interfaces/src/documentTypes.d.ts +7 -0
  81. package/dist/interfaces/src/documentTypes.d.ts.map +1 -0
  82. package/dist/interfaces/src/documentTypes.js +2 -0
  83. package/dist/interfaces/src/index.d.ts +7 -0
  84. package/dist/interfaces/src/index.d.ts.map +1 -0
  85. package/dist/interfaces/src/index.js +22 -0
  86. package/dist/interfaces/src/informationUnits.d.ts +53 -0
  87. package/dist/interfaces/src/informationUnits.d.ts.map +1 -0
  88. package/dist/interfaces/src/informationUnits.js +2 -0
  89. package/dist/interfaces/src/treeOfContent.d.ts +8 -0
  90. package/dist/interfaces/src/treeOfContent.d.ts.map +1 -0
  91. package/dist/interfaces/src/treeOfContent.js +2 -0
  92. package/dist/types/src/index.d.ts +8 -0
  93. package/dist/types/src/index.d.ts.map +1 -0
  94. package/dist/types/src/index.js +2 -0
  95. package/dist/utils/src/breadcrumbs.d.ts +3 -0
  96. package/dist/utils/src/breadcrumbs.d.ts.map +1 -0
  97. package/dist/utils/src/breadcrumbs.js +14 -0
  98. package/dist/utils/src/classMerge.d.ts +3 -0
  99. package/dist/utils/src/classMerge.d.ts.map +1 -0
  100. package/dist/utils/src/classMerge.js +8 -0
  101. package/dist/utils/src/index.d.ts +5 -0
  102. package/dist/utils/src/index.d.ts.map +1 -0
  103. package/dist/utils/src/index.js +20 -0
  104. package/dist/utils/src/treeOfContent.d.ts +2 -0
  105. package/dist/utils/src/treeOfContent.d.ts.map +1 -0
  106. package/dist/utils/src/treeOfContent.js +85 -0
  107. package/dist/utils/src/utils.d.ts +8 -0
  108. package/dist/utils/src/utils.d.ts.map +1 -0
  109. package/dist/utils/src/utils.js +37 -0
  110. package/package.json +102 -42
  111. package/dist/index.d.mts +0 -68
  112. package/dist/index.d.ts +0 -68
  113. package/dist/index.js +0 -2919
  114. package/dist/index.js.map +0 -1
  115. package/dist/index.mjs +0 -2910
  116. package/dist/index.mjs.map +0 -1
@@ -0,0 +1,42 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WithPriority = exports.Horizontal = void 0;
4
+ const blog_card_1 = require("../blog-card");
5
+ const meta = {
6
+ title: 'Components/BlogCard',
7
+ component: blog_card_1.BlogCard,
8
+ tags: ['autodocs',],
9
+ parameters: {
10
+ layout: 'centered',
11
+ },
12
+ argTypes: {
13
+ data: { control: 'object', description: 'The data to be displayed in the card' },
14
+ priority: { control: 'boolean', description: 'Whether the image should be prioritized', type: 'boolean' },
15
+ horizontal: { control: 'boolean' },
16
+ },
17
+ };
18
+ exports.default = meta;
19
+ const mockBlogData = {
20
+ title: 'Getting Started with C-Rex Components',
21
+ blurDataURL: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mP8z8BQDwAEhQGAhKmMIQAAAABJRU5ErkJggg==',
22
+ image: 'https://images.pexels.com/photos/31712301/pexels-photo-31712301/free-photo-of-scenic-cycling-tour-in-andernach-fields.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1',
23
+ description: 'Learn how to use C-Rex components to build modern web applications with React and Next.js.',
24
+ authors: 'John Doe',
25
+ _id: '1',
26
+ date: '2023-05-15',
27
+ slug: 'getting-started-with-c-rex-components',
28
+ };
29
+ exports.Horizontal = {
30
+ args: {
31
+ data: mockBlogData,
32
+ priority: false,
33
+ horizontal: true,
34
+ },
35
+ };
36
+ exports.WithPriority = {
37
+ args: {
38
+ data: mockBlogData,
39
+ priority: true,
40
+ horizontal: false,
41
+ },
42
+ };
@@ -0,0 +1,32 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: (props: import("react").ComponentProps<typeof import("next/image").default>) => import("react/jsx-runtime").JSX.Element;
5
+ tags: string[];
6
+ parameters: {
7
+ layout: string;
8
+ };
9
+ argTypes: {
10
+ src: {
11
+ control: "text";
12
+ };
13
+ alt: {
14
+ control: "text";
15
+ };
16
+ width: {
17
+ control: "number";
18
+ };
19
+ height: {
20
+ control: "number";
21
+ };
22
+ className: {
23
+ control: "text";
24
+ };
25
+ };
26
+ };
27
+ export default meta;
28
+ type Story = StoryObj<typeof meta>;
29
+ export declare const Default: Story;
30
+ export declare const SmallImage: Story;
31
+ export declare const RoundedImage: Story;
32
+ //# sourceMappingURL=blur-image.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blur-image.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/blur-image.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;CAcwB,CAAC;AAEnC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAQrB,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAQxB,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,KAQ1B,CAAC"}
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RoundedImage = exports.SmallImage = exports.Default = void 0;
4
+ const blur_image_1 = require("../blur-image");
5
+ const meta = {
6
+ title: 'Components/BlurImage',
7
+ component: blur_image_1.BlurImage,
8
+ tags: ['autodocs'],
9
+ parameters: {
10
+ layout: 'centered',
11
+ },
12
+ argTypes: {
13
+ src: { control: 'text' },
14
+ alt: { control: 'text' },
15
+ width: { control: 'number' },
16
+ height: { control: 'number' },
17
+ className: { control: 'text' },
18
+ },
19
+ };
20
+ exports.default = meta;
21
+ exports.Default = {
22
+ args: {
23
+ src: 'https://images.pexels.com/photos/31712301/pexels-photo-31712301/free-photo-of-scenic-cycling-tour-in-andernach-fields.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1',
24
+ alt: 'Sample image with blur effect',
25
+ width: 400,
26
+ height: 300,
27
+ className: 'rounded-lg',
28
+ },
29
+ };
30
+ exports.SmallImage = {
31
+ args: {
32
+ src: 'https://images.pexels.com/photos/31712301/pexels-photo-31712301/free-photo-of-scenic-cycling-tour-in-andernach-fields.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1',
33
+ alt: 'Small sample image with blur effect',
34
+ width: 200,
35
+ height: 150,
36
+ className: 'rounded-lg',
37
+ },
38
+ };
39
+ exports.RoundedImage = {
40
+ args: {
41
+ src: 'https://images.pexels.com/photos/31712301/pexels-photo-31712301/free-photo-of-scenic-cycling-tour-in-andernach-fields.jpeg?auto=compress&cs=tinysrgb&w=1260&h=750&dpr=1',
42
+ alt: 'Rounded sample image with blur effect',
43
+ width: 300,
44
+ height: 300,
45
+ className: 'rounded-full',
46
+ },
47
+ };
@@ -0,0 +1,7 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ type Story = StoryObj<typeof meta>;
5
+ export declare const Default: Story;
6
+ export declare const Loading: Story;
7
+ //# sourceMappingURL=breadcrumb.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"breadcrumb.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/breadcrumb.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI,EAAE,IAOI,CAAC;AAEjB,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AA0BnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Loading = exports.Default = void 0;
4
+ const breadcrumb_1 = require("../breadcrumb");
5
+ const meta = {
6
+ title: 'Components/Breadcrumb',
7
+ component: breadcrumb_1.Breadcrumb,
8
+ tags: ['autodocs'],
9
+ parameters: {
10
+ layout: 'centered',
11
+ }
12
+ };
13
+ exports.default = meta;
14
+ const mockItems = [
15
+ {
16
+ id: 'docs',
17
+ label: 'Documentation',
18
+ link: '/docs',
19
+ active: false,
20
+ children: [],
21
+ },
22
+ {
23
+ id: 'components',
24
+ label: 'Components',
25
+ link: '/docs/components',
26
+ active: false,
27
+ children: [],
28
+ },
29
+ {
30
+ id: 'breadcrumb',
31
+ label: 'Breadcrumb',
32
+ link: '/docs/components/breadcrumb',
33
+ active: true,
34
+ children: [],
35
+ },
36
+ ];
37
+ exports.Default = {
38
+ args: {
39
+ items: mockItems,
40
+ loading: false,
41
+ },
42
+ };
43
+ exports.Loading = {
44
+ args: {
45
+ items: [],
46
+ loading: true,
47
+ },
48
+ };
@@ -0,0 +1,10 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: import("react").FC;
5
+ tags: string[];
6
+ };
7
+ export default meta;
8
+ type Story = StoryObj<typeof meta>;
9
+ export declare const Default: Story;
10
+ //# sourceMappingURL=empty.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"empty.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/empty.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI;;;;CAIoB,CAAC;AAE/B,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KACrB,CAAC"}
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Default = void 0;
4
+ const empty_1 = require("../empty");
5
+ const meta = {
6
+ title: 'Components/Empty',
7
+ component: empty_1.Empty,
8
+ tags: ['autodocs'],
9
+ };
10
+ exports.default = meta;
11
+ exports.Default = {};
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ declare const meta: Meta;
3
+ export default meta;
4
+ type Story = StoryObj<typeof meta>;
5
+ export declare const Default: Story;
6
+ //# sourceMappingURL=navbar.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navbar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/navbar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,QAAA,MAAM,IAAI,EAAE,IAOmB,CAAC;AAEhC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAA"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Default = void 0;
4
+ const navbar_1 = require("../navbar");
5
+ const meta = {
6
+ title: 'Components/NavBar',
7
+ component: navbar_1.NavBar,
8
+ tags: ['autodocs'],
9
+ parameters: {
10
+ layout: 'padded',
11
+ },
12
+ };
13
+ exports.default = meta;
14
+ exports.Default = {};
@@ -0,0 +1,24 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { AppSidebar } from '../sidebar';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof AppSidebar;
6
+ tags: string[];
7
+ parameters: {
8
+ layout: string;
9
+ };
10
+ argTypes: {
11
+ data: {
12
+ control: "object";
13
+ };
14
+ loading: {
15
+ control: "boolean";
16
+ };
17
+ };
18
+ decorators: ((Story: any) => import("react/jsx-runtime").JSX.Element)[];
19
+ };
20
+ export default meta;
21
+ type Story = StoryObj<typeof meta>;
22
+ export declare const Default: Story;
23
+ export declare const Loading: Story;
24
+ //# sourceMappingURL=sidebar.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sidebar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/sidebar.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxC,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;yBAYM,GAAG;CAagB,CAAC;AAEpC,eAAe,IAAI,CAAC;AACpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAiDnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC;AAEF,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Loading = exports.Default = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const sidebar_1 = require("../sidebar");
6
+ const sidebar_2 = require("@c-rex/ui/sidebar");
7
+ const meta = {
8
+ title: 'Components/Sidebar',
9
+ component: sidebar_1.AppSidebar,
10
+ tags: ['autodocs'],
11
+ parameters: {
12
+ layout: 'centered',
13
+ },
14
+ argTypes: {
15
+ data: { control: 'object' },
16
+ loading: { control: 'boolean' },
17
+ },
18
+ decorators: [
19
+ (Story) => ((0, jsx_runtime_1.jsxs)(sidebar_2.SidebarProvider, { children: [(0, jsx_runtime_1.jsx)(sidebar_2.SidebarTrigger, {}), (0, jsx_runtime_1.jsx)("div", { className: "flex", children: (0, jsx_runtime_1.jsx)(sidebar_2.SidebarInset, { children: (0, jsx_runtime_1.jsx)(Story, {}) }) })] })),
20
+ ]
21
+ };
22
+ exports.default = meta;
23
+ const mockData = [
24
+ {
25
+ id: '1',
26
+ label: 'Getting Started',
27
+ link: '/docs/getting-started',
28
+ active: true,
29
+ children: [
30
+ {
31
+ id: '1-1',
32
+ label: 'Installation',
33
+ link: '/docs/getting-started/installation',
34
+ active: false,
35
+ children: [],
36
+ },
37
+ {
38
+ id: '1-2',
39
+ label: 'Configuration',
40
+ link: '/docs/getting-started/configuration',
41
+ active: false,
42
+ children: [],
43
+ },
44
+ ],
45
+ },
46
+ {
47
+ id: '2',
48
+ label: 'Components',
49
+ link: '/docs/components',
50
+ active: false,
51
+ children: [
52
+ {
53
+ id: '2-1',
54
+ label: 'Sidebar',
55
+ link: '/docs/components/sidebar',
56
+ active: false,
57
+ children: [],
58
+ },
59
+ {
60
+ id: '2-2',
61
+ label: 'Navbar',
62
+ link: '/docs/components/navbar',
63
+ active: false,
64
+ children: [],
65
+ },
66
+ ],
67
+ },
68
+ ];
69
+ exports.Default = {
70
+ args: {
71
+ data: mockData,
72
+ loading: false,
73
+ },
74
+ };
75
+ exports.Loading = {
76
+ args: {
77
+ data: [],
78
+ loading: true,
79
+ },
80
+ };
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=tailwind.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tailwind.config.d.ts","sourceRoot":"","sources":["../../tailwind.config.ts"],"names":[],"mappings":""}
@@ -0,0 +1,15 @@
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
+ const config_1 = __importDefault(require("@c-rex/config"));
7
+ module.exports = {
8
+ content: [
9
+ './src/**/*.{js,ts,jsx,tsx}',
10
+ './.storybook/**/*.{js,ts,jsx,tsx}',
11
+ '../../packages/ui/src/**/*.{js,ts,jsx,tsx}',
12
+ ],
13
+ ...config_1.default,
14
+ //safelist: ['animate-pulse'],
15
+ };
@@ -0,0 +1,4 @@
1
+ import type { Config } from "tailwindcss";
2
+ declare const tailwindPreset: Omit<Config, "content">;
3
+ export default tailwindPreset;
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../config/src/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,QAAA,MAAM,cAAc,EAAE,IAAI,CAAC,MAAM,EAAE,SAAS,CA+D3C,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tailwindPreset = {
4
+ plugins: [require("tailwindcss-animate")],
5
+ theme: {
6
+ extend: {
7
+ borderRadius: {
8
+ lg: "var(--radius)",
9
+ md: "calc(var(--radius) - 2px)",
10
+ sm: "calc(var(--radius) - 4px)",
11
+ },
12
+ colors: {
13
+ background: "hsl(var(--background))",
14
+ foreground: "hsl(var(--foreground))",
15
+ card: {
16
+ DEFAULT: "hsl(var(--card))",
17
+ foreground: "hsl(var(--card-foreground))",
18
+ },
19
+ popover: {
20
+ DEFAULT: "hsl(var(--popover))",
21
+ foreground: "hsl(var(--popover-foreground))",
22
+ },
23
+ primary: {
24
+ DEFAULT: "hsl(var(--primary))",
25
+ foreground: "hsl(var(--primary-foreground))",
26
+ },
27
+ secondary: {
28
+ DEFAULT: "hsl(var(--secondary))",
29
+ foreground: "hsl(var(--secondary-foreground))",
30
+ },
31
+ muted: {
32
+ DEFAULT: "hsl(var(--muted))",
33
+ foreground: "hsl(var(--muted-foreground))",
34
+ },
35
+ accent: {
36
+ DEFAULT: "hsl(var(--accent))",
37
+ foreground: "hsl(var(--accent-foreground))",
38
+ },
39
+ destructive: {
40
+ DEFAULT: "hsl(var(--destructive))",
41
+ foreground: "hsl(var(--destructive-foreground))",
42
+ },
43
+ border: "hsl(var(--border))",
44
+ input: "hsl(var(--input))",
45
+ ring: "hsl(var(--ring))",
46
+ chart: {
47
+ "1": "hsl(var(--chart-1))",
48
+ "2": "hsl(var(--chart-2))",
49
+ "3": "hsl(var(--chart-3))",
50
+ "4": "hsl(var(--chart-4))",
51
+ "5": "hsl(var(--chart-5))",
52
+ },
53
+ sidebar: {
54
+ DEFAULT: "hsl(var(--sidebar-background))",
55
+ foreground: "hsl(var(--sidebar-foreground))",
56
+ primary: "hsl(var(--sidebar-primary))",
57
+ "primary-foreground": "hsl(var(--sidebar-primary-foreground))",
58
+ accent: "hsl(var(--sidebar-accent))",
59
+ "accent-foreground": "hsl(var(--sidebar-accent-foreground))",
60
+ border: "hsl(var(--sidebar-border))",
61
+ ring: "hsl(var(--sidebar-ring))",
62
+ },
63
+ },
64
+ },
65
+ },
66
+ };
67
+ exports.default = tailwindPreset;
@@ -0,0 +1,17 @@
1
+ export declare const ALL = "*";
2
+ export declare const LOG_CATEGORIES: readonly ["NoLicense", "Scenario", "Favorites", "Subscription", "Share", "Document", "Search", "History", "Notification", "UserProfile"];
3
+ export declare const LOG_LEVELS: {
4
+ readonly critical: 2;
5
+ readonly error: 3;
6
+ readonly warning: 4;
7
+ readonly info: 6;
8
+ readonly debug: 7;
9
+ };
10
+ export declare const API: {
11
+ MAX_RETRY: number;
12
+ API_TIMEOUT: number;
13
+ API_HEADERS: {
14
+ "content-Type": string;
15
+ };
16
+ };
17
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../constants/src/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,GAAG,MAAM,CAAA;AAEtB,eAAO,MAAM,cAAc,0IAWjB,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC;AAEX,eAAO,MAAM,GAAG;;;;;;CAMf,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.API = exports.LOG_LEVELS = exports.LOG_CATEGORIES = exports.ALL = void 0;
4
+ exports.ALL = "*";
5
+ exports.LOG_CATEGORIES = [
6
+ "NoLicense",
7
+ "Scenario",
8
+ "Favorites",
9
+ "Subscription",
10
+ "Share",
11
+ "Document",
12
+ "Search",
13
+ "History",
14
+ "Notification",
15
+ "UserProfile",
16
+ ];
17
+ exports.LOG_LEVELS = {
18
+ critical: 2,
19
+ error: 3,
20
+ warning: 4,
21
+ info: 6,
22
+ debug: 7,
23
+ };
24
+ exports.API = {
25
+ MAX_RETRY: 3,
26
+ API_TIMEOUT: 10000,
27
+ API_HEADERS: {
28
+ "content-Type": "application/json",
29
+ },
30
+ };
@@ -0,0 +1,15 @@
1
+ import { FC, ReactNode } from "react";
2
+ interface SearchContextProps {
3
+ searchValue: string | null;
4
+ page: number;
5
+ selectedLanguage: string[];
6
+ availableLanguages: string[];
7
+ }
8
+ export declare const useSearchContext: () => SearchContextProps;
9
+ interface SearchProviderProps {
10
+ children: ReactNode;
11
+ value: SearchContextProps;
12
+ }
13
+ export declare const SearchProvider: FC<SearchProviderProps>;
14
+ export {};
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../contexts/src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEjE,UAAU,kBAAkB;IACxB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,kBAAkB,EAAE,MAAM,EAAE,CAAC;CAChC;AAID,eAAO,MAAM,gBAAgB,0BAM5B,CAAC;AAEF,UAAU,mBAAmB;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,KAAK,EAAE,kBAAkB,CAAC;CAC7B;AAED,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,mBAAmB,CAOlD,CAAC"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.SearchProvider = exports.useSearchContext = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const SearchContext = (0, react_1.createContext)(undefined);
7
+ const useSearchContext = () => {
8
+ const context = (0, react_1.useContext)(SearchContext);
9
+ if (!context) {
10
+ throw new Error("useSearchContext must be used within a SearchProvider");
11
+ }
12
+ return context;
13
+ };
14
+ exports.useSearchContext = useSearchContext;
15
+ const SearchProvider = ({ children, value, }) => {
16
+ return ((0, jsx_runtime_1.jsx)(SearchContext.Provider, { value: value, children: children }));
17
+ };
18
+ exports.SearchProvider = SearchProvider;
@@ -0,0 +1,36 @@
1
+ export interface DefaultPageInfo {
2
+ pageNumber: number;
3
+ pageSize: number;
4
+ pageCount: number;
5
+ totalItemCount: number;
6
+ firstItemOnPage: number;
7
+ lastItemOnPage: number;
8
+ hasPreviousPage: boolean;
9
+ hasNextPage: boolean;
10
+ isFirstPage: boolean;
11
+ isLastPage: boolean;
12
+ }
13
+ export interface idShortID {
14
+ id: string;
15
+ shortId: string;
16
+ }
17
+ export interface Labels {
18
+ language: string;
19
+ value: string;
20
+ }
21
+ export interface DefaultLinksRequest {
22
+ rel: string;
23
+ href: string;
24
+ method: string;
25
+ }
26
+ export interface DefaultRequest<T> {
27
+ items: T[];
28
+ links: DefaultLinksRequest[];
29
+ pageInfo: DefaultPageInfo;
30
+ }
31
+ export interface Filters {
32
+ key: string;
33
+ value: string;
34
+ operator?: string;
35
+ }
36
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../interfaces/src/common.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAElB,cAAc,EAAE,MAAM,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IAEvB,eAAe,EAAE,OAAO,CAAC;IACzB,WAAW,EAAE,OAAO,CAAC;IAErB,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;CACjB;AACD,MAAM,WAAW,MAAM;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B,QAAQ,EAAE,eAAe,CAAC;CAC3B;AAED,MAAM,WAAW,OAAO;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ import { Filters } from "./common";
2
+ import { LogCategoriesType, LogLevelType } from "@c-rex/types";
3
+ export interface logInfo {
4
+ silent: boolean;
5
+ minimumLevel: LogLevelType;
6
+ categoriesLevel: LogCategoriesType[];
7
+ url: string;
8
+ app: string;
9
+ }
10
+ export interface ConfigInterface {
11
+ projectName: string;
12
+ baseUrl: string;
13
+ search: {
14
+ fields: string[];
15
+ tags: string[];
16
+ restrict?: Filters[];
17
+ filter?: Filters[];
18
+ sparqlWhere?: string;
19
+ };
20
+ logs: {
21
+ console: logInfo;
22
+ graylog: logInfo;
23
+ matomo: logInfo;
24
+ };
25
+ }
26
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../interfaces/src/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAE/D,MAAM,WAAW,OAAO;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,YAAY,CAAC;IAC3B,eAAe,EAAE,iBAAiB,EAAE,CAAC;IACrC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE;QAEJ,MAAM,EAAE,MAAM,EAAE,CAAC;QACjB,IAAI,EAAE,MAAM,EAAE,CAAC;QACf,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;QACrB,MAAM,CAAC,EAAE,OAAO,EAAE,CAAC;QACnB,WAAW,CAAC,EAAE,MAAM,CAAC;KACxB,CAAC;IAEF,IAAI,EAAE;QACF,OAAO,EAAE,OAAO,CAAC;QACjB,OAAO,EAAE,OAAO,CAAC;QACjB,MAAM,EAAE,OAAO,CAAC;KACnB,CAAC;CACL"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { idShortID } from "./common";
2
+ import { informationUnitsDirectories } from "./informationUnits";
3
+ export interface DirectoryNodes extends informationUnitsDirectories {
4
+ childNodes: informationUnitsDirectories[];
5
+ parents: idShortID[];
6
+ informationUnits: idShortID[];
7
+ }
8
+ //# sourceMappingURL=directoryNodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"directoryNodes.d.ts","sourceRoot":"","sources":["../../../../interfaces/src/directoryNodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AACrC,OAAO,EAAE,2BAA2B,EAAE,MAAM,oBAAoB,CAAC;AAEjE,MAAM,WAAW,cAAe,SAAQ,2BAA2B;IACjE,UAAU,EAAE,2BAA2B,EAAE,CAAC;IAC1C,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,gBAAgB,EAAE,SAAS,EAAE,CAAC;CAC/B"}
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { DefaultLinksRequest, idShortID, Labels } from "./common";
2
+ export interface DocumentTypesItem extends idShortID {
3
+ labels: Labels[];
4
+ links: DefaultLinksRequest[];
5
+ score: number;
6
+ }
7
+ //# sourceMappingURL=documentTypes.d.ts.map