@mekari/pixel3-theme 0.0.3 → 0.0.5-dev.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.
@@ -0,0 +1,91 @@
1
+ import { defineSlotRecipe } from '@pandacss/dev'
2
+
3
+ const segmentedControlSlotRecipe = defineSlotRecipe({
4
+ className: 'segmented-control',
5
+ jsx: ['MpSegmentedControl', 'mp-segmented-control'],
6
+ slots: ['root', 'item', 'hidden', 'control', 'label', 'icon'],
7
+ base: {
8
+ root: {
9
+ position: 'relative',
10
+ display: 'inline-flex',
11
+ gap: '1',
12
+ flexDirection: 'row',
13
+ justifyContent: 'var(--mp-segmented-control--justify-content)',
14
+ alignItems: 'center',
15
+ width: 'var(--mp-segmented-control--width)',
16
+ height: '9.5',
17
+ borderWidth: '1px',
18
+ borderColor: 'gray.100',
19
+ borderRadius: 'md',
20
+ outline: '0px solid transparent',
21
+ padding: '1'
22
+ },
23
+ item: {
24
+ flex: 'var(--mp-segmented-control--flex)',
25
+ cursor: 'var(--mp-segmented-control--cursor)'
26
+ },
27
+ hidden: {
28
+ border: '0px',
29
+ clip: 'rect(0px, 0px, 0px, 0px)',
30
+ margin: '-1px',
31
+ padding: '0px',
32
+ overflow: 'hidden',
33
+ whiteSpace: 'nowrap',
34
+ height: '1px',
35
+ width: '1px',
36
+ position: 'absolute'
37
+ },
38
+ control: {
39
+ display: 'flex',
40
+ alignItems: 'center',
41
+ justifyContent: 'var(--mp-segmented-control--justify-content)',
42
+ height: '7',
43
+ paddingY: '1',
44
+ userSelect: 'none',
45
+ borderRadius: 'sm',
46
+ transition: 'all 250ms',
47
+ color: 'gray.600',
48
+ backgroundColor: 'white',
49
+ gap: 'var(--mp-segmented-control--gap)',
50
+ paddingX: 'var(--mp-segmented-control--padding-x)',
51
+ 'input[type=radio]:hover:not(:disabled):not(:checked) + &': {
52
+ color: 'blue.700'
53
+ },
54
+ 'input[type=radio]:checked + &, input[type=radio][aria-checked=mixed] + &': {
55
+ color: 'blue.400',
56
+ backgroundColor: 'blue.50'
57
+ },
58
+ 'input[type=radio]:disabled + &': {
59
+ color: 'gray.400'
60
+ },
61
+ 'input[type=radio]:checked:hover:not(:disabled) + &, input[type=radio][aria-checked=mixed]:hover:not(:disabled) + &':
62
+ {
63
+ color: 'blue.700'
64
+ },
65
+ 'input[type=radio]:checked:focus + &, input[type=radio][aria-checked=mixed]:focus + &': {
66
+ color: 'blue.700',
67
+ boxShadow: 'outer'
68
+ },
69
+ 'input[type=radio]:checked:disabled + &, input[type=radio][aria-checked=mixed]:disabled + &':
70
+ {
71
+ color: 'gray.400',
72
+ backgroundColor: 'gray.50'
73
+ }
74
+ },
75
+ label: {
76
+ color: 'currentColor',
77
+ fontSize: 'md',
78
+ fontFamily: 'body',
79
+ lineHeight: 'md',
80
+ opacity: '1'
81
+ },
82
+ icon: {
83
+ color: 'currentColor'
84
+ }
85
+ },
86
+ variants: {},
87
+ compoundVariants: [],
88
+ defaultVariants: {}
89
+ })
90
+
91
+ export { segmentedControlSlotRecipe }
@@ -23,7 +23,8 @@ const tagSlotRecipe = defineSlotRecipe({
23
23
  paddingX: '2',
24
24
  whiteSpace: 'normal',
25
25
  overflowWrap: 'anywhere',
26
- cursor: 'var(--mp-tag--cursor)'
26
+ cursor: 'var(--mp-tag--cursor)',
27
+ height: 'fit-content'
27
28
  },
28
29
  close: {
29
30
  position: 'absolute!',
@@ -10,7 +10,8 @@ export const textRecipe = defineRecipe({
10
10
  textDecoration: 'line-through'
11
11
  },
12
12
  '&[data-text-link=true]': {
13
- textDecoration: 'underline'
13
+ textDecoration: 'underline',
14
+ cursor: 'pointer'
14
15
  }
15
16
  },
16
17
  variants: {
@@ -0,0 +1,49 @@
1
+ import { defineSlotRecipe } from '@pandacss/dev'
2
+
3
+ const toastSlotRecipe = defineSlotRecipe({
4
+ className: 'toast',
5
+ jsx: ['MpToast', 'mp-toast'],
6
+ slots: ['root', 'icon', 'label'],
7
+ base: {
8
+ root: {
9
+ display: 'flex',
10
+ alignItems: 'center',
11
+ gap: '2',
12
+ width: '356px',
13
+ border: '1.5px solid',
14
+ borderRadius: 'md',
15
+ backgroundColor: 'white',
16
+ padding: '3',
17
+ boxShadow: 'lg',
18
+ zIndex: '9999'
19
+ },
20
+ label: {
21
+ fontSize: 'md'
22
+ }
23
+ },
24
+ variants: {
25
+ variant: {
26
+ success: {},
27
+ error: {}
28
+ }
29
+ },
30
+ compoundVariants: [
31
+ {
32
+ variant: 'success',
33
+ css: {
34
+ root: { borderColor: 'green.700' }
35
+ }
36
+ },
37
+ {
38
+ variant: 'error',
39
+ css: {
40
+ root: { borderColor: 'red.700' }
41
+ }
42
+ }
43
+ ],
44
+ defaultVariants: {
45
+ variant: 'success'
46
+ }
47
+ })
48
+
49
+ export { toastSlotRecipe }
@@ -64,7 +64,7 @@ const uploadListSlotRecipe = defineSlotRecipe({
64
64
  width: 'full',
65
65
  display: 'flex',
66
66
  alignItems: 'center',
67
- justifyContent: 'start',
67
+ justifyContent: 'flex-start',
68
68
  gap: '3',
69
69
  py: '2',
70
70
  px: '1',
@@ -39,7 +39,7 @@ export const colors = defineTokens.colors({
39
39
  800: { value: 'rgba(255, 255, 255, 0.80)' },
40
40
  900: { value: 'rgba(255, 255, 255, 0.92)' }
41
41
  },
42
- blackAplpha: {
42
+ blackAlpha: {
43
43
  50: { value: 'rgba(0, 0, 0, 0.04)' },
44
44
  100: { value: 'rgba(0, 0, 0, 0.06)' },
45
45
  200: { value: 'rgba(0, 0, 0, 0.08)' },
@@ -3,7 +3,7 @@ import { defineTokens } from '@pandacss/dev'
3
3
  export const fonts = defineTokens.fonts({
4
4
  body: {
5
5
  value:
6
- '"inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
6
+ '"Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif, Segoe UI, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"'
7
7
  },
8
8
  mono: {
9
9
  value: 'SFMono-Regular, Menlo, Monaco,Consolas, "Liberation Mono", "Courier New", monospace'