atomsystem 0.4.0 → 0.4.3
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/atom.design.md +17 -0
- package/components/blocks/BlockViewerCard.tsx +229 -0
- package/components/blocks/CardListBlock.tsx +309 -0
- package/components/blocks/FileExplorerBlock.tsx +535 -0
- package/components/blocks/InteractiveChatBlock.tsx +233 -0
- package/components/blocks/MetricStatsBlock.tsx +178 -0
- package/components/blocks/PricingPlanBlock.tsx +231 -0
- package/components/blocks/RealtimeChartBlock.tsx +361 -0
- package/components/blocks/SliderShowcaseBlock.tsx +336 -0
- package/components/blocks/index.ts +8 -0
- package/components/ui/Tree.tsx +121 -0
- package/components/ui/index.ts +1 -0
- package/css/atom-ui.css +134 -7
- package/dist/cli.cjs +1 -1
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +90 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +90 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -1
- package/presets/default.design.md +17 -0
- package/tokens/token.json +1 -1
- package/tokens/tokens.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -212,7 +212,7 @@ declare const ATOM_UI_CSS_PATH = "atomsystem/css/atom-ui.css";
|
|
|
212
212
|
/**
|
|
213
213
|
* CLI Banner & Metadata
|
|
214
214
|
*/
|
|
215
|
-
declare const ATOM_VERSION = "0.4.
|
|
215
|
+
declare const ATOM_VERSION = "0.4.3";
|
|
216
216
|
declare const ATOM_LIB_NAME = "atomsystem";
|
|
217
217
|
|
|
218
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -212,7 +212,7 @@ declare const ATOM_UI_CSS_PATH = "atomsystem/css/atom-ui.css";
|
|
|
212
212
|
/**
|
|
213
213
|
* CLI Banner & Metadata
|
|
214
214
|
*/
|
|
215
|
-
declare const ATOM_VERSION = "0.4.
|
|
215
|
+
declare const ATOM_VERSION = "0.4.3";
|
|
216
216
|
declare const ATOM_LIB_NAME = "atomsystem";
|
|
217
217
|
|
|
218
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 };
|
package/dist/index.js
CHANGED
|
@@ -1628,6 +1628,52 @@ export function TextareaDemo() {
|
|
|
1628
1628
|
}`,
|
|
1629
1629
|
vueSnippet: `<template>
|
|
1630
1630
|
<AtomTextarea v-model="comment" :max-length="300" />
|
|
1631
|
+
</template>`
|
|
1632
|
+
},
|
|
1633
|
+
{
|
|
1634
|
+
id: "tree",
|
|
1635
|
+
name: "\uD2B8\uB9AC \uBDF0 (Tree View)",
|
|
1636
|
+
category: "data",
|
|
1637
|
+
source: "shadcn + vs-code",
|
|
1638
|
+
description: "\uD3F4\uB354/\uD30C\uC77C \uD0D0\uC0C9\uAE30, \uC870\uC9C1\uB3C4, \uAD8C\uD55C \uACC4\uCE35 \uB4F1 \uC911\uCCA9\uB41C \uD2B8\uB9AC \uB370\uC774\uD130\uB97C \uC2DC\uAC01\uD654\uD558\uACE0 \uD3BC\uCE68/\uC811\uAE30/\uC120\uD0DD\uC744 \uC9C0\uC6D0\uD558\uB294 \uACE0\uC811\uADFC\uC131 \uD2B8\uB9AC \uCEF4\uD3EC\uB10C\uD2B8",
|
|
1639
|
+
callout: {
|
|
1640
|
+
type: "tip",
|
|
1641
|
+
title: "\uC811\uADFC\uC131(A11y) \uD45C\uC900 \uC900\uC218",
|
|
1642
|
+
text: 'WAI-ARIA Treeview \uD328\uD134\uC744 \uC900\uC218\uD558\uC5EC \uCEE8\uD14C\uC774\uB108\uC5D0 role="tree", \uAC01 \uD589\uC5D0 role="treeitem", \uC790\uC2DD \uBCF4\uC720 \uC2DC aria-expanded\uC640 \uD0A4\uBCF4\uB4DC \uD0D0\uC0C9(Enter/Space)\uC744 \uC9C0\uC6D0\uD569\uB2C8\uB2E4.'
|
|
1643
|
+
},
|
|
1644
|
+
propsSpec: [
|
|
1645
|
+
{ name: "data", type: "TreeNode[]", defaultValue: "[]", description: "\uD2B8\uB9AC \uB178\uB4DC \uACC4\uCE35 \uB370\uC774\uD130 \uBC30\uC5F4 ({ id, label, icon, children, disabled })" },
|
|
1646
|
+
{ name: "selectedId", type: "string", defaultValue: "undefined", description: "\uD604\uC7AC \uC120\uD0DD\uB41C \uB178\uB4DC\uC758 \uACE0\uC720 ID" },
|
|
1647
|
+
{ name: "onSelect", type: "(node: TreeNode) => void", defaultValue: "undefined", description: "\uB178\uB4DC \uC120\uD0DD \uC2DC \uD638\uCD9C\uB418\uB294 \uCF5C\uBC31 \uD568\uC218" },
|
|
1648
|
+
{ name: "defaultExpandedIds", type: "string[]", defaultValue: "[]", description: "\uCD08\uAE30\uC5D0 \uAE30\uBCF8\uC73C\uB85C \uD3BC\uCCD0\uB458 \uB178\uB4DC ID \uBAA9\uB85D" },
|
|
1649
|
+
{ name: "className", type: "string", defaultValue: "''", description: "\uB8E8\uD2B8 \uCEE8\uD14C\uC774\uB108\uC5D0 \uC804\uB2EC\uD560 \uCD94\uAC00 CSS \uD074\uB798\uC2A4" }
|
|
1650
|
+
],
|
|
1651
|
+
useCases: [
|
|
1652
|
+
"IDE \uBC0F \uCF54\uB4DC \uC5D0\uB514\uD130\uC758 \uC18C\uC2A4\uCF54\uB4DC \uD30C\uC77C/\uB514\uB809\uD1A0\uB9AC \uACC4\uCE35 \uD0D0\uC0C9\uAE30",
|
|
1653
|
+
"\uBD80\uC11C \uBC0F \uD300\uC6D0 \uC870\uC9C1\uB3C4, \uC0AC\uB0B4 \uAD8C\uD55C/\uC5ED\uD560(RBAC) \uBD80\uC5EC \uD2B8\uB9AC \uBDF0",
|
|
1654
|
+
"\uB300\uADDC\uBAA8 \uC804\uC790\uC0C1\uAC70\uB798 \uC0C1\uD488 \uCE74\uD14C\uACE0\uB9AC \uB2E4\uB2E8\uACC4 \uBD84\uB958 \uD0D0\uC0C9",
|
|
1655
|
+
"\uBB38\uC11C \uBC0F \uC9C0\uC2DD\uBCA0\uC774\uC2A4(Knowledge Base) \uCC55\uD130/\uC139\uC158 \uBAA9\uCC28 \uB0B4\uBE44\uAC8C\uC774\uC158"
|
|
1656
|
+
],
|
|
1657
|
+
usagePatterns: [
|
|
1658
|
+
"\uC790\uC2DD \uB178\uB4DC\uAC00 \uC788\uB294 \uBD80\uBAA8 \uB178\uB4DC\uB294 \uC811\uAE30/\uD3BC\uCE58\uAE30 \uD1A0\uAE00(\u25B6)\uC744 \uBA85\uD655\uD788 \uC81C\uACF5\uD558\uACE0, \uD68C\uC804 \uC560\uB2C8\uBA54\uC774\uC158\uC73C\uB85C \uC0C1\uD0DC\uB97C \uC778\uC9C0\uC2DC\uD0B5\uB2C8\uB2E4.",
|
|
1659
|
+
"\uC120\uD0DD\uB41C \uB178\uB4DC\uB294 \uCD0C\uC2A4\uB7EC\uC6B4 \uAD75\uC740 \uB2E8\uBA74 \uBCF4\uB354(side-tab) \uB300\uC2E0 \uC740\uC740\uD55C \uBE0C\uB79C\uB4DC \uD2F4\uD2B8 \uBC30\uACBD\uACFC \uD3F0\uD2B8 \uAD75\uAE30(font-semibold)\uB85C \uC138\uB828\uB418\uAC8C \uD45C\uD604\uD569\uB2C8\uB2E4.",
|
|
1660
|
+
"\uAE4A\uC740 \uC911\uCCA9 \uC2DC\uC5D0\uB294 \uAC00\uC774\uB4DC \uB77C\uC778(dashed border)\uC744 \uAC00\uBCCD\uAC8C \uB450\uC5B4 \uC2DC\uAC01\uC801 \uC704\uACC4\uB97C \uD55C\uB208\uC5D0 \uD30C\uC545\uD560 \uC218 \uC788\uB3C4\uB85D \uB3D5\uC2B5\uB2C8\uB2E4."
|
|
1661
|
+
],
|
|
1662
|
+
dosAndDonts: [
|
|
1663
|
+
{
|
|
1664
|
+
do: "\uB178\uB4DC\uAC00 \uB9CE\uC744 \uACBD\uC6B0 \uAE30\uBCF8\uC801\uC73C\uB85C 1~2\uB2E8\uACC4\uAE4C\uC9C0\uB9CC \uD3BC\uCE58\uACE0 \uD544\uC694 \uC2DC \uC0AC\uC6A9\uC790\uAC00 \uB4DC\uB9B4\uB2E4\uC6B4\uD558\uB3C4\uB85D \uC124\uACC4\uD569\uB2C8\uB2E4.",
|
|
1665
|
+
dont: "\uC218\uBC31 \uAC1C\uC758 \uB178\uB4DC\uB97C \uD55C \uBC88\uC5D0 \uC804\uBD80 \uD3BC\uCCD0\uC11C \uC138\uB85C \uC2A4\uD06C\uB864\uC744 \uBB34\uD55C\uD788 \uAE38\uC5B4\uC9C0\uAC8C \uBC29\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
do: "\uD0A4\uBCF4\uB4DC \uC0AC\uC6A9\uC790\uB3C4 \uC811\uADFC\uD560 \uC218 \uC788\uB3C4\uB85D Space\uB098 Enter \uD0A4\uB85C \uD3BC\uCE68/\uC811\uAE30 \uBC0F \uC120\uD0DD\uC744 \uC9C0\uC6D0\uD569\uB2C8\uB2E4.",
|
|
1669
|
+
dont: "\uB9C8\uC6B0\uC2A4 \uB354\uBE14\uD074\uB9AD\uC5D0\uB9CC \uC758\uC874\uD558\uAC70\uB098 \uD3EC\uCEE4\uC2A4 \uC544\uC6C3\uB77C\uC778\uC744 \uC81C\uAC70(outline: none)\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4."
|
|
1670
|
+
}
|
|
1671
|
+
],
|
|
1672
|
+
relatedPatternIds: ["dashboard-overview", "filter-search"],
|
|
1673
|
+
htmlSnippet: '<div class="atom-tree" role="tree">\n <ul class="atom-tree-list">\n <li class="atom-tree-item" role="treeitem" aria-expanded="true">\n <div class="atom-tree-node is-selected">\n <button class="atom-tree-toggle is-expanded">\u25B6</button>\n <span class="atom-tree-label">src</span>\n </div>\n </li>\n </ul>\n</div>',
|
|
1674
|
+
reactSnippet: "import { Tree, TreeNode } from 'atomsystem/components/Tree';\nimport { useState } from 'react';\n\nconst treeData: TreeNode[] = [\n {\n id: 'src',\n label: 'src',\n children: [\n { id: 'components', label: 'components', children: [{ id: 'Button.tsx', label: 'Button.tsx' }] },\n { id: 'index.ts', label: 'index.ts' },\n ],\n },\n { id: 'package.json', label: 'package.json' },\n];\n\nexport function TreeDemo() {\n const [selectedId, setSelectedId] = useState('index.ts');\n return <Tree data={treeData} selectedId={selectedId} onSelect={(node) => setSelectedId(node.id)} defaultExpandedIds={['src']} />;\n}",
|
|
1675
|
+
vueSnippet: `<template>
|
|
1676
|
+
<AtomTree :data="treeData" v-model:selected="selectedId" :default-expanded="['src']" />
|
|
1631
1677
|
</template>`
|
|
1632
1678
|
}
|
|
1633
1679
|
];
|
|
@@ -8327,11 +8373,27 @@ ${fontImportCSS}/* [AtomDesignToken] Live Injected Theme Variables */
|
|
|
8327
8373
|
--atom-color-primary: ${color.primary};
|
|
8328
8374
|
--atom-color-primary-hover: ${color.primaryHover};
|
|
8329
8375
|
--atom-color-primary-subtle: ${color.primaryLight};
|
|
8376
|
+
--atom-color-bg: ${color.bgPrimary};
|
|
8377
|
+
--atom-color-surface: ${color.bgSecondary};
|
|
8378
|
+
--atom-color-text: ${color.textPrimary};
|
|
8379
|
+
--atom-color-text-secondary: ${color.textSecondary};
|
|
8380
|
+
--atom-color-border: ${color.borderSubtle};
|
|
8330
8381
|
--atom-status-success: ${color.statusSuccess};
|
|
8331
8382
|
--atom-status-danger: ${color.statusDanger};
|
|
8332
8383
|
--atom-status-warning: ${color.statusWarning};
|
|
8333
8384
|
--atom-radius: ${borderRadius};
|
|
8334
8385
|
|
|
8386
|
+
/* All Atom UI Component CSS Variable Mappings */
|
|
8387
|
+
--atom-btn-radius: ${borderRadius};
|
|
8388
|
+
--atom-input-radius: ${borderRadius};
|
|
8389
|
+
--atom-card-radius: ${borderRadius};
|
|
8390
|
+
--atom-card-bg: ${color.bgSecondary};
|
|
8391
|
+
--atom-card-border: ${color.borderSubtle};
|
|
8392
|
+
--atom-tree-bg: ${color.bgSecondary};
|
|
8393
|
+
--atom-tree-border: ${color.borderSubtle};
|
|
8394
|
+
--atom-tree-selected-bg: ${color.primaryLight};
|
|
8395
|
+
--atom-tree-selected-text: ${color.primary};
|
|
8396
|
+
|
|
8335
8397
|
/* Typography Variables */
|
|
8336
8398
|
--atom-font-h1-size: ${typography.h1.fontSize}px;
|
|
8337
8399
|
--atom-font-h1-lh: ${typography.h1.lineHeight};
|
|
@@ -8460,6 +8522,33 @@ html.dark {
|
|
|
8460
8522
|
--color-neutral-850: ${color.bgSecondary};
|
|
8461
8523
|
}
|
|
8462
8524
|
|
|
8525
|
+
/* Global Component Surface Overrides */
|
|
8526
|
+
.atom-card, .atom-modal, .atom-sheet, .atom-tree, .atom-table, .atom-input, .atom-button {
|
|
8527
|
+
transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, border-radius 0.2s ease;
|
|
8528
|
+
}
|
|
8529
|
+
|
|
8530
|
+
.atom-button-primary {
|
|
8531
|
+
background-color: ${color.primary} !important;
|
|
8532
|
+
color: #ffffff !important;
|
|
8533
|
+
border-radius: ${borderRadius} !important;
|
|
8534
|
+
}
|
|
8535
|
+
|
|
8536
|
+
.atom-button-primary:hover {
|
|
8537
|
+
background-color: ${color.primaryHover} !important;
|
|
8538
|
+
}
|
|
8539
|
+
|
|
8540
|
+
.atom-card {
|
|
8541
|
+
background-color: ${color.bgSecondary} !important;
|
|
8542
|
+
border-color: ${color.borderSubtle} !important;
|
|
8543
|
+
border-radius: ${borderRadius} !important;
|
|
8544
|
+
}
|
|
8545
|
+
|
|
8546
|
+
.atom-tree-node.is-selected {
|
|
8547
|
+
background-color: ${color.primaryLight} !important;
|
|
8548
|
+
color: ${color.primary} !important;
|
|
8549
|
+
border-radius: ${borderRadius} !important;
|
|
8550
|
+
}
|
|
8551
|
+
|
|
8463
8552
|
html.dark .bg-white:not([data-keep-white]):not([role="switch"]):not([aria-hidden="true"]) {
|
|
8464
8553
|
background-color: ${color.bgSecondary} !important;
|
|
8465
8554
|
}
|
|
@@ -8643,7 +8732,7 @@ function cn(...inputs) {
|
|
|
8643
8732
|
|
|
8644
8733
|
// src/index.ts
|
|
8645
8734
|
var ATOM_UI_CSS_PATH = "atomsystem/css/atom-ui.css";
|
|
8646
|
-
var ATOM_VERSION = "0.4.
|
|
8735
|
+
var ATOM_VERSION = "0.4.3";
|
|
8647
8736
|
var ATOM_LIB_NAME = "atomsystem";
|
|
8648
8737
|
|
|
8649
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 };
|