daleui 0.0.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.
Files changed (58) hide show
  1. package/.github/CODEOWNERS +1 -0
  2. package/.github/FUNDING.yml +1 -0
  3. package/.github/workflows/automation.yml +13 -0
  4. package/.github/workflows/chromatic.yml +19 -0
  5. package/.github/workflows/deployment.yml +32 -0
  6. package/.github/workflows/integration.yml +15 -0
  7. package/.github/workflows/storybook-tests.yml +17 -0
  8. package/.storybook/main.ts +18 -0
  9. package/.storybook/preview.ts +29 -0
  10. package/.storybook/test-runner.ts +33 -0
  11. package/LICENSE +21 -0
  12. package/README.md +10 -0
  13. package/bun.lock +9736 -0
  14. package/bun.lockb +0 -0
  15. package/chromatic.config.json +5 -0
  16. package/eslint.config.js +28 -0
  17. package/index.html +13 -0
  18. package/package.json +63 -0
  19. package/panda.config.ts +61 -0
  20. package/postcss.config.cjs +5 -0
  21. package/public/logo.svg +9 -0
  22. package/src/App.tsx +67 -0
  23. package/src/assets/Discord.svg +1 -0
  24. package/src/assets/GitHub.svg +1 -0
  25. package/src/assets/LinkedIn.svg +1 -0
  26. package/src/assets/Medium.svg +1 -0
  27. package/src/assets/YouTube.svg +1 -0
  28. package/src/components/Button/Button.stories.tsx +115 -0
  29. package/src/components/Button/Button.test.tsx +108 -0
  30. package/src/components/Button/Button.tsx +245 -0
  31. package/src/components/Button/index.tsx +1 -0
  32. package/src/components/Heading/Heading.stories.tsx +72 -0
  33. package/src/components/Heading/Heading.test.tsx +55 -0
  34. package/src/components/Heading/Heading.tsx +73 -0
  35. package/src/components/Heading/index.tsx +1 -0
  36. package/src/components/Icon/Icon.stories.tsx +106 -0
  37. package/src/components/Icon/Icon.test.tsx +44 -0
  38. package/src/components/Icon/Icon.tsx +116 -0
  39. package/src/components/Icon/index.tsx +1 -0
  40. package/src/components/Text/Text.stories.tsx +65 -0
  41. package/src/components/Text/Text.test.tsx +54 -0
  42. package/src/components/Text/Text.tsx +93 -0
  43. package/src/components/Text/index.tsx +1 -0
  44. package/src/index.css +2 -0
  45. package/src/main.tsx +10 -0
  46. package/src/setupTests.tsx +5 -0
  47. package/src/styles/globalCss.ts +43 -0
  48. package/src/tokens/colors.mdx +100 -0
  49. package/src/tokens/colors.ts +288 -0
  50. package/src/tokens/iconography.mdx +15 -0
  51. package/src/tokens/iconography.tsx +54 -0
  52. package/src/tokens/typography.mdx +38 -0
  53. package/src/tokens/typography.ts +132 -0
  54. package/src/vite-env.d.ts +2 -0
  55. package/tsconfig.app.json +25 -0
  56. package/tsconfig.json +7 -0
  57. package/tsconfig.node.json +22 -0
  58. package/vite.config.ts +16 -0
@@ -0,0 +1 @@
1
+ * @DaleStudy/daleui
@@ -0,0 +1 @@
1
+ github: DaleStudy
@@ -0,0 +1,13 @@
1
+ name: Automation πŸ€–
2
+
3
+ on:
4
+ pull_request_target:
5
+ types: [opened, reopened]
6
+
7
+ jobs:
8
+ assign-author:
9
+ runs-on: ubuntu-latest
10
+ permissions:
11
+ pull-requests: write
12
+ steps:
13
+ - uses: toshimaru/auto-author-assign@v2.1.1
@@ -0,0 +1,19 @@
1
+ name: "Chromatic 🎨"
2
+
3
+ on: push
4
+
5
+ jobs:
6
+ chromatic:
7
+ environment:
8
+ name: chromatic
9
+ url: https://${{ github.ref_name }}--675790d317ba346348aa3490.chromatic.com
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ with:
14
+ fetch-depth: 0
15
+ - uses: oven-sh/setup-bun@v2
16
+ - run: bun install
17
+ - uses: chromaui/action@latest
18
+ with:
19
+ projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
@@ -0,0 +1,32 @@
1
+ name: Deployment 🚒
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ workflow_dispatch:
7
+
8
+ permissions:
9
+ pages: write
10
+ id-token: write
11
+
12
+ concurrency:
13
+ group: ${{ github.workflow }}-${{ github.ref }}
14
+ cancel-in-progress: true
15
+
16
+ jobs:
17
+ deploy:
18
+ environment:
19
+ name: github-pages
20
+ url: ${{ steps.deployment.outputs.page_url }}
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ - uses: oven-sh/setup-bun@v2
25
+ - run: bun install
26
+ - run: bun run build
27
+ - uses: actions/configure-pages@v4
28
+ - uses: actions/upload-pages-artifact@v3
29
+ with:
30
+ path: "./dist"
31
+ - uses: actions/deploy-pages@v4
32
+ id: deployment
@@ -0,0 +1,15 @@
1
+ name: Integration πŸ”€
2
+
3
+ on:
4
+ pull_request:
5
+
6
+ jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ steps:
10
+ - uses: actions/checkout@v4
11
+ - uses: oven-sh/setup-bun@v2
12
+ - run: bun install
13
+ - run: bun run lint
14
+ - run: bun run test run
15
+ - run: bun run build
@@ -0,0 +1,17 @@
1
+ name: Storybook Tests
2
+
3
+ on: deployment_status
4
+
5
+ jobs:
6
+ test-storybook:
7
+ runs-on: ubuntu-latest
8
+ timeout-minutes: 60
9
+ if: github.event.deployment_status.environment == 'chromatic' && github.event.deployment_status.state == 'success'
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: oven-sh/setup-bun@v2
13
+ - run: bun install
14
+ - run: bunx playwright install --with-deps
15
+ - run: bun run test-storybook
16
+ env:
17
+ TARGET_URL: "${{ github.event.deployment_status.environment_url }}"
@@ -0,0 +1,18 @@
1
+ import type { StorybookConfig } from "@storybook/react-vite";
2
+
3
+ const config: StorybookConfig = {
4
+ stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
5
+ addons: [
6
+ "@storybook/addon-links",
7
+ "@storybook/addon-essentials",
8
+ "@chromatic-com/storybook",
9
+ "@storybook/addon-interactions",
10
+ "@storybook/addon-a11y",
11
+ "@storybook/addon-themes",
12
+ ],
13
+ framework: {
14
+ name: "@storybook/react-vite",
15
+ options: {},
16
+ },
17
+ };
18
+ export default config;
@@ -0,0 +1,29 @@
1
+ import "../src/index.css";
2
+ import { withThemeByClassName } from "@storybook/addon-themes";
3
+ import type { Preview, ReactRenderer } from "@storybook/react";
4
+
5
+ const preview: Preview = {
6
+ parameters: {
7
+ controls: {
8
+ matchers: {
9
+ color: /(background|color)$/i,
10
+ date: /Date$/i,
11
+ },
12
+ },
13
+ docs: {
14
+ toc: true,
15
+ },
16
+ },
17
+ decorators: [
18
+ withThemeByClassName<ReactRenderer>({
19
+ themes: {
20
+ light: "",
21
+ dark: "dark",
22
+ },
23
+ defaultTheme: "light",
24
+ }),
25
+ ],
26
+ tags: ["autodocs"],
27
+ };
28
+
29
+ export default preview;
@@ -0,0 +1,33 @@
1
+ import type { TestRunnerConfig } from "@storybook/test-runner";
2
+ import { getStoryContext } from "@storybook/test-runner";
3
+
4
+ import { injectAxe, checkA11y, configureAxe } from "axe-playwright";
5
+
6
+ /*
7
+ * See https://storybook.js.org/docs/writing-tests/test-runner#test-hook-api
8
+ * to learn more about the test-runner hooks API.
9
+ */
10
+ const config: TestRunnerConfig = {
11
+ async preVisit(page) {
12
+ await injectAxe(page);
13
+ },
14
+ async postVisit(page, context) {
15
+ // Get the entire context of a story, including parameters, args, argTypes, etc.
16
+ const storyContext = await getStoryContext(page, context);
17
+
18
+ // Apply story-level a11y rules
19
+ await configureAxe(page, {
20
+ rules: storyContext.parameters?.a11y?.config?.rules,
21
+ });
22
+
23
+ const element = storyContext.parameters?.a11y?.element ?? "#storybook-root";
24
+ await checkA11y(page, element, {
25
+ detailedReport: true,
26
+ detailedReportOptions: {
27
+ html: true,
28
+ },
29
+ });
30
+ },
31
+ };
32
+
33
+ export default config;
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 DaleStudy
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,10 @@
1
+ [![NPM Version](https://img.shields.io/npm/v/daleui)](https://www.npmjs.com/package/daleui)
2
+ [![Chromatic 🎨](https://github.com/DaleStudy/daleui/actions/workflows/chromatic.yml/badge.svg)](https://github.com/DaleStudy/daleui/actions/workflows/chromatic.yml)
3
+ [![Integration πŸ”€](https://github.com/DaleStudy/daleui/actions/workflows/integration.yml/badge.svg)](https://github.com/DaleStudy/daleui/actions/workflows/integration.yml)
4
+
5
+ # λ‹¬λ ˆ UI
6
+
7
+ 🎨 λ‹¬λ ˆ μŠ€ν„°λ””μ˜ λ””μžμΈ μ‹œμŠ€ν…œ
8
+
9
+ - [μŠ€ν† λ¦¬λΆ](https://main--675790d317ba346348aa3490.chromatic.com)
10
+ - [μœ„ν‚€](https://github.com/DaleStudy/daleui/wiki)