@jackcrane/ui 0.1.4 → 0.1.5

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.
@@ -0,0 +1,5 @@
1
+ export default function Hatch({ children, className, ...props }: {
2
+ [x: string]: any;
3
+ children: any;
4
+ className: any;
5
+ }): import("react/jsx-runtime").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ export { Loader } from "./components/Loader/loader";
7
7
  export { Radio, RadioGroup } from "./components/Radio/radio";
8
8
  export { default as Select } from "./components/Select/select";
9
9
  export { default as Dropdown } from "./components/Dropdown/dropdown";
10
+ export { default as Hatch } from "./components/Hatch/hatch";
10
11
  export { toast } from "./components/Toast/toast";
11
12
  export { useModal } from "./components/modal/useModal";
12
13
  export { JCUIProvider } from "./components/jcui/provider";
package/dist/jcui.cjs.js CHANGED
@@ -980,6 +980,9 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
980
980
  transform: translateX(0);
981
981
  }
982
982
  }
983
+ ._hatch_zh2j3_1 {
984
+ padding: 0.5rem 1rem;
985
+ }
983
986
  ._toastRoot_1iau9_1 {
984
987
  background-color: var(--button-bg) !important;
985
988
  border: var(--border-thickness) solid var(--border-color);
@@ -1871,7 +1874,7 @@ const warning$7 = "_warning_d2nsp_67";
1871
1874
  const danger$7 = "_danger_d2nsp_80";
1872
1875
  const info$7 = "_info_d2nsp_93";
1873
1876
  const secondary$7 = "_secondary_d2nsp_106";
1874
- const styles$a = {
1877
+ const styles$b = {
1875
1878
  button,
1876
1879
  large: large$6,
1877
1880
  small: small$6,
@@ -1891,9 +1894,9 @@ const chamferStyles = {
1891
1894
  disabled: disabled$5,
1892
1895
  chamferOnHover
1893
1896
  };
1894
- const hatch = "_hatch_owfoz_1";
1897
+ const hatch$1 = "_hatch_owfoz_1";
1895
1898
  const hatchStyles = {
1896
- hatch
1899
+ hatch: hatch$1
1897
1900
  };
1898
1901
  const DEFAULT_THEME = "light";
1899
1902
  const ThemeContext = React.createContext({
@@ -1903,10 +1906,10 @@ const ThemeContext = React.createContext({
1903
1906
  });
1904
1907
  const useJCUITheme = () => React.useContext(ThemeContext);
1905
1908
  const loader = "_loader_1y0fe_1";
1906
- const styles$9 = {
1909
+ const styles$a = {
1907
1910
  loader
1908
1911
  };
1909
- const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$9.loader, ...props });
1912
+ const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$a.loader, ...props });
1910
1913
  function Button({
1911
1914
  children: children2,
1912
1915
  variant,
@@ -1920,14 +1923,14 @@ function Button({
1920
1923
  "button",
1921
1924
  {
1922
1925
  className: clsx(
1923
- styles$a.button,
1924
- styles$a[variant],
1926
+ styles$b.button,
1927
+ styles$b[variant],
1925
1928
  chamfer2 && chamferStyles.chamfer,
1926
- size2 === "large" && styles$a.large,
1927
- size2 === "small" && styles$a.small,
1929
+ size2 === "large" && styles$b.large,
1930
+ size2 === "small" && styles$b.small,
1928
1931
  disabled2 && chamferStyles.disabled,
1929
1932
  disabled2 && hatchStyles.hatch,
1930
- disabled2 && styles$a.disabled
1933
+ disabled2 && styles$b.disabled
1931
1934
  ),
1932
1935
  disabled: disabled2,
1933
1936
  ...props,
@@ -2047,7 +2050,7 @@ const warning$6 = "_warning_1u4j4_58";
2047
2050
  const danger$6 = "_danger_1u4j4_65";
2048
2051
  const info$6 = "_info_1u4j4_72";
2049
2052
  const secondary$6 = "_secondary_1u4j4_79";
2050
- const styles$8 = {
2053
+ const styles$9 = {
2051
2054
  card,
2052
2055
  title: title$1,
2053
2056
  body: body$1,
@@ -2076,20 +2079,20 @@ function Card({
2076
2079
  "div",
2077
2080
  {
2078
2081
  className: classNames(
2079
- styles$8.card,
2080
- styles$8[variant],
2082
+ styles$9.card,
2083
+ styles$9[variant],
2081
2084
  chamfer2 && chamferStyles.chamfer,
2082
- size2 === "large" && styles$8.large,
2083
- size2 === "small" && styles$8.small
2085
+ size2 === "large" && styles$9.large,
2086
+ size2 === "small" && styles$9.small
2084
2087
  ),
2085
2088
  ...props,
2086
2089
  children: [
2087
- title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames(styles$8.title, hatchStyles.hatch), children: title2 }),
2088
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$8.body, children: children2 }),
2090
+ title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames(styles$9.title, hatchStyles.hatch), children: title2 }),
2091
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$9.body, children: children2 }),
2089
2092
  footerHeight > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
2090
2093
  "div",
2091
2094
  {
2092
- className: classNames(hatchStyles.hatch, styles$8.footer),
2095
+ className: classNames(hatchStyles.hatch, styles$9.footer),
2093
2096
  style: { flexBasis: footerHeight },
2094
2097
  children: footer2
2095
2098
  }
@@ -2833,7 +2836,7 @@ const success$5 = "_success_178xv_135";
2833
2836
  const warning$5 = "_warning_178xv_144";
2834
2837
  const danger$5 = "_danger_178xv_153";
2835
2838
  const info$5 = "_info_178xv_162";
2836
- const styles$7 = {
2839
+ const styles$8 = {
2837
2840
  wrapper: wrapper$1,
2838
2841
  disabled: disabled$4,
2839
2842
  root: root$2,
@@ -2870,32 +2873,32 @@ function Checkbox({
2870
2873
  ...props
2871
2874
  }) {
2872
2875
  const labelContent = label2 ?? children2;
2873
- const variantClass = variant && styles$7[variant];
2874
- const sizeClass = size2 === "large" ? styles$7.large : size2 === "small" ? styles$7.small : null;
2876
+ const variantClass = variant && styles$8[variant];
2877
+ const sizeClass = size2 === "large" ? styles$8.large : size2 === "small" ? styles$8.small : null;
2875
2878
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
2876
2879
  "label",
2877
2880
  {
2878
- className: clsx(styles$7.wrapper, variantClass, disabled2 && styles$7.disabled),
2881
+ className: clsx(styles$8.wrapper, variantClass, disabled2 && styles$8.disabled),
2879
2882
  children: [
2880
2883
  /* @__PURE__ */ jsxRuntimeExports.jsx(
2881
2884
  Checkbox$1,
2882
2885
  {
2883
2886
  className: clsx(
2884
- styles$7.root,
2887
+ styles$8.root,
2885
2888
  variantClass,
2886
2889
  sizeClass,
2887
2890
  chamfer2 && chamferStyles.chamfer,
2888
2891
  disabled2 && chamferStyles.disabled,
2889
2892
  disabled2 && hatchStyles.hatch,
2890
- disabled2 && styles$7.disabledBox,
2893
+ disabled2 && styles$8.disabledBox,
2891
2894
  className
2892
2895
  ),
2893
2896
  disabled: disabled2,
2894
2897
  ...props,
2895
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$7.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, {}) })
2898
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$8.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, {}) })
2896
2899
  }
2897
2900
  ),
2898
- labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.label, children: labelContent })
2901
+ labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$8.label, children: labelContent })
2899
2902
  ]
2900
2903
  }
2901
2904
  );
@@ -13745,7 +13748,7 @@ let nextClipId = 0;
13745
13748
  function getClipId() {
13746
13749
  return `plot-clip-${++nextClipId}`;
13747
13750
  }
13748
- function styles$6(mark, {
13751
+ function styles$7(mark, {
13749
13752
  title: title2,
13750
13753
  href,
13751
13754
  ariaLabel: variaLabel,
@@ -14111,7 +14114,7 @@ class Mark {
14111
14114
  this.facetAnchor = maybeFacetAnchor(facetAnchor);
14112
14115
  channels = maybeNamed(channels);
14113
14116
  if (extraChannels !== void 0) channels = { ...maybeChannels(extraChannels), ...channels };
14114
- if (defaults2 !== void 0) channels = { ...styles$6(this, options, defaults2), ...channels };
14117
+ if (defaults2 !== void 0) channels = { ...styles$7(this, options, defaults2), ...channels };
14115
14118
  this.channels = Object.fromEntries(
14116
14119
  Object.entries(channels).map(([name, channel]) => {
14117
14120
  if (isOptions(channel.value)) {
@@ -19149,7 +19152,7 @@ const info$4 = "_info_rojre_74";
19149
19152
  const secondary$4 = "_secondary_rojre_83";
19150
19153
  const field = "_field_rojre_92";
19151
19154
  const label$1 = "_label_rojre_98";
19152
- const styles$5 = {
19155
+ const styles$6 = {
19153
19156
  input,
19154
19157
  large: large$3,
19155
19158
  small: small$3,
@@ -19172,26 +19175,26 @@ function Input({
19172
19175
  ...props
19173
19176
  }) {
19174
19177
  const inputId = React.useId();
19175
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$5.field, children: [
19176
- label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$5.label, htmlFor: inputId, children: label2 }),
19178
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.field, children: [
19179
+ label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$6.label, htmlFor: inputId, children: label2 }),
19177
19180
  /* @__PURE__ */ jsxRuntimeExports.jsx(
19178
19181
  "div",
19179
19182
  {
19180
19183
  className: classNames(
19181
19184
  chamfer2 && chamferStyles.chamfer,
19182
- styles$5[variant]
19185
+ styles$6[variant]
19183
19186
  ),
19184
19187
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
19185
19188
  "input",
19186
19189
  {
19187
19190
  id: inputId,
19188
19191
  className: classNames(
19189
- styles$5.input,
19190
- styles$5[variant],
19191
- size2 === "large" && styles$5.large,
19192
- size2 === "small" && styles$5.small,
19192
+ styles$6.input,
19193
+ styles$6[variant],
19194
+ size2 === "large" && styles$6.large,
19195
+ size2 === "small" && styles$6.small,
19193
19196
  disabled2 && chamferStyles.disabled,
19194
- disabled2 && styles$5.disabled,
19197
+ disabled2 && styles$6.disabled,
19195
19198
  disabled2 && hatchStyles.hatch
19196
19199
  ),
19197
19200
  disabled: disabled2,
@@ -19782,7 +19785,7 @@ const success$3 = "_success_hpxu6_130";
19782
19785
  const warning$3 = "_warning_hpxu6_139";
19783
19786
  const danger$3 = "_danger_hpxu6_148";
19784
19787
  const info$3 = "_info_hpxu6_157";
19785
- const styles$4 = {
19788
+ const styles$5 = {
19786
19789
  group,
19787
19790
  wrapper,
19788
19791
  disabled: disabled$2,
@@ -19804,7 +19807,7 @@ const styles$4 = {
19804
19807
  const RadioGroup$1 = ({ className, children: children2, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19805
19808
  Root2$3,
19806
19809
  {
19807
- className: clsx(styles$4.group, className),
19810
+ className: clsx(styles$5.group, className),
19808
19811
  ...props,
19809
19812
  children: children2
19810
19813
  }
@@ -19819,33 +19822,33 @@ function Radio({
19819
19822
  className,
19820
19823
  ...props
19821
19824
  }) {
19822
- const variantClass = variant && styles$4[variant];
19823
- const sizeClass = size2 === "large" ? styles$4.large : size2 === "small" ? styles$4.small : null;
19825
+ const variantClass = variant && styles$5[variant];
19826
+ const sizeClass = size2 === "large" ? styles$5.large : size2 === "small" ? styles$5.small : null;
19824
19827
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
19825
19828
  "label",
19826
19829
  {
19827
- className: clsx(styles$4.wrapper, variantClass, disabled2 && styles$4.disabled),
19830
+ className: clsx(styles$5.wrapper, variantClass, disabled2 && styles$5.disabled),
19828
19831
  children: [
19829
19832
  /* @__PURE__ */ jsxRuntimeExports.jsx(
19830
19833
  Item2$2,
19831
19834
  {
19832
19835
  className: clsx(
19833
- styles$4.root,
19836
+ styles$5.root,
19834
19837
  variantClass,
19835
19838
  sizeClass,
19836
19839
  chamfer2 && chamferStyles.chamfer,
19837
19840
  disabled2 && chamferStyles.disabled,
19838
19841
  disabled2 && hatchStyles.hatch,
19839
- disabled2 && styles$4.disabledDot,
19842
+ disabled2 && styles$5.disabledDot,
19840
19843
  className
19841
19844
  ),
19842
19845
  value,
19843
19846
  disabled: disabled2,
19844
19847
  ...props,
19845
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$4.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.dot }) })
19848
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$5.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$5.dot }) })
19846
19849
  }
19847
19850
  ),
19848
- label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.label, children: label2 })
19851
+ label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$5.label, children: label2 })
19849
19852
  ]
19850
19853
  }
19851
19854
  );
@@ -24405,7 +24408,7 @@ const warning$2 = "_warning_1u214_99";
24405
24408
  const danger$2 = "_danger_1u214_109";
24406
24409
  const info$2 = "_info_1u214_119";
24407
24410
  const secondary$2 = "_secondary_1u214_129";
24408
- const styles$3 = {
24411
+ const styles$4 = {
24409
24412
  trigger: trigger$1,
24410
24413
  large: large$1,
24411
24414
  small: small$1,
@@ -24441,18 +24444,18 @@ function SelectInput({
24441
24444
  Trigger$2,
24442
24445
  {
24443
24446
  className: clsx(
24444
- styles$3.trigger,
24445
- styles$3[variant],
24447
+ styles$4.trigger,
24448
+ styles$4[variant],
24446
24449
  chamfer2 && chamferStyles.chamfer,
24447
- size2 === "large" && styles$3.large,
24448
- size2 === "small" && styles$3.small,
24449
- disabled2 && styles$3.disabled,
24450
+ size2 === "large" && styles$4.large,
24451
+ size2 === "small" && styles$4.small,
24452
+ disabled2 && styles$4.disabled,
24450
24453
  disabled2 && hatchStyles.hatch
24451
24454
  // loading && styles.disabled
24452
24455
  ),
24453
24456
  children: [
24454
24457
  /* @__PURE__ */ jsxRuntimeExports.jsx(Value, {}),
24455
- loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$3.icon, children: "▾" })
24458
+ loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$4.icon, children: "▾" })
24456
24459
  ]
24457
24460
  }
24458
24461
  ),
@@ -24460,7 +24463,7 @@ function SelectInput({
24460
24463
  Content2$2,
24461
24464
  {
24462
24465
  className: classNames(
24463
- styles$3.content,
24466
+ styles$4.content,
24464
24467
  chamfer2 && chamferStyles.chamfer
24465
24468
  ),
24466
24469
  sideOffset: 6,
@@ -24469,7 +24472,7 @@ function SelectInput({
24469
24472
  {
24470
24473
  value: opt.value,
24471
24474
  disabled: opt.disabled,
24472
- className: styles$3.item,
24475
+ className: styles$4.item,
24473
24476
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(ItemText, { children: opt.label })
24474
24477
  },
24475
24478
  opt.value
@@ -25513,7 +25516,7 @@ const warning$1 = "_warning_12pwu_170";
25513
25516
  const danger$1 = "_danger_12pwu_181";
25514
25517
  const info$1 = "_info_12pwu_192";
25515
25518
  const secondary$1 = "_secondary_12pwu_203";
25516
- const styles$2 = {
25519
+ const styles$3 = {
25517
25520
  trigger,
25518
25521
  large,
25519
25522
  small,
@@ -25556,18 +25559,18 @@ function Dropdown({
25556
25559
  ...props
25557
25560
  }) {
25558
25561
  const triggerClassName = clsx(
25559
- styles$2.trigger,
25560
- variant && styles$2[variant],
25562
+ styles$3.trigger,
25563
+ variant && styles$3[variant],
25561
25564
  chamfer2 && chamferStyles.chamfer,
25562
- size2 === "large" && styles$2.large,
25563
- size2 === "small" && styles$2.small,
25564
- disabled2 && styles$2.disabled,
25565
+ size2 === "large" && styles$3.large,
25566
+ size2 === "small" && styles$3.small,
25567
+ disabled2 && styles$3.disabled,
25565
25568
  disabled2 && hatchStyles.hatch,
25566
25569
  _triggerClassName
25567
25570
  );
25568
25571
  const contentClassName = clsx(
25569
- styles$2.content,
25570
- variant && styles$2[variant],
25572
+ styles$3.content,
25573
+ variant && styles$3[variant],
25571
25574
  chamfer2 && chamferStyles.chamfer
25572
25575
  );
25573
25576
  const handleItemSelect = (item2) => {
@@ -25596,13 +25599,13 @@ function Dropdown({
25596
25599
  side,
25597
25600
  sideOffset: 0,
25598
25601
  ...contentProps,
25599
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.viewport, children: items.map((item2, index2) => {
25602
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.viewport, children: items.map((item2, index2) => {
25600
25603
  if (item2.type === "separator") {
25601
25604
  const separatorKey = item2.key ?? `separator-${index2}`;
25602
25605
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
25603
25606
  Separator2,
25604
25607
  {
25605
- className: styles$2.separator
25608
+ className: styles$3.separator
25606
25609
  },
25607
25610
  separatorKey
25608
25611
  );
@@ -25613,10 +25616,10 @@ function Dropdown({
25613
25616
  {
25614
25617
  onSelect: () => handleItemSelect(item2),
25615
25618
  disabled: item2.disabled,
25616
- className: styles$2.item,
25619
+ className: styles$3.item,
25617
25620
  children: [
25618
- item2.icon && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$2.itemIcon, "aria-hidden": true, children: item2.icon }),
25619
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$2.itemLabel, children: item2.label })
25621
+ item2.icon && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$3.itemIcon, "aria-hidden": true, children: item2.icon }),
25622
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$3.itemLabel, children: item2.label })
25620
25623
  ]
25621
25624
  },
25622
25625
  itemKey
@@ -25626,6 +25629,25 @@ function Dropdown({
25626
25629
  ) })
25627
25630
  ] });
25628
25631
  }
25632
+ const hatch = "_hatch_zh2j3_1";
25633
+ const styles$2 = {
25634
+ hatch
25635
+ };
25636
+ function Hatch({ children: children2, className, ...props }) {
25637
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
25638
+ "div",
25639
+ {
25640
+ className: classNames(
25641
+ styles$2.hatch,
25642
+ hatchStyles.hatch,
25643
+ chamferStyles.chamfer,
25644
+ className
25645
+ ),
25646
+ ...props,
25647
+ children: children2
25648
+ }
25649
+ );
25650
+ }
25629
25651
  let e = { data: "" }, t = (t4) => {
25630
25652
  if ("object" == typeof window) {
25631
25653
  let e3 = (t4 ? t4.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), { innerHTML: " ", id: "_goober" });
@@ -26789,6 +26811,7 @@ exports.Card = Card;
26789
26811
  exports.Checkbox = Checkbox;
26790
26812
  exports.ColorSwitcher = ColorSwitcher;
26791
26813
  exports.Dropdown = Dropdown;
26814
+ exports.Hatch = Hatch;
26792
26815
  exports.Input = Input;
26793
26816
  exports.JCUIProvider = JCUIProvider;
26794
26817
  exports.Layout = Layout;
package/dist/jcui.es.js CHANGED
@@ -980,6 +980,9 @@ div._chamfer_1o5rm_1:not(._disabled_1o5rm_15):focus-within {
980
980
  transform: translateX(0);
981
981
  }
982
982
  }
983
+ ._hatch_zh2j3_1 {
984
+ padding: 0.5rem 1rem;
985
+ }
983
986
  ._toastRoot_1iau9_1 {
984
987
  background-color: var(--button-bg) !important;
985
988
  border: var(--border-thickness) solid var(--border-color);
@@ -1853,7 +1856,7 @@ const warning$7 = "_warning_d2nsp_67";
1853
1856
  const danger$7 = "_danger_d2nsp_80";
1854
1857
  const info$7 = "_info_d2nsp_93";
1855
1858
  const secondary$7 = "_secondary_d2nsp_106";
1856
- const styles$a = {
1859
+ const styles$b = {
1857
1860
  button,
1858
1861
  large: large$6,
1859
1862
  small: small$6,
@@ -1873,9 +1876,9 @@ const chamferStyles = {
1873
1876
  disabled: disabled$5,
1874
1877
  chamferOnHover
1875
1878
  };
1876
- const hatch = "_hatch_owfoz_1";
1879
+ const hatch$1 = "_hatch_owfoz_1";
1877
1880
  const hatchStyles = {
1878
- hatch
1881
+ hatch: hatch$1
1879
1882
  };
1880
1883
  const DEFAULT_THEME = "light";
1881
1884
  const ThemeContext = createContext$1({
@@ -1885,10 +1888,10 @@ const ThemeContext = createContext$1({
1885
1888
  });
1886
1889
  const useJCUITheme = () => useContext(ThemeContext);
1887
1890
  const loader = "_loader_1y0fe_1";
1888
- const styles$9 = {
1891
+ const styles$a = {
1889
1892
  loader
1890
1893
  };
1891
- const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$9.loader, ...props });
1894
+ const Loader = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$a.loader, ...props });
1892
1895
  function Button({
1893
1896
  children: children2,
1894
1897
  variant,
@@ -1902,14 +1905,14 @@ function Button({
1902
1905
  "button",
1903
1906
  {
1904
1907
  className: clsx(
1905
- styles$a.button,
1906
- styles$a[variant],
1908
+ styles$b.button,
1909
+ styles$b[variant],
1907
1910
  chamfer2 && chamferStyles.chamfer,
1908
- size2 === "large" && styles$a.large,
1909
- size2 === "small" && styles$a.small,
1911
+ size2 === "large" && styles$b.large,
1912
+ size2 === "small" && styles$b.small,
1910
1913
  disabled2 && chamferStyles.disabled,
1911
1914
  disabled2 && hatchStyles.hatch,
1912
- disabled2 && styles$a.disabled
1915
+ disabled2 && styles$b.disabled
1913
1916
  ),
1914
1917
  disabled: disabled2,
1915
1918
  ...props,
@@ -2029,7 +2032,7 @@ const warning$6 = "_warning_1u4j4_58";
2029
2032
  const danger$6 = "_danger_1u4j4_65";
2030
2033
  const info$6 = "_info_1u4j4_72";
2031
2034
  const secondary$6 = "_secondary_1u4j4_79";
2032
- const styles$8 = {
2035
+ const styles$9 = {
2033
2036
  card,
2034
2037
  title: title$1,
2035
2038
  body: body$1,
@@ -2058,20 +2061,20 @@ function Card({
2058
2061
  "div",
2059
2062
  {
2060
2063
  className: classNames(
2061
- styles$8.card,
2062
- styles$8[variant],
2064
+ styles$9.card,
2065
+ styles$9[variant],
2063
2066
  chamfer2 && chamferStyles.chamfer,
2064
- size2 === "large" && styles$8.large,
2065
- size2 === "small" && styles$8.small
2067
+ size2 === "large" && styles$9.large,
2068
+ size2 === "small" && styles$9.small
2066
2069
  ),
2067
2070
  ...props,
2068
2071
  children: [
2069
- title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames(styles$8.title, hatchStyles.hatch), children: title2 }),
2070
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$8.body, children: children2 }),
2072
+ title2 && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classNames(styles$9.title, hatchStyles.hatch), children: title2 }),
2073
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$9.body, children: children2 }),
2071
2074
  footerHeight > 0 && /* @__PURE__ */ jsxRuntimeExports.jsx(
2072
2075
  "div",
2073
2076
  {
2074
- className: classNames(hatchStyles.hatch, styles$8.footer),
2077
+ className: classNames(hatchStyles.hatch, styles$9.footer),
2075
2078
  style: { flexBasis: footerHeight },
2076
2079
  children: footer2
2077
2080
  }
@@ -2815,7 +2818,7 @@ const success$5 = "_success_178xv_135";
2815
2818
  const warning$5 = "_warning_178xv_144";
2816
2819
  const danger$5 = "_danger_178xv_153";
2817
2820
  const info$5 = "_info_178xv_162";
2818
- const styles$7 = {
2821
+ const styles$8 = {
2819
2822
  wrapper: wrapper$1,
2820
2823
  disabled: disabled$4,
2821
2824
  root: root$2,
@@ -2852,32 +2855,32 @@ function Checkbox({
2852
2855
  ...props
2853
2856
  }) {
2854
2857
  const labelContent = label2 ?? children2;
2855
- const variantClass = variant && styles$7[variant];
2856
- const sizeClass = size2 === "large" ? styles$7.large : size2 === "small" ? styles$7.small : null;
2858
+ const variantClass = variant && styles$8[variant];
2859
+ const sizeClass = size2 === "large" ? styles$8.large : size2 === "small" ? styles$8.small : null;
2857
2860
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
2858
2861
  "label",
2859
2862
  {
2860
- className: clsx(styles$7.wrapper, variantClass, disabled2 && styles$7.disabled),
2863
+ className: clsx(styles$8.wrapper, variantClass, disabled2 && styles$8.disabled),
2861
2864
  children: [
2862
2865
  /* @__PURE__ */ jsxRuntimeExports.jsx(
2863
2866
  Checkbox$1,
2864
2867
  {
2865
2868
  className: clsx(
2866
- styles$7.root,
2869
+ styles$8.root,
2867
2870
  variantClass,
2868
2871
  sizeClass,
2869
2872
  chamfer2 && chamferStyles.chamfer,
2870
2873
  disabled2 && chamferStyles.disabled,
2871
2874
  disabled2 && hatchStyles.hatch,
2872
- disabled2 && styles$7.disabledBox,
2875
+ disabled2 && styles$8.disabledBox,
2873
2876
  className
2874
2877
  ),
2875
2878
  disabled: disabled2,
2876
2879
  ...props,
2877
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$7.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, {}) })
2880
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckboxIndicator, { className: styles$8.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx(CheckIcon, {}) })
2878
2881
  }
2879
2882
  ),
2880
- labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$7.label, children: labelContent })
2883
+ labelContent && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$8.label, children: labelContent })
2881
2884
  ]
2882
2885
  }
2883
2886
  );
@@ -13727,7 +13730,7 @@ let nextClipId = 0;
13727
13730
  function getClipId() {
13728
13731
  return `plot-clip-${++nextClipId}`;
13729
13732
  }
13730
- function styles$6(mark, {
13733
+ function styles$7(mark, {
13731
13734
  title: title2,
13732
13735
  href,
13733
13736
  ariaLabel: variaLabel,
@@ -14093,7 +14096,7 @@ class Mark {
14093
14096
  this.facetAnchor = maybeFacetAnchor(facetAnchor);
14094
14097
  channels = maybeNamed(channels);
14095
14098
  if (extraChannels !== void 0) channels = { ...maybeChannels(extraChannels), ...channels };
14096
- if (defaults2 !== void 0) channels = { ...styles$6(this, options, defaults2), ...channels };
14099
+ if (defaults2 !== void 0) channels = { ...styles$7(this, options, defaults2), ...channels };
14097
14100
  this.channels = Object.fromEntries(
14098
14101
  Object.entries(channels).map(([name, channel]) => {
14099
14102
  if (isOptions(channel.value)) {
@@ -19131,7 +19134,7 @@ const info$4 = "_info_rojre_74";
19131
19134
  const secondary$4 = "_secondary_rojre_83";
19132
19135
  const field = "_field_rojre_92";
19133
19136
  const label$1 = "_label_rojre_98";
19134
- const styles$5 = {
19137
+ const styles$6 = {
19135
19138
  input,
19136
19139
  large: large$3,
19137
19140
  small: small$3,
@@ -19154,26 +19157,26 @@ function Input({
19154
19157
  ...props
19155
19158
  }) {
19156
19159
  const inputId = useId$1();
19157
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$5.field, children: [
19158
- label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$5.label, htmlFor: inputId, children: label2 }),
19160
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: styles$6.field, children: [
19161
+ label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("label", { className: styles$6.label, htmlFor: inputId, children: label2 }),
19159
19162
  /* @__PURE__ */ jsxRuntimeExports.jsx(
19160
19163
  "div",
19161
19164
  {
19162
19165
  className: classNames(
19163
19166
  chamfer2 && chamferStyles.chamfer,
19164
- styles$5[variant]
19167
+ styles$6[variant]
19165
19168
  ),
19166
19169
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(
19167
19170
  "input",
19168
19171
  {
19169
19172
  id: inputId,
19170
19173
  className: classNames(
19171
- styles$5.input,
19172
- styles$5[variant],
19173
- size2 === "large" && styles$5.large,
19174
- size2 === "small" && styles$5.small,
19174
+ styles$6.input,
19175
+ styles$6[variant],
19176
+ size2 === "large" && styles$6.large,
19177
+ size2 === "small" && styles$6.small,
19175
19178
  disabled2 && chamferStyles.disabled,
19176
- disabled2 && styles$5.disabled,
19179
+ disabled2 && styles$6.disabled,
19177
19180
  disabled2 && hatchStyles.hatch
19178
19181
  ),
19179
19182
  disabled: disabled2,
@@ -19764,7 +19767,7 @@ const success$3 = "_success_hpxu6_130";
19764
19767
  const warning$3 = "_warning_hpxu6_139";
19765
19768
  const danger$3 = "_danger_hpxu6_148";
19766
19769
  const info$3 = "_info_hpxu6_157";
19767
- const styles$4 = {
19770
+ const styles$5 = {
19768
19771
  group,
19769
19772
  wrapper,
19770
19773
  disabled: disabled$2,
@@ -19786,7 +19789,7 @@ const styles$4 = {
19786
19789
  const RadioGroup$1 = ({ className, children: children2, ...props }) => /* @__PURE__ */ jsxRuntimeExports.jsx(
19787
19790
  Root2$3,
19788
19791
  {
19789
- className: clsx(styles$4.group, className),
19792
+ className: clsx(styles$5.group, className),
19790
19793
  ...props,
19791
19794
  children: children2
19792
19795
  }
@@ -19801,33 +19804,33 @@ function Radio({
19801
19804
  className,
19802
19805
  ...props
19803
19806
  }) {
19804
- const variantClass = variant && styles$4[variant];
19805
- const sizeClass = size2 === "large" ? styles$4.large : size2 === "small" ? styles$4.small : null;
19807
+ const variantClass = variant && styles$5[variant];
19808
+ const sizeClass = size2 === "large" ? styles$5.large : size2 === "small" ? styles$5.small : null;
19806
19809
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
19807
19810
  "label",
19808
19811
  {
19809
- className: clsx(styles$4.wrapper, variantClass, disabled2 && styles$4.disabled),
19812
+ className: clsx(styles$5.wrapper, variantClass, disabled2 && styles$5.disabled),
19810
19813
  children: [
19811
19814
  /* @__PURE__ */ jsxRuntimeExports.jsx(
19812
19815
  Item2$2,
19813
19816
  {
19814
19817
  className: clsx(
19815
- styles$4.root,
19818
+ styles$5.root,
19816
19819
  variantClass,
19817
19820
  sizeClass,
19818
19821
  chamfer2 && chamferStyles.chamfer,
19819
19822
  disabled2 && chamferStyles.disabled,
19820
19823
  disabled2 && hatchStyles.hatch,
19821
- disabled2 && styles$4.disabledDot,
19824
+ disabled2 && styles$5.disabledDot,
19822
19825
  className
19823
19826
  ),
19824
19827
  value,
19825
19828
  disabled: disabled2,
19826
19829
  ...props,
19827
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$4.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.dot }) })
19830
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(Indicator, { className: styles$5.indicator, children: /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$5.dot }) })
19828
19831
  }
19829
19832
  ),
19830
- label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.label, children: label2 })
19833
+ label2 && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$5.label, children: label2 })
19831
19834
  ]
19832
19835
  }
19833
19836
  );
@@ -24387,7 +24390,7 @@ const warning$2 = "_warning_1u214_99";
24387
24390
  const danger$2 = "_danger_1u214_109";
24388
24391
  const info$2 = "_info_1u214_119";
24389
24392
  const secondary$2 = "_secondary_1u214_129";
24390
- const styles$3 = {
24393
+ const styles$4 = {
24391
24394
  trigger: trigger$1,
24392
24395
  large: large$1,
24393
24396
  small: small$1,
@@ -24423,18 +24426,18 @@ function SelectInput({
24423
24426
  Trigger$2,
24424
24427
  {
24425
24428
  className: clsx(
24426
- styles$3.trigger,
24427
- styles$3[variant],
24429
+ styles$4.trigger,
24430
+ styles$4[variant],
24428
24431
  chamfer2 && chamferStyles.chamfer,
24429
- size2 === "large" && styles$3.large,
24430
- size2 === "small" && styles$3.small,
24431
- disabled2 && styles$3.disabled,
24432
+ size2 === "large" && styles$4.large,
24433
+ size2 === "small" && styles$4.small,
24434
+ disabled2 && styles$4.disabled,
24432
24435
  disabled2 && hatchStyles.hatch
24433
24436
  // loading && styles.disabled
24434
24437
  ),
24435
24438
  children: [
24436
24439
  /* @__PURE__ */ jsxRuntimeExports.jsx(Value, {}),
24437
- loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$3.icon, children: "▾" })
24440
+ loading ? /* @__PURE__ */ jsxRuntimeExports.jsx(Loader, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, { className: styles$4.icon, children: "▾" })
24438
24441
  ]
24439
24442
  }
24440
24443
  ),
@@ -24442,7 +24445,7 @@ function SelectInput({
24442
24445
  Content2$2,
24443
24446
  {
24444
24447
  className: classNames(
24445
- styles$3.content,
24448
+ styles$4.content,
24446
24449
  chamfer2 && chamferStyles.chamfer
24447
24450
  ),
24448
24451
  sideOffset: 6,
@@ -24451,7 +24454,7 @@ function SelectInput({
24451
24454
  {
24452
24455
  value: opt.value,
24453
24456
  disabled: opt.disabled,
24454
- className: styles$3.item,
24457
+ className: styles$4.item,
24455
24458
  children: /* @__PURE__ */ jsxRuntimeExports.jsx(ItemText, { children: opt.label })
24456
24459
  },
24457
24460
  opt.value
@@ -25495,7 +25498,7 @@ const warning$1 = "_warning_12pwu_170";
25495
25498
  const danger$1 = "_danger_12pwu_181";
25496
25499
  const info$1 = "_info_12pwu_192";
25497
25500
  const secondary$1 = "_secondary_12pwu_203";
25498
- const styles$2 = {
25501
+ const styles$3 = {
25499
25502
  trigger,
25500
25503
  large,
25501
25504
  small,
@@ -25538,18 +25541,18 @@ function Dropdown({
25538
25541
  ...props
25539
25542
  }) {
25540
25543
  const triggerClassName = clsx(
25541
- styles$2.trigger,
25542
- variant && styles$2[variant],
25544
+ styles$3.trigger,
25545
+ variant && styles$3[variant],
25543
25546
  chamfer2 && chamferStyles.chamfer,
25544
- size2 === "large" && styles$2.large,
25545
- size2 === "small" && styles$2.small,
25546
- disabled2 && styles$2.disabled,
25547
+ size2 === "large" && styles$3.large,
25548
+ size2 === "small" && styles$3.small,
25549
+ disabled2 && styles$3.disabled,
25547
25550
  disabled2 && hatchStyles.hatch,
25548
25551
  _triggerClassName
25549
25552
  );
25550
25553
  const contentClassName = clsx(
25551
- styles$2.content,
25552
- variant && styles$2[variant],
25554
+ styles$3.content,
25555
+ variant && styles$3[variant],
25553
25556
  chamfer2 && chamferStyles.chamfer
25554
25557
  );
25555
25558
  const handleItemSelect = (item2) => {
@@ -25578,13 +25581,13 @@ function Dropdown({
25578
25581
  side,
25579
25582
  sideOffset: 0,
25580
25583
  ...contentProps,
25581
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.viewport, children: items.map((item2, index2) => {
25584
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$3.viewport, children: items.map((item2, index2) => {
25582
25585
  if (item2.type === "separator") {
25583
25586
  const separatorKey = item2.key ?? `separator-${index2}`;
25584
25587
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
25585
25588
  Separator2,
25586
25589
  {
25587
- className: styles$2.separator
25590
+ className: styles$3.separator
25588
25591
  },
25589
25592
  separatorKey
25590
25593
  );
@@ -25595,10 +25598,10 @@ function Dropdown({
25595
25598
  {
25596
25599
  onSelect: () => handleItemSelect(item2),
25597
25600
  disabled: item2.disabled,
25598
- className: styles$2.item,
25601
+ className: styles$3.item,
25599
25602
  children: [
25600
- item2.icon && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$2.itemIcon, "aria-hidden": true, children: item2.icon }),
25601
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$2.itemLabel, children: item2.label })
25603
+ item2.icon && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$3.itemIcon, "aria-hidden": true, children: item2.icon }),
25604
+ /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$3.itemLabel, children: item2.label })
25602
25605
  ]
25603
25606
  },
25604
25607
  itemKey
@@ -25608,6 +25611,25 @@ function Dropdown({
25608
25611
  ) })
25609
25612
  ] });
25610
25613
  }
25614
+ const hatch = "_hatch_zh2j3_1";
25615
+ const styles$2 = {
25616
+ hatch
25617
+ };
25618
+ function Hatch({ children: children2, className, ...props }) {
25619
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
25620
+ "div",
25621
+ {
25622
+ className: classNames(
25623
+ styles$2.hatch,
25624
+ hatchStyles.hatch,
25625
+ chamferStyles.chamfer,
25626
+ className
25627
+ ),
25628
+ ...props,
25629
+ children: children2
25630
+ }
25631
+ );
25632
+ }
25611
25633
  let e = { data: "" }, t = (t4) => {
25612
25634
  if ("object" == typeof window) {
25613
25635
  let e3 = (t4 ? t4.querySelector("#_goober") : window._goober) || Object.assign(document.createElement("style"), { innerHTML: " ", id: "_goober" });
@@ -26772,6 +26794,7 @@ export {
26772
26794
  Checkbox,
26773
26795
  ColorSwitcher,
26774
26796
  Dropdown,
26797
+ Hatch,
26775
26798
  Input,
26776
26799
  JCUIProvider,
26777
26800
  Layout,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jackcrane/ui",
3
- "version": "0.1.4",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "main": "dist/jcui.cjs.js",