@mich8060/unified-design-system 0.2.20 → 0.2.22

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 (43) hide show
  1. package/dist/ai/examples/training.examples.cjs +1 -1
  2. package/dist/ai/examples/training.examples.js +1 -1
  3. package/dist/ai/examples/trees.example.cjs +1 -1
  4. package/dist/ai/examples/trees.example.js +1 -1
  5. package/dist/ai/manifest/components.manifest.cjs +1 -1
  6. package/dist/ai/manifest/components.manifest.js +1 -1
  7. package/dist/ai/manifest/composition.manifest.cjs +1 -1
  8. package/dist/ai/manifest/composition.manifest.js +1 -1
  9. package/dist/ai/manifest/patterns.manifest.cjs +1 -1
  10. package/dist/ai/manifest/patterns.manifest.js +1 -1
  11. package/dist/ai/manifest.json +0 -90
  12. package/dist/ai/prompts/figma-make.prompt.md +1 -0
  13. package/dist/ai/prompts/starter.prompt.md +1 -0
  14. package/dist/components/Breadcrumb/Breadcrumb.cjs +1 -1
  15. package/dist/components/Breadcrumb/Breadcrumb.js +1 -1
  16. package/dist/components/Flex/Flex.cjs +1 -1
  17. package/dist/components/Flex/Flex.js +1 -1
  18. package/dist/components/Menu/Menu.cjs +1 -1
  19. package/dist/components/Menu/Menu.js +1 -1
  20. package/dist/design-system/components/Flex/Flex.types.d.ts +2 -1
  21. package/dist/design-system/figma-make/index.d.ts +0 -1
  22. package/dist/design-system/generated/component-api.d.ts +12 -36
  23. package/dist/design-system/index.d.ts +0 -2
  24. package/dist/figma-make/index.cjs +1 -1
  25. package/dist/figma-make/index.js +1 -1
  26. package/dist/generated/component-api.cjs +1 -1
  27. package/dist/generated/component-api.js +1 -1
  28. package/dist/index.cjs +1 -1
  29. package/dist/index.js +1 -1
  30. package/dist/style.css +1 -1
  31. package/dist/tokens/tokens.css +1 -1
  32. package/package.json +5 -15
  33. package/dist/charts/BizChartsAdapters.cjs +0 -1
  34. package/dist/charts/BizChartsAdapters.js +0 -1
  35. package/dist/charts-bizcharts/index.cjs +0 -1
  36. package/dist/charts-bizcharts/index.js +0 -1
  37. package/dist/components/Card/Card.cjs +0 -1
  38. package/dist/components/Card/Card.js +0 -1
  39. package/dist/design-system/charts/BizChartsAdapters.d.ts +0 -40
  40. package/dist/design-system/charts/index.d.ts +0 -1
  41. package/dist/design-system/components/Card/Card.d.ts +0 -13
  42. package/dist/design-system/components/Card/Card.types.d.ts +0 -8
  43. package/dist/design-system/components/Card/index.d.ts +0 -3
@@ -1,4 +1,4 @@
1
- :root {
1
+ *,*::before,*::after{box-sizing:border-box}html,body{margin:0;padding:0}:root {
2
2
  --system-color-black: #111111;
3
3
  --system-color-white: #ffffff;
4
4
  --system-color-transparent: rgba(255, 255, 255, 0.0099999998);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mich8060/unified-design-system",
3
3
  "private": false,
4
- "version": "0.2.20",
4
+ "version": "0.2.22",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "publishConfig": {
@@ -114,12 +114,6 @@
114
114
  "require": "./dist/components/Calendar/Calendar.cjs",
115
115
  "default": "./dist/components/Calendar/Calendar.js"
116
116
  },
117
- "./Card": {
118
- "types": "./dist/design-system/components/Card/Card.d.ts",
119
- "import": "./dist/components/Card/Card.js",
120
- "require": "./dist/components/Card/Card.cjs",
121
- "default": "./dist/components/Card/Card.js"
122
- },
123
117
  "./Checkbox": {
124
118
  "types": "./dist/design-system/components/Checkbox/Checkbox.d.ts",
125
119
  "import": "./dist/components/Checkbox/Checkbox.js",
@@ -312,12 +306,6 @@
312
306
  "require": "./dist/components/Tabs/Tabs.cjs",
313
307
  "default": "./dist/components/Tabs/Tabs.js"
314
308
  },
315
- "./charts-bizcharts": {
316
- "types": "./dist/design-system/charts/index.d.ts",
317
- "import": "./dist/charts-bizcharts/index.js",
318
- "require": "./dist/charts-bizcharts/index.cjs",
319
- "default": "./dist/charts-bizcharts/index.js"
320
- },
321
309
  "./Tag": {
322
310
  "types": "./dist/design-system/components/Tag/Tag.d.ts",
323
311
  "import": "./dist/components/Tag/Tag.js",
@@ -445,7 +433,10 @@
445
433
  "README.md",
446
434
  "LICENSE"
447
435
  ],
448
- "sideEffects": false,
436
+ "sideEffects": [
437
+ "**/*.css",
438
+ "**/*.scss"
439
+ ],
449
440
  "scripts": {
450
441
  "dev": "vite --configLoader native",
451
442
  "dev:preact": "UDS_USE_PREACT_COMPAT=1 vite --configLoader native",
@@ -480,7 +471,6 @@
480
471
  "sass:watch": "sass --watch src/design-system:src/design-system"
481
472
  },
482
473
  "dependencies": {
483
- "bizcharts": "^4.1.23",
484
474
  "prismjs": "^1.30.0"
485
475
  },
486
476
  "peerDependencies": {
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),c=require("react"),r=require("bizcharts"),l={width:"100%"};function p({data:o,xField:e="x",yField:n="y",seriesField:s,height:a=320,autoFit:i=!0,className:h,style:u}){return t.jsxs(r.Chart,{data:o,autoFit:i,height:a,className:h,style:{...l,...u},children:[t.jsx(r.Tooltip,{shared:!0}),t.jsx(r.Legend,{}),t.jsx(r.Line,{position:`${e}*${n}`,color:s}),t.jsx(r.Point,{position:`${e}*${n}`,color:s})]})}const d=c.memo(p);function S({data:o,xField:e="x",yField:n="y",seriesField:s,height:a=320,autoFit:i=!0,className:h,style:u}){return t.jsxs(r.Chart,{data:o,autoFit:i,height:a,className:h,style:{...l,...u},children:[t.jsx(r.Tooltip,{shared:!0}),t.jsx(r.Legend,{}),t.jsx(r.Interval,{position:`${e}*${n}`,color:s})]})}const D=c.memo(S);function m({data:o,angleField:e="value",colorField:n="type",height:s=320,autoFit:a=!0,className:i,style:h}){return t.jsxs(r.Chart,{data:o,autoFit:a,height:s,className:i,style:{...l,...h},children:[t.jsx(r.Coordinate,{type:"theta",radius:.85}),t.jsx(r.Tooltip,{showTitle:!1}),t.jsx(r.Legend,{}),t.jsx(r.Interval,{position:e,color:n,adjust:"stack"})]})}const U=c.memo(m);function y({data:o,angleField:e="value",colorField:n="type",height:s=320,autoFit:a=!0,className:i,style:h}){return t.jsxs(r.Chart,{data:o,autoFit:a,height:s,className:i,style:{...l,...h},children:[t.jsx(r.Coordinate,{type:"theta",radius:.85,innerRadius:.62}),t.jsx(r.Tooltip,{showTitle:!1}),t.jsx(r.Legend,{}),t.jsx(r.Interval,{position:e,color:n,adjust:"stack"})]})}const $=c.memo(y);function g({data:o,xField:e="x",yField:n="y",colorField:s,sizeField:a,height:i=320,autoFit:h=!0,className:u,style:j}){const x=`${e}*${n}`;return t.jsxs(r.Chart,{data:o,autoFit:h,height:i,className:u,style:{...l,...j},children:[t.jsx(r.Tooltip,{shared:!0}),t.jsx(r.Legend,{}),t.jsx(r.Point,{position:x,color:s,size:a,shape:"circle"})]})}const C=c.memo(g);function f(o){return t.jsx(C,{...o})}function L({data:o,xField:e="x",yField:n="y",seriesField:s,height:a=320,autoFit:i=!0,className:h,style:u}){return t.jsxs(r.Chart,{data:o,autoFit:i,height:a,className:h,style:{...l,...u},children:[t.jsx(r.Coordinate,{type:"polar",radius:.8}),t.jsx(r.Tooltip,{shared:!0}),t.jsx(r.Legend,{}),t.jsx(r.Line,{position:`${e}*${n}`,color:s}),t.jsx(r.Point,{position:`${e}*${n}`,color:s})]})}const P=c.memo(L);function T({data:o,xField:e="x",yField:n="y",seriesField:s,height:a=320,autoFit:i=!0,className:h,style:u}){return t.jsxs(r.Chart,{data:o,autoFit:i,height:a,className:h,style:{...l,...u},children:[t.jsx(r.Coordinate,{type:"polar",radius:.8}),t.jsx(r.Tooltip,{shared:!0}),t.jsx(r.Legend,{}),t.jsx(r.Polygon,{position:`${e}*${n}`,color:s})]})}const b=c.memo(T);exports.UDSBarChart=D;exports.UDSBubbleChart=f;exports.UDSDoughnutChart=$;exports.UDSLineChart=d;exports.UDSPieChart=U;exports.UDSPolarAreaChart=b;exports.UDSRadarChart=P;exports.UDSScatterChart=C;
@@ -1 +0,0 @@
1
- import{jsx as t,jsxs as c}from"react/jsx-runtime";import{memo as h}from"react";import{Chart as l,Tooltip as p,Legend as C,Interval as S,Coordinate as y,Line as m,Point as D,Polygon as $}from"bizcharts";const d={width:"100%"};function x({data:r,xField:o="x",yField:n="y",seriesField:e,height:a=320,autoFit:i=!0,className:s,style:u}){return c(l,{data:r,autoFit:i,height:a,className:s,style:{...d,...u},children:[t(p,{shared:!0}),t(C,{}),t(m,{position:`${o}*${n}`,color:e}),t(D,{position:`${o}*${n}`,color:e})]})}const k=h(x);function P({data:r,xField:o="x",yField:n="y",seriesField:e,height:a=320,autoFit:i=!0,className:s,style:u}){return c(l,{data:r,autoFit:i,height:a,className:s,style:{...d,...u},children:[t(p,{shared:!0}),t(C,{}),t(S,{position:`${o}*${n}`,color:e})]})}const A=h(P);function g({data:r,angleField:o="value",colorField:n="type",height:e=320,autoFit:a=!0,className:i,style:s}){return c(l,{data:r,autoFit:a,height:e,className:i,style:{...d,...s},children:[t(y,{type:"theta",radius:.85}),t(p,{showTitle:!1}),t(C,{}),t(S,{position:o,color:n,adjust:"stack"})]})}const z=h(g);function j({data:r,angleField:o="value",colorField:n="type",height:e=320,autoFit:a=!0,className:i,style:s}){return c(l,{data:r,autoFit:a,height:e,className:i,style:{...d,...s},children:[t(y,{type:"theta",radius:.85,innerRadius:.62}),t(p,{showTitle:!1}),t(C,{}),t(S,{position:o,color:n,adjust:"stack"})]})}const I=h(j);function L({data:r,xField:o="x",yField:n="y",colorField:e,sizeField:a,height:i=320,autoFit:s=!0,className:u,style:U}){const f=`${o}*${n}`;return c(l,{data:r,autoFit:s,height:i,className:u,style:{...d,...U},children:[t(p,{shared:!0}),t(C,{}),t(D,{position:f,color:e,size:a,shape:"circle"})]})}const v=h(L);function q(r){return t(v,{...r})}function w({data:r,xField:o="x",yField:n="y",seriesField:e,height:a=320,autoFit:i=!0,className:s,style:u}){return c(l,{data:r,autoFit:i,height:a,className:s,style:{...d,...u},children:[t(y,{type:"polar",radius:.8}),t(p,{shared:!0}),t(C,{}),t(m,{position:`${o}*${n}`,color:e}),t(D,{position:`${o}*${n}`,color:e})]})}const E=h(w);function B({data:r,xField:o="x",yField:n="y",seriesField:e,height:a=320,autoFit:i=!0,className:s,style:u}){return c(l,{data:r,autoFit:i,height:a,className:s,style:{...d,...u},children:[t(y,{type:"polar",radius:.8}),t(p,{shared:!0}),t(C,{}),t($,{position:`${o}*${n}`,color:e})]})}const G=h(B);export{A as UDSBarChart,q as UDSBubbleChart,I as UDSDoughnutChart,k as UDSLineChart,z as UDSPieChart,G as UDSPolarAreaChart,E as UDSRadarChart,v as UDSScatterChart};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../charts/BizChartsAdapters.cjs");exports.UDSBarChart=r.UDSBarChart;exports.UDSBubbleChart=r.UDSBubbleChart;exports.UDSDoughnutChart=r.UDSDoughnutChart;exports.UDSLineChart=r.UDSLineChart;exports.UDSPieChart=r.UDSPieChart;exports.UDSPolarAreaChart=r.UDSPolarAreaChart;exports.UDSRadarChart=r.UDSRadarChart;exports.UDSScatterChart=r.UDSScatterChart;
@@ -1 +0,0 @@
1
- import{UDSBarChart as t,UDSBubbleChart as h,UDSDoughnutChart as D,UDSLineChart as S,UDSPieChart as C,UDSPolarAreaChart as U,UDSRadarChart as e,UDSScatterChart as o}from"../charts/BizChartsAdapters.js";export{t as UDSBarChart,h as UDSBubbleChart,D as UDSDoughnutChart,S as UDSLineChart,C as UDSPieChart,U as UDSPolarAreaChart,e as UDSRadarChart,o as UDSScatterChart};
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),t=require("react-router-dom");;/* empty css */function d({to:r,title:s,description:c,icon:i,className:a=""}){return e.jsxs(t.Link,{className:`card ${a}`.trim(),to:r,children:[e.jsx("div",{className:"card__icon",children:i}),e.jsxs("div",{className:"card__content",children:[e.jsx("h2",{className:"card__title",children:s}),e.jsx("p",{className:"card__description",children:c})]})]})}exports.default=d;
@@ -1 +0,0 @@
1
- import{jsxs as c,jsx as r}from"react/jsx-runtime";import{Link as n}from"react-router-dom";/* empty css */function o({to:a,title:i,description:e,icon:d,className:s=""}){return c(n,{className:`card ${s}`.trim(),to:a,children:[r("div",{className:"card__icon",children:d}),c("div",{className:"card__content",children:[r("h2",{className:"card__title",children:i}),r("p",{className:"card__description",children:e})]})]})}export{o as default};
@@ -1,40 +0,0 @@
1
- import { type CSSProperties } from "react";
2
- type ChartDatum = Record<string, string | number>;
3
- interface BaseChartProps {
4
- data: ChartDatum[];
5
- height?: number;
6
- autoFit?: boolean;
7
- className?: string;
8
- style?: CSSProperties;
9
- }
10
- interface CartesianChartProps extends BaseChartProps {
11
- xField?: string;
12
- yField?: string;
13
- seriesField?: string;
14
- }
15
- interface PieChartProps extends BaseChartProps {
16
- angleField?: string;
17
- colorField?: string;
18
- }
19
- interface ScatterChartProps extends BaseChartProps {
20
- xField?: string;
21
- yField?: string;
22
- colorField?: string;
23
- sizeField?: string;
24
- }
25
- declare function UDSLineChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
26
- export declare const UDSLineChart: import("react").MemoExoticComponent<typeof UDSLineChartComponent>;
27
- declare function UDSBarChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
28
- export declare const UDSBarChart: import("react").MemoExoticComponent<typeof UDSBarChartComponent>;
29
- declare function UDSPieChartComponent({ data, angleField, colorField, height, autoFit, className, style, }: PieChartProps): import("react/jsx-runtime").JSX.Element;
30
- export declare const UDSPieChart: import("react").MemoExoticComponent<typeof UDSPieChartComponent>;
31
- declare function UDSDoughnutChartComponent({ data, angleField, colorField, height, autoFit, className, style, }: PieChartProps): import("react/jsx-runtime").JSX.Element;
32
- export declare const UDSDoughnutChart: import("react").MemoExoticComponent<typeof UDSDoughnutChartComponent>;
33
- declare function UDSScatterChartComponent({ data, xField, yField, colorField, sizeField, height, autoFit, className, style, }: ScatterChartProps): import("react/jsx-runtime").JSX.Element;
34
- export declare const UDSScatterChart: import("react").MemoExoticComponent<typeof UDSScatterChartComponent>;
35
- export declare function UDSBubbleChart(props: ScatterChartProps): import("react/jsx-runtime").JSX.Element;
36
- declare function UDSRadarChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
37
- export declare const UDSRadarChart: import("react").MemoExoticComponent<typeof UDSRadarChartComponent>;
38
- declare function UDSPolarAreaChartComponent({ data, xField, yField, seriesField, height, autoFit, className, style, }: CartesianChartProps): import("react/jsx-runtime").JSX.Element;
39
- export declare const UDSPolarAreaChart: import("react").MemoExoticComponent<typeof UDSPolarAreaChartComponent>;
40
- export {};
@@ -1 +0,0 @@
1
- export { UDSBarChart, UDSBubbleChart, UDSDoughnutChart, UDSLineChart, UDSPieChart, UDSPolarAreaChart, UDSRadarChart, UDSScatterChart, } from "./BizChartsAdapters";
@@ -1,13 +0,0 @@
1
- import "./_card.scss";
2
- import type { CardProps } from "./Card.types";
3
- /**
4
- * Card component for navigation items on the overview page
5
- *
6
- * @param {Object} props
7
- * @param {string} props.to - The route path to navigate to
8
- * @param {string} props.title - The card title
9
- * @param {string} props.description - The card description
10
- * @param {React.ReactNode} props.icon - The SVG icon to display
11
- * @param {string} [props.className] - Additional CSS classes
12
- */
13
- export default function Card({ to, title, description, icon, className }: CardProps): import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- import type { HTMLAttributes, ReactNode } from "react";
2
- export interface CardProps extends HTMLAttributes<HTMLDivElement> {
3
- to?: unknown;
4
- title?: unknown;
5
- description?: unknown;
6
- icon?: string | ReactNode;
7
- className?: string;
8
- }
@@ -1,3 +0,0 @@
1
- export { default } from "./Card";
2
- export { default as Card } from "./Card";
3
- export type { CardProps } from "./Card.types";