@mekari/pixel3-theme 0.2.2-dev.3 → 0.2.2-dev.5
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/dist/index.js +285 -102
- package/dist/index.mjs +292 -109
- package/dist/recipes/divider.d.mts +2 -2
- package/dist/recipes/divider.d.ts +2 -2
- package/dist/recipes/index.d.mts +2 -1
- package/dist/recipes/index.d.ts +2 -1
- package/dist/recipes/textlink.d.mts +5 -0
- package/dist/recipes/textlink.d.ts +5 -0
- package/package.json +1 -1
- package/src/recipes/airene-button.ts +1 -1
- package/src/recipes/autocomplete.ts +23 -9
- package/src/recipes/broadcast.ts +27 -1
- package/src/recipes/button.ts +3 -0
- package/src/recipes/date-picker.ts +13 -4
- package/src/recipes/divider.ts +37 -31
- package/src/recipes/index.ts +5 -3
- package/src/recipes/modal.ts +4 -1
- package/src/recipes/popover.ts +3 -2
- package/src/recipes/select.ts +4 -4
- package/src/recipes/tag.ts +10 -15
- package/src/recipes/textlink.ts +105 -0
- package/src/recipes/timeline.ts +4 -2
- package/src/recipes/toast.ts +21 -1
- package/src/tokens/typography.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _pandacss_dev from '@pandacss/dev';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
3
|
+
declare const dividerSlotRecipe: _pandacss_dev.SlotRecipeConfig;
|
|
4
4
|
|
|
5
|
-
export {
|
|
5
|
+
export { dividerSlotRecipe };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _pandacss_dev from '@pandacss/dev';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
3
|
+
declare const dividerSlotRecipe: _pandacss_dev.SlotRecipeConfig;
|
|
4
4
|
|
|
5
|
-
export {
|
|
5
|
+
export { dividerSlotRecipe };
|
package/dist/recipes/index.d.mts
CHANGED
|
@@ -16,7 +16,6 @@ declare const recipes: {
|
|
|
16
16
|
tabSelectedBorderRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
17
17
|
tableRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
18
18
|
tableContainerRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
19
|
-
dividerRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
20
19
|
bannerTitleRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
21
20
|
bannerDescriptionRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
22
21
|
bannerLinkRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
@@ -28,10 +27,12 @@ declare const recipes: {
|
|
|
28
27
|
monthItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
29
28
|
yearItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
30
29
|
timeItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
30
|
+
textlinkRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
31
31
|
};
|
|
32
32
|
declare const slotRecipes: {
|
|
33
33
|
accordionSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
34
34
|
checkboxSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
35
|
+
dividerSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
35
36
|
radioSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
36
37
|
sharedSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
37
38
|
progressSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
package/dist/recipes/index.d.ts
CHANGED
|
@@ -16,7 +16,6 @@ declare const recipes: {
|
|
|
16
16
|
tabSelectedBorderRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
17
17
|
tableRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
18
18
|
tableContainerRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
19
|
-
dividerRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
20
19
|
bannerTitleRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
21
20
|
bannerDescriptionRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
22
21
|
bannerLinkRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
@@ -28,10 +27,12 @@ declare const recipes: {
|
|
|
28
27
|
monthItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
29
28
|
yearItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
30
29
|
timeItemRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
30
|
+
textlinkRecipe: _pandacss_types.RecipeConfig<_pandacss_types.RecipeVariantRecord>;
|
|
31
31
|
};
|
|
32
32
|
declare const slotRecipes: {
|
|
33
33
|
accordionSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
34
34
|
checkboxSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
35
|
+
dividerSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
35
36
|
radioSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
36
37
|
sharedSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
|
37
38
|
progressSlotRecipe: _pandacss_types.SlotRecipeConfig;
|
package/package.json
CHANGED
|
@@ -3,10 +3,19 @@ import { defineSlotRecipe } from '@pandacss/dev'
|
|
|
3
3
|
const autocompleteSlotRecipe = defineSlotRecipe({
|
|
4
4
|
className: 'autocomplete',
|
|
5
5
|
jsx: ['MpAutocomplete', 'mp-autocomplete'],
|
|
6
|
-
slots: [
|
|
6
|
+
slots: [
|
|
7
|
+
'groupText',
|
|
8
|
+
'popoverContent',
|
|
9
|
+
'buttonAction',
|
|
10
|
+
'emptyText',
|
|
11
|
+
'contentLoading',
|
|
12
|
+
'input',
|
|
13
|
+
'infinityScroll'
|
|
14
|
+
],
|
|
7
15
|
base: {
|
|
8
16
|
groupText: {
|
|
9
|
-
px: 3,
|
|
17
|
+
px: 3,
|
|
18
|
+
py: 2
|
|
10
19
|
},
|
|
11
20
|
popoverContent: {
|
|
12
21
|
maxHeight: '300px',
|
|
@@ -32,24 +41,29 @@ const autocompleteSlotRecipe = defineSlotRecipe({
|
|
|
32
41
|
_nextTheme: {
|
|
33
42
|
background: 'background.stage',
|
|
34
43
|
borderColor: 'border.default',
|
|
35
|
-
color: 'text.link'
|
|
44
|
+
color: 'text.link'
|
|
36
45
|
}
|
|
37
46
|
},
|
|
38
47
|
emptyText: {
|
|
39
|
-
px: 3,
|
|
48
|
+
px: 3,
|
|
40
49
|
py: 2
|
|
41
50
|
},
|
|
42
51
|
contentLoading: {
|
|
43
|
-
px: 3,
|
|
44
|
-
py: 2,
|
|
45
|
-
display: 'flex',
|
|
46
|
-
alignItems: 'center',
|
|
52
|
+
px: 3,
|
|
53
|
+
py: 2,
|
|
54
|
+
display: 'flex',
|
|
55
|
+
alignItems: 'center',
|
|
47
56
|
gap: 3
|
|
48
57
|
},
|
|
49
58
|
input: {
|
|
50
59
|
cursor: 'pointer'
|
|
60
|
+
},
|
|
61
|
+
infinityScroll: {
|
|
62
|
+
height: '1px',
|
|
63
|
+
width: '100%',
|
|
64
|
+
marginTop: '-1px'
|
|
51
65
|
}
|
|
52
|
-
}
|
|
66
|
+
}
|
|
53
67
|
})
|
|
54
68
|
|
|
55
69
|
export { autocompleteSlotRecipe }
|
package/src/recipes/broadcast.ts
CHANGED
|
@@ -126,7 +126,33 @@ const broadcastSlotRecipe = defineSlotRecipe({
|
|
|
126
126
|
color: 'text.warning.inverse'
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
}
|
|
129
|
+
},
|
|
130
|
+
critical: {
|
|
131
|
+
container: {
|
|
132
|
+
backgroundColor: 'rose.400',
|
|
133
|
+
_nextTheme: {
|
|
134
|
+
backgroundColor: 'background.danger.bold',
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
icon: {
|
|
138
|
+
color: 'white',
|
|
139
|
+
_nextTheme: {
|
|
140
|
+
color: 'icon.inverse'
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
label: {
|
|
144
|
+
color: 'white',
|
|
145
|
+
_nextTheme: {
|
|
146
|
+
color: 'text.inverse'
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
textLink: {
|
|
150
|
+
color: 'white',
|
|
151
|
+
_nextTheme: {
|
|
152
|
+
color: 'text.inverse'
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
},
|
|
130
156
|
}
|
|
131
157
|
},
|
|
132
158
|
compoundVariants: [],
|
package/src/recipes/button.ts
CHANGED
|
@@ -20,6 +20,9 @@ const buttonRecipe = defineRecipe({
|
|
|
20
20
|
transitionDuration: '250ms',
|
|
21
21
|
transitionProperty: 'background, border-color, color, box-shadow',
|
|
22
22
|
transitionTimingFunction: 'linear',
|
|
23
|
+
_isFullWidth: {
|
|
24
|
+
width: 'full'
|
|
25
|
+
},
|
|
23
26
|
_loading: {
|
|
24
27
|
cursor: 'wait',
|
|
25
28
|
position: 'absolute',
|
|
@@ -343,10 +343,13 @@ const monthItemRecipe = defineRecipe({
|
|
|
343
343
|
color: 'gray.400',
|
|
344
344
|
cursor: 'not-allowed',
|
|
345
345
|
borderColor: 'transparent',
|
|
346
|
-
backgroundColor: 'transparent'
|
|
346
|
+
backgroundColor: 'transparent',
|
|
347
|
+
_nextTheme: {
|
|
348
|
+
color: 'text.disabled'
|
|
349
|
+
}
|
|
347
350
|
},
|
|
348
351
|
_nextTheme: {
|
|
349
|
-
color: 'text.default'
|
|
352
|
+
color: 'text.default',
|
|
350
353
|
}
|
|
351
354
|
},
|
|
352
355
|
variants: {
|
|
@@ -423,7 +426,10 @@ const yearItemRecipe = defineRecipe({
|
|
|
423
426
|
color: 'gray.400',
|
|
424
427
|
cursor: 'not-allowed',
|
|
425
428
|
borderColor: 'transparent',
|
|
426
|
-
backgroundColor: 'transparent'
|
|
429
|
+
backgroundColor: 'transparent',
|
|
430
|
+
_nextTheme: {
|
|
431
|
+
color: 'text.disabled'
|
|
432
|
+
}
|
|
427
433
|
},
|
|
428
434
|
_nextTheme: {
|
|
429
435
|
color: 'text.default'
|
|
@@ -503,7 +509,10 @@ const timeItemRecipe = defineRecipe({
|
|
|
503
509
|
color: 'gray.400',
|
|
504
510
|
cursor: 'not-allowed',
|
|
505
511
|
borderColor: 'transparent',
|
|
506
|
-
backgroundColor: 'transparent'
|
|
512
|
+
backgroundColor: 'transparent',
|
|
513
|
+
_nextTheme: {
|
|
514
|
+
color: 'text.disabled'
|
|
515
|
+
}
|
|
507
516
|
},
|
|
508
517
|
_nextTheme: {
|
|
509
518
|
color: 'text.default'
|
package/src/recipes/divider.ts
CHANGED
|
@@ -1,43 +1,49 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { defineSlotRecipe } from '@pandacss/dev'
|
|
2
2
|
|
|
3
|
-
const
|
|
3
|
+
const dividerSlotRecipe = defineSlotRecipe({
|
|
4
4
|
className: 'divider',
|
|
5
5
|
jsx: ['MpDivider', 'mp-divider'],
|
|
6
|
+
slots: ['root', 'label'],
|
|
6
7
|
base: {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
},
|
|
15
|
-
variants: {
|
|
16
|
-
variant: {
|
|
17
|
-
solid: {
|
|
18
|
-
borderStyle: 'solid',
|
|
19
|
-
},
|
|
20
|
-
dashed: {
|
|
21
|
-
borderStyle: 'dashed'
|
|
8
|
+
root: {
|
|
9
|
+
position: 'relative',
|
|
10
|
+
borderColor: 'gray.100',
|
|
11
|
+
color: 'gray.100',
|
|
12
|
+
_nextTheme: {
|
|
13
|
+
color: 'text.secondary',
|
|
14
|
+
borderColor: 'border.default'
|
|
22
15
|
}
|
|
23
16
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
17
|
+
label: {
|
|
18
|
+
display: 'flex',
|
|
19
|
+
alignItems: 'center',
|
|
20
|
+
borderColor: 'gray.100',
|
|
21
|
+
color: 'gray.600',
|
|
22
|
+
_nextTheme: {
|
|
23
|
+
color: 'text.secondary',
|
|
24
|
+
},
|
|
25
|
+
_before: {
|
|
26
|
+
content: '""',
|
|
27
|
+
flex: 1,
|
|
28
|
+
borderTopWidth: '0.0625rem',
|
|
29
|
+
marginRight: '2',
|
|
30
|
+
borderColor: 'gray.100',
|
|
31
|
+
_nextTheme: {
|
|
32
|
+
borderColor: 'border.default'
|
|
33
|
+
},
|
|
29
34
|
},
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
35
|
+
_after: {
|
|
36
|
+
content: '""',
|
|
37
|
+
flex: 1,
|
|
38
|
+
borderTopWidth: '0.0625rem',
|
|
39
|
+
marginLeft: '2',
|
|
40
|
+
borderColor: 'gray.100',
|
|
41
|
+
_nextTheme: {
|
|
42
|
+
borderColor: 'border.default'
|
|
43
|
+
},
|
|
34
44
|
}
|
|
35
45
|
}
|
|
36
|
-
},
|
|
37
|
-
compoundVariants: [],
|
|
38
|
-
defaultVariants: {
|
|
39
|
-
orientation: 'horizontal'
|
|
40
46
|
}
|
|
41
47
|
})
|
|
42
48
|
|
|
43
|
-
export {
|
|
49
|
+
export { dividerSlotRecipe }
|
package/src/recipes/index.ts
CHANGED
|
@@ -21,7 +21,7 @@ import { tableRecipe, tableContainerRecipe } from './table'
|
|
|
21
21
|
import { progressSlotRecipe } from './progress'
|
|
22
22
|
import { formControlSlotRecipe } from './form-control'
|
|
23
23
|
import { inputTagSlotRecipe } from './input-tag'
|
|
24
|
-
import {
|
|
24
|
+
import { dividerSlotRecipe } from './divider'
|
|
25
25
|
import { modalSlotRecipe } from './modal'
|
|
26
26
|
import { uploadSlotRecipe, uploadListSlotRecipe } from './upload'
|
|
27
27
|
import { dropzoneSlotRecipe } from './dropzone'
|
|
@@ -64,6 +64,7 @@ import {
|
|
|
64
64
|
import { colorPickerSlotRecipe } from './color-picker'
|
|
65
65
|
import { sliderSlotRecipe } from './slider'
|
|
66
66
|
import { tourSlotRecipe } from './tour'
|
|
67
|
+
import { textlinkRecipe } from './textlink'
|
|
67
68
|
|
|
68
69
|
export const recipes = {
|
|
69
70
|
buttonRecipe,
|
|
@@ -81,7 +82,6 @@ export const recipes = {
|
|
|
81
82
|
tabSelectedBorderRecipe,
|
|
82
83
|
tableRecipe,
|
|
83
84
|
tableContainerRecipe,
|
|
84
|
-
dividerRecipe,
|
|
85
85
|
bannerTitleRecipe,
|
|
86
86
|
bannerDescriptionRecipe,
|
|
87
87
|
bannerLinkRecipe,
|
|
@@ -92,12 +92,14 @@ export const recipes = {
|
|
|
92
92
|
dateItemRecipe,
|
|
93
93
|
monthItemRecipe,
|
|
94
94
|
yearItemRecipe,
|
|
95
|
-
timeItemRecipe
|
|
95
|
+
timeItemRecipe,
|
|
96
|
+
textlinkRecipe
|
|
96
97
|
}
|
|
97
98
|
|
|
98
99
|
export const slotRecipes = {
|
|
99
100
|
accordionSlotRecipe,
|
|
100
101
|
checkboxSlotRecipe,
|
|
102
|
+
dividerSlotRecipe,
|
|
101
103
|
radioSlotRecipe,
|
|
102
104
|
sharedSlotRecipe,
|
|
103
105
|
progressSlotRecipe,
|
package/src/recipes/modal.ts
CHANGED
package/src/recipes/popover.ts
CHANGED
|
@@ -34,7 +34,8 @@ const popoverContentRecipe = defineRecipe({
|
|
|
34
34
|
defaultVariants: {
|
|
35
35
|
isDark: false,
|
|
36
36
|
isUnstyled: false
|
|
37
|
-
}
|
|
37
|
+
},
|
|
38
|
+
staticCss: ['*']
|
|
38
39
|
})
|
|
39
40
|
|
|
40
41
|
const popoverListRecipe = defineRecipe({
|
|
@@ -83,7 +84,7 @@ const popoverListItemRecipe = defineRecipe({
|
|
|
83
84
|
color: 'text.default'
|
|
84
85
|
}
|
|
85
86
|
},
|
|
86
|
-
|
|
87
|
+
'&[data-active="true"]': {
|
|
87
88
|
background: 'ice.50',
|
|
88
89
|
color: 'dark',
|
|
89
90
|
outline: 0,
|
package/src/recipes/select.ts
CHANGED
|
@@ -69,15 +69,15 @@ const selectSlotRecipe = defineSlotRecipe({
|
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
_focus: {
|
|
72
|
-
borderColor: '
|
|
72
|
+
borderColor: 'border.focused',
|
|
73
73
|
boxShadow: 'focus',
|
|
74
74
|
_hover: {
|
|
75
|
-
borderColor: '
|
|
75
|
+
borderColor: 'border.focused',
|
|
76
76
|
},
|
|
77
77
|
_invalid: {
|
|
78
|
-
borderColor: '
|
|
78
|
+
borderColor: 'border.focused',
|
|
79
79
|
_hover: {
|
|
80
|
-
borderColor: '
|
|
80
|
+
borderColor: 'border.focused',
|
|
81
81
|
},
|
|
82
82
|
}
|
|
83
83
|
},
|
package/src/recipes/tag.ts
CHANGED
|
@@ -47,20 +47,20 @@ const tagSlotRecipe = defineSlotRecipe({
|
|
|
47
47
|
size: {
|
|
48
48
|
sm: {
|
|
49
49
|
root: {
|
|
50
|
-
height: '5'
|
|
50
|
+
height: '5'
|
|
51
51
|
},
|
|
52
52
|
close: {
|
|
53
53
|
width: '5',
|
|
54
|
-
height: '5'
|
|
54
|
+
height: '5'
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
md: {
|
|
58
58
|
root: {
|
|
59
|
-
height: '7'
|
|
59
|
+
height: '7'
|
|
60
60
|
},
|
|
61
61
|
close: {
|
|
62
62
|
width: '7',
|
|
63
|
-
height: '7'
|
|
63
|
+
height: '7'
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
},
|
|
@@ -71,7 +71,7 @@ const tagSlotRecipe = defineSlotRecipe({
|
|
|
71
71
|
background: 'gray.50',
|
|
72
72
|
_nextTheme: {
|
|
73
73
|
color: 'text.secondary',
|
|
74
|
-
background: 'background.neutral.subtle'
|
|
74
|
+
background: 'background.neutral.subtle'
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
},
|
|
@@ -81,7 +81,7 @@ const tagSlotRecipe = defineSlotRecipe({
|
|
|
81
81
|
backgroundColor: 'red.50',
|
|
82
82
|
_nextTheme: {
|
|
83
83
|
color: 'text.danger',
|
|
84
|
-
background: 'background.danger'
|
|
84
|
+
background: 'background.danger'
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -99,7 +99,7 @@ const tagSlotRecipe = defineSlotRecipe({
|
|
|
99
99
|
_nextTheme: {
|
|
100
100
|
background: 'background.neutral.subtle',
|
|
101
101
|
boxShadow: '-7px 0px 15px -3px #0000001A',
|
|
102
|
-
color: 'icon.default'
|
|
102
|
+
color: 'icon.default'
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|
|
@@ -115,22 +115,17 @@ const tagSlotRecipe = defineSlotRecipe({
|
|
|
115
115
|
_nextTheme: {
|
|
116
116
|
background: 'background.danger',
|
|
117
117
|
boxShadow: '-7px 0px 15px -3px #0000001A',
|
|
118
|
-
color: 'icon.danger'
|
|
118
|
+
color: 'icon.danger'
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
size: 'sm',
|
|
125
|
-
css: {
|
|
126
|
-
close: { paddingTop: '0' }
|
|
127
|
-
}
|
|
128
122
|
}
|
|
129
123
|
],
|
|
130
124
|
defaultVariants: {
|
|
131
125
|
size: 'md',
|
|
132
126
|
variant: 'gray'
|
|
133
|
-
}
|
|
127
|
+
},
|
|
128
|
+
staticCss: ['*']
|
|
134
129
|
})
|
|
135
130
|
|
|
136
131
|
export { tagSlotRecipe }
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { defineRecipe } from '@pandacss/dev'
|
|
2
|
+
|
|
3
|
+
const textlinkRecipe = defineRecipe({
|
|
4
|
+
className: 'textlink',
|
|
5
|
+
jsx: ['MpTextlink', 'mp-textlink'],
|
|
6
|
+
base: {
|
|
7
|
+
display: 'inline-flex !important',
|
|
8
|
+
gap: '1',
|
|
9
|
+
py: '0 !important',
|
|
10
|
+
px: '2px !important',
|
|
11
|
+
backgroundColor: 'transparent !important',
|
|
12
|
+
textStyle: 'label.md !important',
|
|
13
|
+
_hover: {
|
|
14
|
+
textDecoration: 'underline'
|
|
15
|
+
},
|
|
16
|
+
_loading: {
|
|
17
|
+
background: 'white'
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
variants: {
|
|
21
|
+
variant: {
|
|
22
|
+
primary: {
|
|
23
|
+
color: 'blue.400',
|
|
24
|
+
_hover: {
|
|
25
|
+
color: 'blue.400'
|
|
26
|
+
},
|
|
27
|
+
_active: {
|
|
28
|
+
color: 'blue.700'
|
|
29
|
+
},
|
|
30
|
+
_nextTheme: {
|
|
31
|
+
color: 'text.link',
|
|
32
|
+
_hover: {
|
|
33
|
+
color: 'text.link',
|
|
34
|
+
},
|
|
35
|
+
_active: {
|
|
36
|
+
color: 'text.link.pressed'
|
|
37
|
+
},
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
secondary: {
|
|
41
|
+
color: 'gray.400',
|
|
42
|
+
_hover: {
|
|
43
|
+
color: 'gray.400'
|
|
44
|
+
},
|
|
45
|
+
_active: {
|
|
46
|
+
color: 'gray.700',
|
|
47
|
+
},
|
|
48
|
+
_nextTheme: {
|
|
49
|
+
color: 'text.secondary',
|
|
50
|
+
_hover: {
|
|
51
|
+
color: 'text.secondary',
|
|
52
|
+
},
|
|
53
|
+
_active: {
|
|
54
|
+
color: 'text.secondary.pressed'
|
|
55
|
+
},
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
danger: {
|
|
59
|
+
color: 'red.400',
|
|
60
|
+
_hover: {
|
|
61
|
+
color: 'red.400'
|
|
62
|
+
},
|
|
63
|
+
_active: {
|
|
64
|
+
color: 'red.700'
|
|
65
|
+
},
|
|
66
|
+
_nextTheme: {
|
|
67
|
+
color: 'text.danger',
|
|
68
|
+
_hover: {
|
|
69
|
+
color: 'text.danger',
|
|
70
|
+
},
|
|
71
|
+
_active: {
|
|
72
|
+
color: 'text.danger.pressed'
|
|
73
|
+
},
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
compoundVariants: [
|
|
79
|
+
{
|
|
80
|
+
variant: ['primary', 'secondary', 'danger'],
|
|
81
|
+
css: {
|
|
82
|
+
_disabled: {
|
|
83
|
+
cursor: 'not-allowed',
|
|
84
|
+
color: 'gray.100',
|
|
85
|
+
_hover: {
|
|
86
|
+
color: 'gray.100',
|
|
87
|
+
textDecoration: 'none'
|
|
88
|
+
},
|
|
89
|
+
_nextTheme: {
|
|
90
|
+
color: 'text.disabled',
|
|
91
|
+
_hover: {
|
|
92
|
+
color: 'text.disabled',
|
|
93
|
+
textDecoration: 'none'
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
_focusVisible: {
|
|
98
|
+
boxShadow: 'focus'
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
]
|
|
103
|
+
})
|
|
104
|
+
|
|
105
|
+
export { textlinkRecipe}
|
package/src/recipes/timeline.ts
CHANGED
|
@@ -109,11 +109,13 @@ const timelineLogSlotRecipe = defineSlotRecipe({
|
|
|
109
109
|
base: {
|
|
110
110
|
root: {
|
|
111
111
|
display: 'flex',
|
|
112
|
-
flexDirection: 'column'
|
|
112
|
+
flexDirection: 'column',
|
|
113
|
+
gap: '1'
|
|
113
114
|
},
|
|
114
115
|
log: {
|
|
115
116
|
display: 'flex',
|
|
116
|
-
cursor: 'pointer'
|
|
117
|
+
cursor: 'pointer',
|
|
118
|
+
gap: '1'
|
|
117
119
|
},
|
|
118
120
|
logText: {
|
|
119
121
|
color: 'gray.400',
|
package/src/recipes/toast.ts
CHANGED
|
@@ -30,7 +30,8 @@ const toastSlotRecipe = defineSlotRecipe({
|
|
|
30
30
|
variants: {
|
|
31
31
|
variant: {
|
|
32
32
|
success: {},
|
|
33
|
-
error: {}
|
|
33
|
+
error: {},
|
|
34
|
+
greeting: {}
|
|
34
35
|
}
|
|
35
36
|
},
|
|
36
37
|
compoundVariants: [
|
|
@@ -55,6 +56,25 @@ const toastSlotRecipe = defineSlotRecipe({
|
|
|
55
56
|
}
|
|
56
57
|
}
|
|
57
58
|
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
variant: 'greeting',
|
|
62
|
+
css: {
|
|
63
|
+
root: {
|
|
64
|
+
borderRadius: '999px',
|
|
65
|
+
border: 'none',
|
|
66
|
+
backgroundColor: 'overlay',
|
|
67
|
+
_nextTheme: {
|
|
68
|
+
backgroundColor: 'background.overlay',
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
label: {
|
|
72
|
+
color: 'white',
|
|
73
|
+
_nextTheme: {
|
|
74
|
+
color: 'text.inverse-static',
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
58
78
|
}
|
|
59
79
|
],
|
|
60
80
|
defaultVariants: {
|
package/src/tokens/typography.ts
CHANGED
|
@@ -28,7 +28,7 @@ export const fontWeights = defineTokens.fontWeights({
|
|
|
28
28
|
export const lineHeights = defineTokens.lineHeights({
|
|
29
29
|
xs: { value: 1.2 },
|
|
30
30
|
sm: { value: 1.34 },
|
|
31
|
-
md: { value: 1.
|
|
31
|
+
md: { value: 1.43 },
|
|
32
32
|
lg: { value: 1.429 },
|
|
33
33
|
xl: { value: 1.5 },
|
|
34
34
|
'2xl': { value: 1.67 },
|