@cere/cere-design-system 0.0.45 → 0.2.0
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/README.md +76 -0
- package/dist/buttons.d.mts +119 -0
- package/dist/buttons.d.ts +119 -0
- package/dist/buttons.js +19 -0
- package/dist/buttons.js.map +1 -0
- package/dist/buttons.mjs +19 -0
- package/dist/buttons.mjs.map +1 -0
- package/dist/carousel.d.mts +51 -0
- package/dist/carousel.d.ts +51 -0
- package/dist/carousel.js +185 -0
- package/dist/carousel.js.map +1 -0
- package/dist/carousel.mjs +185 -0
- package/dist/carousel.mjs.map +1 -0
- package/dist/charts.d.mts +187 -0
- package/dist/charts.d.ts +187 -0
- package/dist/charts.js +13 -0
- package/dist/charts.js.map +1 -0
- package/dist/charts.mjs +13 -0
- package/dist/charts.mjs.map +1 -0
- package/dist/chunk-2EBCST6X.js +25 -0
- package/dist/chunk-2EBCST6X.js.map +1 -0
- package/dist/chunk-2KDN37PQ.js +486 -0
- package/dist/chunk-2KDN37PQ.js.map +1 -0
- package/dist/chunk-34LFXT6C.mjs +486 -0
- package/dist/chunk-34LFXT6C.mjs.map +1 -0
- package/dist/chunk-3KCXCVOX.mjs +411 -0
- package/dist/chunk-3KCXCVOX.mjs.map +1 -0
- package/dist/chunk-4OKTICU5.js +374 -0
- package/dist/chunk-4OKTICU5.js.map +1 -0
- package/dist/chunk-5ASG6G6U.mjs +40 -0
- package/dist/chunk-5ASG6G6U.mjs.map +1 -0
- package/dist/chunk-72TQ56EP.js +280 -0
- package/dist/chunk-72TQ56EP.js.map +1 -0
- package/dist/chunk-7KXKK2RE.js +43 -0
- package/dist/chunk-7KXKK2RE.js.map +1 -0
- package/dist/chunk-ARSCL4ZZ.js +111 -0
- package/dist/chunk-ARSCL4ZZ.js.map +1 -0
- package/dist/chunk-AWVNEU6R.mjs +1478 -0
- package/dist/chunk-AWVNEU6R.mjs.map +1 -0
- package/dist/chunk-BH4FNZKK.mjs +1472 -0
- package/dist/chunk-BH4FNZKK.mjs.map +1 -0
- package/dist/chunk-BIZK6FUD.js +37 -0
- package/dist/chunk-BIZK6FUD.js.map +1 -0
- package/dist/chunk-BOQPWZIB.mjs +147 -0
- package/dist/chunk-BOQPWZIB.mjs.map +1 -0
- package/dist/chunk-BT7XUTT5.mjs +392 -0
- package/dist/chunk-BT7XUTT5.mjs.map +1 -0
- package/dist/chunk-D7D25O6E.mjs +280 -0
- package/dist/chunk-D7D25O6E.mjs.map +1 -0
- package/dist/chunk-DRGMEIPT.mjs +162 -0
- package/dist/chunk-DRGMEIPT.mjs.map +1 -0
- package/dist/chunk-DZXNYLVG.js +392 -0
- package/dist/chunk-DZXNYLVG.js.map +1 -0
- package/dist/chunk-GR52ENYI.mjs +527 -0
- package/dist/chunk-GR52ENYI.mjs.map +1 -0
- package/dist/chunk-GTBKQXXI.js +1472 -0
- package/dist/chunk-GTBKQXXI.js.map +1 -0
- package/dist/chunk-HJ24WKU4.js +120 -0
- package/dist/chunk-HJ24WKU4.js.map +1 -0
- package/dist/chunk-JBHRAAN3.js +31 -0
- package/dist/chunk-JBHRAAN3.js.map +1 -0
- package/dist/chunk-KKIKOIMP.js +1478 -0
- package/dist/chunk-KKIKOIMP.js.map +1 -0
- package/dist/chunk-LVJSKRX3.js +147 -0
- package/dist/chunk-LVJSKRX3.js.map +1 -0
- package/dist/chunk-OWWDNDF4.js +40 -0
- package/dist/chunk-OWWDNDF4.js.map +1 -0
- package/dist/chunk-PFZZJZ64.js +162 -0
- package/dist/chunk-PFZZJZ64.js.map +1 -0
- package/dist/chunk-PHMNZK2R.mjs +18 -0
- package/dist/chunk-PHMNZK2R.mjs.map +1 -0
- package/dist/chunk-POCAW2G4.mjs +111 -0
- package/dist/chunk-POCAW2G4.mjs.map +1 -0
- package/dist/chunk-QBCRH7YF.mjs +37 -0
- package/dist/chunk-QBCRH7YF.mjs.map +1 -0
- package/dist/chunk-QCFLZ7X3.js +527 -0
- package/dist/chunk-QCFLZ7X3.js.map +1 -0
- package/dist/chunk-SG2TD7FQ.mjs +374 -0
- package/dist/chunk-SG2TD7FQ.mjs.map +1 -0
- package/dist/chunk-SSFALO6S.mjs +120 -0
- package/dist/chunk-SSFALO6S.mjs.map +1 -0
- package/dist/chunk-U2QHFISG.js +18 -0
- package/dist/chunk-U2QHFISG.js.map +1 -0
- package/dist/chunk-UPGFBPFX.mjs +25 -0
- package/dist/chunk-UPGFBPFX.mjs.map +1 -0
- package/dist/chunk-WC2TCWXK.mjs +445 -0
- package/dist/chunk-WC2TCWXK.mjs.map +1 -0
- package/dist/chunk-XZZZ4MZV.js +445 -0
- package/dist/chunk-XZZZ4MZV.js.map +1 -0
- package/dist/chunk-YCDCQSYH.js +411 -0
- package/dist/chunk-YCDCQSYH.js.map +1 -0
- package/dist/chunk-ZDAZYIXB.mjs +43 -0
- package/dist/chunk-ZDAZYIXB.mjs.map +1 -0
- package/dist/chunk-ZP26PGMS.mjs +31 -0
- package/dist/chunk-ZP26PGMS.mjs.map +1 -0
- package/dist/feedback.d.mts +368 -0
- package/dist/feedback.d.ts +368 -0
- package/dist/feedback.js +43 -0
- package/dist/feedback.js.map +1 -0
- package/dist/feedback.mjs +43 -0
- package/dist/feedback.mjs.map +1 -0
- package/dist/fonts/HumanSans-BlackOblique.otf +0 -0
- package/dist/fonts/HumanSans-Thin.otf +0 -0
- package/dist/fonts/HumanSans-ThinOblique.otf +0 -0
- package/dist/fonts/human-sans-font.css +88 -0
- package/dist/fonts/human-sans.css +3 -0
- package/dist/fonts/inter.css +3 -0
- package/dist/icons.d.mts +21 -0
- package/dist/icons.d.ts +21 -0
- package/dist/icons.js +23 -0
- package/dist/icons.js.map +1 -0
- package/dist/icons.mjs +23 -0
- package/dist/icons.mjs.map +1 -0
- package/dist/index.d.mts +196 -3082
- package/dist/index.d.ts +196 -3082
- package/dist/index.js +253 -10082
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +229 -10017
- package/dist/index.mjs.map +1 -1
- package/dist/inputs.d.mts +129 -0
- package/dist/inputs.d.ts +129 -0
- package/dist/inputs.js +43 -0
- package/dist/inputs.js.map +1 -0
- package/dist/inputs.mjs +43 -0
- package/dist/inputs.mjs.map +1 -0
- package/dist/layout.d.mts +681 -0
- package/dist/layout.d.ts +681 -0
- package/dist/layout.js +98 -0
- package/dist/layout.js.map +1 -0
- package/dist/layout.mjs +98 -0
- package/dist/layout.mjs.map +1 -0
- package/dist/navigation.d.mts +611 -0
- package/dist/navigation.d.ts +611 -0
- package/dist/navigation.js +54 -0
- package/dist/navigation.js.map +1 -0
- package/dist/navigation.mjs +54 -0
- package/dist/navigation.mjs.map +1 -0
- package/dist/third-party.d.mts +113 -0
- package/dist/third-party.d.ts +113 -0
- package/dist/third-party.js +7 -0
- package/dist/third-party.js.map +1 -0
- package/dist/third-party.mjs +7 -0
- package/dist/third-party.mjs.map +1 -0
- package/dist/tokens.css +45 -71
- package/dist/utilities.d.mts +39 -0
- package/dist/utilities.d.ts +39 -0
- package/dist/utilities.js +17 -0
- package/dist/utilities.js.map +1 -0
- package/dist/utilities.mjs +17 -0
- package/dist/utilities.mjs.map +1 -0
- package/package.json +76 -8
- package/dist/index.css +0 -79
- package/dist/index.css.map +0 -1
- /package/dist/{HumanSans-Black-C4YJONK7.otf → fonts/HumanSans-Black.otf} +0 -0
- /package/dist/{HumanSans-Bold-4EAJ3L3T.otf → fonts/HumanSans-Bold.otf} +0 -0
- /package/dist/{HumanSans-BoldOblique-4D325T4F.otf → fonts/HumanSans-BoldOblique.otf} +0 -0
- /package/dist/{HumanSans-ExtraLight-VL7DEKQ4.otf → fonts/HumanSans-ExtraLight.otf} +0 -0
- /package/dist/{HumanSans-ExtraLightOblique-VK2JTUXF.otf → fonts/HumanSans-ExtraLightOblique.otf} +0 -0
- /package/dist/{HumanSans-Light-YV7AFKRB.otf → fonts/HumanSans-Light.otf} +0 -0
- /package/dist/{HumanSans-LightOblique-VIXV7QA6.otf → fonts/HumanSans-LightOblique.otf} +0 -0
- /package/dist/{HumanSans-Medium-UULJ3PIR.otf → fonts/HumanSans-Medium.otf} +0 -0
- /package/dist/{HumanSans-MediumOblique-M7FHDZRS.otf → fonts/HumanSans-MediumOblique.otf} +0 -0
- /package/dist/{HumanSans-Regular-QMFEP3F6.otf → fonts/HumanSans-Regular.otf} +0 -0
- /package/dist/{HumanSans-RegularOblique-YPKQJAAM.otf → fonts/HumanSans-RegularOblique.otf} +0 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AccountSection,
|
|
3
|
+
ConnectionStatus,
|
|
4
|
+
Dropdown,
|
|
5
|
+
DropdownAnchor,
|
|
6
|
+
Menu,
|
|
7
|
+
MenuItem,
|
|
8
|
+
NavigationItem,
|
|
9
|
+
NavigationList,
|
|
10
|
+
NumberedStepper,
|
|
11
|
+
Pagination,
|
|
12
|
+
Selector,
|
|
13
|
+
SideNav,
|
|
14
|
+
SideNavHeader,
|
|
15
|
+
Sidebar,
|
|
16
|
+
SidebarItem,
|
|
17
|
+
Step,
|
|
18
|
+
StepButton,
|
|
19
|
+
StepContent,
|
|
20
|
+
StepLabel,
|
|
21
|
+
Stepper,
|
|
22
|
+
Tab
|
|
23
|
+
} from "./chunk-AWVNEU6R.mjs";
|
|
24
|
+
import "./chunk-5ASG6G6U.mjs";
|
|
25
|
+
import "./chunk-ZP26PGMS.mjs";
|
|
26
|
+
import "./chunk-PHMNZK2R.mjs";
|
|
27
|
+
import "./chunk-BOQPWZIB.mjs";
|
|
28
|
+
import "./chunk-QBCRH7YF.mjs";
|
|
29
|
+
import "./chunk-D7D25O6E.mjs";
|
|
30
|
+
import "./chunk-WC2TCWXK.mjs";
|
|
31
|
+
export {
|
|
32
|
+
AccountSection,
|
|
33
|
+
ConnectionStatus,
|
|
34
|
+
Dropdown,
|
|
35
|
+
DropdownAnchor,
|
|
36
|
+
Menu,
|
|
37
|
+
MenuItem,
|
|
38
|
+
NavigationItem,
|
|
39
|
+
NavigationList,
|
|
40
|
+
NumberedStepper,
|
|
41
|
+
Pagination,
|
|
42
|
+
Selector,
|
|
43
|
+
SideNav,
|
|
44
|
+
SideNavHeader,
|
|
45
|
+
Sidebar,
|
|
46
|
+
SidebarItem,
|
|
47
|
+
Step,
|
|
48
|
+
StepButton,
|
|
49
|
+
StepContent,
|
|
50
|
+
StepLabel,
|
|
51
|
+
Stepper,
|
|
52
|
+
Tab
|
|
53
|
+
};
|
|
54
|
+
//# sourceMappingURL=navigation.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Monaco } from '@monaco-editor/react';
|
|
3
|
+
import { BoxProps } from '@mui/material/Box';
|
|
4
|
+
import { editor } from 'monaco-editor';
|
|
5
|
+
|
|
6
|
+
type CodeEditorLanguage = 'typescript' | 'javascript' | 'json' | 'html' | 'css' | 'python' | 'yaml' | 'markdown' | 'sql' | 'xml' | 'plaintext';
|
|
7
|
+
interface CodeEditorProps {
|
|
8
|
+
/**
|
|
9
|
+
* Current value of the editor
|
|
10
|
+
*/
|
|
11
|
+
value: string;
|
|
12
|
+
/**
|
|
13
|
+
* Callback when value changes
|
|
14
|
+
*/
|
|
15
|
+
onChange: (value: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Programming language
|
|
18
|
+
* @default 'typescript'
|
|
19
|
+
*/
|
|
20
|
+
language?: CodeEditorLanguage;
|
|
21
|
+
/**
|
|
22
|
+
* Height of the editor
|
|
23
|
+
* @default '400px'
|
|
24
|
+
*/
|
|
25
|
+
height?: string | number;
|
|
26
|
+
/**
|
|
27
|
+
* Minimum height
|
|
28
|
+
*/
|
|
29
|
+
minHeight?: string | number;
|
|
30
|
+
/**
|
|
31
|
+
* Theme ('light' | 'dark' | 'vs-dark' | 'hc-black')
|
|
32
|
+
* If not provided, will use theme from design system
|
|
33
|
+
*/
|
|
34
|
+
theme?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Show line numbers
|
|
37
|
+
* @default 'on'
|
|
38
|
+
*/
|
|
39
|
+
lineNumbers?: 'on' | 'off' | 'relative' | 'interval';
|
|
40
|
+
/**
|
|
41
|
+
* Editor options (monaco editor options)
|
|
42
|
+
*/
|
|
43
|
+
options?: editor.IStandaloneEditorConstructionOptions;
|
|
44
|
+
/**
|
|
45
|
+
* Callback when editor is mounted
|
|
46
|
+
*/
|
|
47
|
+
onMount?: (editor: editor.IStandaloneCodeEditor, monaco: Monaco) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Callback for validation errors
|
|
50
|
+
*/
|
|
51
|
+
onValidate?: (markers: editor.IMarker[]) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Ref to editor instance
|
|
54
|
+
*/
|
|
55
|
+
editorRef?: React__default.MutableRefObject<editor.IStandaloneCodeEditor | null>;
|
|
56
|
+
/**
|
|
57
|
+
* Ref to Monaco instance
|
|
58
|
+
*/
|
|
59
|
+
monacoRef?: React__default.MutableRefObject<Monaco | null>;
|
|
60
|
+
/**
|
|
61
|
+
* Callback when fullscreen state changes
|
|
62
|
+
*/
|
|
63
|
+
onFullscreenChange?: (isFullscreen: boolean) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Props for the container Box.
|
|
66
|
+
*/
|
|
67
|
+
containerProps?: BoxProps;
|
|
68
|
+
/**
|
|
69
|
+
* Additional TypeScript type definitions to add to the editor context.
|
|
70
|
+
* Can be a string with type definitions or an array of type definition strings.
|
|
71
|
+
* Each string will be added as a separate extra lib to Monaco.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```tsx
|
|
75
|
+
* <CodeEditor
|
|
76
|
+
* value={code}
|
|
77
|
+
* onChange={setCode}
|
|
78
|
+
* typeDefinitions={`
|
|
79
|
+
* declare interface MyCustomType {
|
|
80
|
+
* id: string;
|
|
81
|
+
* name: string;
|
|
82
|
+
* }
|
|
83
|
+
* `}
|
|
84
|
+
* />
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
typeDefinitions?: string | string[];
|
|
88
|
+
/**
|
|
89
|
+
* When true, the editor skips internal value syncing and lets an external
|
|
90
|
+
* source (e.g. useCodeEditorWorkspace) manage Monaco models directly.
|
|
91
|
+
* The `value` prop is still used as the initial/display value but won't
|
|
92
|
+
* be force-synced to the editor.
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
externalModelManagement?: boolean;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* CodeEditor component - wrapper around Monaco Editor matching dynamic-indexer-client implementation
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```tsx
|
|
102
|
+
* <CodeEditor
|
|
103
|
+
* value={code}
|
|
104
|
+
* onChange={setCode}
|
|
105
|
+
* language="typescript"
|
|
106
|
+
* height="500px"
|
|
107
|
+
* onValidate={(markers) => console.log('Errors:', markers)}
|
|
108
|
+
* />
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
declare const CodeEditor: React__default.FC<CodeEditorProps>;
|
|
112
|
+
|
|
113
|
+
export { CodeEditor, type CodeEditorLanguage, type CodeEditorProps };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { Monaco } from '@monaco-editor/react';
|
|
3
|
+
import { BoxProps } from '@mui/material/Box';
|
|
4
|
+
import { editor } from 'monaco-editor';
|
|
5
|
+
|
|
6
|
+
type CodeEditorLanguage = 'typescript' | 'javascript' | 'json' | 'html' | 'css' | 'python' | 'yaml' | 'markdown' | 'sql' | 'xml' | 'plaintext';
|
|
7
|
+
interface CodeEditorProps {
|
|
8
|
+
/**
|
|
9
|
+
* Current value of the editor
|
|
10
|
+
*/
|
|
11
|
+
value: string;
|
|
12
|
+
/**
|
|
13
|
+
* Callback when value changes
|
|
14
|
+
*/
|
|
15
|
+
onChange: (value: string) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Programming language
|
|
18
|
+
* @default 'typescript'
|
|
19
|
+
*/
|
|
20
|
+
language?: CodeEditorLanguage;
|
|
21
|
+
/**
|
|
22
|
+
* Height of the editor
|
|
23
|
+
* @default '400px'
|
|
24
|
+
*/
|
|
25
|
+
height?: string | number;
|
|
26
|
+
/**
|
|
27
|
+
* Minimum height
|
|
28
|
+
*/
|
|
29
|
+
minHeight?: string | number;
|
|
30
|
+
/**
|
|
31
|
+
* Theme ('light' | 'dark' | 'vs-dark' | 'hc-black')
|
|
32
|
+
* If not provided, will use theme from design system
|
|
33
|
+
*/
|
|
34
|
+
theme?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Show line numbers
|
|
37
|
+
* @default 'on'
|
|
38
|
+
*/
|
|
39
|
+
lineNumbers?: 'on' | 'off' | 'relative' | 'interval';
|
|
40
|
+
/**
|
|
41
|
+
* Editor options (monaco editor options)
|
|
42
|
+
*/
|
|
43
|
+
options?: editor.IStandaloneEditorConstructionOptions;
|
|
44
|
+
/**
|
|
45
|
+
* Callback when editor is mounted
|
|
46
|
+
*/
|
|
47
|
+
onMount?: (editor: editor.IStandaloneCodeEditor, monaco: Monaco) => void;
|
|
48
|
+
/**
|
|
49
|
+
* Callback for validation errors
|
|
50
|
+
*/
|
|
51
|
+
onValidate?: (markers: editor.IMarker[]) => void;
|
|
52
|
+
/**
|
|
53
|
+
* Ref to editor instance
|
|
54
|
+
*/
|
|
55
|
+
editorRef?: React__default.MutableRefObject<editor.IStandaloneCodeEditor | null>;
|
|
56
|
+
/**
|
|
57
|
+
* Ref to Monaco instance
|
|
58
|
+
*/
|
|
59
|
+
monacoRef?: React__default.MutableRefObject<Monaco | null>;
|
|
60
|
+
/**
|
|
61
|
+
* Callback when fullscreen state changes
|
|
62
|
+
*/
|
|
63
|
+
onFullscreenChange?: (isFullscreen: boolean) => void;
|
|
64
|
+
/**
|
|
65
|
+
* Props for the container Box.
|
|
66
|
+
*/
|
|
67
|
+
containerProps?: BoxProps;
|
|
68
|
+
/**
|
|
69
|
+
* Additional TypeScript type definitions to add to the editor context.
|
|
70
|
+
* Can be a string with type definitions or an array of type definition strings.
|
|
71
|
+
* Each string will be added as a separate extra lib to Monaco.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```tsx
|
|
75
|
+
* <CodeEditor
|
|
76
|
+
* value={code}
|
|
77
|
+
* onChange={setCode}
|
|
78
|
+
* typeDefinitions={`
|
|
79
|
+
* declare interface MyCustomType {
|
|
80
|
+
* id: string;
|
|
81
|
+
* name: string;
|
|
82
|
+
* }
|
|
83
|
+
* `}
|
|
84
|
+
* />
|
|
85
|
+
* ```
|
|
86
|
+
*/
|
|
87
|
+
typeDefinitions?: string | string[];
|
|
88
|
+
/**
|
|
89
|
+
* When true, the editor skips internal value syncing and lets an external
|
|
90
|
+
* source (e.g. useCodeEditorWorkspace) manage Monaco models directly.
|
|
91
|
+
* The `value` prop is still used as the initial/display value but won't
|
|
92
|
+
* be force-synced to the editor.
|
|
93
|
+
* @default false
|
|
94
|
+
*/
|
|
95
|
+
externalModelManagement?: boolean;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* CodeEditor component - wrapper around Monaco Editor matching dynamic-indexer-client implementation
|
|
99
|
+
*
|
|
100
|
+
* @example
|
|
101
|
+
* ```tsx
|
|
102
|
+
* <CodeEditor
|
|
103
|
+
* value={code}
|
|
104
|
+
* onChange={setCode}
|
|
105
|
+
* language="typescript"
|
|
106
|
+
* height="500px"
|
|
107
|
+
* onValidate={(markers) => console.log('Errors:', markers)}
|
|
108
|
+
* />
|
|
109
|
+
* ```
|
|
110
|
+
*/
|
|
111
|
+
declare const CodeEditor: React__default.FC<CodeEditorProps>;
|
|
112
|
+
|
|
113
|
+
export { CodeEditor, type CodeEditorLanguage, type CodeEditorProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cere-design-system/cere-design-system/dist/third-party.js"],"names":[],"mappings":"AAAA;AACE;AACF,sDAA4B;AAC5B;AACE;AACF,iDAAC","file":"/home/runner/work/cere-design-system/cere-design-system/dist/third-party.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/tokens.css
CHANGED
|
@@ -1,78 +1,52 @@
|
|
|
1
|
-
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
* Mirror of `webSurfaceTokens` / `motion` / `borderRadius` / font families.
|
|
5
|
-
* Import once at app root: import '@cere/cere-design-system/tokens.css';
|
|
6
|
-
*
|
|
7
|
-
* The companion test (src/theme/__tests__/webSurfaceTokens.test.ts) locks
|
|
8
|
-
* this file against the JS token modules — if values drift, the build fails.
|
|
1
|
+
/**
|
|
2
|
+
* Do not edit directly, this file was auto-generated.
|
|
9
3
|
*/
|
|
10
4
|
|
|
11
5
|
:root {
|
|
12
|
-
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--c-violet-light:
|
|
16
|
-
--c-violet
|
|
17
|
-
--c-
|
|
18
|
-
--c-
|
|
19
|
-
--c-
|
|
20
|
-
--c-
|
|
21
|
-
--c-
|
|
22
|
-
--c-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
--
|
|
6
|
+
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'HumanSans', sans-serif;
|
|
7
|
+
--font-display: 'Inter', sans-serif;
|
|
8
|
+
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
9
|
+
--c-violet-light: #f0e0fb;
|
|
10
|
+
--c-violet: #aa44f2;
|
|
11
|
+
--c-violet-dark: #7c59ac;
|
|
12
|
+
--c-violet-tint: #a54aff;
|
|
13
|
+
--c-pink: #f941e6;
|
|
14
|
+
--c-pink-light: #fcdff9;
|
|
15
|
+
--c-red: #ff4f59;
|
|
16
|
+
--c-green: #49bf63;
|
|
17
|
+
--c-blue-light: #e7f4fe;
|
|
18
|
+
--c-blue-dark: #598ab8;
|
|
19
|
+
--surface-low: #f5f1f7;
|
|
20
|
+
--surface-mid: #f5f1f7;
|
|
21
|
+
--surface-high: #fefcff;
|
|
22
|
+
--surface-contrast: #ffffff;
|
|
23
|
+
--bg-default: #f5f5f5;
|
|
24
|
+
--bg-dim: #e6e0e9;
|
|
25
|
+
--bg-success: #eef5f0;
|
|
26
|
+
--bg-warning: #fef8e8;
|
|
27
|
+
--bg-danger: #f9dedc;
|
|
28
|
+
--text-on-danger: #8c1d18;
|
|
29
|
+
--text-primary: #1d1b20;
|
|
30
|
+
--text-secondary: #5f5c64;
|
|
31
|
+
--text-muted: #938f99;
|
|
32
|
+
--stroke-on-low: #e6e0e9;
|
|
33
|
+
--stroke-on-med: #dad1e0;
|
|
34
|
+
--rob-fandango: #BD32A7;
|
|
26
35
|
--rob-electric-violet: #8B00EC;
|
|
27
|
-
--rob-ultra-violet:
|
|
28
|
-
--rob-
|
|
29
|
-
--rob-
|
|
30
|
-
--rob-near-black-
|
|
31
|
-
--rob-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
--surface-low: #f5f1f7;
|
|
35
|
-
--surface-mid: #f5f1f7;
|
|
36
|
-
--surface-high: #fefcff;
|
|
37
|
-
--surface-contrast: #ffffff;
|
|
38
|
-
|
|
39
|
-
/* Backgrounds */
|
|
40
|
-
--bg-default: #f5f5f5;
|
|
41
|
-
--bg-dim: #e6e0e9;
|
|
42
|
-
--bg-success: #eef5f0;
|
|
43
|
-
--bg-warning: #fef8e8;
|
|
44
|
-
--bg-danger: #f9dedc;
|
|
45
|
-
/* Foreground for content sitting on var(--bg-danger). NOT a surface. */
|
|
46
|
-
--text-on-danger: #8c1d18;
|
|
47
|
-
|
|
48
|
-
/* Text */
|
|
49
|
-
--text-primary: #1d1b20;
|
|
50
|
-
--text-secondary: #5f5c64;
|
|
51
|
-
--text-muted: #938f99;
|
|
52
|
-
--text-link: #aa44f2;
|
|
53
|
-
|
|
54
|
-
/* Strokes */
|
|
55
|
-
--stroke-on-low: #e6e0e9;
|
|
56
|
-
--stroke-on-med: #dad1e0;
|
|
57
|
-
|
|
58
|
-
/* Radius */
|
|
59
|
-
--radius-sm: 8px;
|
|
60
|
-
--radius-md: 12px;
|
|
61
|
-
--radius-lg: 16px;
|
|
62
|
-
--radius-xl: 20px;
|
|
63
|
-
--radius-pill: 999px;
|
|
64
|
-
|
|
65
|
-
/* Elevation */
|
|
66
|
-
--shadow-sm: 0px 2px 8px rgba(0,0,0,0.04);
|
|
67
|
-
--shadow-md: 0px 4px 20px rgba(0,0,0,0.05);
|
|
36
|
+
--rob-ultra-violet: #6750A4;
|
|
37
|
+
--rob-periwinkle: #D0BCFF;
|
|
38
|
+
--rob-bright-1: #5311e3;
|
|
39
|
+
--rob-near-black-2: #0d0627;
|
|
40
|
+
--rob-near-black-4: #23194b;
|
|
41
|
+
--shadow-sm: 0px 2px 8px rgba(0,0,0,0.04);
|
|
42
|
+
--shadow-md: 0px 4px 20px rgba(0,0,0,0.05);
|
|
68
43
|
--shadow-focus: 0 0 0 4px rgba(170,68,242,0.25);
|
|
69
|
-
|
|
70
|
-
|
|
44
|
+
--radius-sm: 8px;
|
|
45
|
+
--radius-md: 12px;
|
|
46
|
+
--radius-lg: 16px;
|
|
47
|
+
--radius-xl: 20px;
|
|
48
|
+
--radius-pill: 999px;
|
|
49
|
+
--dur-fast: 120ms;
|
|
71
50
|
--ease-standard: cubic-bezier(0.2, 0, 0, 1);
|
|
72
|
-
--
|
|
73
|
-
|
|
74
|
-
/* Type */
|
|
75
|
-
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
76
|
-
--font-display: 'Inter', sans-serif;
|
|
77
|
-
--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
|
|
51
|
+
--text-link: #aa44f2;
|
|
78
52
|
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ReactNode, AriaAttributes } from 'react';
|
|
4
|
+
import { QRCodeProps as QRCodeProps$1 } from 'react-qr-code';
|
|
5
|
+
|
|
6
|
+
type MarkdownProps = {
|
|
7
|
+
children?: string;
|
|
8
|
+
content?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Markdown: ({ content, children }: MarkdownProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
interface OnboardingContextType {
|
|
13
|
+
isOnboardingActive: boolean;
|
|
14
|
+
startOnboarding: () => void;
|
|
15
|
+
stopOnboarding: () => void;
|
|
16
|
+
restartOnboarding: () => void;
|
|
17
|
+
}
|
|
18
|
+
declare const useOnboarding: () => OnboardingContextType;
|
|
19
|
+
declare const OnboardingProvider: ({ children }: {
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
type TruncateProps = AriaAttributes & {
|
|
24
|
+
text: string;
|
|
25
|
+
maxLength?: number;
|
|
26
|
+
endingLength?: number;
|
|
27
|
+
variant?: 'text' | 'email' | 'hex';
|
|
28
|
+
};
|
|
29
|
+
declare const Truncate: ({ text, variant, maxLength, endingLength, ...props }: TruncateProps) => react_jsx_runtime.JSX.Element;
|
|
30
|
+
|
|
31
|
+
type BytesSizeProps = {
|
|
32
|
+
bytes: number;
|
|
33
|
+
};
|
|
34
|
+
declare const BytesSize: ({ bytes }: BytesSizeProps) => react_jsx_runtime.JSX.Element;
|
|
35
|
+
|
|
36
|
+
type QRCodeProps = Omit<QRCodeProps$1, 'ref'>;
|
|
37
|
+
declare const QRCode: React.ForwardRefExoticComponent<QRCodeProps & React.RefAttributes<SVGElement>>;
|
|
38
|
+
|
|
39
|
+
export { BytesSize, type BytesSizeProps, Markdown, type MarkdownProps, OnboardingProvider, QRCode, type QRCodeProps, Truncate, type TruncateProps, useOnboarding };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
import { ReactNode, AriaAttributes } from 'react';
|
|
4
|
+
import { QRCodeProps as QRCodeProps$1 } from 'react-qr-code';
|
|
5
|
+
|
|
6
|
+
type MarkdownProps = {
|
|
7
|
+
children?: string;
|
|
8
|
+
content?: string;
|
|
9
|
+
};
|
|
10
|
+
declare const Markdown: ({ content, children }: MarkdownProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
|
|
12
|
+
interface OnboardingContextType {
|
|
13
|
+
isOnboardingActive: boolean;
|
|
14
|
+
startOnboarding: () => void;
|
|
15
|
+
stopOnboarding: () => void;
|
|
16
|
+
restartOnboarding: () => void;
|
|
17
|
+
}
|
|
18
|
+
declare const useOnboarding: () => OnboardingContextType;
|
|
19
|
+
declare const OnboardingProvider: ({ children }: {
|
|
20
|
+
children: ReactNode;
|
|
21
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
22
|
+
|
|
23
|
+
type TruncateProps = AriaAttributes & {
|
|
24
|
+
text: string;
|
|
25
|
+
maxLength?: number;
|
|
26
|
+
endingLength?: number;
|
|
27
|
+
variant?: 'text' | 'email' | 'hex';
|
|
28
|
+
};
|
|
29
|
+
declare const Truncate: ({ text, variant, maxLength, endingLength, ...props }: TruncateProps) => react_jsx_runtime.JSX.Element;
|
|
30
|
+
|
|
31
|
+
type BytesSizeProps = {
|
|
32
|
+
bytes: number;
|
|
33
|
+
};
|
|
34
|
+
declare const BytesSize: ({ bytes }: BytesSizeProps) => react_jsx_runtime.JSX.Element;
|
|
35
|
+
|
|
36
|
+
type QRCodeProps = Omit<QRCodeProps$1, 'ref'>;
|
|
37
|
+
declare const QRCode: React.ForwardRefExoticComponent<QRCodeProps & React.RefAttributes<SVGElement>>;
|
|
38
|
+
|
|
39
|
+
export { BytesSize, type BytesSizeProps, Markdown, type MarkdownProps, OnboardingProvider, QRCode, type QRCodeProps, Truncate, type TruncateProps, useOnboarding };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkHJ24WKU4js = require('./chunk-HJ24WKU4.js');
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
exports.BytesSize = _chunkHJ24WKU4js.BytesSize; exports.Markdown = _chunkHJ24WKU4js.Markdown; exports.OnboardingProvider = _chunkHJ24WKU4js.OnboardingProvider; exports.QRCode = _chunkHJ24WKU4js.QRCode; exports.Truncate = _chunkHJ24WKU4js.Truncate; exports.useOnboarding = _chunkHJ24WKU4js.useOnboarding;
|
|
17
|
+
//# sourceMappingURL=utilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cere-design-system/cere-design-system/dist/utilities.js"],"names":[],"mappings":"AAAA;AACE;AACA;AACA;AACA;AACA;AACA;AACF,sDAA4B;AAC5B;AACE;AACA;AACA;AACA;AACA;AACA;AACF,+SAAC","file":"/home/runner/work/cere-design-system/cere-design-system/dist/utilities.js"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BytesSize,
|
|
3
|
+
Markdown,
|
|
4
|
+
OnboardingProvider,
|
|
5
|
+
QRCode,
|
|
6
|
+
Truncate,
|
|
7
|
+
useOnboarding
|
|
8
|
+
} from "./chunk-SSFALO6S.mjs";
|
|
9
|
+
export {
|
|
10
|
+
BytesSize,
|
|
11
|
+
Markdown,
|
|
12
|
+
OnboardingProvider,
|
|
13
|
+
QRCode,
|
|
14
|
+
Truncate,
|
|
15
|
+
useOnboarding
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=utilities.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|