@lanaco/lnc-react-ui 4.0.199 → 4.0.201
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Accordion.cjs +5 -5
- package/dist/Accordion.js +45 -56
- package/dist/AccordionDetails.cjs +3 -3
- package/dist/AccordionDetails.js +11 -25
- package/dist/AccordionSummary.cjs +4 -4
- package/dist/AccordionSummary.js +34 -44
- package/dist/ActionsToolbar.cjs +2 -3
- package/dist/ActionsToolbar.js +83 -135
- package/dist/Alert.cjs +10 -10
- package/dist/Alert.js +32 -64
- package/dist/Avatar.cjs +9 -9
- package/dist/Avatar.js +33 -72
- package/dist/Badge.cjs +6 -6
- package/dist/Badge.js +22 -47
- package/dist/BannerSectionCarousel.cjs +4 -4
- package/dist/BannerSectionCarousel.js +51 -542
- package/dist/BlogCardsSponsoredSection.cjs +1 -1
- package/dist/BlogCardsSponsoredSection.js +1 -1
- package/dist/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -14
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +1 -1
- package/dist/BlogListSection.cjs +1 -1
- package/dist/BlogListSection.js +1 -1
- package/dist/BlogsSectionDetailed.cjs +1 -1
- package/dist/BlogsSectionDetailed.js +1 -1
- package/dist/BlogsSectionSimple.cjs +1 -1
- package/dist/BlogsSectionSimple.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +2 -2
- package/dist/Breadcrumbs.cjs +5 -5
- package/dist/Breadcrumbs.js +57 -87
- package/dist/Button.cjs +11 -11
- package/dist/Button.js +126 -173
- package/dist/ButtonGroup.cjs +8 -8
- package/dist/ButtonGroup.js +37 -49
- package/dist/CalorieCalculatorSection.cjs +8 -8
- package/dist/CalorieCalculatorSection.js +90 -97
- package/dist/CheckBoxInput.cjs +1 -1
- package/dist/CheckBoxInput.js +2 -5
- package/dist/Chip.cjs +14 -14
- package/dist/Chip.js +73 -111
- package/dist/ConfirmationForm.cjs +6 -6
- package/dist/ConfirmationForm.js +67 -109
- package/dist/ContactSection.cjs +1 -0
- package/dist/ContactSection.js +1 -0
- package/dist/Content.cjs +1 -1
- package/dist/Content.js +7 -15
- package/dist/{DailyMotion-ByXblnua.js → DailyMotion-BBcJkMo_.js} +1 -1
- package/dist/{DailyMotion-BaFUcQKQ.cjs → DailyMotion-CpZExcrg.cjs} +1 -1
- package/dist/DataView.cjs +1 -1
- package/dist/DataView.js +30 -50
- package/dist/DateInput.cjs +4 -4
- package/dist/DateInput.js +1347 -1383
- package/dist/DecimalInput.cjs +6 -6
- package/dist/DecimalInput.js +210 -263
- package/dist/DecimalInputV2.cjs +23 -23
- package/dist/DecimalInputV2.js +119 -176
- package/dist/DetailedProductsInfinitiveSection.cjs +1 -1
- package/dist/DetailedProductsInfinitiveSection.js +1 -1
- package/dist/DetailedProductsSection.cjs +1 -1
- package/dist/DetailedProductsSection.js +2 -2
- package/dist/DetailsView.cjs +9 -9
- package/dist/DetailsView.js +111 -162
- package/dist/DoubleRangeSlider.cjs +22 -22
- package/dist/DoubleRangeSlider.js +70 -95
- package/dist/DragAndDropFile.cjs +10 -10
- package/dist/DragAndDropFile.js +347 -402
- package/dist/DragDropFiles.cjs +4 -4
- package/dist/DragDropFiles.js +70 -124
- package/dist/Drawer.cjs +5 -5
- package/dist/Drawer.js +97 -135
- package/dist/Dropdown.cjs +1 -1
- package/dist/Dropdown.js +44 -213
- package/dist/DropdownItem.cjs +14 -14
- package/dist/DropdownItem.js +106 -142
- package/dist/DropdownLookup.cjs +1 -1
- package/dist/DropdownLookup.js +61 -242
- package/dist/DropdownMenu.cjs +4 -4
- package/dist/DropdownMenu.js +87 -149
- package/dist/EditableTable.cjs +10 -10
- package/dist/EditableTable.js +165 -331
- package/dist/{Facebook-BCqiOWZO.js → Facebook-BSWPEXjA.js} +1 -1
- package/dist/{Facebook-D9wwecSW.cjs → Facebook-DoKw-XxT.cjs} +1 -1
- package/dist/FaqSection.cjs +3 -3
- package/dist/FaqSection.js +119 -153
- package/dist/FileInput.cjs +7 -7
- package/dist/FileInput.js +66 -94
- package/dist/{FilePlayer-ktaNhf3p.js → FilePlayer-BtGpIWnK.js} +1 -1
- package/dist/{FilePlayer-DB6jnpeC.cjs → FilePlayer-D9az_lc_.cjs} +1 -1
- package/dist/FlexBox.cjs +6 -6
- package/dist/FlexBox.js +28 -63
- package/dist/FlexGrid.cjs +1 -1
- package/dist/FlexGrid.js +27 -67
- package/dist/FlexGridItem.cjs +6 -6
- package/dist/FlexGridItem.js +34 -62
- package/dist/Footer.cjs +1 -1
- package/dist/Footer.js +7 -15
- package/dist/FormField.cjs +7 -7
- package/dist/FormField.js +22 -47
- package/dist/FormView.cjs +6 -6
- package/dist/FormView.js +148 -195
- package/dist/GiftCardsSection.cjs +1 -1
- package/dist/GiftCardsSection.js +1 -1
- package/dist/Grid.cjs +2 -2
- package/dist/Grid.js +40 -65
- package/dist/GridItem.cjs +2 -2
- package/dist/GridItem.js +47 -80
- package/dist/Header.cjs +1 -1
- package/dist/Header.js +7 -15
- package/dist/HelpBannerSection.cjs +3 -3
- package/dist/HelpBannerSection.js +9 -15
- package/dist/Icon.cjs +4 -4
- package/dist/Icon.js +29 -55
- package/dist/IconButton.cjs +9 -9
- package/dist/IconButton.js +89 -127
- package/dist/{Kaltura-CvlN0HDg.js → Kaltura-BDqlEQpd.js} +1 -1
- package/dist/{Kaltura-CCdXLzOa.cjs → Kaltura-CK6JHUZC.cjs} +1 -1
- package/dist/Kanban.cjs +7 -7
- package/dist/Kanban.js +2033 -2098
- package/dist/KanbanActionsToolbar.cjs +4 -5
- package/dist/KanbanActionsToolbar.js +61 -96
- package/dist/KanbanCard-B9V9EjVE.js +137 -0
- package/dist/KanbanCard-DihrKn-I.cjs +30 -0
- package/dist/KanbanCard.cjs +1 -1
- package/dist/KanbanCard.js +2 -3
- package/dist/KanbanFooter.cjs +3 -3
- package/dist/KanbanFooter.js +37 -55
- package/dist/KanbanHeader.cjs +4 -4
- package/dist/KanbanHeader.js +49 -81
- package/dist/KanbanView.cjs +2 -2
- package/dist/KanbanView.js +106 -173
- package/dist/Link.cjs +7 -7
- package/dist/Link.js +20 -37
- package/dist/LocationSearchSection.cjs +1 -1
- package/dist/LocationSearchSection.js +1 -1
- package/dist/MasonryGeneralCardsSection.cjs +1 -1
- package/dist/MasonryGeneralCardsSection.js +1 -1
- package/dist/MenuItem.cjs +13 -13
- package/dist/MenuItem.js +101 -139
- package/dist/{Mixcloud-nG_VyBNt.cjs → Mixcloud-C1Boh2Bm.cjs} +1 -1
- package/dist/{Mixcloud-Bb8MTclI.js → Mixcloud-zAh6j7Ha.js} +1 -1
- package/dist/Modal.cjs +18 -19
- package/dist/Modal.js +131 -166
- package/dist/MultiSelectDropdown.cjs +1 -1
- package/dist/MultiSelectDropdown.js +25 -196
- package/dist/MultiSelectDropdownLookup.cjs +1 -1
- package/dist/MultiSelectDropdownLookup.js +27 -209
- package/dist/{Mux-DfYpGTiP.js → Mux-BGTG_Tvc.js} +1 -1
- package/dist/{Mux-BgB2a8kM.cjs → Mux-C6TwZeaq.cjs} +1 -1
- package/dist/NestedDropdownItem.cjs +3 -3
- package/dist/NestedDropdownItem.js +45 -67
- package/dist/NestedMenuItem.cjs +5 -5
- package/dist/NestedMenuItem.js +51 -78
- package/dist/NotificationContainer.cjs +10 -10
- package/dist/NotificationContainer.js +46 -79
- package/dist/NotificationMessage.cjs +2 -2
- package/dist/NotificationMessage.js +47 -64
- package/dist/NumberInput.cjs +23 -23
- package/dist/NumberInput.js +89 -149
- package/dist/PageLayout.cjs +2 -2
- package/dist/PageLayout.js +20 -28
- package/dist/Pagination.cjs +3 -3
- package/dist/Pagination.js +102 -185
- package/dist/PartnerBrandsSection.cjs +62 -0
- package/dist/PartnerBrandsSection.js +154 -0
- package/dist/PartnerStatsSection.cjs +100 -0
- package/dist/PartnerStatsSection.js +124 -0
- package/dist/PasswordInput.cjs +23 -23
- package/dist/PasswordInput.js +108 -137
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.js +7 -32
- package/dist/PopoverContent.cjs +5 -5
- package/dist/PopoverContent.js +22 -28
- package/dist/PopoverTrigger.cjs +1 -1
- package/dist/PopoverTrigger.js +7 -12
- package/dist/ProductsWithBannerSection.cjs +1 -1
- package/dist/ProductsWithBannerSection.js +1 -1
- package/dist/ProgressBar.cjs +8 -8
- package/dist/ProgressBar.js +32 -59
- package/dist/RadioGroup.cjs +3 -3
- package/dist/RadioGroup.js +41 -72
- package/dist/RadioInput.cjs +28 -28
- package/dist/RadioInput.js +78 -123
- package/dist/RangeSlider.cjs +19 -19
- package/dist/RangeSlider.js +92 -119
- package/dist/ReviewsSection.cjs +13 -13
- package/dist/ReviewsSection.js +81 -101
- package/dist/SalesCampaignsSection.cjs +38 -28
- package/dist/SalesCampaignsSection.js +297 -325
- package/dist/SearchBar.cjs +10 -10
- package/dist/SearchBar.js +168 -188
- package/dist/SearchSection-B94YN_6P.cjs +161 -0
- package/dist/{SearchSection-DDQ_K98T.js → SearchSection-DAaMecR4.js} +337 -359
- package/dist/SearchSection.cjs +1 -1
- package/dist/SearchSection.js +2 -3
- package/dist/Separator.cjs +3 -3
- package/dist/Separator.js +14 -19
- package/dist/Sidebar.cjs +4 -5
- package/dist/Sidebar.js +33 -56
- package/dist/SimpleCategoriesSection.cjs +2 -2
- package/dist/SimpleCategoriesSection.js +2 -2
- package/dist/{SoundCloud-C86xwUG6.cjs → SoundCloud-C6R6E6Zc.cjs} +1 -1
- package/dist/{SoundCloud-DG91z39R.js → SoundCloud-lO8wg_0s.js} +1 -1
- package/dist/Spinner.cjs +18 -18
- package/dist/Spinner.js +37 -54
- package/dist/StatsSection.cjs +6 -6
- package/dist/StatsSection.js +15 -25
- package/dist/{Streamable-4uAnb3WN.cjs → Streamable-DZO95CiT.cjs} +1 -1
- package/dist/{Streamable-BAIWLgyD.js → Streamable-Dwa5ZEK4.js} +1 -1
- package/dist/Surface.cjs +4 -4
- package/dist/Surface.js +19 -34
- package/dist/SwipeableDrawer.cjs +8 -8
- package/dist/SwipeableDrawer.js +84 -136
- package/dist/TabItem.cjs +11 -11
- package/dist/TabItem.js +83 -118
- package/dist/Table.cjs +65 -65
- package/dist/Table.js +786 -1167
- package/dist/TableView.cjs +2 -2
- package/dist/TableView.js +113 -197
- package/dist/Tabs.cjs +4 -4
- package/dist/Tabs.js +41 -60
- package/dist/TextAreaInput.cjs +14 -14
- package/dist/TextAreaInput.js +131 -181
- package/dist/TextInput.cjs +23 -23
- package/dist/TextInput.js +78 -126
- package/dist/ThemeProvider.cjs +5 -5
- package/dist/ThemeProvider.js +35 -39
- package/dist/TimeInput.cjs +7 -7
- package/dist/TimeInput.js +46 -72
- package/dist/Toggle.cjs +20 -20
- package/dist/Toggle.js +78 -109
- package/dist/ToggleSection.cjs +5 -5
- package/dist/ToggleSection.js +48 -55
- package/dist/TreeMenu.cjs +5 -5
- package/dist/TreeMenu.js +43 -67
- package/dist/TreeMenuSeparator.cjs +3 -3
- package/dist/TreeMenuSeparator.js +12 -20
- package/dist/{Twitch-CVAj24ti.cjs → Twitch-B17oKtD0.cjs} +1 -1
- package/dist/{Twitch-DfXeW5Xs.js → Twitch-C73-dwWo.js} +1 -1
- package/dist/UploadedFile.cjs +11 -11
- package/dist/UploadedFile.js +73 -99
- package/dist/{Vidyard-De3pges0.js → Vidyard-B6GdBHsM.js} +1 -1
- package/dist/{Vidyard-DaCcaaH4.cjs → Vidyard-s1MMcaRm.cjs} +1 -1
- package/dist/{Vimeo-8wXdCXGs.cjs → Vimeo-J1l_SU2E.cjs} +1 -1
- package/dist/{Vimeo-N6I2qi_h.js → Vimeo-kzHz4Gco.js} +1 -1
- package/dist/{Wistia-BrUzHQoq.cjs → Wistia-CudQyDHM.cjs} +1 -1
- package/dist/{Wistia-dlV6n6tO.js → Wistia-w4jnqd7y.js} +1 -1
- package/dist/{YouTube-Cfsj4ZaP.cjs → YouTube-BAYKouHS.cjs} +1 -1
- package/dist/{YouTube-DNJxWqRm.js → YouTube-BKyipPZx.js} +1 -1
- package/dist/index-BdKi2ogu.js +39 -0
- package/dist/index-BppfjY8h.js +497 -0
- package/dist/index-CRk3vcd4.cjs +95 -0
- package/dist/index-CX2A-q39.cjs +4 -0
- package/dist/{index-CWALXP1T.js → index-CwMCk9wV.js} +118 -145
- package/dist/index-DeS-oqJB.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +25 -21
- package/dist/{style-CkcozOY6.cjs → style-B4kAj6YU.cjs} +38 -8
- package/dist/{style-Cmlod7oq.js → style-neMbLWE6.js} +42 -11
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +4 -2
- package/vite.config.js +8 -0
- package/dist/KanbanCard-68kSAXL6.js +0 -175
- package/dist/KanbanCard-BDvoqTDS.cjs +0 -30
- package/dist/SearchSection-BcbHP6QF.cjs +0 -161
- package/dist/index-Be-_NM9Q.cjs +0 -4
- package/dist/index-C0LcDEqa.js +0 -47
- package/dist/index-CSNxZFTX.cjs +0 -95
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const
|
|
1
|
+
"use strict";const o=require("react/jsx-runtime"),w=require("react"),f=require("./emotion-styled.browser.esm-BtEseadx.cjs"),j=require("./DropdownMenu.cjs"),C=require("./DropdownItem.cjs"),i=require("./Button.cjs"),a=require("./utils-RnrgDDZP.cjs"),q=require("./ThemeProvider.cjs"),A=f.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
border-radius: 8px;
|
|
@@ -7,13 +7,12 @@
|
|
|
7
7
|
font-weight: 700;
|
|
8
8
|
font-size: 0.875rem;
|
|
9
9
|
color: rgba(15, 23, 42, 100%);
|
|
10
|
-
background-color: ${
|
|
11
|
-
border: ${
|
|
10
|
+
background-color: ${e=>a.getColorRgbaValue(e.theme,"Toolbar",e.color,"enabled","background","backgroundOpacity")};
|
|
11
|
+
border: ${e=>`1px solid ${a.getColorRgbaValue(e.theme,"Toolbar",e.color,"enabled","border","borderOpacity")}`};
|
|
12
12
|
gap: 6px;
|
|
13
13
|
justify-content: space-between;
|
|
14
14
|
& > div {
|
|
15
15
|
display: flex;
|
|
16
16
|
gap: 0.5rem;
|
|
17
17
|
}
|
|
18
|
-
}
|
|
19
|
-
`,a=P.forwardRef((r,d)=>{const{__TYPE__:N="KANBAN_VIEW_ACTIONS_TOOLBAR",showCreate:u=!0,enableCreate:b=!0,createText:i="Create New item",actionsText:y="Actions",actions:s=[],onCreate:T=()=>{},className:m="",style:g={},color:n="primary",size:l="small",...x}=r,{theme:_}=A.useTheme();return t.jsxs(j,{ref:d,theme:_,color:n,className:m,style:g,...x,children:[t.jsx("div",{children:u&&t.jsx(c,{leadingIcon:"plus",btnType:"outline",color:n,size:l,title:i,disabled:!b,onClick:T,text:i})}),(s==null?void 0:s.length)>0&&t.jsx("div",{children:t.jsx(C,{color:n,size:l,control:t.jsx(c,{text:y,btnType:"outline",trailingIcon:"angle-down",color:n,size:l}),children:s==null?void 0:s.map((o,h)=>{if((o==null?void 0:o.show)!=!1)return t.jsx(w,{icon:o.icon,disabled:!o.enable,onClick:o.onAction,children:o.name},h)})})})]})});a.propTypes={__TYPE__:e.PropTypes.string,showCreate:e.PropTypes.bool,enableCreate:e.PropTypes.bool,createText:e.PropTypes.string,actionsText:e.PropTypes.string,actions:e.PropTypes.array,onCreate:e.PropTypes.func,className:e.PropTypes.string,style:e.PropTypes.object,size:e.PropTypes.oneOf(["small","medium","large"]),color:e.PropTypes.oneOf(["primary","secondary","success","danger","warning","information","neutral","gray"])};a.displayName="KANBAN_VIEW_ACTIONS_TOOLBAR";module.exports=a;
|
|
18
|
+
`,d=w.forwardRef((e,c)=>{const{showCreate:u=!0,enableCreate:b=!0,createText:s="Create New item",actionsText:m="Actions",actions:t=[],onCreate:x=()=>{},className:g="",style:p={},color:n="primary",size:l="small",...h}=e,{theme:y}=q.useTheme();return o.jsxs(A,{ref:c,theme:y,color:n,className:g,style:p,...h,children:[o.jsx("div",{children:u&&o.jsx(i,{leadingIcon:"plus",btnType:"outline",color:n,size:l,title:s,disabled:!b,onClick:x,text:s})}),(t==null?void 0:t.length)>0&&o.jsx("div",{children:o.jsx(j,{color:n,size:l,control:o.jsx(i,{text:m,btnType:"outline",trailingIcon:"angle-down",color:n,size:l}),children:t==null?void 0:t.map((r,T)=>{if((r==null?void 0:r.show)!=!1)return o.jsx(C,{icon:r.icon,disabled:!r.enable,onClick:r.onAction,children:r.name},T)})})})]})});d.displayName="KANBAN_VIEW_ACTIONS_TOOLBAR";module.exports=d;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { P as e } from "./index-CblbdqjE.js";
|
|
1
|
+
import { jsxs as y, jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as T } from "react";
|
|
4
3
|
import { s as w } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { b as
|
|
9
|
-
import { useTheme as
|
|
10
|
-
const
|
|
4
|
+
import C from "./DropdownMenu.js";
|
|
5
|
+
import A from "./DropdownItem.js";
|
|
6
|
+
import i from "./Button.js";
|
|
7
|
+
import { b as d } from "./utils-DtEfC-TX.js";
|
|
8
|
+
import { useTheme as N } from "./ThemeProvider.js";
|
|
9
|
+
const k = w.div`
|
|
11
10
|
display: flex;
|
|
12
11
|
align-items: center;
|
|
13
12
|
border-radius: 8px;
|
|
@@ -16,18 +15,18 @@ const I = w.div`
|
|
|
16
15
|
font-weight: 700;
|
|
17
16
|
font-size: 0.875rem;
|
|
18
17
|
color: rgba(15, 23, 42, 100%);
|
|
19
|
-
background-color: ${(
|
|
20
|
-
|
|
18
|
+
background-color: ${(e) => d(
|
|
19
|
+
e.theme,
|
|
21
20
|
"Toolbar",
|
|
22
|
-
|
|
21
|
+
e.color,
|
|
23
22
|
"enabled",
|
|
24
23
|
"background",
|
|
25
24
|
"backgroundOpacity"
|
|
26
25
|
)};
|
|
27
|
-
border: ${(
|
|
28
|
-
|
|
26
|
+
border: ${(e) => `1px solid ${d(
|
|
27
|
+
e.theme,
|
|
29
28
|
"Toolbar",
|
|
30
|
-
|
|
29
|
+
e.color,
|
|
31
30
|
"enabled",
|
|
32
31
|
"border",
|
|
33
32
|
"borderOpacity"
|
|
@@ -38,72 +37,70 @@ const I = w.div`
|
|
|
38
37
|
display: flex;
|
|
39
38
|
gap: 0.5rem;
|
|
40
39
|
}
|
|
41
|
-
|
|
42
|
-
`, d = C((r, c) => {
|
|
40
|
+
`, I = T((e, m) => {
|
|
43
41
|
const {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
actions: t = [],
|
|
42
|
+
showCreate: s = !0,
|
|
43
|
+
enableCreate: p = !0,
|
|
44
|
+
createText: a = "Create New item",
|
|
45
|
+
actionsText: b = "Actions",
|
|
46
|
+
actions: o = [],
|
|
50
47
|
//----------------
|
|
51
|
-
onCreate:
|
|
48
|
+
onCreate: c = () => {
|
|
52
49
|
},
|
|
53
50
|
//-------------------
|
|
54
|
-
className:
|
|
55
|
-
style:
|
|
56
|
-
color:
|
|
57
|
-
size:
|
|
58
|
-
...
|
|
59
|
-
} =
|
|
60
|
-
return /* @__PURE__ */
|
|
61
|
-
|
|
51
|
+
className: f = "",
|
|
52
|
+
style: u = {},
|
|
53
|
+
color: l = "primary",
|
|
54
|
+
size: n = "small",
|
|
55
|
+
...g
|
|
56
|
+
} = e, { theme: x } = N();
|
|
57
|
+
return /* @__PURE__ */ y(
|
|
58
|
+
k,
|
|
62
59
|
{
|
|
63
|
-
ref:
|
|
60
|
+
ref: m,
|
|
64
61
|
theme: x,
|
|
65
|
-
color:
|
|
66
|
-
className:
|
|
67
|
-
style:
|
|
68
|
-
...
|
|
62
|
+
color: l,
|
|
63
|
+
className: f,
|
|
64
|
+
style: u,
|
|
65
|
+
...g,
|
|
69
66
|
children: [
|
|
70
|
-
/* @__PURE__ */
|
|
71
|
-
|
|
67
|
+
/* @__PURE__ */ t("div", { children: s && /* @__PURE__ */ t(
|
|
68
|
+
i,
|
|
72
69
|
{
|
|
73
70
|
leadingIcon: "plus",
|
|
74
71
|
btnType: "outline",
|
|
75
|
-
color:
|
|
76
|
-
size:
|
|
77
|
-
title:
|
|
78
|
-
disabled: !
|
|
79
|
-
onClick:
|
|
80
|
-
text:
|
|
72
|
+
color: l,
|
|
73
|
+
size: n,
|
|
74
|
+
title: a,
|
|
75
|
+
disabled: !p,
|
|
76
|
+
onClick: c,
|
|
77
|
+
text: a
|
|
81
78
|
}
|
|
82
79
|
) }),
|
|
83
|
-
(
|
|
84
|
-
|
|
80
|
+
(o == null ? void 0 : o.length) > 0 && /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
81
|
+
C,
|
|
85
82
|
{
|
|
86
|
-
color:
|
|
87
|
-
size:
|
|
88
|
-
control: /* @__PURE__ */
|
|
89
|
-
|
|
83
|
+
color: l,
|
|
84
|
+
size: n,
|
|
85
|
+
control: /* @__PURE__ */ t(
|
|
86
|
+
i,
|
|
90
87
|
{
|
|
91
|
-
text:
|
|
88
|
+
text: b,
|
|
92
89
|
btnType: "outline",
|
|
93
90
|
trailingIcon: "angle-down",
|
|
94
|
-
color:
|
|
95
|
-
size:
|
|
91
|
+
color: l,
|
|
92
|
+
size: n
|
|
96
93
|
}
|
|
97
94
|
),
|
|
98
|
-
children:
|
|
99
|
-
if ((
|
|
100
|
-
return /* @__PURE__ */
|
|
101
|
-
|
|
95
|
+
children: o == null ? void 0 : o.map((r, h) => {
|
|
96
|
+
if ((r == null ? void 0 : r.show) != !1)
|
|
97
|
+
return /* @__PURE__ */ t(
|
|
98
|
+
A,
|
|
102
99
|
{
|
|
103
|
-
icon:
|
|
104
|
-
disabled: !
|
|
105
|
-
onClick:
|
|
106
|
-
children:
|
|
100
|
+
icon: r.icon,
|
|
101
|
+
disabled: !r.enable,
|
|
102
|
+
onClick: r.onAction,
|
|
103
|
+
children: r.name
|
|
107
104
|
},
|
|
108
105
|
h
|
|
109
106
|
);
|
|
@@ -114,39 +111,7 @@ const I = w.div`
|
|
|
114
111
|
}
|
|
115
112
|
);
|
|
116
113
|
});
|
|
117
|
-
|
|
118
|
-
/**
|
|
119
|
-
* This property determines where the component is rendered.
|
|
120
|
-
* Should not be overridden!
|
|
121
|
-
*/
|
|
122
|
-
__TYPE__: e.string,
|
|
123
|
-
showCreate: e.bool,
|
|
124
|
-
enableCreate: e.bool,
|
|
125
|
-
createText: e.string,
|
|
126
|
-
actionsText: e.string,
|
|
127
|
-
/**
|
|
128
|
-
* Actions that will be shown in toolbar with existing actions
|
|
129
|
-
* actions=[{name: `<string>`, show: `<bool>`, enable: `<bool>`, onAction: `PropTypes.func`}, ...]
|
|
130
|
-
*/
|
|
131
|
-
actions: e.array,
|
|
132
|
-
//-------------------------------------------------------------
|
|
133
|
-
onCreate: e.func,
|
|
134
|
-
//------------------------------------------------------------
|
|
135
|
-
className: e.string,
|
|
136
|
-
style: e.object,
|
|
137
|
-
size: e.oneOf(["small", "medium", "large"]),
|
|
138
|
-
color: e.oneOf([
|
|
139
|
-
"primary",
|
|
140
|
-
"secondary",
|
|
141
|
-
"success",
|
|
142
|
-
"danger",
|
|
143
|
-
"warning",
|
|
144
|
-
"information",
|
|
145
|
-
"neutral",
|
|
146
|
-
"gray"
|
|
147
|
-
])
|
|
148
|
-
};
|
|
149
|
-
d.displayName = "KANBAN_VIEW_ACTIONS_TOOLBAR";
|
|
114
|
+
I.displayName = "KANBAN_VIEW_ACTIONS_TOOLBAR";
|
|
150
115
|
export {
|
|
151
|
-
|
|
116
|
+
I as default
|
|
152
117
|
};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { jsx as o, jsxs as g } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as c, memo as k } from "react";
|
|
3
|
+
import { s as p } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import N from "./Icon.js";
|
|
5
|
+
import z from "./DropdownMenu.js";
|
|
6
|
+
import C from "./DropdownItem.js";
|
|
7
|
+
import { c as _ } from "./index-fN7hCOo3.js";
|
|
8
|
+
import { u as $ } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
9
|
+
const K = "_Action_bw0a9_5", j = {
|
|
10
|
+
Action: K
|
|
11
|
+
}, B = c(
|
|
12
|
+
({ active: r, className: a, cursor: s, style: l, ...t }, n) => /* @__PURE__ */ o(
|
|
13
|
+
"button",
|
|
14
|
+
{
|
|
15
|
+
ref: n,
|
|
16
|
+
...t,
|
|
17
|
+
className: _(j.Action, a),
|
|
18
|
+
tabIndex: 0,
|
|
19
|
+
style: {
|
|
20
|
+
...l,
|
|
21
|
+
cursor: s,
|
|
22
|
+
"--fill": r == null ? void 0 : r.fill,
|
|
23
|
+
"--background": r == null ? void 0 : r.background
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
)
|
|
27
|
+
), H = c((r, a) => /* @__PURE__ */ o(B, { ref: a, cursor: "grab", "data-cypress": "draggable-handle", ...r, children: /* @__PURE__ */ o("svg", { viewBox: "0 0 20 20", width: "12", children: /* @__PURE__ */ o("path", { d: "M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z" }) }) })), I = p.div`
|
|
28
|
+
height: 100%;
|
|
29
|
+
width: 100%;
|
|
30
|
+
padding: ${(r) => `18px 20px 18px ${r.handle == !0 ? "10px" : "20px"}`};
|
|
31
|
+
position: relative;
|
|
32
|
+
word-wrap: break-word;
|
|
33
|
+
white-space: pre-wrap;
|
|
34
|
+
word-break: break-word;
|
|
35
|
+
display: flex;
|
|
36
|
+
gap: 8px;
|
|
37
|
+
& .card-action-lnc {
|
|
38
|
+
position: absolute;
|
|
39
|
+
right: 10px;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
& > .kanban-card-content {
|
|
44
|
+
${(r) => r.clickable && "cursor: pointer;"}
|
|
45
|
+
}
|
|
46
|
+
`, M = p.div`
|
|
47
|
+
display: flex;
|
|
48
|
+
|
|
49
|
+
& > *:first-of-type:not(:last-of-type) {
|
|
50
|
+
opacity: 0;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
& > *:first-of-type:not(:last-of-type):focus-visible {
|
|
54
|
+
opacity: 1;
|
|
55
|
+
}
|
|
56
|
+
`, R = k(
|
|
57
|
+
c(
|
|
58
|
+
({
|
|
59
|
+
containerId: r,
|
|
60
|
+
item: a,
|
|
61
|
+
handle: s = !0,
|
|
62
|
+
handleProps: l,
|
|
63
|
+
actionsMenu: t = !1,
|
|
64
|
+
actions: n = [],
|
|
65
|
+
onDetails: i,
|
|
66
|
+
color: d = "primary",
|
|
67
|
+
size: m = "small",
|
|
68
|
+
className: f = "",
|
|
69
|
+
style: b = {},
|
|
70
|
+
children: h,
|
|
71
|
+
...u
|
|
72
|
+
}, A) => {
|
|
73
|
+
const w = $();
|
|
74
|
+
return /* @__PURE__ */ g(
|
|
75
|
+
I,
|
|
76
|
+
{
|
|
77
|
+
ref: A,
|
|
78
|
+
handle: s,
|
|
79
|
+
theme: w,
|
|
80
|
+
className: f,
|
|
81
|
+
style: b,
|
|
82
|
+
clickable: !!i,
|
|
83
|
+
...u,
|
|
84
|
+
children: [
|
|
85
|
+
s && /* @__PURE__ */ o(M, { className: "Actions", children: /* @__PURE__ */ o(H, { ...l }) }),
|
|
86
|
+
t && /* @__PURE__ */ o(
|
|
87
|
+
z,
|
|
88
|
+
{
|
|
89
|
+
className: "card-action-lnc",
|
|
90
|
+
horizontalAlignment: "right",
|
|
91
|
+
verticalAlignment: "bottom",
|
|
92
|
+
color: d,
|
|
93
|
+
size: m,
|
|
94
|
+
control: /* @__PURE__ */ o(
|
|
95
|
+
N,
|
|
96
|
+
{
|
|
97
|
+
color: "neutral",
|
|
98
|
+
className: "card-action-lnc",
|
|
99
|
+
icon: "ellipsis-v"
|
|
100
|
+
}
|
|
101
|
+
),
|
|
102
|
+
children: n == null ? void 0 : n.map((e, y) => {
|
|
103
|
+
if ((e == null ? void 0 : e.show) != !1)
|
|
104
|
+
return /* @__PURE__ */ o(
|
|
105
|
+
C,
|
|
106
|
+
{
|
|
107
|
+
icon: e.icon,
|
|
108
|
+
disabled: e.enable == !1,
|
|
109
|
+
onClick: (x) => e.onAction(x, a, r),
|
|
110
|
+
children: e.name
|
|
111
|
+
},
|
|
112
|
+
y
|
|
113
|
+
);
|
|
114
|
+
})
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ o(
|
|
118
|
+
"div",
|
|
119
|
+
{
|
|
120
|
+
className: "kanban-card-content-lnc",
|
|
121
|
+
onClick: (e) => {
|
|
122
|
+
i && i(e, a, r);
|
|
123
|
+
},
|
|
124
|
+
children: h
|
|
125
|
+
}
|
|
126
|
+
)
|
|
127
|
+
]
|
|
128
|
+
}
|
|
129
|
+
);
|
|
130
|
+
}
|
|
131
|
+
)
|
|
132
|
+
);
|
|
133
|
+
R.displayName = "KANBAN_CARD";
|
|
134
|
+
export {
|
|
135
|
+
H,
|
|
136
|
+
R as K
|
|
137
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),a=require("react"),d=require("./emotion-styled.browser.esm-BtEseadx.cjs"),k=require("./Icon.cjs"),N=require("./DropdownMenu.cjs"),q=require("./DropdownItem.cjs"),_=require("./index-Bg5OOQN0.cjs"),z=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),C="_Action_bw0a9_5",R={Action:C},$=a.forwardRef(({active:e,className:n,cursor:t,style:l,...c},o)=>r.jsx("button",{ref:o,...c,className:_.classNames(R.Action,n),tabIndex:0,style:{...l,cursor:t,"--fill":e==null?void 0:e.fill,"--background":e==null?void 0:e.background}})),p=a.forwardRef((e,n)=>r.jsx($,{ref:n,cursor:"grab","data-cypress":"draggable-handle",...e,children:r.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:r.jsx("path",{d:"M7 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 2zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 7 14zm6-8a2 2 0 1 0-.001-4.001A2 2 0 0 0 13 6zm0 2a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 8zm0 6a2 2 0 1 0 .001 4.001A2 2 0 0 0 13 14z"})})})),K=d.styled.div`
|
|
2
|
+
height: 100%;
|
|
3
|
+
width: 100%;
|
|
4
|
+
padding: ${e=>`18px 20px 18px ${e.handle==!0?"10px":"20px"}`};
|
|
5
|
+
position: relative;
|
|
6
|
+
word-wrap: break-word;
|
|
7
|
+
white-space: pre-wrap;
|
|
8
|
+
word-break: break-word;
|
|
9
|
+
display: flex;
|
|
10
|
+
gap: 8px;
|
|
11
|
+
& .card-action-lnc {
|
|
12
|
+
position: absolute;
|
|
13
|
+
right: 10px;
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
& > .kanban-card-content {
|
|
18
|
+
${e=>e.clickable&&"cursor: pointer;"}
|
|
19
|
+
}
|
|
20
|
+
`,B=d.styled.div`
|
|
21
|
+
display: flex;
|
|
22
|
+
|
|
23
|
+
& > *:first-of-type:not(:last-of-type) {
|
|
24
|
+
opacity: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
& > *:first-of-type:not(:last-of-type):focus-visible {
|
|
28
|
+
opacity: 1;
|
|
29
|
+
}
|
|
30
|
+
`,m=a.memo(a.forwardRef(({containerId:e,item:n,handle:t=!0,handleProps:l,actionsMenu:c=!1,actions:o=[],onDetails:i,color:u="primary",size:x="small",className:b="",style:f={},children:h,...w},A)=>{const y=z.useTheme();return r.jsxs(K,{ref:A,handle:t,theme:y,className:b,style:f,clickable:!!i,...w,children:[t&&r.jsx(B,{className:"Actions",children:r.jsx(p,{...l})}),c&&r.jsx(N,{className:"card-action-lnc",horizontalAlignment:"right",verticalAlignment:"bottom",color:u,size:x,control:r.jsx(k,{color:"neutral",className:"card-action-lnc",icon:"ellipsis-v"}),children:o==null?void 0:o.map((s,g)=>{if((s==null?void 0:s.show)!=!1)return r.jsx(q,{icon:s.icon,disabled:s.enable==!1,onClick:j=>s.onAction(j,n,e),children:s.name},g)})}),r.jsx("div",{className:"kanban-card-content-lnc",onClick:s=>{i&&i(s,n,e)},children:h})]})}));m.displayName="KANBAN_CARD";exports.Handle=p;exports.KanbanCard=m;
|
package/dist/KanbanCard.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime");require("react");require("./emotion-styled.browser.esm-BtEseadx.cjs");require("./
|
|
1
|
+
"use strict";require("react/jsx-runtime");require("react");require("./emotion-styled.browser.esm-BtEseadx.cjs");require("./Icon.cjs");require("./DropdownMenu.cjs");require("./DropdownItem.cjs");const r=require("./KanbanCard-DihrKn-I.cjs");require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs");module.exports=r.KanbanCard;
|
package/dist/KanbanCard.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import "./index-CblbdqjE.js";
|
|
5
4
|
import "./Icon.js";
|
|
6
5
|
import "./DropdownMenu.js";
|
|
7
6
|
import "./DropdownItem.js";
|
|
8
|
-
import { K as
|
|
7
|
+
import { K as d } from "./KanbanCard-B9V9EjVE.js";
|
|
9
8
|
import "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
d as default
|
|
12
11
|
};
|
package/dist/KanbanFooter.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
font-family: ${
|
|
1
|
+
"use strict";const r=require("react/jsx-runtime"),s=require("react"),h=require("./emotion-styled.browser.esm-BtEseadx.cjs"),i=require("./IconButton.cjs"),f=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),w=h.styled.div`
|
|
2
|
+
font-family: ${e=>{var t,o;return(o=(t=e.theme)==null?void 0:t.typography)==null?void 0:o.fontFamily}};
|
|
3
3
|
padding: 5px 8px;
|
|
4
4
|
margin-top: auto;
|
|
5
|
-
`,
|
|
5
|
+
`,c=s.memo(s.forwardRef(({id:e,showAddNewCard:t=!1,showLoadMoreCards:o=!1,onAddNewCard:m=()=>{},onLoadMoreCards:l=()=>{},className:a="",style:u={},children:d,...p},y)=>{const x=f.useTheme();return r.jsxs(w,{ref:y,theme:x,className:a,style:u,...p,children:[d,o&&r.jsx(i,{onClick:n=>l(n,e),icon:"chevron-circle-down",btnType:"outline",style:{maxWidth:"unset",width:"100%",marginBottom:"8px"}}),t&&r.jsx(i,{onClick:n=>m(n,e),icon:"plus-circle",btnType:"outline",style:{maxWidth:"unset",width:"100%",marginBottom:"8px"}})]})}));c.displayName="KANBAN_FOOTER";module.exports=c;
|
package/dist/KanbanFooter.js
CHANGED
|
@@ -1,58 +1,54 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { s as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return (e = (t = a.theme) == null ? void 0 : t.typography) == null ? void 0 : e.fontFamily;
|
|
1
|
+
import { jsxs as u, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import { memo as y, forwardRef as h } from "react";
|
|
3
|
+
import { s as x } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
+
import m from "./IconButton.js";
|
|
5
|
+
import { u as g } from "./emotion-element-f0de968e.browser.esm-CkCiQliQ.js";
|
|
6
|
+
const w = x.div`
|
|
7
|
+
font-family: ${(t) => {
|
|
8
|
+
var o, e;
|
|
9
|
+
return (e = (o = t.theme) == null ? void 0 : o.typography) == null ? void 0 : e.fontFamily;
|
|
11
10
|
}};
|
|
12
11
|
padding: 5px 8px;
|
|
13
12
|
margin-top: auto;
|
|
14
|
-
`,
|
|
15
|
-
|
|
13
|
+
`, B = y(
|
|
14
|
+
h(
|
|
16
15
|
({
|
|
17
|
-
__TYPE__: a = "KANBAN_FOOTER",
|
|
18
16
|
id: t,
|
|
19
|
-
showAddNewCard:
|
|
20
|
-
showLoadMoreCards:
|
|
21
|
-
|
|
22
|
-
onAddNewCard: m = () => {
|
|
17
|
+
showAddNewCard: o = !1,
|
|
18
|
+
showLoadMoreCards: e = !1,
|
|
19
|
+
onAddNewCard: r = () => {
|
|
23
20
|
},
|
|
24
|
-
onLoadMoreCards:
|
|
21
|
+
onLoadMoreCards: a = () => {
|
|
25
22
|
},
|
|
26
|
-
className:
|
|
27
|
-
style:
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
g,
|
|
23
|
+
className: s = "",
|
|
24
|
+
style: l = {},
|
|
25
|
+
children: p,
|
|
26
|
+
...c
|
|
27
|
+
}, d) => {
|
|
28
|
+
const f = g();
|
|
29
|
+
return /* @__PURE__ */ u(
|
|
30
|
+
w,
|
|
35
31
|
{
|
|
36
|
-
ref:
|
|
37
|
-
theme:
|
|
38
|
-
className:
|
|
39
|
-
style:
|
|
40
|
-
...
|
|
32
|
+
ref: d,
|
|
33
|
+
theme: f,
|
|
34
|
+
className: s,
|
|
35
|
+
style: l,
|
|
36
|
+
...c,
|
|
41
37
|
children: [
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
38
|
+
p,
|
|
39
|
+
e && /* @__PURE__ */ i(
|
|
40
|
+
m,
|
|
45
41
|
{
|
|
46
|
-
onClick: (
|
|
42
|
+
onClick: (n) => a(n, t),
|
|
47
43
|
icon: "chevron-circle-down",
|
|
48
44
|
btnType: "outline",
|
|
49
45
|
style: { maxWidth: "unset", width: "100%", marginBottom: "8px" }
|
|
50
46
|
}
|
|
51
47
|
),
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
o && /* @__PURE__ */ i(
|
|
49
|
+
m,
|
|
54
50
|
{
|
|
55
|
-
onClick: (
|
|
51
|
+
onClick: (n) => r(n, t),
|
|
56
52
|
icon: "plus-circle",
|
|
57
53
|
btnType: "outline",
|
|
58
54
|
style: { maxWidth: "unset", width: "100%", marginBottom: "8px" }
|
|
@@ -64,21 +60,7 @@ const g = N.div`
|
|
|
64
60
|
}
|
|
65
61
|
)
|
|
66
62
|
);
|
|
67
|
-
|
|
68
|
-
__TYPE__: o.string,
|
|
69
|
-
id: o.oneOfType([o.string, o.number]),
|
|
70
|
-
//---------------------------------------------------------
|
|
71
|
-
showLoadMoreCards: o.bool,
|
|
72
|
-
showAddNewCard: o.bool,
|
|
73
|
-
addNewCardText: o.string,
|
|
74
|
-
//---------------------------------------------------------
|
|
75
|
-
onAddNewCard: o.func,
|
|
76
|
-
onLoadMoreCards: o.func,
|
|
77
|
-
//---------------------------------------------------------
|
|
78
|
-
className: o.string,
|
|
79
|
-
style: o.object
|
|
80
|
-
};
|
|
81
|
-
d.displayName = "KANBAN_FOOTER";
|
|
63
|
+
B.displayName = "KANBAN_FOOTER";
|
|
82
64
|
export {
|
|
83
|
-
|
|
65
|
+
B as default
|
|
84
66
|
};
|
package/dist/KanbanHeader.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";const
|
|
2
|
-
font-family: ${
|
|
1
|
+
"use strict";const n=require("react/jsx-runtime"),i=require("react"),w=require("./emotion-styled.browser.esm-BtEseadx.cjs"),x=require("./DropdownMenu.cjs"),j=require("./DropdownItem.cjs"),A=require("./Icon.cjs"),g=require("./emotion-element-f0de968e.browser.esm-B7k6i6lC.cjs"),N=w.styled.div`
|
|
2
|
+
font-family: ${r=>{var o,s;return(s=(o=r.theme)==null?void 0:o.typography)==null?void 0:s.fontFamily}};
|
|
3
3
|
position: relative;
|
|
4
4
|
width: 100%;
|
|
5
5
|
& .column-action-lnc {
|
|
@@ -10,6 +10,6 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
& > span {
|
|
13
|
-
${
|
|
13
|
+
${r=>r.clickable&&"cursor: pointer;"}
|
|
14
14
|
}
|
|
15
|
-
`,
|
|
15
|
+
`,c=i.memo(i.forwardRef(({item:r,column:o,actionsMenu:s=!1,actions:l=[],onDetails:t=()=>{},color:m="primary",size:a="small",className:u="",style:d={},children:p,...h},f)=>{const b=g.useTheme();return n.jsxs(N,{ref:f,theme:b,className:u,style:d,clickable:!!t,...h,children:[n.jsx("span",{onClick:e=>t(e,r,o),children:p}),s&&n.jsx(x,{className:"column-action-lnc",horizontalAlignment:"right",verticalAlignment:"bottom",color:m,size:a,control:n.jsx(A,{color:"neutral",className:"column-action-lnc",icon:"ellipsis-v"}),children:l==null?void 0:l.map((e,y)=>{if((e==null?void 0:e.show)!=!1)return n.jsx(j,{icon:e.icon,disabled:e.enable==!1,onClick:q=>{e.onAction(q,r,o)},children:e.name},y)})})]})}));c.displayName="KANBAN_HEADER";module.exports=c;
|