@pandacss/studio 0.3.1 → 0.4.0

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.
Files changed (78) hide show
  1. package/package.json +8 -8
  2. package/src/components/analyzer/data-combobox.tsx +47 -41
  3. package/src/components/analyzer/data-table.tsx +5 -9
  4. package/src/components/input.tsx +3 -3
  5. package/src/layouts/Sidebar.astro +2 -2
  6. package/styled-system/chunks/..__core____tests____atomic-rule.test.css +363 -0
  7. package/styled-system/chunks/src__components__analyzer__data-combobox.css +48 -40
  8. package/styled-system/chunks/src__components__analyzer__data-table.css +8 -0
  9. package/styled-system/chunks/src__layouts__Sidebar.css +4 -4
  10. package/styled-system/css/css.d.ts +1 -0
  11. package/styled-system/css/css.mjs +8 -0
  12. package/styled-system/css/cva.d.ts +1 -0
  13. package/styled-system/css/cx.d.ts +1 -0
  14. package/styled-system/css/index.d.ts +1 -0
  15. package/styled-system/global.css +1 -1
  16. package/styled-system/jsx/aspect-ratio.d.ts +1 -0
  17. package/styled-system/jsx/box.d.ts +1 -0
  18. package/styled-system/jsx/center.d.ts +1 -0
  19. package/styled-system/jsx/circle.d.ts +1 -0
  20. package/styled-system/jsx/container.d.ts +1 -0
  21. package/styled-system/jsx/divider.d.ts +1 -0
  22. package/styled-system/jsx/factory.d.ts +1 -0
  23. package/styled-system/jsx/flex.d.ts +1 -0
  24. package/styled-system/jsx/float.d.ts +1 -0
  25. package/styled-system/jsx/grid-item.d.ts +1 -0
  26. package/styled-system/jsx/grid.d.ts +1 -0
  27. package/styled-system/jsx/hstack.d.ts +1 -0
  28. package/styled-system/jsx/index.d.ts +1 -0
  29. package/styled-system/jsx/is-valid-prop.mjs +18 -2
  30. package/styled-system/jsx/link-box.d.ts +1 -0
  31. package/styled-system/jsx/link-overlay.d.ts +1 -0
  32. package/styled-system/jsx/spacer.d.ts +1 -0
  33. package/styled-system/jsx/square.d.ts +1 -0
  34. package/styled-system/jsx/stack.d.ts +1 -0
  35. package/styled-system/jsx/styled-link.d.ts +1 -0
  36. package/styled-system/jsx/vstack.d.ts +1 -0
  37. package/styled-system/jsx/wrap.d.ts +1 -0
  38. package/styled-system/patterns/aspect-ratio.d.ts +1 -0
  39. package/styled-system/patterns/aspect-ratio.mjs +18 -8
  40. package/styled-system/patterns/box.d.ts +1 -0
  41. package/styled-system/patterns/center.d.ts +1 -0
  42. package/styled-system/patterns/circle.d.ts +1 -0
  43. package/styled-system/patterns/container.d.ts +1 -0
  44. package/styled-system/patterns/divider.d.ts +1 -0
  45. package/styled-system/patterns/divider.mjs +1 -1
  46. package/styled-system/patterns/flex.d.ts +1 -0
  47. package/styled-system/patterns/float.d.ts +1 -0
  48. package/styled-system/patterns/grid-item.d.ts +1 -0
  49. package/styled-system/patterns/grid.d.ts +1 -0
  50. package/styled-system/patterns/hstack.d.ts +1 -0
  51. package/styled-system/patterns/index.d.ts +1 -0
  52. package/styled-system/patterns/link-box.d.ts +1 -0
  53. package/styled-system/patterns/link-overlay.d.ts +1 -0
  54. package/styled-system/patterns/spacer.d.ts +1 -0
  55. package/styled-system/patterns/square.d.ts +1 -0
  56. package/styled-system/patterns/stack.d.ts +1 -0
  57. package/styled-system/patterns/styled-link.d.ts +1 -0
  58. package/styled-system/patterns/vstack.d.ts +1 -0
  59. package/styled-system/patterns/wrap.d.ts +1 -0
  60. package/styled-system/styles.css +295 -16
  61. package/styled-system/tokens/index.css +3 -0
  62. package/styled-system/tokens/index.d.ts +1 -0
  63. package/styled-system/tokens/index.mjs +12 -0
  64. package/styled-system/tokens/tokens.d.ts +7 -3
  65. package/styled-system/types/composition.d.ts +1 -0
  66. package/styled-system/types/conditions.d.ts +1 -0
  67. package/styled-system/types/csstype.d.ts +1 -0
  68. package/styled-system/types/global.d.ts +6 -5
  69. package/styled-system/types/helpers.d.ts +1 -0
  70. package/styled-system/types/index.d.ts +3 -2
  71. package/styled-system/types/jsx.d.ts +1 -0
  72. package/styled-system/types/parts.d.ts +1 -0
  73. package/styled-system/types/pattern.d.ts +1 -0
  74. package/styled-system/types/prop-type.d.ts +26 -25
  75. package/styled-system/types/recipe.d.ts +1 -0
  76. package/styled-system/types/selectors.d.ts +4 -1
  77. package/styled-system/types/style-props.d.ts +12 -4
  78. package/styled-system/types/system-types.d.ts +1 -0
@@ -1,4 +1,8 @@
1
1
  @layer utilities {
2
+ .break_break-word {
3
+ word-break: break-word;
4
+ }
5
+
2
6
  .font_bold {
3
7
  font-weight: var(--font-weights-bold);
4
8
  }
@@ -15,6 +19,10 @@
15
19
  display: grid;
16
20
  }
17
21
 
22
+ .grid-cols_80px_repeat\(auto-fit\,_minmax\(30px\,_1fr\)\) {
23
+ grid-template-columns: 80px repeat(auto-fit, minmax(30px, 1fr));
24
+ }
25
+
18
26
  .gap_10px {
19
27
  gap: 10px;
20
28
  }
@@ -67,10 +67,6 @@
67
67
  min-width: var(--sizes-60);
68
68
  }
69
69
 
70
- .overflow_auto {
71
- overflow: auto;
72
- }
73
-
74
70
  .px_12 {
75
71
  padding-inline: var(--spacing-12);
76
72
  }
@@ -99,6 +95,10 @@
99
95
  width: var(--sizes-full);
100
96
  }
101
97
 
98
+ .overflow_auto {
99
+ overflow: auto;
100
+ }
101
+
102
102
  .md\:px_6 {
103
103
  @media screen and (min-width: 768px) {
104
104
  padding-inline: var(--spacing-6);
@@ -1,2 +1,3 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject } from '../types'
2
3
  export declare function css(styles: SystemStyleObject): string
@@ -265,6 +265,14 @@ const classNameMap = {
265
265
  stroke: 'stroke',
266
266
  srOnly: 'sr',
267
267
  debug: 'debug',
268
+ appearance: 'appearance',
269
+ backfaceVisibility: 'backface',
270
+ clipPath: 'clip-path',
271
+ hyphens: 'hyphens',
272
+ mask: 'mask',
273
+ maskImage: 'mask-image',
274
+ maskSize: 'mask-size',
275
+ textSizeAdjust: 'text-size-adjust',
268
276
  textStyle: 'textStyle',
269
277
  }
270
278
 
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { RecipeCreatorFn } from '../types/recipe'
2
3
 
3
4
  export declare const cva: RecipeCreatorFn
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  type Argument = string | boolean | null | undefined
2
3
 
3
4
  /** Conditionally join classNames into a single string */
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  export * from './css'
2
3
  export * from './cx'
3
4
  export * from './cva'
@@ -55,7 +55,7 @@
55
55
  }
56
56
 
57
57
  body {
58
- margin: 0;
58
+ margin: var(--spacing-0);
59
59
  min-height: 100vh;
60
60
  }
61
61
  }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { AspectRatioProperties } from '../patterns/aspect-ratio'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { BoxProperties } from '../patterns/box'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { CenterProperties } from '../patterns/center'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { CircleProperties } from '../patterns/circle'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { ContainerProperties } from '../patterns/container'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { DividerProperties } from '../patterns/divider'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,2 +1,3 @@
1
+ /* eslint-disable */
1
2
  import { Panda } from '../types/jsx'
2
3
  export declare const panda: Panda
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { FlexProperties } from '../patterns/flex'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { FloatProperties } from '../patterns/float'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { GridItemProperties } from '../patterns/grid-item'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { GridProperties } from '../patterns/grid'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { HstackProperties } from '../patterns/hstack'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  export * from './factory'
2
3
  export * from './box'
3
4
  export * from './flex'
@@ -348,6 +348,14 @@ var userGenerated = [
348
348
  'stroke',
349
349
  'srOnly',
350
350
  'debug',
351
+ 'appearance',
352
+ 'backfaceVisibility',
353
+ 'clipPath',
354
+ 'hyphens',
355
+ 'mask',
356
+ 'maskImage',
357
+ 'maskSize',
358
+ 'textSizeAdjust',
351
359
  'colorPalette',
352
360
  'textStyle',
353
361
  '_hover',
@@ -682,7 +690,6 @@ var allCssProperties = [
682
690
  'clip',
683
691
  'clipPath',
684
692
  'color',
685
- 'printColorAdjust',
686
693
  'colorScheme',
687
694
  'columnCount',
688
695
  'columnFill',
@@ -700,6 +707,9 @@ var allCssProperties = [
700
707
  'containIntrinsicHeight',
701
708
  'containIntrinsicInlineSize',
702
709
  'containIntrinsicWidth',
710
+ 'container',
711
+ 'containerName',
712
+ 'containerType',
703
713
  'content',
704
714
  'contentVisibility',
705
715
  'counterIncrement',
@@ -724,6 +734,7 @@ var allCssProperties = [
724
734
  'fontKerning',
725
735
  'fontLanguageOverride',
726
736
  'fontOpticalSizing',
737
+ 'fontPalette',
727
738
  'fontVariationSettings',
728
739
  'fontSize',
729
740
  'fontSizeAdjust',
@@ -735,6 +746,7 @@ var allCssProperties = [
735
746
  'fontVariantAlternates',
736
747
  'fontVariantCaps',
737
748
  'fontVariantEastAsian',
749
+ 'fontVariantEmoji',
738
750
  'fontVariantLigatures',
739
751
  'fontVariantNumeric',
740
752
  'fontVariantPosition',
@@ -878,6 +890,7 @@ var allCssProperties = [
878
890
  'paddingLeft',
879
891
  'paddingRight',
880
892
  'paddingTop',
893
+ 'page',
881
894
  'pageBreakAfter',
882
895
  'pageBreakBefore',
883
896
  'pageBreakInside',
@@ -889,6 +902,7 @@ var allCssProperties = [
889
902
  'placeSelf',
890
903
  'pointerEvents',
891
904
  'position',
905
+ 'printColorAdjust',
892
906
  'quotes',
893
907
  'resize',
894
908
  'right',
@@ -980,6 +994,7 @@ var allCssProperties = [
980
994
  'unicodeBidi',
981
995
  'userSelect',
982
996
  'verticalAlign',
997
+ 'viewTransitionName',
983
998
  'visibility',
984
999
  'whiteSpace',
985
1000
  'widows',
@@ -1001,7 +1016,8 @@ function memo(fn) {
1001
1016
  return cache[arg]
1002
1017
  }
1003
1018
  }
1019
+ var selectorRegex = /&|@/
1004
1020
  var isCssProperty = memo((prop) => {
1005
- return properties.has(prop) || prop.startsWith('--')
1021
+ return properties.has(prop) || prop.startsWith('--') || selectorRegex.test(prop)
1006
1022
  })
1007
1023
  export { allCssProperties, isCssProperty }
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { LinkBoxProperties } from '../patterns/link-box'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { LinkOverlayProperties } from '../patterns/link-overlay'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { SpacerProperties } from '../patterns/spacer'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { SquareProperties } from '../patterns/square'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { StackProperties } from '../patterns/stack'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { StyledLinkProperties } from '../patterns/styled-link'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { VstackProperties } from '../patterns/vstack'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { FunctionComponent } from 'react'
2
3
  import type { WrapProperties } from '../patterns/wrap'
3
4
  import type { HTMLPandaProps } from '../types/jsx'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -2,17 +2,27 @@ import { mapObject } from '../helpers.mjs'
2
2
  import { css } from '../css/index.mjs'
3
3
 
4
4
  const aspectRatioConfig = {
5
- transform(props) {
6
- const { ratio, ...rest } = props
5
+ transform(props, { map }) {
6
+ const { ratio = 4 / 3, ...rest } = props
7
7
  return {
8
- aspectRatio: ratio,
9
- overflow: 'hidden',
10
- display: 'flex',
11
- justifyContent: 'center',
12
- alignItems: 'center',
13
- '&>img, &>video': {
8
+ position: 'relative',
9
+ _before: {
10
+ content: `""`,
11
+ display: 'block',
12
+ height: '0',
13
+ paddingBottom: map(ratio, (r) => `${(1 / r) * 100}%`),
14
+ },
15
+ '&>*': {
16
+ display: 'flex',
17
+ justifyContent: 'center',
18
+ alignItems: 'center',
19
+ overflow: 'hidden',
20
+ position: 'absolute',
21
+ inset: '0',
14
22
  width: '100%',
15
23
  height: '100%',
24
+ },
25
+ '&>img, &>video': {
16
26
  objectFit: 'cover',
17
27
  },
18
28
  ...rest,
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -8,7 +8,7 @@ const dividerConfig = {
8
8
  '--thickness': thickness,
9
9
  width: map(orientation, (v) => (v === 'vertical' ? void 0 : '100%')),
10
10
  height: map(orientation, (v) => (v === 'horizontal' ? void 0 : '100%')),
11
- borderInlineStartWidth: map(orientation, (v) => (v === 'horizontal' ? 'var(--thickness)' : void 0)),
11
+ borderBlockEndWidth: map(orientation, (v) => (v === 'horizontal' ? 'var(--thickness)' : void 0)),
12
12
  borderInlineEndWidth: map(orientation, (v) => (v === 'vertical' ? 'var(--thickness)' : void 0)),
13
13
  borderColor: color,
14
14
  ...rest,
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  export * from './box'
2
3
  export * from './flex'
3
4
  export * from './stack'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'
@@ -1,3 +1,4 @@
1
+ /* eslint-disable */
1
2
  import type { SystemStyleObject, ConditionalValue } from '../types'
2
3
  import type { PropertyValue } from '../types/prop-type'
3
4
  import type { Properties } from '../types/csstype'