@cieloazul310/digital-go-pandacss-preset 0.0.1-prerelease.0 → 0.0.1-prerelease.2

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 (44) hide show
  1. package/dist/index.js +33 -45
  2. package/dist/index.mjs +29 -41
  3. package/package.json +24 -5
  4. package/.turbo/turbo-build.log +0 -20
  5. package/CHANGELOG.md +0 -10
  6. package/eslint.config.mjs +0 -6
  7. package/src/anatomy.ts +0 -41
  8. package/src/index.ts +0 -32
  9. package/src/recipes/accordion.ts +0 -128
  10. package/src/recipes/breadcrumb.ts +0 -64
  11. package/src/recipes/button.ts +0 -192
  12. package/src/recipes/checkbox.ts +0 -297
  13. package/src/recipes/disclosure.ts +0 -98
  14. package/src/recipes/divider.ts +0 -21
  15. package/src/recipes/drawer.ts +0 -126
  16. package/src/recipes/error-text.ts +0 -16
  17. package/src/recipes/hamburger-menu-button.ts +0 -45
  18. package/src/recipes/index.ts +0 -71
  19. package/src/recipes/input-text.ts +0 -76
  20. package/src/recipes/input.ts +0 -81
  21. package/src/recipes/label.ts +0 -32
  22. package/src/recipes/legend.ts +0 -44
  23. package/src/recipes/link.ts +0 -66
  24. package/src/recipes/list.ts +0 -11
  25. package/src/recipes/menu-item.ts +0 -99
  26. package/src/recipes/menu-list.ts +0 -67
  27. package/src/recipes/menu.ts +0 -101
  28. package/src/recipes/notification-banner.ts +0 -246
  29. package/src/recipes/ordered-list.ts +0 -23
  30. package/src/recipes/radio-group.ts +0 -74
  31. package/src/recipes/radio.ts +0 -227
  32. package/src/recipes/requirement-badge.ts +0 -29
  33. package/src/recipes/resource-list.ts +0 -122
  34. package/src/recipes/select-box.ts +0 -81
  35. package/src/recipes/select.ts +0 -117
  36. package/src/recipes/support-text.ts +0 -16
  37. package/src/recipes/table.ts +0 -146
  38. package/src/recipes/tabs.ts +0 -90
  39. package/src/recipes/textarea.ts +0 -63
  40. package/src/recipes/tree-view.ts +0 -89
  41. package/src/recipes/unordered-list.ts +0 -19
  42. package/src/recipes/utility-link.ts +0 -56
  43. package/tsconfig.json +0 -4
  44. package/tsup.config.ts +0 -9
package/dist/index.js CHANGED
@@ -40,7 +40,7 @@ var import_digital_go_pandacss_utils = require("@cieloazul310/digital-go-pandacs
40
40
 
41
41
  // src/recipes/accordion.ts
42
42
  var import_dev = require("@pandacss/dev");
43
- var import_accordion = require("@ark-ui/anatomy/accordion");
43
+ var import_accordion = require("@zag-js/accordion");
44
44
  var accordion_default = (0, import_dev.defineSlotRecipe)({
45
45
  className: "accordion",
46
46
  slots: import_accordion.anatomy.keys(),
@@ -166,42 +166,32 @@ var accordion_default = (0, import_dev.defineSlotRecipe)({
166
166
  // src/recipes/breadcrumb.ts
167
167
  var import_dev3 = require("@pandacss/dev");
168
168
 
169
- // ../../node_modules/@ark-ui/react/node_modules/@zag-js/anatomy/dist/index.mjs
170
- var createAnatomy = (name, parts = []) => ({
171
- parts: (...values) => {
172
- if (isEmpty(parts)) {
173
- return createAnatomy(name, values);
174
- }
175
- throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?");
176
- },
177
- extendWith: (...values) => createAnatomy(name, [...parts, ...values]),
178
- rename: (newName) => createAnatomy(newName, parts),
179
- keys: () => parts,
180
- build: () => [...new Set(parts)].reduce(
181
- (prev, part) => Object.assign(prev, {
182
- [part]: {
183
- selector: [
184
- `&[data-scope="${toKebabCase(name)}"][data-part="${toKebabCase(part)}"]`,
185
- `& [data-scope="${toKebabCase(name)}"][data-part="${toKebabCase(part)}"]`
186
- ].join(", "),
187
- attrs: { "data-scope": toKebabCase(name), "data-part": toKebabCase(part) }
188
- }
189
- }),
190
- {}
191
- )
192
- });
193
- var toKebabCase = (value) => value.replace(/([A-Z])([A-Z])/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
194
- var isEmpty = (v) => v.length === 0;
195
-
196
169
  // src/anatomy.ts
197
- var breadcrumbAnatomy = createAnatomy("breadcrumb").parts(
170
+ var import_anatomy = require("@zag-js/anatomy");
171
+ var breadcrumbAnatomy = (0, import_anatomy.createAnatomy)("breadcrumb").parts(
198
172
  "root",
199
173
  "list",
200
174
  "item",
201
175
  "link",
202
176
  "separator"
203
177
  );
204
- var menuListAnatomy = createAnatomy("menu-list").parts(
178
+ var disclosureAnatomy = (0, import_anatomy.createAnatomy)("disclosure").parts(
179
+ "root",
180
+ "summary",
181
+ "icon",
182
+ "content"
183
+ );
184
+ var inputTextAnatomy = (0, import_anatomy.createAnatomy)("field").parts(
185
+ "root",
186
+ "errorText",
187
+ "helperText",
188
+ "input",
189
+ "label",
190
+ "select",
191
+ "textarea",
192
+ "requiredIndicator"
193
+ );
194
+ var menuListAnatomy = (0, import_anatomy.createAnatomy)("menu-list").parts(
205
195
  "root",
206
196
  "label",
207
197
  "content",
@@ -212,10 +202,10 @@ var menuListAnatomy = createAnatomy("menu-list").parts(
212
202
  "itemIndicator",
213
203
  "input"
214
204
  );
215
- var notificationBannerAnatomy = createAnatomy(
205
+ var notificationBannerAnatomy = (0, import_anatomy.createAnatomy)(
216
206
  "notification-banner"
217
207
  ).parts("root", "icon", "close", "header", "heading", "body");
218
- var resourceListAnatomy = createAnatomy("resource-list").parts(
208
+ var resourceListAnatomy = (0, import_anatomy.createAnatomy)("resource-list").parts(
219
209
  "root",
220
210
  "contentsContainer",
221
211
  "functionButton",
@@ -537,10 +527,10 @@ var button_default = (0, import_dev4.defineRecipe)({
537
527
 
538
528
  // src/recipes/checkbox.ts
539
529
  var import_dev5 = require("@pandacss/dev");
540
- var import_checkbox = require("@ark-ui/anatomy/checkbox");
530
+ var import_checkbox = require("@zag-js/checkbox");
541
531
  var checkbox_default = (0, import_dev5.defineSlotRecipe)({
542
532
  className: "checkbox",
543
- slots: import_checkbox.anatomy.keys(),
533
+ slots: import_checkbox.anatomy.extendWith("group").keys(),
544
534
  base: {
545
535
  root: {
546
536
  /**
@@ -724,8 +714,7 @@ var checkbox_default = (0, import_dev5.defineSlotRecipe)({
724
714
  * data-[size=lg]:pt-2.5 data-[size=lg]:text-dns-17N-130
725
715
  */
726
716
  color: "solid-gray.800"
727
- },
728
- group: {}
717
+ }
729
718
  },
730
719
  variants: {
731
720
  size: {
@@ -836,7 +825,7 @@ var checkbox_default = (0, import_dev5.defineSlotRecipe)({
836
825
  var import_dev6 = require("@pandacss/dev");
837
826
  var disclosure_default = (0, import_dev6.defineSlotRecipe)({
838
827
  className: "disclosure",
839
- slots: ["root", "summary", "icon", "content"],
828
+ slots: disclosureAnatomy.keys(),
840
829
  base: {
841
830
  root: {
842
831
  /**
@@ -944,7 +933,7 @@ var divider_default = (0, import_dev7.defineRecipe)({
944
933
  });
945
934
 
946
935
  // src/recipes/drawer.ts
947
- var import_dialog = require("@ark-ui/anatomy/dialog");
936
+ var import_dialog = require("@zag-js/dialog");
948
937
  var import_dev8 = require("@pandacss/dev");
949
938
  var anatomy = import_dialog.anatomy.extendWith("header", "body", "footer");
950
939
  var drawer_default = (0, import_dev8.defineSlotRecipe)({
@@ -1198,7 +1187,6 @@ var input_default = (0, import_dev11.defineRecipe)({
1198
1187
 
1199
1188
  // src/recipes/input-text.ts
1200
1189
  var import_dev16 = require("@pandacss/dev");
1201
- var import_field = require("@ark-ui/anatomy/field");
1202
1190
 
1203
1191
  // src/recipes/label.ts
1204
1192
  var import_dev12 = require("@pandacss/dev");
@@ -1382,7 +1370,7 @@ var textarea_default = (0, import_dev15.defineRecipe)({
1382
1370
  var inputText = (0, import_dev16.defineSlotRecipe)({
1383
1371
  className: "input-text",
1384
1372
  description: "\u30A4\u30F3\u30D7\u30C3\u30C8\u30C6\u30AD\u30B9\u30C8\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306F\u3001\u540D\u524D\u3084\u96FB\u8A71\u756A\u53F7\u306A\u3069\u30011\u884C\u4EE5\u5185\u306E\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u3059\u308B\u5834\u5408\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002",
1385
- slots: import_field.anatomy.keys(),
1373
+ slots: inputTextAnatomy.keys(),
1386
1374
  base: {
1387
1375
  root: {
1388
1376
  display: "flex",
@@ -1496,7 +1484,7 @@ var list_default = (0, import_dev18.defineRecipe)({
1496
1484
 
1497
1485
  // src/recipes/menu.ts
1498
1486
  var import_dev20 = require("@pandacss/dev");
1499
- var import_menu = require("@ark-ui/anatomy/menu");
1487
+ var import_menu = require("@zag-js/menu");
1500
1488
 
1501
1489
  // src/recipes/menu-item.ts
1502
1490
  var import_dev19 = require("@pandacss/dev");
@@ -2234,7 +2222,7 @@ var radio_default = (0, import_dev24.defineSlotRecipe)({
2234
2222
 
2235
2223
  // src/recipes/radio-group.ts
2236
2224
  var import_dev25 = require("@pandacss/dev");
2237
- var import_radio_group = require("@ark-ui/anatomy/radio-group");
2225
+ var import_radio_group = require("@zag-js/radio-group");
2238
2226
  var radio_group_default = (0, import_dev25.defineSlotRecipe)({
2239
2227
  className: "radio-group",
2240
2228
  slots: import_radio_group.anatomy.keys(),
@@ -2452,7 +2440,7 @@ var resource_list_default = (0, import_dev27.defineSlotRecipe)({
2452
2440
 
2453
2441
  // src/recipes/select.ts
2454
2442
  var import_dev28 = require("@pandacss/dev");
2455
- var import_select = require("@ark-ui/anatomy/select");
2443
+ var import_select = require("@zag-js/select");
2456
2444
  var select_default = (0, import_dev28.defineSlotRecipe)({
2457
2445
  className: "select",
2458
2446
  description: "\u30BB\u30EC\u30AF\u30C8\u30DC\u30C3\u30AF\u30B9\u306F\u3001\u8907\u6570\u306E\u9078\u629E\u80A2\u3092\u63D0\u4F9B\u3059\u308B\u30D5\u30A9\u30FC\u30E0\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3067\u3059\u3002",
@@ -2705,7 +2693,7 @@ var table_default = (0, import_dev29.defineSlotRecipe)({
2705
2693
 
2706
2694
  // src/recipes/tabs.ts
2707
2695
  var import_dev30 = require("@pandacss/dev");
2708
- var import_tabs = require("@ark-ui/anatomy/tabs");
2696
+ var import_tabs = require("@zag-js/tabs");
2709
2697
  var tabs_default = (0, import_dev30.defineSlotRecipe)({
2710
2698
  className: "tabs",
2711
2699
  slots: import_tabs.anatomy.keys(),
@@ -2796,7 +2784,7 @@ var tabs_default = (0, import_dev30.defineSlotRecipe)({
2796
2784
 
2797
2785
  // src/recipes/tree-view.ts
2798
2786
  var import_dev31 = require("@pandacss/dev");
2799
- var import_tree_view = require("@ark-ui/anatomy/tree-view");
2787
+ var import_tree_view = require("@zag-js/tree-view");
2800
2788
  var tree_view_default = (0, import_dev31.defineSlotRecipe)({
2801
2789
  className: "tree-view",
2802
2790
  slots: import_tree_view.anatomy.keys(),
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
 
8
8
  // src/recipes/accordion.ts
9
9
  import { defineSlotRecipe } from "@pandacss/dev";
10
- import { anatomy as accordionAnatomy } from "@ark-ui/anatomy/accordion";
10
+ import { anatomy as accordionAnatomy } from "@zag-js/accordion";
11
11
  var accordion_default = defineSlotRecipe({
12
12
  className: "accordion",
13
13
  slots: accordionAnatomy.keys(),
@@ -133,34 +133,8 @@ var accordion_default = defineSlotRecipe({
133
133
  // src/recipes/breadcrumb.ts
134
134
  import { defineSlotRecipe as defineSlotRecipe2 } from "@pandacss/dev";
135
135
 
136
- // ../../node_modules/@ark-ui/react/node_modules/@zag-js/anatomy/dist/index.mjs
137
- var createAnatomy = (name, parts = []) => ({
138
- parts: (...values) => {
139
- if (isEmpty(parts)) {
140
- return createAnatomy(name, values);
141
- }
142
- throw new Error("createAnatomy().parts(...) should only be called once. Did you mean to use .extendWith(...) ?");
143
- },
144
- extendWith: (...values) => createAnatomy(name, [...parts, ...values]),
145
- rename: (newName) => createAnatomy(newName, parts),
146
- keys: () => parts,
147
- build: () => [...new Set(parts)].reduce(
148
- (prev, part) => Object.assign(prev, {
149
- [part]: {
150
- selector: [
151
- `&[data-scope="${toKebabCase(name)}"][data-part="${toKebabCase(part)}"]`,
152
- `& [data-scope="${toKebabCase(name)}"][data-part="${toKebabCase(part)}"]`
153
- ].join(", "),
154
- attrs: { "data-scope": toKebabCase(name), "data-part": toKebabCase(part) }
155
- }
156
- }),
157
- {}
158
- )
159
- });
160
- var toKebabCase = (value) => value.replace(/([A-Z])([A-Z])/g, "$1-$2").replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
161
- var isEmpty = (v) => v.length === 0;
162
-
163
136
  // src/anatomy.ts
137
+ import { createAnatomy } from "@zag-js/anatomy";
164
138
  var breadcrumbAnatomy = createAnatomy("breadcrumb").parts(
165
139
  "root",
166
140
  "list",
@@ -168,6 +142,22 @@ var breadcrumbAnatomy = createAnatomy("breadcrumb").parts(
168
142
  "link",
169
143
  "separator"
170
144
  );
145
+ var disclosureAnatomy = createAnatomy("disclosure").parts(
146
+ "root",
147
+ "summary",
148
+ "icon",
149
+ "content"
150
+ );
151
+ var inputTextAnatomy = createAnatomy("field").parts(
152
+ "root",
153
+ "errorText",
154
+ "helperText",
155
+ "input",
156
+ "label",
157
+ "select",
158
+ "textarea",
159
+ "requiredIndicator"
160
+ );
171
161
  var menuListAnatomy = createAnatomy("menu-list").parts(
172
162
  "root",
173
163
  "label",
@@ -504,10 +494,10 @@ var button_default = defineRecipe2({
504
494
 
505
495
  // src/recipes/checkbox.ts
506
496
  import { defineSlotRecipe as defineSlotRecipe3 } from "@pandacss/dev";
507
- import { anatomy as checkboxAnatomy } from "@ark-ui/anatomy/checkbox";
497
+ import { anatomy as checkboxAnatomy } from "@zag-js/checkbox";
508
498
  var checkbox_default = defineSlotRecipe3({
509
499
  className: "checkbox",
510
- slots: checkboxAnatomy.keys(),
500
+ slots: checkboxAnatomy.extendWith("group").keys(),
511
501
  base: {
512
502
  root: {
513
503
  /**
@@ -691,8 +681,7 @@ var checkbox_default = defineSlotRecipe3({
691
681
  * data-[size=lg]:pt-2.5 data-[size=lg]:text-dns-17N-130
692
682
  */
693
683
  color: "solid-gray.800"
694
- },
695
- group: {}
684
+ }
696
685
  },
697
686
  variants: {
698
687
  size: {
@@ -803,7 +792,7 @@ var checkbox_default = defineSlotRecipe3({
803
792
  import { defineSlotRecipe as defineSlotRecipe4 } from "@pandacss/dev";
804
793
  var disclosure_default = defineSlotRecipe4({
805
794
  className: "disclosure",
806
- slots: ["root", "summary", "icon", "content"],
795
+ slots: disclosureAnatomy.keys(),
807
796
  base: {
808
797
  root: {
809
798
  /**
@@ -911,7 +900,7 @@ var divider_default = defineRecipe3({
911
900
  });
912
901
 
913
902
  // src/recipes/drawer.ts
914
- import { anatomy as dialogAnatomy } from "@ark-ui/anatomy/dialog";
903
+ import { anatomy as dialogAnatomy } from "@zag-js/dialog";
915
904
  import { defineSlotRecipe as defineSlotRecipe5 } from "@pandacss/dev";
916
905
  var anatomy = dialogAnatomy.extendWith("header", "body", "footer");
917
906
  var drawer_default = defineSlotRecipe5({
@@ -1165,7 +1154,6 @@ var input_default = defineRecipe6({
1165
1154
 
1166
1155
  // src/recipes/input-text.ts
1167
1156
  import { defineSlotRecipe as defineSlotRecipe6 } from "@pandacss/dev";
1168
- import { anatomy as fieldAnatomy } from "@ark-ui/anatomy/field";
1169
1157
 
1170
1158
  // src/recipes/label.ts
1171
1159
  import { defineRecipe as defineRecipe7 } from "@pandacss/dev";
@@ -1349,7 +1337,7 @@ var textarea_default = defineRecipe10({
1349
1337
  var inputText = defineSlotRecipe6({
1350
1338
  className: "input-text",
1351
1339
  description: "\u30A4\u30F3\u30D7\u30C3\u30C8\u30C6\u30AD\u30B9\u30C8\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u306F\u3001\u540D\u524D\u3084\u96FB\u8A71\u756A\u53F7\u306A\u3069\u30011\u884C\u4EE5\u5185\u306E\u30C6\u30AD\u30B9\u30C8\u3092\u5165\u529B\u3059\u308B\u5834\u5408\u306B\u4F7F\u7528\u3057\u307E\u3059\u3002",
1352
- slots: fieldAnatomy.keys(),
1340
+ slots: inputTextAnatomy.keys(),
1353
1341
  base: {
1354
1342
  root: {
1355
1343
  display: "flex",
@@ -1463,7 +1451,7 @@ var list_default = defineRecipe12({
1463
1451
 
1464
1452
  // src/recipes/menu.ts
1465
1453
  import { defineSlotRecipe as defineSlotRecipe7 } from "@pandacss/dev";
1466
- import { anatomy as menuAnatomy } from "@ark-ui/anatomy/menu";
1454
+ import { anatomy as menuAnatomy } from "@zag-js/menu";
1467
1455
 
1468
1456
  // src/recipes/menu-item.ts
1469
1457
  import { defineRecipe as defineRecipe13 } from "@pandacss/dev";
@@ -2201,7 +2189,7 @@ var radio_default = defineSlotRecipe10({
2201
2189
 
2202
2190
  // src/recipes/radio-group.ts
2203
2191
  import { defineSlotRecipe as defineSlotRecipe11 } from "@pandacss/dev";
2204
- import { anatomy as radioGroupAnatomy } from "@ark-ui/anatomy/radio-group";
2192
+ import { anatomy as radioGroupAnatomy } from "@zag-js/radio-group";
2205
2193
  var radio_group_default = defineSlotRecipe11({
2206
2194
  className: "radio-group",
2207
2195
  slots: radioGroupAnatomy.keys(),
@@ -2419,7 +2407,7 @@ var resource_list_default = defineSlotRecipe12({
2419
2407
 
2420
2408
  // src/recipes/select.ts
2421
2409
  import { defineSlotRecipe as defineSlotRecipe13 } from "@pandacss/dev";
2422
- import { anatomy as selectAnatomy } from "@ark-ui/anatomy/select";
2410
+ import { anatomy as selectAnatomy } from "@zag-js/select";
2423
2411
  var select_default = defineSlotRecipe13({
2424
2412
  className: "select",
2425
2413
  description: "\u30BB\u30EC\u30AF\u30C8\u30DC\u30C3\u30AF\u30B9\u306F\u3001\u8907\u6570\u306E\u9078\u629E\u80A2\u3092\u63D0\u4F9B\u3059\u308B\u30D5\u30A9\u30FC\u30E0\u30B3\u30F3\u30C8\u30ED\u30FC\u30EB\u3067\u3059\u3002",
@@ -2672,7 +2660,7 @@ var table_default = defineSlotRecipe14({
2672
2660
 
2673
2661
  // src/recipes/tabs.ts
2674
2662
  import { defineSlotRecipe as defineSlotRecipe15 } from "@pandacss/dev";
2675
- import { anatomy as tabsAnatomy } from "@ark-ui/anatomy/tabs";
2663
+ import { anatomy as tabsAnatomy } from "@zag-js/tabs";
2676
2664
  var tabs_default = defineSlotRecipe15({
2677
2665
  className: "tabs",
2678
2666
  slots: tabsAnatomy.keys(),
@@ -2763,7 +2751,7 @@ var tabs_default = defineSlotRecipe15({
2763
2751
 
2764
2752
  // src/recipes/tree-view.ts
2765
2753
  import { defineSlotRecipe as defineSlotRecipe16 } from "@pandacss/dev";
2766
- import { anatomy as treeViewAnatomy } from "@ark-ui/anatomy/tree-view";
2754
+ import { anatomy as treeViewAnatomy } from "@zag-js/tree-view";
2767
2755
  var tree_view_default = defineSlotRecipe16({
2768
2756
  className: "tree-view",
2769
2757
  slots: treeViewAnatomy.keys(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cieloazul310/digital-go-pandacss-preset",
3
- "version": "0.0.1-prerelease.0",
3
+ "version": "0.0.1-prerelease.2",
4
4
  "license": "MIT",
5
5
  "homepage": "https://github.com/cieloazul310/digital-go-design-system-with-panda",
6
6
  "author": {
@@ -16,6 +16,9 @@
16
16
  "access": "public",
17
17
  "registry": "https://registry.npmjs.org/"
18
18
  },
19
+ "files": [
20
+ "dist"
21
+ ],
19
22
  "types": "./dist/index.d.ts",
20
23
  "main": "./dist/index.js",
21
24
  "exports": {
@@ -36,20 +39,36 @@
36
39
  "format": "prettier --parser typescript --write ."
37
40
  },
38
41
  "dependencies": {
39
- "@cieloazul310/digital-go-pandacss-plugin": "^0.0.1-prerelease.0",
40
- "@cieloazul310/digital-go-pandacss-utils": "^0.0.1-prerelease.0"
42
+ "@cieloazul310/digital-go-pandacss-plugin": "^0.0.1-prerelease.2",
43
+ "@cieloazul310/digital-go-pandacss-utils": "^0.0.1-prerelease.2"
41
44
  },
42
45
  "devDependencies": {
43
- "@ark-ui/anatomy": "^3.5.0",
44
46
  "@pandacss/dev": "^0.53.7",
45
47
  "@repo/eslint-config": "^0.0.0",
46
48
  "@repo/typescript-config": "^0.0.0",
49
+ "@zag-js/accordion": "^1.18.3",
50
+ "@zag-js/anatomy": "^1.18.3",
51
+ "@zag-js/checkbox": "^1.18.3",
52
+ "@zag-js/dialog": "^1.18.3",
53
+ "@zag-js/menu": "^1.18.3",
54
+ "@zag-js/radio-group": "^1.18.3",
55
+ "@zag-js/select": "^1.18.3",
56
+ "@zag-js/tabs": "^1.18.3",
57
+ "@zag-js/tree-view": "^1.18.3",
47
58
  "eslint": "^9.28.0",
48
59
  "tsup": "8.5.0",
49
60
  "typescript": "5.8.3"
50
61
  },
51
62
  "peerDependencies": {
52
- "@ark-ui/anatomy": "^3.0.0"
63
+ "@zag-js/accordion": "^1.0.0",
64
+ "@zag-js/anatomy": "^1.0.0",
65
+ "@zag-js/checkbox": "^1.0.0",
66
+ "@zag-js/dialog": "^1.0.0",
67
+ "@zag-js/menu": "^1.0.0",
68
+ "@zag-js/radio-group": "^1.0.0",
69
+ "@zag-js/select": "^1.0.0",
70
+ "@zag-js/tabs": "^1.0.0",
71
+ "@zag-js/tree-view": "^1.0.0"
53
72
  },
54
73
  "lint-staged": {
55
74
  "**/*.{js,mjs,cjs,tsx,ts,tsx}": [
@@ -1,20 +0,0 @@
1
-
2
- > @cieloazul310/digital-go-pandacss-preset@0.0.1-prerelease.0 build
3
- > tsup
4
-
5
- CLI Building entry: src/index.ts
6
- CLI Using tsconfig: tsconfig.json
7
- CLI tsup v8.5.0
8
- CLI Using tsup config: /home/runner/work/digital-go-design-system-with-panda/digital-go-design-system-with-panda/packages/preset/tsup.config.ts
9
- CLI Target: es2022
10
- CLI Cleaning output folder
11
- ESM Build start
12
- CJS Build start
13
- ESM dist/index.mjs 77.58 KB
14
- ESM ⚡️ Build success in 46ms
15
- CJS dist/index.js 79.11 KB
16
- CJS ⚡️ Build success in 46ms
17
- DTS Build start
18
- DTS ⚡️ Build success in 3569ms
19
- DTS dist/index.d.mts 248.00 B
20
- DTS dist/index.d.ts 248.00 B
package/CHANGELOG.md DELETED
@@ -1,10 +0,0 @@
1
- # @cieloazul310/digital-go-pandacss-preset
2
-
3
- ## 0.0.1-prerelease.0
4
-
5
- ### Patch Changes
6
-
7
- - d51597c: prerelease
8
- - Updated dependencies [d51597c]
9
- - @cieloazul310/digital-go-pandacss-plugin@0.0.1-prerelease.0
10
- - @cieloazul310/digital-go-pandacss-utils@0.0.1-prerelease.0
package/eslint.config.mjs DELETED
@@ -1,6 +0,0 @@
1
- import libraryConfig from "@repo/eslint-config/library";
2
-
3
- /**
4
- * @type {import("eslint").Linter.Config}
5
- */
6
- export default [...libraryConfig];
package/src/anatomy.ts DELETED
@@ -1,41 +0,0 @@
1
- /**
2
- * https://github.com/chakra-ui/chakra-ui/blob/main/packages/react/src/anatomy.ts
3
- */
4
- import { createAnatomy } from "@ark-ui/react/anatomy";
5
-
6
- export const breadcrumbAnatomy = createAnatomy("breadcrumb").parts(
7
- "root",
8
- "list",
9
- "item",
10
- "link",
11
- "separator",
12
- );
13
-
14
- export const menuListAnatomy = createAnatomy("menu-list").parts(
15
- "root",
16
- "label",
17
- "content",
18
- "item",
19
- "itemGroup",
20
- "itemGroupLabel",
21
- "itemText",
22
- "itemIndicator",
23
- "input",
24
- );
25
-
26
- export const notificationBannerAnatomy = createAnatomy(
27
- "notification-banner",
28
- ).parts("root", "icon", "close", "header", "heading", "body");
29
-
30
- export const resourceListAnatomy = createAnatomy("resource-list").parts(
31
- "root",
32
- "contentsContainer",
33
- "functionButton",
34
- "frontIcon",
35
- "form",
36
- "content",
37
- "label",
38
- "title",
39
- "supportText",
40
- "subLabel",
41
- );
package/src/index.ts DELETED
@@ -1,32 +0,0 @@
1
- import { definePreset, type Preset } from "@pandacss/dev";
2
- import presetBase from "@cieloazul310/digital-go-pandacss-plugin";
3
- import {
4
- createKeyColor,
5
- type Palette,
6
- } from "@cieloazul310/digital-go-pandacss-utils";
7
- import recipes from "./recipes";
8
-
9
- const base = {
10
- name: "digital-go-pandacss-preset",
11
- presets: [presetBase],
12
- theme: {
13
- recipes,
14
- },
15
- } satisfies Preset;
16
-
17
- export default definePreset(base);
18
-
19
- export const createPreset = (keyColor?: Palette) =>
20
- definePreset({
21
- ...base,
22
- theme: {
23
- ...base.theme,
24
- extend: {
25
- semanticTokens: {
26
- colors: {
27
- keyColor: createKeyColor(keyColor ?? "blue"),
28
- },
29
- },
30
- },
31
- },
32
- });
@@ -1,128 +0,0 @@
1
- /**
2
- * source:
3
- * https://github.com/digital-go-jp/design-system-example-components/blob/main/src/components/Accordion/Accordion.tsx
4
- */
5
- import { defineSlotRecipe } from "@pandacss/dev";
6
- import { anatomy as accordionAnatomy } from "@ark-ui/anatomy/accordion";
7
-
8
- export default defineSlotRecipe({
9
- className: "accordion",
10
- slots: accordionAnatomy.keys(),
11
- base: {
12
- item: {
13
- /**
14
- * group/accordion border-b border-solid-gray-420
15
- [--icon-size:calc(20/16*1rem)] desktop:[--icon-size:calc(32/16*1rem)]
16
- ${className ?? ''}
17
- */
18
- borderBottomWidth: "1px",
19
- borderBottomColor: "solid-gray.420",
20
- "--icon-size": {
21
- base: "calc(20 / 16 * 1rem)",
22
- md: "calc(32 / 16 * 1rem)",
23
- },
24
- },
25
- itemTrigger: {
26
- /**
27
- * group/summary relative block cursor-default
28
- */
29
- position: "relative",
30
- display: "block",
31
- /**
32
- * hover:bg-solid-gray-50
33
- * focus-visible:bg-yellow-300
34
- */
35
- bg: {
36
- base: "transparent",
37
- _hover: "solid-gray.50",
38
- _focusVisible: { base: "yellow.300", _hover: "yellow.300" },
39
- },
40
- /*
41
- * py-2 pl-[calc(var(--icon-size)+(12/16*1rem))] pr-2
42
- * desktop:py-3.5 desktop:pl-[calc(var(--icon-size)+(20/16*1rem))] desktop:pr-4
43
- */
44
- py: { base: 2, md: 3.5 },
45
- pl: {
46
- base: "calc(var(--icon-size) + (12 / 16 * 1rem))",
47
- md: "calc(var(--icon-size) + (20 / 16 * 1rem))",
48
- },
49
- pr: { base: 2, md: 4 },
50
- cursor: { _hover: "pointer" },
51
- /**
52
- * marker:[content:'']
53
- [&::-webkit-details-marker]:hidden
54
- */
55
- "&::marker": { content: '""' },
56
- /**
57
- * focus-visible:rounded-4 focus-visible:outline focus-visible:outline-4 focus-visible:outline-offset-[calc(2/16*1rem)] focus-visible:outline-black focus-visible:ring-[calc(2/16*1rem)] focus-visible:ring-yellow-300
58
- */
59
- _focusVisible: {
60
- rounded: 4,
61
- outlineStyle: "solid",
62
- outlineWidth: "4px",
63
- outlineColor: "black",
64
- outlineOffset: "calc(2 / 16 * 1rem)",
65
- focusRing: "calc(2 / 16 * 1rem)",
66
- },
67
- /**
68
- * remove button style
69
- */
70
- textAlign: "start",
71
- width: "full",
72
- },
73
- itemIndicator: {
74
- /**
75
- * absolute top-2 left-0.5
76
- * desktop:top-3.5 desktop:left-1.5
77
- * size-[var(--icon-size)]
78
- * mt-[calc((1lh-var(--icon-size))/2)]
79
- */
80
- position: "absolute",
81
- top: { base: 2, md: 3.5 },
82
- left: { base: 0.5, md: 1.5 },
83
- width: "var(--icon-size)",
84
- height: "var(--icon-size)",
85
- mt: "calc((1lh - var(--icon-size)) / 2)",
86
- /**
87
- * inline-flex items-center justify-center
88
- */
89
- display: "inline-flex",
90
- alignItems: "center",
91
- justifyContent: "center",
92
- /**
93
- * bg-white text-blue-1000
94
- */
95
- bg: "white",
96
- color: "keyColor.1000",
97
- /**
98
- * border border-current rounded-full
99
- group-hover/summary:outline group-hover/summary:outline-2 group-hover/summary:outline-current
100
- group-open/accordion:rotate-180
101
- */
102
- borderWidth: "1px",
103
- borderColor: "currentcolor",
104
- rounded: "full",
105
- outlineStyle: "solid",
106
- outlineWidth: { base: "0px", _groupHover: "2px" },
107
- transformOrigin: "center",
108
- transitionDuration: "normal",
109
- transitionProperty: "transform",
110
- transitionTimingFunction: "default",
111
- _open: {
112
- transform: "rotate(-180deg)",
113
- },
114
- },
115
- itemContent: {
116
- /**
117
- * pl-[calc(var(--icon-size)+(12/16*1rem))] pr-2 py-4
118
- desktop:pl-[calc(var(--icon-size)+(20/16*1rem))] desktop:pr-4 desktop:py-6
119
- */
120
- pl: {
121
- base: "calc(var(--icon-size) + (12 / 16 * 1rem))",
122
- md: "calc(var(--icon-size) + (20 / 16 * 1rem))",
123
- },
124
- pr: { base: 2, md: 4 },
125
- py: { base: 4, md: 6 },
126
- },
127
- },
128
- });