@solostylist/ui-kit 1.0.162 → 1.0.163
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/{ArrowUpward-DvTpkKgd.js → ArrowUpward-DhTFpzoh.js} +1 -1
- package/dist/{Box-DqmXop3Z.js → Box-Ha0cQ4KO.js} +1 -1
- package/dist/ButtonBase-DfTfJ_ou.js +1105 -0
- package/dist/{ChevronLeft-zg9wurzn.js → ChevronLeft-CBuFk2Fh.js} +1 -1
- package/dist/{ChevronRight-BKIP5v8z.js → ChevronRight-CnDWPrOm.js} +1 -1
- package/dist/{Close-D4kX7Vbc.js → Close-BRlEKA2Q.js} +1 -1
- package/dist/{DefaultPropsProvider-ClLA4IsM.js → DefaultPropsProvider-CaCsvQaq.js} +1 -1
- package/dist/{ExpandMore-mZGpvXf6.js → ExpandMore-DTWX_mHf.js} +1 -1
- package/dist/{Favorite-DmSF47XC.js → Favorite-DS5Gpq2s.js} +1 -1
- package/dist/{Menu-Cx9465L8.js → Menu-CWq-a1Wz.js} +5 -5
- package/dist/{MenuItem-DPprLtbJ.js → MenuItem-DY_qFSPR.js} +4 -4
- package/dist/{Paper-GzSZS-Pr.js → Paper-hkbPWyBT.js} +26 -27
- package/dist/{Select-32LY-KQR.js → Select-DabtQlJT.js} +6 -6
- package/dist/{Stack-CGZpcupa.js → Stack-Cq2r2NmC.js} +2 -2
- package/dist/{Typography-Dgg8buRq.js → Typography-B7LOtCzI.js} +3 -3
- package/dist/{createSvgIcon-Dq42_0tn.js → createSvgIcon-DxwgGAVe.js} +2 -2
- package/dist/index-BGvzecIA.js +218 -0
- package/dist/{index-VB-2NIdQ.js → index-CfKHZ86U.js} +1 -1
- package/dist/main.d.ts +0 -4
- package/dist/main.js +90 -94
- package/dist/{mergeSlotProps-CbVWfTAi.js → mergeSlotProps-Dl_rJtoN.js} +1 -1
- package/dist/s-accordion/s-accordion.js +7 -7
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-carousel/s-carousel.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +3 -3
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +3 -3
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-data-table/s-data-table.js +5 -5
- package/dist/s-date-picker/s-date-picker.js +5 -5
- package/dist/s-datetime-picker/s-datetime-picker.js +9 -9
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/s-dialog-message.js +2 -2
- package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-flex-box/s-flex-box.js +1 -1
- package/dist/s-image-comparison/s-image-comparison.js +3 -3
- package/dist/s-image-modal/s-image-modal.js +3 -3
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +5 -5
- package/dist/s-multi-select/s-multi-select.js +3 -3
- package/dist/s-review/s-review.js +1 -1
- package/dist/s-scroll-to-top/s-scroll-to-top.js +3 -3
- package/dist/s-select/s-select.js +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +4 -4
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-text-shimmer/s-text-shimmer.js +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +2 -2
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{styled-BD_erj7E.js → styled-B0Z4EDy9.js} +1 -1
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/customizations/inputs.js +1 -1
- package/dist/theme/customizations/navigation.js +1 -1
- package/dist/{useMobilePicker-CBFfceXe.js → useMobilePicker-DgxcRrRB.js} +84 -85
- package/package.json +2 -4
- package/dist/ButtonBase-INrHi5Tf.js +0 -912
- package/dist/TransitionGroup-BK0MDPKM.js +0 -197
- package/dist/chunk-6WTWBXEJ-CEca0jKr.js +0 -4903
- package/dist/emotion-serialize.esm-lgBmL_7o.js +0 -195
- package/dist/index--x2dvtup.js +0 -30
- package/dist/s-copilot-kit-provider/index.d.ts +0 -2
- package/dist/s-copilot-kit-provider/index.js +0 -4
- package/dist/s-copilot-kit-provider/package.json +0 -5
- package/dist/s-copilot-kit-provider/s-copilot-kit-provider.d.ts +0 -35
- package/dist/s-copilot-kit-provider/s-copilot-kit-provider.js +0 -9
- package/dist/s-smart-text-field/index.d.ts +0 -2
- package/dist/s-smart-text-field/index.js +0 -4
- package/dist/s-smart-text-field/package.json +0 -5
- package/dist/s-smart-text-field/s-smart-text-field.d.ts +0 -42
- package/dist/s-smart-text-field/s-smart-text-field.js +0 -17619
|
@@ -1,197 +0,0 @@
|
|
|
1
|
-
import { a as x, _ } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
2
|
-
import { P as p } from "./createTheme-3Wd3hHrj.js";
|
|
3
|
-
import f, { isValidElement as h, cloneElement as v, Children as O } from "react";
|
|
4
|
-
function m(e, n) {
|
|
5
|
-
return m = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(o, a) {
|
|
6
|
-
return o.__proto__ = a, o;
|
|
7
|
-
}, m(e, n);
|
|
8
|
-
}
|
|
9
|
-
function C(e, n) {
|
|
10
|
-
e.prototype = Object.create(n.prototype), e.prototype.constructor = e, m(e, n);
|
|
11
|
-
}
|
|
12
|
-
const E = f.createContext(null);
|
|
13
|
-
function M(e) {
|
|
14
|
-
if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
return e;
|
|
16
|
-
}
|
|
17
|
-
function g(e, n) {
|
|
18
|
-
var o = function(r) {
|
|
19
|
-
return n && h(r) ? n(r) : r;
|
|
20
|
-
}, a = /* @__PURE__ */ Object.create(null);
|
|
21
|
-
return e && O.map(e, function(t) {
|
|
22
|
-
return t;
|
|
23
|
-
}).forEach(function(t) {
|
|
24
|
-
a[t.key] = o(t);
|
|
25
|
-
}), a;
|
|
26
|
-
}
|
|
27
|
-
function P(e, n) {
|
|
28
|
-
e = e || {}, n = n || {};
|
|
29
|
-
function o(d) {
|
|
30
|
-
return d in n ? n[d] : e[d];
|
|
31
|
-
}
|
|
32
|
-
var a = /* @__PURE__ */ Object.create(null), t = [];
|
|
33
|
-
for (var r in e)
|
|
34
|
-
r in n ? t.length && (a[r] = t, t = []) : t.push(r);
|
|
35
|
-
var i, u = {};
|
|
36
|
-
for (var l in n) {
|
|
37
|
-
if (a[l])
|
|
38
|
-
for (i = 0; i < a[l].length; i++) {
|
|
39
|
-
var c = a[l][i];
|
|
40
|
-
u[a[l][i]] = o(c);
|
|
41
|
-
}
|
|
42
|
-
u[l] = o(l);
|
|
43
|
-
}
|
|
44
|
-
for (i = 0; i < t.length; i++)
|
|
45
|
-
u[t[i]] = o(t[i]);
|
|
46
|
-
return u;
|
|
47
|
-
}
|
|
48
|
-
function s(e, n, o) {
|
|
49
|
-
return o[n] != null ? o[n] : e.props[n];
|
|
50
|
-
}
|
|
51
|
-
function y(e, n) {
|
|
52
|
-
return g(e.children, function(o) {
|
|
53
|
-
return v(o, {
|
|
54
|
-
onExited: n.bind(null, o),
|
|
55
|
-
in: !0,
|
|
56
|
-
appear: s(o, "appear", e),
|
|
57
|
-
enter: s(o, "enter", e),
|
|
58
|
-
exit: s(o, "exit", e)
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
function j(e, n, o) {
|
|
63
|
-
var a = g(e.children), t = P(n, a);
|
|
64
|
-
return Object.keys(t).forEach(function(r) {
|
|
65
|
-
var i = t[r];
|
|
66
|
-
if (h(i)) {
|
|
67
|
-
var u = r in n, l = r in a, c = n[r], d = h(c) && !c.props.in;
|
|
68
|
-
l && (!u || d) ? t[r] = v(i, {
|
|
69
|
-
onExited: o.bind(null, i),
|
|
70
|
-
in: !0,
|
|
71
|
-
exit: s(i, "exit", e),
|
|
72
|
-
enter: s(i, "enter", e)
|
|
73
|
-
}) : !l && u && !d ? t[r] = v(i, {
|
|
74
|
-
in: !1
|
|
75
|
-
}) : l && u && h(c) && (t[r] = v(i, {
|
|
76
|
-
onExited: o.bind(null, i),
|
|
77
|
-
in: c.props.in,
|
|
78
|
-
exit: s(i, "exit", e),
|
|
79
|
-
enter: s(i, "enter", e)
|
|
80
|
-
}));
|
|
81
|
-
}
|
|
82
|
-
}), t;
|
|
83
|
-
}
|
|
84
|
-
var F = Object.values || function(e) {
|
|
85
|
-
return Object.keys(e).map(function(n) {
|
|
86
|
-
return e[n];
|
|
87
|
-
});
|
|
88
|
-
}, T = {
|
|
89
|
-
component: "div",
|
|
90
|
-
childFactory: function(n) {
|
|
91
|
-
return n;
|
|
92
|
-
}
|
|
93
|
-
}, b = /* @__PURE__ */ (function(e) {
|
|
94
|
-
C(n, e);
|
|
95
|
-
function n(a, t) {
|
|
96
|
-
var r;
|
|
97
|
-
r = e.call(this, a, t) || this;
|
|
98
|
-
var i = r.handleExited.bind(M(r));
|
|
99
|
-
return r.state = {
|
|
100
|
-
contextValue: {
|
|
101
|
-
isMounting: !0
|
|
102
|
-
},
|
|
103
|
-
handleExited: i,
|
|
104
|
-
firstRender: !0
|
|
105
|
-
}, r;
|
|
106
|
-
}
|
|
107
|
-
var o = n.prototype;
|
|
108
|
-
return o.componentDidMount = function() {
|
|
109
|
-
this.mounted = !0, this.setState({
|
|
110
|
-
contextValue: {
|
|
111
|
-
isMounting: !1
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
}, o.componentWillUnmount = function() {
|
|
115
|
-
this.mounted = !1;
|
|
116
|
-
}, n.getDerivedStateFromProps = function(t, r) {
|
|
117
|
-
var i = r.children, u = r.handleExited, l = r.firstRender;
|
|
118
|
-
return {
|
|
119
|
-
children: l ? y(t, u) : j(t, i, u),
|
|
120
|
-
firstRender: !1
|
|
121
|
-
};
|
|
122
|
-
}, o.handleExited = function(t, r) {
|
|
123
|
-
var i = g(this.props.children);
|
|
124
|
-
t.key in i || (t.props.onExited && t.props.onExited(r), this.mounted && this.setState(function(u) {
|
|
125
|
-
var l = x({}, u.children);
|
|
126
|
-
return delete l[t.key], {
|
|
127
|
-
children: l
|
|
128
|
-
};
|
|
129
|
-
}));
|
|
130
|
-
}, o.render = function() {
|
|
131
|
-
var t = this.props, r = t.component, i = t.childFactory, u = _(t, ["component", "childFactory"]), l = this.state.contextValue, c = F(this.state.children).map(i);
|
|
132
|
-
return delete u.appear, delete u.enter, delete u.exit, r === null ? /* @__PURE__ */ f.createElement(E.Provider, {
|
|
133
|
-
value: l
|
|
134
|
-
}, c) : /* @__PURE__ */ f.createElement(E.Provider, {
|
|
135
|
-
value: l
|
|
136
|
-
}, /* @__PURE__ */ f.createElement(r, u, c));
|
|
137
|
-
}, n;
|
|
138
|
-
})(f.Component);
|
|
139
|
-
b.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
140
|
-
/**
|
|
141
|
-
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
142
|
-
* behavior by providing a `component` prop.
|
|
143
|
-
* If you use React v16+ and would like to avoid a wrapping `<div>` element
|
|
144
|
-
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
145
|
-
* borks your css styles.
|
|
146
|
-
*/
|
|
147
|
-
component: p.any,
|
|
148
|
-
/**
|
|
149
|
-
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
150
|
-
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
151
|
-
* remember to spread them through if you are wrapping the `<Transition>` as
|
|
152
|
-
* with our `<Fade>` example.
|
|
153
|
-
*
|
|
154
|
-
* While this component is meant for multiple `Transition` or `CSSTransition`
|
|
155
|
-
* children, sometimes you may want to have a single transition child with
|
|
156
|
-
* content that you want to be transitioned out and in when you change it
|
|
157
|
-
* (e.g. routes, images etc.) In that case you can change the `key` prop of
|
|
158
|
-
* the transition child as you change its content, this will cause
|
|
159
|
-
* `TransitionGroup` to transition the child out and back in.
|
|
160
|
-
*/
|
|
161
|
-
children: p.node,
|
|
162
|
-
/**
|
|
163
|
-
* A convenience prop that enables or disables appear animations
|
|
164
|
-
* for all children. Note that specifying this will override any defaults set
|
|
165
|
-
* on individual children Transitions.
|
|
166
|
-
*/
|
|
167
|
-
appear: p.bool,
|
|
168
|
-
/**
|
|
169
|
-
* A convenience prop that enables or disables enter animations
|
|
170
|
-
* for all children. Note that specifying this will override any defaults set
|
|
171
|
-
* on individual children Transitions.
|
|
172
|
-
*/
|
|
173
|
-
enter: p.bool,
|
|
174
|
-
/**
|
|
175
|
-
* A convenience prop that enables or disables exit animations
|
|
176
|
-
* for all children. Note that specifying this will override any defaults set
|
|
177
|
-
* on individual children Transitions.
|
|
178
|
-
*/
|
|
179
|
-
exit: p.bool,
|
|
180
|
-
/**
|
|
181
|
-
* You may need to apply reactive updates to a child as it is exiting.
|
|
182
|
-
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
183
|
-
* child the element has already been removed and not accessible to the consumer.
|
|
184
|
-
*
|
|
185
|
-
* If you do need to update a child as it leaves you can provide a `childFactory`
|
|
186
|
-
* to wrap every child, even the ones that are leaving.
|
|
187
|
-
*
|
|
188
|
-
* @type Function(child: ReactElement) -> ReactElement
|
|
189
|
-
*/
|
|
190
|
-
childFactory: p.func
|
|
191
|
-
} : {};
|
|
192
|
-
b.defaultProps = T;
|
|
193
|
-
export {
|
|
194
|
-
E as T,
|
|
195
|
-
C as _,
|
|
196
|
-
b as a
|
|
197
|
-
};
|