@wallarm-org/design-system 4.8.0-rc-feat-parser.1 → 4.8.0
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,13 +1,15 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { useState } from "react";
|
|
3
4
|
import { Search, X } from "../../icons/index.js";
|
|
4
5
|
import { cn } from "../../utils/cn.js";
|
|
5
6
|
import { Input } from "../Input/index.js";
|
|
6
7
|
import { InputGroup } from "../InputGroup/InputGroup.js";
|
|
7
8
|
import { InputGroupAddon } from "../InputGroup/InputGroupAddon.js";
|
|
8
9
|
const SearchInput = (t0)=>{
|
|
9
|
-
const $ = c(
|
|
10
|
+
const $ = c(44);
|
|
10
11
|
let className;
|
|
12
|
+
let controlledValue;
|
|
11
13
|
let onChange;
|
|
12
14
|
let onClear;
|
|
13
15
|
let ref;
|
|
@@ -15,67 +17,83 @@ const SearchInput = (t0)=>{
|
|
|
15
17
|
let t1;
|
|
16
18
|
let t2;
|
|
17
19
|
let t3;
|
|
20
|
+
let t4;
|
|
18
21
|
let testId;
|
|
19
|
-
let value;
|
|
20
22
|
if ($[0] !== t0) {
|
|
21
|
-
({ value, onChange, onClear, size:
|
|
23
|
+
({ value: controlledValue, defaultValue: t1, onChange, onClear, size: t2, disabled: t3, placeholder: t4, className, ref, "data-testid": testId, ...rest } = t0);
|
|
22
24
|
$[0] = t0;
|
|
23
25
|
$[1] = className;
|
|
24
|
-
$[2] =
|
|
25
|
-
$[3] =
|
|
26
|
-
$[4] =
|
|
27
|
-
$[5] =
|
|
28
|
-
$[6] =
|
|
29
|
-
$[7] =
|
|
30
|
-
$[8] =
|
|
31
|
-
$[9] =
|
|
32
|
-
$[10] =
|
|
26
|
+
$[2] = controlledValue;
|
|
27
|
+
$[3] = onChange;
|
|
28
|
+
$[4] = onClear;
|
|
29
|
+
$[5] = ref;
|
|
30
|
+
$[6] = rest;
|
|
31
|
+
$[7] = t1;
|
|
32
|
+
$[8] = t2;
|
|
33
|
+
$[9] = t3;
|
|
34
|
+
$[10] = t4;
|
|
35
|
+
$[11] = testId;
|
|
33
36
|
} else {
|
|
34
37
|
className = $[1];
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
controlledValue = $[2];
|
|
39
|
+
onChange = $[3];
|
|
40
|
+
onClear = $[4];
|
|
41
|
+
ref = $[5];
|
|
42
|
+
rest = $[6];
|
|
43
|
+
t1 = $[7];
|
|
44
|
+
t2 = $[8];
|
|
45
|
+
t3 = $[9];
|
|
46
|
+
t4 = $[10];
|
|
47
|
+
testId = $[11];
|
|
44
48
|
}
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
onChange(event.target.value);
|
|
52
|
-
};
|
|
53
|
-
$[11] = onChange;
|
|
54
|
-
$[12] = t4;
|
|
55
|
-
} else t4 = $[12];
|
|
56
|
-
const handleChange = t4;
|
|
49
|
+
const defaultValue = void 0 === t1 ? "" : t1;
|
|
50
|
+
const size = void 0 === t2 ? "default" : t2;
|
|
51
|
+
const disabled = void 0 === t3 ? false : t3;
|
|
52
|
+
const placeholder = void 0 === t4 ? "Search" : t4;
|
|
53
|
+
const [uncontrolledValue, setUncontrolledValue] = useState(defaultValue);
|
|
54
|
+
const value = controlledValue ?? uncontrolledValue;
|
|
57
55
|
let t5;
|
|
58
|
-
if ($[
|
|
59
|
-
t5 = ()=>{
|
|
60
|
-
|
|
61
|
-
onChange(
|
|
56
|
+
if ($[12] !== controlledValue || $[13] !== onChange) {
|
|
57
|
+
t5 = (next)=>{
|
|
58
|
+
if (void 0 === controlledValue) setUncontrolledValue(next);
|
|
59
|
+
onChange?.(next);
|
|
62
60
|
};
|
|
61
|
+
$[12] = controlledValue;
|
|
63
62
|
$[13] = onChange;
|
|
64
|
-
$[14] =
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
const handleClear = t5;
|
|
68
|
-
const showClear = value.length > 0 && !disabled;
|
|
63
|
+
$[14] = t5;
|
|
64
|
+
} else t5 = $[14];
|
|
65
|
+
const setValue = t5;
|
|
69
66
|
let t6;
|
|
70
|
-
if ($[
|
|
71
|
-
t6 =
|
|
72
|
-
|
|
73
|
-
}
|
|
67
|
+
if ($[15] !== setValue) {
|
|
68
|
+
t6 = (event)=>{
|
|
69
|
+
setValue(event.target.value);
|
|
70
|
+
};
|
|
71
|
+
$[15] = setValue;
|
|
74
72
|
$[16] = t6;
|
|
75
73
|
} else t6 = $[16];
|
|
74
|
+
const handleChange = t6;
|
|
76
75
|
let t7;
|
|
77
|
-
if ($[17] !==
|
|
78
|
-
t7 =
|
|
76
|
+
if ($[17] !== onClear || $[18] !== setValue) {
|
|
77
|
+
t7 = ()=>{
|
|
78
|
+
onClear?.();
|
|
79
|
+
setValue("");
|
|
80
|
+
};
|
|
81
|
+
$[17] = onClear;
|
|
82
|
+
$[18] = setValue;
|
|
83
|
+
$[19] = t7;
|
|
84
|
+
} else t7 = $[19];
|
|
85
|
+
const handleClear = t7;
|
|
86
|
+
const showClear = value.length > 0 && !disabled;
|
|
87
|
+
let t8;
|
|
88
|
+
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
89
|
+
t8 = /*#__PURE__*/ jsx(InputGroupAddon, {
|
|
90
|
+
children: /*#__PURE__*/ jsx(Search, {})
|
|
91
|
+
});
|
|
92
|
+
$[20] = t8;
|
|
93
|
+
} else t8 = $[20];
|
|
94
|
+
let t9;
|
|
95
|
+
if ($[21] !== disabled || $[22] !== handleChange || $[23] !== placeholder || $[24] !== ref || $[25] !== rest || $[26] !== size || $[27] !== value) {
|
|
96
|
+
t9 = /*#__PURE__*/ jsx(Input, {
|
|
79
97
|
...rest,
|
|
80
98
|
type: "text",
|
|
81
99
|
value: value,
|
|
@@ -85,75 +103,75 @@ const SearchInput = (t0)=>{
|
|
|
85
103
|
size: size,
|
|
86
104
|
ref: ref
|
|
87
105
|
});
|
|
88
|
-
$[
|
|
89
|
-
$[
|
|
90
|
-
$[
|
|
91
|
-
$[
|
|
92
|
-
$[
|
|
93
|
-
$[
|
|
94
|
-
$[
|
|
95
|
-
$[
|
|
96
|
-
} else
|
|
97
|
-
const
|
|
98
|
-
const
|
|
99
|
-
const
|
|
100
|
-
const
|
|
101
|
-
let
|
|
102
|
-
if ($[
|
|
103
|
-
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
106
|
-
} else
|
|
107
|
-
let
|
|
108
|
-
if ($[
|
|
109
|
-
|
|
106
|
+
$[21] = disabled;
|
|
107
|
+
$[22] = handleChange;
|
|
108
|
+
$[23] = placeholder;
|
|
109
|
+
$[24] = ref;
|
|
110
|
+
$[25] = rest;
|
|
111
|
+
$[26] = size;
|
|
112
|
+
$[27] = value;
|
|
113
|
+
$[28] = t9;
|
|
114
|
+
} else t9 = $[28];
|
|
115
|
+
const t10 = showClear ? -1 : void 0;
|
|
116
|
+
const t11 = !showClear;
|
|
117
|
+
const t12 = !showClear;
|
|
118
|
+
const t13 = showClear ? "cursor-pointer" : "invisible";
|
|
119
|
+
let t14;
|
|
120
|
+
if ($[29] !== t13) {
|
|
121
|
+
t14 = cn("flex text-icon-secondary", t13);
|
|
122
|
+
$[29] = t13;
|
|
123
|
+
$[30] = t14;
|
|
124
|
+
} else t14 = $[30];
|
|
125
|
+
let t15;
|
|
126
|
+
if ($[31] === Symbol.for("react.memo_cache_sentinel")) {
|
|
127
|
+
t15 = /*#__PURE__*/ jsx(X, {
|
|
110
128
|
size: "md"
|
|
111
129
|
});
|
|
112
|
-
$[
|
|
113
|
-
} else
|
|
114
|
-
let
|
|
115
|
-
if ($[
|
|
116
|
-
|
|
130
|
+
$[31] = t15;
|
|
131
|
+
} else t15 = $[31];
|
|
132
|
+
let t16;
|
|
133
|
+
if ($[32] !== handleClear || $[33] !== t10 || $[34] !== t11 || $[35] !== t12 || $[36] !== t14) {
|
|
134
|
+
t16 = /*#__PURE__*/ jsx(InputGroupAddon, {
|
|
117
135
|
align: "inline-end",
|
|
118
136
|
children: /*#__PURE__*/ jsx("button", {
|
|
119
137
|
type: "button",
|
|
120
|
-
tabIndex:
|
|
121
|
-
disabled:
|
|
138
|
+
tabIndex: t10,
|
|
139
|
+
disabled: t11,
|
|
122
140
|
onClick: handleClear,
|
|
123
141
|
"aria-label": "Clear",
|
|
124
|
-
"aria-hidden":
|
|
125
|
-
className:
|
|
126
|
-
children:
|
|
142
|
+
"aria-hidden": t12,
|
|
143
|
+
className: t14,
|
|
144
|
+
children: t15
|
|
127
145
|
})
|
|
128
146
|
});
|
|
129
|
-
$[
|
|
130
|
-
$[
|
|
131
|
-
$[
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
} else
|
|
136
|
-
let
|
|
137
|
-
if ($[
|
|
138
|
-
|
|
147
|
+
$[32] = handleClear;
|
|
148
|
+
$[33] = t10;
|
|
149
|
+
$[34] = t11;
|
|
150
|
+
$[35] = t12;
|
|
151
|
+
$[36] = t14;
|
|
152
|
+
$[37] = t16;
|
|
153
|
+
} else t16 = $[37];
|
|
154
|
+
let t17;
|
|
155
|
+
if ($[38] !== className || $[39] !== size || $[40] !== t16 || $[41] !== t9 || $[42] !== testId) {
|
|
156
|
+
t17 = /*#__PURE__*/ jsxs(InputGroup, {
|
|
139
157
|
size: size,
|
|
140
158
|
className: className,
|
|
141
159
|
"data-slot": "search-input",
|
|
142
160
|
"data-testid": testId,
|
|
143
161
|
children: [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
162
|
+
t8,
|
|
163
|
+
t9,
|
|
164
|
+
t16
|
|
147
165
|
]
|
|
148
166
|
});
|
|
149
|
-
$[
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
} else
|
|
156
|
-
return
|
|
167
|
+
$[38] = className;
|
|
168
|
+
$[39] = size;
|
|
169
|
+
$[40] = t16;
|
|
170
|
+
$[41] = t9;
|
|
171
|
+
$[42] = testId;
|
|
172
|
+
$[43] = t17;
|
|
173
|
+
} else t17 = $[43];
|
|
174
|
+
return t17;
|
|
157
175
|
};
|
|
158
176
|
SearchInput.displayName = "SearchInput";
|
|
159
177
|
export { SearchInput };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC, InputHTMLAttributes, Ref } from 'react';
|
|
2
2
|
import { type TestableProps } from '../../utils/testId.js';
|
|
3
|
-
export interface SelectSearchInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'children' | 'onChange' | 'color' | 'size' | 'type' | 'value'>, TestableProps {
|
|
3
|
+
export interface SelectSearchInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'children' | 'onChange' | 'color' | 'size' | 'type' | 'value' | 'defaultValue'>, TestableProps {
|
|
4
4
|
value: string;
|
|
5
5
|
onChange: (value: string) => void;
|
|
6
6
|
/** Called when the built-in clear button empties the field, before `onChange('')`. */
|
|
@@ -166,7 +166,7 @@ export interface TableProps<T> extends TestableProps {
|
|
|
166
166
|
* `isLoading`). Pair with `onStartReached`.
|
|
167
167
|
*/
|
|
168
168
|
isLoadingPrevious?: boolean;
|
|
169
|
-
/** Number of skeleton rows to display when loading (default:
|
|
169
|
+
/** Number of skeleton rows to display when loading (default: 12, `TABLE_SKELETON_ROWS`) */
|
|
170
170
|
skeletonCount?: number;
|
|
171
171
|
/** Slot for TableActionBar, TableEmptyState, and other compound components */
|
|
172
172
|
children?: ReactNode;
|
|
@@ -3,6 +3,7 @@ import { type TestableProps } from '../../utils/testId.js';
|
|
|
3
3
|
import type { TabsSize, TabsVariant } from './types.js';
|
|
4
4
|
export interface TabsProps extends TestableProps {
|
|
5
5
|
children: ReactNode;
|
|
6
|
+
className?: string;
|
|
6
7
|
size?: TabsSize;
|
|
7
8
|
variant?: TabsVariant;
|
|
8
9
|
value?: string;
|
|
@@ -5,8 +5,8 @@ import { cn } from "../../utils/cn.js";
|
|
|
5
5
|
import { TestIdProvider } from "../../utils/testId.js";
|
|
6
6
|
import { TabsSharedContextProvider } from "./TabsSharedContext/index.js";
|
|
7
7
|
const Tabs_Tabs = (t0)=>{
|
|
8
|
-
const $ = c(
|
|
9
|
-
const { children, value, defaultValue, onChange, size, variant, lazyMount: t1, unmountOnExit: t2, asChild: t3, "data-testid": testId } = t0;
|
|
8
|
+
const $ = c(21);
|
|
9
|
+
const { children, className, value, defaultValue, onChange, size, variant, lazyMount: t1, unmountOnExit: t2, asChild: t3, "data-testid": testId } = t0;
|
|
10
10
|
const lazyMount = void 0 === t1 ? true : t1;
|
|
11
11
|
const unmountOnExit = void 0 === t2 ? true : t2;
|
|
12
12
|
const asChild = void 0 === t3 ? false : t3;
|
|
@@ -21,23 +21,24 @@ const Tabs_Tabs = (t0)=>{
|
|
|
21
21
|
} else t4 = $[1];
|
|
22
22
|
const handleChange = t4;
|
|
23
23
|
let t5;
|
|
24
|
-
if ($[2]
|
|
25
|
-
t5 = cn("relative");
|
|
26
|
-
$[2] =
|
|
27
|
-
|
|
24
|
+
if ($[2] !== className) {
|
|
25
|
+
t5 = cn("relative", className);
|
|
26
|
+
$[2] = className;
|
|
27
|
+
$[3] = t5;
|
|
28
|
+
} else t5 = $[3];
|
|
28
29
|
const t6 = asChild ? children : children;
|
|
29
30
|
let t7;
|
|
30
|
-
if ($[
|
|
31
|
+
if ($[4] !== t6 || $[5] !== testId) {
|
|
31
32
|
t7 = /*#__PURE__*/ jsx(TestIdProvider, {
|
|
32
33
|
value: testId,
|
|
33
34
|
children: t6
|
|
34
35
|
});
|
|
35
|
-
$[
|
|
36
|
-
$[
|
|
37
|
-
$[
|
|
38
|
-
} else t7 = $[
|
|
36
|
+
$[4] = t6;
|
|
37
|
+
$[5] = testId;
|
|
38
|
+
$[6] = t7;
|
|
39
|
+
} else t7 = $[6];
|
|
39
40
|
let t8;
|
|
40
|
-
if ($[
|
|
41
|
+
if ($[7] !== asChild || $[8] !== defaultValue || $[9] !== handleChange || $[10] !== lazyMount || $[11] !== t5 || $[12] !== t7 || $[13] !== testId || $[14] !== unmountOnExit || $[15] !== value) {
|
|
41
42
|
t8 = /*#__PURE__*/ jsx(Tabs.Root, {
|
|
42
43
|
className: t5,
|
|
43
44
|
"data-testid": testId,
|
|
@@ -49,28 +50,29 @@ const Tabs_Tabs = (t0)=>{
|
|
|
49
50
|
asChild: asChild,
|
|
50
51
|
children: t7
|
|
51
52
|
});
|
|
52
|
-
$[
|
|
53
|
-
$[
|
|
54
|
-
$[
|
|
55
|
-
$[
|
|
56
|
-
$[
|
|
57
|
-
$[
|
|
58
|
-
$[
|
|
59
|
-
$[
|
|
60
|
-
$[
|
|
61
|
-
|
|
53
|
+
$[7] = asChild;
|
|
54
|
+
$[8] = defaultValue;
|
|
55
|
+
$[9] = handleChange;
|
|
56
|
+
$[10] = lazyMount;
|
|
57
|
+
$[11] = t5;
|
|
58
|
+
$[12] = t7;
|
|
59
|
+
$[13] = testId;
|
|
60
|
+
$[14] = unmountOnExit;
|
|
61
|
+
$[15] = value;
|
|
62
|
+
$[16] = t8;
|
|
63
|
+
} else t8 = $[16];
|
|
62
64
|
let t9;
|
|
63
|
-
if ($[
|
|
65
|
+
if ($[17] !== size || $[18] !== t8 || $[19] !== variant) {
|
|
64
66
|
t9 = /*#__PURE__*/ jsx(TabsSharedContextProvider, {
|
|
65
67
|
size: size,
|
|
66
68
|
variant: variant,
|
|
67
69
|
children: t8
|
|
68
70
|
});
|
|
69
|
-
$[
|
|
70
|
-
$[
|
|
71
|
-
$[
|
|
72
|
-
$[
|
|
73
|
-
} else t9 = $[
|
|
71
|
+
$[17] = size;
|
|
72
|
+
$[18] = t8;
|
|
73
|
+
$[19] = variant;
|
|
74
|
+
$[20] = t9;
|
|
75
|
+
} else t9 = $[20];
|
|
74
76
|
return t9;
|
|
75
77
|
};
|
|
76
78
|
Tabs_Tabs.displayName = "Tabs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { TabsList } from './TabsList.js';
|
|
1
|
+
export { TabsList, type TabsListProps } from './TabsList.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { Tabs } from './Tabs.js';
|
|
1
|
+
export { Tabs, type TabsProps } from './Tabs.js';
|
|
2
2
|
export { TabsButton } from './TabsButton.js';
|
|
3
3
|
export { TabsContent } from './TabsContent.js';
|
|
4
4
|
export { TabsLineActions } from './TabsLineActions.js';
|
|
5
|
-
export { TabsList } from './TabsList/index.js';
|
|
5
|
+
export { TabsList, type TabsListProps } from './TabsList/index.js';
|
|
6
6
|
export { TabsSeparator } from './TabsSeparator.js';
|
|
7
7
|
export { TabsTrigger } from './TabsTrigger.js';
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { FC, ReactNode } from 'react';
|
|
2
|
+
export declare const tourPositionerVariants: (props?: ({
|
|
3
|
+
type?: "dialog" | "tooltip" | null | undefined;
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
2
5
|
interface TourPositionerProps {
|
|
3
6
|
children: ReactNode;
|
|
4
7
|
}
|
|
@@ -3,11 +3,11 @@ import { c } from "react/compiler-runtime";
|
|
|
3
3
|
import { Tour, useTourContext } from "@ark-ui/react";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { useTestId } from "../../utils/testId.js";
|
|
6
|
-
const
|
|
6
|
+
const tourPositionerVariants = cva("focus-visible:outline-none", {
|
|
7
7
|
variants: {
|
|
8
8
|
type: {
|
|
9
9
|
dialog: "fixed inset-0 z-50 flex items-center justify-center",
|
|
10
|
-
tooltip: ""
|
|
10
|
+
tooltip: "z-50"
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
});
|
|
@@ -19,7 +19,7 @@ const TourPositioner = (t0)=>{
|
|
|
19
19
|
const type = step?.type === "dialog" ? "dialog" : "tooltip";
|
|
20
20
|
let t1;
|
|
21
21
|
if ($[0] !== type) {
|
|
22
|
-
t1 =
|
|
22
|
+
t1 = tourPositionerVariants({
|
|
23
23
|
type
|
|
24
24
|
});
|
|
25
25
|
$[0] = type;
|
|
@@ -40,4 +40,4 @@ const TourPositioner = (t0)=>{
|
|
|
40
40
|
return t2;
|
|
41
41
|
};
|
|
42
42
|
TourPositioner.displayName = "TourPositioner";
|
|
43
|
-
export { TourPositioner };
|
|
43
|
+
export { TourPositioner, tourPositionerVariants };
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: Color
|
|
3
|
+
description: Use when choosing a background, text, icon, border or hover color, so the value switches correctly between light and dark themes.
|
|
4
|
+
components: [Alert, AlertTitle, Badge, Banner, Button, Card, CardContent, Drawer, DropdownMenu, Link, Popover, Radio, SegmentedControl, Slider, Tag, Text, ThemeProvider]
|
|
5
|
+
keywords: [color, colour, token, background, bg, text color, border, surface, elevation, status, danger, warning, success, info, brand, ai, hover, pressed, states, dark mode, theme, palette, opacity]
|
|
6
|
+
order: 20
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
# Color
|
|
10
|
+
|
|
11
|
+
Use semantic tokens; all but `-fixed` switch with the theme. The prefix repeats: `bg-bg-surface-1`, `text-text-primary`.
|
|
12
|
+
|
|
13
|
+
## What you use
|
|
14
|
+
|
|
15
|
+
| Need | Use | Not |
|
|
16
|
+
|---|---|---|
|
|
17
|
+
| Body text | `text-text-primary` | `text-slate-900` |
|
|
18
|
+
| Supporting text | `text-text-secondary` | `text-text-primary/60`, `text-muted` |
|
|
19
|
+
| Placeholder or hint | `text-text-hint` | `text-text-tertiary` |
|
|
20
|
+
| Error text | `text-text-danger` | `text-red-600` |
|
|
21
|
+
| Text on a solid fill | `text-text-primary-alt` | `text-white` |
|
|
22
|
+
| Icon ink | `text-icon-secondary` | `text-text-secondary` |
|
|
23
|
+
| Page | `bg-bg-page-bg` | `bg-white` |
|
|
24
|
+
| Card or panel | `bg-bg-surface-1` | `bg-white` |
|
|
25
|
+
| Popover, menu, drawer | `bg-bg-surface-2` | `bg-bg-surface-1` |
|
|
26
|
+
| Neutral tinted area | `bg-bg-light-primary`, `bg-bg-primary` | `bg-slate-50` |
|
|
27
|
+
| Soft status box | `bg-bg-light-danger` + `border-border-danger` | `bg-red-50 border-red-300` |
|
|
28
|
+
| Solid status block | `bg-bg-fill-danger` | `bg-red-600` |
|
|
29
|
+
| Divider | `border-border-primary-light` | `border-gray-200` |
|
|
30
|
+
| Control outline | `border-border-primary` | `border-border-primary-light` |
|
|
31
|
+
| Hover, transparent item | `hover:bg-states-primary-hover` | `hover:bg-slate-100` |
|
|
32
|
+
| Hover, solid fill | `overlay hover:overlay-states-on-fill-hover` | `hover:bg-bg-fill-brand/90`, `hover:brightness-110` |
|
|
33
|
+
| Categorical color | `Badge` `color` | `bg-violet-100` on a `div` |
|
|
34
|
+
| Status notice | `Alert` `color` | A `div` with status classes |
|
|
35
|
+
|
|
36
|
+
## Rules
|
|
37
|
+
|
|
38
|
+
**Surfaces**
|
|
39
|
+
|
|
40
|
+
- If it sits in page flow (`Card`), use `bg-bg-surface-1`.
|
|
41
|
+
- If it floats over content (`Popover`, `DropdownMenu`, `Drawer`), use `bg-bg-surface-2`.
|
|
42
|
+
- If it is a raised thumb or indicator (`Slider`, `SegmentedControl`, `Radio`), use `bg-bg-surface-3`.
|
|
43
|
+
- If it is a control track, use `bg-bg-primary`, never `bg-bg-surface-3`.
|
|
44
|
+
- Use `bg-bg-surface-5` only for a raised strip like `Banner`.
|
|
45
|
+
- Pick the level by elevation: levels 1–4 are all white in light. Separate them with borders and shadows.
|
|
46
|
+
|
|
47
|
+
**Status**
|
|
48
|
+
|
|
49
|
+
- If the area holds dark text, use `bg-bg-light-<status>` or `bg-bg-<status>` with `border-border-<status>`.
|
|
50
|
+
- If it holds `text-text-primary-alt`, use `bg-bg-fill-<status>`.
|
|
51
|
+
- Use `brand` only for the primary action, `ai` only for assistant content.
|
|
52
|
+
- Pair status color with an icon or word.
|
|
53
|
+
- Use `danger` for errors. `destructive` is only an `Alert`/`Button` prop and `ring-focus-destructive`.
|
|
54
|
+
|
|
55
|
+
**States**
|
|
56
|
+
|
|
57
|
+
- Transparent item: `hover:bg-states-primary-hover`, `active:bg-states-primary-pressed`. Selected: `bg-states-primary-active`.
|
|
58
|
+
- Solid fill: add `overlay`, then `hover:overlay-states-on-fill-hover`, `active:overlay-states-on-fill-pressed`.
|
|
59
|
+
- Brand/danger item: `bg-states-brand-*`, `bg-states-danger-*`. Inverted surface: `bg-states-primary-alt-*`.
|
|
60
|
+
- `states-*` tokens are translucent layers over a resting fill.
|
|
61
|
+
- Prefer components with built-in states, like `Button`.
|
|
62
|
+
|
|
63
|
+
**Theme**
|
|
64
|
+
|
|
65
|
+
- Switch themes with `useTheme().setTheme()`, never by setting `data-theme`.
|
|
66
|
+
- Use `-alt` tokens on inverted surfaces; `-fixed` tokens only on fixed surfaces.
|
|
67
|
+
- **Never** use the `dark:` variant. It follows the OS, not `ThemeProvider`.
|
|
68
|
+
- **Never** use raw palette classes (`bg-red-500`), which ignore the theme, or opacity modifiers (`/90`).
|
|
69
|
+
- **Never** reuse `bg-component-*` outside its component. Exception: an auth page paints `bg-component-app-shell-bg`; see [Auth page](../patterns/auth-page.md).
|
|
70
|
+
- **Never** edit `--color-syntax-*` mappings.
|
|
71
|
+
|
|
72
|
+
**These do not exist**
|
|
73
|
+
|
|
74
|
+
- `bg-primary`, `text-primary`, `border-primary` → `bg-bg-primary`, `text-text-primary`, `border-border-primary`.
|
|
75
|
+
- `text-muted`, `text-subtle`, `text-disabled` → `text-text-secondary`, `text-text-hint`, `text-text-disable-primary`.
|
|
76
|
+
- `bg-surface`, `bg-card`, `bg-background`, `bg-muted` → `bg-bg-surface-1`, `bg-bg-light-primary`.
|
|
77
|
+
- `bg-bg-surface-0`, `bg-bg-surface-6` → levels run 1–5.
|
|
78
|
+
- `error` tokens → `danger`. `bg-bg-fill-primary` → no neutral solid fill. `border-border-secondary` → `border-border-primary-light`.
|
|
79
|
+
- `Badge` `color='purple'` → `violet`. `Tag` has no `color` prop.
|
|
80
|
+
|
|
81
|
+
## Examples
|
|
82
|
+
|
|
83
|
+
A soft danger box in a card.
|
|
84
|
+
|
|
85
|
+
```tsx
|
|
86
|
+
import { Card, CardContent, Text } from '@wallarm-org/design-system';
|
|
87
|
+
|
|
88
|
+
export const BlockedRequests = () => (
|
|
89
|
+
<Card>
|
|
90
|
+
<CardContent className='flex flex-col gap-8'>
|
|
91
|
+
<Text size='sm' color='secondary'>Blocked requests</Text>
|
|
92
|
+
<div className='rounded-8 border-1 border-border-danger bg-bg-light-danger px-12 py-8 text-text-danger'>
|
|
93
|
+
1 204 attacks blocked
|
|
94
|
+
</div>
|
|
95
|
+
</CardContent>
|
|
96
|
+
</Card>
|
|
97
|
+
);
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
Notices and labels are components.
|
|
101
|
+
|
|
102
|
+
```tsx
|
|
103
|
+
import { Alert, AlertTitle, Badge } from '@wallarm-org/design-system';
|
|
104
|
+
|
|
105
|
+
export const QuotaNotice = () => (
|
|
106
|
+
<>
|
|
107
|
+
<Alert color='warning'><AlertTitle>Quota at 90%</AlertTitle></Alert>
|
|
108
|
+
<Badge color='violet' type='secondary'>API abuse</Badge>
|
|
109
|
+
</>
|
|
110
|
+
);
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
A custom solid fill keeps its color on hover.
|
|
114
|
+
|
|
115
|
+
```tsx
|
|
116
|
+
export const DeployTile = () => (
|
|
117
|
+
<button
|
|
118
|
+
type='button'
|
|
119
|
+
className='overlay bg-bg-fill-brand text-text-primary-alt hover:overlay-states-on-fill-hover active:overlay-states-on-fill-pressed'
|
|
120
|
+
>
|
|
121
|
+
Deploy
|
|
122
|
+
</button>
|
|
123
|
+
);
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
Switch themes with `useTheme`.
|
|
127
|
+
|
|
128
|
+
```tsx
|
|
129
|
+
import { Button, useTheme } from '@wallarm-org/design-system';
|
|
130
|
+
|
|
131
|
+
export const DarkModeButton = () => {
|
|
132
|
+
const { setTheme } = useTheme();
|
|
133
|
+
const handleDark = () => setTheme('dark');
|
|
134
|
+
|
|
135
|
+
return <Button onClick={handleDark}>Dark</Button>;
|
|
136
|
+
};
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
## Reference
|
|
140
|
+
|
|
141
|
+
`<status>`: `brand`, `danger`, `warning`, `success`, `info`, `ai`.
|
|
142
|
+
|
|
143
|
+
| Family | Classes |
|
|
144
|
+
|---|---|
|
|
145
|
+
| Text | `text-text-` `primary`, `secondary`, `tertiary`, `hint`, `<status>`, `primary-alt`, `secondary-alt`, `tertiary-alt`, `primary-fixed`, `primary-alt-fixed` |
|
|
146
|
+
| Disabled text | `text-text-disable-primary`, `-primary-alt`, `-<status>` (success is spelled `succes`) |
|
|
147
|
+
| Link | `text-text-link-default`, `-hover`, `-default-alt`, `-hover-alt`; prefer `Link` |
|
|
148
|
+
| Icon | `text-icon-` `primary`, `secondary`, `<status>`, `primary-alt`, `secondary-alt`, `primary-fixed`, `primary-alt-fixed`, `primary-disable`, `primary-alt-disable` |
|
|
149
|
+
| Surface | `bg-bg-page-bg`, `bg-bg-surface-1`…`5` |
|
|
150
|
+
| Neutral fill | `bg-bg-light-primary` < `bg-bg-primary` < `bg-bg-strong-primary` |
|
|
151
|
+
| Status fill | `bg-bg-light-<status>` < `bg-bg-<status>` < `bg-bg-strong-<status>`; solid `bg-bg-fill-<status>` |
|
|
152
|
+
| Border | `border-border-primary-light`, `-primary`, `-strong-primary`, `-<status>`, `-strong-<status>` |
|
|
153
|
+
| States | `bg-states-<family>-default-alt`, `-hover`, `-pressed`, `-active`; `bg-states-default-all` |
|
|
154
|
+
| Fill states | `overlay-states-on-fill-hover`, `-pressed`, `-disabled` (need `overlay`) |
|
|
155
|
+
| Focus | `ring-focus-primary`, `-brand`, `-destructive`; see [Focus](./focus.md) |
|
|
156
|
+
|
|
157
|
+
`<family>`: `primary`, `primary-alt`, or a `<status>`. `Text` `color`: `primary`, `primary-alt`, `secondary`, `secondary-alt`, `tertiary-alt`, `danger`, `inherit`. `Badge` `color`: `slate`, `gray`, `zinc`, `neutral`, `stone`, `red`, `w-orange`, `amber`, `yellow`, `lime`, `green`, `emerald`, `teal`, `cyan`, `sky`, `blue`, `indigo`, `violet`, `fuchsia`, `pink`, `rose`.
|