@adgytec/adgytec-web-ui-components 0.0.16 → 0.0.17
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/BaseCard-C75SV55U.js +32 -0
- package/dist/assets/BaseCard.css +1 -0
- package/dist/components/Card/BaseCard/BaseCard.d.ts +3 -0
- package/dist/components/Card/BaseCard/index.d.ts +2 -0
- package/dist/components/Card/BaseCard/index.js +6 -0
- package/dist/components/Card/BaseCard/types.d.ts +24 -0
- package/dist/components/Card/GradientCard/GradientCard.d.ts +2 -0
- package/dist/components/Card/GradientCard/index.d.ts +1 -0
- package/dist/components/Card/GradientCard/index.js +16 -0
- package/dist/components/Card/SolidCard/SolidCard.d.ts +3 -0
- package/dist/components/Card/SolidCard/index.d.ts +1 -0
- package/dist/components/Card/SolidCard/index.js +10 -0
- package/dist/components/Card/TransparentCard/TransparentCard.d.ts +3 -0
- package/dist/components/Card/TransparentCard/index.d.ts +1 -0
- package/dist/components/Card/TransparentCard/index.js +16 -0
- package/package.json +17 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
2
|
+
import './assets/BaseCard.css';var o = /* @__PURE__ */ ((t) => (t.transparent = "transparent", t.solid = "solid", t.solidLow = "solid-low", t.solidLowest = "solid-lowest", t.solidHigh = "solid-high", t.solidHighest = "solid-highest", t.gradient = "gradient", t))(o || {}), i = /* @__PURE__ */ ((t) => (t.none = "none", t.default = "default", t))(i || {});
|
|
3
|
+
const a = "_card_1qj5t_1", d = "_transparent_1qj5t_21", r = "_solid_1qj5t_29", h = "_gradient_1qj5t_69", j = "_none_1qj5t_97", s = {
|
|
4
|
+
card: a,
|
|
5
|
+
transparent: d,
|
|
6
|
+
solid: r,
|
|
7
|
+
"solid-low": "_solid-low_1qj5t_37",
|
|
8
|
+
"solid-lowest": "_solid-lowest_1qj5t_45",
|
|
9
|
+
"solid-high": "_solid-high_1qj5t_53",
|
|
10
|
+
"solid-highest": "_solid-highest_1qj5t_61",
|
|
11
|
+
gradient: h,
|
|
12
|
+
none: j,
|
|
13
|
+
default: "_default_1qj5t_107"
|
|
14
|
+
}, c = ({
|
|
15
|
+
padding: t = i.none,
|
|
16
|
+
background: l = o.transparent,
|
|
17
|
+
children: n,
|
|
18
|
+
...e
|
|
19
|
+
}) => /* @__PURE__ */ _(
|
|
20
|
+
"div",
|
|
21
|
+
{
|
|
22
|
+
...e,
|
|
23
|
+
className: `${e.className} ${s.card} ${s[t]} ${s[l]}`,
|
|
24
|
+
"data-card": "true",
|
|
25
|
+
children: n
|
|
26
|
+
}
|
|
27
|
+
);
|
|
28
|
+
export {
|
|
29
|
+
c as B,
|
|
30
|
+
o as C,
|
|
31
|
+
i as a
|
|
32
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._card_1qj5t_1{padding-inline:var(--_pi);padding-block:var(--_pb);border-radius:var(--radius);box-shadow:var(--elevation-1);background:var(--_bg)}._transparent_1qj5t_21{--_bg: transparent}._solid_1qj5t_29{--_bg: var(--color-surface-container)}._solid-low_1qj5t_37{--_bg: var(--color-surface-container-low)}._solid-lowest_1qj5t_45{--_bg: var(--color-surface-container-lowest)}._solid-high_1qj5t_53{--_bg: var(--color-surface-container-high)}._solid-highest_1qj5t_61{--_bg: var(--color-surface-container-highest)}._gradient_1qj5t_69{--_bg: radial-gradient( ellipse at top, var(--color-surface-container-low), transparent ), radial-gradient( ellipse at bottom, var(--color-surface-container-high), transparent )}._none_1qj5t_97{--_pi: 0;--_pb: 0}._default_1qj5t_107{--_pi: 1rem;--_pb: 1rem}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export declare enum CardBackground {
|
|
3
|
+
transparent = "transparent",
|
|
4
|
+
solid = "solid",
|
|
5
|
+
solidLow = "solid-low",
|
|
6
|
+
solidLowest = "solid-lowest",
|
|
7
|
+
solidHigh = "solid-high",
|
|
8
|
+
solidHighest = "solid-highest",
|
|
9
|
+
gradient = "gradient"
|
|
10
|
+
}
|
|
11
|
+
export declare enum CardPadding {
|
|
12
|
+
none = "none",
|
|
13
|
+
default = "default"
|
|
14
|
+
}
|
|
15
|
+
export interface BaseCardProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
16
|
+
background?: CardBackground;
|
|
17
|
+
padding?: CardPadding;
|
|
18
|
+
}
|
|
19
|
+
export interface StyledBaseCardProps extends Omit<BaseCardProps, "background"> {
|
|
20
|
+
}
|
|
21
|
+
export type SolidCardBackground = CardBackground.solid | CardBackground.solidLow | CardBackground.solidLowest | CardBackground.solidHigh | CardBackground.solidHighest;
|
|
22
|
+
export interface StyledSolidCardProps extends Omit<BaseCardProps, "background"> {
|
|
23
|
+
background?: SolidCardBackground;
|
|
24
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GradientCard';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { B as o, C as t, a as n } from "../../../BaseCard-C75SV55U.js";
|
|
3
|
+
const i = ({
|
|
4
|
+
padding: a = n.default,
|
|
5
|
+
...r
|
|
6
|
+
}) => /* @__PURE__ */ d(
|
|
7
|
+
o,
|
|
8
|
+
{
|
|
9
|
+
...r,
|
|
10
|
+
padding: a,
|
|
11
|
+
background: t.gradient
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
export {
|
|
15
|
+
i as GradientCard
|
|
16
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './SolidCard';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { B as s, C as t, a as i } from "../../../BaseCard-C75SV55U.js";
|
|
3
|
+
const m = ({
|
|
4
|
+
padding: a = i.default,
|
|
5
|
+
background: r = t.solid,
|
|
6
|
+
...d
|
|
7
|
+
}) => /* @__PURE__ */ o(s, { ...d, padding: a, background: r });
|
|
8
|
+
export {
|
|
9
|
+
m as SolidCard
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TransparentCard';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { B as n, C as t, a as o } from "../../../BaseCard-C75SV55U.js";
|
|
3
|
+
const p = ({
|
|
4
|
+
padding: a = o.default,
|
|
5
|
+
...r
|
|
6
|
+
}) => /* @__PURE__ */ d(
|
|
7
|
+
n,
|
|
8
|
+
{
|
|
9
|
+
...r,
|
|
10
|
+
padding: a,
|
|
11
|
+
background: t.transparent
|
|
12
|
+
}
|
|
13
|
+
);
|
|
14
|
+
export {
|
|
15
|
+
p as TransparentCard
|
|
16
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adgytec/adgytec-web-ui-components",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.17",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
@@ -42,6 +42,22 @@
|
|
|
42
42
|
"import": "./dist/components/Button/ToggleButton/index.js",
|
|
43
43
|
"types": "./dist/components/Button/ToggleButton/index.d.ts"
|
|
44
44
|
},
|
|
45
|
+
"./Card/BaseCard": {
|
|
46
|
+
"import": "./dist/components/Card/BaseCard/index.js",
|
|
47
|
+
"types": "./dist/components/Card/BaseCard/index.d.ts"
|
|
48
|
+
},
|
|
49
|
+
"./Card/GradientCard": {
|
|
50
|
+
"import": "./dist/components/Card/GradientCard/index.js",
|
|
51
|
+
"types": "./dist/components/Card/GradientCard/index.d.ts"
|
|
52
|
+
},
|
|
53
|
+
"./Card/SolidCard": {
|
|
54
|
+
"import": "./dist/components/Card/SolidCard/index.js",
|
|
55
|
+
"types": "./dist/components/Card/SolidCard/index.d.ts"
|
|
56
|
+
},
|
|
57
|
+
"./Card/TransparentCard": {
|
|
58
|
+
"import": "./dist/components/Card/TransparentCard/index.js",
|
|
59
|
+
"types": "./dist/components/Card/TransparentCard/index.d.ts"
|
|
60
|
+
},
|
|
45
61
|
"./Disclosure/Disclosure": {
|
|
46
62
|
"import": "./dist/components/Disclosure/Disclosure/index.js",
|
|
47
63
|
"types": "./dist/components/Disclosure/Disclosure/index.d.ts"
|