atomsystem 0.1.25 → 0.1.27
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 +13 -5
- package/app/templates/Badge/Badge.tsx +2 -4
- package/app/templates/Button/Button.tsx +2 -24
- package/app/templates/Card/Card.tsx +4 -5
- package/app/templates/CodeBlock/CodeBlock.tsx +18 -2
- package/app/templates/Collapse/Collapse.tsx +10 -10
- package/app/templates/{Input/Input.tsx → Form/Form.tsx} +69 -88
- package/app/templates/Modal/Modal.tsx +7 -7
- package/app/templates/Navigation/Navigation.tsx +306 -0
- package/app/templates/Pagination/Pagination.tsx +6 -6
- package/app/templates/Tab/Tab.tsx +10 -10
- package/app/templates/Table/Table.tsx +9 -18
- package/app/templates/Theme/Theme.tsx +87 -80
- package/app/templates/Toast/Toast.tsx +4 -4
- package/build/build-tokens.js +204 -53
- package/build/css/_variables.css +315 -0
- package/build/typescript/theme.ts +14 -0
- package/cli/add.js +35 -3
- package/cli/init.js +82 -14
- package/css/badge.css +28 -0
- package/css/button.css +75 -0
- package/css/card.css +17 -0
- package/css/collapse.css +33 -0
- package/css/form.css +115 -0
- package/css/modal.css +98 -0
- package/css/navigation.css +69 -0
- package/css/pagination.css +66 -0
- package/css/tab.css +56 -0
- package/css/table.css +58 -0
- package/css/text.css +25 -0
- package/css/toast.css +69 -0
- package/package.json +10 -6
- package/tokens/tokens.json +949 -0
- package/app/templates/GlobalNav/GlobalNav.tsx +0 -199
- package/token.json +0 -492
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.pagination {
|
|
2
|
+
display: flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
color: var(--color-text-standard);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.pagination-btn {
|
|
8
|
+
padding: var(--spacing-common-y) var(--spacing-common-x);
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
background: transparent;
|
|
11
|
+
border: none;
|
|
12
|
+
border-radius: var(--radius-common);
|
|
13
|
+
color: inherit;
|
|
14
|
+
transition: all 0.2s ease;
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: center;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.pagination-btn:hover:not(:disabled) {
|
|
21
|
+
background-color: var(--color-pagination-bg-hover);
|
|
22
|
+
color: var(--color-primary);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
.pagination-btn:disabled {
|
|
26
|
+
opacity: 0.4;
|
|
27
|
+
cursor: not-allowed;
|
|
28
|
+
color: var(--color-text-disabled);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.pagination-list {
|
|
32
|
+
display: flex;
|
|
33
|
+
width: 100%;
|
|
34
|
+
list-style: none;
|
|
35
|
+
padding: 0;
|
|
36
|
+
margin: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.pagination-item {
|
|
40
|
+
flex: 1; /* w-full behavior mapped */
|
|
41
|
+
text-align: center;
|
|
42
|
+
padding: var(--spacing-common-y) var(--spacing-common-x);
|
|
43
|
+
cursor: pointer;
|
|
44
|
+
color: inherit;
|
|
45
|
+
border-radius: var(--radius-common);
|
|
46
|
+
transition: all 0.2s ease;
|
|
47
|
+
user-select: none;
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
justify-content: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.pagination-item:hover {
|
|
54
|
+
background-color: var(--color-pagination-bg-hover);
|
|
55
|
+
color: var(--color-primary);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.pagination-item-active {
|
|
59
|
+
color: var(--color-primary);
|
|
60
|
+
font-weight: var(--font-weight-header);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.pagination-item-active:hover {
|
|
64
|
+
background-color: transparent; /* Reset hover if it's the active one */
|
|
65
|
+
cursor: default;
|
|
66
|
+
}
|
package/css/tab.css
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.tab {
|
|
2
|
+
display: flex;
|
|
3
|
+
width: 100%;
|
|
4
|
+
background-color: var(--color-bg-wrapper);
|
|
5
|
+
border-bottom: 1px solid var(--color-border-standard);
|
|
6
|
+
position: relative;
|
|
7
|
+
z-index: 0;
|
|
8
|
+
height: 57px;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.tab-nav-item {
|
|
12
|
+
padding: var(--spacing-common-x);
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
border: 1px solid transparent; /* reserve space for active state border */
|
|
15
|
+
border-bottom: none;
|
|
16
|
+
background-color: transparent;
|
|
17
|
+
color: var(--color-text-standard);
|
|
18
|
+
transition: all 0.2s ease-in-out;
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: center;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.tab-nav-item:hover {
|
|
25
|
+
background-color: var(--color-bg-card);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.tab-nav-item-active {
|
|
29
|
+
background-color: var(--color-bg-card);
|
|
30
|
+
border: 1px solid var(--color-border-standard);
|
|
31
|
+
border-bottom: 1px solid var(--color-bg-card);
|
|
32
|
+
position: relative;
|
|
33
|
+
z-index: 10;
|
|
34
|
+
color: var(--color-primary);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.tab-content {
|
|
38
|
+
background-color: var(--color-bg-card);
|
|
39
|
+
padding: var(--spacing-common-x);
|
|
40
|
+
border: 1px solid var(--color-border-standard);
|
|
41
|
+
border-top: 0;
|
|
42
|
+
margin-top: -1px; /* Overlap the top line of content with the bottom line of tab to allow the active tab to connect */
|
|
43
|
+
position: relative;
|
|
44
|
+
z-index: 1;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.tab-content-item {
|
|
48
|
+
color: var(--color-text-standard);
|
|
49
|
+
width: 100%;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@media (min-width: 640px) {
|
|
53
|
+
.tab-content-item {
|
|
54
|
+
width: auto;
|
|
55
|
+
}
|
|
56
|
+
}
|
package/css/table.css
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
.table-container {
|
|
2
|
+
overflow: auto;
|
|
3
|
+
width: 100%;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.table {
|
|
7
|
+
min-width: 100%;
|
|
8
|
+
border-collapse: collapse;
|
|
9
|
+
border-radius: var(--radius-common);
|
|
10
|
+
border: 1px solid var(--color-table-header-border);
|
|
11
|
+
overflow: hidden;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.table-header {
|
|
15
|
+
background-color: var(--color-table-header-bg);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.table-header th {
|
|
19
|
+
padding: var(--spacing-common-y) var(--spacing-common-x);
|
|
20
|
+
text-align: center;
|
|
21
|
+
color: var(--color-table-header-text);
|
|
22
|
+
font-weight: var(--font-weight-header);
|
|
23
|
+
font-size: var(--text-body);
|
|
24
|
+
letter-spacing: 0.05em;
|
|
25
|
+
border-bottom: 1px solid var(--color-table-header-border);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.table-body {
|
|
29
|
+
/* Body styles if needed */
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.table-row {
|
|
33
|
+
background-color: var(--color-table-body-bg);
|
|
34
|
+
transition: background-color 0.2s ease;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.table-row:nth-child(even) {
|
|
38
|
+
background-color: var(--color-table-body-bgEven);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.table-row:hover {
|
|
42
|
+
filter: brightness(0.95);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.table-cell {
|
|
46
|
+
padding: var(--spacing-sm-y) var(--spacing-common-x);
|
|
47
|
+
color: var(--color-table-body-text);
|
|
48
|
+
font-size: var(--text-body);
|
|
49
|
+
border-bottom: 1px solid var(--color-table-body-border);
|
|
50
|
+
text-align: left;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.table-empty {
|
|
54
|
+
padding: var(--spacing-common-x);
|
|
55
|
+
text-align: center;
|
|
56
|
+
color: var(--color-text-standard);
|
|
57
|
+
font-size: var(--text-body);
|
|
58
|
+
}
|
package/css/text.css
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
body{
|
|
2
|
+
@apply text-text-standard
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
h1{
|
|
6
|
+
@apply text-h1 font-header
|
|
7
|
+
}
|
|
8
|
+
h2{
|
|
9
|
+
@apply text-h2 font-header
|
|
10
|
+
}
|
|
11
|
+
h3{
|
|
12
|
+
@apply text-h3 font-header
|
|
13
|
+
}
|
|
14
|
+
h4{
|
|
15
|
+
@apply text-h4 font-header
|
|
16
|
+
}
|
|
17
|
+
h5{
|
|
18
|
+
@apply text-h5 font-header
|
|
19
|
+
}
|
|
20
|
+
h6{
|
|
21
|
+
@apply text-h6 font-header
|
|
22
|
+
}
|
|
23
|
+
p{
|
|
24
|
+
@apply text-body
|
|
25
|
+
}
|
package/css/toast.css
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
.toast-container {
|
|
2
|
+
position: fixed;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
gap: var(--spacing-sm-y);
|
|
6
|
+
bottom: 24px;
|
|
7
|
+
right: 24px;
|
|
8
|
+
z-index: 50;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.toast-item {
|
|
12
|
+
background-color: var(--toast-bg, var(--color-bg-card));
|
|
13
|
+
border: 1px solid var(--toast-border, var(--border-standard));
|
|
14
|
+
border-radius: var(--radius-common);
|
|
15
|
+
color: var(--toast-color, var(--text-standard));
|
|
16
|
+
padding: var(--spacing-common-x);
|
|
17
|
+
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
18
|
+
min-width: 250px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/* Status Variants */
|
|
22
|
+
.toast-item.standard {
|
|
23
|
+
--toast-bg: var(--color-bg-card);
|
|
24
|
+
--toast-border: var(--border-standard);
|
|
25
|
+
--toast-color: var(--text-standard);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.toast-item.primary {
|
|
29
|
+
--toast-bg: var(--color-primary);
|
|
30
|
+
--toast-border: var(--color-primary);
|
|
31
|
+
--toast-color: var(--color-white);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.toast-item.secondary {
|
|
35
|
+
--toast-bg: var(--color-secondary);
|
|
36
|
+
--toast-border: var(--color-secondary);
|
|
37
|
+
--toast-color: var(--color-white);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.toast-item.success {
|
|
41
|
+
--toast-bg: var(--color-success);
|
|
42
|
+
--toast-border: var(--color-success);
|
|
43
|
+
--toast-color: var(--color-white);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.toast-item.danger,
|
|
47
|
+
.toast-item.error {
|
|
48
|
+
--toast-bg: var(--color-danger);
|
|
49
|
+
--toast-border: var(--color-danger);
|
|
50
|
+
--toast-color: var(--color-white);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.toast-item.warning {
|
|
54
|
+
--toast-bg: var(--color-warning);
|
|
55
|
+
--toast-border: var(--color-warning);
|
|
56
|
+
--toast-color: var(--color-white);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.toast-item.info {
|
|
60
|
+
--toast-bg: var(--color-info);
|
|
61
|
+
--toast-border: var(--color-info);
|
|
62
|
+
--toast-color: var(--color-white);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.toast-desc {
|
|
66
|
+
font-size: var(--text-sm);
|
|
67
|
+
margin-top: var(--spacing-gap-small);
|
|
68
|
+
opacity: 0.9;
|
|
69
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atomsystem",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.27",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"homepage": "https://system.atomground.com",
|
|
6
6
|
"bin": {
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
"atomsystem-add": "cli/add.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
|
-
"token.json",
|
|
12
11
|
"tokens",
|
|
13
12
|
"tailwind.config.ts",
|
|
14
13
|
"build",
|
|
15
|
-
"app/templates"
|
|
14
|
+
"app/templates",
|
|
15
|
+
"css"
|
|
16
16
|
],
|
|
17
17
|
"scripts": {
|
|
18
18
|
"dev": "node build/build-tokens.js && next dev",
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
"token-build": "node build/build-tokens.js"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@tokens-studio/sd-transforms": "^1.2.8",
|
|
26
25
|
"react": "^18.0.0",
|
|
27
26
|
"react-dom": "^18.0.0",
|
|
28
27
|
"sd-tailwindcss-transformer": "^2.0.0",
|
|
@@ -30,17 +29,22 @@
|
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
31
|
"@gsap/react": "^2.1.2",
|
|
32
|
+
"@mdx-js/loader": "^3.1.0",
|
|
33
|
+
"@mdx-js/react": "^3.1.0",
|
|
34
|
+
"@next/mdx": "^15.4.6",
|
|
33
35
|
"@next/third-parties": "^15.0.3",
|
|
34
36
|
"@tailwindcss/postcss": "^4.0.17",
|
|
35
|
-
"@tokens-studio/sd-transforms": "^1.
|
|
37
|
+
"@tokens-studio/sd-transforms": "^1.3.0",
|
|
38
|
+
"@types/mdx": "^2.0.13",
|
|
36
39
|
"clsx": "^2.1.1",
|
|
37
40
|
"gsap": "^3.12.7",
|
|
38
41
|
"highlight.js": "^11.11.1",
|
|
39
42
|
"inquirer": "^12.4.2",
|
|
40
|
-
"next": "
|
|
43
|
+
"next": "15.2.8",
|
|
41
44
|
"react": "^18.0.0",
|
|
42
45
|
"react-dom": "^18.0.0",
|
|
43
46
|
"react-modal": "^3.16.3",
|
|
47
|
+
"react-responsive": "^10.0.1",
|
|
44
48
|
"sd-tailwindcss-transformer": "^2.0.0",
|
|
45
49
|
"style-dictionary": "^4.2.0"
|
|
46
50
|
},
|