@ztwoint/z-ui 0.1.38 → 0.1.39
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/assets/icons/chevron-up-icon.d.ts +1 -1
- package/dist/components/assets/icons/chevron-up-icon.js +6 -5
- package/dist/components/assets/icons/info-icon.d.ts +1 -1
- package/dist/components/assets/icons/info-icon.js +5 -4
- package/dist/components/badge/badge.d.ts +11 -0
- package/dist/components/icon-showcase/icon-showcase.d.ts +2 -0
- package/dist/components/icon-showcase/icon-showcase.hook.d.ts +8 -0
- package/dist/components/icon-showcase/icon-showcase.type.d.ts +11 -0
- package/dist/components/icon-showcase/icons-list.d.ts +1 -0
- package/dist/css/config/colors/surfaces.css +54 -0
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/types/components/assets/icons/chevron-up-icon.d.ts +1 -1
- package/dist/types/components/assets/icons/info-icon.d.ts +1 -1
- package/dist/types/components/badge/badge.d.ts +11 -0
- package/dist/types/components/icon-showcase/icon-showcase.d.ts +2 -0
- package/dist/types/components/icon-showcase/icon-showcase.hook.d.ts +8 -0
- package/dist/types/components/icon-showcase/icon-showcase.type.d.ts +11 -0
- package/dist/types/components/icon-showcase/icons-list.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsxs as n, jsx as r } from "react/jsx-runtime";
|
|
2
|
-
const s = ({ fill:
|
|
3
|
-
/* @__PURE__ */ r("title", { children:
|
|
4
|
-
/* @__PURE__ */ r("g", { fill:
|
|
2
|
+
const s = ({ fill: e = "currentColor", title: o = "", ...t }) => /* @__PURE__ */ n("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...t, children: [
|
|
3
|
+
/* @__PURE__ */ r("title", { children: o }),
|
|
4
|
+
/* @__PURE__ */ r("g", { fill: e, children: /* @__PURE__ */ r(
|
|
5
5
|
"path",
|
|
6
6
|
{
|
|
7
7
|
d: "M11.55 8.75l-4.55-4.55-4.55 4.55",
|
|
8
8
|
fill: "none",
|
|
9
|
-
stroke:
|
|
9
|
+
stroke: e,
|
|
10
10
|
strokeLinecap: "round",
|
|
11
11
|
strokeLinejoin: "round",
|
|
12
12
|
strokeWidth: "2"
|
|
@@ -14,5 +14,6 @@ const s = ({ fill: o = "currentColor", title: e = "", ...t }) => /* @__PURE__ */
|
|
|
14
14
|
) })
|
|
15
15
|
] });
|
|
16
16
|
export {
|
|
17
|
-
s as ChevronUpIcon
|
|
17
|
+
s as ChevronUpIcon,
|
|
18
|
+
s as default
|
|
18
19
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
const
|
|
3
|
-
/* @__PURE__ */ e("title", { children:
|
|
1
|
+
import { jsxs as l, jsx as e } from "react/jsx-runtime";
|
|
2
|
+
const r = ({ fill: o = "currentColor", title: t = "Info", ...C }) => /* @__PURE__ */ l("svg", { height: "14", width: "14", viewBox: "0 0 14 14", xmlns: "http://www.w3.org/2000/svg", ...C, children: [
|
|
3
|
+
/* @__PURE__ */ e("title", { children: t }),
|
|
4
4
|
/* @__PURE__ */ e(
|
|
5
5
|
"path",
|
|
6
6
|
{
|
|
@@ -12,5 +12,6 @@ const l = ({ fill: o = "currentColor", title: C = "Info", ...t }) => /* @__PURE_
|
|
|
12
12
|
)
|
|
13
13
|
] });
|
|
14
14
|
export {
|
|
15
|
-
|
|
15
|
+
r as InfoIcon,
|
|
16
|
+
r as default
|
|
16
17
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { VariantProps } from 'class-variance-authority';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
declare const badgeVariants: (props?: ({
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | null | undefined;
|
|
5
|
+
size?: "default" | "sm" | "xs" | "lg" | null | undefined;
|
|
6
|
+
color?: "default" | "success" | "warning" | "destructive" | "primary" | null | undefined;
|
|
7
|
+
} & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
|
|
8
|
+
declare function Badge({ className, variant, size, color, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
|
|
9
|
+
asChild?: boolean;
|
|
10
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export { Badge, badgeVariants };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IconInfo } from './icon-showcase.type';
|
|
2
|
+
export declare function useIconShowcase(icons: IconInfo[], controlledSearchValue?: string): {
|
|
3
|
+
searchValue: string;
|
|
4
|
+
setSearchValue: import('react').Dispatch<import('react').SetStateAction<string>>;
|
|
5
|
+
filteredIcons: IconInfo[];
|
|
6
|
+
totalCount: number;
|
|
7
|
+
filteredCount: number;
|
|
8
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface IconInfo {
|
|
2
|
+
name: string;
|
|
3
|
+
component: React.ComponentType<React.SVGProps<SVGSVGElement>>;
|
|
4
|
+
fileName: string;
|
|
5
|
+
}
|
|
6
|
+
export interface IconShowcaseProps {
|
|
7
|
+
searchValue?: string;
|
|
8
|
+
onSearchChange?: (value: string) => void;
|
|
9
|
+
iconSize?: number;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const iconFilenames: string[];
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
background-color: var(--color-neutral-00);
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
@utility surface-neutral-primary {
|
|
9
|
+
background-color: var(--color-neutral-950);
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
@utility surface-neutral-hover {
|
|
9
13
|
background-color: var(--color-neutral-50);
|
|
10
14
|
}
|
|
@@ -72,6 +76,14 @@
|
|
|
72
76
|
background-color: var(--color-neutral-100);
|
|
73
77
|
}
|
|
74
78
|
|
|
79
|
+
@utility surface-danger-light {
|
|
80
|
+
background-color: var(--color-red-50);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@utility surface-danger-light-hover {
|
|
84
|
+
background-color: var(--color-red-100);
|
|
85
|
+
}
|
|
86
|
+
|
|
75
87
|
/* Success surfaces */
|
|
76
88
|
@utility surface-success-default {
|
|
77
89
|
background-color: var(--color-green-600);
|
|
@@ -89,6 +101,13 @@
|
|
|
89
101
|
background-color: var(--color-neutral-100);
|
|
90
102
|
}
|
|
91
103
|
|
|
104
|
+
@utility surface-success-light {
|
|
105
|
+
background-color: var(--color-green-50);
|
|
106
|
+
}
|
|
107
|
+
@utility surface-success-light-hover {
|
|
108
|
+
background-color: var(--color-green-100);
|
|
109
|
+
}
|
|
110
|
+
|
|
92
111
|
/* Warning surfaces */
|
|
93
112
|
@utility surface-warning-default {
|
|
94
113
|
background-color: var(--color-amber-600);
|
|
@@ -106,6 +125,41 @@
|
|
|
106
125
|
background-color: var(--color-neutral-100);
|
|
107
126
|
}
|
|
108
127
|
|
|
128
|
+
@utility surface-warning-light {
|
|
129
|
+
background-color: var(--color-amber-50);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
@utility surface-warning-light-hover {
|
|
133
|
+
background-color: var(--color-amber-100);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/* Primary surfaces */
|
|
137
|
+
|
|
138
|
+
/* Warning surfaces */
|
|
139
|
+
@utility surface-primary-default {
|
|
140
|
+
background-color: var(--color-blue-600);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
@utility surface-primary-hover {
|
|
144
|
+
background-color: var(--color-blue-700);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
@utility surface-primary-pressed {
|
|
148
|
+
background-color: var(--color-blue-400);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
@utility surface-primary-disabled {
|
|
152
|
+
background-color: var(--color-neutral-100);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
@utility surface-primary-light-hover {
|
|
156
|
+
background-color: var(--color-blue-100);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@utility surface-primary-light {
|
|
160
|
+
background-color: var(--color-blue-50);
|
|
161
|
+
}
|
|
162
|
+
|
|
109
163
|
/* Purple surfaces */
|
|
110
164
|
@utility surface-purple-default {
|
|
111
165
|
background-color: var(--color-violet-600);
|