@canonical/react-ds-app-anbox 0.27.0 → 0.28.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.
|
@@ -4,7 +4,8 @@ import "./styles.css";
|
|
|
4
4
|
const Button = ({ id, className, children, style, appearance, ...props }) => {
|
|
5
5
|
return (_jsx("button", { id: id, className: ["ds", "button", appearance, className]
|
|
6
6
|
.filter(Boolean)
|
|
7
|
-
.join(" "), style: style, "aria-label": props["aria-label"] ||
|
|
7
|
+
.join(" "), style: style, "aria-label": props["aria-label"] ||
|
|
8
|
+
(typeof children === "string" ? children : undefined), ...props, children: children }));
|
|
8
9
|
};
|
|
9
10
|
export default Button;
|
|
10
11
|
//# sourceMappingURL=Button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/lib/Button/Button.tsx"],"names":[],"mappings":";AACA,OAAO,cAAc,CAAC;AAEtB,gEAAgE;AAChE,MAAM,MAAM,GAAG,CAAC,EACd,EAAE,EACF,SAAS,EACT,QAAQ,EACR,KAAK,EACL,UAAU,EACV,GAAG,KAAK,EACF,EAAsB,EAAE;IAC9B,OAAO,CACL,iBACE,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC;aAC/C,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,EACZ,KAAK,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"Button.js","sourceRoot":"","sources":["../../../../src/lib/Button/Button.tsx"],"names":[],"mappings":";AACA,OAAO,cAAc,CAAC;AAEtB,gEAAgE;AAChE,MAAM,MAAM,GAAG,CAAC,EACd,EAAE,EACF,SAAS,EACT,QAAQ,EACR,KAAK,EACL,UAAU,EACV,GAAG,KAAK,EACF,EAAsB,EAAE;IAC9B,OAAO,CACL,iBACE,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,CAAC;aAC/C,MAAM,CAAC,OAAO,CAAC;aACf,IAAI,CAAC,GAAG,CAAC,EACZ,KAAK,EAAE,KAAK,gBAKV,KAAK,CAAC,YAAY,CAAC;YACnB,CAAC,OAAO,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,KAEnD,KAAK,YAER,QAAQ,GACF,CACV,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/lib/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,gEAAgE;AAChE,QAAA,MAAM,MAAM,GAAI,0DAOb,KAAK,KAAG,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/lib/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,gEAAgE;AAChE,QAAA,MAAM,MAAM,GAAI,0DAOb,KAAK,KAAG,KAAK,CAAC,YAoBhB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -5,9 +5,9 @@ export interface BaseProps {
|
|
|
5
5
|
className?: string;
|
|
6
6
|
/**
|
|
7
7
|
* Button contents.
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
* `aria-label`
|
|
8
|
+
* String children are also applied as the button's `aria-label`. For
|
|
9
|
+
* non-string children the accessible name comes from the rendered text
|
|
10
|
+
* content; pass an explicit `aria-label` for icon-only buttons.
|
|
11
11
|
* */
|
|
12
12
|
children: ReactNode;
|
|
13
13
|
/** The visual style of the button */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@canonical/react-ds-app-anbox",
|
|
3
3
|
"description": "Anbox-specific components for the Pragma design system",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.28.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
7
7
|
"types": "dist/types/index.d.ts",
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"url": "https://github.com/canonical/pragma/issues"
|
|
22
22
|
},
|
|
23
23
|
"homepage": "https://github.com/canonical/pragma#readme",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
24
27
|
"scripts": {
|
|
25
28
|
"build": "bun run build:package",
|
|
26
29
|
"build:all": "bun run build:package && bun run build:storybook",
|
|
@@ -40,19 +43,19 @@
|
|
|
40
43
|
"test:vitest:watch": "vitest"
|
|
41
44
|
},
|
|
42
45
|
"dependencies": {
|
|
43
|
-
"@canonical/react-ds-global": "^0.
|
|
44
|
-
"@canonical/storybook-config": "^0.
|
|
45
|
-
"@canonical/styles": "^0.
|
|
46
|
+
"@canonical/react-ds-global": "^0.28.0",
|
|
47
|
+
"@canonical/storybook-config": "^0.28.0",
|
|
48
|
+
"@canonical/styles": "^0.28.0",
|
|
46
49
|
"react": "^19.2.4",
|
|
47
50
|
"react-dom": "^19.2.4"
|
|
48
51
|
},
|
|
49
52
|
"devDependencies": {
|
|
50
53
|
"@biomejs/biome": "2.4.9",
|
|
51
|
-
"@canonical/biome-config": "^0.
|
|
54
|
+
"@canonical/biome-config": "^0.28.0",
|
|
52
55
|
"@canonical/design-tokens": "^0.6.0",
|
|
53
|
-
"@canonical/storybook-helpers": "^0.
|
|
54
|
-
"@canonical/typescript-config-react": "^0.
|
|
55
|
-
"@canonical/webarchitect": "^0.
|
|
56
|
+
"@canonical/storybook-helpers": "^0.28.0",
|
|
57
|
+
"@canonical/typescript-config-react": "^0.28.0",
|
|
58
|
+
"@canonical/webarchitect": "^0.28.0",
|
|
56
59
|
"@chromatic-com/storybook": "^5.0.1",
|
|
57
60
|
"@storybook/addon-docs": "^10.3.1",
|
|
58
61
|
"@storybook/react-vite": "^10.3.1",
|
|
@@ -70,5 +73,5 @@
|
|
|
70
73
|
"vite": "^8.0.1",
|
|
71
74
|
"vitest": "^4.0.18"
|
|
72
75
|
},
|
|
73
|
-
"gitHead": "
|
|
76
|
+
"gitHead": "8297d72122bcba903f7e8833cb23ccbaa164ed56"
|
|
74
77
|
}
|