You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
label: 'Lorem ipsum dolor sit amet, consectetur adipiscing elitLorem ipsum dolor sit amet, consectetur adipiscing elit',
68
+
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
69
+
tooltipProps: {
70
+
content: 'There is an error',
71
+
},
72
+
type: 'negative',
73
+
},
74
+
{
75
+
id: 'group-value-3',
76
+
label: 'Lorem ipsum dolor sit amet, consectetur adipiscing elitLorem ipsum dolor sit amet, consectetur adipiscing elit',
77
+
},
78
+
{
79
+
id: 'group-value-4',
80
+
label: 'Group Label 4',
81
+
},
82
+
{
83
+
id: 'group-value-5',
84
+
startIcon: {
85
+
name: 'ic-cube',
86
+
},
87
+
trailingItem: {
88
+
type: 'icon',
89
+
config: {
90
+
name: 'ic-cube',
91
+
},
92
+
},
93
+
tooltipProps: {
94
+
content: 'Tooltip content for value 5',
95
+
},
96
+
label: "Trailing Item: 'icon'",
97
+
description:
98
+
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga enim perspiciatis non praesentium itaque magni, animi doloremque ad beatae voluptas quasi repellat eveniet eaque culpa nemo dolorem, pariatur earum illo.',
99
+
},
100
+
],
101
+
},
102
+
{
103
+
items: [
104
+
{
105
+
id: 'value-2',
106
+
label: "Trailing Item: 'text'",
107
+
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
108
+
tooltipProps: {
109
+
content: 'There is an error',
110
+
},
111
+
trailingItem: {
112
+
type: 'text',
113
+
config: {
114
+
value: 'Label',
115
+
icon: {
116
+
name: 'ic-cube',
117
+
},
118
+
},
119
+
},
120
+
},
121
+
{
122
+
id: 'value-3',
123
+
label: "Trailing Item: 'text'",
124
+
trailingItem: {
125
+
type: 'text',
126
+
config: {
127
+
value: 'Label',
128
+
},
129
+
},
130
+
},
131
+
{
132
+
id: 'value-4',
133
+
label: "Trailing Item: 'switch'",
134
+
trailingItem: {
135
+
type: 'switch',
136
+
config: {
137
+
name: 'action-menu-switch',
138
+
ariaLabel: 'action-menu-switch',
139
+
dataTestId: 'action-menu-switch',
140
+
isChecked,
141
+
onChange: handleChange,
142
+
},
143
+
},
144
+
},
145
+
{
146
+
id: 'value-5',
147
+
startIcon: {
148
+
name: 'ic-cube',
149
+
},
150
+
trailingItem: {
151
+
type: 'counter',
152
+
config: {
153
+
value: 1,
154
+
},
155
+
},
156
+
tooltipProps: {
157
+
content: 'Tooltip content for value 5',
158
+
},
159
+
label: "Trailing Item: 'counter'",
160
+
description:
161
+
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga enim perspiciatis non praesentium itaque magni, animi doloremque ad beatae voluptas quasi repellat eveniet eaque culpa nemo dolorem, pariatur earum illo.',
label: 'Lorem ipsum dolor sit amet, consectetur adipiscing elitLorem ipsum dolor sit amet, consectetur adipiscing elit',
76
-
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
77
-
tooltipProps: {
78
-
content: 'There is an error',
79
-
},
80
-
type: 'negative',
81
-
},
82
-
{
83
-
id: 'group-value-3',
84
-
label: 'Lorem ipsum dolor sit amet, consectetur adipiscing elitLorem ipsum dolor sit amet, consectetur adipiscing elit',
85
-
},
86
-
{
87
-
id: 'group-value-4',
88
-
label: 'Group Label 4',
89
-
},
90
-
{
91
-
id: 'group-value-5',
92
-
startIcon: {
93
-
name: 'ic-cube',
94
-
},
95
-
endIcon: {
96
-
name: 'ic-cube',
97
-
},
98
-
tooltipProps: {
99
-
content: 'Tooltip content for value 5',
100
-
},
101
-
label: 'Group Label 5',
102
-
description:
103
-
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga enim perspiciatis non praesentium itaque magni, animi doloremque ad beatae voluptas quasi repellat eveniet eaque culpa nemo dolorem, pariatur earum illo.',
104
-
},
105
-
],
106
-
},
107
-
{
108
-
items: [
109
-
{
110
-
id: 'value-2',
111
-
label: 'Label 2',
112
-
description: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit',
113
-
tooltipProps: {
114
-
content: 'There is an error',
115
-
},
116
-
},
117
-
{
118
-
id: 'value-3',
119
-
label: 'Label 3',
120
-
},
121
-
{
122
-
id: 'value-4',
123
-
label: 'Label 4',
124
-
},
125
-
{
126
-
id: 'value-5',
127
-
startIcon: {
128
-
name: 'ic-cube',
129
-
},
130
-
endIcon: {
131
-
name: 'ic-cube',
132
-
},
133
-
tooltipProps: {
134
-
content: 'Tooltip content for value 5',
135
-
},
136
-
label: 'Label 5',
137
-
description:
138
-
'Lorem ipsum dolor sit amet consectetur adipisicing elit. Fuga enim perspiciatis non praesentium itaque magni, animi doloremque ad beatae voluptas quasi repellat eveniet eaque culpa nemo dolorem, pariatur earum illo.',
139
-
},
140
-
],
141
-
},
142
-
]
143
-
144
198
exportconstWithButtonElement: Story={
145
199
args: {
146
200
id: 'action-menu-with-button',
147
-
options,
148
201
position: 'bottom',
149
202
alignment: 'start',
150
203
disableDescriptionEllipsis: false,
@@ -160,7 +213,6 @@ export const WithButtonElement: Story = {
160
213
exportconstWithIconButtonElement: Story={
161
214
args: {
162
215
id: 'action-menu-with-icon-button',
163
-
options,
164
216
position: 'bottom',
165
217
alignment: 'start',
166
218
disableDescriptionEllipsis: false,
@@ -177,7 +229,6 @@ export const WithIconButtonElement: Story = {
0 commit comments