@blofin/blofin-ui 0.6.87
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/LICENSE +21 -0
- package/README.md +97 -0
- package/dist/Badge.d.ts +1 -0
- package/dist/Badge.es.js +56 -0
- package/dist/Button.d.ts +1 -0
- package/dist/Button.es.js +377 -0
- package/dist/Dialog.d.ts +1 -0
- package/dist/Dialog.es.js +159 -0
- package/dist/Divider.d.ts +1 -0
- package/dist/Divider.es.js +25 -0
- package/dist/Drawer.d.ts +1 -0
- package/dist/Drawer.es.js +90 -0
- package/dist/Form.d.ts +1 -0
- package/dist/Form.es.js +752 -0
- package/dist/Slider.d.ts +1 -0
- package/dist/Slider.es.js +242 -0
- package/dist/blofin.css +1 -0
- package/dist/close-c67ec245.js +5 -0
- package/dist/components/Alert/Alert.d.ts +12 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/Alert/styles.d.ts +7 -0
- package/dist/components/Badge/Badge.d.ts +21 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/styles.d.ts +7 -0
- package/dist/components/Button/Button.d.ts +35 -0
- package/dist/components/Button/Loading/index.d.ts +8 -0
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/styles.d.ts +13 -0
- package/dist/components/Button/types.d.ts +5 -0
- package/dist/components/Calendar/Calendar.d.ts +12 -0
- package/dist/components/Calendar/index.d.ts +2 -0
- package/dist/components/Calendar/styles.d.ts +39 -0
- package/dist/components/Checkbox/Checkbox.d.ts +8 -0
- package/dist/components/Checkbox/index.d.ts +2 -0
- package/dist/components/Checkbox/styles.d.ts +22 -0
- package/dist/components/CssDropdown/CssDropdown.d.ts +18 -0
- package/dist/components/CssDropdown/styles.d.ts +7 -0
- package/dist/components/DatePickerRange/DatePickerRange.d.ts +32 -0
- package/dist/components/DatePickerRange/styles.d.ts +6 -0
- package/dist/components/DateTimePicker/Calendar.d.ts +10 -0
- package/dist/components/DateTimePicker/DateTimePicker.d.ts +18 -0
- package/dist/components/DateTimePicker/ScrollableList.d.ts +12 -0
- package/dist/components/DateTimePicker/hooks/useDateTimePicker.d.ts +35 -0
- package/dist/components/DateTimePicker/styles.d.ts +48 -0
- package/dist/components/Dialog/Dialog.d.ts +30 -0
- package/dist/components/Dialog/index.d.ts +2 -0
- package/dist/components/Dialog/styles.d.ts +13 -0
- package/dist/components/Divider/Divider.d.ts +8 -0
- package/dist/components/Divider/index.d.ts +2 -0
- package/dist/components/Divider/styles.d.ts +7 -0
- package/dist/components/Drawer/Drawer.d.ts +13 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/styles.d.ts +6 -0
- package/dist/components/Dropdown/Dropdown.d.ts +14 -0
- package/dist/components/Dropdown/style.d.ts +9 -0
- package/dist/components/Empty/index.d.ts +5 -0
- package/dist/components/Form/Control.d.ts +13 -0
- package/dist/components/Form/Form.d.ts +3 -0
- package/dist/components/Form/FormItem.d.ts +4 -0
- package/dist/components/Form/FormLabel.d.ts +4 -0
- package/dist/components/Form/context.d.ts +5 -0
- package/dist/components/Form/index.d.ts +8 -0
- package/dist/components/Form/interface.d.ts +48 -0
- package/dist/components/Form/store.d.ts +16 -0
- package/dist/components/Form/styles/item.d.ts +5 -0
- package/dist/components/Form/useForm.d.ts +3 -0
- package/dist/components/LabelTextField/LabelTextField.d.ts +17 -0
- package/dist/components/LabelTextField/index.d.ts +2 -0
- package/dist/components/LabelTextField/styles.d.ts +34 -0
- package/dist/components/MonthPicker/index.d.ts +17 -0
- package/dist/components/Notification/Notification.d.ts +2 -0
- package/dist/components/Notification/style.d.ts +15 -0
- package/dist/components/Pagination/PageOptions.d.ts +12 -0
- package/dist/components/Pagination/Pagination.d.ts +34 -0
- package/dist/components/Pagination/styles.d.ts +6 -0
- package/dist/components/Picker/hooks/usePickerMethod.d.ts +9 -0
- package/dist/components/Picker/index.d.ts +10 -0
- package/dist/components/Picker/styles.d.ts +4 -0
- package/dist/components/Popover/Popover.d.ts +17 -0
- package/dist/components/Popup/index.d.ts +15 -0
- package/dist/components/Popup/styles.d.ts +3 -0
- package/dist/components/RadioButton/RadioButton.d.ts +10 -0
- package/dist/components/RadioButton/index.d.ts +2 -0
- package/dist/components/RadioButton/styles.d.ts +12 -0
- package/dist/components/Select/Select.d.ts +38 -0
- package/dist/components/Select/index.d.ts +2 -0
- package/dist/components/Select/styles.d.ts +24 -0
- package/dist/components/Slider/Slider.d.ts +20 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/styles.d.ts +31 -0
- package/dist/components/Sort/SortButton.d.ts +14 -0
- package/dist/components/Sort/SortGroup.d.ts +8 -0
- package/dist/components/Sort/reducer.d.ts +36 -0
- package/dist/components/Sortable/SortItem.d.ts +6 -0
- package/dist/components/Sortable/index.d.ts +10 -0
- package/dist/components/Switch/Switch.d.ts +9 -0
- package/dist/components/Switch/styles.d.ts +12 -0
- package/dist/components/Tab/Tab.d.ts +21 -0
- package/dist/components/Tab/styles.d.ts +20 -0
- package/dist/components/Table/Pagination/index.d.ts +8 -0
- package/dist/components/Table/Table.d.ts +5 -0
- package/dist/components/Table/Tbody/index.d.ts +14 -0
- package/dist/components/Table/Thead/index.d.ts +17 -0
- package/dist/components/Table/context.d.ts +17 -0
- package/dist/components/Table/css.d.ts +12 -0
- package/dist/components/Table/hooks/useStickyClassName.d.ts +3 -0
- package/dist/components/Table/hooks/useStickyOffset.d.ts +15 -0
- package/dist/components/Table/index.d.ts +3 -0
- package/dist/components/Table/interface.d.ts +48 -0
- package/dist/components/TextField/TextField.d.ts +15 -0
- package/dist/components/TextField/index.d.ts +2 -0
- package/dist/components/TextSelect/TextSelect.d.ts +50 -0
- package/dist/components/TextSelect/styles.d.ts +27 -0
- package/dist/components/Textarea/index.d.ts +15 -0
- package/dist/components/Textarea/style.d.ts +13 -0
- package/dist/components/Toast/Toast.d.ts +2 -0
- package/dist/components/Toast/styles.d.ts +13 -0
- package/dist/components/Tooltip/Tooltip.d.ts +22 -0
- package/dist/components/Tooltip/enum.d.ts +21 -0
- package/dist/components/Tooltip/styles.d.ts +10 -0
- package/dist/components/Tooltip/type.d.ts +1 -0
- package/dist/components/Typography/Typography.d.ts +35 -0
- package/dist/components/Typography/styles.d.ts +10 -0
- package/dist/config/tailwind.js +9 -0
- package/dist/config/theme.js +318 -0
- package/dist/hooks/useAlign.d.ts +20 -0
- package/dist/hooks/useClient.d.ts +4 -0
- package/dist/hooks/useDelayEvent.d.ts +2 -0
- package/dist/hooks/useLatest.d.ts +1 -0
- package/dist/hooks/useNotification.d.ts +10 -0
- package/dist/hooks/useOutsideClick.d.ts +2 -0
- package/dist/hooks/useToast.d.ts +9 -0
- package/dist/index-0055aace.js +338 -0
- package/dist/index-0171eaca.js +436 -0
- package/dist/index-03ecf4ec.js +400 -0
- package/dist/index-04d10294.js +298 -0
- package/dist/index-0a1520d4.js +287 -0
- package/dist/index-0f855a91.js +14 -0
- package/dist/index-114820db.js +354 -0
- package/dist/index-1388dfff.js +336 -0
- package/dist/index-15b50a21.js +298 -0
- package/dist/index-17308ac1.js +298 -0
- package/dist/index-17afe366.js +298 -0
- package/dist/index-1d78221c.js +339 -0
- package/dist/index-1dc85776.js +437 -0
- package/dist/index-20e881af.js +354 -0
- package/dist/index-20f2adc4.js +398 -0
- package/dist/index-21539629.js +478 -0
- package/dist/index-21f85e78.js +377 -0
- package/dist/index-236e0579.js +71 -0
- package/dist/index-250f50e2.js +502 -0
- package/dist/index-356291b2.js +450 -0
- package/dist/index-38216e9e.js +340 -0
- package/dist/index-3c058c26.js +606 -0
- package/dist/index-3c3ba437.js +341 -0
- package/dist/index-3cd72a27.js +61 -0
- package/dist/index-3dcefa10.js +328 -0
- package/dist/index-3f70b1d4.js +331 -0
- package/dist/index-40ad0dd1.js +287 -0
- package/dist/index-42fb4fd5.js +334 -0
- package/dist/index-45696efa.js +438 -0
- package/dist/index-4b6824f2.js +61 -0
- package/dist/index-4b7924c1.js +354 -0
- package/dist/index-4c8ef561.js +337 -0
- package/dist/index-4ced47cd.js +359 -0
- package/dist/index-4eb29fd9.js +313 -0
- package/dist/index-4f2d4e0d.js +342 -0
- package/dist/index-51847d07.js +363 -0
- package/dist/index-51c1e00d.js +9 -0
- package/dist/index-51cf15b2.js +11054 -0
- package/dist/index-5357c173.js +336 -0
- package/dist/index-572ed179.js +353 -0
- package/dist/index-580c6bf2.js +362 -0
- package/dist/index-6817d9c1.js +363 -0
- package/dist/index-682656f7.js +62 -0
- package/dist/index-6834d6cf.js +330 -0
- package/dist/index-6a5829bd.js +387 -0
- package/dist/index-739cb389.js +332 -0
- package/dist/index-7601ed24.js +332 -0
- package/dist/index-76c2d21a.js +362 -0
- package/dist/index-7871c2fa.js +397 -0
- package/dist/index-7a871a23.js +362 -0
- package/dist/index-7aae1d07.js +298 -0
- package/dist/index-80121226.js +443 -0
- package/dist/index-872a50e8.js +353 -0
- package/dist/index-88fdaa89.js +437 -0
- package/dist/index-8a4c6daa.js +302 -0
- package/dist/index-8fb7d88b.js +360 -0
- package/dist/index-9412ffa1.js +346 -0
- package/dist/index-95d62350.js +427 -0
- package/dist/index-96a8d125.js +65 -0
- package/dist/index-9d0a665d.js +298 -0
- package/dist/index-a8c0dd3b.js +500 -0
- package/dist/index-aa90be0a.js +146 -0
- package/dist/index-aac5376e.js +331 -0
- package/dist/index-ac48594f.js +364 -0
- package/dist/index-acc7a626.js +146 -0
- package/dist/index-af6965cc.js +332 -0
- package/dist/index-b523f554.js +61 -0
- package/dist/index-b5aa671f.js +463 -0
- package/dist/index-b7612310.js +333 -0
- package/dist/index-babf632c.js +332 -0
- package/dist/index-baf0849c.js +346 -0
- package/dist/index-bb65c72e.js +514 -0
- package/dist/index-bb84ad8c.js +514 -0
- package/dist/index-c1e6e7ba.js +340 -0
- package/dist/index-cb4b8e2c.js +341 -0
- package/dist/index-d9848a76.js +545 -0
- package/dist/index-dc4bbb59.js +332 -0
- package/dist/index-dfc0fb0e.js +364 -0
- package/dist/index-e27e30cc.js +345 -0
- package/dist/index-e8380fcb.js +335 -0
- package/dist/index-ea4a8872.js +311 -0
- package/dist/index-eb696d64.js +436 -0
- package/dist/index-ebd469fd.js +297 -0
- package/dist/index-ed48cf75.js +383 -0
- package/dist/index-f3092738.js +308 -0
- package/dist/index-f41bdf2a.js +238 -0
- package/dist/index-f5c25d06.js +458 -0
- package/dist/index-f7e0a67b.js +511 -0
- package/dist/index-fafae16f.js +337 -0
- package/dist/index-ffe656da.js +332 -0
- package/dist/index.d.ts +43 -0
- package/dist/index.es.js +51 -0
- package/dist/isObjectLike-1b8bbac2.js +44 -0
- package/dist/jsx-runtime-944c88e2.js +631 -0
- package/dist/provider/NoticeProvider.d.ts +41 -0
- package/dist/provider/ThemeProvider.d.ts +7 -0
- package/dist/provider/useTheme.d.ts +4 -0
- package/dist/types/component.d.ts +16 -0
- package/dist/types/svg.d.ts +4 -0
- package/dist/utils/format.d.ts +7 -0
- package/dist/utils/helper.d.ts +7 -0
- package/dist/utils/locales.d.ts +1 -0
- package/dist/utils/utils.d.ts +2 -0
- package/dist/utils-7e50508b.js +2304 -0
- package/dist/vite.svg +1 -0
- package/package.json +117 -0
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
import { a as h, b as o, c as m, d } from "./index-51cf15b2.js";
|
|
2
|
+
import "./Badge.es.js";
|
|
3
|
+
import "./jsx-runtime-944c88e2.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./index-96a8d125.js";
|
|
6
|
+
import "./utils-7e50508b.js";
|
|
7
|
+
import "./Button.es.js";
|
|
8
|
+
import "./isObjectLike-1b8bbac2.js";
|
|
9
|
+
import "./Dialog.es.js";
|
|
10
|
+
import "react-dom";
|
|
11
|
+
import "./close-c67ec245.js";
|
|
12
|
+
import "./Drawer.es.js";
|
|
13
|
+
import "./Slider.es.js";
|
|
14
|
+
import "./Divider.es.js";
|
|
15
|
+
var s = {
|
|
16
|
+
lessThanXSeconds: {
|
|
17
|
+
one: "nas lugha na diog",
|
|
18
|
+
other: "nas lugha na {{count}} diogan"
|
|
19
|
+
},
|
|
20
|
+
xSeconds: {
|
|
21
|
+
one: "1 diog",
|
|
22
|
+
two: "2 dhiog",
|
|
23
|
+
twenty: "20 diog",
|
|
24
|
+
other: "{{count}} diogan"
|
|
25
|
+
},
|
|
26
|
+
halfAMinute: "leth mhionaid",
|
|
27
|
+
lessThanXMinutes: {
|
|
28
|
+
one: "nas lugha na mionaid",
|
|
29
|
+
other: "nas lugha na {{count}} mionaidean"
|
|
30
|
+
},
|
|
31
|
+
xMinutes: {
|
|
32
|
+
one: "1 mionaid",
|
|
33
|
+
two: "2 mhionaid",
|
|
34
|
+
twenty: "20 mionaid",
|
|
35
|
+
other: "{{count}} mionaidean"
|
|
36
|
+
},
|
|
37
|
+
aboutXHours: {
|
|
38
|
+
one: "mu uair de thìde",
|
|
39
|
+
other: "mu {{count}} uairean de thìde"
|
|
40
|
+
},
|
|
41
|
+
xHours: {
|
|
42
|
+
one: "1 uair de thìde",
|
|
43
|
+
two: "2 uair de thìde",
|
|
44
|
+
twenty: "20 uair de thìde",
|
|
45
|
+
other: "{{count}} uairean de thìde"
|
|
46
|
+
},
|
|
47
|
+
xDays: {
|
|
48
|
+
one: "1 là",
|
|
49
|
+
other: "{{count}} là"
|
|
50
|
+
},
|
|
51
|
+
aboutXWeeks: {
|
|
52
|
+
one: "mu 1 seachdain",
|
|
53
|
+
other: "mu {{count}} seachdainean"
|
|
54
|
+
},
|
|
55
|
+
xWeeks: {
|
|
56
|
+
one: "1 seachdain",
|
|
57
|
+
other: "{{count}} seachdainean"
|
|
58
|
+
},
|
|
59
|
+
aboutXMonths: {
|
|
60
|
+
one: "mu mhìos",
|
|
61
|
+
other: "mu {{count}} mìosan"
|
|
62
|
+
},
|
|
63
|
+
xMonths: {
|
|
64
|
+
one: "1 mìos",
|
|
65
|
+
other: "{{count}} mìosan"
|
|
66
|
+
},
|
|
67
|
+
aboutXYears: {
|
|
68
|
+
one: "mu bhliadhna",
|
|
69
|
+
other: "mu {{count}} bliadhnaichean"
|
|
70
|
+
},
|
|
71
|
+
xYears: {
|
|
72
|
+
one: "1 bhliadhna",
|
|
73
|
+
other: "{{count}} bliadhna"
|
|
74
|
+
},
|
|
75
|
+
overXYears: {
|
|
76
|
+
one: "còrr is bliadhna",
|
|
77
|
+
other: "còrr is {{count}} bliadhnaichean"
|
|
78
|
+
},
|
|
79
|
+
almostXYears: {
|
|
80
|
+
one: "cha mhòr bliadhna",
|
|
81
|
+
other: "cha mhòr {{count}} bliadhnaichean"
|
|
82
|
+
}
|
|
83
|
+
}, l = function(a, e, i) {
|
|
84
|
+
var n, t = s[a];
|
|
85
|
+
return typeof t == "string" ? n = t : e === 1 ? n = t.one : e === 2 && t.two ? n = t.two : e === 20 && t.twenty ? n = t.twenty : n = t.other.replace("{{count}}", String(e)), i != null && i.addSuffix ? i.comparison && i.comparison > 0 ? "ann an " + n : "o chionn " + n : n;
|
|
86
|
+
};
|
|
87
|
+
const c = l;
|
|
88
|
+
var u = {
|
|
89
|
+
full: "EEEE, MMMM do, y",
|
|
90
|
+
long: "MMMM do, y",
|
|
91
|
+
medium: "MMM d, y",
|
|
92
|
+
short: "MM/dd/yyyy"
|
|
93
|
+
}, f = {
|
|
94
|
+
full: "h:mm:ss a zzzz",
|
|
95
|
+
long: "h:mm:ss a z",
|
|
96
|
+
medium: "h:mm:ss a",
|
|
97
|
+
short: "h:mm a"
|
|
98
|
+
}, g = {
|
|
99
|
+
full: "{{date}} 'aig' {{time}}",
|
|
100
|
+
long: "{{date}} 'aig' {{time}}",
|
|
101
|
+
medium: "{{date}}, {{time}}",
|
|
102
|
+
short: "{{date}}, {{time}}"
|
|
103
|
+
}, v = {
|
|
104
|
+
date: h({
|
|
105
|
+
formats: u,
|
|
106
|
+
defaultWidth: "full"
|
|
107
|
+
}),
|
|
108
|
+
time: h({
|
|
109
|
+
formats: f,
|
|
110
|
+
defaultWidth: "full"
|
|
111
|
+
}),
|
|
112
|
+
dateTime: h({
|
|
113
|
+
formats: g,
|
|
114
|
+
defaultWidth: "full"
|
|
115
|
+
})
|
|
116
|
+
};
|
|
117
|
+
const b = v;
|
|
118
|
+
var w = {
|
|
119
|
+
lastWeek: "'mu dheireadh' eeee 'aig' p",
|
|
120
|
+
//FIX
|
|
121
|
+
yesterday: "'an-dè aig' p",
|
|
122
|
+
today: "'an-diugh aig' p",
|
|
123
|
+
tomorrow: "'a-màireach aig' p",
|
|
124
|
+
nextWeek: "eeee 'aig' p",
|
|
125
|
+
other: "P"
|
|
126
|
+
}, p = function(a, e, i, n) {
|
|
127
|
+
return w[a];
|
|
128
|
+
};
|
|
129
|
+
const y = p;
|
|
130
|
+
var P = {
|
|
131
|
+
narrow: ["R", "A"],
|
|
132
|
+
abbreviated: ["RC", "AD"],
|
|
133
|
+
wide: ["ro Chrìosta", "anno domini"]
|
|
134
|
+
}, D = {
|
|
135
|
+
narrow: ["1", "2", "3", "4"],
|
|
136
|
+
abbreviated: ["C1", "C2", "C3", "C4"],
|
|
137
|
+
wide: ["a' chiad chairteal", "an dàrna cairteal", "an treas cairteal", "an ceathramh cairteal"]
|
|
138
|
+
}, M = {
|
|
139
|
+
narrow: ["F", "G", "M", "G", "C", "Ò", "I", "L", "S", "D", "S", "D"],
|
|
140
|
+
abbreviated: ["Faoi", "Gear", "Màrt", "Gibl", "Cèit", "Ògmh", "Iuch", "Lùn", "Sult", "Dàmh", "Samh", "Dùbh"],
|
|
141
|
+
wide: ["Am Faoilleach", "An Gearran", "Am Màrt", "An Giblean", "An Cèitean", "An t-Ògmhios", "An t-Iuchar", "An Lùnastal", "An t-Sultain", "An Dàmhair", "An t-Samhain", "An Dùbhlachd"]
|
|
142
|
+
}, W = {
|
|
143
|
+
narrow: ["D", "L", "M", "C", "A", "H", "S"],
|
|
144
|
+
short: ["Dò", "Lu", "Mà", "Ci", "Ar", "Ha", "Sa"],
|
|
145
|
+
abbreviated: ["Did", "Dil", "Dim", "Dic", "Dia", "Dih", "Dis"],
|
|
146
|
+
wide: ["Didòmhnaich", "Diluain", "Dimàirt", "Diciadain", "Diardaoin", "Dihaoine", "Disathairne"]
|
|
147
|
+
}, C = {
|
|
148
|
+
narrow: {
|
|
149
|
+
am: "m",
|
|
150
|
+
pm: "f",
|
|
151
|
+
midnight: "m.o.",
|
|
152
|
+
noon: "m.l.",
|
|
153
|
+
morning: "madainn",
|
|
154
|
+
afternoon: "feasgar",
|
|
155
|
+
evening: "feasgar",
|
|
156
|
+
night: "oidhche"
|
|
157
|
+
},
|
|
158
|
+
abbreviated: {
|
|
159
|
+
am: "M.",
|
|
160
|
+
pm: "F.",
|
|
161
|
+
midnight: "meadhan oidhche",
|
|
162
|
+
noon: "meadhan là",
|
|
163
|
+
morning: "madainn",
|
|
164
|
+
afternoon: "feasgar",
|
|
165
|
+
evening: "feasgar",
|
|
166
|
+
night: "oidhche"
|
|
167
|
+
},
|
|
168
|
+
wide: {
|
|
169
|
+
am: "m.",
|
|
170
|
+
pm: "f.",
|
|
171
|
+
midnight: "meadhan oidhche",
|
|
172
|
+
noon: "meadhan là",
|
|
173
|
+
morning: "madainn",
|
|
174
|
+
afternoon: "feasgar",
|
|
175
|
+
evening: "feasgar",
|
|
176
|
+
night: "oidhche"
|
|
177
|
+
}
|
|
178
|
+
}, A = {
|
|
179
|
+
narrow: {
|
|
180
|
+
am: "m",
|
|
181
|
+
pm: "f",
|
|
182
|
+
midnight: "m.o.",
|
|
183
|
+
noon: "m.l.",
|
|
184
|
+
morning: "sa mhadainn",
|
|
185
|
+
afternoon: "feasgar",
|
|
186
|
+
evening: "feasgar",
|
|
187
|
+
night: "air an oidhche"
|
|
188
|
+
},
|
|
189
|
+
abbreviated: {
|
|
190
|
+
am: "M.",
|
|
191
|
+
pm: "F.",
|
|
192
|
+
midnight: "meadhan oidhche",
|
|
193
|
+
noon: "meadhan là",
|
|
194
|
+
morning: "sa mhadainn",
|
|
195
|
+
afternoon: "feasgar",
|
|
196
|
+
evening: "feasgar",
|
|
197
|
+
night: "air an oidhche"
|
|
198
|
+
},
|
|
199
|
+
wide: {
|
|
200
|
+
am: "m.",
|
|
201
|
+
pm: "f.",
|
|
202
|
+
midnight: "meadhan oidhche",
|
|
203
|
+
noon: "meadhan là",
|
|
204
|
+
morning: "sa mhadainn",
|
|
205
|
+
afternoon: "feasgar",
|
|
206
|
+
evening: "feasgar",
|
|
207
|
+
night: "air an oidhche"
|
|
208
|
+
}
|
|
209
|
+
}, S = function(a) {
|
|
210
|
+
var e = Number(a), i = e % 100;
|
|
211
|
+
if (i > 20 || i < 10)
|
|
212
|
+
switch (i % 10) {
|
|
213
|
+
case 1:
|
|
214
|
+
return e + "d";
|
|
215
|
+
case 2:
|
|
216
|
+
return e + "na";
|
|
217
|
+
}
|
|
218
|
+
return i === 12 ? e + "na" : e + "mh";
|
|
219
|
+
}, F = {
|
|
220
|
+
ordinalNumber: S,
|
|
221
|
+
era: o({
|
|
222
|
+
values: P,
|
|
223
|
+
defaultWidth: "wide"
|
|
224
|
+
}),
|
|
225
|
+
quarter: o({
|
|
226
|
+
values: D,
|
|
227
|
+
defaultWidth: "wide",
|
|
228
|
+
argumentCallback: function(a) {
|
|
229
|
+
return a - 1;
|
|
230
|
+
}
|
|
231
|
+
}),
|
|
232
|
+
month: o({
|
|
233
|
+
values: M,
|
|
234
|
+
defaultWidth: "wide"
|
|
235
|
+
}),
|
|
236
|
+
day: o({
|
|
237
|
+
values: W,
|
|
238
|
+
defaultWidth: "wide"
|
|
239
|
+
}),
|
|
240
|
+
dayPeriod: o({
|
|
241
|
+
values: C,
|
|
242
|
+
defaultWidth: "wide",
|
|
243
|
+
formattingValues: A,
|
|
244
|
+
defaultFormattingWidth: "wide"
|
|
245
|
+
})
|
|
246
|
+
};
|
|
247
|
+
const k = F;
|
|
248
|
+
var L = /^(\d+)(d|na|tr|mh)?/i, x = /\d+/i, z = {
|
|
249
|
+
narrow: /^(r|a)/i,
|
|
250
|
+
abbreviated: /^(r\.?\s?c\.?|r\.?\s?a\.?\s?c\.?|a\.?\s?d\.?|a\.?\s?c\.?)/i,
|
|
251
|
+
wide: /^(ro Chrìosta|ron aois choitchinn|anno domini|aois choitcheann)/i
|
|
252
|
+
}, V = {
|
|
253
|
+
any: [/^b/i, /^(a|c)/i]
|
|
254
|
+
}, X = {
|
|
255
|
+
narrow: /^[1234]/i,
|
|
256
|
+
abbreviated: /^c[1234]/i,
|
|
257
|
+
wide: /^[1234](cd|na|tr|mh)? cairteal/i
|
|
258
|
+
}, N = {
|
|
259
|
+
any: [/1/i, /2/i, /3/i, /4/i]
|
|
260
|
+
}, R = {
|
|
261
|
+
narrow: /^[fgmcòilsd]/i,
|
|
262
|
+
abbreviated: /^(faoi|gear|màrt|gibl|cèit|ògmh|iuch|lùn|sult|dàmh|samh|dùbh)/i,
|
|
263
|
+
wide: /^(am faoilleach|an gearran|am màrt|an giblean|an cèitean|an t-Ògmhios|an t-Iuchar|an lùnastal|an t-Sultain|an dàmhair|an t-Samhain|an dùbhlachd)/i
|
|
264
|
+
}, E = {
|
|
265
|
+
narrow: [/^f/i, /^g/i, /^m/i, /^g/i, /^c/i, /^ò/i, /^i/i, /^l/i, /^s/i, /^d/i, /^s/i, /^d/i],
|
|
266
|
+
any: [/^fa/i, /^ge/i, /^mà/i, /^gi/i, /^c/i, /^ò/i, /^i/i, /^l/i, /^su/i, /^d/i, /^sa/i, /^d/i]
|
|
267
|
+
}, G = {
|
|
268
|
+
narrow: /^[dlmcahs]/i,
|
|
269
|
+
short: /^(dò|lu|mà|ci|ar|ha|sa)/i,
|
|
270
|
+
abbreviated: /^(did|dil|dim|dic|dia|dih|dis)/i,
|
|
271
|
+
wide: /^(didòmhnaich|diluain|dimàirt|diciadain|diardaoin|dihaoine|disathairne)/i
|
|
272
|
+
}, I = {
|
|
273
|
+
narrow: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i],
|
|
274
|
+
any: [/^d/i, /^l/i, /^m/i, /^c/i, /^a/i, /^h/i, /^s/i]
|
|
275
|
+
}, $ = {
|
|
276
|
+
narrow: /^(a|p|mi|n|(san|aig) (madainn|feasgar|feasgar|oidhche))/i,
|
|
277
|
+
any: /^([ap]\.?\s?m\.?|meadhan oidhche|meadhan là|(san|aig) (madainn|feasgar|feasgar|oidhche))/i
|
|
278
|
+
}, H = {
|
|
279
|
+
any: {
|
|
280
|
+
am: /^m/i,
|
|
281
|
+
pm: /^f/i,
|
|
282
|
+
midnight: /^meadhan oidhche/i,
|
|
283
|
+
noon: /^meadhan là/i,
|
|
284
|
+
morning: /sa mhadainn/i,
|
|
285
|
+
afternoon: /feasgar/i,
|
|
286
|
+
evening: /feasgar/i,
|
|
287
|
+
night: /air an oidhche/i
|
|
288
|
+
}
|
|
289
|
+
}, T = {
|
|
290
|
+
ordinalNumber: m({
|
|
291
|
+
matchPattern: L,
|
|
292
|
+
parsePattern: x,
|
|
293
|
+
valueCallback: function(a) {
|
|
294
|
+
return parseInt(a, 10);
|
|
295
|
+
}
|
|
296
|
+
}),
|
|
297
|
+
era: d({
|
|
298
|
+
matchPatterns: z,
|
|
299
|
+
defaultMatchWidth: "wide",
|
|
300
|
+
parsePatterns: V,
|
|
301
|
+
defaultParseWidth: "any"
|
|
302
|
+
}),
|
|
303
|
+
quarter: d({
|
|
304
|
+
matchPatterns: X,
|
|
305
|
+
defaultMatchWidth: "wide",
|
|
306
|
+
parsePatterns: N,
|
|
307
|
+
defaultParseWidth: "any",
|
|
308
|
+
valueCallback: function(a) {
|
|
309
|
+
return a + 1;
|
|
310
|
+
}
|
|
311
|
+
}),
|
|
312
|
+
month: d({
|
|
313
|
+
matchPatterns: R,
|
|
314
|
+
defaultMatchWidth: "wide",
|
|
315
|
+
parsePatterns: E,
|
|
316
|
+
defaultParseWidth: "any"
|
|
317
|
+
}),
|
|
318
|
+
day: d({
|
|
319
|
+
matchPatterns: G,
|
|
320
|
+
defaultMatchWidth: "wide",
|
|
321
|
+
parsePatterns: I,
|
|
322
|
+
defaultParseWidth: "any"
|
|
323
|
+
}),
|
|
324
|
+
dayPeriod: d({
|
|
325
|
+
matchPatterns: $,
|
|
326
|
+
defaultMatchWidth: "any",
|
|
327
|
+
parsePatterns: H,
|
|
328
|
+
defaultParseWidth: "any"
|
|
329
|
+
})
|
|
330
|
+
};
|
|
331
|
+
const Y = T;
|
|
332
|
+
var ta = {
|
|
333
|
+
code: "gd",
|
|
334
|
+
formatDistance: c,
|
|
335
|
+
formatLong: b,
|
|
336
|
+
formatRelative: y,
|
|
337
|
+
localize: k,
|
|
338
|
+
match: Y,
|
|
339
|
+
options: {
|
|
340
|
+
weekStartsOn: 0,
|
|
341
|
+
firstWeekContainsDate: 1
|
|
342
|
+
}
|
|
343
|
+
};
|
|
344
|
+
export {
|
|
345
|
+
ta as default
|
|
346
|
+
};
|