pelatform-ui 1.1.21 → 1.2.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 (51) hide show
  1. package/css/animations.css +48 -0
  2. package/css/shadcn/gray.css +105 -0
  3. package/css/shadcn/neutral.css +105 -0
  4. package/css/shadcn/slate.css +105 -0
  5. package/css/shadcn/stone.css +105 -0
  6. package/css/shadcn/zinc.css +105 -0
  7. package/css/styles/style-lyra.css +1335 -0
  8. package/css/styles/style-maia.css +1360 -0
  9. package/css/styles/style-mira.css +1362 -0
  10. package/css/styles/style-nova.css +1360 -0
  11. package/css/styles/style-vega.css +1356 -0
  12. package/css/theme.css +122 -182
  13. package/dist/animation.d.ts +3 -7
  14. package/dist/animation.js +40 -2
  15. package/dist/base.d.ts +1 -1
  16. package/dist/base.js +873 -2
  17. package/dist/chunk-4OZO7TEB.js +57803 -0
  18. package/dist/chunk-4VNS5WPM.js +42 -0
  19. package/dist/{chunk-M2YFAZ2T.js → chunk-5YSCAE7Y.js} +9 -3
  20. package/dist/chunk-7EOSDFS3.js +10 -0
  21. package/dist/chunk-B3I74Y4P.js +11228 -0
  22. package/dist/chunk-BQXV2NHY.js +100 -0
  23. package/dist/chunk-FC24ZVEO.js +553 -0
  24. package/dist/chunk-HW52LCWN.js +22 -0
  25. package/dist/chunk-WFCSII5G.js +28043 -0
  26. package/dist/colors-CUDWvz1g.d.ts +42 -0
  27. package/dist/components-B1rw2xzN.d.ts +46 -0
  28. package/dist/components.d.ts +23 -224
  29. package/dist/components.js +2378 -730
  30. package/dist/hooks.d.ts +2 -2
  31. package/dist/hooks.js +896 -4
  32. package/dist/index.d.ts +130 -2
  33. package/dist/index.js +637 -3
  34. package/dist/radix.d.ts +1 -0
  35. package/dist/radix.js +20737 -0
  36. package/package.json +20 -32
  37. package/css/components/apexcharts.css +0 -101
  38. package/css/components/book.css +0 -19
  39. package/css/components/extra.css +0 -12
  40. package/css/components/image-input.css +0 -51
  41. package/css/components/leaflet.css +0 -25
  42. package/css/components/patterns.css +0 -34
  43. package/css/components/rating.css +0 -89
  44. package/css/components/scrollable.css +0 -118
  45. package/css/components/theme-transition.css +0 -51
  46. package/dist/aria.d.ts +0 -1
  47. package/dist/aria.js +0 -2
  48. package/dist/default.d.ts +0 -1
  49. package/dist/default.js +0 -2
  50. package/dist/server.d.ts +0 -1
  51. package/dist/server.js +0 -2
@@ -0,0 +1,42 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
+ });
13
+ var __commonJS = (cb, mod) => function __require2() {
14
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
+ };
16
+ var __export = (target, all) => {
17
+ for (var name in all)
18
+ __defProp(target, name, { get: all[name], enumerable: true });
19
+ };
20
+ var __copyProps = (to, from, except, desc) => {
21
+ if (from && typeof from === "object" || typeof from === "function") {
22
+ for (let key of __getOwnPropNames(from))
23
+ if (!__hasOwnProp.call(to, key) && key !== except)
24
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
25
+ }
26
+ return to;
27
+ };
28
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
29
+ // If the importer is in node compatibility mode or this is not an ESM
30
+ // file that has been converted to a CommonJS file using a Babel-
31
+ // compatible transform (i.e. "__esModule" has not been set), then set
32
+ // "default" to the CommonJS "module.exports" for node compatibility.
33
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
34
+ mod
35
+ ));
36
+
37
+ export {
38
+ __require,
39
+ __commonJS,
40
+ __export,
41
+ __toESM
42
+ };
@@ -1,9 +1,15 @@
1
+ import {
2
+ META_THEME_COLORS,
3
+ THEME_MODES
4
+ } from "./chunk-HW52LCWN.js";
5
+ import {
6
+ z
7
+ } from "./chunk-BQXV2NHY.js";
8
+
1
9
  // src/hooks/use-meta-color.ts
2
10
  import * as React from "react";
3
- import { useTheme } from "next-themes";
4
- import { META_THEME_COLORS, THEME_MODES } from "@pelatform/utils";
5
11
  function useMetaColor(defaultColors) {
6
- const { resolvedTheme } = useTheme();
12
+ const { resolvedTheme } = z();
7
13
  const isSystemDarkMode = React.useCallback(() => {
8
14
  if (typeof window === "undefined") return false;
9
15
  return window.matchMedia("(prefers-color-scheme: dark)").matches;
@@ -0,0 +1,10 @@
1
+ // src/lib/cn.ts
2
+ import { clsx } from "clsx";
3
+ import { twMerge } from "tailwind-merge";
4
+ function cn(...inputs) {
5
+ return twMerge(clsx(inputs));
6
+ }
7
+
8
+ export {
9
+ cn
10
+ };