@gobolt/genesis 0.0.7 → 0.0.8
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/README.md +8 -2
- package/dist/AntdIcon-c395a1c4.js +204 -0
- package/dist/CheckOutlined-52d9ac25.js +29 -0
- package/dist/{CloseCircleFilled-ZIY-u-27.js → CloseCircleFilled-ddc51e7e.js} +11 -8
- package/dist/CloseOutlined-14b8bba1.js +16 -0
- package/dist/Compact-c39ed20d.js +179 -0
- package/dist/ContextIsolator-b09b2c52.js +20 -0
- package/dist/DownOutlined-64a4732a.js +206 -0
- package/dist/EllipsisOutlined-60122660.js +1115 -0
- package/dist/{ExclamationCircleFilled-BICVVQIg.js → ExclamationCircleFilled-23ef9812.js} +22 -16
- package/dist/InfoCircleFilled-c5f90c20.js +16 -0
- package/dist/Overflow-a570fa69.js +361 -0
- package/dist/RightOutlined-83515eb4.js +16 -0
- package/dist/SearchOutlined-a9014e08.js +16 -0
- package/dist/{TextArea-3MOYYuAQ.js → TextArea-20825221.js} +597 -582
- package/dist/{button-BNV2qdrP.js → button-fa1c119c.js} +287 -280
- package/dist/collapse-345bc884.js +20 -0
- package/dist/compact-item-b8f85aa6.js +75 -0
- package/dist/components/Badge/Badge.d.ts +6 -0
- package/dist/components/Badge/Badge.js +102 -0
- package/dist/components/Badge/__stories__/Badge.stories.d.ts +13 -0
- package/dist/components/Badge/__tests__/Badge.test.js +72 -0
- package/dist/components/Badge/icons/ASN.d.ts +2 -0
- package/dist/components/Badge/icons/ASN.js +23 -0
- package/dist/components/Badge/icons/Appointment.d.ts +2 -0
- package/dist/components/Badge/icons/Appointment.js +23 -0
- package/dist/components/Badge/icons/Inventory.d.ts +2 -0
- package/dist/components/Badge/icons/Inventory.js +23 -0
- package/dist/components/Badge/icons/Parcel.d.ts +2 -0
- package/dist/components/Badge/icons/Parcel.js +23 -0
- package/dist/components/Badge/icons/Product.d.ts +2 -0
- package/dist/components/Badge/icons/Product.js +23 -0
- package/dist/components/Badge/icons/Route.d.ts +2 -0
- package/dist/components/Badge/icons/Route.js +23 -0
- package/dist/components/Badge/icons/Shipment.d.ts +2 -0
- package/dist/components/Badge/icons/Shipment.js +23 -0
- package/dist/components/Badge/icons/ShoppingCart.d.ts +2 -0
- package/dist/components/Badge/icons/ShoppingCart.js +23 -0
- package/dist/components/Badge/icons/System.d.ts +2 -0
- package/dist/components/Badge/icons/System.js +23 -0
- package/dist/components/Badge/index.d.ts +2 -0
- package/dist/components/Badge/index.js +23 -0
- package/dist/components/Badge/styles.d.ts +3 -0
- package/dist/components/Badge/styles.js +35 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +27 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.d.ts +8 -0
- package/dist/components/Breadcrumb/Breadcrumb.types.js +1 -0
- package/dist/components/Breadcrumb/__stories__/Breadcrumb.stories.d.ts +10 -0
- package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +70 -0
- package/dist/components/Breadcrumb/index.d.ts +3 -0
- package/dist/components/Breadcrumb/index.js +27 -0
- package/dist/components/Breadcrumb/styles.d.ts +23 -0
- package/dist/components/Breadcrumb/styles.js +2457 -0
- package/dist/components/Button/Button.js +42 -0
- package/dist/components/Button/__tests__/Button.test.js +61 -0
- package/dist/components/Button/index.js +22 -0
- package/dist/components/{atoms/button → Button}/styles.js +30 -19
- package/dist/components/{atoms/checkbox → Checkbox}/Checkbox.d.ts +2 -1
- package/dist/components/Checkbox/Checkbox.js +70 -0
- package/dist/components/Checkbox/__tests__/Checkbox.test.js +64 -0
- package/dist/components/Checkbox/index.js +49 -0
- package/dist/components/{atoms/checkbox → Checkbox}/styles.d.ts +1 -3
- package/dist/components/{atoms/checkbox → Checkbox}/styles.js +165 -157
- package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +72 -0
- package/dist/components/ErrorBoundaryFallback/index.js +51 -0
- package/dist/components/ErrorBoundaryFallback/styles.d.ts +3 -0
- package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/styles.js +38 -34
- package/dist/components/{molecules/form → Form}/Form.d.ts +2 -4
- package/dist/components/Form/Form.js +49 -0
- package/dist/components/Form/__stories__/FormStory.js +130 -0
- package/dist/components/Form/index.js +48 -0
- package/dist/components/{atoms/input → Input}/Input.d.ts +1 -3
- package/dist/components/Input/Input.js +42 -0
- package/dist/components/{atoms/input → Input}/__stories__/Input.stories.d.ts +5 -1
- package/dist/components/Input/__tests__/Input.test.d.ts +1 -0
- package/dist/components/Input/__tests__/Input.test.js +69 -0
- package/dist/components/Input/index.js +31 -0
- package/dist/components/{atoms/input → Input}/styles.d.ts +2 -3
- package/dist/components/Input/styles.js +542 -0
- package/dist/components/Message/Message.d.ts +13 -0
- package/dist/components/Message/Message.js +105 -0
- package/dist/components/Message/__stories__/Message.stories.d.ts +15 -0
- package/dist/components/Message/__tests__/Message.test.d.ts +1 -0
- package/dist/components/Message/__tests__/Message.test.js +88 -0
- package/dist/components/Message/index.d.ts +2 -0
- package/dist/components/Message/index.js +50 -0
- package/dist/components/Message/styles.d.ts +5 -0
- package/dist/components/Message/styles.js +35 -0
- package/dist/components/Notification/Notification.d.ts +16 -0
- package/dist/components/Notification/Notification.js +1436 -0
- package/dist/components/Notification/__stories__/Notification.stories.d.ts +10 -0
- package/dist/components/Notification/__tests__/Notification.test.d.ts +1 -0
- package/dist/components/Notification/__tests__/Notification.test.js +76 -0
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Notification/index.js +61 -0
- package/dist/components/Notification/styles.d.ts +6 -0
- package/dist/components/Notification/styles.js +49 -0
- package/dist/components/Radio/Radio.d.ts +14 -0
- package/dist/components/Radio/Radio.js +114 -0
- package/dist/components/Radio/RadioGroup.d.ts +12 -0
- package/dist/components/Radio/RadioGroup.js +86 -0
- package/dist/components/Radio/__stories__/RadioGroup.stories.d.ts +9 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.d.ts +1 -0
- package/dist/components/Radio/__tests__/RadioGroup.test.js +85 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/index.js +58 -0
- package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioChecked.js +18 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedDisabled.js +18 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedFocussed.js +30 -0
- package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioCheckedHover.js +18 -0
- package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
- package/dist/components/Radio/states/RadioUnchecked.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedDisabled.js +15 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedFocussed.js +29 -0
- package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
- package/dist/components/Radio/states/RadioUncheckedHover.js +18 -0
- package/dist/components/{atoms/select → Select}/Select.d.ts +1 -1
- package/dist/components/Select/Select.js +48 -0
- package/dist/components/{atoms/select → Select}/__stories__/Select.stories.d.ts +3 -1
- package/dist/components/Select/__tests__/Select.test.d.ts +1 -0
- package/dist/components/Select/__tests__/Select.test.js +101 -0
- package/dist/components/Select/index.js +30 -0
- package/dist/components/{atoms/select → Select}/styles.d.ts +4 -1
- package/dist/components/Select/styles.js +3723 -0
- package/dist/components/Toast/Toast.d.ts +14 -0
- package/dist/components/Toast/Toast.js +48 -0
- package/dist/components/Toast/__stories__/Toast.stories.d.ts +15 -0
- package/dist/components/Toast/__tests__/Toast.test.d.ts +1 -0
- package/dist/components/Toast/__tests__/Toast.test.js +63 -0
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/index.js +48 -0
- package/dist/components/Toast/styles.d.ts +5 -0
- package/dist/components/Toast/styles.js +39 -0
- package/dist/components/{atoms/typography → Typography}/Typography.d.ts +2 -1
- package/dist/components/Typography/Typography.js +48 -0
- package/dist/components/Typography/__tests__/Typography.test.d.ts +1 -0
- package/dist/components/Typography/__tests__/Typography.test.js +60 -0
- package/dist/components/Typography/index.js +48 -0
- package/dist/components/Typography/styles.d.ts +7 -0
- package/dist/components/Typography/styles.js +55 -0
- package/dist/components/index.d.ts +18 -14
- package/dist/components/index.js +70 -14
- package/dist/constants/index.d.ts +104 -0
- package/dist/constants/index.js +41 -7
- package/dist/{context-CZsFJmh6.js → context-3b8a39af.js} +547 -536
- package/dist/genesis/GenesisThemeBreakdown.js +69 -22
- package/dist/genesis/GenesisThemeDemo.d.ts +0 -2
- package/dist/genesis/GenesisThemeDemo.js +53 -4
- package/dist/genesis/styles.d.ts +2 -6
- package/dist/genesis/styles.js +1144 -2210
- package/dist/index-0a886e53.js +100 -0
- package/dist/{index-SAAXFt-P.js → index-0b9ee239.js} +347 -338
- package/dist/index-1a33c134.js +1389 -0
- package/dist/index-4003d75b.js +3748 -0
- package/dist/{index-D1v_7IIx.js → index-501fc13d.js} +369 -343
- package/dist/index-89035ea5.js +3242 -0
- package/dist/{index-BQO27mgE.js → index-8c8d2d0c.js} +123 -122
- package/dist/{index-C7kFNqp2.js → index-e2b72ca8.js} +107 -102
- package/dist/index.d.ts +1 -0
- package/dist/index.js +77 -18
- package/dist/{isVisible-CNQjrJPN.js → isVisible-729780f5.js} +110 -82
- package/dist/{magic-string.es-BkUFmFT4.js → magic-string.es-b7491176.js} +103 -56
- package/dist/{SearchOutlined-DuzJkIiQ.js → pickAttrs-00ba4687.js} +16 -26
- package/dist/presets-83ccb923.js +787 -0
- package/dist/providers/GenesisProvider.d.ts +5 -0
- package/dist/providers/GenesisProvider.js +59 -5
- package/dist/providers/ThemeProvider.d.ts +2 -1
- package/dist/providers/ThemeProvider.js +16 -11
- package/dist/providers/ToastProvider.d.ts +6 -0
- package/dist/providers/ToastProvider.js +49 -0
- package/dist/providers/ToastWrapper.d.ts +7 -0
- package/dist/providers/ToastWrapper.js +56 -0
- package/dist/providers/__stories__/GenesisProvider.stories.d.ts +6 -0
- package/dist/providers/index.d.ts +3 -2
- package/dist/providers/index.js +51 -4
- package/dist/setup-aaca7b6f.js +21158 -0
- package/dist/{styled-components.browser.esm-CZ1XM4o4.js → styled-components.browser.esm-02f500bc.js} +134 -72
- package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +54 -18
- package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +51 -15
- package/dist/styles/design-tokens/variables.d.ts +7 -7
- package/dist/styles/design-tokens/variables.js +48 -48
- package/dist/styles/global-styles.js +4 -3
- package/dist/styles/theme/genesis-theme.d.ts +3 -0
- package/dist/styles/theme/genesis-theme.js +402 -263
- package/dist/styles/theme/global-styles.js +4 -3
- package/dist/styles/theme/index.js +5 -4
- package/dist/test/setup.js +46 -2
- package/dist/useVariants-a0d64298.js +30 -0
- package/dist/utils/isAllEnglishString.js +2 -1
- package/package.json +34 -28
- package/dist/AntdIcon-Bsnbyy6g.js +0 -200
- package/dist/CheckOutlined-DAynWe12.js +0 -527
- package/dist/Compact-CJBo3f0u.js +0 -185
- package/dist/ContextIsolator-CGkdKtc3.js +0 -20
- package/dist/Form-Cylpi4M4.js +0 -1815
- package/dist/Overflow-CP1M4Z0s.js +0 -369
- package/dist/compact-item-DH13cl8A.js +0 -61
- package/dist/components/atoms/button/Button.js +0 -27
- package/dist/components/atoms/button/index.js +0 -4
- package/dist/components/atoms/checkbox/Checkbox.js +0 -13
- package/dist/components/atoms/checkbox/__tests__/Checkbox.test.js +0 -18
- package/dist/components/atoms/checkbox/index.js +0 -4
- package/dist/components/atoms/index.d.ts +0 -1
- package/dist/components/atoms/index.js +0 -3
- package/dist/components/atoms/input/Input.js +0 -12
- package/dist/components/atoms/input/__tests__/Input.test.js +0 -28
- package/dist/components/atoms/input/index.js +0 -4
- package/dist/components/atoms/input/styles.js +0 -415
- package/dist/components/atoms/select/Select.js +0 -24
- package/dist/components/atoms/select/__tests__/Select.test.js +0 -10735
- package/dist/components/atoms/select/index.js +0 -4
- package/dist/components/atoms/select/styles.js +0 -3868
- package/dist/components/atoms/typography/Typography.js +0 -44
- package/dist/components/atoms/typography/__tests__/Typography.test.js +0 -16
- package/dist/components/atoms/typography/index.js +0 -4
- package/dist/components/atoms/typography/styles.d.ts +0 -11
- package/dist/components/atoms/typography/styles.js +0 -28
- package/dist/components/molecules/error-boundary-fallback/ErrorBoundaryFallback.js +0 -35
- package/dist/components/molecules/error-boundary-fallback/index.js +0 -4
- package/dist/components/molecules/error-boundary-fallback/styles.d.ts +0 -1
- package/dist/components/molecules/form/Form.js +0 -7
- package/dist/components/molecules/form/__stories__/FormStory.js +0 -90
- package/dist/components/molecules/form/index.js +0 -4
- package/dist/index-3MWkSVA1.js +0 -96
- package/dist/index-BPtFqhcp.js +0 -19110
- package/dist/index-BWys7dkb.js +0 -4462
- package/dist/index-VDH3iLaC.js +0 -884
- package/dist/setup-CMYVZCPF.js +0 -33883
- package/dist/useVariants-CEpw6Ww6.js +0 -29
- /package/dist/components/{atoms/checkbox/__tests__/Checkbox.test.d.ts → Badge/__tests__/Badge.test.d.ts} +0 -0
- /package/dist/components/{atoms/input/__tests__/Input.test.d.ts → Breadcrumb/__tests__/Breadcrumb.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/Button.d.ts +0 -0
- /package/dist/components/{atoms/button → Button}/__stories__/Button.stories.d.ts +0 -0
- /package/dist/components/{atoms/select/__tests__/Select.test.d.ts → Button/__tests__/Button.test.d.ts} +0 -0
- /package/dist/components/{atoms/button → Button}/index.d.ts +0 -0
- /package/dist/components/{atoms/button → Button}/styles.d.ts +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/__stories__/Checkbox.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography/__tests__/Typography.test.d.ts → Checkbox/__tests__/Checkbox.test.d.ts} +0 -0
- /package/dist/components/{atoms/checkbox → Checkbox}/index.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/ErrorBoundaryFallback.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/__stories__/ErrorBoundaryFallback.stories.d.ts +0 -0
- /package/dist/components/{molecules/error-boundary-fallback → ErrorBoundaryFallback}/index.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/Form.stories.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/__stories__/FormStory.d.ts +0 -0
- /package/dist/components/{molecules/form → Form}/index.d.ts +0 -0
- /package/dist/components/{atoms/input → Input}/index.d.ts +0 -0
- /package/dist/components/{atoms/select → Select}/index.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/__stories__/Typography.stories.d.ts +0 -0
- /package/dist/components/{atoms/typography → Typography}/index.d.ts +0 -0
- /package/dist/{presetColors-Cl8UP3Nw.js → presetColors-ccf8cb4c.js} +0 -0
- /package/dist/{reactNode-sKPeiqPL.js → reactNode-f4391605.js} +0 -0
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { b as ht } from "./presets-83ccb923.js";
|
|
2
|
+
import "react";
|
|
2
3
|
var q = { exports: {} };
|
|
3
4
|
(function(E, t) {
|
|
4
5
|
(function(e, n) {
|
|
5
6
|
n(t);
|
|
6
7
|
})(ht, function(e) {
|
|
7
|
-
const r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = new Uint8Array(64), f = new Uint8Array(128);
|
|
8
|
+
const n = ",".charCodeAt(0), s = ";".charCodeAt(0), r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", u = new Uint8Array(64), f = new Uint8Array(128);
|
|
8
9
|
for (let a = 0; a < r.length; a++) {
|
|
9
10
|
const h = r.charCodeAt(a);
|
|
10
11
|
u[a] = h, f[h] = a;
|
|
@@ -28,7 +29,7 @@ var q = { exports: {} };
|
|
|
28
29
|
return h;
|
|
29
30
|
}
|
|
30
31
|
function k(a, h) {
|
|
31
|
-
return a.pos >= h ? !1 : a.peek() !==
|
|
32
|
+
return a.pos >= h ? !1 : a.peek() !== n;
|
|
32
33
|
}
|
|
33
34
|
const O = 1024 * 16, z = typeof TextDecoder < "u" ? /* @__PURE__ */ new TextDecoder() : typeof Buffer < "u" ? {
|
|
34
35
|
decode(a) {
|
|
@@ -103,7 +104,7 @@ var q = { exports: {} };
|
|
|
103
104
|
}
|
|
104
105
|
function H(a, h, i, l) {
|
|
105
106
|
const d = a[h], { 0: g, 1: b, 2: m, 3: S, 4: C, vars: w } = d;
|
|
106
|
-
h > 0 && i.write(
|
|
107
|
+
h > 0 && i.write(n), l[0] = c(i, g, l[0]), c(i, b, 0), c(i, C, 0);
|
|
107
108
|
const y = d.length === 6 ? 1 : 0;
|
|
108
109
|
c(i, y, 0), d.length === 6 && c(i, d[5], 0);
|
|
109
110
|
for (const v of w)
|
|
@@ -114,7 +115,7 @@ var q = { exports: {} };
|
|
|
114
115
|
break;
|
|
115
116
|
h = H(a, h, i, l);
|
|
116
117
|
}
|
|
117
|
-
return i.write(
|
|
118
|
+
return i.write(n), l[0] = c(i, m, l[0]), c(i, S, 0), h;
|
|
118
119
|
}
|
|
119
120
|
function V(a) {
|
|
120
121
|
const { length: h } = a, i = new G(a), l = [], d = [];
|
|
@@ -176,7 +177,7 @@ var q = { exports: {} };
|
|
|
176
177
|
}
|
|
177
178
|
function J(a, h, i, l) {
|
|
178
179
|
const d = a[h], { 0: g, 1: b, 2: m, 3: S, isScope: C, callsite: w, bindings: y } = d;
|
|
179
|
-
l[0] < g ? (W(i, l[0], g), l[0] = g, l[1] = 0) : h > 0 && i.write(
|
|
180
|
+
l[0] < g ? (W(i, l[0], g), l[0] = g, l[1] = 0) : h > 0 && i.write(n), l[1] = c(i, d[1], l[1]);
|
|
180
181
|
const v = (d.length === 6 ? 1 : 0) | (w ? 2 : 0) | (C ? 4 : 0);
|
|
181
182
|
if (c(i, v, 0), d.length === 6) {
|
|
182
183
|
const { 4: p, 5: x } = d;
|
|
@@ -203,11 +204,11 @@ var q = { exports: {} };
|
|
|
203
204
|
break;
|
|
204
205
|
h = J(a, h, i, l);
|
|
205
206
|
}
|
|
206
|
-
return l[0] < m ? (W(i, l[0], m), l[0] = m, l[1] = 0) : i.write(
|
|
207
|
+
return l[0] < m ? (W(i, l[0], m), l[0] = m, l[1] = 0) : i.write(n), l[1] = c(i, S, l[1]), h;
|
|
207
208
|
}
|
|
208
209
|
function W(a, h, i) {
|
|
209
210
|
do
|
|
210
|
-
a.write(
|
|
211
|
+
a.write(s);
|
|
211
212
|
while (++h < i);
|
|
212
213
|
}
|
|
213
214
|
function et(a) {
|
|
@@ -235,12 +236,12 @@ var q = { exports: {} };
|
|
|
235
236
|
let i = 0, l = 0, d = 0, g = 0;
|
|
236
237
|
for (let b = 0; b < a.length; b++) {
|
|
237
238
|
const m = a[b];
|
|
238
|
-
if (b > 0 && h.write(
|
|
239
|
+
if (b > 0 && h.write(s), m.length === 0)
|
|
239
240
|
continue;
|
|
240
241
|
let S = 0;
|
|
241
242
|
for (let C = 0; C < m.length; C++) {
|
|
242
243
|
const w = m[C];
|
|
243
|
-
C > 0 && h.write(
|
|
244
|
+
C > 0 && h.write(n), S = c(h, w[0], S), w.length !== 1 && (i = c(h, w[1], i), l = c(h, w[2], l), d = c(h, w[3], d), w.length !== 4 && (g = c(h, w[4], g)));
|
|
244
245
|
}
|
|
245
246
|
}
|
|
246
247
|
return h.flush();
|
|
@@ -309,14 +310,17 @@ class M {
|
|
|
309
310
|
return this.intro + this.content + this.outro;
|
|
310
311
|
}
|
|
311
312
|
trimEnd(t) {
|
|
312
|
-
if (this.outro = this.outro.replace(t, ""), this.outro.length)
|
|
313
|
+
if (this.outro = this.outro.replace(t, ""), this.outro.length)
|
|
314
|
+
return !0;
|
|
313
315
|
const e = this.content.replace(t, "");
|
|
314
316
|
if (e.length)
|
|
315
317
|
return e !== this.content && (this.split(this.start + e.length).edit("", void 0, !0), this.edited && this.edit(e, this.storeName, !0)), !0;
|
|
316
|
-
if (this.edit("", void 0, !0), this.intro = this.intro.replace(t, ""), this.intro.length)
|
|
318
|
+
if (this.edit("", void 0, !0), this.intro = this.intro.replace(t, ""), this.intro.length)
|
|
319
|
+
return !0;
|
|
317
320
|
}
|
|
318
321
|
trimStart(t) {
|
|
319
|
-
if (this.intro = this.intro.replace(t, ""), this.intro.length)
|
|
322
|
+
if (this.intro = this.intro.replace(t, ""), this.intro.length)
|
|
323
|
+
return !0;
|
|
320
324
|
const e = this.content.replace(t, "");
|
|
321
325
|
if (e.length) {
|
|
322
326
|
if (e !== this.content) {
|
|
@@ -324,7 +328,8 @@ class M {
|
|
|
324
328
|
this.edited && n.edit(e, this.storeName, !0), this.edit("", void 0, !0);
|
|
325
329
|
}
|
|
326
330
|
return !0;
|
|
327
|
-
} else if (this.edit("", void 0, !0), this.outro = this.outro.replace(t, ""), this.outro.length)
|
|
331
|
+
} else if (this.edit("", void 0, !0), this.outro = this.outro.replace(t, ""), this.outro.length)
|
|
332
|
+
return !0;
|
|
328
333
|
}
|
|
329
334
|
}
|
|
330
335
|
function ut() {
|
|
@@ -363,7 +368,8 @@ function dt(E, t) {
|
|
|
363
368
|
e.shift(), n.shift();
|
|
364
369
|
if (e.length) {
|
|
365
370
|
let s = e.length;
|
|
366
|
-
for (; s--; )
|
|
371
|
+
for (; s--; )
|
|
372
|
+
e[s] = "..";
|
|
367
373
|
}
|
|
368
374
|
return e.concat(n).join("/");
|
|
369
375
|
}
|
|
@@ -403,7 +409,8 @@ class wt {
|
|
|
403
409
|
}
|
|
404
410
|
const o = [this.generatedCodeColumn, t, n.line, n.column];
|
|
405
411
|
s >= 0 && o.push(s), this.rawSegments.push(o), this.advance(e.slice(f + 1));
|
|
406
|
-
} else
|
|
412
|
+
} else
|
|
413
|
+
this.pending && (this.rawSegments.push(this.pending), this.advance(e));
|
|
407
414
|
this.pending = null;
|
|
408
415
|
}
|
|
409
416
|
addUneditedChunk(t, e, n, s, r) {
|
|
@@ -424,7 +431,8 @@ class wt {
|
|
|
424
431
|
this.pending = null;
|
|
425
432
|
}
|
|
426
433
|
advance(t) {
|
|
427
|
-
if (!t)
|
|
434
|
+
if (!t)
|
|
435
|
+
return;
|
|
428
436
|
const e = t.split(`
|
|
429
437
|
`);
|
|
430
438
|
if (e.length > 1) {
|
|
@@ -466,17 +474,20 @@ class Q {
|
|
|
466
474
|
this.sourcemapLocations.add(t);
|
|
467
475
|
}
|
|
468
476
|
append(t) {
|
|
469
|
-
if (typeof t != "string")
|
|
477
|
+
if (typeof t != "string")
|
|
478
|
+
throw new TypeError("outro content must be a string");
|
|
470
479
|
return this.outro += t, this;
|
|
471
480
|
}
|
|
472
481
|
appendLeft(t, e) {
|
|
473
|
-
if (t = t + this.offset, typeof e != "string")
|
|
482
|
+
if (t = t + this.offset, typeof e != "string")
|
|
483
|
+
throw new TypeError("inserted content must be a string");
|
|
474
484
|
this._split(t);
|
|
475
485
|
const n = this.byEnd[t];
|
|
476
486
|
return n ? n.appendLeft(e) : this.intro += e, this;
|
|
477
487
|
}
|
|
478
488
|
appendRight(t, e) {
|
|
479
|
-
if (t = t + this.offset, typeof e != "string")
|
|
489
|
+
if (t = t + this.offset, typeof e != "string")
|
|
490
|
+
throw new TypeError("inserted content must be a string");
|
|
480
491
|
this._split(t);
|
|
481
492
|
const n = this.byStart[t];
|
|
482
493
|
return n ? n.appendRight(e) : this.outro += e, this;
|
|
@@ -527,7 +538,8 @@ class Q {
|
|
|
527
538
|
}
|
|
528
539
|
indent(t, e) {
|
|
529
540
|
const n = /^[^\r\n]/gm;
|
|
530
|
-
if (pt(t) && (e = t, t = void 0), t === void 0 && (this._ensureindentStr(), t = this.indentStr || " "), t === "")
|
|
541
|
+
if (pt(t) && (e = t, t = void 0), t === void 0 && (this._ensureindentStr(), t = this.indentStr || " "), t === "")
|
|
542
|
+
return this;
|
|
531
543
|
e = e || {};
|
|
532
544
|
const s = {};
|
|
533
545
|
e.exclude && (typeof e.exclude[0] == "number" ? [e.exclude] : e.exclude).forEach((k) => {
|
|
@@ -572,10 +584,12 @@ class Q {
|
|
|
572
584
|
), N.insertRight = !0), this.prependRight(t, e);
|
|
573
585
|
}
|
|
574
586
|
move(t, e, n) {
|
|
575
|
-
if (t = t + this.offset, e = e + this.offset, n = n + this.offset, n >= t && n <= e)
|
|
587
|
+
if (t = t + this.offset, e = e + this.offset, n = n + this.offset, n >= t && n <= e)
|
|
588
|
+
throw new Error("Cannot move a selection inside itself");
|
|
576
589
|
this._split(t), this._split(e), this._split(n);
|
|
577
590
|
const s = this.byStart[t], r = this.byEnd[e], u = s.previous, f = r.next, o = this.byStart[n];
|
|
578
|
-
if (!o && r === this.lastChunk)
|
|
591
|
+
if (!o && r === this.lastChunk)
|
|
592
|
+
return this;
|
|
579
593
|
const c = o ? o.previous : this.lastChunk;
|
|
580
594
|
return u && (u.next = f), f && (f.previous = u), c && (c.next = s), o && (o.previous = r), s.previous || (this.firstChunk = r.next), r.next || (this.lastChunk = s.previous, this.lastChunk.next = null), s.previous = c, r.next = o || null, c || (this.firstChunk = s), o || (this.lastChunk = r), this;
|
|
581
595
|
}
|
|
@@ -583,12 +597,16 @@ class Q {
|
|
|
583
597
|
return s = s || {}, this.update(t, e, n, { ...s, overwrite: !s.contentOnly });
|
|
584
598
|
}
|
|
585
599
|
update(t, e, n, s) {
|
|
586
|
-
if (t = t + this.offset, e = e + this.offset, typeof n != "string")
|
|
600
|
+
if (t = t + this.offset, e = e + this.offset, typeof n != "string")
|
|
601
|
+
throw new TypeError("replacement content must be a string");
|
|
587
602
|
if (this.original.length !== 0) {
|
|
588
|
-
for (; t < 0; )
|
|
589
|
-
|
|
603
|
+
for (; t < 0; )
|
|
604
|
+
t += this.original.length;
|
|
605
|
+
for (; e < 0; )
|
|
606
|
+
e += this.original.length;
|
|
590
607
|
}
|
|
591
|
-
if (e > this.original.length)
|
|
608
|
+
if (e > this.original.length)
|
|
609
|
+
throw new Error("end is out of bounds");
|
|
592
610
|
if (t === e)
|
|
593
611
|
throw new Error(
|
|
594
612
|
"Cannot overwrite a zero-length range – use appendLeft or prependRight instead"
|
|
@@ -621,29 +639,37 @@ class Q {
|
|
|
621
639
|
return this;
|
|
622
640
|
}
|
|
623
641
|
prepend(t) {
|
|
624
|
-
if (typeof t != "string")
|
|
642
|
+
if (typeof t != "string")
|
|
643
|
+
throw new TypeError("outro content must be a string");
|
|
625
644
|
return this.intro = t + this.intro, this;
|
|
626
645
|
}
|
|
627
646
|
prependLeft(t, e) {
|
|
628
|
-
if (t = t + this.offset, typeof e != "string")
|
|
647
|
+
if (t = t + this.offset, typeof e != "string")
|
|
648
|
+
throw new TypeError("inserted content must be a string");
|
|
629
649
|
this._split(t);
|
|
630
650
|
const n = this.byEnd[t];
|
|
631
651
|
return n ? n.prependLeft(e) : this.intro = e + this.intro, this;
|
|
632
652
|
}
|
|
633
653
|
prependRight(t, e) {
|
|
634
|
-
if (t = t + this.offset, typeof e != "string")
|
|
654
|
+
if (t = t + this.offset, typeof e != "string")
|
|
655
|
+
throw new TypeError("inserted content must be a string");
|
|
635
656
|
this._split(t);
|
|
636
657
|
const n = this.byStart[t];
|
|
637
658
|
return n ? n.prependRight(e) : this.outro = e + this.outro, this;
|
|
638
659
|
}
|
|
639
660
|
remove(t, e) {
|
|
640
661
|
if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
|
|
641
|
-
for (; t < 0; )
|
|
642
|
-
|
|
662
|
+
for (; t < 0; )
|
|
663
|
+
t += this.original.length;
|
|
664
|
+
for (; e < 0; )
|
|
665
|
+
e += this.original.length;
|
|
643
666
|
}
|
|
644
|
-
if (t === e)
|
|
645
|
-
|
|
646
|
-
if (t
|
|
667
|
+
if (t === e)
|
|
668
|
+
return this;
|
|
669
|
+
if (t < 0 || e > this.original.length)
|
|
670
|
+
throw new Error("Character is out of bounds");
|
|
671
|
+
if (t > e)
|
|
672
|
+
throw new Error("end must be greater than start");
|
|
647
673
|
this._split(t), this._split(e);
|
|
648
674
|
let n = this.byStart[t];
|
|
649
675
|
for (; n; )
|
|
@@ -652,12 +678,17 @@ class Q {
|
|
|
652
678
|
}
|
|
653
679
|
reset(t, e) {
|
|
654
680
|
if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
|
|
655
|
-
for (; t < 0; )
|
|
656
|
-
|
|
681
|
+
for (; t < 0; )
|
|
682
|
+
t += this.original.length;
|
|
683
|
+
for (; e < 0; )
|
|
684
|
+
e += this.original.length;
|
|
657
685
|
}
|
|
658
|
-
if (t === e)
|
|
659
|
-
|
|
660
|
-
if (t
|
|
686
|
+
if (t === e)
|
|
687
|
+
return this;
|
|
688
|
+
if (t < 0 || e > this.original.length)
|
|
689
|
+
throw new Error("Character is out of bounds");
|
|
690
|
+
if (t > e)
|
|
691
|
+
throw new Error("end must be greater than start");
|
|
661
692
|
this._split(t), this._split(e);
|
|
662
693
|
let n = this.byStart[t];
|
|
663
694
|
for (; n; )
|
|
@@ -665,30 +696,38 @@ class Q {
|
|
|
665
696
|
return this;
|
|
666
697
|
}
|
|
667
698
|
lastChar() {
|
|
668
|
-
if (this.outro.length)
|
|
699
|
+
if (this.outro.length)
|
|
700
|
+
return this.outro[this.outro.length - 1];
|
|
669
701
|
let t = this.lastChunk;
|
|
670
702
|
do {
|
|
671
|
-
if (t.outro.length)
|
|
672
|
-
|
|
673
|
-
if (t.
|
|
703
|
+
if (t.outro.length)
|
|
704
|
+
return t.outro[t.outro.length - 1];
|
|
705
|
+
if (t.content.length)
|
|
706
|
+
return t.content[t.content.length - 1];
|
|
707
|
+
if (t.intro.length)
|
|
708
|
+
return t.intro[t.intro.length - 1];
|
|
674
709
|
} while (t = t.previous);
|
|
675
710
|
return this.intro.length ? this.intro[this.intro.length - 1] : "";
|
|
676
711
|
}
|
|
677
712
|
lastLine() {
|
|
678
713
|
let t = this.outro.lastIndexOf($);
|
|
679
|
-
if (t !== -1)
|
|
714
|
+
if (t !== -1)
|
|
715
|
+
return this.outro.substr(t + 1);
|
|
680
716
|
let e = this.outro, n = this.lastChunk;
|
|
681
717
|
do {
|
|
682
718
|
if (n.outro.length > 0) {
|
|
683
|
-
if (t = n.outro.lastIndexOf($), t !== -1)
|
|
719
|
+
if (t = n.outro.lastIndexOf($), t !== -1)
|
|
720
|
+
return n.outro.substr(t + 1) + e;
|
|
684
721
|
e = n.outro + e;
|
|
685
722
|
}
|
|
686
723
|
if (n.content.length > 0) {
|
|
687
|
-
if (t = n.content.lastIndexOf($), t !== -1)
|
|
724
|
+
if (t = n.content.lastIndexOf($), t !== -1)
|
|
725
|
+
return n.content.substr(t + 1) + e;
|
|
688
726
|
e = n.content + e;
|
|
689
727
|
}
|
|
690
728
|
if (n.intro.length > 0) {
|
|
691
|
-
if (t = n.intro.lastIndexOf($), t !== -1)
|
|
729
|
+
if (t = n.intro.lastIndexOf($), t !== -1)
|
|
730
|
+
return n.intro.substr(t + 1) + e;
|
|
692
731
|
e = n.intro + e;
|
|
693
732
|
}
|
|
694
733
|
} while (n = n.previous);
|
|
@@ -696,8 +735,10 @@ class Q {
|
|
|
696
735
|
}
|
|
697
736
|
slice(t = 0, e = this.original.length - this.offset) {
|
|
698
737
|
if (t = t + this.offset, e = e + this.offset, this.original.length !== 0) {
|
|
699
|
-
for (; t < 0; )
|
|
700
|
-
|
|
738
|
+
for (; t < 0; )
|
|
739
|
+
t += this.original.length;
|
|
740
|
+
for (; e < 0; )
|
|
741
|
+
e += this.original.length;
|
|
701
742
|
}
|
|
702
743
|
let n = "", s = this.firstChunk;
|
|
703
744
|
for (; s && (s.start > t || s.end <= t); ) {
|
|
@@ -726,11 +767,13 @@ class Q {
|
|
|
726
767
|
return n.remove(0, t), n.remove(e, n.original.length), n;
|
|
727
768
|
}
|
|
728
769
|
_split(t) {
|
|
729
|
-
if (this.byStart[t] || this.byEnd[t])
|
|
770
|
+
if (this.byStart[t] || this.byEnd[t])
|
|
771
|
+
return;
|
|
730
772
|
let e = this.lastSearchedChunk;
|
|
731
773
|
const n = t > e.end;
|
|
732
774
|
for (; e; ) {
|
|
733
|
-
if (e.contains(t))
|
|
775
|
+
if (e.contains(t))
|
|
776
|
+
return this._splitChunk(e, t);
|
|
734
777
|
e = n ? this.byStart[e.end] : this.byEnd[e.start];
|
|
735
778
|
}
|
|
736
779
|
}
|
|
@@ -773,11 +816,13 @@ class Q {
|
|
|
773
816
|
}
|
|
774
817
|
trimEndAborted(t) {
|
|
775
818
|
const e = new RegExp((t || "\\s") + "+$");
|
|
776
|
-
if (this.outro = this.outro.replace(e, ""), this.outro.length)
|
|
819
|
+
if (this.outro = this.outro.replace(e, ""), this.outro.length)
|
|
820
|
+
return !0;
|
|
777
821
|
let n = this.lastChunk;
|
|
778
822
|
do {
|
|
779
823
|
const s = n.end, r = n.trimEnd(e);
|
|
780
|
-
if (n.end !== s && (this.lastChunk === n && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r)
|
|
824
|
+
if (n.end !== s && (this.lastChunk === n && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r)
|
|
825
|
+
return !0;
|
|
781
826
|
n = n.previous;
|
|
782
827
|
} while (n);
|
|
783
828
|
return !1;
|
|
@@ -787,11 +832,13 @@ class Q {
|
|
|
787
832
|
}
|
|
788
833
|
trimStartAborted(t) {
|
|
789
834
|
const e = new RegExp("^" + (t || "\\s") + "+");
|
|
790
|
-
if (this.intro = this.intro.replace(e, ""), this.intro.length)
|
|
835
|
+
if (this.intro = this.intro.replace(e, ""), this.intro.length)
|
|
836
|
+
return !0;
|
|
791
837
|
let n = this.firstChunk;
|
|
792
838
|
do {
|
|
793
839
|
const s = n.end, r = n.trimStart(e);
|
|
794
|
-
if (n.end !== s && (n === this.lastChunk && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r)
|
|
840
|
+
if (n.end !== s && (n === this.lastChunk && (this.lastChunk = n.next), this.byEnd[n.end] = n, this.byStart[n.next.start] = n.next, this.byEnd[n.next.end] = n.next), r)
|
|
841
|
+
return !0;
|
|
795
842
|
n = n.next;
|
|
796
843
|
} while (n);
|
|
797
844
|
return !1;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { I as l } from "./AntdIcon-Bsnbyy6g.js";
|
|
4
|
-
var d = `accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
1
|
+
import { _ as i } from "./presets-83ccb923.js";
|
|
2
|
+
var s = `accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
5
3
|
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
6
4
|
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
7
5
|
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
@@ -12,41 +10,33 @@ var d = `accept acceptCharset accessKey action allowFullScreen allowTransparency
|
|
|
12
10
|
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
13
11
|
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
14
12
|
shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
|
|
15
|
-
summary tabIndex target title type useMap value width wmode wrap`,
|
|
13
|
+
summary tabIndex target title type useMap value width wmode wrap`, l = `onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
|
|
16
14
|
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
17
15
|
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
18
16
|
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
19
17
|
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
20
18
|
onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
|
|
21
|
-
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,
|
|
22
|
-
function r(a,
|
|
23
|
-
return a.indexOf(
|
|
19
|
+
onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`, d = "".concat(s, " ").concat(l).split(/[\s\n]+/), c = "aria-", u = "data-";
|
|
20
|
+
function r(a, o) {
|
|
21
|
+
return a.indexOf(o) === 0;
|
|
24
22
|
}
|
|
25
|
-
function
|
|
26
|
-
var
|
|
27
|
-
|
|
23
|
+
function m(a) {
|
|
24
|
+
var o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, e;
|
|
25
|
+
o === !1 ? e = {
|
|
28
26
|
aria: !0,
|
|
29
27
|
data: !0,
|
|
30
28
|
attr: !0
|
|
31
|
-
} :
|
|
29
|
+
} : o === !0 ? e = {
|
|
32
30
|
aria: !0
|
|
33
|
-
} : e = i({},
|
|
31
|
+
} : e = i({}, o);
|
|
34
32
|
var t = {};
|
|
35
|
-
return Object.keys(a).forEach(function(
|
|
33
|
+
return Object.keys(a).forEach(function(n) {
|
|
36
34
|
// Aria
|
|
37
|
-
(e.aria && (
|
|
38
|
-
e.data && r(
|
|
39
|
-
e.attr &&
|
|
35
|
+
(e.aria && (n === "role" || r(n, c)) || // Data
|
|
36
|
+
e.data && r(n, u) || // Attr
|
|
37
|
+
e.attr && d.includes(n)) && (t[n] = a[n]);
|
|
40
38
|
}), t;
|
|
41
39
|
}
|
|
42
|
-
var g = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z" } }] }, name: "search", theme: "outlined" }, f = function(n, e) {
|
|
43
|
-
return /* @__PURE__ */ s.createElement(l, c({}, n, {
|
|
44
|
-
ref: e,
|
|
45
|
-
icon: g
|
|
46
|
-
}));
|
|
47
|
-
}, C = /* @__PURE__ */ s.forwardRef(f);
|
|
48
|
-
process.env.NODE_ENV !== "production" && (C.displayName = "SearchOutlined");
|
|
49
40
|
export {
|
|
50
|
-
|
|
51
|
-
y as p
|
|
41
|
+
m as p
|
|
52
42
|
};
|