@brosco/ui 0.0.56 → 0.0.58

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/dist/index.css CHANGED
@@ -1,148 +1,2 @@
1
1
  /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
- @layer properties {
3
- @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or
4
- ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
5
- *,
6
- :before,
7
- :after,
8
- ::backdrop {
9
- --tw-scale-x: 1;
10
- --tw-scale-y: 1;
11
- --tw-scale-z: 1;
12
- --tw-border-style: solid;
13
- --tw-font-weight: initial;
14
- --tw-shadow: 0 0 #0000;
15
- --tw-shadow-color: initial;
16
- --tw-shadow-alpha: 100%;
17
- --tw-inset-shadow: 0 0 #0000;
18
- --tw-inset-shadow-color: initial;
19
- --tw-inset-shadow-alpha: 100%;
20
- --tw-ring-color: initial;
21
- --tw-ring-shadow: 0 0 #0000;
22
- --tw-inset-ring-color: initial;
23
- --tw-inset-ring-shadow: 0 0 #0000;
24
- --tw-ring-inset: initial;
25
- --tw-ring-offset-width: 0px;
26
- --tw-ring-offset-color: #fff;
27
- --tw-ring-offset-shadow: 0 0 #0000;
28
- }
29
- }
30
- }
31
- @layer theme {
32
- :root {
33
- --eclipse: var(--color-zinc-900);
34
- --background: var(--color-white);
35
- --foreground: var(--eclipse);
36
- --muted: var(--color-zinc-500);
37
- --primary: var(--color-blue-500);
38
- --secondary: var(--eclipse);
39
- --success: var(--color-green-600);
40
- --danger: var(--color-red-500);
41
- }
42
- }
43
- @layer components {
44
- .button {
45
- --tw-scale-x: 95%;
46
- --tw-scale-y: 95%;
47
- --tw-scale-z: 95%;
48
- scale: var(--tw-scale-x) var(--tw-scale-y);
49
- border-style: var(--tw-border-style);
50
- --tw-font-weight: var(--font-weight-medium, 500);
51
- font-weight: var(--font-weight-medium, 500);
52
- --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0
53
- calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color, currentcolor);
54
- box-shadow:
55
- var(--tw-inset-shadow), var(--tw-inset-ring-shadow),
56
- var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
57
- border-width: 2px;
58
- }
59
- }
60
- @property --tw-scale-x {
61
- syntax: "*";
62
- inherits: false;
63
- initial-value: 1;
64
- }
65
- @property --tw-scale-y {
66
- syntax: "*";
67
- inherits: false;
68
- initial-value: 1;
69
- }
70
- @property --tw-scale-z {
71
- syntax: "*";
72
- inherits: false;
73
- initial-value: 1;
74
- }
75
- @property --tw-border-style {
76
- syntax: "*";
77
- inherits: false;
78
- initial-value: solid;
79
- }
80
- @property --tw-font-weight {
81
- syntax: "*";
82
- inherits: false;
83
- }
84
- @property --tw-shadow {
85
- syntax: "*";
86
- inherits: false;
87
- initial-value: 0 0 #0000;
88
- }
89
- @property --tw-shadow-color {
90
- syntax: "*";
91
- inherits: false;
92
- }
93
- @property --tw-shadow-alpha {
94
- syntax: "<percentage>";
95
- inherits: false;
96
- initial-value: 100%;
97
- }
98
- @property --tw-inset-shadow {
99
- syntax: "*";
100
- inherits: false;
101
- initial-value: 0 0 #0000;
102
- }
103
- @property --tw-inset-shadow-color {
104
- syntax: "*";
105
- inherits: false;
106
- }
107
- @property --tw-inset-shadow-alpha {
108
- syntax: "<percentage>";
109
- inherits: false;
110
- initial-value: 100%;
111
- }
112
- @property --tw-ring-color {
113
- syntax: "*";
114
- inherits: false;
115
- }
116
- @property --tw-ring-shadow {
117
- syntax: "*";
118
- inherits: false;
119
- initial-value: 0 0 #0000;
120
- }
121
- @property --tw-inset-ring-color {
122
- syntax: "*";
123
- inherits: false;
124
- }
125
- @property --tw-inset-ring-shadow {
126
- syntax: "*";
127
- inherits: false;
128
- initial-value: 0 0 #0000;
129
- }
130
- @property --tw-ring-inset {
131
- syntax: "*";
132
- inherits: false;
133
- }
134
- @property --tw-ring-offset-width {
135
- syntax: "<length>";
136
- inherits: false;
137
- initial-value: 0;
138
- }
139
- @property --tw-ring-offset-color {
140
- syntax: "*";
141
- inherits: false;
142
- initial-value: #fff;
143
- }
144
- @property --tw-ring-offset-shadow {
145
- syntax: "*";
146
- inherits: false;
147
- initial-value: 0 0 #0000;
148
- }
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-font-weight:initial;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-border-style:solid}}}@layer theme{:root{--eclipse:var(--color-zinc-900);--background:var(--color-white);--foreground:var(--eclipse);--muted:var(--color-zinc-500);--primary:var(--color-blue-500);--secondary:var(--eclipse);--success:var(--color-green-600);--danger:var(--color-red-500)}}@layer components{.button{--color:transparent;--bg:transparent;--bg-hover:var(--bg);--bg-active:var(--bg-hover);--fg:currentColor}.button--primary{--color:var(--primary)}.button--secondary{--color:var(--secondary)}.button--success{--color:var(--success)}.button--danger{--color:var(--danger)}.button--solid{--bg:var(--color);--bg-hover:var(--bg)}@supports (color:color-mix(in lab, red, red)){.button--solid{--bg-hover:color-mix(in oklab, var(--bg) 90%, var(--eclipse) 10%)}}.button--solid{--bg-active:var(--bg)}@supports (color:color-mix(in lab, red, red)){.button--solid{--bg-active:color-mix(in oklab, var(--bg) 80%, var(--eclipse) 20%)}}.button--solid{--fg:var(--color-white)}.button--solid.button--secondary{--bg:var(--color)}@supports (color:color-mix(in lab, red, red)){.button--solid.button--secondary{--bg:color-mix(in oklab, var(--color) 5%, transparent)}}.button--solid.button--secondary{--bg-hover:var(--bg)}@supports (color:color-mix(in lab, red, red)){.button--solid.button--secondary{--bg-hover:color-mix(in oklab, var(--bg) 95%, var(--eclipse) 5%)}}.button--solid.button--secondary{--bg-active:var(--bg)}@supports (color:color-mix(in lab, red, red)){.button--solid.button--secondary{--bg-active:color-mix(in oklab, var(--bg) 90%, var(--eclipse) 10%)}}.button--solid.button--secondary{--fg:var(--color)}.button--bordered,.button--light{--fg:var(--color);--bg-hover:var(--fg)}@supports (color:color-mix(in lab, red, red)){.button--bordered,.button--light{--bg-hover:color-mix(in oklab, var(--fg) 5%, transparent)}}.button{justify-content:center;align-items:center;gap:calc(var(--spacing,.25rem) * 2);--tw-font-weight:var(--font-weight-medium,500);font-weight:var(--font-weight-medium,500);white-space:nowrap;color:var(--fg);transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4, 0, .2, 1)));transition-duration:var(--tw-duration,var(--default-transition-duration,.15s));-webkit-user-select:none;user-select:none;display:inline-flex}.button:focus-visible{--tw-outline-style:none;outline-style:none}.button:enabled{cursor:pointer}.button:disabled{pointer-events:none;opacity:.5}.button:hover{background-color:var(--bg-hover)}.button:active{--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x) var(--tw-scale-y);background-color:var(--bg-active)}.button[data-pending=true]{pointer-events:none}.button--solid{background-color:var(--bg)}.button--solid:focus-visible:not([data-pending]){--tw-ring-color:var(--color);--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button--bordered{border-style:var(--tw-border-style);border-width:2px;border-color:var(--fg)}.button--bordered:focus-visible:not([data-pending]){--tw-ring-color:currentcolor;--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)}.button--light{text-underline-offset:6px;text-decoration-line:underline;position:relative}@media (hover:hover){.button--light:hover{text-decoration-line:none}}.button--light:focus-visible:not([data-pending]):after{top:calc(var(--spacing,.25rem) * 2);right:calc(var(--spacing,.25rem) * 3);left:calc(var(--spacing,.25rem) * 3);height:calc(var(--spacing,.25rem) * .5);content:"";background-color:currentColor;position:absolute}.spinner{animation:var(--animate-spin,spin 1s linear infinite)}}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@keyframes spin{to{transform:rotate(360deg)}}
package/dist/index.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  import "./_css/styles.css";
2
2
  export * from "./button";
3
+ export * from "./spinner";
package/dist/index.js CHANGED
@@ -86,4 +86,4 @@ var a = ({ className: e, size: r = 24 }) => /* @__PURE__ */ n("svg", {
86
86
  });
87
87
  };
88
88
  //#endregion
89
- export { s as Button };
89
+ export { s as Button, a as Spinner };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brosco/ui",
3
- "version": "0.0.56",
3
+ "version": "0.0.58",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"