amotify 0.3.2 → 0.3.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.
- package/dist/atoms/Card.d.ts +10 -6
- package/dist/atoms/Card.js +1 -1
- package/package.json +1 -1
package/dist/atoms/Card.d.ts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import Box from './Box';
|
|
3
3
|
declare namespace Card {
|
|
4
|
-
type Input
|
|
5
|
-
|
|
6
|
-
Border: React.FC<Input>;
|
|
7
|
-
Plain: React.FC<Input>;
|
|
8
|
-
Cloud: React.FC<Input>;
|
|
9
|
-
Shadow: React.FC<Input>;
|
|
4
|
+
type Input<P extends Box.DefaultInput> = P & {
|
|
5
|
+
jsxElement?: React.ComponentType<P>;
|
|
10
6
|
};
|
|
7
|
+
type MainComponent<P extends Box.DefaultInput> = React.FC<Input<P>>;
|
|
8
|
+
type FNs = {
|
|
9
|
+
Border: React.FC<Input<Box.DefaultInput>>;
|
|
10
|
+
Plain: React.FC<Input<Box.DefaultInput>>;
|
|
11
|
+
Cloud: React.FC<Input<Box.DefaultInput>>;
|
|
12
|
+
Shadow: React.FC<Input<Box.DefaultInput>>;
|
|
13
|
+
};
|
|
14
|
+
type Methods = MainComponent<Box.DefaultInput> & FNs;
|
|
11
15
|
}
|
|
12
16
|
declare const Card: Card.Methods;
|
|
13
17
|
export { Card, Card as default };
|
package/dist/atoms/Card.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as
|
|
1
|
+
import{b as e,d as p}from"../chunk-C5N2D3ZX.js";import{jsx as n}from"react/jsx-runtime";import u from"./Box";const o=t=>{let a=t,{jsxElement:d=u}=a,r=p(a,["jsxElement"]);return n(d,e({ssCardBox:!0,padding:1.5},r))},s=Object.assign(o,{Border:t=>n(o,e({ssCardBox:"border"},t)),Plain:t=>n(o,e({ssCardBox:"plain"},t)),Cloud:t=>n(o,e({ssCardBox:"cloud"},t)),Shadow:t=>n(o,e({ssCardBox:"shadow"},t))});export{s as Card,s as default};
|