@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.
- package/dist/components/slider/Slider.cjs +8 -6
- package/dist/components/slider/Slider.cjs.map +1 -1
- package/dist/components/slider/Slider.d.cts +7 -5
- package/dist/components/slider/Slider.d.cts.map +1 -1
- package/dist/components/slider/Slider.d.mts +7 -5
- package/dist/components/slider/Slider.d.mts.map +1 -1
- package/dist/components/slider/Slider.mjs +8 -6
- package/dist/components/slider/Slider.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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 *
|
|
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
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
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
|
|
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
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
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
|
|
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
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
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 *
|
|
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"}
|