@northlight/ui 2.35.4 → 2.36.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/es/northlight.d.ts +137 -50
- package/dist/es/northlight.js +109 -48
- package/dist/es/northlight.js.map +1 -1
- package/dist/umd/northlight.cjs +179 -100
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +3 -3
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/package.json +8 -2
package/dist/umd/northlight.cjs
CHANGED
|
@@ -1,8 +1,27 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@chakra-ui/react'), require('react'), require('chakra-react-select'), require('ramda'), require('@react-aria/focus'), require('react-hook-form'), require('@chakra-ui/system'), require('@northlight/tokens'), require('@emotion/react'), require('@chakra-ui/theme-tools'), require('@northlight/icons'), require('@hookform/resolvers/joi'), require('@react-aria/checkbox'), require('@react-aria/radio'), require('@react-aria/utils'), require('@react-stately/radio'), require('@react-stately/checkbox'), require('@react-aria/datepicker'), require('@react-stately/datepicker'), require('@internationalized/date'), require('@react-aria/button'), require('@react-aria/i18n'), require('@react-stately/calendar'), require('@react-aria/calendar'), require('react-router-dom'), require('@chakra-ui/clickable'), require('framer-motion'), require('@dnd-kit/core'), require('@dnd-kit/utilities'), require('@dnd-kit/sortable'), require('@dnd-kit/modifiers'), require('react-window'), require('react-virtualized-auto-sizer'), require('react-avatar-editor'), require('react-number-format'), require('react-input-mask'), require('yafu')) :
|
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@chakra-ui/react', 'react', 'chakra-react-select', 'ramda', '@react-aria/focus', 'react-hook-form', '@chakra-ui/system', '@northlight/tokens', '@emotion/react', '@chakra-ui/theme-tools', '@northlight/icons', '@hookform/resolvers/joi', '@react-aria/checkbox', '@react-aria/radio', '@react-aria/utils', '@react-stately/radio', '@react-stately/checkbox', '@react-aria/datepicker', '@react-stately/datepicker', '@internationalized/date', '@react-aria/button', '@react-aria/i18n', '@react-stately/calendar', '@react-aria/calendar', 'react-router-dom', '@chakra-ui/clickable', 'framer-motion', '@dnd-kit/core', '@dnd-kit/utilities', '@dnd-kit/sortable', '@dnd-kit/modifiers', 'react-window', 'react-virtualized-auto-sizer', 'react-avatar-editor', 'react-number-format', 'react-input-mask', 'yafu'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.northlight = {}, global.react, global.React, global.chakraReactSelect, global.ramda, global.focus, global.reactHookForm, global.system, global.tokens, global.react$1, global.themeTools, global.
|
|
5
|
-
})(this, (function (exports, react, React, chakraReactSelect, ramda, focus, reactHookForm, system, tokens, react$1, themeTools,
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.northlight = {}, global.react, global.React, global.chakraReactSelect, global.ramda, global.focus, global.reactHookForm, global.system, global.tokens, global.react$1, global.themeTools, global.NorthlightIcons, global.joi, global.checkbox$1, global.radio$1, global.utils, global.radio, global.checkbox, global.datepicker, global.datepicker$1, global.date, global.button, global.i18n, global.calendar$1, global.calendar, global.reactRouterDom, global.clickable, global.framerMotion, global.core, global.utilities, global.sortable, global.modifiers, global.reactWindow, global.AutoSizer, global.AvatarEditor, global.reactNumberFormat, global.InputMask, global.yafu));
|
|
5
|
+
})(this, (function (exports, react, React, chakraReactSelect, ramda, focus, reactHookForm, system, tokens, react$1, themeTools, NorthlightIcons, joi, checkbox$1, radio$1, utils, radio, checkbox, datepicker, datepicker$1, date, button, i18n, calendar$1, calendar, reactRouterDom, clickable, framerMotion, core, utilities, sortable, modifiers, reactWindow, AutoSizer, AvatarEditor, reactNumberFormat, InputMask, yafu) { 'use strict';
|
|
6
|
+
|
|
7
|
+
function _interopNamespaceDefault(e) {
|
|
8
|
+
var n = Object.create(null);
|
|
9
|
+
if (e) {
|
|
10
|
+
Object.keys(e).forEach(function (k) {
|
|
11
|
+
if (k !== 'default') {
|
|
12
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
13
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function () { return e[k]; }
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
n.default = e;
|
|
21
|
+
return Object.freeze(n);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
var NorthlightIcons__namespace = /*#__PURE__*/_interopNamespaceDefault(NorthlightIcons);
|
|
6
25
|
|
|
7
26
|
var __defProp$2t = Object.defineProperty;
|
|
8
27
|
var __getOwnPropSymbols$2t = Object.getOwnPropertySymbols;
|
|
@@ -1607,7 +1626,7 @@
|
|
|
1607
1626
|
};
|
|
1608
1627
|
|
|
1609
1628
|
const Alert$1 = {
|
|
1610
|
-
parts: ["container", "title", "description"],
|
|
1629
|
+
parts: ["container", "title", "description", "icon"],
|
|
1611
1630
|
baseStyle: ({ theme: {
|
|
1612
1631
|
radii: borderRadius,
|
|
1613
1632
|
colors: color,
|
|
@@ -1619,40 +1638,69 @@
|
|
|
1619
1638
|
paddingEnd: coreSpacing[8],
|
|
1620
1639
|
width: "auto",
|
|
1621
1640
|
display: "flex"
|
|
1641
|
+
},
|
|
1642
|
+
title: {
|
|
1643
|
+
lineHeight: "1.25",
|
|
1644
|
+
overflowWrap: "break-word"
|
|
1645
|
+
},
|
|
1646
|
+
description: {
|
|
1647
|
+
lineHeight: "1.25",
|
|
1648
|
+
overflowWrap: "break-word"
|
|
1649
|
+
},
|
|
1650
|
+
icon: {
|
|
1651
|
+
boxSize: 6
|
|
1622
1652
|
}
|
|
1623
1653
|
}),
|
|
1624
1654
|
variants: {
|
|
1625
1655
|
success: ({ theme: { colors: color } }) => ({
|
|
1626
1656
|
container: {
|
|
1627
1657
|
bgColor: color.background.toast.success
|
|
1658
|
+
},
|
|
1659
|
+
icon: {
|
|
1660
|
+
color: color.icon.toast.success
|
|
1628
1661
|
}
|
|
1629
1662
|
}),
|
|
1630
1663
|
warning: ({ theme: { colors: color } }) => ({
|
|
1631
1664
|
container: {
|
|
1632
1665
|
bgColor: color.background.toast.warning
|
|
1666
|
+
},
|
|
1667
|
+
icon: {
|
|
1668
|
+
color: color.icon.toast.warning
|
|
1633
1669
|
}
|
|
1634
1670
|
}),
|
|
1635
1671
|
info: ({ theme: { colors: color } }) => ({
|
|
1636
1672
|
container: {
|
|
1637
1673
|
bgColor: color.background.toast.info
|
|
1674
|
+
},
|
|
1675
|
+
icon: {
|
|
1676
|
+
color: color.icon.toast.info
|
|
1638
1677
|
}
|
|
1639
1678
|
}),
|
|
1640
1679
|
error: ({ theme: { colors: color } }) => ({
|
|
1641
1680
|
container: {
|
|
1642
1681
|
bgColor: color.background.toast.error,
|
|
1643
1682
|
color: color.text.toast.error
|
|
1683
|
+
},
|
|
1684
|
+
icon: {
|
|
1685
|
+
color: color.icon.toast.error
|
|
1644
1686
|
}
|
|
1645
1687
|
}),
|
|
1646
1688
|
ai: ({ theme: { colors: color } }) => ({
|
|
1647
1689
|
container: {
|
|
1648
1690
|
bgColor: color.bg.ai.default,
|
|
1649
1691
|
color: color.text.inverted
|
|
1692
|
+
},
|
|
1693
|
+
icon: {
|
|
1694
|
+
color: color.icon.toast.ai
|
|
1650
1695
|
}
|
|
1651
1696
|
}),
|
|
1652
1697
|
default: ({ theme: { colors: color } }) => ({
|
|
1653
1698
|
container: {
|
|
1654
1699
|
bgColor: color.bg.layer,
|
|
1655
1700
|
color: color.text.default
|
|
1701
|
+
},
|
|
1702
|
+
icon: {
|
|
1703
|
+
color: color.icon.toast.default
|
|
1656
1704
|
}
|
|
1657
1705
|
}),
|
|
1658
1706
|
ghost: ({ theme: { colors: color } }) => ({
|
|
@@ -1662,6 +1710,9 @@
|
|
|
1662
1710
|
borderWidth: "xs",
|
|
1663
1711
|
borderColor: color.border.default,
|
|
1664
1712
|
borderStyle: "solid"
|
|
1713
|
+
},
|
|
1714
|
+
icon: {
|
|
1715
|
+
color: color.icon.toast.ghost
|
|
1665
1716
|
}
|
|
1666
1717
|
})
|
|
1667
1718
|
}
|
|
@@ -3722,7 +3773,7 @@
|
|
|
3722
3773
|
return a;
|
|
3723
3774
|
};
|
|
3724
3775
|
var __spreadProps$t = (a, b) => __defProps$t(a, __getOwnPropDescs$t(b));
|
|
3725
|
-
var __objRest$
|
|
3776
|
+
var __objRest$1S = (source, exclude) => {
|
|
3726
3777
|
var target = {};
|
|
3727
3778
|
for (var prop in source)
|
|
3728
3779
|
if (__hasOwnProp$2g.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -3743,7 +3794,7 @@
|
|
|
3743
3794
|
"data-testid": testId,
|
|
3744
3795
|
value = [],
|
|
3745
3796
|
onError
|
|
3746
|
-
} = _b, rest = __objRest$
|
|
3797
|
+
} = _b, rest = __objRest$1S(_b, [
|
|
3747
3798
|
"options",
|
|
3748
3799
|
"onChange",
|
|
3749
3800
|
"isLoading",
|
|
@@ -3853,7 +3904,7 @@
|
|
|
3853
3904
|
}
|
|
3854
3905
|
return a;
|
|
3855
3906
|
};
|
|
3856
|
-
var __objRest$
|
|
3907
|
+
var __objRest$1R = (source, exclude) => {
|
|
3857
3908
|
var target = {};
|
|
3858
3909
|
for (var prop in source)
|
|
3859
3910
|
if (__hasOwnProp$2f.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -3870,7 +3921,7 @@
|
|
|
3870
3921
|
name,
|
|
3871
3922
|
image,
|
|
3872
3923
|
variant = "square"
|
|
3873
|
-
} = _b, rest = __objRest$
|
|
3924
|
+
} = _b, rest = __objRest$1R(_b, [
|
|
3874
3925
|
"name",
|
|
3875
3926
|
"image",
|
|
3876
3927
|
"variant"
|
|
@@ -3912,7 +3963,7 @@
|
|
|
3912
3963
|
}
|
|
3913
3964
|
return a;
|
|
3914
3965
|
};
|
|
3915
|
-
var __objRest$
|
|
3966
|
+
var __objRest$1Q = (source, exclude) => {
|
|
3916
3967
|
var target = {};
|
|
3917
3968
|
for (var prop in source)
|
|
3918
3969
|
if (__hasOwnProp$2e.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -3928,7 +3979,7 @@
|
|
|
3928
3979
|
var _b = _a, {
|
|
3929
3980
|
variant = "success",
|
|
3930
3981
|
children
|
|
3931
|
-
} = _b, rest = __objRest$
|
|
3982
|
+
} = _b, rest = __objRest$1Q(_b, [
|
|
3932
3983
|
"variant",
|
|
3933
3984
|
"children"
|
|
3934
3985
|
]);
|
|
@@ -3969,7 +4020,7 @@
|
|
|
3969
4020
|
}
|
|
3970
4021
|
return a;
|
|
3971
4022
|
};
|
|
3972
|
-
var __objRest$
|
|
4023
|
+
var __objRest$1P = (source, exclude) => {
|
|
3973
4024
|
var target = {};
|
|
3974
4025
|
for (var prop in source)
|
|
3975
4026
|
if (__hasOwnProp$2c.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -3987,7 +4038,7 @@
|
|
|
3987
4038
|
size,
|
|
3988
4039
|
color,
|
|
3989
4040
|
boxSize
|
|
3990
|
-
} = _b, rest = __objRest$
|
|
4041
|
+
} = _b, rest = __objRest$1P(_b, [
|
|
3991
4042
|
"as",
|
|
3992
4043
|
"size",
|
|
3993
4044
|
"color",
|
|
@@ -4028,7 +4079,7 @@
|
|
|
4028
4079
|
}
|
|
4029
4080
|
return a;
|
|
4030
4081
|
};
|
|
4031
|
-
var __objRest$
|
|
4082
|
+
var __objRest$1O = (source, exclude) => {
|
|
4032
4083
|
var target = {};
|
|
4033
4084
|
for (var prop in source)
|
|
4034
4085
|
if (__hasOwnProp$2b.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4048,7 +4099,7 @@
|
|
|
4048
4099
|
image,
|
|
4049
4100
|
size,
|
|
4050
4101
|
bgColor
|
|
4051
|
-
} = _b, rest = __objRest$
|
|
4102
|
+
} = _b, rest = __objRest$1O(_b, [
|
|
4052
4103
|
"variant",
|
|
4053
4104
|
"notificationCount",
|
|
4054
4105
|
"name",
|
|
@@ -4073,7 +4124,7 @@
|
|
|
4073
4124
|
) : name ? /* @__PURE__ */ React.createElement(react.chakra.span, { sx: text }, getInitials(name)) : /* @__PURE__ */ React.createElement(
|
|
4074
4125
|
Icon,
|
|
4075
4126
|
{
|
|
4076
|
-
as: variant === "square" ?
|
|
4127
|
+
as: variant === "square" ? NorthlightIcons.UserSquareDuo : NorthlightIcons.BusinessContactDuo,
|
|
4077
4128
|
sx: icon,
|
|
4078
4129
|
"aria-label": "user-avatar"
|
|
4079
4130
|
}
|
|
@@ -4096,7 +4147,7 @@
|
|
|
4096
4147
|
}
|
|
4097
4148
|
return a;
|
|
4098
4149
|
};
|
|
4099
|
-
var __objRest$
|
|
4150
|
+
var __objRest$1N = (source, exclude) => {
|
|
4100
4151
|
var target = {};
|
|
4101
4152
|
for (var prop in source)
|
|
4102
4153
|
if (__hasOwnProp$2a.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4112,7 +4163,7 @@
|
|
|
4112
4163
|
var _b = _a, {
|
|
4113
4164
|
children,
|
|
4114
4165
|
sx = {}
|
|
4115
|
-
} = _b, rest = __objRest$
|
|
4166
|
+
} = _b, rest = __objRest$1N(_b, [
|
|
4116
4167
|
"children",
|
|
4117
4168
|
"sx"
|
|
4118
4169
|
]);
|
|
@@ -4144,7 +4195,7 @@
|
|
|
4144
4195
|
}
|
|
4145
4196
|
return a;
|
|
4146
4197
|
};
|
|
4147
|
-
var __objRest$
|
|
4198
|
+
var __objRest$1M = (source, exclude) => {
|
|
4148
4199
|
var target = {};
|
|
4149
4200
|
for (var prop in source)
|
|
4150
4201
|
if (__hasOwnProp$29.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4160,7 +4211,7 @@
|
|
|
4160
4211
|
var _b = _a, {
|
|
4161
4212
|
children,
|
|
4162
4213
|
sx = {}
|
|
4163
|
-
} = _b, rest = __objRest$
|
|
4214
|
+
} = _b, rest = __objRest$1M(_b, [
|
|
4164
4215
|
"children",
|
|
4165
4216
|
"sx"
|
|
4166
4217
|
]);
|
|
@@ -4192,7 +4243,7 @@
|
|
|
4192
4243
|
}
|
|
4193
4244
|
return a;
|
|
4194
4245
|
};
|
|
4195
|
-
var __objRest$
|
|
4246
|
+
var __objRest$1L = (source, exclude) => {
|
|
4196
4247
|
var target = {};
|
|
4197
4248
|
for (var prop in source)
|
|
4198
4249
|
if (__hasOwnProp$28.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4208,7 +4259,7 @@
|
|
|
4208
4259
|
var _b = _a, {
|
|
4209
4260
|
children,
|
|
4210
4261
|
sx = {}
|
|
4211
|
-
} = _b, rest = __objRest$
|
|
4262
|
+
} = _b, rest = __objRest$1L(_b, [
|
|
4212
4263
|
"children",
|
|
4213
4264
|
"sx"
|
|
4214
4265
|
]);
|
|
@@ -4240,7 +4291,7 @@
|
|
|
4240
4291
|
}
|
|
4241
4292
|
return a;
|
|
4242
4293
|
};
|
|
4243
|
-
var __objRest$
|
|
4294
|
+
var __objRest$1K = (source, exclude) => {
|
|
4244
4295
|
var target = {};
|
|
4245
4296
|
for (var prop in source)
|
|
4246
4297
|
if (__hasOwnProp$27.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4256,7 +4307,7 @@
|
|
|
4256
4307
|
var _b = _a, {
|
|
4257
4308
|
children,
|
|
4258
4309
|
sx = {}
|
|
4259
|
-
} = _b, rest = __objRest$
|
|
4310
|
+
} = _b, rest = __objRest$1K(_b, [
|
|
4260
4311
|
"children",
|
|
4261
4312
|
"sx"
|
|
4262
4313
|
]);
|
|
@@ -4288,7 +4339,7 @@
|
|
|
4288
4339
|
}
|
|
4289
4340
|
return a;
|
|
4290
4341
|
};
|
|
4291
|
-
var __objRest$
|
|
4342
|
+
var __objRest$1J = (source, exclude) => {
|
|
4292
4343
|
var target = {};
|
|
4293
4344
|
for (var prop in source)
|
|
4294
4345
|
if (__hasOwnProp$26.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4304,7 +4355,7 @@
|
|
|
4304
4355
|
var _b = _a, {
|
|
4305
4356
|
children,
|
|
4306
4357
|
sx = {}
|
|
4307
|
-
} = _b, rest = __objRest$
|
|
4358
|
+
} = _b, rest = __objRest$1J(_b, [
|
|
4308
4359
|
"children",
|
|
4309
4360
|
"sx"
|
|
4310
4361
|
]);
|
|
@@ -4336,7 +4387,7 @@
|
|
|
4336
4387
|
}
|
|
4337
4388
|
return a;
|
|
4338
4389
|
};
|
|
4339
|
-
var __objRest$
|
|
4390
|
+
var __objRest$1I = (source, exclude) => {
|
|
4340
4391
|
var target = {};
|
|
4341
4392
|
for (var prop in source)
|
|
4342
4393
|
if (__hasOwnProp$25.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4352,7 +4403,7 @@
|
|
|
4352
4403
|
var _b = _a, {
|
|
4353
4404
|
children,
|
|
4354
4405
|
sx = {}
|
|
4355
|
-
} = _b, rest = __objRest$
|
|
4406
|
+
} = _b, rest = __objRest$1I(_b, [
|
|
4356
4407
|
"children",
|
|
4357
4408
|
"sx"
|
|
4358
4409
|
]);
|
|
@@ -4384,7 +4435,7 @@
|
|
|
4384
4435
|
}
|
|
4385
4436
|
return a;
|
|
4386
4437
|
};
|
|
4387
|
-
var __objRest$
|
|
4438
|
+
var __objRest$1H = (source, exclude) => {
|
|
4388
4439
|
var target = {};
|
|
4389
4440
|
for (var prop in source)
|
|
4390
4441
|
if (__hasOwnProp$24.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4401,7 +4452,7 @@
|
|
|
4401
4452
|
children,
|
|
4402
4453
|
variant = "16",
|
|
4403
4454
|
sx = {}
|
|
4404
|
-
} = _b, rest = __objRest$
|
|
4455
|
+
} = _b, rest = __objRest$1H(_b, [
|
|
4405
4456
|
"children",
|
|
4406
4457
|
"variant",
|
|
4407
4458
|
"sx"
|
|
@@ -4434,7 +4485,7 @@
|
|
|
4434
4485
|
}
|
|
4435
4486
|
return a;
|
|
4436
4487
|
};
|
|
4437
|
-
var __objRest$
|
|
4488
|
+
var __objRest$1G = (source, exclude) => {
|
|
4438
4489
|
var target = {};
|
|
4439
4490
|
for (var prop in source)
|
|
4440
4491
|
if (__hasOwnProp$23.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4448,7 +4499,7 @@
|
|
|
4448
4499
|
};
|
|
4449
4500
|
const Blockquote = React.forwardRef(
|
|
4450
4501
|
(_a, ref) => {
|
|
4451
|
-
var _b = _a, { children, sx = {} } = _b, rest = __objRest$
|
|
4502
|
+
var _b = _a, { children, sx = {} } = _b, rest = __objRest$1G(_b, ["children", "sx"]);
|
|
4452
4503
|
const styles = react.useStyleConfig("Blockquote", { sx });
|
|
4453
4504
|
return /* @__PURE__ */ React.createElement(react.Text, __spreadValues$23({ as: "span", sx: styles, ref }, rest), children);
|
|
4454
4505
|
}
|
|
@@ -4470,7 +4521,7 @@
|
|
|
4470
4521
|
}
|
|
4471
4522
|
return a;
|
|
4472
4523
|
};
|
|
4473
|
-
var __objRest$
|
|
4524
|
+
var __objRest$1F = (source, exclude) => {
|
|
4474
4525
|
var target = {};
|
|
4475
4526
|
for (var prop in source)
|
|
4476
4527
|
if (__hasOwnProp$22.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4486,7 +4537,7 @@
|
|
|
4486
4537
|
var _b = _a, {
|
|
4487
4538
|
children,
|
|
4488
4539
|
sx = {}
|
|
4489
|
-
} = _b, rest = __objRest$
|
|
4540
|
+
} = _b, rest = __objRest$1F(_b, [
|
|
4490
4541
|
"children",
|
|
4491
4542
|
"sx"
|
|
4492
4543
|
]);
|
|
@@ -4518,7 +4569,7 @@
|
|
|
4518
4569
|
}
|
|
4519
4570
|
return a;
|
|
4520
4571
|
};
|
|
4521
|
-
var __objRest$
|
|
4572
|
+
var __objRest$1E = (source, exclude) => {
|
|
4522
4573
|
var target = {};
|
|
4523
4574
|
for (var prop in source)
|
|
4524
4575
|
if (__hasOwnProp$21.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4534,7 +4585,7 @@
|
|
|
4534
4585
|
var _b = _a, {
|
|
4535
4586
|
children,
|
|
4536
4587
|
sx = {}
|
|
4537
|
-
} = _b, rest = __objRest$
|
|
4588
|
+
} = _b, rest = __objRest$1E(_b, [
|
|
4538
4589
|
"children",
|
|
4539
4590
|
"sx"
|
|
4540
4591
|
]);
|
|
@@ -4566,7 +4617,7 @@
|
|
|
4566
4617
|
}
|
|
4567
4618
|
return a;
|
|
4568
4619
|
};
|
|
4569
|
-
var __objRest$
|
|
4620
|
+
var __objRest$1D = (source, exclude) => {
|
|
4570
4621
|
var target = {};
|
|
4571
4622
|
for (var prop in source)
|
|
4572
4623
|
if (__hasOwnProp$20.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4582,7 +4633,7 @@
|
|
|
4582
4633
|
var _b = _a, {
|
|
4583
4634
|
children,
|
|
4584
4635
|
sx = {}
|
|
4585
|
-
} = _b, rest = __objRest$
|
|
4636
|
+
} = _b, rest = __objRest$1D(_b, [
|
|
4586
4637
|
"children",
|
|
4587
4638
|
"sx"
|
|
4588
4639
|
]);
|
|
@@ -4614,7 +4665,7 @@
|
|
|
4614
4665
|
}
|
|
4615
4666
|
return a;
|
|
4616
4667
|
};
|
|
4617
|
-
var __objRest$
|
|
4668
|
+
var __objRest$1C = (source, exclude) => {
|
|
4618
4669
|
var target = {};
|
|
4619
4670
|
for (var prop in source)
|
|
4620
4671
|
if (__hasOwnProp$1$.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4630,7 +4681,7 @@
|
|
|
4630
4681
|
var _b = _a, {
|
|
4631
4682
|
children,
|
|
4632
4683
|
sx = {}
|
|
4633
|
-
} = _b, rest = __objRest$
|
|
4684
|
+
} = _b, rest = __objRest$1C(_b, [
|
|
4634
4685
|
"children",
|
|
4635
4686
|
"sx"
|
|
4636
4687
|
]);
|
|
@@ -4662,7 +4713,7 @@
|
|
|
4662
4713
|
}
|
|
4663
4714
|
return a;
|
|
4664
4715
|
};
|
|
4665
|
-
var __objRest$
|
|
4716
|
+
var __objRest$1B = (source, exclude) => {
|
|
4666
4717
|
var target = {};
|
|
4667
4718
|
for (var prop in source)
|
|
4668
4719
|
if (__hasOwnProp$1_.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4679,7 +4730,7 @@
|
|
|
4679
4730
|
children,
|
|
4680
4731
|
size = "sm",
|
|
4681
4732
|
sx = {}
|
|
4682
|
-
} = _b, rest = __objRest$
|
|
4733
|
+
} = _b, rest = __objRest$1B(_b, [
|
|
4683
4734
|
"children",
|
|
4684
4735
|
"size",
|
|
4685
4736
|
"sx"
|
|
@@ -4712,7 +4763,7 @@
|
|
|
4712
4763
|
}
|
|
4713
4764
|
return a;
|
|
4714
4765
|
};
|
|
4715
|
-
var __objRest$
|
|
4766
|
+
var __objRest$1A = (source, exclude) => {
|
|
4716
4767
|
var target = {};
|
|
4717
4768
|
for (var prop in source)
|
|
4718
4769
|
if (__hasOwnProp$1Z.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4726,7 +4777,7 @@
|
|
|
4726
4777
|
};
|
|
4727
4778
|
const NumVal = React.forwardRef(
|
|
4728
4779
|
(_a, ref) => {
|
|
4729
|
-
var _b = _a, { children, size = "sm", sx = {} } = _b, rest = __objRest$
|
|
4780
|
+
var _b = _a, { children, size = "sm", sx = {} } = _b, rest = __objRest$1A(_b, ["children", "size", "sx"]);
|
|
4730
4781
|
const styles = react.useStyleConfig("NumVal", { sx, size });
|
|
4731
4782
|
return /* @__PURE__ */ React.createElement(
|
|
4732
4783
|
react.Text,
|
|
@@ -4836,7 +4887,7 @@
|
|
|
4836
4887
|
}
|
|
4837
4888
|
return a;
|
|
4838
4889
|
};
|
|
4839
|
-
var __objRest$
|
|
4890
|
+
var __objRest$1z = (source, exclude) => {
|
|
4840
4891
|
var target = {};
|
|
4841
4892
|
for (var prop in source)
|
|
4842
4893
|
if (__hasOwnProp$1Y.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
@@ -4853,7 +4904,7 @@
|
|
|
4853
4904
|
children,
|
|
4854
4905
|
max = Infinity,
|
|
4855
4906
|
spacing = "-4"
|
|
4856
|
-
} = _b, rest = __objRest$
|
|
4907
|
+
} = _b, rest = __objRest$1z(_b, [
|
|
4857
4908
|
"children",
|
|
4858
4909
|
"max",
|
|
4859
4910
|
"spacing"
|
|
@@ -4883,7 +4934,33 @@
|
|
|
4883
4934
|
}
|
|
4884
4935
|
return a;
|
|
4885
4936
|
};
|
|
4886
|
-
|
|
4937
|
+
var __objRest$1y = (source, exclude) => {
|
|
4938
|
+
var target = {};
|
|
4939
|
+
for (var prop in source)
|
|
4940
|
+
if (__hasOwnProp$1X.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
4941
|
+
target[prop] = source[prop];
|
|
4942
|
+
if (source != null && __getOwnPropSymbols$1X)
|
|
4943
|
+
for (var prop of __getOwnPropSymbols$1X(source)) {
|
|
4944
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum$1X.call(source, prop))
|
|
4945
|
+
target[prop] = source[prop];
|
|
4946
|
+
}
|
|
4947
|
+
return target;
|
|
4948
|
+
};
|
|
4949
|
+
const Badge = React.forwardRef((props, ref) => {
|
|
4950
|
+
const _a = props, {
|
|
4951
|
+
children,
|
|
4952
|
+
withIcon,
|
|
4953
|
+
iconPosition = "left",
|
|
4954
|
+
iconAs
|
|
4955
|
+
} = _a, rest = __objRest$1y(_a, [
|
|
4956
|
+
"children",
|
|
4957
|
+
"withIcon",
|
|
4958
|
+
"iconPosition",
|
|
4959
|
+
"iconAs"
|
|
4960
|
+
]);
|
|
4961
|
+
const IconComponent = iconAs ? NorthlightIcons__namespace[iconAs] : NorthlightIcons.MediatoolLogoSolid;
|
|
4962
|
+
return /* @__PURE__ */ React.createElement(react.Badge, __spreadValues$1X({ ref }, rest), /* @__PURE__ */ React.createElement(react.Flex, { align: "center", gap: "1" }, withIcon && iconPosition === "left" && IconComponent && /* @__PURE__ */ React.createElement(Icon, { as: IconComponent, boxSize: "3" }), children, withIcon && iconPosition === "right" && IconComponent && /* @__PURE__ */ React.createElement(Icon, { as: IconComponent, boxSize: "3" })));
|
|
4963
|
+
});
|
|
4887
4964
|
|
|
4888
4965
|
var __defProp$1W = Object.defineProperty;
|
|
4889
4966
|
var __getOwnPropSymbols$1W = Object.getOwnPropertySymbols;
|
|
@@ -5568,7 +5645,7 @@
|
|
|
5568
5645
|
"aria-label": `select-${color}`,
|
|
5569
5646
|
onClick,
|
|
5570
5647
|
sx: colorButton,
|
|
5571
|
-
icon: /* @__PURE__ */ React.createElement(Icon, { as:
|
|
5648
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.CheckDuo, boxSize: selected ? void 0 : "0" }),
|
|
5572
5649
|
color: getContrastColor(color)
|
|
5573
5650
|
}
|
|
5574
5651
|
);
|
|
@@ -5626,7 +5703,7 @@
|
|
|
5626
5703
|
onClick,
|
|
5627
5704
|
sx: colorButton
|
|
5628
5705
|
},
|
|
5629
|
-
/* @__PURE__ */ React.createElement(Icon, { as: expanded ?
|
|
5706
|
+
/* @__PURE__ */ React.createElement(Icon, { as: expanded ? NorthlightIcons.ChevronUpDuo : NorthlightIcons.ChevronDownDuo })
|
|
5630
5707
|
);
|
|
5631
5708
|
};
|
|
5632
5709
|
|
|
@@ -5783,7 +5860,7 @@
|
|
|
5783
5860
|
name,
|
|
5784
5861
|
sx: trigger,
|
|
5785
5862
|
size,
|
|
5786
|
-
icon: /* @__PURE__ */ React.createElement(Icon, { as:
|
|
5863
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.ColorsDuo })
|
|
5787
5864
|
}, rest)
|
|
5788
5865
|
)),
|
|
5789
5866
|
/* @__PURE__ */ React.createElement(RenderInPortal, { shouldRenderInPortal }, /* @__PURE__ */ React.createElement(react.PopoverContent, { w: "auto", boxShadow: "md", p: 2, bgColor: "background.default" }, /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(
|
|
@@ -6038,7 +6115,7 @@
|
|
|
6038
6115
|
as: "label"
|
|
6039
6116
|
},
|
|
6040
6117
|
/* @__PURE__ */ React.createElement("input", __spreadValues$1H({}, flipButtonProps)),
|
|
6041
|
-
icon && iconPlacement !== "none" ? /* @__PURE__ */ React.createElement(Icon, { as: icon ||
|
|
6118
|
+
icon && iconPlacement !== "none" ? /* @__PURE__ */ React.createElement(Icon, { as: icon || NorthlightIcons.CheckSolid, sx: buttonIcon }) : isSelected && iconPlacement !== "none" && /* @__PURE__ */ React.createElement(react.SlideFade, { in: isSelected }, /* @__PURE__ */ React.createElement(Icon, { as: icon || NorthlightIcons.CheckSolid, sx: buttonIcon })),
|
|
6042
6119
|
/* @__PURE__ */ React.createElement(react.Text, { textAlign: "center" }, children)
|
|
6043
6120
|
);
|
|
6044
6121
|
};
|
|
@@ -6292,7 +6369,7 @@
|
|
|
6292
6369
|
onPointerDown: handleClick,
|
|
6293
6370
|
pointerEvents: isDisabled ? "none" : "auto"
|
|
6294
6371
|
}),
|
|
6295
|
-
/* @__PURE__ */ React.createElement(Icon, { as:
|
|
6372
|
+
/* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.CalendarDuo })
|
|
6296
6373
|
);
|
|
6297
6374
|
};
|
|
6298
6375
|
|
|
@@ -6911,7 +6988,7 @@
|
|
|
6911
6988
|
const weekNumber = getWeekNumberAtStartOfMonth(startDate.year, startDate.month);
|
|
6912
6989
|
return weekNumber;
|
|
6913
6990
|
}, [startDate.year, startDate.month]);
|
|
6914
|
-
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$h(__spreadValues$1u({}, calendarProps), { h: "265px", p: "0" }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { justify: "space-between", w: "full", p: "1", alignItems: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1u({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon, { as:
|
|
6991
|
+
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$h(__spreadValues$1u({}, calendarProps), { h: "265px", p: "0" }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { justify: "space-between", w: "full", p: "1", alignItems: "center" }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1u({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(react.HStack, { spacing: "0" }, /* @__PURE__ */ React.createElement(MonthSelect, { state }), /* @__PURE__ */ React.createElement(YearSelectRangeCalendar, { state })), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1u({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.ChevronRightSolid, boxSize: 4 }))), /* @__PURE__ */ React.createElement(react.chakra.table, __spreadProps$h(__spreadValues$1u({}, gridProps), { sx: { borderSpacing: "0" } }), /* @__PURE__ */ React.createElement(react.chakra.thead, __spreadValues$1u({}, headerProps), /* @__PURE__ */ React.createElement(react.chakra.tr, null, /* @__PURE__ */ React.createElement(react.chakra.th, null), /* @__PURE__ */ React.createElement(DayLabels, { weekDays }))), /* @__PURE__ */ React.createElement(react.chakra.tbody, null, ramda.times((weekIndex) => {
|
|
6915
6992
|
const weekNumber = getDisplayWeek(
|
|
6916
6993
|
weekNumberStart,
|
|
6917
6994
|
weekIndex,
|
|
@@ -6964,7 +7041,7 @@
|
|
|
6964
7041
|
props,
|
|
6965
7042
|
state
|
|
6966
7043
|
);
|
|
6967
|
-
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$g(__spreadValues$1t({}, calendarProps), { __css: container }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { justifyContent: "space-between" }, /* @__PURE__ */ React.createElement(react.Box, { paddingInlineStart: "2" }, /* @__PURE__ */ React.createElement(YearSelectCalendar, { state })), /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2 }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1t({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon, { as:
|
|
7044
|
+
return /* @__PURE__ */ React.createElement(react.Box, __spreadProps$g(__spreadValues$1t({}, calendarProps), { __css: container }), /* @__PURE__ */ React.createElement(react.Stack, null, /* @__PURE__ */ React.createElement(react.Flex, { justifyContent: "space-between" }, /* @__PURE__ */ React.createElement(react.Box, { paddingInlineStart: "2" }, /* @__PURE__ */ React.createElement(YearSelectCalendar, { state })), /* @__PURE__ */ React.createElement(react.HStack, { spacing: 2 }, /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1t({}, prevButtonProps), /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.ChevronLeftSolid, boxSize: 4 })), /* @__PURE__ */ React.createElement(MonthButton, __spreadValues$1t({}, nextButtonProps), /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.ChevronRightSolid, boxSize: 4 })))), /* @__PURE__ */ React.createElement(
|
|
6968
7045
|
CalendarGrid,
|
|
6969
7046
|
{
|
|
6970
7047
|
state,
|
|
@@ -7062,7 +7139,7 @@
|
|
|
7062
7139
|
onClick: resetDate,
|
|
7063
7140
|
hidden: !state.dateValue || !isClearable,
|
|
7064
7141
|
isDisabled,
|
|
7065
|
-
icon: /* @__PURE__ */ React.createElement(Icon, { as:
|
|
7142
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.XCloseSolid })
|
|
7066
7143
|
}
|
|
7067
7144
|
))),
|
|
7068
7145
|
state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$f(__spreadValues$1s({}, dialogProps), { ref, w: 64, border: "none" }), /* @__PURE__ */ React.createElement(focus.FocusScope, { contain: true, restoreFocus: true }, /* @__PURE__ */ React.createElement(DatePickerLocaleWrapper, { firstDayOfWeek }, /* @__PURE__ */ React.createElement(Calendar, __spreadProps$f(__spreadValues$1s({}, calendarProps), { firstDayOfWeek })))))
|
|
@@ -7728,7 +7805,7 @@
|
|
|
7728
7805
|
onClick: resetDate,
|
|
7729
7806
|
hidden: !isClearable,
|
|
7730
7807
|
isDisabled,
|
|
7731
|
-
icon: /* @__PURE__ */ React.createElement(Icon, { as:
|
|
7808
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.XCloseSolid })
|
|
7732
7809
|
}
|
|
7733
7810
|
))),
|
|
7734
7811
|
/* @__PURE__ */ React.createElement(PortalWrapper, { renderInPortal }, state.isOpen && /* @__PURE__ */ React.createElement(react.PopoverContent, __spreadProps$e(__spreadValues$1p({}, dialogProps), { ref, w: "max-content" }), /* @__PURE__ */ React.createElement(focus.FocusScope, { contain: true, restoreFocus: true }, /* @__PURE__ */ React.createElement(DatePickerLocaleWrapper, { firstDayOfWeek }, /* @__PURE__ */ React.createElement(
|
|
@@ -7990,14 +8067,14 @@
|
|
|
7990
8067
|
});
|
|
7991
8068
|
|
|
7992
8069
|
const tooltipIconMap = {
|
|
7993
|
-
success:
|
|
7994
|
-
warning:
|
|
7995
|
-
error:
|
|
7996
|
-
danger:
|
|
7997
|
-
info:
|
|
7998
|
-
ai:
|
|
7999
|
-
default:
|
|
8000
|
-
ghost:
|
|
8070
|
+
success: NorthlightIcons.CheckCircleSolid,
|
|
8071
|
+
warning: NorthlightIcons.AlertTriangleSolid,
|
|
8072
|
+
error: NorthlightIcons.AlertCircleSolid,
|
|
8073
|
+
danger: NorthlightIcons.AlertOctagonSolid,
|
|
8074
|
+
info: NorthlightIcons.InfoSolid,
|
|
8075
|
+
ai: NorthlightIcons.BrightnessSolid,
|
|
8076
|
+
default: NorthlightIcons.HelpCircleSolid,
|
|
8077
|
+
ghost: NorthlightIcons.HelpCircleSolid
|
|
8001
8078
|
};
|
|
8002
8079
|
|
|
8003
8080
|
var __defProp$1l = Object.defineProperty;
|
|
@@ -8174,7 +8251,7 @@
|
|
|
8174
8251
|
};
|
|
8175
8252
|
const IntentButton = (_a) => {
|
|
8176
8253
|
var _b = _a, {
|
|
8177
|
-
icon =
|
|
8254
|
+
icon = NorthlightIcons.TrashDuo,
|
|
8178
8255
|
timeout = 1e3,
|
|
8179
8256
|
ringColor = "border.error",
|
|
8180
8257
|
onTimeout = () => {
|
|
@@ -8706,7 +8783,8 @@
|
|
|
8706
8783
|
onClose,
|
|
8707
8784
|
autoFocus = true,
|
|
8708
8785
|
resizeLimit = "full",
|
|
8709
|
-
zIndex = tokens.coreZIndex.overlay
|
|
8786
|
+
zIndex = tokens.coreZIndex.overlay,
|
|
8787
|
+
slideProps
|
|
8710
8788
|
} = _b, rest = __objRest$10(_b, [
|
|
8711
8789
|
"isResizable",
|
|
8712
8790
|
"isOpen",
|
|
@@ -8717,7 +8795,8 @@
|
|
|
8717
8795
|
"onClose",
|
|
8718
8796
|
"autoFocus",
|
|
8719
8797
|
"resizeLimit",
|
|
8720
|
-
"zIndex"
|
|
8798
|
+
"zIndex",
|
|
8799
|
+
"slideProps"
|
|
8721
8800
|
]);
|
|
8722
8801
|
const { container } = system.useMultiStyleConfig("Toolbox", { size });
|
|
8723
8802
|
const newChildren = getChildrenWithProps(
|
|
@@ -8752,7 +8831,7 @@
|
|
|
8752
8831
|
},
|
|
8753
8832
|
/* @__PURE__ */ React.createElement(react.Portal, null, /* @__PURE__ */ React.createElement(
|
|
8754
8833
|
Slide,
|
|
8755
|
-
{
|
|
8834
|
+
__spreadValues$1d({
|
|
8756
8835
|
direction,
|
|
8757
8836
|
in: isOpen,
|
|
8758
8837
|
style: {
|
|
@@ -8760,7 +8839,7 @@
|
|
|
8760
8839
|
width: adjustableWidth,
|
|
8761
8840
|
zIndex
|
|
8762
8841
|
}
|
|
8763
|
-
},
|
|
8842
|
+
}, slideProps),
|
|
8764
8843
|
/* @__PURE__ */ React.createElement(
|
|
8765
8844
|
react.Flex,
|
|
8766
8845
|
__spreadValues$1d({
|
|
@@ -9121,7 +9200,7 @@
|
|
|
9121
9200
|
sx: arrow,
|
|
9122
9201
|
onClick
|
|
9123
9202
|
}, rest),
|
|
9124
|
-
/* @__PURE__ */ React.createElement(IconButton, { "aria-label": `move carousel to ${direction}`, variant: "ghost", size: "lg" }, /* @__PURE__ */ React.createElement(Icon, { as: direction === "right" ?
|
|
9203
|
+
/* @__PURE__ */ React.createElement(IconButton, { "aria-label": `move carousel to ${direction}`, variant: "ghost", size: "lg" }, /* @__PURE__ */ React.createElement(Icon, { as: direction === "right" ? NorthlightIcons.ChevronRightSolid : NorthlightIcons.ChevronLeftSolid }))
|
|
9125
9204
|
);
|
|
9126
9205
|
};
|
|
9127
9206
|
|
|
@@ -9431,7 +9510,7 @@
|
|
|
9431
9510
|
"data-testid": testId,
|
|
9432
9511
|
value,
|
|
9433
9512
|
onSearchInputChange = ramda.identity,
|
|
9434
|
-
icon =
|
|
9513
|
+
icon = NorthlightIcons.SearchDuo
|
|
9435
9514
|
} = _b, rest = __objRest$S(_b, [
|
|
9436
9515
|
"defaultOptions",
|
|
9437
9516
|
"isMulti",
|
|
@@ -9618,7 +9697,7 @@
|
|
|
9618
9697
|
fontSize: "sm",
|
|
9619
9698
|
hidden: ramda.isEmpty(value) || !isClearable,
|
|
9620
9699
|
onClick: () => onChange([]),
|
|
9621
|
-
icon: /* @__PURE__ */ React.createElement(Icon, { as:
|
|
9700
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.XCloseSolid })
|
|
9622
9701
|
}
|
|
9623
9702
|
))
|
|
9624
9703
|
);
|
|
@@ -9804,7 +9883,7 @@
|
|
|
9804
9883
|
minW: "max-content"
|
|
9805
9884
|
}, rest),
|
|
9806
9885
|
/* @__PURE__ */ React.createElement(react.TagLabel, null, itemLabel),
|
|
9807
|
-
/* @__PURE__ */ React.createElement(react.TagRightIcon, null, /* @__PURE__ */ React.createElement(Icon, { as:
|
|
9886
|
+
/* @__PURE__ */ React.createElement(react.TagRightIcon, null, /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.DotsMatrixSolid }))
|
|
9808
9887
|
);
|
|
9809
9888
|
}
|
|
9810
9889
|
);
|
|
@@ -10085,7 +10164,7 @@
|
|
|
10085
10164
|
return /* @__PURE__ */ React.createElement(
|
|
10086
10165
|
Icon,
|
|
10087
10166
|
__spreadValues$U({
|
|
10088
|
-
as: icon ||
|
|
10167
|
+
as: icon || NorthlightIcons.DragDuo,
|
|
10089
10168
|
cursor: isDragging ? "grabbing" : "grab"
|
|
10090
10169
|
}, rest)
|
|
10091
10170
|
);
|
|
@@ -10476,7 +10555,7 @@
|
|
|
10476
10555
|
sx: button,
|
|
10477
10556
|
variant: mapEditableVariantsToButtonCancelVariants[variant]
|
|
10478
10557
|
}, getCancelButtonProps()),
|
|
10479
|
-
/* @__PURE__ */ React.createElement(Icon, { sx: icon, as:
|
|
10558
|
+
/* @__PURE__ */ React.createElement(Icon, { sx: icon, as: NorthlightIcons.XCloseSolid })
|
|
10480
10559
|
), /* @__PURE__ */ React.createElement(
|
|
10481
10560
|
IconButton,
|
|
10482
10561
|
__spreadValues$P({
|
|
@@ -10484,7 +10563,7 @@
|
|
|
10484
10563
|
sx: button,
|
|
10485
10564
|
variant: mapEditableVariantsToButtonSubmitVariants[variant]
|
|
10486
10565
|
}, getSubmitButtonProps()),
|
|
10487
|
-
/* @__PURE__ */ React.createElement(Icon, { sx: icon, as:
|
|
10566
|
+
/* @__PURE__ */ React.createElement(Icon, { sx: icon, as: NorthlightIcons.CheckDuo })
|
|
10488
10567
|
)) : /* @__PURE__ */ React.createElement(
|
|
10489
10568
|
IconButton,
|
|
10490
10569
|
{
|
|
@@ -10493,7 +10572,7 @@
|
|
|
10493
10572
|
sx: button,
|
|
10494
10573
|
onClick: onEdit
|
|
10495
10574
|
},
|
|
10496
|
-
/* @__PURE__ */ React.createElement(Icon, { sx: icon, as:
|
|
10575
|
+
/* @__PURE__ */ React.createElement(Icon, { sx: icon, as: NorthlightIcons.EditDuo })
|
|
10497
10576
|
));
|
|
10498
10577
|
};
|
|
10499
10578
|
|
|
@@ -10775,7 +10854,7 @@
|
|
|
10775
10854
|
onChange: (value) => setZoomLevel(value)
|
|
10776
10855
|
},
|
|
10777
10856
|
/* @__PURE__ */ React.createElement(react.SliderTrack, null, /* @__PURE__ */ React.createElement(react.SliderFilledTrack, null)),
|
|
10778
|
-
/* @__PURE__ */ React.createElement(react.SliderThumb, { boxSize: 6 }, /* @__PURE__ */ React.createElement(Icon, { as:
|
|
10857
|
+
/* @__PURE__ */ React.createElement(react.SliderThumb, { boxSize: 6 }, /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.ZoomInDuo }))
|
|
10779
10858
|
))),
|
|
10780
10859
|
canEditFileName && /* @__PURE__ */ React.createElement(react.Stack, { w: "90%", direction: isImage ? "row" : "column", pt: 2 }, /* @__PURE__ */ React.createElement(FormLabel, null, "Name the file:"), /* @__PURE__ */ React.createElement(react.Box, { maxW: "50%" }, /* @__PURE__ */ React.createElement(EditableText, { onSubmit: (v) => setFileName(v), value: fileName, size: "sm" })))
|
|
10781
10860
|
),
|
|
@@ -11448,7 +11527,7 @@
|
|
|
11448
11527
|
/* @__PURE__ */ React.createElement(
|
|
11449
11528
|
Icon,
|
|
11450
11529
|
{
|
|
11451
|
-
as: onlyImageAccepted ?
|
|
11530
|
+
as: onlyImageAccepted ? NorthlightIcons.Image03Solid : NorthlightIcons.UploadCloudSolid,
|
|
11452
11531
|
boxSize: "32px",
|
|
11453
11532
|
color: isInvalid ? "red.500" : editable ? "blue.500" : "gray.300",
|
|
11454
11533
|
display: isImage && !hasLoaded ? "inline-block" : "none",
|
|
@@ -11458,7 +11537,7 @@
|
|
|
11458
11537
|
/* @__PURE__ */ React.createElement(
|
|
11459
11538
|
Icon,
|
|
11460
11539
|
{
|
|
11461
|
-
as:
|
|
11540
|
+
as: NorthlightIcons.FileBlankDuo,
|
|
11462
11541
|
boxSize: "32px",
|
|
11463
11542
|
color: "gray.300",
|
|
11464
11543
|
display: hasLoaded && !isImage ? "inline-block" : "none"
|
|
@@ -11515,7 +11594,7 @@
|
|
|
11515
11594
|
{
|
|
11516
11595
|
"aria-label": "edit-file",
|
|
11517
11596
|
onClick: editModal.onOpen,
|
|
11518
|
-
icon:
|
|
11597
|
+
icon: NorthlightIcons.EditBoxDuo
|
|
11519
11598
|
}
|
|
11520
11599
|
),
|
|
11521
11600
|
/* @__PURE__ */ React.createElement(
|
|
@@ -11523,7 +11602,7 @@
|
|
|
11523
11602
|
{
|
|
11524
11603
|
"aria-label": "download-file",
|
|
11525
11604
|
onClick: handleDownload(file),
|
|
11526
|
-
icon:
|
|
11605
|
+
icon: NorthlightIcons.DownloadDuo
|
|
11527
11606
|
}
|
|
11528
11607
|
),
|
|
11529
11608
|
/* @__PURE__ */ React.createElement(
|
|
@@ -11531,7 +11610,7 @@
|
|
|
11531
11610
|
{
|
|
11532
11611
|
"aria-label": "delete-file",
|
|
11533
11612
|
onClick: confirmDelete ? deleteModal.onOpen : clearImage,
|
|
11534
|
-
icon:
|
|
11613
|
+
icon: NorthlightIcons.TrashFullDuo,
|
|
11535
11614
|
color: "red.500"
|
|
11536
11615
|
}
|
|
11537
11616
|
)
|
|
@@ -11769,7 +11848,7 @@
|
|
|
11769
11848
|
/* @__PURE__ */ React.createElement(
|
|
11770
11849
|
Icon,
|
|
11771
11850
|
{
|
|
11772
|
-
as: onlyImageAccepted ?
|
|
11851
|
+
as: onlyImageAccepted ? NorthlightIcons.Image03Solid : NorthlightIcons.UploadCloudSolid,
|
|
11773
11852
|
boxSize: "32px",
|
|
11774
11853
|
color: isInvalid ? "red.500 " : active ? "blue.500 " : "gray.300",
|
|
11775
11854
|
"aria-label": "image-icon-upload",
|
|
@@ -11887,7 +11966,7 @@
|
|
|
11887
11966
|
/* @__PURE__ */ React.createElement(react.HStack, { spacing: 4, alignItems: "start", maxW: "50%" }, isFileImage(file) ? file.isUploading || loadingImage ? /* @__PURE__ */ React.createElement(
|
|
11888
11967
|
Icon,
|
|
11889
11968
|
{
|
|
11890
|
-
as:
|
|
11969
|
+
as: NorthlightIcons.Image03Duo,
|
|
11891
11970
|
bgColor: "gray.100",
|
|
11892
11971
|
color: "gray.400",
|
|
11893
11972
|
boxSize: "10",
|
|
@@ -11907,7 +11986,7 @@
|
|
|
11907
11986
|
) : /* @__PURE__ */ React.createElement(
|
|
11908
11987
|
Icon,
|
|
11909
11988
|
{
|
|
11910
|
-
as:
|
|
11989
|
+
as: NorthlightIcons.FileBlankDuo,
|
|
11911
11990
|
boxSize: "10",
|
|
11912
11991
|
p: "1",
|
|
11913
11992
|
color: "gray.300"
|
|
@@ -11948,7 +12027,7 @@
|
|
|
11948
12027
|
{
|
|
11949
12028
|
"aria-label": "Edit-image",
|
|
11950
12029
|
onClick: editModalDisclosure.onOpen,
|
|
11951
|
-
icon:
|
|
12030
|
+
icon: NorthlightIcons.EditBoxDuo
|
|
11952
12031
|
}
|
|
11953
12032
|
),
|
|
11954
12033
|
/* @__PURE__ */ React.createElement(
|
|
@@ -11956,7 +12035,7 @@
|
|
|
11956
12035
|
{
|
|
11957
12036
|
"aria-label": "download-image",
|
|
11958
12037
|
onClick: handleDownload(file),
|
|
11959
|
-
icon:
|
|
12038
|
+
icon: NorthlightIcons.DownloadDuo
|
|
11960
12039
|
}
|
|
11961
12040
|
),
|
|
11962
12041
|
/* @__PURE__ */ React.createElement(
|
|
@@ -12361,14 +12440,14 @@
|
|
|
12361
12440
|
}) => /* @__PURE__ */ React.createElement(react.NumberInputStepper, null, /* @__PURE__ */ React.createElement(react.HStack, { alignItems: "center", h: "full" }, includePercentage && /* @__PURE__ */ React.createElement(react.Center, { bgColor: "gray.50", borderRadius: "md", boxSize: "6" }, /* @__PURE__ */ React.createElement(P, null, "%")), enableStepperArrows && /* @__PURE__ */ React.createElement(react.HStack, { alignItems: "center", h: "full" }, /* @__PURE__ */ React.createElement(react.Divider, { orientation: "vertical", h: "50%" }), /* @__PURE__ */ React.createElement(react.NumberIncrementStepper, { border: "none" }, /* @__PURE__ */ React.createElement(
|
|
12362
12441
|
Icon,
|
|
12363
12442
|
{
|
|
12364
|
-
as:
|
|
12443
|
+
as: NorthlightIcons.ChevronUpSolid,
|
|
12365
12444
|
color: "icon.input-stepper.default",
|
|
12366
12445
|
boxSize: 4
|
|
12367
12446
|
}
|
|
12368
12447
|
)), /* @__PURE__ */ React.createElement(react.NumberDecrementStepper, null, /* @__PURE__ */ React.createElement(
|
|
12369
12448
|
Icon,
|
|
12370
12449
|
{
|
|
12371
|
-
as:
|
|
12450
|
+
as: NorthlightIcons.ChevronDownSolid,
|
|
12372
12451
|
color: "icon.input-stepper.default",
|
|
12373
12452
|
boxSize: 4
|
|
12374
12453
|
}
|
|
@@ -12900,7 +12979,7 @@
|
|
|
12900
12979
|
onChange(void 0);
|
|
12901
12980
|
onChangeCallback(void 0, { action: "clear", removedValues: value });
|
|
12902
12981
|
},
|
|
12903
|
-
icon: /* @__PURE__ */ React.createElement(Icon, { as:
|
|
12982
|
+
icon: /* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.XCloseSolid })
|
|
12904
12983
|
}
|
|
12905
12984
|
))
|
|
12906
12985
|
);
|
|
@@ -13583,14 +13662,14 @@
|
|
|
13583
13662
|
});
|
|
13584
13663
|
|
|
13585
13664
|
const toastIconMap = {
|
|
13586
|
-
success:
|
|
13587
|
-
warning:
|
|
13588
|
-
error:
|
|
13589
|
-
danger:
|
|
13590
|
-
info:
|
|
13591
|
-
ai:
|
|
13592
|
-
default:
|
|
13593
|
-
ghost:
|
|
13665
|
+
success: NorthlightIcons.CheckCircleSolid,
|
|
13666
|
+
warning: NorthlightIcons.AlertTriangleSolid,
|
|
13667
|
+
error: NorthlightIcons.AlertCircleSolid,
|
|
13668
|
+
danger: NorthlightIcons.AlertCircleSolid,
|
|
13669
|
+
info: NorthlightIcons.BellSolid,
|
|
13670
|
+
ai: NorthlightIcons.BrightnessSolid,
|
|
13671
|
+
default: NorthlightIcons.HelpCircleSolid,
|
|
13672
|
+
ghost: NorthlightIcons.HelpCircleSolid
|
|
13594
13673
|
};
|
|
13595
13674
|
|
|
13596
13675
|
var __defProp$g = Object.defineProperty;
|
|
@@ -14018,7 +14097,7 @@
|
|
|
14018
14097
|
/* @__PURE__ */ React.createElement(
|
|
14019
14098
|
Icon,
|
|
14020
14099
|
{
|
|
14021
|
-
as: hasCopied ?
|
|
14100
|
+
as: hasCopied ? NorthlightIcons.CheckDuo : NorthlightIcons.CopyDuo,
|
|
14022
14101
|
sx: icon
|
|
14023
14102
|
}
|
|
14024
14103
|
)
|
|
@@ -14294,7 +14373,7 @@
|
|
|
14294
14373
|
justifyContent: "center",
|
|
14295
14374
|
alignItems: "center"
|
|
14296
14375
|
},
|
|
14297
|
-
/* @__PURE__ */ React.createElement(Icon, { as:
|
|
14376
|
+
/* @__PURE__ */ React.createElement(Icon, { as: NorthlightIcons.PlusSolid, color: "brand" })
|
|
14298
14377
|
), !props.data.isCreation && /* @__PURE__ */ React.createElement(react.Box, { mr: 3, width: 1.5 }), /* @__PURE__ */ React.createElement(
|
|
14299
14378
|
react.Text,
|
|
14300
14379
|
{
|
|
@@ -14427,7 +14506,7 @@
|
|
|
14427
14506
|
);
|
|
14428
14507
|
const customOptions = [
|
|
14429
14508
|
__spreadProps$1(__spreadValues$2({}, creationOption), {
|
|
14430
|
-
icon: /* @__PURE__ */ React.createElement(react.Icon, { as:
|
|
14509
|
+
icon: /* @__PURE__ */ React.createElement(react.Icon, { as: NorthlightIcons.PlusSolid, color: "brand" })
|
|
14431
14510
|
}),
|
|
14432
14511
|
...combinedOptions
|
|
14433
14512
|
];
|