@pandacss/studio 0.0.0-dev-20230614113002 → 0.0.0-dev-20230614152938

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pandacss/studio",
3
- "version": "0.0.0-dev-20230614113002",
3
+ "version": "0.0.0-dev-20230614152938",
4
4
  "description": "The automated token documentation for Panda CSS",
5
5
  "main": "dist/studio.js",
6
6
  "module": "dist/studio.mjs",
@@ -32,19 +32,19 @@
32
32
  "react": "18.2.0",
33
33
  "react-dom": "18.2.0",
34
34
  "vite": "4.3.9",
35
- "@pandacss/types": "0.0.0-dev-20230614113002",
36
- "@pandacss/config": "0.0.0-dev-20230614113002",
37
- "@pandacss/shared": "0.0.0-dev-20230614113002",
38
- "@pandacss/token-dictionary": "0.0.0-dev-20230614113002",
39
- "@pandacss/logger": "0.0.0-dev-20230614113002",
40
- "@pandacss/node": "0.0.0-dev-20230614113002"
35
+ "@pandacss/types": "0.0.0-dev-20230614152938",
36
+ "@pandacss/config": "0.0.0-dev-20230614152938",
37
+ "@pandacss/shared": "0.0.0-dev-20230614152938",
38
+ "@pandacss/token-dictionary": "0.0.0-dev-20230614152938",
39
+ "@pandacss/logger": "0.0.0-dev-20230614152938",
40
+ "@pandacss/node": "0.0.0-dev-20230614152938"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/react": "18.2.12",
44
44
  "@types/react-dom": "18.2.5",
45
45
  "@vitejs/plugin-react": "4.0.0",
46
46
  "execa": "7.1.1",
47
- "@pandacss/dev": "0.0.0-dev-20230614113002"
47
+ "@pandacss/dev": "0.0.0-dev-20230614152938"
48
48
  },
49
49
  "scripts": {
50
50
  "codegen": "panda",
@@ -158,8 +158,10 @@ const classNameMap = {
158
158
  border: 'border',
159
159
  borderColor: 'border',
160
160
  borderInline: 'border-x',
161
+ borderInlineWidth: 'border-x',
161
162
  borderInlineColor: 'border-x',
162
163
  borderBlock: 'border-y',
164
+ borderBlockWidth: 'border-y',
163
165
  borderBlockColor: 'border-y',
164
166
  borderLeft: 'border-l',
165
167
  borderLeftColor: 'border-l',
@@ -341,8 +343,15 @@ const shorthands = {
341
343
  roundedEndEnd: 'borderEndEndRadius',
342
344
  roundedEnd: 'borderEndRadius',
343
345
  borderX: 'borderInline',
346
+ borderXWidth: 'borderInlineWidth',
344
347
  borderXColor: 'borderInlineColor',
348
+ borderY: 'borderBlock',
349
+ borderYWidth: 'borderBlockWidth',
345
350
  borderYColor: 'borderBlockColor',
351
+ borderStart: 'borderInlineStart',
352
+ borderStartColor: 'borderInlineStartColor',
353
+ borderEnd: 'borderInlineEnd',
354
+ borderEndColor: 'borderInlineEndColor',
346
355
  shadow: 'boxShadow',
347
356
  shadowColor: 'boxShadowColor',
348
357
  x: 'translateX',
@@ -8,7 +8,8 @@ export * from './spacer'
8
8
  export * from './square'
9
9
  export * from './circle'
10
10
  export * from './center'
11
- export * from './absolute-center'
11
+ export * from './link-box'
12
+ export * from './link-overlay'
12
13
  export * from './aspect-ratio'
13
14
  export * from './grid'
14
15
  export * from './grid-item'
@@ -8,7 +8,8 @@ export * from './spacer.mjs'
8
8
  export * from './square.mjs'
9
9
  export * from './circle.mjs'
10
10
  export * from './center.mjs'
11
- export * from './absolute-center.mjs'
11
+ export * from './link-box.mjs'
12
+ export * from './link-overlay.mjs'
12
13
  export * from './aspect-ratio.mjs'
13
14
  export * from './grid.mjs'
14
15
  export * from './grid-item.mjs'
@@ -72,8 +72,15 @@ var userGenerated = [
72
72
  'roundedEndEnd',
73
73
  'roundedEnd',
74
74
  'borderX',
75
+ 'borderXWidth',
75
76
  'borderXColor',
77
+ 'borderY',
78
+ 'borderYWidth',
76
79
  'borderYColor',
80
+ 'borderStart',
81
+ 'borderStartColor',
82
+ 'borderEnd',
83
+ 'borderEndColor',
77
84
  'shadow',
78
85
  'shadowColor',
79
86
  'x',
@@ -234,8 +241,10 @@ var userGenerated = [
234
241
  'border',
235
242
  'borderColor',
236
243
  'borderInline',
244
+ 'borderInlineWidth',
237
245
  'borderInlineColor',
238
246
  'borderBlock',
247
+ 'borderBlockWidth',
239
248
  'borderBlockColor',
240
249
  'borderLeft',
241
250
  'borderLeftColor',
@@ -0,0 +1,8 @@
1
+ import type { FunctionComponent } from 'react'
2
+ import type { LinkBoxProperties } from '../patterns/link-box'
3
+ import type { HTMLPandaProps } from '../types/jsx'
4
+
5
+ export type LinkBoxProps = LinkBoxProperties & Omit<HTMLPandaProps<'div'>, keyof LinkBoxProperties >
6
+
7
+
8
+ export declare const LinkBox: FunctionComponent<LinkBoxProps>
@@ -0,0 +1,8 @@
1
+ import { createElement, forwardRef } from 'react'
2
+ import { panda } from './factory.mjs'
3
+ import { getLinkBoxStyle } from '../patterns/link-box.mjs'
4
+
5
+ export const LinkBox = forwardRef(function LinkBox(props, ref) {
6
+ const styleProps = getLinkBoxStyle()
7
+ return createElement(panda.div, { ref, ...styleProps, ...props })
8
+ })
@@ -0,0 +1,8 @@
1
+ import type { FunctionComponent } from 'react'
2
+ import type { LinkOverlayProperties } from '../patterns/link-overlay'
3
+ import type { HTMLPandaProps } from '../types/jsx'
4
+
5
+ export type LinkOverlayProps = LinkOverlayProperties & Omit<HTMLPandaProps<'a'>, keyof LinkOverlayProperties >
6
+
7
+
8
+ export declare const LinkOverlay: FunctionComponent<LinkOverlayProps>
@@ -0,0 +1,8 @@
1
+ import { createElement, forwardRef } from 'react'
2
+ import { panda } from './factory.mjs'
3
+ import { getLinkOverlayStyle } from '../patterns/link-overlay.mjs'
4
+
5
+ export const LinkOverlay = forwardRef(function LinkOverlay(props, ref) {
6
+ const styleProps = getLinkOverlayStyle()
7
+ return createElement(panda.a, { ref, ...styleProps, ...props })
8
+ })
@@ -7,7 +7,8 @@ export * from './spacer'
7
7
  export * from './square'
8
8
  export * from './circle'
9
9
  export * from './center'
10
- export * from './absolute-center'
10
+ export * from './link-box'
11
+ export * from './link-overlay'
11
12
  export * from './aspect-ratio'
12
13
  export * from './grid'
13
14
  export * from './grid-item'
@@ -7,7 +7,8 @@ export * from './spacer.mjs'
7
7
  export * from './square.mjs'
8
8
  export * from './circle.mjs'
9
9
  export * from './center.mjs'
10
- export * from './absolute-center.mjs'
10
+ export * from './link-box.mjs'
11
+ export * from './link-overlay.mjs'
11
12
  export * from './aspect-ratio.mjs'
12
13
  export * from './grid.mjs'
13
14
  export * from './grid-item.mjs'
@@ -0,0 +1,14 @@
1
+ import type { SystemStyleObject, ConditionalValue } from '../types'
2
+ import type { PropertyValue } from '../types/prop-type'
3
+ import type { Properties } from '../types/csstype'
4
+ import type { Tokens } from '../tokens'
5
+
6
+ export type LinkBoxProperties = {
7
+
8
+ }
9
+
10
+
11
+ type LinkBoxOptions = LinkBoxProperties & Omit<SystemStyleObject, keyof LinkBoxProperties >
12
+
13
+
14
+ export declare function linkBox(options?: LinkBoxOptions): string
@@ -0,0 +1,19 @@
1
+ import { mapObject } from '../helpers.mjs'
2
+ import { css } from '../css/index.mjs'
3
+
4
+ const linkBoxConfig = {
5
+ transform(props) {
6
+ return {
7
+ position: 'relative',
8
+ '& :where(a, abbr)': {
9
+ position: 'relative',
10
+ zIndex: '1',
11
+ },
12
+ ...props,
13
+ }
14
+ },
15
+ }
16
+
17
+ export const getLinkBoxStyle = (styles = {}) => linkBoxConfig.transform(styles, { map: mapObject })
18
+
19
+ export const linkBox = (styles) => css(getLinkBoxStyle(styles))
@@ -0,0 +1,14 @@
1
+ import type { SystemStyleObject, ConditionalValue } from '../types'
2
+ import type { PropertyValue } from '../types/prop-type'
3
+ import type { Properties } from '../types/csstype'
4
+ import type { Tokens } from '../tokens'
5
+
6
+ export type LinkOverlayProperties = {
7
+
8
+ }
9
+
10
+
11
+ type LinkOverlayOptions = LinkOverlayProperties & Omit<SystemStyleObject, keyof LinkOverlayProperties >
12
+
13
+
14
+ export declare function linkOverlay(options?: LinkOverlayOptions): string
@@ -0,0 +1,24 @@
1
+ import { mapObject } from '../helpers.mjs'
2
+ import { css } from '../css/index.mjs'
3
+
4
+ const linkOverlayConfig = {
5
+ transform(props) {
6
+ return {
7
+ position: 'static',
8
+ _before: {
9
+ content: '""',
10
+ display: 'block',
11
+ position: 'absolute',
12
+ cursor: 'inherit',
13
+ inset: '0',
14
+ zIndex: '0',
15
+ ...props['_before'],
16
+ },
17
+ ...props,
18
+ }
19
+ },
20
+ }
21
+
22
+ export const getLinkOverlayStyle = (styles = {}) => linkOverlayConfig.transform(styles, { map: mapObject })
23
+
24
+ export const linkOverlay = (styles) => css(getLinkOverlayStyle(styles))
@@ -115,12 +115,15 @@ type PropertyValueTypes = {
115
115
  border: Tokens["borders"];
116
116
  borderColor: Tokens["colors"];
117
117
  borderInline: Tokens["borders"];
118
+ borderInlineWidth: Tokens["borderWidths"];
118
119
  borderInlineColor: Tokens["colors"];
119
120
  borderBlock: Tokens["borders"];
121
+ borderBlockWidth: Tokens["borderWidths"];
120
122
  borderBlockColor: Tokens["colors"];
121
123
  borderLeft: Tokens["borders"];
122
124
  borderLeftColor: Tokens["colors"];
123
125
  borderInlineStart: Tokens["borders"];
126
+ borderInlineStartColor: Tokens["colors"];
124
127
  borderRight: Tokens["borders"];
125
128
  borderRightColor: Tokens["colors"];
126
129
  borderInlineEnd: Tokens["borders"];
@@ -275,8 +278,15 @@ type PropertyValueTypes = {
275
278
  roundedEndEnd: Shorthand<"borderEndEndRadius">;
276
279
  roundedEnd: Shorthand<"borderEndRadius">;
277
280
  borderX: Shorthand<"borderInline">;
281
+ borderXWidth: Shorthand<"borderInlineWidth">;
278
282
  borderXColor: Shorthand<"borderInlineColor">;
283
+ borderY: Shorthand<"borderBlock">;
284
+ borderYWidth: Shorthand<"borderBlockWidth">;
279
285
  borderYColor: Shorthand<"borderBlockColor">;
286
+ borderStart: Shorthand<"borderInlineStart">;
287
+ borderStartColor: Shorthand<"borderInlineStartColor">;
288
+ borderEnd: Shorthand<"borderInlineEnd">;
289
+ borderEndColor: Shorthand<"borderInlineEndColor">;
280
290
  shadow: Shorthand<"boxShadow">;
281
291
  shadowColor: Shorthand<"boxShadowColor">;
282
292
  x: Shorthand<"translateX">;
@@ -6,7 +6,7 @@ type StringToBoolean<T> = T extends 'true' | 'false' ? boolean : T
6
6
 
7
7
  export type RecipeVariantRecord = Record<any, Record<any, SystemStyleObject>>
8
8
 
9
- export type RecipeSelection<T extends RecipeVariantRecord> = any extends T
9
+ export type RecipeSelection<T extends RecipeVariantRecord> = keyof any extends keyof T
10
10
  ? {}
11
11
  : {
12
12
  [K in keyof T]?: StringToBoolean<keyof T[K]>
@@ -606,8 +606,15 @@ export type SystemProperties = {
606
606
  roundedEndEnd?: PropertyValue<'roundedEndEnd'>
607
607
  roundedEnd?: PropertyValue<'roundedEnd'>
608
608
  borderX?: PropertyValue<'borderX'>
609
+ borderXWidth?: PropertyValue<'borderXWidth'>
609
610
  borderXColor?: PropertyValue<'borderXColor'>
611
+ borderY?: PropertyValue<'borderY'>
612
+ borderYWidth?: PropertyValue<'borderYWidth'>
610
613
  borderYColor?: PropertyValue<'borderYColor'>
614
+ borderStart?: PropertyValue<'borderStart'>
615
+ borderStartColor?: PropertyValue<'borderStartColor'>
616
+ borderEnd?: PropertyValue<'borderEnd'>
617
+ borderEndColor?: PropertyValue<'borderEndColor'>
611
618
  shadow?: PropertyValue<'shadow'>
612
619
  shadowColor?: PropertyValue<'shadowColor'>
613
620
  x?: PropertyValue<'x'>