# joojaewoo/test-publish-library architecture

> Architecture diagram of the GitHub repository joojaewoo/test-publish-library, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/joojaewoo/test-publish-library
- Repository: https://github.com/joojaewoo/test-publish-library

## Overview

ssm-design is a frontend design-system library offering button, checkbox, and radio controls through React and Vue. Consumers render the framework-specific controls; the components apply styled UI and expose interaction behavior. Vue also provides a plugin entry that registers its component exports globally. The sampled files show component and styling relationships, but not all Vue component implementations or their internals; those links rely on the SOURCE INDEX, which identifies imports and exports.

Main entry points: [`src/vue/components/index.ts`](https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/index.ts) (Component exports), [`src/react/button.js`](https://github.com/joojaewoo/test-publish-library/blob/master/src/react/button.js) (SsmButton), [`src/react/design-react.js`](https://github.com/joojaewoo/test-publish-library/blob/master/src/react/design-react.js) (React exports), [`src/vue/components/SsmButton/SsmButton.vue`](https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/SsmButton/SsmButton.vue) (SsmButton)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_react["React controls"]
  node_react_button["SsmButton<br/>[button.js]"]
  node_react_styles["Button styles<br/>[styled.js]"]
  node_react_entry["React exports<br/>[design-react.js]"]
end

subgraph group_vue["Vue controls"]
  node_vue_button["SsmButton<br/>[SsmButton.vue]"]
  node_vue_button_styles["Button styles<br/>[styled.js]"]
  node_checkbox["Checkbox control<br/>[CheckBoxButton.vue]"]
  node_checkbox_styles["Checkbox styles<br/>[styled.js]"]
  node_radio["Radio control<br/>[RadioButton.vue]"]
  node_radio_styles["Radio styles<br/>[styled.js]"]
  node_vue_exports["Component exports<br/>[index.ts]"]
  node_vue_plugin["Vue plugin<br/>[entry.esm.ts]"]
  node_vue_public_entry["Vue entry<br/>[index.ts]"]
end

node_consumer(("App consumer"))

node_consumer -->|"imports controls"| node_react_entry
node_react_entry -->|"exports"| node_react_button
node_react_button -->|"uses styles"| node_react_styles
node_consumer -->|"imports controls"| node_vue_public_entry
node_vue_public_entry -->|"re-exports"| node_vue_plugin
node_vue_plugin -->|"registers exports"| node_vue_exports
node_vue_exports -->|"exports"| node_vue_button
node_vue_exports -->|"exports"| node_checkbox
node_vue_exports -->|"exports"| node_radio
node_vue_button -->|"uses styles"| node_vue_button_styles
node_checkbox -->|"uses styles"| node_checkbox_styles
node_radio -->|"uses styles"| node_radio_styles

click node_react_button "https://github.com/joojaewoo/test-publish-library/blob/master/src/react/button.js"
click node_react_styles "https://github.com/joojaewoo/test-publish-library/blob/master/src/react/styled.js"
click node_react_entry "https://github.com/joojaewoo/test-publish-library/blob/master/src/react/design-react.js"
click node_vue_button "https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/SsmButton/SsmButton.vue"
click node_vue_button_styles "https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/SsmButton/styled.js"
click node_checkbox "https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/CheckBoxButton/CheckBoxButton.vue"
click node_checkbox_styles "https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/CheckBoxButton/styled.js"
click node_radio "https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/RadioButton/RadioButton.vue"
click node_radio_styles "https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/RadioButton/styled.js"
click node_vue_exports "https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/index.ts"
click node_vue_plugin "https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/entry.esm.ts"
click node_vue_public_entry "https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/index.ts"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_react_button,node_react_styles,node_react_entry toneBlue
class node_vue_button,node_vue_button_styles,node_checkbox,node_checkbox_styles,node_radio,node_radio_styles,node_vue_exports,node_vue_plugin,node_vue_public_entry toneAmber
class node_consumer toneIndigo
```

## Components

### React controls

- [SsmButton](https://github.com/joojaewoo/test-publish-library/blob/master/src/react/button.js): `src/react/button.js`
- [Button styles](https://github.com/joojaewoo/test-publish-library/blob/master/src/react/styled.js): `src/react/styled.js`
- [React exports](https://github.com/joojaewoo/test-publish-library/blob/master/src/react/design-react.js): `src/react/design-react.js`

### Vue controls

- [SsmButton](https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/SsmButton/SsmButton.vue): `src/vue/components/SsmButton/SsmButton.vue`
- [Button styles](https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/SsmButton/styled.js): `src/vue/components/SsmButton/styled.js`
- [Checkbox control](https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/CheckBoxButton/CheckBoxButton.vue): `src/vue/components/CheckBoxButton/CheckBoxButton.vue`
- [Checkbox styles](https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/CheckBoxButton/styled.js): `src/vue/components/CheckBoxButton/styled.js`
- [Radio control](https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/RadioButton/RadioButton.vue): `src/vue/components/RadioButton/RadioButton.vue`
- [Radio styles](https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/RadioButton/styled.js): `src/vue/components/RadioButton/styled.js`
- [Component exports](https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/components/index.ts): `src/vue/components/index.ts`
- [Vue plugin](https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/entry.esm.ts): `src/vue/entry.esm.ts`
- [Vue entry](https://github.com/joojaewoo/test-publish-library/blob/master/src/vue/index.ts): `src/vue/index.ts`

### Other components

- **App consumer**

## Connections

- App consumer → React exports: imports controls
- React exports → SsmButton: exports (evidence: `src/react/design-react.js`)
- SsmButton → Button styles: uses styles (evidence: `src/react/button.js`)
- App consumer → Vue entry: imports controls
- Vue entry → Vue plugin: re-exports (evidence: `src/vue/index.ts`)
- Vue plugin → Component exports: registers exports (evidence: `src/vue/entry.esm.ts`)
- Component exports → SsmButton: exports (evidence: `src/vue/components/index.ts`)
- Component exports → Checkbox control: exports (evidence: `src/vue/components/index.ts`)
- Component exports → Radio control: exports (evidence: `src/vue/components/index.ts`)
- SsmButton → Button styles: uses styles (evidence: `src/vue/components/SsmButton/SsmButton.vue`)
- Checkbox control → Checkbox styles: uses styles (evidence: `src/vue/components/CheckBoxButton/CheckBoxButton.vue`)
- Radio control → Radio styles: uses styles (evidence: `src/vue/components/RadioButton/RadioButton.vue`)
