@colisweb/rescript-toolkit 5.37.3 → 5.38.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colisweb/rescript-toolkit",
3
- "version": "5.37.3",
3
+ "version": "5.38.0",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "clean": "rescript clean",
@@ -87,6 +87,7 @@
87
87
  "@mdx-js/react": "2.3.0",
88
88
  "@mdx-js/rollup": "2.3.0",
89
89
  "@originjs/vite-plugin-commonjs": "1.0.3",
90
+ "@tailwindcss/container-queries": "^0.1.1",
90
91
  "@vitejs/plugin-react": "4.2.1",
91
92
  "babel-loader": "8.2.5",
92
93
  "highlight.js": "11.10.0",
@@ -165,7 +165,10 @@ module.exports = {
165
165
  },
166
166
  },
167
167
  },
168
- plugins: [require("@headlessui/tailwindcss")({ prefix: "ui" })],
168
+ plugins: [
169
+ require("@headlessui/tailwindcss")({ prefix: "ui" }),
170
+ require("@tailwindcss/container-queries"),
171
+ ],
169
172
  content: [
170
173
  "public/index.html",
171
174
  "lib/es6_global/src/**/**.(c)?js",
@@ -17,7 +17,9 @@ let make = (
17
17
  ) => {
18
18
  <Tooltip.Provider>
19
19
  <Tooltip.Root ?defaultOpen delayDuration={0}>
20
- <Tooltip.Trigger asChild=triggerAsChild type_="button"> {triggerContent} </Tooltip.Trigger>
20
+ <Tooltip.Trigger className="cursor-default" asChild=triggerAsChild type_="button">
21
+ {triggerContent}
22
+ </Tooltip.Trigger>
21
23
  <Tooltip.Portal>
22
24
  <Tooltip.Content
23
25
  side
@@ -51,7 +53,7 @@ module Controlled = {
51
53
  ) => {
52
54
  <Tooltip.Provider>
53
55
  <Tooltip.Root ?defaultOpen delayDuration={0} open_ onOpenChange>
54
- <Tooltip.Trigger asChild={triggerAsChild} type_={"button"}>
56
+ <Tooltip.Trigger className="cursor-default" asChild={triggerAsChild} type_={"button"}>
55
57
  {triggerContent}
56
58
  </Tooltip.Trigger>
57
59
  <Tooltip.Portal>
@@ -43,6 +43,7 @@ module Tooltip = {
43
43
  children: React.element,
44
44
  @as("type")
45
45
  type_: string,
46
+ className?: string,
46
47
  }
47
48
  @module("@radix-ui/react-tooltip")
48
49
  external make: React.component<props> = "Trigger"