@release-test/ui 0.1.0 → 0.2.0-canary.6.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.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Kevin Østerkilde
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.
@@ -23,7 +23,8 @@ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
23
23
  const variantClassNames = {
24
24
  primary: "bg-primary text-primary-foreground hover:bg-primary-hover",
25
25
  secondary: "border border-surface-border bg-surface text-gray-900 hover:bg-gray-50",
26
- danger: "bg-danger text-danger-foreground hover:bg-danger-hover"
26
+ danger: "bg-danger text-danger-foreground hover:bg-danger-hover",
27
+ ghost: "bg-transparent text-gray-900 hover:bg-gray-100"
27
28
  };
28
29
  const Button = React__namespace.forwardRef(function Button2(props, ref) {
29
30
  const { variant = "secondary", type = "button", className, ...otherProps } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.cjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nexport type ButtonVariant = 'primary' | 'secondary' | 'danger';\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n /** Visual style of the button */\n variant?: ButtonVariant;\n};\n\nconst variantClassNames: Record<ButtonVariant, string> = {\n primary: 'bg-primary text-primary-foreground hover:bg-primary-hover',\n secondary: 'border border-surface-border bg-surface text-gray-900 hover:bg-gray-50',\n danger: 'bg-danger text-danger-foreground hover:bg-danger-hover',\n};\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function Button(props, ref) {\n const { variant = 'secondary', type = 'button', className, ...otherProps } = props;\n\n return (\n <button\n {...otherProps}\n className={cn(\n 'inline-flex h-8 items-center justify-center rounded px-3 text-sm font-medium disabled:cursor-not-allowed disabled:opacity-50',\n variantClassNames[variant],\n className\n )}\n data-taco=\"button\"\n data-variant={variant}\n ref={ref}\n type={type}\n />\n );\n});\n"],"names":["React","Button","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAUA,MAAM,oBAAmD;AAAA,EACrD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,QAAQ;AACZ;AAEO,MAAM,SAASA,iBAAM,WAA2C,SAASC,QAAO,OAAO,KAAK;AAC/F,QAAM,EAAE,UAAU,aAAa,OAAO,UAAU,WAAW,GAAG,eAAe;AAE7E,SACIC,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,WAAW;AAAA,QACP;AAAA,QACA,kBAAkB,OAAO;AAAA,QACzB;AAAA,MAAA;AAAA,MAEJ,aAAU;AAAA,MACV,gBAAc;AAAA,MACd;AAAA,MACA;AAAA,IAAA;AAAA,EAAA;AAGZ,CAAC;;"}
1
+ {"version":3,"file":"Button.cjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nexport type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost';\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n /** Visual style of the button */\n variant?: ButtonVariant;\n};\n\nconst variantClassNames: Record<ButtonVariant, string> = {\n primary: 'bg-primary text-primary-foreground hover:bg-primary-hover',\n secondary: 'border border-surface-border bg-surface text-gray-900 hover:bg-gray-50',\n danger: 'bg-danger text-danger-foreground hover:bg-danger-hover',\n ghost: 'bg-transparent text-gray-900 hover:bg-gray-100',\n};\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function Button(props, ref) {\n const { variant = 'secondary', type = 'button', className, ...otherProps } = props;\n\n return (\n <button\n {...otherProps}\n className={cn(\n 'inline-flex h-8 items-center justify-center rounded px-3 text-sm font-medium disabled:cursor-not-allowed disabled:opacity-50',\n variantClassNames[variant],\n className\n )}\n data-taco=\"button\"\n data-variant={variant}\n ref={ref}\n type={type}\n />\n );\n});\n"],"names":["React","Button","jsx"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAUA,MAAM,oBAAmD;AAAA,EACrD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,OAAO;AACX;AAEO,MAAM,SAASA,iBAAM,WAA2C,SAASC,QAAO,OAAO,KAAK;AAC/F,QAAM,EAAE,UAAU,aAAa,OAAO,UAAU,WAAW,GAAG,eAAe;AAE7E,SACIC,2BAAAA;AAAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,WAAW;AAAA,QACP;AAAA,QACA,kBAAkB,OAAO;AAAA,QACzB;AAAA,MAAA;AAAA,MAEJ,aAAU;AAAA,MACV,gBAAc;AAAA,MACd;AAAA,MACA;AAAA,IAAA;AAAA,EAAA;AAGZ,CAAC;;"}
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- export type ButtonVariant = 'primary' | 'secondary' | 'danger';
2
+ export type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost';
3
3
  export type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {
4
4
  /** Visual style of the button */
5
5
  variant?: ButtonVariant;
@@ -4,7 +4,8 @@ import * as React from "react";
4
4
  const variantClassNames = {
5
5
  primary: "bg-primary text-primary-foreground hover:bg-primary-hover",
6
6
  secondary: "border border-surface-border bg-surface text-gray-900 hover:bg-gray-50",
7
- danger: "bg-danger text-danger-foreground hover:bg-danger-hover"
7
+ danger: "bg-danger text-danger-foreground hover:bg-danger-hover",
8
+ ghost: "bg-transparent text-gray-900 hover:bg-gray-100"
8
9
  };
9
10
  const Button = React.forwardRef(function Button2(props, ref) {
10
11
  const { variant = "secondary", type = "button", className, ...otherProps } = props;
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nexport type ButtonVariant = 'primary' | 'secondary' | 'danger';\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n /** Visual style of the button */\n variant?: ButtonVariant;\n};\n\nconst variantClassNames: Record<ButtonVariant, string> = {\n primary: 'bg-primary text-primary-foreground hover:bg-primary-hover',\n secondary: 'border border-surface-border bg-surface text-gray-900 hover:bg-gray-50',\n danger: 'bg-danger text-danger-foreground hover:bg-danger-hover',\n};\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function Button(props, ref) {\n const { variant = 'secondary', type = 'button', className, ...otherProps } = props;\n\n return (\n <button\n {...otherProps}\n className={cn(\n 'inline-flex h-8 items-center justify-center rounded px-3 text-sm font-medium disabled:cursor-not-allowed disabled:opacity-50',\n variantClassNames[variant],\n className\n )}\n data-taco=\"button\"\n data-variant={variant}\n ref={ref}\n type={type}\n />\n );\n});\n"],"names":["Button"],"mappings":";;;AAUA,MAAM,oBAAmD;AAAA,EACrD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,QAAQ;AACZ;AAEO,MAAM,SAAS,MAAM,WAA2C,SAASA,QAAO,OAAO,KAAK;AAC/F,QAAM,EAAE,UAAU,aAAa,OAAO,UAAU,WAAW,GAAG,eAAe;AAE7E,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,WAAW;AAAA,QACP;AAAA,QACA,kBAAkB,OAAO;AAAA,QACzB;AAAA,MAAA;AAAA,MAEJ,aAAU;AAAA,MACV,gBAAc;AAAA,MACd;AAAA,MACA;AAAA,IAAA;AAAA,EAAA;AAGZ,CAAC;"}
1
+ {"version":3,"file":"Button.js","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import cn from 'clsx';\nimport * as React from 'react';\n\nexport type ButtonVariant = 'primary' | 'secondary' | 'danger' | 'ghost';\n\nexport type ButtonProps = React.ButtonHTMLAttributes<HTMLButtonElement> & {\n /** Visual style of the button */\n variant?: ButtonVariant;\n};\n\nconst variantClassNames: Record<ButtonVariant, string> = {\n primary: 'bg-primary text-primary-foreground hover:bg-primary-hover',\n secondary: 'border border-surface-border bg-surface text-gray-900 hover:bg-gray-50',\n danger: 'bg-danger text-danger-foreground hover:bg-danger-hover',\n ghost: 'bg-transparent text-gray-900 hover:bg-gray-100',\n};\n\nexport const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(function Button(props, ref) {\n const { variant = 'secondary', type = 'button', className, ...otherProps } = props;\n\n return (\n <button\n {...otherProps}\n className={cn(\n 'inline-flex h-8 items-center justify-center rounded px-3 text-sm font-medium disabled:cursor-not-allowed disabled:opacity-50',\n variantClassNames[variant],\n className\n )}\n data-taco=\"button\"\n data-variant={variant}\n ref={ref}\n type={type}\n />\n );\n});\n"],"names":["Button"],"mappings":";;;AAUA,MAAM,oBAAmD;AAAA,EACrD,SAAS;AAAA,EACT,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,OAAO;AACX;AAEO,MAAM,SAAS,MAAM,WAA2C,SAASA,QAAO,OAAO,KAAK;AAC/F,QAAM,EAAE,UAAU,aAAa,OAAO,UAAU,WAAW,GAAG,eAAe;AAE7E,SACI;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAG;AAAA,MACJ,WAAW;AAAA,QACP;AAAA,QACA,kBAAkB,OAAO;AAAA,QACzB;AAAA,MAAA;AAAA,MAEJ,aAAU;AAAA,MACV,gBAAc;AAAA,MACd;AAAA,MACA;AAAA,IAAA;AAAA,EAAA;AAGZ,CAAC;"}
package/dist/ui.css CHANGED
@@ -581,6 +581,9 @@ video {
581
581
  --tw-bg-opacity: 1;
582
582
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
583
583
  }
584
+ .bg-transparent {
585
+ background-color: transparent;
586
+ }
584
587
  .p-4 {
585
588
  padding: 1rem;
586
589
  }
@@ -626,6 +629,10 @@ video {
626
629
  --tw-bg-opacity: 1;
627
630
  background-color: rgb(153 27 27 / var(--tw-bg-opacity, 1));
628
631
  }
632
+ .hover\:bg-gray-100:hover {
633
+ --tw-bg-opacity: 1;
634
+ background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
635
+ }
629
636
  .hover\:bg-gray-50:hover {
630
637
  --tw-bg-opacity: 1;
631
638
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@release-test/ui",
3
- "version": "0.1.0",
3
+ "version": "0.2.0-canary.6.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -50,5 +50,5 @@
50
50
  "publishConfig": {
51
51
  "access": "public"
52
52
  },
53
- "gitHead": "a797494c455ff0ba44f4c4039def6c6225dc4745"
53
+ "gitHead": "5c8882182348bd50c7f91885272f9ec2ab8e87a5"
54
54
  }