atomsystem 0.4.3 → 0.5.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/README.md +112 -52
- package/components/blocks/BlockDetailPageContent.tsx +337 -0
- package/components/blocks/BlockViewerCard.tsx +123 -123
- package/components/blocks/BlocksSidebar.tsx +93 -0
- package/components/blocks/CardListBlock.tsx +101 -196
- package/components/blocks/FileExplorerBlock.tsx +114 -446
- package/components/blocks/InteractiveChatBlock.tsx +107 -123
- package/components/blocks/MetricStatsBlock.tsx +78 -106
- package/components/blocks/PricingPlanBlock.tsx +88 -144
- package/components/blocks/RealtimeChartBlock.tsx +131 -250
- package/components/blocks/SliderShowcaseBlock.tsx +105 -305
- package/components/ui/Container.tsx +45 -0
- package/components/ui/Layout.tsx +220 -0
- package/components/ui/Switch.tsx +39 -0
- package/components/ui/Table.tsx +88 -0
- package/components/ui/Tabs.tsx +58 -0
- package/components/ui/index.ts +5 -0
- package/css/atom-ui.css +41 -816
- package/dist/cli.cjs +633 -41
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +630 -39
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +176 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +13 -4
- package/dist/index.d.ts +13 -4
- package/dist/index.js +176 -3
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/presets/agents.guide.md +49 -0
- package/presets/blocks.md +101 -0
- package/presets/components.md +142 -0
- package/tokens/token.json +63 -1
- package/tokens/tokens.json +63 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
|
|
3
|
-
type TokenCategory = 'color' | 'typography' | 'radius' | 'spacing' | 'shadow';
|
|
3
|
+
type TokenCategory = 'color' | 'typography' | 'radius' | 'spacing' | 'shadow' | 'layout';
|
|
4
4
|
interface BrandPreset {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
@@ -41,14 +41,22 @@ interface ShadowToken {
|
|
|
41
41
|
value: string;
|
|
42
42
|
description: string;
|
|
43
43
|
}
|
|
44
|
+
interface LayoutToken {
|
|
45
|
+
name: string;
|
|
46
|
+
variable: string;
|
|
47
|
+
value: string;
|
|
48
|
+
description: string;
|
|
49
|
+
type: 'container' | 'gutter' | 'gap';
|
|
50
|
+
}
|
|
44
51
|
declare const BRAND_PRESETS: BrandPreset[];
|
|
45
52
|
declare const BASE_COLOR_TOKENS: ColorToken[];
|
|
46
53
|
declare const TYPOGRAPHY_TOKENS: TypographyToken[];
|
|
47
54
|
declare const RADIUS_TOKENS: RadiusToken[];
|
|
48
55
|
declare const SPACING_TOKENS: SpacingToken[];
|
|
49
56
|
declare const SHADOW_TOKENS: ShadowToken[];
|
|
57
|
+
declare const LAYOUT_TOKENS: LayoutToken[];
|
|
50
58
|
|
|
51
|
-
type ComponentCategory = 'all' | 'form' | 'feedback' | 'navigation' | 'data';
|
|
59
|
+
type ComponentCategory = 'all' | 'form' | 'feedback' | 'navigation' | 'data' | 'layout';
|
|
52
60
|
interface PropItem {
|
|
53
61
|
name: string;
|
|
54
62
|
type: string;
|
|
@@ -143,6 +151,7 @@ interface ThemeConfig {
|
|
|
143
151
|
color: ColorConfig;
|
|
144
152
|
typography: TypographyConfig;
|
|
145
153
|
borderRadius: string;
|
|
154
|
+
selectedIcon?: string;
|
|
146
155
|
}
|
|
147
156
|
interface ColorPreset {
|
|
148
157
|
id: string;
|
|
@@ -212,7 +221,7 @@ declare const ATOM_UI_CSS_PATH = "atomsystem/css/atom-ui.css";
|
|
|
212
221
|
/**
|
|
213
222
|
* CLI Banner & Metadata
|
|
214
223
|
*/
|
|
215
|
-
declare const ATOM_VERSION = "0.
|
|
224
|
+
declare const ATOM_VERSION = "0.5.0";
|
|
216
225
|
declare const ATOM_LIB_NAME = "atomsystem";
|
|
217
226
|
|
|
218
|
-
export { ATOM_LIB_NAME, ATOM_UI_CSS_PATH, ATOM_VERSION, AWESOME_CATEGORIES, AWESOME_DESIGN_MD_THEMES, type AwesomeDesignMdTheme, BASE_COLOR_TOKENS, BRAND_PRESETS, type BrandPreset, COLOR_PRESETS, type ColorConfig, type ColorPreset, type ColorToken, type ComponentCategory, DEFAULT_THEME_CONFIG, type DosAndDont, FONT_FAMILY_PRESETS, GALLERY_COMPONENTS, type GalleryComponent, PATTERNS_COLLECTION, type PatternItem, type PatternPlatform, type PatternVariant, type PropItem, RADIUS_TOKENS, type RadiusToken, SHADOW_TOKENS, SPACING_TOKENS, type ShadowToken, type SpacingToken, TYPOGRAPHY_TOKENS, type ThemeConfig, type TokenCategory, type TypographyConfig, type TypographyLevelConfig, type TypographyToken, applyThemeToDOM, cn, exportToCSS, exportToTailwind, exportToTokensJson, generateThemeCSS, isDarkColor };
|
|
227
|
+
export { ATOM_LIB_NAME, ATOM_UI_CSS_PATH, ATOM_VERSION, AWESOME_CATEGORIES, AWESOME_DESIGN_MD_THEMES, type AwesomeDesignMdTheme, BASE_COLOR_TOKENS, BRAND_PRESETS, type BrandPreset, COLOR_PRESETS, type ColorConfig, type ColorPreset, type ColorToken, type ComponentCategory, DEFAULT_THEME_CONFIG, type DosAndDont, FONT_FAMILY_PRESETS, GALLERY_COMPONENTS, type GalleryComponent, LAYOUT_TOKENS, type LayoutToken, PATTERNS_COLLECTION, type PatternItem, type PatternPlatform, type PatternVariant, type PropItem, RADIUS_TOKENS, type RadiusToken, SHADOW_TOKENS, SPACING_TOKENS, type ShadowToken, type SpacingToken, TYPOGRAPHY_TOKENS, type ThemeConfig, type TokenCategory, type TypographyConfig, type TypographyLevelConfig, type TypographyToken, applyThemeToDOM, cn, exportToCSS, exportToTailwind, exportToTokensJson, generateThemeCSS, isDarkColor };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ClassValue } from 'clsx';
|
|
2
2
|
|
|
3
|
-
type TokenCategory = 'color' | 'typography' | 'radius' | 'spacing' | 'shadow';
|
|
3
|
+
type TokenCategory = 'color' | 'typography' | 'radius' | 'spacing' | 'shadow' | 'layout';
|
|
4
4
|
interface BrandPreset {
|
|
5
5
|
id: string;
|
|
6
6
|
name: string;
|
|
@@ -41,14 +41,22 @@ interface ShadowToken {
|
|
|
41
41
|
value: string;
|
|
42
42
|
description: string;
|
|
43
43
|
}
|
|
44
|
+
interface LayoutToken {
|
|
45
|
+
name: string;
|
|
46
|
+
variable: string;
|
|
47
|
+
value: string;
|
|
48
|
+
description: string;
|
|
49
|
+
type: 'container' | 'gutter' | 'gap';
|
|
50
|
+
}
|
|
44
51
|
declare const BRAND_PRESETS: BrandPreset[];
|
|
45
52
|
declare const BASE_COLOR_TOKENS: ColorToken[];
|
|
46
53
|
declare const TYPOGRAPHY_TOKENS: TypographyToken[];
|
|
47
54
|
declare const RADIUS_TOKENS: RadiusToken[];
|
|
48
55
|
declare const SPACING_TOKENS: SpacingToken[];
|
|
49
56
|
declare const SHADOW_TOKENS: ShadowToken[];
|
|
57
|
+
declare const LAYOUT_TOKENS: LayoutToken[];
|
|
50
58
|
|
|
51
|
-
type ComponentCategory = 'all' | 'form' | 'feedback' | 'navigation' | 'data';
|
|
59
|
+
type ComponentCategory = 'all' | 'form' | 'feedback' | 'navigation' | 'data' | 'layout';
|
|
52
60
|
interface PropItem {
|
|
53
61
|
name: string;
|
|
54
62
|
type: string;
|
|
@@ -143,6 +151,7 @@ interface ThemeConfig {
|
|
|
143
151
|
color: ColorConfig;
|
|
144
152
|
typography: TypographyConfig;
|
|
145
153
|
borderRadius: string;
|
|
154
|
+
selectedIcon?: string;
|
|
146
155
|
}
|
|
147
156
|
interface ColorPreset {
|
|
148
157
|
id: string;
|
|
@@ -212,7 +221,7 @@ declare const ATOM_UI_CSS_PATH = "atomsystem/css/atom-ui.css";
|
|
|
212
221
|
/**
|
|
213
222
|
* CLI Banner & Metadata
|
|
214
223
|
*/
|
|
215
|
-
declare const ATOM_VERSION = "0.
|
|
224
|
+
declare const ATOM_VERSION = "0.5.0";
|
|
216
225
|
declare const ATOM_LIB_NAME = "atomsystem";
|
|
217
226
|
|
|
218
|
-
export { ATOM_LIB_NAME, ATOM_UI_CSS_PATH, ATOM_VERSION, AWESOME_CATEGORIES, AWESOME_DESIGN_MD_THEMES, type AwesomeDesignMdTheme, BASE_COLOR_TOKENS, BRAND_PRESETS, type BrandPreset, COLOR_PRESETS, type ColorConfig, type ColorPreset, type ColorToken, type ComponentCategory, DEFAULT_THEME_CONFIG, type DosAndDont, FONT_FAMILY_PRESETS, GALLERY_COMPONENTS, type GalleryComponent, PATTERNS_COLLECTION, type PatternItem, type PatternPlatform, type PatternVariant, type PropItem, RADIUS_TOKENS, type RadiusToken, SHADOW_TOKENS, SPACING_TOKENS, type ShadowToken, type SpacingToken, TYPOGRAPHY_TOKENS, type ThemeConfig, type TokenCategory, type TypographyConfig, type TypographyLevelConfig, type TypographyToken, applyThemeToDOM, cn, exportToCSS, exportToTailwind, exportToTokensJson, generateThemeCSS, isDarkColor };
|
|
227
|
+
export { ATOM_LIB_NAME, ATOM_UI_CSS_PATH, ATOM_VERSION, AWESOME_CATEGORIES, AWESOME_DESIGN_MD_THEMES, type AwesomeDesignMdTheme, BASE_COLOR_TOKENS, BRAND_PRESETS, type BrandPreset, COLOR_PRESETS, type ColorConfig, type ColorPreset, type ColorToken, type ComponentCategory, DEFAULT_THEME_CONFIG, type DosAndDont, FONT_FAMILY_PRESETS, GALLERY_COMPONENTS, type GalleryComponent, LAYOUT_TOKENS, type LayoutToken, PATTERNS_COLLECTION, type PatternItem, type PatternPlatform, type PatternVariant, type PropItem, RADIUS_TOKENS, type RadiusToken, SHADOW_TOKENS, SPACING_TOKENS, type ShadowToken, type SpacingToken, TYPOGRAPHY_TOKENS, type ThemeConfig, type TokenCategory, type TypographyConfig, type TypographyLevelConfig, type TypographyToken, applyThemeToDOM, cn, exportToCSS, exportToTailwind, exportToTokensJson, generateThemeCSS, isDarkColor };
|
package/dist/index.js
CHANGED
|
@@ -270,6 +270,71 @@ var SHADOW_TOKENS = [
|
|
|
270
270
|
description: "\uD654\uBA74 \uCD5C\uC0C1\uB2E8 \uB808\uC774\uC5B4\uC758 \uBAA8\uB2EC \uB2E4\uC774\uC5BC\uB85C\uADF8, \uBC14\uD140\uC2DC\uD2B8"
|
|
271
271
|
}
|
|
272
272
|
];
|
|
273
|
+
var LAYOUT_TOKENS = [
|
|
274
|
+
{
|
|
275
|
+
name: "Container Small (Narrow / Form)",
|
|
276
|
+
variable: "--atom-container-sm",
|
|
277
|
+
value: "640px",
|
|
278
|
+
description: "\uC778\uC99D \uD3FC, \uACB0\uC81C \uBAA8\uB2EC, \uB2E8\uC77C \uCEEC\uB7FC \uCF58\uD150\uCE20",
|
|
279
|
+
type: "container"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: "Container Medium (Article / Content)",
|
|
283
|
+
variable: "--atom-container-md",
|
|
284
|
+
value: "768px",
|
|
285
|
+
description: "\uBE14\uB85C\uADF8 \uC544\uD2F0\uD074, \uD504\uB85C\uD544 \uBDF0\uC5B4, \uC124\uC815 \uD3FC",
|
|
286
|
+
type: "container"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
name: "Container Large (Standard Catalog)",
|
|
290
|
+
variable: "--atom-container-lg",
|
|
291
|
+
value: "1024px",
|
|
292
|
+
description: "\uD45C\uC900 \uB7A9\uD0D1 \uBDF0, \uCE74\uD0C8\uB85C\uADF8 \uCE74\uB4DC \uADF8\uB9AC\uB4DC",
|
|
293
|
+
type: "container"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
name: "Container Extra Large (Default Dashboard)",
|
|
297
|
+
variable: "--atom-container-xl",
|
|
298
|
+
value: "1280px",
|
|
299
|
+
description: "\uAE30\uBCF8 \uB370\uC2A4\uD06C\uD1B1 \uC640\uC774\uB4DC \uB808\uC774\uC544\uC6C3 \uBC0F \uB300\uC2DC\uBCF4\uB4DC \uD5C8\uBE0C",
|
|
300
|
+
type: "container"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
name: "Container 2X Large (Ultra Wide Grid)",
|
|
304
|
+
variable: "--atom-container-2xl",
|
|
305
|
+
value: "1536px",
|
|
306
|
+
description: "\uCD08\uAD11\uD3ED \uACE0\uBC00\uB3C4 \uB370\uC774\uD130 \uADF8\uB9AC\uB4DC, \uD540\uD14C\uD06C \uCC28\uD2B8 \uC6CC\uD06C\uC2A4\uD398\uC774\uC2A4",
|
|
307
|
+
type: "container"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
name: "Container Full (Fluid Fluid 100%)",
|
|
311
|
+
variable: "--atom-container-full",
|
|
312
|
+
value: "100%",
|
|
313
|
+
description: "\uC804\uCCB4 \uD654\uBA74 \uD50C\uB8E8\uC774\uB4DC \uC720\uC5F0 \uBDF0\uC5B4",
|
|
314
|
+
type: "container"
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
name: "Layout Gutter (Mobile / Base)",
|
|
318
|
+
variable: "--atom-layout-gutter",
|
|
319
|
+
value: "16px",
|
|
320
|
+
description: "\uD654\uBA74 \uC88C\uC6B0 \uAE30\uBCF8 \uC548\uC804 \uC5EC\uBC31 (Safe Padding)",
|
|
321
|
+
type: "gutter"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
name: "Layout Gutter Large (Desktop)",
|
|
325
|
+
variable: "--atom-layout-gutter-lg",
|
|
326
|
+
value: "24px",
|
|
327
|
+
description: "\uB370\uC2A4\uD06C\uD1B1 \uD654\uBA74 \uC88C\uC6B0 \uC548\uC804 \uC5EC\uBC31",
|
|
328
|
+
type: "gutter"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
name: "Layout Section Gap",
|
|
332
|
+
variable: "--atom-layout-gap",
|
|
333
|
+
value: "32px",
|
|
334
|
+
description: "\uC139\uC158\uACFC \uC139\uC158 \uAC04\uC758 \uAE30\uBCF8 \uB808\uC774\uC544\uC6C3 \uAC04\uACA9",
|
|
335
|
+
type: "gap"
|
|
336
|
+
}
|
|
337
|
+
];
|
|
273
338
|
|
|
274
339
|
// lib/data/components.ts
|
|
275
340
|
var GALLERY_COMPONENTS = [
|
|
@@ -1675,6 +1740,113 @@ export function TextareaDemo() {
|
|
|
1675
1740
|
vueSnippet: `<template>
|
|
1676
1741
|
<AtomTree :data="treeData" v-model:selected="selectedId" :default-expanded="['src']" />
|
|
1677
1742
|
</template>`
|
|
1743
|
+
},
|
|
1744
|
+
{
|
|
1745
|
+
id: "container",
|
|
1746
|
+
name: "\uCEE8\uD14C\uC774\uB108 (Container)",
|
|
1747
|
+
category: "layout",
|
|
1748
|
+
source: "AtomSystem Universal",
|
|
1749
|
+
description: "\uB514\uC790\uC778 \uD1A0\uD070(--atom-container-*)\uACFC \uC5F0\uB3D9\uB418\uC5B4 \uD654\uBA74 \uD3ED\uC5D0 \uB9DE\uCD98 \uCD5C\uC801 \uB108\uBE44 \uBC0F \uBC18\uC751\uD615 \uC548\uC804 \uC5EC\uBC31(Gutter)\uC744 \uC81C\uACF5\uD558\uB294 \uB798\uD37C \uCEF4\uD3EC\uB10C\uD2B8",
|
|
1750
|
+
callout: {
|
|
1751
|
+
type: "tip",
|
|
1752
|
+
title: "\uD1A0\uD070 \uAE30\uBC18 \uB108\uBE44 \uC81C\uC5B4",
|
|
1753
|
+
text: '\uD558\uB4DC\uCF54\uB529\uB41C max-w-[1200px] \uB300\uC2E0 size="sm"|"md"|"lg"|"xl"|"2xl"|"full"\uC744 \uC0AC\uC6A9\uD558\uC5EC DTCG \uD45C\uC900 \uD1A0\uD070\uACFC 100% \uC5F0\uB3D9\uB429\uB2C8\uB2E4.'
|
|
1754
|
+
},
|
|
1755
|
+
propsSpec: [
|
|
1756
|
+
{ name: "size", type: "'sm' | 'md' | 'lg' | 'xl' | '2xl' | 'full'", defaultValue: "'xl'", description: "\uCEE8\uD14C\uC774\uB108 \uCD5C\uB300 \uB108\uBE44 \uADDC\uACA9 \uD1A0\uD070 (--atom-container-*)" },
|
|
1757
|
+
{ name: "gutters", type: "boolean", defaultValue: "true", description: "\uD654\uBA74 \uC88C\uC6B0 \uBC18\uC751\uD615 \uC548\uC804 \uD328\uB529 \uC801\uC6A9 \uC5EC\uBD80 (--atom-layout-gutter)" },
|
|
1758
|
+
{ name: "center", type: "boolean", defaultValue: "true", description: "\uC911\uC559 \uC815\uB82C(mx-auto) \uC801\uC6A9 \uC5EC\uBD80" },
|
|
1759
|
+
{ name: "as", type: "ElementType", defaultValue: "'div'", description: "\uB80C\uB354\uB9C1\uD560 \uC2DC\uB9E8\uD2F1 HTML \uD0DC\uADF8 (div, section, main \uB4F1)" },
|
|
1760
|
+
{ name: "className", type: "string", defaultValue: "''", description: "\uCD94\uAC00 \uCEE4\uC2A4\uD140 \uD074\uB798\uC2A4" }
|
|
1761
|
+
],
|
|
1762
|
+
useCases: [
|
|
1763
|
+
"\uB300\uC2DC\uBCF4\uB4DC \uBA54\uC778 \uBDF0\uC5B4 \uBC0F \uCE74\uD0C8\uB85C\uADF8\uC758 \uCD5C\uB300 \uAC00\uB85C\uD3ED \uD1B5\uC77C",
|
|
1764
|
+
'\uB2E8\uC77C \uD3FC, \uACB0\uC81C \uD398\uC774\uC9C0, \uC778\uC99D \uD654\uBA74\uC758 \uC881\uC740 \uC911\uC559 \uC815\uB82C (size="sm")',
|
|
1765
|
+
'\uBE14\uB85C\uADF8, \uC544\uD2F0\uD074, \uC9C0\uC2DD \uBCA0\uC774\uC2A4\uC758 \uAC00\uB3C5\uC131 \uC911\uC2EC \uCEE8\uD14C\uC774\uB108 (size="md")',
|
|
1766
|
+
'\uCD08\uAD11\uD3ED \uB370\uC774\uD130 \uADF8\uB9AC\uB4DC \uBC0F \uD2B8\uB808\uC774\uB529 \uCC28\uD2B8\uC758 \uC640\uC774\uB4DC \uCEE8\uD14C\uC774\uB108 (size="2xl")'
|
|
1767
|
+
],
|
|
1768
|
+
usagePatterns: [
|
|
1769
|
+
"\uBAA8\uB4E0 \uD398\uC774\uC9C0 \uBDF0\uC5B4\uC758 \uCD5C\uC0C1\uC704 \uBCF8\uBB38 \uB798\uD37C\uB85C Container\uB97C \uC0AC\uC6A9\uD558\uC5EC \uBAA8\uBC14\uC77C/\uB370\uC2A4\uD06C\uD1B1 \uAC70\uD130\uB97C \uC77C\uAD00\uB418\uAC8C \uC720\uC9C0\uD569\uB2C8\uB2E4.",
|
|
1770
|
+
"\uC911\uCCA9 \uCEE8\uD14C\uC774\uB108\uB97C \uD53C\uD558\uACE0, \uC139\uC158 \uB0B4\uBD80\uC5D0\uC11C\uB294 Grid \uB610\uB294 Stack\uC744 \uC0AC\uC6A9\uD558\uC5EC \uAD6C\uC870\uD654\uD569\uB2C8\uB2E4."
|
|
1771
|
+
],
|
|
1772
|
+
dosAndDonts: [
|
|
1773
|
+
{
|
|
1774
|
+
do: "\uD398\uC774\uC9C0 \uC131\uACA9\uC5D0 \uB9DE\uB294 size \uD1A0\uD070(sm, md, lg, xl, 2xl)\uC744 \uC9C0\uC815\uD558\uC5EC \uC77C\uAD00\uB41C \uBDF0\uD3EC\uD2B8 \uACC4\uCE35\uC744 \uD615\uC131\uD569\uB2C8\uB2E4.",
|
|
1775
|
+
dont: "\uD398\uC774\uC9C0\uB9C8\uB2E4 \uC784\uC758\uC758 max-w-[1140px], max-w-[1250px] \uB4F1 \uBE44\uD45C\uC900 \uD558\uB4DC\uCF54\uB529 \uAC12\uC744 \uB09C\uB9BD\uC2DC\uD0A4\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."
|
|
1776
|
+
}
|
|
1777
|
+
],
|
|
1778
|
+
relatedPatternIds: ["dashboard-overview", "checkout-flow"],
|
|
1779
|
+
htmlSnippet: '<div class="atom-container atom-container-xl">\n <h1>\uCEE8\uD14C\uC774\uB108 \uBCF8\uBB38</h1>\n</div>',
|
|
1780
|
+
reactSnippet: `import { Container } from 'atomsystem/components/Container';
|
|
1781
|
+
|
|
1782
|
+
export function ContainerDemo() {
|
|
1783
|
+
return (
|
|
1784
|
+
<Container size="xl">
|
|
1785
|
+
<h1 className="text-xl font-bold">\uB300\uC2DC\uBCF4\uB4DC \uBDF0\uC5B4</h1>
|
|
1786
|
+
<p>\uD1A0\uD070 \uC2DC\uC2A4\uD15C\uACFC \uC5F0\uB3D9\uB41C \uC548\uC804 \uD328\uB529\uACFC \uB108\uBE44\uAC00 \uC790\uB3D9 \uC801\uC6A9\uB429\uB2C8\uB2E4.</p>
|
|
1787
|
+
</Container>
|
|
1788
|
+
);
|
|
1789
|
+
}`,
|
|
1790
|
+
vueSnippet: '<template>\n <div class="atom-container atom-container-xl">\n <slot />\n </div>\n</template>'
|
|
1791
|
+
},
|
|
1792
|
+
{
|
|
1793
|
+
id: "layout",
|
|
1794
|
+
name: "\uB808\uC774\uC544\uC6C3 & \uC2A4\uD0DD (Layout & Stack)",
|
|
1795
|
+
category: "layout",
|
|
1796
|
+
source: "AtomSystem Universal",
|
|
1797
|
+
description: "\uC804\uCCB4 \uD398\uC774\uC9C0 \uC258(Header, Sidebar, Content, Footer) \uBC0F \uC2A4\uD398\uC774\uC2F1 \uD1A0\uD070 \uAE30\uBC18\uC758 \uC120\uD615/\uACA9\uC790 \uC870\uB9BD \uB3C4\uAD6C(Stack, Grid, Section)",
|
|
1798
|
+
callout: {
|
|
1799
|
+
type: "tip",
|
|
1800
|
+
title: "\uB808\uACE0 \uC870\uB9BD\uC758 \uBF08\uB300",
|
|
1801
|
+
text: "Layout.Header, Layout.Sidebar, Layout.Content, Layout.Stack, Layout.Grid\uB97C \uD65C\uC6A9\uD558\uC5EC 100% \uD1A0\uD070\uD654\uB41C \uB808\uC774\uC544\uC6C3\uC744 \uAD6C\uCD95\uD569\uB2C8\uB2E4."
|
|
1802
|
+
},
|
|
1803
|
+
propsSpec: [
|
|
1804
|
+
{ name: "direction", type: "'vertical' | 'horizontal'", defaultValue: "'vertical'", description: "Stack \uBC30\uCE58 \uBC29\uD5A5" },
|
|
1805
|
+
{ name: "gap", type: "'1' | '2' | '3' | '4' | '6' | '8' | '12'", defaultValue: "'4'", description: "\uC2A4\uD398\uC774\uC2F1 \uD1A0\uD070 \uB2E8\uC704 \uAC04\uACA9 (--atom-space-*)" },
|
|
1806
|
+
{ name: "align", type: "'start' | 'center' | 'end' | 'stretch'", defaultValue: "'stretch'", description: "\uAD50\uCC28\uCD95 \uC815\uB82C" },
|
|
1807
|
+
{ name: "justify", type: "'start' | 'center' | 'end' | 'between' | 'around'", defaultValue: "'start'", description: "\uC8FC\uCD95 \uC815\uB82C" },
|
|
1808
|
+
{ name: "cols", type: "1 | 2 | 3 | 4 | 6 | 12", defaultValue: "3", description: "Grid \uCEEC\uB7FC \uC218" }
|
|
1809
|
+
],
|
|
1810
|
+
useCases: [
|
|
1811
|
+
"\uB300\uC2DC\uBCF4\uB4DC \uAE00\uB85C\uBC8C \uC258 (\uC0C1\uB2E8 \uB124\uBE44\uBC14 + \uC88C\uCE21 \uC0AC\uC774\uB4DC\uBC14 + \uBA54\uC778 \uBCF8\uBB38)",
|
|
1812
|
+
'\uD3FC \uD544\uB4DC \uAC04\uC758 \uC218\uC9C1 \uC2A4\uD0DD \uC815\uB82C (gap="4")',
|
|
1813
|
+
'\uBC84\uD2BC \uADF8\uB8F9 \uBC0F \uC561\uC158 \uD234\uBC14\uC758 \uC218\uD3C9 \uC2A4\uD0DD \uC815\uB82C (direction="horizontal", gap="2")',
|
|
1814
|
+
'\uBC18\uC751\uD615 \uCE74\uB4DC \uB9AC\uC2A4\uD2B8\uC758 3\uC5F4 \uADF8\uB9AC\uB4DC \uBC30\uCE58 (Grid cols={3} gap="4")'
|
|
1815
|
+
],
|
|
1816
|
+
usagePatterns: [
|
|
1817
|
+
"\uC784\uC758\uC758 margin-bottom, padding-top \uB300\uC2E0 Stack\uC758 gap \uC18D\uC131\uC744 \uD1B5\uD574 \uD1A0\uD070 \uAE30\uBC18 \uC77C\uAD00\uB41C \uB9AC\uB4EC\uC744 \uC720\uC9C0\uD569\uB2C8\uB2E4.",
|
|
1818
|
+
"\uCE74\uB4DC \uBAA9\uB85D\uC5D0\uB294 Grid \uCEF4\uD3EC\uB10C\uD2B8\uB97C \uC0AC\uC6A9\uD558\uC5EC \uBAA8\uBC14\uC77C(1\uC5F4) -> \uD0DC\uBE14\uB9BF(2\uC5F4) -> \uB370\uC2A4\uD06C\uD1B1(3\uC5F4) \uBC18\uC751\uD615 \uC804\uD658\uC744 \uBCF4\uC7A5\uD569\uB2C8\uB2E4."
|
|
1819
|
+
],
|
|
1820
|
+
dosAndDonts: [
|
|
1821
|
+
{
|
|
1822
|
+
do: 'Stack\uACFC Grid\uC5D0 \uC815\uC758\uB41C \uD1A0\uD070 gap("2", "4", "6", "8")\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC5EC\uBC31\uC744 \uCCB4\uACC4\uD654\uD569\uB2C8\uB2E4.',
|
|
1823
|
+
dont: "\uC790\uC2DD \uC5D8\uB9AC\uBA3C\uD2B8\uB9C8\uB2E4 \uC81C\uAC01\uAC01 mb-[17px], mt-[23px] \uB4F1 \uBD88\uADDC\uCE59\uD55C \uC778\uB77C\uC778 \uB9C8\uC9C4\uC744 \uBD80\uC5EC\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."
|
|
1824
|
+
}
|
|
1825
|
+
],
|
|
1826
|
+
relatedPatternIds: ["dashboard-overview", "filter-search"],
|
|
1827
|
+
htmlSnippet: '<div class="atom-layout-shell">\n <header class="atom-layout-header">\uD5E4\uB354</header>\n <main class="atom-layout-content">\n <div class="atom-stack-v atom-gap-4">\uC2A4\uD0DD \uBCF8\uBB38</div>\n </main>\n</div>',
|
|
1828
|
+
reactSnippet: `import { Layout, Container, Stack, Grid } from 'atomsystem/components/Layout';
|
|
1829
|
+
|
|
1830
|
+
export function LayoutDemo() {
|
|
1831
|
+
return (
|
|
1832
|
+
<Layout>
|
|
1833
|
+
<Layout.Header>\uD5E4\uB354</Layout.Header>
|
|
1834
|
+
<Layout.Content>
|
|
1835
|
+
<Container size="xl">
|
|
1836
|
+
<Stack gap="6">
|
|
1837
|
+
<h1 className="text-2xl font-bold">\uB300\uC2DC\uBCF4\uB4DC</h1>
|
|
1838
|
+
<Grid cols={3} gap="4">
|
|
1839
|
+
<div>\uCE74\uB4DC 1</div>
|
|
1840
|
+
<div>\uCE74\uB4DC 2</div>
|
|
1841
|
+
<div>\uCE74\uB4DC 3</div>
|
|
1842
|
+
</Grid>
|
|
1843
|
+
</Stack>
|
|
1844
|
+
</Container>
|
|
1845
|
+
</Layout.Content>
|
|
1846
|
+
</Layout>
|
|
1847
|
+
);
|
|
1848
|
+
}`,
|
|
1849
|
+
vueSnippet: '<template>\n <div class="atom-layout-shell">\n <slot />\n </div>\n</template>'
|
|
1678
1850
|
}
|
|
1679
1851
|
];
|
|
1680
1852
|
|
|
@@ -8179,7 +8351,8 @@ var DEFAULT_THEME_CONFIG = {
|
|
|
8179
8351
|
letterSpacing: "0.01em"
|
|
8180
8352
|
}
|
|
8181
8353
|
},
|
|
8182
|
-
borderRadius: "14px"
|
|
8354
|
+
borderRadius: "14px",
|
|
8355
|
+
selectedIcon: "Sparkles"
|
|
8183
8356
|
};
|
|
8184
8357
|
var COLOR_PRESETS = [
|
|
8185
8358
|
{
|
|
@@ -8732,9 +8905,9 @@ function cn(...inputs) {
|
|
|
8732
8905
|
|
|
8733
8906
|
// src/index.ts
|
|
8734
8907
|
var ATOM_UI_CSS_PATH = "atomsystem/css/atom-ui.css";
|
|
8735
|
-
var ATOM_VERSION = "0.
|
|
8908
|
+
var ATOM_VERSION = "0.5.0";
|
|
8736
8909
|
var ATOM_LIB_NAME = "atomsystem";
|
|
8737
8910
|
|
|
8738
|
-
export { ATOM_LIB_NAME, ATOM_UI_CSS_PATH, ATOM_VERSION, AWESOME_CATEGORIES, AWESOME_DESIGN_MD_THEMES, BASE_COLOR_TOKENS, BRAND_PRESETS, COLOR_PRESETS, DEFAULT_THEME_CONFIG, FONT_FAMILY_PRESETS, GALLERY_COMPONENTS, PATTERNS_COLLECTION, RADIUS_TOKENS, SHADOW_TOKENS, SPACING_TOKENS, TYPOGRAPHY_TOKENS, applyThemeToDOM, cn, exportToCSS, exportToTailwind, exportToTokensJson, generateThemeCSS, isDarkColor };
|
|
8911
|
+
export { ATOM_LIB_NAME, ATOM_UI_CSS_PATH, ATOM_VERSION, AWESOME_CATEGORIES, AWESOME_DESIGN_MD_THEMES, BASE_COLOR_TOKENS, BRAND_PRESETS, COLOR_PRESETS, DEFAULT_THEME_CONFIG, FONT_FAMILY_PRESETS, GALLERY_COMPONENTS, LAYOUT_TOKENS, PATTERNS_COLLECTION, RADIUS_TOKENS, SHADOW_TOKENS, SPACING_TOKENS, TYPOGRAPHY_TOKENS, applyThemeToDOM, cn, exportToCSS, exportToTailwind, exportToTokensJson, generateThemeCSS, isDarkColor };
|
|
8739
8912
|
//# sourceMappingURL=index.js.map
|
|
8740
8913
|
//# sourceMappingURL=index.js.map
|