@mehdashti/ui 0.9.1 → 0.9.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/LICENSE +21 -0
- package/dist/components/card.js +1 -1
- package/dist/components/card.js.map +1 -1
- package/dist/components/select.js +3 -3
- package/dist/components/tabs.js +4 -4
- package/dist/components/tabs.js.map +1 -1
- package/package.json +16 -16
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Mahdi Ashti
|
|
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/dist/components/card.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { cn } from "../lib/utils.js";
|
|
4
|
-
const Card = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("
|
|
4
|
+
const Card = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("[border-radius:var(--radius-xs)] border bg-card text-card-foreground shadow-sm", className), ...props })));
|
|
5
5
|
Card.displayName = "Card";
|
|
6
6
|
const CardHeader = React.forwardRef(({ className, ...props }, ref) => (_jsx("div", { ref: ref, className: cn("flex flex-col space-y-1.5 p-6", className), ...props })));
|
|
7
7
|
CardHeader.displayName = "CardHeader";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AAEpC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAG3B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,
|
|
1
|
+
{"version":3,"file":"card.js","sourceRoot":"","sources":["../../src/components/card.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAC9B,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAA;AAEpC,MAAM,IAAI,GAAG,KAAK,CAAC,UAAU,CAG3B,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE,CAAC,CAClC,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CACX,gFAAgF,EAChF,SAAS,CACV,KACG,KAAK,GACT,CACH,CAAC,CAAA;AACF,IAAI,CAAC,WAAW,GAAG,MAAM,CAAA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AAG,EAAE,EAAE,CAAC,CAClC,cACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,4BAA4B,EAAE,SAAS,CAAC,KAClD,KAAK,GACT,CACH,CAAC,CAAA;AACF,UAAU,CAAC,WAAW,GAAG,YAAY,CAAA;AAErC,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,eAAe,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -5,20 +5,20 @@ import { cn } from "../lib/utils.js";
|
|
|
5
5
|
const Select = SelectPrimitive.Root;
|
|
6
6
|
const SelectGroup = SelectPrimitive.Group;
|
|
7
7
|
const SelectValue = SelectPrimitive.Value;
|
|
8
|
-
const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(SelectPrimitive.Trigger, { ref: ref, "data-slot": "select-trigger", className: cn("flex h-9 w-full items-center justify-between border border-input bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none [border-radius:var(--radius-
|
|
8
|
+
const SelectTrigger = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(SelectPrimitive.Trigger, { ref: ref, "data-slot": "select-trigger", className: cn("flex h-9 w-full items-center justify-between border border-input bg-transparent px-3 py-2 text-sm shadow-xs transition-[color,box-shadow] outline-none [border-radius:var(--radius-xs)]", "placeholder:text-muted-foreground", "focus:border-ring focus:ring-ring/50 focus:ring-[3px]", "disabled:cursor-not-allowed disabled:opacity-50", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", "[&>span]:line-clamp-1", className), ...props, children: [children, _jsx(SelectPrimitive.Icon, { asChild: true, children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "opacity-50", children: _jsx("path", { d: "m6 9 6 6 6-6" }) }) })] })));
|
|
9
9
|
SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
|
|
10
10
|
const SelectScrollUpButton = React.forwardRef(({ className, ...props }, ref) => (_jsx(SelectPrimitive.ScrollUpButton, { ref: ref, className: cn("flex cursor-default items-center justify-center py-1", className), ...props, children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("path", { d: "m18 15-6-6-6 6" }) }) })));
|
|
11
11
|
SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
|
|
12
12
|
const SelectScrollDownButton = React.forwardRef(({ className, ...props }, ref) => (_jsx(SelectPrimitive.ScrollDownButton, { ref: ref, className: cn("flex cursor-default items-center justify-center py-1", className), ...props, children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("path", { d: "m6 9 6 6 6-6" }) }) })));
|
|
13
13
|
SelectScrollDownButton.displayName =
|
|
14
14
|
SelectPrimitive.ScrollDownButton.displayName;
|
|
15
|
-
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => (_jsx(SelectPrimitive.Portal, { children: _jsxs(SelectPrimitive.Content, { ref: ref, className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-md [border-radius:var(--radius-
|
|
15
|
+
const SelectContent = React.forwardRef(({ className, children, position = "popper", ...props }, ref) => (_jsx(SelectPrimitive.Portal, { children: _jsxs(SelectPrimitive.Content, { ref: ref, className: cn("relative z-50 max-h-96 min-w-[8rem] overflow-hidden border border-border bg-background text-foreground shadow-md [border-radius:var(--radius-xs)]", "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", position === "popper" &&
|
|
16
16
|
"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", className), position: position, ...props, children: [_jsx(SelectScrollUpButton, {}), _jsx(SelectPrimitive.Viewport, { className: cn("p-1", position === "popper" &&
|
|
17
17
|
"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"), children: children }), _jsx(SelectScrollDownButton, {})] }) })));
|
|
18
18
|
SelectContent.displayName = SelectPrimitive.Content.displayName;
|
|
19
19
|
const SelectLabel = React.forwardRef(({ className, ...props }, ref) => (_jsx(SelectPrimitive.Label, { ref: ref, className: cn("px-2 py-1.5 text-sm font-semibold", className), ...props })));
|
|
20
20
|
SelectLabel.displayName = SelectPrimitive.Label.displayName;
|
|
21
|
-
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(SelectPrimitive.Item, { ref: ref, className: cn("relative flex w-full cursor-default select-none items-center py-1.5 pl-2 pr-8 text-sm outline-none [border-radius:var(--radius-
|
|
21
|
+
const SelectItem = React.forwardRef(({ className, children, ...props }, ref) => (_jsxs(SelectPrimitive.Item, { ref: ref, className: cn("relative flex w-full cursor-default select-none items-center py-1.5 pl-2 pr-8 text-sm outline-none [border-radius:var(--radius-xs)]", "focus:bg-accent focus:text-accent-foreground", "data-[disabled]:pointer-events-none data-[disabled]:opacity-50", className), ...props, children: [_jsx("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: _jsx(SelectPrimitive.ItemIndicator, { children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", children: _jsx("path", { d: "M20 6 9 17l-5-5" }) }) }) }), _jsx(SelectPrimitive.ItemText, { children: children })] })));
|
|
22
22
|
SelectItem.displayName = SelectPrimitive.Item.displayName;
|
|
23
23
|
const SelectSeparator = React.forwardRef(({ className, ...props }, ref) => (_jsx(SelectPrimitive.Separator, { ref: ref, className: cn("-mx-1 my-1 h-px bg-border", className), ...props })));
|
|
24
24
|
SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
|
package/dist/components/tabs.js
CHANGED
|
@@ -10,10 +10,10 @@ import { cn } from "../lib/utils.js";
|
|
|
10
10
|
const tabsListVariants = cva("inline-flex items-center transition-all", {
|
|
11
11
|
variants: {
|
|
12
12
|
variant: {
|
|
13
|
-
default: "bg-muted p-1 text-muted-foreground [border-radius:var(--radius-
|
|
13
|
+
default: "bg-muted p-1 text-muted-foreground [border-radius:var(--radius-xs)]",
|
|
14
14
|
pills: "gap-2 bg-transparent",
|
|
15
15
|
underline: "border-b border-border gap-1",
|
|
16
|
-
enclosed: "border border-border
|
|
16
|
+
enclosed: "border border-border [border-radius:var(--radius-xs)] bg-background p-1",
|
|
17
17
|
},
|
|
18
18
|
density: {
|
|
19
19
|
cozy: "h-11",
|
|
@@ -43,10 +43,10 @@ const tabsListVariants = cva("inline-flex items-center transition-all", {
|
|
|
43
43
|
const tabsTriggerVariants = cva("inline-flex items-center justify-center gap-2 whitespace-nowrap font-medium transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", {
|
|
44
44
|
variants: {
|
|
45
45
|
variant: {
|
|
46
|
-
default: "px-3 py-1.5 text-sm [border-radius:var(--radius-
|
|
46
|
+
default: "px-3 py-1.5 text-sm [border-radius:var(--radius-xs)] data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-xs",
|
|
47
47
|
pills: "px-4 py-2 text-sm rounded-full data-[state=active]:bg-primary data-[state=active]:text-primary-foreground",
|
|
48
48
|
underline: "px-3 py-2 text-sm border-b-2 border-transparent data-[state=active]:border-primary data-[state=active]:text-foreground",
|
|
49
|
-
enclosed: "px-3 py-1.5 text-sm [border-radius:var(--radius-
|
|
49
|
+
enclosed: "px-3 py-1.5 text-sm [border-radius:var(--radius-xs)] data-[state=active]:bg-primary/10 data-[state=active]:text-primary data-[state=active]:font-semibold",
|
|
50
50
|
},
|
|
51
51
|
semantic: {
|
|
52
52
|
neutral: "", // default colors
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../src/components/tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,gFAAgF;AAChF,qBAAqB;AACrB,gFAAgF;AAEhF,MAAM,gBAAgB,GAAG,GAAG,CAC1B,yCAAyC,EACzC;IACE,QAAQ,EAAE;QACR,OAAO,EAAE;YACP,OAAO,EAAE,qEAAqE;YAC9E,KAAK,EAAE,sBAAsB;YAC7B,SAAS,EAAE,8BAA8B;YACzC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"tabs.js","sourceRoot":"","sources":["../../src/components/tabs.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,aAAa,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C,OAAO,EAAE,EAAE,EAAE,MAAM,iBAAiB,CAAC;AAErC,gFAAgF;AAChF,qBAAqB;AACrB,gFAAgF;AAEhF,MAAM,gBAAgB,GAAG,GAAG,CAC1B,yCAAyC,EACzC;IACE,QAAQ,EAAE;QACR,OAAO,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EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mehdashti/ui",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2",
|
|
4
4
|
"description": "Enterprise-grade React UI components with enhanced tabs, overflow handling, and declarative APIs",
|
|
5
5
|
"author": "mehdashti",
|
|
6
6
|
"license": "MIT",
|
|
@@ -166,17 +166,6 @@
|
|
|
166
166
|
"files": [
|
|
167
167
|
"dist"
|
|
168
168
|
],
|
|
169
|
-
"scripts": {
|
|
170
|
-
"build": "tsc",
|
|
171
|
-
"dev": "tsc --watch",
|
|
172
|
-
"lint": "eslint src --ext .ts,.tsx",
|
|
173
|
-
"test": "vitest",
|
|
174
|
-
"test:ui": "vitest --ui",
|
|
175
|
-
"test:coverage": "vitest --coverage",
|
|
176
|
-
"storybook": "storybook dev -p 6006",
|
|
177
|
-
"build-storybook": "storybook build",
|
|
178
|
-
"clean": "rm -rf dist"
|
|
179
|
-
},
|
|
180
169
|
"peerDependencies": {
|
|
181
170
|
"react": "^18.0.0 || ^19.0.0",
|
|
182
171
|
"react-dom": "^18.0.0 || ^19.0.0"
|
|
@@ -206,8 +195,6 @@
|
|
|
206
195
|
"tailwind-merge": "^2.6.0"
|
|
207
196
|
},
|
|
208
197
|
"devDependencies": {
|
|
209
|
-
"@mehdashti/tokens": "workspace:^",
|
|
210
|
-
"@smart/typescript-config": "workspace:*",
|
|
211
198
|
"@storybook/addon-essentials": "^8.6.14",
|
|
212
199
|
"@storybook/addon-interactions": "^8.6.14",
|
|
213
200
|
"@storybook/addon-links": "^8.6.14",
|
|
@@ -220,6 +207,19 @@
|
|
|
220
207
|
"react": "^18.3.1",
|
|
221
208
|
"react-dom": "^18.3.1",
|
|
222
209
|
"storybook": "^8.6.14",
|
|
223
|
-
"typescript": "^5.7.2"
|
|
210
|
+
"typescript": "^5.7.2",
|
|
211
|
+
"@mehdashti/tokens": "^0.2.1",
|
|
212
|
+
"@smart/typescript-config": "0.0.0"
|
|
213
|
+
},
|
|
214
|
+
"scripts": {
|
|
215
|
+
"build": "tsc",
|
|
216
|
+
"dev": "tsc --watch",
|
|
217
|
+
"lint": "eslint src --ext .ts,.tsx",
|
|
218
|
+
"test": "vitest",
|
|
219
|
+
"test:ui": "vitest --ui",
|
|
220
|
+
"test:coverage": "vitest --coverage",
|
|
221
|
+
"storybook": "storybook dev -p 6006",
|
|
222
|
+
"build-storybook": "storybook build",
|
|
223
|
+
"clean": "rm -rf dist"
|
|
224
224
|
}
|
|
225
|
-
}
|
|
225
|
+
}
|