Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@twilio-paste/theme

Package Overview
Dependencies
Maintainers
4
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@twilio-paste/theme - npm Package Compare versions

Comparing version
12.0.0
to
12.0.1
+1
-0
dist/index.es.js

@@ -0,1 +1,2 @@

"use client";
import{ThemeContext}from"@twilio-paste/styling-library";import*as React from"react";var ThemeConsumer=({children,...props})=>{if(children==null||typeof children!="function")throw new Error("[ThemeConsumer]: You must pass a function as children");return React.createElement(ThemeContext.Consumer,null,theme=>children({...props,theme}))};ThemeConsumer.displayName="PasteThemeConsumer";import{Globals as AnimatedGlobals,useReducedMotion}from"@twilio-paste/animation-library";import{CacheProvider as EmotionCacheProvider,StylingGlobals,ThemeProvider as EmotionThemeProvider,createCache,styled}from"@twilio-paste/styling-library";import*as React2 from"react";var ThemeVariants={DEFAULT:"default",SENDGRID:"sendgrid",DARK:"dark",TWILIO:"twilio",TWILIO_DARK:"twilio-dark",EVERGREEN:"evergreen"};import{css}from"@twilio-paste/styling-library";var pasteBaseStyles=css({color:"colorText",colorScheme:"colorScheme",fontSize:"fontSize30",fontFamily:"fontFamilyText",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",fontVariantNumeric:"tabular-nums"});import{EmotionCSS}from"@twilio-paste/styling-library";var pasteFonts=EmotionCSS`

@@ -2,0 +3,0 @@ /* -------------------------------------------------------

@@ -0,1 +1,2 @@

"use client";
"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf,__hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&typeof from=="object"||typeof from=="function")for(let key of __getOwnPropNames(from))!__hasOwnProp.call(to,key)&&key!==except&&__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to};var __toESM=(mod,isNodeMode,target)=>(target=mod!=null?__create(__getProtoOf(mod)):{},__copyProps(isNodeMode||!mod||!mod.__esModule?__defProp(target,"default",{value:mod,enumerable:!0}):target,mod)),__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod);var src_exports={};__export(src_exports,{ConsoleTheme:()=>ConsoleTheme,DarkTheme:()=>DarkTheme,DefaultTheme:()=>DefaultTheme,EvergreenTheme:()=>EvergreenTheme,SendGridTheme:()=>SendGridTheme,StyledBase:()=>StyledBase,Theme:()=>Theme,ThemeVariants:()=>ThemeVariants,TwilioDarkTheme:()=>TwilioDarkTheme,TwilioTheme:()=>TwilioTheme,generateThemeFromTokens:()=>generateThemeFromTokens,generateTokensFromTheme:()=>generateTokensFromTheme,pasteBaseStyles:()=>pasteBaseStyles,pasteFonts:()=>pasteFonts,pasteGlobalStyles:()=>pasteGlobalStyles,remToPx:()=>remToPx,useTheme:()=>useTheme,useThemeContrastCheck:()=>useThemeContrastCheck,withTheme:()=>import_styling_library6.withTheme});module.exports=__toCommonJS(src_exports);var import_styling_library=require("@twilio-paste/styling-library"),React=__toESM(require("react")),ThemeConsumer=({children,...props})=>{if(children==null||typeof children!="function")throw new Error("[ThemeConsumer]: You must pass a function as children");return React.createElement(import_styling_library.ThemeContext.Consumer,null,theme=>children({...props,theme}))};ThemeConsumer.displayName="PasteThemeConsumer";var import_animation_library=require("@twilio-paste/animation-library"),import_styling_library5=require("@twilio-paste/styling-library"),React2=__toESM(require("react"));var ThemeVariants={DEFAULT:"default",SENDGRID:"sendgrid",DARK:"dark",TWILIO:"twilio",TWILIO_DARK:"twilio-dark",EVERGREEN:"evergreen"};var import_styling_library2=require("@twilio-paste/styling-library"),pasteBaseStyles=(0,import_styling_library2.css)({color:"colorText",colorScheme:"colorScheme",fontSize:"fontSize30",fontFamily:"fontFamilyText",lineHeight:"lineHeight30",fontWeight:"fontWeightNormal",fontVariantNumeric:"tabular-nums"});var import_styling_library3=require("@twilio-paste/styling-library"),pasteFonts=import_styling_library3.EmotionCSS`

@@ -2,0 +3,0 @@ /* -------------------------------------------------------

+4
-4
{
"name": "@twilio-paste/theme",
"version": "12.0.0",
"version": "12.0.1",
"description": "Paste Design System Theme Package which provides support for APIs to theme UIs and components.",

@@ -36,7 +36,7 @@ "author": "Twilio Inc.",

"devDependencies": {
"@twilio-paste/animation-library": "^3.0.0",
"@twilio-paste/animation-library": "^3.0.1",
"@twilio-paste/color-contrast-utils": "^5.0.0",
"@twilio-paste/design-tokens": "^10.14.0",
"@twilio-paste/styling-library": "^4.0.0",
"@twilio-paste/types": "^7.0.0",
"@twilio-paste/styling-library": "^4.0.1",
"@twilio-paste/types": "^7.0.1",
"@types/react": "^19.0.8",

@@ -43,0 +43,0 @@ "@types/react-dom": "^19.0.3",