@takecasper/acuity-design-system 1.12.2 → 1.12.3

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.d.ts CHANGED
@@ -34,9 +34,9 @@ declare interface ButtonProps extends React_2.ButtonHTMLAttributes<HTMLButtonEle
34
34
  iconIndicator?: boolean;
35
35
  }
36
36
 
37
- export declare const Card: ({ bodyContent, iconName, title, footerContent }: CardProps) => JSX_2.Element;
37
+ export declare const Card: ({ bodyContent, iconName, title, footerContent, className }: CardProps) => JSX_2.Element;
38
38
 
39
- declare interface CardProps {
39
+ declare interface CardProps extends React.HTMLAttributes<HTMLDivElement> {
40
40
  iconName?: IconNames;
41
41
  title?: string;
42
42
  bodyContent?: React.ReactNode;
package/dist/index.es.js CHANGED
@@ -130,14 +130,14 @@ function nt() {
130
130
  }
131
131
  return null;
132
132
  }
133
- var A = Object.assign, B = 0, Z, de, K, z, ce, F, U;
133
+ var A = Object.assign, z = 0, Z, de, K, F, ce, H, U;
134
134
  function Be() {
135
135
  }
136
136
  Be.__reactDisabledLog = !0;
137
137
  function _r() {
138
138
  {
139
- if (B === 0) {
140
- Z = console.log, de = console.info, K = console.warn, z = console.error, ce = console.group, F = console.groupCollapsed, U = console.groupEnd;
139
+ if (z === 0) {
140
+ Z = console.log, de = console.info, K = console.warn, F = console.error, ce = console.group, H = console.groupCollapsed, U = console.groupEnd;
141
141
  var t = {
142
142
  configurable: !0,
143
143
  enumerable: !0,
@@ -154,12 +154,12 @@ function nt() {
154
154
  groupEnd: t
155
155
  });
156
156
  }
157
- B++;
157
+ z++;
158
158
  }
159
159
  }
160
160
  function Sr() {
161
161
  {
162
- if (B--, B === 0) {
162
+ if (z--, z === 0) {
163
163
  var t = {
164
164
  configurable: !0,
165
165
  enumerable: !0,
@@ -176,20 +176,20 @@ function nt() {
176
176
  value: K
177
177
  }),
178
178
  error: A({}, t, {
179
- value: z
179
+ value: F
180
180
  }),
181
181
  group: A({}, t, {
182
182
  value: ce
183
183
  }),
184
184
  groupCollapsed: A({}, t, {
185
- value: F
185
+ value: H
186
186
  }),
187
187
  groupEnd: A({}, t, {
188
188
  value: U
189
189
  })
190
190
  });
191
191
  }
192
- B < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ z < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
193
193
  }
194
194
  }
195
195
  var Re = S.ReactCurrentDispatcher, We;
@@ -2372,7 +2372,7 @@ const wr = /^\[(?:([a-z-]+):)?(.+)\]$/i, lo = /^\d+\/\d+$/, co = /* @__PURE__ */
2372
2372
  function N(e) {
2373
2373
  return Y(e) || co.has(e) || lo.test(e);
2374
2374
  }
2375
- function H(e) {
2375
+ function D(e) {
2376
2376
  return te(e, "length", jo);
2377
2377
  }
2378
2378
  function Y(e) {
@@ -2390,7 +2390,7 @@ function bo(e) {
2390
2390
  function b(e) {
2391
2391
  return wr.test(e);
2392
2392
  }
2393
- function D(e) {
2393
+ function G(e) {
2394
2394
  return uo.test(e);
2395
2395
  }
2396
2396
  const Co = /* @__PURE__ */ new Set(["length", "size", "percentage"]);
@@ -2427,33 +2427,33 @@ function Lo(e) {
2427
2427
  return go.test(e);
2428
2428
  }
2429
2429
  function Mo() {
2430
- const e = L("colors"), n = L("spacing"), i = L("blur"), r = L("brightness"), s = L("borderColor"), a = L("borderRadius"), d = L("borderSpacing"), u = L("borderWidth"), p = L("contrast"), g = L("grayscale"), f = L("hueRotate"), x = L("invert"), j = L("gap"), _ = L("gradientColorStops"), I = L("gradientColorStopPositions"), M = L("inset"), R = L("margin"), S = L("opacity"), y = L("padding"), be = L("saturate"), ie = L("scale"), Ce = L("sepia"), me = L("skew"), xe = L("space"), ve = L("translate"), J = () => ["auto", "contain", "none"], ae = () => ["auto", "hidden", "clip", "visible", "scroll"], le = () => ["auto", b, n], k = () => [b, n], V = () => ["", N, H], A = () => ["auto", Y, b], B = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Z = () => ["solid", "dashed", "dotted", "double", "none"], de = () => ["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"], z = () => ["", "0", b], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], F = () => [Y, Me], U = () => [Y, b];
2430
+ const e = L("colors"), n = L("spacing"), i = L("blur"), r = L("brightness"), s = L("borderColor"), a = L("borderRadius"), d = L("borderSpacing"), u = L("borderWidth"), p = L("contrast"), g = L("grayscale"), f = L("hueRotate"), x = L("invert"), j = L("gap"), _ = L("gradientColorStops"), I = L("gradientColorStopPositions"), M = L("inset"), R = L("margin"), S = L("opacity"), y = L("padding"), be = L("saturate"), ie = L("scale"), Ce = L("sepia"), me = L("skew"), xe = L("space"), ve = L("translate"), J = () => ["auto", "contain", "none"], ae = () => ["auto", "hidden", "clip", "visible", "scroll"], le = () => ["auto", b, n], k = () => [b, n], V = () => ["", N, D], A = () => ["auto", Y, b], z = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], Z = () => ["solid", "dashed", "dotted", "double", "none"], de = () => ["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", b], ce = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], H = () => [Y, Me], U = () => [Y, b];
2431
2431
  return {
2432
2432
  cacheSize: 500,
2433
2433
  separator: ":",
2434
2434
  theme: {
2435
2435
  colors: [ge],
2436
- spacing: [N, H],
2437
- blur: ["none", "", D, b],
2438
- brightness: F(),
2436
+ spacing: [N, D],
2437
+ blur: ["none", "", G, b],
2438
+ brightness: H(),
2439
2439
  borderColor: [e],
2440
- borderRadius: ["none", "", "full", D, b],
2440
+ borderRadius: ["none", "", "full", G, b],
2441
2441
  borderSpacing: k(),
2442
2442
  borderWidth: V(),
2443
- contrast: F(),
2444
- grayscale: z(),
2443
+ contrast: H(),
2444
+ grayscale: F(),
2445
2445
  hueRotate: U(),
2446
- invert: z(),
2446
+ invert: F(),
2447
2447
  gap: k(),
2448
2448
  gradientColorStops: [e],
2449
- gradientColorStopPositions: [bo, H],
2449
+ gradientColorStopPositions: [bo, D],
2450
2450
  inset: le(),
2451
2451
  margin: le(),
2452
- opacity: F(),
2452
+ opacity: H(),
2453
2453
  padding: k(),
2454
- saturate: F(),
2455
- scale: F(),
2456
- sepia: z(),
2454
+ saturate: H(),
2455
+ scale: H(),
2456
+ sepia: F(),
2457
2457
  skew: U(),
2458
2458
  space: k(),
2459
2459
  translate: k()
@@ -2477,7 +2477,7 @@ function Mo() {
2477
2477
  * @see https://tailwindcss.com/docs/columns
2478
2478
  */
2479
2479
  columns: [{
2480
- columns: [D]
2480
+ columns: [G]
2481
2481
  }],
2482
2482
  /**
2483
2483
  * Break After
@@ -2550,7 +2550,7 @@ function Mo() {
2550
2550
  * @see https://tailwindcss.com/docs/object-position
2551
2551
  */
2552
2552
  "object-position": [{
2553
- object: [...B(), b]
2553
+ object: [...z(), b]
2554
2554
  }],
2555
2555
  /**
2556
2556
  * Overflow
@@ -2708,14 +2708,14 @@ function Mo() {
2708
2708
  * @see https://tailwindcss.com/docs/flex-grow
2709
2709
  */
2710
2710
  grow: [{
2711
- grow: z()
2711
+ grow: F()
2712
2712
  }],
2713
2713
  /**
2714
2714
  * Flex Shrink
2715
2715
  * @see https://tailwindcss.com/docs/flex-shrink
2716
2716
  */
2717
2717
  shrink: [{
2718
- shrink: z()
2718
+ shrink: F()
2719
2719
  }],
2720
2720
  /**
2721
2721
  * Order
@@ -3061,8 +3061,8 @@ function Mo() {
3061
3061
  */
3062
3062
  "max-w": [{
3063
3063
  "max-w": [b, n, "none", "full", "min", "max", "fit", "prose", {
3064
- screen: [D]
3065
- }, D]
3064
+ screen: [G]
3065
+ }, G]
3066
3066
  }],
3067
3067
  /**
3068
3068
  * Height
@@ -3098,7 +3098,7 @@ function Mo() {
3098
3098
  * @see https://tailwindcss.com/docs/font-size
3099
3099
  */
3100
3100
  "font-size": [{
3101
- text: ["base", D, H]
3101
+ text: ["base", G, D]
3102
3102
  }],
3103
3103
  /**
3104
3104
  * Font Smoothing
@@ -3249,7 +3249,7 @@ function Mo() {
3249
3249
  * @see https://tailwindcss.com/docs/text-decoration-thickness
3250
3250
  */
3251
3251
  "text-decoration-thickness": [{
3252
- decoration: ["auto", "from-font", N, H]
3252
+ decoration: ["auto", "from-font", N, D]
3253
3253
  }],
3254
3254
  /**
3255
3255
  * Text Underline Offset
@@ -3359,7 +3359,7 @@ function Mo() {
3359
3359
  * @see https://tailwindcss.com/docs/background-position
3360
3360
  */
3361
3361
  "bg-position": [{
3362
- bg: [...B(), xo]
3362
+ bg: [...z(), xo]
3363
3363
  }],
3364
3364
  /**
3365
3365
  * Background Repeat
@@ -3731,7 +3731,7 @@ function Mo() {
3731
3731
  * @see https://tailwindcss.com/docs/outline-width
3732
3732
  */
3733
3733
  "outline-w": [{
3734
- outline: [N, H]
3734
+ outline: [N, D]
3735
3735
  }],
3736
3736
  /**
3737
3737
  * Outline Color
@@ -3771,7 +3771,7 @@ function Mo() {
3771
3771
  * @see https://tailwindcss.com/docs/ring-offset-width
3772
3772
  */
3773
3773
  "ring-offset-w": [{
3774
- "ring-offset": [N, H]
3774
+ "ring-offset": [N, D]
3775
3775
  }],
3776
3776
  /**
3777
3777
  * Ring Offset Color
@@ -3786,7 +3786,7 @@ function Mo() {
3786
3786
  * @see https://tailwindcss.com/docs/box-shadow
3787
3787
  */
3788
3788
  shadow: [{
3789
- shadow: ["", "inner", "none", D, wo]
3789
+ shadow: ["", "inner", "none", G, wo]
3790
3790
  }],
3791
3791
  /**
3792
3792
  * Box Shadow Color
@@ -3851,7 +3851,7 @@ function Mo() {
3851
3851
  * @see https://tailwindcss.com/docs/drop-shadow
3852
3852
  */
3853
3853
  "drop-shadow": [{
3854
- "drop-shadow": ["", "none", D, b]
3854
+ "drop-shadow": ["", "none", G, b]
3855
3855
  }],
3856
3856
  /**
3857
3857
  * Grayscale
@@ -4366,7 +4366,7 @@ function Mo() {
4366
4366
  * @see https://tailwindcss.com/docs/stroke-width
4367
4367
  */
4368
4368
  "stroke-w": [{
4369
- stroke: [N, H, Me]
4369
+ stroke: [N, D, Me]
4370
4370
  }],
4371
4371
  /**
4372
4372
  * Stroke
@@ -4442,7 +4442,7 @@ function Mo() {
4442
4442
  }
4443
4443
  };
4444
4444
  }
4445
- const G = /* @__PURE__ */ ao(Mo);
4445
+ const B = /* @__PURE__ */ ao(Mo);
4446
4446
  function Eo() {
4447
4447
  return Math.floor(Math.random() * 1e7);
4448
4448
  }
@@ -4468,7 +4468,7 @@ const Ro = P(
4468
4468
  }
4469
4469
  }
4470
4470
  }
4471
- ), Wo = (e) => G(Ro(e)), _o = P("", {
4471
+ ), Wo = (e) => B(Ro(e)), _o = P("", {
4472
4472
  variants: {
4473
4473
  variant: {
4474
4474
  success: "ds-text-success-green-dark",
@@ -4477,7 +4477,7 @@ const Ro = P(
4477
4477
  error: "ds-text-danger-red-dark"
4478
4478
  }
4479
4479
  }
4480
- }), ar = (e) => G(_o(e)), So = P("", {
4480
+ }), ar = (e) => B(_o(e)), So = P("", {
4481
4481
  variants: {
4482
4482
  variant: {
4483
4483
  success: ["ds-text-success-green-darkest", "ds-stroke-success-green-darkest"],
@@ -4486,7 +4486,7 @@ const Ro = P(
4486
4486
  error: ["ds-text-danger-red-darkest", "ds-stroke-danger-red-darkest"]
4487
4487
  }
4488
4488
  }
4489
- }), ee = (e) => G(So(e)), $o = ({
4489
+ }), ee = (e) => B(So(e)), $o = ({
4490
4490
  variant: e = "info",
4491
4491
  isDismissible: n = !0,
4492
4492
  showIcon: i = !0,
@@ -4655,7 +4655,7 @@ function Ao() {
4655
4655
  (e = arguments[i]) && (n = Mr(e)) && (r && (r += " "), r += n);
4656
4656
  return r;
4657
4657
  }
4658
- const lr = (...e) => G(Ao(...e)), Pe = [
4658
+ const lr = (...e) => B(Ao(...e)), Pe = [
4659
4659
  "disabled:ds-bg-neutrals-lighter",
4660
4660
  "disabled:ds-text-neutrals-dark",
4661
4661
  "disabled:ds-border-neutrals-light",
@@ -4858,24 +4858,34 @@ const lr = (...e) => G(Ao(...e)), Pe = [
4858
4858
  bodyContent: e = void 0,
4859
4859
  iconName: n = void 0,
4860
4860
  title: i = "",
4861
- footerContent: r = void 0
4862
- }) => /* @__PURE__ */ o.jsxs("div", { className: "preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5", children: [
4863
- i && /* @__PURE__ */ o.jsxs("div", { className: "ds-flex ds-flex-row ds-items-center ds-gap-3", children: [
4864
- n && /* @__PURE__ */ o.jsx(
4865
- re,
4866
- {
4867
- size: "medium",
4868
- name: n,
4869
- className: "ds-text-neutrals-darker",
4870
- hasIndicator: !1,
4871
- altText: n
4872
- }
4861
+ footerContent: r = void 0,
4862
+ className: s = ""
4863
+ }) => /* @__PURE__ */ o.jsxs(
4864
+ "div",
4865
+ {
4866
+ className: B(
4867
+ "preflight ds-flex ds-flex-col ds-items-start ds-gap-6 ds-rounded-lg ds-border ds-border-neutrals-light ds-p-5",
4868
+ s
4873
4869
  ),
4874
- /* @__PURE__ */ o.jsx(qo, { size: "small", text: i, hasMarginBottom: !1 })
4875
- ] }),
4876
- e && /* @__PURE__ */ o.jsx("div", { className: "ds-text-base", children: e }),
4877
- r && /* @__PURE__ */ o.jsx("div", { children: r })
4878
- ] }), o1 = Po, Io = P(
4870
+ children: [
4871
+ i && /* @__PURE__ */ o.jsxs("div", { className: "ds-flex ds-flex-row ds-items-center ds-gap-3", children: [
4872
+ n && /* @__PURE__ */ o.jsx(
4873
+ re,
4874
+ {
4875
+ size: "medium",
4876
+ name: n,
4877
+ className: "ds-text-neutrals-darker",
4878
+ hasIndicator: !1,
4879
+ altText: n
4880
+ }
4881
+ ),
4882
+ /* @__PURE__ */ o.jsx(qo, { size: "small", text: i, hasMarginBottom: !1 })
4883
+ ] }),
4884
+ e && /* @__PURE__ */ o.jsx("div", { className: "ds-text-base", children: e }),
4885
+ r && /* @__PURE__ */ o.jsx("div", { children: r })
4886
+ ]
4887
+ }
4888
+ ), o1 = Po, Io = P(
4879
4889
  [
4880
4890
  "preflight",
4881
4891
  "ds-h-4",
@@ -4903,14 +4913,14 @@ const lr = (...e) => G(Ao(...e)), Pe = [
4903
4913
  }
4904
4914
  }
4905
4915
  }
4906
- ), Rr = (e) => G(Io(e)), Oo = P(["preflight", "ds-font-base", "ds-ml-2", "ds-text-base"], {
4916
+ ), Rr = (e) => B(Io(e)), Oo = P(["preflight", "ds-font-base", "ds-ml-2", "ds-text-base"], {
4907
4917
  variants: {
4908
4918
  disabled: {
4909
4919
  false: "ds-cursor-pointer",
4910
4920
  true: "ds-text-neutrals"
4911
4921
  }
4912
4922
  }
4913
- }), Wr = (e) => G(Oo(e)), No = ({
4923
+ }), Wr = (e) => B(Oo(e)), No = ({
4914
4924
  id: e = "",
4915
4925
  label: n = "",
4916
4926
  name: i = "",
@@ -5009,7 +5019,7 @@ const Do = P("preflight ds-font-sans", {
5009
5019
  h2: /* @__PURE__ */ o.jsx("h2", { className: Ee({ size: e }), children: i }),
5010
5020
  h1: /* @__PURE__ */ o.jsx("h1", { className: Ee({ size: e }), children: i })
5011
5021
  };
5012
- return /* @__PURE__ */ o.jsxs("div", { className: G(j, n), ...p, children: [
5022
+ return /* @__PURE__ */ o.jsxs("div", { className: B(j, n), ...p, children: [
5013
5023
  g,
5014
5024
  _[u || Ho(e)],
5015
5025
  f,
@@ -5067,7 +5077,7 @@ const Do = P("preflight ds-font-sans", {
5067
5077
  type: i = "default",
5068
5078
  iconName: r,
5069
5079
  ...s
5070
- }) => /* @__PURE__ */ o.jsxs("a", { href: n, type: i, className: G(Ko({ type: i })), ...s, children: [
5080
+ }) => /* @__PURE__ */ o.jsxs("a", { href: n, type: i, className: B(Ko({ type: i })), ...s, children: [
5071
5081
  e,
5072
5082
  r && /* @__PURE__ */ o.jsx(re, { altText: e, name: r, size: "small" })
5073
5083
  ] }), i1 = Xo;