@economic/taco 2.34.0 → 2.35.0
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/Drawer/Context.d.ts +1 -0
- package/dist/components/Drawer/Drawer.d.ts +6 -0
- package/dist/components/Icon/components/DocumentSigned.d.ts +3 -0
- package/dist/components/Icon/components/Home2.d.ts +3 -0
- package/dist/components/Icon/components/Id.d.ts +3 -0
- package/dist/components/Icon/components/MastercardOs.d.ts +3 -0
- package/dist/components/Icon/components/NovemberFirst.d.ts +3 -0
- package/dist/components/Icon/components/index.d.ts +1 -1
- package/dist/components/Input/Input.d.ts +1 -1
- package/dist/components/Menu/components/Item.d.ts +1 -1
- package/dist/components/Menu/components/Link.d.ts +1 -1
- package/dist/components/Navigation2/components/Link.d.ts +1 -1
- package/dist/components/Provider/Localization.d.ts +1 -0
- package/dist/components/Select2/Select2.d.ts +25 -4
- package/dist/components/Select2/components/Option.d.ts +2 -2
- package/dist/components/Select2/components/Search.d.ts +1 -1
- package/dist/components/Table3/components/Columns/Internal/EditingActionsMenu.d.ts +1 -0
- package/dist/components/Table3/features/useTableEditing.d.ts +0 -1
- package/dist/components/Table3/listeners/useTableEditingListener.d.ts +3 -1
- package/dist/components/Tag/Tag.d.ts +1 -1
- package/dist/esm/index.css +4 -0
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js +13 -3
- package/dist/esm/packages/taco/src/components/Datepicker/Datepicker.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/Context.js +1 -0
- package/dist/esm/packages/taco/src/components/Drawer/Context.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/Drawer.js +3 -1
- package/dist/esm/packages/taco/src/components/Drawer/Drawer.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js +41 -8
- package/dist/esm/packages/taco/src/components/Drawer/components/Content.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/util.js +1 -1
- package/dist/esm/packages/taco/src/components/Drawer/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentSigned.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/DocumentSigned.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Home2.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Home2.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Id.js +19 -0
- package/dist/esm/packages/taco/src/components/Icon/components/Id.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/MastercardOs.js +23 -0
- package/dist/esm/packages/taco/src/components/Icon/components/MastercardOs.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/NovemberFirst.js +20 -0
- package/dist/esm/packages/taco/src/components/Icon/components/NovemberFirst.js.map +1 -0
- package/dist/esm/packages/taco/src/components/Icon/components/index.js +10 -0
- package/dist/esm/packages/taco/src/components/Icon/components/index.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Input/Input.js +5 -0
- package/dist/esm/packages/taco/src/components/Input/Input.js.map +1 -1
- package/dist/esm/packages/taco/src/components/List/components/Toggle.js +26 -15
- package/dist/esm/packages/taco/src/components/List/components/Toggle.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Provider/Localization.js +2 -1
- package/dist/esm/packages/taco/src/components/Provider/Localization.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Select2/Select2.js +48 -10
- package/dist/esm/packages/taco/src/components/Select2/Select2.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/Table3.js +1 -7
- package/dist/esm/packages/taco/src/components/Table3/Table3.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/Editing/RowMoveIndicator.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js +1 -0
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/EditingControlCell.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js +2 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Cell/util.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js +9 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Columns/Internal/EditingActionsMenu.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js +1 -1
- package/dist/esm/packages/taco/src/components/Table3/components/Row/Row.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js +1 -12
- package/dist/esm/packages/taco/src/components/Table3/features/useTableEditing.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js +16 -1
- package/dist/esm/packages/taco/src/components/Table3/listeners/useTableEditingListener.js.map +1 -1
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js +3 -2
- package/dist/esm/packages/taco/src/components/Table3/useTable3.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/Table.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js +2 -2
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/Body.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js +12 -5
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Body/util.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js +9 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Header/components/Menu.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js +1 -2
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Row/BuiltIns/DisplayRow.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js +3 -4
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js +3 -4
- package/dist/esm/packages/taco/src/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterComparator.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js +0 -4
- package/dist/esm/packages/taco/src/primitives/Table/useTableDataLoader.js.map +1 -1
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/search.js +3 -2
- package/dist/esm/packages/taco/src/primitives/Table/useTableManager/util/search.js.map +1 -1
- package/dist/index.css +4 -0
- package/dist/primitives/Table/Core/components/Body/util.d.ts +2 -2
- package/dist/primitives/Table/Core/components/Toolbar/components/Filters/components/FilterColumn.d.ts +1 -1
- package/dist/taco.cjs.development.js +287 -87
- package/dist/taco.cjs.development.js.map +1 -1
- package/dist/taco.cjs.production.min.js +1 -1
- package/dist/taco.cjs.production.min.js.map +1 -1
- package/package.json +2 -2
@@ -0,0 +1,23 @@
|
|
1
|
+
import { forwardRef, createElement } from 'react';
|
2
|
+
|
3
|
+
function IconMastercardOs(props, svgRef) {
|
4
|
+
return /*#__PURE__*/createElement("svg", Object.assign({
|
5
|
+
fill: "none",
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
7
|
+
viewBox: "0 0 24 24",
|
8
|
+
ref: svgRef
|
9
|
+
}, props), /*#__PURE__*/createElement("path", {
|
10
|
+
d: "M14.698 7.314H9.286v9.66h5.412v-9.66z",
|
11
|
+
fill: "#FF5A00"
|
12
|
+
}), /*#__PURE__*/createElement("path", {
|
13
|
+
d: "M9.646 12.144c0-1.963.929-3.704 2.354-4.83A6.178 6.178 0 008.185 6C4.766 6 2 8.748 2 12.144s2.766 6.143 6.185 6.143A6.178 6.178 0 0012 16.973a6.117 6.117 0 01-2.354-4.83z",
|
14
|
+
fill: "#EB001B"
|
15
|
+
}), /*#__PURE__*/createElement("path", {
|
16
|
+
d: "M22 12.144c0 3.396-2.766 6.143-6.185 6.143A6.178 6.178 0 0112 16.973a6.095 6.095 0 002.354-4.83A6.146 6.146 0 0012 7.315 6.168 6.168 0 0115.813 6C19.233 6 22 8.766 22 12.144z",
|
17
|
+
fill: "#F79E1B"
|
18
|
+
}));
|
19
|
+
}
|
20
|
+
var MastercardOs = /*#__PURE__*/forwardRef(IconMastercardOs);
|
21
|
+
|
22
|
+
export default MastercardOs;
|
23
|
+
//# sourceMappingURL=MastercardOs.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"MastercardOs.js","sources":["../../../../../../../../src/components/Icon/components/MastercardOs.tsx"],"sourcesContent":["import * as React from 'react';\nfunction IconMastercardOs(props: React.SVGProps<SVGSVGElement>, svgRef?: React.Ref<SVGSVGElement>): JSX.Element {\n return (\n <svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" ref={svgRef} {...props}>\n <path d=\"M14.698 7.314H9.286v9.66h5.412v-9.66z\" fill=\"#FF5A00\" />\n <path\n d=\"M9.646 12.144c0-1.963.929-3.704 2.354-4.83A6.178 6.178 0 008.185 6C4.766 6 2 8.748 2 12.144s2.766 6.143 6.185 6.143A6.178 6.178 0 0012 16.973a6.117 6.117 0 01-2.354-4.83z\"\n fill=\"#EB001B\"\n />\n <path\n d=\"M22 12.144c0 3.396-2.766 6.143-6.185 6.143A6.178 6.178 0 0112 16.973a6.095 6.095 0 002.354-4.83A6.146 6.146 0 0012 7.315 6.168 6.168 0 0115.813 6C19.233 6 22 8.766 22 12.144z\"\n fill=\"#F79E1B\"\n />\n </svg>\n );\n}\nexport default React.forwardRef(IconMastercardOs);\n"],"names":["IconMastercardOs","props","svgRef","React","fill","xmlns","viewBox","ref","d"],"mappings":";;AACA,SAASA,gBAAgBA,CAACC,KAAoC,EAAEC,MAAiC;EAC7F,oBACIC;IAAKC,IAAI,EAAC,MAAM;IAACC,KAAK,EAAC,4BAA4B;IAACC,OAAO,EAAC,WAAW;IAACC,GAAG,EAAEL;KAAYD,KAAK,gBAC1FE;IAAMK,CAAC,EAAC,uCAAuC;IAACJ,IAAI,EAAC;IAAY,eACjED;IACIK,CAAC,EAAC,4KAA4K;IAC9KJ,IAAI,EAAC;IACP,eACFD;IACIK,CAAC,EAAC,gLAAgL;IAClLJ,IAAI,EAAC;IACP,CACA;AAEd;AACA,gCAAeD,UAAgB,CAACH,gBAAgB,CAAC;;;;"}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { forwardRef, createElement } from 'react';
|
2
|
+
|
3
|
+
function IconNovemberFirst(props, svgRef) {
|
4
|
+
return /*#__PURE__*/createElement("svg", Object.assign({
|
5
|
+
fill: "none",
|
6
|
+
xmlns: "http://www.w3.org/2000/svg",
|
7
|
+
viewBox: "0 0 24 24",
|
8
|
+
ref: svgRef
|
9
|
+
}, props), /*#__PURE__*/createElement("path", {
|
10
|
+
d: "M21.484 8.828C19.73 3.592 14.065.768 8.829 2.519 3.592 4.271.767 9.936 2.519 15.172c1.752 5.237 7.418 8.06 12.655 6.308a9.997 9.997 0 006.31-12.653z",
|
11
|
+
fill: "#0D2840"
|
12
|
+
}), /*#__PURE__*/createElement("path", {
|
13
|
+
d: "M13.977 7.263v5.445l-4.14-5.445H7.264l.78 1.156v7.686h1.919v-5.619l4.28 5.62H15.9V7.262h-1.922z",
|
14
|
+
fill: "#2CD7B3"
|
15
|
+
}));
|
16
|
+
}
|
17
|
+
var NovemberFirst = /*#__PURE__*/forwardRef(IconNovemberFirst);
|
18
|
+
|
19
|
+
export default NovemberFirst;
|
20
|
+
//# sourceMappingURL=NovemberFirst.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NovemberFirst.js","sources":["../../../../../../../../src/components/Icon/components/NovemberFirst.tsx"],"sourcesContent":["import * as React from 'react';\nfunction IconNovemberFirst(props: React.SVGProps<SVGSVGElement>, svgRef?: React.Ref<SVGSVGElement>): JSX.Element {\n return (\n <svg fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" ref={svgRef} {...props}>\n <path\n d=\"M21.484 8.828C19.73 3.592 14.065.768 8.829 2.519 3.592 4.271.767 9.936 2.519 15.172c1.752 5.237 7.418 8.06 12.655 6.308a9.997 9.997 0 006.31-12.653z\"\n fill=\"#0D2840\"\n />\n <path\n d=\"M13.977 7.263v5.445l-4.14-5.445H7.264l.78 1.156v7.686h1.919v-5.619l4.28 5.62H15.9V7.262h-1.922z\"\n fill=\"#2CD7B3\"\n />\n </svg>\n );\n}\nexport default React.forwardRef(IconNovemberFirst);\n"],"names":["IconNovemberFirst","props","svgRef","React","fill","xmlns","viewBox","ref","d"],"mappings":";;AACA,SAASA,iBAAiBA,CAACC,KAAoC,EAAEC,MAAiC;EAC9F,oBACIC;IAAKC,IAAI,EAAC,MAAM;IAACC,KAAK,EAAC,4BAA4B;IAACC,OAAO,EAAC,WAAW;IAACC,GAAG,EAAEL;KAAYD,KAAK,gBAC1FE;IACIK,CAAC,EAAC,sJAAsJ;IACxJJ,IAAI,EAAC;IACP,eACFD;IACIK,CAAC,EAAC,iGAAiG;IACnGJ,IAAI,EAAC;IACP,CACA;AAEd;AACA,iCAAeD,UAAgB,CAACH,iBAAiB,CAAC;;;;"}
|
@@ -80,6 +80,7 @@ import DocumentMove from './DocumentMove.js';
|
|
80
80
|
import DocumentPreview from './DocumentPreview.js';
|
81
81
|
import DocumentReceived from './DocumentReceived.js';
|
82
82
|
import DocumentRejectedRequest from './DocumentRejectedRequest.js';
|
83
|
+
import DocumentSigned from './DocumentSigned.js';
|
83
84
|
import DocumentSplit from './DocumentSplit.js';
|
84
85
|
import DocumentTime from './DocumentTime.js';
|
85
86
|
import Document from './Document.js';
|
@@ -119,7 +120,9 @@ import HeightExtraTall from './HeightExtraTall.js';
|
|
119
120
|
import HeightMedium from './HeightMedium.js';
|
120
121
|
import HeightShort from './HeightShort.js';
|
121
122
|
import HeightTall from './HeightTall.js';
|
123
|
+
import Home2 from './Home2.js';
|
122
124
|
import Home from './Home.js';
|
125
|
+
import Id from './Id.js';
|
123
126
|
import Images from './Images.js';
|
124
127
|
import Import from './Import.js';
|
125
128
|
import InboxEinvoicing from './InboxEinvoicing.js';
|
@@ -156,6 +159,7 @@ import Lock from './Lock.js';
|
|
156
159
|
import LogOut from './LogOut.js';
|
157
160
|
import Log from './Log.js';
|
158
161
|
import Market from './Market.js';
|
162
|
+
import MastercardOs from './MastercardOs.js';
|
159
163
|
import MatchAmount from './MatchAmount.js';
|
160
164
|
import MatchEntries from './MatchEntries.js';
|
161
165
|
import Menu from './Menu.js';
|
@@ -169,6 +173,7 @@ import NavigationList from './NavigationList.js';
|
|
169
173
|
import NoteFollowUp from './NoteFollowUp.js';
|
170
174
|
import NoteRead from './NoteRead.js';
|
171
175
|
import Note from './Note.js';
|
176
|
+
import NovemberFirst from './NovemberFirst.js';
|
172
177
|
import Numbers from './Numbers.js';
|
173
178
|
import PartnerApi from './PartnerApi.js';
|
174
179
|
import PaymentPaid from './PaymentPaid.js';
|
@@ -326,6 +331,7 @@ const icons = {
|
|
326
331
|
'document-preview': DocumentPreview,
|
327
332
|
'document-received': DocumentReceived,
|
328
333
|
'document-rejected-request': DocumentRejectedRequest,
|
334
|
+
'document-signed': DocumentSigned,
|
329
335
|
'document-split': DocumentSplit,
|
330
336
|
'document-time': DocumentTime,
|
331
337
|
document: Document,
|
@@ -365,7 +371,9 @@ const icons = {
|
|
365
371
|
'height-medium': HeightMedium,
|
366
372
|
'height-short': HeightShort,
|
367
373
|
'height-tall': HeightTall,
|
374
|
+
home2: Home2,
|
368
375
|
home: Home,
|
376
|
+
id: Id,
|
369
377
|
images: Images,
|
370
378
|
import: Import,
|
371
379
|
'inbox-einvoicing': InboxEinvoicing,
|
@@ -402,6 +410,7 @@ const icons = {
|
|
402
410
|
'log-out': LogOut,
|
403
411
|
log: Log,
|
404
412
|
market: Market,
|
413
|
+
'mastercard-os': MastercardOs,
|
405
414
|
'match-amount': MatchAmount,
|
406
415
|
'match-entries': MatchEntries,
|
407
416
|
menu: Menu,
|
@@ -415,6 +424,7 @@ const icons = {
|
|
415
424
|
'note-follow-up': NoteFollowUp,
|
416
425
|
'note-read': NoteRead,
|
417
426
|
note: Note,
|
427
|
+
'november-first': NovemberFirst,
|
418
428
|
numbers: Numbers,
|
419
429
|
'partner-api': PartnerApi,
|
420
430
|
'payment-paid': PaymentPaid,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../../../src/components/Icon/components/index.tsx"],"sourcesContent":["import AccountPreview from './AccountPreview';\nimport AccountingYearCancel from './AccountingYearCancel';\nimport AccountingYear from './AccountingYear';\nimport Accounting from './Accounting';\nimport AiChatSolid from './AiChatSolid';\nimport AiStars from './AiStars';\nimport ArrowBottom from './ArrowBottom';\nimport ArrowDown from './ArrowDown';\nimport ArrowEnd from './ArrowEnd';\nimport ArrowLeft from './ArrowLeft';\nimport ArrowRight from './ArrowRight';\nimport ArrowStart from './ArrowStart';\nimport ArrowTop from './ArrowTop';\nimport ArrowUp from './ArrowUp';\nimport AttachAuto from './AttachAuto';\nimport AttachCancel from './AttachCancel';\nimport AttachWarning from './AttachWarning';\nimport Attach from './Attach';\nimport AutotextInsert from './AutotextInsert';\nimport Autotext from './Autotext';\nimport BasicTabs from './BasicTabs';\nimport Basic from './Basic';\nimport BellSolid from './BellSolid';\nimport Book from './Book';\nimport Booking from './Booking';\nimport Budget from './Budget';\nimport Calendar from './Calendar';\nimport CashAccount from './CashAccount';\nimport CashReports from './CashReports';\nimport ChartArea from './ChartArea';\nimport ChartBar from './ChartBar';\nimport ChartLine from './ChartLine';\nimport ChartPie from './ChartPie';\nimport ChartTable from './ChartTable';\nimport ChatSolid from './ChatSolid';\nimport Chat from './Chat';\nimport ChevronDownDouble from './ChevronDownDouble';\nimport ChevronDownSolid from './ChevronDownSolid';\nimport ChevronDown from './ChevronDown';\nimport ChevronLeftDouble from './ChevronLeftDouble';\nimport ChevronLeftSolid from './ChevronLeftSolid';\nimport ChevronLeft from './ChevronLeft';\nimport ChevronRightDouble from './ChevronRightDouble';\nimport ChevronRightSolid from './ChevronRightSolid';\nimport ChevronRight from './ChevronRight';\nimport ChevronUpDouble from './ChevronUpDouble';\nimport ChevronUpSolid from './ChevronUpSolid';\nimport ChevronUp from './ChevronUp';\nimport CircleClose from './CircleClose';\nimport CircleInformation from './CircleInformation';\nimport CircleMinus from './CircleMinus';\nimport CirclePlus from './CirclePlus';\nimport CircleQuestionmark from './CircleQuestionmark';\nimport CircleTick from './CircleTick';\nimport CircleWarning from './CircleWarning';\nimport ClampOpen from './ClampOpen';\nimport Clamp from './Clamp';\nimport Close from './Close';\nimport ColumnFreeze from './ColumnFreeze';\nimport ColumnUnfreeze from './ColumnUnfreeze';\nimport Columns from './Columns';\nimport ConnectionEnable from './ConnectionEnable';\nimport ConnectionRevoke from './ConnectionRevoke';\nimport Contacts from './Contacts';\nimport Copy from './Copy';\nimport Courses from './Courses';\nimport Credit from './Credit';\nimport DeletePermanently from './DeletePermanently';\nimport Delete from './Delete';\nimport Depecriate from './Depecriate';\nimport Developer from './Developer';\nimport DistributionTemplate from './DistributionTemplate';\nimport DocumentApprove from './DocumentApprove';\nimport DocumentCreateEntry from './DocumentCreateEntry';\nimport DocumentCut from './DocumentCut';\nimport DocumentError from './DocumentError';\nimport DocumentIsolatePage from './DocumentIsolatePage';\nimport DocumentMerge from './DocumentMerge';\nimport DocumentMove from './DocumentMove';\nimport DocumentPreview from './DocumentPreview';\nimport DocumentReceived from './DocumentReceived';\nimport DocumentRejectedRequest from './DocumentRejectedRequest';\nimport DocumentSplit from './DocumentSplit';\nimport DocumentTime from './DocumentTime';\nimport Document from './Document';\nimport Download from './Download';\nimport Drag from './Drag';\nimport ECopedia from './ECopedia';\nimport ESignature from './ESignature';\nimport EditSimple from './EditSimple';\nimport Edit from './Edit';\nimport EllipsisHorizontal from './EllipsisHorizontal';\nimport EllipsisVertical from './EllipsisVertical';\nimport EntriesOnAccount from './EntriesOnAccount';\nimport EntriesOpen from './EntriesOpen';\nimport EntriesWarning from './EntriesWarning';\nimport EntryTypeCustomerInvoice from './EntryTypeCustomerInvoice';\nimport EntryTypeCustomerPayment from './EntryTypeCustomerPayment';\nimport EntryTypeJournalEntry from './EntryTypeJournalEntry';\nimport EntryTypeManualCustomerInvoice from './EntryTypeManualCustomerInvoice';\nimport EntryTypeSupplierInvoice from './EntryTypeSupplierInvoice';\nimport EntryTypeSupplierPayment from './EntryTypeSupplierPayment';\nimport EnvelopeApproved from './EnvelopeApproved';\nimport EnvelopeSolid from './EnvelopeSolid';\nimport Envelope from './Envelope';\nimport ExpandView from './ExpandView';\nimport Expenses from './Expenses';\nimport ExportToExcel from './ExportToExcel';\nimport ExportToPdf from './ExportToPdf';\nimport Export from './Export';\nimport EyeOff from './EyeOff';\nimport EyeOn from './EyeOn';\nimport FilterSolid from './FilterSolid';\nimport Filter from './Filter';\nimport FontSize from './FontSize';\nimport GraphSolid from './GraphSolid';\nimport Hash from './Hash';\nimport HeightExtraTall from './HeightExtraTall';\nimport HeightMedium from './HeightMedium';\nimport HeightShort from './HeightShort';\nimport HeightTall from './HeightTall';\nimport Home from './Home';\nimport Images from './Images';\nimport Import from './Import';\nimport InboxEinvoicing from './InboxEinvoicing';\nimport InboxScanning from './InboxScanning';\nimport InboxSmart from './InboxSmart';\nimport Inbox from './Inbox';\nimport Info from './Info';\nimport InventoryMatrix from './InventoryMatrix';\nimport Inventory from './Inventory';\nimport JournalPro from './JournalPro';\nimport LayoutBoth from './LayoutBoth';\nimport LayoutFirst from './LayoutFirst';\nimport LayoutLast from './LayoutLast';\nimport LayoutNone from './LayoutNone';\nimport Layout from './Layout';\nimport LedgerCardCustomerReminder from './LedgerCardCustomerReminder';\nimport LedgerCardManualCustomerInvoice from './LedgerCardManualCustomerInvoice';\nimport LedgerCardObsoleteStock from './LedgerCardObsoleteStock';\nimport LedgerCardOpeningEntry from './LedgerCardOpeningEntry';\nimport LedgerCardReservedEntry from './LedgerCardReservedEntry';\nimport LedgerCardShrinkagePilferage from './LedgerCardShrinkagePilferage';\nimport LedgerCardStockAdjustment from './LedgerCardStockAdjustment';\nimport LedgerCardTransferredOpeningEntry from './LedgerCardTransferredOpeningEntry';\nimport LedgerCard from './LedgerCard';\nimport Lightbulb from './Lightbulb';\nimport Line from './Line';\nimport LinkExternal from './LinkExternal';\nimport ListBulleted from './ListBulleted';\nimport ListSearch from './ListSearch';\nimport List from './List';\nimport Location from './Location';\nimport LockOpen from './LockOpen';\nimport Lock from './Lock';\nimport LogOut from './LogOut';\nimport Log from './Log';\nimport Market from './Market';\nimport MatchAmount from './MatchAmount';\nimport MatchEntries from './MatchEntries';\nimport Menu from './Menu';\nimport Mileage from './Mileage';\nimport ModalResize from './ModalResize';\nimport ModalShrink from './ModalShrink';\nimport MoreSolid from './MoreSolid';\nimport More from './More';\nimport Move from './Move';\nimport NavigationList from './NavigationList';\nimport NoteFollowUp from './NoteFollowUp';\nimport NoteRead from './NoteRead';\nimport Note from './Note';\nimport Numbers from './Numbers';\nimport PartnerApi from './PartnerApi';\nimport PaymentPaid from './PaymentPaid';\nimport PaymentUnpaid from './PaymentUnpaid';\nimport Period from './Period';\nimport PersonChange from './PersonChange';\nimport PersonMinus from './PersonMinus';\nimport PersonPlus from './PersonPlus';\nimport PersonTick from './PersonTick';\nimport PhoneSolid from './PhoneSolid';\nimport Phone from './Phone';\nimport Play from './Play';\nimport PlusMinus from './PlusMinus';\nimport Print from './Print';\nimport ProcessPayment from './ProcessPayment';\nimport ProductLedgerCard from './ProductLedgerCard';\nimport Profile from './Profile';\nimport ProjectCards from './ProjectCards';\nimport Projects from './Projects';\nimport QuestionMarkBold from './QuestionMarkBold';\nimport QuestionMark from './QuestionMark';\nimport Quicklinks from './Quicklinks';\nimport RatingBankruptcy from './RatingBankruptcy';\nimport RatingPaymentProblems from './RatingPaymentProblems';\nimport Reconciled from './Reconciled';\nimport Refresh from './Refresh';\nimport ReportSolid from './ReportSolid';\nimport Report from './Report';\nimport Restore from './Restore';\nimport RotateLeft from './RotateLeft';\nimport RotateRight from './RotateRight';\nimport Sales from './Sales';\nimport SearchBold from './SearchBold';\nimport Search from './Search';\nimport SecureTick from './SecureTick';\nimport Secure from './Secure';\nimport SettingsSolid from './SettingsSolid';\nimport Settings from './Settings';\nimport Shortcuts from './Shortcuts';\nimport ShowAll from './ShowAll';\nimport ShowLess from './ShowLess';\nimport ShowMore from './ShowMore';\nimport ShowTemplate from './ShowTemplate';\nimport Sliders from './Sliders';\nimport Smartpay from './Smartpay';\nimport SortBy from './SortBy';\nimport StarSolid from './StarSolid';\nimport Star from './Star';\nimport Subscriptions from './Subscriptions';\nimport SystemEntries from './SystemEntries';\nimport Tag from './Tag';\nimport TemplateOverride from './TemplateOverride';\nimport Templates from './Templates';\nimport ThumbBoth from './ThumbBoth';\nimport ThumbDownSolid from './ThumbDownSolid';\nimport ThumbDown from './ThumbDown';\nimport ThumbUpSolid from './ThumbUpSolid';\nimport ThumbUp from './ThumbUp';\nimport TickBold from './TickBold';\nimport Tick from './Tick';\nimport Time from './Time';\nimport TransferCancel from './TransferCancel';\nimport TransferLocked from './TransferLocked';\nimport Transfer from './Transfer';\nimport Undo from './Undo';\nimport Undock from './Undock';\nimport Unreconciled from './Unreconciled';\nimport Warning from './Warning';\nimport Webshop from './Webshop';\nimport Website from './Website';\nimport WorkflowTemplateBasic from './WorkflowTemplateBasic';\nimport Workflow from './Workflow';\nimport Zoom from './Zoom';\n\nexport const icons: Record<\n IconName,\n React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>\n> = {\n 'account-preview': AccountPreview,\n 'accounting-year-cancel': AccountingYearCancel,\n 'accounting-year': AccountingYear,\n accounting: Accounting,\n 'ai-chat-solid': AiChatSolid,\n 'ai-stars': AiStars,\n 'arrow-bottom': ArrowBottom,\n 'arrow-down': ArrowDown,\n 'arrow-end': ArrowEnd,\n 'arrow-left': ArrowLeft,\n 'arrow-right': ArrowRight,\n 'arrow-start': ArrowStart,\n 'arrow-top': ArrowTop,\n 'arrow-up': ArrowUp,\n 'attach-auto': AttachAuto,\n 'attach-cancel': AttachCancel,\n 'attach-warning': AttachWarning,\n attach: Attach,\n 'autotext-insert': AutotextInsert,\n autotext: Autotext,\n 'basic-tabs': BasicTabs,\n basic: Basic,\n 'bell-solid': BellSolid,\n book: Book,\n booking: Booking,\n budget: Budget,\n calendar: Calendar,\n 'cash-account': CashAccount,\n 'cash-reports': CashReports,\n 'chart-area': ChartArea,\n 'chart-bar': ChartBar,\n 'chart-line': ChartLine,\n 'chart-pie': ChartPie,\n 'chart-table': ChartTable,\n 'chat-solid': ChatSolid,\n chat: Chat,\n 'chevron-down-double': ChevronDownDouble,\n 'chevron-down-solid': ChevronDownSolid,\n 'chevron-down': ChevronDown,\n 'chevron-left-double': ChevronLeftDouble,\n 'chevron-left-solid': ChevronLeftSolid,\n 'chevron-left': ChevronLeft,\n 'chevron-right-double': ChevronRightDouble,\n 'chevron-right-solid': ChevronRightSolid,\n 'chevron-right': ChevronRight,\n 'chevron-up-double': ChevronUpDouble,\n 'chevron-up-solid': ChevronUpSolid,\n 'chevron-up': ChevronUp,\n 'circle-close': CircleClose,\n 'circle-information': CircleInformation,\n 'circle-minus': CircleMinus,\n 'circle-plus': CirclePlus,\n 'circle-questionmark': CircleQuestionmark,\n 'circle-tick': CircleTick,\n 'circle-warning': CircleWarning,\n 'clamp-open': ClampOpen,\n clamp: Clamp,\n close: Close,\n 'column-freeze': ColumnFreeze,\n 'column-unfreeze': ColumnUnfreeze,\n columns: Columns,\n 'connection-enable': ConnectionEnable,\n 'connection-revoke': ConnectionRevoke,\n contacts: Contacts,\n copy: Copy,\n courses: Courses,\n credit: Credit,\n 'delete-permanently': DeletePermanently,\n delete: Delete,\n depecriate: Depecriate,\n developer: Developer,\n 'distribution-template': DistributionTemplate,\n 'document-approve': DocumentApprove,\n 'document-create-entry': DocumentCreateEntry,\n 'document-cut': DocumentCut,\n 'document-error': DocumentError,\n 'document-isolate-page': DocumentIsolatePage,\n 'document-merge': DocumentMerge,\n 'document-move': DocumentMove,\n 'document-preview': DocumentPreview,\n 'document-received': DocumentReceived,\n 'document-rejected-request': DocumentRejectedRequest,\n 'document-split': DocumentSplit,\n 'document-time': DocumentTime,\n document: Document,\n download: Download,\n drag: Drag,\n 'e-copedia': ECopedia,\n 'e-signature': ESignature,\n 'edit-simple': EditSimple,\n edit: Edit,\n 'ellipsis-horizontal': EllipsisHorizontal,\n 'ellipsis-vertical': EllipsisVertical,\n 'entries-on-account': EntriesOnAccount,\n 'entries-open': EntriesOpen,\n 'entries-warning': EntriesWarning,\n 'entry-type-customer-invoice': EntryTypeCustomerInvoice,\n 'entry-type-customer-payment': EntryTypeCustomerPayment,\n 'entry-type-journal-entry': EntryTypeJournalEntry,\n 'entry-type-manual-customer-invoice': EntryTypeManualCustomerInvoice,\n 'entry-type-supplier-invoice': EntryTypeSupplierInvoice,\n 'entry-type-supplier-payment': EntryTypeSupplierPayment,\n 'envelope-approved': EnvelopeApproved,\n 'envelope-solid': EnvelopeSolid,\n envelope: Envelope,\n 'expand-view': ExpandView,\n expenses: Expenses,\n 'export-to-excel': ExportToExcel,\n 'export-to-pdf': ExportToPdf,\n export: Export,\n 'eye-off': EyeOff,\n 'eye-on': EyeOn,\n 'filter-solid': FilterSolid,\n filter: Filter,\n 'font-size': FontSize,\n 'graph-solid': GraphSolid,\n hash: Hash,\n 'height-extra-tall': HeightExtraTall,\n 'height-medium': HeightMedium,\n 'height-short': HeightShort,\n 'height-tall': HeightTall,\n home: Home,\n images: Images,\n import: Import,\n 'inbox-einvoicing': InboxEinvoicing,\n 'inbox-scanning': InboxScanning,\n 'inbox-smart': InboxSmart,\n inbox: Inbox,\n info: Info,\n 'inventory-matrix': InventoryMatrix,\n inventory: Inventory,\n 'journal-pro': JournalPro,\n 'layout-both': LayoutBoth,\n 'layout-first': LayoutFirst,\n 'layout-last': LayoutLast,\n 'layout-none': LayoutNone,\n layout: Layout,\n 'ledger-card-customer-reminder': LedgerCardCustomerReminder,\n 'ledger-card-manual-customer-invoice': LedgerCardManualCustomerInvoice,\n 'ledger-card-obsolete-stock': LedgerCardObsoleteStock,\n 'ledger-card-opening-entry': LedgerCardOpeningEntry,\n 'ledger-card-reserved-entry': LedgerCardReservedEntry,\n 'ledger-card-shrinkage-pilferage': LedgerCardShrinkagePilferage,\n 'ledger-card-stock-adjustment': LedgerCardStockAdjustment,\n 'ledger-card-transferred-opening-entry': LedgerCardTransferredOpeningEntry,\n 'ledger-card': LedgerCard,\n lightbulb: Lightbulb,\n line: Line,\n 'link-external': LinkExternal,\n 'list-bulleted': ListBulleted,\n 'list-search': ListSearch,\n list: List,\n location: Location,\n 'lock-open': LockOpen,\n lock: Lock,\n 'log-out': LogOut,\n log: Log,\n market: Market,\n 'match-amount': MatchAmount,\n 'match-entries': MatchEntries,\n menu: Menu,\n mileage: Mileage,\n 'modal-resize': ModalResize,\n 'modal-shrink': ModalShrink,\n 'more-solid': MoreSolid,\n more: More,\n move: Move,\n 'navigation-list': NavigationList,\n 'note-follow-up': NoteFollowUp,\n 'note-read': NoteRead,\n note: Note,\n numbers: Numbers,\n 'partner-api': PartnerApi,\n 'payment-paid': PaymentPaid,\n 'payment-unpaid': PaymentUnpaid,\n period: Period,\n 'person-change': PersonChange,\n 'person-minus': PersonMinus,\n 'person-plus': PersonPlus,\n 'person-tick': PersonTick,\n 'phone-solid': PhoneSolid,\n phone: Phone,\n play: Play,\n 'plus-minus': PlusMinus,\n print: Print,\n 'process-payment': ProcessPayment,\n 'product-ledger-card': ProductLedgerCard,\n profile: Profile,\n 'project-cards': ProjectCards,\n projects: Projects,\n 'question-mark-bold': QuestionMarkBold,\n 'question-mark': QuestionMark,\n quicklinks: Quicklinks,\n 'rating-bankruptcy': RatingBankruptcy,\n 'rating-payment-problems': RatingPaymentProblems,\n reconciled: Reconciled,\n refresh: Refresh,\n 'report-solid': ReportSolid,\n report: Report,\n restore: Restore,\n 'rotate-left': RotateLeft,\n 'rotate-right': RotateRight,\n sales: Sales,\n 'search-bold': SearchBold,\n search: Search,\n 'secure-tick': SecureTick,\n secure: Secure,\n 'settings-solid': SettingsSolid,\n settings: Settings,\n shortcuts: Shortcuts,\n 'show-all': ShowAll,\n 'show-less': ShowLess,\n 'show-more': ShowMore,\n 'show-template': ShowTemplate,\n sliders: Sliders,\n smartpay: Smartpay,\n 'sort-by': SortBy,\n 'star-solid': StarSolid,\n star: Star,\n subscriptions: Subscriptions,\n 'system-entries': SystemEntries,\n tag: Tag,\n 'template-override': TemplateOverride,\n templates: Templates,\n 'thumb-both': ThumbBoth,\n 'thumb-down-solid': ThumbDownSolid,\n 'thumb-down': ThumbDown,\n 'thumb-up-solid': ThumbUpSolid,\n 'thumb-up': ThumbUp,\n 'tick-bold': TickBold,\n tick: Tick,\n time: Time,\n 'transfer-cancel': TransferCancel,\n 'transfer-locked': TransferLocked,\n transfer: Transfer,\n undo: Undo,\n undock: Undock,\n unreconciled: Unreconciled,\n warning: Warning,\n webshop: Webshop,\n website: Website,\n 'workflow-template-basic': WorkflowTemplateBasic,\n workflow: Workflow,\n zoom: Zoom,\n};\n\n// the prop extraction tool can't handle this\n//export type IconName = keyof typeof icons;\nexport type IconName =\n | 'account-preview'\n | 'accounting-year-cancel'\n | 'accounting-year'\n | 'accounting'\n | 'ai-chat-solid'\n | 'ai-stars'\n | 'arrow-bottom'\n | 'arrow-down'\n | 'arrow-end'\n | 'arrow-left'\n | 'arrow-right'\n | 'arrow-start'\n | 'arrow-top'\n | 'arrow-up'\n | 'attach-auto'\n | 'attach-cancel'\n | 'attach-warning'\n | 'attach'\n | 'autotext-insert'\n | 'autotext'\n | 'basic-tabs'\n | 'basic'\n | 'bell-solid'\n | 'book'\n | 'booking'\n | 'budget'\n | 'calendar'\n | 'cash-account'\n | 'cash-reports'\n | 'chart-area'\n | 'chart-bar'\n | 'chart-line'\n | 'chart-pie'\n | 'chart-table'\n | 'chat-solid'\n | 'chat'\n | 'chevron-down-double'\n | 'chevron-down-solid'\n | 'chevron-down'\n | 'chevron-left-double'\n | 'chevron-left-solid'\n | 'chevron-left'\n | 'chevron-right-double'\n | 'chevron-right-solid'\n | 'chevron-right'\n | 'chevron-up-double'\n | 'chevron-up-solid'\n | 'chevron-up'\n | 'circle-close'\n | 'circle-information'\n | 'circle-minus'\n | 'circle-plus'\n | 'circle-questionmark'\n | 'circle-tick'\n | 'circle-warning'\n | 'clamp-open'\n | 'clamp'\n | 'close'\n | 'column-freeze'\n | 'column-unfreeze'\n | 'columns'\n | 'connection-enable'\n | 'connection-revoke'\n | 'contacts'\n | 'copy'\n | 'courses'\n | 'credit'\n | 'delete-permanently'\n | 'delete'\n | 'depecriate'\n | 'developer'\n | 'distribution-template'\n | 'document-approve'\n | 'document-create-entry'\n | 'document-cut'\n | 'document-error'\n | 'document-isolate-page'\n | 'document-merge'\n | 'document-move'\n | 'document-preview'\n | 'document-received'\n | 'document-rejected-request'\n | 'document-split'\n | 'document-time'\n | 'document'\n | 'download'\n | 'drag'\n | 'e-copedia'\n | 'e-signature'\n | 'edit-simple'\n | 'edit'\n | 'ellipsis-horizontal'\n | 'ellipsis-vertical'\n | 'entries-on-account'\n | 'entries-open'\n | 'entries-warning'\n | 'entry-type-customer-invoice'\n | 'entry-type-customer-payment'\n | 'entry-type-journal-entry'\n | 'entry-type-manual-customer-invoice'\n | 'entry-type-supplier-invoice'\n | 'entry-type-supplier-payment'\n | 'envelope-approved'\n | 'envelope-solid'\n | 'envelope'\n | 'expand-view'\n | 'expenses'\n | 'export-to-excel'\n | 'export-to-pdf'\n | 'export'\n | 'eye-off'\n | 'eye-on'\n | 'filter-solid'\n | 'filter'\n | 'font-size'\n | 'graph-solid'\n | 'hash'\n | 'height-extra-tall'\n | 'height-medium'\n | 'height-short'\n | 'height-tall'\n | 'home'\n | 'images'\n | 'import'\n | 'inbox-einvoicing'\n | 'inbox-scanning'\n | 'inbox-smart'\n | 'inbox'\n | 'info'\n | 'inventory-matrix'\n | 'inventory'\n | 'journal-pro'\n | 'layout-both'\n | 'layout-first'\n | 'layout-last'\n | 'layout-none'\n | 'layout'\n | 'ledger-card-customer-reminder'\n | 'ledger-card-manual-customer-invoice'\n | 'ledger-card-obsolete-stock'\n | 'ledger-card-opening-entry'\n | 'ledger-card-reserved-entry'\n | 'ledger-card-shrinkage-pilferage'\n | 'ledger-card-stock-adjustment'\n | 'ledger-card-transferred-opening-entry'\n | 'ledger-card'\n | 'lightbulb'\n | 'line'\n | 'link-external'\n | 'list-bulleted'\n | 'list-search'\n | 'list'\n | 'location'\n | 'lock-open'\n | 'lock'\n | 'log-out'\n | 'log'\n | 'market'\n | 'match-amount'\n | 'match-entries'\n | 'menu'\n | 'mileage'\n | 'modal-resize'\n | 'modal-shrink'\n | 'more-solid'\n | 'more'\n | 'move'\n | 'navigation-list'\n | 'note-follow-up'\n | 'note-read'\n | 'note'\n | 'numbers'\n | 'partner-api'\n | 'payment-paid'\n | 'payment-unpaid'\n | 'period'\n | 'person-change'\n | 'person-minus'\n | 'person-plus'\n | 'person-tick'\n | 'phone-solid'\n | 'phone'\n | 'play'\n | 'plus-minus'\n | 'print'\n | 'process-payment'\n | 'product-ledger-card'\n | 'profile'\n | 'project-cards'\n | 'projects'\n | 'question-mark-bold'\n | 'question-mark'\n | 'quicklinks'\n | 'rating-bankruptcy'\n | 'rating-payment-problems'\n | 'reconciled'\n | 'refresh'\n | 'report-solid'\n | 'report'\n | 'restore'\n | 'rotate-left'\n | 'rotate-right'\n | 'sales'\n | 'search-bold'\n | 'search'\n | 'secure-tick'\n | 'secure'\n | 'settings-solid'\n | 'settings'\n | 'shortcuts'\n | 'show-all'\n | 'show-less'\n | 'show-more'\n | 'show-template'\n | 'sliders'\n | 'smartpay'\n | 'sort-by'\n | 'star-solid'\n | 'star'\n | 'subscriptions'\n | 'system-entries'\n | 'tag'\n | 'template-override'\n | 'templates'\n | 'thumb-both'\n | 'thumb-down-solid'\n | 'thumb-down'\n | 'thumb-up-solid'\n | 'thumb-up'\n | 'tick-bold'\n | 'tick'\n | 'time'\n | 'transfer-cancel'\n | 'transfer-locked'\n | 'transfer'\n | 'undo'\n | 'undock'\n | 'unreconciled'\n | 'warning'\n | 'webshop'\n | 'website'\n | 'workflow-template-basic'\n | 'workflow'\n | 'zoom';\n"],"names":["icons","AccountPreview","AccountingYearCancel","AccountingYear","accounting","Accounting","AiChatSolid","AiStars","ArrowBottom","ArrowDown","ArrowEnd","ArrowLeft","ArrowRight","ArrowStart","ArrowTop","ArrowUp","AttachAuto","AttachCancel","AttachWarning","attach","Attach","AutotextInsert","autotext","Autotext","BasicTabs","basic","Basic","BellSolid","book","Book","booking","Booking","budget","Budget","calendar","Calendar","CashAccount","CashReports","ChartArea","ChartBar","ChartLine","ChartPie","ChartTable","ChatSolid","chat","Chat","ChevronDownDouble","ChevronDownSolid","ChevronDown","ChevronLeftDouble","ChevronLeftSolid","ChevronLeft","ChevronRightDouble","ChevronRightSolid","ChevronRight","ChevronUpDouble","ChevronUpSolid","ChevronUp","CircleClose","CircleInformation","CircleMinus","CirclePlus","CircleQuestionmark","CircleTick","CircleWarning","ClampOpen","clamp","Clamp","close","Close","ColumnFreeze","ColumnUnfreeze","columns","Columns","ConnectionEnable","ConnectionRevoke","contacts","Contacts","copy","Copy","courses","Courses","credit","Credit","DeletePermanently","delete","Delete","depecriate","Depecriate","developer","Developer","DistributionTemplate","DocumentApprove","DocumentCreateEntry","DocumentCut","DocumentError","DocumentIsolatePage","DocumentMerge","DocumentMove","DocumentPreview","DocumentReceived","DocumentRejectedRequest","DocumentSplit","DocumentTime","document","Document","download","Download","drag","Drag","ECopedia","ESignature","EditSimple","edit","Edit","EllipsisHorizontal","EllipsisVertical","EntriesOnAccount","EntriesOpen","EntriesWarning","EntryTypeCustomerInvoice","EntryTypeCustomerPayment","EntryTypeJournalEntry","EntryTypeManualCustomerInvoice","EntryTypeSupplierInvoice","EntryTypeSupplierPayment","EnvelopeApproved","EnvelopeSolid","envelope","Envelope","ExpandView","expenses","Expenses","ExportToExcel","ExportToPdf","export","Export","EyeOff","EyeOn","FilterSolid","filter","Filter","FontSize","GraphSolid","hash","Hash","HeightExtraTall","HeightMedium","HeightShort","HeightTall","home","Home","images","Images","import","Import","InboxEinvoicing","InboxScanning","InboxSmart","inbox","Inbox","info","Info","InventoryMatrix","inventory","Inventory","JournalPro","LayoutBoth","LayoutFirst","LayoutLast","LayoutNone","layout","Layout","LedgerCardCustomerReminder","LedgerCardManualCustomerInvoice","LedgerCardObsoleteStock","LedgerCardOpeningEntry","LedgerCardReservedEntry","LedgerCardShrinkagePilferage","LedgerCardStockAdjustment","LedgerCardTransferredOpeningEntry","LedgerCard","lightbulb","Lightbulb","line","Line","LinkExternal","ListBulleted","ListSearch","list","List","location","Location","LockOpen","lock","Lock","LogOut","log","Log","market","Market","MatchAmount","MatchEntries","menu","Menu","mileage","Mileage","ModalResize","ModalShrink","MoreSolid","more","More","move","Move","NavigationList","NoteFollowUp","NoteRead","note","Note","numbers","Numbers","PartnerApi","PaymentPaid","PaymentUnpaid","period","Period","PersonChange","PersonMinus","PersonPlus","PersonTick","PhoneSolid","phone","Phone","play","Play","PlusMinus","print","Print","ProcessPayment","ProductLedgerCard","profile","Profile","ProjectCards","projects","Projects","QuestionMarkBold","QuestionMark","quicklinks","Quicklinks","RatingBankruptcy","RatingPaymentProblems","reconciled","Reconciled","refresh","Refresh","ReportSolid","report","Report","restore","Restore","RotateLeft","RotateRight","sales","Sales","SearchBold","search","Search","SecureTick","secure","Secure","SettingsSolid","settings","Settings","shortcuts","Shortcuts","ShowAll","ShowLess","ShowMore","ShowTemplate","sliders","Sliders","smartpay","Smartpay","SortBy","StarSolid","star","Star","subscriptions","Subscriptions","SystemEntries","tag","Tag","TemplateOverride","templates","Templates","ThumbBoth","ThumbDownSolid","ThumbDown","ThumbUpSolid","ThumbUp","TickBold","tick","Tick","time","Time","TransferCancel","TransferLocked","transfer","Transfer","undo","Undo","undock","Undock","unreconciled","Unreconciled","warning","Warning","webshop","Webshop","website","Website","WorkflowTemplateBas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;EAChBC,QAAQ,EAAEC,QAAQ;EAClB,SAAS,EAAEC,MAAM;EACjB,YAAY,EAAEC,SAAS;EACvBC,IAAI,EAAEC,IAAI;EACVC,aAAa,EAAEC,aAAa;EAC5B,gBAAgB,EAAEC,aAAa;EAC/BC,GAAG,EAAEC,GAAG;EACR,mBAAmB,EAAEC,gBAAgB;EACrCC,SAAS,EAAEC,SAAS;EACpB,YAAY,EAAEC,SAAS;EACvB,kBAAkB,EAAEC,cAAc;EAClC,YAAY,EAAEC,SAAS;EACvB,gBAAgB,EAAEC,YAAY;EAC9B,UAAU,EAAEC,OAAO;EACnB,WAAW,EAAEC,QAAQ;EACrBC,IAAI,EAAEC,IAAI;EACVC,IAAI,EAAEC,IAAI;EACV,iBAAiB,EAAEC,cAAc;EACjC,iBAAiB,EAAEC,cAAc;EACjCC,QAAQ,EAAEC,QAAQ;EAClBC,IAAI,EAAEC,IAAI;EACVC,MAAM,EAAEC,MAAM;EACdC,YAAY,EAAEC,YAAY;EAC1BC,OAAO,EAAEC,OAAO;EAChBC,OAAO,EAAEC,OAAO;EAChBC,OAAO,EAAEC,OAAO;EAChB,yBAAyB,EAAEC,qBAAqB;EAChDC,QAAQ,EAAEC,QAAQ;EAClBC,IAAI,EAAEC;;;;;"}
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../src/components/Icon/components/index.tsx"],"sourcesContent":["import AccountPreview from './AccountPreview';\nimport AccountingYearCancel from './AccountingYearCancel';\nimport AccountingYear from './AccountingYear';\nimport Accounting from './Accounting';\nimport AiChatSolid from './AiChatSolid';\nimport AiStars from './AiStars';\nimport ArrowBottom from './ArrowBottom';\nimport ArrowDown from './ArrowDown';\nimport ArrowEnd from './ArrowEnd';\nimport ArrowLeft from './ArrowLeft';\nimport ArrowRight from './ArrowRight';\nimport ArrowStart from './ArrowStart';\nimport ArrowTop from './ArrowTop';\nimport ArrowUp from './ArrowUp';\nimport AttachAuto from './AttachAuto';\nimport AttachCancel from './AttachCancel';\nimport AttachWarning from './AttachWarning';\nimport Attach from './Attach';\nimport AutotextInsert from './AutotextInsert';\nimport Autotext from './Autotext';\nimport BasicTabs from './BasicTabs';\nimport Basic from './Basic';\nimport BellSolid from './BellSolid';\nimport Book from './Book';\nimport Booking from './Booking';\nimport Budget from './Budget';\nimport Calendar from './Calendar';\nimport CashAccount from './CashAccount';\nimport CashReports from './CashReports';\nimport ChartArea from './ChartArea';\nimport ChartBar from './ChartBar';\nimport ChartLine from './ChartLine';\nimport ChartPie from './ChartPie';\nimport ChartTable from './ChartTable';\nimport ChatSolid from './ChatSolid';\nimport Chat from './Chat';\nimport ChevronDownDouble from './ChevronDownDouble';\nimport ChevronDownSolid from './ChevronDownSolid';\nimport ChevronDown from './ChevronDown';\nimport ChevronLeftDouble from './ChevronLeftDouble';\nimport ChevronLeftSolid from './ChevronLeftSolid';\nimport ChevronLeft from './ChevronLeft';\nimport ChevronRightDouble from './ChevronRightDouble';\nimport ChevronRightSolid from './ChevronRightSolid';\nimport ChevronRight from './ChevronRight';\nimport ChevronUpDouble from './ChevronUpDouble';\nimport ChevronUpSolid from './ChevronUpSolid';\nimport ChevronUp from './ChevronUp';\nimport CircleClose from './CircleClose';\nimport CircleInformation from './CircleInformation';\nimport CircleMinus from './CircleMinus';\nimport CirclePlus from './CirclePlus';\nimport CircleQuestionmark from './CircleQuestionmark';\nimport CircleTick from './CircleTick';\nimport CircleWarning from './CircleWarning';\nimport ClampOpen from './ClampOpen';\nimport Clamp from './Clamp';\nimport Close from './Close';\nimport ColumnFreeze from './ColumnFreeze';\nimport ColumnUnfreeze from './ColumnUnfreeze';\nimport Columns from './Columns';\nimport ConnectionEnable from './ConnectionEnable';\nimport ConnectionRevoke from './ConnectionRevoke';\nimport Contacts from './Contacts';\nimport Copy from './Copy';\nimport Courses from './Courses';\nimport Credit from './Credit';\nimport DeletePermanently from './DeletePermanently';\nimport Delete from './Delete';\nimport Depecriate from './Depecriate';\nimport Developer from './Developer';\nimport DistributionTemplate from './DistributionTemplate';\nimport DocumentApprove from './DocumentApprove';\nimport DocumentCreateEntry from './DocumentCreateEntry';\nimport DocumentCut from './DocumentCut';\nimport DocumentError from './DocumentError';\nimport DocumentIsolatePage from './DocumentIsolatePage';\nimport DocumentMerge from './DocumentMerge';\nimport DocumentMove from './DocumentMove';\nimport DocumentPreview from './DocumentPreview';\nimport DocumentReceived from './DocumentReceived';\nimport DocumentRejectedRequest from './DocumentRejectedRequest';\nimport DocumentSigned from './DocumentSigned';\nimport DocumentSplit from './DocumentSplit';\nimport DocumentTime from './DocumentTime';\nimport Document from './Document';\nimport Download from './Download';\nimport Drag from './Drag';\nimport ECopedia from './ECopedia';\nimport ESignature from './ESignature';\nimport EditSimple from './EditSimple';\nimport Edit from './Edit';\nimport EllipsisHorizontal from './EllipsisHorizontal';\nimport EllipsisVertical from './EllipsisVertical';\nimport EntriesOnAccount from './EntriesOnAccount';\nimport EntriesOpen from './EntriesOpen';\nimport EntriesWarning from './EntriesWarning';\nimport EntryTypeCustomerInvoice from './EntryTypeCustomerInvoice';\nimport EntryTypeCustomerPayment from './EntryTypeCustomerPayment';\nimport EntryTypeJournalEntry from './EntryTypeJournalEntry';\nimport EntryTypeManualCustomerInvoice from './EntryTypeManualCustomerInvoice';\nimport EntryTypeSupplierInvoice from './EntryTypeSupplierInvoice';\nimport EntryTypeSupplierPayment from './EntryTypeSupplierPayment';\nimport EnvelopeApproved from './EnvelopeApproved';\nimport EnvelopeSolid from './EnvelopeSolid';\nimport Envelope from './Envelope';\nimport ExpandView from './ExpandView';\nimport Expenses from './Expenses';\nimport ExportToExcel from './ExportToExcel';\nimport ExportToPdf from './ExportToPdf';\nimport Export from './Export';\nimport EyeOff from './EyeOff';\nimport EyeOn from './EyeOn';\nimport FilterSolid from './FilterSolid';\nimport Filter from './Filter';\nimport FontSize from './FontSize';\nimport GraphSolid from './GraphSolid';\nimport Hash from './Hash';\nimport HeightExtraTall from './HeightExtraTall';\nimport HeightMedium from './HeightMedium';\nimport HeightShort from './HeightShort';\nimport HeightTall from './HeightTall';\nimport Home2 from './Home2';\nimport Home from './Home';\nimport Id from './Id';\nimport Images from './Images';\nimport Import from './Import';\nimport InboxEinvoicing from './InboxEinvoicing';\nimport InboxScanning from './InboxScanning';\nimport InboxSmart from './InboxSmart';\nimport Inbox from './Inbox';\nimport Info from './Info';\nimport InventoryMatrix from './InventoryMatrix';\nimport Inventory from './Inventory';\nimport JournalPro from './JournalPro';\nimport LayoutBoth from './LayoutBoth';\nimport LayoutFirst from './LayoutFirst';\nimport LayoutLast from './LayoutLast';\nimport LayoutNone from './LayoutNone';\nimport Layout from './Layout';\nimport LedgerCardCustomerReminder from './LedgerCardCustomerReminder';\nimport LedgerCardManualCustomerInvoice from './LedgerCardManualCustomerInvoice';\nimport LedgerCardObsoleteStock from './LedgerCardObsoleteStock';\nimport LedgerCardOpeningEntry from './LedgerCardOpeningEntry';\nimport LedgerCardReservedEntry from './LedgerCardReservedEntry';\nimport LedgerCardShrinkagePilferage from './LedgerCardShrinkagePilferage';\nimport LedgerCardStockAdjustment from './LedgerCardStockAdjustment';\nimport LedgerCardTransferredOpeningEntry from './LedgerCardTransferredOpeningEntry';\nimport LedgerCard from './LedgerCard';\nimport Lightbulb from './Lightbulb';\nimport Line from './Line';\nimport LinkExternal from './LinkExternal';\nimport ListBulleted from './ListBulleted';\nimport ListSearch from './ListSearch';\nimport List from './List';\nimport Location from './Location';\nimport LockOpen from './LockOpen';\nimport Lock from './Lock';\nimport LogOut from './LogOut';\nimport Log from './Log';\nimport Market from './Market';\nimport MastercardOs from './MastercardOs';\nimport MatchAmount from './MatchAmount';\nimport MatchEntries from './MatchEntries';\nimport Menu from './Menu';\nimport Mileage from './Mileage';\nimport ModalResize from './ModalResize';\nimport ModalShrink from './ModalShrink';\nimport MoreSolid from './MoreSolid';\nimport More from './More';\nimport Move from './Move';\nimport NavigationList from './NavigationList';\nimport NoteFollowUp from './NoteFollowUp';\nimport NoteRead from './NoteRead';\nimport Note from './Note';\nimport NovemberFirst from './NovemberFirst';\nimport Numbers from './Numbers';\nimport PartnerApi from './PartnerApi';\nimport PaymentPaid from './PaymentPaid';\nimport PaymentUnpaid from './PaymentUnpaid';\nimport Period from './Period';\nimport PersonChange from './PersonChange';\nimport PersonMinus from './PersonMinus';\nimport PersonPlus from './PersonPlus';\nimport PersonTick from './PersonTick';\nimport PhoneSolid from './PhoneSolid';\nimport Phone from './Phone';\nimport Play from './Play';\nimport PlusMinus from './PlusMinus';\nimport Print from './Print';\nimport ProcessPayment from './ProcessPayment';\nimport ProductLedgerCard from './ProductLedgerCard';\nimport Profile from './Profile';\nimport ProjectCards from './ProjectCards';\nimport Projects from './Projects';\nimport QuestionMarkBold from './QuestionMarkBold';\nimport QuestionMark from './QuestionMark';\nimport Quicklinks from './Quicklinks';\nimport RatingBankruptcy from './RatingBankruptcy';\nimport RatingPaymentProblems from './RatingPaymentProblems';\nimport Reconciled from './Reconciled';\nimport Refresh from './Refresh';\nimport ReportSolid from './ReportSolid';\nimport Report from './Report';\nimport Restore from './Restore';\nimport RotateLeft from './RotateLeft';\nimport RotateRight from './RotateRight';\nimport Sales from './Sales';\nimport SearchBold from './SearchBold';\nimport Search from './Search';\nimport SecureTick from './SecureTick';\nimport Secure from './Secure';\nimport SettingsSolid from './SettingsSolid';\nimport Settings from './Settings';\nimport Shortcuts from './Shortcuts';\nimport ShowAll from './ShowAll';\nimport ShowLess from './ShowLess';\nimport ShowMore from './ShowMore';\nimport ShowTemplate from './ShowTemplate';\nimport Sliders from './Sliders';\nimport Smartpay from './Smartpay';\nimport SortBy from './SortBy';\nimport StarSolid from './StarSolid';\nimport Star from './Star';\nimport Subscriptions from './Subscriptions';\nimport SystemEntries from './SystemEntries';\nimport Tag from './Tag';\nimport TemplateOverride from './TemplateOverride';\nimport Templates from './Templates';\nimport ThumbBoth from './ThumbBoth';\nimport ThumbDownSolid from './ThumbDownSolid';\nimport ThumbDown from './ThumbDown';\nimport ThumbUpSolid from './ThumbUpSolid';\nimport ThumbUp from './ThumbUp';\nimport TickBold from './TickBold';\nimport Tick from './Tick';\nimport Time from './Time';\nimport TransferCancel from './TransferCancel';\nimport TransferLocked from './TransferLocked';\nimport Transfer from './Transfer';\nimport Undo from './Undo';\nimport Undock from './Undock';\nimport Unreconciled from './Unreconciled';\nimport Warning from './Warning';\nimport Webshop from './Webshop';\nimport Website from './Website';\nimport WorkflowTemplateBasic from './WorkflowTemplateBasic';\nimport Workflow from './Workflow';\nimport Zoom from './Zoom';\n\nexport const icons: Record<\n IconName,\n React.ForwardRefExoticComponent<React.SVGAttributes<SVGSVGElement> & React.RefAttributes<SVGSVGElement>>\n> = {\n 'account-preview': AccountPreview,\n 'accounting-year-cancel': AccountingYearCancel,\n 'accounting-year': AccountingYear,\n accounting: Accounting,\n 'ai-chat-solid': AiChatSolid,\n 'ai-stars': AiStars,\n 'arrow-bottom': ArrowBottom,\n 'arrow-down': ArrowDown,\n 'arrow-end': ArrowEnd,\n 'arrow-left': ArrowLeft,\n 'arrow-right': ArrowRight,\n 'arrow-start': ArrowStart,\n 'arrow-top': ArrowTop,\n 'arrow-up': ArrowUp,\n 'attach-auto': AttachAuto,\n 'attach-cancel': AttachCancel,\n 'attach-warning': AttachWarning,\n attach: Attach,\n 'autotext-insert': AutotextInsert,\n autotext: Autotext,\n 'basic-tabs': BasicTabs,\n basic: Basic,\n 'bell-solid': BellSolid,\n book: Book,\n booking: Booking,\n budget: Budget,\n calendar: Calendar,\n 'cash-account': CashAccount,\n 'cash-reports': CashReports,\n 'chart-area': ChartArea,\n 'chart-bar': ChartBar,\n 'chart-line': ChartLine,\n 'chart-pie': ChartPie,\n 'chart-table': ChartTable,\n 'chat-solid': ChatSolid,\n chat: Chat,\n 'chevron-down-double': ChevronDownDouble,\n 'chevron-down-solid': ChevronDownSolid,\n 'chevron-down': ChevronDown,\n 'chevron-left-double': ChevronLeftDouble,\n 'chevron-left-solid': ChevronLeftSolid,\n 'chevron-left': ChevronLeft,\n 'chevron-right-double': ChevronRightDouble,\n 'chevron-right-solid': ChevronRightSolid,\n 'chevron-right': ChevronRight,\n 'chevron-up-double': ChevronUpDouble,\n 'chevron-up-solid': ChevronUpSolid,\n 'chevron-up': ChevronUp,\n 'circle-close': CircleClose,\n 'circle-information': CircleInformation,\n 'circle-minus': CircleMinus,\n 'circle-plus': CirclePlus,\n 'circle-questionmark': CircleQuestionmark,\n 'circle-tick': CircleTick,\n 'circle-warning': CircleWarning,\n 'clamp-open': ClampOpen,\n clamp: Clamp,\n close: Close,\n 'column-freeze': ColumnFreeze,\n 'column-unfreeze': ColumnUnfreeze,\n columns: Columns,\n 'connection-enable': ConnectionEnable,\n 'connection-revoke': ConnectionRevoke,\n contacts: Contacts,\n copy: Copy,\n courses: Courses,\n credit: Credit,\n 'delete-permanently': DeletePermanently,\n delete: Delete,\n depecriate: Depecriate,\n developer: Developer,\n 'distribution-template': DistributionTemplate,\n 'document-approve': DocumentApprove,\n 'document-create-entry': DocumentCreateEntry,\n 'document-cut': DocumentCut,\n 'document-error': DocumentError,\n 'document-isolate-page': DocumentIsolatePage,\n 'document-merge': DocumentMerge,\n 'document-move': DocumentMove,\n 'document-preview': DocumentPreview,\n 'document-received': DocumentReceived,\n 'document-rejected-request': DocumentRejectedRequest,\n 'document-signed': DocumentSigned,\n 'document-split': DocumentSplit,\n 'document-time': DocumentTime,\n document: Document,\n download: Download,\n drag: Drag,\n 'e-copedia': ECopedia,\n 'e-signature': ESignature,\n 'edit-simple': EditSimple,\n edit: Edit,\n 'ellipsis-horizontal': EllipsisHorizontal,\n 'ellipsis-vertical': EllipsisVertical,\n 'entries-on-account': EntriesOnAccount,\n 'entries-open': EntriesOpen,\n 'entries-warning': EntriesWarning,\n 'entry-type-customer-invoice': EntryTypeCustomerInvoice,\n 'entry-type-customer-payment': EntryTypeCustomerPayment,\n 'entry-type-journal-entry': EntryTypeJournalEntry,\n 'entry-type-manual-customer-invoice': EntryTypeManualCustomerInvoice,\n 'entry-type-supplier-invoice': EntryTypeSupplierInvoice,\n 'entry-type-supplier-payment': EntryTypeSupplierPayment,\n 'envelope-approved': EnvelopeApproved,\n 'envelope-solid': EnvelopeSolid,\n envelope: Envelope,\n 'expand-view': ExpandView,\n expenses: Expenses,\n 'export-to-excel': ExportToExcel,\n 'export-to-pdf': ExportToPdf,\n export: Export,\n 'eye-off': EyeOff,\n 'eye-on': EyeOn,\n 'filter-solid': FilterSolid,\n filter: Filter,\n 'font-size': FontSize,\n 'graph-solid': GraphSolid,\n hash: Hash,\n 'height-extra-tall': HeightExtraTall,\n 'height-medium': HeightMedium,\n 'height-short': HeightShort,\n 'height-tall': HeightTall,\n home2: Home2,\n home: Home,\n id: Id,\n images: Images,\n import: Import,\n 'inbox-einvoicing': InboxEinvoicing,\n 'inbox-scanning': InboxScanning,\n 'inbox-smart': InboxSmart,\n inbox: Inbox,\n info: Info,\n 'inventory-matrix': InventoryMatrix,\n inventory: Inventory,\n 'journal-pro': JournalPro,\n 'layout-both': LayoutBoth,\n 'layout-first': LayoutFirst,\n 'layout-last': LayoutLast,\n 'layout-none': LayoutNone,\n layout: Layout,\n 'ledger-card-customer-reminder': LedgerCardCustomerReminder,\n 'ledger-card-manual-customer-invoice': LedgerCardManualCustomerInvoice,\n 'ledger-card-obsolete-stock': LedgerCardObsoleteStock,\n 'ledger-card-opening-entry': LedgerCardOpeningEntry,\n 'ledger-card-reserved-entry': LedgerCardReservedEntry,\n 'ledger-card-shrinkage-pilferage': LedgerCardShrinkagePilferage,\n 'ledger-card-stock-adjustment': LedgerCardStockAdjustment,\n 'ledger-card-transferred-opening-entry': LedgerCardTransferredOpeningEntry,\n 'ledger-card': LedgerCard,\n lightbulb: Lightbulb,\n line: Line,\n 'link-external': LinkExternal,\n 'list-bulleted': ListBulleted,\n 'list-search': ListSearch,\n list: List,\n location: Location,\n 'lock-open': LockOpen,\n lock: Lock,\n 'log-out': LogOut,\n log: Log,\n market: Market,\n 'mastercard-os': MastercardOs,\n 'match-amount': MatchAmount,\n 'match-entries': MatchEntries,\n menu: Menu,\n mileage: Mileage,\n 'modal-resize': ModalResize,\n 'modal-shrink': ModalShrink,\n 'more-solid': MoreSolid,\n more: More,\n move: Move,\n 'navigation-list': NavigationList,\n 'note-follow-up': NoteFollowUp,\n 'note-read': NoteRead,\n note: Note,\n 'november-first': NovemberFirst,\n numbers: Numbers,\n 'partner-api': PartnerApi,\n 'payment-paid': PaymentPaid,\n 'payment-unpaid': PaymentUnpaid,\n period: Period,\n 'person-change': PersonChange,\n 'person-minus': PersonMinus,\n 'person-plus': PersonPlus,\n 'person-tick': PersonTick,\n 'phone-solid': PhoneSolid,\n phone: Phone,\n play: Play,\n 'plus-minus': PlusMinus,\n print: Print,\n 'process-payment': ProcessPayment,\n 'product-ledger-card': ProductLedgerCard,\n profile: Profile,\n 'project-cards': ProjectCards,\n projects: Projects,\n 'question-mark-bold': QuestionMarkBold,\n 'question-mark': QuestionMark,\n quicklinks: Quicklinks,\n 'rating-bankruptcy': RatingBankruptcy,\n 'rating-payment-problems': RatingPaymentProblems,\n reconciled: Reconciled,\n refresh: Refresh,\n 'report-solid': ReportSolid,\n report: Report,\n restore: Restore,\n 'rotate-left': RotateLeft,\n 'rotate-right': RotateRight,\n sales: Sales,\n 'search-bold': SearchBold,\n search: Search,\n 'secure-tick': SecureTick,\n secure: Secure,\n 'settings-solid': SettingsSolid,\n settings: Settings,\n shortcuts: Shortcuts,\n 'show-all': ShowAll,\n 'show-less': ShowLess,\n 'show-more': ShowMore,\n 'show-template': ShowTemplate,\n sliders: Sliders,\n smartpay: Smartpay,\n 'sort-by': SortBy,\n 'star-solid': StarSolid,\n star: Star,\n subscriptions: Subscriptions,\n 'system-entries': SystemEntries,\n tag: Tag,\n 'template-override': TemplateOverride,\n templates: Templates,\n 'thumb-both': ThumbBoth,\n 'thumb-down-solid': ThumbDownSolid,\n 'thumb-down': ThumbDown,\n 'thumb-up-solid': ThumbUpSolid,\n 'thumb-up': ThumbUp,\n 'tick-bold': TickBold,\n tick: Tick,\n time: Time,\n 'transfer-cancel': TransferCancel,\n 'transfer-locked': TransferLocked,\n transfer: Transfer,\n undo: Undo,\n undock: Undock,\n unreconciled: Unreconciled,\n warning: Warning,\n webshop: Webshop,\n website: Website,\n 'workflow-template-basic': WorkflowTemplateBasic,\n workflow: Workflow,\n zoom: Zoom,\n};\n\n// the prop extraction tool can't handle this\n//export type IconName = keyof typeof icons;\nexport type IconName =\n | 'account-preview'\n | 'accounting-year-cancel'\n | 'accounting-year'\n | 'accounting'\n | 'ai-chat-solid'\n | 'ai-stars'\n | 'arrow-bottom'\n | 'arrow-down'\n | 'arrow-end'\n | 'arrow-left'\n | 'arrow-right'\n | 'arrow-start'\n | 'arrow-top'\n | 'arrow-up'\n | 'attach-auto'\n | 'attach-cancel'\n | 'attach-warning'\n | 'attach'\n | 'autotext-insert'\n | 'autotext'\n | 'basic-tabs'\n | 'basic'\n | 'bell-solid'\n | 'book'\n | 'booking'\n | 'budget'\n | 'calendar'\n | 'cash-account'\n | 'cash-reports'\n | 'chart-area'\n | 'chart-bar'\n | 'chart-line'\n | 'chart-pie'\n | 'chart-table'\n | 'chat-solid'\n | 'chat'\n | 'chevron-down-double'\n | 'chevron-down-solid'\n | 'chevron-down'\n | 'chevron-left-double'\n | 'chevron-left-solid'\n | 'chevron-left'\n | 'chevron-right-double'\n | 'chevron-right-solid'\n | 'chevron-right'\n | 'chevron-up-double'\n | 'chevron-up-solid'\n | 'chevron-up'\n | 'circle-close'\n | 'circle-information'\n | 'circle-minus'\n | 'circle-plus'\n | 'circle-questionmark'\n | 'circle-tick'\n | 'circle-warning'\n | 'clamp-open'\n | 'clamp'\n | 'close'\n | 'column-freeze'\n | 'column-unfreeze'\n | 'columns'\n | 'connection-enable'\n | 'connection-revoke'\n | 'contacts'\n | 'copy'\n | 'courses'\n | 'credit'\n | 'delete-permanently'\n | 'delete'\n | 'depecriate'\n | 'developer'\n | 'distribution-template'\n | 'document-approve'\n | 'document-create-entry'\n | 'document-cut'\n | 'document-error'\n | 'document-isolate-page'\n | 'document-merge'\n | 'document-move'\n | 'document-preview'\n | 'document-received'\n | 'document-rejected-request'\n | 'document-signed'\n | 'document-split'\n | 'document-time'\n | 'document'\n | 'download'\n | 'drag'\n | 'e-copedia'\n | 'e-signature'\n | 'edit-simple'\n | 'edit'\n | 'ellipsis-horizontal'\n | 'ellipsis-vertical'\n | 'entries-on-account'\n | 'entries-open'\n | 'entries-warning'\n | 'entry-type-customer-invoice'\n | 'entry-type-customer-payment'\n | 'entry-type-journal-entry'\n | 'entry-type-manual-customer-invoice'\n | 'entry-type-supplier-invoice'\n | 'entry-type-supplier-payment'\n | 'envelope-approved'\n | 'envelope-solid'\n | 'envelope'\n | 'expand-view'\n | 'expenses'\n | 'export-to-excel'\n | 'export-to-pdf'\n | 'export'\n | 'eye-off'\n | 'eye-on'\n | 'filter-solid'\n | 'filter'\n | 'font-size'\n | 'graph-solid'\n | 'hash'\n | 'height-extra-tall'\n | 'height-medium'\n | 'height-short'\n | 'height-tall'\n | 'home2'\n | 'home'\n | 'id'\n | 'images'\n | 'import'\n | 'inbox-einvoicing'\n | 'inbox-scanning'\n | 'inbox-smart'\n | 'inbox'\n | 'info'\n | 'inventory-matrix'\n | 'inventory'\n | 'journal-pro'\n | 'layout-both'\n | 'layout-first'\n | 'layout-last'\n | 'layout-none'\n | 'layout'\n | 'ledger-card-customer-reminder'\n | 'ledger-card-manual-customer-invoice'\n | 'ledger-card-obsolete-stock'\n | 'ledger-card-opening-entry'\n | 'ledger-card-reserved-entry'\n | 'ledger-card-shrinkage-pilferage'\n | 'ledger-card-stock-adjustment'\n | 'ledger-card-transferred-opening-entry'\n | 'ledger-card'\n | 'lightbulb'\n | 'line'\n | 'link-external'\n | 'list-bulleted'\n | 'list-search'\n | 'list'\n | 'location'\n | 'lock-open'\n | 'lock'\n | 'log-out'\n | 'log'\n | 'market'\n | 'mastercard-os'\n | 'match-amount'\n | 'match-entries'\n | 'menu'\n | 'mileage'\n | 'modal-resize'\n | 'modal-shrink'\n | 'more-solid'\n | 'more'\n | 'move'\n | 'navigation-list'\n | 'note-follow-up'\n | 'note-read'\n | 'note'\n | 'november-first'\n | 'numbers'\n | 'partner-api'\n | 'payment-paid'\n | 'payment-unpaid'\n | 'period'\n | 'person-change'\n | 'person-minus'\n | 'person-plus'\n | 'person-tick'\n | 'phone-solid'\n | 'phone'\n | 'play'\n | 'plus-minus'\n | 'print'\n | 'process-payment'\n | 'product-ledger-card'\n | 'profile'\n | 'project-cards'\n | 'projects'\n | 'question-mark-bold'\n | 'question-mark'\n | 'quicklinks'\n | 'rating-bankruptcy'\n | 'rating-payment-problems'\n | 'reconciled'\n | 'refresh'\n | 'report-solid'\n | 'report'\n | 'restore'\n | 'rotate-left'\n | 'rotate-right'\n | 'sales'\n | 'search-bold'\n | 'search'\n | 'secure-tick'\n | 'secure'\n | 'settings-solid'\n | 'settings'\n | 'shortcuts'\n | 'show-all'\n | 'show-less'\n | 'show-more'\n | 'show-template'\n | 'sliders'\n | 'smartpay'\n | 'sort-by'\n | 'star-solid'\n | 'star'\n | 'subscriptions'\n | 'system-entries'\n | 'tag'\n | 'template-override'\n | 'templates'\n | 'thumb-both'\n | 'thumb-down-solid'\n | 'thumb-down'\n | 'thumb-up-solid'\n | 'thumb-up'\n | 'tick-bold'\n | 'tick'\n | 'time'\n | 'transfer-cancel'\n | 'transfer-locked'\n | 'transfer'\n | 'undo'\n | 'undock'\n | 'unreconciled'\n | 'warning'\n | 'webshop'\n | 'website'\n | 'workflow-template-basic'\n | 'workflow'\n | 'zoom';\n"],"names":["icons","AccountPreview","AccountingYearCancel","AccountingYear","accounting","Accounting","AiChatSolid","AiStars","ArrowBottom","ArrowDown","ArrowEnd","ArrowLeft","ArrowRight","ArrowStart","ArrowTop","ArrowUp","AttachAuto","AttachCancel","AttachWarning","attach","Attach","AutotextInsert","autotext","Autotext","BasicTabs","basic","Basic","BellSolid","book","Book","booking","Booking","budget","Budget","calendar","Calendar","CashAccount","CashReports","ChartArea","ChartBar","ChartLine","ChartPie","ChartTable","ChatSolid","chat","Chat","ChevronDownDouble","ChevronDownSolid","ChevronDown","ChevronLeftDouble","ChevronLeftSolid","ChevronLeft","ChevronRightDouble","ChevronRightSolid","ChevronRight","ChevronUpDouble","ChevronUpSolid","ChevronUp","CircleClose","CircleInformation","CircleMinus","CirclePlus","CircleQuestionmark","CircleTick","CircleWarning","ClampOpen","clamp","Clamp","close","Close","ColumnFreeze","ColumnUnfreeze","columns","Columns","ConnectionEnable","ConnectionRevoke","contacts","Contacts","copy","Copy","courses","Courses","credit","Credit","DeletePermanently","delete","Delete","depecriate","Depecriate","developer","Developer","DistributionTemplate","DocumentApprove","DocumentCreateEntry","DocumentCut","DocumentError","DocumentIsolatePage","DocumentMerge","DocumentMove","DocumentPreview","DocumentReceived","DocumentRejectedRequest","DocumentSigned","DocumentSplit","DocumentTime","document","Document","download","Download","drag","Drag","ECopedia","ESignature","EditSimple","edit","Edit","EllipsisHorizontal","EllipsisVertical","EntriesOnAccount","EntriesOpen","EntriesWarning","EntryTypeCustomerInvoice","EntryTypeCustomerPayment","EntryTypeJournalEntry","EntryTypeManualCustomerInvoice","EntryTypeSupplierInvoice","EntryTypeSupplierPayment","EnvelopeApproved","EnvelopeSolid","envelope","Envelope","ExpandView","expenses","Expenses","ExportToExcel","ExportToPdf","export","Export","EyeOff","EyeOn","FilterSolid","filter","Filter","FontSize","GraphSolid","hash","Hash","HeightExtraTall","HeightMedium","HeightShort","HeightTall","home2","Home2","home","Home","id","Id","images","Images","import","Import","InboxEinvoicing","InboxScanning","InboxSmart","inbox","Inbox","info","Info","InventoryMatrix","inventory","Inventory","JournalPro","LayoutBoth","LayoutFirst","LayoutLast","LayoutNone","layout","Layout","LedgerCardCustomerReminder","LedgerCardManualCustomerInvoice","LedgerCardObsoleteStock","LedgerCardOpeningEntry","LedgerCardReservedEntry","LedgerCardShrinkagePilferage","LedgerCardStockAdjustment","LedgerCardTransferredOpeningEntry","LedgerCard","lightbulb","Lightbulb","line","Line","LinkExternal","ListBulleted","ListSearch","list","List","location","Location","LockOpen","lock","Lock","LogOut","log","Log","market","Market","MastercardOs","MatchAmount","MatchEntries","menu","Menu","mileage","Mileage","ModalResize","ModalShrink","MoreSolid","more","More","move","Move","NavigationList","NoteFollowUp","NoteRead","note","Note","NovemberFirst","numbers","Numbers","PartnerApi","PaymentPaid","PaymentUnpaid","period","Period","PersonChange","PersonMinus","PersonPlus","PersonTick","PhoneSolid","phone","Phone","play","Play","PlusMinus","print","Print","ProcessPayment","ProductLedgerCard","profile","Profile","ProjectCards","projects","Projects","QuestionMarkBold","QuestionMark","quicklinks","Quicklinks","RatingBankruptcy","RatingPaymentProblems","reconciled","Reconciled","refresh","Refresh","ReportSolid","report","Report","restore","Restore","RotateLeft","RotateRight","sales","Sales","SearchBold","search","Search","SecureTick","secure","Secure","SettingsSolid","settings","Settings","shortcuts","Shortcuts","ShowAll","ShowLess","ShowMore","ShowTemplate","sliders","Sliders","smartpay","Smartpay","SortBy","StarSolid","star","Star","subscriptions","Subscriptions","SystemEntries","tag","Tag","TemplateOverride","templates","Templates","ThumbBoth","ThumbDownSolid","ThumbDown","ThumbUpSolid","ThumbUp","TickBold","tick","Tick","time","Time","TransferCancel","TransferLocked","transfer","Transfer","undo","Undo","undock","Undock","unreconciled","Unreconciled","warning","Warning","webshop","Webshop","website","Website","WorkflowTemplateBasic","workflow","Workflow","zoom","Zoom"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0PaA,KAAK,GAGd;EACA,iBAAiB,EAAEC,cAAc;EACjC,wBAAwB,EAAEC,oBAA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AS;EACvB,kBAAkB,EAAEC,cAAc;EAClC,YAAY,EAAEC,SAAS;EACvB,gBAAgB,EAAEC,YAAY;EAC9B,UAAU,EAAEC,OAAO;EACnB,WAAW,EAAEC,QAAQ;EACrBC,IAAI,EAAEC,IAAI;EACVC,IAAI,EAAEC,IAAI;EACV,iBAAiB,EAAEC,cAAc;EACjC,iBAAiB,EAAEC,cAAc;EACjCC,QAAQ,EAAEC,QAAQ;EAClBC,IAAI,EAAEC,IAAI;EACVC,MAAM,EAAEC,MAAM;EACdC,YAAY,EAAEC,YAAY;EAC1BC,OAAO,EAAEC,OAAO;EAChBC,OAAO,EAAEC,OAAO;EAChBC,OAAO,EAAEC,OAAO;EAChB,yBAAyB,EAAEC,qBAAqB;EAChDC,QAAQ,EAAEC,QAAQ;EAClBC,IAAI,EAAEC;;;;;"}
|
@@ -48,6 +48,11 @@ const InputWithoutDeprecatedFeatures = /*#__PURE__*/forwardRef(function InputWit
|
|
48
48
|
event.preventDefault();
|
49
49
|
const position = event.key === 'End' ? event.currentTarget.value.length : 0;
|
50
50
|
event.currentTarget.setSelectionRange(position, position);
|
51
|
+
// Necessary for ensuring the cursor is scrolled into view when using Home/End keys on Windows
|
52
|
+
if (internalRef.current) {
|
53
|
+
const scrollPosition = event.key === 'End' ? internalRef.current.scrollWidth : 0;
|
54
|
+
internalRef.current.scrollLeft = scrollPosition;
|
55
|
+
}
|
51
56
|
}
|
52
57
|
}
|
53
58
|
if (typeof onKeyDown === 'function') {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../../../../../../src/components/Input/Input.tsx"],"sourcesContent":["import * as React from 'react';\nimport cn from 'clsx';\nimport { Icon, IconName } from '../Icon/Icon';\nimport { getButtonStateClasses, getInputClasses } from './util';\nimport { useBoundingClientRectListener } from '../../hooks/useBoundingClientRectListener';\nimport { useMergedRef } from '../../hooks/useMergedRef';\nimport { isPressingMetaKey } from '../../utils/keyboard';\n\nexport type InputWithoutDeprecatedFeaturesProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix'> & {\n /** Draws attention to the input by changing its style and making it visually prominent */\n highlighted?: boolean;\n /* Whether the input is in an invalid state */\n invalid?: boolean;\n postfix?: string | JSX.Element;\n prefix?: string | JSX.Element;\n};\n\nconst validSetSelectionRangeTypes = ['text', 'search', 'url', 'tel', 'password'];\n\nconst InputWithoutDeprecatedFeatures = React.forwardRef(function InputWithoutDeprecatedFeatures(\n props: InputWithoutDeprecatedFeaturesProps,\n ref: React.Ref<HTMLInputElement>\n) {\n const { highlighted, invalid, onKeyDown, postfix, prefix, type = 'text', ...attributes } = props;\n const internalRef = useMergedRef<HTMLInputElement>(ref);\n\n // input[type=number] does not support setSelectionRange by default, this adds support\n React.useLayoutEffect(() => {\n if (internalRef.current && type === 'number') {\n (function (fn) {\n internalRef.current.setSelectionRange = function (...args) {\n if (this.type === 'number') {\n this.type = 'text';\n fn.apply(this, args);\n this.type = 'number';\n } else {\n fn.apply(this, args);\n }\n };\n })(internalRef.current.setSelectionRange);\n }\n }, []);\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n // prevent any external keyboard shortcuts from executing while typing single characters in input\n if (event.key.length === 1 && !isPressingMetaKey(event)) {\n event.stopPropagation();\n }\n\n // home and end keys only navigate to the start/end of input value if the input container does not scroll\n // if it has scroll height then the browser reverts to native scrolling behaviour only\n // so we manually override it to ensure _our_ desired behaviour remains intact\n // only the 'text', 'search', 'url', 'tel', 'password' input types support setSelectionRange\n if (validSetSelectionRangeTypes.includes(type)) {\n if (!event.shiftKey && (event.key === 'Home' || event.key === 'End')) {\n event.preventDefault();\n const position = event.key === 'End' ? event.currentTarget.value.length : 0;\n event.currentTarget.setSelectionRange(position, position);\n }\n }\n\n if (typeof onKeyDown === 'function') {\n onKeyDown(event);\n }\n };\n\n const prefixRef = React.useRef<HTMLDivElement>(null);\n const prefixRect = useBoundingClientRectListener(prefixRef);\n const postfixRef = React.useRef<HTMLDivElement>(null);\n const postfixRect = useBoundingClientRectListener(postfixRef, [postfix]);\n\n const className = cn(\n getInputClasses(props),\n {\n 'pl-8': !!prefix,\n 'pr-8': !!postfix,\n },\n attributes.className\n );\n\n const typeAttributes: Partial<React.InputHTMLAttributes<HTMLInputElement>> = {\n type,\n };\n\n if (type === 'number') {\n typeAttributes.onWheelCapture = (event: React.WheelEvent<HTMLInputElement>) => {\n // blur is the only way to prevent scroll, so restore focus if it had it\n if (document.activeElement === event.currentTarget) {\n requestAnimationFrame(() => {\n (event.target as HTMLInputElement).focus();\n });\n }\n // blur the field on scroll - only way to prevent scroll\n event.currentTarget.blur();\n };\n }\n\n return (\n <div className=\"relative inline-flex h-fit w-full\" data-taco=\"input-container\" style={{ opacity: 0.999 }}>\n <input\n {...attributes}\n {...typeAttributes}\n aria-invalid={invalid}\n className={className}\n data-highlighted={highlighted}\n data-taco=\"input\"\n onKeyDown={handleKeyDown}\n ref={internalRef}\n style={{\n paddingLeft: prefixRect ? `${prefixRect.width - 1}px` : undefined,\n paddingRight: postfixRect ? `${postfixRect.width - 1}px` : undefined,\n }}\n />\n {prefix ? <Affix type=\"prefix\" children={prefix} disabled={attributes.disabled} ref={prefixRef} /> : null}\n {postfix ? <Affix type=\"postfix\" children={postfix} disabled={attributes.disabled} ref={postfixRef} /> : null}\n </div>\n );\n});\n\ntype AffixProps = {\n children: string | JSX.Element;\n disabled?: boolean;\n type: 'prefix' | 'postfix';\n};\nconst Affix = React.memo(\n React.forwardRef(function Affix(props: AffixProps, ref: React.Ref<HTMLDivElement>) {\n const { children, disabled, type } = props;\n\n return (\n <div\n className={cn(\n 'group absolute top-0 flex h-full items-center justify-center px-2',\n // icon\n '[&_[data-taco=\"icon\"]]:!h-5 [&_[data-taco=\"icon\"]]:!w-5',\n {\n 'text-grey-300': disabled,\n 'text-grey-700': !disabled,\n 'left-0 [&>button]:!-ml-2': type === 'prefix',\n 'right-0 [&>button]:!-mr-2': type === 'postfix',\n }\n )}\n data-affix-type={type}\n ref={ref}>\n {children}\n </div>\n );\n })\n);\n\nexport type InputProps = InputWithoutDeprecatedFeaturesProps & {\n /** Shows a button within the input field */\n button?: React.ReactElement;\n /** Shows an icon within the input field */\n icon?: IconName | JSX.Element;\n};\n\nexport const Input = React.forwardRef(function LegacyInput(props: InputProps, ref: React.Ref<HTMLInputElement>) {\n const { button, icon, ...attributes } = props;\n\n let postfix;\n\n if (button) {\n const disabled = button.props.disabled || attributes.disabled;\n const buttonClassName = cn(\n 'items-center focus:z-10 flex justify-center rounded-l-none rounded-r h-full focus:rounded focus:outline-none',\n getButtonStateClasses(attributes.invalid, disabled),\n button.props.className\n );\n postfix = React.cloneElement(button, {\n className: buttonClassName,\n disabled,\n });\n } else if (icon) {\n postfix = typeof icon === 'string' ? <Icon name={icon} /> : icon;\n }\n\n return <InputWithoutDeprecatedFeatures {...attributes} postfix={attributes.postfix ?? postfix} ref={ref} />;\n});\n"],"names":["validSetSelectionRangeTypes","InputWithoutDeprecatedFeatures","React","props","ref","highlighted","invalid","onKeyDown","postfix","prefix","type","attributes","internalRef","useMergedRef","current","fn","setSelectionRange","args","apply","handleKeyDown","event","key","length","isPressingMetaKey","stopPropagation","includes","shiftKey","preventDefault","position","currentTarget","value","prefixRef","prefixRect","useBoundingClientRectListener","postfixRef","postfixRect","className","cn","getInputClasses","typeAttributes","onWheelCapture","document","activeElement","requestAnimationFrame","target","focus","blur","style","opacity","paddingLeft","width","undefined","paddingRight","Affix","children","disabled","Input","LegacyInput","button","icon","buttonClassName","getButtonStateClasses","Icon","name","_attributes$postfix"],"mappings":";;;;;;;;AAiBA,MAAMA,2BAA2B,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC;AAEhF,MAAMC,8BAA8B,gBAAGC,UAAgB,CAAC,SAASD,8BAA8BA,CAC3FE,KAA0C,EAC1CC,GAAgC;EAEhC,MAAM;IAAEC,WAAW;IAAEC,OAAO;IAAEC,SAAS;IAAEC,OAAO;IAAEC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UAAU,CAACL,OAAO,EAAEiD,QAAQ,CAAC,EACnDG,MAAM,CAACvD,KAAK,CAACiC,SAAS,CACzB;IACD5B,OAAO,gBAAGN,YAAkB,CAACwD,MAAM,EAAE;MACjCtB,SAAS,EAAEwB,eAAe;MAC1BL;KACH,CAAC;GACL,MAAM,IAAII,IAAI,EAAE;IACbnD,OAAO,GAAG,OAAOmD,IAAI,KAAK,QAAQ,gBAAGzD,cAAC4D,IAAI;MAACC,IAAI,EAAEJ;MAAQ,GAAGA,IAAI;;EAGpE,oBAAOzD,cAACD,8BAA8B,oBAAKU,UAAU;IAAEH,OAAO,GAAAwD,mBAAA,GAAErD,UAAU,CAACH,OAAO,cAAAwD,mBAAA,cAAAA,mBAAA,GAAIxD,OAAO;IAAEJ,GAAG,EAAEA;KAAO;AAC/G,CAAC;;;;"}
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../../../../../../src/components/Input/Input.tsx"],"sourcesContent":["import * as React from 'react';\nimport cn from 'clsx';\nimport { Icon, IconName } from '../Icon/Icon';\nimport { getButtonStateClasses, getInputClasses } from './util';\nimport { useBoundingClientRectListener } from '../../hooks/useBoundingClientRectListener';\nimport { useMergedRef } from '../../hooks/useMergedRef';\nimport { isPressingMetaKey } from '../../utils/keyboard';\n\nexport type InputWithoutDeprecatedFeaturesProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'prefix'> & {\n /** Draws attention to the input by changing its style and making it visually prominent */\n highlighted?: boolean;\n /* Whether the input is in an invalid state */\n invalid?: boolean;\n postfix?: string | JSX.Element;\n prefix?: string | JSX.Element;\n};\n\nconst validSetSelectionRangeTypes = ['text', 'search', 'url', 'tel', 'password'];\n\nconst InputWithoutDeprecatedFeatures = React.forwardRef(function InputWithoutDeprecatedFeatures(\n props: InputWithoutDeprecatedFeaturesProps,\n ref: React.Ref<HTMLInputElement>\n) {\n const { highlighted, invalid, onKeyDown, postfix, prefix, type = 'text', ...attributes } = props;\n const internalRef = useMergedRef<HTMLInputElement>(ref);\n\n // input[type=number] does not support setSelectionRange by default, this adds support\n React.useLayoutEffect(() => {\n if (internalRef.current && type === 'number') {\n (function (fn) {\n internalRef.current.setSelectionRange = function (...args) {\n if (this.type === 'number') {\n this.type = 'text';\n fn.apply(this, args);\n this.type = 'number';\n } else {\n fn.apply(this, args);\n }\n };\n })(internalRef.current.setSelectionRange);\n }\n }, []);\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLInputElement>) => {\n // prevent any external keyboard shortcuts from executing while typing single characters in input\n if (event.key.length === 1 && !isPressingMetaKey(event)) {\n event.stopPropagation();\n }\n\n // home and end keys only navigate to the start/end of input value if the input container does not scroll\n // if it has scroll height then the browser reverts to native scrolling behaviour only\n // so we manually override it to ensure _our_ desired behaviour remains intact\n // only the 'text', 'search', 'url', 'tel', 'password' input types support setSelectionRange\n if (validSetSelectionRangeTypes.includes(type)) {\n if (!event.shiftKey && (event.key === 'Home' || event.key === 'End')) {\n event.preventDefault();\n const position = event.key === 'End' ? event.currentTarget.value.length : 0;\n event.currentTarget.setSelectionRange(position, position);\n\n // Necessary for ensuring the cursor is scrolled into view when using Home/End keys on Windows\n if (internalRef.current) {\n const scrollPosition = event.key === 'End' ? internalRef.current.scrollWidth : 0;\n internalRef.current.scrollLeft = scrollPosition;\n }\n }\n }\n\n if (typeof onKeyDown === 'function') {\n onKeyDown(event);\n }\n };\n\n const prefixRef = React.useRef<HTMLDivElement>(null);\n const prefixRect = useBoundingClientRectListener(prefixRef);\n const postfixRef = React.useRef<HTMLDivElement>(null);\n const postfixRect = useBoundingClientRectListener(postfixRef, [postfix]);\n\n const className = cn(\n getInputClasses(props),\n {\n 'pl-8': !!prefix,\n 'pr-8': !!postfix,\n },\n attributes.className\n );\n\n const typeAttributes: Partial<React.InputHTMLAttributes<HTMLInputElement>> = {\n type,\n };\n\n if (type === 'number') {\n typeAttributes.onWheelCapture = (event: React.WheelEvent<HTMLInputElement>) => {\n // blur is the only way to prevent scroll, so restore focus if it had it\n if (document.activeElement === event.currentTarget) {\n requestAnimationFrame(() => {\n (event.target as HTMLInputElement).focus();\n });\n }\n // blur the field on scroll - only way to prevent scroll\n event.currentTarget.blur();\n };\n }\n\n return (\n <div className=\"relative inline-flex h-fit w-full\" data-taco=\"input-container\" style={{ opacity: 0.999 }}>\n <input\n {...attributes}\n {...typeAttributes}\n aria-invalid={invalid}\n className={className}\n data-highlighted={highlighted}\n data-taco=\"input\"\n onKeyDown={handleKeyDown}\n ref={internalRef}\n style={{\n paddingLeft: prefixRect ? `${prefixRect.width - 1}px` : undefined,\n paddingRight: postfixRect ? `${postfixRect.width - 1}px` : undefined,\n }}\n />\n {prefix ? <Affix type=\"prefix\" children={prefix} disabled={attributes.disabled} ref={prefixRef} /> : null}\n {postfix ? <Affix type=\"postfix\" children={postfix} disabled={attributes.disabled} ref={postfixRef} /> : null}\n </div>\n );\n});\n\ntype AffixProps = {\n children: string | JSX.Element;\n disabled?: boolean;\n type: 'prefix' | 'postfix';\n};\nconst Affix = React.memo(\n React.forwardRef(function Affix(props: AffixProps, ref: React.Ref<HTMLDivElement>) {\n const { children, disabled, type } = props;\n\n return (\n <div\n className={cn(\n 'group absolute top-0 flex h-full items-center justify-center px-2',\n // icon\n '[&_[data-taco=\"icon\"]]:!h-5 [&_[data-taco=\"icon\"]]:!w-5',\n {\n 'text-grey-300': disabled,\n 'text-grey-700': !disabled,\n 'left-0 [&>button]:!-ml-2': type === 'prefix',\n 'right-0 [&>button]:!-mr-2': type === 'postfix',\n }\n )}\n data-affix-type={type}\n ref={ref}>\n {children}\n </div>\n );\n })\n);\n\nexport type InputProps = InputWithoutDeprecatedFeaturesProps & {\n /** Shows a button within the input field */\n button?: React.ReactElement;\n /** Shows an icon within the input field */\n icon?: IconName | JSX.Element;\n};\n\nexport const Input = React.forwardRef(function LegacyInput(props: InputProps, ref: React.Ref<HTMLInputElement>) {\n const { button, icon, ...attributes } = props;\n\n let postfix;\n\n if (button) {\n const disabled = button.props.disabled || attributes.disabled;\n const buttonClassName = cn(\n 'items-center focus:z-10 flex justify-center rounded-l-none rounded-r h-full focus:rounded focus:outline-none',\n getButtonStateClasses(attributes.invalid, disabled),\n button.props.className\n );\n postfix = React.cloneElement(button, {\n className: buttonClassName,\n disabled,\n });\n } else if (icon) {\n postfix = typeof icon === 'string' ? <Icon name={icon} /> : icon;\n }\n\n return <InputWithoutDeprecatedFeatures {...attributes} postfix={attributes.postfix ?? postfix} ref={ref} />;\n});\n"],"names":["validSetSelectionRangeTypes","InputWithoutDeprecatedFeatures","React","props","ref","highlighted","invalid","onKeyDown","postfix","prefix","type","attributes","internalRef","useMergedRef","current","fn","setSelectionRange","args","apply","handleKeyDown","event","key","length","isPressingMetaKey","stopPropagation","includes","shiftKey","preventDefault","position","currentTarget","value","scrollPosition","scrollWidth","scrollLeft","prefixRef","prefixRect","useBoundingClientRectListener","postfixRef","postfixRect","className","cn","getInputClasses","typeAttributes","onWheelCapture","document","activeElement","requestAnimationFrame","target","focus","blur","style","opacity","paddingLeft","width","undefined","paddingRight","Affix","children","disabled","Input","LegacyInput","button","icon","buttonClassName","getButtonStateClasses","Icon","name","_attributes$postfix"],"mappings":";;;;;;;;AAiBA,MAAMA,2BAA2B,GAAG,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,UAAU,CAAC;AAEhF,MAAMC,8BAA8B,gBAAGC,UAAgB,CAAC,SAASD,8BAA8BA,CAC3FE,KAA0C,EAC1CC,GAAgC;EAEhC,MAAM;IAAEC,WAAW;IAAEC,OAAO;IAAEC,SAAS;IAAEC,OAAO;IAAEC,MAAM;IAAEC,IAAI,GAAG,MAAM;IAAE,GAAGC;GAAY,GAAGR,KAAK;EAChG,MAAMS,WAAW,GAAGC,YAAY,CAAmBT,GAAG,CAAC;;EAGvDF,eAAqB,CAAC;IAClB,IAAIU,WAAW,CAACE,OAAO,IAAIJ,IAAI,KAAK,QAAQ,EAAE;MAC1C,CAAC,UAAUK,EAAE;QACTH,WAAW,CAACE,OAAO,CAACE,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CAAC1D,KAAK,CAACoC,SAAS,CACzB;IACD/B,OAAO,gBAAGN,YAAkB,CAAC2D,MAAM,EAAE;MACjCtB,SAAS,EAAEwB,eAAe;MAC1BL;KACH,CAAC;GACL,MAAM,IAAII,IAAI,EAAE;IACbtD,OAAO,GAAG,OAAOsD,IAAI,KAAK,QAAQ,gBAAG5D,cAAC+D,IAAI;MAACC,IAAI,EAAEJ;MAAQ,GAAGA,IAAI;;EAGpE,oBAAO5D,cAACD,8BAA8B,oBAAKU,UAAU;IAAEH,OAAO,GAAA2D,mBAAA,GAAExD,UAAU,CAACH,OAAO,cAAA2D,mBAAA,cAAAA,mBAAA,GAAI3D,OAAO;IAAEJ,GAAG,EAAEA;KAAO;AAC/G,CAAC;;;;"}
|
@@ -7,6 +7,7 @@ import { Switch as Switch$1 } from '../../Switch/Switch.js';
|
|
7
7
|
const ToggleItem = /*#__PURE__*/React__default.forwardRef(function Toggle(props, ref) {
|
8
8
|
const {
|
9
9
|
controlRef,
|
10
|
+
onToggle,
|
10
11
|
...attributes
|
11
12
|
} = props;
|
12
13
|
function handleClick(event) {
|
@@ -17,25 +18,23 @@ const ToggleItem = /*#__PURE__*/React__default.forwardRef(function Toggle(props,
|
|
17
18
|
if (event.isDefaultPrevented()) {
|
18
19
|
return;
|
19
20
|
}
|
20
|
-
// If event target is not a control
|
21
|
-
if (event.target !== controlRef.current
|
22
|
-
|
23
|
-
(_controlRef$current2 = controlRef.current) === null || _controlRef$current2 === void 0 ? void 0 : _controlRef$current2.click();
|
21
|
+
// If event target is not a control and not an element inside the control, then trigger click of the control
|
22
|
+
if (event.target !== controlRef.current && !((_controlRef$current = controlRef.current) !== null && _controlRef$current !== void 0 && _controlRef$current.contains(event.target))) {
|
23
|
+
onToggle();
|
24
24
|
return;
|
25
25
|
}
|
26
26
|
}
|
27
27
|
function handleKeyDown(event) {
|
28
|
-
var _controlRef$
|
28
|
+
var _controlRef$current2;
|
29
29
|
if (typeof props.onKeyDown === 'function') {
|
30
30
|
props.onKeyDown(event);
|
31
31
|
}
|
32
32
|
if (event.isDefaultPrevented()) {
|
33
33
|
return;
|
34
34
|
}
|
35
|
-
// If event target is not a control
|
36
|
-
if ((event.key === 'Enter' || event.key === ' ') &&
|
37
|
-
|
38
|
-
(_controlRef$current4 = controlRef.current) === null || _controlRef$current4 === void 0 ? void 0 : _controlRef$current4.click();
|
35
|
+
// If event target is not a control and not an element inside the control, then send appropriate "activate" keyboard shortcuts to the control as a click
|
36
|
+
if ((event.key === 'Enter' || event.key === ' ') && event.target !== controlRef.current && !((_controlRef$current2 = controlRef.current) !== null && _controlRef$current2 !== void 0 && _controlRef$current2.contains(event.target))) {
|
37
|
+
onToggle();
|
39
38
|
return;
|
40
39
|
}
|
41
40
|
}
|
@@ -49,44 +48,56 @@ const ToggleItem = /*#__PURE__*/React__default.forwardRef(function Toggle(props,
|
|
49
48
|
});
|
50
49
|
const Switch = /*#__PURE__*/React__default.forwardRef(function Switch(props, ref) {
|
51
50
|
const {
|
52
|
-
checked,
|
51
|
+
checked: externalChecked,
|
53
52
|
onChange,
|
54
53
|
...attributes
|
55
54
|
} = props;
|
55
|
+
const [checked, setChecked] = React__default.useState(externalChecked);
|
56
56
|
const switchRef = React__default.useRef(null);
|
57
|
+
const toggle = React__default.useCallback(() => {
|
58
|
+
setChecked(!checked);
|
59
|
+
onChange(!checked);
|
60
|
+
}, [checked, onChange]);
|
57
61
|
const control = /*#__PURE__*/React__default.createElement(Switch$1, {
|
58
62
|
checked: checked,
|
59
63
|
className: "group-hover/toggle:[&[aria-checked=false]]:bg-grey-700 group-hover/toggle:[&[aria-checked=true]]:bg-blue-700",
|
60
64
|
disabled: props.disabled,
|
61
|
-
onChange:
|
65
|
+
onChange: toggle,
|
62
66
|
ref: switchRef,
|
63
67
|
tabIndex: -1
|
64
68
|
});
|
65
69
|
return /*#__PURE__*/React__default.createElement(ToggleItem, Object.assign({}, attributes, {
|
66
70
|
control: control,
|
67
71
|
controlRef: switchRef,
|
68
|
-
ref: ref
|
72
|
+
ref: ref,
|
73
|
+
onToggle: toggle
|
69
74
|
}));
|
70
75
|
});
|
71
76
|
const Checkbox = /*#__PURE__*/React__default.forwardRef(function Switch(props, ref) {
|
72
77
|
const {
|
73
|
-
checked,
|
78
|
+
checked: externalChecked,
|
74
79
|
onChange,
|
75
80
|
...attributes
|
76
81
|
} = props;
|
82
|
+
const [checked, setChecked] = React__default.useState(externalChecked);
|
77
83
|
const checkboxRef = React__default.useRef(null);
|
84
|
+
const toggle = React__default.useCallback(() => {
|
85
|
+
setChecked(!checked);
|
86
|
+
onChange(!checked);
|
87
|
+
}, [checked, onChange]);
|
78
88
|
const control = /*#__PURE__*/React__default.createElement(Checkbox$1, {
|
79
89
|
checked: checked,
|
80
90
|
className: "group-hover/toggle:[&[aria-checked=false]]:border-grey-700 group-hover/toggle:[&[aria-checked=true]]:border-blue-700 group-hover/checkbox:[&[aria-checked=true]]:bg-blue-700",
|
81
91
|
disabled: props.disabled,
|
82
|
-
onChange:
|
92
|
+
onChange: toggle,
|
83
93
|
ref: checkboxRef,
|
84
94
|
tabIndex: -1
|
85
95
|
});
|
86
96
|
return /*#__PURE__*/React__default.createElement(ToggleItem, Object.assign({}, attributes, {
|
87
97
|
control: control,
|
88
98
|
controlRef: checkboxRef,
|
89
|
-
ref: ref
|
99
|
+
ref: ref,
|
100
|
+
onToggle: toggle
|
90
101
|
}));
|
91
102
|
});
|
92
103
|
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Toggle.js","sources":["../../../../../../../../src/components/List/components/Toggle.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { ControlledSwitchProps, Switch as TacoSwitch } from '../../Switch/Switch';\nimport { ControlledCheckboxProps, Checkbox as TacoCheckbox } from '../../Checkbox/Checkbox';\nimport { Item, ComposableListItemProps } from './Item';\n\ntype ToggleProps = ComposableListItemProps<'div'> & {\n control: JSX.Element;\n controlRef: React.RefObject<HTMLButtonElement>;\n};\n\nconst ToggleItem = React.forwardRef<HTMLDivElement, ToggleProps>(function Toggle(props, ref) {\n const { controlRef, ...attributes } = props;\n\n function handleClick(event: React.MouseEvent<HTMLDivElement>) {\n if (typeof props.onClick === 'function') {\n props.onClick(event);\n }\n\n if (event.isDefaultPrevented()) {\n return;\n }\n\n // If event target is not a control
|
1
|
+
{"version":3,"file":"Toggle.js","sources":["../../../../../../../../src/components/List/components/Toggle.tsx"],"sourcesContent":["import React from 'react';\nimport cn from 'clsx';\nimport { ControlledSwitchProps, Switch as TacoSwitch } from '../../Switch/Switch';\nimport { ControlledCheckboxProps, Checkbox as TacoCheckbox } from '../../Checkbox/Checkbox';\nimport { Item, ComposableListItemProps } from './Item';\n\ntype ToggleProps = ComposableListItemProps<'div'> & {\n control: JSX.Element;\n controlRef: React.RefObject<HTMLButtonElement>;\n onToggle: () => void;\n};\n\nconst ToggleItem = React.forwardRef<HTMLDivElement, ToggleProps>(function Toggle(props, ref) {\n const { controlRef, onToggle, ...attributes } = props;\n\n function handleClick(event: React.MouseEvent<HTMLDivElement>) {\n if (typeof props.onClick === 'function') {\n props.onClick(event);\n }\n\n if (event.isDefaultPrevented()) {\n return;\n }\n\n // If event target is not a control and not an element inside the control, then trigger click of the control\n if (event.target !== controlRef.current && !controlRef.current?.contains(event.target as HTMLElement)) {\n onToggle();\n return;\n }\n }\n\n function handleKeyDown(event: React.KeyboardEvent<HTMLDivElement>) {\n if (typeof props.onKeyDown === 'function') {\n props.onKeyDown(event);\n }\n\n if (event.isDefaultPrevented()) {\n return;\n }\n\n // If event target is not a control and not an element inside the control, then send appropriate \"activate\" keyboard shortcuts to the control as a click\n if (\n (event.key === 'Enter' || event.key === ' ') &&\n event.target !== controlRef.current &&\n !controlRef.current?.contains(event.target as HTMLElement)\n ) {\n onToggle();\n return;\n }\n }\n\n const className = cn('group/toggle', props.className);\n return <Item {...attributes} className={className} onClick={handleClick} onKeyDown={handleKeyDown} ref={ref} />;\n});\n\nexport type ListSwitchProps = ComposableListItemProps<'div'> & Omit<ControlledSwitchProps, 'title'>;\n\nexport const Switch = React.forwardRef<HTMLDivElement, ListSwitchProps>(function Switch(props, ref) {\n const { checked: externalChecked, onChange, ...attributes } = props;\n const [checked, setChecked] = React.useState<boolean>(externalChecked);\n const switchRef = React.useRef<HTMLButtonElement>(null);\n\n const toggle = React.useCallback(() => {\n setChecked(!checked);\n onChange(!checked);\n }, [checked, onChange]);\n\n const control = (\n <TacoSwitch\n checked={checked}\n className=\"group-hover/toggle:[&[aria-checked=false]]:bg-grey-700 group-hover/toggle:[&[aria-checked=true]]:bg-blue-700\"\n disabled={props.disabled}\n onChange={toggle}\n ref={switchRef}\n tabIndex={-1}\n />\n );\n\n return <ToggleItem {...attributes} control={control} controlRef={switchRef} ref={ref} onToggle={toggle} />;\n});\n\nexport type ListCheckboxProps = ComposableListItemProps<'div'> & ControlledCheckboxProps;\n\nexport const Checkbox = React.forwardRef<HTMLDivElement, ListSwitchProps>(function Switch(props, ref) {\n const { checked: externalChecked, onChange, ...attributes } = props;\n const [checked, setChecked] = React.useState<boolean>(externalChecked);\n const checkboxRef = React.useRef<HTMLButtonElement>(null);\n\n const toggle = React.useCallback(() => {\n setChecked(!checked);\n onChange(!checked);\n }, [checked, onChange]);\n\n const control = (\n <TacoCheckbox\n checked={checked}\n className=\"group-hover/toggle:[&[aria-checked=false]]:border-grey-700 group-hover/toggle:[&[aria-checked=true]]:border-blue-700 group-hover/checkbox:[&[aria-checked=true]]:bg-blue-700\"\n disabled={props.disabled}\n onChange={toggle}\n ref={checkboxRef}\n tabIndex={-1}\n />\n );\n\n return <ToggleItem {...attributes} control={control} controlRef={checkboxRef} ref={ref} onToggle={toggle} />;\n});\n"],"names":["ToggleItem","React","forwardRef","Toggle","props","ref","controlRef","onToggle","attributes","handleClick","event","onClick","isDefaultPrevented","target","current","_controlRef$current","contains","handleKeyDown","onKeyDown","key","_controlRef$current2","className","cn","Item","Switch","checked","externalChecked","onChange","setChecked","useState","switchRef","useRef","toggle","useCallback","control","TacoS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