@sakura-ui/sakura-ui 0.4.2 → 0.5.1
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/README.md +77 -0
- package/package.json +5 -5
- package/packages/core/package.json +1 -1
- package/packages/core/src/components/Card.tsx +51 -32
- package/packages/core/src/components/Faq.tsx +8 -24
- package/packages/core/src/components/LangSelector.tsx +2 -2
- package/packages/core/src/components/LinkCard.tsx +103 -54
- package/packages/core/src/components/PopoverMenu.tsx +2 -13
- package/packages/core/src/components/Table.tsx +1 -1
- package/packages/core/src/components/index.ts +1 -0
- package/packages/core/src/index.ts +2 -0
- package/packages/core/tests/Card.test.tsx +124 -20
- package/packages/core/tests/Faq.test.tsx +75 -0
- package/packages/core/tests/LinkCard.test.tsx +151 -0
- package/packages/forms/.turbo/turbo-build.log +3 -3
- package/packages/forms/dist/index.cjs.js +13 -21
- package/packages/forms/dist/index.es.js +91 -99
- package/packages/forms/package.json +1 -1
- package/packages/helper/.turbo/turbo-build.log +3 -3
- package/packages/helper/dist/index.cjs.js +6 -14
- package/packages/helper/dist/index.es.js +18 -26
- package/packages/helper/dist/types/styles.d.ts +2 -4
- package/packages/helper/dist/types/styles.d.ts.map +1 -1
- package/packages/helper/package.json +1 -1
- package/packages/helper/src/styles.ts +2 -14
- package/packages/markdown/.turbo/turbo-build.log +4 -4
- package/packages/markdown/dist/index.cjs.js +25 -33
- package/packages/markdown/dist/index.es.js +1531 -1534
- package/packages/markdown/dist/types/components/Markdown.d.ts.map +1 -1
- package/packages/markdown/dist/types/plugins/card.d.ts.map +1 -1
- package/packages/markdown/package.json +3 -2
- package/packages/markdown/src/components/Markdown.tsx +35 -11
- package/packages/markdown/src/plugins/card.ts +14 -0
- package/packages/tailwind-theme-plugin/.turbo/turbo-build.log +2 -2
- package/packages/tailwind-theme-plugin/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare namespace Style {
|
|
2
|
-
const clickable = "\n px-2\n min-h-[calc(44/16*1rem)]\n border\n border-transparent\n rounded-lg\n hover:bg-solid-
|
|
2
|
+
const clickable = "\n px-2\n min-h-[calc(44/16*1rem)]\n border\n border-transparent\n rounded-lg\n hover:bg-solid-gray-50\n ";
|
|
3
3
|
const selected = "\n rounded-full\n bg-yellow-50\n ";
|
|
4
4
|
const focusRectCondensed = "\n \n focus-visible:outline-4\n focus-visible:outline-black\n focus-visible:ring-yellow-300\n \n focus-visible:-outline-offset-4\n focus-visible:ring-[calc(6/16*1rem)]\n focus-visible:ring-inset\n ";
|
|
5
5
|
const focusRectCondensedWithBg = "\n \n \n focus-visible:outline-4\n focus-visible:outline-black\n focus-visible:ring-yellow-300\n \n focus-visible:-outline-offset-4\n focus-visible:ring-[calc(6/16*1rem)]\n focus-visible:ring-inset\n \n focus-visible:bg-yellow-300\n ";
|
|
@@ -11,9 +11,7 @@ export declare namespace Style {
|
|
|
11
11
|
const hoverUnderline = "\n hover:underline\n hover:underline-offset-[calc(3/16*1rem)]\n ";
|
|
12
12
|
const underline = "\n underline\n underline-offset-[calc(3/16*1rem)]\n hover:decoration-[calc(3/16*1rem)]\n ";
|
|
13
13
|
const underlineNoDeco = "\n underline\n underline-offset-[calc(3/16*1rem)]\n ";
|
|
14
|
-
const popover = "\n min-w-fit\n w-auto\n py-2\n bg-white\n shadow-1\n rounded-lg\n border\n border-solid-
|
|
15
|
-
const popoverPositionBottomRight = "\n absolute\n top-11\n right-0\n ";
|
|
16
|
-
const popoverPositionBottomLeft = "\n absolute\n top-11\n left-0\n ";
|
|
14
|
+
const popover = "\n min-w-fit\n w-auto\n py-2\n bg-white\n shadow-1\n rounded-lg\n border\n border-solid-gray-420\n has-[>:nth-child(7)]:rounded-r-none\n ";
|
|
17
15
|
namespace Peer {
|
|
18
16
|
const focus = "\n peer-focus-visible:outline-4\n peer-focus-visible:outline-black\n peer-focus-visible:ring-yellow-300\n ";
|
|
19
17
|
const focusRect = "\n \n peer-focus-visible:outline-4\n peer-focus-visible:outline-black\n peer-focus-visible:ring-yellow-300\n \n peer-focus-visible:outline-offset-[calc(2/16*1rem)]\n peer-focus-visible:ring-[calc(2/16*1rem)]\n ";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/styles.ts"],"names":[],"mappings":"AAAA,yBAAiB,KAAK,CAAC;IACd,MAAM,SAAS,iIAOrB,CAAA;IAEM,MAAM,QAAQ,6CAGpB,CAAA;IAQM,MAAM,kBAAkB,iOAK9B,CAAA;IAEM,MAAM,wBAAwB,4QAGpC,CAAA;IAEM,MAAM,SAAS,kNAIrB,CAAA;IAEM,MAAM,YAAY,0PAGxB,CAAA;IAEM,MAAM,SAAS,6RAIrB,CAAA;IAEM,MAAM,eAAe,6PAG3B,CAAA;IAEM,MAAM,kBAAkB,qSAG9B,CAAA;IAEM,MAAM,cAAc,4EAG1B,CAAA;IAEM,MAAM,SAAS,wGAIrB,CAAA;IAEM,MAAM,eAAe,gEAG3B,CAAA;IAEM,MAAM,OAAO,0KAUnB,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/styles.ts"],"names":[],"mappings":"AAAA,yBAAiB,KAAK,CAAC;IACd,MAAM,SAAS,iIAOrB,CAAA;IAEM,MAAM,QAAQ,6CAGpB,CAAA;IAQM,MAAM,kBAAkB,iOAK9B,CAAA;IAEM,MAAM,wBAAwB,4QAGpC,CAAA;IAEM,MAAM,SAAS,kNAIrB,CAAA;IAEM,MAAM,YAAY,0PAGxB,CAAA;IAEM,MAAM,SAAS,6RAIrB,CAAA;IAEM,MAAM,eAAe,6PAG3B,CAAA;IAEM,MAAM,kBAAkB,qSAG9B,CAAA;IAEM,MAAM,cAAc,4EAG1B,CAAA;IAEM,MAAM,SAAS,wGAIrB,CAAA;IAEM,MAAM,eAAe,gEAG3B,CAAA;IAEM,MAAM,OAAO,0KAUnB,CAAA;IAED,UAAiB,IAAI,CAAC;QACb,MAAM,KAAK,iIAIjB,CAAA;QAEM,MAAM,SAAS,2PAIrB,CAAA;KACF;CACF"}
|
|
@@ -5,7 +5,7 @@ export namespace Style {
|
|
|
5
5
|
border
|
|
6
6
|
border-transparent
|
|
7
7
|
rounded-lg
|
|
8
|
-
hover:bg-solid-
|
|
8
|
+
hover:bg-solid-gray-50
|
|
9
9
|
`
|
|
10
10
|
|
|
11
11
|
export const selected = `
|
|
@@ -82,22 +82,10 @@ export namespace Style {
|
|
|
82
82
|
shadow-1
|
|
83
83
|
rounded-lg
|
|
84
84
|
border
|
|
85
|
-
border-solid-
|
|
85
|
+
border-solid-gray-420
|
|
86
86
|
has-[>:nth-child(7)]:rounded-r-none
|
|
87
87
|
`
|
|
88
88
|
|
|
89
|
-
export const popoverPositionBottomRight = `
|
|
90
|
-
absolute
|
|
91
|
-
top-11
|
|
92
|
-
right-0
|
|
93
|
-
`
|
|
94
|
-
|
|
95
|
-
export const popoverPositionBottomLeft = `
|
|
96
|
-
absolute
|
|
97
|
-
top-11
|
|
98
|
-
left-0
|
|
99
|
-
`
|
|
100
|
-
|
|
101
89
|
export namespace Peer {
|
|
102
90
|
export const focus = `
|
|
103
91
|
peer-focus-visible:outline-4
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
$ rimraf dist
|
|
2
2
|
$ run-p build:*
|
|
3
3
|
$ vite build
|
|
4
|
-
[36mvite v7.3.6 [32mbuilding client environment for production...[36m[39m
|
|
5
4
|
$ tsc && tsc-alias
|
|
5
|
+
[36mvite v7.3.6 [32mbuilding client environment for production...[36m[39m
|
|
6
6
|
transforming...
|
|
7
7
|
[32m✓[39m 365 modules transformed.
|
|
8
8
|
rendering chunks...
|
|
9
9
|
computing gzip size...
|
|
10
|
-
[2mdist/[22m[36mindex.es.js [39m[1m[33m554.
|
|
11
|
-
[2mdist/[22m[36mindex.cjs.js [39m[1m[
|
|
12
|
-
[32m✓ built in
|
|
10
|
+
[2mdist/[22m[36mindex.es.js [39m[1m[33m554.68 kB[39m[22m[2m │ gzip: 141.35 kB[22m
|
|
11
|
+
[2mdist/[22m[36mindex.cjs.js [39m[1m[2m378.09 kB[22m[1m[22m[2m │ gzip: 117.25 kB[22m
|
|
12
|
+
[32m✓ built in 3.37s[39m
|