@aspprev/versi-ds 0.5.7 → 0.5.9

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 CHANGED
@@ -242,12 +242,17 @@ const root = document.documentElement;
242
242
  root.dataset.colorScheme = "dark";
243
243
  root.dataset.dsTheme = "azul1";
244
244
  root.dataset.contrast = "high";
245
+ root.dataset.contrastTheme = "dark";
245
246
  root.dataset.fontScale = "large";
246
247
  root.dataset.motion = "reduce";
247
248
  ```
248
249
 
249
250
  Os valores válidos estão documentados em **Themes/Overview** no Storybook. Prefira tokens semânticos, como `--surface-page`, `--content-primary`, `--border-default` e `--focus-ring`, em vez de copiar valores de uma paleta.
250
251
 
252
+ As identidades de cliente `basf`, `funssest`, `maisprevidencia`, `aceprev`, `cibrius`, `serpros` e `einvest` oferecem claro, escuro e alto contraste claro/escuro. Os presets legados continuam disponíveis. Consulte o [guia de integração e diferenças dos snapshots](docs/temas-clientes/INTEGRACAO.md) e **Temas → Clientes** no Storybook. As paletas são propostas para revisão visual.
253
+
254
+ As entradas raiz e `/core` exportam `CLIENT_THEMES`, `LEGACY_THEMES`, `DESIGN_SYSTEM_THEMES` e os tipos `ClientTheme` e `DesignSystemTheme` para construir seletores no consumidor.
255
+
251
256
  ## Contribuição
252
257
 
253
258
  Ao criar ou alterar um componente:
package/dist/charts.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  normalizeTimeSeriesTooltipColor,
13
13
  resolveInteractiveDonutColors,
14
14
  resolveRelativeDonutSelection
15
- } from "./chunk-HKCVDOGK.js";
15
+ } from "./chunk-YEUOULSF.js";
16
16
  export {
17
17
  InteractiveDonutChart,
18
18
  LazyApexChart,
@@ -93,11 +93,11 @@ var VARIANT_STYLES = {
93
93
  flat: {
94
94
  disabled: `cursor-not-allowed border-disabled bg-surface-disabled text-content-disabled`,
95
95
  default: {
96
- primary: `bg-action-primary text-action-primary-content hover:bg-action-primary-hover active:bg-action-primary-active`,
97
- secondary: `bg-action-secondary text-action-secondary-content hover:bg-action-secondary-hover active:bg-action-secondary-active`,
96
+ primary: `bg-action-primary text-action-primary-content hover:bg-action-primary-hover hover:text-action-primary-content-hover active:bg-action-primary-active active:text-action-primary-content-active`,
97
+ secondary: `bg-action-secondary text-action-secondary-content hover:bg-action-secondary-hover hover:text-action-secondary-content-hover active:bg-action-secondary-active active:text-action-secondary-content-active`,
98
98
  tertiary: `bg-action-tertiary text-action-tertiary-content opacity-100 hover:bg-action-tertiary-hover active:bg-action-tertiary-active`,
99
- danger: `bg-action-danger text-action-danger-content hover:bg-action-danger-hover active:bg-action-danger-active`,
100
- warning: `bg-action-warning text-action-warning-content hover:bg-action-warning-hover active:bg-action-warning-active`
99
+ danger: `bg-action-danger text-action-danger-content hover:bg-action-danger-hover hover:text-action-danger-content-hover active:bg-action-danger-active active:text-action-danger-content-active`,
100
+ warning: `bg-action-warning text-action-warning-content hover:bg-action-warning-hover hover:text-action-warning-content-hover active:bg-action-warning-active active:text-action-warning-content-active`
101
101
  }
102
102
  },
103
103
  outline: {
@@ -1679,11 +1679,11 @@ function PageTabsHeader({
1679
1679
  tabRefs.current.get(target.id)?.focus();
1680
1680
  onTabChange(target.id);
1681
1681
  },
1682
- className: `inline-flex items-center gap-1 whitespace-nowrap border-b-[3px] transition-colors duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring disabled:cursor-not-allowed disabled:opacity-50 tablet:px-1 ${size === "small" ? "px-0.5 py-0 text-sm" : "p-0.5 text-base"} ${isActive ? "border-primary-1 font-semibold text-primary-1" : "border-transparent text-content-secondary hover:text-content-muted"}`,
1682
+ className: `inline-flex items-center gap-1 whitespace-nowrap border-b-[3px] transition-colors duration-200 focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-focus-ring disabled:cursor-not-allowed disabled:opacity-50 tablet:px-1 ${size === "small" ? "px-0.5 py-0 text-sm" : "p-0.5 text-base"} ${isActive ? "border-content-link font-semibold text-content-link" : "border-transparent text-content-secondary hover:text-content-muted"}`,
1683
1683
  children: [
1684
1684
  Icon && /* @__PURE__ */ jsx24(Icon, { "aria-hidden": "true", className: "h-4 w-4 shrink-0" }),
1685
1685
  /* @__PURE__ */ jsx24("span", { children: tab.label }),
1686
- tab.notification !== void 0 && tab.notification !== null && /* @__PURE__ */ jsx24("span", { className: "inline-flex min-h-4 min-w-4 items-center justify-center rounded-full bg-feedback-danger-strong px-1 text-2xs font-bold text-action-tertiary-content", children: tab.notification })
1686
+ tab.notification !== void 0 && tab.notification !== null && /* @__PURE__ */ jsx24("span", { className: "inline-flex min-h-4 min-w-4 items-center justify-center rounded-full bg-feedback-danger-strong px-1 text-2xs font-bold text-feedback-danger-on-strong", children: tab.notification })
1687
1687
  ]
1688
1688
  },
1689
1689
  tab.id
@@ -1833,8 +1833,8 @@ import classNames12 from "classnames";
1833
1833
  import { jsx as jsx27 } from "react/jsx-runtime";
1834
1834
  var COLOR_STYLES = {
1835
1835
  primary: {
1836
- outline: "border-primary-1 text-primary-1",
1837
- soft: "border-primary-1 bg-primary-5 text-primary-2",
1836
+ outline: "border-status-primary-outline-border text-status-primary-outline-foreground",
1837
+ soft: "border-status-primary-outline-border bg-status-primary-soft-background text-status-primary-soft-foreground",
1838
1838
  solid: "border-action-primary bg-action-primary text-action-primary-content"
1839
1839
  },
1840
1840
  blue: {
@@ -2159,7 +2159,7 @@ function FilterView({
2159
2159
  {
2160
2160
  className: cs3(
2161
2161
  "min-h-6 flex items-start gap-2 px-3 py-0.5 cursor-pointer rounded",
2162
- control.value === option.value ? "bg-primary-5 text-primary-1" : "text-content-primary"
2162
+ control.value === option.value ? "bg-selection-background text-selection-content" : "text-content-primary"
2163
2163
  ),
2164
2164
  children: [
2165
2165
  /* @__PURE__ */ jsx30(
@@ -2205,7 +2205,7 @@ function FilterView({
2205
2205
  {
2206
2206
  className: cs3(
2207
2207
  "min-h-10 flex items-start gap-2 px-3 py-1 cursor-pointer rounded",
2208
- optionChecked === option.value ? "bg-primary-5 text-primary-1" : "text-content-primary"
2208
+ optionChecked === option.value ? "bg-selection-background text-selection-content" : "text-content-primary"
2209
2209
  ),
2210
2210
  children: [
2211
2211
  /* @__PURE__ */ jsx30(
@@ -3262,6 +3262,34 @@ function useContainerBreakpoint(ref, options = {}) {
3262
3262
  return current;
3263
3263
  }
3264
3264
 
3265
+ // src/theme-presets.ts
3266
+ var LEGACY_THEMES = [
3267
+ "default",
3268
+ "azul1",
3269
+ "azul2",
3270
+ "azul3",
3271
+ "laranja1",
3272
+ "laranja2",
3273
+ "verde1",
3274
+ "verde2",
3275
+ "verde3",
3276
+ "verde4",
3277
+ "rosa1"
3278
+ ];
3279
+ var CLIENT_THEMES = [
3280
+ { id: "basf", label: "BASF" },
3281
+ { id: "funssest", label: "FUNSSEST" },
3282
+ { id: "maisprevidencia", label: "Mais Previd\xEAncia" },
3283
+ { id: "aceprev", label: "ACEPREV" },
3284
+ { id: "cibrius", label: "Cibrius" },
3285
+ { id: "serpros", label: "SERPROS" },
3286
+ { id: "einvest", label: "E-Invest" }
3287
+ ];
3288
+ var DESIGN_SYSTEM_THEMES = [
3289
+ ...LEGACY_THEMES,
3290
+ ...CLIENT_THEMES.map((theme) => theme.id)
3291
+ ];
3292
+
3265
3293
  export {
3266
3294
  LoadingDotsView_default,
3267
3295
  Button_default,
@@ -3301,6 +3329,9 @@ export {
3301
3329
  Table_default,
3302
3330
  MobileCardTable_default,
3303
3331
  resolveContainerBreakpoint,
3304
- useContainerBreakpoint
3332
+ useContainerBreakpoint,
3333
+ LEGACY_THEMES,
3334
+ CLIENT_THEMES,
3335
+ DESIGN_SYSTEM_THEMES
3305
3336
  };
3306
- //# sourceMappingURL=chunk-SMWLRZCK.js.map
3337
+ //# sourceMappingURL=chunk-2XE4FX42.js.map