@bergetai/ui 0.16.1 → 0.16.2

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.
@@ -6,14 +6,16 @@ let react_jsx_runtime = require("react/jsx-runtime");
6
6
  /**
7
7
  * Berget wrapper for the base-nova Slider primitive.
8
8
  *
9
- * Track (bg-muted) and range indicator (bg-primary) resolve through the
10
- * shadcn bridge in `styles/index.css` to Berget surfaces and Moss. The only
11
- * override needed is the thumb fill: the primitive hardcodes `bg-white`,
12
- * which is a raw value that doesn't track the theme — here it uses Peak
13
- * (granite-50), matching the primary button foreground treatment.
9
+ * Overrides the primitive's hardcoded surfaces, which don't resolve in the
10
+ * Berget themes: the track's `bg-muted` equals the dark page background
11
+ * (both granite-950), so the track is invisible; the thumb hardcodes
12
+ * `bg-white`. The track uses Raised (foreground-mix 10%, theme-aware) —
13
+ * the same treatment as InputGroup/Checkbox surfaces — and the thumb uses
14
+ * Peak (granite-50), matching the primary button foreground treatment.
15
+ * The range indicator keeps the primitive's `bg-primary` (Moss).
14
16
  */
15
17
  const Slider = ({ className, ...props }) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_slider.Slider, {
16
- className: require_utils.cn("**:data-[slot=slider-thumb]:bg-berget-brand-granite-50", className),
18
+ className: require_utils.cn("**:data-[slot=slider-track]:bg-berget-surface-raised", "**:data-[slot=slider-thumb]:bg-berget-brand-granite-50", className),
17
19
  ...props
18
20
  });
19
21
  Slider.displayName = "Slider";
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.cjs","names":["SliderPrimitive","cn"],"sources":["../../../src/components/slider/Slider.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { Slider as SliderPrimitive } from '../../primitives/slider';\n\nexport type SliderProps = React.ComponentProps<typeof SliderPrimitive>;\n\n/**\n * Berget wrapper for the base-nova Slider primitive.\n *\n * Track (bg-muted) and range indicator (bg-primary) resolve through the\n * shadcn bridge in `styles/index.css` to Berget surfaces and Moss. The only\n * override needed is the thumb fill: the primitive hardcodes `bg-white`,\n * which is a raw value that doesn't track the theme — here it uses Peak\n * (granite-50), matching the primary button foreground treatment.\n */\nconst Slider = ({ className, ...props }: SliderProps) => (\n <SliderPrimitive\n className={cn('**:data-[slot=slider-thumb]:bg-berget-brand-granite-50', className)}\n {...props}\n />\n);\nSlider.displayName = 'Slider';\n\nexport { Slider };\n"],"mappings":";;;;;;;;;;;;;;AAiBA,MAAM,UAAU,EAAE,WAAW,GAAG,YAC9B,iBAAA,GAAA,kBAAA,IAAA,CAACA,eAAAA,QAAD;CACE,WAAWC,cAAAA,GAAG,0DAA0D,SAAS;CACjF,GAAI;AACL,CAAA;AAEH,OAAO,cAAc"}
1
+ {"version":3,"file":"Slider.cjs","names":["SliderPrimitive","cn"],"sources":["../../../src/components/slider/Slider.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { Slider as SliderPrimitive } from '../../primitives/slider';\n\nexport type SliderProps = React.ComponentProps<typeof SliderPrimitive>;\n\n/**\n * Berget wrapper for the base-nova Slider primitive.\n *\n * Overrides the primitive's hardcoded surfaces, which don't resolve in the\n * Berget themes: the track's `bg-muted` equals the dark page background\n * (both granite-950), so the track is invisible; the thumb hardcodes\n * `bg-white`. The track uses Raised (foreground-mix 10%, theme-aware) —\n * the same treatment as InputGroup/Checkbox surfaces — and the thumb uses\n * Peak (granite-50), matching the primary button foreground treatment.\n * The range indicator keeps the primitive's `bg-primary` (Moss).\n */\nconst Slider = ({ className, ...props }: SliderProps) => (\n <SliderPrimitive\n className={cn(\n '**:data-[slot=slider-track]:bg-berget-surface-raised',\n '**:data-[slot=slider-thumb]:bg-berget-brand-granite-50',\n className,\n )}\n {...props}\n />\n);\nSlider.displayName = 'Slider';\n\nexport { Slider };\n"],"mappings":";;;;;;;;;;;;;;;;AAmBA,MAAM,UAAU,EAAE,WAAW,GAAG,YAC9B,iBAAA,GAAA,kBAAA,IAAA,CAACA,eAAAA,QAAD;CACE,WAAWC,cAAAA,GACT,wDACA,0DACA,SACF;CACA,GAAI;AACL,CAAA;AAEH,OAAO,cAAc"}
@@ -5,11 +5,13 @@ export type SliderProps = React.ComponentProps<typeof Slider$1>;
5
5
  /**
6
6
  * Berget wrapper for the base-nova Slider primitive.
7
7
  *
8
- * Track (bg-muted) and range indicator (bg-primary) resolve through the
9
- * shadcn bridge in `styles/index.css` to Berget surfaces and Moss. The only
10
- * override needed is the thumb fill: the primitive hardcodes `bg-white`,
11
- * which is a raw value that doesn't track the theme — here it uses Peak
12
- * (granite-50), matching the primary button foreground treatment.
8
+ * Overrides the primitive's hardcoded surfaces, which don't resolve in the
9
+ * Berget themes: the track's `bg-muted` equals the dark page background
10
+ * (both granite-950), so the track is invisible; the thumb hardcodes
11
+ * `bg-white`. The track uses Raised (foreground-mix 10%, theme-aware) —
12
+ * the same treatment as InputGroup/Checkbox surfaces — and the thumb uses
13
+ * Peak (granite-50), matching the primary button foreground treatment.
14
+ * The range indicator keeps the primitive's `bg-primary` (Moss).
13
15
  */
14
16
  declare const Slider: {
15
17
  ({ className, ...props }: SliderProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.d.cts","names":["SliderPrimitive"],"sources":["../../../src/components/slider/Slider.tsx"],"mappings":";;;YAMY,cAAc,MAAM,sBAAsBA;;;;;;;;;;cAWhD;KAAmC,cAAA,SAAA,0CAAW,IAAA"}
1
+ {"version":3,"file":"Slider.d.cts","names":["SliderPrimitive"],"sources":["../../../src/components/slider/Slider.tsx"],"mappings":";;;YAMY,cAAc,MAAM,sBAAsBA;;;;;;;;;;;;cAahD;KAAmC,cAAA,SAAA,0CAAW,IAAA"}
@@ -5,11 +5,13 @@ export type SliderProps = React.ComponentProps<typeof Slider$1>;
5
5
  /**
6
6
  * Berget wrapper for the base-nova Slider primitive.
7
7
  *
8
- * Track (bg-muted) and range indicator (bg-primary) resolve through the
9
- * shadcn bridge in `styles/index.css` to Berget surfaces and Moss. The only
10
- * override needed is the thumb fill: the primitive hardcodes `bg-white`,
11
- * which is a raw value that doesn't track the theme — here it uses Peak
12
- * (granite-50), matching the primary button foreground treatment.
8
+ * Overrides the primitive's hardcoded surfaces, which don't resolve in the
9
+ * Berget themes: the track's `bg-muted` equals the dark page background
10
+ * (both granite-950), so the track is invisible; the thumb hardcodes
11
+ * `bg-white`. The track uses Raised (foreground-mix 10%, theme-aware) —
12
+ * the same treatment as InputGroup/Checkbox surfaces — and the thumb uses
13
+ * Peak (granite-50), matching the primary button foreground treatment.
14
+ * The range indicator keeps the primitive's `bg-primary` (Moss).
13
15
  */
14
16
  declare const Slider: {
15
17
  ({ className, ...props }: SliderProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.d.mts","names":["SliderPrimitive"],"sources":["../../../src/components/slider/Slider.tsx"],"mappings":";;;YAMY,cAAc,MAAM,sBAAsBA;;;;;;;;;;cAWhD;KAAmC,cAAA,SAAA,0CAAW,IAAA"}
1
+ {"version":3,"file":"Slider.d.mts","names":["SliderPrimitive"],"sources":["../../../src/components/slider/Slider.tsx"],"mappings":";;;YAMY,cAAc,MAAM,sBAAsBA;;;;;;;;;;;;cAahD;KAAmC,cAAA,SAAA,0CAAW,IAAA"}
@@ -6,14 +6,16 @@ import { jsx } from "react/jsx-runtime";
6
6
  /**
7
7
  * Berget wrapper for the base-nova Slider primitive.
8
8
  *
9
- * Track (bg-muted) and range indicator (bg-primary) resolve through the
10
- * shadcn bridge in `styles/index.css` to Berget surfaces and Moss. The only
11
- * override needed is the thumb fill: the primitive hardcodes `bg-white`,
12
- * which is a raw value that doesn't track the theme — here it uses Peak
13
- * (granite-50), matching the primary button foreground treatment.
9
+ * Overrides the primitive's hardcoded surfaces, which don't resolve in the
10
+ * Berget themes: the track's `bg-muted` equals the dark page background
11
+ * (both granite-950), so the track is invisible; the thumb hardcodes
12
+ * `bg-white`. The track uses Raised (foreground-mix 10%, theme-aware) —
13
+ * the same treatment as InputGroup/Checkbox surfaces — and the thumb uses
14
+ * Peak (granite-50), matching the primary button foreground treatment.
15
+ * The range indicator keeps the primitive's `bg-primary` (Moss).
14
16
  */
15
17
  const Slider = ({ className, ...props }) => /* @__PURE__ */ jsx(Slider$1, {
16
- className: cn("**:data-[slot=slider-thumb]:bg-berget-brand-granite-50", className),
18
+ className: cn("**:data-[slot=slider-track]:bg-berget-surface-raised", "**:data-[slot=slider-thumb]:bg-berget-brand-granite-50", className),
17
19
  ...props
18
20
  });
19
21
  Slider.displayName = "Slider";
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.mjs","names":["SliderPrimitive"],"sources":["../../../src/components/slider/Slider.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { Slider as SliderPrimitive } from '../../primitives/slider';\n\nexport type SliderProps = React.ComponentProps<typeof SliderPrimitive>;\n\n/**\n * Berget wrapper for the base-nova Slider primitive.\n *\n * Track (bg-muted) and range indicator (bg-primary) resolve through the\n * shadcn bridge in `styles/index.css` to Berget surfaces and Moss. The only\n * override needed is the thumb fill: the primitive hardcodes `bg-white`,\n * which is a raw value that doesn't track the theme — here it uses Peak\n * (granite-50), matching the primary button foreground treatment.\n */\nconst Slider = ({ className, ...props }: SliderProps) => (\n <SliderPrimitive\n className={cn('**:data-[slot=slider-thumb]:bg-berget-brand-granite-50', className)}\n {...props}\n />\n);\nSlider.displayName = 'Slider';\n\nexport { Slider };\n"],"mappings":";;;;;;;;;;;;;;AAiBA,MAAM,UAAU,EAAE,WAAW,GAAG,YAC9B,oBAACA,UAAD;CACE,WAAW,GAAG,0DAA0D,SAAS;CACjF,GAAI;AACL,CAAA;AAEH,OAAO,cAAc"}
1
+ {"version":3,"file":"Slider.mjs","names":["SliderPrimitive"],"sources":["../../../src/components/slider/Slider.tsx"],"sourcesContent":["'use client';\n\nimport type * as React from 'react';\nimport { cn } from '../../lib/utils';\nimport { Slider as SliderPrimitive } from '../../primitives/slider';\n\nexport type SliderProps = React.ComponentProps<typeof SliderPrimitive>;\n\n/**\n * Berget wrapper for the base-nova Slider primitive.\n *\n * Overrides the primitive's hardcoded surfaces, which don't resolve in the\n * Berget themes: the track's `bg-muted` equals the dark page background\n * (both granite-950), so the track is invisible; the thumb hardcodes\n * `bg-white`. The track uses Raised (foreground-mix 10%, theme-aware) —\n * the same treatment as InputGroup/Checkbox surfaces — and the thumb uses\n * Peak (granite-50), matching the primary button foreground treatment.\n * The range indicator keeps the primitive's `bg-primary` (Moss).\n */\nconst Slider = ({ className, ...props }: SliderProps) => (\n <SliderPrimitive\n className={cn(\n '**:data-[slot=slider-track]:bg-berget-surface-raised',\n '**:data-[slot=slider-thumb]:bg-berget-brand-granite-50',\n className,\n )}\n {...props}\n />\n);\nSlider.displayName = 'Slider';\n\nexport { Slider };\n"],"mappings":";;;;;;;;;;;;;;;;AAmBA,MAAM,UAAU,EAAE,WAAW,GAAG,YAC9B,oBAACA,UAAD;CACE,WAAW,GACT,wDACA,0DACA,SACF;CACA,GAAI;AACL,CAAA;AAEH,OAAO,cAAc"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bergetai/ui",
3
- "version": "0.16.1",
3
+ "version": "0.16.2",
4
4
  "description": "Berget Design System - Scandinavian-inspired design system with console aesthetic",
5
5
  "type": "module",
6
6
  "license": "MIT",