@wallarm-org/design-system 4.8.0-rc-fix-claude-code.1 → 4.8.0-rc-feat-parser.1
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/README.md +2 -4
- package/dist/components/BulkBar/index.d.ts +0 -5
- package/dist/components/Drawer/classes.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +2 -0
- package/dist/components/DropdownMenu/DropdownMenu.js +84 -71
- package/dist/components/DropdownMenu/DropdownMenuItemDescription.js +1 -1
- package/dist/components/FilterInput/hooks/useFilterInputAutocomplete/useFilterInputAutocomplete.js +1 -1
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/Rules/PointSelector/KeyboardShortcutsDialog.d.ts +14 -0
- package/dist/components/Rules/PointSelector/KeyboardShortcutsDialog.js +209 -0
- package/dist/components/Rules/PointSelector/MatchStep.d.ts +15 -0
- package/dist/components/Rules/PointSelector/MatchStep.js +186 -0
- package/dist/components/Rules/PointSelector/MenuFooterHints.d.ts +16 -0
- package/dist/components/Rules/PointSelector/MenuFooterHints.js +177 -0
- package/dist/components/Rules/PointSelector/PointPreview.d.ts +10 -0
- package/dist/components/Rules/PointSelector/PointPreview.js +88 -0
- package/dist/components/Rules/PointSelector/PointSelector.d.ts +17 -0
- package/dist/components/Rules/PointSelector/PointSelector.js +937 -0
- package/dist/components/Rules/PointSelector/PointSelectorEmptyState.d.ts +12 -0
- package/dist/components/Rules/PointSelector/PointSelectorEmptyState.js +173 -0
- package/dist/components/Rules/PointSelector/PointSelectorError.d.ts +31 -0
- package/dist/components/Rules/PointSelector/PointSelectorError.js +275 -0
- package/dist/components/Rules/PointSelector/PointSelectorInput.d.ts +20 -0
- package/dist/components/Rules/PointSelector/PointSelectorInput.js +130 -0
- package/dist/components/Rules/PointSelector/PointSelectorMenu.d.ts +31 -0
- package/dist/components/Rules/PointSelector/PointSelectorMenu.js +317 -0
- package/dist/components/Rules/PointSelector/PointSelectorSkeleton.d.ts +8 -0
- package/dist/components/Rules/PointSelector/PointSelectorSkeleton.js +73 -0
- package/dist/components/Rules/PointSelector/SampleRequest.d.ts +14 -0
- package/dist/components/Rules/PointSelector/SampleRequest.js +116 -0
- package/dist/components/Rules/PointSelector/StepMenu.d.ts +40 -0
- package/dist/components/Rules/PointSelector/StepMenu.js +210 -0
- package/dist/components/Rules/PointSelector/VersionWarning.d.ts +26 -0
- package/dist/components/Rules/PointSelector/VersionWarning.js +231 -0
- package/dist/components/Rules/PointSelector/WhereBar.d.ts +48 -0
- package/dist/components/Rules/PointSelector/WhereBar.js +263 -0
- package/dist/components/Rules/PointSelector/classes.d.ts +28 -0
- package/dist/components/Rules/PointSelector/classes.js +22 -0
- package/dist/components/Rules/PointSelector/index.d.ts +20 -0
- package/dist/components/Rules/PointSelector/index.js +18 -0
- package/dist/components/Rules/PointSelector/liftLayer.d.ts +8 -0
- package/dist/components/Rules/PointSelector/liftLayer.js +4 -0
- package/dist/components/Rules/PointSelector/sampleValue.d.ts +6 -0
- package/dist/components/Rules/PointSelector/sampleValue.js +51 -0
- package/dist/components/Rules/PointSelector/sdkBridge.d.ts +508 -0
- package/dist/components/Rules/PointSelector/sdkBridge.js +339 -0
- package/dist/components/Rules/PointSelector/types.d.ts +304 -0
- package/dist/components/Rules/PointSelector/types.js +0 -0
- package/dist/components/Rules/PointSelector/usePointSelector.d.ts +161 -0
- package/dist/components/Rules/PointSelector/usePointSelector.js +1088 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionEditor.d.ts +28 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionEditor.js +208 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionFields.d.ts +23 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionFields.js +950 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTargetPicker.d.ts +21 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTargetPicker.js +110 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTypeSelect.d.ts +20 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTypeSelect.js +31 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/AttackTypeField.d.ts +23 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/AttackTypeField.js +131 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/classes.d.ts +17 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/classes.js +14 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/index.d.ts +6 -0
- package/dist/components/Rules/RuleBuilder/ActionEditor/index.js +6 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/AddConditionMenu.d.ts +24 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/AddConditionMenu.js +245 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/AttackCondition.d.ts +15 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/AttackCondition.js +691 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionCard.d.ts +19 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionCard.js +72 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionTree.d.ts +27 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionTree.js +407 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/FieldCondition.d.ts +14 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/FieldCondition.js +269 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/GroupCondition.d.ts +25 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/GroupCondition.js +99 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/SampleCondition.d.ts +14 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/SampleCondition.js +118 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/SignalCondition.d.ts +14 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/SignalCondition.js +446 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/TagCondition.d.ts +14 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/TagCondition.js +266 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/classes.d.ts +35 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/classes.js +57 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/index.d.ts +15 -0
- package/dist/components/Rules/RuleBuilder/ConditionTree/index.js +10 -0
- package/dist/components/Rules/RuleBuilder/RuleBuilder.d.ts +67 -0
- package/dist/components/Rules/RuleBuilder/RuleBuilder.js +366 -0
- package/dist/components/Rules/RuleBuilder/Summary/ActionSummary.d.ts +32 -0
- package/dist/components/Rules/RuleBuilder/Summary/ActionSummary.js +420 -0
- package/dist/components/Rules/RuleBuilder/Summary/ConditionSummary.d.ts +27 -0
- package/dist/components/Rules/RuleBuilder/Summary/ConditionSummary.js +446 -0
- package/dist/components/Rules/RuleBuilder/Summary/index.d.ts +7 -0
- package/dist/components/Rules/RuleBuilder/Summary/index.js +2 -0
- package/dist/components/Rules/RuleBuilder/classes.d.ts +19 -0
- package/dist/components/Rules/RuleBuilder/classes.js +18 -0
- package/dist/components/Rules/RuleBuilder/index.d.ts +55 -0
- package/dist/components/Rules/RuleBuilder/index.js +11 -0
- package/dist/components/Rules/RuleBuilder/models/actionModel.d.ts +31 -0
- package/dist/components/Rules/RuleBuilder/models/actionModel.js +276 -0
- package/dist/components/Rules/RuleBuilder/models/conditionModel.d.ts +95 -0
- package/dist/components/Rules/RuleBuilder/models/conditionModel.js +418 -0
- package/dist/components/Rules/RuleBuilder/models/index.d.ts +3 -0
- package/dist/components/Rules/RuleBuilder/models/index.js +3 -0
- package/dist/components/Rules/RuleBuilder/models/validation.d.ts +176 -0
- package/dist/components/Rules/RuleBuilder/models/validation.js +242 -0
- package/dist/components/Rules/RuleBuilder/shared/ChoiceSelect.d.ts +27 -0
- package/dist/components/Rules/RuleBuilder/shared/ChoiceSelect.js +92 -0
- package/dist/components/Rules/RuleBuilder/shared/index.d.ts +1 -0
- package/dist/components/Rules/RuleBuilder/shared/index.js +1 -0
- package/dist/components/Rules/RuleBuilder/types.d.ts +384 -0
- package/dist/components/Rules/RuleBuilder/types.js +0 -0
- package/dist/components/Rules/RuleBuilder/utils/constants.d.ts +65 -0
- package/dist/components/Rules/RuleBuilder/utils/constants.js +356 -0
- package/dist/components/Rules/RuleBuilder/utils/extractBindings.d.ts +48 -0
- package/dist/components/Rules/RuleBuilder/utils/extractBindings.js +42 -0
- package/dist/components/Rules/RuleBuilder/utils/helpers.d.ts +92 -0
- package/dist/components/Rules/RuleBuilder/utils/helpers.js +54 -0
- package/dist/components/Rules/RuleBuilder/utils/index.d.ts +2 -0
- package/dist/components/Rules/RuleBuilder/utils/index.js +2 -0
- package/dist/components/SearchInput/SearchInput.d.ts +5 -7
- package/dist/components/SearchInput/SearchInput.js +101 -119
- package/dist/components/Select/SelectSearchInput.d.ts +1 -1
- package/dist/components/Table/types.d.ts +1 -1
- package/dist/components/Tabs/Tabs.d.ts +0 -1
- package/dist/components/Tabs/Tabs.js +28 -30
- package/dist/components/Tabs/TabsList/index.d.ts +1 -1
- package/dist/components/Tabs/index.d.ts +2 -2
- package/dist/components/Tour/TourPositioner.d.ts +0 -3
- package/dist/components/Tour/TourPositioner.js +4 -4
- package/dist/index.d.ts +3 -2
- package/dist/index.js +2 -1
- package/dist/metadata/components.json +9077 -12300
- package/dist/theme/typography.css +0 -5
- package/dist/utils/formatDateTime.d.ts +0 -6
- package/dist/utils/formatDateTime.js +1 -13
- package/package.json +4 -6
- package/dist/components/NotificationCenter/NotificationCenter.d.ts +0 -20
- package/dist/components/NotificationCenter/NotificationCenter.js +0 -65
- package/dist/components/NotificationCenter/NotificationCenterBody.d.ts +0 -18
- package/dist/components/NotificationCenter/NotificationCenterBody.js +0 -202
- package/dist/components/NotificationCenter/NotificationCenterContent.d.ts +0 -5
- package/dist/components/NotificationCenter/NotificationCenterContent.js +0 -42
- package/dist/components/NotificationCenter/NotificationCenterHeader.d.ts +0 -20
- package/dist/components/NotificationCenter/NotificationCenterHeader.js +0 -202
- package/dist/components/NotificationCenter/NotificationCenterItem.d.ts +0 -26
- package/dist/components/NotificationCenter/NotificationCenterItem.js +0 -211
- package/dist/components/NotificationCenter/NotificationCenterItemTime.d.ts +0 -9
- package/dist/components/NotificationCenter/NotificationCenterItemTime.js +0 -148
- package/dist/components/NotificationCenter/NotificationCenterItemTitle.d.ts +0 -14
- package/dist/components/NotificationCenter/NotificationCenterItemTitle.js +0 -115
- package/dist/components/NotificationCenter/NotificationCenterTabs.d.ts +0 -10
- package/dist/components/NotificationCenter/NotificationCenterTabs.js +0 -77
- package/dist/components/NotificationCenter/NotificationCenterTrigger.d.ts +0 -13
- package/dist/components/NotificationCenter/NotificationCenterTrigger.js +0 -138
- package/dist/components/NotificationCenter/index.d.ts +0 -9
- package/dist/components/NotificationCenter/index.js +0 -9
- package/dist/guidelines/foundations/color.md +0 -157
- package/dist/guidelines/foundations/focus.md +0 -122
- package/dist/guidelines/foundations/layering.md +0 -131
- package/dist/guidelines/foundations/radius-elevation.md +0 -111
- package/dist/guidelines/foundations/spacing.md +0 -117
- package/dist/guidelines/foundations/typography.md +0 -114
- package/dist/guidelines/patterns/app-layout.md +0 -1567
- package/dist/guidelines/patterns/auth-page.md +0 -668
- package/dist/guidelines/patterns/confirmation-dialogs.md +0 -605
- package/dist/guidelines/patterns/create-edit-forms.md +0 -768
- package/dist/guidelines/patterns/detail-drawer.md +0 -868
- package/dist/guidelines/patterns/empty-states.md +0 -461
- package/dist/guidelines/patterns/entity-table.md +0 -533
- package/dist/guidelines/patterns/feedback-toasts.md +0 -493
- package/dist/guidelines/patterns/filtering.md +0 -630
- package/dist/guidelines/patterns/resource-list-page.md +0 -558
- package/dist/guidelines/patterns/settings-page.md +0 -752
- package/dist/guidelines/rules.md +0 -25
- package/dist/metadata/guidelines.json +0 -1705
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { type FC, type HTMLAttributes, type Ref } from 'react';
|
|
2
|
-
import { type TestableProps } from '../../utils/testId.js';
|
|
3
|
-
export interface NotificationCenterListProps extends HTMLAttributes<HTMLUListElement>, TestableProps {
|
|
4
|
-
ref?: Ref<HTMLUListElement>;
|
|
5
|
-
}
|
|
6
|
-
export declare const NotificationCenterList: FC<NotificationCenterListProps>;
|
|
7
|
-
export declare const useNotificationCenterItemUnread: () => boolean;
|
|
8
|
-
export interface NotificationCenterItemProps extends HTMLAttributes<HTMLLIElement>, TestableProps {
|
|
9
|
-
ref?: Ref<HTMLLIElement>;
|
|
10
|
-
/** Shows the unread dot and prefixes the title's accessible name with "Unread". */
|
|
11
|
-
unread?: boolean;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* One notification. `NotificationCenterItemTitle` is the card's click target;
|
|
15
|
-
* actions sit above it as separate buttons.
|
|
16
|
-
*/
|
|
17
|
-
export declare const NotificationCenterItem: FC<NotificationCenterItemProps>;
|
|
18
|
-
export interface NotificationCenterItemDescriptionProps extends HTMLAttributes<HTMLParagraphElement>, TestableProps {
|
|
19
|
-
ref?: Ref<HTMLParagraphElement>;
|
|
20
|
-
}
|
|
21
|
-
export declare const NotificationCenterItemDescription: FC<NotificationCenterItemDescriptionProps>;
|
|
22
|
-
export interface NotificationCenterItemActionsProps extends HTMLAttributes<HTMLDivElement>, TestableProps {
|
|
23
|
-
ref?: Ref<HTMLDivElement>;
|
|
24
|
-
}
|
|
25
|
-
/** Holds the item's buttons. They sit above the title's card-wide click area. */
|
|
26
|
-
export declare const NotificationCenterItemActions: FC<NotificationCenterItemActionsProps>;
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { createContext, useContext } from "react";
|
|
4
|
-
import { cn } from "../../utils/cn.js";
|
|
5
|
-
import { TestIdProvider, useTestId } from "../../utils/testId.js";
|
|
6
|
-
const NotificationCenterList = (t0)=>{
|
|
7
|
-
const $ = c(12);
|
|
8
|
-
let className;
|
|
9
|
-
let props;
|
|
10
|
-
let ref;
|
|
11
|
-
let testIdProp;
|
|
12
|
-
if ($[0] !== t0) {
|
|
13
|
-
({ ref, className, "data-testid": testIdProp, ...props } = t0);
|
|
14
|
-
$[0] = t0;
|
|
15
|
-
$[1] = className;
|
|
16
|
-
$[2] = props;
|
|
17
|
-
$[3] = ref;
|
|
18
|
-
$[4] = testIdProp;
|
|
19
|
-
} else {
|
|
20
|
-
className = $[1];
|
|
21
|
-
props = $[2];
|
|
22
|
-
ref = $[3];
|
|
23
|
-
testIdProp = $[4];
|
|
24
|
-
}
|
|
25
|
-
const t1 = useTestId("list", testIdProp);
|
|
26
|
-
let t2;
|
|
27
|
-
if ($[5] !== className) {
|
|
28
|
-
t2 = cn("flex flex-col gap-4", className);
|
|
29
|
-
$[5] = className;
|
|
30
|
-
$[6] = t2;
|
|
31
|
-
} else t2 = $[6];
|
|
32
|
-
let t3;
|
|
33
|
-
if ($[7] !== props || $[8] !== ref || $[9] !== t1 || $[10] !== t2) {
|
|
34
|
-
t3 = /*#__PURE__*/ jsx("ul", {
|
|
35
|
-
...props,
|
|
36
|
-
ref: ref,
|
|
37
|
-
"data-slot": "notification-center-list",
|
|
38
|
-
"data-testid": t1,
|
|
39
|
-
className: t2
|
|
40
|
-
});
|
|
41
|
-
$[7] = props;
|
|
42
|
-
$[8] = ref;
|
|
43
|
-
$[9] = t1;
|
|
44
|
-
$[10] = t2;
|
|
45
|
-
$[11] = t3;
|
|
46
|
-
} else t3 = $[11];
|
|
47
|
-
return t3;
|
|
48
|
-
};
|
|
49
|
-
NotificationCenterList.displayName = "NotificationCenterList";
|
|
50
|
-
const NotificationCenterItemContext = /*#__PURE__*/ createContext(false);
|
|
51
|
-
const useNotificationCenterItemUnread = ()=>useContext(NotificationCenterItemContext);
|
|
52
|
-
const NotificationCenterItem = (t0)=>{
|
|
53
|
-
const $ = c(20);
|
|
54
|
-
let className;
|
|
55
|
-
let props;
|
|
56
|
-
let ref;
|
|
57
|
-
let t1;
|
|
58
|
-
let testIdProp;
|
|
59
|
-
if ($[0] !== t0) {
|
|
60
|
-
({ ref, unread: t1, className, "data-testid": testIdProp, ...props } = t0);
|
|
61
|
-
$[0] = t0;
|
|
62
|
-
$[1] = className;
|
|
63
|
-
$[2] = props;
|
|
64
|
-
$[3] = ref;
|
|
65
|
-
$[4] = t1;
|
|
66
|
-
$[5] = testIdProp;
|
|
67
|
-
} else {
|
|
68
|
-
className = $[1];
|
|
69
|
-
props = $[2];
|
|
70
|
-
ref = $[3];
|
|
71
|
-
t1 = $[4];
|
|
72
|
-
testIdProp = $[5];
|
|
73
|
-
}
|
|
74
|
-
const unread = void 0 === t1 ? false : t1;
|
|
75
|
-
const testId = useTestId("item", testIdProp);
|
|
76
|
-
const t2 = unread || void 0;
|
|
77
|
-
let t3;
|
|
78
|
-
if ($[6] !== className) {
|
|
79
|
-
t3 = cn("relative grid grid-cols-[1fr_auto] items-start gap-x-8 gap-y-4 rounded-8 p-8", "overlay hover:overlay-states-primary-hover", className);
|
|
80
|
-
$[6] = className;
|
|
81
|
-
$[7] = t3;
|
|
82
|
-
} else t3 = $[7];
|
|
83
|
-
let t4;
|
|
84
|
-
if ($[8] !== props || $[9] !== ref || $[10] !== t2 || $[11] !== t3 || $[12] !== testId) {
|
|
85
|
-
t4 = /*#__PURE__*/ jsx("li", {
|
|
86
|
-
...props,
|
|
87
|
-
ref: ref,
|
|
88
|
-
"data-slot": "notification-center-item",
|
|
89
|
-
"data-testid": testId,
|
|
90
|
-
"data-unread": t2,
|
|
91
|
-
className: t3
|
|
92
|
-
});
|
|
93
|
-
$[8] = props;
|
|
94
|
-
$[9] = ref;
|
|
95
|
-
$[10] = t2;
|
|
96
|
-
$[11] = t3;
|
|
97
|
-
$[12] = testId;
|
|
98
|
-
$[13] = t4;
|
|
99
|
-
} else t4 = $[13];
|
|
100
|
-
let t5;
|
|
101
|
-
if ($[14] !== t4 || $[15] !== testId) {
|
|
102
|
-
t5 = /*#__PURE__*/ jsx(TestIdProvider, {
|
|
103
|
-
value: testId,
|
|
104
|
-
children: t4
|
|
105
|
-
});
|
|
106
|
-
$[14] = t4;
|
|
107
|
-
$[15] = testId;
|
|
108
|
-
$[16] = t5;
|
|
109
|
-
} else t5 = $[16];
|
|
110
|
-
let t6;
|
|
111
|
-
if ($[17] !== t5 || $[18] !== unread) {
|
|
112
|
-
t6 = /*#__PURE__*/ jsx(NotificationCenterItemContext.Provider, {
|
|
113
|
-
value: unread,
|
|
114
|
-
children: t5
|
|
115
|
-
});
|
|
116
|
-
$[17] = t5;
|
|
117
|
-
$[18] = unread;
|
|
118
|
-
$[19] = t6;
|
|
119
|
-
} else t6 = $[19];
|
|
120
|
-
return t6;
|
|
121
|
-
};
|
|
122
|
-
NotificationCenterItem.displayName = "NotificationCenterItem";
|
|
123
|
-
const NotificationCenterItemDescription = (t0)=>{
|
|
124
|
-
const $ = c(12);
|
|
125
|
-
let className;
|
|
126
|
-
let props;
|
|
127
|
-
let ref;
|
|
128
|
-
let testIdProp;
|
|
129
|
-
if ($[0] !== t0) {
|
|
130
|
-
({ ref, className, "data-testid": testIdProp, ...props } = t0);
|
|
131
|
-
$[0] = t0;
|
|
132
|
-
$[1] = className;
|
|
133
|
-
$[2] = props;
|
|
134
|
-
$[3] = ref;
|
|
135
|
-
$[4] = testIdProp;
|
|
136
|
-
} else {
|
|
137
|
-
className = $[1];
|
|
138
|
-
props = $[2];
|
|
139
|
-
ref = $[3];
|
|
140
|
-
testIdProp = $[4];
|
|
141
|
-
}
|
|
142
|
-
const t1 = useTestId("description", testIdProp);
|
|
143
|
-
let t2;
|
|
144
|
-
if ($[5] !== className) {
|
|
145
|
-
t2 = cn("col-span-2 font-sans-display text-sm break-words text-text-secondary", className);
|
|
146
|
-
$[5] = className;
|
|
147
|
-
$[6] = t2;
|
|
148
|
-
} else t2 = $[6];
|
|
149
|
-
let t3;
|
|
150
|
-
if ($[7] !== props || $[8] !== ref || $[9] !== t1 || $[10] !== t2) {
|
|
151
|
-
t3 = /*#__PURE__*/ jsx("p", {
|
|
152
|
-
...props,
|
|
153
|
-
ref: ref,
|
|
154
|
-
"data-slot": "notification-center-item-description",
|
|
155
|
-
"data-testid": t1,
|
|
156
|
-
className: t2
|
|
157
|
-
});
|
|
158
|
-
$[7] = props;
|
|
159
|
-
$[8] = ref;
|
|
160
|
-
$[9] = t1;
|
|
161
|
-
$[10] = t2;
|
|
162
|
-
$[11] = t3;
|
|
163
|
-
} else t3 = $[11];
|
|
164
|
-
return t3;
|
|
165
|
-
};
|
|
166
|
-
NotificationCenterItemDescription.displayName = "NotificationCenterItemDescription";
|
|
167
|
-
const NotificationCenterItemActions = (t0)=>{
|
|
168
|
-
const $ = c(12);
|
|
169
|
-
let className;
|
|
170
|
-
let props;
|
|
171
|
-
let ref;
|
|
172
|
-
let testIdProp;
|
|
173
|
-
if ($[0] !== t0) {
|
|
174
|
-
({ ref, className, "data-testid": testIdProp, ...props } = t0);
|
|
175
|
-
$[0] = t0;
|
|
176
|
-
$[1] = className;
|
|
177
|
-
$[2] = props;
|
|
178
|
-
$[3] = ref;
|
|
179
|
-
$[4] = testIdProp;
|
|
180
|
-
} else {
|
|
181
|
-
className = $[1];
|
|
182
|
-
props = $[2];
|
|
183
|
-
ref = $[3];
|
|
184
|
-
testIdProp = $[4];
|
|
185
|
-
}
|
|
186
|
-
const t1 = useTestId("actions", testIdProp);
|
|
187
|
-
let t2;
|
|
188
|
-
if ($[5] !== className) {
|
|
189
|
-
t2 = cn("relative z-1 col-span-2 flex items-center gap-4 pt-6", className);
|
|
190
|
-
$[5] = className;
|
|
191
|
-
$[6] = t2;
|
|
192
|
-
} else t2 = $[6];
|
|
193
|
-
let t3;
|
|
194
|
-
if ($[7] !== props || $[8] !== ref || $[9] !== t1 || $[10] !== t2) {
|
|
195
|
-
t3 = /*#__PURE__*/ jsx("div", {
|
|
196
|
-
...props,
|
|
197
|
-
ref: ref,
|
|
198
|
-
"data-slot": "notification-center-item-actions",
|
|
199
|
-
"data-testid": t1,
|
|
200
|
-
className: t2
|
|
201
|
-
});
|
|
202
|
-
$[7] = props;
|
|
203
|
-
$[8] = ref;
|
|
204
|
-
$[9] = t1;
|
|
205
|
-
$[10] = t2;
|
|
206
|
-
$[11] = t3;
|
|
207
|
-
} else t3 = $[11];
|
|
208
|
-
return t3;
|
|
209
|
-
};
|
|
210
|
-
NotificationCenterItemActions.displayName = "NotificationCenterItemActions";
|
|
211
|
-
export { NotificationCenterItem, NotificationCenterItemActions, NotificationCenterItemDescription, NotificationCenterList, useNotificationCenterItemUnread };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { FC, HTMLAttributes, Ref } from 'react';
|
|
2
|
-
import { type TestableProps } from '../../utils/testId.js';
|
|
3
|
-
export interface NotificationCenterItemTimeProps extends Omit<HTMLAttributes<HTMLTimeElement>, 'children'>, TestableProps {
|
|
4
|
-
ref?: Ref<HTMLTimeElement>;
|
|
5
|
-
/** ISO string, Date or Unix timestamp (ms). */
|
|
6
|
-
value: string | Date | number;
|
|
7
|
-
}
|
|
8
|
-
/** Compact age ("3m", "2h") with the unread dot; the exact time is in a tooltip. */
|
|
9
|
-
export declare const NotificationCenterItemTime: FC<NotificationCenterItemTimeProps>;
|
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { isValid } from "date-fns";
|
|
4
|
-
import { cn } from "../../utils/cn.js";
|
|
5
|
-
import { formatAbsoluteTime, formatCompactRelativeTime } from "../../utils/formatDateTime.js";
|
|
6
|
-
import { useTestId } from "../../utils/testId.js";
|
|
7
|
-
import { useDateFormat } from "../DateFormatProvider/useDateFormat.js";
|
|
8
|
-
import { Indicator } from "../Indicator/index.js";
|
|
9
|
-
import { Tooltip, TooltipContent, TooltipTrigger } from "../Tooltip/index.js";
|
|
10
|
-
import { useNotificationCenterItemUnread } from "./NotificationCenterItem.js";
|
|
11
|
-
const NotificationCenterItemTime = (t0)=>{
|
|
12
|
-
const $ = c(41);
|
|
13
|
-
let className;
|
|
14
|
-
let props;
|
|
15
|
-
let ref;
|
|
16
|
-
let testIdProp;
|
|
17
|
-
let value;
|
|
18
|
-
if ($[0] !== t0) {
|
|
19
|
-
({ ref, value, className, "data-testid": testIdProp, ...props } = t0);
|
|
20
|
-
$[0] = t0;
|
|
21
|
-
$[1] = className;
|
|
22
|
-
$[2] = props;
|
|
23
|
-
$[3] = ref;
|
|
24
|
-
$[4] = testIdProp;
|
|
25
|
-
$[5] = value;
|
|
26
|
-
} else {
|
|
27
|
-
className = $[1];
|
|
28
|
-
props = $[2];
|
|
29
|
-
ref = $[3];
|
|
30
|
-
testIdProp = $[4];
|
|
31
|
-
value = $[5];
|
|
32
|
-
}
|
|
33
|
-
const unread = useNotificationCenterItemUnread();
|
|
34
|
-
const dateFormat = useDateFormat();
|
|
35
|
-
const testId = useTestId("time", testIdProp);
|
|
36
|
-
let t1;
|
|
37
|
-
if ($[6] !== value) {
|
|
38
|
-
t1 = value instanceof Date ? value : new Date(value);
|
|
39
|
-
$[6] = value;
|
|
40
|
-
$[7] = t1;
|
|
41
|
-
} else t1 = $[7];
|
|
42
|
-
const date = t1;
|
|
43
|
-
let t2;
|
|
44
|
-
if ($[8] !== date) {
|
|
45
|
-
t2 = isValid(date);
|
|
46
|
-
$[8] = date;
|
|
47
|
-
$[9] = t2;
|
|
48
|
-
} else t2 = $[9];
|
|
49
|
-
const valid = t2;
|
|
50
|
-
const t3 = !valid;
|
|
51
|
-
let t4;
|
|
52
|
-
if ($[10] !== date || $[11] !== valid) {
|
|
53
|
-
t4 = valid ? date.toISOString() : void 0;
|
|
54
|
-
$[10] = date;
|
|
55
|
-
$[11] = valid;
|
|
56
|
-
$[12] = t4;
|
|
57
|
-
} else t4 = $[12];
|
|
58
|
-
let t5;
|
|
59
|
-
if ($[13] !== className) {
|
|
60
|
-
t5 = cn("relative z-1 flex items-center gap-4 font-sans-display text-xs whitespace-nowrap text-text-secondary", className);
|
|
61
|
-
$[13] = className;
|
|
62
|
-
$[14] = t5;
|
|
63
|
-
} else t5 = $[14];
|
|
64
|
-
let t6;
|
|
65
|
-
if ($[15] !== unread) {
|
|
66
|
-
t6 = unread && /*#__PURE__*/ jsx(Indicator, {
|
|
67
|
-
"aria-hidden": true,
|
|
68
|
-
size: "sm",
|
|
69
|
-
color: "info"
|
|
70
|
-
});
|
|
71
|
-
$[15] = unread;
|
|
72
|
-
$[16] = t6;
|
|
73
|
-
} else t6 = $[16];
|
|
74
|
-
let t7;
|
|
75
|
-
if ($[17] !== date || $[18] !== dateFormat) {
|
|
76
|
-
t7 = formatCompactRelativeTime(date, void 0, dateFormat);
|
|
77
|
-
$[17] = date;
|
|
78
|
-
$[18] = dateFormat;
|
|
79
|
-
$[19] = t7;
|
|
80
|
-
} else t7 = $[19];
|
|
81
|
-
let t8;
|
|
82
|
-
if ($[20] !== props || $[21] !== ref || $[22] !== t4 || $[23] !== t5 || $[24] !== t6 || $[25] !== t7) {
|
|
83
|
-
t8 = /*#__PURE__*/ jsxs("time", {
|
|
84
|
-
...props,
|
|
85
|
-
ref: ref,
|
|
86
|
-
dateTime: t4,
|
|
87
|
-
"data-slot": "notification-center-item-time",
|
|
88
|
-
className: t5,
|
|
89
|
-
children: [
|
|
90
|
-
t6,
|
|
91
|
-
t7
|
|
92
|
-
]
|
|
93
|
-
});
|
|
94
|
-
$[20] = props;
|
|
95
|
-
$[21] = ref;
|
|
96
|
-
$[22] = t4;
|
|
97
|
-
$[23] = t5;
|
|
98
|
-
$[24] = t6;
|
|
99
|
-
$[25] = t7;
|
|
100
|
-
$[26] = t8;
|
|
101
|
-
} else t8 = $[26];
|
|
102
|
-
let t9;
|
|
103
|
-
if ($[27] !== t8 || $[28] !== testId) {
|
|
104
|
-
t9 = /*#__PURE__*/ jsx(TooltipTrigger, {
|
|
105
|
-
asChild: true,
|
|
106
|
-
"data-testid": testId,
|
|
107
|
-
children: t8
|
|
108
|
-
});
|
|
109
|
-
$[27] = t8;
|
|
110
|
-
$[28] = testId;
|
|
111
|
-
$[29] = t9;
|
|
112
|
-
} else t9 = $[29];
|
|
113
|
-
let t10;
|
|
114
|
-
if ($[30] !== date || $[31] !== dateFormat || $[32] !== valid) {
|
|
115
|
-
t10 = valid && formatAbsoluteTime(date, dateFormat);
|
|
116
|
-
$[30] = date;
|
|
117
|
-
$[31] = dateFormat;
|
|
118
|
-
$[32] = valid;
|
|
119
|
-
$[33] = t10;
|
|
120
|
-
} else t10 = $[33];
|
|
121
|
-
let t11;
|
|
122
|
-
if ($[34] !== t10) {
|
|
123
|
-
t11 = /*#__PURE__*/ jsx(TooltipContent, {
|
|
124
|
-
children: t10
|
|
125
|
-
});
|
|
126
|
-
$[34] = t10;
|
|
127
|
-
$[35] = t11;
|
|
128
|
-
} else t11 = $[35];
|
|
129
|
-
let t12;
|
|
130
|
-
if ($[36] !== t11 || $[37] !== t3 || $[38] !== t9 || $[39] !== testId) {
|
|
131
|
-
t12 = /*#__PURE__*/ jsxs(Tooltip, {
|
|
132
|
-
disabled: t3,
|
|
133
|
-
"data-testid": testId,
|
|
134
|
-
children: [
|
|
135
|
-
t9,
|
|
136
|
-
t11
|
|
137
|
-
]
|
|
138
|
-
});
|
|
139
|
-
$[36] = t11;
|
|
140
|
-
$[37] = t3;
|
|
141
|
-
$[38] = t9;
|
|
142
|
-
$[39] = testId;
|
|
143
|
-
$[40] = t12;
|
|
144
|
-
} else t12 = $[40];
|
|
145
|
-
return t12;
|
|
146
|
-
};
|
|
147
|
-
NotificationCenterItemTime.displayName = "NotificationCenterItemTime";
|
|
148
|
-
export { NotificationCenterItemTime };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { ButtonHTMLAttributes, FC, Ref } from 'react';
|
|
2
|
-
import { type TestableProps } from '../../utils/testId.js';
|
|
3
|
-
export interface NotificationCenterItemTitleProps extends ButtonHTMLAttributes<HTMLButtonElement>, TestableProps {
|
|
4
|
-
ref?: Ref<HTMLButtonElement>;
|
|
5
|
-
/** Render your own element, e.g. a router link or `<a href>`. */
|
|
6
|
-
asChild?: boolean;
|
|
7
|
-
/** Close the popover after `onClick`. Call `event.preventDefault()` to keep it open once. */
|
|
8
|
-
closeOnClick?: boolean;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* The item's main click target. Its hit area stretches over the whole card,
|
|
12
|
-
* so a click anywhere on the item (except its actions) lands on this element.
|
|
13
|
-
*/
|
|
14
|
-
export declare const NotificationCenterItemTitle: FC<NotificationCenterItemTitleProps>;
|
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { usePopoverContext } from "@ark-ui/react/popover";
|
|
4
|
-
import { Slot, Slottable } from "@radix-ui/react-slot";
|
|
5
|
-
import { cn } from "../../utils/cn.js";
|
|
6
|
-
import { useTestId } from "../../utils/testId.js";
|
|
7
|
-
import { useNotificationCenterItemUnread } from "./NotificationCenterItem.js";
|
|
8
|
-
const NotificationCenterItemTitle = (t0)=>{
|
|
9
|
-
const $ = c(29);
|
|
10
|
-
let children;
|
|
11
|
-
let className;
|
|
12
|
-
let onClick;
|
|
13
|
-
let props;
|
|
14
|
-
let ref;
|
|
15
|
-
let t1;
|
|
16
|
-
let t2;
|
|
17
|
-
let testIdProp;
|
|
18
|
-
if ($[0] !== t0) {
|
|
19
|
-
({ ref, asChild: t1, closeOnClick: t2, className, children, onClick, "data-testid": testIdProp, ...props } = t0);
|
|
20
|
-
$[0] = t0;
|
|
21
|
-
$[1] = children;
|
|
22
|
-
$[2] = className;
|
|
23
|
-
$[3] = onClick;
|
|
24
|
-
$[4] = props;
|
|
25
|
-
$[5] = ref;
|
|
26
|
-
$[6] = t1;
|
|
27
|
-
$[7] = t2;
|
|
28
|
-
$[8] = testIdProp;
|
|
29
|
-
} else {
|
|
30
|
-
children = $[1];
|
|
31
|
-
className = $[2];
|
|
32
|
-
onClick = $[3];
|
|
33
|
-
props = $[4];
|
|
34
|
-
ref = $[5];
|
|
35
|
-
t1 = $[6];
|
|
36
|
-
t2 = $[7];
|
|
37
|
-
testIdProp = $[8];
|
|
38
|
-
}
|
|
39
|
-
const asChild = void 0 === t1 ? false : t1;
|
|
40
|
-
const closeOnClick = void 0 === t2 ? true : t2;
|
|
41
|
-
const unread = useNotificationCenterItemUnread();
|
|
42
|
-
const { setOpen } = usePopoverContext();
|
|
43
|
-
const testId = useTestId("title", testIdProp);
|
|
44
|
-
const Comp = asChild ? Slot : "button";
|
|
45
|
-
let t3;
|
|
46
|
-
if ($[9] !== closeOnClick || $[10] !== onClick || $[11] !== setOpen) {
|
|
47
|
-
t3 = (event)=>{
|
|
48
|
-
onClick?.(event);
|
|
49
|
-
if (closeOnClick && !event.defaultPrevented) setOpen(false);
|
|
50
|
-
};
|
|
51
|
-
$[9] = closeOnClick;
|
|
52
|
-
$[10] = onClick;
|
|
53
|
-
$[11] = setOpen;
|
|
54
|
-
$[12] = t3;
|
|
55
|
-
} else t3 = $[12];
|
|
56
|
-
const handleClick = t3;
|
|
57
|
-
const t4 = asChild ? void 0 : "button";
|
|
58
|
-
let t5;
|
|
59
|
-
if ($[13] !== className) {
|
|
60
|
-
t5 = cn("cursor-pointer text-left font-sans-display text-sm font-medium break-words text-text-primary outline-none", "after:absolute after:inset-0 after:rounded-8", "focus-visible:after:ring-3 focus-visible:after:ring-focus-primary", className);
|
|
61
|
-
$[13] = className;
|
|
62
|
-
$[14] = t5;
|
|
63
|
-
} else t5 = $[14];
|
|
64
|
-
let t6;
|
|
65
|
-
if ($[15] !== unread) {
|
|
66
|
-
t6 = unread && /*#__PURE__*/ jsxs(Fragment, {
|
|
67
|
-
children: [
|
|
68
|
-
/*#__PURE__*/ jsx("span", {
|
|
69
|
-
className: "sr-only",
|
|
70
|
-
children: "Unread,"
|
|
71
|
-
}),
|
|
72
|
-
" "
|
|
73
|
-
]
|
|
74
|
-
});
|
|
75
|
-
$[15] = unread;
|
|
76
|
-
$[16] = t6;
|
|
77
|
-
} else t6 = $[16];
|
|
78
|
-
let t7;
|
|
79
|
-
if ($[17] !== children) {
|
|
80
|
-
t7 = /*#__PURE__*/ jsx(Slottable, {
|
|
81
|
-
children: children
|
|
82
|
-
});
|
|
83
|
-
$[17] = children;
|
|
84
|
-
$[18] = t7;
|
|
85
|
-
} else t7 = $[18];
|
|
86
|
-
let t8;
|
|
87
|
-
if ($[19] !== Comp || $[20] !== handleClick || $[21] !== props || $[22] !== ref || $[23] !== t4 || $[24] !== t5 || $[25] !== t6 || $[26] !== t7 || $[27] !== testId) {
|
|
88
|
-
t8 = /*#__PURE__*/ jsxs(Comp, {
|
|
89
|
-
type: t4,
|
|
90
|
-
...props,
|
|
91
|
-
ref: ref,
|
|
92
|
-
onClick: handleClick,
|
|
93
|
-
"data-slot": "notification-center-item-title",
|
|
94
|
-
"data-testid": testId,
|
|
95
|
-
className: t5,
|
|
96
|
-
children: [
|
|
97
|
-
t6,
|
|
98
|
-
t7
|
|
99
|
-
]
|
|
100
|
-
});
|
|
101
|
-
$[19] = Comp;
|
|
102
|
-
$[20] = handleClick;
|
|
103
|
-
$[21] = props;
|
|
104
|
-
$[22] = ref;
|
|
105
|
-
$[23] = t4;
|
|
106
|
-
$[24] = t5;
|
|
107
|
-
$[25] = t6;
|
|
108
|
-
$[26] = t7;
|
|
109
|
-
$[27] = testId;
|
|
110
|
-
$[28] = t8;
|
|
111
|
-
} else t8 = $[28];
|
|
112
|
-
return t8;
|
|
113
|
-
};
|
|
114
|
-
NotificationCenterItemTitle.displayName = "NotificationCenterItemTitle";
|
|
115
|
-
export { NotificationCenterItemTitle };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { FC } from 'react';
|
|
2
|
-
import { type TabsListProps, type TabsProps } from '../Tabs/index.js';
|
|
3
|
-
export type NotificationCenterTabsProps = Omit<TabsProps, 'size' | 'variant' | 'asChild'>;
|
|
4
|
-
/**
|
|
5
|
-
* Small tabs that fill the panel below the header, so the active panel's
|
|
6
|
-
* `NotificationCenterBody` scrolls while the header and tab list stay put.
|
|
7
|
-
*/
|
|
8
|
-
export declare const NotificationCenterTabs: FC<NotificationCenterTabsProps>;
|
|
9
|
-
export type NotificationCenterTabsListProps = TabsListProps;
|
|
10
|
-
export declare const NotificationCenterTabsList: FC<NotificationCenterTabsListProps>;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { cn } from "../../utils/cn.js";
|
|
4
|
-
import { useTestId } from "../../utils/testId.js";
|
|
5
|
-
import { Tabs, TabsList } from "../Tabs/index.js";
|
|
6
|
-
const NotificationCenterTabs = (t0)=>{
|
|
7
|
-
const $ = c(10);
|
|
8
|
-
let className;
|
|
9
|
-
let props;
|
|
10
|
-
let testIdProp;
|
|
11
|
-
if ($[0] !== t0) {
|
|
12
|
-
({ className, "data-testid": testIdProp, ...props } = t0);
|
|
13
|
-
$[0] = t0;
|
|
14
|
-
$[1] = className;
|
|
15
|
-
$[2] = props;
|
|
16
|
-
$[3] = testIdProp;
|
|
17
|
-
} else {
|
|
18
|
-
className = $[1];
|
|
19
|
-
props = $[2];
|
|
20
|
-
testIdProp = $[3];
|
|
21
|
-
}
|
|
22
|
-
const t1 = useTestId("tabs", testIdProp);
|
|
23
|
-
let t2;
|
|
24
|
-
if ($[4] !== className) {
|
|
25
|
-
t2 = cn("flex min-h-0 flex-1 flex-col", "[&>[data-part=content]:not([hidden])]:flex [&>[data-part=content]]:min-h-0 [&>[data-part=content]]:flex-1 [&>[data-part=content]]:flex-col", className);
|
|
26
|
-
$[4] = className;
|
|
27
|
-
$[5] = t2;
|
|
28
|
-
} else t2 = $[5];
|
|
29
|
-
let t3;
|
|
30
|
-
if ($[6] !== props || $[7] !== t1 || $[8] !== t2) {
|
|
31
|
-
t3 = /*#__PURE__*/ jsx(Tabs, {
|
|
32
|
-
...props,
|
|
33
|
-
size: "small",
|
|
34
|
-
"data-testid": t1,
|
|
35
|
-
className: t2
|
|
36
|
-
});
|
|
37
|
-
$[6] = props;
|
|
38
|
-
$[7] = t1;
|
|
39
|
-
$[8] = t2;
|
|
40
|
-
$[9] = t3;
|
|
41
|
-
} else t3 = $[9];
|
|
42
|
-
return t3;
|
|
43
|
-
};
|
|
44
|
-
NotificationCenterTabs.displayName = "NotificationCenterTabs";
|
|
45
|
-
const NotificationCenterTabsList = (t0)=>{
|
|
46
|
-
const $ = c(8);
|
|
47
|
-
let className;
|
|
48
|
-
let props;
|
|
49
|
-
if ($[0] !== t0) {
|
|
50
|
-
({ className, ...props } = t0);
|
|
51
|
-
$[0] = t0;
|
|
52
|
-
$[1] = className;
|
|
53
|
-
$[2] = props;
|
|
54
|
-
} else {
|
|
55
|
-
className = $[1];
|
|
56
|
-
props = $[2];
|
|
57
|
-
}
|
|
58
|
-
let t1;
|
|
59
|
-
if ($[3] !== className) {
|
|
60
|
-
t1 = cn("px-12", className);
|
|
61
|
-
$[3] = className;
|
|
62
|
-
$[4] = t1;
|
|
63
|
-
} else t1 = $[4];
|
|
64
|
-
let t2;
|
|
65
|
-
if ($[5] !== props || $[6] !== t1) {
|
|
66
|
-
t2 = /*#__PURE__*/ jsx(TabsList, {
|
|
67
|
-
...props,
|
|
68
|
-
className: t1
|
|
69
|
-
});
|
|
70
|
-
$[5] = props;
|
|
71
|
-
$[6] = t1;
|
|
72
|
-
$[7] = t2;
|
|
73
|
-
} else t2 = $[7];
|
|
74
|
-
return t2;
|
|
75
|
-
};
|
|
76
|
-
NotificationCenterTabsList.displayName = "NotificationCenterTabsList";
|
|
77
|
-
export { NotificationCenterTabs, NotificationCenterTabsList };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { ButtonHTMLAttributes, FC, ReactNode, Ref } from 'react';
|
|
2
|
-
import { type TestableProps } from '../../utils/testId.js';
|
|
3
|
-
export interface NotificationCenterTriggerProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, 'color' | 'children'>, TestableProps {
|
|
4
|
-
ref?: Ref<HTMLButtonElement>;
|
|
5
|
-
/** Unread count. `0` hides the badge; above 99 the badge shows `99+`. */
|
|
6
|
-
count?: number;
|
|
7
|
-
/** Tooltip text and the base of the accessible name. */
|
|
8
|
-
label?: string;
|
|
9
|
-
/** Replaces the bell icon. */
|
|
10
|
-
children?: ReactNode;
|
|
11
|
-
}
|
|
12
|
-
/** The bell button: icon, unread badge, tooltip and accessible name. */
|
|
13
|
-
export declare const NotificationCenterTrigger: FC<NotificationCenterTriggerProps>;
|