@wallarm-org/design-system 4.8.0-rc-feat-parser.1 → 4.8.0-rc-fix-claude-code.2
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 +4 -2
- package/dist/components/BulkBar/index.d.ts +5 -0
- package/dist/components/Drawer/classes.js +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.d.ts +0 -2
- package/dist/components/DropdownMenu/DropdownMenu.js +71 -84
- package/dist/components/DropdownMenu/DropdownMenuItemDescription.js +1 -1
- package/dist/components/FilterInput/hooks/useFilterInputAutocomplete/useFilterInputAutocomplete.js +1 -1
- package/dist/components/NotificationCenter/NotificationCenter.d.ts +20 -0
- package/dist/components/NotificationCenter/NotificationCenter.js +65 -0
- package/dist/components/NotificationCenter/NotificationCenterBody.d.ts +18 -0
- package/dist/components/NotificationCenter/NotificationCenterBody.js +202 -0
- package/dist/components/NotificationCenter/NotificationCenterContent.d.ts +5 -0
- package/dist/components/NotificationCenter/NotificationCenterContent.js +42 -0
- package/dist/components/NotificationCenter/NotificationCenterHeader.d.ts +20 -0
- package/dist/components/NotificationCenter/NotificationCenterHeader.js +202 -0
- package/dist/components/NotificationCenter/NotificationCenterItem.d.ts +26 -0
- package/dist/components/NotificationCenter/NotificationCenterItem.js +211 -0
- package/dist/components/NotificationCenter/NotificationCenterItemTime.d.ts +9 -0
- package/dist/components/NotificationCenter/NotificationCenterItemTime.js +148 -0
- package/dist/components/NotificationCenter/NotificationCenterItemTitle.d.ts +14 -0
- package/dist/components/NotificationCenter/NotificationCenterItemTitle.js +115 -0
- package/dist/components/NotificationCenter/NotificationCenterTabs.d.ts +10 -0
- package/dist/components/NotificationCenter/NotificationCenterTabs.js +77 -0
- package/dist/components/NotificationCenter/NotificationCenterTrigger.d.ts +13 -0
- package/dist/components/NotificationCenter/NotificationCenterTrigger.js +138 -0
- package/dist/components/NotificationCenter/index.d.ts +9 -0
- package/dist/components/NotificationCenter/index.js +9 -0
- package/dist/components/Overlay/Overlay.js +1 -1
- package/dist/components/SearchInput/SearchInput.d.ts +7 -5
- package/dist/components/SearchInput/SearchInput.js +119 -101
- 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 +1 -0
- package/dist/components/Tabs/Tabs.js +30 -28
- 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 +3 -0
- package/dist/components/Tour/TourPositioner.js +4 -4
- package/dist/guidelines/foundations/color.md +157 -0
- package/dist/guidelines/foundations/focus.md +122 -0
- package/dist/guidelines/foundations/layering.md +131 -0
- package/dist/guidelines/foundations/radius-elevation.md +111 -0
- package/dist/guidelines/foundations/spacing.md +117 -0
- package/dist/guidelines/foundations/typography.md +114 -0
- package/dist/guidelines/patterns/app-layout.md +1567 -0
- package/dist/guidelines/patterns/auth-page.md +668 -0
- package/dist/guidelines/patterns/confirmation-dialogs.md +605 -0
- package/dist/guidelines/patterns/create-edit-forms.md +768 -0
- package/dist/guidelines/patterns/detail-drawer.md +868 -0
- package/dist/guidelines/patterns/empty-states.md +461 -0
- package/dist/guidelines/patterns/entity-table.md +533 -0
- package/dist/guidelines/patterns/feedback-toasts.md +493 -0
- package/dist/guidelines/patterns/filtering.md +630 -0
- package/dist/guidelines/patterns/resource-list-page.md +558 -0
- package/dist/guidelines/patterns/settings-page.md +752 -0
- package/dist/guidelines/rules.md +25 -0
- package/dist/index.d.ts +2 -3
- package/dist/index.js +1 -2
- package/dist/metadata/components.json +12431 -9208
- package/dist/metadata/guidelines.json +1705 -0
- package/dist/theme/typography.css +5 -0
- package/dist/utils/formatDateTime.d.ts +6 -0
- package/dist/utils/formatDateTime.js +13 -1
- package/package.json +6 -4
- package/dist/components/Rules/PointSelector/KeyboardShortcutsDialog.d.ts +0 -14
- package/dist/components/Rules/PointSelector/KeyboardShortcutsDialog.js +0 -209
- package/dist/components/Rules/PointSelector/MatchStep.d.ts +0 -15
- package/dist/components/Rules/PointSelector/MatchStep.js +0 -186
- package/dist/components/Rules/PointSelector/MenuFooterHints.d.ts +0 -16
- package/dist/components/Rules/PointSelector/MenuFooterHints.js +0 -177
- package/dist/components/Rules/PointSelector/PointPreview.d.ts +0 -10
- package/dist/components/Rules/PointSelector/PointPreview.js +0 -88
- package/dist/components/Rules/PointSelector/PointSelector.d.ts +0 -17
- package/dist/components/Rules/PointSelector/PointSelector.js +0 -937
- package/dist/components/Rules/PointSelector/PointSelectorEmptyState.d.ts +0 -12
- package/dist/components/Rules/PointSelector/PointSelectorEmptyState.js +0 -173
- package/dist/components/Rules/PointSelector/PointSelectorError.d.ts +0 -31
- package/dist/components/Rules/PointSelector/PointSelectorError.js +0 -275
- package/dist/components/Rules/PointSelector/PointSelectorInput.d.ts +0 -20
- package/dist/components/Rules/PointSelector/PointSelectorInput.js +0 -130
- package/dist/components/Rules/PointSelector/PointSelectorMenu.d.ts +0 -31
- package/dist/components/Rules/PointSelector/PointSelectorMenu.js +0 -317
- package/dist/components/Rules/PointSelector/PointSelectorSkeleton.d.ts +0 -8
- package/dist/components/Rules/PointSelector/PointSelectorSkeleton.js +0 -73
- package/dist/components/Rules/PointSelector/SampleRequest.d.ts +0 -14
- package/dist/components/Rules/PointSelector/SampleRequest.js +0 -116
- package/dist/components/Rules/PointSelector/StepMenu.d.ts +0 -40
- package/dist/components/Rules/PointSelector/StepMenu.js +0 -210
- package/dist/components/Rules/PointSelector/VersionWarning.d.ts +0 -26
- package/dist/components/Rules/PointSelector/VersionWarning.js +0 -231
- package/dist/components/Rules/PointSelector/WhereBar.d.ts +0 -48
- package/dist/components/Rules/PointSelector/WhereBar.js +0 -263
- package/dist/components/Rules/PointSelector/classes.d.ts +0 -28
- package/dist/components/Rules/PointSelector/classes.js +0 -22
- package/dist/components/Rules/PointSelector/index.d.ts +0 -20
- package/dist/components/Rules/PointSelector/index.js +0 -18
- package/dist/components/Rules/PointSelector/liftLayer.d.ts +0 -8
- package/dist/components/Rules/PointSelector/liftLayer.js +0 -4
- package/dist/components/Rules/PointSelector/sampleValue.d.ts +0 -6
- package/dist/components/Rules/PointSelector/sampleValue.js +0 -51
- package/dist/components/Rules/PointSelector/sdkBridge.d.ts +0 -508
- package/dist/components/Rules/PointSelector/sdkBridge.js +0 -339
- package/dist/components/Rules/PointSelector/types.d.ts +0 -304
- package/dist/components/Rules/PointSelector/types.js +0 -0
- package/dist/components/Rules/PointSelector/usePointSelector.d.ts +0 -161
- package/dist/components/Rules/PointSelector/usePointSelector.js +0 -1088
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionEditor.d.ts +0 -28
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionEditor.js +0 -208
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionFields.d.ts +0 -23
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionFields.js +0 -950
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTargetPicker.d.ts +0 -21
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTargetPicker.js +0 -110
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTypeSelect.d.ts +0 -20
- package/dist/components/Rules/RuleBuilder/ActionEditor/ActionTypeSelect.js +0 -31
- package/dist/components/Rules/RuleBuilder/ActionEditor/AttackTypeField.d.ts +0 -23
- package/dist/components/Rules/RuleBuilder/ActionEditor/AttackTypeField.js +0 -131
- package/dist/components/Rules/RuleBuilder/ActionEditor/classes.d.ts +0 -17
- package/dist/components/Rules/RuleBuilder/ActionEditor/classes.js +0 -14
- package/dist/components/Rules/RuleBuilder/ActionEditor/index.d.ts +0 -6
- package/dist/components/Rules/RuleBuilder/ActionEditor/index.js +0 -6
- package/dist/components/Rules/RuleBuilder/ConditionTree/AddConditionMenu.d.ts +0 -24
- package/dist/components/Rules/RuleBuilder/ConditionTree/AddConditionMenu.js +0 -245
- package/dist/components/Rules/RuleBuilder/ConditionTree/AttackCondition.d.ts +0 -15
- package/dist/components/Rules/RuleBuilder/ConditionTree/AttackCondition.js +0 -691
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionCard.d.ts +0 -19
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionCard.js +0 -72
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionTree.d.ts +0 -27
- package/dist/components/Rules/RuleBuilder/ConditionTree/ConditionTree.js +0 -407
- package/dist/components/Rules/RuleBuilder/ConditionTree/FieldCondition.d.ts +0 -14
- package/dist/components/Rules/RuleBuilder/ConditionTree/FieldCondition.js +0 -269
- package/dist/components/Rules/RuleBuilder/ConditionTree/GroupCondition.d.ts +0 -25
- package/dist/components/Rules/RuleBuilder/ConditionTree/GroupCondition.js +0 -99
- package/dist/components/Rules/RuleBuilder/ConditionTree/SampleCondition.d.ts +0 -14
- package/dist/components/Rules/RuleBuilder/ConditionTree/SampleCondition.js +0 -118
- package/dist/components/Rules/RuleBuilder/ConditionTree/SignalCondition.d.ts +0 -14
- package/dist/components/Rules/RuleBuilder/ConditionTree/SignalCondition.js +0 -446
- package/dist/components/Rules/RuleBuilder/ConditionTree/TagCondition.d.ts +0 -14
- package/dist/components/Rules/RuleBuilder/ConditionTree/TagCondition.js +0 -266
- package/dist/components/Rules/RuleBuilder/ConditionTree/classes.d.ts +0 -35
- package/dist/components/Rules/RuleBuilder/ConditionTree/classes.js +0 -57
- package/dist/components/Rules/RuleBuilder/ConditionTree/index.d.ts +0 -15
- package/dist/components/Rules/RuleBuilder/ConditionTree/index.js +0 -10
- package/dist/components/Rules/RuleBuilder/RuleBuilder.d.ts +0 -67
- package/dist/components/Rules/RuleBuilder/RuleBuilder.js +0 -366
- package/dist/components/Rules/RuleBuilder/Summary/ActionSummary.d.ts +0 -32
- package/dist/components/Rules/RuleBuilder/Summary/ActionSummary.js +0 -420
- package/dist/components/Rules/RuleBuilder/Summary/ConditionSummary.d.ts +0 -27
- package/dist/components/Rules/RuleBuilder/Summary/ConditionSummary.js +0 -446
- package/dist/components/Rules/RuleBuilder/Summary/index.d.ts +0 -7
- package/dist/components/Rules/RuleBuilder/Summary/index.js +0 -2
- package/dist/components/Rules/RuleBuilder/classes.d.ts +0 -19
- package/dist/components/Rules/RuleBuilder/classes.js +0 -18
- package/dist/components/Rules/RuleBuilder/index.d.ts +0 -55
- package/dist/components/Rules/RuleBuilder/index.js +0 -11
- package/dist/components/Rules/RuleBuilder/models/actionModel.d.ts +0 -31
- package/dist/components/Rules/RuleBuilder/models/actionModel.js +0 -276
- package/dist/components/Rules/RuleBuilder/models/conditionModel.d.ts +0 -95
- package/dist/components/Rules/RuleBuilder/models/conditionModel.js +0 -418
- package/dist/components/Rules/RuleBuilder/models/index.d.ts +0 -3
- package/dist/components/Rules/RuleBuilder/models/index.js +0 -3
- package/dist/components/Rules/RuleBuilder/models/validation.d.ts +0 -176
- package/dist/components/Rules/RuleBuilder/models/validation.js +0 -242
- package/dist/components/Rules/RuleBuilder/shared/ChoiceSelect.d.ts +0 -27
- package/dist/components/Rules/RuleBuilder/shared/ChoiceSelect.js +0 -92
- package/dist/components/Rules/RuleBuilder/shared/index.d.ts +0 -1
- package/dist/components/Rules/RuleBuilder/shared/index.js +0 -1
- package/dist/components/Rules/RuleBuilder/types.d.ts +0 -384
- package/dist/components/Rules/RuleBuilder/types.js +0 -0
- package/dist/components/Rules/RuleBuilder/utils/constants.d.ts +0 -65
- package/dist/components/Rules/RuleBuilder/utils/constants.js +0 -356
- package/dist/components/Rules/RuleBuilder/utils/extractBindings.d.ts +0 -48
- package/dist/components/Rules/RuleBuilder/utils/extractBindings.js +0 -42
- package/dist/components/Rules/RuleBuilder/utils/helpers.d.ts +0 -92
- package/dist/components/Rules/RuleBuilder/utils/helpers.js +0 -54
- package/dist/components/Rules/RuleBuilder/utils/index.d.ts +0 -2
- package/dist/components/Rules/RuleBuilder/utils/index.js +0 -2
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
import { type KeyboardEvent } from 'react';
|
|
2
|
-
import type { Proton } from '@wallarm-org/rules-lib';
|
|
3
|
-
import { type NameStep, type PickStep } from '@wallarm-org/rules-lib/ui';
|
|
4
|
-
import type { MenuRow, PointSelectorProps, PointSelectorStage, ValidationError } from './types.js';
|
|
5
|
-
interface UiState {
|
|
6
|
-
stage: PointSelectorStage;
|
|
7
|
-
query: string;
|
|
8
|
-
highlight: number;
|
|
9
|
-
menuOpen: boolean;
|
|
10
|
-
nameStep: NameStep | null;
|
|
11
|
-
nameIgnoreCase: boolean;
|
|
12
|
-
pickStep: PickStep | null;
|
|
13
|
-
picked: string[];
|
|
14
|
-
conditionQuery: string;
|
|
15
|
-
conditionHighlight: number;
|
|
16
|
-
/** Bumped to move keyboard focus to `focusTarget`. */
|
|
17
|
-
focusTick: number;
|
|
18
|
-
focusTarget: 'bar' | 'name' | 'next' | 'condition' | 'value' | 'conditionChip';
|
|
19
|
-
/** SDK validation error (may be incomplete or actual error) */
|
|
20
|
-
sdkError: ValidationError | null;
|
|
21
|
-
/** Valid prefix state (show info, not error) */
|
|
22
|
-
incomplete: boolean;
|
|
23
|
-
/** Canonical form feedback: null = no feedback, object = show info */
|
|
24
|
-
canonicalInfo: {
|
|
25
|
-
built: string;
|
|
26
|
-
canonical: string;
|
|
27
|
-
} | null;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* All interaction state of the point selector: the "where" step (bar, menu,
|
|
31
|
-
* name and multi-select steps) and the "how to match" step. The grammar comes
|
|
32
|
-
* from `pointGrammar`; this hook only turns it into rows and key handling.
|
|
33
|
-
*
|
|
34
|
-
* SDK Integration:
|
|
35
|
-
* - Validates segments via SDK on each change
|
|
36
|
-
* - Stores canonical form in value.canonical
|
|
37
|
-
* - Falls back to custom validation if SDK not loaded
|
|
38
|
-
*/
|
|
39
|
-
export declare const usePointSelector: ({ context, value, onChange, initialStage, pointOnly, proton, profile, keys, keysDebounceMs, onShowKeyboardHelp, }: PointSelectorProps & {
|
|
40
|
-
proton: Proton | null;
|
|
41
|
-
onShowKeyboardHelp?: () => void;
|
|
42
|
-
}) => {
|
|
43
|
-
ui: UiState;
|
|
44
|
-
point: string;
|
|
45
|
-
check: import("@wallarm-org/rules-lib").PointCheckResult | null;
|
|
46
|
-
sentence: string;
|
|
47
|
-
reserved: boolean;
|
|
48
|
-
sdkError: null;
|
|
49
|
-
incomplete: boolean;
|
|
50
|
-
canonicalInfo: null;
|
|
51
|
-
loadingKeys: boolean;
|
|
52
|
-
pointStage: boolean;
|
|
53
|
-
menuOpen: boolean;
|
|
54
|
-
menuTitle: string;
|
|
55
|
-
menuFooter: 'list';
|
|
56
|
-
rows: never[];
|
|
57
|
-
highlightedId: null;
|
|
58
|
-
status: string;
|
|
59
|
-
pendingLabel: string;
|
|
60
|
-
nameStep: null;
|
|
61
|
-
nameInputPlaceholder: string;
|
|
62
|
-
nameAllowsCase: boolean;
|
|
63
|
-
nameShowsStarHint: boolean;
|
|
64
|
-
applyLabel: null;
|
|
65
|
-
conditionStage: boolean;
|
|
66
|
-
conditionRows: never[];
|
|
67
|
-
conditionHighlight: number;
|
|
68
|
-
conditionQuery: string;
|
|
69
|
-
valueStage: boolean;
|
|
70
|
-
allowsCase: boolean;
|
|
71
|
-
showsIgnoreCase: boolean;
|
|
72
|
-
showsStarHint: boolean;
|
|
73
|
-
showsProfilePicker: boolean;
|
|
74
|
-
barPlaceholder?: undefined;
|
|
75
|
-
canContinue?: undefined;
|
|
76
|
-
conditionTitle?: undefined;
|
|
77
|
-
conditionHighlightedId?: undefined;
|
|
78
|
-
conditionTakesValue?: undefined;
|
|
79
|
-
readAs?: undefined;
|
|
80
|
-
actions?: undefined;
|
|
81
|
-
keys?: undefined;
|
|
82
|
-
} | {
|
|
83
|
-
conditionStage?: undefined;
|
|
84
|
-
conditionHighlight?: undefined;
|
|
85
|
-
conditionQuery?: undefined;
|
|
86
|
-
valueStage?: undefined;
|
|
87
|
-
allowsCase?: undefined;
|
|
88
|
-
showsIgnoreCase?: undefined;
|
|
89
|
-
showsStarHint?: undefined;
|
|
90
|
-
showsProfilePicker?: undefined;
|
|
91
|
-
ui: UiState;
|
|
92
|
-
point: string;
|
|
93
|
-
check: import("@wallarm-org/rules-lib").PointCheckResult | null;
|
|
94
|
-
sentence: string;
|
|
95
|
-
reserved: boolean;
|
|
96
|
-
sdkError: ValidationError | null;
|
|
97
|
-
incomplete: boolean;
|
|
98
|
-
canonicalInfo: {
|
|
99
|
-
built: string;
|
|
100
|
-
canonical: string;
|
|
101
|
-
} | null;
|
|
102
|
-
loadingKeys: boolean;
|
|
103
|
-
pointStage: boolean;
|
|
104
|
-
menuOpen: boolean;
|
|
105
|
-
menuTitle: string;
|
|
106
|
-
menuFooter: 'pick' | 'name' | 'list';
|
|
107
|
-
rows: MenuRow[];
|
|
108
|
-
highlightedId: string | null;
|
|
109
|
-
status: string;
|
|
110
|
-
pendingLabel: string;
|
|
111
|
-
nameStep: NameStep | null;
|
|
112
|
-
nameInputPlaceholder: string;
|
|
113
|
-
nameAllowsCase: boolean;
|
|
114
|
-
nameShowsStarHint: boolean;
|
|
115
|
-
applyLabel: string;
|
|
116
|
-
barPlaceholder: string;
|
|
117
|
-
canContinue: boolean;
|
|
118
|
-
conditionTitle: string;
|
|
119
|
-
conditionRows: any[];
|
|
120
|
-
conditionHighlightedId: string | null;
|
|
121
|
-
conditionTakesValue: boolean;
|
|
122
|
-
readAs: string;
|
|
123
|
-
actions: {
|
|
124
|
-
setQuery: (q: string) => void;
|
|
125
|
-
openMenu: () => void | false;
|
|
126
|
-
closeMenu: () => void;
|
|
127
|
-
highlight: (id: string) => void;
|
|
128
|
-
chooseRow: (id: string) => void;
|
|
129
|
-
applyPick: () => void;
|
|
130
|
-
toggleNameCase: () => void;
|
|
131
|
-
truncateTo: (index: number) => void;
|
|
132
|
-
goMatch: () => void;
|
|
133
|
-
editPoint: () => void;
|
|
134
|
-
setConditionQuery: (q: string) => void;
|
|
135
|
-
highlightCondition: (id: string) => void;
|
|
136
|
-
chooseCondition: (id: string) => void;
|
|
137
|
-
editCondition: () => void;
|
|
138
|
-
/** Close the condition list in place: the condition button reopens it. */
|
|
139
|
-
closeConditionList: () => void;
|
|
140
|
-
setValue: (v: string) => void;
|
|
141
|
-
setIgnoreCase: (on: boolean) => void;
|
|
142
|
-
/** Clear SDK validation error */
|
|
143
|
-
clearSdkError: () => void;
|
|
144
|
-
/** Clear canonical form info */
|
|
145
|
-
clearCanonicalInfo: () => void;
|
|
146
|
-
/** Apply a fix suggestion from SDK error */
|
|
147
|
-
applyFix: (fix: {
|
|
148
|
-
label: string;
|
|
149
|
-
replace: [number, number];
|
|
150
|
-
insert: string;
|
|
151
|
-
}) => void;
|
|
152
|
-
};
|
|
153
|
-
keys: {
|
|
154
|
-
handleBarKey: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
155
|
-
handleNameKey: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
156
|
-
handleConditionKey: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
157
|
-
handleValueKey: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
158
|
-
};
|
|
159
|
-
};
|
|
160
|
-
export type PointSelectorModel = ReturnType<typeof usePointSelector>;
|
|
161
|
-
export {};
|