baseui 11.0.1 → 11.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.
- package/a11y/index.d.ts +1 -1
- package/accordion/index.d.ts +25 -28
- package/app-nav-bar/app-nav-bar.js +33 -40
- package/app-nav-bar/app-nav-bar.js.flow +46 -62
- package/app-nav-bar/index.d.ts +9 -8
- package/app-nav-bar/styled-components.js +49 -29
- package/app-nav-bar/styled-components.js.flow +25 -8
- package/app-nav-bar/types.js.flow +2 -0
- package/aspect-ratio-box/index.d.ts +2 -4
- package/avatar/index.d.ts +6 -12
- package/badge/badge.js +109 -0
- package/badge/badge.js.flow +91 -0
- package/badge/constants.js +54 -0
- package/badge/constants.js.flow +52 -0
- package/badge/hint-dot.js +96 -0
- package/badge/hint-dot.js.flow +68 -0
- package/badge/index.d.ts +97 -0
- package/badge/index.js +80 -0
- package/badge/index.js.flow +20 -0
- package/badge/notification-circle.js +103 -0
- package/badge/notification-circle.js.flow +81 -0
- package/badge/package.json +4 -0
- package/badge/styled-components.js +242 -0
- package/badge/styled-components.js.flow +325 -0
- package/badge/types.js +11 -0
- package/badge/types.js.flow +59 -0
- package/badge/utils.js +33 -0
- package/badge/utils.js.flow +23 -0
- package/banner/banner.js +283 -0
- package/banner/banner.js.flow +253 -0
- package/banner/constants.js +35 -0
- package/banner/constants.js.flow +33 -0
- package/banner/index.d.ts +75 -0
- package/banner/index.js +44 -0
- package/banner/index.js.flow +16 -0
- package/banner/package.json +4 -0
- package/banner/styled-components.js +131 -0
- package/banner/styled-components.js.flow +119 -0
- package/banner/types.js +11 -0
- package/banner/types.js.flow +66 -0
- package/block/index.d.ts +4 -4
- package/breadcrumbs/breadcrumbs.js +5 -1
- package/breadcrumbs/breadcrumbs.js.flow +2 -2
- package/breadcrumbs/index.d.ts +5 -5
- package/button/button.js +2 -1
- package/button/button.js.flow +1 -0
- package/button/index.d.ts +19 -29
- package/button-group/index.d.ts +18 -24
- package/card/index.d.ts +16 -14
- package/checkbox/index.d.ts +17 -21
- package/combobox/index.d.ts +7 -11
- package/data-table/index.d.ts +7 -10
- package/datepicker/calendar.js +16 -11
- package/datepicker/calendar.js.flow +12 -9
- package/datepicker/datepicker.js +58 -58
- package/datepicker/datepicker.js.flow +51 -34
- package/datepicker/index.d.ts +42 -63
- package/datepicker/stateful-calendar.js +6 -1
- package/datepicker/stateful-calendar.js.flow +8 -1
- package/datepicker/stateful-container.js +23 -2
- package/datepicker/stateful-container.js.flow +17 -4
- package/datepicker/stateful-datepicker.js +6 -1
- package/datepicker/stateful-datepicker.js.flow +7 -1
- package/datepicker/types.js.flow +21 -43
- package/datepicker/utils/date-helpers.js +1 -1
- package/datepicker/utils/date-helpers.js.flow +1 -1
- package/dnd-list/index.d.ts +22 -35
- package/drawer/index.d.ts +22 -27
- package/es/app-nav-bar/app-nav-bar.js +9 -19
- package/es/app-nav-bar/styled-components.js +32 -13
- package/es/badge/badge.js +70 -0
- package/es/badge/constants.js +42 -0
- package/es/badge/hint-dot.js +55 -0
- package/es/badge/index.js +11 -0
- package/es/badge/notification-circle.js +65 -0
- package/es/badge/styled-components.js +296 -0
- package/es/badge/types.js +8 -0
- package/es/badge/utils.js +17 -0
- package/es/banner/banner.js +213 -0
- package/es/banner/constants.js +24 -0
- package/es/banner/index.js +9 -0
- package/es/banner/styled-components.js +122 -0
- package/es/banner/types.js +8 -0
- package/es/breadcrumbs/breadcrumbs.js +5 -1
- package/es/button/button.js +1 -0
- package/es/datepicker/calendar.js +15 -10
- package/es/datepicker/datepicker.js +52 -52
- package/es/datepicker/stateful-calendar.js +6 -1
- package/es/datepicker/stateful-container.js +22 -2
- package/es/datepicker/stateful-datepicker.js +6 -1
- package/es/datepicker/utils/date-helpers.js +1 -1
- package/es/helper/helper-steps.js +3 -1
- package/es/input/base-input.js +18 -11
- package/es/input/input.js +15 -10
- package/es/input/masked-input.js +5 -2
- package/es/input/utils.js +4 -2
- package/es/locale/tr_TR.js +115 -0
- package/es/notification/notification.js +16 -1
- package/es/payment-card/custom-cards.config.js +22 -0
- package/es/payment-card/icons/uatp.js +52 -0
- package/es/payment-card/payment-card.js +8 -3
- package/es/popover/popover.js +2 -1
- package/es/popover/stateful-container.js +2 -0
- package/es/popover/styled-components.js +2 -1
- package/es/progress-steps/numbered-step.js +2 -2
- package/es/select/select-component.js +48 -23
- package/es/select/utils/default-filter-options.js +1 -1
- package/es/snackbar/snackbar-context.js +1 -1
- package/es/table-semantic/styled-components.js +14 -0
- package/es/table-semantic/table-builder.js +12 -5
- package/es/textarea/textarea.js +15 -9
- package/es/themes/dark-theme/color-component-tokens.js +8 -0
- package/es/themes/light-theme/color-component-tokens.js +8 -0
- package/es/tree-view/tree-label.js +9 -1
- package/esm/app-nav-bar/app-nav-bar.js +32 -38
- package/esm/app-nav-bar/styled-components.js +46 -28
- package/esm/badge/badge.js +97 -0
- package/esm/badge/constants.js +42 -0
- package/esm/badge/hint-dot.js +83 -0
- package/esm/badge/index.js +11 -0
- package/esm/badge/notification-circle.js +91 -0
- package/esm/badge/styled-components.js +235 -0
- package/esm/badge/types.js +8 -0
- package/esm/badge/utils.js +17 -0
- package/esm/banner/banner.js +271 -0
- package/esm/banner/constants.js +24 -0
- package/esm/banner/index.js +9 -0
- package/esm/banner/styled-components.js +113 -0
- package/esm/banner/types.js +8 -0
- package/esm/breadcrumbs/breadcrumbs.js +5 -1
- package/esm/button/button.js +2 -1
- package/esm/datepicker/calendar.js +16 -11
- package/esm/datepicker/datepicker.js +58 -58
- package/esm/datepicker/stateful-calendar.js +6 -1
- package/esm/datepicker/stateful-container.js +23 -2
- package/esm/datepicker/stateful-datepicker.js +6 -1
- package/esm/datepicker/utils/date-helpers.js +1 -1
- package/esm/helper/helper-steps.js +3 -1
- package/esm/input/base-input.js +18 -11
- package/esm/input/input.js +15 -10
- package/esm/input/masked-input.js +6 -3
- package/esm/input/utils.js +4 -2
- package/esm/locale/tr_TR.js +115 -0
- package/esm/notification/notification.js +17 -1
- package/esm/payment-card/custom-cards.config.js +22 -0
- package/esm/payment-card/icons/uatp.js +53 -0
- package/esm/payment-card/payment-card.js +9 -7
- package/esm/popover/popover.js +2 -1
- package/esm/popover/stateful-container.js +2 -0
- package/esm/popover/styled-components.js +3 -2
- package/esm/progress-steps/numbered-step.js +2 -2
- package/esm/select/select-component.js +85 -59
- package/esm/select/utils/default-filter-options.js +1 -1
- package/esm/snackbar/snackbar-context.js +1 -1
- package/esm/table-semantic/styled-components.js +31 -18
- package/esm/table-semantic/table-builder.js +34 -23
- package/esm/textarea/textarea.js +15 -9
- package/esm/themes/dark-theme/color-component-tokens.js +8 -0
- package/esm/themes/light-theme/color-component-tokens.js +8 -0
- package/esm/tree-view/tree-label.js +10 -2
- package/file-uploader/index.d.ts +11 -11
- package/flex-grid/index.d.ts +3 -3
- package/form-control/index.d.ts +7 -19
- package/header-navigation/index.d.ts +8 -9
- package/heading/index.d.ts +3 -4
- package/helper/helper-steps.js +19 -13
- package/helper/helper-steps.js.flow +3 -1
- package/helper/index.d.ts +7 -7
- package/helpers/base-provider.d.ts +16 -0
- package/helpers/overrides.d.ts +23 -0
- package/icon/index.d.ts +32 -32
- package/index.d.ts +34 -114
- package/input/base-input.js +18 -11
- package/input/base-input.js.flow +18 -6
- package/input/index.d.ts +29 -32
- package/input/input.js +15 -10
- package/input/input.js.flow +10 -5
- package/input/masked-input.js +6 -3
- package/input/masked-input.js.flow +3 -0
- package/input/types.js.flow +4 -0
- package/input/utils.js +4 -2
- package/input/utils.js.flow +2 -1
- package/layer/index.d.ts +6 -11
- package/layout-grid/index.d.ts +25 -7
- package/link/index.d.ts +2 -2
- package/list/index.d.ts +26 -31
- package/{locale.ts → locale/index.d.ts} +8 -0
- package/locale/tr_TR.js +123 -0
- package/locale/tr_TR.js.flow +124 -0
- package/map-marker/index.d.ts +41 -47
- package/menu/index.d.ts +27 -37
- package/modal/index.d.ts +28 -38
- package/notification/index.d.ts +2 -3
- package/notification/notification.js +18 -1
- package/notification/notification.js.flow +15 -1
- package/overrides.ts +2 -22
- package/package.json +26 -17
- package/pagination/index.d.ts +22 -26
- package/payment-card/custom-cards.config.js +30 -0
- package/payment-card/custom-cards.config.js.flow +29 -0
- package/payment-card/icons/uatp.js +67 -0
- package/payment-card/icons/uatp.js.flow +62 -0
- package/payment-card/index.d.ts +8 -8
- package/payment-card/payment-card.js +12 -7
- package/payment-card/payment-card.js.flow +12 -0
- package/phone-input/index.d.ts +261 -269
- package/pin-code/index.d.ts +11 -18
- package/popover/index.d.ts +39 -55
- package/popover/popover.js +2 -1
- package/popover/popover.js.flow +2 -1
- package/popover/stateful-container.js +2 -0
- package/popover/stateful-container.js.flow +2 -0
- package/popover/styled-components.js +3 -2
- package/popover/styled-components.js.flow +2 -1
- package/popover/types.js.flow +1 -0
- package/progress-bar/index.d.ts +11 -12
- package/progress-steps/index.d.ts +16 -16
- package/progress-steps/numbered-step.js.flow +2 -2
- package/radio/index.d.ts +12 -15
- package/rating/index.d.ts +9 -12
- package/select/index.d.ts +34 -36
- package/select/select-component.js +82 -56
- package/select/select-component.js.flow +46 -34
- package/select/types.js.flow +1 -0
- package/select/utils/default-filter-options.js +1 -1
- package/select/utils/default-filter-options.js.flow +1 -1
- package/side-navigation/index.d.ts +11 -13
- package/skeleton/index.d.ts +1 -1
- package/slider/index.d.ts +17 -26
- package/snackbar/index.d.ts +8 -8
- package/snackbar/snackbar-context.js +1 -1
- package/snackbar/snackbar-context.js.flow +1 -1
- package/spinner/index.d.ts +4 -3
- package/styles/index.d.ts +82 -2
- package/table/index.d.ts +16 -16
- package/table-grid/index.d.ts +6 -8
- package/table-semantic/index.d.ts +26 -32
- package/table-semantic/styled-components.js +33 -19
- package/table-semantic/styled-components.js.flow +12 -0
- package/table-semantic/table-builder.js +38 -22
- package/table-semantic/table-builder.js.flow +32 -17
- package/table-semantic/types.js.flow +1 -0
- package/tabs/index.d.ts +20 -23
- package/tabs-motion/index.d.ts +23 -23
- package/tag/index.d.ts +14 -18
- package/tag/types.js.flow +1 -1
- package/textarea/index.d.ts +11 -14
- package/textarea/textarea.js +15 -9
- package/textarea/textarea.js.flow +11 -5
- package/textarea/types.js.flow +1 -0
- package/theme.ts +36 -777
- package/themes/dark-theme/color-component-tokens.js +8 -0
- package/themes/dark-theme/color-component-tokens.js.flow +9 -0
- package/themes/index.d.ts +765 -0
- package/themes/light-theme/color-component-tokens.js +8 -0
- package/themes/light-theme/color-component-tokens.js.flow +9 -0
- package/themes/types.js.flow +9 -0
- package/timepicker/index.d.ts +5 -8
- package/timezonepicker/index.d.ts +5 -8
- package/toast/index.d.ts +26 -40
- package/tokens/index.d.ts +1 -1
- package/tooltip/index.d.ts +7 -9
- package/tree-view/index.d.ts +15 -19
- package/tree-view/tree-label.js +10 -2
- package/tree-view/tree-label.js.flow +4 -4
- package/typography/index.d.ts +37 -37
package/locale/tr_TR.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
Copyright (c) Uber Technologies, Inc.
|
|
10
|
+
|
|
11
|
+
This source code is licensed under the MIT license found in the
|
|
12
|
+
LICENSE file in the root directory of this source tree.
|
|
13
|
+
*/
|
|
14
|
+
var _default = {
|
|
15
|
+
accordion: {
|
|
16
|
+
collapse: 'Daralt',
|
|
17
|
+
expand: 'Genişlet'
|
|
18
|
+
},
|
|
19
|
+
breadcrumbs: {
|
|
20
|
+
ariaLabel: 'Navigasyon'
|
|
21
|
+
},
|
|
22
|
+
datepicker: {
|
|
23
|
+
ariaLabel: 'Bir tarih seçin.',
|
|
24
|
+
ariaLabelRange: 'Bir tarih aralığı seçin',
|
|
25
|
+
ariaLabelCalendar: 'Takvim',
|
|
26
|
+
ariaRoleDescriptionCalendarMonth: 'Aylık Takvim',
|
|
27
|
+
previousMonth: 'Geçtiğimiz ay.',
|
|
28
|
+
nextMonth: 'Gelecek ay.',
|
|
29
|
+
pastWeek: 'Geçen Hafta',
|
|
30
|
+
pastMonth: 'Geçen Ay',
|
|
31
|
+
pastThreeMonths: 'Son 3 Ay',
|
|
32
|
+
pastSixMonths: 'Son 6 Ay',
|
|
33
|
+
pastYear: 'Geçen Yıl',
|
|
34
|
+
pastTwoYears: 'Son 2 Yıl',
|
|
35
|
+
screenReaderMessageInput: 'Takvimle etkileşim kurmak ve bir tarih seçmek için aşağı ok tuşuna basın. Takvimi kapatmak için kaçış (ESC) düğmesine basın.',
|
|
36
|
+
selectedDate: 'Seçilen tarih ${date}.',
|
|
37
|
+
selectedDateRange: 'Seçilen tarih aralığı ${startDate} ile ${endDate} arasındadır.',
|
|
38
|
+
selectSecondDatePrompt: 'İkinci tarihi seçin.',
|
|
39
|
+
quickSelectLabel: 'Bir tarih aralığı seçin',
|
|
40
|
+
quickSelectAriaLabel: 'Bir tarih aralığı seçin',
|
|
41
|
+
quickSelectPlaceholder: 'Hiçbiri',
|
|
42
|
+
timeSelectEndLabel: 'Bitiş zamanı',
|
|
43
|
+
timeSelectStartLabel: 'Başlangıç zamanı',
|
|
44
|
+
timePickerAriaLabel12Hour: 'Bir zaman seçin, 12-saat formatında.',
|
|
45
|
+
timePickerAriaLabel24Hour: 'Bir zaman seçin, 24-saat formatında.',
|
|
46
|
+
timezonePickerAriaLabel: 'Bir saat dilimi seçin.',
|
|
47
|
+
selectedStartDateLabel: 'Seçilen başlangıç tarihi.',
|
|
48
|
+
selectedEndDateLabel: 'Seçilen bitiş tarihi.',
|
|
49
|
+
dateNotAvailableLabel: 'Kullanılabilir değil.',
|
|
50
|
+
dateAvailableLabel: 'Kullanılabilir.',
|
|
51
|
+
selectedLabel: 'Seçildi.',
|
|
52
|
+
chooseLabel: 'Seç'
|
|
53
|
+
},
|
|
54
|
+
datatable: {
|
|
55
|
+
emptyState: 'Tanımlanan filtre kriterleriyle eşleşen satır yok. Daha fazla veri görüntülemek için lütfen bir veya daha fazla filtreyi kaldırın.',
|
|
56
|
+
loadingState: 'Satır yükleniyor.',
|
|
57
|
+
searchAriaLabel: 'Metne göre ara',
|
|
58
|
+
filterAdd: 'Filtre Ekle',
|
|
59
|
+
filterExclude: 'Dahil etme',
|
|
60
|
+
filterApply: 'Uygula',
|
|
61
|
+
filterExcludeRange: 'Exclude range',
|
|
62
|
+
filterExcludeValue: 'Exclude value',
|
|
63
|
+
filterAppliedTo: 'uygulanan filtre',
|
|
64
|
+
optionsLabel: 'Filtrelenecek sütunu seçin',
|
|
65
|
+
optionsSearch: 'Filtrelemek için bir sütun arayın...',
|
|
66
|
+
optionsEmpty: 'Sütun yok.',
|
|
67
|
+
categoricalFilterSelectAll: 'Tümünü Seç',
|
|
68
|
+
categoricalFilterSelectClear: 'Temizle',
|
|
69
|
+
categoricalFilterEmpty: 'Kategori bulunamadı',
|
|
70
|
+
datetimeFilterRange: 'Aralık',
|
|
71
|
+
datetimeFilterRangeDatetime: 'Tarih, Zaman',
|
|
72
|
+
datetimeFilterRangeDate: 'Tarih',
|
|
73
|
+
datetimeFilterRangeTime: 'Zaman',
|
|
74
|
+
datetimeFilterCategorical: 'Kategorik',
|
|
75
|
+
datetimeFilterCategoricalWeekday: 'Hafta içi',
|
|
76
|
+
datetimeFilterCategoricalMonth: 'Ay',
|
|
77
|
+
datetimeFilterCategoricalQuarter: 'Çeyrek',
|
|
78
|
+
datetimeFilterCategoricalHalf: 'Yarım',
|
|
79
|
+
datetimeFilterCategoricalFirstHalf: 'H1',
|
|
80
|
+
datetimeFilterCategoricalSecondHalf: 'H2',
|
|
81
|
+
datetimeFilterCategoricalYear: 'Yıl',
|
|
82
|
+
numericalFilterRange: 'Aralık',
|
|
83
|
+
numericalFilterSingleValue: 'Single Value',
|
|
84
|
+
booleanFilterTrue: 'doğru',
|
|
85
|
+
booleanFilterFalse: 'yanlış',
|
|
86
|
+
booleanColumnTrueShort: 'D',
|
|
87
|
+
booleanColumnFalseShort: 'Y'
|
|
88
|
+
},
|
|
89
|
+
buttongroup: {
|
|
90
|
+
ariaLabel: 'buton grup'
|
|
91
|
+
},
|
|
92
|
+
fileuploader: {
|
|
93
|
+
dropFilesToUpload: 'Dosyaları yüklemek için buraya bırakın...',
|
|
94
|
+
or: '',
|
|
95
|
+
browseFiles: 'Dosyalara göz atın',
|
|
96
|
+
retry: 'Yüklemeyi Yeniden Dene',
|
|
97
|
+
cancel: 'İptal'
|
|
98
|
+
},
|
|
99
|
+
menu: {
|
|
100
|
+
noResultsMsg: 'Sonuç yok',
|
|
101
|
+
parentMenuItemAriaLabel: 'Şu anda iç içe bir liste kutusu açan bir öğedesiniz. Bu öğeye girmek için sağ ok ve geri dönmek için sol ok tuşuna basın.'
|
|
102
|
+
},
|
|
103
|
+
modal: {
|
|
104
|
+
close: 'Kapat'
|
|
105
|
+
},
|
|
106
|
+
drawer: {
|
|
107
|
+
close: 'Kapat'
|
|
108
|
+
},
|
|
109
|
+
pagination: {
|
|
110
|
+
prev: 'Önceki',
|
|
111
|
+
next: 'Sonraki',
|
|
112
|
+
preposition: 'nın'
|
|
113
|
+
},
|
|
114
|
+
select: {
|
|
115
|
+
noResultsMsg: 'Sonuç bulunamadı',
|
|
116
|
+
placeholder: 'Seç...',
|
|
117
|
+
create: 'Oluştur'
|
|
118
|
+
},
|
|
119
|
+
toast: {
|
|
120
|
+
close: 'Kapat'
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
exports.default = _default;
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright (c) Uber Technologies, Inc.
|
|
3
|
+
|
|
4
|
+
This source code is licensed under the MIT license found in the
|
|
5
|
+
LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
// @flow
|
|
8
|
+
|
|
9
|
+
export default {
|
|
10
|
+
accordion: {
|
|
11
|
+
collapse: 'Daralt',
|
|
12
|
+
expand: 'Genişlet',
|
|
13
|
+
},
|
|
14
|
+
breadcrumbs: {
|
|
15
|
+
ariaLabel: 'Navigasyon',
|
|
16
|
+
},
|
|
17
|
+
datepicker: {
|
|
18
|
+
ariaLabel: 'Bir tarih seçin.',
|
|
19
|
+
ariaLabelRange: 'Bir tarih aralığı seçin',
|
|
20
|
+
ariaLabelCalendar: 'Takvim',
|
|
21
|
+
ariaRoleDescriptionCalendarMonth: 'Aylık Takvim',
|
|
22
|
+
previousMonth: 'Geçtiğimiz ay.',
|
|
23
|
+
nextMonth: 'Gelecek ay.',
|
|
24
|
+
pastWeek: 'Geçen Hafta',
|
|
25
|
+
pastMonth: 'Geçen Ay',
|
|
26
|
+
pastThreeMonths: 'Son 3 Ay',
|
|
27
|
+
pastSixMonths: 'Son 6 Ay',
|
|
28
|
+
pastYear: 'Geçen Yıl',
|
|
29
|
+
pastTwoYears: 'Son 2 Yıl',
|
|
30
|
+
screenReaderMessageInput:
|
|
31
|
+
'Takvimle etkileşim kurmak ve bir tarih seçmek için aşağı ok tuşuna basın. Takvimi kapatmak için kaçış (ESC) düğmesine basın.',
|
|
32
|
+
selectedDate: 'Seçilen tarih ${date}.',
|
|
33
|
+
selectedDateRange: 'Seçilen tarih aralığı ${startDate} ile ${endDate} arasındadır.',
|
|
34
|
+
selectSecondDatePrompt: 'İkinci tarihi seçin.',
|
|
35
|
+
quickSelectLabel: 'Bir tarih aralığı seçin',
|
|
36
|
+
quickSelectAriaLabel: 'Bir tarih aralığı seçin',
|
|
37
|
+
quickSelectPlaceholder: 'Hiçbiri',
|
|
38
|
+
timeSelectEndLabel: 'Bitiş zamanı',
|
|
39
|
+
timeSelectStartLabel: 'Başlangıç zamanı',
|
|
40
|
+
timePickerAriaLabel12Hour: 'Bir zaman seçin, 12-saat formatında.',
|
|
41
|
+
timePickerAriaLabel24Hour: 'Bir zaman seçin, 24-saat formatında.',
|
|
42
|
+
timezonePickerAriaLabel: 'Bir saat dilimi seçin.',
|
|
43
|
+
selectedStartDateLabel: 'Seçilen başlangıç tarihi.',
|
|
44
|
+
selectedEndDateLabel: 'Seçilen bitiş tarihi.',
|
|
45
|
+
dateNotAvailableLabel: 'Kullanılabilir değil.',
|
|
46
|
+
dateAvailableLabel: 'Kullanılabilir.',
|
|
47
|
+
selectedLabel: 'Seçildi.',
|
|
48
|
+
chooseLabel: 'Seç',
|
|
49
|
+
},
|
|
50
|
+
datatable: {
|
|
51
|
+
emptyState:
|
|
52
|
+
'Tanımlanan filtre kriterleriyle eşleşen satır yok. Daha fazla veri görüntülemek için lütfen bir veya daha fazla filtreyi kaldırın.',
|
|
53
|
+
loadingState: 'Satır yükleniyor.',
|
|
54
|
+
searchAriaLabel: 'Metne göre ara',
|
|
55
|
+
filterAdd: 'Filtre Ekle',
|
|
56
|
+
filterExclude: 'Dahil etme',
|
|
57
|
+
filterApply: 'Uygula',
|
|
58
|
+
filterExcludeRange: 'Exclude range',
|
|
59
|
+
filterExcludeValue: 'Exclude value',
|
|
60
|
+
filterAppliedTo: 'uygulanan filtre',
|
|
61
|
+
optionsLabel: 'Filtrelenecek sütunu seçin',
|
|
62
|
+
optionsSearch: 'Filtrelemek için bir sütun arayın...',
|
|
63
|
+
optionsEmpty: 'Sütun yok.',
|
|
64
|
+
categoricalFilterSelectAll: 'Tümünü Seç',
|
|
65
|
+
categoricalFilterSelectClear: 'Temizle',
|
|
66
|
+
categoricalFilterEmpty: 'Kategori bulunamadı',
|
|
67
|
+
datetimeFilterRange: 'Aralık',
|
|
68
|
+
datetimeFilterRangeDatetime: 'Tarih, Zaman',
|
|
69
|
+
datetimeFilterRangeDate: 'Tarih',
|
|
70
|
+
datetimeFilterRangeTime: 'Zaman',
|
|
71
|
+
datetimeFilterCategorical: 'Kategorik',
|
|
72
|
+
datetimeFilterCategoricalWeekday: 'Hafta içi',
|
|
73
|
+
datetimeFilterCategoricalMonth: 'Ay',
|
|
74
|
+
datetimeFilterCategoricalQuarter: 'Çeyrek',
|
|
75
|
+
datetimeFilterCategoricalHalf: 'Yarım',
|
|
76
|
+
datetimeFilterCategoricalFirstHalf: 'H1',
|
|
77
|
+
datetimeFilterCategoricalSecondHalf: 'H2',
|
|
78
|
+
datetimeFilterCategoricalYear: 'Yıl',
|
|
79
|
+
numericalFilterRange: 'Aralık',
|
|
80
|
+
numericalFilterSingleValue: 'Single Value',
|
|
81
|
+
booleanFilterTrue: 'doğru',
|
|
82
|
+
booleanFilterFalse: 'yanlış',
|
|
83
|
+
booleanColumnTrueShort: 'D',
|
|
84
|
+
booleanColumnFalseShort: 'Y',
|
|
85
|
+
},
|
|
86
|
+
buttongroup: {
|
|
87
|
+
ariaLabel: 'buton grup',
|
|
88
|
+
},
|
|
89
|
+
fileuploader: {
|
|
90
|
+
dropFilesToUpload: 'Dosyaları yüklemek için buraya bırakın...',
|
|
91
|
+
or: '',
|
|
92
|
+
browseFiles: 'Dosyalara göz atın',
|
|
93
|
+
retry: 'Yüklemeyi Yeniden Dene',
|
|
94
|
+
cancel: 'İptal',
|
|
95
|
+
},
|
|
96
|
+
menu: {
|
|
97
|
+
noResultsMsg: 'Sonuç yok',
|
|
98
|
+
parentMenuItemAriaLabel:
|
|
99
|
+
'Şu anda iç içe bir liste kutusu açan bir öğedesiniz. Bu öğeye girmek için sağ ok ve geri dönmek için sol ok tuşuna basın.',
|
|
100
|
+
},
|
|
101
|
+
modal: {
|
|
102
|
+
close: 'Kapat',
|
|
103
|
+
},
|
|
104
|
+
drawer: {
|
|
105
|
+
close: 'Kapat',
|
|
106
|
+
},
|
|
107
|
+
pagination: {
|
|
108
|
+
prev: 'Önceki',
|
|
109
|
+
next: 'Sonraki',
|
|
110
|
+
preposition: 'nın',
|
|
111
|
+
},
|
|
112
|
+
select: {
|
|
113
|
+
noResultsMsg: 'Sonuç bulunamadı',
|
|
114
|
+
placeholder: 'Seç...',
|
|
115
|
+
create: 'Oluştur',
|
|
116
|
+
},
|
|
117
|
+
toast: {
|
|
118
|
+
close: 'Kapat',
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
declare var __DEV__: boolean;
|
|
123
|
+
declare var __NODE__: boolean;
|
|
124
|
+
declare var __BROWSER__: boolean;
|
package/map-marker/index.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {Override} from '../overrides';
|
|
2
|
+
import { Override } from '../overrides';
|
|
3
3
|
|
|
4
|
-
export
|
|
4
|
+
export declare const FLOATING_MARKER_ANCHOR_POSITIONS: {
|
|
5
5
|
none: 'none';
|
|
6
6
|
topLeft: 'top-left';
|
|
7
7
|
topRight: 'top-right';
|
|
8
8
|
bottomRight: 'bottom-right';
|
|
9
9
|
bottomLeft: 'bottom-left';
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
|
|
12
|
-
export
|
|
12
|
+
export declare const FLOATING_MARKER_SIZES: {
|
|
13
13
|
small: 'small';
|
|
14
14
|
medium: 'medium';
|
|
15
15
|
large: 'large';
|
|
16
|
-
}
|
|
16
|
+
};
|
|
17
17
|
|
|
18
|
-
export
|
|
18
|
+
export declare const FLOATING_MARKER_ANCHOR_TYPES: {
|
|
19
19
|
circle: 'circle';
|
|
20
20
|
square: 'square';
|
|
21
21
|
xxSmallCircle: 'xx-small-circle';
|
|
22
22
|
xxSmallSquare: 'xx-small-square';
|
|
23
|
-
}
|
|
23
|
+
};
|
|
24
24
|
|
|
25
|
-
export
|
|
25
|
+
export declare const NEEDLE_SIZES: {
|
|
26
26
|
none: 'none';
|
|
27
27
|
short: 'short';
|
|
28
28
|
medium: 'medium';
|
|
29
29
|
tall: 'tall';
|
|
30
|
-
}
|
|
30
|
+
};
|
|
31
31
|
|
|
32
|
-
export
|
|
32
|
+
export declare const PINHEAD_SIZES_SHAPES: {
|
|
33
33
|
xxSmallCircle: 'xx-small-circle';
|
|
34
34
|
xxSmallSquare: 'xx-small-square';
|
|
35
35
|
xSmallCircle: 'x-small-circle';
|
|
@@ -37,44 +37,47 @@ export interface PINHEAD_SIZES_SHAPES {
|
|
|
37
37
|
small: 'small';
|
|
38
38
|
medium: 'medium';
|
|
39
39
|
large: 'large';
|
|
40
|
-
}
|
|
40
|
+
};
|
|
41
41
|
|
|
42
|
-
export
|
|
42
|
+
export declare const BADGE_ENHANCER_SIZES: {
|
|
43
43
|
none: 'none';
|
|
44
44
|
xSmall: 'x-small';
|
|
45
45
|
small: 'small';
|
|
46
46
|
mediumText: 'medium-text';
|
|
47
47
|
mediumIcon: 'medium-icon';
|
|
48
|
-
}
|
|
48
|
+
};
|
|
49
49
|
|
|
50
|
-
export
|
|
50
|
+
export declare const LABEL_ENHANCER_POSITIONS: {
|
|
51
51
|
none: 'none';
|
|
52
52
|
top: 'top';
|
|
53
53
|
left: 'left';
|
|
54
54
|
right: 'right';
|
|
55
55
|
bottom: 'bottom';
|
|
56
|
-
}
|
|
56
|
+
};
|
|
57
57
|
|
|
58
|
-
export
|
|
58
|
+
export declare const KIND: {
|
|
59
59
|
default: 'default';
|
|
60
60
|
accent: 'accent';
|
|
61
61
|
negative: 'negative';
|
|
62
|
-
}
|
|
62
|
+
};
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
declare const PINHEAD_TYPES: {
|
|
65
65
|
floating: 'floating';
|
|
66
66
|
fixed: 'fixed';
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export type AnchorPositionsT =
|
|
70
|
-
|
|
71
|
-
export type
|
|
72
|
-
export type
|
|
73
|
-
export type
|
|
74
|
-
export type
|
|
75
|
-
export type
|
|
76
|
-
|
|
77
|
-
export type
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export type AnchorPositionsT =
|
|
70
|
+
typeof FLOATING_MARKER_ANCHOR_POSITIONS[keyof typeof FLOATING_MARKER_ANCHOR_POSITIONS];
|
|
71
|
+
export type NeedleSizeT = typeof NEEDLE_SIZES[keyof typeof NEEDLE_SIZES];
|
|
72
|
+
export type PinHeadT = typeof PINHEAD_TYPES[keyof typeof PINHEAD_TYPES];
|
|
73
|
+
export type PinHeadSizeT = typeof PINHEAD_SIZES_SHAPES[keyof typeof PINHEAD_SIZES_SHAPES];
|
|
74
|
+
export type FloatingMarkerSizeT = typeof FLOATING_MARKER_SIZES[keyof typeof FLOATING_MARKER_SIZES];
|
|
75
|
+
export type FloatingMarkerAnchorTypeT =
|
|
76
|
+
typeof FLOATING_MARKER_ANCHOR_TYPES[keyof typeof FLOATING_MARKER_ANCHOR_TYPES];
|
|
77
|
+
export type BadgeEnhancerSizeT = typeof BADGE_ENHANCER_SIZES[keyof typeof BADGE_ENHANCER_SIZES];
|
|
78
|
+
export type LabelEnhancerPositionT =
|
|
79
|
+
typeof LABEL_ENHANCER_POSITIONS[keyof typeof LABEL_ENHANCER_POSITIONS];
|
|
80
|
+
export type KindT = typeof KIND[keyof typeof KIND];
|
|
78
81
|
|
|
79
82
|
export type FixedMarkerOverridesT = {
|
|
80
83
|
Root?: Override<any>;
|
|
@@ -117,7 +120,7 @@ export type LabelEhancerComponentT = LabelEnhancerT & {
|
|
|
117
120
|
|
|
118
121
|
export type BadgeEnhancerT = {
|
|
119
122
|
badgeEnhancerSize?: BadgeEnhancerSizeT | null;
|
|
120
|
-
badgeEnhancerContent?: (props: {size: number}) => React.ReactNode;
|
|
123
|
+
badgeEnhancerContent?: (props: { size: number }) => React.ReactNode;
|
|
121
124
|
};
|
|
122
125
|
|
|
123
126
|
export type BadgeEnhancerComponentT = BadgeEnhancerT & {
|
|
@@ -136,8 +139,8 @@ export type FixedMarkerPropsT = BadgeEnhancerT &
|
|
|
136
139
|
size?: PinHeadSizeT;
|
|
137
140
|
needle?: NeedleSizeT;
|
|
138
141
|
label?: string;
|
|
139
|
-
startEnhancer?: (props: {size: number}) => React.ReactNode;
|
|
140
|
-
endEnhancer?: (props: {size: number}) => React.ReactNode;
|
|
142
|
+
startEnhancer?: (props: { size: number }) => React.ReactNode;
|
|
143
|
+
endEnhancer?: (props: { size: number }) => React.ReactNode;
|
|
141
144
|
kind?: KindT;
|
|
142
145
|
color?: string;
|
|
143
146
|
background?: string;
|
|
@@ -165,8 +168,8 @@ export type FloatingMarkerOverridesT = {
|
|
|
165
168
|
export type FloatingMarkerPropsT = {
|
|
166
169
|
label?: string;
|
|
167
170
|
anchor?: AnchorPositionsT;
|
|
168
|
-
endEnhancer?: (props: {size: number}) => React.ReactNode;
|
|
169
|
-
startEnhancer?: (props: {size: number}) => React.ReactNode;
|
|
171
|
+
endEnhancer?: (props: { size: number }) => React.ReactNode;
|
|
172
|
+
startEnhancer?: (props: { size: number }) => React.ReactNode;
|
|
170
173
|
anchorType?: FloatingMarkerAnchorTypeT;
|
|
171
174
|
size?: FloatingMarkerSizeT;
|
|
172
175
|
overrides?: FloatingMarkerOverridesT;
|
|
@@ -176,8 +179,8 @@ export type PinHeadPropsT = BadgeEnhancerT &
|
|
|
176
179
|
LabelEnhancerT & {
|
|
177
180
|
size?: PinHeadSizeT;
|
|
178
181
|
label?: string;
|
|
179
|
-
endEnhancer?: (props: {size: number}) => React.ReactNode;
|
|
180
|
-
startEnhancer?: (props: {size: number}) => React.ReactNode;
|
|
182
|
+
endEnhancer?: (props: { size: number }) => React.ReactNode;
|
|
183
|
+
startEnhancer?: (props: { size: number }) => React.ReactNode;
|
|
181
184
|
color?: string;
|
|
182
185
|
background?: string;
|
|
183
186
|
type?: PinHeadT;
|
|
@@ -193,14 +196,5 @@ export type DragShadowPropsT = {
|
|
|
193
196
|
overrides: FixedMarkerOverridesT;
|
|
194
197
|
};
|
|
195
198
|
|
|
196
|
-
export const
|
|
197
|
-
export const
|
|
198
|
-
export const FLOATING_MARKER_ANCHOR_TYPES: FLOATING_MARKER_ANCHOR_TYPES;
|
|
199
|
-
export const NEEDLE_SIZES: NEEDLE_SIZES;
|
|
200
|
-
export const PINHEAD_SIZES_SHAPES: PINHEAD_SIZES_SHAPES;
|
|
201
|
-
export const BADGE_ENHANCER_SIZES: BADGE_ENHANCER_SIZES;
|
|
202
|
-
export const LABEL_ENHANCER_POSITIONS: LABEL_ENHANCER_POSITIONS;
|
|
203
|
-
export const KIND: KIND;
|
|
204
|
-
|
|
205
|
-
export const FixedMarker: React.FC<FixedMarkerPropsT>;
|
|
206
|
-
export const FloatingMarker: React.FC<FloatingMarkerPropsT>;
|
|
199
|
+
export declare const FixedMarker: React.FC<FixedMarkerPropsT>;
|
|
200
|
+
export declare const FloatingMarker: React.FC<FloatingMarkerPropsT>;
|
package/menu/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {StyletronComponent} from 'styletron-react';
|
|
3
|
-
import {Override} from '../overrides';
|
|
2
|
+
import { StyletronComponent } from 'styletron-react';
|
|
3
|
+
import { Override } from '../overrides';
|
|
4
4
|
|
|
5
|
-
export
|
|
5
|
+
export declare const KEY_STRINGS: {
|
|
6
6
|
ArrowUp: 'ArrowUp';
|
|
7
7
|
ArrowDown: 'ArrowDown';
|
|
8
8
|
ArrowLeft: 'ArrowLeft';
|
|
@@ -11,8 +11,8 @@ export interface KEY_STRINGS {
|
|
|
11
11
|
Space: ' ';
|
|
12
12
|
Escape: 'Escape';
|
|
13
13
|
Backspace: 'Backspace';
|
|
14
|
-
}
|
|
15
|
-
export
|
|
14
|
+
};
|
|
15
|
+
export declare const STATE_CHANGE_TYPES: {
|
|
16
16
|
click: 'click';
|
|
17
17
|
moveUp: 'moveUp';
|
|
18
18
|
moveDown: 'moveDown';
|
|
@@ -21,12 +21,12 @@ export interface STATE_CHANGE_TYPES {
|
|
|
21
21
|
reset: 'reset';
|
|
22
22
|
character: 'character';
|
|
23
23
|
enter: 'enter';
|
|
24
|
-
}
|
|
24
|
+
};
|
|
25
25
|
|
|
26
|
-
export
|
|
26
|
+
export declare const OPTION_LIST_SIZE: {
|
|
27
27
|
default: 'default';
|
|
28
28
|
compact: 'compact';
|
|
29
|
-
}
|
|
29
|
+
};
|
|
30
30
|
|
|
31
31
|
export interface MenuOverrides {
|
|
32
32
|
EmptyState?: Override<any>;
|
|
@@ -48,7 +48,7 @@ export interface MenuOverrides {
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export interface MenuProps extends BaseMenuPropsT {
|
|
51
|
-
size?: keyof OPTION_LIST_SIZE;
|
|
51
|
+
size?: typeof OPTION_LIST_SIZE[keyof typeof OPTION_LIST_SIZE];
|
|
52
52
|
overrides?: MenuOverrides;
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -77,15 +77,12 @@ export type OnItemSelect = (args: {
|
|
|
77
77
|
}) => any;
|
|
78
78
|
|
|
79
79
|
export type StateReducer = (
|
|
80
|
-
changeType: STATE_CHANGE_TYPES[keyof STATE_CHANGE_TYPES],
|
|
80
|
+
changeType: typeof STATE_CHANGE_TYPES[keyof typeof STATE_CHANGE_TYPES],
|
|
81
81
|
changes: StatefulContainerState,
|
|
82
|
-
currentState: StatefulContainerState
|
|
82
|
+
currentState: StatefulContainerState
|
|
83
83
|
) => StatefulContainerState;
|
|
84
84
|
|
|
85
|
-
export type GetRequiredItemProps = (
|
|
86
|
-
item: any,
|
|
87
|
-
index: number,
|
|
88
|
-
) => RenderItemProps;
|
|
85
|
+
export type GetRequiredItemProps = (item: any, index: number) => RenderItemProps;
|
|
89
86
|
|
|
90
87
|
export type RenderProps = StatefulContainerState & {
|
|
91
88
|
items: ItemsT;
|
|
@@ -126,7 +123,7 @@ export interface OptionListProps extends BaseMenuPropsT {
|
|
|
126
123
|
getChildMenu?: (item: any) => React.ReactNode;
|
|
127
124
|
onMouseDown?: (event: MouseEvent) => any;
|
|
128
125
|
onMouseEnter?: (event: MouseEvent) => any;
|
|
129
|
-
size?: OPTION_LIST_SIZE[keyof OPTION_LIST_SIZE];
|
|
126
|
+
size?: typeof OPTION_LIST_SIZE[keyof typeof OPTION_LIST_SIZE];
|
|
130
127
|
overrides?: {
|
|
131
128
|
ListItem?: Override<any>;
|
|
132
129
|
ChildMenuPopover?: Override<any>;
|
|
@@ -141,7 +138,7 @@ export interface OptionListProps extends BaseMenuPropsT {
|
|
|
141
138
|
id?: string;
|
|
142
139
|
role?: string;
|
|
143
140
|
}
|
|
144
|
-
export const OptionList: React.FC<OptionListProps>;
|
|
141
|
+
export declare const OptionList: React.FC<OptionListProps>;
|
|
145
142
|
|
|
146
143
|
export interface OptionProfileProps extends BaseMenuPropsT {
|
|
147
144
|
item: any;
|
|
@@ -165,7 +162,7 @@ export interface OptionProfileProps extends BaseMenuPropsT {
|
|
|
165
162
|
};
|
|
166
163
|
$isHighlighted?: boolean;
|
|
167
164
|
}
|
|
168
|
-
export const OptionProfile: React.FC<OptionProfileProps>;
|
|
165
|
+
export declare const OptionProfile: React.FC<OptionProfileProps>;
|
|
169
166
|
|
|
170
167
|
export interface SharedStatelessProps {
|
|
171
168
|
activedescendantId?: string;
|
|
@@ -185,7 +182,7 @@ export interface SharedStatelessProps {
|
|
|
185
182
|
}
|
|
186
183
|
|
|
187
184
|
export type StatelessMenuProps = SharedStatelessProps & MenuProps;
|
|
188
|
-
export const Menu: React.FC<StatelessMenuProps>;
|
|
185
|
+
export declare const Menu: React.FC<StatelessMenuProps>;
|
|
189
186
|
|
|
190
187
|
export interface NestedMenuProps {
|
|
191
188
|
children: React.ReactNode;
|
|
@@ -193,10 +190,7 @@ export interface NestedMenuProps {
|
|
|
193
190
|
export interface NestedMenuState {
|
|
194
191
|
menus: Array<React.Ref<HTMLElement>>;
|
|
195
192
|
}
|
|
196
|
-
export class NestedMenus extends React.Component<
|
|
197
|
-
NestedMenuProps,
|
|
198
|
-
NestedMenuState
|
|
199
|
-
> {
|
|
193
|
+
export class NestedMenus extends React.Component<NestedMenuProps, NestedMenuState> {
|
|
200
194
|
addMenuToNesting(ref: React.Ref<HTMLElement>): void;
|
|
201
195
|
removeMenuFromNesting(ref: React.Ref<HTMLElement>): void;
|
|
202
196
|
findMenuIndexByRef(ref: React.Ref<HTMLElement>): number;
|
|
@@ -206,17 +200,13 @@ export class NestedMenus extends React.Component<
|
|
|
206
200
|
isNestedMenuVisible(ref: React.Ref<HTMLElement>): boolean;
|
|
207
201
|
}
|
|
208
202
|
|
|
209
|
-
export const StyledEmptyState: StyletronComponent<any>;
|
|
210
|
-
export const StyledList: StyletronComponent<any>;
|
|
211
|
-
export const StyledListItem: StyletronComponent<any>;
|
|
212
|
-
export const StyledListItemProfile: StyletronComponent<any>;
|
|
213
|
-
export const StyledProfileImgContainer: StyletronComponent<any>;
|
|
214
|
-
export const StyledProfileImg: StyletronComponent<any>;
|
|
215
|
-
export const StyledProfileLabelsContainer: StyletronComponent<any>;
|
|
216
|
-
export const StyledProfileTitle: StyletronComponent<any>;
|
|
217
|
-
export const StyledProfileSubtitle: StyletronComponent<any>;
|
|
218
|
-
export const StyledProfileBody: StyletronComponent<any>;
|
|
219
|
-
|
|
220
|
-
export const KEY_STRINGS: KEY_STRINGS;
|
|
221
|
-
export const STATE_CHANGE_TYPES: STATE_CHANGE_TYPES;
|
|
222
|
-
export const OPTION_LIST_SIZE: OPTION_LIST_SIZE;
|
|
203
|
+
export declare const StyledEmptyState: StyletronComponent<any>;
|
|
204
|
+
export declare const StyledList: StyletronComponent<any>;
|
|
205
|
+
export declare const StyledListItem: StyletronComponent<any>;
|
|
206
|
+
export declare const StyledListItemProfile: StyletronComponent<any>;
|
|
207
|
+
export declare const StyledProfileImgContainer: StyletronComponent<any>;
|
|
208
|
+
export declare const StyledProfileImg: StyletronComponent<any>;
|
|
209
|
+
export declare const StyledProfileLabelsContainer: StyletronComponent<any>;
|
|
210
|
+
export declare const StyledProfileTitle: StyletronComponent<any>;
|
|
211
|
+
export declare const StyledProfileSubtitle: StyletronComponent<any>;
|
|
212
|
+
export declare const StyledProfileBody: StyletronComponent<any>;
|
package/modal/index.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {StyletronComponent} from 'styletron-react';
|
|
3
|
-
import {ButtonProps} from '../button';
|
|
4
|
-
import {Override} from '../overrides';
|
|
2
|
+
import { StyletronComponent } from 'styletron-react';
|
|
3
|
+
import { ButtonProps } from '../button';
|
|
4
|
+
import { Override } from '../overrides';
|
|
5
5
|
|
|
6
|
-
export
|
|
6
|
+
export declare const SIZE: {
|
|
7
7
|
default: 'default';
|
|
8
8
|
full: 'full';
|
|
9
9
|
auto: 'auto';
|
|
10
|
-
}
|
|
10
|
+
};
|
|
11
11
|
|
|
12
|
-
export
|
|
12
|
+
export declare const SIZE_WIDTHS: {
|
|
13
13
|
default: '500px';
|
|
14
14
|
full: '100%';
|
|
15
15
|
auto: 'auto';
|
|
16
|
-
}
|
|
17
|
-
export
|
|
16
|
+
};
|
|
17
|
+
export declare const ROLE: {
|
|
18
18
|
dialog: 'dialog';
|
|
19
19
|
alertdialog: 'alertdialog';
|
|
20
|
-
}
|
|
21
|
-
export
|
|
20
|
+
};
|
|
21
|
+
export declare const CLOSE_SOURCE: {
|
|
22
22
|
closeButton: 'closeButton';
|
|
23
23
|
backdrop: 'backdrop';
|
|
24
24
|
escape: 'escape';
|
|
25
|
-
}
|
|
25
|
+
};
|
|
26
26
|
|
|
27
27
|
export interface SharedStylePropsArg {
|
|
28
28
|
children?: React.ReactNode;
|
|
29
29
|
$animate?: boolean;
|
|
30
30
|
$isVisible?: boolean;
|
|
31
31
|
$isOpen?: boolean;
|
|
32
|
-
$size?: SIZE[keyof SIZE];
|
|
33
|
-
$role?: ROLE[keyof ROLE];
|
|
32
|
+
$size?: typeof SIZE[keyof typeof SIZE];
|
|
33
|
+
$role?: typeof ROLE[keyof typeof ROLE];
|
|
34
34
|
$closeable?: boolean;
|
|
35
35
|
}
|
|
36
36
|
|
|
@@ -44,18 +44,15 @@ export interface ModalProps {
|
|
|
44
44
|
animate?: boolean;
|
|
45
45
|
autoFocus?: boolean;
|
|
46
46
|
focusLock?: boolean;
|
|
47
|
-
returnFocus?:
|
|
48
|
-
| boolean
|
|
49
|
-
| FocusOptions
|
|
50
|
-
| ((returnTo: Element) => boolean | FocusOptions);
|
|
47
|
+
returnFocus?: boolean | FocusOptions | ((returnTo: Element) => boolean | FocusOptions);
|
|
51
48
|
children?: React.ReactNode;
|
|
52
49
|
closeable?: boolean;
|
|
53
50
|
isOpen?: boolean;
|
|
54
51
|
mountNode?: HTMLElement;
|
|
55
|
-
onClose?: (args: {closeSource?: CLOSE_SOURCE[keyof CLOSE_SOURCE]}) => any;
|
|
52
|
+
onClose?: (args: { closeSource?: typeof CLOSE_SOURCE[keyof typeof CLOSE_SOURCE] }) => any;
|
|
56
53
|
overrides?: ModalOverrides;
|
|
57
|
-
role?: ROLE[keyof ROLE];
|
|
58
|
-
size?: SIZE[keyof SIZE];
|
|
54
|
+
role?: typeof ROLE[keyof typeof ROLE];
|
|
55
|
+
size?: typeof SIZE[keyof typeof SIZE];
|
|
59
56
|
}
|
|
60
57
|
export interface ModalState {
|
|
61
58
|
isVisible: boolean;
|
|
@@ -72,33 +69,26 @@ export class Modal extends React.Component<ModalProps, ModalState> {
|
|
|
72
69
|
clearTimers(): void;
|
|
73
70
|
didOpen(): void;
|
|
74
71
|
didClose(): void;
|
|
75
|
-
triggerClose(source: CLOSE_SOURCE[keyof CLOSE_SOURCE]): void;
|
|
72
|
+
triggerClose(source: typeof CLOSE_SOURCE[keyof typeof CLOSE_SOURCE]): void;
|
|
76
73
|
captureLastFocus(): void;
|
|
77
74
|
restoreLastFocus(): void;
|
|
78
75
|
autoFocus(): void;
|
|
79
76
|
animateOutComplete(): void;
|
|
80
|
-
getSharedProps(): SharedStylePropsArg & {children: React.ReactNode};
|
|
77
|
+
getSharedProps(): SharedStylePropsArg & { children: React.ReactNode };
|
|
81
78
|
getMountNode(): HTMLElement;
|
|
82
79
|
getChildren(): React.ReactNode;
|
|
83
80
|
getRef(component: string): React.Ref<any>;
|
|
84
81
|
renderModal(): React.ReactNode;
|
|
85
82
|
}
|
|
86
83
|
|
|
87
|
-
export class ModalButton extends React.Component<
|
|
88
|
-
ButtonProps & {autoFocus?: boolean}
|
|
89
|
-
> {}
|
|
90
|
-
|
|
91
|
-
export class FocusOnce extends React.Component<{children: React.ReactNode}> {}
|
|
84
|
+
export class ModalButton extends React.Component<ButtonProps & { autoFocus?: boolean }> {}
|
|
92
85
|
|
|
93
|
-
export
|
|
94
|
-
export const StyledDialog: StyletronComponent<any>;
|
|
95
|
-
export const StyledDialogContainer: StyletronComponent<any>;
|
|
96
|
-
export const StyledClose: StyletronComponent<any>;
|
|
97
|
-
export const ModalHeader: StyletronComponent<any>;
|
|
98
|
-
export const ModalBody: StyletronComponent<any>;
|
|
99
|
-
export const ModalFooter: StyletronComponent<any>;
|
|
86
|
+
export class FocusOnce extends React.Component<{ children: React.ReactNode }> {}
|
|
100
87
|
|
|
101
|
-
export const
|
|
102
|
-
export const
|
|
103
|
-
export const
|
|
104
|
-
export const
|
|
88
|
+
export declare const StyledRoot: StyletronComponent<any>;
|
|
89
|
+
export declare const StyledDialog: StyletronComponent<any>;
|
|
90
|
+
export declare const StyledDialogContainer: StyletronComponent<any>;
|
|
91
|
+
export declare const StyledClose: StyletronComponent<any>;
|
|
92
|
+
export declare const ModalHeader: StyletronComponent<any>;
|
|
93
|
+
export declare const ModalBody: StyletronComponent<any>;
|
|
94
|
+
export declare const ModalFooter: StyletronComponent<any>;
|