@luxfi/ui 5.6.0 → 6.1.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.
Files changed (155) hide show
  1. package/dist/components/Badge.d.ts.map +1 -0
  2. package/dist/components/Badge.js +91 -0
  3. package/dist/components/Button.d.ts.map +1 -0
  4. package/dist/components/Button.js +137 -0
  5. package/dist/components/Card.d.ts.map +1 -0
  6. package/dist/components/Card.js +86 -0
  7. package/dist/components/IconButton.d.ts.map +1 -0
  8. package/dist/components/IconButton.js +64 -0
  9. package/dist/components/Input.d.ts.map +1 -0
  10. package/dist/components/Input.js +71 -0
  11. package/dist/components/Modal.d.ts.map +1 -0
  12. package/dist/components/Modal.js +98 -0
  13. package/dist/components/Skeleton.d.ts.map +1 -0
  14. package/dist/components/Skeleton.js +44 -0
  15. package/dist/components/Spinner.d.ts.map +1 -0
  16. package/dist/components/Spinner.js +42 -0
  17. package/dist/components/Switch.d.ts.map +1 -0
  18. package/dist/components/Switch.js +10 -0
  19. package/dist/components/TokenLogo.d.ts.map +1 -0
  20. package/dist/components/TokenLogo.js +57 -0
  21. package/dist/components/Tooltip.d.ts.map +1 -0
  22. package/dist/components/Tooltip.js +34 -0
  23. package/dist/components/index.d.ts.map +1 -0
  24. package/dist/components/index.js +19 -0
  25. package/dist/index.d.ts.map +1 -0
  26. package/dist/index.js +35 -5618
  27. package/dist/theme/index.d.ts.map +1 -0
  28. package/dist/theme/index.js +6 -0
  29. package/dist/theme/themes.d.ts.map +1 -0
  30. package/dist/theme/themes.js +73 -0
  31. package/dist/theme/tokens.d.ts.map +1 -0
  32. package/dist/theme/tokens.js +101 -0
  33. package/package.json +81 -278
  34. package/dist/accordion.cjs +0 -213
  35. package/dist/accordion.js +0 -186
  36. package/dist/alert.cjs +0 -553
  37. package/dist/alert.js +0 -531
  38. package/dist/avatar.cjs +0 -149
  39. package/dist/avatar.js +0 -125
  40. package/dist/badge.cjs +0 -611
  41. package/dist/badge.js +0 -589
  42. package/dist/button.cjs +0 -689
  43. package/dist/button.js +0 -664
  44. package/dist/checkbox.cjs +0 -265
  45. package/dist/checkbox.js +0 -241
  46. package/dist/close-button.cjs +0 -73
  47. package/dist/close-button.js +0 -51
  48. package/dist/collapsible.cjs +0 -702
  49. package/dist/collapsible.js +0 -679
  50. package/dist/color-mode.cjs +0 -96
  51. package/dist/color-mode.js +0 -72
  52. package/dist/dialog.cjs +0 -279
  53. package/dist/dialog.js +0 -246
  54. package/dist/drawer.cjs +0 -207
  55. package/dist/drawer.js +0 -175
  56. package/dist/empty-state.cjs +0 -93
  57. package/dist/empty-state.js +0 -71
  58. package/dist/field.cjs +0 -183
  59. package/dist/field.js +0 -160
  60. package/dist/heading.cjs +0 -46
  61. package/dist/heading.js +0 -40
  62. package/dist/icon-button.cjs +0 -491
  63. package/dist/icon-button.js +0 -470
  64. package/dist/image.cjs +0 -572
  65. package/dist/image.js +0 -551
  66. package/dist/index.cjs +0 -5779
  67. package/dist/input-group.cjs +0 -155
  68. package/dist/input-group.js +0 -133
  69. package/dist/input.cjs +0 -65
  70. package/dist/input.js +0 -59
  71. package/dist/link.cjs +0 -630
  72. package/dist/link.js +0 -606
  73. package/dist/menu.cjs +0 -305
  74. package/dist/menu.js +0 -269
  75. package/dist/pin-input.cjs +0 -182
  76. package/dist/pin-input.js +0 -160
  77. package/dist/popover.cjs +0 -327
  78. package/dist/popover.js +0 -294
  79. package/dist/progress-circle.cjs +0 -152
  80. package/dist/progress-circle.js +0 -128
  81. package/dist/progress.cjs +0 -117
  82. package/dist/progress.js +0 -94
  83. package/dist/provider.cjs +0 -62
  84. package/dist/provider.js +0 -40
  85. package/dist/radio.cjs +0 -177
  86. package/dist/radio.js +0 -153
  87. package/dist/rating.cjs +0 -80
  88. package/dist/rating.js +0 -58
  89. package/dist/select.cjs +0 -791
  90. package/dist/select.js +0 -757
  91. package/dist/separator.cjs +0 -57
  92. package/dist/separator.js +0 -51
  93. package/dist/skeleton.cjs +0 -370
  94. package/dist/skeleton.js +0 -346
  95. package/dist/slider.cjs +0 -138
  96. package/dist/slider.js +0 -115
  97. package/dist/switch.cjs +0 -163
  98. package/dist/switch.js +0 -140
  99. package/dist/table.cjs +0 -1044
  100. package/dist/table.js +0 -1013
  101. package/dist/tabs.cjs +0 -240
  102. package/dist/tabs.js +0 -213
  103. package/dist/tag.cjs +0 -651
  104. package/dist/tag.js +0 -628
  105. package/dist/textarea.cjs +0 -65
  106. package/dist/textarea.js +0 -59
  107. package/dist/toaster.cjs +0 -99
  108. package/dist/toaster.js +0 -96
  109. package/dist/tooltip.cjs +0 -171
  110. package/dist/tooltip.js +0 -148
  111. package/dist/utils.cjs +0 -11
  112. package/dist/utils.js +0 -9
  113. package/src/accordion.tsx +0 -285
  114. package/src/alert.tsx +0 -221
  115. package/src/avatar.tsx +0 -174
  116. package/src/badge.tsx +0 -158
  117. package/src/button.tsx +0 -411
  118. package/src/checkbox.tsx +0 -307
  119. package/src/close-button.tsx +0 -51
  120. package/src/collapsible.tsx +0 -126
  121. package/src/color-mode.tsx +0 -125
  122. package/src/dialog.tsx +0 -356
  123. package/src/drawer.tsx +0 -186
  124. package/src/empty-state.tsx +0 -97
  125. package/src/field.tsx +0 -202
  126. package/src/heading.tsx +0 -55
  127. package/src/icon-button.tsx +0 -192
  128. package/src/image.tsx +0 -280
  129. package/src/index.ts +0 -192
  130. package/src/input-group.tsx +0 -159
  131. package/src/input.tsx +0 -60
  132. package/src/link.tsx +0 -326
  133. package/src/menu.tsx +0 -471
  134. package/src/pin-input.tsx +0 -187
  135. package/src/popover.tsx +0 -400
  136. package/src/progress-circle.tsx +0 -180
  137. package/src/progress.tsx +0 -109
  138. package/src/provider.tsx +0 -12
  139. package/src/radio.tsx +0 -175
  140. package/src/rating.tsx +0 -79
  141. package/src/select.tsx +0 -696
  142. package/src/separator.tsx +0 -59
  143. package/src/skeleton.tsx +0 -302
  144. package/src/slider.tsx +0 -152
  145. package/src/switch.tsx +0 -158
  146. package/src/table.tsx +0 -621
  147. package/src/tabs.tsx +0 -354
  148. package/src/tag.tsx +0 -159
  149. package/src/textarea.tsx +0 -60
  150. package/src/toaster.tsx +0 -117
  151. package/src/tokens.css +0 -438
  152. package/src/tooltip.tsx +0 -184
  153. package/src/utils/cn.ts +0 -7
  154. package/src/utils.ts +0 -6
  155. package/tokens.css +0 -438
package/src/field.tsx DELETED
@@ -1,202 +0,0 @@
1
- import * as LabelPrimitive from '@radix-ui/react-label';
2
- import * as React from 'react';
3
-
4
- import { cn } from './utils';
5
-
6
- import type { InputProps } from './input';
7
- import type { InputGroupProps } from './input-group';
8
-
9
- // Inline constants
10
- const space = String.fromCharCode(32);
11
-
12
- function getComponentDisplayName(type: string | React.JSXElementConstructor<unknown>): string | undefined {
13
- if (typeof type === 'string') return undefined;
14
- if ('displayName' in type) return type.displayName as string;
15
- return undefined;
16
- }
17
-
18
- export interface FieldProps {
19
- readonly label?: React.ReactNode;
20
- readonly helperText?: React.ReactNode;
21
- readonly errorText?: React.ReactNode;
22
- readonly optionalText?: React.ReactNode;
23
- readonly children: React.ReactElement<InputProps> | React.ReactElement<InputGroupProps>;
24
- readonly size?: 'sm' | 'md' | 'lg' | '2xl';
25
- readonly required?: boolean;
26
- readonly disabled?: boolean;
27
- readonly readOnly?: boolean;
28
- readonly invalid?: boolean;
29
- readonly floating?: boolean;
30
- readonly bgColor?: string | Record<string, string>;
31
- readonly id?: string;
32
- readonly className?: string;
33
- readonly style?: React.CSSProperties;
34
- }
35
-
36
- export const Field = React.forwardRef<HTMLDivElement, FieldProps>(
37
- function Field(props, ref) {
38
- const {
39
- label,
40
- children,
41
- helperText,
42
- errorText,
43
- optionalText,
44
- size,
45
- required,
46
- disabled,
47
- readOnly,
48
- invalid,
49
- floating,
50
- id,
51
- className,
52
- style,
53
- } = props;
54
-
55
- // A floating field cannot be without a label.
56
- if (floating && label) {
57
- const injectedProps = {
58
- className: 'peer',
59
- placeholder: ' ',
60
- size,
61
- floating,
62
- disabled,
63
- readOnly,
64
- };
65
-
66
- const labelElement = (
67
- <LabelPrimitive.Root
68
- className={ cn(
69
- 'absolute left-3 top-1/2 -translate-y-1/2',
70
- 'text-[var(--color-input-placeholder,theme(colors.gray.400))]',
71
- 'pointer-events-none select-none',
72
- 'origin-top-left transition-all duration-150',
73
- 'peer-focus:top-1 peer-focus:translate-y-0 peer-focus:scale-75',
74
- 'peer-[:not(:placeholder-shown)]:top-1 peer-[:not(:placeholder-shown)]:translate-y-0 peer-[:not(:placeholder-shown)]:scale-75',
75
- ) }
76
- htmlFor={ id }
77
- >
78
- { label }
79
- { required && (
80
- <span className="ml-0.5 text-[var(--color-fg-error,theme(colors.red.500))]" aria-hidden="true">*</span>
81
- ) }
82
- { !required && optionalText && (
83
- <span className="ml-1 text-[var(--color-text-secondary,theme(colors.gray.400))] text-sm">
84
- { optionalText }
85
- </span>
86
- ) }
87
- { errorText && (
88
- <span className="ml-0.5 text-[var(--color-fg-error,theme(colors.red.500))] text-sm">
89
- -{ space }{ errorText }
90
- </span>
91
- ) }
92
- </LabelPrimitive.Root>
93
- );
94
-
95
- const helperTextElement = helperText ? (
96
- <p className="mt-1.5 text-xs text-[var(--color-text-secondary,theme(colors.gray.400))]">
97
- { helperText }
98
- </p>
99
- ) : null;
100
-
101
- const child = React.Children.only<React.ReactElement<InputProps | InputGroupProps>>(children);
102
- const isInputGroup = getComponentDisplayName(child.type) === 'InputGroup';
103
-
104
- if (isInputGroup) {
105
- const inputElement = React.cloneElement(
106
- React.Children.only<React.ReactElement<InputProps>>(child.props.children as React.ReactElement<InputProps>),
107
- injectedProps,
108
- );
109
-
110
- const groupInputElement = React.cloneElement(child,
111
- {},
112
- inputElement,
113
- labelElement,
114
- );
115
-
116
- return (
117
- <div
118
- ref={ ref }
119
- id={ id }
120
- className={ cn('relative w-full', className) }
121
- style={ style }
122
- data-disabled={ disabled || undefined }
123
- data-readonly={ readOnly || undefined }
124
- data-invalid={ invalid || undefined }
125
- >
126
- { groupInputElement }
127
- { helperTextElement }
128
- </div>
129
- );
130
- }
131
-
132
- const inputElement = React.cloneElement(child, injectedProps);
133
-
134
- return (
135
- <div
136
- ref={ ref }
137
- id={ id }
138
- className={ cn('relative w-full', className) }
139
- style={ style }
140
- data-disabled={ disabled || undefined }
141
- data-readonly={ readOnly || undefined }
142
- data-invalid={ invalid || undefined }
143
- >
144
- { inputElement }
145
- { labelElement }
146
- { helperTextElement }
147
- </div>
148
- );
149
- }
150
-
151
- // Non-floating: standard field layout
152
- const injectedProps = {
153
- size,
154
- };
155
- const child = React.Children.only<React.ReactElement<InputProps | InputGroupProps>>(children);
156
- const clonedChild = React.cloneElement(child, injectedProps);
157
-
158
- return (
159
- <div
160
- ref={ ref }
161
- id={ id }
162
- className={ cn('flex flex-col gap-1', className) }
163
- style={ style }
164
- data-disabled={ disabled || undefined }
165
- data-readonly={ readOnly || undefined }
166
- data-invalid={ invalid || undefined }
167
- >
168
- { label && (
169
- <LabelPrimitive.Root
170
- className={ cn(
171
- 'text-sm font-medium text-[var(--color-field-label,theme(colors.gray.700))]',
172
- 'dark:text-[var(--color-field-label,theme(colors.gray.300))]',
173
- disabled && 'opacity-40',
174
- ) }
175
- htmlFor={ id }
176
- >
177
- { label }
178
- { required && (
179
- <span className="ml-0.5 text-[var(--color-fg-error,theme(colors.red.500))]" aria-hidden="true">*</span>
180
- ) }
181
- { !required && optionalText && (
182
- <span className="ml-1 text-[var(--color-text-secondary,theme(colors.gray.400))] text-sm font-normal">
183
- { optionalText }
184
- </span>
185
- ) }
186
- </LabelPrimitive.Root>
187
- ) }
188
- { clonedChild }
189
- { helperText && (
190
- <p className="text-xs text-[var(--color-text-secondary,theme(colors.gray.400))]">
191
- { helperText }
192
- </p>
193
- ) }
194
- { errorText && (
195
- <p className="text-xs text-[var(--color-fg-error,theme(colors.red.500))]">
196
- { errorText }
197
- </p>
198
- ) }
199
- </div>
200
- );
201
- },
202
- );
package/src/heading.tsx DELETED
@@ -1,55 +0,0 @@
1
- import React from 'react';
2
-
3
- import { cn } from './utils';
4
-
5
- export interface HeadingProps extends React.ComponentPropsWithoutRef<'h1'> {
6
- level?: '1' | '2' | '3';
7
- // Legacy Chakra style-prop shims
8
- mb?: number | string;
9
- size?: string;
10
- }
11
-
12
- const LEVEL_TAG = {
13
- '1': 'h1',
14
- '2': 'h2',
15
- '3': 'h3',
16
- } as const;
17
-
18
- // base (mobile) + lg (desktop) responsive text styles per level
19
- //
20
- // Level 1: heading.md -> heading.xl
21
- // base: 18px/24px font-500
22
- // lg: 32px/40px font-500 tracking=-0.5px
23
- //
24
- // Level 2: heading.sm -> heading.lg
25
- // base: 16px/24px font-500
26
- // lg: 24px/32px font-500
27
- //
28
- // Level 3: heading.xs -> heading.md
29
- // base: 14px/20px font-600
30
- // lg: 18px/24px font-500
31
- const LEVEL_CLASSES = {
32
- '1': 'text-[18px] leading-[24px] font-medium lg:text-[32px] lg:leading-[40px] lg:tracking-[-0.5px]',
33
- '2': 'text-[16px] leading-[24px] font-medium lg:text-[24px] lg:leading-[32px]',
34
- '3': 'text-[14px] leading-[20px] font-semibold lg:text-[18px] lg:leading-[24px] lg:font-medium',
35
- } as const;
36
-
37
- const BASE_CLASSES = 'font-heading text-heading';
38
-
39
- export const Heading = React.forwardRef<HTMLHeadingElement, HeadingProps>(
40
- function Heading({ level, className, mb, size: _size, style: styleProp, ...rest }, ref) {
41
- const Tag = level ? LEVEL_TAG[level] : 'h2';
42
- const levelClasses = level ? LEVEL_CLASSES[level] : undefined;
43
- const shimStyle: React.CSSProperties = { ...styleProp };
44
- if (mb !== undefined) shimStyle.marginBottom = typeof mb === 'number' ? `${ mb * 4 }px` : mb;
45
-
46
- return (
47
- <Tag
48
- ref={ ref }
49
- className={ cn(BASE_CLASSES, levelClasses, className) }
50
- style={ Object.keys(shimStyle).length > 0 ? shimStyle : undefined }
51
- { ...rest }
52
- />
53
- );
54
- },
55
- );
@@ -1,192 +0,0 @@
1
- import { cva } from 'class-variance-authority';
2
- import React from 'react';
3
-
4
- import { cn } from './utils';
5
-
6
- import { Skeleton } from './skeleton';
7
-
8
- /* -------------------------------------------------------------------------- */
9
- /* CVA variant definitions */
10
- /* -------------------------------------------------------------------------- */
11
-
12
- const iconButtonVariants = cva(
13
- // base
14
- [
15
- 'inline-flex items-center justify-center',
16
- 'p-0 min-w-auto shrink-0',
17
- 'cursor-pointer border-0 bg-transparent',
18
- 'disabled:opacity-[var(--opacity-control-disabled,0.4)] disabled:cursor-not-allowed',
19
- ],
20
- {
21
- variants: {
22
- variant: {
23
- plain: 'bg-transparent text-inherit border-none hover:bg-transparent',
24
- icon_secondary: [
25
- 'bg-transparent text-icon-secondary border-none',
26
- 'hover:text-hover',
27
- 'data-[selected]:bg-selected-control-bg data-[selected]:text-selected-control-text',
28
- 'data-[selected]:hover:text-hover',
29
- 'data-[expanded]:text-hover',
30
- ],
31
- icon_background: [
32
- 'bg-[var(--color-button-icon-background-bg)] text-icon-secondary border-none',
33
- 'hover:text-hover',
34
- 'data-[selected]:bg-selected-control-bg data-[selected]:text-selected-control-text',
35
- 'data-[selected]:hover:text-hover',
36
- 'data-[expanded]:text-hover',
37
- ],
38
- link: [
39
- 'bg-transparent text-link-primary border-none font-normal px-0 h-auto',
40
- 'hover:bg-transparent hover:text-link-primary-hover',
41
- 'disabled:text-text-secondary',
42
- ],
43
- dropdown: [
44
- 'border-2 border-solid bg-transparent',
45
- 'text-[var(--color-button-dropdown-fg)] border-[var(--color-button-dropdown-border)]',
46
- 'hover:bg-transparent hover:text-hover hover:border-hover',
47
- 'data-[expanded]:bg-transparent data-[expanded]:text-hover data-[expanded]:border-hover',
48
- 'data-[selected]:bg-selected-control-bg data-[selected]:text-selected-control-text data-[selected]:border-transparent',
49
- 'data-[selected]:hover:text-hover',
50
- ],
51
- pagination: [
52
- 'border-2 border-solid bg-transparent',
53
- 'text-[var(--color-button-pagination-fg)] border-[var(--color-button-pagination-border)]',
54
- 'hover:bg-transparent hover:text-hover hover:border-hover',
55
- 'data-[selected]:bg-selected-control-bg data-[selected]:text-selected-control-text data-[selected]:border-transparent',
56
- ],
57
- },
58
- size: {
59
- '2xs': 'size-5 rounded-sm [&_svg]:size-5',
60
- '2xs_alt': 'size-5 rounded-sm [&_svg]:size-3',
61
- md: 'size-8 rounded-[var(--radius-base,8px)] [&_svg]:size-5',
62
- },
63
- },
64
- defaultVariants: {
65
- variant: 'plain',
66
- },
67
- },
68
- );
69
-
70
- /* -------------------------------------------------------------------------- */
71
- /* Types */
72
- /* -------------------------------------------------------------------------- */
73
-
74
- type Variant = 'plain' | 'icon_secondary' | 'icon_background' | 'link' | 'dropdown' | 'pagination';
75
- type Size = '2xs' | '2xs_alt' | 'md';
76
-
77
- export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
78
-
79
- /** Visual variant */
80
- variant?: Variant;
81
-
82
- /** Icon-button size */
83
- size?: Size;
84
-
85
- /** Show a loading spinner (disables button) */
86
- loading?: boolean;
87
-
88
- /** Render a skeleton placeholder instead of the button */
89
- loadingSkeleton?: boolean;
90
-
91
- /** Maps to data-expanded for popover trigger styling */
92
- expanded?: boolean;
93
-
94
- /** Maps to data-selected for toggle styling */
95
- selected?: boolean;
96
-
97
- /** Maps to data-highlighted */
98
- highlighted?: boolean;
99
-
100
- /** Polymorphic element type (e.g. "div") */
101
- as?: React.ElementType;
102
-
103
- // Legacy Chakra style-prop shims
104
- boxSize?: number | string;
105
- color?: string;
106
- px?: string | number;
107
- borderRadius?: string;
108
- ml?: number | string;
109
- mr?: number | string;
110
- _hover?: Record<string, string>;
111
- _expanded?: Record<string, string>;
112
- }
113
-
114
- /* -------------------------------------------------------------------------- */
115
- /* Component */
116
- /* -------------------------------------------------------------------------- */
117
-
118
- export const IconButton = React.forwardRef<HTMLButtonElement, IconButtonProps>(
119
- function IconButton(props, ref) {
120
- const {
121
- size,
122
- variant = 'plain',
123
- loading,
124
- loadingSkeleton = false,
125
- expanded,
126
- selected,
127
- highlighted,
128
- disabled,
129
- className,
130
- children,
131
- as: Comp = 'button',
132
- style: styleProp,
133
- // Strip Chakra style props
134
- boxSize: _boxSize,
135
- color: _color,
136
- px: _px,
137
- borderRadius: _borderRadius,
138
- ml: _ml,
139
- mr: _mr,
140
- _hover,
141
- _expanded,
142
- ...rest
143
- } = props;
144
-
145
- const SP = 4;
146
- const shimStyle: React.CSSProperties = { ...styleProp };
147
- if (_boxSize !== undefined) {
148
- const bs = typeof _boxSize === 'number' ? `${ _boxSize * SP }px` : _boxSize;
149
- shimStyle.width = bs;
150
- shimStyle.height = bs;
151
- }
152
- if (_color) shimStyle.color = _color;
153
- if (_px !== undefined) {
154
- const v = typeof _px === 'number' ? `${ _px * SP }px` : _px;
155
- shimStyle.paddingLeft = v;
156
- shimStyle.paddingRight = v;
157
- }
158
- if (_borderRadius) shimStyle.borderRadius = _borderRadius;
159
- if (_ml !== undefined) shimStyle.marginLeft = typeof _ml === 'number' ? `${ _ml * SP }px` : _ml;
160
- if (_mr !== undefined) shimStyle.marginRight = typeof _mr === 'number' ? `${ _mr * SP }px` : _mr;
161
- const mergedBtnStyle = Object.keys(shimStyle).length > 0 ? shimStyle : undefined;
162
-
163
- const button = (
164
- <Comp
165
- ref={ ref }
166
- type={ Comp === 'button' ? 'button' : undefined }
167
- disabled={ !loadingSkeleton && (loading || disabled) }
168
- className={ cn(iconButtonVariants({ variant, size }), className) }
169
- style={ mergedBtnStyle }
170
- { ...(expanded ? { 'data-expanded': true } : {}) }
171
- { ...(selected ? { 'data-selected': true } : {}) }
172
- { ...(highlighted ? { 'data-highlighted': true } : {}) }
173
- { ...(loadingSkeleton ? { 'data-loading-skeleton': true } : {}) }
174
- { ...rest }
175
- >
176
- { loading ? (
177
- <span className="inline-block size-5 animate-spin rounded-full border-2 border-current border-b-transparent border-l-transparent"/>
178
- ) : children }
179
- </Comp>
180
- );
181
-
182
- if (loadingSkeleton) {
183
- return (
184
- <Skeleton loading={ loadingSkeleton } asChild ref={ ref as React.ForwardedRef<HTMLDivElement> }>
185
- { button }
186
- </Skeleton>
187
- );
188
- }
189
-
190
- return button;
191
- },
192
- );