@simpli-route/apollo-ds 0.0.8 → 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 (56) 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 -1
  12. package/dist/index.cjs13.js +1 -9
  13. package/dist/index.cjs14.js +1 -19
  14. package/dist/index.cjs15.js +1 -1
  15. package/dist/index.cjs16.js +1 -1
  16. package/dist/index.cjs17.js +9 -1
  17. package/dist/index.cjs18.js +19 -1
  18. package/dist/index.cjs19.js +1 -1
  19. package/dist/index.cjs2.js +1 -1
  20. package/dist/index.cjs20.js +1 -0
  21. package/dist/index.cjs21.js +1 -0
  22. package/dist/index.cjs22.js +1 -0
  23. package/dist/index.cjs23.js +1 -0
  24. package/dist/index.cjs3.js +1 -1
  25. package/dist/index.cjs4.js +1 -1
  26. package/dist/index.cjs5.js +1 -1
  27. package/dist/index.cjs6.js +1 -1
  28. package/dist/index.cjs7.js +1 -1
  29. package/dist/index.cjs8.js +1 -1
  30. package/dist/index.cjs9.js +1 -1
  31. package/dist/index.d.ts +1 -0
  32. package/dist/index.es.js +6 -4
  33. package/dist/index.es10.js +21 -22
  34. package/dist/index.es11.js +10 -175
  35. package/dist/index.es12.js +10 -2
  36. package/dist/index.es13.js +30 -29
  37. package/dist/index.es14.js +22 -599
  38. package/dist/index.es15.js +173 -5
  39. package/dist/index.es16.js +2 -2
  40. package/dist/index.es17.js +30 -2
  41. package/dist/index.es18.js +599 -21
  42. package/dist/index.es19.js +5 -21
  43. package/dist/index.es2.js +3 -3
  44. package/dist/index.es20.js +4 -0
  45. package/dist/index.es21.js +4 -0
  46. package/dist/index.es22.js +23 -0
  47. package/dist/index.es23.js +23 -0
  48. package/dist/index.es3.js +4 -4
  49. package/dist/index.es4.js +2 -2
  50. package/dist/index.es5.js +3 -3
  51. package/dist/index.es6.js +3 -3
  52. package/dist/index.es7.js +33 -6
  53. package/dist/index.es8.js +6 -6
  54. package/dist/index.es9.js +6 -21
  55. package/dist/style.css +51 -11
  56. package/package.json +2 -1
@@ -1,177 +1,12 @@
1
- import { cva as r } from "class-variance-authority";
2
- const t = r(
3
- "inline-flex select-none items-center justify-center text-center text-base font-semibold leading-6 transition duration-150 ease-in-out focus:outline-none",
4
- {
5
- variants: {
6
- intent: {
7
- primary: "bg-primary-500 text-primary-50",
8
- secondary: "border border-primary-500 bg-primary-50 text-primary-500",
9
- tertiary: "text-primary-500",
10
- outline: "border border-primary-500 text-primary-500",
11
- success: "border bg-success-500 text-success-50",
12
- error: "border bg-error-500 text-error-50",
13
- orangeWarning: "border bg-orange-warning-500 text-orange-warning-50",
14
- yellowWarning: "border bg-yellow-warning-500 text-[#6F5711]",
15
- info: "border bg-[#2644D9] text-[#F6F8FC]"
16
- // TODO: Este color es nuevo, agregarlo en @simpli-route/tailwind-preset con nombre "secondary-blue"
17
- },
18
- size: {
19
- xs: "rounded px-3 py-1",
20
- sm: "rounded px-3 py-2",
21
- md: "rounded-lg px-4 py-3",
22
- lg: "rounded-lg px-6 py-4"
23
- },
24
- isDisabled: {
25
- true: "pointer-events-none cursor-not-allowed border-none bg-neutral-400 text-neutral-600"
26
- },
27
- isHovered: {
28
- true: ""
29
- },
30
- isActive: {
31
- true: ""
32
- },
33
- fullWidth: {
34
- true: "w-full",
35
- false: "w-fit"
36
- },
37
- isLoading: {
38
- true: "pointer-events-none cursor-not-allowed opacity-70"
39
- },
40
- isFocused: {
41
- true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",
42
- false: ""
43
- }
44
- },
45
- defaultVariants: {
46
- intent: "primary",
47
- size: "md"
48
- },
49
- compoundVariants: [
50
- /* Hover State */
51
- {
52
- intent: "primary",
53
- isHovered: !0,
54
- class: "bg-primary-700"
55
- },
56
- {
57
- intent: "secondary",
58
- isHovered: !0,
59
- class: "bg-primary-200"
60
- },
61
- {
62
- intent: "tertiary",
63
- isHovered: !0,
64
- class: "bg-primary-300 text-primary-800"
65
- },
66
- {
67
- intent: "outline",
68
- isHovered: !0,
69
- class: "bg-primary-500 text-primary-50"
70
- },
71
- {
72
- intent: "success",
73
- isHovered: !0,
74
- class: "bg-success-700 text-neutral-50"
75
- },
76
- {
77
- intent: "error",
78
- isHovered: !0,
79
- class: "bg-error-700 text-error-50"
80
- },
81
- {
82
- intent: "orangeWarning",
83
- isHovered: !0,
84
- class: "bg-orange-warning-700 text-orange-warning-50"
85
- },
86
- {
87
- intent: "yellowWarning",
88
- isHovered: !0,
89
- class: "bg-yellow-warning-700 text-neutral-50"
90
- },
91
- {
92
- intent: "info",
93
- isHovered: !0,
94
- class: "bg-[#1B3098] text-[#F6F8FC]"
95
- // TODO: Este color es nuevo, agregarlo en @simpli-route/tailwind-preset con nombre "secondary-blue"
96
- },
97
- /* /Focus State */
98
- {
99
- intent: "success",
100
- isFocused: !0,
101
- class: "border-[1.5px] focus:ring-success-500"
102
- },
103
- {
104
- intent: "error",
105
- isFocused: !0,
106
- class: "border-[1.5px] focus:ring-error-500"
107
- },
108
- {
109
- intent: "orangeWarning",
110
- isFocused: !0,
111
- class: "border-[1.5px] focus:ring-orange-500"
112
- },
113
- {
114
- intent: "yellowWarning",
115
- isFocused: !0,
116
- class: "border-[1.5px] focus:ring-yellow-500"
117
- },
118
- {
119
- intent: "info",
120
- isFocused: !0,
121
- class: "border-[1.5px] focus:ring-[#2644D9]"
122
- // TODO: Este color es nuevo, agregarlo en @simpli-route/tailwind-preset con nombre "secondary-blue"
123
- },
124
- /* Active State */
125
- {
126
- intent: "primary",
127
- isActive: !0,
128
- class: "bg-primary-900"
129
- },
130
- {
131
- intent: "secondary",
132
- isActive: !0,
133
- class: "bg-primary-300"
134
- },
135
- {
136
- intent: "tertiary",
137
- isActive: !0,
138
- class: "bg-primary-500 text-white"
139
- },
140
- {
141
- intent: "outline",
142
- isActive: !0,
143
- class: "border border-primary-500 bg-primary-300 text-primary-500"
144
- },
145
- {
146
- intent: "success",
147
- isActive: !0,
148
- class: "border border-transparent bg-success-300 text-success-900"
149
- },
150
- {
151
- intent: "error",
152
- isActive: !0,
153
- class: "border border-transparent bg-error-300 text-error-900"
154
- },
155
- {
156
- intent: "orangeWarning",
157
- isActive: !0,
158
- class: "border border-transparent bg-orange-warning-300 text-orange-warning-900"
159
- },
160
- {
161
- intent: "yellowWarning",
162
- isActive: !0,
163
- class: "border border-transparent bg-yellow-warning-300 text-[#6F5711]"
164
- },
165
- {
166
- intent: "info",
167
- isActive: !0,
168
- class: "border border-transparent bg-[#A8B4F0] text-[#0B1441]"
169
- // TODO: Este color es nuevo, agregarlo en @simpli-route/tailwind-preset con nombre "secondary-blue"
170
- }
171
- /* /Active State */
172
- ]
173
- }
174
- );
1
+ import { j as f } from "./index.es8.js";
2
+ import { useRef as l } from "react";
3
+ import { useTab as u } from "react-aria";
4
+ import { cn as b } from "./index.es9.js";
5
+ import { tabVariants as x } from "./index.es13.js";
6
+ const R = (o) => {
7
+ const { className: r, item: i, orientation: n, state: t, id: a = void 0 } = o, { key: s, rendered: c } = i, m = t.selectedKey === s, e = l(null), { tabProps: p } = u({ key: String(s) }, t, e), d = b(x({ isActive: m, orientation: n }), r);
8
+ return /* @__PURE__ */ f.jsx("div", { ...p, ref: e, className: d, id: a, children: c });
9
+ };
175
10
  export {
176
- t as buttonVariants
11
+ R as Tab
177
12
  };
@@ -1,4 +1,12 @@
1
- var e = { exports: {} };
1
+ import { j as m } from "./index.es8.js";
2
+ import { useRef as l } from "react";
3
+ import { useTabPanel as p } from "react-aria";
4
+ import { cn as i } from "./index.es9.js";
5
+ const P = (r) => {
6
+ var t;
7
+ const { className: o, state: s, ...n } = r, e = l(null), { tabPanelProps: a } = p(n, s, e), c = i("", o);
8
+ return /* @__PURE__ */ m.jsx("div", { ...a, ref: e, className: c, children: (t = s.selectedItem) == null ? void 0 : t.props.children });
9
+ };
2
10
  export {
3
- e as __module
11
+ P as TabPanel
4
12
  };
@@ -1,32 +1,33 @@
1
- import { __exports as t } from "./index.es16.js";
2
- import R from "react";
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.min.js
6
- *
7
- * Copyright (c) Facebook, Inc. and its affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var p;
13
- function v() {
14
- if (p)
15
- return t;
16
- p = 1;
17
- var s = R, m = Symbol.for("react.element"), l = Symbol.for("react.fragment"), c = Object.prototype.hasOwnProperty, d = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, y = { key: !0, ref: !0, __self: !0, __source: !0 };
18
- function i(o, r, u) {
19
- var e, n = {}, _ = null, f = null;
20
- u !== void 0 && (_ = "" + u), r.key !== void 0 && (_ = "" + r.key), r.ref !== void 0 && (f = r.ref);
21
- for (e in r)
22
- c.call(r, e) && !y.hasOwnProperty(e) && (n[e] = r[e]);
23
- if (o && o.defaultProps)
24
- for (e in r = o.defaultProps, r)
25
- n[e] === void 0 && (n[e] = r[e]);
26
- return { $$typeof: m, type: o, key: _, ref: f, props: n, _owner: d.current };
1
+ import { cva as r } from "class-variance-authority";
2
+ const e = r("flex h-full max-h-12", {
3
+ variants: {
4
+ orientation: {
5
+ horizontal: "flex-col",
6
+ vertical: "flex-row"
7
+ }
27
8
  }
28
- return t.Fragment = l, t.jsx = i, t.jsxs = i, t;
29
- }
9
+ }), i = r(
10
+ "group inline-flex cursor-pointer items-center px-4 py-3 text-base font-semibold focus-visible:outline-none",
11
+ {
12
+ variants: {
13
+ isActive: {
14
+ true: "bg-primary-50 text-primary-600 ",
15
+ false: "text-neutral-500 hover:text-primary-900"
16
+ },
17
+ orientation: {
18
+ horizontal: "border-b-2 border-transparent",
19
+ vertical: "border-r-2 border-transparent"
20
+ }
21
+ },
22
+ compoundVariants: [
23
+ { isActive: !0, orientation: "horizontal", class: "border-b-2 border-primary-500" },
24
+ { isActive: !1, orientation: "horizontal", class: "border-b-2 border-primary-200" },
25
+ { isActive: !1, orientation: "vertical", class: "border-r-2 border-primary-200" },
26
+ { isActive: !0, orientation: "vertical", class: "border-r-2 border-primary-500" }
27
+ ]
28
+ }
29
+ );
30
30
  export {
31
- v as __require
31
+ i as tabVariants,
32
+ e as tabsVariants
32
33
  };