@useloops/design-system 1.4.637 → 1.4.639
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/BrandCore/Icon.d.ts +4 -3
- package/dist/BrandCore/Icon.js +1 -1
- package/dist/Platform.js +1 -1
- package/dist/WebCore/AutocompleteBaseField.d.ts +2 -0
- package/dist/WebCore/AutocompleteBaseField.js +1 -0
- package/dist/WebCore/AutocompleteField.d.ts +2 -0
- package/dist/WebCore/AutocompleteField.js +1 -0
- package/dist/WebCore/AutocompleteFieldMultiple.d.ts +2 -0
- package/dist/WebCore/AutocompleteFieldMultiple.js +1 -0
- package/dist/WebCore/AutocompleteSingle.d.ts +2 -0
- package/dist/WebCore/AutocompleteSingle.js +1 -0
- package/dist/WebCore/ButtonBase.d.ts +1 -1
- package/dist/WebCore/ButtonBase.js +1 -1
- package/dist/WebCore/FormGenerator.d.ts +1 -1
- package/dist/WebCore/Select.d.ts +2 -3
- package/dist/WebCore/Select.js +1 -1
- package/dist/WebCore/SelectItem.d.ts +2 -0
- package/dist/WebCore/SelectItem.js +1 -0
- package/dist/WebCore.d.ts +10 -4
- package/dist/WebCore.js +1 -1
- package/dist/esm/BrandCore/Icon.js +1 -1
- package/dist/esm/Platform.js +1 -1
- package/dist/esm/WebCore/AutocompleteBaseField.js +1 -0
- package/dist/esm/WebCore/AutocompleteField.js +1 -0
- package/dist/esm/WebCore/AutocompleteFieldMultiple.js +1 -0
- package/dist/esm/WebCore/AutocompleteSingle.js +1 -0
- package/dist/esm/WebCore/ButtonBase.js +1 -1
- package/dist/esm/WebCore/Select.js +1 -1
- package/dist/esm/WebCore/SelectItem.js +1 -0
- package/dist/esm/WebCore.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/systems/BrandCore/Icon/Icon.js +1 -1
- package/dist/esm/systems/BrandCore/Icon/components/MicrophoneOff.js +1 -0
- package/dist/esm/systems/Marketing/PlanFeatureTable/PlanFeatureTableSkeleton.js +1 -1
- package/dist/esm/systems/Marketing/PlanTierCard/PlanTierCard.js +1 -1
- package/dist/esm/systems/Marketing/PlanTierCard/PlanTierCardSkeleton.js +1 -1
- package/dist/esm/systems/Marketing/PlanTierCard/SavingsPill.js +1 -1
- package/dist/esm/systems/Platform/AIInsight/AIInsight.js +1 -1
- package/dist/esm/systems/Platform/AISummary/AISummary.js +1 -1
- package/dist/esm/systems/Platform/AIWrittenByLockUp/AiWrittenByLockUp.js +1 -1
- package/dist/esm/systems/Platform/AssetItem/AssetItem.js +1 -1
- package/dist/esm/systems/Platform/AssetItem/_partials/AssetItemMenu.js +1 -1
- package/dist/esm/systems/Platform/AssetItem/_partials/CoverTypeIndicator.js +1 -1
- package/dist/esm/systems/Platform/AssetItem/_partials/ImageTile.js +1 -1
- package/dist/esm/systems/Platform/CommentCard/CommentCard.js +1 -1
- package/dist/esm/systems/Platform/DataPointInfo/DataPointInfo.js +1 -1
- package/dist/esm/systems/Platform/DataPointInfo/_partials/DataSourceItem.js +1 -1
- package/dist/esm/systems/Platform/DataPointInfo/_partials/EmptyStateMessage.js +1 -1
- package/dist/esm/systems/Platform/DataPointInfo/_partials/StatValue.js +1 -1
- package/dist/esm/systems/Platform/DemographicSelectionSection/DemographicSelectionSection.js +1 -1
- package/dist/esm/systems/Platform/EmojiListItem/EmojiListItem.js +1 -1
- package/dist/esm/systems/Platform/EmojiListItem/_partials/StyledSurface.js +1 -1
- package/dist/esm/systems/Platform/EmojiQuestionEditorOption/EmojiQuestionEditorOption.js +1 -1
- package/dist/esm/systems/Platform/EmptyStateCard/EmptyStateCard.js +1 -1
- package/dist/esm/systems/Platform/ExtendedTestStatus/ExtendedTestStatus.js +1 -1
- package/dist/esm/systems/Platform/FilterCount/FilterCount.js +1 -1
- package/dist/esm/systems/Platform/FilterGroupAccordion/FilterGroupAccordion.js +1 -1
- package/dist/esm/systems/Platform/FilterPyramidGraph/FilterPyramidGraph.js +1 -1
- package/dist/esm/systems/Platform/FilterRow/FilterRow.js +1 -1
- package/dist/esm/systems/Platform/FilteredItemsCard/FilteredItemsCard.js +1 -1
- package/dist/esm/systems/Platform/GraphBar/_partials/UnitText/UnitText.js +1 -1
- package/dist/esm/systems/Platform/Header/Header.js +1 -1
- package/dist/esm/systems/Platform/KpiDataPopover/KpiDataPopover.js +1 -1
- package/dist/esm/systems/Platform/KpiDataPopover/KpiDetails.js +1 -1
- package/dist/esm/systems/Platform/KpiDataPopover/QuestionStatsCard.js +1 -1
- package/dist/esm/systems/Platform/LikertGraph/_partials/LikertActionController/LikertActionController.js +1 -1
- package/dist/esm/systems/Platform/LikertGraph/_partials/LikertGraphBar/LikertGraphBar.js +1 -1
- package/dist/esm/systems/Platform/LinkExpired/LinkExpired.js +1 -1
- package/dist/esm/systems/Platform/LoopItem/LoopItem.js +1 -1
- package/dist/esm/systems/Platform/LoopItem/_partials/styledPartials.js +1 -1
- package/dist/esm/systems/Platform/LoopItemEmpty/LoopItemEmpty.js +1 -1
- package/dist/esm/systems/Platform/MFACodeVerify/MFACodeVerify.js +1 -1
- package/dist/esm/systems/Platform/MiniResultCard/MiniResultCard.js +1 -1
- package/dist/esm/systems/Platform/PaginationControl/PaginationControl.js +1 -1
- package/dist/esm/systems/Platform/ProjectItem/ProjectItemGridView.js +1 -1
- package/dist/esm/systems/Platform/ProjectItem/ProjectItemListView.js +1 -1
- package/dist/esm/systems/Platform/ProjectItem/_partials/NoThumbnailPlaceholder.js +1 -1
- package/dist/esm/systems/Platform/ProjectItem/_partials/styledPartials.js +1 -1
- package/dist/esm/systems/Platform/QuestionBar/QuestionBar.js +1 -1
- package/dist/esm/systems/Platform/QuestionBlock/QuestionBlock.js +1 -1
- package/dist/esm/systems/Platform/QuestionSelector/QuestionSelector.js +1 -1
- package/dist/esm/systems/Platform/ScrollIndicator/ScrollIndicator.js +1 -1
- package/dist/esm/systems/Platform/SearchInput/SearchInput.js +1 -1
- package/dist/esm/systems/Platform/SectionHeader/SectionHeader.js +1 -1
- package/dist/esm/systems/Platform/SentimentArrow/SentimentArrow.js +1 -1
- package/dist/esm/systems/Platform/SliderGraph/_partials/SliderGraphBar/SliderGraphBar.js +1 -1
- package/dist/esm/systems/Platform/SliderGraph/_partials/SliderGraphYAxis/SliderGraphYAxis.js +1 -1
- package/dist/esm/systems/Platform/Tab/Tab.js +1 -1
- package/dist/esm/systems/Platform/TestItem/TestItem.js +1 -1
- package/dist/esm/systems/Platform/TestStatus/TestStatus.js +1 -1
- package/dist/esm/systems/Platform/VideoControls/VideoControls.js +1 -1
- package/dist/esm/systems/WebCore/AnnualController/AnnualController.js +1 -1
- package/dist/esm/systems/WebCore/AutocompleteBaseField/AutocompleteBaseField.js +1 -0
- package/dist/esm/systems/WebCore/AutocompleteBaseField/_partials/AutocompleteChip.js +1 -0
- package/dist/esm/systems/WebCore/AutocompleteBaseField/_partials/AutocompleteListbox.js +1 -0
- package/dist/esm/systems/WebCore/AutocompleteBaseField/_partials/AutocompletePopper.js +1 -0
- package/dist/esm/systems/WebCore/AutocompleteBaseField/_partials/AutocompleteSelectAll.js +1 -0
- package/dist/esm/systems/WebCore/AutocompleteBaseField/_partials/StyledAutocompleteField.js +1 -0
- package/dist/esm/systems/WebCore/AutocompleteBaseField/_partials/StyledAutocompleteInput.js +1 -0
- package/dist/esm/systems/WebCore/AutocompleteBaseField/_partials/StyledPopper.js +1 -0
- package/dist/esm/systems/WebCore/AutocompleteBaseField/helpers.js +1 -0
- package/dist/esm/systems/WebCore/AutocompleteField/AutocompleteField.js +1 -0
- package/dist/esm/systems/WebCore/AutocompleteFieldMultiple/AutocompleteFieldMultiple.js +1 -0
- package/dist/esm/systems/WebCore/AutocompleteSingle/AutocompleteSingle.js +1 -0
- package/dist/esm/systems/WebCore/Button/Button.js +1 -1
- package/dist/esm/systems/WebCore/ButtonBase/Button.variant-helpers.js +1 -1
- package/dist/esm/systems/WebCore/CreatableAutocomplete/CreatableAutocomplete.js +1 -1
- package/dist/esm/systems/WebCore/FormGenerator/FormGenerator.js +1 -1
- package/dist/esm/systems/WebCore/FormGenerator/components/InputWrapper/InputWrapper.js +1 -1
- package/dist/esm/systems/WebCore/RadioGroup/RadioGroup.js +1 -1
- package/dist/esm/systems/WebCore/RankItem/RankItem.js +1 -1
- package/dist/esm/systems/WebCore/Select/Select.js +1 -1
- package/dist/esm/systems/WebCore/Select/StyledSelect.variant-helpers.js +1 -1
- package/dist/esm/systems/WebCore/SelectItem/SelectItem.js +1 -0
- package/dist/index.d.ts +10 -4
- package/dist/index.js +1 -1
- package/dist/systems/BrandCore/Icon/Icon.js +1 -1
- package/dist/systems/BrandCore/Icon/components/MicrophoneOff.d.ts +6 -0
- package/dist/systems/BrandCore/Icon/components/MicrophoneOff.js +1 -0
- package/dist/systems/Marketing/PlanFeatureTable/PlanFeatureTableSkeleton.js +1 -1
- package/dist/systems/Marketing/PlanTierCard/PlanTierCard.js +1 -1
- package/dist/systems/Marketing/PlanTierCard/PlanTierCardSkeleton.js +1 -1
- package/dist/systems/Marketing/PlanTierCard/SavingsPill.js +1 -1
- package/dist/systems/Platform/AIInsight/AIInsight.js +1 -1
- package/dist/systems/Platform/AISummary/AISummary.js +1 -1
- package/dist/systems/Platform/AIWrittenByLockUp/AiWrittenByLockUp.js +1 -1
- package/dist/systems/Platform/AssetItem/AssetItem.js +1 -1
- package/dist/systems/Platform/AssetItem/_partials/AssetItemMenu.js +1 -1
- package/dist/systems/Platform/AssetItem/_partials/CoverTypeIndicator.js +1 -1
- package/dist/systems/Platform/AssetItem/_partials/ImageTile.js +1 -1
- package/dist/systems/Platform/CommentCard/CommentCard.js +1 -1
- package/dist/systems/Platform/DataPointInfo/DataPointInfo.js +1 -1
- package/dist/systems/Platform/DataPointInfo/_partials/DataSourceItem.js +1 -1
- package/dist/systems/Platform/DataPointInfo/_partials/EmptyStateMessage.js +1 -1
- package/dist/systems/Platform/DataPointInfo/_partials/StatValue.js +1 -1
- package/dist/systems/Platform/DemographicSelectionSection/DemographicSelectionSection.js +1 -1
- package/dist/systems/Platform/EmojiListItem/EmojiListItem.js +1 -1
- package/dist/systems/Platform/EmojiListItem/_partials/StyledSurface.js +1 -1
- package/dist/systems/Platform/EmojiQuestionEditorOption/EmojiQuestionEditorOption.js +1 -1
- package/dist/systems/Platform/EmptyStateCard/EmptyStateCard.js +1 -1
- package/dist/systems/Platform/ExtendedTestStatus/ExtendedTestStatus.js +1 -1
- package/dist/systems/Platform/FilterCount/FilterCount.js +1 -1
- package/dist/systems/Platform/FilterGroupAccordion/FilterGroupAccordion.js +1 -1
- package/dist/systems/Platform/FilterPyramidGraph/FilterPyramidGraph.js +1 -1
- package/dist/systems/Platform/FilterRow/FilterRow.js +1 -1
- package/dist/systems/Platform/FilteredItemsCard/FilteredItemsCard.js +1 -1
- package/dist/systems/Platform/GraphBar/_partials/UnitText/UnitText.js +1 -1
- package/dist/systems/Platform/Header/Header.js +1 -1
- package/dist/systems/Platform/KpiDataPopover/KpiDataPopover.js +1 -1
- package/dist/systems/Platform/KpiDataPopover/KpiDetails.js +1 -1
- package/dist/systems/Platform/KpiDataPopover/QuestionStatsCard.js +1 -1
- package/dist/systems/Platform/LikertGraph/_partials/LikertActionController/LikertActionController.js +1 -1
- package/dist/systems/Platform/LikertGraph/_partials/LikertGraphBar/LikertGraphBar.js +1 -1
- package/dist/systems/Platform/LinkExpired/LinkExpired.js +1 -1
- package/dist/systems/Platform/LoopItem/LoopItem.js +1 -1
- package/dist/systems/Platform/LoopItem/_partials/styledPartials.js +1 -1
- package/dist/systems/Platform/LoopItemEmpty/LoopItemEmpty.js +1 -1
- package/dist/systems/Platform/MFACodeVerify/MFACodeVerify.js +1 -1
- package/dist/systems/Platform/MiniResultCard/MiniResultCard.js +1 -1
- package/dist/systems/Platform/PaginationControl/PaginationControl.js +1 -1
- package/dist/systems/Platform/ProjectItem/ProjectItemGridView.js +1 -1
- package/dist/systems/Platform/ProjectItem/ProjectItemListView.js +1 -1
- package/dist/systems/Platform/ProjectItem/_partials/NoThumbnailPlaceholder.js +1 -1
- package/dist/systems/Platform/ProjectItem/_partials/styledPartials.js +1 -1
- package/dist/systems/Platform/QuestionBar/QuestionBar.js +1 -1
- package/dist/systems/Platform/QuestionBlock/QuestionBlock.js +1 -1
- package/dist/systems/Platform/QuestionSelector/QuestionSelector.js +1 -1
- package/dist/systems/Platform/ScrollIndicator/ScrollIndicator.js +1 -1
- package/dist/systems/Platform/SearchInput/SearchInput.js +1 -1
- package/dist/systems/Platform/SectionHeader/SectionHeader.js +1 -1
- package/dist/systems/Platform/SentimentArrow/SentimentArrow.js +1 -1
- package/dist/systems/Platform/SliderGraph/_partials/SliderGraphBar/SliderGraphBar.js +1 -1
- package/dist/systems/Platform/SliderGraph/_partials/SliderGraphYAxis/SliderGraphYAxis.js +1 -1
- package/dist/systems/Platform/Tab/Tab.js +1 -1
- package/dist/systems/Platform/TestItem/TestItem.js +1 -1
- package/dist/systems/Platform/TestStatus/TestStatus.js +1 -1
- package/dist/systems/Platform/VideoControls/VideoControls.js +1 -1
- package/dist/systems/WebCore/AnnualController/AnnualController.js +1 -1
- package/dist/systems/WebCore/AutocompleteBaseField/AutocompleteBaseField.d.ts +6 -0
- package/dist/systems/WebCore/AutocompleteBaseField/AutocompleteBaseField.js +1 -0
- package/dist/systems/WebCore/AutocompleteBaseField/_partials/AutocompleteChip.js +1 -0
- package/dist/systems/WebCore/AutocompleteBaseField/_partials/AutocompleteListbox.js +1 -0
- package/dist/systems/WebCore/AutocompleteBaseField/_partials/AutocompletePopper.js +1 -0
- package/dist/systems/WebCore/AutocompleteBaseField/_partials/AutocompleteSelectAll.js +1 -0
- package/dist/systems/WebCore/AutocompleteBaseField/_partials/StyledAutocompleteField.js +1 -0
- package/dist/systems/WebCore/AutocompleteBaseField/_partials/StyledAutocompleteInput.js +1 -0
- package/dist/systems/WebCore/AutocompleteBaseField/_partials/StyledPopper.js +1 -0
- package/dist/systems/WebCore/AutocompleteBaseField/helpers.js +1 -0
- package/dist/systems/WebCore/AutocompleteBaseField/types.d.ts +23 -0
- package/dist/systems/WebCore/AutocompleteField/AutocompleteField.d.ts +6 -0
- package/dist/systems/WebCore/AutocompleteField/AutocompleteField.js +1 -0
- package/dist/systems/WebCore/AutocompleteFieldMultiple/AutocompleteFieldMultiple.d.ts +6 -0
- package/dist/systems/WebCore/AutocompleteFieldMultiple/AutocompleteFieldMultiple.js +1 -0
- package/dist/systems/WebCore/AutocompleteFieldMultiple/types.d.ts +12 -0
- package/dist/systems/WebCore/AutocompleteSingle/AutocompleteSingle.d.ts +6 -0
- package/dist/systems/WebCore/AutocompleteSingle/AutocompleteSingle.js +1 -0
- package/dist/systems/WebCore/AutocompleteSingle/types.d.ts +11 -0
- package/dist/systems/WebCore/Button/Button.js +1 -1
- package/dist/systems/WebCore/ButtonBase/Button.variant-helpers.d.ts +2 -1
- package/dist/systems/WebCore/ButtonBase/Button.variant-helpers.js +1 -1
- package/dist/systems/WebCore/CreatableAutocomplete/CreatableAutocomplete.d.ts +1 -1
- package/dist/systems/WebCore/CreatableAutocomplete/CreatableAutocomplete.js +1 -1
- package/dist/systems/WebCore/FormGenerator/FormGenerator.js +1 -1
- package/dist/systems/WebCore/FormGenerator/components/InputWrapper/InputWrapper.js +1 -1
- package/dist/systems/WebCore/FormGenerator/types.d.ts +6 -4
- package/dist/systems/WebCore/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/systems/WebCore/RadioGroup/RadioGroup.js +1 -1
- package/dist/systems/WebCore/RankItem/RankItem.d.ts +1 -1
- package/dist/systems/WebCore/RankItem/RankItem.js +1 -1
- package/dist/systems/WebCore/Select/Select.d.ts +2 -36
- package/dist/systems/WebCore/Select/Select.js +1 -1
- package/dist/systems/WebCore/Select/StyledSelect.variant-helpers.js +1 -1
- package/dist/systems/WebCore/Select/types.d.ts +36 -0
- package/dist/systems/WebCore/SelectItem/SelectItem.d.ts +6 -0
- package/dist/systems/WebCore/SelectItem/SelectItem.js +1 -0
- package/dist/systems/WebCore/SelectItem/types.d.ts +12 -0
- package/package.json +1 -1
- package/dist/esm/systems/WebCore/CreatableAutocomplete/StyledCreatableAutocomplete.js +0 -1
- package/dist/esm/systems/WebCore/Select/Autocomplete.js +0 -1
- package/dist/esm/systems/WebCore/Select/AutocompleteListbox.js +0 -1
- package/dist/esm/systems/WebCore/Select/AutocompletePopper.js +0 -1
- package/dist/esm/systems/WebCore/Select/AutocompleteSelectAll.js +0 -1
- package/dist/esm/systems/WebCore/Select/SelectItem.js +0 -1
- package/dist/esm/systems/WebCore/Select/StyledAutocomplete.js +0 -1
- package/dist/esm/systems/WebCore/utils/autocomplete.styles.js +0 -1
- package/dist/systems/WebCore/CreatableAutocomplete/StyledCreatableAutocomplete.js +0 -1
- package/dist/systems/WebCore/Select/Autocomplete.js +0 -1
- package/dist/systems/WebCore/Select/AutocompleteListbox.js +0 -1
- package/dist/systems/WebCore/Select/AutocompletePopper.js +0 -1
- package/dist/systems/WebCore/Select/AutocompleteSelectAll.js +0 -1
- package/dist/systems/WebCore/Select/SelectItem.d.ts +0 -8
- package/dist/systems/WebCore/Select/SelectItem.js +0 -1
- package/dist/systems/WebCore/Select/StyledAutocomplete.js +0 -1
- package/dist/systems/WebCore/Select/StyledSelect.variant-helpers.d.ts +0 -12
- package/dist/systems/WebCore/utils/autocomplete.styles.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),l=require("@mui/icons-material"),i=require("@mui/material"),r=require("../../../utils/breakpoint.hook.js"),t=require("../Typography/Typography.js"),a=require("../AutocompleteBaseField/_partials/StyledPopper.js"),n=require("../SelectItem/SelectItem.js"),s=require("./StyledSelect.js");module.exports=({selections:o,disabled:p=!1,disablePortal:u=!1,inputRef:d,internalChange:m,onChange:c,placeholder:h="",selectOptionProps:x,sizing:g="lg",sx:v,value:j=[],multi:b,renderListItem:y,renderSelectedItem:q,...S})=>{const f=i.useTheme(),I=r.useBreakpoint();return e.jsx(s,{sizing:g,inputRef:d,MenuProps:{disablePortal:u,sx:a.popperStyles(f,g),anchorOrigin:{vertical:"bottom",horizontal:"center"}},multiple:b,disabled:p,displayEmpty:!0,IconComponent:l.KeyboardArrowDown,renderValue:l=>h&&!l||h&&0===l.length?e.jsx(t,{component:"p",variation:"sm"===I||"md"===I?"sm":"lg",sx:{color:f.custom.palette.text.placeholder},children:h}):q?e.jsx(i.Box,{sx:{display:"flex",alignItems:"center",pl:f.p.xs,width:1},children:q(l,o?.find(({value:e})=>e===l)?.label)}):b?e.jsx(t,{id:"value-multi",component:"p",variation:"sm"===I||"md"===I?"sm":"lg",children:l.map(e=>o?.find(({value:l})=>l===e)?.label||e).join(", ")}):e.jsx(t,{id:"value-single",component:"p",variation:"sm"===I||"md"===I?"sm":"lg",children:o?.find(({value:e})=>e===l)?.label}),onChange:(e,l)=>{c&&c(e,l),m&&m()},sx:v,value:j,...S,children:o?.map(({value:l,label:i})=>e.jsx(n,{value:l,...x,sizing:g,children:y?y(l,i):i},l))})};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";require("react/jsx-runtime"),require("@mui/material");var t=require("../../BrandCore/Icon/Icon.js"),e=require("
|
|
1
|
+
"use strict";require("react/jsx-runtime"),require("@mui/material");var t=require("../../BrandCore/Icon/Icon.js"),e=require("../ButtonBase/Button.variant-helpers.js");require("../ButtonBase/ButtonBase.js");var i=require("../utils/typography.util.js");const o=t=>{switch(t){case"xs":return 24;case"sm":case"md":return 32;case"lg":default:return 40;case"xl":return 48}},n=t=>{switch(t){case"xs":case"sm":case"md":return 16;case"lg":default:return 24;case"xl":return 28}},a=(t,e)=>{switch(e){case"xs":case"sm":case"md":return{paddingLeft:t.spacing(t.custom.padding.xs),paddingRight:t.spacing(t.custom.padding.md)};default:return{paddingLeft:t.spacing(t.custom.padding.sm),paddingRight:t.spacing(t.custom.padding.lg)}}};exports.getInputPadding=a,exports.getInputSize=(i,o)=>{switch(o){case"xl":return{...e.getButtonSizing(o),"& .MuiSvgIcon-root":{color:i.custom.palette.icon.primary,transition:i.custom.easing.input,width:t.iconSizeMap.xl,height:t.iconSizeMap.xl,top:`calc(50% - ${t.iconSizeMap.xl/2}px)`}};case"lg":return{...e.getButtonSizing(o),"& .MuiSvgIcon-root":{color:i.custom.palette.icon.primary,transition:i.custom.easing.input,width:t.iconSizeMap.lg,height:t.iconSizeMap.lg,top:`calc(50% - ${t.iconSizeMap.lg/2}px)`}};case"md":return{...e.getButtonSizing(o),"& .MuiSvgIcon-root":{color:i.custom.palette.icon.primary,transition:i.custom.easing.input,width:t.iconSizeMap.md,height:t.iconSizeMap.md,top:`calc(50% - ${t.iconSizeMap.md/2}px)`}};case"sm":return{...e.getButtonSizing(o),"& .MuiSvgIcon-root":{color:i.custom.palette.icon.primary,transition:i.custom.easing.input,width:t.iconSizeMap.sm,height:t.iconSizeMap.sm,top:`calc(50% - ${t.iconSizeMap.sm/2}px)`}};case"xs":return{...e.getButtonSizing(o),"& .MuiSvgIcon-root":{color:i.custom.palette.icon.primary,transition:i.custom.easing.input,width:t.iconSizeMap.xs,height:t.iconSizeMap.xs,top:`calc(50% - ${t.iconSizeMap.xs/2}px)`}};default:return{...e.getButtonSizing("lg"),"& .MuiSvgIcon-root":{color:i.custom.palette.icon.primary,transition:i.custom.easing.input,width:t.iconSizeMap.lg,height:t.iconSizeMap.lg,top:`calc(50% - ${t.iconSizeMap.lg/2}px)`}}}},exports.getTypographyStyle=(t,e)=>({"& .MuiTypography-root":{overflow:"hidden",textOverflow:"ellipsis",fontSize:i.fontSizemap[e],paddingLeft:t.spacing("xs"===e?t.custom.padding.xs:t.custom.padding.sm),paddingRight:t.spacing("xs"===e?t.custom.padding.xs:t.custom.padding.sm)}}),exports.popperBoxShadow="0px 4px 8px 0px #06040D14, 0px 16px 24px 0px #06040D14, 0px 0px 4px 2px #06040D0A, 0px 0px 0px 1px #FFFFFF29",exports.selectBaseStyles=(t,e)=>({fontSize:i.fontSizemap[e],borderRadius:t.spacing(t.custom.radius.md),position:"relative",padding:0,"& .MuiSelect-outlined":{padding:0},"& .MuiSelect-select.MuiInputBase-input":{height:"100%",display:"flex",alignItems:"center",...a(t,e),width:"100%"},"&:before":{transition:t.custom.easing.input,content:'""',position:"absolute",background:t.custom.palette.interaction.none,borderRadius:t.spacing(t.custom.radius.md),inset:0,zIndex:0},"&:hover:before":{backgroundColor:t.custom.palette.interaction.hover},"&.Mui-focused:before":{backgroundColor:t.custom.palette.interaction.press},"&.Mui-disabled:before":{backgroundColor:t.custom.palette.interaction.none},"& .MuiSelect-select":{position:"relative"}}),exports.selectItemBaseStyles=(t,e)=>({position:"relative",fontSize:i.fontSizemap[e],backgroundColor:t.custom.palette.interaction.none,color:t.custom.palette.text.primary,minHeight:o(e),justifyContent:"space-between",paddingLeft:t.spacing("xs"===e?t.custom.padding.sm:t.custom.padding.md),paddingRight:t.spacing("xs"===e?t.custom.padding.sm:t.custom.padding.md),gap:t.spacing(t.custom.padding.sm),whiteSpace:"wrap","& .MuiSvgIcon-root":{width:n(e),height:n(e)}}),exports.selectMenuItemSize=o,exports.selectTickSize=n;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { SelectProps as SelectProps$1 } from '@mui/material';
|
|
2
|
+
import { GenericSizeMap } from 'index';
|
|
3
|
+
import { ReactElement } from 'react';
|
|
4
|
+
import { SelectOption, SelectItemProps } from '../SelectItem/types.js';
|
|
5
|
+
|
|
6
|
+
type InputSizing = Exclude<GenericSizeMap, 'none' | 'xxl' | 'xxxl'>;
|
|
7
|
+
type SelectProps = {
|
|
8
|
+
name: string;
|
|
9
|
+
selections: SelectOption[];
|
|
10
|
+
autoFocus?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
disablePortal?: boolean;
|
|
13
|
+
error?: boolean;
|
|
14
|
+
fullWidth?: boolean;
|
|
15
|
+
id?: string;
|
|
16
|
+
inputProps?: SelectProps$1['inputProps'];
|
|
17
|
+
inputRef?: SelectProps$1['inputRef'];
|
|
18
|
+
internalChange?: () => void;
|
|
19
|
+
MenuProps?: SelectProps$1['MenuProps'];
|
|
20
|
+
onBlur?: SelectProps$1['onBlur'];
|
|
21
|
+
multi?: boolean;
|
|
22
|
+
onChange?: SelectProps$1['onChange'];
|
|
23
|
+
onOpen?: SelectProps$1['onOpen'];
|
|
24
|
+
placeholder?: string | undefined;
|
|
25
|
+
readOnly?: boolean;
|
|
26
|
+
ref?: SelectProps$1['ref'];
|
|
27
|
+
renderListItem?: (value: string, label: string) => ReactElement;
|
|
28
|
+
renderSelectedItem?: (value: string, label?: string) => ReactElement;
|
|
29
|
+
required?: boolean;
|
|
30
|
+
selectOptionProps?: SelectItemProps;
|
|
31
|
+
sizing?: InputSizing;
|
|
32
|
+
sx?: SelectProps$1['sx'];
|
|
33
|
+
value?: SelectProps$1['value'];
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type { InputSizing, SelectProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var e=require("react/jsx-runtime"),t=require("@mui/icons-material"),i=require("@mui/material"),o=require("../Select/StyledSelect.variant-helpers.js");const r=i.styled(i.MenuItem)(({theme:e,sizing:t})=>({...{...o.selectItemBaseStyles(e,t)},"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.hover},"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-selected":{backgroundColor:e.custom.palette.interaction.press,"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.press},"&:hover":{backgroundColor:e.custom.palette.interaction.press}},"&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.disabled,"&:before":{backgroundColor:e.custom.palette.interaction.disabled}}}));module.exports=({children:o,selected:s,...l})=>e.jsx(r,{...l,children:e.jsxs(i.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:2,children:[e.jsx(i.Box,{children:o}),e.jsx(i.Box,{sx:{display:"flex",alignItems:"center"},children:e.jsx(t.Check,{sx:{visibility:s?"visible":"hidden",fontSize:"16px"}})})]})});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { MenuItemProps } from '@mui/material';
|
|
2
|
+
import { InputSizing } from '../Select/types.js';
|
|
3
|
+
|
|
4
|
+
interface SelectItemProps extends MenuItemProps {
|
|
5
|
+
sizing: InputSizing;
|
|
6
|
+
}
|
|
7
|
+
type SelectOption = {
|
|
8
|
+
label: string;
|
|
9
|
+
value: string;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type { SelectItemProps, SelectOption };
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{styled as t,Autocomplete as i,Popper as e}from"@mui/material";import{base as o}from"../../BrandCore/primitiveVariables.js";import{autocompleteStyles as p,popperStyles as m}from"../utils/autocomplete.styles.js";const r=t(i)(({theme:t,sizing:i})=>({...i&&{...p(t,i)},"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{...i&&{height:"xs"===i?2*o+"px":3*o+"px"},paddingLeft:t.spacing(t.custom.padding.sm),paddingTop:0,paddingBottom:0,justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"}})),n=t(e)(({theme:t,sizing:i})=>({...i&&{...m(t,i)}}));export{r as StyledCreatableAutocomplete,n as StyledCreatablePopper};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as e,jsxs as l}from"react/jsx-runtime";import{Check as o,CloseRounded as t,KeyboardArrowDown as r}from"@mui/icons-material";import{Box as i,autocompleteClasses as n}from"@mui/material";import s,{useState as a,useEffect as p,forwardRef as u}from"react";import{StyledTextField as m}from"../utils/autocomplete.styles.js";import c from"./AutocompleteListbox.js";import d from"./AutocompletePopper.js";import{StyledAutocomplete as b,StyledChip as g}from"./StyledAutocomplete.js";const f=({selections:f,disableClearable:h=!1,disabled:v,internalChange:y,grouped:x=!1,multiple:A=!0,onChange:z,placeholder:C="",renderListItem:O,sizing:S="lg",value:j=(A?[]:"")})=>{const[I,k]=a(f.filter(e=>j.includes(e?.value)));p(()=>{null!=j&&k(f.filter(e=>j.includes(e?.value)))},[j]);const L=(e,l)=>{if(z){const o=l?f.map(({value:e})=>e):[];k(l?f:[]),z(e,o,"selectOption"),y&&y()}},F=e=>null!==e&&(!Array.isArray(e)||e.length>0);return e(b,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:e(r,{}),sizing:S,disabled:v,disableClearable:h,autoComplete:!0,multiple:A,...x?{groupBy:e=>(e=>Object.hasOwn(e,"group"))(e)?e.group:"",renderGroup:o=>l(s.Fragment,{children:[0!==parseInt(`${o.key}`)&&e(i,{sx:{borderBottom:e=>`1px solid ${e.custom.palette.stroke.default}`,my:1}}),e(i,{component:"div",className:n.groupLabel,children:o.group}),o.children]},o.key)}:{},renderInput:l=>e(m,{...l,placeholder:F(I)?void 0:C,sizing:S}),options:f,renderTags:(l,o)=>l.map((l,r)=>{const{key:i,...n}=o({index:r});return e(g,{sizing:S,deleteIcon:e(t,{fontSize:"small"}),label:l.label,...n},i)}),onChange:(e,l,o)=>{const t=Array.isArray(l)?l.map(e=>e.value):l?.value??null;k(l),z?.(e,t,o),y?.()},slots:{popper:l=>e(d,{...l,sizing:S})},isOptionEqualToValue:(e,l)=>e.value===l.value,renderOption:(t,r,{selected:i})=>{const{key:n,...s}=t;return l("li",{...s,children:[e("span",{children:O?O(r.value,r.label):r.label}),e(o,{sx:{visibility:i?"visible":"hidden",fontSize:"16px"}})]},n)},ListboxComponent:u((l,o)=>e(c,{ref:o,...l,showSelectAll:A,handleSelectAll:L,value:I,selections:f,sizing:S})),value:I})};export{f as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as l}from"react/jsx-runtime";import{forwardRef as t}from"react";import r from"./AutocompleteSelectAll.js";const n=t(({children:t,handleSelectAll:n,showSelectAll:i,value:s=[],selections:c,sizing:o,...a},h)=>{const A=Array.isArray(s)&&s.length===c.length,m=Array.isArray(s)&&s.length>0&&s.length<c.length;return e("ul",{ref:h,...a,children:[i&&l(r,{handleSelectAll:n,isIndeterminate:m,isAllSelected:A,sizing:o}),t]})});export{n as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{StyledPopper as o}from"./StyledAutocomplete.js";const e=e=>t(o,{...e});export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useTheme as i,Stack as r,FormLabel as n}from"@mui/material";import{useState as o,useEffect as l}from"react";import s from"../Checkbox/StyledCheckbox.js";import{fontSizemap as c}from"../utils/typography.util.js";const m=({handleSelectAll:m,isIndeterminate:a,isAllSelected:d,sizing:p})=>{const[f,u]=o(!1),g=i();return l(()=>{d&&u(d)},[d]),e(r,{direction:"row",gap:g.spacing(g.custom.padding.sm),onClick:e=>{const t=!f;u(t),m(e,t)},sx:{marginLeft:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",p:e=>e.custom.padding.sm},children:[t(n,{sx:{cursor:"pointer",fontSize:()=>p&&c[p]},children:"Select all"}),t(s,{sizing:"default",indeterminate:a,checked:f})]})};export{m as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{jsx as t}from"react/jsx-runtime";import{styled as e,MenuItem as o}from"@mui/material";import{selectItemBaseStyles as r}from"./StyledSelect.variant-helpers.js";const i=e(o)(({theme:t,sizing:e})=>({...{...r(t,e)},"&.Mui-focusVisible":{backgroundColor:t.custom.palette.interaction.hover},"&:hover":{backgroundColor:t.custom.palette.interaction.hover},"&.Mui-selected":{backgroundColor:t.custom.palette.interaction.press,"&.Mui-focusVisible":{backgroundColor:t.custom.palette.interaction.press},"&:hover":{backgroundColor:t.custom.palette.interaction.press}},"&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{backgroundColor:t.custom.palette.input.default,color:t.custom.palette.text.disabled,"&:before":{backgroundColor:t.custom.palette.interaction.disabled}}})),a=({children:e,...o})=>t(i,{...o,children:e});export{a as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{styled as t,Autocomplete as i,autocompleteClasses as e,Chip as o,Popper as a}from"@mui/material";import{base as s}from"../../BrandCore/primitiveVariables.js";import{selectMenuItemSize as r}from"./StyledSelect.variant-helpers.js";import{autocompleteStyles as p,popperStyles as d}from"../utils/autocomplete.styles.js";import{fontSizemap as n}from"../utils/typography.util.js";const l=t(i)(({theme:t,sizing:i,value:o})=>({...i&&p(t,i),"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{paddingLeft:o&&Array.isArray(o)&&o.length>0?0:t.spacing(t.custom.padding.sm),paddingTop:1,paddingBottom:0,justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-tag":{...i&&{height:"xs"===i?2*s+"px":3*s+"px"},margin:0,"& .MuiSvgIcon-root":{height:"12px",width:"12px"}},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...i&&{padding:`0 ${t.spacing(t.custom.padding.xs)}`}},[`&.${e.hasClearIcon}`]:{paddingTop:0}})),u=t(o)(({theme:t,sizing:i})=>({borderRadius:t.spacing(t.custom.radius.sm),border:`1px solid ${t.custom.palette.stroke.default}`,backgroundColor:t.custom.palette.surface.default,...i&&{padding:`0 ${t.spacing(t.custom.padding.xs)}`},"& .MuiChip-deleteIcon":{fill:t.custom.palette.icon.primary,borderRadius:t.custom.radius.round,margin:0,"&:hover":{backgroundColor:t.custom.palette.interaction.hover},"&:active":{backgroundColor:t.custom.palette.interaction.press},"&:disabled":{backgroundColor:t.custom.palette.interaction.disabled,fill:t.custom.palette.icon.disabled}}})),m=t(a)(({theme:t,sizing:i})=>({...i&&{...d(t,i)},[`& .${e.listbox} .${e.groupLabel}`]:{...i&&{minHeight:r(i),fontSize:n[i]},paddingLeft:t.spacing("xs"===i?t.custom.padding.sm:t.custom.padding.md),paddingRight:t.spacing("xs"===i?t.custom.padding.sm:t.custom.padding.md),color:t.custom.palette.text.secondary,fontWeight:t.typography.fontWeightRegular,display:"flex",alignItems:"center"}}));export{l as StyledAutocomplete,u as StyledChip,m as StyledPopper};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{styled as o,TextField as t,autocompleteClasses as i}from"@mui/material";import"../../BrandCore/colorRamps.js";import{base as a}from"../../BrandCore/primitiveVariables.js";import"../../BrandCore/semanticColor.js";import"../../BrandCore/types.js";import"../../BrandCore/typography.js";import"react/jsx-runtime";import{iconSizeMap as e}from"../../BrandCore/Icon/Icon.js";import{popperBoxShadow as s}from"../Select/StyledSelect.variant-helpers.js";import{fontSizemap as r}from"./typography.util.js";const n=(o,t)=>({maxWidth:"100%",backgroundColor:o.custom.palette.surface.raised,borderRadius:o.spacing(o.custom.radius.md),border:`1px solid ${o.custom.palette.stroke.default}`,transition:o.custom.easing.input,"& .MuiSvgIcon-root":{...t&&{width:e[t],height:e[t]}},"& .MuiAutocomplete-inputRoot":{...t&&{fontSize:r[t],gap:"lg"===t?o.spacing(o.custom.padding.sm):o.spacing(o.custom.padding.xs)},display:"flex",alignItems:"flex-start",paddingRight:3*a+"px",flexWrap:"wrap",height:"auto"},"& .MuiOutlinedInput-root":{display:"flex",alignItems:"center",padding:0},"& .MuiAutocomplete-endAdornment":{marginRight:o.spacing(o.custom.margin.sm)},"&.Mui-disabled":{backgroundColor:`${o.custom.palette.input.disabled}`,borderColor:`${o.custom.palette.stroke.disabled}`},"&.Mui-focused":{backgroundColor:o.custom.palette.input.default,borderColor:o.custom.palette.stroke.focus,boxShadow:o.custom.boxShadow.input.focus},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...t&&{padding:`0 ${o.spacing(o.custom.padding.xs)}`}}}),d=(o,t)=>({"& .MuiPaper-root":{...t&&{margin:"lg"===t?o.spacing(o.custom.padding.sm):o.spacing(o.custom.padding.xs),marginLeft:"lg"===t?`-${o.spacing(o.custom.padding.sm)}`:`-${o.spacing(o.custom.padding.xs)}`,marginTop:`calc(${"lg"===t?o.spacing(o.custom.margin.sm):o.spacing(o.custom.margin.xs)} + ${o.spacing(o.custom.margin.xs)})`},border:`1px solid ${o.custom.palette.stroke.default}`,backgroundColor:o.custom.palette.surface.raised,boxShadow:s,borderRadius:o.spacing(o.custom.radius.sm)},[`& .${i.listbox}`]:{overflowX:"hidden",width:"100%",padding:`${o.spacing(o.custom.padding.sm)} 0`,[`& .${i.option}`]:{fontSize:r[t],...t&&{minHeight:"lg"===t?5*a+"px":4*a+"px"},paddingLeft:o.spacing("xs"===t?o.custom.padding.sm:o.custom.padding.md),gap:o.spacing(o.custom.padding.sm),display:"flex",alignItems:"center",'&[aria-selected="true"]':{backgroundColor:o.custom.palette.interaction.press,"&.Mui-focused":{backgroundColor:o.custom.palette.interaction.press},"&:hover":{backgroundColor:o.custom.palette.interaction.hover}},"&.Mui-focused":{background:"inherit"},"&:hover":{backgroundColor:o.custom.palette.interaction.hover}}}}),p=o(t)(({theme:o,sizing:t})=>({"& .MuiOutlinedInput-root":{padding:0,...t&&{margin:"lg"===t?o.spacing(o.custom.padding.sm):o.spacing(o.custom.padding.xs)}},"& .MuiInputBase-input":{padding:"0 14px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}));export{p as StyledTextField,n as autocompleteStyles,d as popperStyles};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@mui/material"),t=require("../../BrandCore/primitiveVariables.js"),i=require("../utils/autocomplete.styles.js");const o=e.styled(e.Autocomplete)(({theme:e,sizing:o})=>({...o&&{...i.autocompleteStyles(e,o)},"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{...o&&{height:"xs"===o?2*t.base+"px":3*t.base+"px"},paddingLeft:e.spacing(e.custom.padding.sm),paddingTop:0,paddingBottom:0,justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"}})),p=e.styled(e.Popper)(({theme:e,sizing:t})=>({...t&&{...i.popperStyles(e,t)}}));exports.StyledCreatableAutocomplete=o,exports.StyledCreatablePopper=p;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),l=require("@mui/icons-material"),s=require("@mui/material"),t=require("react"),r=require("../utils/autocomplete.styles.js"),o=require("./AutocompleteListbox.js"),i=require("./AutocompletePopper.js"),a=require("./StyledAutocomplete.js");function n(e){return e&&e.__esModule?e:{default:e}}var u=n(t);module.exports=({selections:n,disableClearable:d=!1,disabled:c,internalChange:p,grouped:m=!1,multiple:x=!0,onChange:b,placeholder:g="",renderListItem:j,sizing:h="lg",value:v=(x?[]:"")})=>{const[y,f]=t.useState(n.filter(e=>v.includes(e?.value)));t.useEffect(()=>{null!=v&&f(n.filter(e=>v.includes(e?.value)))},[v]);const C=(e,l)=>{if(b){const s=l?n.map(({value:e})=>e):[];f(l?n:[]),b(e,s,"selectOption"),p&&p()}},A=e=>null!==e&&(!Array.isArray(e)||e.length>0);return e.jsx(a.StyledAutocomplete,{disabledItemsFocusable:!0,autoFocus:!1,disableCloseOnSelect:!0,blurOnSelect:!1,popupIcon:e.jsx(l.KeyboardArrowDown,{}),sizing:h,disabled:c,disableClearable:d,autoComplete:!0,multiple:x,...m?{groupBy:e=>(e=>Object.hasOwn(e,"group"))(e)?e.group:"",renderGroup:l=>e.jsxs(u.default.Fragment,{children:[0!==parseInt(`${l.key}`)&&e.jsx(s.Box,{sx:{borderBottom:e=>`1px solid ${e.custom.palette.stroke.default}`,my:1}}),e.jsx(s.Box,{component:"div",className:s.autocompleteClasses.groupLabel,children:l.group}),l.children]},l.key)}:{},renderInput:l=>e.jsx(r.StyledTextField,{...l,placeholder:A(y)?void 0:g,sizing:h}),options:n,renderTags:(s,t)=>s.map((s,r)=>{const{key:o,...i}=t({index:r});return e.jsx(a.StyledChip,{sizing:h,deleteIcon:e.jsx(l.CloseRounded,{fontSize:"small"}),label:s.label,...i},o)}),onChange:(e,l,s)=>{const t=Array.isArray(l)?l.map(e=>e.value):l?.value??null;f(l),b?.(e,t,s),p?.()},slots:{popper:l=>e.jsx(i,{...l,sizing:h})},isOptionEqualToValue:(e,l)=>e.value===l.value,renderOption:(s,t,{selected:r})=>{const{key:o,...i}=s;return e.jsxs("li",{...i,children:[e.jsx("span",{children:j?j(t.value,t.label):t.label}),e.jsx(l.Check,{sx:{visibility:r?"visible":"hidden",fontSize:"16px"}})]},o)},ListboxComponent:t.forwardRef((l,s)=>e.jsx(o,{ref:s,...l,showSelectAll:x,handleSelectAll:C,value:y,selections:n,sizing:h})),value:y})};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),l=require("react"),r=require("./AutocompleteSelectAll.js");const t=l.forwardRef(({children:l,handleSelectAll:t,showSelectAll:s,value:n=[],selections:i,sizing:c,...a},h)=>{const u=Array.isArray(n)&&n.length===i.length,A=Array.isArray(n)&&n.length>0&&n.length<i.length;return e.jsxs("ul",{ref:h,...a,children:[s&&e.jsx(r,{handleSelectAll:t,isIndeterminate:A,isAllSelected:u,sizing:c}),l]})});module.exports=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),r=require("./StyledAutocomplete.js");module.exports=t=>e.jsx(r.StyledPopper,{...t});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("@mui/material"),i=require("react"),r=require("../Checkbox/StyledCheckbox.js"),s=require("../utils/typography.util.js");module.exports=({handleSelectAll:n,isIndeterminate:l,isAllSelected:a,sizing:c})=>{const[u,o]=i.useState(!1),d=t.useTheme();return i.useEffect(()=>{a&&o(a)},[a]),e.jsxs(t.Stack,{direction:"row",gap:d.spacing(d.custom.padding.sm),onClick:e=>{const t=!u;o(t),n(e,t)},sx:{marginLeft:"auto",display:"flex",alignItems:"center",justifyContent:"flex-end",p:e=>e.custom.padding.sm},children:[e.jsx(t.FormLabel,{sx:{cursor:"pointer",fontSize:()=>c&&s.fontSizemap[c]},children:"Select all"}),e.jsx(r,{sizing:"default",indeterminate:l,checked:u})]})};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("react/jsx-runtime"),t=require("@mui/material"),o=require("./StyledSelect.variant-helpers.js");const r=t.styled(t.MenuItem)(({theme:e,sizing:t})=>({...{...o.selectItemBaseStyles(e,t)},"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.hover},"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&.Mui-selected":{backgroundColor:e.custom.palette.interaction.press,"&.Mui-focusVisible":{backgroundColor:e.custom.palette.interaction.press},"&:hover":{backgroundColor:e.custom.palette.interaction.press}},"&.MuiButtonBase-root.MuiMenuItem-root.Mui-disabled":{backgroundColor:e.custom.palette.input.default,color:e.custom.palette.text.disabled,"&:before":{backgroundColor:e.custom.palette.interaction.disabled}}}));module.exports=({children:t,...o})=>e.jsx(r,{...o,children:t});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@mui/material"),t=require("../../BrandCore/primitiveVariables.js"),i=require("./StyledSelect.variant-helpers.js"),o=require("../utils/autocomplete.styles.js"),s=require("../utils/typography.util.js");const a=e.styled(e.Autocomplete)(({theme:i,sizing:s,value:a})=>({...s&&o.autocompleteStyles(i,s),"&.MuiAutocomplete-root .MuiOutlinedInput-root .MuiAutocomplete-input":{paddingLeft:a&&Array.isArray(a)&&a.length>0?0:i.spacing(i.custom.padding.sm),paddingTop:1,paddingBottom:0,justifyContent:"center",textOverflow:"ellipsis",whiteSpace:"nowrap"},"& .MuiAutocomplete-tag":{...s&&{height:"xs"===s?2*t.base+"px":3*t.base+"px"},margin:0,"& .MuiSvgIcon-root":{height:"12px",width:"12px"}},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...s&&{padding:`0 ${i.spacing(i.custom.padding.xs)}`}},[`&.${e.autocompleteClasses.hasClearIcon}`]:{paddingTop:0}})),p=e.styled(e.Chip)(({theme:e,sizing:t})=>({borderRadius:e.spacing(e.custom.radius.sm),border:`1px solid ${e.custom.palette.stroke.default}`,backgroundColor:e.custom.palette.surface.default,...t&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`},"& .MuiChip-deleteIcon":{fill:e.custom.palette.icon.primary,borderRadius:e.custom.radius.round,margin:0,"&:hover":{backgroundColor:e.custom.palette.interaction.hover},"&:active":{backgroundColor:e.custom.palette.interaction.press},"&:disabled":{backgroundColor:e.custom.palette.interaction.disabled,fill:e.custom.palette.icon.disabled}}})),r=e.styled(e.Popper)(({theme:t,sizing:a})=>({...a&&{...o.popperStyles(t,a)},[`& .${e.autocompleteClasses.listbox} .${e.autocompleteClasses.groupLabel}`]:{...a&&{minHeight:i.selectMenuItemSize(a),fontSize:s.fontSizemap[a]},paddingLeft:t.spacing("xs"===a?t.custom.padding.sm:t.custom.padding.md),paddingRight:t.spacing("xs"===a?t.custom.padding.sm:t.custom.padding.md),color:t.custom.palette.text.secondary,fontWeight:t.typography.fontWeightRegular,display:"flex",alignItems:"center"}}));exports.StyledAutocomplete=a,exports.StyledChip=p,exports.StyledPopper=r;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GenericSizeMap } from '../../BrandCore/primitiveVariables.js';
|
|
2
|
-
|
|
3
|
-
type InputSizing = Exclude<GenericSizeMap, 'none'>;
|
|
4
|
-
type SelectOption = {
|
|
5
|
-
label: string;
|
|
6
|
-
value: string;
|
|
7
|
-
};
|
|
8
|
-
type GroupSelectOption = SelectOption & {
|
|
9
|
-
group: string;
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export type { GroupSelectOption, InputSizing, SelectOption };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var e=require("@mui/material");require("../../BrandCore/colorRamps.js");var t=require("../../BrandCore/primitiveVariables.js");require("../../BrandCore/semanticColor.js"),require("../../BrandCore/types.js"),require("../../BrandCore/typography.js"),require("react/jsx-runtime");var o=require("../../BrandCore/Icon/Icon.js"),i=require("../Select/StyledSelect.variant-helpers.js"),a=require("./typography.util.js");const s=e.styled(e.TextField)(({theme:e,sizing:t})=>({"& .MuiOutlinedInput-root":{padding:0,...t&&{margin:"lg"===t?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)}},"& .MuiInputBase-input":{padding:"0 14px"},"& .MuiOutlinedInput-notchedOutline":{border:"none"}}));exports.StyledTextField=s,exports.autocompleteStyles=(e,i)=>({maxWidth:"100%",backgroundColor:e.custom.palette.surface.raised,borderRadius:e.spacing(e.custom.radius.md),border:`1px solid ${e.custom.palette.stroke.default}`,transition:e.custom.easing.input,"& .MuiSvgIcon-root":{...i&&{width:o.iconSizeMap[i],height:o.iconSizeMap[i]}},"& .MuiAutocomplete-inputRoot":{...i&&{fontSize:a.fontSizemap[i],gap:"lg"===i?e.spacing(e.custom.padding.sm):e.spacing(e.custom.padding.xs)},display:"flex",alignItems:"flex-start",paddingRight:3*t.base+"px",flexWrap:"wrap",height:"auto"},"& .MuiOutlinedInput-root":{display:"flex",alignItems:"center",padding:0},"& .MuiAutocomplete-endAdornment":{marginRight:e.spacing(e.custom.margin.sm)},"&.Mui-disabled":{backgroundColor:`${e.custom.palette.input.disabled}`,borderColor:`${e.custom.palette.stroke.disabled}`},"&.Mui-focused":{backgroundColor:e.custom.palette.input.default,borderColor:e.custom.palette.stroke.focus,boxShadow:e.custom.boxShadow.input.focus},"& .MuiChip-root .MuiChip-label":{height:20,lineHeight:"20px",maxWidth:140,...i&&{padding:`0 ${e.spacing(e.custom.padding.xs)}`}}}),exports.popperStyles=(o,s)=>({"& .MuiPaper-root":{...s&&{margin:"lg"===s?o.spacing(o.custom.padding.sm):o.spacing(o.custom.padding.xs),marginLeft:"lg"===s?`-${o.spacing(o.custom.padding.sm)}`:`-${o.spacing(o.custom.padding.xs)}`,marginTop:`calc(${"lg"===s?o.spacing(o.custom.margin.sm):o.spacing(o.custom.margin.xs)} + ${o.spacing(o.custom.margin.xs)})`},border:`1px solid ${o.custom.palette.stroke.default}`,backgroundColor:o.custom.palette.surface.raised,boxShadow:i.popperBoxShadow,borderRadius:o.spacing(o.custom.radius.sm)},[`& .${e.autocompleteClasses.listbox}`]:{overflowX:"hidden",width:"100%",padding:`${o.spacing(o.custom.padding.sm)} 0`,[`& .${e.autocompleteClasses.option}`]:{fontSize:a.fontSizemap[s],...s&&{minHeight:"lg"===s?5*t.base+"px":4*t.base+"px"},paddingLeft:o.spacing("xs"===s?o.custom.padding.sm:o.custom.padding.md),gap:o.spacing(o.custom.padding.sm),display:"flex",alignItems:"center",'&[aria-selected="true"]':{backgroundColor:o.custom.palette.interaction.press,"&.Mui-focused":{backgroundColor:o.custom.palette.interaction.press},"&:hover":{backgroundColor:o.custom.palette.interaction.hover}},"&.Mui-focused":{background:"inherit"},"&:hover":{backgroundColor:o.custom.palette.interaction.hover}}}});
|