@lanaco/lnc-react-ui 4.0.199 → 4.0.200
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/BlogCategoryCardsSection.cjs +1 -1
- package/dist/BlogCategoryCardsSection.js +12 -14
- package/dist/BlogExploreSection.cjs +1 -1
- package/dist/BlogExploreSection.js +1 -1
- package/dist/BlogsSectionWithFilters.cjs +1 -1
- package/dist/BlogsSectionWithFilters.js +1 -1
- 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 +1 -1
- 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/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/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/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 +19 -19
- package/dist/SalesCampaignsSection.js +283 -324
- 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 +1 -1
- package/dist/SimpleCategoriesSection.js +1 -1
- 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-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.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/{tag-BtS5lWJ0.js → tag-Dm8CW4TM.js} +21 -27
- package/dist/{tag-CmeZsPQt.cjs → tag-UQjq2_Ba.cjs} +7 -7
- package/package.json +1 -1
- 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 t=require("react/jsx-runtime"),d=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),z=require("./Button.cjs"),I=require("./
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),d=require("react"),b=require("./emotion-styled.browser.esm-BtEseadx.cjs"),y=require("./consts-goSZX3xP.cjs"),z=require("./Button.cjs"),I=require("./RangeSlider.cjs"),A=require("./DropdownItem.cjs"),F=require("./DropdownMenu.cjs"),P=require("./IconButton.cjs"),X=require("./BannerSectionWithList.cjs"),Z=require("./utils-RnrgDDZP.cjs"),V=b.styled.div`
|
|
2
2
|
display: flex;
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
width: 100%;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
@media (max-width: ${y.MOBILE_SIZE_PX+"px"}) {
|
|
8
8
|
gap: 2rem;
|
|
9
9
|
}
|
|
10
|
-
`,
|
|
10
|
+
`,H=b.styled.div`
|
|
11
11
|
text-align: center;
|
|
12
12
|
display: flex;
|
|
13
13
|
justify-content: center;
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
font-weight: 500;
|
|
42
42
|
color: var(--gray-600, #676e79);
|
|
43
43
|
}
|
|
44
|
-
`;const
|
|
44
|
+
`;const D=b.styled.div`
|
|
45
45
|
display: flex;
|
|
46
46
|
flex-direction: column;
|
|
47
47
|
gap: 2.25rem;
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
|
-
`,
|
|
71
|
+
`,Y=b.styled.div`
|
|
72
72
|
display: grid;
|
|
73
73
|
grid-template-columns: auto auto;
|
|
74
74
|
width: fit-content;
|
|
@@ -159,7 +159,7 @@
|
|
|
159
159
|
min-width: unset;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
|
-
`,
|
|
162
|
+
`,K=b.styled.div`
|
|
163
163
|
border-radius: 0.75rem;
|
|
164
164
|
border: 1px solid var(--neutral-95008);
|
|
165
165
|
background: var(--white);
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
align-items: start;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
203
|
-
`,
|
|
203
|
+
`,J=b.styled.div`
|
|
204
204
|
display: grid;
|
|
205
205
|
grid-template-columns: repeat(4, 1fr);
|
|
206
206
|
gap: 1rem;
|
|
@@ -255,7 +255,7 @@
|
|
|
255
255
|
gap: 0;
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
|
-
`,
|
|
258
|
+
`,Q=b.styled.label`
|
|
259
259
|
position: relative;
|
|
260
260
|
display: inline-flex;
|
|
261
261
|
align-items: center;
|
|
@@ -338,4 +338,4 @@
|
|
|
338
338
|
align-items: center;
|
|
339
339
|
gap: 0.38rem;
|
|
340
340
|
}
|
|
341
|
-
`,E=d.forwardRef((c,v)=>{var u,g,h,f,x,o,N,w;const{onChange:m=()=>{},items:a=[{name:"Male",icon:"mng-lnc-male-02",value:"male"},{name:"Female",value:"female",icon:"mng-lnc-female-02"}],...i}=c,s=t.jsxs("div",{className:"cont",children:[t.jsx("i",{className:(u=a==null?void 0:a.at(0))==null?void 0:u.icon}),t.jsx("span",{children:(g=a==null?void 0:a.at(0))==null?void 0:g.name})]}),n=t.jsxs("div",{className:"cont",children:[t.jsx("span",{children:(h=a==null?void 0:a.at(1))==null?void 0:h.name}),t.jsx("i",{className:(f=a==null?void 0:a.at(1))==null?void 0:f.icon})]}),[e,r]=d.useState(!1),l=p=>{var T,k;r(p.target.checked),m&&m(p.target.checked===!0?(T=a==null?void 0:a.at(1))==null?void 0:T.value:(k=a==null?void 0:a.at(0))==null?void 0:k.value)};return t.jsxs(ee,{ref:v,checked:e,...i,children:[t.jsx("input",{type:"checkbox",checked:e,onChange:l}),t.jsx("span",{className:"knob",children:e?n:s}),t.jsxs("span",{className:"text",children:[t.jsxs("div",{className:"cont",children:[t.jsx("i",{className:(x=a==null?void 0:a.at(0))==null?void 0:x.icon}),e===!0&&t.jsx("span",{className:"hidden-txt",children:(o=a==null?void 0:a.at(0))==null?void 0:o.name})]}),t.jsxs("div",{className:"cont",children:[e!==!0&&t.jsx("span",{className:"hidden-txt",children:(N=a==null?void 0:a.at(1))==null?void 0:N.name}),t.jsx("i",{className:(w=a==null?void 0:a.at(1))==null?void 0:w.icon})]})]})]})});E.propTypes={value:I.PropTypes.any,handleClick:I.PropTypes.func,color:I.PropTypes.string};const te=d.forwardRef((c,v)=>{var w;const{yearsText:m,heightText:a,weightText:i,genderText:s="Gender",calculateText:n="Calculate",closeText:e="Close calculator",onClose:r=()=>{},genders:l=[{name:"Male",icon:"mng-lnc-male-02",value:"male"},{name:"Female",value:"female",icon:"mng-lnc-female-02"}],activityLevels:u=[{name:"Very low",code:"veryLow"},{name:"Moderate",code:"moderate"},{name:"Very active",code:"veryActive"}],activityLevelText:g,goalText:h,goals:f=[{name:"Lose weight",code:"loseWeight",icon:"mng-lnc-weight-scale"},{name:"Maintaining",code:"maintaining",icon:"mng-lnc-move"},{name:"Gain muscle",code:"gainMuscle",icon:"mng-lnc-muscule"}],onCalculate:x=()=>{}}=c,o=d.useRef({year:null,height:null,weight:null,gender:(w=l==null?void 0:l.at(0))==null?void 0:w.value,activityLevel:null,goal:null}),N=()=>{x==null||x(o==null?void 0:o.current)};return t.jsxs(K,{children:[t.jsxs(J,{className:"calorie-calculating",children:[t.jsx("div",{className:"grid-label",children:s}),t.jsx("div",{children:t.jsx(E,{items:l,onChange:p=>o.current.gender=p})}),t.jsx(ae,{text:m,onChange:p=>o.current.year=p}),t.jsx(ne,{text:a,onChange:p=>o.current.height=p}),t.jsx(re,{text:i,onChange:p=>o.current.weight=p}),t.jsx(ie,{text:g,activityLevels:u,onChange:p=>o.current.activityLevel=p}),t.jsx(le,{text:h,goals:f,onChange:p=>o.current.goal=p})]}),t.jsxs("div",{className:"btns-footer",children:[t.jsx(z,{type:"button",color:"neutral",size:"medium",onClick:()=>{N()},children:n}),t.jsx(z,{type:"button",btnType:"basic",color:"gray",size:"medium",onClick:()=>r==null?void 0:r(),children:e})]})]})}),ae=d.forwardRef((c,v)=>{const{text:m="Years",onChange:a=()=>{}}=c,[i,s]=d.useState(1);return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"grid-label",children:m}),t.jsxs("div",{className:"caluclating-group",children:[t.jsx(L,{className:"range-input-lnc",max:115,min:0,step:1,value:i,color:"success",defaultValue:0,onChange:n=>{var e,r;s((e=n==null?void 0:n.target)==null?void 0:e.value),a==null||a((r=n==null?void 0:n.target)==null?void 0:r.value)}}),t.jsx("input",{tabIndex:2,type:"text",className:"calculating-input",onChange:n=>{var e,r,l,u,g,h,f,x;!isNaN((e=n==null?void 0:n.target)==null?void 0:e.value)&&+((r=n==null?void 0:n.target)==null?void 0:r.value)>=0&&(s(((u=(l=n==null?void 0:n.target)==null?void 0:l.value)==null?void 0:u.length)>1?(h=(g=n==null?void 0:n.target)==null?void 0:g.value)==null?void 0:h.replace(/^0+/,""):(f=n==null?void 0:n.target)==null?void 0:f.value),a==null||a((x=n==null?void 0:n.target)==null?void 0:x.value))},value:i==null?void 0:i.toString()})]})]})}),ne=d.forwardRef((c,v)=>{const{text:m="Height",unitText:a="cm",onChange:i=()=>{}}=c,[s,n]=d.useState(1);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid-label",children:[m," ",t.jsx("span",{className:"unit",children:`(${a})`})]}),t.jsxs("div",{className:"caluclating-group",children:[t.jsx(L,{className:"range-input-lnc",max:273,min:0,step:1,value:s,defaultValue:0,color:"success",onChange:e=>{var r,l;n((r=e==null?void 0:e.target)==null?void 0:r.value),i==null||i((l=e==null?void 0:e.target)==null?void 0:l.value)}}),t.jsx("input",{type:"text",tabIndex:2,className:"calculating-input",onChange:e=>{var r,l,u,g,h,f,x,o;!isNaN((r=e==null?void 0:e.target)==null?void 0:r.value)&&+((l=e==null?void 0:e.target)==null?void 0:l.value)>=0&&(n(((g=(u=e==null?void 0:e.target)==null?void 0:u.value)==null?void 0:g.length)>1?(f=(h=e==null?void 0:e.target)==null?void 0:h.value)==null?void 0:f.replace(/^0+/,""):(x=e==null?void 0:e.target)==null?void 0:x.value),i==null||i((o=e==null?void 0:e.target)==null?void 0:o.value))},value:s==null?void 0:s.toString()})]})]})}),re=d.forwardRef((c,v)=>{const{text:m="Weight",unitText:a="kg",onChange:i=()=>{}}=c,[s,n]=d.useState(1);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid-label",children:[m," ",t.jsx("span",{className:"unit",children:`(${a})`})]}),t.jsxs("div",{className:"caluclating-group",children:[t.jsx(L,{className:"range-input-lnc",max:400,min:0,step:1,value:s,color:"success",defaultValue:0,onChange:e=>{var r,l;n((r=e==null?void 0:e.target)==null?void 0:r.value),i==null||i((l=e==null?void 0:e.target)==null?void 0:l.value)}}),t.jsx("input",{tabIndex:2,type:"text",className:"calculating-input",onChange:e=>{var r,l,u,g,h,f,x,o;!isNaN((r=e==null?void 0:e.target)==null?void 0:r.value)&&+((l=e==null?void 0:e.target)==null?void 0:l.value)>=0&&(n(((g=(u=e==null?void 0:e.target)==null?void 0:u.value)==null?void 0:g.length)>1?(f=(h=e==null?void 0:e.target)==null?void 0:h.value)==null?void 0:f.replace(/^0+/,""):(x=e==null?void 0:e.target)==null?void 0:x.value),i==null||i((o=e==null?void 0:e.target)==null?void 0:o.value))},value:s==null?void 0:s.toString()})]})]})}),ie=d.forwardRef((c,v)=>{const{text:m="Activity level",activityLevels:a,onChange:i=()=>{}}=c,[s,n]=d.useState(null);return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"grid-label",children:m}),t.jsx("div",{className:"caluclating-group",children:a==null?void 0:a.map((e,r)=>t.jsx(z,{type:"button",btnType:s===(e==null?void 0:e.code)?"filled":"tinted",color:"neutral",borderRadius:"curved",onClick:()=>{n(e==null?void 0:e.code),i(e==null?void 0:e.code)},children:e==null?void 0:e.name},r))})]})}),le=d.forwardRef((c,v)=>{const{text:m="Goal",goals:a,onChange:i=()=>{}}=c,[s,n]=d.useState(null);return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"grid-label",children:m}),t.jsx("div",{className:"caluclating-group group-activity",children:a==null?void 0:a.map((e,r)=>t.jsx(z,{type:"button",btnType:s===(e==null?void 0:e.code)?"filled":"tinted",color:"neutral",borderRadius:"curved",onClick:()=>{n(e==null?void 0:e.code),i(e==null?void 0:e.code)},children:t.jsxs("div",{className:"btn-cnt",children:[t.jsx("i",{className:e==null?void 0:e.icon}),t.jsx("span",{children:e==null?void 0:e.name})]})},r))})]})}),se=d.forwardRef((c,v)=>{const{caloriesText:m="Calories",carbsText:a="Carbs",proteinText:i="Protein",fatsText:s="Fats",calculateAgainText:n="Calculate again",calories:e,carbs:r,protein:l,fats:u,onGoBack:g=()=>{}}=c;return t.jsxs(Q,{children:[t.jsxs(U,{children:[t.jsxs(S,{color:"var(--warning-600)",children:[t.jsx("i",{className:"mng-lnc-fire"}),t.jsxs("div",{className:"subgroup",children:[t.jsxs("div",{children:[e," kcal"]}),t.jsx("div",{className:"subtext",children:m})]})]}),t.jsxs(S,{color:"var(--secondary-400)",children:[t.jsx("i",{className:"mng-lnc-leaf"}),t.jsxs("div",{className:"subgroup",children:[t.jsxs("div",{children:[r,"g"]}),t.jsx("div",{className:"subtext",children:a})]})]}),t.jsxs(S,{color:"var(--info-500)",children:[t.jsx("i",{className:"mng-lnc-meat"}),t.jsxs("div",{className:"subgroup",children:[t.jsxs("div",{children:[l,"g"]}),t.jsx("div",{className:"subtext",children:i})]})]}),t.jsxs(S,{color:"var(--warning-300)",children:[t.jsx("i",{className:"mng-lnc-meat"}),t.jsxs("div",{className:"subgroup",children:[t.jsxs("div",{children:[u,"g"]}),t.jsx("div",{className:"subtext",children:s})]})]})]}),t.jsxs("div",{className:"dropdown-group",children:[t.jsx("div",{className:"vertical-line"}),t.jsx(X,{color:"neutral",control:t.jsx(Z,{borderRadius:"curved",btnType:"basic",className:"dropdown-btn",color:"neutral",icon:"ellipsis",type:"button"}),offsetValue:-10,placement:"bottom-end",children:t.jsx(F,{icon:"star",onClick:g,children:n})})]})]})}),ce=d.forwardRef((c,v)=>{const{caloriesText:m,carbsText:a,proteinText:i,fatsText:s,calculateAgainText:n,yearsText:e,heightText:r,weightText:l,genderText:u,calculateText:g,closeText:h,genders:f,activityLevels:x,activityLevelText:o,goalText:N,goals:w,title:p="Daily calorie calculator",subtitle:T="Lorem ipsum dolor sit amet",list:k=["Ovdje može pisati zašto je bitno da znamo kolika nam je dnevna kalorijska potreba.","Ovdje može pisati zašto je bitno da znamo kolikanam je dnevna kalorijska potreba.","From certified dealers from all over Europe"],buttonText:_="Calculate calorie needs"}=c,[R,C]=d.useState(1),[j,B]=d.useState(0),M=({gender:q,year:O,height:P,weight:W,activityLevel:$,goal:G})=>{const A=H.calculateCalories({gender:q,age:O,heightCm:P,weightKg:W,activityLevel:$,goal:G});B(A),C(3)};return t.jsxs(D,{ref:v,children:[t.jsxs(Y,{children:[t.jsx("div",{className:"header-title",children:p}),t.jsx("div",{className:"header-subtitle",children:T})]}),R===1&&t.jsx(V,{buttonText:_,onButtonAction:()=>{C(2)},list:k}),R===2&&t.jsx(te,{yearsText:e,heightText:r,weightText:l,genderText:u,calculateText:g,closeText:h,onClose:()=>C(1),genders:f,activityLevels:x,activityLevelText:o,goalText:N,goals:w,onCalculate:M}),R===3&&t.jsx(se,{caloriesText:m,carbsText:a,proteinText:i,fatsText:s,calculateAgainText:n,onGoBack:()=>C(2),calories:j==null?void 0:j.calories,fats:j==null?void 0:j.fat,carbs:j==null?void 0:j.carbs,protein:j==null?void 0:j.protein})]})}),oe=d.forwardRef((c,v)=>t.jsx(ce,{ref:v,...c}));module.exports=oe;
|
|
341
|
+
`,U=d.forwardRef((c,v)=>{var g,u,h,f,x,o,N,w;const{onChange:m=()=>{},items:a=[{name:"Male",icon:"mng-lnc-male-02",value:"male"},{name:"Female",value:"female",icon:"mng-lnc-female-02"}],...i}=c,s=t.jsxs("div",{className:"cont",children:[t.jsx("i",{className:(g=a==null?void 0:a.at(0))==null?void 0:g.icon}),t.jsx("span",{children:(u=a==null?void 0:a.at(0))==null?void 0:u.name})]}),n=t.jsxs("div",{className:"cont",children:[t.jsx("span",{children:(h=a==null?void 0:a.at(1))==null?void 0:h.name}),t.jsx("i",{className:(f=a==null?void 0:a.at(1))==null?void 0:f.icon})]}),[e,r]=d.useState(!1),l=p=>{var T,k;r(p.target.checked),m&&m(p.target.checked===!0?(T=a==null?void 0:a.at(1))==null?void 0:T.value:(k=a==null?void 0:a.at(0))==null?void 0:k.value)};return t.jsxs(Q,{ref:v,checked:e,...i,children:[t.jsx("input",{type:"checkbox",checked:e,onChange:l}),t.jsx("span",{className:"knob",children:e?n:s}),t.jsxs("span",{className:"text",children:[t.jsxs("div",{className:"cont",children:[t.jsx("i",{className:(x=a==null?void 0:a.at(0))==null?void 0:x.icon}),e===!0&&t.jsx("span",{className:"hidden-txt",children:(o=a==null?void 0:a.at(0))==null?void 0:o.name})]}),t.jsxs("div",{className:"cont",children:[e!==!0&&t.jsx("span",{className:"hidden-txt",children:(N=a==null?void 0:a.at(1))==null?void 0:N.name}),t.jsx("i",{className:(w=a==null?void 0:a.at(1))==null?void 0:w.icon})]})]})]})}),ee=d.forwardRef((c,v)=>{var w;const{yearsText:m,heightText:a,weightText:i,genderText:s="Gender",calculateText:n="Calculate",closeText:e="Close calculator",onClose:r=()=>{},genders:l=[{name:"Male",icon:"mng-lnc-male-02",value:"male"},{name:"Female",value:"female",icon:"mng-lnc-female-02"}],activityLevels:g=[{name:"Very low",code:"veryLow"},{name:"Moderate",code:"moderate"},{name:"Very active",code:"veryActive"}],activityLevelText:u,goalText:h,goals:f=[{name:"Lose weight",code:"loseWeight",icon:"mng-lnc-weight-scale"},{name:"Maintaining",code:"maintaining",icon:"mng-lnc-move"},{name:"Gain muscle",code:"gainMuscle",icon:"mng-lnc-muscule"}],onCalculate:x=()=>{}}=c,o=d.useRef({year:null,height:null,weight:null,gender:(w=l==null?void 0:l.at(0))==null?void 0:w.value,activityLevel:null,goal:null}),N=()=>{x==null||x(o==null?void 0:o.current)};return t.jsxs(D,{children:[t.jsxs(Y,{className:"calorie-calculating",children:[t.jsx("div",{className:"grid-label",children:s}),t.jsx("div",{children:t.jsx(U,{items:l,onChange:p=>o.current.gender=p})}),t.jsx(te,{text:m,onChange:p=>o.current.year=p}),t.jsx(ae,{text:a,onChange:p=>o.current.height=p}),t.jsx(ne,{text:i,onChange:p=>o.current.weight=p}),t.jsx(re,{text:u,activityLevels:g,onChange:p=>o.current.activityLevel=p}),t.jsx(ie,{text:h,goals:f,onChange:p=>o.current.goal=p})]}),t.jsxs("div",{className:"btns-footer",children:[t.jsx(z,{type:"button",color:"neutral",size:"medium",onClick:()=>{N()},children:n}),t.jsx(z,{type:"button",btnType:"basic",color:"gray",size:"medium",onClick:()=>r==null?void 0:r(),children:e})]})]})}),te=d.forwardRef((c,v)=>{const{text:m="Years",onChange:a=()=>{}}=c,[i,s]=d.useState(1);return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"grid-label",children:m}),t.jsxs("div",{className:"caluclating-group",children:[t.jsx(I,{className:"range-input-lnc",max:115,min:0,step:1,value:i,color:"success",defaultValue:0,onChange:n=>{var e,r;s((e=n==null?void 0:n.target)==null?void 0:e.value),a==null||a((r=n==null?void 0:n.target)==null?void 0:r.value)}}),t.jsx("input",{tabIndex:2,type:"text",className:"calculating-input",onChange:n=>{var e,r,l,g,u,h,f,x;!isNaN((e=n==null?void 0:n.target)==null?void 0:e.value)&&+((r=n==null?void 0:n.target)==null?void 0:r.value)>=0&&(s(((g=(l=n==null?void 0:n.target)==null?void 0:l.value)==null?void 0:g.length)>1?(h=(u=n==null?void 0:n.target)==null?void 0:u.value)==null?void 0:h.replace(/^0+/,""):(f=n==null?void 0:n.target)==null?void 0:f.value),a==null||a((x=n==null?void 0:n.target)==null?void 0:x.value))},value:i==null?void 0:i.toString()})]})]})}),ae=d.forwardRef((c,v)=>{const{text:m="Height",unitText:a="cm",onChange:i=()=>{}}=c,[s,n]=d.useState(1);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid-label",children:[m," ",t.jsx("span",{className:"unit",children:`(${a})`})]}),t.jsxs("div",{className:"caluclating-group",children:[t.jsx(I,{className:"range-input-lnc",max:273,min:0,step:1,value:s,defaultValue:0,color:"success",onChange:e=>{var r,l;n((r=e==null?void 0:e.target)==null?void 0:r.value),i==null||i((l=e==null?void 0:e.target)==null?void 0:l.value)}}),t.jsx("input",{type:"text",tabIndex:2,className:"calculating-input",onChange:e=>{var r,l,g,u,h,f,x,o;!isNaN((r=e==null?void 0:e.target)==null?void 0:r.value)&&+((l=e==null?void 0:e.target)==null?void 0:l.value)>=0&&(n(((u=(g=e==null?void 0:e.target)==null?void 0:g.value)==null?void 0:u.length)>1?(f=(h=e==null?void 0:e.target)==null?void 0:h.value)==null?void 0:f.replace(/^0+/,""):(x=e==null?void 0:e.target)==null?void 0:x.value),i==null||i((o=e==null?void 0:e.target)==null?void 0:o.value))},value:s==null?void 0:s.toString()})]})]})}),ne=d.forwardRef((c,v)=>{const{text:m="Weight",unitText:a="kg",onChange:i=()=>{}}=c,[s,n]=d.useState(1);return t.jsxs(t.Fragment,{children:[t.jsxs("div",{className:"grid-label",children:[m," ",t.jsx("span",{className:"unit",children:`(${a})`})]}),t.jsxs("div",{className:"caluclating-group",children:[t.jsx(I,{className:"range-input-lnc",max:400,min:0,step:1,value:s,color:"success",defaultValue:0,onChange:e=>{var r,l;n((r=e==null?void 0:e.target)==null?void 0:r.value),i==null||i((l=e==null?void 0:e.target)==null?void 0:l.value)}}),t.jsx("input",{tabIndex:2,type:"text",className:"calculating-input",onChange:e=>{var r,l,g,u,h,f,x,o;!isNaN((r=e==null?void 0:e.target)==null?void 0:r.value)&&+((l=e==null?void 0:e.target)==null?void 0:l.value)>=0&&(n(((u=(g=e==null?void 0:e.target)==null?void 0:g.value)==null?void 0:u.length)>1?(f=(h=e==null?void 0:e.target)==null?void 0:h.value)==null?void 0:f.replace(/^0+/,""):(x=e==null?void 0:e.target)==null?void 0:x.value),i==null||i((o=e==null?void 0:e.target)==null?void 0:o.value))},value:s==null?void 0:s.toString()})]})]})}),re=d.forwardRef((c,v)=>{const{text:m="Activity level",activityLevels:a,onChange:i=()=>{}}=c,[s,n]=d.useState(null);return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"grid-label",children:m}),t.jsx("div",{className:"caluclating-group",children:a==null?void 0:a.map((e,r)=>t.jsx(z,{type:"button",btnType:s===(e==null?void 0:e.code)?"filled":"tinted",color:"neutral",borderRadius:"curved",onClick:()=>{n(e==null?void 0:e.code),i(e==null?void 0:e.code)},children:e==null?void 0:e.name},r))})]})}),ie=d.forwardRef((c,v)=>{const{text:m="Goal",goals:a,onChange:i=()=>{}}=c,[s,n]=d.useState(null);return t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"grid-label",children:m}),t.jsx("div",{className:"caluclating-group group-activity",children:a==null?void 0:a.map((e,r)=>t.jsx(z,{type:"button",btnType:s===(e==null?void 0:e.code)?"filled":"tinted",color:"neutral",borderRadius:"curved",onClick:()=>{n(e==null?void 0:e.code),i(e==null?void 0:e.code)},children:t.jsxs("div",{className:"btn-cnt",children:[t.jsx("i",{className:e==null?void 0:e.icon}),t.jsx("span",{children:e==null?void 0:e.name})]})},r))})]})}),le=d.forwardRef((c,v)=>{const{caloriesText:m="Calories",carbsText:a="Carbs",proteinText:i="Protein",fatsText:s="Fats",calculateAgainText:n="Calculate again",calories:e,carbs:r,protein:l,fats:g,onGoBack:u=()=>{}}=c;return t.jsxs(K,{children:[t.jsxs(J,{children:[t.jsxs(S,{color:"var(--warning-600)",children:[t.jsx("i",{className:"mng-lnc-fire"}),t.jsxs("div",{className:"subgroup",children:[t.jsxs("div",{children:[e," kcal"]}),t.jsx("div",{className:"subtext",children:m})]})]}),t.jsxs(S,{color:"var(--secondary-400)",children:[t.jsx("i",{className:"mng-lnc-leaf"}),t.jsxs("div",{className:"subgroup",children:[t.jsxs("div",{children:[r,"g"]}),t.jsx("div",{className:"subtext",children:a})]})]}),t.jsxs(S,{color:"var(--info-500)",children:[t.jsx("i",{className:"mng-lnc-meat"}),t.jsxs("div",{className:"subgroup",children:[t.jsxs("div",{children:[l,"g"]}),t.jsx("div",{className:"subtext",children:i})]})]}),t.jsxs(S,{color:"var(--warning-300)",children:[t.jsx("i",{className:"mng-lnc-meat"}),t.jsxs("div",{className:"subgroup",children:[t.jsxs("div",{children:[g,"g"]}),t.jsx("div",{className:"subtext",children:s})]})]})]}),t.jsxs("div",{className:"dropdown-group",children:[t.jsx("div",{className:"vertical-line"}),t.jsx(F,{color:"neutral",control:t.jsx(P,{borderRadius:"curved",btnType:"basic",className:"dropdown-btn",color:"neutral",icon:"ellipsis",type:"button"}),offsetValue:-10,placement:"bottom-end",children:t.jsx(A,{icon:"star",onClick:u,children:n})})]})]})}),se=d.forwardRef((c,v)=>{const{caloriesText:m,carbsText:a,proteinText:i,fatsText:s,calculateAgainText:n,yearsText:e,heightText:r,weightText:l,genderText:g,calculateText:u,closeText:h,genders:f,activityLevels:x,activityLevelText:o,goalText:N,goals:w,title:p="Daily calorie calculator",subtitle:T="Lorem ipsum dolor sit amet",list:k=["Ovdje može pisati zašto je bitno da znamo kolika nam je dnevna kalorijska potreba.","Ovdje može pisati zašto je bitno da znamo kolikanam je dnevna kalorijska potreba.","From certified dealers from all over Europe"],buttonText:L="Calculate calorie needs"}=c,[R,C]=d.useState(1),[j,E]=d.useState(0),_=({gender:B,year:M,height:q,weight:O,activityLevel:W,goal:$})=>{const G=Z.calculateCalories({gender:B,age:M,heightCm:q,weightKg:O,activityLevel:W,goal:$});E(G),C(3)};return t.jsxs(V,{ref:v,children:[t.jsxs(H,{children:[t.jsx("div",{className:"header-title",children:p}),t.jsx("div",{className:"header-subtitle",children:T})]}),R===1&&t.jsx(X,{buttonText:L,onButtonAction:()=>{C(2)},list:k}),R===2&&t.jsx(ee,{yearsText:e,heightText:r,weightText:l,genderText:g,calculateText:u,closeText:h,onClose:()=>C(1),genders:f,activityLevels:x,activityLevelText:o,goalText:N,goals:w,onCalculate:_}),R===3&&t.jsx(le,{caloriesText:m,carbsText:a,proteinText:i,fatsText:s,calculateAgainText:n,onGoBack:()=>C(2),calories:j==null?void 0:j.calories,fats:j==null?void 0:j.fat,carbs:j==null?void 0:j.carbs,protein:j==null?void 0:j.protein})]})}),ce=d.forwardRef((c,v)=>t.jsx(se,{ref:v,...c}));module.exports=ce;
|
|
@@ -1,25 +1,24 @@
|
|
|
1
1
|
import { jsxs as i, jsx as a, Fragment as z } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef as w, useState as N, useRef as
|
|
2
|
+
import { forwardRef as w, useState as N, useRef as D } from "react";
|
|
3
3
|
import { s as y } from "./emotion-styled.browser.esm-BNN1dTl3.js";
|
|
4
|
-
import { M as
|
|
4
|
+
import { M as T } from "./consts-BuFChS64.js";
|
|
5
5
|
import S from "./Button.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
|
|
13
|
-
const J = y.div`
|
|
6
|
+
import G from "./RangeSlider.js";
|
|
7
|
+
import Y from "./DropdownItem.js";
|
|
8
|
+
import P from "./DropdownMenu.js";
|
|
9
|
+
import _ from "./IconButton.js";
|
|
10
|
+
import K from "./BannerSectionWithList.js";
|
|
11
|
+
import { y as X } from "./utils-DtEfC-TX.js";
|
|
12
|
+
const Z = y.div`
|
|
14
13
|
display: flex;
|
|
15
14
|
flex-direction: column;
|
|
16
15
|
width: 100%;
|
|
17
16
|
gap: 2.25rem;
|
|
18
17
|
|
|
19
|
-
@media (max-width: ${
|
|
18
|
+
@media (max-width: ${T + "px"}) {
|
|
20
19
|
gap: 2rem;
|
|
21
20
|
}
|
|
22
|
-
`,
|
|
21
|
+
`, q = y.div`
|
|
23
22
|
text-align: center;
|
|
24
23
|
display: flex;
|
|
25
24
|
justify-content: center;
|
|
@@ -37,7 +36,7 @@ const J = y.div`
|
|
|
37
36
|
font-weight: 500;
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
@media (max-width: ${
|
|
39
|
+
@media (max-width: ${T + "px"}) {
|
|
41
40
|
}
|
|
42
41
|
`;
|
|
43
42
|
y.div`
|
|
@@ -55,7 +54,7 @@ y.div`
|
|
|
55
54
|
color: var(--gray-600, #676e79);
|
|
56
55
|
}
|
|
57
56
|
`;
|
|
58
|
-
const
|
|
57
|
+
const J = y.div`
|
|
59
58
|
display: flex;
|
|
60
59
|
flex-direction: column;
|
|
61
60
|
gap: 2.25rem;
|
|
@@ -71,7 +70,7 @@ const U = y.div`
|
|
|
71
70
|
}
|
|
72
71
|
}
|
|
73
72
|
|
|
74
|
-
@media (max-width: ${
|
|
73
|
+
@media (max-width: ${T + "px"}) {
|
|
75
74
|
gap: 2rem;
|
|
76
75
|
& .btns-footer {
|
|
77
76
|
width: 100%;
|
|
@@ -82,7 +81,7 @@ const U = y.div`
|
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
83
|
}
|
|
85
|
-
`,
|
|
84
|
+
`, Q = y.div`
|
|
86
85
|
display: grid;
|
|
87
86
|
grid-template-columns: auto auto;
|
|
88
87
|
width: fit-content;
|
|
@@ -147,7 +146,7 @@ const U = y.div`
|
|
|
147
146
|
padding-top: 0 !important;
|
|
148
147
|
}
|
|
149
148
|
|
|
150
|
-
@media (max-width: ${
|
|
149
|
+
@media (max-width: ${T + "px"}) {
|
|
151
150
|
gap: 0.25rem;
|
|
152
151
|
grid-template-columns: auto;
|
|
153
152
|
|
|
@@ -173,7 +172,7 @@ const U = y.div`
|
|
|
173
172
|
min-width: unset;
|
|
174
173
|
}
|
|
175
174
|
}
|
|
176
|
-
`,
|
|
175
|
+
`, U = y.div`
|
|
177
176
|
border-radius: 0.75rem;
|
|
178
177
|
border: 1px solid var(--neutral-95008);
|
|
179
178
|
background: var(--white);
|
|
@@ -200,7 +199,7 @@ const U = y.div`
|
|
|
200
199
|
margin: 0 0.62rem;
|
|
201
200
|
}
|
|
202
201
|
|
|
203
|
-
@media (max-width: ${
|
|
202
|
+
@media (max-width: ${T + "px"}) {
|
|
204
203
|
padding: 0.75rem;
|
|
205
204
|
gap: 0.75rem;
|
|
206
205
|
|
|
@@ -214,13 +213,13 @@ const U = y.div`
|
|
|
214
213
|
align-items: start;
|
|
215
214
|
}
|
|
216
215
|
}
|
|
217
|
-
`,
|
|
216
|
+
`, ee = y.div`
|
|
218
217
|
display: grid;
|
|
219
218
|
grid-template-columns: repeat(4, 1fr);
|
|
220
219
|
gap: 1rem;
|
|
221
220
|
flex: 1;
|
|
222
221
|
|
|
223
|
-
@media (max-width: ${
|
|
222
|
+
@media (max-width: ${T + "px"}) {
|
|
224
223
|
grid-template-columns: repeat(2, 1fr);
|
|
225
224
|
gap: 0.75rem;
|
|
226
225
|
}
|
|
@@ -250,7 +249,7 @@ const U = y.div`
|
|
|
250
249
|
font-size: 3rem;
|
|
251
250
|
}
|
|
252
251
|
|
|
253
|
-
@media (max-width: ${
|
|
252
|
+
@media (max-width: ${T + "px"}) {
|
|
254
253
|
flex-direction: row;
|
|
255
254
|
gap: 0.25rem;
|
|
256
255
|
font-size: 0.875rem;
|
|
@@ -269,7 +268,7 @@ const U = y.div`
|
|
|
269
268
|
gap: 0;
|
|
270
269
|
}
|
|
271
270
|
}
|
|
272
|
-
`,
|
|
271
|
+
`, te = y.label`
|
|
273
272
|
position: relative;
|
|
274
273
|
display: inline-flex;
|
|
275
274
|
align-items: center;
|
|
@@ -352,8 +351,8 @@ const U = y.div`
|
|
|
352
351
|
align-items: center;
|
|
353
352
|
gap: 0.38rem;
|
|
354
353
|
}
|
|
355
|
-
`,
|
|
356
|
-
var g, u, v,
|
|
354
|
+
`, ae = w((s, f) => {
|
|
355
|
+
var g, u, v, x, p, d, k, C;
|
|
357
356
|
const {
|
|
358
357
|
onChange: m = () => {
|
|
359
358
|
},
|
|
@@ -367,9 +366,9 @@ const U = y.div`
|
|
|
367
366
|
/* @__PURE__ */ a("span", { children: (u = t == null ? void 0 : t.at(0)) == null ? void 0 : u.name })
|
|
368
367
|
] }), n = /* @__PURE__ */ i("div", { className: "cont", children: [
|
|
369
368
|
/* @__PURE__ */ a("span", { children: (v = t == null ? void 0 : t.at(1)) == null ? void 0 : v.name }),
|
|
370
|
-
/* @__PURE__ */ a("i", { className: (
|
|
369
|
+
/* @__PURE__ */ a("i", { className: (x = t == null ? void 0 : t.at(1)) == null ? void 0 : x.icon })
|
|
371
370
|
] }), [e, r] = N(!1);
|
|
372
|
-
return /* @__PURE__ */ i(
|
|
371
|
+
return /* @__PURE__ */ i(te, { ref: f, checked: e, ...l, children: [
|
|
373
372
|
/* @__PURE__ */ a("input", { type: "checkbox", checked: e, onChange: (h) => {
|
|
374
373
|
var j, L;
|
|
375
374
|
r(h.target.checked), m && m(
|
|
@@ -384,18 +383,12 @@ const U = y.div`
|
|
|
384
383
|
] }),
|
|
385
384
|
/* @__PURE__ */ i("div", { className: "cont", children: [
|
|
386
385
|
e !== !0 && /* @__PURE__ */ a("span", { className: "hidden-txt", children: (k = t == null ? void 0 : t.at(1)) == null ? void 0 : k.name }),
|
|
387
|
-
/* @__PURE__ */ a("i", { className: (
|
|
386
|
+
/* @__PURE__ */ a("i", { className: (C = t == null ? void 0 : t.at(1)) == null ? void 0 : C.icon })
|
|
388
387
|
] })
|
|
389
388
|
] })
|
|
390
389
|
] });
|
|
391
|
-
})
|
|
392
|
-
|
|
393
|
-
value: G.any,
|
|
394
|
-
handleClick: G.func,
|
|
395
|
-
color: G.string
|
|
396
|
-
};
|
|
397
|
-
const ie = w((s, x) => {
|
|
398
|
-
var T;
|
|
390
|
+
}), ne = w((s, f) => {
|
|
391
|
+
var C;
|
|
399
392
|
const {
|
|
400
393
|
yearsText: m,
|
|
401
394
|
heightText: t,
|
|
@@ -416,56 +409,56 @@ const ie = w((s, x) => {
|
|
|
416
409
|
],
|
|
417
410
|
activityLevelText: u,
|
|
418
411
|
goalText: v,
|
|
419
|
-
goals:
|
|
412
|
+
goals: x = [
|
|
420
413
|
{ name: "Lose weight", code: "loseWeight", icon: "mng-lnc-weight-scale" },
|
|
421
414
|
{ name: "Maintaining", code: "maintaining", icon: "mng-lnc-move" },
|
|
422
415
|
{ name: "Gain muscle", code: "gainMuscle", icon: "mng-lnc-muscule" }
|
|
423
416
|
],
|
|
424
417
|
onCalculate: p = () => {
|
|
425
418
|
}
|
|
426
|
-
} = s, d =
|
|
419
|
+
} = s, d = D({
|
|
427
420
|
year: null,
|
|
428
421
|
height: null,
|
|
429
422
|
weight: null,
|
|
430
|
-
gender: (
|
|
423
|
+
gender: (C = o == null ? void 0 : o.at(0)) == null ? void 0 : C.value,
|
|
431
424
|
activityLevel: null,
|
|
432
425
|
goal: null
|
|
433
426
|
}), k = () => {
|
|
434
427
|
p == null || p(d == null ? void 0 : d.current);
|
|
435
428
|
};
|
|
436
|
-
return /* @__PURE__ */ i(
|
|
437
|
-
/* @__PURE__ */ i(
|
|
429
|
+
return /* @__PURE__ */ i(J, { children: [
|
|
430
|
+
/* @__PURE__ */ i(Q, { className: "calorie-calculating", children: [
|
|
438
431
|
/* @__PURE__ */ a("div", { className: "grid-label", children: c }),
|
|
439
432
|
/* @__PURE__ */ a("div", { children: /* @__PURE__ */ a(
|
|
440
|
-
|
|
433
|
+
ae,
|
|
441
434
|
{
|
|
442
435
|
items: o,
|
|
443
436
|
onChange: (h) => d.current.gender = h
|
|
444
437
|
}
|
|
445
438
|
) }),
|
|
446
439
|
/* @__PURE__ */ a(
|
|
447
|
-
|
|
440
|
+
ie,
|
|
448
441
|
{
|
|
449
442
|
text: m,
|
|
450
443
|
onChange: (h) => d.current.year = h
|
|
451
444
|
}
|
|
452
445
|
),
|
|
453
446
|
/* @__PURE__ */ a(
|
|
454
|
-
|
|
447
|
+
re,
|
|
455
448
|
{
|
|
456
449
|
text: t,
|
|
457
450
|
onChange: (h) => d.current.height = h
|
|
458
451
|
}
|
|
459
452
|
),
|
|
460
453
|
/* @__PURE__ */ a(
|
|
461
|
-
|
|
454
|
+
le,
|
|
462
455
|
{
|
|
463
456
|
text: l,
|
|
464
457
|
onChange: (h) => d.current.weight = h
|
|
465
458
|
}
|
|
466
459
|
),
|
|
467
460
|
/* @__PURE__ */ a(
|
|
468
|
-
|
|
461
|
+
ce,
|
|
469
462
|
{
|
|
470
463
|
text: u,
|
|
471
464
|
activityLevels: g,
|
|
@@ -473,10 +466,10 @@ const ie = w((s, x) => {
|
|
|
473
466
|
}
|
|
474
467
|
),
|
|
475
468
|
/* @__PURE__ */ a(
|
|
476
|
-
|
|
469
|
+
oe,
|
|
477
470
|
{
|
|
478
471
|
text: v,
|
|
479
|
-
goals:
|
|
472
|
+
goals: x,
|
|
480
473
|
onChange: (h) => d.current.goal = h
|
|
481
474
|
}
|
|
482
475
|
)
|
|
@@ -507,14 +500,14 @@ const ie = w((s, x) => {
|
|
|
507
500
|
)
|
|
508
501
|
] })
|
|
509
502
|
] });
|
|
510
|
-
}),
|
|
503
|
+
}), ie = w((s, f) => {
|
|
511
504
|
const { text: m = "Years", onChange: t = () => {
|
|
512
505
|
} } = s, [l, c] = N(1);
|
|
513
506
|
return /* @__PURE__ */ i(z, { children: [
|
|
514
507
|
/* @__PURE__ */ a("div", { className: "grid-label", children: m }),
|
|
515
508
|
/* @__PURE__ */ i("div", { className: "caluclating-group", children: [
|
|
516
509
|
/* @__PURE__ */ a(
|
|
517
|
-
|
|
510
|
+
G,
|
|
518
511
|
{
|
|
519
512
|
className: "range-input-lnc",
|
|
520
513
|
max: 115,
|
|
@@ -536,9 +529,9 @@ const ie = w((s, x) => {
|
|
|
536
529
|
type: "text",
|
|
537
530
|
className: "calculating-input",
|
|
538
531
|
onChange: (n) => {
|
|
539
|
-
var e, r, o, g, u, v,
|
|
532
|
+
var e, r, o, g, u, v, x, p;
|
|
540
533
|
!isNaN((e = n == null ? void 0 : n.target) == null ? void 0 : e.value) && +((r = n == null ? void 0 : n.target) == null ? void 0 : r.value) >= 0 && (c(
|
|
541
|
-
((g = (o = n == null ? void 0 : n.target) == null ? void 0 : o.value) == null ? void 0 : g.length) > 1 ? (v = (u = n == null ? void 0 : n.target) == null ? void 0 : u.value) == null ? void 0 : v.replace(/^0+/, "") : (
|
|
534
|
+
((g = (o = n == null ? void 0 : n.target) == null ? void 0 : o.value) == null ? void 0 : g.length) > 1 ? (v = (u = n == null ? void 0 : n.target) == null ? void 0 : u.value) == null ? void 0 : v.replace(/^0+/, "") : (x = n == null ? void 0 : n.target) == null ? void 0 : x.value
|
|
542
535
|
), t == null || t((p = n == null ? void 0 : n.target) == null ? void 0 : p.value));
|
|
543
536
|
},
|
|
544
537
|
value: l == null ? void 0 : l.toString()
|
|
@@ -546,7 +539,7 @@ const ie = w((s, x) => {
|
|
|
546
539
|
)
|
|
547
540
|
] })
|
|
548
541
|
] });
|
|
549
|
-
}),
|
|
542
|
+
}), re = w((s, f) => {
|
|
550
543
|
const { text: m = "Height", unitText: t = "cm", onChange: l = () => {
|
|
551
544
|
} } = s, [c, n] = N(1);
|
|
552
545
|
return /* @__PURE__ */ i(z, { children: [
|
|
@@ -557,7 +550,7 @@ const ie = w((s, x) => {
|
|
|
557
550
|
] }),
|
|
558
551
|
/* @__PURE__ */ i("div", { className: "caluclating-group", children: [
|
|
559
552
|
/* @__PURE__ */ a(
|
|
560
|
-
|
|
553
|
+
G,
|
|
561
554
|
{
|
|
562
555
|
className: "range-input-lnc",
|
|
563
556
|
max: 273,
|
|
@@ -579,9 +572,9 @@ const ie = w((s, x) => {
|
|
|
579
572
|
tabIndex: 2,
|
|
580
573
|
className: "calculating-input",
|
|
581
574
|
onChange: (e) => {
|
|
582
|
-
var r, o, g, u, v,
|
|
575
|
+
var r, o, g, u, v, x, p, d;
|
|
583
576
|
!isNaN((r = e == null ? void 0 : e.target) == null ? void 0 : r.value) && +((o = e == null ? void 0 : e.target) == null ? void 0 : o.value) >= 0 && (n(
|
|
584
|
-
((u = (g = e == null ? void 0 : e.target) == null ? void 0 : g.value) == null ? void 0 : u.length) > 1 ? (
|
|
577
|
+
((u = (g = e == null ? void 0 : e.target) == null ? void 0 : g.value) == null ? void 0 : u.length) > 1 ? (x = (v = e == null ? void 0 : e.target) == null ? void 0 : v.value) == null ? void 0 : x.replace(/^0+/, "") : (p = e == null ? void 0 : e.target) == null ? void 0 : p.value
|
|
585
578
|
), l == null || l((d = e == null ? void 0 : e.target) == null ? void 0 : d.value));
|
|
586
579
|
},
|
|
587
580
|
value: c == null ? void 0 : c.toString()
|
|
@@ -589,7 +582,7 @@ const ie = w((s, x) => {
|
|
|
589
582
|
)
|
|
590
583
|
] })
|
|
591
584
|
] });
|
|
592
|
-
}),
|
|
585
|
+
}), le = w((s, f) => {
|
|
593
586
|
const { text: m = "Weight", unitText: t = "kg", onChange: l = () => {
|
|
594
587
|
} } = s, [c, n] = N(1);
|
|
595
588
|
return /* @__PURE__ */ i(z, { children: [
|
|
@@ -600,7 +593,7 @@ const ie = w((s, x) => {
|
|
|
600
593
|
] }),
|
|
601
594
|
/* @__PURE__ */ i("div", { className: "caluclating-group", children: [
|
|
602
595
|
/* @__PURE__ */ a(
|
|
603
|
-
|
|
596
|
+
G,
|
|
604
597
|
{
|
|
605
598
|
className: "range-input-lnc",
|
|
606
599
|
max: 400,
|
|
@@ -622,9 +615,9 @@ const ie = w((s, x) => {
|
|
|
622
615
|
type: "text",
|
|
623
616
|
className: "calculating-input",
|
|
624
617
|
onChange: (e) => {
|
|
625
|
-
var r, o, g, u, v,
|
|
618
|
+
var r, o, g, u, v, x, p, d;
|
|
626
619
|
!isNaN((r = e == null ? void 0 : e.target) == null ? void 0 : r.value) && +((o = e == null ? void 0 : e.target) == null ? void 0 : o.value) >= 0 && (n(
|
|
627
|
-
((u = (g = e == null ? void 0 : e.target) == null ? void 0 : g.value) == null ? void 0 : u.length) > 1 ? (
|
|
620
|
+
((u = (g = e == null ? void 0 : e.target) == null ? void 0 : g.value) == null ? void 0 : u.length) > 1 ? (x = (v = e == null ? void 0 : e.target) == null ? void 0 : v.value) == null ? void 0 : x.replace(/^0+/, "") : (p = e == null ? void 0 : e.target) == null ? void 0 : p.value
|
|
628
621
|
), l == null || l((d = e == null ? void 0 : e.target) == null ? void 0 : d.value));
|
|
629
622
|
},
|
|
630
623
|
value: c == null ? void 0 : c.toString()
|
|
@@ -632,7 +625,7 @@ const ie = w((s, x) => {
|
|
|
632
625
|
)
|
|
633
626
|
] })
|
|
634
627
|
] });
|
|
635
|
-
}),
|
|
628
|
+
}), ce = w((s, f) => {
|
|
636
629
|
const {
|
|
637
630
|
text: m = "Activity level",
|
|
638
631
|
activityLevels: t,
|
|
@@ -656,7 +649,7 @@ const ie = w((s, x) => {
|
|
|
656
649
|
r
|
|
657
650
|
)) })
|
|
658
651
|
] });
|
|
659
|
-
}),
|
|
652
|
+
}), oe = w((s, f) => {
|
|
660
653
|
const { text: m = "Goal", goals: t, onChange: l = () => {
|
|
661
654
|
} } = s, [c, n] = N(null);
|
|
662
655
|
return /* @__PURE__ */ i(z, { children: [
|
|
@@ -679,7 +672,7 @@ const ie = w((s, x) => {
|
|
|
679
672
|
r
|
|
680
673
|
)) })
|
|
681
674
|
] });
|
|
682
|
-
}),
|
|
675
|
+
}), se = w((s, f) => {
|
|
683
676
|
const {
|
|
684
677
|
caloriesText: m = "Calories",
|
|
685
678
|
carbsText: t = "Carbs",
|
|
@@ -693,8 +686,8 @@ const ie = w((s, x) => {
|
|
|
693
686
|
onGoBack: u = () => {
|
|
694
687
|
}
|
|
695
688
|
} = s;
|
|
696
|
-
return /* @__PURE__ */ i(
|
|
697
|
-
/* @__PURE__ */ i(
|
|
689
|
+
return /* @__PURE__ */ i(U, { children: [
|
|
690
|
+
/* @__PURE__ */ i(ee, { children: [
|
|
698
691
|
/* @__PURE__ */ i(R, { color: "var(--warning-600)", children: [
|
|
699
692
|
/* @__PURE__ */ a("i", { className: "mng-lnc-fire" }),
|
|
700
693
|
/* @__PURE__ */ i("div", { className: "subgroup", children: [
|
|
@@ -739,11 +732,11 @@ const ie = w((s, x) => {
|
|
|
739
732
|
/* @__PURE__ */ i("div", { className: "dropdown-group", children: [
|
|
740
733
|
/* @__PURE__ */ a("div", { className: "vertical-line" }),
|
|
741
734
|
/* @__PURE__ */ a(
|
|
742
|
-
|
|
735
|
+
P,
|
|
743
736
|
{
|
|
744
737
|
color: "neutral",
|
|
745
738
|
control: /* @__PURE__ */ a(
|
|
746
|
-
|
|
739
|
+
_,
|
|
747
740
|
{
|
|
748
741
|
borderRadius: "curved",
|
|
749
742
|
btnType: "basic",
|
|
@@ -755,12 +748,12 @@ const ie = w((s, x) => {
|
|
|
755
748
|
),
|
|
756
749
|
offsetValue: -10,
|
|
757
750
|
placement: "bottom-end",
|
|
758
|
-
children: /* @__PURE__ */ a(
|
|
751
|
+
children: /* @__PURE__ */ a(Y, { icon: "star", onClick: u, children: n })
|
|
759
752
|
}
|
|
760
753
|
)
|
|
761
754
|
] })
|
|
762
755
|
] });
|
|
763
|
-
}),
|
|
756
|
+
}), de = w((s, f) => {
|
|
764
757
|
const {
|
|
765
758
|
caloriesText: m,
|
|
766
759
|
carbsText: t,
|
|
@@ -773,11 +766,11 @@ const ie = w((s, x) => {
|
|
|
773
766
|
genderText: g,
|
|
774
767
|
calculateText: u,
|
|
775
768
|
closeText: v,
|
|
776
|
-
genders:
|
|
769
|
+
genders: x,
|
|
777
770
|
activityLevels: p,
|
|
778
771
|
activityLevelText: d,
|
|
779
772
|
goalText: k,
|
|
780
|
-
goals:
|
|
773
|
+
goals: C,
|
|
781
774
|
title: h = "Daily calorie calculator",
|
|
782
775
|
subtitle: j = "Lorem ipsum dolor sit amet",
|
|
783
776
|
list: L = [
|
|
@@ -785,17 +778,17 @@ const ie = w((s, x) => {
|
|
|
785
778
|
"Ovdje može pisati zašto je bitno da znamo kolikanam je dnevna kalorijska potreba.",
|
|
786
779
|
"From certified dealers from all over Europe"
|
|
787
780
|
],
|
|
788
|
-
buttonText:
|
|
789
|
-
} = s, [W, $] = N(1), [b,
|
|
790
|
-
return /* @__PURE__ */ i(
|
|
791
|
-
/* @__PURE__ */ i(
|
|
781
|
+
buttonText: A = "Calculate calorie needs"
|
|
782
|
+
} = s, [W, $] = N(1), [b, I] = N(0);
|
|
783
|
+
return /* @__PURE__ */ i(Z, { ref: f, children: [
|
|
784
|
+
/* @__PURE__ */ i(q, { children: [
|
|
792
785
|
/* @__PURE__ */ a("div", { className: "header-title", children: h }),
|
|
793
786
|
/* @__PURE__ */ a("div", { className: "header-subtitle", children: j })
|
|
794
787
|
] }),
|
|
795
788
|
W === 1 && /* @__PURE__ */ a(
|
|
796
|
-
|
|
789
|
+
K,
|
|
797
790
|
{
|
|
798
|
-
buttonText:
|
|
791
|
+
buttonText: A,
|
|
799
792
|
onButtonAction: () => {
|
|
800
793
|
$(2);
|
|
801
794
|
},
|
|
@@ -803,7 +796,7 @@ const ie = w((s, x) => {
|
|
|
803
796
|
}
|
|
804
797
|
),
|
|
805
798
|
W === 2 && /* @__PURE__ */ a(
|
|
806
|
-
|
|
799
|
+
ne,
|
|
807
800
|
{
|
|
808
801
|
yearsText: e,
|
|
809
802
|
heightText: r,
|
|
@@ -812,33 +805,33 @@ const ie = w((s, x) => {
|
|
|
812
805
|
calculateText: u,
|
|
813
806
|
closeText: v,
|
|
814
807
|
onClose: () => $(1),
|
|
815
|
-
genders:
|
|
808
|
+
genders: x,
|
|
816
809
|
activityLevels: p,
|
|
817
810
|
activityLevelText: d,
|
|
818
811
|
goalText: k,
|
|
819
|
-
goals:
|
|
812
|
+
goals: C,
|
|
820
813
|
onCalculate: ({
|
|
821
|
-
gender:
|
|
822
|
-
year:
|
|
823
|
-
height:
|
|
824
|
-
weight:
|
|
825
|
-
activityLevel:
|
|
826
|
-
goal:
|
|
814
|
+
gender: M,
|
|
815
|
+
year: B,
|
|
816
|
+
height: V,
|
|
817
|
+
weight: E,
|
|
818
|
+
activityLevel: F,
|
|
819
|
+
goal: O
|
|
827
820
|
}) => {
|
|
828
|
-
const
|
|
829
|
-
gender:
|
|
830
|
-
age:
|
|
831
|
-
heightCm:
|
|
832
|
-
weightKg:
|
|
833
|
-
activityLevel:
|
|
834
|
-
goal:
|
|
821
|
+
const H = X({
|
|
822
|
+
gender: M,
|
|
823
|
+
age: B,
|
|
824
|
+
heightCm: V,
|
|
825
|
+
weightKg: E,
|
|
826
|
+
activityLevel: F,
|
|
827
|
+
goal: O
|
|
835
828
|
});
|
|
836
|
-
|
|
829
|
+
I(H), $(3);
|
|
837
830
|
}
|
|
838
831
|
}
|
|
839
832
|
),
|
|
840
833
|
W === 3 && /* @__PURE__ */ a(
|
|
841
|
-
|
|
834
|
+
se,
|
|
842
835
|
{
|
|
843
836
|
caloriesText: m,
|
|
844
837
|
carbsText: t,
|
|
@@ -853,7 +846,7 @@ const ie = w((s, x) => {
|
|
|
853
846
|
}
|
|
854
847
|
)
|
|
855
848
|
] });
|
|
856
|
-
}),
|
|
849
|
+
}), Ce = w((s, f) => /* @__PURE__ */ a(de, { ref: f, ...s }));
|
|
857
850
|
export {
|
|
858
|
-
|
|
851
|
+
Ce as default
|
|
859
852
|
};
|
package/dist/CheckBoxInput.cjs
CHANGED
|
@@ -115,4 +115,4 @@
|
|
|
115
115
|
& input:active ~ .checkmark {
|
|
116
116
|
${e=>t.getOutlineCss(e.theme)};
|
|
117
117
|
}
|
|
118
|
-
`,B=R.forwardRef((e,l)=>{const{containerRef:m,
|
|
118
|
+
`,B=R.forwardRef((e,l)=>{const{containerRef:m,disabled:b,readOnly:h,label:r,labelPosition:u="right",spaceBetween:g,customCheckmark:s,onChange:d,onFocus:a,onBlur:c,onClick:k,color:x="primary",size:C="small",className:w="",style:$={},...f}=e;var v={theme:V.useTheme(),size:C,color:x,disabled:b,readOnly:h};const z=n=>{c&&(c==null||c(n))},y=n=>{a&&(a==null||a(n))};return i.jsxs(I,{ref:m,direction:u,className:w,style:$,label:r,labelPosition:u,spaceBetween:g,tabIndex:-1,readOnly:h,onClick:k,...v,children:[i.jsx("input",{ref:l,type:"checkbox",onBlur:z,onFocus:y,disabled:b||h,onChange:n=>d==null?void 0:d(n),...f}),i.jsxs("div",{className:"checkmark",tabIndex:-1,children:[!s&&i.jsx("svg",{viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,disabled:!0,tabIndex:-1,className:"checked",children:i.jsx("path",{d:"M1 3.15385L2.89474 5L7 1",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",tabIndex:-1})}),i.jsx("svg",{width:"8",height:"2",viewBox:"0 0 8 2",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,disabled:!0,tabIndex:-1,className:"indeterminate",children:i.jsx("path",{d:"M1 1H7",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",tabIndex:-1,title:r})}),s&&i.jsx(i.Fragment,{children:s})]}),r&&i.jsx("div",{className:"checkbox-label",tabIndex:-1,children:r})]})});module.exports=B;
|
package/dist/CheckBoxInput.js
CHANGED
|
@@ -194,11 +194,9 @@ const W = (e) => e == "left" ? "row-reverse" : "row", n = (e, h) => `calc(${e.co
|
|
|
194
194
|
& input:active ~ .checkmark {
|
|
195
195
|
${(e) => x(e.theme)};
|
|
196
196
|
}
|
|
197
|
-
`,
|
|
197
|
+
`, H = I((e, h) => {
|
|
198
198
|
const {
|
|
199
199
|
containerRef: g,
|
|
200
|
-
id: P,
|
|
201
|
-
indeterminate: V,
|
|
202
200
|
disabled: b,
|
|
203
201
|
readOnly: l,
|
|
204
202
|
label: r,
|
|
@@ -215,7 +213,6 @@ const W = (e) => e == "left" ? "row-reverse" : "row", n = (e, h) => `calc(${e.co
|
|
|
215
213
|
size: C = "small",
|
|
216
214
|
className: v = "",
|
|
217
215
|
style: z = {},
|
|
218
|
-
children: p,
|
|
219
216
|
...y
|
|
220
217
|
} = e;
|
|
221
218
|
var O = { theme: R(), size: C, color: f, disabled: b, readOnly: l };
|
|
@@ -307,5 +304,5 @@ const W = (e) => e == "left" ? "row-reverse" : "row", n = (e, h) => `calc(${e.co
|
|
|
307
304
|
);
|
|
308
305
|
});
|
|
309
306
|
export {
|
|
310
|
-
|
|
307
|
+
H as default
|
|
311
308
|
};
|