@sybilion/uilib 1.5.0 → 1.6.1
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 +17 -1
- package/assets/base.css +148 -0
- package/assets/globals.css +10 -564
- package/assets/tokens.css +288 -0
- package/dist/esm/src/components/ui/AnalysesSelector/AnalysesSelector.styl.js +1 -1
- package/dist/esm/src/components/ui/AppHeader/AppHeader.styl.js +1 -1
- package/dist/esm/src/components/ui/Breadcrumb/Breadcrumb.js +2 -2
- package/dist/esm/src/components/ui/Breadcrumb/Breadcrumb.styl.js +1 -1
- package/dist/esm/src/components/ui/Button/Button.styl.js +1 -1
- package/dist/esm/src/components/ui/Chat/ChatChrome/ChatChrome.js +1 -1
- package/dist/esm/src/components/ui/Checkbox/Checkbox.styl.js +1 -1
- package/dist/esm/src/components/ui/Chip/Chip.styl.js +1 -1
- package/dist/esm/src/components/ui/DatePicker/DatePicker.styl.js +1 -1
- package/dist/esm/src/components/ui/Dialog/Dialog.styl.js +1 -1
- package/dist/esm/src/components/ui/DropdownMenu/DropdownMenu.js +3 -3
- package/dist/esm/src/components/ui/DropdownMenu/DropdownMenu.styl.js +2 -2
- package/dist/esm/src/components/ui/FileChip/FileChip.styl.js +1 -1
- package/dist/esm/src/components/ui/Input/Input.styl.js +1 -1
- package/dist/esm/src/components/ui/LegacyPlatformLink/LegacyPlatformLink.styl.js +1 -1
- package/dist/esm/src/components/ui/Notifications/Notifications.styl.js +1 -1
- package/dist/esm/src/components/ui/RadioGroup/RadioGroup.styl.js +1 -1
- package/dist/esm/src/components/ui/Select/Select.styl.js +1 -1
- package/dist/esm/src/components/ui/Sheet/Sheet.js +1 -1
- package/dist/esm/src/components/ui/Sheet/Sheet.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarGroupAction/SidebarGroupAction.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarMenuAction/SidebarMenuAction.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarMenuButton/SidebarMenuButton.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarMenuSubButton/SidebarMenuSubButton.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarRail/SidebarRail.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarResizeHandle/SidebarResizeHandle.styl.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.js +1 -1
- package/dist/esm/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl.js +1 -1
- package/dist/esm/src/components/ui/Slider/Slider.styl.js +1 -1
- package/dist/esm/src/components/ui/SupplyChainMap/SupplyChainMap.styl.js +1 -1
- package/dist/esm/src/components/ui/SupplyChainMap/use-map-base-renderer.js +2 -2
- package/dist/esm/src/components/ui/Switch/Switch.styl.js +1 -1
- package/dist/esm/src/components/ui/Tabs/Tabs.styl.js +1 -1
- package/dist/esm/src/components/ui/Toggle/Toggle.styl.js +1 -1
- package/dist/esm/src/components/ui/ToggleGroup/ToggleGroup.styl.js +1 -1
- package/dist/esm/src/components/ui/WorkspaceAppSwitcher/WorkspaceAppSwitcher.styl.js +1 -1
- package/dist/esm/src/components/widgets/DriverMap/DriverIcon/DriverIcon.styl.js +1 -1
- package/dist/esm/src/components/widgets/DriverMap/driverCategoryIcon.js +23 -23
- package/dist/esm/types/src/docs/config/vite.config.d.ts +2 -0
- package/dist/esm/types/tests/buttonStyles.test.d.ts +1 -0
- package/dist/esm/types/tests/cssEntries.test.d.ts +1 -0
- package/dist/esm/types/tests/focusOutline.test.d.ts +1 -0
- package/package.json +9 -28
- package/src/components/ui/Breadcrumb/Breadcrumb.tsx +1 -2
- package/src/components/ui/Button/Button.styl +118 -104
- package/src/components/ui/Chat/ChatChrome/ChatChrome.tsx +1 -1
- package/src/components/ui/Chat/ChatPrompt/ChatPrompt.styl.d.ts +11 -11
- package/src/components/ui/DropdownMenu/DropdownMenu.styl +3 -0
- package/src/components/ui/DropdownMenu/DropdownMenu.styl.d.ts +1 -0
- package/src/components/ui/DropdownMenu/DropdownMenu.tsx +3 -3
- package/src/components/ui/Select/Select.styl.d.ts +28 -28
- package/src/components/ui/Sheet/Sheet.tsx +1 -1
- package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.styl +1 -0
- package/src/components/ui/Sidebar/SidebarTrigger/SidebarTrigger.tsx +1 -1
- package/src/components/ui/SupplyChainMap/SupplyChainMap.styl.d.ts +19 -19
- package/src/components/ui/SupplyChainMap/use-map-base-renderer.ts +2 -1
- package/src/components/widgets/DriverMap/driverCategoryIcon.tsx +23 -23
- package/src/docs/config/vite.config.ts +253 -0
- package/src/docs/pages/SpacingPage.tsx +1 -1
- package/src/lib/theme.styl +3 -1
- package/assets/index.html +0 -18
- package/src/docs/config/webpack.config.js +0 -275
|
@@ -4,7 +4,7 @@ import { ChartBarIcon, HouseIcon, HardHatIcon, ThermometerIcon, TruckIcon, Light
|
|
|
4
4
|
// Icon mapping based on category
|
|
5
5
|
const getCategoryIcon = (category) => {
|
|
6
6
|
if (!category) {
|
|
7
|
-
return jsx(ChartBarIcon, {
|
|
7
|
+
return jsx(ChartBarIcon, { size: "100%" });
|
|
8
8
|
}
|
|
9
9
|
const categoryLower = category.toLowerCase();
|
|
10
10
|
// Housing & Real Estate
|
|
@@ -12,7 +12,7 @@ const getCategoryIcon = (category) => {
|
|
|
12
12
|
categoryLower.includes('real estate') ||
|
|
13
13
|
categoryLower.includes('residential') ||
|
|
14
14
|
categoryLower.includes('property'))
|
|
15
|
-
return jsx(HouseIcon, {
|
|
15
|
+
return jsx(HouseIcon, { size: "100%" });
|
|
16
16
|
// Construction & Infrastructure
|
|
17
17
|
if (categoryLower.includes('construction') ||
|
|
18
18
|
categoryLower.includes('infrastructure') ||
|
|
@@ -20,7 +20,7 @@ const getCategoryIcon = (category) => {
|
|
|
20
20
|
categoryLower.includes('development') ||
|
|
21
21
|
categoryLower.includes('engineering') ||
|
|
22
22
|
categoryLower.includes('contracting'))
|
|
23
|
-
return jsx(HardHatIcon, {
|
|
23
|
+
return jsx(HardHatIcon, { size: "100%" });
|
|
24
24
|
// Climate & Environment
|
|
25
25
|
if (categoryLower.includes('climate') ||
|
|
26
26
|
categoryLower.includes('weather') ||
|
|
@@ -30,18 +30,18 @@ const getCategoryIcon = (category) => {
|
|
|
30
30
|
categoryLower.includes('pollution') ||
|
|
31
31
|
categoryLower.includes('sustainability') ||
|
|
32
32
|
categoryLower.includes('green'))
|
|
33
|
-
return jsx(ThermometerIcon, {
|
|
33
|
+
return jsx(ThermometerIcon, { size: "100%" });
|
|
34
34
|
// Supply Chain & Trade
|
|
35
35
|
if (categoryLower.includes('supply') ||
|
|
36
36
|
categoryLower.includes('trade') ||
|
|
37
37
|
categoryLower.includes('logistics') ||
|
|
38
38
|
categoryLower.includes('transport'))
|
|
39
|
-
return jsx(TruckIcon, {
|
|
39
|
+
return jsx(TruckIcon, { size: "100%" });
|
|
40
40
|
// Energy & Power
|
|
41
41
|
if (categoryLower.includes('energy') ||
|
|
42
42
|
categoryLower.includes('power') ||
|
|
43
43
|
categoryLower.includes('electricity'))
|
|
44
|
-
return jsx(LightningIcon, {
|
|
44
|
+
return jsx(LightningIcon, { size: "100%" });
|
|
45
45
|
// Labor Market & Employment
|
|
46
46
|
if (categoryLower.includes('labour') ||
|
|
47
47
|
categoryLower.includes('employment') ||
|
|
@@ -52,7 +52,7 @@ const getCategoryIcon = (category) => {
|
|
|
52
52
|
categoryLower.includes('salary') ||
|
|
53
53
|
categoryLower.includes('job market') ||
|
|
54
54
|
categoryLower.includes('workforce'))
|
|
55
|
-
return jsx(IdentificationCardIcon, {
|
|
55
|
+
return jsx(IdentificationCardIcon, { size: "100%" });
|
|
56
56
|
// Workforce & Human Resources
|
|
57
57
|
if (categoryLower.includes('workforce') ||
|
|
58
58
|
categoryLower.includes('hr') ||
|
|
@@ -61,37 +61,37 @@ const getCategoryIcon = (category) => {
|
|
|
61
61
|
categoryLower.includes('staffing') ||
|
|
62
62
|
categoryLower.includes('talent') ||
|
|
63
63
|
categoryLower.includes('recruitment'))
|
|
64
|
-
return jsx(UsersIcon, {
|
|
64
|
+
return jsx(UsersIcon, { size: "100%" });
|
|
65
65
|
// Manufacturing & Production
|
|
66
66
|
if (categoryLower.includes('volume') ||
|
|
67
67
|
categoryLower.includes('production') ||
|
|
68
68
|
categoryLower.includes('manufacturing') ||
|
|
69
69
|
categoryLower.includes('industry'))
|
|
70
|
-
return jsx(FactoryIcon, {
|
|
70
|
+
return jsx(FactoryIcon, { size: "100%" });
|
|
71
71
|
// Finance & Economics
|
|
72
72
|
if (categoryLower.includes('price') ||
|
|
73
73
|
categoryLower.includes('inflation') ||
|
|
74
74
|
categoryLower.includes('finance') ||
|
|
75
75
|
categoryLower.includes('economy') ||
|
|
76
76
|
categoryLower.includes('gdp'))
|
|
77
|
-
return jsx(CurrencyDollarIcon, {
|
|
77
|
+
return jsx(CurrencyDollarIcon, { size: "100%" });
|
|
78
78
|
// Data & Analytics
|
|
79
79
|
if (categoryLower.includes('data') ||
|
|
80
80
|
categoryLower.includes('analytics') ||
|
|
81
81
|
categoryLower.includes('statistics'))
|
|
82
|
-
return jsx(DatabaseIcon, {
|
|
82
|
+
return jsx(DatabaseIcon, { size: "100%" });
|
|
83
83
|
// Global & International
|
|
84
84
|
if (categoryLower.includes('global') ||
|
|
85
85
|
categoryLower.includes('international') ||
|
|
86
86
|
categoryLower.includes('world'))
|
|
87
|
-
return jsx(GlobeIcon, {
|
|
87
|
+
return jsx(GlobeIcon, { size: "100%" });
|
|
88
88
|
// Chemicals & Pharmaceuticals
|
|
89
89
|
if (categoryLower.includes('chemical') ||
|
|
90
90
|
categoryLower.includes('pharmaceutical') ||
|
|
91
91
|
categoryLower.includes('medicine') ||
|
|
92
92
|
categoryLower.includes('drug') ||
|
|
93
93
|
categoryLower.includes('compound'))
|
|
94
|
-
return jsx(FlaskIcon, {
|
|
94
|
+
return jsx(FlaskIcon, { size: "100%" });
|
|
95
95
|
// Food & Agriculture
|
|
96
96
|
if (categoryLower.includes('food') ||
|
|
97
97
|
categoryLower.includes('processed') ||
|
|
@@ -101,7 +101,7 @@ const getCategoryIcon = (category) => {
|
|
|
101
101
|
categoryLower.includes('grain') ||
|
|
102
102
|
categoryLower.includes('dairy') ||
|
|
103
103
|
categoryLower.includes('meat'))
|
|
104
|
-
return jsx(ForkKnifeIcon, {
|
|
104
|
+
return jsx(ForkKnifeIcon, { size: "100%" });
|
|
105
105
|
// Income & Wealth
|
|
106
106
|
if (categoryLower.includes('income') ||
|
|
107
107
|
categoryLower.includes('wealth') ||
|
|
@@ -109,7 +109,7 @@ const getCategoryIcon = (category) => {
|
|
|
109
109
|
categoryLower.includes('wage') ||
|
|
110
110
|
categoryLower.includes('earnings') ||
|
|
111
111
|
categoryLower.includes('revenue'))
|
|
112
|
-
return jsx(WalletIcon, {
|
|
112
|
+
return jsx(WalletIcon, { size: "100%" });
|
|
113
113
|
// Consumption & Retail
|
|
114
114
|
if (categoryLower.includes('consumption') ||
|
|
115
115
|
categoryLower.includes('retail') ||
|
|
@@ -117,7 +117,7 @@ const getCategoryIcon = (category) => {
|
|
|
117
117
|
categoryLower.includes('spending') ||
|
|
118
118
|
categoryLower.includes('purchases') ||
|
|
119
119
|
categoryLower.includes('demand'))
|
|
120
|
-
return jsx(ShoppingCartIcon, {
|
|
120
|
+
return jsx(ShoppingCartIcon, { size: "100%" });
|
|
121
121
|
// Living Conditions & Quality of Life
|
|
122
122
|
if (categoryLower.includes('living') ||
|
|
123
123
|
categoryLower.includes('quality') ||
|
|
@@ -126,7 +126,7 @@ const getCategoryIcon = (category) => {
|
|
|
126
126
|
categoryLower.includes('social') ||
|
|
127
127
|
categoryLower.includes('welfare') ||
|
|
128
128
|
categoryLower.includes('happiness'))
|
|
129
|
-
return jsx(HeartIcon, {
|
|
129
|
+
return jsx(HeartIcon, { size: "100%" });
|
|
130
130
|
// Minerals & Mining
|
|
131
131
|
if (categoryLower.includes('mineral') ||
|
|
132
132
|
categoryLower.includes('mining') ||
|
|
@@ -138,7 +138,7 @@ const getCategoryIcon = (category) => {
|
|
|
138
138
|
categoryLower.includes('iron') ||
|
|
139
139
|
categoryLower.includes('aluminum') ||
|
|
140
140
|
categoryLower.includes('lithium'))
|
|
141
|
-
return jsx(TreeIcon, {
|
|
141
|
+
return jsx(TreeIcon, { size: "100%" });
|
|
142
142
|
// Textiles & Fibers
|
|
143
143
|
if (categoryLower.includes('textile') ||
|
|
144
144
|
categoryLower.includes('fiber') ||
|
|
@@ -150,7 +150,7 @@ const getCategoryIcon = (category) => {
|
|
|
150
150
|
categoryLower.includes('synthetic') ||
|
|
151
151
|
categoryLower.includes('garment') ||
|
|
152
152
|
categoryLower.includes('apparel'))
|
|
153
|
-
return jsx(TShirtIcon, {
|
|
153
|
+
return jsx(TShirtIcon, { size: "100%" });
|
|
154
154
|
// Crafts & Artisan
|
|
155
155
|
if (categoryLower.includes('craft') ||
|
|
156
156
|
categoryLower.includes('artisan') ||
|
|
@@ -161,7 +161,7 @@ const getCategoryIcon = (category) => {
|
|
|
161
161
|
categoryLower.includes('pottery') ||
|
|
162
162
|
categoryLower.includes('woodwork') ||
|
|
163
163
|
categoryLower.includes('jewelry'))
|
|
164
|
-
return jsx(WrenchIcon, {
|
|
164
|
+
return jsx(WrenchIcon, { size: "100%" });
|
|
165
165
|
// Population & Demographics
|
|
166
166
|
if (categoryLower.includes('population') ||
|
|
167
167
|
categoryLower.includes('demographic') ||
|
|
@@ -173,7 +173,7 @@ const getCategoryIcon = (category) => {
|
|
|
173
173
|
categoryLower.includes('age') ||
|
|
174
174
|
categoryLower.includes('gender') ||
|
|
175
175
|
categoryLower.includes('ethnicity'))
|
|
176
|
-
return jsx(UsersIcon, {
|
|
176
|
+
return jsx(UsersIcon, { size: "100%" });
|
|
177
177
|
// Market Indices & Trading
|
|
178
178
|
if (categoryLower.includes('market') ||
|
|
179
179
|
categoryLower.includes('index') ||
|
|
@@ -186,9 +186,9 @@ const getCategoryIcon = (category) => {
|
|
|
186
186
|
categoryLower.includes('dow') ||
|
|
187
187
|
categoryLower.includes('ftse') ||
|
|
188
188
|
categoryLower.includes('candlestick'))
|
|
189
|
-
return jsx(ChartLineIcon, {
|
|
189
|
+
return jsx(ChartLineIcon, { size: "100%" });
|
|
190
190
|
// Default fallback
|
|
191
|
-
return jsx(ChartBarIcon, {
|
|
191
|
+
return jsx(ChartBarIcon, { size: "100%" });
|
|
192
192
|
};
|
|
193
193
|
|
|
194
194
|
export { getCategoryIcon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sybilion/uilib",
|
|
3
|
-
"version": "1.
|
|
4
|
-
"description": "Sybilion Design System — React UI components (
|
|
3
|
+
"version": "1.6.1",
|
|
4
|
+
"description": "Sybilion Design System — React UI components (Vite + Stylus)",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -55,7 +55,9 @@
|
|
|
55
55
|
"default": "./dist/esm/src/hooks/index.js"
|
|
56
56
|
},
|
|
57
57
|
"./src/*": "./src/*",
|
|
58
|
-
"./logo.svg": "./src/components/ui/Logo/logo.svg"
|
|
58
|
+
"./logo.svg": "./src/components/ui/Logo/logo.svg",
|
|
59
|
+
"./tokens.css": "./assets/tokens.css",
|
|
60
|
+
"./base.css": "./assets/base.css"
|
|
59
61
|
},
|
|
60
62
|
"files": [
|
|
61
63
|
"assets",
|
|
@@ -72,14 +74,14 @@
|
|
|
72
74
|
"tests": "jest",
|
|
73
75
|
"tests:watch": "jest --watch",
|
|
74
76
|
"ts": "tsc --noEmit",
|
|
75
|
-
"dev": "
|
|
77
|
+
"dev": "vite --config ./src/docs/config/vite.config.ts",
|
|
76
78
|
"prebuild": "cp src/components/ui/Logo/logo.svg assets/logo.svg",
|
|
77
79
|
"build:agent-glossary": "node scripts/build-agent-glossary.mjs --all",
|
|
78
80
|
"build": "yarn build:agent-glossary && rollup -c rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
|
79
81
|
"build:watch": "yarn build --watch",
|
|
80
82
|
"build:compress": "COMPRESS=true yarn build",
|
|
81
83
|
"publish:npm": "yarn build && npm publish --access public",
|
|
82
|
-
"docs:build": "
|
|
84
|
+
"docs:build": "vite build --config ./src/docs/config/vite.config.ts",
|
|
83
85
|
"release": "standard-version",
|
|
84
86
|
"release:major": "yarn release -- --release-as major",
|
|
85
87
|
"release:minor": "yarn release -- --release-as minor",
|
|
@@ -140,7 +142,6 @@
|
|
|
140
142
|
"recharts": "^3.2.1",
|
|
141
143
|
"standard-version": "^9.5.0",
|
|
142
144
|
"style-inject": "^0.3.0",
|
|
143
|
-
"tailwindcss": "^4.2.2",
|
|
144
145
|
"topojson-client": "^3.1.0",
|
|
145
146
|
"tslib": "^2.8.1",
|
|
146
147
|
"vaul": "^1.1.2",
|
|
@@ -172,10 +173,8 @@
|
|
|
172
173
|
"devDependencies": {
|
|
173
174
|
"@auth0/auth0-react": "^2.3.1",
|
|
174
175
|
"@babel/core": "^7.20.12",
|
|
175
|
-
"@babel/preset-typescript": "^7.21.0",
|
|
176
176
|
"@homecode/ui": "^4.30.6",
|
|
177
177
|
"@hookform/resolvers": "^5.0.0",
|
|
178
|
-
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
|
|
179
178
|
"@rollup/plugin-alias": "^6.0.0",
|
|
180
179
|
"@rollup/plugin-commonjs": "^24.0.1",
|
|
181
180
|
"@rollup/plugin-json": "^6.0.0",
|
|
@@ -183,7 +182,6 @@
|
|
|
183
182
|
"@rollup/plugin-typescript": "^11.0.0",
|
|
184
183
|
"@rollup/plugin-url": "^8.0.2",
|
|
185
184
|
"@svgr/rollup": "^6.5.1",
|
|
186
|
-
"@svgr/webpack": "^8.1.0",
|
|
187
185
|
"@sybilion/platform-sdk": "^0.0.4",
|
|
188
186
|
"@testing-library/dom": "^10.4.1",
|
|
189
187
|
"@testing-library/jest-dom": "^6.5.0",
|
|
@@ -196,31 +194,19 @@
|
|
|
196
194
|
"@types/react-dom": "^19.0.0",
|
|
197
195
|
"@types/topojson-client": "^3.1.5",
|
|
198
196
|
"@types/topojson-specification": "^1.0.5",
|
|
199
|
-
"
|
|
200
|
-
"babel-preset-react-app": "^10.0.1",
|
|
201
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
202
|
-
"copy-webpack-plugin": "^11.0.0",
|
|
203
|
-
"css-loader": "^6.7.3",
|
|
204
|
-
"css-modules-typescript-loader": "^4.0.1",
|
|
197
|
+
"@vitejs/plugin-react-swc": "^3.11.0",
|
|
205
198
|
"cssnano": "^6.0.3",
|
|
206
|
-
"dotenv": "^17.4.1",
|
|
207
199
|
"favicons": "^7.1.3",
|
|
208
|
-
"favicons-webpack-plugin": "^6.0.0",
|
|
209
|
-
"file-loader": "^6.2.0",
|
|
210
200
|
"glob": "^10.3.10",
|
|
211
|
-
"html-webpack-plugin": "^5.5.0",
|
|
212
201
|
"identity-obj-proxy": "^3.0.0",
|
|
213
202
|
"jest": "^29.7.0",
|
|
214
203
|
"jest-environment-jsdom": "^29.7.0",
|
|
215
|
-
"mini-css-extract-plugin": "^2.7.2",
|
|
216
|
-
"postcss-loader": "^7.0.2",
|
|
217
204
|
"postcss-preset-env": "^8.0.1",
|
|
218
205
|
"prettier": "^3.6.2",
|
|
219
206
|
"react": "^19.0.0",
|
|
220
207
|
"react-dom": "^19.1.1",
|
|
221
208
|
"react-hook-form": "^7.55.0",
|
|
222
209
|
"react-markdown": "^10.1.0",
|
|
223
|
-
"react-refresh": "^0.17.0",
|
|
224
210
|
"react-router-dom": "^6.28.0",
|
|
225
211
|
"remark-gfm": "^4.0.1",
|
|
226
212
|
"rollup": "^3.17.1",
|
|
@@ -229,16 +215,11 @@
|
|
|
229
215
|
"rollup-plugin-node-externals": "^5.1.2",
|
|
230
216
|
"rollup-plugin-postcss": "^4.0.2",
|
|
231
217
|
"rollup-plugin-uglify": "^6.0.4",
|
|
232
|
-
"style-loader": "^3.3.1",
|
|
233
218
|
"stylus": "^0.59.0",
|
|
234
|
-
"stylus-loader": "^7.1.0",
|
|
235
219
|
"ts-jest": "^29.2.5",
|
|
236
|
-
"ts-node": "^10.9.1",
|
|
237
220
|
"typescript": "^5.3.3",
|
|
238
221
|
"vite": "^6.0.0",
|
|
239
|
-
"
|
|
240
|
-
"webpack-cli": "^5.0.1",
|
|
241
|
-
"webpack-dev-server": "^5.2.3",
|
|
222
|
+
"vite-plugin-svgr": "^4.5.0",
|
|
242
223
|
"zod": "^4.0.0"
|
|
243
224
|
},
|
|
244
225
|
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
|
|
@@ -90,8 +90,7 @@ function BreadcrumbEllipsis({ className, ...props }: BreadcrumbEllipsisProps) {
|
|
|
90
90
|
className={cn(S.breadcrumbEllipsis, className)}
|
|
91
91
|
{...props}
|
|
92
92
|
>
|
|
93
|
-
<DotsThree
|
|
94
|
-
<span className="sr-only">More</span>
|
|
93
|
+
<DotsThree size={16} />
|
|
95
94
|
</span>
|
|
96
95
|
);
|
|
97
96
|
}
|
|
@@ -1,129 +1,143 @@
|
|
|
1
1
|
@import 'lib/theme.styl'
|
|
2
2
|
|
|
3
|
-
//
|
|
4
|
-
.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
border 0
|
|
20
|
-
focus-outline()
|
|
21
|
-
|
|
22
|
-
&:active
|
|
23
|
-
opacity 0.8
|
|
24
|
-
|
|
25
|
-
&:disabled
|
|
26
|
-
pointer-events none
|
|
27
|
-
opacity 0.5
|
|
28
|
-
|
|
29
|
-
&[aria-invalid="true"]
|
|
30
|
-
border-color var(--destructive)
|
|
31
|
-
ring 3px var(--destructive-200)
|
|
32
|
-
|
|
33
|
-
// SVG icon styles
|
|
34
|
-
svg
|
|
35
|
-
pointer-events none
|
|
3
|
+
// Component styles live in a CSS cascade layer, so an app's own unlayered rules
|
|
4
|
+
// win over them without specificity tricks (`[data-slot="button"].x`, !important).
|
|
5
|
+
// The order is declared here too, so `components` sits above base.css's `base`
|
|
6
|
+
// layer even when this stylesheet is the first of the two to load.
|
|
7
|
+
@css {
|
|
8
|
+
@layer base, components;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@layer components
|
|
12
|
+
|
|
13
|
+
// Base button styles
|
|
14
|
+
.root
|
|
15
|
+
display inline-flex
|
|
16
|
+
align-items center
|
|
17
|
+
justify-content center
|
|
18
|
+
gap var(--p-2)
|
|
36
19
|
flex-shrink 0
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
20
|
+
white-space nowrap
|
|
21
|
+
border-radius var(--radius-button)
|
|
22
|
+
font-family var(--font-family-body, 'Manrope', sans-serif)
|
|
23
|
+
font-size 15px
|
|
24
|
+
font-weight 500
|
|
25
|
+
line-height 1
|
|
26
|
+
outline none
|
|
27
|
+
cursor pointer
|
|
28
|
+
transition all var(--dur-base) var(--ease-standard)
|
|
29
|
+
border 0
|
|
30
|
+
focus-outline()
|
|
31
|
+
|
|
32
|
+
&:active:where(:not(:disabled))
|
|
33
|
+
opacity 0.8
|
|
34
|
+
|
|
35
|
+
// Not pointer-events none: a disabled button must still receive hover so its
|
|
36
|
+
// `title` can say why. Hover and active styles are guarded instead, inside
|
|
37
|
+
// :where() so the guard adds no specificity (an app override that beat
|
|
38
|
+
// `.root:hover` must keep beating it).
|
|
39
|
+
&:disabled
|
|
40
|
+
cursor not-allowed
|
|
41
|
+
opacity 0.5
|
|
42
|
+
|
|
43
|
+
&[aria-invalid="true"]
|
|
44
|
+
border-color var(--destructive)
|
|
45
|
+
ring 3px var(--destructive-200)
|
|
46
|
+
|
|
47
|
+
// SVG icon styles
|
|
48
|
+
svg
|
|
49
|
+
pointer-events none
|
|
50
|
+
flex-shrink 0
|
|
51
|
+
// width 16px
|
|
52
|
+
// height 16px
|
|
53
|
+
|
|
54
|
+
// Variant styles
|
|
55
|
+
.default
|
|
56
|
+
background-color var(--primary)
|
|
57
|
+
color var(--primary-foreground)
|
|
58
|
+
|
|
59
|
+
&:hover:where(:not(:disabled))
|
|
60
|
+
background-color var(--sb-gray-800)
|
|
50
61
|
|
|
51
|
-
.
|
|
52
|
-
|
|
53
|
-
color white
|
|
62
|
+
:global(.dark) &
|
|
63
|
+
background-color var(--sb-gray-600)
|
|
54
64
|
|
|
55
|
-
|
|
56
|
-
background-color var(--destructive-
|
|
65
|
+
.destructive
|
|
66
|
+
background-color var(--destructive-900)
|
|
67
|
+
color white
|
|
57
68
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
background-color var(--background)
|
|
69
|
+
&:hover:where(:not(:disabled))
|
|
70
|
+
background-color var(--destructive-600)
|
|
61
71
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
72
|
+
.outline
|
|
73
|
+
border 1px solid var(--border)
|
|
74
|
+
background-color var(--background)
|
|
65
75
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
76
|
+
&:hover:where(:not(:disabled))
|
|
77
|
+
background-color var(--sb-gray-50)
|
|
78
|
+
border-color var(--border)
|
|
69
79
|
|
|
70
|
-
|
|
71
|
-
background-color var(--sb-gray-
|
|
80
|
+
:global(.dark) &
|
|
81
|
+
background-color var(--sb-gray-900)
|
|
82
|
+
border-color var(--border)
|
|
72
83
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
color var(--secondary-foreground)
|
|
84
|
+
&:hover:where(:not(:disabled))
|
|
85
|
+
background-color var(--sb-gray-800)
|
|
76
86
|
|
|
77
|
-
|
|
78
|
-
background-color var(--secondary
|
|
87
|
+
.secondary
|
|
88
|
+
background-color var(--secondary)
|
|
89
|
+
color var(--secondary-foreground)
|
|
79
90
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
background-color var(--sb-gray-100)
|
|
83
|
-
color var(--foreground)
|
|
91
|
+
&:hover:where(:not(:disabled))
|
|
92
|
+
background-color var(--secondary-800)
|
|
84
93
|
|
|
85
|
-
|
|
86
|
-
|
|
94
|
+
.ghost
|
|
95
|
+
&:hover:where(:not(:disabled))
|
|
96
|
+
background-color var(--sb-gray-100)
|
|
97
|
+
color var(--foreground)
|
|
87
98
|
|
|
88
|
-
.
|
|
89
|
-
|
|
90
|
-
text-decoration underline
|
|
91
|
-
text-underline-offset 4px
|
|
99
|
+
:global(.dark) &
|
|
100
|
+
background-color var(--sb-gray-900)
|
|
92
101
|
|
|
93
|
-
|
|
102
|
+
.link
|
|
103
|
+
color var(--primary)
|
|
94
104
|
text-decoration underline
|
|
105
|
+
text-underline-offset 4px
|
|
95
106
|
|
|
96
|
-
|
|
107
|
+
&:hover:where(:not(:disabled))
|
|
108
|
+
text-decoration underline
|
|
97
109
|
|
|
98
|
-
|
|
99
|
-
height 30px
|
|
100
|
-
padding 0 14px
|
|
101
|
-
font-size var(--text-sm)
|
|
102
|
-
border-radius var(--p-5)
|
|
110
|
+
// Size styles
|
|
103
111
|
|
|
104
|
-
.
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
112
|
+
.sizeSm
|
|
113
|
+
height 30px
|
|
114
|
+
padding 0 14px
|
|
115
|
+
font-size var(--text-sm)
|
|
116
|
+
border-radius var(--p-5)
|
|
108
117
|
|
|
109
|
-
.
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
border-radius var(--p-4)
|
|
118
|
+
.sizeMd
|
|
119
|
+
height 44px
|
|
120
|
+
padding 0 var(--p-4)
|
|
121
|
+
border-radius var(--p-4)
|
|
114
122
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
123
|
+
.sizeLg
|
|
124
|
+
height 48px
|
|
125
|
+
padding 0 var(--p-6)
|
|
126
|
+
font-size var(--text-base)
|
|
127
|
+
border-radius var(--p-4)
|
|
118
128
|
|
|
119
|
-
|
|
120
|
-
|
|
129
|
+
// Icon buttons: square, sized per size variant, same radius as the size variant
|
|
130
|
+
.sizeIcon
|
|
121
131
|
padding 0
|
|
122
132
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
133
|
+
&.sizeSm
|
|
134
|
+
width 30px
|
|
135
|
+
padding 0
|
|
126
136
|
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
137
|
+
&.sizeMd
|
|
138
|
+
width 44px
|
|
139
|
+
padding 0
|
|
140
|
+
|
|
141
|
+
&.sizeLg
|
|
142
|
+
width 48px
|
|
143
|
+
padding 0
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// This file is automatically generated.
|
|
2
2
|
// Please do not change this file!
|
|
3
3
|
interface CssExports {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
4
|
+
attachButton: string;
|
|
5
|
+
attachmentItem: string;
|
|
6
|
+
attachments: string;
|
|
7
|
+
composer: string;
|
|
8
|
+
editorMount: string;
|
|
9
|
+
editorWrap: string;
|
|
10
|
+
fileInput: string;
|
|
11
|
+
root: string;
|
|
12
|
+
rootFocused: string;
|
|
13
|
+
submitButton: string;
|
|
14
|
+
submitColumn: string;
|
|
15
15
|
}
|
|
16
16
|
export const cssExports: CssExports;
|
|
17
17
|
export default cssExports;
|
|
@@ -99,7 +99,7 @@ function DropdownMenuCheckboxItem({
|
|
|
99
99
|
>
|
|
100
100
|
<span className={S.indicator}>
|
|
101
101
|
<DropdownMenuPrimitive.ItemIndicator>
|
|
102
|
-
<Check
|
|
102
|
+
<Check size={16} />
|
|
103
103
|
</DropdownMenuPrimitive.ItemIndicator>
|
|
104
104
|
</span>
|
|
105
105
|
{children}
|
|
@@ -129,7 +129,7 @@ function DropdownMenuRadioItem({
|
|
|
129
129
|
>
|
|
130
130
|
<span className={S.indicator}>
|
|
131
131
|
<DropdownMenuPrimitive.ItemIndicator>
|
|
132
|
-
<Circle
|
|
132
|
+
<Circle size={8} weight="fill" />
|
|
133
133
|
</DropdownMenuPrimitive.ItemIndicator>
|
|
134
134
|
</span>
|
|
135
135
|
{children}
|
|
@@ -196,7 +196,7 @@ function DropdownMenuSubTrigger({
|
|
|
196
196
|
{...props}
|
|
197
197
|
>
|
|
198
198
|
{children}
|
|
199
|
-
<CaretRight className=
|
|
199
|
+
<CaretRight size={16} className={S.subTriggerIcon} />
|
|
200
200
|
</DropdownMenuPrimitive.SubTrigger>
|
|
201
201
|
);
|
|
202
202
|
}
|