@portel/photon 1.6.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.
@@ -5,5 +5,5 @@
5
5
  * Uses the subpath import to avoid pulling in Node.js dependencies
6
6
  * (SchemaExtractor, fs, etc.) that would break browser bundling.
7
7
  */
8
- export { spacing, spacingAliases, fontFamily, fontSize, lineHeight, fontWeight, colorsDark, colorsLight, colors, type ThemeMode, type ThemeColors, getThemeColors, getThemeTokens, elevation, elevationLight, radius, duration, easing, touchTarget, zIndex, generateTokensCSS, } from '@portel/photon-core/design-system/tokens';
8
+ export { spacing, spacingAliases, fontFamily, fontSize, lineHeight, fontWeight, colorsDark, colorsLight, colors, type ThemeMode, type ThemeColors, getThemeColors, getThemeTokens, elevation, radius, duration, easing, touchTarget, zIndex, generateTokensCSS, } from '@portel/photon-core/design-system/tokens';
9
9
  //# sourceMappingURL=tokens.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/auto-ui/design-system/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,OAAO,EACP,cAAc,EAGd,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EAGV,UAAU,EACV,WAAW,EACX,MAAM,EAGN,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,cAAc,EACd,cAAc,EAGd,SAAS,EACT,cAAc,EAGd,MAAM,EAGN,QAAQ,EACR,MAAM,EAGN,WAAW,EAGX,MAAM,EAGN,iBAAiB,GAClB,MAAM,0CAA0C,CAAC"}
1
+ {"version":3,"file":"tokens.d.ts","sourceRoot":"","sources":["../../../src/auto-ui/design-system/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,OAAO,EACP,cAAc,EAGd,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU,EAGV,UAAU,EACV,WAAW,EACX,MAAM,EAGN,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,cAAc,EACd,cAAc,EAGd,SAAS,EAGT,MAAM,EAGN,QAAQ,EACR,MAAM,EAGN,WAAW,EAGX,MAAM,EAGN,iBAAiB,GAClB,MAAM,0CAA0C,CAAC"}
@@ -13,7 +13,7 @@ fontFamily, fontSize, lineHeight, fontWeight,
13
13
  // Colors
14
14
  colorsDark, colorsLight, colors, getThemeColors, getThemeTokens,
15
15
  // Elevation
16
- elevation, elevationLight,
16
+ elevation,
17
17
  // Border Radius
18
18
  radius,
19
19
  // Motion
@@ -1 +1 @@
1
- {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/auto-ui/design-system/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO;AACL,UAAU;AACV,OAAO,EACP,cAAc;AAEd,aAAa;AACb,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU;AAEV,SAAS;AACT,UAAU,EACV,WAAW,EACX,MAAM,EAKN,cAAc,EACd,cAAc;AAEd,YAAY;AACZ,SAAS,EACT,cAAc;AAEd,gBAAgB;AAChB,MAAM;AAEN,SAAS;AACT,QAAQ,EACR,MAAM;AAEN,cAAc;AACd,WAAW;AAEX,UAAU;AACV,MAAM;AAEN,iBAAiB;AACjB,iBAAiB,GAClB,MAAM,0CAA0C,CAAC"}
1
+ {"version":3,"file":"tokens.js","sourceRoot":"","sources":["../../../src/auto-ui/design-system/tokens.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO;AACL,UAAU;AACV,OAAO,EACP,cAAc;AAEd,aAAa;AACb,UAAU,EACV,QAAQ,EACR,UAAU,EACV,UAAU;AAEV,SAAS;AACT,UAAU,EACV,WAAW,EACX,MAAM,EAKN,cAAc,EACd,cAAc;AAEd,YAAY;AACZ,SAAS;AAET,gBAAgB;AAChB,MAAM;AAEN,SAAS;AACT,QAAQ,EACR,MAAM;AAEN,cAAc;AACd,WAAW;AAEX,UAAU;AACV,MAAM;AAEN,iBAAiB;AACjB,iBAAiB,GAClB,MAAM,0CAA0C,CAAC"}
@@ -1048,7 +1048,7 @@ function showToast(message, type = "info", duration4 = 3e3, action) {
1048
1048
  ToastManager.show(message, type, duration4, action);
1049
1049
  }
1050
1050
 
1051
- // ../photon-core/dist/design-system/tokens.js
1051
+ // node_modules/@portel/photon-core/dist/design-system/tokens.js
1052
1052
  var spacing = {
1053
1053
  // Base unit: 4px (for fine adjustments)
1054
1054
  "0": "0",
@@ -1147,21 +1147,6 @@ var colorPalette = {
1147
1147
  95: "#f2f2f2",
1148
1148
  100: "#ffffff"
1149
1149
  },
1150
- // Light-theme neutrals (cool blue-gray undertone, higher contrast)
1151
- neutralLight: {
1152
- 85: "#BCC5CF",
1153
- // heavy borders / dividers
1154
- 88: "#C4CDD5",
1155
- // surface-container-highest
1156
- 91: "#D5DBE1",
1157
- // surface-container-high
1158
- 94: "#E5E9EE",
1159
- // bg-app — visible structure
1160
- 96: "#EBEEF2",
1161
- // surface-container
1162
- 98: "#F6F7F9"
1163
- // surface — slightly off-white panels
1164
- },
1165
1150
  // Primary (blue - trust, action)
1166
1151
  primary: {
1167
1152
  10: "#001d36",
@@ -1253,24 +1238,17 @@ var colorsDark = {
1253
1238
  scrim: "rgba(0, 0, 0, 0.5)"
1254
1239
  };
1255
1240
  var colorsLight = {
1256
- // Surfaces (cool blue-gray, higher contrast between levels)
1257
- surface: colorPalette.neutralLight[98],
1258
- // #F6F7F9 — panels
1259
- surfaceContainer: colorPalette.neutralLight[96],
1260
- // #EBEEF2 — containers
1261
- surfaceContainerHigh: colorPalette.neutralLight[91],
1262
- // #D5DBE1
1263
- surfaceContainerHighest: colorPalette.neutralLight[88],
1264
- // #C4CDD5
1241
+ // Surfaces (inverted - light backgrounds)
1242
+ surface: colorPalette.neutral[100],
1243
+ // white
1244
+ surfaceContainer: colorPalette.neutral[95],
1245
+ surfaceContainerHigh: colorPalette.neutral[90],
1246
+ surfaceContainerHighest: colorPalette.neutral[80],
1265
1247
  surfaceBright: colorPalette.neutral[100],
1266
- // #FFFFFF overlays/modals
1267
- // Text on surfaces (deep charcoal, high contrast)
1268
- onSurface: "#1A2332",
1269
- // 12.3:1 on #E5E9EE — WCAG AAA
1270
- onSurfaceVariant: "#3D4C5C",
1271
- // darker variant for readability
1272
- onSurfaceMuted: "#556270",
1273
- // 5.1:1 on #E5E9EE — WCAG AA
1248
+ // Text on surfaces (dark text on light)
1249
+ onSurface: colorPalette.neutral[10],
1250
+ onSurfaceVariant: colorPalette.neutral[30],
1251
+ onSurfaceMuted: colorPalette.neutral[50],
1274
1252
  // Primary (darker for light theme)
1275
1253
  primary: colorPalette.primary[40],
1276
1254
  primaryContainer: colorPalette.primary[90],
@@ -1295,13 +1273,11 @@ var colorsLight = {
1295
1273
  onError: colorPalette.neutral[100],
1296
1274
  // white text
1297
1275
  onErrorContainer: colorPalette.error[10],
1298
- // Outline (visible but not harsh)
1299
- outline: "#8B95A3",
1300
- // stronger than before for visibility
1301
- outlineVariant: "#D1D5DB",
1302
- // visible border, not washed out
1303
- // Scrim (overlay — lighter than dark theme's 0.5)
1304
- scrim: "rgba(0, 0, 0, 0.2)"
1276
+ // Outline (darker for light theme)
1277
+ outline: colorPalette.neutral[50],
1278
+ outlineVariant: colorPalette.neutral[80],
1279
+ // Scrim (overlay)
1280
+ scrim: "rgba(0, 0, 0, 0.3)"
1305
1281
  };
1306
1282
  var elevation = {
1307
1283
  "0": "none",
@@ -1311,14 +1287,6 @@ var elevation = {
1311
1287
  "4": "0px 2px 3px 0px rgba(0, 0, 0, 0.30), 0px 6px 10px 4px rgba(0, 0, 0, 0.15)",
1312
1288
  "5": "0px 4px 4px 0px rgba(0, 0, 0, 0.30), 0px 8px 12px 6px rgba(0, 0, 0, 0.15)"
1313
1289
  };
1314
- var elevationLight = {
1315
- "0": "none",
1316
- "1": "0px 1px 3px rgba(0, 0, 0, 0.1), 0px 1px 2px rgba(0, 0, 0, 0.08)",
1317
- "2": "0px 2px 6px rgba(0, 0, 0, 0.1), 0px 4px 8px rgba(0, 0, 0, 0.06)",
1318
- "3": "0px 4px 8px rgba(0, 0, 0, 0.1), 0px 10px 20px rgba(0, 0, 0, 0.06)",
1319
- "4": "0px 10px 15px rgba(0, 0, 0, 0.09), 0px 20px 25px rgba(0, 0, 0, 0.05)",
1320
- "5": "0px 20px 25px rgba(0, 0, 0, 0.07), 0px 25px 50px rgba(0, 0, 0, 0.05)"
1321
- };
1322
1290
  var radius = {
1323
1291
  none: "0",
1324
1292
  sm: "6px",
@@ -1531,9 +1499,9 @@ function getThemeTokens(theme3) {
1531
1499
  "--border-radius-full": radius.full,
1532
1500
  // --- Shadows ---
1533
1501
  "--shadow-hairline": `0 0 0 1px ${themeColors.outlineVariant}`,
1534
- "--shadow-sm": theme3 === "light" ? elevationLight["1"] : elevation["1"],
1535
- "--shadow-md": theme3 === "light" ? elevationLight["2"] : elevation["2"],
1536
- "--shadow-lg": theme3 === "light" ? elevationLight["3"] : elevation["3"],
1502
+ "--shadow-sm": elevation["1"],
1503
+ "--shadow-md": elevation["2"],
1504
+ "--shadow-lg": elevation["3"],
1537
1505
  // --- Border Width ---
1538
1506
  "--border-width-regular": "1px",
1539
1507
  "--border-width-thick": "2px"