@intlayer/design-system 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +30 -0
- package/dist/.vite/manifest.json +953 -0
- package/dist/MarkDownRender-BeQGOIow.cjs +14 -0
- package/dist/MarkDownRender-gURA8GAt.js +315 -0
- package/dist/StringWrapper-CW70GPXq.js +28 -0
- package/dist/StringWrapper-DUDqtkwz.cjs +1 -0
- package/dist/check-BLEiR8OY.js +12 -0
- package/dist/check-rhNgx2ZQ.cjs +6 -0
- package/dist/components/Accordion/Accordion.cjs.js +8 -0
- package/dist/components/Accordion/Accordion.d.ts +10 -0
- package/dist/components/Accordion/Accordion.es.js +48 -0
- package/dist/components/Accordion/index.cjs.js +1 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.es.js +5 -0
- package/dist/components/Avatar/index.cjs.js +6 -0
- package/dist/components/Avatar/index.d.ts +9 -0
- package/dist/components/Avatar/index.es.js +71 -0
- package/dist/components/Button/index.cjs.js +6 -0
- package/dist/components/Button/index.d.ts +22 -0
- package/dist/components/Button/index.es.js +306 -0
- package/dist/components/Container/index.cjs.js +7 -0
- package/dist/components/Container/index.d.ts +23 -0
- package/dist/components/Container/index.es.js +152 -0
- package/dist/components/ContentEditor/ContentEditor.cjs.js +5 -0
- package/dist/components/ContentEditor/ContentEditor.d.ts +8 -0
- package/dist/components/ContentEditor/ContentEditor.es.js +75 -0
- package/dist/components/ContentEditor/index.cjs.js +1 -0
- package/dist/components/ContentEditor/index.d.ts +1 -0
- package/dist/components/ContentEditor/index.es.js +5 -0
- package/dist/components/ContentSelector/ContentSelector.cjs.js +1 -0
- package/dist/components/ContentSelector/ContentSelector.d.ts +11 -0
- package/dist/components/ContentSelector/ContentSelector.es.js +14 -0
- package/dist/components/ContentSelector/index.cjs.js +1 -0
- package/dist/components/ContentSelector/index.d.ts +1 -0
- package/dist/components/ContentSelector/index.es.js +5 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs.js +1 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +20 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.es.js +25 -0
- package/dist/components/DictionaryEditor/ItemLayout.cjs.js +1 -0
- package/dist/components/DictionaryEditor/ItemLayout.d.ts +16 -0
- package/dist/components/DictionaryEditor/ItemLayout.es.js +81 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.es.js +10 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.es.js +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.es.js +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts +8 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.es.js +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.es.js +7 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +19 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.es.js +9 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.js +1 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts +10 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.es.js +40 -0
- package/dist/components/DictionaryEditor/index.cjs.js +1 -0
- package/dist/components/DictionaryEditor/index.d.ts +1 -0
- package/dist/components/DictionaryEditor/index.es.js +5 -0
- package/dist/components/DropDown/index.cjs.js +5 -0
- package/dist/components/DropDown/index.d.ts +3 -0
- package/dist/components/DropDown/index.es.js +50 -0
- package/dist/components/DropDown/types.cjs.js +1 -0
- package/dist/components/DropDown/types.d.ts +15 -0
- package/dist/components/DropDown/types.es.js +1 -0
- package/dist/components/Footer/index.cjs.js +1 -0
- package/dist/components/Footer/index.d.ts +17 -0
- package/dist/components/Footer/index.es.js +64 -0
- package/dist/components/Headers/index.cjs.js +1 -0
- package/dist/components/Headers/index.d.ts +5 -0
- package/dist/components/Headers/index.es.js +35 -0
- package/dist/components/IDE/CodeRender.cjs.js +11 -0
- package/dist/components/IDE/CodeRender.d.ts +10 -0
- package/dist/components/IDE/CodeRender.es.js +833 -0
- package/dist/components/IDE/IDE.cjs.js +1 -0
- package/dist/components/IDE/IDE.d.ts +10 -0
- package/dist/components/IDE/IDE.es.js +124 -0
- package/dist/components/IDE/MarkDownRender.cjs.js +1 -0
- package/dist/components/IDE/MarkDownRender.d.ts +8 -0
- package/dist/components/IDE/MarkDownRender.es.js +7 -0
- package/dist/components/IDE/index.cjs.js +1 -0
- package/dist/components/IDE/index.d.ts +2 -0
- package/dist/components/IDE/index.es.js +7 -0
- package/dist/components/Loader/index.cjs.js +1 -0
- package/dist/components/Loader/index.d.ts +6 -0
- package/dist/components/Loader/index.es.js +21 -0
- package/dist/components/Loader/spinner.cjs.js +1 -0
- package/dist/components/Loader/spinner.d.ts +7 -0
- package/dist/components/Loader/spinner.es.js +22 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.js +6 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +11 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.es.js +571 -0
- package/dist/components/LocaleSwitcherDropDown/index.cjs.js +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.d.ts +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.es.js +5 -0
- package/dist/components/Logo/LogoCircle.cjs.js +1 -0
- package/dist/components/Logo/LogoCircle.d.ts +4 -0
- package/dist/components/Logo/LogoCircle.es.js +12 -0
- package/dist/components/Logo/LogoNoFrame.cjs.js +1 -0
- package/dist/components/Logo/LogoNoFrame.d.ts +4 -0
- package/dist/components/Logo/LogoNoFrame.es.js +28 -0
- package/dist/components/Logo/LogoSquare.cjs.js +1 -0
- package/dist/components/Logo/LogoSquare.d.ts +4 -0
- package/dist/components/Logo/LogoSquare.es.js +12 -0
- package/dist/components/Logo/LogoSquircle.cjs.js +1 -0
- package/dist/components/Logo/LogoSquircle.d.ts +4 -0
- package/dist/components/Logo/LogoSquircle.es.js +17 -0
- package/dist/components/Logo/LogoTextOnly.cjs.js +1 -0
- package/dist/components/Logo/LogoTextOnly.d.ts +4 -0
- package/dist/components/Logo/LogoTextOnly.es.js +28 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.es.js +30 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.es.js +28 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.es.js +17 -0
- package/dist/components/Logo/LogoWithTextCircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextCircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextCircle.es.js +51 -0
- package/dist/components/Logo/LogoWithTextNoFrame.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextNoFrame.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextNoFrame.es.js +28 -0
- package/dist/components/Logo/LogoWithTextSquircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextSquircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextSquircle.es.js +17 -0
- package/dist/components/Logo/index.cjs.js +1 -0
- package/dist/components/Logo/index.d.ts +20 -0
- package/dist/components/Logo/index.es.js +65 -0
- package/dist/components/MarkDownRender/index.cjs.js +1 -0
- package/dist/components/MarkDownRender/index.d.ts +8 -0
- package/dist/components/MarkDownRender/index.es.js +84 -0
- package/dist/components/MaxHeightSmoother/index.cjs.js +6 -0
- package/dist/components/MaxHeightSmoother/index.d.ts +11 -0
- package/dist/components/MaxHeightSmoother/index.es.js +52 -0
- package/dist/components/MaxWidthSmoother/index.cjs.js +6 -0
- package/dist/components/MaxWidthSmoother/index.d.ts +11 -0
- package/dist/components/MaxWidthSmoother/index.es.js +39 -0
- package/dist/components/Modal/index.cjs.js +1 -0
- package/dist/components/Modal/index.d.ts +9 -0
- package/dist/components/Modal/index.es.js +64 -0
- package/dist/components/Navbar/Burger.cjs.js +1 -0
- package/dist/components/Navbar/Burger.d.ts +7 -0
- package/dist/components/Navbar/Burger.es.js +84 -0
- package/dist/components/Navbar/DesktopNavbar.cjs.js +7 -0
- package/dist/components/Navbar/DesktopNavbar.d.ts +10 -0
- package/dist/components/Navbar/DesktopNavbar.es.js +76 -0
- package/dist/components/Navbar/MobileNavbar.cjs.js +9 -0
- package/dist/components/Navbar/MobileNavbar.d.ts +12 -0
- package/dist/components/Navbar/MobileNavbar.es.js +199 -0
- package/dist/components/Navbar/index.cjs.js +1 -0
- package/dist/components/Navbar/index.d.ts +20 -0
- package/dist/components/Navbar/index.es.js +25 -0
- package/dist/components/Navbar/useNavigation.cjs.js +1 -0
- package/dist/components/Navbar/useNavigation.d.ts +5 -0
- package/dist/components/Navbar/useNavigation.es.js +39 -0
- package/dist/components/Popover/index.cjs.js +1 -0
- package/dist/components/Popover/index.d.ts +8 -0
- package/dist/components/Popover/index.es.js +48 -0
- package/dist/components/PressableDiv/PressableDiv.cjs.js +1 -0
- package/dist/components/PressableDiv/PressableDiv.d.ts +10 -0
- package/dist/components/PressableDiv/PressableDiv.es.js +62 -0
- package/dist/components/PressableDiv/index.cjs.js +1 -0
- package/dist/components/PressableDiv/index.d.ts +1 -0
- package/dist/components/PressableDiv/index.es.js +5 -0
- package/dist/components/ProfileDropDown/index.cjs.js +6 -0
- package/dist/components/ProfileDropDown/index.d.ts +6 -0
- package/dist/components/ProfileDropDown/index.es.js +37 -0
- package/dist/components/RedirectionButton/RedirectionButton.cjs.js +6 -0
- package/dist/components/RedirectionButton/RedirectionButton.d.ts +8 -0
- package/dist/components/RedirectionButton/RedirectionButton.es.js +42 -0
- package/dist/components/RedirectionButton/index.cjs.js +1 -0
- package/dist/components/RedirectionButton/index.d.ts +1 -0
- package/dist/components/RedirectionButton/index.es.js +5 -0
- package/dist/components/RightDrawer/RightDrawer.cjs.js +8 -0
- package/dist/components/RightDrawer/RightDrawer.d.ts +16 -0
- package/dist/components/RightDrawer/RightDrawer.es.js +118 -0
- package/dist/components/RightDrawer/index.cjs.js +1 -0
- package/dist/components/RightDrawer/index.d.ts +2 -0
- package/dist/components/RightDrawer/index.es.js +8 -0
- package/dist/components/RightDrawer/useRightDrawerStore.cjs.js +1 -0
- package/dist/components/RightDrawer/useRightDrawerStore.d.ts +8 -0
- package/dist/components/RightDrawer/useRightDrawerStore.es.js +15 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts +10 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.es.js +69 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts +10 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.es.js +65 -0
- package/dist/components/ThemeSwitcherDropDown/index.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/index.d.ts +3 -0
- package/dist/components/ThemeSwitcherDropDown/index.es.js +9 -0
- package/dist/components/ThemeSwitcherDropDown/types.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/types.d.ts +5 -0
- package/dist/components/ThemeSwitcherDropDown/types.es.js +5 -0
- package/dist/components/index.cjs.js +1 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.es.js +61 -0
- package/dist/createLucideIcon-DlZEiEGq.js +80 -0
- package/dist/createLucideIcon-ZOnO-fn6.cjs +21 -0
- package/dist/hooks/index.cjs.js +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.es.js +13 -0
- package/dist/hooks/useDevice.cjs.js +1 -0
- package/dist/hooks/useDevice.d.ts +8 -0
- package/dist/hooks/useDevice.es.js +48 -0
- package/dist/hooks/useGetElementOrWindow.cjs.js +1 -0
- package/dist/hooks/useGetElementOrWindow.d.ts +1 -0
- package/dist/hooks/useGetElementOrWindow.es.js +11 -0
- package/dist/hooks/useIsMounted.cjs.js +1 -0
- package/dist/hooks/useIsMounted.d.ts +1 -0
- package/dist/hooks/useIsMounted.es.js +11 -0
- package/dist/hooks/useScrollBlockage/index.cjs.js +1 -0
- package/dist/hooks/useScrollBlockage/index.d.ts +14 -0
- package/dist/hooks/useScrollBlockage/index.es.js +24 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.cjs.js +1 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.d.ts +12 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.es.js +40 -0
- package/dist/hooks/useScrollDetection.cjs.js +1 -0
- package/dist/hooks/useScrollDetection.d.ts +13 -0
- package/dist/hooks/useScrollDetection.es.js +41 -0
- package/dist/index-B2ncVbtX.cjs +1 -0
- package/dist/index-D-PWvdb-.js +91 -0
- package/dist/intlayer-editor/src/client/renderContentEditor.d.ts +14 -0
- package/dist/jsx-runtime-D6agescH.cjs +30 -0
- package/dist/jsx-runtime-Tw_Kw2GZ.js +638 -0
- package/dist/localeList-CaRF-907.js +300 -0
- package/dist/localeList-DlUgKn8J.cjs +1 -0
- package/dist/motion-BuKul-u9.cjs +1 -0
- package/dist/motion-CP5YERk7.js +4517 -0
- package/dist/styled-components.browser.esm-D6kkzXl4.js +1085 -0
- package/dist/styled-components.browser.esm-GqWwDlfY.cjs +58 -0
- package/dist/sun-BQYZHcpc.cjs +16 -0
- package/dist/sun-BrKC5Qwg.js +49 -0
- package/dist/utils/capitalize.cjs.js +1 -0
- package/dist/utils/capitalize.d.ts +1 -0
- package/dist/utils/capitalize.es.js +5 -0
- package/dist/utils/cn.cjs.js +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.es.js +2338 -0
- package/dist/x-BKwnSvvj.js +15 -0
- package/dist/x-DIXoN4xe.cjs +6 -0
- package/package.json +84 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { LucideIcon } from 'lucide-react';
|
|
2
|
+
import { ButtonHTMLAttributes, DetailedHTMLProps, FC } from 'react';
|
|
3
|
+
|
|
4
|
+
type Variant = 'default' | 'outline' | 'link' | 'invisible-link' | 'none';
|
|
5
|
+
type Color = 'primary' | 'secondary' | 'destructive' | 'neutral' | 'light' | 'dark' | 'text';
|
|
6
|
+
type Size = 'sm' | 'lg' | 'icon';
|
|
7
|
+
export type ButtonProps = DetailedHTMLProps<ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> & {
|
|
8
|
+
/**
|
|
9
|
+
* Optional icon to be displayed on the button
|
|
10
|
+
*/
|
|
11
|
+
Icon?: FC | LucideIcon;
|
|
12
|
+
iconClassName?: string;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
isActive?: boolean;
|
|
15
|
+
isDisabled?: boolean;
|
|
16
|
+
label: string;
|
|
17
|
+
variant?: Variant;
|
|
18
|
+
color?: Color;
|
|
19
|
+
size?: Size;
|
|
20
|
+
};
|
|
21
|
+
export declare const Button: import('react').ForwardRefExoticComponent<Omit<ButtonProps, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as r } from "../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import { p as o } from "../../styled-components.browser.esm-D6kkzXl4.js";
|
|
4
|
+
import { forwardRef as h } from "react";
|
|
5
|
+
import { Loader as s } from "../Loader/index.es.js";
|
|
6
|
+
const v = {
|
|
7
|
+
sm: {
|
|
8
|
+
height: "2rem",
|
|
9
|
+
gap: "0.25rem",
|
|
10
|
+
paddingLeft: "0.75rem",
|
|
11
|
+
paddingRight: "0.75rem",
|
|
12
|
+
fontSize: "0.75rem",
|
|
13
|
+
lineHeight: "1rem"
|
|
14
|
+
},
|
|
15
|
+
lg: {
|
|
16
|
+
height: "2.5rem",
|
|
17
|
+
paddingLeft: "2rem",
|
|
18
|
+
paddingRight: "2rem"
|
|
19
|
+
},
|
|
20
|
+
icon: {
|
|
21
|
+
padding: "0px"
|
|
22
|
+
}
|
|
23
|
+
}, k = {
|
|
24
|
+
primary: {
|
|
25
|
+
"--tw-border-opacity": "1",
|
|
26
|
+
borderColor: "rgba(232, 121, 249, var(--tw-border-opacity))",
|
|
27
|
+
"--tw-bg-opacity": "1",
|
|
28
|
+
backgroundColor: "rgba(232, 121, 249, var(--tw-bg-opacity))",
|
|
29
|
+
"--tw-text-opacity": "1",
|
|
30
|
+
color: "rgba(232, 121, 249, var(--tw-text-opacity))",
|
|
31
|
+
"&:hover": {
|
|
32
|
+
"--tw-bg-opacity": "1",
|
|
33
|
+
backgroundColor: "rgba(197, 101, 212, var(--tw-bg-opacity))"
|
|
34
|
+
},
|
|
35
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
36
|
+
"--tw-border-opacity": "1",
|
|
37
|
+
borderColor: "rgba(232, 121, 249, var(--tw-border-opacity))",
|
|
38
|
+
"--tw-bg-opacity": "1",
|
|
39
|
+
backgroundColor: "rgba(232, 121, 249, var(--tw-bg-opacity))",
|
|
40
|
+
"--tw-text-opacity": "1",
|
|
41
|
+
color: "rgba(232, 121, 249, var(--tw-text-opacity))"
|
|
42
|
+
},
|
|
43
|
+
'&:hover:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
44
|
+
"--tw-bg-opacity": "1",
|
|
45
|
+
backgroundColor: "rgba(241, 171, 252, var(--tw-bg-opacity))"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
secondary: {
|
|
49
|
+
"--tw-border-opacity": "1",
|
|
50
|
+
borderColor: "rgba(255, 230, 109, var(--tw-border-opacity))",
|
|
51
|
+
"--tw-bg-opacity": "1",
|
|
52
|
+
backgroundColor: "rgba(255, 230, 109, var(--tw-bg-opacity))",
|
|
53
|
+
"--tw-text-opacity": "1",
|
|
54
|
+
color: "rgba(255, 230, 109, var(--tw-text-opacity))",
|
|
55
|
+
"&:hover": {
|
|
56
|
+
"--tw-bg-opacity": "1",
|
|
57
|
+
backgroundColor: "rgba(255, 216, 69, var(--tw-bg-opacity))"
|
|
58
|
+
},
|
|
59
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
60
|
+
"--tw-border-opacity": "1",
|
|
61
|
+
borderColor: "rgba(255, 230, 109, var(--tw-border-opacity))",
|
|
62
|
+
"--tw-bg-opacity": "1",
|
|
63
|
+
backgroundColor: "rgba(255, 230, 109, var(--tw-bg-opacity))",
|
|
64
|
+
"--tw-text-opacity": "1",
|
|
65
|
+
color: "rgba(255, 230, 109, var(--tw-text-opacity))"
|
|
66
|
+
},
|
|
67
|
+
'&:hover:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
68
|
+
"--tw-bg-opacity": "1",
|
|
69
|
+
backgroundColor: "rgba(255, 246, 194, var(--tw-bg-opacity))"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
destructive: {
|
|
73
|
+
"--tw-border-opacity": "1",
|
|
74
|
+
borderColor: "rgba(251, 125, 60, var(--tw-border-opacity))",
|
|
75
|
+
"--tw-bg-opacity": "1",
|
|
76
|
+
backgroundColor: "rgba(251, 125, 60, var(--tw-bg-opacity))",
|
|
77
|
+
"--tw-text-opacity": "1",
|
|
78
|
+
color: "rgba(251, 125, 60, var(--tw-text-opacity))",
|
|
79
|
+
"&:hover": {
|
|
80
|
+
"--tw-bg-opacity": "1",
|
|
81
|
+
backgroundColor: "rgba(249, 90, 22, var(--tw-bg-opacity))"
|
|
82
|
+
},
|
|
83
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
84
|
+
"--tw-border-opacity": "1",
|
|
85
|
+
borderColor: "rgba(251, 125, 60, var(--tw-border-opacity))",
|
|
86
|
+
"--tw-bg-opacity": "1",
|
|
87
|
+
backgroundColor: "rgba(251, 125, 60, var(--tw-bg-opacity))"
|
|
88
|
+
},
|
|
89
|
+
'&:hover:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
90
|
+
"--tw-bg-opacity": "1",
|
|
91
|
+
backgroundColor: "rgba(254, 206, 170, var(--tw-bg-opacity))"
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
neutral: {
|
|
95
|
+
"--tw-border-opacity": "1",
|
|
96
|
+
borderColor: "rgba(93, 93, 93, var(--tw-border-opacity))",
|
|
97
|
+
"--tw-bg-opacity": "1",
|
|
98
|
+
backgroundColor: "rgba(93, 93, 93, var(--tw-bg-opacity))",
|
|
99
|
+
"--tw-text-opacity": "1",
|
|
100
|
+
color: "rgba(93, 93, 93, var(--tw-text-opacity))",
|
|
101
|
+
"&:hover": {
|
|
102
|
+
"--tw-bg-opacity": "1",
|
|
103
|
+
backgroundColor: "rgba(136, 136, 136, var(--tw-bg-opacity))"
|
|
104
|
+
},
|
|
105
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
106
|
+
"--tw-border-opacity": "1",
|
|
107
|
+
borderColor: "rgba(136, 136, 136, var(--tw-border-opacity))",
|
|
108
|
+
"--tw-text-opacity": "1",
|
|
109
|
+
color: "rgba(136, 136, 136, var(--tw-text-opacity))"
|
|
110
|
+
},
|
|
111
|
+
'&:hover:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
112
|
+
"--tw-bg-opacity": "1",
|
|
113
|
+
backgroundColor: "rgba(109, 109, 109, var(--tw-bg-opacity))"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
light: {
|
|
117
|
+
"--tw-border-opacity": "1",
|
|
118
|
+
borderColor: "rgba(255, 255, 255, var(--tw-border-opacity))",
|
|
119
|
+
"--tw-bg-opacity": "1",
|
|
120
|
+
backgroundColor: "rgba(255, 255, 255, var(--tw-bg-opacity))",
|
|
121
|
+
"--tw-text-opacity": "1",
|
|
122
|
+
color: "rgba(255, 255, 255, var(--tw-text-opacity))",
|
|
123
|
+
"&:hover": {
|
|
124
|
+
"--tw-bg-opacity": "1",
|
|
125
|
+
backgroundColor: "rgba(246, 246, 246, var(--tw-bg-opacity))"
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
dark: {
|
|
129
|
+
"--tw-border-opacity": "1",
|
|
130
|
+
borderColor: "rgba(69, 69, 69, var(--tw-border-opacity))",
|
|
131
|
+
"--tw-bg-opacity": "1",
|
|
132
|
+
backgroundColor: "rgba(69, 69, 69, var(--tw-bg-opacity))",
|
|
133
|
+
"--tw-text-opacity": "1",
|
|
134
|
+
color: "rgba(69, 69, 69, var(--tw-text-opacity))",
|
|
135
|
+
"&:hover": {
|
|
136
|
+
"--tw-bg-opacity": "1",
|
|
137
|
+
backgroundColor: "rgba(61, 61, 61, var(--tw-bg-opacity))"
|
|
138
|
+
},
|
|
139
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *):hover': {
|
|
140
|
+
"--tw-bg-opacity": "1",
|
|
141
|
+
backgroundColor: "rgba(79, 79, 79, var(--tw-bg-opacity))"
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
text: {
|
|
145
|
+
"--tw-border-opacity": "1",
|
|
146
|
+
borderColor: "rgba(18, 18, 18, var(--tw-border-opacity))",
|
|
147
|
+
"--tw-bg-opacity": "1",
|
|
148
|
+
backgroundColor: "rgba(18, 18, 18, var(--tw-bg-opacity))",
|
|
149
|
+
"--tw-text-opacity": "1",
|
|
150
|
+
color: "rgba(18, 18, 18, var(--tw-text-opacity))",
|
|
151
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
152
|
+
"--tw-border-opacity": "1",
|
|
153
|
+
borderColor: "rgba(255, 245, 237, var(--tw-border-opacity))",
|
|
154
|
+
"--tw-bg-opacity": "1",
|
|
155
|
+
backgroundColor: "rgba(255, 245, 237, var(--tw-bg-opacity))",
|
|
156
|
+
"--tw-text-opacity": "1",
|
|
157
|
+
color: "rgba(255, 245, 237, var(--tw-text-opacity))"
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}, m = {
|
|
161
|
+
default: {
|
|
162
|
+
borderRadius: "0.5rem",
|
|
163
|
+
"--tw-text-opacity": "1",
|
|
164
|
+
color: "rgba(255, 245, 237, var(--tw-text-opacity))",
|
|
165
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
166
|
+
"--tw-text-opacity": "1",
|
|
167
|
+
color: "rgba(28, 28, 28, var(--tw-text-opacity))"
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
none: {
|
|
171
|
+
borderStyle: "none",
|
|
172
|
+
"--tw-bg-opacity": "0",
|
|
173
|
+
color: "inherit",
|
|
174
|
+
"&:hover": {
|
|
175
|
+
"--tw-bg-opacity": "0"
|
|
176
|
+
},
|
|
177
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
178
|
+
"--tw-bg-opacity": "0",
|
|
179
|
+
color: "inherit"
|
|
180
|
+
},
|
|
181
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *):hover': {
|
|
182
|
+
"--tw-bg-opacity": "0"
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
outline: {
|
|
186
|
+
borderRadius: "0.5rem",
|
|
187
|
+
borderWidth: "1.5px",
|
|
188
|
+
"--tw-bg-opacity": "0",
|
|
189
|
+
"&:hover": {
|
|
190
|
+
"--tw-bg-opacity": "0.3"
|
|
191
|
+
},
|
|
192
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
193
|
+
"--tw-bg-opacity": "0"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
link: {
|
|
197
|
+
height: "auto",
|
|
198
|
+
justifyContent: "flex-start",
|
|
199
|
+
borderColor: "inherit",
|
|
200
|
+
backgroundColor: "transparent",
|
|
201
|
+
padding: "0px",
|
|
202
|
+
textUnderlineOffset: "4px",
|
|
203
|
+
"&:hover": {
|
|
204
|
+
backgroundColor: "transparent",
|
|
205
|
+
textDecorationLine: "underline"
|
|
206
|
+
},
|
|
207
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
208
|
+
backgroundColor: "transparent"
|
|
209
|
+
}
|
|
210
|
+
},
|
|
211
|
+
"invisible-link": {
|
|
212
|
+
height: "auto",
|
|
213
|
+
justifyContent: "flex-start",
|
|
214
|
+
borderColor: "inherit",
|
|
215
|
+
backgroundColor: "transparent",
|
|
216
|
+
padding: "0px",
|
|
217
|
+
textUnderlineOffset: "4px",
|
|
218
|
+
"&:hover": {
|
|
219
|
+
backgroundColor: "transparent"
|
|
220
|
+
},
|
|
221
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
222
|
+
backgroundColor: "transparent"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}, u = o.button`
|
|
226
|
+
${{
|
|
227
|
+
display: "inline-flex",
|
|
228
|
+
alignItems: "center",
|
|
229
|
+
justifyContent: "center",
|
|
230
|
+
gap: "0.5rem",
|
|
231
|
+
whiteSpace: "nowrap",
|
|
232
|
+
fontSize: "0.875rem",
|
|
233
|
+
lineHeight: "1.25rem",
|
|
234
|
+
fontWeight: "500",
|
|
235
|
+
transitionProperty: "color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",
|
|
236
|
+
transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
|
|
237
|
+
transitionDuration: "150ms",
|
|
238
|
+
"&:focus-visible": {
|
|
239
|
+
outline: "2px solid transparent",
|
|
240
|
+
outlineOffset: "2px"
|
|
241
|
+
},
|
|
242
|
+
"&:disabled": {
|
|
243
|
+
pointerEvents: "none",
|
|
244
|
+
opacity: "0.5"
|
|
245
|
+
}
|
|
246
|
+
}}
|
|
247
|
+
${({
|
|
248
|
+
$size: t
|
|
249
|
+
}) => v[t]}
|
|
250
|
+
${({
|
|
251
|
+
$color: t
|
|
252
|
+
}) => k[t]}
|
|
253
|
+
${({
|
|
254
|
+
$variant: t
|
|
255
|
+
}) => m[t]}
|
|
256
|
+
`, x = {
|
|
257
|
+
sm: {
|
|
258
|
+
width: "0.75rem"
|
|
259
|
+
},
|
|
260
|
+
lg: {
|
|
261
|
+
width: "1.25rem"
|
|
262
|
+
},
|
|
263
|
+
icon: {
|
|
264
|
+
width: "1.5rem"
|
|
265
|
+
}
|
|
266
|
+
}, C = ({
|
|
267
|
+
Icon: t,
|
|
268
|
+
isLoading: a,
|
|
269
|
+
...e
|
|
270
|
+
}) => a ? /* @__PURE__ */ r.jsx(s, { ...e }) : t && /* @__PURE__ */ r.jsx(t, {}), f = o.div({
|
|
271
|
+
display: "flex",
|
|
272
|
+
width: "100%",
|
|
273
|
+
flexDirection: "row"
|
|
274
|
+
}), j = o.div({
|
|
275
|
+
display: "flex",
|
|
276
|
+
width: "100%",
|
|
277
|
+
flexDirection: "row",
|
|
278
|
+
alignItems: "center",
|
|
279
|
+
justifyContent: "center"
|
|
280
|
+
}), S = o(C)(({
|
|
281
|
+
$size: t
|
|
282
|
+
}) => [x[t], {
|
|
283
|
+
alignSelf: "flex-start"
|
|
284
|
+
}]), $ = h(({
|
|
285
|
+
variant: t = "none",
|
|
286
|
+
size: a = "sm",
|
|
287
|
+
color: e = "primary",
|
|
288
|
+
children: c,
|
|
289
|
+
Icon: d,
|
|
290
|
+
iconClassName: b,
|
|
291
|
+
isLoading: i = !1,
|
|
292
|
+
isActive: n,
|
|
293
|
+
disabled: g,
|
|
294
|
+
label: p,
|
|
295
|
+
...w
|
|
296
|
+
}, y) => {
|
|
297
|
+
const l = t === "link" || t === "invisible-link";
|
|
298
|
+
return /* @__PURE__ */ r.jsx(u, { ref: y, disabled: i ?? g, "aria-current": n, "aria-label": p, "aria-busy": i, role: l ? "link" : void 0, $variant: t, $color: e, $size: a, ...w, children: d ? /* @__PURE__ */ r.jsxs(f, { children: [
|
|
299
|
+
/* @__PURE__ */ r.jsx(S, { className: b, $size: a, isLoading: i, Icon: d }),
|
|
300
|
+
/* @__PURE__ */ r.jsx(j, { children: c })
|
|
301
|
+
] }) : c });
|
|
302
|
+
});
|
|
303
|
+
$.displayName = "Button";
|
|
304
|
+
export {
|
|
305
|
+
$ as Button
|
|
306
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../jsx-runtime-D6agescH.cjs"),p=require("react"),t=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),l=t.pt.div(()=>[{display:"flex",flexDirection:"column",justifyContent:"space-between","--tw-shadow":"0 1px 2px 0 rgb(0 0 0 / 0.05)","--tw-shadow-colored":"0 1px 2px 0 var(--tw-shadow-color)",boxShadow:"var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)","--tw-backdrop-blur":"blur(8px)",backdropFilter:"var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)"},t.ct`
|
|
2
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur)
|
|
3
|
+
var(--tw-backdrop-brightness) var(--tw-backdrop-contrast)
|
|
4
|
+
var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate)
|
|
5
|
+
var(--tw-backdrop-invert) var(--tw-backdrop-opacity)
|
|
6
|
+
var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
7
|
+
`]),h={none:{borderRadius:"0px"},sm:{borderRadius:"0.125rem"},md:{borderRadius:"0.375rem"},lg:{borderRadius:"0.5rem"},xl:{borderRadius:"0.75rem"},"2xl":{borderRadius:"1rem"},"3xl":{borderRadius:"1.5rem"},full:{borderRadius:"9999px"}},w={none:{"--tw-bg-opacity":"1",backgroundColor:"rgba(231, 231, 231, var(--tw-bg-opacity))",'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-bg-opacity":"1",backgroundColor:"rgba(69, 69, 69, var(--tw-bg-opacity))"}},sm:{backgroundColor:"rgba(231, 231, 231, 0.8)",'&:where([data-theme="dark"], [data-theme="dark"] *)':{backgroundColor:"rgba(69, 69, 69, 0.8)"}},md:{backgroundColor:"rgba(231, 231, 231, 0.6)",'&:where([data-theme="dark"], [data-theme="dark"] *)':{backgroundColor:"rgba(69, 69, 69, 0.6)"}},lg:{backgroundColor:"rgba(231, 231, 231, 0.4)",'&:where([data-theme="dark"], [data-theme="dark"] *)':{backgroundColor:"rgba(69, 69, 69, 0.4)"}},xl:{backgroundColor:"rgba(231, 231, 231, 0.2)",'&:where([data-theme="dark"], [data-theme="dark"] *)':{backgroundColor:"rgba(69, 69, 69, 0.2)"}}},v={none:{padding:"0px"},sm:{padding:"0.25rem"},md:{padding:"0.5rem"},lg:{padding:"0.75rem"},xl:{padding:"1rem"}},g={without:{},x:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-x-reverse":"0",borderRightWidth:"calc(1px * var(--tw-divide-x-reverse))",borderLeftWidth:"calc(1px * calc(1 - var(--tw-divide-x-reverse)))",borderStyle:"dashed",borderColor:"rgba(18, 18, 18, 0.2)"},'&:where([data-theme="dark"], [data-theme="dark"] *) > :not([hidden]) ~ :not([hidden])':{borderColor:"rgba(255, 245, 237, 0.2)"}},y:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))",borderStyle:"dashed",borderColor:"rgba(18, 18, 18, 0.2)"},'&:where([data-theme="dark"], [data-theme="dark"] *) > :not([hidden]) ~ :not([hidden])':{borderColor:"rgba(255, 245, 237, 0.2)"}},both:{"> :not([hidden]) ~ :not([hidden])":{"--tw-divide-x-reverse":"0",borderRightWidth:"calc(1px * var(--tw-divide-x-reverse))",borderLeftWidth:"calc(1px * calc(1 - var(--tw-divide-x-reverse)))","--tw-divide-y-reverse":"0",borderTopWidth:"calc(1px * calc(1 - var(--tw-divide-y-reverse)))",borderBottomWidth:"calc(1px * var(--tw-divide-y-reverse))",borderStyle:"dashed",borderColor:"rgba(18, 18, 18, 0.2)"},'&:where([data-theme="dark"], [data-theme="dark"] *) > :not([hidden]) ~ :not([hidden])':{borderColor:"rgba(255, 245, 237, 0.2)"}}},o=({$roundedSize:r="md",$transparency:e="md",$padding:a="none",$separator:d="without"})=>[h[r],w[e],v[a],g[d]],k=t.pt(l)(o),i=p.forwardRef(({children:r,roundedSize:e,padding:a,transparency:d,separator:n,...b},c)=>s.jsxRuntimeExports.jsx(k,{ref:c,$roundedSize:e,$padding:a,$transparency:d,$separator:n,...b,children:r}));i.displayName="Container";exports.Container=i;exports.getContainerStyles=o;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
import { TwStyle } from 'twin.macro';
|
|
3
|
+
|
|
4
|
+
type RoundedSize = 'none' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | 'full';
|
|
5
|
+
type Transparency = 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
6
|
+
type Padding = 'none' | 'sm' | 'md' | 'lg' | 'xl';
|
|
7
|
+
type Separator = 'without' | 'x' | 'y' | 'both';
|
|
8
|
+
type ContainerStyleProps = {
|
|
9
|
+
$roundedSize?: RoundedSize;
|
|
10
|
+
$transparency?: Transparency;
|
|
11
|
+
$padding?: Padding;
|
|
12
|
+
$separator?: Separator;
|
|
13
|
+
};
|
|
14
|
+
export declare const getContainerStyles: ({ $roundedSize, $transparency, $padding, $separator, }: ContainerStyleProps) => TwStyle[];
|
|
15
|
+
export declare const Container: import('react').ForwardRefExoticComponent<{
|
|
16
|
+
roundedSize?: RoundedSize;
|
|
17
|
+
transparency?: Transparency;
|
|
18
|
+
padding?: Padding;
|
|
19
|
+
separator?: Separator;
|
|
20
|
+
} & {
|
|
21
|
+
children?: import('react').ReactNode | undefined;
|
|
22
|
+
} & HTMLAttributes<HTMLDivElement> & import('react').RefAttributes<HTMLDivElement>>;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as b } from "../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import { forwardRef as c } from "react";
|
|
4
|
+
import { p as t, c as s } from "../../styled-components.browser.esm-D6kkzXl4.js";
|
|
5
|
+
const p = t.div(() => [{
|
|
6
|
+
display: "flex",
|
|
7
|
+
flexDirection: "column",
|
|
8
|
+
justifyContent: "space-between",
|
|
9
|
+
"--tw-shadow": "0 1px 2px 0 rgb(0 0 0 / 0.05)",
|
|
10
|
+
"--tw-shadow-colored": "0 1px 2px 0 var(--tw-shadow-color)",
|
|
11
|
+
boxShadow: "var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)",
|
|
12
|
+
"--tw-backdrop-blur": "blur(8px)",
|
|
13
|
+
backdropFilter: "var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)"
|
|
14
|
+
}, s`
|
|
15
|
+
-webkit-backdrop-filter: var(--tw-backdrop-blur)
|
|
16
|
+
var(--tw-backdrop-brightness) var(--tw-backdrop-contrast)
|
|
17
|
+
var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate)
|
|
18
|
+
var(--tw-backdrop-invert) var(--tw-backdrop-opacity)
|
|
19
|
+
var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
|
|
20
|
+
`]), h = {
|
|
21
|
+
none: {
|
|
22
|
+
borderRadius: "0px"
|
|
23
|
+
},
|
|
24
|
+
sm: {
|
|
25
|
+
borderRadius: "0.125rem"
|
|
26
|
+
},
|
|
27
|
+
md: {
|
|
28
|
+
borderRadius: "0.375rem"
|
|
29
|
+
},
|
|
30
|
+
lg: {
|
|
31
|
+
borderRadius: "0.5rem"
|
|
32
|
+
},
|
|
33
|
+
xl: {
|
|
34
|
+
borderRadius: "0.75rem"
|
|
35
|
+
},
|
|
36
|
+
"2xl": {
|
|
37
|
+
borderRadius: "1rem"
|
|
38
|
+
},
|
|
39
|
+
"3xl": {
|
|
40
|
+
borderRadius: "1.5rem"
|
|
41
|
+
},
|
|
42
|
+
full: {
|
|
43
|
+
borderRadius: "9999px"
|
|
44
|
+
}
|
|
45
|
+
}, w = {
|
|
46
|
+
none: {
|
|
47
|
+
"--tw-bg-opacity": "1",
|
|
48
|
+
backgroundColor: "rgba(231, 231, 231, var(--tw-bg-opacity))",
|
|
49
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
50
|
+
"--tw-bg-opacity": "1",
|
|
51
|
+
backgroundColor: "rgba(69, 69, 69, var(--tw-bg-opacity))"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
sm: {
|
|
55
|
+
backgroundColor: "rgba(231, 231, 231, 0.8)",
|
|
56
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
57
|
+
backgroundColor: "rgba(69, 69, 69, 0.8)"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
md: {
|
|
61
|
+
backgroundColor: "rgba(231, 231, 231, 0.6)",
|
|
62
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
63
|
+
backgroundColor: "rgba(69, 69, 69, 0.6)"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
lg: {
|
|
67
|
+
backgroundColor: "rgba(231, 231, 231, 0.4)",
|
|
68
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
69
|
+
backgroundColor: "rgba(69, 69, 69, 0.4)"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
xl: {
|
|
73
|
+
backgroundColor: "rgba(231, 231, 231, 0.2)",
|
|
74
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *)': {
|
|
75
|
+
backgroundColor: "rgba(69, 69, 69, 0.2)"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}, l = {
|
|
79
|
+
none: {
|
|
80
|
+
padding: "0px"
|
|
81
|
+
},
|
|
82
|
+
sm: {
|
|
83
|
+
padding: "0.25rem"
|
|
84
|
+
},
|
|
85
|
+
md: {
|
|
86
|
+
padding: "0.5rem"
|
|
87
|
+
},
|
|
88
|
+
lg: {
|
|
89
|
+
padding: "0.75rem"
|
|
90
|
+
},
|
|
91
|
+
xl: {
|
|
92
|
+
padding: "1rem"
|
|
93
|
+
}
|
|
94
|
+
}, v = {
|
|
95
|
+
without: {},
|
|
96
|
+
x: {
|
|
97
|
+
"> :not([hidden]) ~ :not([hidden])": {
|
|
98
|
+
"--tw-divide-x-reverse": "0",
|
|
99
|
+
borderRightWidth: "calc(1px * var(--tw-divide-x-reverse))",
|
|
100
|
+
borderLeftWidth: "calc(1px * calc(1 - var(--tw-divide-x-reverse)))",
|
|
101
|
+
borderStyle: "dashed",
|
|
102
|
+
borderColor: "rgba(18, 18, 18, 0.2)"
|
|
103
|
+
},
|
|
104
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *) > :not([hidden]) ~ :not([hidden])': {
|
|
105
|
+
borderColor: "rgba(255, 245, 237, 0.2)"
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
y: {
|
|
109
|
+
"> :not([hidden]) ~ :not([hidden])": {
|
|
110
|
+
"--tw-divide-y-reverse": "0",
|
|
111
|
+
borderTopWidth: "calc(1px * calc(1 - var(--tw-divide-y-reverse)))",
|
|
112
|
+
borderBottomWidth: "calc(1px * var(--tw-divide-y-reverse))",
|
|
113
|
+
borderStyle: "dashed",
|
|
114
|
+
borderColor: "rgba(18, 18, 18, 0.2)"
|
|
115
|
+
},
|
|
116
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *) > :not([hidden]) ~ :not([hidden])': {
|
|
117
|
+
borderColor: "rgba(255, 245, 237, 0.2)"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
both: {
|
|
121
|
+
"> :not([hidden]) ~ :not([hidden])": {
|
|
122
|
+
"--tw-divide-x-reverse": "0",
|
|
123
|
+
borderRightWidth: "calc(1px * var(--tw-divide-x-reverse))",
|
|
124
|
+
borderLeftWidth: "calc(1px * calc(1 - var(--tw-divide-x-reverse)))",
|
|
125
|
+
"--tw-divide-y-reverse": "0",
|
|
126
|
+
borderTopWidth: "calc(1px * calc(1 - var(--tw-divide-y-reverse)))",
|
|
127
|
+
borderBottomWidth: "calc(1px * var(--tw-divide-y-reverse))",
|
|
128
|
+
borderStyle: "dashed",
|
|
129
|
+
borderColor: "rgba(18, 18, 18, 0.2)"
|
|
130
|
+
},
|
|
131
|
+
'&:where([data-theme="dark"], [data-theme="dark"] *) > :not([hidden]) ~ :not([hidden])': {
|
|
132
|
+
borderColor: "rgba(255, 245, 237, 0.2)"
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}, g = ({
|
|
136
|
+
$roundedSize: r = "md",
|
|
137
|
+
$transparency: a = "md",
|
|
138
|
+
$padding: e = "none",
|
|
139
|
+
$separator: d = "without"
|
|
140
|
+
}) => [h[r], w[a], l[e], v[d]], k = t(p)(g), m = c(({
|
|
141
|
+
children: r,
|
|
142
|
+
roundedSize: a,
|
|
143
|
+
padding: e,
|
|
144
|
+
transparency: d,
|
|
145
|
+
separator: o,
|
|
146
|
+
...i
|
|
147
|
+
}, n) => /* @__PURE__ */ b.jsx(k, { ref: n, $roundedSize: a, $padding: e, $transparency: d, $separator: o, ...i, children: r }));
|
|
148
|
+
m.displayName = "Container";
|
|
149
|
+
export {
|
|
150
|
+
m as Container,
|
|
151
|
+
g as getContainerStyles
|
|
152
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-D6agescH.cjs"),s=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),l=require("react"),y=require("../../check-rhNgx2ZQ.cjs"),m=require("../../x-DIXoN4xe.cjs"),k=s.pt.div`
|
|
2
|
+
${{margin:"0.75rem",display:"inline",width:"100%",backgroundColor:"transparent",outline:"2px solid transparent",outlineOffset:"2px"}}
|
|
3
|
+
word-break: break-word;
|
|
4
|
+
${({$isEditing:t})=>t?{cursor:"text"}:{cursor:"pointer"}}
|
|
5
|
+
`,c=s.pt.div({display:"flex",flexDirection:"row",alignItems:"center",justifyContent:"space-between",gap:"0.5rem"}),C=s.pt(y.Check)({cursor:"pointer","&:hover":{"--tw-scale-x":"1.1","--tw-scale-y":"1.1",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))"}}),j=s.pt(m.X)({cursor:"pointer","&:hover":{"--tw-scale-x":"1.1","--tw-scale-y":"1.1",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))"}}),b=({children:t,onContentChange:i,isEditing:n})=>{const[a,o]=l.useState(t),[w,x]=l.useState(0),u=a!==t,d=()=>{o(t),x(r=>r+1)},p=()=>{i(a)},v=r=>o(r.currentTarget.textContent??"");return e.jsxRuntimeExports.jsxs(c,{children:[e.jsxRuntimeExports.jsx(k,{role:"textbox",contentEditable:n,onInput:v,suppressContentEditableWarning:!0,$isEditing:n??!1,children:t},w),u&&e.jsxRuntimeExports.jsxs(c,{children:[e.jsxRuntimeExports.jsx(C,{size:16,onClick:p}),e.jsxRuntimeExports.jsx(j,{size:16,onClick:d})]})]})};exports.ContentEditor=b;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as e } from "../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import { p as r } from "../../styled-components.browser.esm-D6kkzXl4.js";
|
|
4
|
+
import { useState as l } from "react";
|
|
5
|
+
import { C as u } from "../../check-BLEiR8OY.js";
|
|
6
|
+
import { X as y } from "../../x-BKwnSvvj.js";
|
|
7
|
+
const k = r.div`
|
|
8
|
+
${{
|
|
9
|
+
margin: "0.75rem",
|
|
10
|
+
display: "inline",
|
|
11
|
+
width: "100%",
|
|
12
|
+
backgroundColor: "transparent",
|
|
13
|
+
outline: "2px solid transparent",
|
|
14
|
+
outlineOffset: "2px"
|
|
15
|
+
}}
|
|
16
|
+
word-break: break-word;
|
|
17
|
+
${({
|
|
18
|
+
$isEditing: t
|
|
19
|
+
}) => t ? {
|
|
20
|
+
cursor: "text"
|
|
21
|
+
} : {
|
|
22
|
+
cursor: "pointer"
|
|
23
|
+
}}
|
|
24
|
+
`, c = r.div({
|
|
25
|
+
display: "flex",
|
|
26
|
+
flexDirection: "row",
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
justifyContent: "space-between",
|
|
29
|
+
gap: "0.5rem"
|
|
30
|
+
}), C = r(u)({
|
|
31
|
+
cursor: "pointer",
|
|
32
|
+
"&:hover": {
|
|
33
|
+
"--tw-scale-x": "1.1",
|
|
34
|
+
"--tw-scale-y": "1.1",
|
|
35
|
+
transform: "translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))"
|
|
36
|
+
}
|
|
37
|
+
}), f = r(y)({
|
|
38
|
+
cursor: "pointer",
|
|
39
|
+
"&:hover": {
|
|
40
|
+
"--tw-scale-x": "1.1",
|
|
41
|
+
"--tw-scale-y": "1.1",
|
|
42
|
+
transform: "translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))"
|
|
43
|
+
}
|
|
44
|
+
}), E = ({
|
|
45
|
+
children: t,
|
|
46
|
+
onContentChange: i,
|
|
47
|
+
isEditing: a
|
|
48
|
+
}) => {
|
|
49
|
+
const [n, o] = l(t), [w, x] = l(0), p = n !== t, d = () => {
|
|
50
|
+
o(t), x((s) => s + 1);
|
|
51
|
+
}, m = () => {
|
|
52
|
+
i(n);
|
|
53
|
+
}, v = (s) => o(s.currentTarget.textContent ?? "");
|
|
54
|
+
return /* @__PURE__ */ e.jsxs(c, { children: [
|
|
55
|
+
/* @__PURE__ */ e.jsx(
|
|
56
|
+
k,
|
|
57
|
+
{
|
|
58
|
+
role: "textbox",
|
|
59
|
+
contentEditable: a,
|
|
60
|
+
onInput: v,
|
|
61
|
+
suppressContentEditableWarning: !0,
|
|
62
|
+
$isEditing: a ?? !1,
|
|
63
|
+
children: t
|
|
64
|
+
},
|
|
65
|
+
w
|
|
66
|
+
),
|
|
67
|
+
p && /* @__PURE__ */ e.jsxs(c, { children: [
|
|
68
|
+
/* @__PURE__ */ e.jsx(C, { size: 16, onClick: m }),
|
|
69
|
+
/* @__PURE__ */ e.jsx(f, { size: 16, onClick: d })
|
|
70
|
+
] })
|
|
71
|
+
] });
|
|
72
|
+
};
|
|
73
|
+
export {
|
|
74
|
+
E as ContentEditor
|
|
75
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./ContentEditor.cjs.js");exports.ContentEditor=t.ContentEditor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ContentEditor';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-D6agescH.cjs"),i=require("../Popover/index.cjs.js"),c=require("../PressableDiv/PressableDiv.cjs.js"),l=({children:s,onSelect:t,onUnselect:o,isSelecting:n,popoverContent:r="Long press"})=>e.jsxRuntimeExports.jsx(i.Popover,{content:r,children:e.jsxRuntimeExports.jsx(c.PressableDiv,{onPress:t,onClickOutside:o,isSelecting:n,children:s})});exports.ContentSelector=l;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
type ContentSelectorProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
onSelect: () => void;
|
|
6
|
+
onUnselect?: () => void;
|
|
7
|
+
isSelecting?: boolean;
|
|
8
|
+
popoverContent?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const ContentSelector: FC<ContentSelectorProps>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as o } from "../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import { Popover as i } from "../Popover/index.es.js";
|
|
4
|
+
import { PressableDiv as m } from "../PressableDiv/PressableDiv.es.js";
|
|
5
|
+
const x = ({
|
|
6
|
+
children: e,
|
|
7
|
+
onSelect: r,
|
|
8
|
+
onUnselect: s,
|
|
9
|
+
isSelecting: t,
|
|
10
|
+
popoverContent: n = "Long press"
|
|
11
|
+
}) => /* @__PURE__ */ o.jsx(i, { content: n, children: /* @__PURE__ */ o.jsx(m, { onPress: r, onClickOutside: s, isSelecting: t, children: e }) });
|
|
12
|
+
export {
|
|
13
|
+
x as ContentSelector
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ContentSelector.cjs.js");exports.ContentSelector=e.ContentSelector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ContentSelector';
|