@takecasper/acuity-design-system 1.6.0 → 1.6.1
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.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.es.js +32 -32
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ClassProp } from 'class-variance-authority/types';
|
|
2
2
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
3
3
|
import { default as React_2 } from 'react';
|
|
4
|
-
import { ReactNode } from 'react';
|
|
5
4
|
import { VariantProps } from 'class-variance-authority';
|
|
6
5
|
|
|
7
6
|
export declare const Alert: ({ variant, isDismissible, showIcon, titleSize, title, description, content, closeAriaLabel, id, handleClose }: AlertProps) => JSX_2.Element;
|
|
@@ -60,7 +59,7 @@ declare const headingVariants: (props?: ({
|
|
|
60
59
|
size?: "small" | "medium" | "large" | "extra-large" | null | undefined;
|
|
61
60
|
} & ClassProp) | undefined) => string;
|
|
62
61
|
|
|
63
|
-
export declare const Icon: ({ size, name, hasIndicator, className, altText }: IconProps) =>
|
|
62
|
+
export declare const Icon: ({ size, name, hasIndicator, className, altText }: IconProps) => JSX_2.Element;
|
|
64
63
|
|
|
65
64
|
declare type IconNames = 'settings' | 'questionCircle' | 'notifications' | 'flag' | 'edit' | 'delete' | 'resourceCenter' | 'search' | 'error' | 'warning' | 'dropdown' | 'calendar' | 'bookmark' | 'infoCircle' | 'menu' | 'add' | 'exclude' | 'email' | 'close' | 'checkCircle' | 'linkNewTab';
|
|
66
65
|
|
|
@@ -69,9 +68,9 @@ declare type IconNamesWithIndicator = 'notifications' | 'resourceCenter' | 'book
|
|
|
69
68
|
declare interface IconProps extends React.SVGAttributes<HTMLOrSVGImageElement> {
|
|
70
69
|
size: 'small' | 'medium';
|
|
71
70
|
name: IconNames | IconNamesWithIndicator;
|
|
72
|
-
hasIndicator
|
|
73
|
-
className
|
|
74
|
-
altText
|
|
71
|
+
hasIndicator?: boolean;
|
|
72
|
+
className?: string;
|
|
73
|
+
altText?: string;
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
export declare const Radio: ({ label, name, id, disabled, handleChange, ...props }: RadioProps) => JSX_2.Element;
|
package/dist/index.es.js
CHANGED
|
@@ -130,14 +130,14 @@ function Xr() {
|
|
|
130
130
|
}
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
var T = Object.assign, N = 0, z, le, K,
|
|
133
|
+
var T = Object.assign, N = 0, z, le, K, F, ce, H, Z;
|
|
134
134
|
function Ne() {
|
|
135
135
|
}
|
|
136
136
|
Ne.__reactDisabledLog = !0;
|
|
137
137
|
function Mr() {
|
|
138
138
|
{
|
|
139
139
|
if (N === 0) {
|
|
140
|
-
z = console.log, le = console.info, K = console.warn,
|
|
140
|
+
z = console.log, le = console.info, K = console.warn, F = console.error, ce = console.group, H = console.groupCollapsed, Z = console.groupEnd;
|
|
141
141
|
var t = {
|
|
142
142
|
configurable: !0,
|
|
143
143
|
enumerable: !0,
|
|
@@ -176,13 +176,13 @@ function Xr() {
|
|
|
176
176
|
value: K
|
|
177
177
|
}),
|
|
178
178
|
error: T({}, t, {
|
|
179
|
-
value:
|
|
179
|
+
value: F
|
|
180
180
|
}),
|
|
181
181
|
group: T({}, t, {
|
|
182
182
|
value: ce
|
|
183
183
|
}),
|
|
184
184
|
groupCollapsed: T({}, t, {
|
|
185
|
-
value:
|
|
185
|
+
value: H
|
|
186
186
|
}),
|
|
187
187
|
groupEnd: T({}, t, {
|
|
188
188
|
value: Z
|
|
@@ -211,7 +211,7 @@ function Xr() {
|
|
|
211
211
|
var Rr = typeof WeakMap == "function" ? WeakMap : Map;
|
|
212
212
|
we = new Rr();
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function Fe(t, l) {
|
|
215
215
|
if (!t || _e)
|
|
216
216
|
return "";
|
|
217
217
|
{
|
|
@@ -283,7 +283,7 @@ function Xr() {
|
|
|
283
283
|
return typeof t == "function" && we.set(t, er), er;
|
|
284
284
|
}
|
|
285
285
|
function Wr(t, l, d) {
|
|
286
|
-
return
|
|
286
|
+
return Fe(t, !1);
|
|
287
287
|
}
|
|
288
288
|
function _r(t) {
|
|
289
289
|
var l = t.prototype;
|
|
@@ -293,7 +293,7 @@ function Xr() {
|
|
|
293
293
|
if (t == null)
|
|
294
294
|
return "";
|
|
295
295
|
if (typeof t == "function")
|
|
296
|
-
return
|
|
296
|
+
return Fe(t, _r(t));
|
|
297
297
|
if (typeof t == "string")
|
|
298
298
|
return ke(t);
|
|
299
299
|
switch (t) {
|
|
@@ -318,7 +318,7 @@ function Xr() {
|
|
|
318
318
|
}
|
|
319
319
|
return "";
|
|
320
320
|
}
|
|
321
|
-
var ye = Object.prototype.hasOwnProperty,
|
|
321
|
+
var ye = Object.prototype.hasOwnProperty, He = {}, De = S.ReactDebugCurrentFrame;
|
|
322
322
|
function Le(t) {
|
|
323
323
|
if (t) {
|
|
324
324
|
var l = t._owner, d = je(t.type, t._source, l ? l.type : null);
|
|
@@ -341,7 +341,7 @@ function Xr() {
|
|
|
341
341
|
} catch (E) {
|
|
342
342
|
b = E;
|
|
343
343
|
}
|
|
344
|
-
b && !(b instanceof Error) && (Le(v), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", d, x, typeof b), Le(null)), b instanceof Error && !(b.message in
|
|
344
|
+
b && !(b instanceof Error) && (Le(v), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", d, x, typeof b), Le(null)), b instanceof Error && !(b.message in He) && (He[b.message] = !0, Le(v), y("Failed %s type: %s", d, b.message), Le(null));
|
|
345
345
|
}
|
|
346
346
|
}
|
|
347
347
|
}
|
|
@@ -420,7 +420,7 @@ function Xr() {
|
|
|
420
420
|
});
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
|
-
var
|
|
423
|
+
var Fr = function(t, l, d, p, v, w, x) {
|
|
424
424
|
var b = {
|
|
425
425
|
// This tag allows us to uniquely identify this as a React Element
|
|
426
426
|
$$typeof: a,
|
|
@@ -449,7 +449,7 @@ function Xr() {
|
|
|
449
449
|
value: v
|
|
450
450
|
}), Object.freeze && (Object.freeze(b.props), Object.freeze(b)), b;
|
|
451
451
|
};
|
|
452
|
-
function
|
|
452
|
+
function Hr(t, l, d, p, v) {
|
|
453
453
|
{
|
|
454
454
|
var w, x = {}, b = null, V = null;
|
|
455
455
|
d !== void 0 && (ze(d), b = "" + d), Or(l) && (ze(l.key), b = "" + l.key), Pr(l) && (V = l.ref, Ir(l, v));
|
|
@@ -464,7 +464,7 @@ function Xr() {
|
|
|
464
464
|
var W = typeof t == "function" ? t.displayName || t.name || "Unknown" : t;
|
|
465
465
|
b && Br(x, W), V && Nr(x, W);
|
|
466
466
|
}
|
|
467
|
-
return
|
|
467
|
+
return Fr(t, b, V, v, p, de.current, x);
|
|
468
468
|
}
|
|
469
469
|
}
|
|
470
470
|
var $e = S.ReactCurrentOwner, Ye = S.ReactDebugCurrentFrame;
|
|
@@ -596,7 +596,7 @@ Check the top-level render call using <` + d + ">.");
|
|
|
596
596
|
var E;
|
|
597
597
|
t === null ? E = "null" : Se(t) ? E = "array" : t !== void 0 && t.$$typeof === a ? (E = "<" + ($(t.type) || "Unknown") + " />", b = " Did you accidentally export a JSX literal instead of a component?") : E = typeof t, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", E, b);
|
|
598
598
|
}
|
|
599
|
-
var W =
|
|
599
|
+
var W = Hr(t, l, d, v, w);
|
|
600
600
|
if (W == null)
|
|
601
601
|
return W;
|
|
602
602
|
if (x) {
|
|
@@ -2040,7 +2040,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
|
|
|
2040
2040
|
]
|
|
2041
2041
|
}
|
|
2042
2042
|
);
|
|
2043
|
-
}, Nt = Bt,
|
|
2043
|
+
}, Nt = Bt, Ft = ({
|
|
2044
2044
|
width: e = "24",
|
|
2045
2045
|
height: a = "24",
|
|
2046
2046
|
className: i = "",
|
|
@@ -2119,7 +2119,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
|
|
|
2119
2119
|
]
|
|
2120
2120
|
}
|
|
2121
2121
|
);
|
|
2122
|
-
},
|
|
2122
|
+
}, Ht = Ft, Dt = ({
|
|
2123
2123
|
size: e = "small",
|
|
2124
2124
|
name: a,
|
|
2125
2125
|
hasIndicator: i = !1,
|
|
@@ -2167,7 +2167,7 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
|
|
|
2167
2167
|
}
|
|
2168
2168
|
),
|
|
2169
2169
|
resourceCenter: /* @__PURE__ */ o.jsx(
|
|
2170
|
-
|
|
2170
|
+
Ht,
|
|
2171
2171
|
{
|
|
2172
2172
|
...n[e],
|
|
2173
2173
|
className: r,
|
|
@@ -2193,8 +2193,8 @@ const or = (e) => typeof e == "boolean" ? "".concat(e) : e === 0 ? "0" : e, nr =
|
|
|
2193
2193
|
close: c.close,
|
|
2194
2194
|
checkCircle: c.checkCircle,
|
|
2195
2195
|
linkNewTab: c.linkNewTab
|
|
2196
|
-
};
|
|
2197
|
-
return
|
|
2196
|
+
}, h = i ? u[a] : c[a];
|
|
2197
|
+
return /* @__PURE__ */ o.jsx(o.Fragment, { children: h });
|
|
2198
2198
|
}, ge = Dt;
|
|
2199
2199
|
function mr(e) {
|
|
2200
2200
|
var a, i, r = "";
|
|
@@ -2520,7 +2520,7 @@ function v1(e) {
|
|
|
2520
2520
|
return d1.test(e);
|
|
2521
2521
|
}
|
|
2522
2522
|
function k1() {
|
|
2523
|
-
const e = L("colors"), a = L("spacing"), i = L("blur"), r = L("brightness"), s = L("borderColor"), n = L("borderRadius"), c = L("borderSpacing"), u = L("borderWidth"), h = L("contrast"), g = L("grayscale"), f = L("hueRotate"), m = L("invert"), j = L("gap"), _ = L("gradientColorStops"), P = L("gradientColorStopPositions"), M = L("inset"), R = L("margin"), S = L("opacity"), y = L("padding"), Ce = L("saturate"), se = L("scale"), be = L("sepia"), xe = L("skew"), me = L("space"), ve = L("translate"), J = () => ["auto", "contain", "none"], ie = () => ["auto", "hidden", "clip", "visible", "scroll"], ae = () => ["auto", C, a], k = () => [C, a], $ = () => ["", B, D], T = () => ["auto", U, C], N = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], z = () => ["solid", "dashed", "dotted", "double", "none"], le = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"],
|
|
2523
|
+
const e = L("colors"), a = L("spacing"), i = L("blur"), r = L("brightness"), s = L("borderColor"), n = L("borderRadius"), c = L("borderSpacing"), u = L("borderWidth"), h = L("contrast"), g = L("grayscale"), f = L("hueRotate"), m = L("invert"), j = L("gap"), _ = L("gradientColorStops"), P = L("gradientColorStopPositions"), M = L("inset"), R = L("margin"), S = L("opacity"), y = L("padding"), Ce = L("saturate"), se = L("scale"), be = L("sepia"), xe = L("skew"), me = L("space"), ve = L("translate"), J = () => ["auto", "contain", "none"], ie = () => ["auto", "hidden", "clip", "visible", "scroll"], ae = () => ["auto", C, a], k = () => [C, a], $ = () => ["", B, D], T = () => ["auto", U, C], N = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], z = () => ["solid", "dashed", "dotted", "double", "none"], le = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity", "plus-lighter"], K = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], F = () => ["", "0", C], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [U, Me], Z = () => [U, C];
|
|
2524
2524
|
return {
|
|
2525
2525
|
cacheSize: 500,
|
|
2526
2526
|
separator: ":",
|
|
@@ -2528,25 +2528,25 @@ function k1() {
|
|
|
2528
2528
|
colors: [pe],
|
|
2529
2529
|
spacing: [B, D],
|
|
2530
2530
|
blur: ["none", "", G, C],
|
|
2531
|
-
brightness:
|
|
2531
|
+
brightness: H(),
|
|
2532
2532
|
borderColor: [e],
|
|
2533
2533
|
borderRadius: ["none", "", "full", G, C],
|
|
2534
2534
|
borderSpacing: k(),
|
|
2535
2535
|
borderWidth: $(),
|
|
2536
|
-
contrast:
|
|
2537
|
-
grayscale:
|
|
2536
|
+
contrast: H(),
|
|
2537
|
+
grayscale: F(),
|
|
2538
2538
|
hueRotate: Z(),
|
|
2539
|
-
invert:
|
|
2539
|
+
invert: F(),
|
|
2540
2540
|
gap: k(),
|
|
2541
2541
|
gradientColorStops: [e],
|
|
2542
2542
|
gradientColorStopPositions: [u1, D],
|
|
2543
2543
|
inset: ae(),
|
|
2544
2544
|
margin: ae(),
|
|
2545
|
-
opacity:
|
|
2545
|
+
opacity: H(),
|
|
2546
2546
|
padding: k(),
|
|
2547
|
-
saturate:
|
|
2548
|
-
scale:
|
|
2549
|
-
sepia:
|
|
2547
|
+
saturate: H(),
|
|
2548
|
+
scale: H(),
|
|
2549
|
+
sepia: F(),
|
|
2550
2550
|
skew: Z(),
|
|
2551
2551
|
space: k(),
|
|
2552
2552
|
translate: k()
|
|
@@ -2801,14 +2801,14 @@ function k1() {
|
|
|
2801
2801
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
2802
2802
|
*/
|
|
2803
2803
|
grow: [{
|
|
2804
|
-
grow:
|
|
2804
|
+
grow: F()
|
|
2805
2805
|
}],
|
|
2806
2806
|
/**
|
|
2807
2807
|
* Flex Shrink
|
|
2808
2808
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
2809
2809
|
*/
|
|
2810
2810
|
shrink: [{
|
|
2811
|
-
shrink:
|
|
2811
|
+
shrink: F()
|
|
2812
2812
|
}],
|
|
2813
2813
|
/**
|
|
2814
2814
|
* Order
|
|
@@ -4939,14 +4939,14 @@ const T1 = O(
|
|
|
4939
4939
|
true: ["text-neutrals", "bg-neutrals-lighter"]
|
|
4940
4940
|
}
|
|
4941
4941
|
}
|
|
4942
|
-
}),
|
|
4942
|
+
}), F1 = (e) => Y(N1(e)), H1 = O(["font-base", "ml-2", "text-base"], {
|
|
4943
4943
|
variants: {
|
|
4944
4944
|
disabled: {
|
|
4945
4945
|
false: "cursor-pointer",
|
|
4946
4946
|
true: "text-neutrals"
|
|
4947
4947
|
}
|
|
4948
4948
|
}
|
|
4949
|
-
}), D1 = (e) => Y(
|
|
4949
|
+
}), D1 = (e) => Y(H1(e)), G1 = ({
|
|
4950
4950
|
label: e = "",
|
|
4951
4951
|
name: a = "",
|
|
4952
4952
|
id: i = "",
|
|
@@ -4961,7 +4961,7 @@ const T1 = O(
|
|
|
4961
4961
|
id: i,
|
|
4962
4962
|
name: a,
|
|
4963
4963
|
type: "radio",
|
|
4964
|
-
className:
|
|
4964
|
+
className: F1({ disabled: r }),
|
|
4965
4965
|
onChange: s,
|
|
4966
4966
|
disabled: r,
|
|
4967
4967
|
...n
|