@yccui/ui 1.0.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 +504 -0
- package/dist/components/DataDisplay/Accordion.d.ts +12 -0
- package/dist/components/DataDisplay/Accordion.d.ts.map +1 -0
- package/dist/components/DataDisplay/Avatar.d.ts +9 -0
- package/dist/components/DataDisplay/Avatar.d.ts.map +1 -0
- package/dist/components/DataDisplay/Badge.d.ts +8 -0
- package/dist/components/DataDisplay/Badge.d.ts.map +1 -0
- package/dist/components/DataDisplay/Banner.d.ts +13 -0
- package/dist/components/DataDisplay/Banner.d.ts.map +1 -0
- package/dist/components/DataDisplay/Card.d.ts +27 -0
- package/dist/components/DataDisplay/Card.d.ts.map +1 -0
- package/dist/components/DataDisplay/CompareBar.d.ts +10 -0
- package/dist/components/DataDisplay/CompareBar.d.ts.map +1 -0
- package/dist/components/DataDisplay/CopyButton.d.ts +8 -0
- package/dist/components/DataDisplay/CopyButton.d.ts.map +1 -0
- package/dist/components/DataDisplay/DataList.d.ts +11 -0
- package/dist/components/DataDisplay/DataList.d.ts.map +1 -0
- package/dist/components/DataDisplay/Donut.d.ts +10 -0
- package/dist/components/DataDisplay/Donut.d.ts.map +1 -0
- package/dist/components/DataDisplay/EmptyState.d.ts +10 -0
- package/dist/components/DataDisplay/EmptyState.d.ts.map +1 -0
- package/dist/components/DataDisplay/KV.d.ts +9 -0
- package/dist/components/DataDisplay/KV.d.ts.map +1 -0
- package/dist/components/DataDisplay/Popover.d.ts +9 -0
- package/dist/components/DataDisplay/Popover.d.ts.map +1 -0
- package/dist/components/DataDisplay/ProgressBar.d.ts +10 -0
- package/dist/components/DataDisplay/ProgressBar.d.ts.map +1 -0
- package/dist/components/DataDisplay/StatCard.d.ts +13 -0
- package/dist/components/DataDisplay/StatCard.d.ts.map +1 -0
- package/dist/components/DataDisplay/Table.d.ts +23 -0
- package/dist/components/DataDisplay/Table.d.ts.map +1 -0
- package/dist/components/DataDisplay/Tag.d.ts +9 -0
- package/dist/components/DataDisplay/Tag.d.ts.map +1 -0
- package/dist/components/DataDisplay/Timeline.d.ts +12 -0
- package/dist/components/DataDisplay/Timeline.d.ts.map +1 -0
- package/dist/components/DataDisplay/Tooltip.d.ts +9 -0
- package/dist/components/DataDisplay/Tooltip.d.ts.map +1 -0
- package/dist/components/DataDisplay/TrendSpark.d.ts +9 -0
- package/dist/components/DataDisplay/TrendSpark.d.ts.map +1 -0
- package/dist/components/DataDisplay/index.d.ts +39 -0
- package/dist/components/DataDisplay/index.d.ts.map +1 -0
- package/dist/components/Feedback/Alert.d.ts +9 -0
- package/dist/components/Feedback/Alert.d.ts.map +1 -0
- package/dist/components/Feedback/ConfirmDialog.d.ts +14 -0
- package/dist/components/Feedback/ConfirmDialog.d.ts.map +1 -0
- package/dist/components/Feedback/Drawer.d.ts +12 -0
- package/dist/components/Feedback/Drawer.d.ts.map +1 -0
- package/dist/components/Feedback/Modal.d.ts +14 -0
- package/dist/components/Feedback/Modal.d.ts.map +1 -0
- package/dist/components/Feedback/Skeleton.d.ts +8 -0
- package/dist/components/Feedback/Skeleton.d.ts.map +1 -0
- package/dist/components/Feedback/Spinner.d.ts +8 -0
- package/dist/components/Feedback/Spinner.d.ts.map +1 -0
- package/dist/components/Feedback/Toast.d.ts +20 -0
- package/dist/components/Feedback/Toast.d.ts.map +1 -0
- package/dist/components/Feedback/index.d.ts +15 -0
- package/dist/components/Feedback/index.d.ts.map +1 -0
- package/dist/components/Form/Button.d.ts +16 -0
- package/dist/components/Form/Button.d.ts.map +1 -0
- package/dist/components/Form/Checkbox.d.ts +12 -0
- package/dist/components/Form/Checkbox.d.ts.map +1 -0
- package/dist/components/Form/DateInput.d.ts +12 -0
- package/dist/components/Form/DateInput.d.ts.map +1 -0
- package/dist/components/Form/FileUpload.d.ts +11 -0
- package/dist/components/Form/FileUpload.d.ts.map +1 -0
- package/dist/components/Form/FormGroup.d.ts +11 -0
- package/dist/components/Form/FormGroup.d.ts.map +1 -0
- package/dist/components/Form/Input.d.ts +17 -0
- package/dist/components/Form/Input.d.ts.map +1 -0
- package/dist/components/Form/Radio.d.ts +13 -0
- package/dist/components/Form/Radio.d.ts.map +1 -0
- package/dist/components/Form/RadioGroup.d.ts +16 -0
- package/dist/components/Form/RadioGroup.d.ts.map +1 -0
- package/dist/components/Form/ScanZone.d.ts +8 -0
- package/dist/components/Form/ScanZone.d.ts.map +1 -0
- package/dist/components/Form/SearchInput.d.ts +13 -0
- package/dist/components/Form/SearchInput.d.ts.map +1 -0
- package/dist/components/Form/Select.d.ts +18 -0
- package/dist/components/Form/Select.d.ts.map +1 -0
- package/dist/components/Form/Textarea.d.ts +14 -0
- package/dist/components/Form/Textarea.d.ts.map +1 -0
- package/dist/components/Form/Toggle.d.ts +11 -0
- package/dist/components/Form/Toggle.d.ts.map +1 -0
- package/dist/components/Form/index.d.ts +27 -0
- package/dist/components/Form/index.d.ts.map +1 -0
- package/dist/components/Icons/Icon.d.ts +10 -0
- package/dist/components/Icons/Icon.d.ts.map +1 -0
- package/dist/components/Icons/index.d.ts +3 -0
- package/dist/components/Icons/index.d.ts.map +1 -0
- package/dist/components/Layout/Col.d.ts +12 -0
- package/dist/components/Layout/Col.d.ts.map +1 -0
- package/dist/components/Layout/Container.d.ts +9 -0
- package/dist/components/Layout/Container.d.ts.map +1 -0
- package/dist/components/Layout/Divider.d.ts +7 -0
- package/dist/components/Layout/Divider.d.ts.map +1 -0
- package/dist/components/Layout/Footer.d.ts +10 -0
- package/dist/components/Layout/Footer.d.ts.map +1 -0
- package/dist/components/Layout/Grid.d.ts +10 -0
- package/dist/components/Layout/Grid.d.ts.map +1 -0
- package/dist/components/Layout/Header.d.ts +15 -0
- package/dist/components/Layout/Header.d.ts.map +1 -0
- package/dist/components/Layout/Page.d.ts +14 -0
- package/dist/components/Layout/Page.d.ts.map +1 -0
- package/dist/components/Layout/PageHeader.d.ts +9 -0
- package/dist/components/Layout/PageHeader.d.ts.map +1 -0
- package/dist/components/Layout/Row.d.ts +9 -0
- package/dist/components/Layout/Row.d.ts.map +1 -0
- package/dist/components/Layout/Sidebar.d.ts +10 -0
- package/dist/components/Layout/Sidebar.d.ts.map +1 -0
- package/dist/components/Layout/Spacer.d.ts +7 -0
- package/dist/components/Layout/Spacer.d.ts.map +1 -0
- package/dist/components/Layout/Stack.d.ts +10 -0
- package/dist/components/Layout/Stack.d.ts.map +1 -0
- package/dist/components/Layout/index.d.ts +25 -0
- package/dist/components/Layout/index.d.ts.map +1 -0
- package/dist/components/Navigation/Breadcrumb.d.ts +12 -0
- package/dist/components/Navigation/Breadcrumb.d.ts.map +1 -0
- package/dist/components/Navigation/ContextMenu.d.ts +14 -0
- package/dist/components/Navigation/ContextMenu.d.ts.map +1 -0
- package/dist/components/Navigation/Nav.d.ts +31 -0
- package/dist/components/Navigation/Nav.d.ts.map +1 -0
- package/dist/components/Navigation/Pagination.d.ts +9 -0
- package/dist/components/Navigation/Pagination.d.ts.map +1 -0
- package/dist/components/Navigation/Stepper.d.ts +10 -0
- package/dist/components/Navigation/Stepper.d.ts.map +1 -0
- package/dist/components/Navigation/Tabs.d.ts +14 -0
- package/dist/components/Navigation/Tabs.d.ts.map +1 -0
- package/dist/components/Navigation/index.d.ts +13 -0
- package/dist/components/Navigation/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/index.cjs +5 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3704 -0
- package/dist/pages/ComponentShowcase.d.ts +2 -0
- package/dist/pages/ComponentShowcase.d.ts.map +1 -0
- package/dist/pages/DashboardDemo.d.ts +2 -0
- package/dist/pages/DashboardDemo.d.ts.map +1 -0
- package/dist/pages/PrototypeHome.d.ts +3 -0
- package/dist/pages/PrototypeHome.d.ts.map +1 -0
- package/dist/pages/index.d.ts +4 -0
- package/dist/pages/index.d.ts.map +1 -0
- package/dist/styles.css +1 -0
- package/dist/tokens/colors.d.ts +259 -0
- package/dist/tokens/colors.d.ts.map +1 -0
- package/dist/tokens/index.d.ts +4 -0
- package/dist/tokens/index.d.ts.map +1 -0
- package/dist/tokens/layout.d.ts +138 -0
- package/dist/tokens/layout.d.ts.map +1 -0
- package/dist/tokens/typography.d.ts +148 -0
- package/dist/tokens/typography.d.ts.map +1 -0
- package/package.json +42 -0
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
export declare const fontFamily: {
|
|
2
|
+
readonly sans: "'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif";
|
|
3
|
+
readonly mono: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace";
|
|
4
|
+
};
|
|
5
|
+
export declare const fontWeight: {
|
|
6
|
+
readonly regular: 400;
|
|
7
|
+
readonly medium: 500;
|
|
8
|
+
readonly semibold: 600;
|
|
9
|
+
readonly bold: 700;
|
|
10
|
+
readonly extrabold: 800;
|
|
11
|
+
readonly black: 900;
|
|
12
|
+
};
|
|
13
|
+
export declare const fontSize: {
|
|
14
|
+
readonly xs2: "9px";
|
|
15
|
+
readonly xs: "10px";
|
|
16
|
+
readonly xs3: "10.5px";
|
|
17
|
+
readonly sm2: "11px";
|
|
18
|
+
readonly sm: "12px";
|
|
19
|
+
readonly sm3: "12.5px";
|
|
20
|
+
readonly base: "13px";
|
|
21
|
+
readonly md: "14px";
|
|
22
|
+
readonly md2: "15px";
|
|
23
|
+
readonly md3: "16px";
|
|
24
|
+
readonly lg: "18px";
|
|
25
|
+
readonly xl: "20px";
|
|
26
|
+
readonly '2xl': "24px";
|
|
27
|
+
};
|
|
28
|
+
export declare const lineHeight: {
|
|
29
|
+
readonly none: "1";
|
|
30
|
+
readonly tight: "1.25";
|
|
31
|
+
readonly snug: "1.375";
|
|
32
|
+
readonly normal: "1.5";
|
|
33
|
+
};
|
|
34
|
+
export declare const letterSpacing: {
|
|
35
|
+
readonly wide: "0.025em";
|
|
36
|
+
readonly wider: "0.05em";
|
|
37
|
+
};
|
|
38
|
+
export declare const textStyle: {
|
|
39
|
+
readonly navGroupLabel: {
|
|
40
|
+
readonly size: "9px";
|
|
41
|
+
readonly weight: 700;
|
|
42
|
+
readonly spacing: "0.05em";
|
|
43
|
+
readonly transform: "uppercase";
|
|
44
|
+
};
|
|
45
|
+
readonly navSectionLabel: {
|
|
46
|
+
readonly size: "12.5px";
|
|
47
|
+
readonly weight: 600;
|
|
48
|
+
};
|
|
49
|
+
readonly navItem: {
|
|
50
|
+
readonly size: "12px";
|
|
51
|
+
readonly weight: 500;
|
|
52
|
+
};
|
|
53
|
+
readonly fieldLabel: {
|
|
54
|
+
readonly size: "10px";
|
|
55
|
+
readonly weight: 600;
|
|
56
|
+
readonly spacing: "0.025em";
|
|
57
|
+
readonly transform: "uppercase";
|
|
58
|
+
};
|
|
59
|
+
readonly input: {
|
|
60
|
+
readonly size: "12px";
|
|
61
|
+
readonly weight: 400;
|
|
62
|
+
};
|
|
63
|
+
readonly pageTitle: {
|
|
64
|
+
readonly size: "20px";
|
|
65
|
+
readonly weight: 700;
|
|
66
|
+
};
|
|
67
|
+
readonly detailTitle: {
|
|
68
|
+
readonly size: "18px";
|
|
69
|
+
readonly weight: 700;
|
|
70
|
+
};
|
|
71
|
+
readonly panelTitle: {
|
|
72
|
+
readonly size: "14px";
|
|
73
|
+
readonly weight: 700;
|
|
74
|
+
};
|
|
75
|
+
readonly body: {
|
|
76
|
+
readonly size: "12px";
|
|
77
|
+
readonly weight: 400;
|
|
78
|
+
};
|
|
79
|
+
readonly meta: {
|
|
80
|
+
readonly size: "11px";
|
|
81
|
+
readonly weight: 400;
|
|
82
|
+
};
|
|
83
|
+
readonly footnote: {
|
|
84
|
+
readonly size: "10.5px";
|
|
85
|
+
readonly weight: 400;
|
|
86
|
+
};
|
|
87
|
+
readonly kpiValue: {
|
|
88
|
+
readonly size: "24px";
|
|
89
|
+
readonly weight: 700;
|
|
90
|
+
};
|
|
91
|
+
readonly kpiLabel: {
|
|
92
|
+
readonly size: "10px";
|
|
93
|
+
readonly weight: 600;
|
|
94
|
+
readonly spacing: "0.025em";
|
|
95
|
+
readonly transform: "uppercase";
|
|
96
|
+
};
|
|
97
|
+
readonly tableValue: {
|
|
98
|
+
readonly size: "13px";
|
|
99
|
+
readonly weight: 400;
|
|
100
|
+
};
|
|
101
|
+
readonly reference: {
|
|
102
|
+
readonly size: "13px";
|
|
103
|
+
readonly weight: 700;
|
|
104
|
+
readonly family: "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace";
|
|
105
|
+
};
|
|
106
|
+
readonly badge: {
|
|
107
|
+
readonly size: "11px";
|
|
108
|
+
readonly weight: 600;
|
|
109
|
+
};
|
|
110
|
+
readonly chip: {
|
|
111
|
+
readonly size: "10px";
|
|
112
|
+
readonly weight: 700;
|
|
113
|
+
};
|
|
114
|
+
readonly btn: {
|
|
115
|
+
readonly size: "10px";
|
|
116
|
+
readonly weight: 600;
|
|
117
|
+
};
|
|
118
|
+
};
|
|
119
|
+
export declare const typographyTokens: {
|
|
120
|
+
readonly 'font-sans': "'Poppins', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif";
|
|
121
|
+
readonly 'font-mono': "ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Courier New', monospace";
|
|
122
|
+
readonly 'size-xs2': "9px";
|
|
123
|
+
readonly 'size-xs': "10px";
|
|
124
|
+
readonly 'size-xs3': "10.5px";
|
|
125
|
+
readonly 'size-sm2': "11px";
|
|
126
|
+
readonly 'size-sm': "12px";
|
|
127
|
+
readonly 'size-sm3': "12.5px";
|
|
128
|
+
readonly 'size-base': "13px";
|
|
129
|
+
readonly 'size-md': "14px";
|
|
130
|
+
readonly 'size-md2': "15px";
|
|
131
|
+
readonly 'size-md3': "16px";
|
|
132
|
+
readonly 'size-lg': "18px";
|
|
133
|
+
readonly 'size-xl': "20px";
|
|
134
|
+
readonly 'size-2xl': "24px";
|
|
135
|
+
readonly 'weight-regular': string;
|
|
136
|
+
readonly 'weight-medium': string;
|
|
137
|
+
readonly 'weight-semibold': string;
|
|
138
|
+
readonly 'weight-bold': string;
|
|
139
|
+
readonly 'weight-extrabold': string;
|
|
140
|
+
readonly 'weight-black': string;
|
|
141
|
+
readonly 'leading-tight': "1.25";
|
|
142
|
+
readonly 'leading-none': "1";
|
|
143
|
+
readonly 'leading-snug': "1.375";
|
|
144
|
+
readonly 'leading-normal': "1.5";
|
|
145
|
+
readonly 'tracking-wide': "0.025em";
|
|
146
|
+
readonly 'tracking-wider': "0.05em";
|
|
147
|
+
};
|
|
148
|
+
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/tokens/typography.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU;;;CAKb,CAAC;AAKX,eAAO,MAAM,UAAU;;;;;;;CAOb,CAAC;AAMX,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;CAqBX,CAAC;AAKX,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AAKX,eAAO,MAAM,aAAa;;;CAGhB,CAAC;AAKX,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyFZ,CAAC;AAIX,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCnB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yccui/ui",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "React component library for the Your Cargo Contact APIP platform",
|
|
5
|
+
"keywords": ["react", "components", "logistics", "freight", "customs", "ui"],
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"type": "module",
|
|
8
|
+
"main": "dist/index.cjs",
|
|
9
|
+
"module": "dist/index.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"require": "./dist/index.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./styles": "./dist/styles.css"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"sideEffects": ["dist/styles.css"],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"build": "vite build && tsc --emitDeclarationOnly --outDir dist",
|
|
26
|
+
"dev": "vite build --watch",
|
|
27
|
+
"typecheck": "tsc --noEmit",
|
|
28
|
+
"prepublishOnly": "npm run build"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"react": ">=18.0.0",
|
|
32
|
+
"react-dom": ">=18.0.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@vitejs/plugin-react": "^5.0.0",
|
|
36
|
+
"@types/react": "^18.3.0",
|
|
37
|
+
"@types/react-dom": "^18.3.0",
|
|
38
|
+
"typescript": "^5.5.0",
|
|
39
|
+
"vite": "^7.0.0",
|
|
40
|
+
"vite-plugin-dts": "^4.0.0"
|
|
41
|
+
}
|
|
42
|
+
}
|