@useloops/design-system 1.4.702 → 1.4.704

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.
Files changed (149) hide show
  1. package/dist/Platform.js +1 -1
  2. package/dist/esm/Platform.js +1 -1
  3. package/dist/esm/systems/Marketing/PlanFeatureTable/PlanFeatureTableSkeleton.js +1 -1
  4. package/dist/esm/systems/Marketing/PlanTierCard/PlanTierCard.js +1 -1
  5. package/dist/esm/systems/Marketing/PlanTierCard/PlanTierCardSkeleton.js +1 -1
  6. package/dist/esm/systems/Marketing/PlanTierCard/SavingsPill.js +1 -1
  7. package/dist/esm/systems/Platform/AIInsight/AIInsight.js +1 -1
  8. package/dist/esm/systems/Platform/AISummary/AISummary.js +1 -1
  9. package/dist/esm/systems/Platform/AIWrittenByLockUp/AiWrittenByLockUp.js +1 -1
  10. package/dist/esm/systems/Platform/AssetItem/AssetItem.js +1 -1
  11. package/dist/esm/systems/Platform/AssetItem/_partials/AssetItemMenu.js +1 -1
  12. package/dist/esm/systems/Platform/AssetItem/_partials/CoverTypeIndicator.js +1 -1
  13. package/dist/esm/systems/Platform/AssetItem/_partials/ImageTile.js +1 -1
  14. package/dist/esm/systems/Platform/CommentCard/CommentCard.js +1 -1
  15. package/dist/esm/systems/Platform/DataPointInfo/DataPointInfo.js +1 -1
  16. package/dist/esm/systems/Platform/DataPointInfo/_partials/DataSourceItem.js +1 -1
  17. package/dist/esm/systems/Platform/DataPointInfo/_partials/EmptyStateMessage.js +1 -1
  18. package/dist/esm/systems/Platform/DataPointInfo/_partials/StatValue.js +1 -1
  19. package/dist/esm/systems/Platform/DemographicSelectionSection/DemographicSelectionSection.js +1 -1
  20. package/dist/esm/systems/Platform/EmojiListItem/EmojiListItem.js +1 -1
  21. package/dist/esm/systems/Platform/EmojiListItem/_partials/StyledSurface.js +1 -1
  22. package/dist/esm/systems/Platform/EmojiQuestionEditorOption/EmojiQuestionEditorOption.js +1 -1
  23. package/dist/esm/systems/Platform/EmptyStateCard/EmptyStateCard.js +1 -1
  24. package/dist/esm/systems/Platform/ExtendedTestStatus/ExtendedTestStatus.js +1 -1
  25. package/dist/esm/systems/Platform/FilterCount/FilterCount.js +1 -1
  26. package/dist/esm/systems/Platform/FilterGroupAccordion/FilterGroupAccordion.js +1 -1
  27. package/dist/esm/systems/Platform/FilterPyramidGraph/FilterPyramidGraph.js +1 -1
  28. package/dist/esm/systems/Platform/FilterRow/FilterRow.js +1 -1
  29. package/dist/esm/systems/Platform/FilteredItemsCard/FilteredItemsCard.js +1 -1
  30. package/dist/esm/systems/Platform/GraphBar/_partials/UnitText/UnitText.js +1 -1
  31. package/dist/esm/systems/Platform/Header/Header.js +1 -1
  32. package/dist/esm/systems/Platform/KpiDataPopover/KpiDataPopover.js +1 -1
  33. package/dist/esm/systems/Platform/KpiDataPopover/KpiDetails.js +1 -1
  34. package/dist/esm/systems/Platform/KpiDataPopover/QuestionStatsCard.js +1 -1
  35. package/dist/esm/systems/Platform/LikertGraph/_partials/LikertActionController/LikertActionController.js +1 -1
  36. package/dist/esm/systems/Platform/LikertGraph/_partials/LikertGraphBar/LikertGraphBar.js +1 -1
  37. package/dist/esm/systems/Platform/LinkExpired/LinkExpired.js +1 -1
  38. package/dist/esm/systems/Platform/LoopItem/LoopItem.js +1 -1
  39. package/dist/esm/systems/Platform/LoopItemEmpty/LoopItemEmpty.js +1 -1
  40. package/dist/esm/systems/Platform/LoopVideoNudge/LoopVideoNudge.js +1 -1
  41. package/dist/esm/systems/Platform/MFACodeVerify/MFACodeVerify.js +1 -1
  42. package/dist/esm/systems/Platform/MiniResultCard/MiniResultCard.js +1 -1
  43. package/dist/esm/systems/Platform/Navigation/Navigation.js +1 -1
  44. package/dist/esm/systems/Platform/PaginationControl/PaginationControl.js +1 -1
  45. package/dist/esm/systems/Platform/PinchIndicator/PinchIndicator.js +1 -1
  46. package/dist/esm/systems/Platform/PinchIndicator/_partials/StyledSurface/StyledSurface.js +1 -1
  47. package/dist/esm/systems/Platform/ProjectItem/ProjectItemGridView.js +1 -1
  48. package/dist/esm/systems/Platform/ProjectItem/ProjectItemListView.js +1 -1
  49. package/dist/esm/systems/Platform/ProjectItem/_partials/NoThumbnailPlaceholder.js +1 -1
  50. package/dist/esm/systems/Platform/ProjectItem/_partials/styledPartials.js +1 -1
  51. package/dist/esm/systems/Platform/QuestionBar/QuestionBar.js +1 -1
  52. package/dist/esm/systems/Platform/QuestionBlock/QuestionBlock.js +1 -1
  53. package/dist/esm/systems/Platform/QuestionSelector/QuestionSelector.js +1 -1
  54. package/dist/esm/systems/Platform/ScrollIndicator/ScrollIndicator.js +1 -1
  55. package/dist/esm/systems/Platform/SearchInput/SearchInput.js +1 -1
  56. package/dist/esm/systems/Platform/SectionHeader/SectionHeader.js +1 -1
  57. package/dist/esm/systems/Platform/SentimentArrow/SentimentArrow.js +1 -1
  58. package/dist/esm/systems/Platform/SliderGraph/_partials/SliderGraphBar/SliderGraphBar.js +1 -1
  59. package/dist/esm/systems/Platform/SliderGraph/_partials/SliderGraphYAxis/SliderGraphYAxis.js +1 -1
  60. package/dist/esm/systems/Platform/Tab/Tab.js +1 -1
  61. package/dist/esm/systems/Platform/TestItem/TestItem.js +1 -1
  62. package/dist/esm/systems/Platform/TestStatus/TestStatus.js +1 -1
  63. package/dist/esm/systems/Platform/TimeToFindGraph/TimeToFindGraph.js +1 -1
  64. package/dist/esm/systems/Platform/TimeToFindResult/TimeToFindResult.js +1 -1
  65. package/dist/esm/systems/Platform/VideoControls/VideoControls.js +1 -1
  66. package/dist/esm/systems/Platform/VideoControls2/VideoControls2.js +1 -1
  67. package/dist/esm/systems/Platform/VideoControls2/components/Timeline/components/FullscreenControls/FullscreenControls.js +1 -1
  68. package/dist/esm/systems/WebCore/NavigationButton/NavigationButton.js +1 -1
  69. package/dist/esm/systems/WebCore/Nudge/Nudge.js +1 -1
  70. package/dist/esm/systems/WebCore/RankItem/RankItem.js +1 -1
  71. package/dist/esm/systems/WebCore/SortableList/SortableList.js +1 -1
  72. package/dist/esm/systems/WebCore/SortableList/components/SortableItem/SortableItem.js +1 -1
  73. package/dist/esm/systems/WebCore/UserMenu/UserMenu.js +1 -1
  74. package/dist/systems/Marketing/PlanFeatureTable/PlanFeatureTableSkeleton.js +1 -1
  75. package/dist/systems/Marketing/PlanTierCard/PlanTierCard.js +1 -1
  76. package/dist/systems/Marketing/PlanTierCard/PlanTierCardSkeleton.js +1 -1
  77. package/dist/systems/Marketing/PlanTierCard/SavingsPill.js +1 -1
  78. package/dist/systems/Platform/AIInsight/AIInsight.js +1 -1
  79. package/dist/systems/Platform/AISummary/AISummary.js +1 -1
  80. package/dist/systems/Platform/AIWrittenByLockUp/AiWrittenByLockUp.js +1 -1
  81. package/dist/systems/Platform/AssetItem/AssetItem.js +1 -1
  82. package/dist/systems/Platform/AssetItem/_partials/AssetItemMenu.js +1 -1
  83. package/dist/systems/Platform/AssetItem/_partials/CoverTypeIndicator.js +1 -1
  84. package/dist/systems/Platform/AssetItem/_partials/ImageTile.js +1 -1
  85. package/dist/systems/Platform/CommentCard/CommentCard.js +1 -1
  86. package/dist/systems/Platform/DataPointInfo/DataPointInfo.js +1 -1
  87. package/dist/systems/Platform/DataPointInfo/_partials/DataSourceItem.js +1 -1
  88. package/dist/systems/Platform/DataPointInfo/_partials/EmptyStateMessage.js +1 -1
  89. package/dist/systems/Platform/DataPointInfo/_partials/StatValue.js +1 -1
  90. package/dist/systems/Platform/DemographicSelectionSection/DemographicSelectionSection.js +1 -1
  91. package/dist/systems/Platform/EmojiListItem/EmojiListItem.js +1 -1
  92. package/dist/systems/Platform/EmojiListItem/_partials/StyledSurface.js +1 -1
  93. package/dist/systems/Platform/EmojiQuestionEditorOption/EmojiQuestionEditorOption.js +1 -1
  94. package/dist/systems/Platform/EmptyStateCard/EmptyStateCard.js +1 -1
  95. package/dist/systems/Platform/ExtendedTestStatus/ExtendedTestStatus.js +1 -1
  96. package/dist/systems/Platform/FilterCount/FilterCount.js +1 -1
  97. package/dist/systems/Platform/FilterGroupAccordion/FilterGroupAccordion.js +1 -1
  98. package/dist/systems/Platform/FilterPyramidGraph/FilterPyramidGraph.js +1 -1
  99. package/dist/systems/Platform/FilterRow/FilterRow.js +1 -1
  100. package/dist/systems/Platform/FilteredItemsCard/FilteredItemsCard.js +1 -1
  101. package/dist/systems/Platform/GraphBar/_partials/UnitText/UnitText.js +1 -1
  102. package/dist/systems/Platform/Header/Header.js +1 -1
  103. package/dist/systems/Platform/KpiDataPopover/KpiDataPopover.js +1 -1
  104. package/dist/systems/Platform/KpiDataPopover/KpiDetails.js +1 -1
  105. package/dist/systems/Platform/KpiDataPopover/QuestionStatsCard.js +1 -1
  106. package/dist/systems/Platform/LikertGraph/_partials/LikertActionController/LikertActionController.js +1 -1
  107. package/dist/systems/Platform/LikertGraph/_partials/LikertGraphBar/LikertGraphBar.js +1 -1
  108. package/dist/systems/Platform/LinkExpired/LinkExpired.js +1 -1
  109. package/dist/systems/Platform/LoopItem/LoopItem.js +1 -1
  110. package/dist/systems/Platform/LoopItemEmpty/LoopItemEmpty.js +1 -1
  111. package/dist/systems/Platform/LoopVideoNudge/LoopVideoNudge.js +1 -1
  112. package/dist/systems/Platform/MFACodeVerify/MFACodeVerify.js +1 -1
  113. package/dist/systems/Platform/MiniResultCard/MiniResultCard.js +1 -1
  114. package/dist/systems/Platform/Navigation/Navigation.d.ts +1 -0
  115. package/dist/systems/Platform/Navigation/Navigation.js +1 -1
  116. package/dist/systems/Platform/PaginationControl/PaginationControl.js +1 -1
  117. package/dist/systems/Platform/PinchIndicator/PinchIndicator.js +1 -1
  118. package/dist/systems/Platform/PinchIndicator/_partials/StyledSurface/StyledSurface.js +1 -1
  119. package/dist/systems/Platform/ProjectItem/ProjectItemGridView.js +1 -1
  120. package/dist/systems/Platform/ProjectItem/ProjectItemListView.js +1 -1
  121. package/dist/systems/Platform/ProjectItem/_partials/NoThumbnailPlaceholder.js +1 -1
  122. package/dist/systems/Platform/ProjectItem/_partials/styledPartials.js +1 -1
  123. package/dist/systems/Platform/QuestionBar/QuestionBar.js +1 -1
  124. package/dist/systems/Platform/QuestionBlock/QuestionBlock.js +1 -1
  125. package/dist/systems/Platform/QuestionSelector/QuestionSelector.js +1 -1
  126. package/dist/systems/Platform/ScrollIndicator/ScrollIndicator.js +1 -1
  127. package/dist/systems/Platform/SearchInput/SearchInput.js +1 -1
  128. package/dist/systems/Platform/SectionHeader/SectionHeader.js +1 -1
  129. package/dist/systems/Platform/SentimentArrow/SentimentArrow.js +1 -1
  130. package/dist/systems/Platform/SliderGraph/_partials/SliderGraphBar/SliderGraphBar.js +1 -1
  131. package/dist/systems/Platform/SliderGraph/_partials/SliderGraphYAxis/SliderGraphYAxis.js +1 -1
  132. package/dist/systems/Platform/Tab/Tab.js +1 -1
  133. package/dist/systems/Platform/TestItem/TestItem.js +1 -1
  134. package/dist/systems/Platform/TestStatus/TestStatus.js +1 -1
  135. package/dist/systems/Platform/TimeToFindGraph/TimeToFindGraph.js +1 -1
  136. package/dist/systems/Platform/TimeToFindResult/TimeToFindResult.js +1 -1
  137. package/dist/systems/Platform/VideoControls/VideoControls.js +1 -1
  138. package/dist/systems/Platform/VideoControls2/VideoControls2.js +1 -1
  139. package/dist/systems/Platform/VideoControls2/components/Timeline/components/FullscreenControls/FullscreenControls.js +1 -1
  140. package/dist/systems/WebCore/NavigationButton/NavigationButton.d.ts +1 -0
  141. package/dist/systems/WebCore/NavigationButton/NavigationButton.js +1 -1
  142. package/dist/systems/WebCore/Nudge/Nudge.d.ts +1 -0
  143. package/dist/systems/WebCore/Nudge/Nudge.js +1 -1
  144. package/dist/systems/WebCore/RankItem/RankItem.js +1 -1
  145. package/dist/systems/WebCore/SortableList/SortableList.js +1 -1
  146. package/dist/systems/WebCore/SortableList/components/SortableItem/SortableItem.js +1 -1
  147. package/dist/systems/WebCore/UserMenu/UserMenu.js +1 -1
  148. package/dist/theme/theme.hooks.d.ts +1 -1
  149. package/package.json +1 -1
@@ -1 +1 @@
1
- "use strict";var i=require("react/jsx-runtime"),r=require("@mui/material"),e=require("../Popper/Popper.js"),s=require("../Surface/Surface.js"),t=require("./NudgeBox.js"),n=require("./NudgeButton.js");module.exports=({children:d,description:a,title:o,navigationSizing:l})=>"sm"===l?i.jsx(e,{popperProps:{placement:"right-end"},surfaceProps:{variation:"raised",sx:{maxWidth:200,p:1,ml:1}},bindOn:["trigger"],trigger:i.jsx(r.Grow,{in:!0,style:{transformOrigin:"0 100%"},children:i.jsx(r.Box,{children:i.jsx(n,{notification:!0})})}),children:i.jsx(t,{description:a,title:o,children:d})}):i.jsx(r.Grow,{in:!0,style:{transformOrigin:"0 100%",transitionDelay:"100ms"},children:i.jsx(r.Box,{sx:{display:"flex"},children:i.jsx(s,{variation:"raised",borderradius:"md",sx:{maxWidth:200,minHeight:40,width:"100%",p:1},children:i.jsx(t,{description:a,title:o,children:d})})})});
1
+ "use strict";var i=require("react/jsx-runtime"),r=require("@mui/material"),e=require("../Popper/Popper.js"),s=require("../Surface/Surface.js"),t=require("./NudgeBox.js"),n=require("./NudgeButton.js");module.exports=({children:o,description:d,title:a,navigationSizing:l,offset:x=[0,12]})=>"sm"===l?i.jsx(e,{popperProps:{placement:"right-end",modifiers:x&&[{name:"offset",options:{offset:x}}]},surfaceProps:{variation:"raised",sx:{maxWidth:200,p:1}},bindOn:["trigger"],trigger:i.jsx(r.Grow,{in:!0,style:{transformOrigin:"0 100%"},children:i.jsx(r.Box,{children:i.jsx(n,{notification:!0})})}),children:i.jsx(t,{description:d,title:a,children:o})}):i.jsx(r.Grow,{in:!0,style:{transformOrigin:"0 100%",transitionDelay:"100ms"},children:i.jsx(r.Box,{sx:{display:"flex"},children:i.jsx(s,{variation:"raised",borderradius:"md",sx:{maxWidth:200,minHeight:40,width:"100%",p:1},children:i.jsx(t,{description:d,title:a,children:o})})})});
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),i=require("@mui/icons-material"),r=require("@mui/material"),s=require("../../../utils/breakpoint.hook.js");require("react");var t=require("../../BrandCore/Icon/Icon.js"),l=require("../../BrandCore/primitiveVariables.js");require("../SelectItem/SelectItem.js");var a=require("../Select/Select.js"),n=require("./RankItemContainer.js"),o=require("./RankItemLabel.js");module.exports=({label:c="Placeholder",disabled:d,onChange:u,options:m,fullWidth:g,sizing:p="lg"})=>{const h=r.useTheme(),x=m.map(e=>e.label).indexOf(c),b=s.useBreakpoint();return e.jsx(n,{disabled:d,fullWidth:g,sizing:p,children:e.jsxs(r.Stack,{sx:{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",position:"relative",zIndex:1},children:[e.jsxs(r.Box,{sx:{display:"flex",alignItems:"center","& svg":{fill:h.custom.palette.icon.secondary}},children:[e.jsx(i.DragHandle,{"aria-label":"drag-handle",sx:{width:t.iconSizeMap.lg,height:t.iconSizeMap.lg,mr:h.custom.padding.sm}}),e.jsx(o,{align:"left",disabled:d,children:c})]}),"lg"===p?e.jsx(a,{name:"rank",sizing:"sm"===b?"md":"xs",selections:m.map((e,i)=>({label:`${i+1}`,value:`${i}`})),disabled:d,value:`${x}`,onChange:function(e){const i=x,r=Number(e.target.value),s=m;let t=1;const l=s.splice(i,t)[0];t=0,s.splice(r,t,l),u(s)},MenuProps:{anchorOrigin:{vertical:l.space[400],horizontal:"center"}},sx:{[`&.${r.selectClasses.root}`]:{width:6*l.base,textAlign:"center"},[`& .${r.typographyClasses.root}`]:{width:"fit-content",overflow:"visible"}}}):void 0]})})};
1
+ "use strict";var e=require("react/jsx-runtime"),i=require("@mui/icons-material"),r=require("@mui/material"),t=require("../SortableList/components/SortableItem/SortableItem.js"),s=require("../../../utils/breakpoint.hook.js");require("react");var l=require("../../BrandCore/Icon/Icon.js"),a=require("../../BrandCore/primitiveVariables.js");require("../SelectItem/SelectItem.js");var n=require("../Select/Select.js"),o=require("./RankItemContainer.js"),c=require("./RankItemLabel.js");module.exports=({label:d="Placeholder",disabled:u,onChange:m,options:x,fullWidth:g,sizing:p="lg"})=>{const b=r.useTheme(),h=x.map(e=>e.label).indexOf(d),j=s.useBreakpoint(),{attributes:f,listeners:v,ref:I,isMobile:q}=t.useSortableItemContext();return e.jsx(o,{disabled:u,fullWidth:g,sizing:p,children:e.jsxs(r.Stack,{sx:{display:"flex",justifyContent:"space-between",flexDirection:"row",alignItems:"center",position:"relative",zIndex:1},children:[e.jsxs(r.Box,{sx:{display:"flex",alignItems:"center","& svg":{fill:b.custom.palette.icon.secondary}},children:[e.jsx(r.Box,{ref:q?I:void 0,...q?f:{},...q?v:{},sx:{display:"flex",alignItems:"center",cursor:"grab",touchAction:q?"none":void 0},children:e.jsx(i.DragHandle,{"aria-label":"drag-handle",sx:{width:l.iconSizeMap.lg,height:l.iconSizeMap.lg,mr:b.custom.padding.sm}})}),e.jsx(c,{align:"left",disabled:u,children:d})]}),"lg"===p?e.jsx(n,{name:"rank",sizing:"sm"===j?"md":"xs",selections:x.map((e,i)=>({label:`${i+1}`,value:`${i}`})),disabled:u,value:`${h}`,onChange:function(e){const i=h,r=Number(e.target.value),t=x;let s=1;const l=t.splice(i,s)[0];s=0,t.splice(r,s,l),m(t)},MenuProps:{anchorOrigin:{vertical:a.space[400],horizontal:"center"}},sx:{[`&.${r.selectClasses.root}`]:{width:6*a.base,textAlign:"center"},[`& .${r.typographyClasses.root}`]:{width:"fit-content",overflow:"visible"}}}):void 0]})})};
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("@dnd-kit/core"),r=require("@dnd-kit/sortable"),n=require("@mui/material"),a=require("react"),o=require("./components/SortableItem/SortableItem.js"),i=require("./components/SortableOverlay/SortableOverlay.js");const s=({nativeEvent:e})=>{let t=e.target;for(;t;){if(t.dataset.noDnd)return!1;t=t.parentElement}return!0};class d extends t.MouseSensor{static activators=[{eventName:"onMouseDown",handler:s}]}class l extends t.TouchSensor{static activators=[{eventName:"onTouchStart",handler:s}]}function c({items:o,onChange:s,renderItem:c,disabled:u,direction:m}){if(!o)return;const[S,g]=a.useState(null),v=a.useMemo(()=>o.find(e=>e?.id===S?.id),[S,o]),x=n.useTheme(),y=n.useMediaQuery(x.breakpoints.down("md")),b=t.useSensors(t.useSensor(d,{activationConstraint:{distance:{y:2}}}),t.useSensor(l,{activationConstraint:{delay:y?100:0,tolerance:5}}),t.useSensor(t.KeyboardSensor,{coordinateGetter:r.sortableKeyboardCoordinates}));return e.jsxs(t.DndContext,{measuring:{droppable:{strategy:t.MeasuringStrategy.Always}},sensors:b,onDragStart:({active:e})=>{g(e)},onDragEnd:({active:e,over:t})=>{if(t&&e.id!==t?.id){const n=o.findIndex(({id:t})=>t===e.id),a=o.findIndex(({id:e})=>e===t.id);s(r.arrayMove(o,n,a))}g(null)},onDragCancel:()=>{g(null)},children:[e.jsx(r.SortableContext,{items:o,disabled:u,strategy:"horizontal"===m?r.horizontalListSortingStrategy:r.verticalListSortingStrategy,children:e.jsx(n.Stack,{sx:{..."horizontal"===m&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:o.map(t=>e.jsx(a.Fragment,{children:c(t)},t.id))})}),e.jsx(i.SortableOverlay,{children:v?c(v,!0,!!S):null})]})}c.Item=o.SortableItem,c.DragHandle=o.DragHandle,module.exports=c;
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("@dnd-kit/core"),r=require("@dnd-kit/sortable"),n=require("@mui/material"),a=require("react"),i=require("./components/SortableItem/SortableItem.js"),o=require("./components/SortableOverlay/SortableOverlay.js");const s=({nativeEvent:e})=>{let t=e.target;for(;t;){if(t.dataset.noDnd)return!1;t=t.parentElement}return!0};class d extends t.MouseSensor{static activators=[{eventName:"onMouseDown",handler:s}]}class l extends t.TouchSensor{static activators=[{eventName:"onTouchStart",handler:s}]}function c({items:i,onChange:s,renderItem:c,disabled:u,direction:m}){if(!i)return;const[S,g]=a.useState(null),v=a.useMemo(()=>i.find(e=>e?.id===S?.id),[S,i]),x=n.useTheme(),y=n.useMediaQuery(x.breakpoints.down("md")),b=t.useSensors(t.useSensor(d,{activationConstraint:{distance:{y:2}}}),t.useSensor(l,{activationConstraint:y?{distance:{y:2}}:{delay:0,tolerance:5}}),t.useSensor(t.KeyboardSensor,{coordinateGetter:r.sortableKeyboardCoordinates}));return e.jsxs(t.DndContext,{measuring:{droppable:{strategy:t.MeasuringStrategy.Always}},sensors:b,onDragStart:({active:e})=>{g(e)},onDragEnd:({active:e,over:t})=>{if(t&&e.id!==t?.id){const n=i.findIndex(({id:t})=>t===e.id),a=i.findIndex(({id:e})=>e===t.id);s(r.arrayMove(i,n,a))}g(null)},onDragCancel:()=>{g(null)},children:[e.jsx(r.SortableContext,{items:i,disabled:u,strategy:"horizontal"===m?r.horizontalListSortingStrategy:r.verticalListSortingStrategy,children:e.jsx(n.Stack,{sx:{..."horizontal"===m&&{flexDirection:"row"},display:"flex",m:0,gap:1,padding:0,alignContent:"flex-start"},children:i.map(t=>e.jsx(a.Fragment,{children:c(t)},t.id))})}),e.jsx(o.SortableOverlay,{children:v?c(v,!0,!!S):null})]})}c.Item=i.SortableItem,c.DragHandle=i.DragHandle,module.exports=c;
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("@dnd-kit/sortable"),r=require("@dnd-kit/utilities"),i=require("@mui/material"),s=require("react");const a=s.createContext({attributes:{},listeners:void 0,ref(){}}),n=e=>t.defaultAnimateLayoutChanges({...e,wasDragging:!0});exports.DragHandle=function(){const{attributes:t,listeners:r,ref:n}=s.useContext(a);return e.jsx(i.Box,{...t,...r,ref:n,children:e.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:e.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"})})})},exports.SortableItem=function({children:o,top:u,bottom:l,id:d}){const{attributes:c,isDragging:m,listeners:x,setNodeRef:f,setActivatorNodeRef:g,transform:h,transition:b}=t.useSortable({id:d,animateLayoutChanges:n}),v=s.useMemo(()=>({attributes:c,listeners:x,ref:g}),[c,x,g]),A={opacity:m?.4:void 0,transform:r.CSS.Translate.toString(h),transition:b};return e.jsx(a.Provider,{value:v,children:e.jsxs(i.Stack,{className:"SortableItem",...c,sx:{position:"relative",...A,width:"100%"},ref:f,children:[u&&u,e.jsx(i.Box,{...x,sx:{display:"flex",cursor:"grab"},children:o}),l&&l]})})};
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("@dnd-kit/sortable"),r=require("@dnd-kit/utilities"),i=require("@mui/material"),s=require("react");const a=s.createContext({attributes:{},listeners:void 0,ref(){},isMobile:!1}),o=e=>t.defaultAnimateLayoutChanges({...e,wasDragging:!0});exports.DragHandle=function(){const{attributes:t,listeners:r,ref:o}=s.useContext(a);return e.jsx(i.Box,{...t,...r,ref:o,children:e.jsx("svg",{viewBox:"0 0 20 20",width:"12",children:e.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"})})})},exports.SortableItem=function({children:n,top:u,bottom:l,id:d}){const{attributes:c,isDragging:m,listeners:x,setNodeRef:b,setActivatorNodeRef:f,transform:g,transition:h}=t.useSortable({id:d,animateLayoutChanges:o}),p=i.useTheme(),v=i.useMediaQuery(p.breakpoints.down("md")),A=s.useMemo(()=>({attributes:c,listeners:x,ref:f,isMobile:v}),[c,x,f,v]),S={opacity:m?.4:void 0,transform:r.CSS.Translate.toString(g),transition:h};return e.jsx(a.Provider,{value:A,children:e.jsxs(i.Stack,{className:"SortableItem",...c,sx:{position:"relative",...S,width:"100%"},ref:b,children:[u&&u,e.jsx(i.Box,{...v?{}:x,sx:{display:"flex",cursor:v?"default":"grab"},children:n}),l&&l]})})},exports.useSortableItemContext=()=>s.useContext(a);
@@ -1 +1 @@
1
- "use strict";var e=require("react/jsx-runtime"),t=require("material-ui-popup-state/hooks"),a=require("../Menu/Menu.js"),r=require("./UserMenuButton.js");module.exports=({accent:n,avatar:u,avatarIcon:i,email:s,menuItems:o,name:m,offset:c=[0,8],placement:p="right-end",rounded:d,width:l=192,hoverLeaveDelay:v=0})=>{const h=t.usePopupState({variant:"popper"});return e.jsx(a.default,{placement:p,offset:c,menuItems:o,state:h,hoverLeaveDelay:v,trigger:e.jsx(r,{active:h.isOpen,accent:n,avatar:u,avatarIcon:i,email:s,name:m,rounded:d,withMenu:!!o?.length}),width:l,children:e.jsx(e.Fragment,{children:o?.map((e,t)=>a.mapMenuItems(e,t,h,void 0,v,h))})})};
1
+ "use strict";var e=require("react/jsx-runtime"),t=require("material-ui-popup-state/hooks"),a=require("../Menu/Menu.js"),r=require("./UserMenuButton.js");module.exports=({accent:n,avatar:s,avatarIcon:u,email:i,menuItems:o,name:m,offset:c=[0,12],placement:p="right-end",rounded:l,width:d=192,hoverLeaveDelay:v=0})=>{const h=t.usePopupState({variant:"popper"});return e.jsx(a.default,{placement:p,offset:c,menuItems:o,state:h,hoverLeaveDelay:v,slotProps:{surface:{sx:{ml:0}}},trigger:e.jsx(r,{active:h.isOpen,accent:n,avatar:s,avatarIcon:u,email:i,name:m,rounded:l,withMenu:!!o?.length}),width:d,children:e.jsx(e.Fragment,{children:o?.map((e,t)=>a.mapMenuItems(e,t,h,void 0,v,h))})})};
@@ -4,7 +4,7 @@ import { PaletteMode, Direction } from '@mui/material';
4
4
  import { ScreenSize, CustomTheme } from './types.js';
5
5
 
6
6
  declare const useThemeBuilder: (initialMode?: PaletteMode, initialScreenSize?: ScreenSize, initialDirection?: Direction) => {
7
- breakpoint: "" | "sm" | "md" | "lg" | "xl";
7
+ breakpoint: "" | "sm" | "lg" | "md" | "xl";
8
8
  custom: CustomTheme;
9
9
  gridOverlayVisible: boolean;
10
10
  mode: PaletteMode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useloops/design-system",
3
- "version": "1.4.702",
3
+ "version": "1.4.704",
4
4
  "description": "The official React based Loops design system",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/esm/index.js",