@simpli-route/apollo-ds 0.0.6 → 0.0.7
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/components/Accordion/Accordion.d.ts +3 -0
- package/dist/components/Accordion/Accordion.test.d.ts +1 -0
- package/dist/components/Accordion/AccordionItem.d.ts +3 -0
- package/dist/components/Accordion/index.d.ts +2 -0
- package/dist/components/Accordion/types.d.ts +28 -0
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/index.d.ts +1 -1
- package/dist/components/Button/types.d.ts +3 -2
- package/dist/components/Typography/Text.d.ts +3 -0
- package/dist/components/Typography/Text.test.d.ts +1 -0
- package/dist/components/Typography/Title.d.ts +3 -0
- package/dist/components/Typography/Title.test.d.ts +1 -0
- package/dist/components/Typography/index.d.ts +3 -0
- package/dist/components/Typography/types.d.ts +16 -0
- package/dist/components/Typography/variants.d.ts +6 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.cjs10.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs12.js +9 -0
- package/dist/index.cjs13.js +19 -0
- package/dist/index.cjs14.js +1 -0
- package/dist/index.cjs15.js +1 -0
- package/dist/index.cjs16.js +1 -0
- package/dist/index.cjs17.js +1 -0
- package/dist/index.cjs18.js +1 -0
- package/dist/index.cjs19.js +1 -0
- package/dist/index.cjs2.js +1 -1
- package/dist/index.cjs3.js +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs5.js +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs8.js +1 -9
- package/dist/index.cjs9.js +1 -19
- package/dist/index.d.ts +4 -1
- package/dist/index.es.js +10 -4
- package/dist/index.es10.js +22 -2
- package/dist/index.es11.js +2 -2
- package/dist/index.es12.js +32 -0
- package/dist/index.es13.js +601 -0
- package/dist/index.es14.js +7 -0
- package/dist/index.es15.js +173 -0
- package/dist/index.es16.js +4 -0
- package/dist/index.es17.js +4 -0
- package/dist/index.es18.js +23 -0
- package/dist/index.es19.js +23 -0
- package/dist/index.es2.js +20 -77
- package/dist/index.es3.js +86 -48
- package/dist/index.es4.js +50 -6
- package/dist/index.es5.js +7 -5
- package/dist/index.es6.js +8 -171
- package/dist/index.es7.js +6 -2
- package/dist/index.es8.js +5 -29
- package/dist/index.es9.js +21 -599
- package/dist/stories/Accordion.stories.d.ts +10 -0
- package/dist/stories/Button.stories.d.ts +1 -1
- package/dist/stories/Text.stories.d.ts +20 -0
- package/dist/stories/Title.stories.d.ts +24 -0
- package/dist/style.css +117 -0
- package/package.json +1 -1
package/dist/index.es6.js
CHANGED
|
@@ -1,173 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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 border-success-800 text-success-800",
|
|
12
|
-
error: "border border-error-800 text-error-800",
|
|
13
|
-
orangeWarning: "border border-orange-warning-800 text-orange-warning-800",
|
|
14
|
-
yellowWarning: "border border-yellow-warning-800 text-yellow-warning-800",
|
|
15
|
-
info: "border border-primary-800 text-primary-800"
|
|
16
|
-
},
|
|
17
|
-
size: {
|
|
18
|
-
xs: "rounded px-3 py-1",
|
|
19
|
-
sm: "rounded px-3 py-2",
|
|
20
|
-
md: "rounded-lg px-4 py-3",
|
|
21
|
-
lg: "rounded-lg px-6 py-4"
|
|
22
|
-
},
|
|
23
|
-
isDisabled: {
|
|
24
|
-
true: "pointer-events-none cursor-not-allowed border-none bg-neutral-400 text-neutral-600"
|
|
25
|
-
},
|
|
26
|
-
isHovered: {
|
|
27
|
-
true: ""
|
|
28
|
-
},
|
|
29
|
-
isActive: {
|
|
30
|
-
true: ""
|
|
31
|
-
},
|
|
32
|
-
fullWidth: {
|
|
33
|
-
true: "w-full",
|
|
34
|
-
false: "w-fit"
|
|
35
|
-
},
|
|
36
|
-
isLoading: {
|
|
37
|
-
true: "pointer-events-none cursor-not-allowed opacity-70"
|
|
38
|
-
},
|
|
39
|
-
isFocused: {
|
|
40
|
-
true: "focus:outline-none focus:ring-2 focus:ring-sky-400 focus:ring-offset-[0.4px] border-none",
|
|
41
|
-
false: ""
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
defaultVariants: {
|
|
45
|
-
intent: "primary",
|
|
46
|
-
size: "md"
|
|
47
|
-
},
|
|
48
|
-
compoundVariants: [
|
|
49
|
-
/* Hover State */
|
|
50
|
-
{
|
|
51
|
-
intent: "primary",
|
|
52
|
-
isHovered: !0,
|
|
53
|
-
class: "bg-primary-700"
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
intent: "secondary",
|
|
57
|
-
isHovered: !0,
|
|
58
|
-
class: "bg-primary-200"
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
intent: "tertiary",
|
|
62
|
-
isHovered: !0,
|
|
63
|
-
class: "bg-primary-300 text-primary-800"
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
intent: "outline",
|
|
67
|
-
isHovered: !0,
|
|
68
|
-
class: "bg-primary-500 text-primary-50"
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
intent: "success",
|
|
72
|
-
isHovered: !0,
|
|
73
|
-
class: "bg-success-600 text-neutral-50"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
intent: "error",
|
|
77
|
-
isHovered: !0,
|
|
78
|
-
class: "bg-error-600 text-neutral-50"
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
intent: "orangeWarning",
|
|
82
|
-
isHovered: !0,
|
|
83
|
-
class: "bg-orange-warning-600 text-neutral-50"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
intent: "yellowWarning",
|
|
87
|
-
isHovered: !0,
|
|
88
|
-
class: "bg-yellow-warning-600 text-neutral-50"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
intent: "info",
|
|
92
|
-
isHovered: !0,
|
|
93
|
-
class: "bg-primary-600 text-neutral-50"
|
|
94
|
-
},
|
|
95
|
-
/* /Focus State */
|
|
96
|
-
{
|
|
97
|
-
intent: "success",
|
|
98
|
-
isFocused: !0,
|
|
99
|
-
class: "border-[1.5px] focus:ring-success-800"
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
intent: "error",
|
|
103
|
-
isFocused: !0,
|
|
104
|
-
class: "border-[1.5px] focus:ring-error-800"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
intent: "orangeWarning",
|
|
108
|
-
isFocused: !0,
|
|
109
|
-
class: "border-[1.5px] focus:ring-orange-800"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
intent: "yellowWarning",
|
|
113
|
-
isFocused: !0,
|
|
114
|
-
class: "border-[1.5px] focus:ring-yellow-800"
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
intent: "info",
|
|
118
|
-
isFocused: !0,
|
|
119
|
-
class: "border-[1.5px] focus:ring-primary-800"
|
|
120
|
-
},
|
|
121
|
-
/* Active State */
|
|
122
|
-
{
|
|
123
|
-
intent: "primary",
|
|
124
|
-
isActive: !0,
|
|
125
|
-
class: "bg-primary-900"
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
intent: "secondary",
|
|
129
|
-
isActive: !0,
|
|
130
|
-
class: "bg-primary-300"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
intent: "tertiary",
|
|
134
|
-
isActive: !0,
|
|
135
|
-
class: "bg-primary-500 text-white"
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
intent: "outline",
|
|
139
|
-
isActive: !0,
|
|
140
|
-
class: "border border-primary-500 bg-primary-300 text-primary-500"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
intent: "success",
|
|
144
|
-
isActive: !0,
|
|
145
|
-
class: "border border-transparent bg-success-300 text-success-600"
|
|
146
|
-
},
|
|
147
|
-
{
|
|
148
|
-
intent: "error",
|
|
149
|
-
isActive: !0,
|
|
150
|
-
class: "border border-transparent bg-error-300 text-error-600"
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
intent: "orangeWarning",
|
|
154
|
-
isActive: !0,
|
|
155
|
-
class: "border border-transparent bg-orange-warning-300 text-orange-warning-600"
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
intent: "yellowWarning",
|
|
159
|
-
isActive: !0,
|
|
160
|
-
class: "border border-transparent bg-yellow-warning-300 text-yellow-warning-600"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
intent: "info",
|
|
164
|
-
isActive: !0,
|
|
165
|
-
class: "border border-transparent bg-primary-300 text-primary-600"
|
|
166
|
-
}
|
|
167
|
-
/* /Active State */
|
|
168
|
-
]
|
|
169
|
-
}
|
|
170
|
-
);
|
|
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";
|
|
4
|
+
function j(s) {
|
|
5
|
+
const { children: e, type: t = "h1", size: r = t, className: i, ...o } = s, n = t, a = c(l({ size: r }), i);
|
|
6
|
+
return /* @__PURE__ */ m.jsx(n, { className: a, ...o, children: e });
|
|
7
|
+
}
|
|
171
8
|
export {
|
|
172
|
-
|
|
9
|
+
j as Title
|
|
173
10
|
};
|
package/dist/index.es7.js
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
|
|
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;
|
|
2
6
|
export {
|
|
3
|
-
|
|
7
|
+
m as j
|
|
4
8
|
};
|
package/dist/index.es8.js
CHANGED
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
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 };
|
|
27
|
-
}
|
|
28
|
-
return t.Fragment = l, t.jsx = i, t.jsxs = i, t;
|
|
1
|
+
import { clsx as o } from "clsx";
|
|
2
|
+
import { twMerge as t } from "tailwind-merge";
|
|
3
|
+
function n(...r) {
|
|
4
|
+
return t(o(r));
|
|
29
5
|
}
|
|
30
6
|
export {
|
|
31
|
-
|
|
7
|
+
n as cn
|
|
32
8
|
};
|