@0xsquid/ui 2.5.1-beta.1 → 2.6.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/dist/cjs/index.js CHANGED
@@ -3016,6 +3016,19 @@ const backgrounds = {
3016
3016
  rgba(180, 143, 233, 1) 100%
3017
3017
  )`,
3018
3018
  };
3019
+ // Format animation durations object to Tailwind config
3020
+ // This way Tailwind can generate utility classes for each duration
3021
+ // i.e tw-duration-hide-modal, tw-duration-show-route, etc...
3022
+ //
3023
+ // {
3024
+ // HIDE_MODAL: 400
3025
+ // SHOW_ROUTE: 300
3026
+ // }
3027
+ // ->
3028
+ // {
3029
+ // hide-modal: "400"
3030
+ // show-route: "300"
3031
+ // }
3019
3032
  const transitionDuration = Object.entries(ANIMATION_DURATIONS).reduce((finalObj, [key, value]) => {
3020
3033
  finalObj[key.toLowerCase().replaceAll("_", "-")] = String(value);
3021
3034
  return finalObj;
package/dist/esm/index.js CHANGED
@@ -2996,6 +2996,19 @@ const backgrounds = {
2996
2996
  rgba(180, 143, 233, 1) 100%
2997
2997
  )`,
2998
2998
  };
2999
+ // Format animation durations object to Tailwind config
3000
+ // This way Tailwind can generate utility classes for each duration
3001
+ // i.e tw-duration-hide-modal, tw-duration-show-route, etc...
3002
+ //
3003
+ // {
3004
+ // HIDE_MODAL: 400
3005
+ // SHOW_ROUTE: 300
3006
+ // }
3007
+ // ->
3008
+ // {
3009
+ // hide-modal: "400"
3010
+ // show-route: "300"
3011
+ // }
2999
3012
  const transitionDuration = Object.entries(ANIMATION_DURATIONS).reduce((finalObj, [key, value]) => {
3000
3013
  finalObj[key.toLowerCase().replaceAll("_", "-")] = String(value);
3001
3014
  return finalObj;
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "url": "git+https://github.com/0xsquid/squid-ui.git"
6
6
  },
7
7
  "description": "Squid's UI components",
8
- "version": "2.5.1-beta.1",
8
+ "version": "2.6.0",
9
9
  "author": "",
10
10
  "license": "MIT",
11
11
  "resolutions": {