@lotte-innovate/ui-component-test 0.0.121 → 0.0.122
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +6 -6
- package/dist/globals.css +3 -3
- package/dist/lib/Typography/Text/index.mjs +1 -1
- package/dist/lib/color/alpha.mjs +1 -1
- package/dist/lib/color/alpha.mjs.map +1 -1
- package/dist/lib/components/Box/index.d.ts +10 -0
- package/dist/lib/components/Box/index.js +56 -0
- package/dist/lib/components/Box/index.mjs +2 -0
- package/dist/lib/components/Box/index.mjs.map +1 -0
- package/dist/lib/components/Calendar/index.d.ts +8 -0
- package/dist/lib/components/Calendar/index.js +49 -0
- package/dist/lib/components/Calendar/index.mjs +3 -0
- package/dist/lib/components/Calendar/index.mjs.map +1 -0
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.d.ts +6 -2
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.js +18 -3
- package/dist/lib/components/CheckboxGroup/CheckboxGroupRoot.mjs +1 -1
- package/dist/lib/components/Datepicker/index.d.ts +14 -0
- package/dist/lib/components/Datepicker/index.js +35 -0
- package/dist/lib/components/Datepicker/index.mjs +3 -0
- package/dist/lib/components/Datepicker/index.mjs.map +1 -0
- package/dist/lib/components/Dialog/DialogAction.js +3 -2
- package/dist/lib/components/Dialog/DialogAction.mjs +1 -1
- package/dist/lib/components/Dialog/DialogCancel.js +2 -1
- package/dist/lib/components/Dialog/DialogCancel.mjs +1 -1
- package/dist/lib/components/Dialog/DialogRoot.js +1 -1
- package/dist/lib/components/Dialog/DialogRoot.mjs +1 -1
- package/dist/lib/components/Editor/index.d.ts +3 -0
- package/dist/lib/components/Editor/index.js +51 -16
- package/dist/lib/components/Editor/index.mjs +1 -1
- package/dist/lib/components/Footer/index.js +1 -1
- package/dist/lib/components/Footer/index.mjs +1 -1
- package/dist/lib/components/Gnb/GnbLogo.d.ts +1 -0
- package/dist/lib/components/Gnb/GnbLogo.js +2 -2
- package/dist/lib/components/Gnb/GnbLogo.mjs +1 -1
- package/dist/lib/components/Gnb/GnbLogo.mjs.map +1 -1
- package/dist/lib/components/Gnb/GnbMenu.d.ts +0 -2
- package/dist/lib/components/Gnb/GnbMenu.js +2 -5
- package/dist/lib/components/Gnb/GnbMenu.mjs +1 -1
- package/dist/lib/components/Gnb/GnbMenuItem.d.ts +11 -0
- package/dist/lib/components/Gnb/GnbMenuItem.js +46 -0
- package/dist/lib/components/Gnb/GnbMenuItem.mjs +3 -0
- package/dist/lib/components/Gnb/GnbMenuItem.mjs.map +1 -0
- package/dist/lib/components/Gnb/index.d.ts +1 -0
- package/dist/lib/components/Gnb/index.js +2 -0
- package/dist/lib/components/Gnb/index.mjs +1 -1
- package/dist/lib/components/Gnb/index.mjs.map +1 -1
- package/dist/lib/components/Grid/NumberingPagination.d.ts +2 -0
- package/dist/lib/components/Grid/NumberingPagination.js +76 -0
- package/dist/lib/components/Grid/NumberingPagination.mjs +2 -0
- package/dist/lib/components/Grid/NumberingPagination.mjs.map +1 -0
- package/dist/lib/components/Grid/Pagination.js +2 -1
- package/dist/lib/components/Grid/index.js +3 -3
- package/dist/lib/components/Grid/index.mjs +1 -1
- package/dist/lib/components/Grid/useGrid.js +14 -8
- package/dist/lib/components/Grid/useGrid.mjs +1 -1
- package/dist/lib/components/Label/index.d.ts +2 -0
- package/dist/lib/components/Label/index.js +3 -3
- package/dist/lib/components/Label/index.mjs +1 -1
- package/dist/lib/components/Modal/ModalAction.d.ts +11 -0
- package/dist/lib/components/Modal/ModalAction.js +62 -0
- package/dist/lib/components/Modal/ModalAction.mjs +3 -0
- package/dist/lib/components/Modal/ModalAction.mjs.map +1 -0
- package/dist/lib/components/Modal/ModalCancel.d.ts +10 -0
- package/dist/lib/components/Modal/ModalCancel.js +58 -0
- package/dist/lib/components/Modal/ModalCancel.mjs +3 -0
- package/dist/lib/components/Modal/ModalCancel.mjs.map +1 -0
- package/dist/lib/components/Modal/ModalContent.d.ts +11 -0
- package/dist/lib/components/Modal/ModalContent.js +61 -0
- package/dist/lib/components/Modal/ModalContent.mjs +3 -0
- package/dist/lib/components/Modal/ModalContent.mjs.map +1 -0
- package/dist/lib/components/Modal/ModalDescription.d.ts +5 -0
- package/dist/lib/components/Modal/ModalDescription.js +47 -0
- package/dist/lib/components/Modal/ModalDescription.mjs +3 -0
- package/dist/lib/components/Modal/ModalDescription.mjs.map +1 -0
- package/dist/lib/components/Modal/ModalFooter.d.ts +2 -0
- package/dist/lib/components/Modal/ModalFooter.js +30 -0
- package/dist/lib/components/Modal/ModalFooter.mjs +2 -0
- package/dist/lib/components/Modal/ModalFooter.mjs.map +1 -0
- package/dist/lib/components/Modal/ModalRoot.d.ts +16 -0
- package/dist/lib/components/Modal/ModalRoot.js +42 -0
- package/dist/lib/components/Modal/ModalRoot.mjs +3 -0
- package/dist/lib/components/Modal/ModalRoot.mjs.map +1 -0
- package/dist/lib/components/Modal/ModalTitle.d.ts +11 -0
- package/dist/lib/components/Modal/ModalTitle.js +63 -0
- package/dist/lib/components/Modal/ModalTitle.mjs +3 -0
- package/dist/lib/components/Modal/ModalTitle.mjs.map +1 -0
- package/dist/lib/components/Modal/ModalTrigger.d.ts +3 -0
- package/dist/lib/components/Modal/ModalTrigger.js +30 -0
- package/dist/lib/components/Modal/ModalTrigger.mjs +2 -0
- package/dist/lib/components/Modal/ModalTrigger.mjs.map +1 -0
- package/dist/lib/components/Modal/index.d.ts +15 -0
- package/dist/lib/components/Modal/index.js +19 -0
- package/dist/lib/components/Modal/index.mjs +2 -0
- package/dist/lib/components/Modal/index.mjs.map +1 -0
- package/dist/lib/components/Popover/index.mjs.map +1 -1
- package/dist/lib/components/SearchBar/index.d.ts +15 -0
- package/dist/lib/components/SearchBar/index.js +85 -0
- package/dist/lib/components/SearchBar/index.mjs +3 -0
- package/dist/lib/components/SearchBar/index.mjs.map +1 -0
- package/dist/lib/components/SideBar/index.d.ts +21 -0
- package/dist/lib/components/SideBar/index.js +100 -0
- package/dist/lib/components/SideBar/index.mjs +3 -0
- package/dist/lib/components/SideBar/index.mjs.map +1 -0
- package/dist/lib/components/Tabs/DynamicTabs.d.ts +30 -0
- package/dist/lib/components/Tabs/DynamicTabs.js +73 -0
- package/dist/lib/components/Tabs/DynamicTabs.mjs +3 -0
- package/dist/lib/components/Tabs/DynamicTabs.mjs.map +1 -0
- package/dist/lib/components/Tabs/index.d.ts +2 -2
- package/dist/lib/components/TextField/index.d.ts +4 -0
- package/dist/lib/components/TextField/index.js +39 -4
- package/dist/lib/components/TextField/index.mjs +1 -1
- package/dist/lib/components/Timeline/TimelineConnector.js +1 -3
- package/dist/lib/components/Timeline/TimelineConnector.mjs +2 -0
- package/dist/lib/components/Timeline/TimelineConnector.mjs.map +1 -0
- package/dist/lib/components/Timeline/TimelineContent.mjs +2 -0
- package/dist/lib/components/Timeline/TimelineContent.mjs.map +1 -0
- package/dist/lib/components/Timeline/TimelineDescription.mjs +2 -0
- package/dist/lib/components/Timeline/TimelineDescription.mjs.map +1 -0
- package/dist/lib/components/Timeline/TimelineHeader.mjs +2 -0
- package/dist/lib/components/Timeline/TimelineHeader.mjs.map +1 -0
- package/dist/lib/components/Timeline/TimelineIcon.js +4 -3
- package/dist/lib/components/Timeline/TimelineIcon.mjs +3 -0
- package/dist/lib/components/Timeline/TimelineIcon.mjs.map +1 -0
- package/dist/lib/components/Timeline/TimelineItem.js +1 -1
- package/dist/lib/components/Timeline/TimelineItem.mjs +2 -0
- package/dist/lib/components/Timeline/TimelineItem.mjs.map +1 -0
- package/dist/lib/components/Timeline/TimelineRoot.js +13 -7
- package/dist/lib/components/Timeline/TimelineRoot.mjs +3 -0
- package/dist/lib/components/Timeline/TimelineRoot.mjs.map +1 -0
- package/dist/lib/components/Timeline/TimelineTime.d.ts +3 -1
- package/dist/lib/components/Timeline/TimelineTime.js +16 -4
- package/dist/lib/components/Timeline/TimelineTime.mjs +3 -0
- package/dist/lib/components/Timeline/TimelineTime.mjs.map +1 -0
- package/dist/lib/components/Timeline/TimelineTitle.d.ts +3 -1
- package/dist/lib/components/Timeline/TimelineTitle.js +16 -4
- package/dist/lib/components/Timeline/TimelineTitle.mjs +3 -0
- package/dist/lib/components/Timeline/TimelineTitle.mjs.map +1 -0
- package/dist/lib/components/Timeline/index.mjs +2 -0
- package/dist/lib/components/Timeline/index.mjs.map +1 -0
- package/dist/lib/components/Tooltip/index.d.ts +1 -0
- package/dist/lib/components/Tooltip/index.js +2 -2
- package/dist/lib/components/Tooltip/index.mjs +1 -1
- package/dist/lib/components/index.d.ts +8 -0
- package/dist/lib/components/index.js +8 -0
- package/dist/lib/constants.js +1 -1
- package/dist/lib/constants.mjs +1 -1
- package/dist/lib/constants.mjs.map +1 -1
- package/dist/lib/index.mjs +1 -1
- package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.mjs +2 -0
- package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildFormatLongFn/index.mjs.map +1 -0
- package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.mjs +2 -0
- package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildLocalizeFn/index.mjs.map +1 -0
- package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.mjs +2 -0
- package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchFn/index.mjs.map +1 -0
- package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.mjs +2 -0
- package/dist/lib/node_modules/date-fns/esm/locale/_lib/buildMatchPatternFn/index.mjs.map +1 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.mjs +2 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatDistance/index.mjs.map +1 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.mjs +2 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatLong/index.mjs.map +1 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.mjs +2 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/formatRelative/index.mjs.map +1 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/localize/index.mjs +2 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/localize/index.mjs.map +1 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/match/index.mjs +2 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/_lib/match/index.mjs.map +1 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/index.mjs +2 -0
- package/dist/lib/node_modules/date-fns/esm/locale/ko/index.mjs.map +1 -0
- package/dist/lib/tsconfig.tsbuildinfo +1 -1
- package/dist/lib/types.d.ts +0 -5
- package/dist/lib/utils/classPrefixes.js +3 -0
- package/dist/lib/utils/langs/it.d.ts +0 -0
- package/dist/lib/utils/langs/it.js +2 -0
- package/dist/lib/utils/langs/it.mjs +3 -0
- package/dist/lib/utils/langs/it.mjs.map +1 -0
- package/dist/lib/utils/langs/ja.d.ts +0 -0
- package/dist/lib/utils/langs/ja.js +2 -0
- package/dist/lib/utils/langs/ja.mjs +3 -0
- package/dist/lib/utils/langs/ja.mjs.map +1 -0
- package/dist/lib/utils/langs/ko_KR.d.ts +0 -0
- package/dist/lib/utils/langs/ko_KR.js +2 -0
- package/dist/lib/utils/langs/ko_KR.mjs +3 -0
- package/dist/lib/utils/langs/ko_KR.mjs.map +1 -0
- package/dist/lib/utils/langs/vi.d.ts +0 -0
- package/dist/lib/utils/langs/vi.js +2 -0
- package/dist/lib/utils/langs/vi.mjs +3 -0
- package/dist/lib/utils/langs/vi.mjs.map +1 -0
- package/dist/lib/utils/langs/zh_CN.d.ts +0 -0
- package/dist/lib/utils/langs/zh_CN.js +2 -0
- package/dist/lib/utils/langs/zh_CN.mjs +3 -0
- package/dist/lib/utils/langs/zh_CN.mjs.map +1 -0
- package/dist/lib/utils/useLoadTinyMCE.d.ts +1 -0
- package/dist/lib/utils/useLoadTinyMCE.js +154 -0
- package/dist/lib/utils/useLoadTinyMCE.mjs +2 -0
- package/dist/lib/utils/useLoadTinyMCE.mjs.map +1 -0
- package/dist/lib/utils/useWindowSize.d.ts +1 -0
- package/dist/lib/utils/useWindowSize.js +17 -0
- package/dist/lib/utils/useWindowSize.mjs +2 -0
- package/dist/lib/utils/useWindowSize.mjs.map +1 -0
- package/dist/tailwind.config.js +3 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +7 -5
- package/dist/lib/components/Grid/Pagination.mjs +0 -2
- package/dist/lib/components/Grid/Pagination.mjs.map +0 -1
- package/public/tinymce/CHANGELOG.md +0 -3453
- package/public/tinymce/README.md +0 -73
- package/public/tinymce/bower.json +0 -27
- package/public/tinymce/composer.json +0 -52
- package/public/tinymce/icons/default/icons.js +0 -194
- package/public/tinymce/icons/default/icons.min.js +0 -1
- package/public/tinymce/icons/default/index.js +0 -7
- package/public/tinymce/license.txt +0 -21
- package/public/tinymce/models/dom/index.js +0 -7
- package/public/tinymce/models/dom/model.js +0 -8040
- package/public/tinymce/models/dom/model.min.js +0 -4
- package/public/tinymce/package.json +0 -32
- package/public/tinymce/plugins/advlist/index.js +0 -7
- package/public/tinymce/plugins/advlist/plugin.js +0 -259
- package/public/tinymce/plugins/advlist/plugin.min.js +0 -4
- package/public/tinymce/plugins/autolink/index.js +0 -7
- package/public/tinymce/plugins/autolink/plugin.js +0 -228
- package/public/tinymce/plugins/autolink/plugin.min.js +0 -4
- package/public/tinymce/plugins/code/index.js +0 -7
- package/public/tinymce/plugins/code/plugin.js +0 -85
- package/public/tinymce/plugins/code/plugin.min.js +0 -4
- package/public/tinymce/plugins/codesample/index.js +0 -7
- package/public/tinymce/plugins/codesample/plugin.js +0 -2463
- package/public/tinymce/plugins/codesample/plugin.min.js +0 -4
- package/public/tinymce/plugins/image/index.js +0 -7
- package/public/tinymce/plugins/image/plugin.js +0 -1505
- package/public/tinymce/plugins/image/plugin.min.js +0 -4
- package/public/tinymce/plugins/link/index.js +0 -7
- package/public/tinymce/plugins/link/plugin.js +0 -1242
- package/public/tinymce/plugins/link/plugin.min.js +0 -4
- package/public/tinymce/plugins/lists/index.js +0 -7
- package/public/tinymce/plugins/lists/plugin.js +0 -2172
- package/public/tinymce/plugins/lists/plugin.min.js +0 -4
- package/public/tinymce/plugins/table/index.js +0 -7
- package/public/tinymce/plugins/table/plugin.js +0 -3462
- package/public/tinymce/plugins/table/plugin.min.js +0 -4
- package/public/tinymce/skins/content/default/content.css +0 -61
- package/public/tinymce/skins/content/default/content.js +0 -2
- package/public/tinymce/skins/content/default/content.min.css +0 -1
- package/public/tinymce/skins/ui/oxide/content.css +0 -785
- package/public/tinymce/skins/ui/oxide/content.inline.css +0 -779
- package/public/tinymce/skins/ui/oxide/content.inline.js +0 -2
- package/public/tinymce/skins/ui/oxide/content.inline.min.css +0 -1
- package/public/tinymce/skins/ui/oxide/content.js +0 -2
- package/public/tinymce/skins/ui/oxide/content.min.css +0 -1
- package/public/tinymce/skins/ui/oxide/skin.css +0 -3763
- package/public/tinymce/skins/ui/oxide/skin.js +0 -2
- package/public/tinymce/skins/ui/oxide/skin.min.css +0 -1
- package/public/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -30
- package/public/tinymce/skins/ui/oxide/skin.shadowdom.js +0 -2
- package/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -1
- package/public/tinymce/skins/ui/oxide-dark/content.css +0 -766
- package/public/tinymce/skins/ui/oxide-dark/content.inline.css +0 -779
- package/public/tinymce/skins/ui/oxide-dark/content.inline.js +0 -2
- package/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -1
- package/public/tinymce/skins/ui/oxide-dark/content.js +0 -2
- package/public/tinymce/skins/ui/oxide-dark/content.min.css +0 -1
- package/public/tinymce/skins/ui/oxide-dark/skin.css +0 -3766
- package/public/tinymce/skins/ui/oxide-dark/skin.js +0 -2
- package/public/tinymce/skins/ui/oxide-dark/skin.min.css +0 -1
- package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -30
- package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +0 -2
- package/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -1
- package/public/tinymce/themes/silver/index.js +0 -7
- package/public/tinymce/themes/silver/theme.js +0 -30775
- package/public/tinymce/themes/silver/theme.min.js +0 -384
- package/public/tinymce/tinymce.d.ts +0 -3238
- package/public/tinymce/tinymce.js +0 -31779
- package/public/tinymce/tinymce.min.js +0 -384
@@ -0,0 +1,30 @@
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
2
|
+
import { IColor } from '../../../lib/types';
|
3
|
+
import React from 'react';
|
4
|
+
export interface TabProp {
|
5
|
+
key: string;
|
6
|
+
title: {
|
7
|
+
children: () => React.ReactElement;
|
8
|
+
onClick?: (task: TabProp) => void;
|
9
|
+
};
|
10
|
+
content?: {
|
11
|
+
children: () => React.ReactElement;
|
12
|
+
};
|
13
|
+
}
|
14
|
+
export interface TabsProps extends VariantProps<typeof dynamivTabsVariants> {
|
15
|
+
defaultValue?: string;
|
16
|
+
color?: IColor;
|
17
|
+
tabData: TabProp[];
|
18
|
+
defaultTab?: TabProp;
|
19
|
+
setTabData: React.Dispatch<React.SetStateAction<TabProp[]>>;
|
20
|
+
onDeleteTab?: (tab: any) => void;
|
21
|
+
onDeleteAllTabs?: () => void;
|
22
|
+
maxCount?: number;
|
23
|
+
}
|
24
|
+
declare const dynamivTabsVariants: (props?: ({
|
25
|
+
weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
|
26
|
+
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
27
|
+
color?: string | null | undefined;
|
28
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
29
|
+
declare const DynamicTabs: React.ForwardRefExoticComponent<import("react-tabs").TabsProps & TabsProps & React.RefAttributes<never>>;
|
30
|
+
export default DynamicTabs;
|
@@ -0,0 +1,73 @@
|
|
1
|
+
'use client';
|
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
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
25
|
+
import { ChevronLeftIcon, ChevronRightIcon, Cross1Icon, TrashIcon } from '@radix-ui/react-icons';
|
26
|
+
import { cva } from 'class-variance-authority';
|
27
|
+
import { bgColorStyle, scalingVariants, weightVariants } from '../../../lib/constants';
|
28
|
+
import React, { useEffect, useState } from 'react';
|
29
|
+
import { Tab, Tabs, TabList, TabPanel } from 'react-tabs';
|
30
|
+
import IconButton from '../IconButton';
|
31
|
+
import { cn } from '../../../lib/utils/utils';
|
32
|
+
import { useTheme } from '../../../lib/theme';
|
33
|
+
var dynamivTabsVariants = cva('', {
|
34
|
+
variants: {
|
35
|
+
weight: __assign({}, weightVariants),
|
36
|
+
scaling: __assign({}, scalingVariants),
|
37
|
+
color: bgColorStyle(),
|
38
|
+
},
|
39
|
+
});
|
40
|
+
var DynamicTabs = React.forwardRef(function (_a, ref) {
|
41
|
+
var _b;
|
42
|
+
var tabData = _a.tabData, scaling = _a.scaling, color = _a.color, setTabData = _a.setTabData, defaultTab = _a.defaultTab, onDeleteTab = _a.onDeleteTab, onDeleteAllTabs = _a.onDeleteAllTabs, onSelect = _a.onSelect, maxCount = _a.maxCount, className = _a.className, rootProps = __rest(_a, ["tabData", "scaling", "color", "setTabData", "defaultTab", "onDeleteTab", "onDeleteAllTabs", "onSelect", "maxCount", "className"]);
|
43
|
+
var _c = useState(0), selectedInx = _c[0], setselectedInx = _c[1];
|
44
|
+
var theme = useTheme().theme;
|
45
|
+
var dynamicTabsStyle = {
|
46
|
+
scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
|
47
|
+
color: (_b = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _b !== void 0 ? _b : 'slate',
|
48
|
+
};
|
49
|
+
useEffect(function () {
|
50
|
+
if (tabData.length > 20)
|
51
|
+
setTabData(tabData.slice(0, 20));
|
52
|
+
}, [tabData]);
|
53
|
+
return (_jsxs(Tabs, __assign({ selectedIndex: selectedInx, className: cn('flex w-full text-slate-12', dynamivTabsVariants({ scaling: dynamicTabsStyle.scaling }), className), onSelect: function (index, last, event) {
|
54
|
+
setselectedInx(index);
|
55
|
+
onSelect && onSelect(index, last, event);
|
56
|
+
} }, rootProps, { children: [_jsx(TabList, { className: "mb-[10px] flex flex-1 overflow-x-auto overflow-y-hidden p-0", children: tabData.map(function (tab, index) { return (_jsx(Tab, { className: cn('relative bottom-[-1px] inline-block w-[50px] max-w-[350px] flex-1 cursor-pointer list-none aria-selected:rounded-t-lg aria-selected:border aria-selected:border-b-0 aria-selected:border-slateA-8 aria-selected:bg-slate-1'), onClick: function (e) { var _a, _b; return ((_a = tab.title) === null || _a === void 0 ? void 0 : _a.onClick) && ((_b = tab.title) === null || _b === void 0 ? void 0 : _b.onClick(tab)); }, children: _jsxs("div", { className: cn('mx-[3px] my-[2px] flex justify-between rounded-lg px-[9px] py-[4px]', "hover:bg-".concat(dynamicTabsStyle.color, "A-6 hover:dark:bg-").concat(dynamicTabsStyle.color, "DarkA-6")), children: [_jsx("div", { className: "flex-1 overflow-hidden truncate text-ellipsis", children: tab.title.children() }), ((tabData === null || tabData === void 0 ? void 0 : tabData.length) < 15 || selectedInx == index) && (_jsx(IconButton, { size: "small", appearance: "ghost", color: dynamicTabsStyle.color, scaling: dynamicTabsStyle.scaling, onClick: function () {
|
57
|
+
var filtered = tabData.filter(function (el) { return el.key !== tab.key; });
|
58
|
+
setTabData(defaultTab && filtered.length == 0 ? [defaultTab] : filtered);
|
59
|
+
filtered.length == 0
|
60
|
+
? setselectedInx(0)
|
61
|
+
: selectedInx - 1 >= 0 && setselectedInx(selectedInx - 1);
|
62
|
+
onDeleteTab && onDeleteTab(tab);
|
63
|
+
}, children: _jsx(Cross1Icon, {}) }))] }) }, index)); }) }), tabData.map(function (tab, index) {
|
64
|
+
var _a;
|
65
|
+
return (_jsx(TabPanel, { children: (_a = tab === null || tab === void 0 ? void 0 : tab.content) === null || _a === void 0 ? void 0 : _a.children() }, index));
|
66
|
+
}), _jsxs("div", { className: "right-5 mb-[10px] flex justify-end p-0 px-3 py-2", children: [_jsx(IconButton, { size: "small", appearance: "ghost", onClick: function () {
|
67
|
+
setselectedInx(0);
|
68
|
+
setTabData(defaultTab ? [defaultTab] : []);
|
69
|
+
onDeleteAllTabs && onDeleteAllTabs();
|
70
|
+
}, children: _jsx(TrashIcon, {}) }), _jsx(IconButton, { size: "small", appearance: "ghost", onClick: function () { return selectedInx - 1 >= 0 && setselectedInx(selectedInx - 1); }, children: _jsx(ChevronLeftIcon, {}) }), _jsx(IconButton, { size: "small", appearance: "ghost", onClick: function () { return selectedInx + 1 < tabData.length && setselectedInx(selectedInx + 1); }, children: _jsx(ChevronRightIcon, {}) })] })] })));
|
71
|
+
});
|
72
|
+
DynamicTabs.displayName = 'DynamicTabs';
|
73
|
+
export default DynamicTabs;
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use client";
|
2
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{Cross1Icon as l,TrashIcon as n,ChevronLeftIcon as r,ChevronRightIcon as o}from"@radix-ui/react-icons";import{cva as a}from"class-variance-authority";import{weightVariants as i,scalingVariants as c,bgColorStyle as s}from"../../constants.mjs";import d,{useState as m,useEffect as u}from"react";import{Tabs as p,TabList as f,Tab as h,TabPanel as b}from"react-tabs";import{IconButton as v}from"../IconButton/index.mjs";import{cn as x}from"../../utils/utils.mjs";import{useTheme as g}from"../../theme/ThemeProvider.mjs";var y=function(){return y=Object.assign||function(e){for(var t,l=1,n=arguments.length;l<n;l++)for(var r in t=arguments[l])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},y.apply(this,arguments)},j=function(e,t){var l={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(l[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(l[n[r]]=e[n[r]])}return l},w=a("",{variants:{weight:y({},i),scaling:y({},c),color:s()}}),k=d.forwardRef((function(a,i){var c,s=a.tabData,d=a.scaling,k=a.color,O=a.setTabData,C=a.defaultTab,D=a.onDeleteTab,T=a.onDeleteAllTabs,N=a.onSelect;a.maxCount;var S=a.className,A=j(a,["tabData","scaling","color","setTabData","defaultTab","onDeleteTab","onDeleteAllTabs","onSelect","maxCount","className"]),P=m(0),z=P[0],I=P[1],B=g().theme,E={scaling:null!=d?d:B.themeScaling,color:null!==(c=null!=k?k:B.themeColor)&&void 0!==c?c:"slate"};return u((function(){s.length>20&&O(s.slice(0,20))}),[s]),e(p,y({selectedIndex:z,className:x("flex w-full text-slate-12",w({scaling:E.scaling}),S),onSelect:function(e,t,l){I(e),N&&N(e,t,l)}},A,{children:[t(f,{className:"mb-[10px] flex flex-1 overflow-x-auto overflow-y-hidden p-0",children:s.map((function(n,r){return t(h,{className:x("relative bottom-[-1px] inline-block w-[50px] max-w-[350px] flex-1 cursor-pointer list-none aria-selected:rounded-t-lg aria-selected:border aria-selected:border-b-0 aria-selected:border-slateA-8 aria-selected:bg-slate-1"),onClick:function(e){var t,l;return(null===(t=n.title)||void 0===t?void 0:t.onClick)&&(null===(l=n.title)||void 0===l?void 0:l.onClick(n))},children:e("div",{className:x("mx-[3px] my-[2px] flex justify-between rounded-lg px-[9px] py-[4px]","hover:bg-".concat(E.color,"A-6 hover:dark:bg-").concat(E.color,"DarkA-6")),children:[t("div",{className:"flex-1 overflow-hidden truncate text-ellipsis",children:n.title.children()}),((null==s?void 0:s.length)<15||z==r)&&t(v,{size:"small",appearance:"ghost",color:E.color,scaling:E.scaling,onClick:function(){var e=s.filter((function(e){return e.key!==n.key}));O(C&&0==e.length?[C]:e),0==e.length?I(0):z-1>=0&&I(z-1),D&&D(n)},children:t(l,{})})]})},r)}))}),s.map((function(e,l){var n;return t(b,{children:null===(n=null==e?void 0:e.content)||void 0===n?void 0:n.children()},l)})),e("div",{className:"right-5 mb-[10px] flex justify-end p-0 px-3 py-2",children:[t(v,{size:"small",appearance:"ghost",onClick:function(){I(0),O(C?[C]:[]),T&&T()},children:t(n,{})}),t(v,{size:"small",appearance:"ghost",onClick:function(){return z-1>=0&&I(z-1)},children:t(r,{})}),t(v,{size:"small",appearance:"ghost",onClick:function(){return z+1<s.length&&I(z+1)},children:t(o,{})})]})]}))}));k.displayName="DynamicTabs";export{k as default};
|
3
|
+
//# sourceMappingURL=DynamicTabs.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"DynamicTabs.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -11,12 +11,12 @@ declare const tabsVariants: (props?: ({
|
|
11
11
|
weight?: "medium" | "regular" | "semibold" | "bold" | null | undefined;
|
12
12
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
13
13
|
export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<TabsTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
|
14
|
-
export declare const List: React.ForwardRefExoticComponent<Omit<TabsTheme.ListProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
|
14
|
+
export declare const List: React.ForwardRefExoticComponent<Omit<Omit<TabsTheme.ListProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
|
15
15
|
export declare const Trigger: React.ForwardRefExoticComponent<Omit<TabsTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & TabsProps & React.RefAttributes<HTMLButtonElement>>;
|
16
16
|
export declare const Content: React.ForwardRefExoticComponent<Omit<TabsTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
|
17
17
|
declare const Tabs: {
|
18
18
|
Root: React.ForwardRefExoticComponent<Omit<Omit<TabsTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
|
19
|
-
List: React.ForwardRefExoticComponent<Omit<TabsTheme.ListProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
|
19
|
+
List: React.ForwardRefExoticComponent<Omit<Omit<TabsTheme.ListProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
|
20
20
|
Trigger: React.ForwardRefExoticComponent<Omit<TabsTheme.TriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & TabsProps & React.RefAttributes<HTMLButtonElement>>;
|
21
21
|
Content: React.ForwardRefExoticComponent<Omit<TabsTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & TabsProps & React.RefAttributes<HTMLDivElement>>;
|
22
22
|
};
|
@@ -7,6 +7,10 @@ export interface TextFieldProps extends VariantProps<typeof textFieldVariants> {
|
|
7
7
|
label?: string;
|
8
8
|
size?: 'small' | 'medium' | 'large';
|
9
9
|
scaling?: IScaling;
|
10
|
+
isShowWarning?: boolean;
|
11
|
+
validationType?: 'text' | 'number' | 'password' | 'email';
|
12
|
+
regex?: RegExp;
|
13
|
+
warningMessage?: string;
|
10
14
|
}
|
11
15
|
declare const textFieldVariants: (props?: ({
|
12
16
|
radius?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
|
@@ -21,14 +21,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
21
21
|
}
|
22
22
|
return t;
|
23
23
|
};
|
24
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
25
|
-
import React from 'react';
|
24
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
25
|
+
import React, { useState } from 'react';
|
26
26
|
import { cva } from 'class-variance-authority';
|
27
27
|
import { cn } from '../../../lib/utils/utils';
|
28
28
|
import { bgColorStyle, radiusVariants } from '../../../lib/constants';
|
29
29
|
import { Theme, TextField as TextFieldTheme } from '@radix-ui/themes';
|
30
30
|
import { useTheme } from '../../../lib/theme';
|
31
31
|
import { MAIN_COLOR } from '../../../lib/color/constants';
|
32
|
+
import Text from '../../../lib/Typography/Text';
|
33
|
+
import IconButton from '../IconButton';
|
34
|
+
import { EyeClosedIcon, EyeOpenIcon } from '@radix-ui/react-icons';
|
32
35
|
var textFieldVariants = cva('', {
|
33
36
|
variants: {
|
34
37
|
radius: __assign({}, radiusVariants['base']),
|
@@ -37,8 +40,11 @@ var textFieldVariants = cva('', {
|
|
37
40
|
});
|
38
41
|
export var Root = React.forwardRef(function (_a, forwardedRef) {
|
39
42
|
var _b, _c;
|
40
|
-
var className = _a.className, color = _a.color, size = _a.size, appearance = _a.appearance, scaling = _a.scaling, radius = _a.radius, children = _a.children,
|
43
|
+
var className = _a.className, color = _a.color, size = _a.size, appearance = _a.appearance, scaling = _a.scaling, radius = _a.radius, children = _a.children, validationType = _a.validationType, regex = _a.regex, warningMessage = _a.warningMessage, onChange = _a.onChange, onBlur = _a.onBlur, textFieldProps = __rest(_a, ["className", "color", "size", "appearance", "scaling", "radius", "children", "validationType", "regex", "warningMessage", "onChange", "onBlur"]);
|
41
44
|
var theme = useTheme().theme;
|
45
|
+
var _d = useState(false), showMessage = _d[0], setShowMessage = _d[1];
|
46
|
+
var _e = useState(''), value = _e[0], setValue = _e[1];
|
47
|
+
var _f = useState(false), isMouseDown = _f[0], setIsMouseDown = _f[1];
|
42
48
|
var sizeTheme = '2';
|
43
49
|
if (size === 'small')
|
44
50
|
sizeTheme = '1';
|
@@ -49,7 +55,36 @@ export var Root = React.forwardRef(function (_a, forwardedRef) {
|
|
49
55
|
radius: radius !== null && radius !== void 0 ? radius : theme.themeRadius,
|
50
56
|
color: (_c = color !== null && color !== void 0 ? color : theme.themeColor) !== null && _c !== void 0 ? _c : MAIN_COLOR,
|
51
57
|
};
|
52
|
-
|
58
|
+
var emailRegex = /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/;
|
59
|
+
var numberRegex = /^[0-9]+$/;
|
60
|
+
var message = '';
|
61
|
+
if (validationType == 'number')
|
62
|
+
message = '숫자만 입력 가능합니다.';
|
63
|
+
if (validationType == 'email')
|
64
|
+
message = '이메일 형식에 어긋납니다.';
|
65
|
+
return (_jsxs("div", { children: [_jsx(Theme, { scaling: contextValue.scaling, accentColor: contextValue.color, hasBackground: false, children: _jsxs(TextFieldTheme.Root, __assign({ ref: forwardedRef, variant: appearance, size: sizeTheme, type: validationType !== 'password' || isMouseDown ? 'text' : 'password', radius: contextValue.radius, color: contextValue.color, className: cn(textFieldVariants({ radius: contextValue.radius }), className), onChange: function (e) {
|
66
|
+
if (e.target.value && regex) {
|
67
|
+
setShowMessage(true);
|
68
|
+
return;
|
69
|
+
}
|
70
|
+
if (validationType == 'number' &&
|
71
|
+
e.target.value &&
|
72
|
+
!regex &&
|
73
|
+
!numberRegex.test(e.target.value)) {
|
74
|
+
setShowMessage(true);
|
75
|
+
return;
|
76
|
+
}
|
77
|
+
setShowMessage(false);
|
78
|
+
setValue(e.target.value);
|
79
|
+
onChange && onChange(e);
|
80
|
+
}, value: value, onBlur: function (e) {
|
81
|
+
onBlur && onBlur(e);
|
82
|
+
if (validationType == 'email' && e.target.value && !emailRegex.test(e.target.value)) {
|
83
|
+
setShowMessage(true);
|
84
|
+
return;
|
85
|
+
}
|
86
|
+
setShowMessage(false);
|
87
|
+
} }, textFieldProps, { children: [children, validationType == 'password' && (_jsx(TextField.Slot, { side: 'right', children: _jsx(IconButton, { appearance: "ghost", color: "slate", onMouseDown: function (e) { return setIsMouseDown(true); }, onMouseUp: function (e) { return setIsMouseDown(false); }, children: isMouseDown ? (_jsx(EyeOpenIcon, { height: "14", width: "14" })) : (_jsx(EyeClosedIcon, { height: "14", width: "14" })) }) }))] })) }), showMessage && (_jsx(Text, { size: "1", color: contextValue.color, children: warningMessage ? warningMessage : message }))] }));
|
53
88
|
});
|
54
89
|
Root.displayName = 'TextField.Root';
|
55
90
|
export var Slot = React.forwardRef(function (_a, forwardedRef) {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
"use client";
|
2
|
-
import{jsx as
|
2
|
+
import{jsxs as r,jsx as e}from"react/jsx-runtime";import o,{useState as a}from"react";import{cva as t}from"class-variance-authority";import{cn as n}from"../../utils/utils.mjs";import{radiusVariants as i,bgColorStyle as l}from"../../constants.mjs";import{Theme as s,TextField as c}from"@radix-ui/themes";import{useTheme as u}from"../../theme/ThemeProvider.mjs";import{MAIN_COLOR as d}from"../../color/constants.mjs";import m from"../../Typography/Text/index.mjs";import{IconButton as p}from"../IconButton/index.mjs";import{EyeOpenIcon as f,EyeClosedIcon as h}from"@radix-ui/react-icons";var g=function(){return g=Object.assign||function(r){for(var e,o=1,a=arguments.length;o<a;o++)for(var t in e=arguments[o])Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r},g.apply(this,arguments)},v=function(r,e){var o={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.indexOf(a)<0&&(o[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(a=Object.getOwnPropertySymbols(r);t<a.length;t++)e.indexOf(a[t])<0&&Object.prototype.propertyIsEnumerable.call(r,a[t])&&(o[a[t]]=r[a[t]])}return o},y=t("",{variants:{radius:g({},i.base),color:l()}}),x=o.forwardRef((function(o,t){var i,l,x=o.className,j=o.color,b=o.size,O=o.appearance,N=o.scaling,T=o.radius,z=o.children,S=o.validationType,R=o.regex,B=o.warningMessage,C=o.onChange,P=o.onBlur,M=v(o,["className","color","size","appearance","scaling","radius","children","validationType","regex","warningMessage","onChange","onBlur"]),F=u().theme,I=a(!1),$=I[0],k=I[1],D=a(""),E=D[0],U=D[1],_=a(!1),q=_[0],A=_[1],G="2";"small"===b&&(G="1"),"large"===b&&(G="3");var H={scaling:null!==(i=null!=N?N:F.themeScaling)&&void 0!==i?i:"100%",radius:null!=T?T:F.themeRadius,color:null!==(l=null!=j?j:F.themeColor)&&void 0!==l?l:d},J=/^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/,K=/^[0-9]+$/,L="";return"number"==S&&(L="숫자만 입력 가능합니다."),"email"==S&&(L="이메일 형식에 어긋납니다."),r("div",{children:[e(s,{scaling:H.scaling,accentColor:H.color,hasBackground:!1,children:r(c.Root,g({ref:t,variant:O,size:G,type:"password"!==S||q?"text":"password",radius:H.radius,color:H.color,className:n(y({radius:H.radius}),x),onChange:function(r){r.target.value&&R?k(!0):"number"!=S||!r.target.value||R||K.test(r.target.value)?(k(!1),U(r.target.value),C&&C(r)):k(!0)},value:E,onBlur:function(r){P&&P(r),"email"!=S||!r.target.value||J.test(r.target.value)?k(!1):k(!0)}},M,{children:[z,"password"==S&&e(w.Slot,{side:"right",children:e(p,{appearance:"ghost",color:"slate",onMouseDown:function(r){return A(!0)},onMouseUp:function(r){return A(!1)},children:e(q?f:h,{height:"14",width:"14"})})})]}))}),$&&e(m,{size:"1",color:H.color,children:B||L})]})}));x.displayName="TextField.Root";var j=o.forwardRef((function(r,o){var a=r.className,t=r.color,i=r.side,l=r.radius,s=r.children,u=v(r,["className","color","side","radius","children"]);return e(c.Slot,g({ref:o,color:t,side:i,className:n(y({radius:l}),a)},u,{children:s}))}));j.displayName="TextField.Slot";var w={Root:x,Slot:j};export{x as Root,j as Slot,w as default};
|
3
3
|
//# sourceMappingURL=index.mjs.map
|
@@ -24,9 +24,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { forwardRef } from 'react';
|
25
25
|
import { cva } from 'class-variance-authority';
|
26
26
|
import { cn } from '../../../lib/utils/utils';
|
27
|
-
export var timelineConnectorVariants = cva('absolute top-[
|
28
|
-
// `absolute left-[30px] top-[5px] h-full w-px -translate-x-1/2 translate-y-2 bg-slateA-7 dark:bg-slateDarkA-7`,
|
29
|
-
{
|
27
|
+
export var timelineConnectorVariants = cva('absolute top-[10px] left-[3px] h-[60px] w-0.5 bg-slateA-6 dark:bg-slateDarkA-6 z-5', {
|
30
28
|
variants: {},
|
31
29
|
});
|
32
30
|
export var TimelineConnector = forwardRef(function (_a, ref) {
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as t}from"react";import{cva as e}from"class-variance-authority";import{cn as o}from"../../utils/utils.mjs";var a=function(){return a=Object.assign||function(r){for(var t,e=1,o=arguments.length;e<o;e++)for(var a in t=arguments[e])Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a]);return r},a.apply(this,arguments)},n=function(r,t){var e={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&t.indexOf(o)<0&&(e[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(r);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(e[o[a]]=r[o[a]])}return e},i=e("absolute top-[10px] left-[3px] h-[60px] w-0.5 bg-slateA-6 dark:bg-slateDarkA-6 z-5",{variants:{}}),l=t((function(t,e){var l=t.className,p=n(t,["className"]);return r("div",a({ref:e,className:o(i({}),l)},p))}));l.displayName="Timeline.Connector";export{l as TimelineConnector,i as timelineConnectorVariants};
|
2
|
+
//# sourceMappingURL=TimelineConnector.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TimelineConnector.mjs","sources":["../../../lib/components/Timeline/TimelineConnector.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nexport var timelineConnectorVariants = cva('absolute top-[10px] left-[3px] h-[60px] w-0.5 bg-slateA-6 dark:bg-slateDarkA-6 z-5', {\n variants: {},\n});\nexport var TimelineConnector = forwardRef(function (_a, ref) {\n var className = _a.className, props = __rest(_a, [\"className\"]);\n return (_jsx(\"div\", __assign({ ref: ref, className: cn(timelineConnectorVariants({}), className) }, props)));\n});\nTimelineConnector.displayName = 'Timeline.Connector';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","timelineConnectorVariants","cva","variants","TimelineConnector","forwardRef","_a","ref","className","props","_jsx","cn","displayName"],"mappings":"qKAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAKWiB,EAA4BC,EAAI,qFAAsF,CAC7HC,SAAU,CAAE,IAELC,EAAoBC,GAAW,SAAUC,EAAIC,GACpD,IAAIC,EAAYF,EAAGE,UAAWC,EAAQb,EAAOU,EAAI,CAAC,cAClD,OAAQI,EAAK,MAAO7B,EAAS,CAAE0B,IAAKA,EAAKC,UAAWG,EAAGV,EAA0B,CAAE,GAAGO,IAAcC,GACxG,IACAL,EAAkBQ,YAAc"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as r}from"react";import{cva as e}from"class-variance-authority";import{cn as o}from"../../utils/utils.mjs";var n=function(){return n=Object.assign||function(t){for(var r,e=1,o=arguments.length;e<o;e++)for(var n in r=arguments[e])Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n]);return t},n.apply(this,arguments)},a=function(t,r){var e={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&r.indexOf(o)<0&&(e[o]=t[o]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(t);n<o.length;n++)r.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(e[o[n]]=t[o[n]])}return e},i=e("flex flex-col items-start p-6 pt-0",{variants:{}}),l=r((function(r,e){var l=r.className,s=a(r,["className"]);return t("div",n({ref:e,className:o(i({}),l)},s))}));l.displayName="Timeline.Content";export{l as TimelineContent,i as timelineContentVariants};
|
2
|
+
//# sourceMappingURL=TimelineContent.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TimelineContent.mjs","sources":["../../../lib/components/Timeline/TimelineContent.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nexport var timelineContentVariants = cva(\"flex flex-col items-start p-6 pt-0\", {\n variants: {},\n});\nexport var TimelineContent = forwardRef(function (_a, ref) {\n var className = _a.className, props = __rest(_a, [\"className\"]);\n return (_jsx(\"div\", __assign({ ref: ref, className: cn(timelineContentVariants({}), className) }, props)));\n});\nTimelineContent.displayName = 'Timeline.Content';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","timelineContentVariants","cva","variants","TimelineContent","forwardRef","_a","ref","className","props","_jsx","cn","displayName"],"mappings":"qKAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAKWiB,EAA0BC,EAAI,qCAAsC,CAC3EC,SAAU,CAAE,IAELC,EAAkBC,GAAW,SAAUC,EAAIC,GAClD,IAAIC,EAAYF,EAAGE,UAAWC,EAAQb,EAAOU,EAAI,CAAC,cAClD,OAAQI,EAAK,MAAO7B,EAAS,CAAE0B,IAAKA,EAAKC,UAAWG,EAAGV,EAAwB,CAAE,GAAGO,IAAcC,GACtG,IACAL,EAAgBQ,YAAc"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as r}from"react";import{cva as e}from"class-variance-authority";import{cn as a}from"../../utils/utils.mjs";var o=function(){return o=Object.assign||function(t){for(var r,e=1,a=arguments.length;e<a;e++)for(var o in r=arguments[e])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},o.apply(this,arguments)},n=function(t,r){var e={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&r.indexOf(a)<0&&(e[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(t);o<a.length;o++)r.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(t,a[o])&&(e[a[o]]=t[a[o]])}return e},i=e("text-muted-foreground max-w-sm text-sm text-slate-12 dark:text-slateDark-12",{variants:{}}),s=r((function(r,e){var s=r.className,l=n(r,["className"]);return t("p",o({ref:e,className:a(i({}),s)},l))}));s.displayName="Timeline.Description";export{s as TimelineDescription,i as timelineDescriptionVariants};
|
2
|
+
//# sourceMappingURL=TimelineDescription.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TimelineDescription.mjs","sources":["../../../lib/components/Timeline/TimelineDescription.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nexport var timelineDescriptionVariants = cva(\"text-muted-foreground max-w-sm text-sm text-slate-12 dark:text-slateDark-12\", {\n variants: {},\n});\nexport var TimelineDescription = forwardRef(function (_a, ref) {\n var className = _a.className, props = __rest(_a, [\"className\"]);\n return (_jsx(\"p\", __assign({ ref: ref, className: cn(timelineDescriptionVariants({}), className) }, props)));\n});\nTimelineDescription.displayName = 'Timeline.Description';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","timelineDescriptionVariants","cva","variants","TimelineDescription","forwardRef","_a","ref","className","props","_jsx","cn","displayName"],"mappings":"qKAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAKWiB,EAA8BC,EAAI,8EAA+E,CACxHC,SAAU,CAAE,IAELC,EAAsBC,GAAW,SAAUC,EAAIC,GACtD,IAAIC,EAAYF,EAAGE,UAAWC,EAAQb,EAAOU,EAAI,CAAC,cAClD,OAAQI,EAAK,IAAK7B,EAAS,CAAE0B,IAAKA,EAAKC,UAAWG,EAAGV,EAA4B,CAAE,GAAGO,IAAcC,GACxG,IACAL,EAAoBQ,YAAc"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as t}from"react";import{cva as e}from"class-variance-authority";import{cn as a}from"../../utils/utils.mjs";var o=function(){return o=Object.assign||function(r){for(var t,e=1,a=arguments.length;e<a;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},o.apply(this,arguments)},n=function(r,t){var e={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&t.indexOf(a)<0&&(e[a]=r[a]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(a=Object.getOwnPropertySymbols(r);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(r,a[o])&&(e[a[o]]=r[a[o]])}return e},i=e("flex items-center gap-4",{variants:{}}),l=t((function(t,e){var l=t.className,s=n(t,["className"]);return r("div",o({ref:e,className:a(i({}),l)},s))}));l.displayName="Timeline.Header";export{l as TimelineHeader,i as timelineHeaderVariants};
|
2
|
+
//# sourceMappingURL=TimelineHeader.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TimelineHeader.mjs","sources":["../../../lib/components/Timeline/TimelineHeader.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nexport var timelineHeaderVariants = cva(\"flex items-center gap-4\", {\n variants: {},\n});\nexport var TimelineHeader = forwardRef(function (_a, ref) {\n var className = _a.className, props = __rest(_a, [\"className\"]);\n return (_jsx(\"div\", __assign({ ref: ref, className: cn(timelineHeaderVariants({}), className) }, props)));\n});\nTimelineHeader.displayName = 'Timeline.Header';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","timelineHeaderVariants","cva","variants","TimelineHeader","forwardRef","_a","ref","className","props","_jsx","cn","displayName"],"mappings":"qKAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAKWiB,EAAyBC,EAAI,0BAA2B,CAC/DC,SAAU,CAAE,IAELC,EAAiBC,GAAW,SAAUC,EAAIC,GACjD,IAAIC,EAAYF,EAAGE,UAAWC,EAAQb,EAAOU,EAAI,CAAC,cAClD,OAAQI,EAAK,MAAO7B,EAAS,CAAE0B,IAAKA,EAAKC,UAAWG,EAAGV,EAAuB,CAAE,GAAGO,IAAcC,GACrG,IACAL,EAAeQ,YAAc"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
'use client';
|
1
2
|
var __assign = (this && this.__assign) || function () {
|
2
3
|
__assign = Object.assign || function(t) {
|
3
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -26,7 +27,7 @@ import { cva } from 'class-variance-authority';
|
|
26
27
|
import { TimelineContext } from './TimelineRoot';
|
27
28
|
import { borderColorStyle } from '../../../lib/constants';
|
28
29
|
import { cn } from '../../../lib/utils/utils';
|
29
|
-
export var timelineIconVariants = cva("flex size-3 flex-col rounded-full border-2 bg-white z-
|
30
|
+
export var timelineIconVariants = cva("relative flex size-3 flex-col rounded-full border-2 bg-white z-10", {
|
30
31
|
variants: {
|
31
32
|
color: borderColorStyle(),
|
32
33
|
},
|
@@ -35,8 +36,8 @@ export var timelineIconVariants = cva("flex size-3 flex-col rounded-full border-
|
|
35
36
|
},
|
36
37
|
});
|
37
38
|
export var TimelineIcon = forwardRef(function (_a, ref) {
|
38
|
-
var className = _a.className, props = __rest(_a, ["className"]);
|
39
|
+
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
39
40
|
var color = useContext(TimelineContext).color;
|
40
|
-
return _jsx("div", __assign({ ref: ref, className: cn(timelineIconVariants({ color: color }), className) }, props));
|
41
|
+
return (_jsx("div", __assign({ ref: ref, className: cn(timelineIconVariants({ color: color }), className) }, props, { children: children })));
|
41
42
|
});
|
42
43
|
TimelineIcon.displayName = 'Timeline.Icon';
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use client";
|
2
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as e,useContext as t}from"react";import{cva as o}from"class-variance-authority";import{TimelineContext as n}from"./TimelineRoot.mjs";import{borderColorStyle as i}from"../../constants.mjs";import{cn as l}from"../../utils/utils.mjs";var a=function(){return a=Object.assign||function(r){for(var e,t=1,o=arguments.length;t<o;t++)for(var n in e=arguments[t])Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},a.apply(this,arguments)},c=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t},s=o("relative flex size-3 flex-col rounded-full border-2 bg-white z-10",{variants:{color:i()},defaultVariants:{color:"red"}}),m=e((function(e,o){var i=e.className,m=e.children,f=c(e,["className","children"]),p=t(n).color;return r("div",a({ref:o,className:l(s({color:p}),i)},f,{children:m}))}));m.displayName="Timeline.Icon";export{m as TimelineIcon,s as timelineIconVariants};
|
3
|
+
//# sourceMappingURL=TimelineIcon.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TimelineIcon.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -24,7 +24,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
24
24
|
import { forwardRef } from 'react';
|
25
25
|
import { cva } from 'class-variance-authority';
|
26
26
|
import { cn } from '../../../lib/utils/utils';
|
27
|
-
export var timelineItemVariants = cva('
|
27
|
+
export var timelineItemVariants = cva('flex flex-col p-6 pt-3 [&>*]:mb-3', {
|
28
28
|
variants: {},
|
29
29
|
});
|
30
30
|
export var TimelineItem = forwardRef(function (_a, ref) {
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{jsx as r}from"react/jsx-runtime";import{forwardRef as t}from"react";import{cva as e}from"class-variance-authority";import{cn as o}from"../../utils/utils.mjs";var a=function(){return a=Object.assign||function(r){for(var t,e=1,o=arguments.length;e<o;e++)for(var a in t=arguments[e])Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a]);return r},a.apply(this,arguments)},n=function(r,t){var e={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&t.indexOf(o)<0&&(e[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(o=Object.getOwnPropertySymbols(r);a<o.length;a++)t.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(e[o[a]]=r[o[a]])}return e},i=e("flex flex-col p-6 pt-3 [&>*]:mb-3",{variants:{}}),l=t((function(t,e){var l=t.className,p=n(t,["className"]);return r("li",a({ref:e,className:o(i({}),l)},p))}));l.displayName="Timeline.Item";export{l as TimelineItem,i as timelineItemVariants};
|
2
|
+
//# sourceMappingURL=TimelineItem.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TimelineItem.mjs","sources":["../../../lib/components/Timeline/TimelineItem.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { cn } from '../../../lib/utils/utils';\nexport var timelineItemVariants = cva('flex flex-col p-6 pt-3 [&>*]:mb-3', {\n variants: {},\n});\nexport var TimelineItem = forwardRef(function (_a, ref) {\n var className = _a.className, props = __rest(_a, [\"className\"]);\n return (_jsx(\"li\", __assign({ ref: ref, className: cn(timelineItemVariants({}), className) }, props)));\n});\nTimelineItem.displayName = 'Timeline.Item';\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","timelineItemVariants","cva","variants","TimelineItem","forwardRef","_a","ref","className","props","_jsx","cn","displayName"],"mappings":"qKAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAKWiB,EAAuBC,EAAI,oCAAqC,CACvEC,SAAU,CAAE,IAELC,EAAeC,GAAW,SAAUC,EAAIC,GAC/C,IAAIC,EAAYF,EAAGE,UAAWC,EAAQb,EAAOU,EAAI,CAAC,cAClD,OAAQI,EAAK,KAAM7B,EAAS,CAAE0B,IAAKA,EAAKC,UAAWG,EAAGV,EAAqB,CAAE,GAAGO,IAAcC,GAClG,IACAL,EAAaQ,YAAc"}
|
@@ -23,16 +23,17 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
23
23
|
};
|
24
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
25
25
|
import { forwardRef, createContext } from 'react';
|
26
|
-
import { cva } from 'class-variance-authority';
|
27
26
|
import { scalingVariants, textColorStyle } from '../../../lib/constants';
|
27
|
+
import { cva } from 'class-variance-authority';
|
28
|
+
import { useTheme } from '../../../lib/theme';
|
28
29
|
import { cn } from '../../../lib/utils/utils';
|
29
|
-
export var timelineRootVariants = cva("flex flex-col
|
30
|
+
export var timelineRootVariants = cva("flex flex-col", {
|
30
31
|
variants: {
|
31
32
|
scaling: __assign({}, scalingVariants),
|
32
33
|
size: {
|
33
|
-
small: 'text-xs',
|
34
|
-
medium: 'text-sm',
|
35
|
-
large: 'text-base',
|
34
|
+
small: 'text-xs w-[350px]',
|
35
|
+
medium: 'text-sm w-[400px]',
|
36
|
+
large: 'text-base w-[450px]',
|
36
37
|
},
|
37
38
|
color: textColorStyle(),
|
38
39
|
},
|
@@ -47,7 +48,12 @@ export var TimelineContext = createContext({
|
|
47
48
|
});
|
48
49
|
export var TimelineRoot = forwardRef(function (_a, ref) {
|
49
50
|
var className = _a.className, scaling = _a.scaling, size = _a.size, color = _a.color, props = __rest(_a, ["className", "scaling", "size", "color"]);
|
50
|
-
var
|
51
|
-
|
51
|
+
var theme = useTheme().theme;
|
52
|
+
var contextValue = {
|
53
|
+
scaling: scaling !== null && scaling !== void 0 ? scaling : theme.themeScaling,
|
54
|
+
color: color !== null && color !== void 0 ? color : theme.themeColor,
|
55
|
+
size: size,
|
56
|
+
};
|
57
|
+
return (_jsx(TimelineContext.Provider, { value: contextValue, children: _jsx("ol", __assign({ ref: ref, className: cn(timelineRootVariants(contextValue), className) }, props)) }));
|
52
58
|
});
|
53
59
|
TimelineRoot.displayName = 'Timeline.Root';
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use client";
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import{createContext as r,forwardRef as t}from"react";import{scalingVariants as o,textColorStyle as l}from"../../constants.mjs";import{cva as a}from"class-variance-authority";import{useTheme as i}from"../../theme/ThemeProvider.mjs";import{cn as n}from"../../utils/utils.mjs";var s=function(){return s=Object.assign||function(e){for(var r,t=1,o=arguments.length;t<o;t++)for(var l in r=arguments[t])Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l]);return e},s.apply(this,arguments)},c=function(e,r){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)r.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(t[o[l]]=e[o[l]])}return t},m=a("flex flex-col",{variants:{scaling:s({},o),size:{small:"text-xs w-[350px]",medium:"text-sm w-[400px]",large:"text-base w-[450px]"},color:l()},defaultVariants:{scaling:"100%",size:"medium",color:"red"}}),p=r({color:"red"}),f=t((function(r,t){var o=r.className,l=r.scaling,a=r.size,f=r.color,u=c(r,["className","scaling","size","color"]),y=i().theme,x={scaling:null!=l?l:y.themeScaling,color:null!=f?f:y.themeColor,size:a};return e(p.Provider,{value:x,children:e("ol",s({ref:t,className:n(m(x),o)},u))})}));f.displayName="Timeline.Root";export{p as TimelineContext,f as TimelineRoot,m as timelineRootVariants};
|
3
|
+
//# sourceMappingURL=TimelineRoot.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TimelineRoot.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -2,5 +2,7 @@ import React from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
3
3
|
export interface TimelineTimeProps extends VariantProps<typeof timelineTimeVariants> {
|
4
4
|
}
|
5
|
-
export declare const timelineTimeVariants: (props?: ({
|
5
|
+
export declare const timelineTimeVariants: (props?: ({
|
6
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
6
8
|
export declare const TimelineTime: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLParagraphElement> & React.RefAttributes<HTMLParagraphElement>>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
'use client';
|
1
2
|
var __assign = (this && this.__assign) || function () {
|
2
3
|
__assign = Object.assign || function(t) {
|
3
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -21,14 +22,25 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
21
22
|
return t;
|
22
23
|
};
|
23
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
+
import { forwardRef, useContext } from 'react';
|
25
26
|
import { cva } from 'class-variance-authority';
|
27
|
+
import { TimelineContext } from './TimelineRoot';
|
26
28
|
import { cn } from '../../../lib/utils/utils';
|
27
|
-
export var timelineTimeVariants = cva('
|
28
|
-
variants: {
|
29
|
+
export var timelineTimeVariants = cva('flex-6 font-medium text-right leading-none text-slate-11 dark:text-slateDark-11', {
|
30
|
+
variants: {
|
31
|
+
size: {
|
32
|
+
small: 'text-[11px]',
|
33
|
+
medium: 'text-xs',
|
34
|
+
large: 'text-sm',
|
35
|
+
},
|
36
|
+
},
|
37
|
+
defaultVariants: {
|
38
|
+
size: 'medium',
|
39
|
+
},
|
29
40
|
});
|
30
41
|
export var TimelineTime = forwardRef(function (_a, ref) {
|
31
42
|
var className = _a.className, props = __rest(_a, ["className"]);
|
32
|
-
|
43
|
+
var size = useContext(TimelineContext).size;
|
44
|
+
return _jsx("p", __assign({ ref: ref, className: cn(timelineTimeVariants({ size: size }), className) }, props));
|
33
45
|
});
|
34
46
|
TimelineTime.displayName = 'Timeline.Time';
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use client";
|
2
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as e,useContext as r}from"react";import{cva as a}from"class-variance-authority";import{TimelineContext as i}from"./TimelineRoot.mjs";import{cn as o}from"../../utils/utils.mjs";var n=function(){return n=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},n.apply(this,arguments)},s=function(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(t);i<a.length;i++)e.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(t,a[i])&&(r[a[i]]=t[a[i]])}return r},l=a("flex-6 font-medium text-right leading-none text-slate-11 dark:text-slateDark-11",{variants:{size:{small:"text-[11px]",medium:"text-xs",large:"text-sm"}},defaultVariants:{size:"medium"}}),m=e((function(e,a){var m=e.className,p=s(e,["className"]),f=r(i).size;return t("p",n({ref:a,className:o(l({size:f}),m)},p))}));m.displayName="Timeline.Time";export{m as TimelineTime,l as timelineTimeVariants};
|
3
|
+
//# sourceMappingURL=TimelineTime.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TimelineTime.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -2,5 +2,7 @@ import React from 'react';
|
|
2
2
|
import { VariantProps } from 'class-variance-authority';
|
3
3
|
export interface TimelineTitleProps extends VariantProps<typeof timelineTitleVariants> {
|
4
4
|
}
|
5
|
-
export declare const timelineTitleVariants: (props?: ({
|
5
|
+
export declare const timelineTitleVariants: (props?: ({
|
6
|
+
size?: "small" | "medium" | "large" | null | undefined;
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
6
8
|
export declare const TimelineTitle: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLHeadingElement> & React.RefAttributes<HTMLHeadingElement>>;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
'use client';
|
1
2
|
var __assign = (this && this.__assign) || function () {
|
2
3
|
__assign = Object.assign || function(t) {
|
3
4
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
@@ -21,14 +22,25 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
21
22
|
return t;
|
22
23
|
};
|
23
24
|
import { jsx as _jsx } from "react/jsx-runtime";
|
24
|
-
import { forwardRef } from 'react';
|
25
|
+
import { forwardRef, useContext } from 'react';
|
25
26
|
import { cva } from 'class-variance-authority';
|
27
|
+
import { TimelineContext } from './TimelineRoot';
|
26
28
|
import { cn } from '../../../lib/utils/utils';
|
27
|
-
export var timelineTitleVariants = cva("font-normal leading-none tracking-tight text-slate-12 dark:text-slateDark-12", {
|
28
|
-
variants: {
|
29
|
+
export var timelineTitleVariants = cva("flex-6 font-normal leading-none tracking-tight text-slate-12 dark:text-slateDark-12", {
|
30
|
+
variants: {
|
31
|
+
size: {
|
32
|
+
small: 'text-xs',
|
33
|
+
medium: 'text-sm',
|
34
|
+
large: 'text-base',
|
35
|
+
},
|
36
|
+
},
|
37
|
+
defaultVariants: {
|
38
|
+
size: 'medium',
|
39
|
+
},
|
29
40
|
});
|
30
41
|
export var TimelineTitle = forwardRef(function (_a, ref) {
|
31
42
|
var className = _a.className, children = _a.children, props = __rest(_a, ["className", "children"]);
|
32
|
-
|
43
|
+
var size = useContext(TimelineContext).size;
|
44
|
+
return (_jsx("h3", __assign({ ref: ref, className: cn(timelineTitleVariants({ size: size }), className) }, props, { children: children })));
|
33
45
|
});
|
34
46
|
TimelineTitle.displayName = 'Timeline.Title';
|
@@ -0,0 +1,3 @@
|
|
1
|
+
"use client";
|
2
|
+
import{jsx as t}from"react/jsx-runtime";import{forwardRef as e,useContext as r}from"react";import{cva as a}from"class-variance-authority";import{TimelineContext as i}from"./TimelineRoot.mjs";import{cn as n}from"../../utils/utils.mjs";var o=function(){return o=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var i in e=arguments[r])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},o.apply(this,arguments)},l=function(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(a=Object.getOwnPropertySymbols(t);i<a.length;i++)e.indexOf(a[i])<0&&Object.prototype.propertyIsEnumerable.call(t,a[i])&&(r[a[i]]=t[a[i]])}return r},s=a("flex-6 font-normal leading-none tracking-tight text-slate-12 dark:text-slateDark-12",{variants:{size:{small:"text-xs",medium:"text-sm",large:"text-base"}},defaultVariants:{size:"medium"}}),m=e((function(e,a){var m=e.className,c=e.children,f=l(e,["className","children"]),p=r(i).size;return t("h3",o({ref:a,className:n(s({size:p}),m)},f,{children:c}))}));m.displayName="Timeline.Title";export{m as TimelineTitle,s as timelineTitleVariants};
|
3
|
+
//# sourceMappingURL=TimelineTitle.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"TimelineTitle.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{TimelineRoot as m}from"./TimelineRoot.mjs";import{TimelineItem as e}from"./TimelineItem.mjs";import{TimelineConnector as i}from"./TimelineConnector.mjs";import{TimelineHeader as o}from"./TimelineHeader.mjs";import{TimelineTime as r}from"./TimelineTime.mjs";import{TimelineIcon as t}from"./TimelineIcon.mjs";import{TimelineTitle as n}from"./TimelineTitle.mjs";import{TimelineContent as T}from"./TimelineContent.mjs";import{TimelineDescription as l}from"./TimelineDescription.mjs";var p={Root:m,Item:e,Connector:i,Header:o,Time:r,Icon:t,Title:n,Content:T,Description:l};export{p as default};
|
2
|
+
//# sourceMappingURL=index.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../../../lib/components/Timeline/index.js"],"sourcesContent":["import { TimelineRoot as Root } from './TimelineRoot';\nimport { TimelineItem as Item } from './TimelineItem';\nimport { TimelineConnector as Connector } from './TimelineConnector';\nimport { TimelineHeader as Header } from './TimelineHeader';\nimport { TimelineTime as Time } from './TimelineTime';\nimport { TimelineIcon as Icon } from './TimelineIcon';\nimport { TimelineTitle as Title } from './TimelineTitle';\nimport { TimelineContent as Content } from './TimelineContent';\nimport { TimelineDescription as Description } from './TimelineDescription';\nvar Timeline = {\n Root: Root,\n Item: Item,\n Connector: Connector,\n Header: Header,\n Time: Time,\n Icon: Icon,\n Title: Title,\n Content: Content,\n Description: Description,\n};\nexport default Timeline;\n"],"names":["Timeline","Root","Item","Connector","Header","Time","Icon","Title","Content","Description"],"mappings":"seASG,IAACA,EAAW,CACXC,KAAMA,EACNC,KAAMA,EACNC,UAAWA,EACXC,OAAQA,EACRC,KAAMA,EACNC,KAAMA,EACNC,MAAOA,EACPC,QAASA,EACTC,YAAaA"}
|