@ztwoint/z-ui 0.1.129 → 0.1.131
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/button/button.d.ts +1 -1
- package/dist/components/button/button.js +30 -12
- package/dist/components/checkbox-filter/checkbox-filter-popover-field.d.ts +8 -0
- package/dist/components/checkbox-filter/checkbox-filter-popover-field.hook.d.ts +11 -0
- package/dist/components/checkbox-filter/checkbox-filter-popover-field.hook.js +23 -0
- package/dist/components/checkbox-filter/checkbox-filter-popover-field.js +44 -0
- package/dist/components/checkbox-filter/checkbox-filter.d.ts +2 -0
- package/dist/components/checkbox-filter/checkbox-filter.hook.d.ts +11 -0
- package/dist/components/checkbox-filter/checkbox-filter.hook.js +31 -0
- package/dist/components/checkbox-filter/checkbox-filter.js +64 -0
- package/dist/components/checkbox-filter/checkbox-filter.type.d.ts +2 -0
- package/dist/components/checkbox-filter/index.d.ts +7 -0
- package/dist/components/checkbox-filter/index.js +7 -0
- package/dist/components/column-reorder/column-reorder.js +14 -14
- package/dist/components/dropdown/z2-dropdown.js +3 -3
- package/dist/components/input/input.js +1 -1
- package/dist/components/number-badge/index.d.ts +2 -0
- package/dist/components/number-badge/number-badge.d.ts +10 -0
- package/dist/components/number-badge/number-badge.js +27 -0
- package/dist/components/primitives/popover-compact/index.d.ts +2 -0
- package/dist/components/primitives/popover-compact/popover-compact.d.ts +12 -0
- package/dist/components/primitives/popover-compact/popover-compact.js +30 -0
- package/dist/components/primitives/table-card/table-card.js +5 -4
- package/dist/components/tab/tab.js +57 -27
- package/dist/components/table/components/cell/avatar-cell.js +5 -4
- package/dist/components/table/components/cell/description-cell.js +3 -3
- package/dist/components/table/components/cell/label-cell.js +9 -9
- package/dist/components/table/components/cell/link-cell.js +17 -17
- package/dist/components/table/components/cell/number-cell.js +17 -17
- package/dist/components/table/table-provider.js +2 -1
- package/dist/components/table/table.const.d.ts +1 -1
- package/dist/components/table/table.const.js +1 -1
- package/dist/components/table-filter/filters/index.d.ts +0 -1
- package/dist/components/table-filter/table-filter-button.js +56 -55
- package/dist/components/table-filter/table-filter-column-button.js +51 -51
- package/dist/css/config/colors/semantic/base.css +6 -6
- package/dist/css/config/config.css +2 -1
- package/dist/css/config/other-variables.css +1 -1
- package/dist/css/styles/tailwind.css +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.js +319 -315
- package/dist/types/components/button/button.d.ts +1 -1
- package/dist/types/components/checkbox-filter/checkbox-filter-popover-field.d.ts +8 -0
- package/dist/types/components/checkbox-filter/checkbox-filter-popover-field.hook.d.ts +11 -0
- package/dist/types/components/checkbox-filter/checkbox-filter.d.ts +2 -0
- package/dist/types/components/checkbox-filter/checkbox-filter.hook.d.ts +11 -0
- package/dist/types/components/checkbox-filter/checkbox-filter.type.d.ts +2 -0
- package/dist/types/components/checkbox-filter/index.d.ts +7 -0
- package/dist/types/components/number-badge/index.d.ts +2 -0
- package/dist/types/components/number-badge/number-badge.d.ts +10 -0
- package/dist/types/components/primitives/popover-compact/index.d.ts +2 -0
- package/dist/types/components/primitives/popover-compact/popover-compact.d.ts +12 -0
- package/dist/types/components/table/table.const.d.ts +1 -1
- package/dist/types/components/table-filter/filters/index.d.ts +0 -1
- package/dist/types/index.d.ts +2 -0
- package/package.json +1 -1
- package/dist/components/table-filter/filters/checkbox.js +0 -70
- package/dist/css/config/colors/backgrounds.css +0 -32
- package/dist/css/config/colors/components/avatar.css +0 -53
- package/dist/css/config/colors/components/badge.css +0 -137
- package/dist/css/config/colors/components/checkbox.css +0 -7
- package/dist/css/config/colors/components/featured-icon.css +0 -80
- package/dist/css/config/colors/components/progress-bar.css +0 -7
- package/dist/css/config/colors/components/radio-button.css +0 -7
- package/dist/css/config/colors/components/scroll-overlay.css +0 -17
- package/dist/css/config/colors/components/tab.css +0 -59
- package/dist/css/config/colors/components/toggle-switch.css +0 -3
- package/dist/css/config/colors/components/toggle.css +0 -25
- package/dist/css/config/colors/icons.css +0 -81
- package/dist/css/config/colors/overlay.css +0 -3
- package/dist/css/config/colors/shape.css +0 -163
- package/dist/css/config/colors/stroke.css +0 -79
- package/dist/css/config/colors/surfaces.css +0 -199
- package/dist/css/config/colors/text.css +0 -160
- package/dist/css/config/config-deprecated.css +0 -39
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const buttonVariants: (props?: ({
|
|
4
|
-
variant?: "stroke" | "filled" | "ghost" | null | undefined;
|
|
4
|
+
variant?: "stroke" | "filled" | "colored-stroke" | "ghost" | null | undefined;
|
|
5
5
|
shade?: "danger" | "neutral" | "brand" | null | undefined;
|
|
6
6
|
size?: "small" | "large" | "medium" | null | undefined;
|
|
7
7
|
iconOnly?: boolean | null | undefined;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CheckboxFilterProps } from './checkbox-filter.type';
|
|
2
|
+
interface CheckboxFilterPopoverFieldProps extends Omit<CheckboxFilterProps, 'value' | 'onChange'> {
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
value?: string[];
|
|
5
|
+
onChange: (value: string[]) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare const CheckboxFilterPopoverField: React.FC<CheckboxFilterPopoverFieldProps>;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
interface UseCheckboxFilterPopoverFieldProps {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
value?: string | string[];
|
|
4
|
+
}
|
|
5
|
+
export declare const useCheckboxFilterPopoverField: ({ value, placeholder, }: UseCheckboxFilterPopoverFieldProps) => {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
displayText: string;
|
|
8
|
+
handleOpenChange: (open: boolean) => void;
|
|
9
|
+
handleInputClick: () => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FilterOption } from '../table-filter/table-filter.type';
|
|
2
|
+
import { CheckboxFilterProps } from './checkbox-filter.type';
|
|
3
|
+
export declare const useCheckboxFilter: ({ value, onChange, filterOptions }: CheckboxFilterProps) => {
|
|
4
|
+
selectedValues: string[];
|
|
5
|
+
searchValue: string;
|
|
6
|
+
filteredOptions: FilterOption[];
|
|
7
|
+
onSearchChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
8
|
+
handleCheckboxChange: (optionValue: string, checked: boolean) => void;
|
|
9
|
+
onClearSearch: () => void;
|
|
10
|
+
isSelected: (optionValue: string) => boolean;
|
|
11
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CheckboxFilter } from './checkbox-filter';
|
|
2
|
+
import { CheckboxFilterPopoverField } from './checkbox-filter-popover-field';
|
|
3
|
+
declare const CheckboxFilterComponent: typeof CheckboxFilter & {
|
|
4
|
+
PopoverField: typeof CheckboxFilterPopoverField;
|
|
5
|
+
};
|
|
6
|
+
export { CheckboxFilterComponent as CheckboxFilter };
|
|
7
|
+
export type { CheckboxFilterProps } from './checkbox-filter.type';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const numberBadgeVariants: (props?: ({
|
|
4
|
+
textColor?: "danger" | "neutral" | "brand" | null | undefined;
|
|
5
|
+
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
6
|
+
export interface NumberBadgeProps extends React.HTMLAttributes<HTMLSpanElement>, VariantProps<typeof numberBadgeVariants> {
|
|
7
|
+
number: number;
|
|
8
|
+
}
|
|
9
|
+
declare const NumberBadge: React.ForwardRefExoticComponent<NumberBadgeProps & React.RefAttributes<HTMLSpanElement>>;
|
|
10
|
+
export { NumberBadge, numberBadgeVariants };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export interface PopoverCompactProps {
|
|
3
|
+
trigger: ReactNode;
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (open: boolean) => void;
|
|
7
|
+
contentClassName?: string;
|
|
8
|
+
sideOffset?: number;
|
|
9
|
+
align?: 'start' | 'center' | 'end';
|
|
10
|
+
width?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function PopoverCompact({ trigger, children, open: controlledOpen, onOpenChange: controlledOnOpenChange, contentClassName, sideOffset, align, width, }: PopoverCompactProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -24,7 +24,7 @@ export declare const TABLE_CSS_CLASSES: {
|
|
|
24
24
|
readonly headerCellContent: "flex items-center justify-between";
|
|
25
25
|
readonly sortIcon: "ml-2 w-4 h-4 text-gray-400";
|
|
26
26
|
readonly sortIconActive: "ml-2 w-4 h-4 text-gray-600";
|
|
27
|
-
readonly row: " transition-colors duration-200 text-text-neutral-primary";
|
|
27
|
+
readonly row: " transition-colors duration-200 text-text-neutral-primary hover:bg-background-neutral-light";
|
|
28
28
|
readonly emptyState: "px-4 py-8 text-center text-gray-500";
|
|
29
29
|
readonly dataErrorState: "px-4 py-8 text-center text-text-danger-primary";
|
|
30
30
|
readonly loading: "px-4 py-8 text-center text-gray-500";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export * from './components/button/button';
|
|
|
4
4
|
export * from './components/collapsible-side-nav-bar';
|
|
5
5
|
export * from './components/country-flags/country-flags';
|
|
6
6
|
export * from './components/checkbox/checkbox';
|
|
7
|
+
export * from './components/checkbox-filter';
|
|
7
8
|
export * from './components/dialog/dialog';
|
|
8
9
|
export * from './components/dropdown/z2-dropdown';
|
|
9
10
|
export * from './components/dropdown-menu/z2-dropdown-menu';
|
|
@@ -12,6 +13,7 @@ export * from './components/input/input';
|
|
|
12
13
|
export * from './components/nav-header';
|
|
13
14
|
export * from './components/select/z2-select';
|
|
14
15
|
export * from './components/primitives/select-compact/select-compact';
|
|
16
|
+
export * from './components/primitives/popover-compact';
|
|
15
17
|
export * from './components/stepper';
|
|
16
18
|
export * from './components/stepper-item/stepper-item';
|
|
17
19
|
export * from './components/tab/tab';
|
package/package.json
CHANGED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { jsx as t, jsxs as s } from "react/jsx-runtime";
|
|
2
|
-
import { useState as d, useEffect as h } from "react";
|
|
3
|
-
import { Virtuoso as k } from "react-virtuoso";
|
|
4
|
-
import { MagnifierIcon as y } from "../../assets/icons/magnifier-icon.js";
|
|
5
|
-
import S from "../../assets/icons/x.js";
|
|
6
|
-
import { Z2Checkbox as w } from "../../checkbox/checkbox.js";
|
|
7
|
-
const E = ({ value: n, onChange: f, filterOptions: r = [] }) => {
|
|
8
|
-
const [c, o] = d([]), [m, u] = d(""), [x, i] = d(r), p = (l) => {
|
|
9
|
-
u(l.target.value);
|
|
10
|
-
const e = r.filter(
|
|
11
|
-
(a) => a.label.toLowerCase().includes(l.target.value.toLowerCase())
|
|
12
|
-
);
|
|
13
|
-
i(e);
|
|
14
|
-
};
|
|
15
|
-
h(() => {
|
|
16
|
-
n && Array.isArray(n.value) ? o(n.value.filter(Boolean) ?? []) : o([]);
|
|
17
|
-
}, [n]), h(() => {
|
|
18
|
-
i(r);
|
|
19
|
-
}, [r]);
|
|
20
|
-
const b = (l, e) => {
|
|
21
|
-
let a;
|
|
22
|
-
e ? a = [...c, l] : a = c.filter((N) => N !== l), o(a), f({ value: a });
|
|
23
|
-
}, C = () => {
|
|
24
|
-
u(""), i(r);
|
|
25
|
-
}, g = (l) => c.includes(l), v = (l, e) => /* @__PURE__ */ s("div", { className: "flex justify-between items-center py-2 px-3", children: [
|
|
26
|
-
/* @__PURE__ */ s("label", { className: "flex items-center space-x-2 cursor-pointer", children: [
|
|
27
|
-
/* @__PURE__ */ t(
|
|
28
|
-
w,
|
|
29
|
-
{
|
|
30
|
-
checked: g(e.value),
|
|
31
|
-
onCheckedChange: (a) => b(e.value, a === !0)
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
/* @__PURE__ */ t("span", { className: "text-text-neutral-primary leading-none-medium-sm", children: e.label })
|
|
35
|
-
] }),
|
|
36
|
-
e.total && /* @__PURE__ */ s("span", { className: "text-text-neutral-muted text-sm", children: [
|
|
37
|
-
"[",
|
|
38
|
-
e.total,
|
|
39
|
-
"]"
|
|
40
|
-
] })
|
|
41
|
-
] });
|
|
42
|
-
return r.length === 0 ? /* @__PURE__ */ t("div", { className: "text-text-neutral-muted text-sm p-4", children: "No filter options available for this column" }) : /* @__PURE__ */ s("div", { className: "flex flex-col h-full", children: [
|
|
43
|
-
/* @__PURE__ */ s("div", { className: "relative border-b border-stroke-solid-medium", children: [
|
|
44
|
-
/* @__PURE__ */ t(y, { className: "absolute left-3 top-3.5 text-text-neutral-muted" }),
|
|
45
|
-
/* @__PURE__ */ t(
|
|
46
|
-
"input",
|
|
47
|
-
{
|
|
48
|
-
placeholder: "Search options",
|
|
49
|
-
value: m,
|
|
50
|
-
onChange: p,
|
|
51
|
-
className: "border-none outline-none bg-surface-neutral-default text-text-neutral-primary rounded p-3 pl-8 leading-none-medium-sm w-full"
|
|
52
|
-
}
|
|
53
|
-
),
|
|
54
|
-
m && /* @__PURE__ */ t("span", { className: "absolute right-3 top-3.5", onClick: C, children: /* @__PURE__ */ t(S, {}) })
|
|
55
|
-
] }),
|
|
56
|
-
/* @__PURE__ */ t("div", { className: "flex-1", children: /* @__PURE__ */ t(
|
|
57
|
-
k,
|
|
58
|
-
{
|
|
59
|
-
data: x,
|
|
60
|
-
itemContent: v,
|
|
61
|
-
className: "h-full min-h-60",
|
|
62
|
-
style: { height: "100%" },
|
|
63
|
-
overscan: 5
|
|
64
|
-
}
|
|
65
|
-
) })
|
|
66
|
-
] });
|
|
67
|
-
};
|
|
68
|
-
export {
|
|
69
|
-
E as default
|
|
70
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* neutral */
|
|
2
|
-
@utility bg-neutral-default {
|
|
3
|
-
background-color: var(--color-background-neutral-default);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
@utility bg-neutral-on-top {
|
|
7
|
-
background-color: var(--color-background-neutral-on-top);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
@utility bg-neutral-light {
|
|
11
|
-
background-color: var(--color-background-neutral-light);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
@utility bg-neutral-high {
|
|
15
|
-
background-color: var(--color-background-neutral-high);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@utility bg-neutral-medium {
|
|
19
|
-
background-color: var(--color-background-neutral-medium);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@utility bg-neutral-inverted-elevated {
|
|
23
|
-
background-color: var(--color-surface-inverted-default);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
@utility bg-neutral-inverted-attention {
|
|
27
|
-
background-color: var(--color-surface-inverted-hover);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
@utility bg-neutral-inverted-brand {
|
|
31
|
-
background-color: var(--color-surface-accent-default);
|
|
32
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/* blue */
|
|
2
|
-
.c-avatar-blue-surface {
|
|
3
|
-
background-color: var(--alert-surface-accent);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.c-avatar-blue-name {
|
|
7
|
-
color: var(--color-text-brand-primary);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* red */
|
|
11
|
-
.c-avatar-red-surface {
|
|
12
|
-
background-color: var(--alert-surface-danger);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.c-avatar-red-name {
|
|
16
|
-
color: var(--color-text-danger-primary);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* yellow */
|
|
20
|
-
.c-avatar-yellow-surface {
|
|
21
|
-
background-color: var(--alert-surface-warning);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.c-avatar-yellow-name {
|
|
25
|
-
color: var(--color-text-warning-primary);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* green */
|
|
29
|
-
.c-avatar-green-surface {
|
|
30
|
-
background-color: var(--alert-surface-success);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.c-avatar-green-name {
|
|
34
|
-
color: var(--color-text-success-primary);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/* purple */
|
|
38
|
-
.c-avatar-purple-surface {
|
|
39
|
-
background-color: var(--color-surface-purple-default);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.c-avatar-purple-name {
|
|
43
|
-
color: var(--color-text-purple-primary);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* sky */
|
|
47
|
-
.c-avatar-sky-surface {
|
|
48
|
-
background-color: var(--color-surface-accent-default);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.c-avatar-sky-name {
|
|
52
|
-
color: var(--color-text-brand-primary);
|
|
53
|
-
}
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
/* FILLED (background-color) */
|
|
2
|
-
.c-badge-gray {
|
|
3
|
-
background-color: var(--color-surface-neutral-pressed);
|
|
4
|
-
}
|
|
5
|
-
.c-badge-accent {
|
|
6
|
-
background-color: var(--color-surface-accent-default);
|
|
7
|
-
}
|
|
8
|
-
.c-badge-danger {
|
|
9
|
-
background-color: var(--color-surface-danger-default);
|
|
10
|
-
}
|
|
11
|
-
.c-badge-success {
|
|
12
|
-
background-color: var(--color-surface-success-default);
|
|
13
|
-
}
|
|
14
|
-
.c-badge-warning {
|
|
15
|
-
background-color: var(--color-surface-warning-default);
|
|
16
|
-
}
|
|
17
|
-
.c-badge-purple {
|
|
18
|
-
background-color: var(--color-surface-purple-default);
|
|
19
|
-
}
|
|
20
|
-
.c-badge-sky {
|
|
21
|
-
background-color: var(--color-surface-accent-default);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/* LIGHT (background-color) */
|
|
25
|
-
.c-badge-gray-light {
|
|
26
|
-
background-color: var(--color-surface-neutral-hover);
|
|
27
|
-
}
|
|
28
|
-
.c-badge-accent-light {
|
|
29
|
-
background-color: var(--alert-surface-accent);
|
|
30
|
-
}
|
|
31
|
-
.c-badge-danger-light {
|
|
32
|
-
background-color: var(--alert-surface-danger);
|
|
33
|
-
}
|
|
34
|
-
.c-badge-success-light {
|
|
35
|
-
background-color: var(--alert-surface-success);
|
|
36
|
-
}
|
|
37
|
-
.c-badge-warning-light {
|
|
38
|
-
background-color: var(--alert-surface-warning);
|
|
39
|
-
}
|
|
40
|
-
.c-badge-purple-light {
|
|
41
|
-
background-color: var(--color-surface-inverted-default);
|
|
42
|
-
}
|
|
43
|
-
.c-badge-sky-light {
|
|
44
|
-
background-color: var(--color-surface-inverted-default);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/* STROKE (border-color) */
|
|
48
|
-
.c-badge-stroke-gray {
|
|
49
|
-
border-color: var(--color-stroke-solid-medium);
|
|
50
|
-
}
|
|
51
|
-
.c-badge-stroke-accent {
|
|
52
|
-
border-color: var(--alert-stroke-accent);
|
|
53
|
-
}
|
|
54
|
-
.c-badge-stroke-danger {
|
|
55
|
-
border-color: var(--alert-stroke-danger);
|
|
56
|
-
}
|
|
57
|
-
.c-badge-stroke-success {
|
|
58
|
-
border-color: var(--alert-stroke-success);
|
|
59
|
-
}
|
|
60
|
-
.c-badge-stroke-warning {
|
|
61
|
-
border-color: var(--alert-stroke-warning);
|
|
62
|
-
}
|
|
63
|
-
.c-badge-stroke-purple {
|
|
64
|
-
border-color: var(--color-stroke-solid-medium);
|
|
65
|
-
}
|
|
66
|
-
.c-badge-stroke-sky {
|
|
67
|
-
border-color: var(--color-stroke-solid-medium);
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/* TEXT (color) */
|
|
71
|
-
.c-badge-text-gray {
|
|
72
|
-
color: var(--color-text-neutral-secondary);
|
|
73
|
-
}
|
|
74
|
-
.c-badge-text-accent {
|
|
75
|
-
color: var(--color-text-brand-secondary);
|
|
76
|
-
}
|
|
77
|
-
.c-badge-text-danger {
|
|
78
|
-
color: var(--color-text-danger-secondary);
|
|
79
|
-
}
|
|
80
|
-
.c-badge-text-success {
|
|
81
|
-
color: var(--color-text-success-secondary);
|
|
82
|
-
}
|
|
83
|
-
.c-badge-text-warning {
|
|
84
|
-
color: var(--color-text-warning-secondary);
|
|
85
|
-
}
|
|
86
|
-
.c-badge-text-purple {
|
|
87
|
-
color: var(--color-text-purple-secondary);
|
|
88
|
-
}
|
|
89
|
-
.c-badge-text-sky {
|
|
90
|
-
color: var(--color-text-brand-secondary);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
/* SHAPE (fill) */
|
|
94
|
-
.c-badge-shape-fill-gray {
|
|
95
|
-
fill: var(--color-text-neutral-secondary);
|
|
96
|
-
}
|
|
97
|
-
.c-badge-shape-fill-accent {
|
|
98
|
-
fill: var(--color-text-brand-secondary);
|
|
99
|
-
}
|
|
100
|
-
.c-badge-shape-fill-danger {
|
|
101
|
-
fill: var(--color-text-danger-secondary);
|
|
102
|
-
}
|
|
103
|
-
.c-badge-shape-fill-success {
|
|
104
|
-
fill: var(--color-text-success-secondary);
|
|
105
|
-
}
|
|
106
|
-
.c-badge-shape-fill-warning {
|
|
107
|
-
fill: var(--color-text-warning-secondary);
|
|
108
|
-
}
|
|
109
|
-
.c-badge-shape-fill-purple {
|
|
110
|
-
fill: var(--color-text-purple-secondary);
|
|
111
|
-
}
|
|
112
|
-
.c-badge-shape-fill-sky {
|
|
113
|
-
fill: var(--color-text-brand-secondary);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/* SHAPE (background-color) */
|
|
117
|
-
.c-badge-shape-bg-gray {
|
|
118
|
-
background-color: var(--color-surface-neutral-pressed);
|
|
119
|
-
}
|
|
120
|
-
.c-badge-shape-bg-accent {
|
|
121
|
-
background-color: var(--color-surface-accent-default);
|
|
122
|
-
}
|
|
123
|
-
.c-badge-shape-bg-danger {
|
|
124
|
-
background-color: var(--color-surface-danger-default);
|
|
125
|
-
}
|
|
126
|
-
.c-badge-shape-bg-success {
|
|
127
|
-
background-color: var(--color-surface-success-default);
|
|
128
|
-
}
|
|
129
|
-
.c-badge-shape-bg-warning {
|
|
130
|
-
background-color: var(--color-surface-warning-default);
|
|
131
|
-
}
|
|
132
|
-
.c-badge-shape-bg-purple {
|
|
133
|
-
background-color: var(--color-surface-purple-default);
|
|
134
|
-
}
|
|
135
|
-
.c-badge-shape-bg-sky {
|
|
136
|
-
background-color: var(--color-surface-accent-default);
|
|
137
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
/* blue */
|
|
2
|
-
.c-featured-icon-surface {
|
|
3
|
-
fill: var(--alert-surface-accent);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.c-featured-icon-icon {
|
|
7
|
-
fill: var(--color-text-brand-primary);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.c-featured-icon-bg-icon {
|
|
11
|
-
background-color: var(--color-surface-accent-default);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* red */
|
|
15
|
-
.c-featured-icon-surface {
|
|
16
|
-
fill: var(--alert-surface-danger);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.c-featured-icon-icon {
|
|
20
|
-
fill: var(--color-text-danger-primary);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.c-featured-icon-bg-icon {
|
|
24
|
-
background-color: var(--color-surface-danger-default);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* yellow */
|
|
28
|
-
.c-featured-icon-surface {
|
|
29
|
-
fill: var(--alert-surface-warning);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.c-featured-icon-icon {
|
|
33
|
-
fill: var(--color-text-warning-primary);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.c-featured-icon-bg-icon {
|
|
37
|
-
background-color: var(--color-surface-warning-default);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* green */
|
|
41
|
-
.c-featured-icon-surface {
|
|
42
|
-
fill: var(--alert-surface-success);
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.c-featured-icon-icon {
|
|
46
|
-
fill: var(--color-text-success-primary);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.c-featured-icon-bg-icon {
|
|
50
|
-
background-color: var(--color-surface-success-default);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* purple */
|
|
54
|
-
.c-featured-icon-surface {
|
|
55
|
-
fill: var(--color-surface-purple-default);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.c-featured-icon-icon {
|
|
59
|
-
fill: var(--color-text-purple-primary);
|
|
60
|
-
&:icon {
|
|
61
|
-
padding: 40px;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.c-featured-icon-bg-icon {
|
|
66
|
-
background-color: var(--color-surface-purple-default);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/* sky */
|
|
70
|
-
.c-featured-icon-surface {
|
|
71
|
-
fill: var(--color-surface-accent-default);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.c-featured-icon-icon {
|
|
75
|
-
fill: var(--color-text-brand-primary);
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
.c-featured-icon-bg-icon {
|
|
79
|
-
background-color: var(--color-surface-accent-default);
|
|
80
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/* white */
|
|
2
|
-
.c-scroll-overlay-white {
|
|
3
|
-
background-color: var(--color-background-neutral-default);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.c-scroll-overlay-white-transparent {
|
|
7
|
-
background-color: var(--color-alpha-two-0);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/* secondary */
|
|
11
|
-
.c-scroll-overlay-secondary {
|
|
12
|
-
background-color: var(--color-background-neutral-light);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.c-scroll-overlay-secondary-transparent {
|
|
16
|
-
background-color: var(--color-alpha-two-0);
|
|
17
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/* Tab component specific styles */
|
|
2
|
-
|
|
3
|
-
/* Base underline for all tabs */
|
|
4
|
-
[data-slot='tabs-trigger'] {
|
|
5
|
-
position: relative;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
[data-slot='tabs-trigger']::after {
|
|
9
|
-
content: '';
|
|
10
|
-
position: absolute;
|
|
11
|
-
left: 50%;
|
|
12
|
-
bottom: 0;
|
|
13
|
-
transform: translateX(-50%);
|
|
14
|
-
width: calc(100% - 24px);
|
|
15
|
-
border-bottom: 0.5px solid var(--color-stroke-solid-attention);
|
|
16
|
-
opacity: 0;
|
|
17
|
-
transition: opacity 0.2s ease;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
/* Active state for underline */
|
|
21
|
-
[data-slot='tabs-trigger'][data-state='active']::after {
|
|
22
|
-
opacity: 1;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/* Active state for text */
|
|
26
|
-
[data-slot='tabs-trigger'][data-state='active'] .tab-label {
|
|
27
|
-
color: var(--color-text-neutral-primary) !important;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* Active state for text */
|
|
31
|
-
[data-slot='tabs-trigger'][data-state='active'] .tab-icon {
|
|
32
|
-
color: var(--color-text-neutral-primary) !important;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
/* Inactive state for text */
|
|
36
|
-
[data-slot='tabs-trigger']:not([data-state='active']) .tab-label {
|
|
37
|
-
color: var(--color-text-neutral-secondary) !important;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* Inactive state for text */
|
|
41
|
-
[data-slot='tabs-trigger']:not([data-state='active']) .tab-icon {
|
|
42
|
-
color: var(--color-text-neutral-secondary) !important;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
/* Icon size enforcement */
|
|
46
|
-
[data-slot='tabs-trigger'] svg {
|
|
47
|
-
width: 14px !important;
|
|
48
|
-
height: 14px !important;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
/* Hover state for text */
|
|
52
|
-
[data-slot='tabs-trigger']:hover .tab-label {
|
|
53
|
-
color: var(--color-text-neutral-primary) !important;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/* Hover state for icon */
|
|
57
|
-
[data-slot='tabs-trigger']:hover .tab-icon {
|
|
58
|
-
color: var(--color-text-neutral-primary) !important;
|
|
59
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/* surface */
|
|
2
|
-
.c-toggle-surface {
|
|
3
|
-
background-color: var(--color-surface-neutral-pressed);
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.c-toggle-surface-unactive-hover {
|
|
7
|
-
background-color: var(--color-surface-neutral-focused);
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.c-toggle-surface-active {
|
|
11
|
-
background-color: var(--color-surface-accent-default);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.c-toggle-surface-active-hover {
|
|
15
|
-
background-color: var(--color-surface-accent-hover);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* knob */
|
|
19
|
-
.c-toggle-knob {
|
|
20
|
-
background-color: var(--color-surface-neutral-default);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.c-toggle-knob-disabled {
|
|
24
|
-
background-color: var(--color-surface-neutral-disabled);
|
|
25
|
-
}
|