@teamsparta/stack-custom-modal
Version:
stack custom modal
56 lines (54 loc) • 2.02 kB
JavaScript
;
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);
// src/stories/_shared/data.tsx
var data_exports = {};
__export(data_exports, {
SCROLL_SAMPLE_ITEMS: () => SCROLL_SAMPLE_ITEMS,
SampleItemCard: () => SampleItemCard
});
module.exports = __toCommonJS(data_exports);
var import_stack_flex = require("@teamsparta/stack-flex");
var import_stack_text = require("@teamsparta/stack-text");
var import_stack_tokens = require("@teamsparta/stack-tokens");
var import_jsx_runtime = require("@emotion/react/jsx-runtime");
var SCROLL_SAMPLE_ITEMS = Array.from(
{ length: 20 },
(_, i) => `\uC2A4\uD06C\uB864 \uD14C\uC2A4\uD2B8 \uC544\uC774\uD15C ${i + 1}`
);
function SampleItemCard({ label }) {
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
import_stack_flex.Flex.Column,
{
fullWidth: true,
align: "center",
justify: "center",
style: {
height: "60px",
backgroundColor: import_stack_tokens.vars.neutral[10],
borderRadius: 8
},
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_stack_text.Text, { as: "span", font: "bodyCompact", children: label })
}
);
}
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
SCROLL_SAMPLE_ITEMS,
SampleItemCard
});