@xyd-js/atlas 0.1.0-xyd.11 → 0.1.0-xyd.13
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/.storybook/index.css +2 -27
- package/CHANGELOG.md +15 -0
- package/LICENSE +21 -0
- package/dist/CodeSample-B9VUhTKF-DJ2leksk.js +2 -0
- package/dist/CodeSample-B9VUhTKF-DJ2leksk.js.map +1 -0
- package/dist/CodeSample-BSXeFy0x-DJ2leksk.js +2 -0
- package/dist/CodeSample-BSXeFy0x-DJ2leksk.js.map +1 -0
- package/dist/CodeSample-BwP208sQ-DJ2leksk.js +2 -0
- package/dist/CodeSample-BwP208sQ-DJ2leksk.js.map +1 -0
- package/dist/CodeSample-CUemtj_W-DJ2leksk.js +2 -0
- package/dist/CodeSample-CUemtj_W-DJ2leksk.js.map +1 -0
- package/dist/CodeSample-D0iKih-A-DJ2leksk.js +2 -0
- package/dist/CodeSample-D0iKih-A-DJ2leksk.js.map +1 -0
- package/dist/CodeSample-D33vTa6M-DJ2leksk.js +2 -0
- package/dist/CodeSample-D33vTa6M-DJ2leksk.js.map +1 -0
- package/dist/CodeSample-DUSx2KBt-DJ2leksk.js +2 -0
- package/dist/CodeSample-DUSx2KBt-DJ2leksk.js.map +1 -0
- package/dist/CodeSample-P4yxkHPW-DJ2leksk.js +2 -0
- package/dist/CodeSample-P4yxkHPW-DJ2leksk.js.map +1 -0
- package/dist/atlas-index.d.ts +15 -0
- package/dist/atlas-index.js +2 -0
- package/dist/atlas-index.js.map +1 -0
- package/dist/index.css +58 -58
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/tokens.css +57 -0
- package/index.ts +1 -2
- package/package.json +8 -3
- package/packages/atlas-index/AtlasIndex.tsx +79 -0
- package/packages/atlas-index/index.ts +3 -0
- package/rollup.config.js +53 -11
- package/src/components/ApiRef/ApiRefItem/ApiRefItem.styles.tsx +56 -67
- package/src/components/ApiRef/ApiRefItem/ApiRefItem.tsx +20 -27
- package/src/components/ApiRef/ApiRefProperties/ApiRefProperties.styles.tsx +128 -142
- package/src/components/ApiRef/ApiRefProperties/ApiRefProperties.tsx +27 -37
- package/src/components/ApiRef/ApiRefSamples/ApiRefSamples.styles.tsx +18 -23
- package/src/components/ApiRef/ApiRefSamples/ApiRefSamples.tsx +3 -6
- package/src/components/Atlas/Atlas.styles.tsx +3 -5
- package/src/components/Atlas/Atlas.tsx +2 -5
- package/src/components/Atlas/AtlasLazy/AtlasLazy.styles.tsx +7 -8
- package/src/components/Atlas/AtlasLazy/AtlasLazy.tsx +2 -4
- package/src/components/Code/CodeCopy/CodeCopy.styles.tsx +17 -0
- package/src/components/Code/CodeCopy/CodeCopy.tsx +2 -4
- package/src/components/Code/CodeSample/CodeSample.styles.tsx +129 -132
- package/src/components/Code/CodeSample/CodeSample.tsx +15 -21
- package/src/components/Code/CodeSampleButtons/CodeSampleButtons.styles.tsx +57 -141
- package/src/components/Code/CodeSampleButtons/CodeSampleButtons.tsx +13 -20
- package/src/styles/tokens.css +57 -0
- package/tsconfig.json +3 -0
- package/src/components/Code/CodeCopy/CodeCopy.style.tsx +0 -21
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
/* Ref tokens - Base values */
|
|
3
|
+
--XydAtlas-Ref-Palette-Primary-60: #7051d4;
|
|
4
|
+
--XydAtlas-Ref-Palette-Primary-70: #6045b9;
|
|
5
|
+
--XydAtlas-Ref-Palette-Primary-80: #4f399e;
|
|
6
|
+
|
|
7
|
+
--XydAtlas-Ref-Palette-Neutral-10: #F8F9FA;
|
|
8
|
+
--XydAtlas-Ref-Palette-Neutral-20: #F1F3F5;
|
|
9
|
+
--XydAtlas-Ref-Palette-Neutral-30: #E9ECEF;
|
|
10
|
+
--XydAtlas-Ref-Palette-Neutral-40: #DEE2E6;
|
|
11
|
+
--XydAtlas-Ref-Palette-Neutral-70: #6C757D;
|
|
12
|
+
--XydAtlas-Ref-Palette-Neutral-80: #495057;
|
|
13
|
+
--XydAtlas-Ref-Palette-Neutral-100: #212529;
|
|
14
|
+
|
|
15
|
+
/* System tokens - Semantic values */
|
|
16
|
+
--XydAtlas-Sys-Color-Primary: var(--XydAtlas-Ref-Palette-Primary-60);
|
|
17
|
+
--XydAtlas-Sys-Color-Primary--hover: var(--XydAtlas-Ref-Palette-Primary-70);
|
|
18
|
+
--XydAtlas-Sys-Color-Primary--active: var(--XydAtlas-Ref-Palette-Primary-80);
|
|
19
|
+
|
|
20
|
+
--XydAtlas-Sys-Color-Surface: var(--XydAtlas-Ref-Palette-Neutral-10);
|
|
21
|
+
--XydAtlas-Sys-Color-Surface--hover: var(--XydAtlas-Ref-Palette-Neutral-20);
|
|
22
|
+
--XydAtlas-Sys-Color-Surface--active: var(--XydAtlas-Ref-Palette-Neutral-30);
|
|
23
|
+
|
|
24
|
+
--XydAtlas-Sys-Color-Text-Primary: var(--XydAtlas-Ref-Palette-Neutral-100);
|
|
25
|
+
--XydAtlas-Sys-Color-Text-Secondary: var(--XydAtlas-Ref-Palette-Neutral-80);
|
|
26
|
+
--XydAtlas-Sys-Color-Text-Tertiary: var(--XydAtlas-Ref-Palette-Neutral-70);
|
|
27
|
+
|
|
28
|
+
--XydAtlas-Sys-Color-Border: var(--XydAtlas-Ref-Palette-Neutral-30);
|
|
29
|
+
--XydAtlas-Sys-Color-Border--hover: var(--XydAtlas-Ref-Palette-Neutral-40);
|
|
30
|
+
--XydAtlas-Sys-Color-Border--active: var(--XydAtlas-Ref-Palette-Primary-60);
|
|
31
|
+
|
|
32
|
+
/* Component tokens - Specific component values */
|
|
33
|
+
/* ApiRef Properties */
|
|
34
|
+
--XydAtlas-Component-ApiRef-Properties__color-description: var(--XydAtlas-Sys-Color-Text-Secondary);
|
|
35
|
+
--XydAtlas-Component-ApiRef-Properties__color-propName: var(--XydAtlas-Sys-Color-Text-Primary);
|
|
36
|
+
--XydAtlas-Component-ApiRef-Properties__color-propType: var(--XydAtlas-Sys-Color-Text-Tertiary);
|
|
37
|
+
--XydAtlas-Component-ApiRef-Properties__color--active: var(--XydAtlas-Sys-Color-Primary);
|
|
38
|
+
--XydAtlas-Component-ApiRef-Properties__color-border: var(--XydAtlas-Sys-Color-Border);
|
|
39
|
+
|
|
40
|
+
/* ApiRef Item */
|
|
41
|
+
--XydAtlas-Component-ApiRef-Item__color-border: var(--XydAtlas-Sys-Color-Border);
|
|
42
|
+
--XydAtlas-Component-ApiRef-Item__color-navbar: var(--XydAtlas-Sys-Color-Text-Secondary);
|
|
43
|
+
|
|
44
|
+
/* Code Sample */
|
|
45
|
+
--XydAtlas-Component-Code-Sample__color-border: var(--XydAtlas-Sys-Color-Border);
|
|
46
|
+
--XydAtlas-Component-Code-Sample__color: var(--XydAtlas-Sys-Color-Text-Secondary);
|
|
47
|
+
--XydAtlas-Component-Code-Sample__color--active: var(--XydAtlas-Sys-Color-Primary);
|
|
48
|
+
--XydAtlas-Component-Code-Sample__color-background: var(--XydAtlas-Sys-Color-Surface--hover);
|
|
49
|
+
--XydAtlas-Component-Code-Sample__color-markBorder--active: var(--XydAtlas-Sys-Color-Primary);
|
|
50
|
+
--XydAtlas-Component-Code-Sample__color-markBackground--active: var(--XydAtlas-Sys-Color-Surface--hover);
|
|
51
|
+
|
|
52
|
+
/* Code Sample Buttons */
|
|
53
|
+
--XydAtlas-Component-Code-SampleButtons__color-containerBackground: var(--XydAtlas-Sys-Color-Surface);
|
|
54
|
+
--XydAtlas-Component-Code-SampleButtons__color-background--active: var(--XydAtlas-Sys-Color-Surface--active);
|
|
55
|
+
--XydAtlas-Component-Code-SampleButtons__color: var(--XydAtlas-Sys-Color-Text-Secondary);
|
|
56
|
+
--XydAtlas-Component-Code-SampleButtons__color--active: var(--XydAtlas-Sys-Color-Text-Primary);
|
|
57
|
+
}
|
package/tsconfig.json
CHANGED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import {css} from "@linaria/core";
|
|
2
|
-
|
|
3
|
-
export const $copy = {
|
|
4
|
-
host: css`
|
|
5
|
-
all: unset;
|
|
6
|
-
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: center;
|
|
12
|
-
|
|
13
|
-
border-radius: 6px;
|
|
14
|
-
padding: 6px;
|
|
15
|
-
|
|
16
|
-
&:hover {
|
|
17
|
-
transition: ease-in 0.1s;
|
|
18
|
-
background: var(--atlas-comp-code-copy-background--active);
|
|
19
|
-
}
|
|
20
|
-
`
|
|
21
|
-
}
|