Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@inkeep/styled-system

Package Overview
Dependencies
Maintainers
4
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@inkeep/styled-system - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

./system.js

17

package.json
{
"name": "@inkeep/styled-system",
"version": "0.0.10",
"version": "0.0.11",
"type": "module",

@@ -22,2 +22,17 @@ "main": "./system.js",

"sideEffects": false,
"files": [
"system.js",
"system.d.ts",
"styled-system/css",
"styled-system/jsx",
"styled-system/patterns",
"styled-system/recipes",
"styled-system/tokens",
"styled-system/types",
"styled-system/global.css",
"styled-system/helpers.*",
"styled-system/reset.css",
"styled-system/static.css",
"styled-system/styles.css"
],
"scripts": {

@@ -24,0 +39,0 @@ "fmt": "prettier --write ./src ./tests",

3

styled-system/recipes/ai-chat-page-wrapper.d.ts
/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface AiChatPageWrapperVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface AlertVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface AvatarVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface BadgeVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface ButtonVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface CardVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface CheckboxVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface CloseButtonVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface CodeVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface ContentParserVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface FormControlVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface HeadingVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface IconVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface InputVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface KbdVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface LinkVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface ModalVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface PopoverVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface PreviewContentHeaderVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface SearchBarTriggerVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface SelectVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface SkeletonVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface SwitchRecipeVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface TableVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface TabsVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface TagVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface TextareaVariant {

/* eslint-disable */
import type { ConditionalValue } from '../types/index';
import type { Pretty } from '../types/helpers';
import type { DistributiveOmit } from '../types/system-types';
import type { DistributiveOmit, Pretty } from '../types/system-types';

@@ -6,0 +5,0 @@ interface TooltipVariant {

/* eslint-disable */
import type { CompositionStyleObject } from './system-types';
import type { Token } from '../tokens';

@@ -8,7 +9,2 @@ interface Recursive<T> {

export interface Token<Value = any> {
value: Value
description?: string
}
/* -----------------------------------------------------------------------------

@@ -15,0 +11,0 @@ * Text styles

@@ -133,2 +133,4 @@ /* eslint-disable */

"_open": string
/** `&:is([data-state=closed])` */
"_closed": string
/** `&:fullscreen` */

@@ -180,4 +182,2 @@ "_fullscreen": string

"_vertical": string
/** `&:is([data-state=closed])` */
"_closed": string
/** `&[hidden], &[data-hidden]` */

@@ -184,0 +184,0 @@ "_hidden": string

/* eslint-disable */
import type { ComponentPropsWithoutRef, ElementType, ElementRef, Ref } from 'react'
import type { Assign, DistributiveOmit, JsxHTMLProps, JsxStyleProps } from './system-types';
import type { RecipeDefinition, RecipeSelection, RecipeVariantRecord } from './recipe';
import type { Assign, DistributiveOmit, DistributiveUnion, JsxHTMLProps, JsxStyleProps, Pretty } from './system-types';
type Dict = Record<string, unknown>
interface Dict {
[k: string]: unknown
}

@@ -17,3 +19,5 @@ export type ComponentProps<T extends ElementType> = DistributiveOmit<ComponentPropsWithoutRef<T>, 'ref'> & {

interface RecipeFn { __type: any }
interface RecipeFn {
__type: any
}

@@ -28,15 +32,23 @@ interface JsxFactoryOptions<TProps extends Dict> {

interface JsxFactory {
export type JsxElement<T extends ElementType, P> = T extends StyledComponent<infer A, infer B>
? StyledComponent<A, Pretty<DistributiveUnion<P, B>>>
: StyledComponent<T, P>
export interface JsxFactory {
<T extends ElementType>(component: T): StyledComponent<T, {}>
<T extends ElementType, P extends RecipeVariantRecord>(component: T, recipe: RecipeDefinition<P>, options?: JsxFactoryOptions<JsxRecipeProps<T, RecipeSelection<P>>>): StyledComponent<
<T extends ElementType, P extends RecipeVariantRecord>(component: T, recipe: RecipeDefinition<P>, options?: JsxFactoryOptions<JsxRecipeProps<T, RecipeSelection<P>>>): JsxElement<
T,
RecipeSelection<P>
>
<T extends ElementType, P extends RecipeFn>(component: T, recipeFn: P, options?: JsxFactoryOptions<JsxRecipeProps<T, P['__type']>>): StyledComponent<T, P['__type']>
<T extends ElementType, P extends RecipeFn>(component: T, recipeFn: P, options?: JsxFactoryOptions<JsxRecipeProps<T, P['__type']>>): JsxElement<T, P['__type']>
}
type JsxElements = { [K in keyof JSX.IntrinsicElements]: StyledComponent<K, {}> }
export type JsxElements = {
[K in keyof JSX.IntrinsicElements]: StyledComponent<K, {}>
}
export type Styled = JsxFactory & JsxElements
export type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
export type HTMLStyledProps<T extends ElementType> = JsxHTMLProps<ComponentProps<T>, JsxStyleProps>
export type StyledVariantProps<T extends StyledComponent<any, any>> = T extends StyledComponent<any, infer Props> ? Props : never

@@ -9,2 +9,14 @@ /* eslint-disable */

export type Pretty<T> = { [K in keyof T]: T[K] } & {}
export type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never
export type DistributiveUnion<T, U> = {
[K in keyof T]: K extends keyof U ? U[K] | T[K] : T[K]
} & DistributiveOmit<U, keyof T>
export type Assign<T, U> = {
[K in keyof T]: K extends keyof U ? U[K] : T[K]
} & U
/* -----------------------------------------------------------------------------

@@ -66,8 +78,2 @@ * Native css properties

export type DistributiveOmit<T, K extends keyof any> = T extends unknown ? Omit<T, K> : never
export type Assign<T, U> = {
[K in keyof T]: K extends keyof U ? U[K] : T[K]
} & U
export interface PatchedHTMLProps {

@@ -74,0 +80,0 @@ htmlWidth?: string | number

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc