@cieloazul310/digital-go-pandacss-preset 0.0.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.
- package/.turbo/turbo-build.log +20 -0
- package/README.md +30 -0
- package/dist/index.d.mts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +3022 -0
- package/dist/index.mjs +2989 -0
- package/eslint.config.mjs +6 -0
- package/package.json +60 -0
- package/src/anatomy.ts +41 -0
- package/src/index.ts +32 -0
- package/src/recipes/accordion.ts +128 -0
- package/src/recipes/breadcrumb.ts +64 -0
- package/src/recipes/button.ts +192 -0
- package/src/recipes/checkbox.ts +297 -0
- package/src/recipes/disclosure.ts +98 -0
- package/src/recipes/divider.ts +21 -0
- package/src/recipes/drawer.ts +126 -0
- package/src/recipes/error-text.ts +16 -0
- package/src/recipes/hamburger-menu-button.ts +45 -0
- package/src/recipes/index.ts +71 -0
- package/src/recipes/input-text.ts +76 -0
- package/src/recipes/input.ts +81 -0
- package/src/recipes/label.ts +32 -0
- package/src/recipes/legend.ts +44 -0
- package/src/recipes/link.ts +66 -0
- package/src/recipes/list.ts +11 -0
- package/src/recipes/menu-item.ts +99 -0
- package/src/recipes/menu-list.ts +67 -0
- package/src/recipes/menu.ts +101 -0
- package/src/recipes/notification-banner.ts +246 -0
- package/src/recipes/ordered-list.ts +23 -0
- package/src/recipes/radio-group.ts +74 -0
- package/src/recipes/radio.ts +227 -0
- package/src/recipes/requirement-badge.ts +29 -0
- package/src/recipes/resource-list.ts +122 -0
- package/src/recipes/select-box.ts +81 -0
- package/src/recipes/select.ts +117 -0
- package/src/recipes/support-text.ts +16 -0
- package/src/recipes/table.ts +146 -0
- package/src/recipes/tabs.ts +90 -0
- package/src/recipes/textarea.ts +63 -0
- package/src/recipes/tree-view.ts +89 -0
- package/src/recipes/unordered-list.ts +19 -0
- package/src/recipes/utility-link.ts +56 -0
- package/tsconfig.json +4 -0
- package/tsup.config.ts +9 -0
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { defineSlotRecipe } from "@pandacss/dev";
|
|
2
|
+
import menuItem from "./menu-item";
|
|
3
|
+
import { anatomy as treeViewAnatomy } from "@ark-ui/anatomy/tree-view";
|
|
4
|
+
|
|
5
|
+
export default defineSlotRecipe({
|
|
6
|
+
className: "tree-view",
|
|
7
|
+
slots: treeViewAnatomy.keys(),
|
|
8
|
+
base: {
|
|
9
|
+
root: {},
|
|
10
|
+
label: {
|
|
11
|
+
py: 3,
|
|
12
|
+
pl: 3,
|
|
13
|
+
pr: 6,
|
|
14
|
+
textStyle: "oln-17B-100",
|
|
15
|
+
textWrap: "nowrap",
|
|
16
|
+
display: "block",
|
|
17
|
+
},
|
|
18
|
+
tree: {},
|
|
19
|
+
item: {
|
|
20
|
+
...menuItem.base,
|
|
21
|
+
},
|
|
22
|
+
itemIndicator: {
|
|
23
|
+
transition: "transform",
|
|
24
|
+
transform: { base: "rotate(0deg)", _open: "rotate(90deg)" },
|
|
25
|
+
},
|
|
26
|
+
itemText: {
|
|
27
|
+
flexGrow: 1,
|
|
28
|
+
},
|
|
29
|
+
branch: {},
|
|
30
|
+
branchControl: { ...menuItem.base },
|
|
31
|
+
branchTrigger: {},
|
|
32
|
+
branchContent: {
|
|
33
|
+
my: 1,
|
|
34
|
+
pl: 8,
|
|
35
|
+
},
|
|
36
|
+
branchIndicator: {
|
|
37
|
+
position: "absolute",
|
|
38
|
+
right: 4,
|
|
39
|
+
transition: "transform",
|
|
40
|
+
transform: { base: "rotate(0deg)", _open: "rotate(90deg)" },
|
|
41
|
+
},
|
|
42
|
+
branchText: {
|
|
43
|
+
flexGrow: 1,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
variants: {
|
|
47
|
+
variant: {
|
|
48
|
+
standard: {
|
|
49
|
+
item: {
|
|
50
|
+
...menuItem.variants?.variant?.standard,
|
|
51
|
+
},
|
|
52
|
+
branchControl: {
|
|
53
|
+
...menuItem.variants?.variant?.standard,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
boxed: {
|
|
57
|
+
item: {
|
|
58
|
+
...menuItem.variants?.variant?.boxed,
|
|
59
|
+
},
|
|
60
|
+
branchControl: {
|
|
61
|
+
...menuItem.variants?.variant?.boxed,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
isCondensed: {
|
|
66
|
+
true: {
|
|
67
|
+
label: {
|
|
68
|
+
py: 1.5,
|
|
69
|
+
pl: 1.5,
|
|
70
|
+
pr: 4,
|
|
71
|
+
},
|
|
72
|
+
item: {
|
|
73
|
+
...menuItem.variants?.isCondensed?.true,
|
|
74
|
+
},
|
|
75
|
+
branchControl: {
|
|
76
|
+
...menuItem.variants?.isCondensed?.true,
|
|
77
|
+
},
|
|
78
|
+
},
|
|
79
|
+
false: {
|
|
80
|
+
item: {
|
|
81
|
+
...menuItem.variants?.isCondensed?.false,
|
|
82
|
+
},
|
|
83
|
+
branchControl: {
|
|
84
|
+
...menuItem.variants?.isCondensed?.false,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { defineRecipe } from "@pandacss/dev";
|
|
2
|
+
|
|
3
|
+
export default defineRecipe({
|
|
4
|
+
className: "unordered-list",
|
|
5
|
+
base: {
|
|
6
|
+
/**
|
|
7
|
+
* pl-8 list-[revert]
|
|
8
|
+
*/
|
|
9
|
+
pl: 8,
|
|
10
|
+
listStyle: "revert",
|
|
11
|
+
/**
|
|
12
|
+
* [&_:where(ol,ul)]:mt-1 [&_:where(ol,ul)]:-mb-1
|
|
13
|
+
*/
|
|
14
|
+
"&:where(ol,ul)": {
|
|
15
|
+
mt: 1,
|
|
16
|
+
mb: -1,
|
|
17
|
+
},
|
|
18
|
+
},
|
|
19
|
+
});
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* https://github.com/digital-go-jp/design-system-example-components/blob/main/src/components/UtilityLink/UtilityLink.tsx
|
|
3
|
+
*/
|
|
4
|
+
import { defineRecipe } from "@pandacss/dev";
|
|
5
|
+
|
|
6
|
+
export default defineRecipe({
|
|
7
|
+
className: "utility-link",
|
|
8
|
+
description:
|
|
9
|
+
"ユーティリティリンクはふつうの横並びリンクリストに近いが、それよりもコンパクトに作られています。",
|
|
10
|
+
base: {
|
|
11
|
+
/**
|
|
12
|
+
* !text-solid-gray-800 text-dns-16N-130
|
|
13
|
+
* focus-visible:bg-yellow-300 focus-visible:text-blue-1000
|
|
14
|
+
*/
|
|
15
|
+
textStyle: "dns-16N-130",
|
|
16
|
+
color: {
|
|
17
|
+
base: "solid-gray.800",
|
|
18
|
+
_focusVisible: "keyColor.1000",
|
|
19
|
+
},
|
|
20
|
+
bg: { base: "transparent", _focusVisible: "yellow.300" },
|
|
21
|
+
/**
|
|
22
|
+
* underline underline-offset-[calc(3/16*1rem)]
|
|
23
|
+
* hover:decoration-[calc(3/16*1rem)]
|
|
24
|
+
*/
|
|
25
|
+
textDecoration: "underline",
|
|
26
|
+
textDecorationThickness: {
|
|
27
|
+
base: "1px",
|
|
28
|
+
_hover: "calc(3 / 16 * 1rem)",
|
|
29
|
+
},
|
|
30
|
+
textUnderlineOffset: "calc(3 / 16 * 1rem)",
|
|
31
|
+
/**
|
|
32
|
+
* focus-visible:rounded-4
|
|
33
|
+
* focus-visible:outline focus-visible:outline-4
|
|
34
|
+
* focus-visible:outline-black focus-visible:outline-offset-[calc(2/16*1rem)]
|
|
35
|
+
* focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
|
|
36
|
+
*/
|
|
37
|
+
_focusVisible: {
|
|
38
|
+
rounded: 4,
|
|
39
|
+
outlineStyle: "solid",
|
|
40
|
+
outlineWidth: "4px",
|
|
41
|
+
outlineColor: "black",
|
|
42
|
+
outlineOffset: "calc(2 / 16 * 1rem)",
|
|
43
|
+
focusRing: "calc(2 / 16 * 1rem)",
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* with icon
|
|
47
|
+
*/
|
|
48
|
+
display: "inline-flex",
|
|
49
|
+
alignItems: "center",
|
|
50
|
+
gap: 1,
|
|
51
|
+
"& svg": {
|
|
52
|
+
width: "1em",
|
|
53
|
+
height: "1em",
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
});
|
package/tsconfig.json
ADDED