@isbatak/panda-wheel-picker 0.0.0

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Ivica Batinic
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # @isbatak/panda-wheel-picker
2
+
3
+ [Panda CSS](https://panda-css.com) slot recipe and preset for the wheel picker. The recipe builds on Chakra-style
4
+ semantic tokens (`fg`, `bg.muted`, `colorPalette.*`, `l2` radii).
5
+
6
+ ## Installation
7
+
8
+ ```sh
9
+ pnpm add -D @isbatak/panda-wheel-picker
10
+ ```
11
+
12
+ ## Usage
13
+
14
+ ```ts
15
+ import { wheelPickerPreset } from "@isbatak/panda-wheel-picker"
16
+ import { defineConfig } from "@pandacss/dev"
17
+
18
+ export default defineConfig({
19
+ presets: ["@pandacss/preset-base", wheelPickerPreset],
20
+ })
21
+ ```
22
+
23
+ Or extend your theme with `wheelPickerRecipe` under `theme.extend.slotRecipes.wheelPicker`.
24
+
25
+ Variants: `variant` (`subtle`, `outline`, `solid`) and `size` (`sm`, `md`, `lg`).
26
+
27
+ ## License
28
+
29
+ MIT © Ivica Batinic
package/dist/index.cjs ADDED
@@ -0,0 +1,132 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ default: () => index_default,
24
+ wheelPickerPreset: () => wheelPickerPreset,
25
+ wheelPickerRecipe: () => wheelPickerRecipe,
26
+ wheelPickerSlots: () => wheelPickerSlots
27
+ });
28
+ module.exports = __toCommonJS(index_exports);
29
+ var import_dev = require("@pandacss/dev");
30
+ var wheelPickerSlots = [
31
+ "root",
32
+ "label",
33
+ "control",
34
+ "viewport",
35
+ "itemGroup",
36
+ "item",
37
+ "highlight",
38
+ "highlightItemGroup",
39
+ "highlightItem"
40
+ ];
41
+ var wheelPickerRecipe = (0, import_dev.defineSlotRecipe)({
42
+ className: "wheel-picker",
43
+ jsx: ["WheelPicker", /WheelPicker\.\w+/],
44
+ slots: [...wheelPickerSlots],
45
+ base: {
46
+ root: {
47
+ width: "full",
48
+ _disabled: { opacity: "0.5" }
49
+ },
50
+ label: {
51
+ srOnly: true
52
+ },
53
+ control: {
54
+ outline: "none",
55
+ cursor: "grab",
56
+ _dragging: { cursor: "grabbing" },
57
+ "&[data-readonly]": { cursor: "default" },
58
+ _disabled: { cursor: "not-allowed" }
59
+ },
60
+ viewport: {
61
+ maskImage: "linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%)"
62
+ },
63
+ item: {
64
+ color: "fg.subtle",
65
+ fontWeight: "medium",
66
+ _disabled: { opacity: "0.35" }
67
+ },
68
+ highlight: {
69
+ borderRadius: "l2",
70
+ "[data-focus-visible] &": { outline: "2px solid", outlineColor: "colorPalette.focusRing", outlineOffset: "-2px" },
71
+ "[data-invalid] &": { outline: "2px solid", outlineColor: "border.error", outlineOffset: "-2px" }
72
+ },
73
+ highlightItem: {
74
+ fontWeight: "semibold",
75
+ _disabled: { opacity: "0.35" }
76
+ }
77
+ },
78
+ variants: {
79
+ variant: {
80
+ subtle: {
81
+ highlight: { bg: "bg.muted" },
82
+ highlightItem: { color: "fg" }
83
+ },
84
+ outline: {
85
+ highlight: { borderWidth: "1px", borderColor: "border" },
86
+ highlightItem: { color: "fg" }
87
+ },
88
+ solid: {
89
+ highlight: { bg: "colorPalette.solid" },
90
+ highlightItem: { color: "colorPalette.contrast" }
91
+ }
92
+ },
93
+ size: {
94
+ sm: {
95
+ control: { height: "40" },
96
+ item: { textStyle: "sm" },
97
+ highlightItem: { textStyle: "sm" }
98
+ },
99
+ md: {
100
+ control: { height: "56" },
101
+ item: { textStyle: "md" },
102
+ highlightItem: { textStyle: "md" }
103
+ },
104
+ lg: {
105
+ control: { height: "72" },
106
+ item: { textStyle: "xl" },
107
+ highlightItem: { textStyle: "xl" }
108
+ }
109
+ }
110
+ },
111
+ defaultVariants: {
112
+ variant: "subtle",
113
+ size: "md"
114
+ }
115
+ });
116
+ var wheelPickerPreset = (0, import_dev.definePreset)({
117
+ name: "@isbatak/panda-wheel-picker",
118
+ theme: {
119
+ extend: {
120
+ slotRecipes: {
121
+ wheelPicker: wheelPickerRecipe
122
+ }
123
+ }
124
+ }
125
+ });
126
+ var index_default = wheelPickerPreset;
127
+ // Annotate the CommonJS export names for ESM import in node:
128
+ 0 && (module.exports = {
129
+ wheelPickerPreset,
130
+ wheelPickerRecipe,
131
+ wheelPickerSlots
132
+ });
@@ -0,0 +1,7 @@
1
+ import { Preset, SlotRecipeConfig } from '@pandacss/types';
2
+
3
+ declare const wheelPickerSlots: readonly ["root", "label", "control", "viewport", "itemGroup", "item", "highlight", "highlightItemGroup", "highlightItem"];
4
+ declare const wheelPickerRecipe: SlotRecipeConfig;
5
+ declare const wheelPickerPreset: Preset;
6
+
7
+ export { wheelPickerPreset as default, wheelPickerPreset, wheelPickerRecipe, wheelPickerSlots };
@@ -0,0 +1,7 @@
1
+ import { Preset, SlotRecipeConfig } from '@pandacss/types';
2
+
3
+ declare const wheelPickerSlots: readonly ["root", "label", "control", "viewport", "itemGroup", "item", "highlight", "highlightItemGroup", "highlightItem"];
4
+ declare const wheelPickerRecipe: SlotRecipeConfig;
5
+ declare const wheelPickerPreset: Preset;
6
+
7
+ export { wheelPickerPreset as default, wheelPickerPreset, wheelPickerRecipe, wheelPickerSlots };
package/dist/index.js ADDED
@@ -0,0 +1,105 @@
1
+ // src/index.ts
2
+ import { definePreset, defineSlotRecipe } from "@pandacss/dev";
3
+ var wheelPickerSlots = [
4
+ "root",
5
+ "label",
6
+ "control",
7
+ "viewport",
8
+ "itemGroup",
9
+ "item",
10
+ "highlight",
11
+ "highlightItemGroup",
12
+ "highlightItem"
13
+ ];
14
+ var wheelPickerRecipe = defineSlotRecipe({
15
+ className: "wheel-picker",
16
+ jsx: ["WheelPicker", /WheelPicker\.\w+/],
17
+ slots: [...wheelPickerSlots],
18
+ base: {
19
+ root: {
20
+ width: "full",
21
+ _disabled: { opacity: "0.5" }
22
+ },
23
+ label: {
24
+ srOnly: true
25
+ },
26
+ control: {
27
+ outline: "none",
28
+ cursor: "grab",
29
+ _dragging: { cursor: "grabbing" },
30
+ "&[data-readonly]": { cursor: "default" },
31
+ _disabled: { cursor: "not-allowed" }
32
+ },
33
+ viewport: {
34
+ maskImage: "linear-gradient(to bottom, transparent 0%, black 30%, black 70%, transparent 100%)"
35
+ },
36
+ item: {
37
+ color: "fg.subtle",
38
+ fontWeight: "medium",
39
+ _disabled: { opacity: "0.35" }
40
+ },
41
+ highlight: {
42
+ borderRadius: "l2",
43
+ "[data-focus-visible] &": { outline: "2px solid", outlineColor: "colorPalette.focusRing", outlineOffset: "-2px" },
44
+ "[data-invalid] &": { outline: "2px solid", outlineColor: "border.error", outlineOffset: "-2px" }
45
+ },
46
+ highlightItem: {
47
+ fontWeight: "semibold",
48
+ _disabled: { opacity: "0.35" }
49
+ }
50
+ },
51
+ variants: {
52
+ variant: {
53
+ subtle: {
54
+ highlight: { bg: "bg.muted" },
55
+ highlightItem: { color: "fg" }
56
+ },
57
+ outline: {
58
+ highlight: { borderWidth: "1px", borderColor: "border" },
59
+ highlightItem: { color: "fg" }
60
+ },
61
+ solid: {
62
+ highlight: { bg: "colorPalette.solid" },
63
+ highlightItem: { color: "colorPalette.contrast" }
64
+ }
65
+ },
66
+ size: {
67
+ sm: {
68
+ control: { height: "40" },
69
+ item: { textStyle: "sm" },
70
+ highlightItem: { textStyle: "sm" }
71
+ },
72
+ md: {
73
+ control: { height: "56" },
74
+ item: { textStyle: "md" },
75
+ highlightItem: { textStyle: "md" }
76
+ },
77
+ lg: {
78
+ control: { height: "72" },
79
+ item: { textStyle: "xl" },
80
+ highlightItem: { textStyle: "xl" }
81
+ }
82
+ }
83
+ },
84
+ defaultVariants: {
85
+ variant: "subtle",
86
+ size: "md"
87
+ }
88
+ });
89
+ var wheelPickerPreset = definePreset({
90
+ name: "@isbatak/panda-wheel-picker",
91
+ theme: {
92
+ extend: {
93
+ slotRecipes: {
94
+ wheelPicker: wheelPickerRecipe
95
+ }
96
+ }
97
+ }
98
+ });
99
+ var index_default = wheelPickerPreset;
100
+ export {
101
+ index_default as default,
102
+ wheelPickerPreset,
103
+ wheelPickerRecipe,
104
+ wheelPickerSlots
105
+ };
package/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "@isbatak/panda-wheel-picker",
3
+ "version": "0.0.0",
4
+ "description": "Panda CSS slot recipe and preset for the wheel-picker component",
5
+ "keywords": [
6
+ "panda",
7
+ "pandacss",
8
+ "recipe",
9
+ "preset",
10
+ "wheel-picker"
11
+ ],
12
+ "author": "Ivica Batinic <ivicabatinic123@gmail.com>",
13
+ "license": "MIT",
14
+ "homepage": "https://github.com/isBatak/isbatak-labs/tree/main/packages/panda/wheel-picker#readme",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/isBatak/isbatak-labs.git",
18
+ "directory": "packages/panda/wheel-picker"
19
+ },
20
+ "bugs": {
21
+ "url": "https://github.com/isBatak/isbatak-labs/issues"
22
+ },
23
+ "type": "module",
24
+ "main": "dist/index.cjs",
25
+ "sideEffects": false,
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "exports": {
30
+ ".": {
31
+ "import": {
32
+ "types": "./dist/index.d.ts",
33
+ "default": "./dist/index.js"
34
+ },
35
+ "require": {
36
+ "types": "./dist/index.d.cts",
37
+ "default": "./dist/index.cjs"
38
+ }
39
+ },
40
+ "./package.json": "./package.json"
41
+ },
42
+ "publishConfig": {
43
+ "access": "public"
44
+ },
45
+ "peerDependencies": {
46
+ "@pandacss/dev": ">=1.0.0",
47
+ "@pandacss/types": ">=1.0.0"
48
+ },
49
+ "devDependencies": {
50
+ "@pandacss/dev": "2.0.0-beta.18",
51
+ "@pandacss/types": "2.0.0-beta.18"
52
+ },
53
+ "scripts": {
54
+ "build": "tsup",
55
+ "typecheck": "tsc --noEmit"
56
+ },
57
+ "module": "dist/index.js",
58
+ "types": "dist/index.d.ts"
59
+ }