@maggioli-design-system/mds-paginator-item 2.3.0 → 2.4.1
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/cjs/{index-969219be.js → index-9a8dc2cf.js} +208 -45
- package/dist/cjs/loader.cjs.js +2 -11
- package/dist/cjs/mds-paginator-item.cjs.entry.js +2 -2
- package/dist/cjs/mds-paginator-item.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -3
- package/dist/collection/common/aria.js +9 -1
- package/dist/collection/common/unit.js +10 -0
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.css +14 -17
- package/dist/collection/components/mds-paginator-item/mds-paginator-item.js +5 -2
- package/dist/collection/dictionary/button.js +5 -1
- package/dist/collection/dictionary/icon.js +2 -2
- package/dist/collection/dictionary/variant.js +9 -1
- package/dist/components/index.d.ts +5 -3
- package/dist/components/index.js +1 -2
- package/dist/components/mds-paginator-item.js +2 -2
- package/dist/documentation.d.ts +361 -88
- package/dist/documentation.json +33 -7
- package/dist/esm/{index-43abfe8a.js → index-81eba9e4.js} +208 -45
- package/dist/esm/loader.js +3 -12
- package/dist/esm/mds-paginator-item.entry.js +2 -2
- package/dist/esm/mds-paginator-item.js +3 -3
- package/dist/esm-es5/index-81eba9e4.js +2 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/mds-paginator-item.entry.js +1 -1
- package/dist/esm-es5/mds-paginator-item.js +1 -1
- package/dist/mds-paginator-item/mds-paginator-item.esm.js +1 -1
- package/dist/mds-paginator-item/mds-paginator-item.js +2 -6
- package/dist/mds-paginator-item/{p-a07f2745.entry.js → p-1003510e.entry.js} +1 -1
- package/dist/mds-paginator-item/p-104122aa.system.js +2 -0
- package/dist/mds-paginator-item/p-42931a12.js +2 -0
- package/dist/mds-paginator-item/{p-d8314fea.system.js → p-7688a34f.system.js} +1 -1
- package/dist/mds-paginator-item/p-bbf043ba.system.entry.js +1 -0
- package/dist/stats.json +41 -33
- package/dist/types/common/aria.d.ts +2 -1
- package/dist/types/common/unit.d.ts +2 -0
- package/dist/types/dictionary/button.d.ts +2 -1
- package/dist/types/dictionary/variant.d.ts +2 -1
- package/dist/types/stencil-public-runtime.d.ts +32 -17
- package/dist/types/type/button.d.ts +1 -0
- package/dist/types/type/variant.d.ts +1 -0
- package/documentation.json +386 -9
- package/loader/index.d.ts +2 -2
- package/package.json +4 -4
- package/readme.md +10 -1
- package/src/common/aria.ts +12 -0
- package/src/common/unit.ts +14 -0
- package/src/components/mds-paginator-item/mds-paginator-item.css +11 -13
- package/src/components/mds-paginator-item/mds-paginator-item.tsx +4 -0
- package/src/components/mds-paginator-item/readme.md +8 -1
- package/src/dictionary/button.ts +7 -1
- package/src/dictionary/variant.ts +10 -0
- package/src/fixtures/icons.json +41 -0
- package/src/fixtures/iconsauce.json +38 -0
- package/src/type/button.ts +4 -0
- package/src/type/variant.ts +9 -0
- package/www/build/mds-paginator-item.esm.js +1 -1
- package/www/build/mds-paginator-item.js +2 -6
- package/www/build/{p-a07f2745.entry.js → p-1003510e.entry.js} +1 -1
- package/www/build/p-104122aa.system.js +2 -0
- package/www/build/p-42931a12.js +2 -0
- package/www/build/{p-d8314fea.system.js → p-7688a34f.system.js} +1 -1
- package/www/build/p-bbf043ba.system.entry.js +1 -0
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm-es5/index-43abfe8a.js +0 -2
- package/dist/mds-paginator-item/p-545e4388.system.js +0 -2
- package/dist/mds-paginator-item/p-cd35cb31.js +0 -2
- package/dist/mds-paginator-item/p-fda89125.system.entry.js +0 -1
- package/www/build/p-545e4388.system.js +0 -2
- package/www/build/p-cd35cb31.js +0 -2
- package/www/build/p-fda89125.system.entry.js +0 -1
|
@@ -58,6 +58,13 @@ const HYDRATED_CSS = '{visibility:hidden}[hydrated]{visibility:inherit}';
|
|
|
58
58
|
*/
|
|
59
59
|
const EMPTY_OBJ = {};
|
|
60
60
|
const isDef = (v) => v != null;
|
|
61
|
+
/**
|
|
62
|
+
* Check whether a value is a 'complex type', defined here as an object or a
|
|
63
|
+
* function.
|
|
64
|
+
*
|
|
65
|
+
* @param o the value to check
|
|
66
|
+
* @returns whether it's a complex type or not
|
|
67
|
+
*/
|
|
61
68
|
const isComplexType = (o) => {
|
|
62
69
|
// https://jsperf.com/typeof-fn-object/5
|
|
63
70
|
o = typeof o;
|
|
@@ -114,6 +121,7 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
114
121
|
};
|
|
115
122
|
walk(children);
|
|
116
123
|
if (vnodeData) {
|
|
124
|
+
// normalize class / className attributes
|
|
117
125
|
{
|
|
118
126
|
const classData = vnodeData.className || vnodeData.class;
|
|
119
127
|
if (classData) {
|
|
@@ -235,9 +243,9 @@ const registerStyle = (scopeId, cssText, allowCS) => {
|
|
|
235
243
|
}
|
|
236
244
|
styles.set(scopeId, style);
|
|
237
245
|
};
|
|
238
|
-
const addStyle = (styleContainerNode, cmpMeta, mode
|
|
246
|
+
const addStyle = (styleContainerNode, cmpMeta, mode) => {
|
|
239
247
|
var _a;
|
|
240
|
-
|
|
248
|
+
const scopeId = getScopeId(cmpMeta);
|
|
241
249
|
const style = styles.get(scopeId);
|
|
242
250
|
// if an element is NOT connected then getRootNode() will return the wrong root node
|
|
243
251
|
// so the fallback is to always use the document for the root node in those cases
|
|
@@ -252,10 +260,8 @@ const addStyle = (styleContainerNode, cmpMeta, mode, hostElm) => {
|
|
|
252
260
|
}
|
|
253
261
|
if (!appliedStyles.has(scopeId)) {
|
|
254
262
|
{
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
styleElm.innerHTML = style;
|
|
258
|
-
}
|
|
263
|
+
styleElm = doc.createElement('style');
|
|
264
|
+
styleElm.innerHTML = style;
|
|
259
265
|
// Apply CSP nonce to the style tag if it exists
|
|
260
266
|
const nonce = (_a = plt.$nonce$) !== null && _a !== void 0 ? _a : queryNonceMetaTagContent(doc);
|
|
261
267
|
if (nonce != null) {
|
|
@@ -302,6 +308,21 @@ const getScopeId = (cmp, mode) => 'sc-' + (cmp.$tagName$);
|
|
|
302
308
|
*
|
|
303
309
|
* Modified for Stencil's compiler and vdom
|
|
304
310
|
*/
|
|
311
|
+
/**
|
|
312
|
+
* When running a VDom render set properties present on a VDom node onto the
|
|
313
|
+
* corresponding HTML element.
|
|
314
|
+
*
|
|
315
|
+
* Note that this function has special functionality for the `class`,
|
|
316
|
+
* `style`, `key`, and `ref` attributes, as well as event handlers (like
|
|
317
|
+
* `onClick`, etc). All others are just passed through as-is.
|
|
318
|
+
*
|
|
319
|
+
* @param elm the HTMLElement onto which attributes should be set
|
|
320
|
+
* @param memberName the name of the attribute to set
|
|
321
|
+
* @param oldValue the old value for the attribute
|
|
322
|
+
* @param newValue the new value for the attribute
|
|
323
|
+
* @param isSvg whether we're in an svg context or not
|
|
324
|
+
* @param flags bitflags for Vdom variables
|
|
325
|
+
*/
|
|
305
326
|
const setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags) => {
|
|
306
327
|
if (oldValue !== newValue) {
|
|
307
328
|
let isProp = isMemberInElement(elm, memberName);
|
|
@@ -461,15 +482,16 @@ const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) =>
|
|
|
461
482
|
* @param vnodes a list of virtual DOM nodes to remove
|
|
462
483
|
* @param startIdx the index at which to start removing nodes (inclusive)
|
|
463
484
|
* @param endIdx the index at which to stop removing nodes (inclusive)
|
|
464
|
-
* @param vnode a VNode
|
|
465
|
-
* @param elm an element
|
|
466
485
|
*/
|
|
467
|
-
const removeVnodes = (vnodes, startIdx, endIdx
|
|
468
|
-
for (
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
elm
|
|
486
|
+
const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
487
|
+
for (let index = startIdx; index <= endIdx; ++index) {
|
|
488
|
+
const vnode = vnodes[index];
|
|
489
|
+
if (vnode) {
|
|
490
|
+
const elm = vnode.$elm$;
|
|
491
|
+
if (elm) {
|
|
492
|
+
// remove the vnode's element from the dom
|
|
493
|
+
elm.remove();
|
|
494
|
+
}
|
|
473
495
|
}
|
|
474
496
|
}
|
|
475
497
|
};
|
|
@@ -731,17 +753,44 @@ const patch = (oldVNode, newVNode) => {
|
|
|
731
753
|
* @param hostRef data needed to root and render the virtual DOM tree, such as
|
|
732
754
|
* the DOM node into which it should be rendered.
|
|
733
755
|
* @param renderFnResults the virtual DOM nodes to be rendered
|
|
756
|
+
* @param isInitialLoad whether or not this is the first call after page load
|
|
734
757
|
*/
|
|
735
|
-
const renderVdom = (hostRef, renderFnResults) => {
|
|
758
|
+
const renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
736
759
|
const hostElm = hostRef.$hostElement$;
|
|
737
760
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
738
761
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
762
|
+
// if `renderFnResults` is a Host node then we can use it directly. If not,
|
|
763
|
+
// we need to call `h` again to wrap the children of our component in a
|
|
764
|
+
// 'dummy' Host node (well, an empty vnode) since `renderVdom` assumes
|
|
765
|
+
// implicitly that the top-level vdom node is 1) an only child and 2)
|
|
766
|
+
// contains attrs that need to be set on the host element.
|
|
739
767
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
740
768
|
hostTagName = hostElm.tagName;
|
|
741
769
|
if (cmpMeta.$attrsToReflect$) {
|
|
742
770
|
rootVnode.$attrs$ = rootVnode.$attrs$ || {};
|
|
743
771
|
cmpMeta.$attrsToReflect$.map(([propName, attribute]) => (rootVnode.$attrs$[attribute] = hostElm[propName]));
|
|
744
772
|
}
|
|
773
|
+
// On the first render and *only* on the first render we want to check for
|
|
774
|
+
// any attributes set on the host element which are also set on the vdom
|
|
775
|
+
// node. If we find them, we override the value on the VDom node attrs with
|
|
776
|
+
// the value from the host element, which allows developers building apps
|
|
777
|
+
// with Stencil components to override e.g. the `role` attribute on a
|
|
778
|
+
// component even if it's already set on the `Host`.
|
|
779
|
+
if (isInitialLoad && rootVnode.$attrs$) {
|
|
780
|
+
for (const key of Object.keys(rootVnode.$attrs$)) {
|
|
781
|
+
// We have a special implementation in `setAccessor` for `style` and
|
|
782
|
+
// `class` which reconciles values coming from the VDom with values
|
|
783
|
+
// already present on the DOM element, so we don't want to override those
|
|
784
|
+
// attributes on the VDom tree with values from the host element if they
|
|
785
|
+
// are present.
|
|
786
|
+
//
|
|
787
|
+
// Likewise, `ref` and `key` are special internal values for the Stencil
|
|
788
|
+
// runtime and we don't want to override those either.
|
|
789
|
+
if (hostElm.hasAttribute(key) && !['key', 'ref', 'style', 'class'].includes(key)) {
|
|
790
|
+
rootVnode.$attrs$[key] = hostElm[key];
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
745
794
|
rootVnode.$tag$ = null;
|
|
746
795
|
rootVnode.$flags$ |= 4 /* VNODE_FLAGS.isHost */;
|
|
747
796
|
hostRef.$vnode$ = rootVnode;
|
|
@@ -772,15 +821,76 @@ const scheduleUpdate = (hostRef, isInitialLoad) => {
|
|
|
772
821
|
const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
|
|
773
822
|
return writeTask(dispatch) ;
|
|
774
823
|
};
|
|
824
|
+
/**
|
|
825
|
+
* Dispatch initial-render and update lifecycle hooks, enqueuing calls to
|
|
826
|
+
* component lifecycle methods like `componentWillLoad` as well as
|
|
827
|
+
* {@link updateComponent}, which will kick off the virtual DOM re-render.
|
|
828
|
+
*
|
|
829
|
+
* @param hostRef a reference to a host DOM node
|
|
830
|
+
* @param isInitialLoad whether we're on the initial load or not
|
|
831
|
+
* @returns an empty Promise which is used to enqueue a series of operations for
|
|
832
|
+
* the component
|
|
833
|
+
*/
|
|
775
834
|
const dispatchHooks = (hostRef, isInitialLoad) => {
|
|
776
835
|
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
|
|
777
836
|
const instance = hostRef.$lazyInstance$ ;
|
|
778
|
-
|
|
837
|
+
// We're going to use this variable together with `enqueue` to implement a
|
|
838
|
+
// little promise-based queue. We start out with it `undefined`. When we add
|
|
839
|
+
// the first function to the queue we'll set this variable to be that
|
|
840
|
+
// function's return value. When we attempt to add subsequent values to the
|
|
841
|
+
// queue we'll check that value and, if it was a `Promise`, we'll then chain
|
|
842
|
+
// the new function off of that `Promise` using `.then()`. This will give our
|
|
843
|
+
// queue two nice properties:
|
|
844
|
+
//
|
|
845
|
+
// 1. If all functions added to the queue are synchronous they'll be called
|
|
846
|
+
// synchronously right away.
|
|
847
|
+
// 2. If all functions added to the queue are asynchronous they'll all be
|
|
848
|
+
// called in order after `dispatchHooks` exits.
|
|
849
|
+
let maybePromise;
|
|
779
850
|
endSchedule();
|
|
780
|
-
return
|
|
851
|
+
return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
|
|
781
852
|
};
|
|
853
|
+
/**
|
|
854
|
+
* This function uses a Promise to implement a simple first-in, first-out queue
|
|
855
|
+
* of functions to be called.
|
|
856
|
+
*
|
|
857
|
+
* The queue is ordered on the basis of the first argument. If it's
|
|
858
|
+
* `undefined`, then nothing is on the queue yet, so the provided function can
|
|
859
|
+
* be called synchronously (although note that this function may return a
|
|
860
|
+
* `Promise`). The idea is that then the return value of that enqueueing
|
|
861
|
+
* operation is kept around, so that if it was a `Promise` then subsequent
|
|
862
|
+
* functions can be enqueued by calling this function again with that `Promise`
|
|
863
|
+
* as the first argument.
|
|
864
|
+
*
|
|
865
|
+
* @param maybePromise either a `Promise` which should resolve before the next function is called or an 'empty' sentinel
|
|
866
|
+
* @param fn a function to enqueue
|
|
867
|
+
* @returns either a `Promise` or the return value of the provided function
|
|
868
|
+
*/
|
|
869
|
+
const enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn) : fn();
|
|
870
|
+
/**
|
|
871
|
+
* Check that a value is a `Promise`. To check, we first see if the value is an
|
|
872
|
+
* instance of the `Promise` global. In a few circumstances, in particular if
|
|
873
|
+
* the global has been overwritten, this is could be misleading, so we also do
|
|
874
|
+
* a little 'duck typing' check to see if the `.then` property of the value is
|
|
875
|
+
* defined and a function.
|
|
876
|
+
*
|
|
877
|
+
* @param maybePromise it might be a promise!
|
|
878
|
+
* @returns whether it is or not
|
|
879
|
+
*/
|
|
880
|
+
const isPromisey = (maybePromise) => maybePromise instanceof Promise ||
|
|
881
|
+
(maybePromise && maybePromise.then && typeof maybePromise.then === 'function');
|
|
882
|
+
/**
|
|
883
|
+
* Update a component given reference to its host elements and so on.
|
|
884
|
+
*
|
|
885
|
+
* @param hostRef an object containing references to the element's host node,
|
|
886
|
+
* VDom nodes, and other metadata
|
|
887
|
+
* @param instance a reference to the underlying host element where it will be
|
|
888
|
+
* rendered
|
|
889
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
890
|
+
* the first render cycle
|
|
891
|
+
*/
|
|
782
892
|
const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
783
|
-
|
|
893
|
+
var _a;
|
|
784
894
|
const elm = hostRef.$hostElement$;
|
|
785
895
|
const endUpdate = createTime('update', hostRef.$cmpMeta$.$tagName$);
|
|
786
896
|
const rc = elm['s-rc'];
|
|
@@ -790,7 +900,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
790
900
|
}
|
|
791
901
|
const endRender = createTime('render', hostRef.$cmpMeta$.$tagName$);
|
|
792
902
|
{
|
|
793
|
-
callRender(hostRef, instance);
|
|
903
|
+
callRender(hostRef, instance, elm, isInitialLoad);
|
|
794
904
|
}
|
|
795
905
|
if (rc) {
|
|
796
906
|
// ok, so turns out there are some child host elements
|
|
@@ -802,7 +912,7 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
802
912
|
endRender();
|
|
803
913
|
endUpdate();
|
|
804
914
|
{
|
|
805
|
-
const childrenPromises = elm['s-p'];
|
|
915
|
+
const childrenPromises = (_a = elm['s-p']) !== null && _a !== void 0 ? _a : [];
|
|
806
916
|
const postUpdate = () => postUpdateComponent(hostRef);
|
|
807
917
|
if (childrenPromises.length === 0) {
|
|
808
918
|
postUpdate();
|
|
@@ -814,7 +924,19 @@ const updateComponent = async (hostRef, instance, isInitialLoad) => {
|
|
|
814
924
|
}
|
|
815
925
|
}
|
|
816
926
|
};
|
|
817
|
-
|
|
927
|
+
/**
|
|
928
|
+
* Handle making the call to the VDom renderer with the proper context given
|
|
929
|
+
* various build variables
|
|
930
|
+
*
|
|
931
|
+
* @param hostRef an object containing references to the element's host node,
|
|
932
|
+
* VDom nodes, and other metadata
|
|
933
|
+
* @param instance a reference to the underlying host element where it will be
|
|
934
|
+
* rendered
|
|
935
|
+
* @param elm the Host element for the component
|
|
936
|
+
* @param isInitialLoad whether or not this function is being called as part of
|
|
937
|
+
* @returns an empty promise
|
|
938
|
+
*/
|
|
939
|
+
const callRender = (hostRef, instance, elm, isInitialLoad) => {
|
|
818
940
|
try {
|
|
819
941
|
instance = instance.render() ;
|
|
820
942
|
{
|
|
@@ -829,7 +951,7 @@ const callRender = (hostRef, instance, elm) => {
|
|
|
829
951
|
// or we need to update the css class/attrs on the host element
|
|
830
952
|
// DOM WRITE!
|
|
831
953
|
{
|
|
832
|
-
renderVdom(hostRef, instance);
|
|
954
|
+
renderVdom(hostRef, instance, isInitialLoad);
|
|
833
955
|
}
|
|
834
956
|
}
|
|
835
957
|
}
|
|
@@ -885,9 +1007,6 @@ const appDidLoad = (who) => {
|
|
|
885
1007
|
}
|
|
886
1008
|
nextTick(() => emitEvent(win, 'appload', { detail: { namespace: NAMESPACE } }));
|
|
887
1009
|
};
|
|
888
|
-
const then = (promise, thenFn) => {
|
|
889
|
-
return promise && promise.then ? promise.then(thenFn) : thenFn();
|
|
890
|
-
};
|
|
891
1010
|
const addHydratedFlag = (elm) => elm.setAttribute('hydrated', '')
|
|
892
1011
|
;
|
|
893
1012
|
const getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
|
|
@@ -927,6 +1046,7 @@ const setValue = (ref, propName, newVal, cmpMeta) => {
|
|
|
927
1046
|
* @returns a reference to the same constructor passed in (but now mutated)
|
|
928
1047
|
*/
|
|
929
1048
|
const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
1049
|
+
var _a;
|
|
930
1050
|
if (cmpMeta.$members$) {
|
|
931
1051
|
// It's better to have a const than two Object.entries()
|
|
932
1052
|
const members = Object.entries(cmpMeta.$members$);
|
|
@@ -951,7 +1071,7 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
951
1071
|
});
|
|
952
1072
|
if ((flags & 1 /* PROXY_FLAGS.isElementConstructor */)) {
|
|
953
1073
|
const attrNameToPropName = new Map();
|
|
954
|
-
prototype.attributeChangedCallback = function (attrName,
|
|
1074
|
+
prototype.attributeChangedCallback = function (attrName, oldValue, newValue) {
|
|
955
1075
|
plt.jmp(() => {
|
|
956
1076
|
const propName = attrNameToPropName.get(attrName);
|
|
957
1077
|
// In a web component lifecycle the attributeChangedCallback runs prior to connectedCallback
|
|
@@ -974,12 +1094,12 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
974
1094
|
// customElements.define('my-component', MyComponent);
|
|
975
1095
|
// </script>
|
|
976
1096
|
// ```
|
|
977
|
-
// In this case if we do not
|
|
1097
|
+
// In this case if we do not un-shadow here and use the value of the shadowing property, attributeChangedCallback
|
|
978
1098
|
// will be called with `newValue = "some-value"` and will set the shadowed property (this.someAttribute = "another-value")
|
|
979
1099
|
// to the value that was set inline i.e. "some-value" from above example. When
|
|
980
|
-
// the connectedCallback attempts to
|
|
1100
|
+
// the connectedCallback attempts to un-shadow it will use "some-value" as the initial value rather than "another-value"
|
|
981
1101
|
//
|
|
982
|
-
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/
|
|
1102
|
+
// The case where the attribute was NOT set inline but was not set programmatically shall be handled/un-shadowed
|
|
983
1103
|
// by connectedCallback as this attributeChangedCallback will not fire.
|
|
984
1104
|
//
|
|
985
1105
|
// https://developers.google.com/web/fundamentals/web-components/best-practices#lazy-properties
|
|
@@ -999,21 +1119,49 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
999
1119
|
// `propName` to be converted to a `DOMString`, which may not be what we want for other primitive props.
|
|
1000
1120
|
return;
|
|
1001
1121
|
}
|
|
1122
|
+
else if (propName == null) {
|
|
1123
|
+
// At this point we should know this is not a "member", so we can treat it like watching an attribute
|
|
1124
|
+
// on a vanilla web component
|
|
1125
|
+
const hostRef = getHostRef(this);
|
|
1126
|
+
const flags = hostRef === null || hostRef === void 0 ? void 0 : hostRef.$flags$;
|
|
1127
|
+
// We only want to trigger the callback(s) if:
|
|
1128
|
+
// 1. The instance is ready
|
|
1129
|
+
// 2. The watchers are ready
|
|
1130
|
+
// 3. The value has changed
|
|
1131
|
+
if (!(flags & 8 /* HOST_FLAGS.isConstructingInstance */) &&
|
|
1132
|
+
flags & 128 /* HOST_FLAGS.isWatchReady */ &&
|
|
1133
|
+
newValue !== oldValue) {
|
|
1134
|
+
const instance = hostRef.$lazyInstance$ ;
|
|
1135
|
+
const entry = cmpMeta.$watchers$[attrName];
|
|
1136
|
+
entry === null || entry === void 0 ? void 0 : entry.forEach((callbackName) => {
|
|
1137
|
+
if (instance[callbackName] != null) {
|
|
1138
|
+
instance[callbackName].call(instance, newValue, oldValue, attrName);
|
|
1139
|
+
}
|
|
1140
|
+
});
|
|
1141
|
+
}
|
|
1142
|
+
return;
|
|
1143
|
+
}
|
|
1002
1144
|
this[propName] = newValue === null && typeof this[propName] === 'boolean' ? false : newValue;
|
|
1003
1145
|
});
|
|
1004
1146
|
};
|
|
1005
|
-
//
|
|
1006
|
-
//
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1147
|
+
// Create an array of attributes to observe
|
|
1148
|
+
// This list in comprised of all strings used within a `@Watch()` decorator
|
|
1149
|
+
// on a component as well as any Stencil-specific "members" (`@Prop()`s and `@State()`s).
|
|
1150
|
+
// As such, there is no way to guarantee type-safety here that a user hasn't entered
|
|
1151
|
+
// an invalid attribute.
|
|
1152
|
+
Cstr.observedAttributes = Array.from(new Set([
|
|
1153
|
+
...Object.keys((_a = cmpMeta.$watchers$) !== null && _a !== void 0 ? _a : {}),
|
|
1154
|
+
...members
|
|
1155
|
+
.filter(([_, m]) => m[0] & 15 /* MEMBER_FLAGS.HasAttribute */)
|
|
1156
|
+
.map(([propName, m]) => {
|
|
1157
|
+
const attrName = m[1] || propName;
|
|
1158
|
+
attrNameToPropName.set(attrName, propName);
|
|
1159
|
+
if (m[0] & 512 /* MEMBER_FLAGS.ReflectAttr */) {
|
|
1160
|
+
cmpMeta.$attrsToReflect$.push([propName, attrName]);
|
|
1161
|
+
}
|
|
1162
|
+
return attrName;
|
|
1163
|
+
}),
|
|
1164
|
+
]));
|
|
1017
1165
|
}
|
|
1018
1166
|
}
|
|
1019
1167
|
return Cstr;
|
|
@@ -1021,9 +1169,9 @@ const proxyComponent = (Cstr, cmpMeta, flags) => {
|
|
|
1021
1169
|
const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) => {
|
|
1022
1170
|
// initializeComponent
|
|
1023
1171
|
if ((hostRef.$flags$ & 32 /* HOST_FLAGS.hasInitializedComponent */) === 0) {
|
|
1172
|
+
// Let the runtime know that the component has been initialized
|
|
1173
|
+
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1024
1174
|
{
|
|
1025
|
-
// we haven't initialized this element yet
|
|
1026
|
-
hostRef.$flags$ |= 32 /* HOST_FLAGS.hasInitializedComponent */;
|
|
1027
1175
|
// lazy loaded components
|
|
1028
1176
|
// request the component's implementation to be
|
|
1029
1177
|
// wired up with the host element
|
|
@@ -1087,6 +1235,8 @@ const initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId, Cstr) =>
|
|
|
1087
1235
|
schedule();
|
|
1088
1236
|
}
|
|
1089
1237
|
};
|
|
1238
|
+
const fireConnectedCallback = (instance) => {
|
|
1239
|
+
};
|
|
1090
1240
|
const connectedCallback = (elm) => {
|
|
1091
1241
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1092
1242
|
const hostRef = getHostRef(elm);
|
|
@@ -1125,12 +1275,25 @@ const connectedCallback = (elm) => {
|
|
|
1125
1275
|
initializeComponent(elm, hostRef, cmpMeta);
|
|
1126
1276
|
}
|
|
1127
1277
|
}
|
|
1278
|
+
else {
|
|
1279
|
+
// fire off connectedCallback() on component instance
|
|
1280
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1281
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1282
|
+
hostRef.$onReadyPromise$.then(() => fireConnectedCallback());
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1128
1285
|
endConnected();
|
|
1129
1286
|
}
|
|
1130
1287
|
};
|
|
1131
|
-
const
|
|
1288
|
+
const disconnectInstance = (instance) => {
|
|
1289
|
+
};
|
|
1290
|
+
const disconnectedCallback = async (elm) => {
|
|
1132
1291
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1133
|
-
getHostRef(elm);
|
|
1292
|
+
const hostRef = getHostRef(elm);
|
|
1293
|
+
if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$lazyInstance$) ;
|
|
1294
|
+
else if (hostRef === null || hostRef === void 0 ? void 0 : hostRef.$onReadyPromise$) {
|
|
1295
|
+
hostRef.$onReadyPromise$.then(() => disconnectInstance());
|
|
1296
|
+
}
|
|
1134
1297
|
}
|
|
1135
1298
|
};
|
|
1136
1299
|
const bootstrapLazy = (lazyBundles, options = {}) => {
|
package/dist/cjs/loader.cjs.js
CHANGED
|
@@ -2,20 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
|
|
7
|
-
/*
|
|
8
|
-
Stencil Client Patch Esm v2.22.3 | MIT Licensed | https://stenciljs.com
|
|
9
|
-
*/
|
|
10
|
-
const patchEsm = () => {
|
|
11
|
-
return index.promiseResolve();
|
|
12
|
-
};
|
|
5
|
+
const index = require('./index-9a8dc2cf.js');
|
|
13
6
|
|
|
14
7
|
const defineCustomElements = (win, options) => {
|
|
15
|
-
if (typeof window === 'undefined') return
|
|
16
|
-
return patchEsm().then(() => {
|
|
8
|
+
if (typeof window === 'undefined') return undefined;
|
|
17
9
|
return index.bootstrapLazy([["mds-paginator-item.cjs",[[1,"mds-paginator-item",{"icon":[513],"selected":[516],"disabled":[516]}]]]], options);
|
|
18
|
-
});
|
|
19
10
|
};
|
|
20
11
|
|
|
21
12
|
exports.setNonce = index.setNonce;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9a8dc2cf.js');
|
|
6
6
|
|
|
7
7
|
class KeyboardManager {
|
|
8
8
|
constructor() {
|
|
@@ -45,7 +45,7 @@ class KeyboardManager {
|
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
const mdsPaginatorItemCss = "@tailwind components; .fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--brand-maggioli-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);--mds-paginator-item-shadow:none;--mds-paginator-item-size:2.25rem;outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform
|
|
48
|
+
const mdsPaginatorItemCss = "@tailwind components; .fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host{--mds-paginator-item-background-disabled:rgb(var(--tone-neutral-09));--mds-paginator-item-background-hover:rgb(var(--tone-neutral-08));--mds-paginator-item-background-selected:rgb(var(--brand-maggioli-03));--mds-paginator-item-background:transparent;--mds-paginator-item-color-disabled:rgb(var(--tone-neutral-06));--mds-paginator-item-color-hover:rgb(var(--tone-neutral-02));--mds-paginator-item-color-selected:rgb(var(--tone-neutral));--mds-paginator-item-color:rgb(var(--tone-neutral-02));--mds-paginator-item-radius:200px;--mds-paginator-item-shadow-disabled:none;--mds-paginator-item-shadow-hover:none;--mds-paginator-item-shadow-selected:0 0 1px 1px rgba(0, 0, 0, 0.06), 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);--mds-paginator-item-shadow:none;--mds-paginator-item-size:2.25rem;outline-offset:var(--magma-outline-blur-offset);outline:var(--magma-outline-blur);-webkit-transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, color, fill, outline, outline-offset, -webkit-box-shadow, -webkit-transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;transition-property:background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform, -webkit-box-shadow, -webkit-transform;padding-left:0.75rem;padding-right:0.75rem;-webkit-transition-duration:200ms;transition-duration:200ms;-webkit-transition-timing-function:cubic-bezier(0, 0, 0.2, 1);transition-timing-function:cubic-bezier(0, 0, 0.2, 1);-ms-flex-align:center;align-items:center;background-color:var(--mds-paginator-item-background);border-radius:var(--mds-paginator-item-radius);-webkit-box-shadow:var(--mds-paginator-item-shadow);box-shadow:var(--mds-paginator-item-shadow);-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--mds-paginator-item-color);cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:var(--mds-paginator-item-size);-ms-flex-pack:center;justify-content:center;min-width:var(--mds-paginator-item-size);-webkit-transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, color, outline, outline-offset, -webkit-box-shadow;transition-property:background-color, box-shadow, color, outline, outline-offset;transition-property:background-color, box-shadow, color, outline, outline-offset, -webkit-box-shadow;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host(:focus-visible){--magma-outline-blur-offset:var(--magma-outline-focus-offset);--magma-outline-blur:var(--magma-outline-focus)}:host(:hover){background-color:var(--mds-paginator-item-background-hover);-webkit-box-shadow:var(--mds-paginator-item-shadow-hover);box-shadow:var(--mds-paginator-item-shadow-hover);color:var(--mds-paginator-item-color-hover);fill:var(--mds-paginator-item-color-hover)}:host([icon]){padding:0px}:host([selected]){background-color:var(--mds-paginator-item-background-selected);-webkit-box-shadow:var(--mds-paginator-item-shadow-selected);box-shadow:var(--mds-paginator-item-shadow-selected);color:var(--mds-paginator-item-color-selected);fill:var(--mds-paginator-item-color-selected);pointer-events:none}:host([disabled]){background-color:var(--mds-paginator-item-background-disabled);-webkit-box-shadow:var(--mds-paginator-item-shadow-disabled);box-shadow:var(--mds-paginator-item-shadow-disabled);color:var(--mds-paginator-item-color-disabled);fill:var(--mds-paginator-item-color-disabled);pointer-events:none}.icon{padding-left:0px;padding-right:0px}";
|
|
49
49
|
|
|
50
50
|
const MdsPaginatorItem = class {
|
|
51
51
|
constructor(hostRef) {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-9a8dc2cf.js');
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
|
-
Stencil Client Patch Browser
|
|
8
|
+
Stencil Client Patch Browser v4.3.0 | MIT Licensed | https://stenciljs.com
|
|
9
9
|
*/
|
|
10
10
|
const patchBrowser = () => {
|
|
11
11
|
const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('mds-paginator-item.cjs.js', document.baseURI).href));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"entries": [
|
|
3
|
-
"
|
|
3
|
+
"components/mds-paginator-item/mds-paginator-item.js"
|
|
4
4
|
],
|
|
5
5
|
"compiler": {
|
|
6
6
|
"name": "@stencil/core",
|
|
7
|
-
"version": "
|
|
8
|
-
"typescriptVersion": "
|
|
7
|
+
"version": "4.3.0",
|
|
8
|
+
"typescriptVersion": "5.1.6"
|
|
9
9
|
},
|
|
10
10
|
"collections": [],
|
|
11
11
|
"bundles": []
|
|
@@ -5,6 +5,7 @@ const hash = (s) => {
|
|
|
5
5
|
}
|
|
6
6
|
return h.toString();
|
|
7
7
|
};
|
|
8
|
+
const randomInt = (max) => Math.floor(Math.random() * max);
|
|
8
9
|
const unslugName = (name) => {
|
|
9
10
|
var _a, _b, _c;
|
|
10
11
|
return (_c = (_b = (_a = name.split('/')) === null || _a === void 0 ? void 0 : _a.slice(-1).pop()) === null || _b === void 0 ? void 0 : _b.replace(/-/g, ' ')) !== null && _c !== void 0 ? _c : name;
|
|
@@ -18,4 +19,11 @@ const setAttributeIfEmpty = (element, attribute, value) => {
|
|
|
18
19
|
return value;
|
|
19
20
|
};
|
|
20
21
|
const hashValue = (value) => `${value}-${hash(value)}`;
|
|
21
|
-
|
|
22
|
+
const hashRandomValue = (value) => {
|
|
23
|
+
const randomValue = randomInt(1000000);
|
|
24
|
+
if (value) {
|
|
25
|
+
return `${value}-${hash(randomValue.toString())}`;
|
|
26
|
+
}
|
|
27
|
+
return hash(randomValue.toString());
|
|
28
|
+
};
|
|
29
|
+
export { unslugName, setAttributeIfEmpty, hashRandomValue, hashValue, };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const cssDurationToMilliseconds = (duration, defaultValue = 1000) => {
|
|
2
|
+
if (duration.includes('s')) {
|
|
3
|
+
return Number(duration.replace('s', '')) * 1000;
|
|
4
|
+
}
|
|
5
|
+
if (duration.includes('ms')) {
|
|
6
|
+
return Number(duration.replace('s', ''));
|
|
7
|
+
}
|
|
8
|
+
return defaultValue;
|
|
9
|
+
};
|
|
10
|
+
export { cssDurationToMilliseconds, };
|
|
@@ -57,30 +57,31 @@
|
|
|
57
57
|
outline-offset: var(--magma-outline-blur-offset);
|
|
58
58
|
outline: var(--magma-outline-blur);
|
|
59
59
|
transition-property: background-color, border-color, box-shadow, color, fill, outline, outline-offset, transform;
|
|
60
|
-
box-sizing: border-box;
|
|
61
|
-
display: inline-flex;
|
|
62
|
-
flex-shrink: 0;
|
|
63
|
-
cursor: pointer;
|
|
64
|
-
-webkit-user-select: none;
|
|
65
|
-
-moz-user-select: none;
|
|
66
|
-
user-select: none;
|
|
67
|
-
align-items: center;
|
|
68
|
-
justify-content: center;
|
|
69
60
|
padding-left: 0.75rem;
|
|
70
61
|
padding-right: 0.75rem;
|
|
71
62
|
transition-duration: 200ms;
|
|
72
63
|
transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
|
|
73
64
|
|
|
65
|
+
align-items: center;
|
|
74
66
|
background-color: var(--mds-paginator-item-background);
|
|
75
67
|
border-radius: var(--mds-paginator-item-radius);
|
|
76
68
|
box-shadow: var(--mds-paginator-item-shadow);
|
|
69
|
+
box-sizing: border-box;
|
|
77
70
|
color: var(--mds-paginator-item-color);
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
display: inline-flex;
|
|
73
|
+
flex-shrink: 0;
|
|
78
74
|
height: var(--mds-paginator-item-size);
|
|
75
|
+
justify-content: center;
|
|
79
76
|
min-width: var(--mds-paginator-item-size);
|
|
80
77
|
transition-property: background-color, box-shadow, color, outline, outline-offset;
|
|
78
|
+
-webkit-user-select: none;
|
|
79
|
+
-moz-user-select: none;
|
|
80
|
+
user-select: none;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
:host( :focus-visible ) {
|
|
84
|
+
|
|
84
85
|
--magma-outline-blur-offset: var(--magma-outline-focus-offset);
|
|
85
86
|
--magma-outline-blur: var(--magma-outline-focus);
|
|
86
87
|
}
|
|
@@ -97,24 +98,20 @@
|
|
|
97
98
|
padding: 0px;
|
|
98
99
|
}
|
|
99
100
|
|
|
100
|
-
:host( [selected] ){
|
|
101
|
-
|
|
102
|
-
pointer-events: none;
|
|
103
|
-
|
|
101
|
+
:host( [selected] ) {
|
|
104
102
|
background-color: var(--mds-paginator-item-background-selected);
|
|
105
103
|
box-shadow: var(--mds-paginator-item-shadow-selected);
|
|
106
104
|
color: var(--mds-paginator-item-color-selected);
|
|
107
105
|
fill: var(--mds-paginator-item-color-selected);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
:host( [disabled] ){
|
|
111
|
-
|
|
112
106
|
pointer-events: none;
|
|
107
|
+
}
|
|
113
108
|
|
|
109
|
+
:host( [disabled] ) {
|
|
114
110
|
background-color: var(--mds-paginator-item-background-disabled);
|
|
115
111
|
box-shadow: var(--mds-paginator-item-shadow-disabled);
|
|
116
112
|
color: var(--mds-paginator-item-color-disabled);
|
|
117
113
|
fill: var(--mds-paginator-item-color-disabled);
|
|
114
|
+
pointer-events: none;
|
|
118
115
|
}
|
|
119
116
|
|
|
120
117
|
.icon{
|
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import { Host, h } from
|
|
2
|
-
import { KeyboardManager } from
|
|
1
|
+
import { Host, h } from "@stencil/core";
|
|
2
|
+
import { KeyboardManager } from "../../common/keyboard-manager";
|
|
3
|
+
/**
|
|
4
|
+
* @slot default - Add `text string` to this slot, **avoid** to add `HTML elements` or `components` here.
|
|
5
|
+
*/
|
|
3
6
|
export class MdsPaginatorItem {
|
|
4
7
|
constructor() {
|
|
5
8
|
this.km = new KeyboardManager();
|
|
@@ -13,6 +13,10 @@ const buttonToneVariantDictionary = [
|
|
|
13
13
|
'ghost',
|
|
14
14
|
'quiet',
|
|
15
15
|
];
|
|
16
|
+
const buttonTargetDictionary = [
|
|
17
|
+
'blank',
|
|
18
|
+
'self',
|
|
19
|
+
];
|
|
16
20
|
const buttonSizeDictionary = [
|
|
17
21
|
'sm',
|
|
18
22
|
'md',
|
|
@@ -23,4 +27,4 @@ const buttonIconPositionDictionary = [
|
|
|
23
27
|
'left',
|
|
24
28
|
'right',
|
|
25
29
|
];
|
|
26
|
-
export { buttonSizeDictionary, buttonToneVariantDictionary, buttonVariantDictionary,
|
|
30
|
+
export { buttonIconPositionDictionary, buttonSizeDictionary, buttonTargetDictionary, buttonToneVariantDictionary, buttonVariantDictionary, };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import jsonIconsDictionary from
|
|
2
|
-
import jsonMggIconsDictionary from
|
|
1
|
+
import jsonIconsDictionary from "../fixtures/icons.json";
|
|
2
|
+
import jsonMggIconsDictionary from "../fixtures/iconsauce.json";
|
|
3
3
|
const iconsDictionary = jsonIconsDictionary;
|
|
4
4
|
const mggIconsDictionary = jsonMggIconsDictionary;
|
|
5
5
|
export { iconsDictionary, mggIconsDictionary, };
|