@cladd-ui/react 0.8.0 → 0.9.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/CHANGELOG.md +12 -0
- package/components/Popover.js +1 -1
- package/components/Spinner.js +1 -1
- package/components/Spinner.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.0 (2026-05-29)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- popover open duration 400ms -> 300ms (13de1ab)
|
|
8
|
+
|
|
9
|
+
## 0.8.1 (2026-05-25)
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
- move spinner's color class to its root element (45f32e2)
|
|
14
|
+
|
|
3
15
|
## 0.8.0 (2026-05-22)
|
|
4
16
|
|
|
5
17
|
### Features
|
package/components/Popover.js
CHANGED
|
@@ -386,7 +386,7 @@ const PopoverInner = (props) => {
|
|
|
386
386
|
else if (ref && 'current' in ref)
|
|
387
387
|
ref.current = el;
|
|
388
388
|
}, style: popoverStyle, className: cn('pointer-events-auto absolute z-50 flex w-40 max-w-[calc(100vw-16px)] rounded-cladd-popover shadow-cladd-popover transition-[opacity,transform,scale] duration-0', opened && 'scale-100 opacity-100 ease-[cubic-bezier(0,1,0,1.025)]', (phase === 'opened' || (phase === 'opening' && opened)) &&
|
|
389
|
-
'duration-
|
|
389
|
+
'duration-300', phase === 'closing' && 'duration-200 ease-in-out!', (phase === 'closing' || !opened) && 'scale-0 opacity-0', positionConfig.origin, className), color: color, level: surfaceLevel, variant: variant, outline: outline, contentClassName: cn('h-auto max-h-[70vh] w-full overflow-auto', contentClassName), ...rest, children: children })] }) }));
|
|
390
390
|
return root
|
|
391
391
|
? createPortal(content, document.querySelector(root))
|
|
392
392
|
: content;
|
package/components/Spinner.js
CHANGED
|
@@ -7,6 +7,6 @@ export function Spinner(props) {
|
|
|
7
7
|
const accentColor = useAccentColor();
|
|
8
8
|
const { size = 'sm', color = accentColor, className, } = useComponentDefaults('Spinner', props);
|
|
9
9
|
const sizeClass = nestedSizeClasses(size, 'size');
|
|
10
|
-
return (_jsx("span", { className: cn('cladd-spinner cladd-spinner relative inline-block', `cladd-color-${color}`, sizeClass, className), children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", className:
|
|
10
|
+
return (_jsx("span", { className: cn('cladd-spinner cladd-spinner relative inline-block', `cladd-color-${color} text-cladd-primary`, sizeClass, className), children: _jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20", fill: "currentColor", className: "h-full w-full animate-cladd-spinner", children: _jsx("path", { d: "M9.045 2.078q-1.04.135-1.609.33a7.982 7.982 0 1 0 10.236 9.9q.15-.49.256-1.356c.069-.568.55-.997 1.122-.997h.008c.56 0 .995.486.937 1.041q-.113 1.068-.279 1.663c-1.18 4.233-5.064 7.338-9.674 7.338C4.496 19.997 0 15.501 0 9.955 0 5.382 3.058 1.522 7.24.31Q7.868.13 9 .006a.94.94 0 0 1 1.042.933v.008c0 .574-.428 1.058-.997 1.131" }) }) }));
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=Spinner.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../src/components/Spinner.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAiBxD,MAAM,UAAU,OAAO,CAAC,KAAmB;IACzC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,EACJ,IAAI,G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