@aragon/gov-ui-kit 1.6.0 → 1.7.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/CHANGELOG.md +70 -13
- package/build.css +1 -5
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/src/core/assets/copy/coreCopy.d.ts +3 -0
- package/dist/types/src/core/components/clipboard/clipboard.d.ts +28 -0
- package/dist/types/src/core/components/clipboard/index.d.ts +1 -0
- package/dist/types/src/core/components/definitionList/definitionListItem/definitionListItem.d.ts +8 -4
- package/dist/types/src/core/components/definitionList/definitionListItem/definitionListItemContent.d.ts +13 -0
- package/dist/types/src/core/components/index.d.ts +1 -0
- package/dist/types/src/core/components/link/link/link.api.d.ts +6 -7
- package/dist/types/src/core/components/toggles/toggleGroup/toggleGroup.d.ts +5 -0
- package/dist/types/src/core/components/tooltip/tooltip.d.ts +4 -0
- package/dist/types/src/core/hooks/index.d.ts +1 -0
- package/dist/types/src/core/hooks/useCopy/index.d.ts +1 -0
- package/dist/types/src/core/hooks/useCopy/useCopy.d.ts +11 -0
- package/dist/types/src/modules/assets/copy/modulesCopy.d.ts +16 -12
- package/dist/types/src/modules/components/proposal/proposalUtils.d.ts +2 -11
- package/dist/types/src/modules/components/proposal/proposalVoting/index.d.ts +3 -1
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodyContent/proposalVotingBodyContent.d.ts +7 -7
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryList/proposalVotingBodySummaryList.d.ts +2 -2
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBodySummaryListItem/proposalVotingBodySummaryListItem.d.ts +3 -3
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownMultisig/proposalVotingBreakdownMultisig.d.ts +10 -1
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingBreakdownToken/proposalVotingBreakdownToken.d.ts +5 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContainer/proposalVotingContainer.d.ts +7 -5
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContext/index.d.ts +2 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContext/proposalVotingContext.api.d.ts +21 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingContext/proposalVotingContext.d.ts +3 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingProgress/proposalVotingProgressItem.d.ts +13 -4
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStage/proposalVotingStage.d.ts +12 -11
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageContainer/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageContainer/proposalVotingStageContainer.d.ts +12 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStatus/index.d.ts +1 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStatus/proposalVotingStatus.d.ts +26 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStatus/proposalVotingStatusAdvanceable.d.ts +12 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingTabs/proposalVotingTabs.d.ts +2 -2
- package/dist/types/src/modules/components/vote/voteDataListItem/voteDataListItemStructure/voteDataListItemStructure.d.ts +7 -2
- package/dist/types/src/modules/components/vote/voteProposalDataListItem/voteProposalDataListItemStructure/voteProposalDataListItemStructure.d.ts +7 -2
- package/dist/types/src/modules/components/vote/voteUtils.d.ts +2 -2
- package/dist/types/src/modules/types/definitionSetting.d.ts +1 -1
- package/index.css +1 -4
- package/package.json +30 -34
- package/src/core/components/illustrations/index.css +2 -2
- package/src/theme/index.css +2 -1
- package/src/theme/tokens/index.css +1 -1
- package/src/theme/tokens/primitives/borderRadius.css +9 -8
- package/src/theme/tokens/primitives/breakpoints.css +16 -0
- package/src/theme/tokens/primitives/colors.css +69 -59
- package/src/theme/tokens/primitives/focusRing.css +56 -0
- package/src/theme/tokens/primitives/index.css +3 -1
- package/src/theme/tokens/primitives/shadows.css +40 -38
- package/src/theme/tokens/primitives/spacing.css +2 -36
- package/src/theme/tokens/primitives/typography.css +20 -22
- package/src/theme/utils/animations.css +23 -0
- package/src/theme/utils/index.css +3 -0
- package/src/theme/utils/prose.css +72 -0
- package/src/theme/utils/pseudoElements.css +27 -0
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageContext/index.d.ts +0 -1
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageContext/proposalVotingStageContext.d.ts +0 -17
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageStatus/index.d.ts +0 -1
- package/dist/types/src/modules/components/proposal/proposalVoting/proposalVotingStageStatus/proposalVotingStageStatus.d.ts +0 -18
- package/tailwind.config.js +0 -376
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IDefinitionListItemProps } from '../../core';
|
|
2
|
-
export interface IDefinitionSetting extends Pick<IDefinitionListItemProps, 'term' | 'link'> {
|
|
2
|
+
export interface IDefinitionSetting extends Pick<IDefinitionListItemProps, 'term' | 'link' | 'description' | 'copyValue'> {
|
|
3
3
|
/**
|
|
4
4
|
* The definition for the term in the list item.
|
|
5
5
|
*/
|
package/index.css
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aragon/gov-ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "Implementation of the Aragon's Governance UI Kit",
|
|
5
5
|
"main": "dist/index.es.js",
|
|
6
6
|
"types": "dist/types/src/index.d.ts",
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
"index.css",
|
|
11
11
|
"build.css",
|
|
12
12
|
"src/**/*.css",
|
|
13
|
-
"src/theme/fonts/*"
|
|
14
|
-
"tailwind.config.js"
|
|
13
|
+
"src/theme/fonts/*"
|
|
15
14
|
],
|
|
16
15
|
"scripts": {
|
|
17
16
|
"setup": "husky",
|
|
@@ -65,21 +64,21 @@
|
|
|
65
64
|
"@tiptap/starter-kit": "^2.12.0",
|
|
66
65
|
"blockies-ts": "^1.0.0",
|
|
67
66
|
"classnames": "^2.5.0",
|
|
68
|
-
"framer-motion": "^12.
|
|
67
|
+
"framer-motion": "^12.14.0",
|
|
69
68
|
"luxon": "^3.6.0",
|
|
70
69
|
"react-dropzone": "^14.3.0",
|
|
71
70
|
"react-imask": "^7.6.0",
|
|
72
|
-
"sanitize-html": "^2.
|
|
71
|
+
"sanitize-html": "^2.17.0",
|
|
73
72
|
"tiptap-markdown": "^0.8.10"
|
|
74
73
|
},
|
|
75
74
|
"peerDependencies": {
|
|
76
75
|
"@tailwindcss/typography": "^0.5.0",
|
|
77
|
-
"@tanstack/react-query": "^5.
|
|
76
|
+
"@tanstack/react-query": "^5.77.0",
|
|
78
77
|
"react": "^18.2.0 || ^19.0.0",
|
|
79
78
|
"react-dom": "^18.2.0 || ^19.0.0",
|
|
80
79
|
"react-hook-form": "^7.56.0",
|
|
81
|
-
"tailwindcss": "^
|
|
82
|
-
"viem": "^2.
|
|
80
|
+
"tailwindcss": "^4.1.0",
|
|
81
|
+
"viem": "^2.30.0",
|
|
83
82
|
"wagmi": "^2.15.0"
|
|
84
83
|
},
|
|
85
84
|
"devDependencies": {
|
|
@@ -95,39 +94,37 @@
|
|
|
95
94
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
96
95
|
"@rollup/plugin-terser": "^0.4.4",
|
|
97
96
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
98
|
-
"@storybook/addon-
|
|
99
|
-
"@storybook/addon-
|
|
100
|
-
"@storybook/addon-links": "^8.6.12",
|
|
97
|
+
"@storybook/addon-essentials": "^8.6.14",
|
|
98
|
+
"@storybook/addon-links": "^8.6.14",
|
|
101
99
|
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
102
100
|
"@storybook/addon-webpack5-compiler-babel": "^3.0.6",
|
|
103
|
-
"@storybook/blocks": "^8.6.
|
|
104
|
-
"@storybook/react": "^8.6.
|
|
105
|
-
"@storybook/react-webpack5": "^8.6.
|
|
106
|
-
"@storybook/test": "^8.6.
|
|
101
|
+
"@storybook/blocks": "^8.6.14",
|
|
102
|
+
"@storybook/react": "^8.6.14",
|
|
103
|
+
"@storybook/react-webpack5": "^8.6.14",
|
|
104
|
+
"@storybook/test": "^8.6.14",
|
|
107
105
|
"@svgr/rollup": "^8.1.0",
|
|
108
106
|
"@svgr/webpack": "^8.1.0",
|
|
107
|
+
"@tailwindcss/postcss": "^4.1.7",
|
|
109
108
|
"@tailwindcss/typography": "^0.5.16",
|
|
110
|
-
"@tanstack/react-query": "^5.
|
|
109
|
+
"@tanstack/react-query": "^5.77.2",
|
|
111
110
|
"@testing-library/dom": "^10.4.0",
|
|
112
111
|
"@testing-library/jest-dom": "^6.6.3",
|
|
113
112
|
"@testing-library/react": "^16.3.0",
|
|
114
113
|
"@testing-library/user-event": "^14.6.1",
|
|
115
114
|
"@types/jest": "^29.5.14",
|
|
116
115
|
"@types/luxon": "^3.6.2",
|
|
117
|
-
"@types/react": "^19.1.
|
|
118
|
-
"@types/react-dom": "^19.1.
|
|
116
|
+
"@types/react": "^19.1.5",
|
|
117
|
+
"@types/react-dom": "^19.1.5",
|
|
119
118
|
"@types/sanitize-html": "^2.16.0",
|
|
120
|
-
"autoprefixer": "^10.4.21",
|
|
121
119
|
"cross-env": "^7.0.3",
|
|
122
|
-
"eslint": "^9.
|
|
123
|
-
"eslint-import-resolver-typescript": "^4.
|
|
120
|
+
"eslint": "^9.27.0",
|
|
121
|
+
"eslint-import-resolver-typescript": "^4.4.1",
|
|
124
122
|
"eslint-plugin-import": "^2.31.0",
|
|
125
123
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
126
124
|
"eslint-plugin-react": "^7.37.5",
|
|
127
125
|
"eslint-plugin-react-hooks": "^5.2.0",
|
|
128
126
|
"eslint-plugin-storybook": "^0.12.0",
|
|
129
|
-
"eslint-plugin-
|
|
130
|
-
"eslint-plugin-testing-library": "^7.1.1",
|
|
127
|
+
"eslint-plugin-testing-library": "^7.2.2",
|
|
131
128
|
"husky": "^9.1.7",
|
|
132
129
|
"jest": "^29.7.0",
|
|
133
130
|
"jest-environment-jsdom": "^29.7.0",
|
|
@@ -139,19 +136,19 @@
|
|
|
139
136
|
"prettier-plugin-tailwindcss": "^0.6.11",
|
|
140
137
|
"react": "^19.1.0",
|
|
141
138
|
"react-dom": "^19.1.0",
|
|
142
|
-
"react-hook-form": "^7.56.
|
|
143
|
-
"rollup": "^4.
|
|
139
|
+
"react-hook-form": "^7.56.4",
|
|
140
|
+
"rollup": "^4.41.1",
|
|
144
141
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
145
142
|
"rollup-plugin-postcss": "^4.0.2",
|
|
146
|
-
"rollup-plugin-visualizer": "^
|
|
147
|
-
"storybook": "^8.6.
|
|
148
|
-
"tailwindcss": "^
|
|
149
|
-
"ts-jest": "^29.3.
|
|
143
|
+
"rollup-plugin-visualizer": "^6.0.0",
|
|
144
|
+
"storybook": "^8.6.14",
|
|
145
|
+
"tailwindcss": "^4.1.7",
|
|
146
|
+
"ts-jest": "^29.3.4",
|
|
150
147
|
"typescript": "^5.8.3",
|
|
151
148
|
"typescript-eslint": "^8.32.1",
|
|
152
|
-
"vercel": "^
|
|
153
|
-
"viem": "^2.
|
|
154
|
-
"wagmi": "^2.15.
|
|
149
|
+
"vercel": "^42.1.1",
|
|
150
|
+
"viem": "^2.30.1",
|
|
151
|
+
"wagmi": "^2.15.4"
|
|
155
152
|
},
|
|
156
153
|
"bugs": {
|
|
157
154
|
"url": "https://github.com/aragon/gov-ui-kit/issues"
|
|
@@ -166,8 +163,7 @@
|
|
|
166
163
|
"default": "./dist/index.es.js"
|
|
167
164
|
},
|
|
168
165
|
"./index.css": "./index.css",
|
|
169
|
-
"./build.css": "./build.css"
|
|
170
|
-
"./tailwind.config": "./tailwind.config.js"
|
|
166
|
+
"./build.css": "./build.css"
|
|
171
167
|
},
|
|
172
168
|
"packageManager": "yarn@4.9.1"
|
|
173
169
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
/* Accent color for the illustrations */
|
|
3
|
-
--guk-illustration-accent-color: var(--
|
|
3
|
+
--guk-illustration-accent-color: var(--color-primary-400);
|
|
4
4
|
|
|
5
5
|
/* Primary color for the illustrations */
|
|
6
|
-
--guk-illustration-primary-color: var(--
|
|
6
|
+
--guk-illustration-primary-color: var(--color-primary-900);
|
|
7
7
|
}
|
package/src/theme/index.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
@import "./tokens
|
|
1
|
+
@import "./tokens";
|
|
2
|
+
@import "./utils";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@import "./primitives
|
|
1
|
+
@import "./primitives";
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
--
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
--
|
|
1
|
+
@theme {
|
|
2
|
+
--radius-*: initial;
|
|
3
|
+
--radius-md: 4px;
|
|
4
|
+
--radius-lg: 8px;
|
|
5
|
+
--radius-xl: 12px;
|
|
6
|
+
--radius-2xl: 16px;
|
|
7
|
+
--radius-3xl: 24px;
|
|
8
|
+
--radius-full: 9999px;
|
|
9
|
+
--radius-none: none;
|
|
9
10
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--breakpoint-sm-px: 640;
|
|
3
|
+
--breakpoint-md-px: 768;
|
|
4
|
+
--breakpoint-lg-px: 1024;
|
|
5
|
+
--breakpoint-xl-px: 1280;
|
|
6
|
+
--breakpoint-2xl-px: 1536;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@theme {
|
|
10
|
+
--breakpoint-*: initial;
|
|
11
|
+
--breakpoint-sm: 40rem;
|
|
12
|
+
--breakpoint-md: 48rem;
|
|
13
|
+
--breakpoint-lg: 64rem;
|
|
14
|
+
--breakpoint-xl: 80rem;
|
|
15
|
+
--breakpoint-2xl: 96rem;
|
|
16
|
+
}
|
|
@@ -1,73 +1,83 @@
|
|
|
1
|
-
|
|
1
|
+
@theme {
|
|
2
|
+
--color-*: initial;
|
|
3
|
+
|
|
2
4
|
/* Primary */
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
--
|
|
9
|
-
--
|
|
10
|
-
--
|
|
11
|
-
--
|
|
12
|
-
--
|
|
5
|
+
--color-primary-50: #f5f8ff;
|
|
6
|
+
--color-primary-100: #c4d7ff;
|
|
7
|
+
--color-primary-200: #93b2ff;
|
|
8
|
+
--color-primary-300: #628cfe;
|
|
9
|
+
--color-primary-400: #3164fa;
|
|
10
|
+
--color-primary-500: #003bf5;
|
|
11
|
+
--color-primary-600: #0037d2;
|
|
12
|
+
--color-primary-700: #0031ad;
|
|
13
|
+
--color-primary-800: #002985;
|
|
14
|
+
--color-primary-900: #001f5c;
|
|
13
15
|
|
|
14
16
|
/* Neutral */
|
|
15
|
-
--
|
|
16
|
-
--
|
|
17
|
-
--
|
|
18
|
-
--
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
25
|
-
--
|
|
17
|
+
--color-neutral-0: #ffffff;
|
|
18
|
+
--color-neutral-50: #f5f7fa;
|
|
19
|
+
--color-neutral-100: #e4e7eb;
|
|
20
|
+
--color-neutral-200: #cbd2d9;
|
|
21
|
+
--color-neutral-300: #9aa5b1;
|
|
22
|
+
--color-neutral-400: #7b8794;
|
|
23
|
+
--color-neutral-500: #616e7c;
|
|
24
|
+
--color-neutral-600: #52606d;
|
|
25
|
+
--color-neutral-700: #3e4c59;
|
|
26
|
+
--color-neutral-800: #323f4b;
|
|
27
|
+
--color-neutral-900: #1f2933;
|
|
26
28
|
|
|
27
29
|
/* Info */
|
|
28
|
-
--
|
|
29
|
-
--
|
|
30
|
-
--
|
|
31
|
-
--
|
|
32
|
-
--
|
|
33
|
-
--
|
|
34
|
-
--
|
|
35
|
-
--
|
|
36
|
-
--
|
|
30
|
+
--color-info-100: #d1fdfa;
|
|
31
|
+
--color-info-200: #a4f9fb;
|
|
32
|
+
--color-info-300: #75e8f3;
|
|
33
|
+
--color-info-400: #52cfe7;
|
|
34
|
+
--color-info-500: #1eadd8;
|
|
35
|
+
--color-info-600: #1588b9;
|
|
36
|
+
--color-info-700: #0f669b;
|
|
37
|
+
--color-info-800: #09497d;
|
|
38
|
+
--color-info-900: #053467;
|
|
37
39
|
|
|
38
40
|
/* Success */
|
|
39
|
-
--
|
|
40
|
-
--
|
|
41
|
-
--
|
|
42
|
-
--
|
|
43
|
-
--
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
--
|
|
47
|
-
--
|
|
41
|
+
--color-success-100: #f3fccc;
|
|
42
|
+
--color-success-200: #e4f99a;
|
|
43
|
+
--color-success-300: #ccef66;
|
|
44
|
+
--color-success-400: #b2e040;
|
|
45
|
+
--color-success-500: #8ecc0a;
|
|
46
|
+
--color-success-600: #74af07;
|
|
47
|
+
--color-success-700: #5c9205;
|
|
48
|
+
--color-success-800: #467603;
|
|
49
|
+
--color-success-900: #366101;
|
|
48
50
|
|
|
49
51
|
/* Warning */
|
|
50
|
-
--
|
|
51
|
-
--
|
|
52
|
-
--
|
|
53
|
-
--
|
|
54
|
-
--
|
|
55
|
-
--
|
|
56
|
-
--
|
|
57
|
-
--
|
|
58
|
-
--
|
|
52
|
+
--color-warning-100: #fff3d6;
|
|
53
|
+
--color-warning-200: #ffe4ad;
|
|
54
|
+
--color-warning-300: #ffd083;
|
|
55
|
+
--color-warning-400: #ffbe65;
|
|
56
|
+
--color-warning-500: #ff9f32;
|
|
57
|
+
--color-warning-600: #db7d24;
|
|
58
|
+
--color-warning-700: #b75e19;
|
|
59
|
+
--color-warning-800: #93430f;
|
|
60
|
+
--color-warning-900: #7a3009;
|
|
59
61
|
|
|
60
62
|
/* Critical */
|
|
61
|
-
--
|
|
62
|
-
--
|
|
63
|
-
--
|
|
64
|
-
--
|
|
65
|
-
--
|
|
66
|
-
--
|
|
67
|
-
--
|
|
68
|
-
--
|
|
69
|
-
--
|
|
63
|
+
--color-critical-100: #fee4d6;
|
|
64
|
+
--color-critical-200: #fec3ae;
|
|
65
|
+
--color-critical-300: #fd9a86;
|
|
66
|
+
--color-critical-400: #fb7467;
|
|
67
|
+
--color-critical-500: #f93636;
|
|
68
|
+
--color-critical-600: #d62736;
|
|
69
|
+
--color-critical-700: #b31b35;
|
|
70
|
+
--color-critical-800: #901132;
|
|
71
|
+
--color-critical-900: #770a30;
|
|
70
72
|
|
|
71
73
|
/* Transparent */
|
|
72
|
-
--
|
|
74
|
+
--color-transparent: transparent;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
@utility gradient-neutral-50-transparent-to-b {
|
|
78
|
+
@apply bg-linear-to-b from-neutral-50/100 to-neutral-50/0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@utility gradient-neutral-50-transparent-to-t {
|
|
82
|
+
@apply bg-linear-to-t from-neutral-50/100 to-neutral-50/0;
|
|
73
83
|
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--ring-color-*: initial;
|
|
3
|
+
|
|
4
|
+
--ring-color-primary: var(--color-primary-200);
|
|
5
|
+
--ring-color-success: var(--color-success-200);
|
|
6
|
+
--ring-color-warning: var(--color-warning-200);
|
|
7
|
+
--ring-color-critical: var(--color-critical-200);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@utility focus-ring {
|
|
11
|
+
&:focus,
|
|
12
|
+
&:has(:focus) {
|
|
13
|
+
outline: none;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&:focus-visible,
|
|
17
|
+
&:has(:focus-visible) {
|
|
18
|
+
@apply ring-3 ring-offset-3;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@utility focus-ring-primary {
|
|
23
|
+
@apply focus-ring;
|
|
24
|
+
|
|
25
|
+
&:focus-visible,
|
|
26
|
+
&:has(:focus-visible) {
|
|
27
|
+
@apply ring-primary;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@utility focus-ring-success {
|
|
32
|
+
@apply focus-ring;
|
|
33
|
+
|
|
34
|
+
&:focus-visible,
|
|
35
|
+
&:has(:focus-visible) {
|
|
36
|
+
@apply ring-success;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@utility focus-ring-warning {
|
|
41
|
+
@apply focus-ring;
|
|
42
|
+
|
|
43
|
+
&:focus-visible,
|
|
44
|
+
&:has(:focus-visible) {
|
|
45
|
+
@apply ring-warning;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@utility focus-ring-critical {
|
|
50
|
+
@apply focus-ring;
|
|
51
|
+
|
|
52
|
+
&:focus-visible,
|
|
53
|
+
&:has(:focus-visible) {
|
|
54
|
+
@apply ring-critical;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -1,52 +1,54 @@
|
|
|
1
|
-
|
|
1
|
+
@theme {
|
|
2
|
+
--shadow-*: initial;
|
|
3
|
+
|
|
2
4
|
/* Neutral */
|
|
3
|
-
--
|
|
4
|
-
--
|
|
5
|
-
--
|
|
6
|
-
--
|
|
7
|
-
--
|
|
8
|
-
--
|
|
5
|
+
--shadow-neutral-sm: 0px 1px 2px 0px rgba(97, 110, 124, 0.05);
|
|
6
|
+
--shadow-neutral: 0px 1px 3px 0px rgba(97, 110, 124, 0.1), 0px 1px 2px -1px rgba(97, 110, 124, 0.1);
|
|
7
|
+
--shadow-neutral-md: 0px 4px 6px -1px rgba(82, 96, 109, 0.1), 0px 2px 4px -2px rgba(82, 96, 109, 0.1);
|
|
8
|
+
--shadow-neutral-lg: 0px 10px 15px -3px rgba(82, 96, 109, 0.1), 0px 4px 6px -4px rgba(82, 96, 109, 0.1);
|
|
9
|
+
--shadow-neutral-xl: 0px 20px 25px -5px rgba(82, 96, 109, 0.1), 0px 8px 10px -6px rgba(82, 96, 109, 0.1);
|
|
10
|
+
--shadow-neutral-2xl: 0px 25px 50px -12px rgba(82, 96, 109, 0.24);
|
|
9
11
|
|
|
10
12
|
/* Primary */
|
|
11
|
-
--
|
|
12
|
-
--
|
|
13
|
-
--
|
|
14
|
-
--
|
|
15
|
-
--
|
|
16
|
-
--
|
|
13
|
+
--shadow-primary-sm: 0px 1px 2px 0px rgba(0, 59, 245, 0.05);
|
|
14
|
+
--shadow-primary: 0px 1px 3px 0px rgba(0, 59, 245, 0.1), 0px 1px 2px -1px rgba(0, 59, 245, 0.1);
|
|
15
|
+
--shadow-primary-md: 0px 4px 6px -1px rgba(0, 59, 245, 0.1), 0px 2px 4px -2px rgba(0, 59, 245, 0.1);
|
|
16
|
+
--shadow-primary-lg: 0px 10px 15px -3px rgba(0, 59, 245, 0.1), 0px 4px 6px -4px rgba(0, 59, 245, 0.1);
|
|
17
|
+
--shadow-primary-xl: 0px 20px 25px -5px rgba(0, 59, 245, 0.1), 0px 8px 10px -6px rgba(0, 59, 245, 0.1);
|
|
18
|
+
--shadow-primary-2xl: 0px 25px 50px -12px rgba(0, 59, 245, 0.24);
|
|
17
19
|
|
|
18
20
|
/* Success */
|
|
19
|
-
--
|
|
20
|
-
--
|
|
21
|
-
--
|
|
22
|
-
--
|
|
23
|
-
--
|
|
24
|
-
--
|
|
21
|
+
--shadow-success-sm: 0px 1px 2px 0px rgba(116, 175, 7, 0.05);
|
|
22
|
+
--shadow-success: 0px 1px 3px 0px rgba(116, 175, 7, 0.1), 0px 1px 2px -1px rgba(116, 175, 7, 0.1);
|
|
23
|
+
--shadow-success-md: 0px 4px 6px -1px rgba(116, 175, 7, 0.1), 0px 2px 4px -2px rgba(116, 175, 7, 0.1);
|
|
24
|
+
--shadow-success-lg: 0px 10px 15px -3px rgba(116, 175, 7, 0.1), 0px 4px 6px -4px rgba(116, 175, 7, 0.1);
|
|
25
|
+
--shadow-success-xl: 0px 20px 25px -5px rgba(116, 175, 7, 0.1), 0px 8px 10px -6px rgba(116, 175, 7, 0.1);
|
|
26
|
+
--shadow-success-2xl: 0px 25px 50px -12px rgba(116, 175, 7, 0.24);
|
|
25
27
|
|
|
26
28
|
/* Warning */
|
|
27
|
-
--
|
|
28
|
-
--
|
|
29
|
-
--
|
|
30
|
-
--
|
|
31
|
-
--
|
|
32
|
-
--
|
|
29
|
+
--shadow-warning-sm: 0px 1px 2px 0px rgba(219, 125, 36, 0.05);
|
|
30
|
+
--shadow-warning: 0px 1px 3px 0px rgba(219, 125, 36, 0.1), 0px 1px 2px -1px rgba(219, 125, 36, 0.1);
|
|
31
|
+
--shadow-warning-md: 0px 4px 6px -1px rgba(219, 125, 36, 0.1), 0px 2px 4px -2px rgba(219, 125, 36, 0.1);
|
|
32
|
+
--shadow-warning-lg: 0px 10px 15px -3px rgba(219, 125, 36, 0.1), 0px 4px 6px -4px rgba(219, 125, 36, 0.1);
|
|
33
|
+
--shadow-warning-xl: 0px 20px 25px -5px rgba(219, 125, 36, 0.1), 0px 8px 10px -6px rgba(219, 125, 36, 0.1);
|
|
34
|
+
--shadow-warning-2xl: 0px 25px 50px -12px rgba(219, 125, 36, 0.24);
|
|
33
35
|
|
|
34
36
|
/* Critical */
|
|
35
|
-
--
|
|
36
|
-
--
|
|
37
|
-
--
|
|
38
|
-
--
|
|
39
|
-
--
|
|
40
|
-
--
|
|
37
|
+
--shadow-critical-sm: 0px 1px 2px 0px rgba(214, 39, 54, 0.05);
|
|
38
|
+
--shadow-critical: 0px 1px 3px 0px rgba(214, 39, 54, 0.1), 0px 1px 2px -1px rgba(214, 39, 54, 0.1);
|
|
39
|
+
--shadow-critical-md: 0px 4px 6px -1px rgba(214, 39, 54, 0.1), 0px 2px 4px -2px rgba(214, 39, 54, 0.1);
|
|
40
|
+
--shadow-critical-lg: 0px 10px 15px -3px rgba(214, 39, 54, 0.1), 0px 4px 6px -4px rgba(214, 39, 54, 0.1);
|
|
41
|
+
--shadow-critical-xl: 0px 20px 25px -5px rgba(214, 39, 54, 0.1), 0px 8px 10px -6px rgba(214, 39, 54, 0.1);
|
|
42
|
+
--shadow-critical-2xl: 0px 25px 50px -12px rgba(214, 39, 54, 0.24);
|
|
41
43
|
|
|
42
44
|
/* Info */
|
|
43
|
-
--
|
|
44
|
-
--
|
|
45
|
-
--
|
|
46
|
-
--
|
|
47
|
-
--
|
|
48
|
-
--
|
|
45
|
+
--shadow-info-sm: 0px 1px 2px 0px rgba(21, 136, 185, 0.05);
|
|
46
|
+
--shadow-info: 0px 1px 3px 0px rgba(21, 136, 185, 0.1), 0px 1px 2px -1px rgba(21, 136, 185, 0.1);
|
|
47
|
+
--shadow-info-md: 0px 4px 6px -1px rgba(21, 136, 185, 0.1), 0px 2px 4px -2px rgba(21, 136, 185, 0.1);
|
|
48
|
+
--shadow-info-lg: 0px 10px 15px -3px rgba(21, 136, 185, 0.1), 0px 4px 6px -4px rgba(21, 136, 185, 0.1);
|
|
49
|
+
--shadow-info-xl: 0px 20px 25px -5px rgba(21, 136, 185, 0.1), 0px 8px 10px -6px rgba(21, 136, 185, 0.1);
|
|
50
|
+
--shadow-info-2xl: 0px 25px 50px -12px rgba(21, 136, 185, 0.24);
|
|
49
51
|
|
|
50
52
|
/* None */
|
|
51
|
-
--
|
|
53
|
+
--shadow-none: 0px 0px #0000;
|
|
52
54
|
}
|
|
@@ -1,37 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
--
|
|
3
|
-
--guk-space-0: calc(var(--guk-space-base) * 0);
|
|
4
|
-
--guk-space-0-25: calc(var(--guk-space-base) * 0.25);
|
|
5
|
-
--guk-space-0-5: calc(var(--guk-space-base) * 0.5);
|
|
6
|
-
--guk-space-1-5: calc(var(--guk-space-base) * 1.5);
|
|
7
|
-
--guk-space-2: calc(var(--guk-space-base) * 2);
|
|
8
|
-
--guk-space-2-5: calc(var(--guk-space-base) * 2.5);
|
|
9
|
-
--guk-space-3: calc(var(--guk-space-base) * 3);
|
|
10
|
-
--guk-space-3-5: calc(var(--guk-space-base) * 3.5);
|
|
11
|
-
--guk-space-4: calc(var(--guk-space-base) * 4);
|
|
12
|
-
--guk-space-5: calc(var(--guk-space-base) * 5);
|
|
13
|
-
--guk-space-6: calc(var(--guk-space-base) * 6);
|
|
14
|
-
--guk-space-7: calc(var(--guk-space-base) * 7);
|
|
15
|
-
--guk-space-8: calc(var(--guk-space-base) * 8);
|
|
16
|
-
--guk-space-9: calc(var(--guk-space-base) * 9);
|
|
17
|
-
--guk-space-10: calc(var(--guk-space-base) * 10);
|
|
18
|
-
--guk-space-11: calc(var(--guk-space-base) * 11);
|
|
19
|
-
--guk-space-12: calc(var(--guk-space-base) * 12);
|
|
20
|
-
--guk-space-14: calc(var(--guk-space-base) * 14);
|
|
21
|
-
--guk-space-16: calc(var(--guk-space-base) * 16);
|
|
22
|
-
--guk-space-20: calc(var(--guk-space-base) * 20);
|
|
23
|
-
--guk-space-24: calc(var(--guk-space-base) * 24);
|
|
24
|
-
--guk-space-28: calc(var(--guk-space-base) * 28);
|
|
25
|
-
--guk-space-32: calc(var(--guk-space-base) * 32);
|
|
26
|
-
--guk-space-36: calc(var(--guk-space-base) * 36);
|
|
27
|
-
--guk-space-40: calc(var(--guk-space-base) * 40);
|
|
28
|
-
--guk-space-44: calc(var(--guk-space-base) * 44);
|
|
29
|
-
--guk-space-48: calc(var(--guk-space-base) * 48);
|
|
30
|
-
--guk-space-52: calc(var(--guk-space-base) * 52);
|
|
31
|
-
--guk-space-56: calc(var(--guk-space-base) * 56);
|
|
32
|
-
--guk-space-60: calc(var(--guk-space-base) * 60);
|
|
33
|
-
--guk-space-64: calc(var(--guk-space-base) * 64);
|
|
34
|
-
--guk-space-72: calc(var(--guk-space-base) * 72);
|
|
35
|
-
--guk-space-80: calc(var(--guk-space-base) * 80);
|
|
36
|
-
--guk-space-96: calc(var(--guk-space-base) * 96);
|
|
1
|
+
@theme {
|
|
2
|
+
--spacing: 4px;
|
|
37
3
|
}
|
|
@@ -1,28 +1,26 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
--guk-font-weight-normal: 400;
|
|
4
|
-
--guk-font-weight-semibold: 600;
|
|
1
|
+
@theme {
|
|
2
|
+
--font-*: initial;
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
--guk-font-size-xs: 0.75rem;
|
|
8
|
-
--guk-font-size-sm: 0.875rem;
|
|
9
|
-
--guk-font-size-base: 1rem;
|
|
10
|
-
--guk-font-size-lg: 1.125rem;
|
|
11
|
-
--guk-font-size-xl: 1.25rem;
|
|
12
|
-
--guk-font-size-2xl: 1.5rem;
|
|
13
|
-
--guk-font-size-3xl: 1.875rem;
|
|
14
|
-
--guk-font-size-4xl: 2.25rem;
|
|
15
|
-
--guk-font-size-5xl: 3rem;
|
|
16
|
-
|
|
17
|
-
/******* Line Height *******/
|
|
18
|
-
--guk-line-height-normal: 1.5;
|
|
19
|
-
--guk-line-height-tight: 1.25;
|
|
20
|
-
--guk-line-height-relaxed: 1.65;
|
|
21
|
-
|
|
22
|
-
/******* Font Family *******/
|
|
23
|
-
--guk-font-family:
|
|
4
|
+
--font-sans:
|
|
24
5
|
"Manrope", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
|
|
25
6
|
"Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
|
|
7
|
+
|
|
8
|
+
--font-weight-normal: 400;
|
|
9
|
+
--font-weight-semibold: 600;
|
|
10
|
+
|
|
11
|
+
--text-xs: 0.75rem;
|
|
12
|
+
--text-sm: 0.875rem;
|
|
13
|
+
--text-base: 1rem;
|
|
14
|
+
--text-lg: 1.125rem;
|
|
15
|
+
--text-xl: 1.25rem;
|
|
16
|
+
--text-2xl: 1.5rem;
|
|
17
|
+
--text-3xl: 1.875rem;
|
|
18
|
+
--text-4xl: 2.25rem;
|
|
19
|
+
--text-5xl: 3rem;
|
|
20
|
+
|
|
21
|
+
--leading-tight: 1.25;
|
|
22
|
+
--leading-normal: 1.5;
|
|
23
|
+
--leading-relaxed: 1.65;
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
@font-face {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
--animate-shake: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
|
|
3
|
+
|
|
4
|
+
@keyframes shake {
|
|
5
|
+
10%,
|
|
6
|
+
90% {
|
|
7
|
+
transform: translate3d(-1px, 0, 0);
|
|
8
|
+
}
|
|
9
|
+
20%,
|
|
10
|
+
80% {
|
|
11
|
+
transform: translate3d(2px, 0, 0);
|
|
12
|
+
}
|
|
13
|
+
30%,
|
|
14
|
+
50%,
|
|
15
|
+
70% {
|
|
16
|
+
transform: translate3d(-4px, 0, 0);
|
|
17
|
+
}
|
|
18
|
+
40%,
|
|
19
|
+
60% {
|
|
20
|
+
transform: translate3d(4px, 0, 0);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|