@clicktap/ui 0.42.1 → 0.42.3
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as d}from"react/jsx-runtime";import{Accordion as u}from"@heroui/accordion";import{cn as r}from"../../utils/cn.js";import{DownArrow as i}from"../Icon/DownArrow.js";function
|
|
1
|
+
"use client";import{jsx as d}from"react/jsx-runtime";import{Accordion as u}from"@heroui/accordion";import{cn as r}from"../../utils/cn.js";import{DownArrow as i}from"../Icon/DownArrow.js";function a({children:n,variant:o,isCompact:t,className:l,itemClasses:e,...b}){return d(u,{variant:o,isCompact:t,dividerProps:{className:r("my-2 border-solid border-border-subtle",o==="shadow"&&"border-border")},className:r("px-0",o==="bordered"&&["px-4 py-4 rounded-xl border-2 border-border-subtle"],o==="shadow"&&["px-4 py-4 rounded-xl bg-surface-subtle shadow-slate-200 border border-border-subtle"],l),itemClasses:{base:r("w-full py-2",'data-[disabled="true"]:pointer-events-none data-[disabled="true"]:opacity-50',o==="bordered"&&["rounded-xl py-0"],o==="splitted"&&["flex flex-col bg-surface-subtle rounded-xl border border-border-subtle"],t&&"py-0",e?.base),trigger:r("w-full h-full flex items-center gap-3 py-0 appearance-none cursor-pointer select-none","focus-visible:outline-2 focus-visible:outline focus-visible:outline-slate-100","bg-transparent text-inherit",t&&["py-2"],e?.trigger),title:r("text-xl font-semibold",t&&"text-base",e?.title),subtitle:r("text-base",t&&"text-sm",e?.subtitle),titleWrapper:r("text-left",e?.titleWrapper),startContent:r("shrink-0",e?.startContent),content:r([t?"py-1":"py-2"],e?.content),indicator:e?.indicator,heading:e?.heading},...b,children:n})}function x(){return d(i,{className:"w-4 h-4"})}export{a as Accordion,x as AccordionItemArrow,a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{jsx as s}from"react/jsx-runtime";import{Pagination as n}from"@heroui/pagination";import{cn as e}from"../../utils/cn.js";const r=e("w-8 h-8 flex justify-center items-center cursor-pointer shadow-none","border border-border-subtle data-[disabled=true]:border-0",
|
|
1
|
+
"use client";import{jsx as s}from"react/jsx-runtime";import{Pagination as n}from"@heroui/pagination";import{cn as e}from"../../utils/cn.js";const r=e("w-8 h-8 flex justify-center items-center cursor-pointer shadow-none","border border-border-subtle data-[disabled=true]:border-0","rounded transition-colors duration-300 focus-visible:outline-white focus-visible:outline-offset-4","hover:bg-slate-50 data-[disabled=true]:bg-surface-subtle data-[disabled=true]:text-fg-subtle","[&>svg]:w-4.5 [&>svg]:h-auto");function b({showControls:o=!0,className:i,classNames:t,...a}){return s(n,{showControls:o,className:e("text-slate-600",i),classNames:{wrapper:e("flex flex-nowrap gap-2 lg:gap-3",t?.wrapper),item:e("w-8 h-8 flex text-sm justify-center items-center cursor-pointer rounded shadow-none","border-solid border border-slate-100 bg-transparent transition-colors duration-300","data-[active=true]:bg-slate-500 data-[active=true]:text-white focus-visible:outline-white focus-visible:outline-offset-4","[&[data-hover=true]:not([data-active=true])]:border-border-subtle",t?.item),prev:e(r,t?.prev),next:e(r,t?.next),ellipsis:e("w-4 h-4.5 scale-110 translate-y-1",t?.ellipsis)},...a})}export{b as Pagination,b as default};
|
|
@@ -53,8 +53,11 @@ pins `clsx` 2.x itself, nothing changes for your code — the two versions coexi
|
|
|
53
53
|
## Verify
|
|
54
54
|
|
|
55
55
|
```bash
|
|
56
|
-
# After bumping, confirm the peer tiering reached you
|
|
57
|
-
|
|
56
|
+
# After bumping, confirm the peer tiering reached you. Read the manifest BY
|
|
57
|
+
# PATH — the package specifier form (require('@clicktap/ui/package.json'))
|
|
58
|
+
# throws ERR_PACKAGE_PATH_NOT_EXPORTED until the exports map exposes
|
|
59
|
+
# ./package.json (fixed after 0.42.1):
|
|
60
|
+
node -e "const m=require('./node_modules/@clicktap/ui/package.json'); console.log(m.version, m.peerDependenciesMeta['react-hook-form'])"
|
|
58
61
|
# → <new version> { optional: true }
|
|
59
62
|
```
|
|
60
63
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clicktap/ui",
|
|
3
|
-
"version": "0.42.
|
|
3
|
+
"version": "0.42.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": "Clicktap",
|
|
6
6
|
"description": "A library of React UI components and low-level hooks.",
|
|
@@ -71,7 +71,8 @@
|
|
|
71
71
|
"./types/*/index.d.ts"
|
|
72
72
|
]
|
|
73
73
|
},
|
|
74
|
-
"./assets/*": "./assets/*"
|
|
74
|
+
"./assets/*": "./assets/*",
|
|
75
|
+
"./package.json": "./package.json"
|
|
75
76
|
},
|
|
76
77
|
"dependencies": {
|
|
77
78
|
"@react-aria/interactions": "^3.21.1",
|