@stokelp/ui 2.51.1 → 2.52.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/dist/ui.js CHANGED
@@ -287,7 +287,7 @@ function as({
287
287
  }
288
288
  ) }) })
289
289
  ] }),
290
- /* @__PURE__ */ C(Ga, { asChild: !0, children: /* @__PURE__ */ C("button", { children: /* @__PURE__ */ C("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C(
290
+ /* @__PURE__ */ C(Ga, { disabled: m.readOnly, asChild: !0, children: /* @__PURE__ */ C("button", { children: /* @__PURE__ */ C("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ C(
291
291
  "path",
292
292
  {
293
293
  fillRule: "evenodd",
@@ -17826,7 +17826,7 @@ const { withProvider: ep, withContext: H5 } = Q(ua, {
17826
17826
  sm: "600px"
17827
17827
  }, Tp = {
17828
17828
  extend: {
17829
- disabled: "&:is(:disabled, [disabled], [data-disabled], .PhoneInput--disabled)",
17829
+ disabled: "&:is(:disabled, [disabled], [data-disabled], .PhoneInput--disabled), &:is(:readonly, [readonly], [data-readonly], .PhoneInput--readOnly)",
17830
17830
  checked: "&:where(:checked, [data-checked], [aria-checked=true], [data-state=checked])",
17831
17831
  closed: "&:where([data-state=closed])",
17832
17832
  collapsed: '&:where([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
@@ -18408,7 +18408,10 @@ const { withProvider: ep, withContext: H5 } = Q(ua, {
18408
18408
  }
18409
18409
  },
18410
18410
  _focus: {
18411
- borderColor: "primary.500"
18411
+ borderColor: {
18412
+ base: "primary.500",
18413
+ _disabled: "grey.100"
18414
+ }
18412
18415
  },
18413
18416
  _placeholderShown: {
18414
18417
  color: "grey.400",
@@ -19135,7 +19138,7 @@ const { withProvider: ep, withContext: H5 } = Q(ua, {
19135
19138
  base: "grey.900",
19136
19139
  _disabled: "grey.300"
19137
19140
  },
19138
- cursor: "pointer",
19141
+ cursor: { base: "pointer", _disabled: "not-allowed" },
19139
19142
  display: "inline-flex",
19140
19143
  outline: 0,
19141
19144
  position: "relative",
@@ -19181,7 +19184,12 @@ const { withProvider: ep, withContext: H5 } = Q(ua, {
19181
19184
  p: "space-8",
19182
19185
  textStyle: "body.md",
19183
19186
  bg: "transparent",
19184
- color: "secondary.900"
19187
+ color: "secondary.900",
19188
+ _disabled: {
19189
+ cursor: "not-allowed",
19190
+ color: "grey.300",
19191
+ bg: "grey.50"
19192
+ }
19185
19193
  },
19186
19194
  className: "input-addon",
19187
19195
  description: "The styles for the InputAddon component",
@@ -19197,7 +19205,8 @@ const { withProvider: ep, withContext: H5 } = Q(ua, {
19197
19205
  },
19198
19206
  bg: {
19199
19207
  "&:has(> input[disabled], > input[data-disabled])": "grey.50",
19200
- base: "white"
19208
+ base: "white",
19209
+ _disabled: "grey.50"
19201
19210
  },
19202
19211
  borderWidth: "1px",
19203
19212
  '& [data-recipe="inputAddon"]:first-child': {
@@ -21207,9 +21216,10 @@ const If = Y({
21207
21216
  cursor: "pointer",
21208
21217
  right: "space-48",
21209
21218
  top: "10px",
21210
- color: {
21211
- base: "secondary.900",
21212
- _disabled: "grey.300"
21219
+ color: "secondary.900",
21220
+ _disabled: {
21221
+ color: "grey.300",
21222
+ pointerEvents: "none"
21213
21223
  }
21214
21224
  },
21215
21225
  trigger: {
@@ -21220,6 +21230,13 @@ const If = Y({
21220
21230
  color: {
21221
21231
  base: "secondary.900",
21222
21232
  _disabled: "grey.300"
21233
+ },
21234
+ _disabled: {
21235
+ _focus: {
21236
+ border: "none"
21237
+ },
21238
+ pointerEvents: "none",
21239
+ userSelect: "none"
21223
21240
  }
21224
21241
  },
21225
21242
  item: {
@@ -21270,6 +21287,9 @@ const If = Y({
21270
21287
  width: "full"
21271
21288
  },
21272
21289
  input: {
21290
+ _disabled: {
21291
+ pointerEvents: "none"
21292
+ },
21273
21293
  _placeholderShown: {
21274
21294
  color: {
21275
21295
  base: "grey.400",