@storepass/components 0.0.3 → 0.1.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/dist/components/AlertDialog/index.js +1 -1
- package/dist/components/Badge/index.js +1 -1
- package/dist/components/Button/index.js +1 -1
- package/dist/components/ButtonGroup/index.js +1 -1
- package/dist/components/Card/Card.d.ts +1 -1
- package/dist/components/Card/index.js +1 -1
- package/dist/components/Collapsible/index.js +1 -1
- package/dist/components/Command/index.js +1 -1
- package/dist/components/Dialog/index.js +1 -1
- package/dist/components/DropdownMenu/index.js +1 -1
- package/dist/components/Field/index.js +1 -1
- package/dist/components/ImperativeDialog/ImperativeDialog.d.ts.map +1 -1
- package/dist/components/ImperativeDialog/index.js +1 -1
- package/dist/components/Input/index.js +1 -1
- package/dist/components/InputGroup/InputGroup.d.ts +1 -1
- package/dist/components/InputGroup/index.js +1 -1
- package/dist/components/Item/Item.d.ts +2 -2
- package/dist/components/Item/index.js +1 -1
- package/dist/components/Kbd/index.js +1 -1
- package/dist/components/Label/index.js +1 -1
- package/dist/components/NumberField/index.js +1 -1
- package/dist/components/Pagination/index.js +1 -1
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Select/index.js +1 -1
- package/dist/components/Sidebar/index.js +1 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Textarea/index.js +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/index.js +1 -1
- package/dist/{index-cxk963r4.js → index-0qssf6t2.js} +1 -1
- package/dist/{index-cg4j414r.js → index-4064m2gd.js} +1 -1
- package/dist/{index-gf3drq2q.js → index-4qdwy3d4.js} +1 -1
- package/dist/{index-nvw2tytx.js → index-80d87nbh.js} +1 -1
- package/dist/{index-ekmn6r5r.js → index-9m9dzyxb.js} +1 -1
- package/dist/{index-6t49p1dr.js → index-9n1n1r0s.js} +1 -1
- package/dist/{index-nmb3js48.js → index-appa47wp.js} +1 -1
- package/dist/{index-j5mxpzxd.js → index-gycqp0jr.js} +1 -1
- package/dist/{index-4jx63sz2.js → index-j8bsjvny.js} +1 -1
- package/dist/{index-qbyq4s4v.js → index-k8pzktqz.js} +1 -1
- package/dist/{index-vz7tpve0.js → index-kb9vc2ah.js} +1 -1
- package/dist/{index-mkz6yp17.js → index-kkyh417d.js} +1 -1
- package/dist/{index-1aa9d75a.js → index-pnx2tb8x.js} +1 -1
- package/dist/{index-vjgvz4d9.js → index-q3w5v0he.js} +1 -1
- package/dist/{index-vt0h0f25.js → index-qmdre63r.js} +1 -1
- package/dist/{index-18g4vy31.js → index-rhjdwgs8.js} +1 -1
- package/dist/{index-b20jw979.js → index-rn6txd6c.js} +2 -2
- package/dist/{index-ctt0ekbv.js → index-s3vsmkkk.js} +1 -1
- package/dist/index-sn0ra2gz.js +1 -0
- package/dist/{index-c6xjse86.js → index-vk8vhep0.js} +1 -1
- package/dist/{index-05dfc8gc.js → index-xc80va45.js} +1 -1
- package/dist/{index-dp7zz8qq.js → index-xkpb0mbv.js} +1 -1
- package/dist/{index-p83xgc3a.js → index-xkzkyv78.js} +1 -1
- package/dist/{index-tgxa310c.js → index-yregheak.js} +1 -1
- package/dist/{index-75dnenyg.js → index-zj4vgeb4.js} +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/lib/useCommandMenu.js +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/theme.css +74 -0
- package/package.json +7 -9
- package/dist/index-5hc3rmkd.js +0 -2
- package/dist/index-y4pe6zqs.js +0 -1
- package/dist/styles.css +0 -2994
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Mb as k}from"./index-appa47wp.js";import{Collapsible as D}from"@base-ui/react/collapsible";import{faChevronRight as S}from"@fortawesome/pro-solid-svg-icons";import{FontAwesomeIcon as T}from"@fortawesome/react-fontawesome";import{cva as E}from"class-variance-authority";import{forwardRef as G}from"react";import{jsx as b}from"react/jsx-runtime";var H=E(["flex w-full items-center gap-2.5 rounded-lg px-2 py-2.5 text-left text-base/6 font-medium text-foreground sm:py-2 sm:text-sm/5","[&_[data-slot=icon]]:shrink-0 [&_[data-slot=icon]]:text-muted-foreground","[&_[data-slot=icon]]:size-5 sm:[&_[data-slot=icon]]:size-[18px]","[&_[data-slot=icon]:last-child]:ml-auto [&_[data-slot=icon]:last-child]:size-4 sm:[&_[data-slot=icon]:last-child]:size-3.5","hover:bg-accent hover:[&_[data-slot=icon]]:text-foreground","active:bg-accent","focus-visible:outline-none focus-visible:ring-[3px] focus-visible:ring-ring/50","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"],{variants:{variant:{default:"",subtle:"text-muted-foreground hover:text-foreground"}},defaultVariants:{variant:"default"}}),J=E(["flex flex-col","h-[var(--collapsible-panel-height)]","transition-[height] duration-200 ease-out","data-[starting-style]:h-0","data-[ending-style]:h-0","[clip-path:inset(-4px_-10px_-4px_-10px)]"],{variants:{indent:{true:"pl-4",false:""}},defaultVariants:{indent:!0}});function K({className:P,...C}){return b(D.Root,{className:k("flex flex-col",P),...C})}var L=G(function({className:C,variant:q,...y},z){return b(D.Trigger,{ref:z,className:k(H({variant:q}),C),...y})}),M=G(function({className:C,indent:q,...y},z){return b(D.Panel,{ref:z,className:k(J({indent:q}),C),...y})});function O({className:P,...C}){return b("div",{"data-slot":"collapsible-content",className:k("flex flex-col gap-[3px] pt-[3px]",P),...C})}function Q({className:P,...C}){return b("span",{"data-slot":"icon",className:k("ml-auto inline-flex items-center justify-center transition-transform duration-200 [[data-panel-open]_&]:rotate-90",P),...C,children:b(T,{icon:S,size:"sm"})})}var U={Root:K,Trigger:L,Panel:M,Content:O,Chevron:Q};export{H as ra,J as sa,K as ta,L as ua,M as va,O as wa,Q as xa,U as ya};
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,YAAY,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as Yo,b as Zo,c as _o,d as $o,e as oe,f as ee,g as re,h as te,i as pe,j as ae,k as ie,l as ne}from"./index-
|
|
1
|
+
import{a as Yo,b as Zo,c as _o,d as $o,e as oe,f as ee,g as re,h as te,i as pe,j as ae,k as ie,l as ne}from"./index-xc80va45.js";import{m as se,n as de,o as le,p as Pe,q as ye,r as me,s as ue,t as ge}from"./index-qmdre63r.js";import{u as Ce,v as be}from"./index-k8pzktqz.js";import{w as Ie,x as Se,y as De,z as ce}from"./index-pnx2tb8x.js";import{A as po,B as ao,C as io,D as no,E as so,F as lo,G as Po}from"./index-j8bsjvny.js";import{H as yo,I as mo,J as uo,K as go,L as Co,M as bo,N as Io,O as So,P as Do,Q as co,R as Vo,S as xo}from"./index-9m9dzyxb.js";import{T as To,U as Go}from"./index-80d87nbh.js";import{V as Fo}from"./index-4qdwy3d4.js";import{W as fo,X as Mo,Y as Ao}from"./index-0qssf6t2.js";import{$ as Bo,Z as wo,_ as Lo,aa as vo,ba as Ho,ca as Ro,da as ko,ea as ho,fa as Eo,ga as Ko,ha as No}from"./index-gycqp0jr.js";import{ia as zo,ja as Oo,ka as Wo,la as jo,ma as qo}from"./index-kkyh417d.js";import{na as Jo,oa as Qo,pa as Uo,qa as Xo}from"./index-xkzkyv78.js";import{ra as u,sa as g,ta as C,ua as b,va as I,wa as S,xa as D,ya as c}from"./index-zj4vgeb4.js";import{Aa as T,Ba as G,Ca as F,Da as f,Ea as M,Fa as A,Ga as w,Ha as L,Ia as B,za as x}from"./index-s3vsmkkk.js";import{Oa as V}from"./index-xkpb0mbv.js";import{Pa as H,Qa as R,Ra as k,Sa as h,Ta as E,Ua as K,Va as N,Wa as z}from"./index-rhjdwgs8.js";import{$a as J,Xa as O,Ya as W,Za as j,_a as q,ab as Q,bb as U,cb as X,db as Y,eb as Z,fb as _}from"./index-4064m2gd.js";import{gb as v}from"./index-whmf49bh.js";import{hb as $,ib as oo,jb as eo,kb as ro}from"./index-sn0ra2gz.js";import{nb as to}from"./index-yregheak.js";import{tb as o}from"./index-9n1n1r0s.js";import{ub as e,vb as r}from"./index-kb9vc2ah.js";import"./index-j0gmrg5e.js";import{wb as t}from"./index-rn6txd6c.js";import{yb as p,zb as a}from"./index-q3w5v0he.js";import{Bb as i,Db as n,Eb as s,Fb as d,Gb as l,Hb as P,Jb as y,Lb as m}from"./index-vk8vhep0.js";import"./index-appa47wp.js";export{oo as useImperativeDialog,ro as useConfirm,eo as useAlert,Ce as textareaVariants,se as textVariants,le as textLinkVariants,ye as strongVariants,Yo as sidebarVariants,ae as sidebarItemVariants,Jo as selectTriggerVariants,Qo as selectPopupVariants,Uo as selectItemVariants,Oo as radioItemVariants,Wo as radioIndicatorVariants,zo as radioGroupVariants,wo as paginationVariants,Bo as paginationLinkVariants,vo as paginationEllipsisVariants,Lo as paginationContentVariants,fo as numberFieldInputVariants,Mo as numberFieldButtonVariants,uo as itemVariants,Co as itemMediaVariants,ao as inputGroupAddonVariants,O as fieldVariants,K as dropdownMenuSubTriggerVariants,N as dropdownMenuSubContentVariants,E as dropdownMenuShortcutVariants,h as dropdownMenuSeparatorVariants,k as dropdownMenuLabelVariants,R as dropdownMenuItemVariants,H as dropdownMenuContentVariants,x as commandVariants,w as commandShortcutVariants,M as commandSeparatorVariants,G as commandListVariants,A as commandItemVariants,L as commandInputWrapperVariants,T as commandInputVariants,f as commandGroupVariants,F as commandEmptyVariants,u as collapsibleTriggerVariants,g as collapsiblePanelVariants,ue as codeVariants,e as badgeVariants,De as TooltipTrigger,Ie as TooltipProvider,ce as TooltipContent,Se as Tooltip,be as Textarea,Pe as TextLink,de as Text,me as Strong,te as SidebarSpacer,ee as SidebarSection,ne as SidebarLabel,ie as SidebarItem,pe as SidebarHeading,_o as SidebarHeader,oe as SidebarFooter,re as SidebarDivider,$o as SidebarBody,Zo as Sidebar,Xo as Select,qo as RadioGroupItem,jo as RadioGroup,Eo as PaginationPrevious,Ko as PaginationNext,ho as PaginationLink,ko as PaginationItem,No as PaginationEllipsis,Ro as PaginationContent,Ho as Pagination,Ao as NumberField,Fo as Label,Go as KbdGroup,To as Kbd,So as ItemTitle,mo as ItemSeparator,bo as ItemMedia,Vo as ItemHeader,yo as ItemGroup,xo as ItemFooter,Do as ItemDescription,Io as ItemContent,co as ItemActions,go as Item,Po as InputGroupTextarea,so as InputGroupText,lo as InputGroupInput,no as InputGroupButton,io as InputGroupAddon,po as InputGroup,to as Input,$ as ImperativeDialogProvider,v as Icon,X as FieldTitle,j as FieldSet,Z as FieldSeparator,q as FieldLegend,U as FieldLabel,J as FieldGroup,_ as FieldError,Y as FieldDescription,Q as FieldContent,W as Field,z as DropdownMenu,V as Dialog,B as Command,b as CollapsibleTrigger,C as CollapsibleRoot,I as CollapsiblePanel,S as CollapsibleContent,D as CollapsibleChevron,c as Collapsible,ge as Code,d as CardTitle,s as CardHeaderContent,n as CardHeader,m as CardFooter,l as CardDescription,y as CardContent,P as CardAction,i as Card,a as ButtonGroupSeparator,p as ButtonGroup,t as Button,r as Badge,o as AlertDialog};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{useEffect as u,useState as d}from"react";function c(s={}){let{shortcut:n="k"}=s,[r,t]=d(!1);return u(()=>{let o=(e)=>{if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===n)e.preventDefault(),t((a)=>!a)};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[n]),[r,t]}export{c as useCommandMenu};
|
package/dist/lib/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Mb as a}from"../index-appa47wp.js";export{a as cn};
|
package/dist/theme.css
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
@theme {
|
|
2
|
+
/* ============================================
|
|
3
|
+
* Brand / Primary Colors
|
|
4
|
+
* ============================================ */
|
|
5
|
+
--color-primary: #8150e9;
|
|
6
|
+
--color-primary-hover: #6940c0;
|
|
7
|
+
--color-primary-muted: #efe8ff;
|
|
8
|
+
--color-primary-foreground: #ffffff;
|
|
9
|
+
|
|
10
|
+
/* ============================================
|
|
11
|
+
* Semantic Colors
|
|
12
|
+
* ============================================ */
|
|
13
|
+
--color-success: #0acf97;
|
|
14
|
+
--color-danger: #fa5c7c; /* palette alias — use destructive for components */
|
|
15
|
+
--color-destructive: #fa5c7c;
|
|
16
|
+
--color-warning: #ffbc00;
|
|
17
|
+
--color-warning-foreground: #2d2d2d;
|
|
18
|
+
--color-info: #2c8ef8;
|
|
19
|
+
|
|
20
|
+
/* ============================================
|
|
21
|
+
* UI Colors (for components)
|
|
22
|
+
* ============================================ */
|
|
23
|
+
--color-secondary: #f1f5f9;
|
|
24
|
+
--color-secondary-foreground: #0f172a;
|
|
25
|
+
--color-accent: #f1f5f9;
|
|
26
|
+
--color-accent-foreground: #0f172a;
|
|
27
|
+
--color-ring: #8150e9;
|
|
28
|
+
--color-input: #e2e8f0;
|
|
29
|
+
--color-border: #e5e7eb;
|
|
30
|
+
--color-foreground: #2d2d2d;
|
|
31
|
+
|
|
32
|
+
/* ============================================
|
|
33
|
+
* Color Palette
|
|
34
|
+
* ============================================ */
|
|
35
|
+
--color-blue: #2c8ef8;
|
|
36
|
+
--color-indigo: #8150e9;
|
|
37
|
+
--color-purple: #6b5eae;
|
|
38
|
+
--color-pink: #ff679b;
|
|
39
|
+
--color-red: #fa5c7c;
|
|
40
|
+
--color-orange: #fd7e14;
|
|
41
|
+
--color-yellow: #ffbc00;
|
|
42
|
+
--color-green: #0acf97;
|
|
43
|
+
--color-teal: #02a8b5;
|
|
44
|
+
|
|
45
|
+
/* ============================================
|
|
46
|
+
* Neutral / Text Colors (Light Theme)
|
|
47
|
+
* ============================================ */
|
|
48
|
+
--color-body: #2d2d2d;
|
|
49
|
+
--color-muted: #f1f5f9;
|
|
50
|
+
--color-muted-foreground: #64748b;
|
|
51
|
+
--color-background: #ffffff;
|
|
52
|
+
--color-card: #ffffff;
|
|
53
|
+
|
|
54
|
+
/* ============================================
|
|
55
|
+
* Bootstrap-style Button Colors
|
|
56
|
+
* ============================================ */
|
|
57
|
+
--color-btn-primary: #337ab7;
|
|
58
|
+
--color-btn-primary-border: #245580;
|
|
59
|
+
--color-btn-success: #5cb85c;
|
|
60
|
+
--color-btn-success-border: #3e8f3e;
|
|
61
|
+
--color-btn-info: #5bc0de;
|
|
62
|
+
--color-btn-info-border: #28a4c9;
|
|
63
|
+
--color-btn-warning: #f0ad4e;
|
|
64
|
+
--color-btn-warning-border: #e38d13;
|
|
65
|
+
--color-btn-danger: #d9534f;
|
|
66
|
+
--color-btn-danger-border: #b92c28;
|
|
67
|
+
|
|
68
|
+
/* ============================================
|
|
69
|
+
* Border Radius
|
|
70
|
+
* ============================================ */
|
|
71
|
+
--radius-sm: 0.25rem;
|
|
72
|
+
--radius-md: 0.375rem;
|
|
73
|
+
--radius-lg: 0.5rem;
|
|
74
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@storepass/components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"types": "./dist/index.d.ts",
|
|
11
11
|
"import": "./dist/index.js"
|
|
12
12
|
},
|
|
13
|
-
"./
|
|
13
|
+
"./theme.css": "./dist/theme.css",
|
|
14
14
|
"./lib/utils": {
|
|
15
15
|
"types": "./dist/lib/utils.d.ts",
|
|
16
16
|
"import": "./dist/lib/utils.js"
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"dev": "bun ./demo/index.html",
|
|
38
38
|
"build:js": "bun build src/index.ts src/lib/utils.ts src/lib/useCommandMenu.ts src/components/*/index.ts --outdir ./dist --root ./src --splitting --format esm --target browser --packages external --production",
|
|
39
39
|
"build:types": "tsc -p tsconfig.build.json",
|
|
40
|
-
"build:css": "
|
|
40
|
+
"build:css": "cp ./src/styles/theme.css ./dist/theme.css",
|
|
41
41
|
"test": "bun test",
|
|
42
42
|
"clean": "rm -rf dist",
|
|
43
43
|
"build": "bun run clean && bun run build:js && bun run build:types && bun run build:css",
|
|
@@ -46,20 +46,18 @@
|
|
|
46
46
|
"format": "biome format --write ."
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@base-ui/react": "1.
|
|
49
|
+
"@base-ui/react": "^1.4.1",
|
|
50
50
|
"@fortawesome/fontawesome-svg-core": "^7.2.0",
|
|
51
51
|
"@fortawesome/pro-solid-svg-icons": "^7.2.0",
|
|
52
|
-
"@fortawesome/react-fontawesome": "^3.
|
|
53
|
-
"@tailwindcss/postcss": "^4.2.1",
|
|
52
|
+
"@fortawesome/react-fontawesome": "^3.3.1",
|
|
54
53
|
"class-variance-authority": "^0.7.1",
|
|
55
54
|
"cmdk": "^1.1.1",
|
|
56
|
-
"tailwind-merge": "^3.
|
|
55
|
+
"tailwind-merge": "^3.6.0"
|
|
57
56
|
},
|
|
58
57
|
"devDependencies": {
|
|
59
58
|
"@biomejs/biome": "2.3.11",
|
|
60
59
|
"@types/bun": "latest",
|
|
61
|
-
"bun-plugin-tailwind": "^0.1.2"
|
|
62
|
-
"postcss-cli": "^11.0.1"
|
|
60
|
+
"bun-plugin-tailwind": "^0.1.2"
|
|
63
61
|
},
|
|
64
62
|
"peerDependencies": {
|
|
65
63
|
"react": "^19.2.3",
|
package/dist/index-5hc3rmkd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{useEffect as u,useState as d}from"react";function c(s={}){let{shortcut:n="k"}=s,[r,t]=d(!1);return u(()=>{let o=(e)=>{if((e.metaKey||e.ctrlKey)&&e.key.toLowerCase()===n)e.preventDefault(),t((a)=>!a)};return window.addEventListener("keydown",o),()=>window.removeEventListener("keydown",o)},[n]),[r,t]}
|
|
2
|
-
export{c as ob};
|
package/dist/index-y4pe6zqs.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{ub as o}from"./index-6t49p1dr.js";import{xb as u}from"./index-b20jw979.js";import{createContext as A,useCallback as m,useContext as O,useRef as I,useState as b}from"react";import{jsx as i,jsxs as a,Fragment as w}from"react/jsx-runtime";var D=A(null);function y({children:t}){let[n,s]=b(null),g=I(null),C=m((e)=>{let c=typeof e==="string"?{title:e}:e;return new Promise((l)=>{g.current=()=>l(),s({type:"alert",options:c,resolve:()=>l()})})},[]),P=m((e)=>{let c=typeof e==="string"?{title:e}:e;return new Promise((l)=>{g.current=l,s({type:"confirm",options:c,resolve:l})})},[]),p=m((e)=>{n?.resolve(e),s(null)},[n]),v=n?.type==="confirm",r=n?.options,d=r;return a(D.Provider,{value:{alert:C,confirm:P},children:[t,i(o.Root,{open:n!==null,onOpenChange:(e)=>{if(!e)p(!1)},children:a(o.Portal,{children:[i(o.Backdrop,{}),i(o.Popup,{children:r&&a(w,{children:[i(o.Title,{children:r.title}),r.description&&i(o.Description,{children:r.description}),a(o.Actions,{children:[v&&i(u,{variant:"ghost",onClick:()=>p(!1),children:d?.cancelLabel??"Cancel"}),i(u,{variant:v?d?.variant??"primary":"primary",onClick:()=>p(!0),children:r.confirmLabel??"OK"})]})]})})]})})]})}function f(){let t=O(D);if(!t)throw Error("useImperativeDialog must be used within an ImperativeDialogProvider");return t}function h(){let{alert:t}=f();return t}function R(){let{confirm:t}=f();return t}export{y as hb,f as ib,h as jb,R as kb};
|