@elmethis/react 0.24.0 → 0.25.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.
Files changed (97) hide show
  1. package/README.md +2 -2
  2. package/lib/index.react.cjs +5 -5
  3. package/lib/index.react.mjs +2659 -3092
  4. package/lib/style.css +1 -1
  5. package/lib-types/components/a2ui/catalog/catalog-utils.d.ts.map +1 -1
  6. package/lib-types/components/a2ui/catalog/notion-block-catalog.d.ts +4 -4
  7. package/lib-types/components/a2ui/catalog/notion-block-catalog.d.ts.map +1 -1
  8. package/lib-types/components/a2ui/elm-a2ui.d.ts +3 -3
  9. package/lib-types/components/a2ui/elm-a2ui.d.ts.map +1 -1
  10. package/lib-types/components/a2ui/stream-json-lines.d.ts.map +1 -1
  11. package/lib-types/components/code/elm-html-viewer.d.ts.map +1 -1
  12. package/lib-types/components/code/elm-html.d.ts.map +1 -1
  13. package/lib-types/components/code/elm-shiki-highlighter.d.ts.map +1 -1
  14. package/lib-types/components/containments/elm-modal.d.ts.map +1 -1
  15. package/lib-types/components/containments/elm-parallax.d.ts.map +1 -1
  16. package/lib-types/components/containments/elm-toggle.d.ts.map +1 -1
  17. package/lib-types/components/containments/elm-tooltip.d.ts.map +1 -1
  18. package/lib-types/components/form/elm-button-dropdown.d.ts.map +1 -1
  19. package/lib-types/components/form/elm-select.d.ts.map +1 -1
  20. package/lib-types/components/form/elm-slider.d.ts.map +1 -1
  21. package/lib-types/components/form/elm-text-field.d.ts.map +1 -1
  22. package/lib-types/components/icon/elm-language-icon.d.ts +2 -3
  23. package/lib-types/components/icon/elm-language-icon.d.ts.map +1 -1
  24. package/lib-types/components/icon/language-glyph.d.ts.map +1 -1
  25. package/lib-types/components/media/elm-audio-player.d.ts.map +1 -1
  26. package/lib-types/components/media/elm-file.d.ts.map +1 -1
  27. package/lib-types/components/others/elm-color-primitive-sample.d.ts.map +1 -1
  28. package/lib-types/components/others/elm-color-semantic-sample.d.ts.map +1 -1
  29. package/lib-types/components/others/elm-markdown.d.ts.map +1 -1
  30. package/lib-types/components/others/use-wordle.d.ts.map +1 -1
  31. package/lib-types/components/table/elm-table-cell.d.ts.map +1 -1
  32. package/lib-types/components/table/elm-table.d.ts.map +1 -1
  33. package/lib-types/components/typography/elm-heading.d.ts.map +1 -1
  34. package/lib-types/components/typography/elm-inline-text.d.ts.map +1 -1
  35. package/lib-types/hooks/use-async-state.d.ts.map +1 -1
  36. package/lib-types/hooks/use-clipboard.d.ts.map +1 -1
  37. package/lib-types/hooks/use-debounced-store.d.ts.map +1 -1
  38. package/lib-types/hooks/use-delayed-signal.d.ts.map +1 -1
  39. package/lib-types/hooks/use-elmethis-theme.d.ts +15 -5
  40. package/lib-types/hooks/use-elmethis-theme.d.ts.map +1 -1
  41. package/lib-types/hooks/use-storage.d.ts.map +1 -1
  42. package/lib-types/hooks/use-throttled-queue.d.ts.map +1 -1
  43. package/lib-types/hooks/use-throttled-signal.d.ts.map +1 -1
  44. package/lib-types/hooks/use-throttled-store.d.ts.map +1 -1
  45. package/package.json +44 -49
  46. package/lib-types/components/a2ui/catalog/block-catalog.d.ts +0 -18
  47. package/lib-types/components/a2ui/catalog/block-catalog.d.ts.map +0 -1
  48. package/lib-types/components/form/elm-select-button.d.ts +0 -90
  49. package/lib-types/components/form/elm-select-button.d.ts.map +0 -1
  50. package/lib-types/components/icon/elm-iconify-icon.d.ts +0 -39
  51. package/lib-types/components/icon/elm-iconify-icon.d.ts.map +0 -1
  52. package/lib-types/components/icon/languages/bash.d.ts +0 -3
  53. package/lib-types/components/icon/languages/bash.d.ts.map +0 -1
  54. package/lib-types/components/icon/languages/c-plus-plus.d.ts +0 -3
  55. package/lib-types/components/icon/languages/c-plus-plus.d.ts.map +0 -1
  56. package/lib-types/components/icon/languages/c-sharp.d.ts +0 -3
  57. package/lib-types/components/icon/languages/c-sharp.d.ts.map +0 -1
  58. package/lib-types/components/icon/languages/c.d.ts +0 -3
  59. package/lib-types/components/icon/languages/c.d.ts.map +0 -1
  60. package/lib-types/components/icon/languages/css.d.ts +0 -3
  61. package/lib-types/components/icon/languages/css.d.ts.map +0 -1
  62. package/lib-types/components/icon/languages/go.d.ts +0 -3
  63. package/lib-types/components/icon/languages/go.d.ts.map +0 -1
  64. package/lib-types/components/icon/languages/html.d.ts +0 -3
  65. package/lib-types/components/icon/languages/html.d.ts.map +0 -1
  66. package/lib-types/components/icon/languages/java.d.ts +0 -3
  67. package/lib-types/components/icon/languages/java.d.ts.map +0 -1
  68. package/lib-types/components/icon/languages/javascript.d.ts +0 -3
  69. package/lib-types/components/icon/languages/javascript.d.ts.map +0 -1
  70. package/lib-types/components/icon/languages/json.d.ts +0 -3
  71. package/lib-types/components/icon/languages/json.d.ts.map +0 -1
  72. package/lib-types/components/icon/languages/kotlin.d.ts +0 -3
  73. package/lib-types/components/icon/languages/kotlin.d.ts.map +0 -1
  74. package/lib-types/components/icon/languages/language-interface.d.ts +0 -7
  75. package/lib-types/components/icon/languages/language-interface.d.ts.map +0 -1
  76. package/lib-types/components/icon/languages/lua.d.ts +0 -3
  77. package/lib-types/components/icon/languages/lua.d.ts.map +0 -1
  78. package/lib-types/components/icon/languages/npm.d.ts +0 -3
  79. package/lib-types/components/icon/languages/npm.d.ts.map +0 -1
  80. package/lib-types/components/icon/languages/python.d.ts +0 -3
  81. package/lib-types/components/icon/languages/python.d.ts.map +0 -1
  82. package/lib-types/components/icon/languages/rust.d.ts +0 -3
  83. package/lib-types/components/icon/languages/rust.d.ts.map +0 -1
  84. package/lib-types/components/icon/languages/sql.d.ts +0 -3
  85. package/lib-types/components/icon/languages/sql.d.ts.map +0 -1
  86. package/lib-types/components/icon/languages/terraform.d.ts +0 -3
  87. package/lib-types/components/icon/languages/terraform.d.ts.map +0 -1
  88. package/lib-types/components/icon/languages/typescript.d.ts +0 -3
  89. package/lib-types/components/icon/languages/typescript.d.ts.map +0 -1
  90. package/lib-types/components/icon/mdi-bundle.d.ts +0 -3
  91. package/lib-types/components/icon/mdi-bundle.d.ts.map +0 -1
  92. package/lib-types/components/others/elm-html-viewer.d.ts +0 -13
  93. package/lib-types/components/others/elm-html-viewer.d.ts.map +0 -1
  94. package/lib-types/components/others/elm-html.d.ts +0 -13
  95. package/lib-types/components/others/elm-html.d.ts.map +0 -1
  96. package/lib-types/components/others/elm-jarkup.d.ts +0 -8
  97. package/lib-types/components/others/elm-jarkup.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"elm-table.d.ts","sourceRoot":"","sources":["../../../src/components/table/elm-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAStD,MAAM,WAAW,aAAc,SAAQ,wBAAwB,CAAC,OAAO,CAAC;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAmDD,eAAO,MAAM,QAAQ,GAAI,yDAMtB,aAAa,gCAkDf,CAAC"}
1
+ {"version":3,"file":"elm-table.d.ts","sourceRoot":"","sources":["../../../src/components/table/elm-table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAStD,MAAM,WAAW,aAAc,SAAQ,wBAAwB,CAAC,OAAO,CAAC;IACtE,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAqDD,eAAO,MAAM,QAAQ,GAAI,yDAMtB,aAAa,gCAkDf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"elm-heading.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAiB,MAAM,OAAO,CAAC;AAOrE,MAAM,WAAW,eAAgB,SAAQ,wBAAwB,CAAC,IAAI,CAAC;IACrE,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAE7B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAWD,eAAO,MAAM,UAAU,GAAI,2DAQxB,eAAe,gCAgCjB,CAAC"}
1
+ {"version":3,"file":"elm-heading.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-heading.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAiB,MAAM,OAAO,CAAC;AAOrE,MAAM,WAAW,eAAgB,SAAQ,wBAAwB,CAAC,IAAI,CAAC;IACrE,KAAK,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAE7B,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAaD,eAAO,MAAM,UAAU,GAAI,2DAQxB,eAAe,gCAgCjB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"elm-inline-text.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-inline-text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAQhF,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB,CAAC,MAAM,CAAC;IAC1E;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAE/B;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAEjC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAEnD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,GAAI,+IAiB3B,kBAAkB,gCAiDpB,CAAC"}
1
+ {"version":3,"file":"elm-inline-text.d.ts","sourceRoot":"","sources":["../../../src/components/typography/elm-inline-text.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,aAAa,EAAa,MAAM,OAAO,CAAC;AAQhF,MAAM,WAAW,kBAAmB,SAAQ,wBAAwB,CAAC,MAAM,CAAC;IAC1E;;;;;;;;OAQG;IACH,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IAE/B;;OAEG;IACH,IAAI,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,CAAC;IAEjC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,GAAG,CAAC,EAAE,OAAO,CAAC;IAEd;;OAEG;IACH,eAAe,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAEnD;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,aAAa,GAAI,+IAiB3B,kBAAkB,gCA6DpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-async-state.d.ts","sourceRoot":"","sources":["../../src/hooks/use-async-state.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,OAAO;IAC/C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB,CAAC,IAAI;IACvC,qFAAqF;IACrF,KAAK,EAAE,IAAI,CAAC;IACZ,2FAA2F;IAC3F,OAAO,EAAE,OAAO,CAAC;IACjB,2CAA2C;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,KAAK,EAAE,OAAO,CAAC;IACf,2EAA2E;IAC3E,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC,CAAC;CAC5D;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,GAAI,IAAI,EAChC,SAAS,MAAM,OAAO,CAAC,IAAI,CAAC,EAC5B,cAAc,IAAI,EAClB,UAAU,oBAAoB,CAAC,IAAI,CAAC,KACnC,mBAAmB,CAAC,IAAI,CA8F1B,CAAC"}
1
+ {"version":3,"file":"use-async-state.d.ts","sourceRoot":"","sources":["../../src/hooks/use-async-state.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,OAAO;IAC/C;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB,CAAC,IAAI;IACvC,qFAAqF;IACrF,KAAK,EAAE,IAAI,CAAC;IACZ,2FAA2F;IAC3F,OAAO,EAAE,OAAO,CAAC;IACjB,2CAA2C;IAC3C,SAAS,EAAE,OAAO,CAAC;IACnB,0DAA0D;IAC1D,KAAK,EAAE,OAAO,CAAC;IACf,2EAA2E;IAC3E,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC,CAAC;CAC5D;AAED;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,GAAI,IAAI,EAChC,SAAS,MAAM,OAAO,CAAC,IAAI,CAAC,EAC5B,cAAc,IAAI,EAClB,UAAU,oBAAoB,CAAC,IAAI,CAAC,KACnC,mBAAmB,CAAC,IAAI,CA+F1B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-clipboard.d.ts","sourceRoot":"","sources":["../../src/hooks/use-clipboard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAS3C,KAAK,sBAAsB,GAAG,qBAAqB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB,OAAO,EAAE,MAAM,GAAG,sBAAsB,EAAE,CAAC;IAE3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,mBAAmB;;;CAqExD,CAAC"}
1
+ {"version":3,"file":"use-clipboard.d.ts","sourceRoot":"","sources":["../../src/hooks/use-clipboard.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAS3C,KAAK,sBAAsB,GAAG,qBAAqB,CAAC,OAAO,aAAa,CAAC,CAAC,CAAC,CAAC,CAAC;AAE7E,MAAM,WAAW,mBAAmB;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB,OAAO,EAAE,MAAM,GAAG,sBAAsB,EAAE,CAAC;IAE3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,YAAY,GAAI,SAAS,mBAAmB;;;CAuExD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-debounced-store.d.ts","sourceRoot":"","sources":["../../src/hooks/use-debounced-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAOtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAChD,YAAY,EAAE,CAAC,EACf,KAAK,EAAE,MAAM,GACZ;IACD,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,cAAc,EAAE,CAAC,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;CACpB,CAgCA"}
1
+ {"version":3,"file":"use-debounced-store.d.ts","sourceRoot":"","sources":["../../src/hooks/use-debounced-store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAOtD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,SAAS,MAAM,EAChD,YAAY,EAAE,CAAC,EACf,KAAK,EAAE,MAAM,GACZ;IACD,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,cAAc,EAAE,CAAC,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;CACpB,CAkCA"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-delayed-signal.d.ts","sourceRoot":"","sources":["../../src/hooks/use-delayed-signal.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB,CAAC,CAAC;IACvC,iDAAiD;IACjD,KAAK,EAAE,CAAC,CAAC;IACT,yEAAyE;IACzE,YAAY,EAAE,CAAC,CAAC;IAChB,uCAAuC;IACvC,eAAe,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAChC,cAAc,CAAC,KACd,sBAAsB,CAAC,CAAC,CAwC1B,CAAC"}
1
+ {"version":3,"file":"use-delayed-signal.d.ts","sourceRoot":"","sources":["../../src/hooks/use-delayed-signal.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,sBAAsB,CAAC,CAAC;IACvC,iDAAiD;IACjD,KAAK,EAAE,CAAC,CAAC;IACT,yEAAyE;IACzE,YAAY,EAAE,CAAC,CAAC;IAChB,uCAAuC;IACvC,eAAe,EAAE,OAAO,CAAC;IACzB;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9C;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,gBAAgB,GAAI,CAAC,EAChC,cAAc,CAAC,KACd,sBAAsB,CAAC,CAAC,CA0C1B,CAAC"}
@@ -3,24 +3,34 @@
3
3
  * theme mutation. Each `useElmethisTheme()` call owns an independent piece of
4
4
  * state, and the `storage` event only fires in *other* tabs — so without this
5
5
  * event, sibling components in the same tab would never see a toggle.
6
- * `detail` carries the new `Theme | null` (`null` = reverted to OS auto).
6
+ * `detail` carries the new `Theme | null` (`null` = inline pin removed).
7
7
  */
8
8
  export declare const THEME_CHANGE_EVENT = "elmethis-theme-change";
9
9
  type Theme = "light" | "dark";
10
10
  /**
11
11
  * Coerce a raw storage value into an explicit Theme, or `null` when no
12
- * explicit choice is stored. `null` means "follow the OS" — i.e. fall back
13
- * to the `color-scheme: light dark` default, which tracks
14
- * `prefers-color-scheme`.
12
+ * explicit choice is stored. Without a stored choice, the host's computed
13
+ * `color-scheme` wins; the `light dark` default tracks `prefers-color-scheme`.
15
14
  *
16
15
  * Exported so the (otherwise inline) decision rule can be regression-tested
17
16
  * directly without having to dispatch a real `StorageEvent`.
18
17
  *
19
18
  * Only the literal strings `"dark"` and `"light"` are explicit choices;
20
19
  * anything else — including `null` (the key was cleared in another tab) and
21
- * unknown strings — resolves to `null` (auto / OS).
20
+ * unknown strings — resolves to `null` (no stored override).
22
21
  */
23
22
  export declare const parseTheme: (raw: string | null) => Theme | null;
23
+ /**
24
+ * Pin or release the Elmethis theme natively via `color-scheme` + `data-theme`
25
+ * on `<html>`, with cross-tab (`storage`) and same-tab (`CustomEvent`) sync.
26
+ *
27
+ * The React API returns the plain idiom: `isDarkTheme` is a `boolean` and
28
+ * `toggleTheme` is a `() => void`.
29
+ *
30
+ * @example
31
+ * const { isDarkTheme, toggleTheme } = useElmethisTheme();
32
+ * return <button onClick={toggleTheme}>{isDarkTheme ? "🌙" : "☀️"}</button>;
33
+ */
24
34
  export declare function useElmethisTheme(): {
25
35
  isDarkTheme: boolean;
26
36
  toggleTheme: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"use-elmethis-theme.d.ts","sourceRoot":"","sources":["../../src/hooks/use-elmethis-theme.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAE1D,KAAK,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9B;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,GAAG,IAAI,KAAG,KAAK,GAAG,IACI,CAAC;AAkE7D,wBAAgB,gBAAgB;;;EAwE/B"}
1
+ {"version":3,"file":"use-elmethis-theme.d.ts","sourceRoot":"","sources":["../../src/hooks/use-elmethis-theme.ts"],"names":[],"mappings":"AAIA;;;;;;GAMG;AACH,eAAO,MAAM,kBAAkB,0BAA0B,CAAC;AAE1D,KAAK,KAAK,GAAG,OAAO,GAAG,MAAM,CAAC;AAE9B;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,UAAU,GAAI,KAAK,MAAM,GAAG,IAAI,KAAG,KAAK,GAAG,IACI,CAAC;AAmE7D;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB;;;EAqE/B"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-storage.d.ts","sourceRoot":"","sources":["../../src/hooks/use-storage.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI;IACjC,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,CAAC,CAAC;IAChB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC,yFAAyF;IACzF,KAAK,EAAE,CAAC,CAAC;IACT,6DAA6D;IAC7D,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,wEAAwE;IACxE,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAKF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,8CAK3B,iBAAiB,CAAC,CAAC,CAAC,KAAG,gBAAgB,CAAC,CAAC,CA8G3C,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI,IAAI,CAC1C,iBAAiB,CAAC,CAAC,CAAC,EACpB,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,wBAGhC,sBAAsB,CAAC,CAAC,CAAC,KAAG,gBAAgB,CAAC,CAAC,CAMhD,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI,IAAI,CAC5C,iBAAiB,CAAC,CAAC,CAAC,EACpB,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAE,wBAGlC,wBAAwB,CAAC,CAAC,CAAC,KAAG,gBAAgB,CAAC,CAAC,CAOlD,CAAC"}
1
+ {"version":3,"file":"use-storage.d.ts","sourceRoot":"","sources":["../../src/hooks/use-storage.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,CAAC,CAAC,IAAI;IACjC,WAAW,EAAE,OAAO,GAAG,SAAS,CAAC;IACjC,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,CAAC,CAAC;IAChB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC,yFAAyF;IACzF,KAAK,EAAE,CAAC,CAAC;IACT,6DAA6D;IAC7D,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,wEAAwE;IACxE,MAAM,EAAE,MAAM,IAAI,CAAC;CACpB,CAAC;AAKF;;;;;;;;;;GAUG;AACH,eAAO,MAAM,UAAU,GAAI,CAAC,EAAE,8CAK3B,iBAAiB,CAAC,CAAC,CAAC,KAAG,gBAAgB,CAAC,CAAC,CAgH3C,CAAC;AAEF,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI,IAAI,CAC1C,iBAAiB,CAAC,CAAC,CAAC,EACpB,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,CAAC,EAAE,wBAGhC,sBAAsB,CAAC,CAAC,CAAC,KAAG,gBAAgB,CAAC,CAAC,CAMhD,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,CAAC,IAAI,IAAI,CAC5C,iBAAiB,CAAC,CAAC,CAAC,EACpB,aAAa,CACd,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAE,wBAGlC,wBAAwB,CAAC,CAAC,CAAC,KAAG,gBAAgB,CAAC,CAAC,CAOlD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-throttled-queue.d.ts","sourceRoot":"","sources":["../../src/hooks/use-throttled-queue.tsx"],"names":[],"mappings":"AAIA,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAe;IACrC,OAAO,CAAC,cAAc,CAAK;IAC3B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,KAAK,CAA8C;IAC3D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;gBAEzB,WAAW,SAAM;IAI7B,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAmBzC,OAAO,CAAC,MAAM,SAA6B,GAAG,IAAI;IAgBlD,OAAO,CAAC,KAAK;IAMb,OAAO,CAAC,YAAY;CAiBrB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,SAAM,GAAG,cAAc,GAAG,IAAI,CA0B1E"}
1
+ {"version":3,"file":"use-throttled-queue.d.ts","sourceRoot":"","sources":["../../src/hooks/use-throttled-queue.tsx"],"names":[],"mappings":"AAIA,qBAAa,cAAc;IACzB,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAe;IACrC,OAAO,CAAC,cAAc,CAAK;IAC3B,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,SAAS,CAAS;IAC1B,OAAO,CAAC,KAAK,CAA8C;IAC3D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAS;gBAEzB,WAAW,SAAM;IAI7B,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IAwBzC,OAAO,CAAC,MAAM,SAA6B,GAAG,IAAI;IAgBlD,OAAO,CAAC,KAAK;IAQb,OAAO,CAAC,YAAY;CAkBrB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,WAAW,SAAM,GAAG,cAAc,GAAG,IAAI,CA0B1E"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-throttled-signal.d.ts","sourceRoot":"","sources":["../../src/hooks/use-throttled-signal.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,wCAAwC;IACxC,KAAK,EAAE,CAAC,CAAC;IACT,+DAA+D;IAC/D,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,yDAAyD;IACzD,cAAc,EAAE,CAAC,CAAC;IAClB,2DAA2D;IAC3D,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAClC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAC3B,UAAU,MAAM,KACf,wBAAwB,CAAC,CAAC,CAiE5B,CAAC"}
1
+ {"version":3,"file":"use-throttled-signal.d.ts","sourceRoot":"","sources":["../../src/hooks/use-throttled-signal.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,MAAM,WAAW,wBAAwB,CAAC,CAAC;IACzC,wCAAwC;IACxC,KAAK,EAAE,CAAC,CAAC;IACT,+DAA+D;IAC/D,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,yDAAyD;IACzD,cAAc,EAAE,CAAC,CAAC;IAClB,2DAA2D;IAC3D,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,kBAAkB,GAAI,CAAC,EAClC,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAC3B,UAAU,MAAM,KACf,wBAAwB,CAAC,CAAC,CAqE5B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-throttled-store.d.ts","sourceRoot":"","sources":["../../src/hooks/use-throttled-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAGf,MAAM,WAAW,uBAAuB,CAAC,CAAC,SAAS,MAAM;IACvD,wCAAwC;IACxC,KAAK,EAAE,CAAC,CAAC;IACT,+DAA+D;IAC/D,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,yDAAyD;IACzD,cAAc,EAAE,CAAC,CAAC;IAClB,2DAA2D;IAC3D,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,EAChD,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAC3B,UAAU,MAAM,KACf,uBAAuB,CAAC,CAAC,CAiE3B,CAAC"}
1
+ {"version":3,"file":"use-throttled-store.d.ts","sourceRoot":"","sources":["../../src/hooks/use-throttled-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAGf,MAAM,WAAW,uBAAuB,CAAC,CAAC,SAAS,MAAM;IACvD,wCAAwC;IACxC,KAAK,EAAE,CAAC,CAAC;IACT,+DAA+D;IAC/D,QAAQ,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC;IACtC,yDAAyD;IACzD,cAAc,EAAE,CAAC,CAAC;IAClB,2DAA2D;IAC3D,SAAS,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,eAAO,MAAM,iBAAiB,GAAI,CAAC,SAAS,MAAM,EAChD,cAAc,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,EAC3B,UAAU,MAAM,KACf,uBAAuB,CAAC,CAAC,CAqE3B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/react",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "description": "React component library for elmethis.",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -37,76 +37,71 @@
37
37
  "node": "^18.17.0 || ^20.3.0 || >=21.0.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "react": "^19.2.8",
41
- "react-dom": "^19.2.8"
40
+ "react": "^19.3.0",
41
+ "react-dom": "^19.3.0"
42
42
  },
43
43
  "dependencies": {
44
44
  "@46ki75/ikuma-theme": "^0.0.10",
45
- "@a2ui/react": "^0.10.2",
46
- "@a2ui/web_core": "^0.10.5",
45
+ "@a2ui/react": "^0.13.0",
46
+ "@a2ui/web_core": "^0.13.0",
47
47
  "@formkit/auto-animate": "^0.10.0",
48
48
  "@mdi/js": "^7.4.47",
49
49
  "@radix-ui/react-use-controllable-state": "^1.2.6",
50
50
  "clsx": "^2.1.1",
51
- "dompurify": "^3.4.2",
52
- "es-toolkit": "^1.49.0",
53
- "katex": "^0.18.1",
54
- "marked": "^18.0.7",
55
- "shiki": "^4.3.1",
51
+ "dompurify": "^3.4.16",
52
+ "es-toolkit": "^1.52.0",
53
+ "katex": "^0.18.9",
54
+ "marked": "^18.0.14",
55
+ "shiki": "^4.4.3",
56
56
  "usehooks-ts": "^3.1.1",
57
- "zod": "^3",
58
- "@elmethis/core": "^0.23.0"
57
+ "zod": "^3.25.76",
58
+ "@elmethis/core": "^0.24.1"
59
59
  },
60
60
  "devDependencies": {
61
- "@babel/core": "^7.29.7",
62
- "@eslint/js": "latest",
63
- "@rolldown/plugin-babel": "^0.2.3",
64
- "@storybook/addon-docs": "^10.5.5",
65
- "@storybook/react-vite": "^10.5.5",
66
- "@testing-library/jest-dom": "^7.0.0",
67
- "@testing-library/react": "^16.3.0",
61
+ "@babel/core": "^8.0.6",
62
+ "@rolldown/plugin-babel": "^0.2.4",
63
+ "@storybook/addon-docs": "^10.6.2",
64
+ "@storybook/react-vite": "^10.6.2",
65
+ "@testing-library/jest-dom": "^7.0.1",
66
+ "@testing-library/react": "^16.3.3",
68
67
  "@types/babel__core": "^7.20.5",
69
68
  "@types/katex": "^0.16.8",
70
- "@types/node": "^26.1.1",
71
- "@types/react": "^19.2.17",
72
- "@types/react-dom": "^19.2.3",
73
- "@vitejs/plugin-react": "^6.0.4",
74
- "@vitest/browser-playwright": "^4.1.10",
75
- "@vitest/coverage-v8": "^4.1.10",
76
- "@vitest/ui": "^4.1.10",
69
+ "@types/node": "^26.6.4",
70
+ "@types/react": "^19.3.0",
71
+ "@types/react-dom": "^19.3.0",
72
+ "@vitejs/plugin-react": "^6.1.2",
73
+ "@vitest/browser-playwright": "^5.0.4",
74
+ "@vitest/coverage-v8": "^5.0.4",
75
+ "@vitest/ui": "^5.0.4",
77
76
  "babel-plugin-react-compiler": "^1.0.0",
78
- "concurrently": "^10.0.4",
79
- "eslint": "^10.8.0",
77
+ "concurrently": "^10.0.5",
80
78
  "eslint-plugin-react-hooks": "^7.1.1",
81
- "eslint-plugin-react-refresh": "^0.5.3",
82
- "globals": "^17.8.0",
83
- "happy-dom": "^20.10.6",
84
- "playwright": "^1.61.1",
85
- "prettier": "3.9.6",
86
- "react": "^19.2.8",
87
- "react-dom": "^19.2.8",
88
- "storybook": "^10.5.5",
89
- "stylelint": "^17.14.1",
90
- "stylelint-config-css-modules": "^4.6.0",
91
- "stylelint-config-standard": "^40.0.0",
92
- "stylelint-value-no-unknown-custom-properties": "^6.1.1",
93
- "tsx": "^4.23.1",
79
+ "eslint-plugin-react-refresh": "^0.5.7",
80
+ "happy-dom": "^20.14.5",
81
+ "oxfmt": "0.73.0",
82
+ "oxlint": "1.88.0",
83
+ "oxlint-tsgolint": "7.0.2004",
84
+ "playwright": "^1.63.0",
85
+ "react": "^19.3.0",
86
+ "react-dom": "^19.3.0",
87
+ "storybook": "^10.6.2",
88
+ "stylelint": "^17.16.0",
89
+ "tsx": "^4.23.15",
94
90
  "typescript": "~6.0.3",
95
- "typescript-eslint": "^8.65.0",
96
- "vite": "^8.1.5",
97
- "vitest": "^4.1.10",
98
- "vitest-browser-react": "^2.2.0"
91
+ "vite": "^8.3.4",
92
+ "vitest": "^5.0.4",
93
+ "vitest-browser-react": "^2.3.0"
99
94
  },
100
95
  "scripts": {
101
96
  "build": "pnpm run build.lib && pnpm run build.types",
102
97
  "build.lib": "vite build && pnpm run verify.compiler",
103
98
  "verify.compiler": "tsx scripts/verify-compiler-output.ts",
104
99
  "build.types": "tsc --project tsconfig.lib.json",
105
- "build-storybook": "storybook build",
100
+ "build-storybook": "storybook build && node ../../scripts/verify-storybook-theme.mjs .",
106
101
  "dev": "storybook dev -p 19221 --no-open",
107
- "fmt": "prettier --write ./src",
108
- "fmt.check": "prettier --check ./src",
109
- "lint": "eslint \"src/**/*.ts*\"",
102
+ "fmt": "oxfmt --write ./src",
103
+ "fmt.check": "oxfmt --check ./src",
104
+ "lint": "oxlint --type-aware --report-unused-disable-directives-severity=error --deny-warnings src",
110
105
  "lint.css": "stylelint \"{src,.storybook}/**/*.css\"",
111
106
  "test": "pnpm run test.unit && pnpm run test.browser",
112
107
  "test.unit": "vitest --run",
@@ -1,18 +0,0 @@
1
- import { type ReactComponentImplementation } from "@a2ui/react/v0_9";
2
- import { Catalog } from "@a2ui/web_core/v0_9";
3
- /**
4
- * The merged component list: the official A2UI basic catalog underneath, with
5
- * the Elm block implementations layered on top (later entries win by name, so
6
- * `Column` / `List` / `Divider` / `Icon` resolve to the Elm versions). This is
7
- * the unit `ElmA2ui` registers under each referenced catalog id.
8
- */
9
- export declare const blockComponents: ReactComponentImplementation[];
10
- /** Shared catalog functions (from the official basic catalog). */
11
- export declare const blockFunctions: import("@a2ui/web_core/v0_9").FunctionImplementation[];
12
- /**
13
- * A ready-to-use `Catalog` of {@link blockComponents}, registered under the
14
- * basic-catalog id. `ElmA2ui` rebuilds equivalent catalogs per referenced id;
15
- * this export is for direct/standalone use.
16
- */
17
- export declare const blockCatalog: Catalog<ReactComponentImplementation>;
18
- //# sourceMappingURL=block-catalog.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"block-catalog.d.ts","sourceRoot":"","sources":["../../../../src/components/a2ui/catalog/block-catalog.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAGL,KAAK,4BAA4B,EAClC,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAmX9C;;;;;GAKG;AACH,eAAO,MAAM,eAAe,EAAE,4BAA4B,EAGzD,CAAC;AAEF,kEAAkE;AAClE,eAAO,MAAM,cAAc,wDAA8C,CAAC;AAE1E;;;;GAIG;AACH,eAAO,MAAM,YAAY,EAAE,OAAO,CAAC,4BAA4B,CAI9D,CAAC"}
@@ -1,90 +0,0 @@
1
- import { type ComponentPropsWithoutRef, type ReactNode } from "react";
2
- export interface ElmSelectButtonItem {
3
- id: string;
4
- label: string;
5
- /**
6
- * Optional icon URL displayed alongside the item label.
7
- */
8
- icon?: string;
9
- /**
10
- * Whether the item is disabled and cannot be clicked.
11
- */
12
- disabled?: boolean;
13
- /**
14
- * Called when this item is clicked.
15
- */
16
- onClick?: () => void;
17
- }
18
- export interface ElmSelectButtonProps extends Omit<ComponentPropsWithoutRef<"div">, "onClick"> {
19
- /**
20
- * Content of the main button.
21
- */
22
- label?: ReactNode;
23
- /**
24
- * Optional icon rendered before the main button label.
25
- */
26
- icon?: ReactNode;
27
- /**
28
- * Entries shown in the dropdown menu.
29
- */
30
- items: ElmSelectButtonItem[];
31
- /**
32
- * Split the main action from the dropdown toggle. When `true`, the main
33
- * button fires `onClick` and only the caret opens the menu. When `false`
34
- * (default), clicking anywhere on the button toggles the menu.
35
- */
36
- split?: boolean;
37
- /**
38
- * Whether the button uses the primary style. Defaults to `true`.
39
- */
40
- primary?: boolean;
41
- /**
42
- * Custom button color. Overrides `primary` when set.
43
- */
44
- color?: string;
45
- /**
46
- * Whether the control fills the width of its container.
47
- */
48
- block?: boolean;
49
- /**
50
- * Whether the whole control is disabled.
51
- */
52
- disabled?: boolean;
53
- /**
54
- * Whether only the main button is disabled (split mode). The dropdown caret
55
- * stays interactive.
56
- */
57
- disableMainButton?: boolean;
58
- /**
59
- * Whether only the dropdown caret is disabled (split mode). The main button
60
- * stays interactive.
61
- */
62
- disableDropdown?: boolean;
63
- /**
64
- * Whether the main button is in a loading state.
65
- */
66
- isLoading?: boolean;
67
- /**
68
- * Whether the menu closes automatically after an item is clicked. Defaults
69
- * to `true`.
70
- */
71
- autoClose?: boolean;
72
- /**
73
- * mdi path for the caret icon. Defaults to `mdiMenuDown`.
74
- */
75
- dropdownIcon?: string;
76
- /**
77
- * Main button click handler (split mode).
78
- */
79
- onClick?: () => void;
80
- /**
81
- * Called with the clicked dropdown item.
82
- */
83
- onItemClick?: (item: ElmSelectButtonItem) => void;
84
- /**
85
- * Called whenever the dropdown opens or closes.
86
- */
87
- onOpenChange?: (isOpen: boolean) => void;
88
- }
89
- export declare const ElmSelectButton: ({ className, style, label, icon, items, split, primary, color, block, disabled, disableMainButton, disableDropdown, isLoading, autoClose, dropdownIcon, onClick, onItemClick, onOpenChange, ...rest }: ElmSelectButtonProps) => import("react").JSX.Element;
90
- //# sourceMappingURL=elm-select-button.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"elm-select-button.d.ts","sourceRoot":"","sources":["../../../src/components/form/elm-select-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,wBAAwB,EAE7B,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAaf,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IACxD;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAElB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IAEjB;;OAEG;IACH,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAE7B;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAE5B;;;OAGG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB;;OAEG;IACH,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAElD;;OAEG;IACH,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1C;AAED,eAAO,MAAM,eAAe,GAAI,uMAoB7B,oBAAoB,gCAsHtB,CAAC"}
@@ -1,39 +0,0 @@
1
- import { type IconProps } from "@iconify/react";
2
- export interface ElmIconifyIconProps extends Omit<IconProps, "width" | "height" | "color"> {
3
- /**
4
- * Icon size, applied to both width and height. Any CSS length — e.g. "1em",
5
- * "24px", "1.5rem".
6
- */
7
- size?: string;
8
- /**
9
- * Tint for monochrome icons — sets the element's `color`, which their
10
- * `currentColor` fill follows. Full-color sets (e.g. `logos:*`) keep their own
11
- * palette and ignore it. Defaults to the module's theme-gray; pass
12
- * `"currentColor"` to inherit the surrounding text color instead.
13
- */
14
- color?: string;
15
- }
16
- /**
17
- * A thin wrapper around Iconify's official React `<Icon>` for rendering any of
18
- * Iconify's 200k+ icons by name — Material Design Icons (`mdi:*`), AWS logos
19
- * (`logos:aws-*`), and every other set.
20
- *
21
- * - By default a named icon loads **on demand from the Iconify CDN**
22
- * (`icon="logos:aws-s3"`): requests are batched and cached, and only the icons
23
- * actually used are fetched. This is the right default for arbitrary or
24
- * user-selected icons.
25
- * - For offline / SSR-synchronous rendering, pass the icon **data object**
26
- * (`icon={data}`) or pre-register a set with `addIcon` / `addCollection` —
27
- * registering only the icons you use, never a whole set (which would bundle
28
- * megabytes of JSON).
29
- *
30
- * The library's own internal icons use {@link ElmMdiIcon} instead, which inlines
31
- * `@mdi/js` path data directly (no network, SSR- and test-safe).
32
- *
33
- * Monochrome icons fill with `currentColor`, so the module's default theme-gray
34
- * — or the `color` prop — tints them. `ssr` defaults to `true` so the `<svg>`
35
- * renders on first paint when the data is available (offline / pre-registered);
36
- * pass `ssr={false}` for Iconify's placeholder-then-swap behavior.
37
- */
38
- export declare const ElmIconifyIcon: ({ className, style, size, color, ssr, ...props }: ElmIconifyIconProps) => import("react").JSX.Element;
39
- //# sourceMappingURL=elm-iconify-icon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"elm-iconify-icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/elm-iconify-icon.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAKtD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAC/C,SAAS,EACT,OAAO,GAAG,QAAQ,GAAG,OAAO,CAC7B;IACC;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,cAAc,GAAI,kDAO5B,mBAAmB,gCAWrB,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Bash: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=bash.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"bash.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/bash.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,IAAI,GAAI,oBAAyB,mBAAmB,gCAoBhE,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Cplusplus: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=c-plus-plus.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"c-plus-plus.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/c-plus-plus.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,SAAS,GAAI,oBAAyB,mBAAmB,gCA2BrE,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Csharp: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=c-sharp.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"c-sharp.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/c-sharp.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,MAAM,GAAI,oBAAyB,mBAAmB,gCAuBlE,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const C: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=c.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"c.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/c.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,CAAC,GAAI,oBAAyB,mBAAmB,gCAuB7D,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Css: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=css.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"css.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/css.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,GAAG,GAAI,oBAAyB,mBAAmB,gCAe/D,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Go: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=go.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"go.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/go.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,EAAE,GAAI,oBAAyB,mBAAmB,gCAkB9D,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Html: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=html.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"html.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/html.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,IAAI,GAAI,oBAAyB,mBAAmB,gCAwBhE,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Java: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=java.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"java.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/java.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,IAAI,GAAI,oBAAyB,mBAAmB,gCA+BhE,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Javascript: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=javascript.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"javascript.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/javascript.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,UAAU,GAAI,oBAAyB,mBAAmB,gCAgBtE,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Json: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=json.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"json.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/json.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,IAAI,GAAI,oBAAyB,mBAAmB,gCA+ChE,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Kotlin: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=kotlin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"kotlin.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/kotlin.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,MAAM,GAAI,oBAAyB,mBAAmB,gCA8BlE,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { CSSProperties } from "react";
2
- export interface CommonLanguageProps {
3
- size?: number | string;
4
- className?: string;
5
- style?: CSSProperties;
6
- }
7
- //# sourceMappingURL=language-interface.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"language-interface.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/language-interface.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,MAAM,WAAW,mBAAmB;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Lua: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=lua.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lua.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/lua.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,GAAG,GAAI,oBAAyB,mBAAmB,gCAuB/D,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Npm: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=npm.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"npm.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/npm.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,GAAG,GAAI,oBAAyB,mBAAmB,gCAmB/D,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Python: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=python.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"python.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/python.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,MAAM,GAAI,oBAAyB,mBAAmB,gCA6DlE,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Rust: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=rust.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rust.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/rust.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,IAAI,GAAI,oBAAyB,mBAAmB,gCAahE,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Sql: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=sql.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sql.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/sql.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,GAAG,GAAI,oBAAyB,mBAAmB,gCAe/D,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Terraform: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=terraform.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"terraform.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/terraform.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,SAAS,GAAI,oBAAyB,mBAAmB,gCAyBrE,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { CommonLanguageProps } from "./language-interface";
2
- export declare const Typescript: ({ size, ...props }: CommonLanguageProps) => import("react").JSX.Element;
3
- //# sourceMappingURL=typescript.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../../../src/components/icon/languages/typescript.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEhE,eAAO,MAAM,UAAU,GAAI,oBAAyB,mBAAmB,gCAgBtE,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { IconifyJSON } from "@iconify/react";
2
- export declare const mdiBundle: IconifyJSON;
3
- //# sourceMappingURL=mdi-bundle.d.ts.map