@discuss-ds/ui 0.17.0 → 0.18.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @discuss-ds/ui
2
2
 
3
+ ## 0.18.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#76](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/76) [`3e6596f`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/3e6596fecafadb0ca314c6a3e2ea51a146f0c5c1) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - StatCard `subtle` variant: the tint is now the secondary background colour (it was the page background, which is too faint on a white panel).
8
+
9
+ ## 0.18.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [#74](https://github.com/TamyresLucas/Discuss-UI-Storybook/pull/74) [`ec31a44`](https://github.com/TamyresLucas/Discuss-UI-Storybook/commit/ec31a44c4d73c781817c9481837ebed319f07de3) Thanks [@TamyresLucas](https://github.com/TamyresLucas)! - TabNavigation and TabItem: new `underline` variant for a page-level tab bar (the active tab is semibold with a 2px accent underline). StatCard: new `subtle` variant, a tinted card with no border for stats on a white panel. Nothing changes for existing callers.
14
+
3
15
  ## 0.17.0
4
16
 
5
17
  ### Minor Changes
package/dist/index.cjs CHANGED
@@ -1211,7 +1211,8 @@ var tabNavigationVariants = (0, import_class_variance_authority3.cva)("inline-fl
1211
1211
  variants: {
1212
1212
  variant: {
1213
1213
  filter: "rounded-full border border-border bg-surface",
1214
- toggle: "rounded-md bg-secondary bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5"
1214
+ toggle: "rounded-md bg-secondary bg-linear-to-r from-overlay-dark-5 to-overlay-dark-5",
1215
+ underline: "items-stretch p-0"
1215
1216
  }
1216
1217
  },
1217
1218
  defaultVariants: { variant: "filter" }
@@ -1228,6 +1229,7 @@ var import_jsx_runtime21 = require("react/jsx-runtime");
1228
1229
  var base = "inline-flex h-7 items-center justify-center gap-1 whitespace-nowrap px-2.5 py-1 text-ui-label transition-colors disabled:pointer-events-none disabled:opacity-50";
1229
1230
  var filter = "rounded-full text-surface-foreground hover:text-accent data-[state=active]:bg-secondary data-[state=active]:bg-linear-to-r data-[state=active]:from-overlay-dark-5 data-[state=active]:to-overlay-dark-5 data-[state=active]:hover:bg-accent-soft data-[state=active]:hover:bg-none data-[state=active]:hover:text-accent-soft-foreground disabled:text-muted-foreground";
1230
1231
  var toggle = "rounded-sm text-secondary-muted-foreground hover:text-surface-foreground data-[state=active]:bg-surface data-[state=active]:text-surface-foreground";
1232
+ var underline = "relative h-full rounded-none px-4 py-3 font-medium text-secondary-muted-foreground hover:text-surface-foreground data-[state=active]:font-semibold data-[state=active]:text-surface-foreground after:absolute after:inset-x-0 after:bottom-0 after:h-0.5 data-[state=active]:after:bg-accent";
1231
1233
  var TabItem = React20.forwardRef(
1232
1234
  ({ className, ...props }, ref) => {
1233
1235
  const variant = React20.useContext(TabNavigationContext);
@@ -1235,7 +1237,7 @@ var TabItem = React20.forwardRef(
1235
1237
  import_radix_ui10.Tabs.Trigger,
1236
1238
  {
1237
1239
  ref,
1238
- className: cn(base, variant === "toggle" ? toggle : filter, className),
1240
+ className: cn(base, variant === "toggle" ? toggle : variant === "underline" ? underline : filter, className),
1239
1241
  ...props
1240
1242
  }
1241
1243
  );
@@ -3501,6 +3503,8 @@ var statCardVariants = (0, import_class_variance_authority6.cva)("flex min-w-0 f
3501
3503
  variants: {
3502
3504
  variant: {
3503
3505
  default: "border-border bg-transparent",
3506
+ // A card tinted with the secondary background and no border, for stats on a white panel.
3507
+ subtle: "border-transparent bg-secondary",
3504
3508
  warning: "border-warning-soft-border bg-warning-soft"
3505
3509
  }
3506
3510
  },