@useloops/design-system 1.4.681 → 1.4.683
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/Platform.js +1 -1
- package/dist/esm/Platform.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/systems/BrandCore/textures.js +1 -1
- 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/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/LoopItemEmpty/LoopItemEmpty.js +1 -1
- package/dist/esm/systems/Platform/LoopVideoNudge/LoopVideoNudge.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/PinchIndicator/PinchIndicator.js +1 -1
- package/dist/esm/systems/Platform/PinchIndicator/_partials/StyledSurface/StyledSurface.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/Loader/Loader.js +1 -1
- package/dist/esm/systems/WebCore/Menu/Menu.js +1 -1
- package/dist/esm/systems/WebCore/Popper/Popper.js +1 -1
- package/dist/esm/systems/WebCore/UserMenu/UserMenu.js +1 -1
- package/dist/esm/theme/theme.js +1 -1
- package/dist/esm/utils/cdn.js +1 -0
- package/dist/esm/utils.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/systems/BrandCore/textures.js +1 -1
- 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/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/LoopItemEmpty/LoopItemEmpty.js +1 -1
- package/dist/systems/Platform/LoopVideoNudge/LoopVideoNudge.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/PinchIndicator/PinchIndicator.js +1 -1
- package/dist/systems/Platform/PinchIndicator/_partials/StyledSurface/StyledSurface.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/SliderGraph/_partials/StyledComponents.d.ts +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/Loader/Loader.js +1 -1
- package/dist/systems/WebCore/Menu/Menu.d.ts +1 -0
- package/dist/systems/WebCore/Menu/Menu.js +1 -1
- package/dist/systems/WebCore/Popper/Popper.d.ts +2 -1
- package/dist/systems/WebCore/Popper/Popper.js +1 -1
- package/dist/systems/WebCore/UserMenu/UserMenu.d.ts +1 -0
- package/dist/systems/WebCore/UserMenu/UserMenu.js +1 -1
- package/dist/theme/theme.hooks.d.ts +1 -1
- package/dist/theme/theme.js +1 -1
- package/dist/utils/cdn.d.ts +9 -0
- package/dist/utils/cdn.js +1 -0
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +1 -1
- package/package.json +1 -1
|
@@ -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" | "
|
|
7
|
+
breakpoint: "" | "sm" | "md" | "lg" | "xl";
|
|
8
8
|
custom: CustomTheme;
|
|
9
9
|
gridOverlayVisible: boolean;
|
|
10
10
|
mode: PaletteMode;
|
package/dist/theme/theme.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var t=require("@mui/material"),e=require("../systems/BrandCore/colorRamps.js"),a=require("../systems/BrandCore/primitiveColor.js"),n=require("../systems/BrandCore/primitiveVariables.js"),o=require("../systems/BrandCore/semanticColor.js"),r=require("../systems/BrandCore/typography.js"),i=require("../systems/WebCore/utils/typography.util.js");const s="
|
|
1
|
+
"use strict";var t=require("@mui/material"),e=require("../systems/BrandCore/colorRamps.js"),a=require("../systems/BrandCore/primitiveColor.js"),n=require("../systems/BrandCore/primitiveVariables.js"),o=require("../systems/BrandCore/semanticColor.js"),r=require("../systems/BrandCore/typography.js"),i=require("../systems/WebCore/utils/typography.util.js");const s=require("../utils/cdn.js").cdnAsset("fonts/"),l=(t,e)=>Object.fromEntries(Object.entries(t).map(([t,a])=>[t,a*e+"px"]));exports.customTheme=(d,p,m)=>t.createTheme({direction:m,p:l(n.padding,n.base),m:l(n.margin,n.base),r:l(n.radius,n.base),custom:{palette:{black:"#000000",white:"#ffffff",neutral:e.neutralRamp[d],neutralAlpha:"light"===d?a.neutralAlpha:a.darkNeutralAlpha,purple:e.purpleRamp[d],red:e.redRamp[d],peach:e.peachRamp[d],yellow:e.yellowRamp[d],blue:e.blueRamp[d],green:e.greenRamp[d],icon:o.semantic[d].icon,interaction:o.semantic[d].interaction,stroke:o.semantic[d].stroke,surface:o.semantic[d].surface,text:o.semantic[d].text,input:o.semantic[d].input,skeleton:o.semantic[d].skeleton,data:o.semantic[d].data,body:o.semantic[d].surface.default},margin:n.margin,padding:n.padding,radius:n.radius,elevation:n.elevation,elevationFilter:n.elevationFilter,boxShadow:n.boxShadow,easing:n.easing,typography:i.typographyVariantMap[p]},palette:{mode:d,primary:{main:a.purple[500]}},spacing:n.base,shape:{borderRadius:n.base,hotspot:{default:12,active:24}},breakpoints:{values:n.breakpoints},typography:{fontFamily:`"${r.fonts.FoundersGrotesk.name}", "Helvetica", "sans-serif"`},components:{MuiTypography:{variants:i.typographyVariants(p),styleOverrides:{root:{color:o.semantic[d].text.primary,letterSpacing:0,lineHeight:"140%"}}},MuiCssBaseline:{styleOverrides:t=>`\n\t\t\t\t\tbody {\n\t\t\t\t\t\tbackground: ${t.custom.palette.body};\n\t\t\t\t\t\tmin-width: 320px;\n\t\t\t\t\t}\n\t\t\t\t\ta {\n\t\t\t\t\t\tcolor: inherit;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\ttext-decoration: none;\n\t\t\t\t\t}\n\t\t\t\t\tb {\n\t\t\t\t\t\tfont-weight: 500;\n\t\t\t\t\t}\n @font-face {\n font-family: '${r.fonts.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${r.fonts.Domaine.default.weight};\n src: url(${s}${r.fonts.Domaine.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${r.fonts.Domaine.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${r.fonts.Domaine.bold.weight};\n src: url(${s}${r.fonts.Domaine.bold.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${r.fonts.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${r.fonts.FoundersGrotesk.default.weight};\n src: url(${s}${r.fonts.FoundersGrotesk.default.fileName}) format('woff2');\n }\n @font-face {\n font-family: '${r.fonts.FoundersGrotesk.name}';\n font-style: normal;\n font-display: swap;\n font-weight: ${r.fonts.FoundersGrotesk.bold.weight};\n src: url(${s}${r.fonts.FoundersGrotesk.bold.fileName}) format('woff2');\n }\n `},MuiContainer:{defaultProps:{maxWidth:"xl",disableGutters:!0},styleOverrides:{root:{paddingLeft:16,paddingRight:16,[`@media (min-width: ${n.breakpoints.md}px)`]:{paddingLeft:24,paddingRight:24},[`@media (min-width: ${n.breakpoints.lg}px)`]:{paddingLeft:48,paddingRight:48}}}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiButton:{defaultProps:{disableTouchRipple:!0,disableRipple:!0}},MuiTooltip:{styleOverrides:{arrow:({theme:{custom:t}})=>({color:t.palette.surface.overlay}),tooltip:({theme:{custom:t}})=>({backgroundColor:t.palette.surface.overlay,borderRadius:t.radius.md*n.base+"px",color:t.palette.text.primary,backdropFilter:"blur(0)",filter:t.elevationFilter.overlay,fontFamily:r.fonts.FoundersGrotesk.name,fontSize:t.typography.body.sm,fontWeight:400,padding:`${t.padding.sm*n.base}px ${t.padding.md*n.base}px`})}},MuiAvatarGroup:{styleOverrides:{root:{flexDirection:"row"},avatar:({theme:{custom:t}})=>({border:`1px solid ${t.palette.stroke.default}`,marginLeft:0,marginRight:-8,":last-child":{marginLeft:"auto"}})}},MuiPaper:{styleOverrides:{root:({theme:{custom:t}})=>({backgroundColor:t.palette.surface.default})}}}});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Public asset CDN base. Assets live in the `useloops-public` GCS bucket,
|
|
3
|
+
* served via Cloud CDN. Objects are stored WITHOUT a `public/` prefix.
|
|
4
|
+
*/
|
|
5
|
+
declare const CDN_BASE = "https://static.cdn.useloops.com";
|
|
6
|
+
/** Build a public CDN asset URL from a bucket key (leading slash optional). */
|
|
7
|
+
declare const cdnAsset: (key: string) => string;
|
|
8
|
+
|
|
9
|
+
export { CDN_BASE, cdnAsset };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const s="https://static.cdn.useloops.com";exports.CDN_BASE=s,exports.cdnAsset=t=>`${s}/${t.replace(/^\//,"")}`;
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export { BreakpointOrNull, useBreakpoint } from './utils/breakpoint.hook.js';
|
|
2
|
+
export { CDN_BASE, cdnAsset } from './utils/cdn.js';
|
|
2
3
|
export { compareArrayMembers } from './utils/compareArrayMembers.js';
|
|
3
4
|
export { isButton } from './utils/isButton.js';
|
|
4
5
|
export { pluralise } from './utils/pluralise.js';
|
package/dist/utils.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./utils/breakpoint.hook.js"),r=require("./utils/compareArrayMembers.js"),
|
|
1
|
+
"use strict";var e=require("./utils/breakpoint.hook.js"),s=require("./utils/cdn.js"),r=require("./utils/compareArrayMembers.js"),o=require("./utils/isButton.js"),u=require("./utils/pluralise.js"),i=require("./utils/screen.hook.js"),t=require("./utils/useKeyCombo.js"),p=require("./utils/usePrevious.js"),l=require("./utils/shouldForwardProp.js");exports.useBreakpoint=e.useBreakpoint,exports.CDN_BASE=s.CDN_BASE,exports.cdnAsset=s.cdnAsset,exports.compareArrayMembers=r.compareArrayMembers,exports.isButton=o.isButton,exports.pluralise=u.pluralise,exports.useScreenSize=i.useScreenSize,exports.useKeyCombo=t.useKeyCombo,exports.usePrevious=p.usePrevious,exports.omitProps=l.omitProps;
|