@hanzo/ui
Version:
Multi-framework UI library with React, Vue, Svelte, and React Native support. Based on shadcn/ui with comprehensive framework coverage.
80 lines (75 loc) • 2.16 kB
JavaScript
"use strict";
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// types/index.ts
var types_exports = {};
__export(types_exports, {
Breakpoints: () => Breakpoints,
COMMON_GRID_1_COL: () => COMMON_GRID_1_COL,
COMMON_GRID_2_COL: () => COMMON_GRID_2_COL,
COMMON_GRID_3_COL: () => COMMON_GRID_3_COL,
COMMON_GRID_4_COL: () => COMMON_GRID_4_COL
});
module.exports = __toCommonJS(types_exports);
// tailwind/screens.tailwind.js
var screens_tailwind_default = {
xs: "0px",
// <-- phone
sm: "480px",
// phone --><-- sm tablets / narrow
md: "768px",
// sm tablets / narrow -->
lg: "1024px",
xl: "1280px",
"2xl": "1500px"
};
// types/breakpoints.ts
var Breakpoints = Object.keys(screens_tailwind_default);
// types/grid-def.ts
var COMMON_GRID_1_COL = {
at: {
xs: { columns: 1, gap: 2 },
md: { columns: 1, gap: 3 },
lg: { columns: 1, gap: 6 }
},
mobile: { columns: 1, gap: 2 }
};
var COMMON_GRID_2_COL = {
at: {
xs: { columns: 1, gap: 2 },
md: { columns: 2, gap: 3 },
lg: { columns: 2, gap: 6 }
},
mobile: { columns: 1, gap: 2 }
};
var COMMON_GRID_3_COL = {
at: {
xs: { columns: 1, gap: 2 },
md: { columns: 3, gap: 3 },
lg: { columns: 3, gap: 6 }
},
mobile: { columns: 1, gap: 2 }
};
var COMMON_GRID_4_COL = {
at: {
xs: { columns: 1, gap: 2 },
md: { columns: 2, gap: 3 },
lg: { columns: 4, gap: 6 }
},
mobile: { columns: 1, gap: 2 }
};