@simpli-route/apollo-ds 0.0.9 → 0.0.10

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.
Files changed (54) hide show
  1. package/dist/components/Tabs/Tab.d.ts +3 -0
  2. package/dist/components/Tabs/TabPanel.d.ts +3 -0
  3. package/dist/components/Tabs/Tabs.d.ts +6 -0
  4. package/dist/components/Tabs/Tabs.test.d.ts +1 -0
  5. package/dist/components/Tabs/index.d.ts +2 -0
  6. package/dist/components/Tabs/types.d.ts +68 -0
  7. package/dist/components/Tabs/variants.d.ts +7 -0
  8. package/dist/index.cjs.js +1 -1
  9. package/dist/index.cjs10.js +1 -1
  10. package/dist/index.cjs11.js +1 -1
  11. package/dist/index.cjs12.js +1 -9
  12. package/dist/index.cjs13.js +1 -19
  13. package/dist/index.cjs14.js +1 -1
  14. package/dist/index.cjs16.js +1 -1
  15. package/dist/index.cjs17.js +9 -1
  16. package/dist/index.cjs18.js +19 -1
  17. package/dist/index.cjs19.js +1 -1
  18. package/dist/index.cjs2.js +1 -1
  19. package/dist/index.cjs20.js +1 -0
  20. package/dist/index.cjs21.js +1 -0
  21. package/dist/index.cjs22.js +1 -0
  22. package/dist/index.cjs23.js +1 -0
  23. package/dist/index.cjs3.js +1 -1
  24. package/dist/index.cjs4.js +1 -1
  25. package/dist/index.cjs5.js +1 -1
  26. package/dist/index.cjs6.js +1 -1
  27. package/dist/index.cjs7.js +1 -1
  28. package/dist/index.cjs8.js +1 -1
  29. package/dist/index.cjs9.js +1 -1
  30. package/dist/index.d.ts +1 -0
  31. package/dist/index.es.js +6 -4
  32. package/dist/index.es10.js +21 -22
  33. package/dist/index.es11.js +10 -2
  34. package/dist/index.es12.js +10 -30
  35. package/dist/index.es13.js +31 -599
  36. package/dist/index.es14.js +22 -5
  37. package/dist/index.es16.js +2 -2
  38. package/dist/index.es17.js +30 -2
  39. package/dist/index.es18.js +599 -21
  40. package/dist/index.es19.js +5 -21
  41. package/dist/index.es2.js +3 -3
  42. package/dist/index.es20.js +4 -0
  43. package/dist/index.es21.js +4 -0
  44. package/dist/index.es22.js +23 -0
  45. package/dist/index.es23.js +23 -0
  46. package/dist/index.es3.js +3 -3
  47. package/dist/index.es4.js +2 -2
  48. package/dist/index.es5.js +3 -3
  49. package/dist/index.es6.js +3 -3
  50. package/dist/index.es7.js +33 -6
  51. package/dist/index.es8.js +6 -6
  52. package/dist/index.es9.js +6 -21
  53. package/dist/style.css +40 -0
  54. package/package.json +2 -1
@@ -0,0 +1,4 @@
1
+ var r = {};
2
+ export {
3
+ r as __exports
4
+ };
@@ -0,0 +1,4 @@
1
+ var e = {};
2
+ export {
3
+ e as __exports
4
+ };
@@ -0,0 +1,23 @@
1
+ import t from "react";
2
+ const e = t, a = ({
3
+ title: r,
4
+ titleId: n,
5
+ ...l
6
+ }, o) => /* @__PURE__ */ e.createElement("svg", Object.assign({
7
+ fill: "currentColor",
8
+ "aria-hidden": "true",
9
+ viewBox: "0 0 24 24",
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ ref: o,
12
+ "aria-labelledby": n
13
+ }, l), r ? /* @__PURE__ */ e.createElement("title", {
14
+ id: n
15
+ }, r) : null, /* @__PURE__ */ e.createElement("path", {
16
+ fillRule: "evenodd",
17
+ d: "M2 11.85c0-.47.35-.85.783-.85h18.434c.432 0 .783.38.783.85s-.35.85-.783.85H2.783c-.432 0-.783-.38-.783-.85Z",
18
+ clipRule: "evenodd"
19
+ })), c = e.forwardRef(a);
20
+ var s = c;
21
+ export {
22
+ s as M
23
+ };
@@ -0,0 +1,23 @@
1
+ import t from "react";
2
+ const e = t, n = ({
3
+ title: r,
4
+ titleId: a,
5
+ ...l
6
+ }, o) => /* @__PURE__ */ e.createElement("svg", Object.assign({
7
+ fill: "currentColor",
8
+ "aria-hidden": "true",
9
+ viewBox: "0 0 24 24",
10
+ xmlns: "http://www.w3.org/2000/svg",
11
+ ref: o,
12
+ "aria-labelledby": a
13
+ }, l), r ? /* @__PURE__ */ e.createElement("title", {
14
+ id: a
15
+ }, r) : null, /* @__PURE__ */ e.createElement("path", {
16
+ fillRule: "evenodd",
17
+ d: "M11.885 2c.433 0 .783.35.783.783v8.434h8.549a.783.783 0 1 1 0 1.566h-8.549v8.434a.783.783 0 1 1-1.567 0v-8.434H2.783a.783.783 0 1 1 0-1.566h8.318V2.783c0-.432.351-.783.784-.783Z",
18
+ clipRule: "evenodd"
19
+ })), c = e.forwardRef(n);
20
+ var d = c;
21
+ export {
22
+ d as P
23
+ };
package/dist/index.es3.js CHANGED
@@ -1,10 +1,10 @@
1
- import { j as s } from "./index.es7.js";
1
+ import { j as s } from "./index.es8.js";
2
2
  import { Button as I } from "react-aria-components";
3
- import { cn as x } from "./index.es8.js";
3
+ import { cn as x } from "./index.es9.js";
4
4
  import "react";
5
5
  import { buttonVariants as B } from "./index.es15.js";
6
6
  import { Loader as y } from "./index.es4.js";
7
- import "./index.es10.js";
7
+ import "./index.es14.js";
8
8
  const j = ({
9
9
  renderPosition: t,
10
10
  leftIcon: m,
package/dist/index.es4.js CHANGED
@@ -1,6 +1,6 @@
1
- import { j as e } from "./index.es7.js";
1
+ import { j as e } from "./index.es8.js";
2
2
  import { useVisuallyHidden as a } from "react-aria";
3
- import { cn as l } from "./index.es8.js";
3
+ import { cn as l } from "./index.es9.js";
4
4
  const d = ({ className: s, label: r, size: t = "sm" }) => {
5
5
  const i = (() => {
6
6
  switch (t) {
package/dist/index.es5.js CHANGED
@@ -1,6 +1,6 @@
1
- import { j as m } from "./index.es7.js";
2
- import { cn as n } from "./index.es8.js";
3
- import { textVariants as a } from "./index.es10.js";
1
+ import { j as m } from "./index.es8.js";
2
+ import { cn as n } from "./index.es9.js";
3
+ import { textVariants as a } from "./index.es14.js";
4
4
  function x(t) {
5
5
  const { children: s, type: o = "body", className: r } = t, e = n(a({ type: o }), r);
6
6
  return /* @__PURE__ */ m.jsx("p", { className: e, children: s });
package/dist/index.es6.js CHANGED
@@ -1,6 +1,6 @@
1
- import { j as m } from "./index.es7.js";
2
- import { cn as c } from "./index.es8.js";
3
- import { titleVariants as l } from "./index.es10.js";
1
+ import { j as m } from "./index.es8.js";
2
+ import { cn as c } from "./index.es9.js";
3
+ import { titleVariants as l } from "./index.es14.js";
4
4
  function j(s) {
5
5
  const { children: e, type: t = "h1", size: r = t, className: i, ...o } = s, n = t, a = c(l({ size: r }), i);
6
6
  return /* @__PURE__ */ m.jsx(n, { className: a, ...o, children: e });
package/dist/index.es7.js CHANGED
@@ -1,8 +1,35 @@
1
- import { __module as e } from "./index.es11.js";
2
- import { __require as r } from "./index.es12.js";
3
- import { __require as o } from "./index.es13.js";
4
- process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
5
- var m = e.exports;
1
+ import { j as s } from "./index.es8.js";
2
+ import { useRef as x } from "react";
3
+ import { useTabList as b } from "react-aria";
4
+ import { useTabListState as d, Item as N } from "react-stately";
5
+ import { cn as e } from "./index.es9.js";
6
+ import { Tab as j } from "./index.es11.js";
7
+ import { TabPanel as u } from "./index.es12.js";
8
+ import { tabsVariants as h } from "./index.es13.js";
9
+ const T = (a) => {
10
+ var m;
11
+ const { rootClassName: i, tabClassName: n, tabPanelClassName: c, orientation: o = "horizontal", id: f = void 0 } = a, t = d(a), r = x(null), { tabListProps: p } = b(a, t, r);
12
+ return /* @__PURE__ */ s.jsxs("div", { className: e(h({ orientation: o }), i), children: [
13
+ /* @__PURE__ */ s.jsx(
14
+ "div",
15
+ {
16
+ ...p,
17
+ ref: r,
18
+ className: e("flex", o === "horizontal" ? "flex-row flex-wrap" : "flex-col"),
19
+ children: [...t.collection].map((l) => /* @__PURE__ */ s.jsx(j, { item: l, state: t, orientation: o, className: n, id: f }, l.key))
20
+ }
21
+ ),
22
+ /* @__PURE__ */ s.jsx(
23
+ u,
24
+ {
25
+ state: t,
26
+ className: e("p-2", o === "horizontal" ? "pl-2" : "pt-2", c)
27
+ },
28
+ (m = t.selectedItem) == null ? void 0 : m.key
29
+ )
30
+ ] });
31
+ };
32
+ T.Item = N;
6
33
  export {
7
- m as j
34
+ T as Tabs
8
35
  };
package/dist/index.es8.js CHANGED
@@ -1,8 +1,8 @@
1
- import { clsx as o } from "clsx";
2
- import { twMerge as t } from "tailwind-merge";
3
- function n(...r) {
4
- return t(o(r));
5
- }
1
+ import { __module as e } from "./index.es16.js";
2
+ import { __require as r } from "./index.es17.js";
3
+ import { __require as o } from "./index.es18.js";
4
+ process.env.NODE_ENV === "production" ? e.exports = r() : e.exports = o();
5
+ var m = e.exports;
6
6
  export {
7
- n as cn
7
+ m as j
8
8
  };
package/dist/index.es9.js CHANGED
@@ -1,23 +1,8 @@
1
- import { j as s } from "./index.es7.js";
2
- import { MinusIcon as m, PlusIcon as p } from "./index.es14.js";
3
- import { cn as e } from "./index.es8.js";
4
- const b = ({
5
- label: o,
6
- section: n,
7
- active: r,
8
- onToggle: t,
9
- itemClassName: c,
10
- sectionClassName: i
11
- }) => {
12
- const l = e("rounded-md border border-solid border-purple-200 bg-gray-100", c), a = e("px-4 pb-4", i), d = r ? m : p;
13
- return /* @__PURE__ */ s.jsxs("div", { className: l, children: [
14
- /* @__PURE__ */ s.jsxs("button", { className: "flex w-full cursor-pointer items-center gap-x-4 p-4", onClick: t, children: [
15
- /* @__PURE__ */ s.jsx("div", { className: "flex-1", children: o }),
16
- /* @__PURE__ */ s.jsx("span", { className: `shrink-0 transition duration-300 ${r ? "-rotate-180" : "rotate-0"}`, children: /* @__PURE__ */ s.jsx(d, { className: "size-6" }) })
17
- ] }),
18
- r ? /* @__PURE__ */ s.jsx("div", { className: a, children: n }) : null
19
- ] });
20
- };
1
+ import { clsx as o } from "clsx";
2
+ import { twMerge as t } from "tailwind-merge";
3
+ function n(...r) {
4
+ return t(o(r));
5
+ }
21
6
  export {
22
- b as AccordionItem
7
+ n as cn
23
8
  };
package/dist/style.css CHANGED
@@ -759,6 +759,9 @@ select {
759
759
  .inline-flex {
760
760
  display: inline-flex;
761
761
  }
762
+ .contents {
763
+ display: contents;
764
+ }
762
765
  .size-6 {
763
766
  width: 1.5rem;
764
767
  height: 1.5rem;
@@ -778,6 +781,9 @@ select {
778
781
  .h-full {
779
782
  height: 100%;
780
783
  }
784
+ .max-h-12 {
785
+ max-height: 3rem;
786
+ }
781
787
  .w-12 {
782
788
  width: 3rem;
783
789
  }
@@ -843,6 +849,9 @@ select {
843
849
  .flex-col {
844
850
  flex-direction: column;
845
851
  }
852
+ .flex-wrap {
853
+ flex-wrap: wrap;
854
+ }
846
855
  .items-end {
847
856
  align-items: flex-end;
848
857
  }
@@ -890,12 +899,22 @@ select {
890
899
  .border-\[1px\] {
891
900
  border-width: 1px;
892
901
  }
902
+ .border-b-2 {
903
+ border-bottom-width: 2px;
904
+ }
905
+ .border-r-2 {
906
+ border-right-width: 2px;
907
+ }
893
908
  .border-solid {
894
909
  border-style: solid;
895
910
  }
896
911
  .border-none {
897
912
  border-style: none;
898
913
  }
914
+ .border-primary-200 {
915
+ --tw-border-opacity: 1;
916
+ border-color: rgb(212 208 251 / var(--tw-border-opacity));
917
+ }
899
918
  .border-primary-500 {
900
919
  --tw-border-opacity: 1;
901
920
  border-color: rgb(76 59 239 / var(--tw-border-opacity));
@@ -1006,6 +1025,9 @@ select {
1006
1025
  .fill-primary-500 {
1007
1026
  fill: #4C3BEF;
1008
1027
  }
1028
+ .p-2 {
1029
+ padding: 0.5rem;
1030
+ }
1009
1031
  .p-4 {
1010
1032
  padding: 1rem;
1011
1033
  }
@@ -1040,6 +1062,12 @@ select {
1040
1062
  .pb-4 {
1041
1063
  padding-bottom: 1rem;
1042
1064
  }
1065
+ .pl-2 {
1066
+ padding-left: 0.5rem;
1067
+ }
1068
+ .pt-2 {
1069
+ padding-top: 0.5rem;
1070
+ }
1043
1071
  .text-left {
1044
1072
  text-align: left;
1045
1073
  }
@@ -1149,6 +1177,10 @@ select {
1149
1177
  --tw-text-opacity: 1;
1150
1178
  color: rgb(76 59 239 / var(--tw-text-opacity));
1151
1179
  }
1180
+ .text-primary-600 {
1181
+ --tw-text-opacity: 1;
1182
+ color: rgb(42 22 218 / var(--tw-text-opacity));
1183
+ }
1152
1184
  .text-primary-800 {
1153
1185
  --tw-text-opacity: 1;
1154
1186
  color: rgb(23 13 108 / var(--tw-text-opacity));
@@ -1218,6 +1250,10 @@ select {
1218
1250
  .ease-in-out {
1219
1251
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1220
1252
  }
1253
+ .hover\:text-primary-900:hover {
1254
+ --tw-text-opacity: 1;
1255
+ color: rgb(12 6 69 / var(--tw-text-opacity));
1256
+ }
1221
1257
  .focus\:outline-none:focus {
1222
1258
  outline: 2px solid transparent;
1223
1259
  outline-offset: 2px;
@@ -1254,3 +1290,7 @@ select {
1254
1290
  .focus\:ring-offset-\[0\.4px\]:focus {
1255
1291
  --tw-ring-offset-width: 0.4px;
1256
1292
  }
1293
+ .focus-visible\:outline-none:focus-visible {
1294
+ outline: 2px solid transparent;
1295
+ outline-offset: 2px;
1296
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@simpli-route/apollo-ds",
3
- "version": "0.0.9",
3
+ "version": "0.0.10",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -33,6 +33,7 @@
33
33
  "clsx": "^2.1.0",
34
34
  "react-aria": "^3.32.1",
35
35
  "react-aria-components": "^1.1.1",
36
+ "react-stately": "^3.31.1",
36
37
  "tailwind-merge": "^2.2.2"
37
38
  },
38
39
  "devDependencies": {