@block-auth.io/angular 0.4.0 → 0.4.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/fesm2022/block-auth.io-angular.mjs +9828 -0
- package/fesm2022/block-auth.io-angular.mjs.map +1 -0
- package/index.d.ts +1144 -0
- package/package.json +16 -37
- package/.turbo/turbo-build.log +0 -37
- package/.turbo/turbo-lint.log +0 -4
- package/.turbo/turbo-test.log +0 -1400
- package/.turbo/turbo-typecheck.log +0 -19
- package/CHANGELOG.md +0 -273
- package/ng-package.json +0 -6
- package/scripts/css-to-ts.mjs +0 -14
- package/src/lib/__tests__/integration.test.ts +0 -45
- package/src/lib/block-auth.service.test.ts +0 -69
- package/src/lib/block-auth.service.ts +0 -81
- package/src/lib/components/btns/btn-base-provider.component.test.ts +0 -36
- package/src/lib/components/btns/btn-base-provider.component.ts +0 -61
- package/src/lib/components/btns/btn-block-auth.component.test.ts +0 -105
- package/src/lib/components/btns/btn-block-auth.component.ts +0 -117
- package/src/lib/components/btns/btn-gmail.component.test.ts +0 -16
- package/src/lib/components/btns/btn-gmail.component.ts +0 -41
- package/src/lib/components/btns/btn-google-base.component.test.ts +0 -16
- package/src/lib/components/btns/btn-google-base.component.ts +0 -73
- package/src/lib/components/btns/btn-metamask.component.test.ts +0 -20
- package/src/lib/components/btns/btn-metamask.component.ts +0 -98
- package/src/lib/components/btns/btn-microsoft.component.test.ts +0 -16
- package/src/lib/components/btns/btn-microsoft.component.ts +0 -77
- package/src/lib/components/btns/btn-phantom.component.test.ts +0 -20
- package/src/lib/components/btns/btn-phantom.component.ts +0 -93
- package/src/lib/components/btns/btn-signin.component.test.ts +0 -55
- package/src/lib/components/btns/btn-signin.component.ts +0 -108
- package/src/lib/components/btns/btn-wallet-connect.component.test.ts +0 -20
- package/src/lib/components/btns/btn-wallet-connect.component.ts +0 -109
- package/src/lib/components/btns/index.ts +0 -11
- package/src/lib/components/contents/content-signin.component.test.ts +0 -33
- package/src/lib/components/contents/content-signin.component.ts +0 -68
- package/src/lib/components/contents/content-signup.component.test.ts +0 -86
- package/src/lib/components/contents/content-signup.component.ts +0 -222
- package/src/lib/components/dds/change-account.component.test.ts +0 -66
- package/src/lib/components/dds/change-account.component.ts +0 -112
- package/src/lib/components/dds/dropdown-profile-btn.component.test.ts +0 -66
- package/src/lib/components/dds/dropdown-profile-btn.component.ts +0 -172
- package/src/lib/components/dds/dropdown-profile-item.component.test.ts +0 -75
- package/src/lib/components/dds/dropdown-profile-item.component.ts +0 -74
- package/src/lib/components/dds/dropdown-profile.component.test.ts +0 -110
- package/src/lib/components/dds/dropdown-profile.component.ts +0 -264
- package/src/lib/components/flow-block-auth.component.test.ts +0 -95
- package/src/lib/components/flow-block-auth.component.ts +0 -228
- package/src/lib/components/modals/modal-overlay.component.test.ts +0 -81
- package/src/lib/components/modals/modal-overlay.component.ts +0 -43
- package/src/lib/components/modals/modal-restoration-expired.component.test.ts +0 -71
- package/src/lib/components/modals/modal-restoration-expired.component.ts +0 -83
- package/src/lib/components/modals/modal-restore.component.test.ts +0 -74
- package/src/lib/components/modals/modal-restore.component.ts +0 -104
- package/src/lib/components/modals/modal-signin.component.test.ts +0 -66
- package/src/lib/components/modals/modal-signin.component.ts +0 -44
- package/src/lib/components/modals/modal-signup.component.test.ts +0 -56
- package/src/lib/components/modals/modal-signup.component.ts +0 -40
- package/src/lib/components/sections/footer-section.component.test.ts +0 -19
- package/src/lib/components/sections/footer-section.component.ts +0 -49
- package/src/lib/components/sections/internals/providers-buttons.component.test.ts +0 -27
- package/src/lib/components/sections/internals/providers-buttons.component.ts +0 -280
- package/src/lib/components/sections/internals/providers-filters.component.test.ts +0 -25
- package/src/lib/components/sections/internals/providers-filters.component.ts +0 -139
- package/src/lib/components/sections/internals/selected-button.component.test.ts +0 -36
- package/src/lib/components/sections/internals/selected-button.component.ts +0 -92
- package/src/lib/components/sections/login-section.component.test.ts +0 -49
- package/src/lib/components/sections/login-section.component.ts +0 -119
- package/src/lib/components/sections/providers-section.component.test.ts +0 -22
- package/src/lib/components/sections/providers-section.component.ts +0 -187
- package/src/lib/components/txns/internals/permissions-required-modal.component.test.ts +0 -36
- package/src/lib/components/txns/internals/permissions-required-modal.component.ts +0 -43
- package/src/lib/components/txns/internals/phone-input.component.test.ts +0 -119
- package/src/lib/components/txns/internals/phone-input.component.ts +0 -301
- package/src/lib/components/txns/internals/solicited-data-modal.component.test.ts +0 -700
- package/src/lib/components/txns/internals/solicited-data-modal.component.ts +0 -430
- package/src/lib/components/txns/internals/txn-error.component.test.ts +0 -127
- package/src/lib/components/txns/internals/txn-error.component.ts +0 -144
- package/src/lib/components/txns/internals/txn-type.component.test.ts +0 -52
- package/src/lib/components/txns/internals/txn-type.component.ts +0 -51
- package/src/lib/components/txns/internals/txn.component.test.ts +0 -593
- package/src/lib/components/txns/internals/txn.component.ts +0 -453
- package/src/lib/components/txns/txns-overview.component.test.ts +0 -421
- package/src/lib/components/txns/txns-overview.component.ts +0 -461
- package/src/lib/icons/ai-outline-disconnect.component.ts +0 -21
- package/src/lib/icons/bi-logo-gmail.component.ts +0 -21
- package/src/lib/icons/cg-profile.component.ts +0 -31
- package/src/lib/icons/check-icon.component.ts +0 -27
- package/src/lib/icons/ci-clock2.component.ts +0 -31
- package/src/lib/icons/fa-arrow-right.component.ts +0 -21
- package/src/lib/icons/fa-times.component.ts +0 -21
- package/src/lib/icons/fa-undo.component.ts +0 -21
- package/src/lib/icons/icons.test.ts +0 -25
- package/src/lib/icons/index.ts +0 -22
- package/src/lib/icons/io-ios-arrow-back.component.ts +0 -21
- package/src/lib/icons/io-ios-arrow-forward.component.ts +0 -21
- package/src/lib/icons/io-md-arrow-back.component.ts +0 -19
- package/src/lib/icons/io-md-arrow-forward.component.ts +0 -19
- package/src/lib/icons/pi-warning-fill.component.ts +0 -21
- package/src/lib/icons/tb-arrows-exchange2.component.ts +0 -30
- package/src/lib/icons/tb-copy-check-filled.component.ts +0 -21
- package/src/lib/icons/tb-copy.component.ts +0 -34
- package/src/lib/icons/ti-vendor-microsoft.component.ts +0 -21
- package/src/lib/inject-store.test.ts +0 -26
- package/src/lib/inject-store.ts +0 -16
- package/src/lib/primitives/arrow-icon.component.test.ts +0 -25
- package/src/lib/primitives/arrow-icon.component.ts +0 -45
- package/src/lib/primitives/btn-arrow-dir.component.test.ts +0 -22
- package/src/lib/primitives/btn-arrow-dir.component.ts +0 -65
- package/src/lib/primitives/btn-base.component.test.ts +0 -38
- package/src/lib/primitives/btn-base.component.ts +0 -140
- package/src/lib/primitives/divider-base.component.test.ts +0 -12
- package/src/lib/primitives/divider-base.component.ts +0 -74
- package/src/lib/primitives/dropdown-arrow.component.test.ts +0 -12
- package/src/lib/primitives/dropdown-arrow.component.ts +0 -46
- package/src/lib/primitives/dropdown-base.component.test.ts +0 -49
- package/src/lib/primitives/dropdown-base.component.ts +0 -329
- package/src/lib/primitives/helpers.ts +0 -151
- package/src/lib/primitives/horizontal-loader.component.test.ts +0 -20
- package/src/lib/primitives/horizontal-loader.component.ts +0 -46
- package/src/lib/primitives/icon-base.component.test.ts +0 -19
- package/src/lib/primitives/icon-base.component.ts +0 -58
- package/src/lib/primitives/img-loader.component.test.ts +0 -22
- package/src/lib/primitives/img-loader.component.ts +0 -121
- package/src/lib/primitives/index.ts +0 -29
- package/src/lib/primitives/input-base.component.test.ts +0 -20
- package/src/lib/primitives/input-base.component.ts +0 -210
- package/src/lib/primitives/lifetime-slider-base.component.test.ts +0 -88
- package/src/lib/primitives/lifetime-slider-base.component.ts +0 -75
- package/src/lib/primitives/oval-spinner.component.test.ts +0 -17
- package/src/lib/primitives/oval-spinner.component.ts +0 -136
- package/src/lib/primitives/pickers/dropdown-picker-animated-base.component.ts +0 -220
- package/src/lib/primitives/pickers/picker-button.component.ts +0 -74
- package/src/lib/primitives/pickers/time-picker-dropdown-selector.component.ts +0 -188
- package/src/lib/primitives/pickers/time-picker.component.ts +0 -124
- package/src/lib/primitives/pickers/time-unit-selector.component.ts +0 -82
- package/src/lib/primitives/progressbar.component.test.ts +0 -34
- package/src/lib/primitives/progressbar.component.ts +0 -36
- package/src/lib/primitives/providersStyles.ts +0 -218
- package/src/lib/primitives/slider-base.component.ts +0 -56
- package/src/lib/provide-block-auth.test.ts +0 -43
- package/src/lib/provide-block-auth.ts +0 -43
- package/src/lib/runtime/block-auth-runtime.directive.test.ts +0 -89
- package/src/lib/runtime/block-auth-runtime.directive.ts +0 -68
- package/src/lib/teleport-body.directive.test.ts +0 -29
- package/src/lib/teleport-body.directive.ts +0 -21
- package/src/lib/testing.ts +0 -15
- package/src/lib/transitions.css +0 -19
- package/src/public-api.ts +0 -86
- package/src/vitest.setup.ts +0 -8
- package/tailwind.config.cjs +0 -6
- package/tsconfig.json +0 -15
- package/tsconfig.lib.json +0 -9
- package/vite.config.mts +0 -44
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
effect,
|
|
5
|
-
input,
|
|
6
|
-
output,
|
|
7
|
-
signal,
|
|
8
|
-
untracked,
|
|
9
|
-
} from '@angular/core';
|
|
10
|
-
import { getSecFromTimeValue } from '../helpers';
|
|
11
|
-
import { TimeUnitSelectorComponent } from './time-unit-selector.component';
|
|
12
|
-
|
|
13
|
-
export interface TimeArrays {
|
|
14
|
-
minRange: string[];
|
|
15
|
-
defaultRange: string[];
|
|
16
|
-
maxRange: string[];
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
// Selector de tiempo de tres columnas (horas/minutos/segundos) dentro del
|
|
20
|
-
// dropdown del picker, más el botón Guardar. `onChangeTimeUnit` reconcilia los
|
|
21
|
-
// rangos min/max a medida que el usuario cambia cada unidad (máximo total
|
|
22
|
-
// 29100s → 08:05:00); Guardar confía el tiempo elegido al padre como segundos
|
|
23
|
-
// totales vía el output `timeChanged`. Los `useState` de react -> signals; el
|
|
24
|
-
// `useEffect([defaultValues])` (reset) -> effect() que sólo trackea
|
|
25
|
-
// `defaultValues`. `:host { display: contents }`: el grid interno es el hijo
|
|
26
|
-
// real del contenedor del dropdown.
|
|
27
|
-
const range = (length: number, offset = 0): string[] =>
|
|
28
|
-
Array.from({ length }, (_, i) => String(i + offset).padStart(2, '0'));
|
|
29
|
-
|
|
30
|
-
const initialStates = {
|
|
31
|
-
hoursArray: range(8, 1),
|
|
32
|
-
minutesArrays: { minRange: range(50, 10), defaultRange: range(60), maxRange: range(41) },
|
|
33
|
-
secondsArrays: { minRange: range(50, 10), defaultRange: range(60), maxRange: range(1) },
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
@Component({
|
|
37
|
-
selector: 'ba-time-picker-dropdown-selector',
|
|
38
|
-
standalone: true,
|
|
39
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
40
|
-
host: { style: 'display: contents' },
|
|
41
|
-
imports: [TimeUnitSelectorComponent],
|
|
42
|
-
template: `
|
|
43
|
-
<div class="bas-grid bas-grid-rows-[232px_32px] bas-justify-center bas-gap-1 bas-py-1.5 bas-pl-2.5 bas-pr-1">
|
|
44
|
-
<div class="bas-grid bas-h-full bas-w-[136px] bas-grid-cols-3 bas-gap-0.5">
|
|
45
|
-
<ba-time-unit-selector
|
|
46
|
-
[id]="id()"
|
|
47
|
-
[timeUnitArray]="hoursArray()"
|
|
48
|
-
timeUnit="hours"
|
|
49
|
-
[selectedValue]="selectedValues()[0]"
|
|
50
|
-
[firstValue]="parseIntSafe(hoursArray()[0])"
|
|
51
|
-
(changeTimeUnit)="onChangeTimeUnit($event.timeUnit, $event.value)"
|
|
52
|
-
/>
|
|
53
|
-
<ba-time-unit-selector
|
|
54
|
-
[id]="id()"
|
|
55
|
-
[timeUnitArray]="minutesArray()"
|
|
56
|
-
timeUnit="minutes"
|
|
57
|
-
[selectedValue]="selectedValues()[1]"
|
|
58
|
-
[firstValue]="parseIntSafe(minutesArray()[0])"
|
|
59
|
-
(changeTimeUnit)="onChangeTimeUnit($event.timeUnit, $event.value)"
|
|
60
|
-
/>
|
|
61
|
-
<ba-time-unit-selector
|
|
62
|
-
[id]="id()"
|
|
63
|
-
[timeUnitArray]="secondsArray()"
|
|
64
|
-
timeUnit="seconds"
|
|
65
|
-
[selectedValue]="selectedValues()[2]"
|
|
66
|
-
[firstValue]="parseIntSafe(secondsArray()[0])"
|
|
67
|
-
(changeTimeUnit)="onChangeTimeUnit($event.timeUnit, $event.value)"
|
|
68
|
-
/>
|
|
69
|
-
</div>
|
|
70
|
-
<div class="bas-flex bas-items-center bas-justify-end bas-px-1.5">
|
|
71
|
-
<button
|
|
72
|
-
type="button"
|
|
73
|
-
[id]="id() + '-btn-save'"
|
|
74
|
-
class="bal-ba-transition-2 bas-cursor-pointer bas-rounded-md
|
|
75
|
-
bas-border-none bas-bg-[var(--bal-primary-300)] bas-px-1.5 bas-py-1
|
|
76
|
-
bas-text-sm bas-text-white hover:bas-bg-[#4d849b]
|
|
77
|
-
disabled:bas-cursor-not-allowed disabled:bas-opacity-50"
|
|
78
|
-
[disabled]="isBtnSaveDisabled()"
|
|
79
|
-
(click)="onSaveTimeBtnClicked()"
|
|
80
|
-
>
|
|
81
|
-
{{ btnSaveText() }}
|
|
82
|
-
</button>
|
|
83
|
-
</div>
|
|
84
|
-
</div>
|
|
85
|
-
`,
|
|
86
|
-
})
|
|
87
|
-
export class TimePickerDropdownSelectorComponent {
|
|
88
|
-
id = input('time-picker');
|
|
89
|
-
hoursArray = input<string[]>(initialStates.hoursArray);
|
|
90
|
-
minutesArrays = input<TimeArrays>(initialStates.minutesArrays);
|
|
91
|
-
secondsArrays = input<TimeArrays>(initialStates.secondsArrays);
|
|
92
|
-
defaultValues = input('08:05:00');
|
|
93
|
-
btnSaveText = input('Save');
|
|
94
|
-
|
|
95
|
-
timeChanged = output<number>();
|
|
96
|
-
toggleTimerDropdown = output<void>();
|
|
97
|
-
|
|
98
|
-
protected readonly minutesArray = signal<string[]>(initialStates.minutesArrays.defaultRange);
|
|
99
|
-
protected readonly secondsArray = signal<string[]>(initialStates.secondsArrays.defaultRange);
|
|
100
|
-
protected readonly selectedValues = signal<string[]>('08:05:00'.split(':'));
|
|
101
|
-
protected readonly isBtnSaveDisabled = signal(true);
|
|
102
|
-
private initialValues: string[] = '08:05:00'.split(':');
|
|
103
|
-
|
|
104
|
-
constructor() {
|
|
105
|
-
// Reset: sólo trackea defaultValues;
|
|
106
|
-
// el resto se lee sin tracking para no re-disparar en cascada.
|
|
107
|
-
effect(() => {
|
|
108
|
-
const defaultValues = this.defaultValues();
|
|
109
|
-
untracked(() => {
|
|
110
|
-
const splitted = defaultValues.split(':');
|
|
111
|
-
this.initialValues = [...splitted];
|
|
112
|
-
this.selectedValues.set([...splitted]);
|
|
113
|
-
this.isBtnSaveDisabled.set(true);
|
|
114
|
-
this.onChangeTimeUnit('hours', splitted[0], [...splitted], true);
|
|
115
|
-
});
|
|
116
|
-
});
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
parseIntSafe(v: string | undefined): number {
|
|
120
|
-
return parseInt(v ?? '0', 10) || 0;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
onChangeTimeUnit(
|
|
124
|
-
timeUnit: string,
|
|
125
|
-
newValue: string,
|
|
126
|
-
timeArrayValues: string[] = this.selectedValues(),
|
|
127
|
-
isDefaultTime = false,
|
|
128
|
-
): void {
|
|
129
|
-
const timeArray = [...timeArrayValues];
|
|
130
|
-
const hoursArray = this.hoursArray();
|
|
131
|
-
if (timeUnit === 'hours' || timeUnit === 'minutes') {
|
|
132
|
-
const minMinutesArray = this.minutesArrays().minRange;
|
|
133
|
-
const defaultMinutesArray = this.minutesArrays().defaultRange;
|
|
134
|
-
const maxMinutesArray = this.minutesArrays().maxRange;
|
|
135
|
-
const minSecondsArray = this.secondsArrays().minRange;
|
|
136
|
-
const defaultSecondsArray = this.secondsArrays().defaultRange;
|
|
137
|
-
const maxSecondsArray = this.secondsArrays().maxRange;
|
|
138
|
-
let newMinutesArray = defaultMinutesArray;
|
|
139
|
-
let newSecondsArray = defaultSecondsArray;
|
|
140
|
-
if (timeUnit === 'hours') timeArray[0] = newValue;
|
|
141
|
-
else timeArray[1] = newValue;
|
|
142
|
-
if (timeArray[0] === hoursArray[hoursArray.length - 1]) {
|
|
143
|
-
newMinutesArray = maxMinutesArray;
|
|
144
|
-
if (
|
|
145
|
-
!maxMinutesArray.includes(timeArray[1]) ||
|
|
146
|
-
timeArray[1] === maxMinutesArray[maxMinutesArray.length - 1]
|
|
147
|
-
) {
|
|
148
|
-
if (!maxMinutesArray.includes(timeArray[1])) {
|
|
149
|
-
timeArray[1] = maxMinutesArray[maxMinutesArray.length - 1];
|
|
150
|
-
}
|
|
151
|
-
newSecondsArray = maxSecondsArray;
|
|
152
|
-
if (!maxSecondsArray.includes(timeArray[2])) {
|
|
153
|
-
timeArray[2] = maxSecondsArray[maxSecondsArray.length - 1];
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
} else if (timeArray[0] === hoursArray[0]) {
|
|
157
|
-
newMinutesArray = minMinutesArray;
|
|
158
|
-
if (!minMinutesArray.includes(timeArray[1]) || timeArray[1] === minMinutesArray[0]) {
|
|
159
|
-
if (!minMinutesArray.includes(timeArray[1])) {
|
|
160
|
-
timeArray[1] = minMinutesArray[0];
|
|
161
|
-
}
|
|
162
|
-
newSecondsArray = minSecondsArray;
|
|
163
|
-
if (!minSecondsArray.includes(timeArray[2])) {
|
|
164
|
-
timeArray[2] = minSecondsArray[0];
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
}
|
|
168
|
-
this.minutesArray.set([...newMinutesArray]);
|
|
169
|
-
this.secondsArray.set([...newSecondsArray]);
|
|
170
|
-
} else timeArray[2] = newValue;
|
|
171
|
-
|
|
172
|
-
this.selectedValues.set([...timeArray]);
|
|
173
|
-
|
|
174
|
-
if (isDefaultTime) this.isBtnSaveDisabled.set(true);
|
|
175
|
-
else {
|
|
176
|
-
this.isBtnSaveDisabled.set(
|
|
177
|
-
timeArray.every((timeValue, index) => timeValue === this.initialValues[index]),
|
|
178
|
-
);
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
onSaveTimeBtnClicked(): void {
|
|
183
|
-
this.initialValues = this.selectedValues();
|
|
184
|
-
const newTimeValue = this.selectedValues().join(':');
|
|
185
|
-
this.timeChanged.emit(getSecFromTimeValue(newTimeValue));
|
|
186
|
-
this.toggleTimerDropdown.emit();
|
|
187
|
-
}
|
|
188
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, computed, input, output } from '@angular/core';
|
|
2
|
-
import { convertSecondsToTime, formatNumberToString } from '../helpers';
|
|
3
|
-
import { CiClock2Component } from '../../icons';
|
|
4
|
-
import { DropdownPickerAnimatedBaseComponent } from './dropdown-picker-animated-base.component';
|
|
5
|
-
import {
|
|
6
|
-
TimePickerDropdownSelectorComponent,
|
|
7
|
-
type TimeArrays,
|
|
8
|
-
} from './time-picker-dropdown-selector.component';
|
|
9
|
-
|
|
10
|
-
// Picker de tiempo `HH:MM:SS`. Construye los rangos de horas/minutos/segundos a
|
|
11
|
-
// partir de los límites `min`/`max` en segundos y los renderiza dentro del
|
|
12
|
-
// `<ba-dropdown-picker-animated-base>`. El label de Guardar llega por
|
|
13
|
-
// `btnSaveText`. El icono del reloj usa `<ba-ci-clock2>`.
|
|
14
|
-
// `:host { display: contents }`: el shell del picker es el hijo real del
|
|
15
|
-
// contenedor.
|
|
16
|
-
@Component({
|
|
17
|
-
selector: 'ba-time-picker',
|
|
18
|
-
standalone: true,
|
|
19
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
20
|
-
host: { style: 'display: contents' },
|
|
21
|
-
imports: [
|
|
22
|
-
DropdownPickerAnimatedBaseComponent,
|
|
23
|
-
TimePickerDropdownSelectorComponent,
|
|
24
|
-
CiClock2Component,
|
|
25
|
-
],
|
|
26
|
-
template: `
|
|
27
|
-
<ba-dropdown-picker-animated-base
|
|
28
|
-
[isOpen]="isOpen()"
|
|
29
|
-
[size]="size()"
|
|
30
|
-
[enableError]="enableError()"
|
|
31
|
-
[enableWhiteSpaces]="enableWhiteSpaces()"
|
|
32
|
-
[error]="error()"
|
|
33
|
-
[errorMessage]="errorMessage()"
|
|
34
|
-
[btnId]="id() + '-btn'"
|
|
35
|
-
[inputId]="id() + '-time-input'"
|
|
36
|
-
[inputValue]="timeInputValue()"
|
|
37
|
-
[container]="container()"
|
|
38
|
-
[exceptions]="exceptions()"
|
|
39
|
-
[width]="width()"
|
|
40
|
-
[isInsideModal]="isInsideModal()"
|
|
41
|
-
[modalId]="modalId()"
|
|
42
|
-
[dropdownDirection]="dropdownDirection()"
|
|
43
|
-
[classNames]="classNames()"
|
|
44
|
-
[btnZIndexClassNames]="btnZIndexClassNames()"
|
|
45
|
-
[dropdownZIndexClassNames]="dropdownZIndexClassNames()"
|
|
46
|
-
(isOpenChange)="isOpenChange.emit($event)"
|
|
47
|
-
(toggleDropdown)="toggleTimerDropdown.emit()"
|
|
48
|
-
>
|
|
49
|
-
<ba-ci-clock2
|
|
50
|
-
slot="icon"
|
|
51
|
-
class="bal-ba-transition-150 bas-h-6 bas-w-6 bas-cursor-pointer bas-text-[#468faf] hover:bas-text-[#014f86]"
|
|
52
|
-
/>
|
|
53
|
-
|
|
54
|
-
<ba-time-picker-dropdown-selector
|
|
55
|
-
[id]="id()"
|
|
56
|
-
[hoursArray]="hoursArray()"
|
|
57
|
-
[minutesArrays]="minutesArrays()"
|
|
58
|
-
[secondsArrays]="secondsArrays()"
|
|
59
|
-
[defaultValues]="timeInputValue()"
|
|
60
|
-
[btnSaveText]="btnSaveText()"
|
|
61
|
-
(timeChanged)="timeChanged.emit($event)"
|
|
62
|
-
(toggleTimerDropdown)="toggleTimerDropdown.emit()"
|
|
63
|
-
/>
|
|
64
|
-
</ba-dropdown-picker-animated-base>
|
|
65
|
-
`,
|
|
66
|
-
})
|
|
67
|
-
export class TimePickerComponent {
|
|
68
|
-
id = input('time-picker');
|
|
69
|
-
size = input<'xxs' | 'xs' | 'small' | 'base' | 'large'>('base');
|
|
70
|
-
isOpen = input(false);
|
|
71
|
-
min = input(10);
|
|
72
|
-
max = input(29100);
|
|
73
|
-
enableError = input(false);
|
|
74
|
-
enableWhiteSpaces = input(true);
|
|
75
|
-
error = input(false);
|
|
76
|
-
errorMessage = input('');
|
|
77
|
-
timeInputValue = input('01:00:00');
|
|
78
|
-
container = input<HTMLElement | null>(null);
|
|
79
|
-
exceptions = input<(HTMLElement | null)[]>([]);
|
|
80
|
-
btnSaveText = input('Save');
|
|
81
|
-
width = input<number | string>(152);
|
|
82
|
-
isInsideModal = input(false);
|
|
83
|
-
modalId = input('txns-overview');
|
|
84
|
-
dropdownDirection = input<'up' | 'down'>('down');
|
|
85
|
-
classNames = input('');
|
|
86
|
-
btnZIndexClassNames = input('bas-z-0');
|
|
87
|
-
dropdownZIndexClassNames = input('bas-z-50');
|
|
88
|
-
|
|
89
|
-
isOpenChange = output<boolean>();
|
|
90
|
-
toggleTimerDropdown = output<void>();
|
|
91
|
-
timeChanged = output<number>();
|
|
92
|
-
|
|
93
|
-
protected readonly hoursArray = computed(() =>
|
|
94
|
-
this.getHoursArray(this.min(), this.max()),
|
|
95
|
-
);
|
|
96
|
-
protected readonly minutesArrays = computed(() =>
|
|
97
|
-
this.getTimeArrays(this.min(), this.max(), 'minutes'),
|
|
98
|
-
);
|
|
99
|
-
protected readonly secondsArrays = computed(() =>
|
|
100
|
-
this.getTimeArrays(this.min(), this.max(), 'seconds'),
|
|
101
|
-
);
|
|
102
|
-
|
|
103
|
-
private getHoursArray(minSeconds: number, maxSeconds: number): string[] {
|
|
104
|
-
const minHours = convertSecondsToTime(minSeconds).hours;
|
|
105
|
-
const maxHours = convertSecondsToTime(maxSeconds).hours;
|
|
106
|
-
return Array.from({ length: maxHours - minHours + 1 }, (_, i) =>
|
|
107
|
-
formatNumberToString(i + minHours),
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
private getTimeArrays(
|
|
112
|
-
minSeconds: number,
|
|
113
|
-
maxSeconds: number,
|
|
114
|
-
timeType: 'minutes' | 'seconds',
|
|
115
|
-
): TimeArrays {
|
|
116
|
-
const minTime = convertSecondsToTime(minSeconds)[timeType];
|
|
117
|
-
const maxTime = convertSecondsToTime(maxSeconds)[timeType];
|
|
118
|
-
return {
|
|
119
|
-
minRange: Array.from({ length: 60 - minTime }, (_, i) => formatNumberToString(i + minTime)),
|
|
120
|
-
defaultRange: Array.from({ length: 60 }, (_, i) => formatNumberToString(i)),
|
|
121
|
-
maxRange: Array.from({ length: maxTime + 1 }, (_, i) => formatNumberToString(i)),
|
|
122
|
-
};
|
|
123
|
-
}
|
|
124
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ChangeDetectionStrategy,
|
|
3
|
-
Component,
|
|
4
|
-
ElementRef,
|
|
5
|
-
effect,
|
|
6
|
-
input,
|
|
7
|
-
output,
|
|
8
|
-
signal,
|
|
9
|
-
viewChild,
|
|
10
|
-
} from '@angular/core';
|
|
11
|
-
|
|
12
|
-
// Una columna scrolleable (horas | minutos | segundos) del time picker: al
|
|
13
|
-
// hacer click en un valor lo emite; la columna auto-scrollea para alinear el
|
|
14
|
-
// valor seleccionado arriba (fila de 32px). El `useState(hovered)` +
|
|
15
|
-
// `useEffect(scrollTop)` de react -> signal + effect. `onChangeTimeUnit`
|
|
16
|
-
// (callback prop) -> output `changeTimeUnit`.
|
|
17
|
-
// `:host { display: contents }`: el `<div>` scrolleable es el hijo real del
|
|
18
|
-
// grid de 3 columnas (como en react/vue).
|
|
19
|
-
@Component({
|
|
20
|
-
selector: 'ba-time-unit-selector',
|
|
21
|
-
standalone: true,
|
|
22
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
23
|
-
host: { style: 'display: contents' },
|
|
24
|
-
template: `
|
|
25
|
-
<div
|
|
26
|
-
#scrollableContainer
|
|
27
|
-
[id]="id() + '-' + timeUnit() + '-selector-container'"
|
|
28
|
-
[class]="
|
|
29
|
-
'bas-overflow-y-scroll bas-scroll-smooth ' +
|
|
30
|
-
(hovered() ? 'bal-ba-scroll-base' : 'bal-ba-no-scrollbar')
|
|
31
|
-
"
|
|
32
|
-
(mouseenter)="hovered.set(true)"
|
|
33
|
-
(mouseleave)="hovered.set(false)"
|
|
34
|
-
>
|
|
35
|
-
<div class="bas-flex bas-h-full bas-w-[38px] bas-flex-col">
|
|
36
|
-
@for (timeValue of timeUnitArray(); track $index) {
|
|
37
|
-
<button
|
|
38
|
-
type="button"
|
|
39
|
-
[id]="id() + '-' + timeUnit() + '-' + timeValue"
|
|
40
|
-
[class]="
|
|
41
|
-
'bal-ba-transition-150 bas-min-h-8 bas-flex bas-w-full bas-cursor-pointer ' +
|
|
42
|
-
'bas-items-center bas-justify-center bas-rounded-md bas-border-none ' +
|
|
43
|
-
'bas-text-sm bas-text-[--bal-primary-800] hover:bas-text-[--bal-primary-900] ' +
|
|
44
|
-
(selectedValue() === timeValue
|
|
45
|
-
? 'bas-bg-[#caf0f8]'
|
|
46
|
-
: 'bas-bg-transparent hover:bas-bg-[#e1f6fb]')
|
|
47
|
-
"
|
|
48
|
-
(click)="changeTimeUnit.emit({ timeUnit: timeUnit(), value: timeValue })"
|
|
49
|
-
>
|
|
50
|
-
<p class="bas-m-0">{{ timeValue }}</p>
|
|
51
|
-
</button>
|
|
52
|
-
}
|
|
53
|
-
<span class="bas-min-h-[200px] bas-w-full"></span>
|
|
54
|
-
</div>
|
|
55
|
-
</div>
|
|
56
|
-
`,
|
|
57
|
-
})
|
|
58
|
-
export class TimeUnitSelectorComponent {
|
|
59
|
-
id = input('time-picker');
|
|
60
|
-
timeUnitArray = input<string[]>([]);
|
|
61
|
-
timeUnit = input<'hours' | 'minutes' | 'seconds' | ''>('');
|
|
62
|
-
selectedValue = input('');
|
|
63
|
-
firstValue = input(0);
|
|
64
|
-
|
|
65
|
-
changeTimeUnit = output<{ timeUnit: string; value: string }>();
|
|
66
|
-
|
|
67
|
-
protected readonly hovered = signal(false);
|
|
68
|
-
private readonly scrollableContainer =
|
|
69
|
-
viewChild<ElementRef<HTMLDivElement>>('scrollableContainer');
|
|
70
|
-
|
|
71
|
-
constructor() {
|
|
72
|
-
// Alinea el valor seleccionado arriba (32px por fila).
|
|
73
|
-
effect(() => {
|
|
74
|
-
const selectedNumber = parseInt(this.selectedValue(), 10);
|
|
75
|
-
const firstNumber = Number(this.firstValue());
|
|
76
|
-
const el = this.scrollableContainer()?.nativeElement;
|
|
77
|
-
if (el && !Number.isNaN(selectedNumber)) {
|
|
78
|
-
el.scrollTop = 32 * (selectedNumber - firstNumber);
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect } from 'vitest';
|
|
2
|
-
import { render, screen } from '@testing-library/angular';
|
|
3
|
-
import { ProgressbarComponent } from './progressbar.component';
|
|
4
|
-
|
|
5
|
-
const nodeStates = () =>
|
|
6
|
-
Array.from(screen.getByTestId('progressbar').querySelectorAll('.bal-ba-stepper-node')).map((node) =>
|
|
7
|
-
node.getAttribute('data-state'),
|
|
8
|
-
);
|
|
9
|
-
|
|
10
|
-
describe('ProgressbarComponent', () => {
|
|
11
|
-
it.each([
|
|
12
|
-
[1, ['active', 'pending', 'pending']],
|
|
13
|
-
[2, ['done', 'active', 'pending']],
|
|
14
|
-
[3, ['done', 'done', 'active']],
|
|
15
|
-
] as const)('paso %i pinta cada nodo según el paso', async (step, states) => {
|
|
16
|
-
await render(ProgressbarComponent, { inputs: { step } });
|
|
17
|
-
const bar = screen.getByTestId('progressbar');
|
|
18
|
-
expect(bar.getAttribute('data-step')).toBe(String(step));
|
|
19
|
-
expect(bar.getAttribute('aria-valuenow')).toBe(String(step));
|
|
20
|
-
expect(nodeStates()).toEqual(states);
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
it('al volver del paso 3 al 2 no deja restos del paso 3', async () => {
|
|
24
|
-
const { rerender } = await render(ProgressbarComponent, { inputs: { step: 3 } });
|
|
25
|
-
await rerender({ inputs: { step: 2 }, partialUpdate: true });
|
|
26
|
-
expect(screen.getByTestId('progressbar').getAttribute('data-step')).toBe('2');
|
|
27
|
-
expect(nodeStates()).toEqual(['done', 'active', 'pending']);
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
it('un solo indicador de paso activo', async () => {
|
|
31
|
-
await render(ProgressbarComponent, { inputs: { step: 2 } });
|
|
32
|
-
expect(screen.getByTestId('progressbar').querySelectorAll('.bal-ba-stepper-indicator')).toHaveLength(1);
|
|
33
|
-
});
|
|
34
|
-
});
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, input } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
export type ProgressbarStep = 1 | 2 | 3;
|
|
4
|
-
|
|
5
|
-
@Component({
|
|
6
|
-
selector: 'ba-progressbar',
|
|
7
|
-
standalone: true,
|
|
8
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
9
|
-
template: `
|
|
10
|
-
<div
|
|
11
|
-
class="bal-ba-stepper"
|
|
12
|
-
[attr.data-step]="step()"
|
|
13
|
-
data-testid="progressbar"
|
|
14
|
-
role="progressbar"
|
|
15
|
-
aria-valuemin="1"
|
|
16
|
-
aria-valuemax="3"
|
|
17
|
-
[attr.aria-valuenow]="step()"
|
|
18
|
-
>
|
|
19
|
-
<span class="bal-ba-stepper-track">
|
|
20
|
-
<span class="bal-ba-stepper-fill"></span>
|
|
21
|
-
</span>
|
|
22
|
-
@for (node of steps; track node) {
|
|
23
|
-
<span
|
|
24
|
-
class="bal-ba-stepper-node"
|
|
25
|
-
[attr.data-state]="node < step() ? 'done' : node === step() ? 'active' : 'pending'"
|
|
26
|
-
></span>
|
|
27
|
-
}
|
|
28
|
-
<span class="bal-ba-stepper-indicator"></span>
|
|
29
|
-
</div>
|
|
30
|
-
`,
|
|
31
|
-
})
|
|
32
|
-
export class ProgressbarComponent {
|
|
33
|
-
step = input.required<ProgressbarStep>();
|
|
34
|
-
|
|
35
|
-
protected readonly steps: ProgressbarStep[] = [1, 2, 3];
|
|
36
|
-
}
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
// Port literal de packages/react/src/primitives/providersStyles.ts: mapa de
|
|
2
|
-
// estilos por provider, TS puro sin dependencias de React, copiado tal cual.
|
|
3
|
-
import { imgUrlByService } from './helpers';
|
|
4
|
-
|
|
5
|
-
export interface ProviderStyle {
|
|
6
|
-
/** Nombre para mostrar del provider. */
|
|
7
|
-
name: string;
|
|
8
|
-
/** Slug del provider. */
|
|
9
|
-
value: string;
|
|
10
|
-
/** URL del icono. */
|
|
11
|
-
imgSrc: string;
|
|
12
|
-
/** Color de fondo detrás del icono del provider en el loader. */
|
|
13
|
-
imgBgColor: string;
|
|
14
|
-
/** Color del loader (spinner). */
|
|
15
|
-
loaderColor: string;
|
|
16
|
-
/** Color base de marca. */
|
|
17
|
-
colorBase: string;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const providersStyles: Record<string, ProviderStyle> = {
|
|
21
|
-
blockauth: {
|
|
22
|
-
name: 'BlockAuth',
|
|
23
|
-
value: 'blockauth',
|
|
24
|
-
imgSrc: imgUrlByService('blockauth'),
|
|
25
|
-
imgBgColor: '#eff6ff',
|
|
26
|
-
loaderColor: '#1961a4',
|
|
27
|
-
colorBase: '#1961a4',
|
|
28
|
-
},
|
|
29
|
-
google: {
|
|
30
|
-
name: 'Google',
|
|
31
|
-
value: 'google',
|
|
32
|
-
imgSrc: imgUrlByService('google'),
|
|
33
|
-
imgBgColor: '#fef2f2',
|
|
34
|
-
loaderColor: '#ef4444',
|
|
35
|
-
colorBase: '#dc2626',
|
|
36
|
-
},
|
|
37
|
-
metamask: {
|
|
38
|
-
name: 'MetaMask',
|
|
39
|
-
value: 'metamask',
|
|
40
|
-
imgSrc: imgUrlByService('metamask'),
|
|
41
|
-
imgBgColor: '#fff7ed',
|
|
42
|
-
loaderColor: '#f97316',
|
|
43
|
-
colorBase: '#ea580c',
|
|
44
|
-
},
|
|
45
|
-
microsoft: {
|
|
46
|
-
name: 'Microsoft',
|
|
47
|
-
value: 'microsoft',
|
|
48
|
-
imgSrc: imgUrlByService('microsoft'),
|
|
49
|
-
imgBgColor: '#eff6ff',
|
|
50
|
-
loaderColor: '#106ebe',
|
|
51
|
-
colorBase: '#106ebe',
|
|
52
|
-
},
|
|
53
|
-
phantom: {
|
|
54
|
-
name: 'Phantom',
|
|
55
|
-
value: 'phantom',
|
|
56
|
-
imgSrc: imgUrlByService('phantom'),
|
|
57
|
-
imgBgColor: '#faf5ff',
|
|
58
|
-
loaderColor: '#9333ea',
|
|
59
|
-
colorBase: '#9333ea',
|
|
60
|
-
},
|
|
61
|
-
trustWallet: {
|
|
62
|
-
name: 'Trust Wallet',
|
|
63
|
-
value: 'trustwallet',
|
|
64
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/trust-wallet.png',
|
|
65
|
-
imgBgColor: '#f0f9ff',
|
|
66
|
-
loaderColor: '#0b69ff',
|
|
67
|
-
colorBase: '#0b69ff',
|
|
68
|
-
},
|
|
69
|
-
binance: {
|
|
70
|
-
name: 'Binance',
|
|
71
|
-
value: 'binance',
|
|
72
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/binance.png',
|
|
73
|
-
imgBgColor: '#f0f9ff',
|
|
74
|
-
loaderColor: '#0b69ff',
|
|
75
|
-
colorBase: '#0b69ff',
|
|
76
|
-
},
|
|
77
|
-
uniswap: {
|
|
78
|
-
name: 'Uniswap',
|
|
79
|
-
value: 'uniswap',
|
|
80
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/uniswap.png',
|
|
81
|
-
imgBgColor: '#f0f9ff',
|
|
82
|
-
loaderColor: '#0b69ff',
|
|
83
|
-
colorBase: '#0b69ff',
|
|
84
|
-
},
|
|
85
|
-
bitget: {
|
|
86
|
-
name: 'Bitget',
|
|
87
|
-
value: 'bitget',
|
|
88
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/bitget.png',
|
|
89
|
-
imgBgColor: '#f0f9ff',
|
|
90
|
-
loaderColor: '#0b69ff',
|
|
91
|
-
colorBase: '#0b69ff',
|
|
92
|
-
},
|
|
93
|
-
legder: {
|
|
94
|
-
name: 'Legder',
|
|
95
|
-
value: 'legder',
|
|
96
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/legder.png',
|
|
97
|
-
imgBgColor: '#f0f9ff',
|
|
98
|
-
loaderColor: '#0b69ff',
|
|
99
|
-
colorBase: '#0b69ff',
|
|
100
|
-
},
|
|
101
|
-
robinhood: {
|
|
102
|
-
name: 'Robinhood',
|
|
103
|
-
value: 'robinhood',
|
|
104
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/robinhood.png',
|
|
105
|
-
imgBgColor: '#f0f9ff',
|
|
106
|
-
loaderColor: '#0b69ff',
|
|
107
|
-
colorBase: '#0b69ff',
|
|
108
|
-
},
|
|
109
|
-
blockchaincom: {
|
|
110
|
-
name: 'Blockchain.com',
|
|
111
|
-
value: 'blockchaincom',
|
|
112
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/blockchaincom.png',
|
|
113
|
-
imgBgColor: '#f0f9ff',
|
|
114
|
-
loaderColor: '#0b69ff',
|
|
115
|
-
colorBase: '#0b69ff',
|
|
116
|
-
},
|
|
117
|
-
magiceden: {
|
|
118
|
-
name: 'Magic Eden',
|
|
119
|
-
value: 'magiceden',
|
|
120
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/magiceden.png',
|
|
121
|
-
imgBgColor: '#f0f9ff',
|
|
122
|
-
loaderColor: '#0b69ff',
|
|
123
|
-
colorBase: '#0b69ff',
|
|
124
|
-
},
|
|
125
|
-
kraken: {
|
|
126
|
-
name: 'Kraken',
|
|
127
|
-
value: 'kraken',
|
|
128
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/kraken.png',
|
|
129
|
-
imgBgColor: '#f0f9ff',
|
|
130
|
-
loaderColor: '#0b69ff',
|
|
131
|
-
colorBase: '#0b69ff',
|
|
132
|
-
},
|
|
133
|
-
coinbase: {
|
|
134
|
-
name: 'Coinbase',
|
|
135
|
-
value: 'coinbase',
|
|
136
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/coinbase.png',
|
|
137
|
-
imgBgColor: '#f0f9ff',
|
|
138
|
-
loaderColor: '#0b69ff',
|
|
139
|
-
colorBase: '#0b69ff',
|
|
140
|
-
},
|
|
141
|
-
enjin: {
|
|
142
|
-
name: 'Enjin',
|
|
143
|
-
value: 'enjin',
|
|
144
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/enjin.png',
|
|
145
|
-
imgBgColor: '#f0f9ff',
|
|
146
|
-
loaderColor: '#0b69ff',
|
|
147
|
-
colorBase: '#0b69ff',
|
|
148
|
-
},
|
|
149
|
-
coincircle: {
|
|
150
|
-
name: 'Coincircle',
|
|
151
|
-
value: 'coincircle',
|
|
152
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/coincircle.png',
|
|
153
|
-
imgBgColor: '#f0f9ff',
|
|
154
|
-
loaderColor: '#0b69ff',
|
|
155
|
-
colorBase: '#0b69ff',
|
|
156
|
-
},
|
|
157
|
-
crossmint: {
|
|
158
|
-
name: 'Crossmint',
|
|
159
|
-
value: 'crossmint',
|
|
160
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/crossmint.png',
|
|
161
|
-
imgBgColor: '#f0f9ff',
|
|
162
|
-
loaderColor: '#0b69ff',
|
|
163
|
-
colorBase: '#0b69ff',
|
|
164
|
-
},
|
|
165
|
-
ronin: {
|
|
166
|
-
name: 'Ronin',
|
|
167
|
-
value: 'ronin',
|
|
168
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/ronin.png',
|
|
169
|
-
imgBgColor: '#f0f9ff',
|
|
170
|
-
loaderColor: '#0b69ff',
|
|
171
|
-
colorBase: '#0b69ff',
|
|
172
|
-
},
|
|
173
|
-
thirdweb: {
|
|
174
|
-
name: 'Thirdweb',
|
|
175
|
-
value: 'thirdweb',
|
|
176
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/thirdweb.png',
|
|
177
|
-
imgBgColor: '#f0f9ff',
|
|
178
|
-
loaderColor: '#0b69ff',
|
|
179
|
-
colorBase: '#0b69ff',
|
|
180
|
-
},
|
|
181
|
-
wemix: {
|
|
182
|
-
name: 'Wemix',
|
|
183
|
-
value: 'wemix',
|
|
184
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/wemix.png',
|
|
185
|
-
imgBgColor: '#f0f9ff',
|
|
186
|
-
loaderColor: '#0b69ff',
|
|
187
|
-
colorBase: '#0b69ff',
|
|
188
|
-
},
|
|
189
|
-
bitbox: {
|
|
190
|
-
name: 'Bitbox',
|
|
191
|
-
value: 'bitbox',
|
|
192
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/bitbox.png',
|
|
193
|
-
imgBgColor: '#f0f9ff',
|
|
194
|
-
loaderColor: '#0b69ff',
|
|
195
|
-
colorBase: '#0b69ff',
|
|
196
|
-
},
|
|
197
|
-
moonpay: {
|
|
198
|
-
name: 'Moonpay',
|
|
199
|
-
value: 'moonpay',
|
|
200
|
-
imgSrc: 'https://dashboard.block-auth.io/img/providers/moonpay.png',
|
|
201
|
-
imgBgColor: '#f0f9ff',
|
|
202
|
-
loaderColor: '#0b69ff',
|
|
203
|
-
colorBase: '#0b69ff',
|
|
204
|
-
},
|
|
205
|
-
};
|
|
206
|
-
|
|
207
|
-
/** Etiquetas del panel editable, port literal de `editableTxts`. */
|
|
208
|
-
export const editableTxts: Record<string, { es: string; en: string }> = {
|
|
209
|
-
edit: { es: 'Editar', en: 'Edit' },
|
|
210
|
-
searchEngine: { es: 'Buscador', en: 'Search engine' },
|
|
211
|
-
webTypes: { es: 'Tipos de web', en: 'Web types' },
|
|
212
|
-
columns: { es: 'Columnas', en: 'Columns' },
|
|
213
|
-
order: { es: 'Orden', en: 'Order' },
|
|
214
|
-
activate: { es: 'Activar', en: 'Activate' },
|
|
215
|
-
providerName: { es: 'Nombre del provider', en: 'Provider name' },
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
export default providersStyles;
|