@nimbus-ds/list 2.2.0 → 2.2.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/CHANGELOG.md +7 -0
- package/dist/CHANGELOG.md +63 -0
- package/dist/README.md +32 -0
- package/dist/index.d.ts +46 -14
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Use the list component to arrange a collection of text elements. Each list item begins with either a bullet or a number.
|
|
4
4
|
|
|
5
|
+
## 2025-03-18 `2.2.1`
|
|
6
|
+
|
|
7
|
+
### 💡 Others
|
|
8
|
+
|
|
9
|
+
- Rebuild after build process changes to add support for modular imports and Server Components. ([#276](https://github.com/TiendaNube/nimbus-design-system/pull/276) by [@joacotornello](https://github.com/joacotornello))
|
|
10
|
+
|
|
5
11
|
## 2023-03-13 `2.2.0`
|
|
6
12
|
|
|
7
13
|
### 💡 Others
|
|
@@ -31,6 +37,7 @@ Use the list component to arrange a collection of text elements. Each list item
|
|
|
31
37
|
- Removed `terser-webpack-plugin@5.3.5`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
|
|
32
38
|
- Removed `ts-loader@9.3.1`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
|
|
33
39
|
- Removed `webpack-cli@4.10.0`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
|
|
40
|
+
- Removed `webpack@5.74.0`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
|
|
34
41
|
- Removed `typescript@4.7.4`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
|
|
35
42
|
|
|
36
43
|
## 2022-09-30 `1.0.0`
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
Use the list component to arrange a collection of text elements. Each list item begins with either a bullet or a number.
|
|
4
|
+
|
|
5
|
+
## 2025-03-18 `2.2.1`
|
|
6
|
+
|
|
7
|
+
### 💡 Others
|
|
8
|
+
|
|
9
|
+
- Rebuild after build process changes to add support for modular imports and Server Components. ([#276](https://github.com/TiendaNube/nimbus-design-system/pull/276) by [@joacotornello](https://github.com/joacotornello))
|
|
10
|
+
|
|
11
|
+
## 2023-03-13 `2.2.0`
|
|
12
|
+
|
|
13
|
+
### 💡 Others
|
|
14
|
+
|
|
15
|
+
- Refactored style classes to have more semantic names. ([#110](https://github.com/TiendaNube/nimbus-design-system/pull/110) by [@juniorconquista](https://github.com/juniorconquista))
|
|
16
|
+
|
|
17
|
+
## 2023-02-23 `2.1.0`
|
|
18
|
+
|
|
19
|
+
### 🎉 New features
|
|
20
|
+
|
|
21
|
+
- Added server side-rendering support to component. ([#105](https://github.com/TiendaNube/nimbus-design-system/pull/105) by [@juniorconquista](https://github.com/juniorconquista))
|
|
22
|
+
|
|
23
|
+
## 2022-12-22 `2.0.0`
|
|
24
|
+
|
|
25
|
+
### 💡 Others
|
|
26
|
+
|
|
27
|
+
- Removed direct dependency on `nimbus-ds/styles` package from component build. ([#69](https://github.com/TiendaNube/nimbus-design-system/pull/69) by [@juniorconquista](https://github.com/juniorconquista))
|
|
28
|
+
|
|
29
|
+
## 2022-12-07 `1.1.0`
|
|
30
|
+
|
|
31
|
+
### 🎉 New features
|
|
32
|
+
|
|
33
|
+
- Changed build build to consume inner package `@nimbus-ds/webpack`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
|
|
34
|
+
|
|
35
|
+
### 📚 3rd party library updates
|
|
36
|
+
|
|
37
|
+
- Removed `terser-webpack-plugin@5.3.5`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
|
|
38
|
+
- Removed `ts-loader@9.3.1`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
|
|
39
|
+
- Removed `webpack-cli@4.10.0`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
|
|
40
|
+
- Removed `webpack@5.74.0`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
|
|
41
|
+
- Removed `typescript@4.7.4`. ([#63](https://github.com/TiendaNube/nimbus-design-system/pull/63) by [@juniorconquista](https://github.com/juniorconquista))
|
|
42
|
+
|
|
43
|
+
## 2022-09-30 `1.0.0`
|
|
44
|
+
|
|
45
|
+
### 📚 3rd party library updates
|
|
46
|
+
|
|
47
|
+
- Added `terser-webpack-plugin@5.3.5`. ([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
48
|
+
- Added `ts-loader@9.3.1`. ([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
49
|
+
- Added `typescript@4.7.4`. ([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
50
|
+
- Added `webpack@5.74.0`. ([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
51
|
+
- Added `webpack-cli@4.10.0`. ([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
52
|
+
|
|
53
|
+
### 🎉 New features
|
|
54
|
+
|
|
55
|
+
- Added `children` and `as` properties to the Component.([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
56
|
+
- Added stories on Component. ([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
57
|
+
- Created new `List.Item` subcomponent.([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
58
|
+
- Added `children` property to the Component `List.Item`.([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
59
|
+
- Created new `List.Skeleton` subcomponent.([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
60
|
+
- Added `children` property to the Component `List.Skeleton`.([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
61
|
+
- Added stories on Component `List.Skeleton`.([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
62
|
+
- Created new `List.SkeletonItem` Component.([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
|
63
|
+
- Added `width` and `height` properties to the Component `List.SkeletonItem`.([#33](https://github.com/TiendaNube/nimbus-design-system/pull/33) by [@juanchigallego](https://github.com/juanchigallego))
|
package/dist/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# `@nimbus-ds/list`
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@nimbus-ds/list)
|
|
4
|
+
|
|
5
|
+
The List component allows us to organize information in text format in a list.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
$ yarn add @nimbus-ds/list
|
|
11
|
+
# or
|
|
12
|
+
$ npm install @nimbus-ds/list
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Component Anatomy
|
|
16
|
+
|
|
17
|
+
The component is composed of a bullet point or a numerator and a text.
|
|
18
|
+
|
|
19
|
+
## Guidelines
|
|
20
|
+
|
|
21
|
+
We use this component when we need to organize various textual information vertically and following a numbered order or not.
|
|
22
|
+
|
|
23
|
+
### Recommendation for use
|
|
24
|
+
|
|
25
|
+
- Organize information in a numbered way
|
|
26
|
+
- Organize information in bullet points
|
|
27
|
+
|
|
28
|
+
## Usage
|
|
29
|
+
|
|
30
|
+
View docs [here](https://nimbus.nuvemshop.com.br/documentation/atomic-components/list).
|
|
31
|
+
|
|
32
|
+
<img alt="Nimbus" style="margin-bottom: 30px;" src="https://tiendanube.github.io/design-system-nimbus/static/media/nimbus-logo.ab60bd79.png" height="30" />
|
package/dist/index.d.ts
CHANGED
|
@@ -1,43 +1,75 @@
|
|
|
1
|
-
// Generated by dts-bundle-generator v7.
|
|
1
|
+
// Generated by dts-bundle-generator v7.2.0
|
|
2
2
|
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
5
5
|
|
|
6
|
-
export interface
|
|
7
|
-
/**
|
|
6
|
+
export interface SkeletonProperties {
|
|
7
|
+
/**
|
|
8
|
+
* Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
|
|
9
|
+
*/
|
|
8
10
|
width: string;
|
|
9
|
-
/**
|
|
11
|
+
/**
|
|
12
|
+
* Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
|
|
13
|
+
*/
|
|
10
14
|
height: string;
|
|
11
|
-
/**
|
|
15
|
+
/**
|
|
16
|
+
* The border radius of the skeleton.
|
|
17
|
+
*/
|
|
12
18
|
borderRadius?: string;
|
|
19
|
+
/**
|
|
20
|
+
* This is an attribute used to identify a DOM node for testing purposes.
|
|
21
|
+
*/
|
|
22
|
+
"data-testid"?: string;
|
|
13
23
|
}
|
|
14
|
-
export type
|
|
24
|
+
export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
|
|
25
|
+
export type ListSkeletonItemProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
|
|
26
|
+
/**
|
|
27
|
+
* This is an attribute used to identify a DOM node for testing purposes.
|
|
28
|
+
*/
|
|
15
29
|
"data-testid"?: string;
|
|
16
30
|
};
|
|
31
|
+
export type ListSkeletonItemProps = ListSkeletonItemProperties;
|
|
17
32
|
declare const ListSkeletonItem: React.FC<ListSkeletonItemProps>;
|
|
18
|
-
export interface
|
|
19
|
-
/**
|
|
33
|
+
export interface ListSkeletonProperties {
|
|
34
|
+
/**
|
|
35
|
+
* The content of the list skeleton.
|
|
36
|
+
* @TJS-type React.ReactNode
|
|
37
|
+
*/
|
|
20
38
|
children: ReactNode;
|
|
21
|
-
/**
|
|
39
|
+
/**
|
|
40
|
+
* This is an attribute used to identify a DOM node for testing purposes.
|
|
41
|
+
*/
|
|
22
42
|
"data-testid"?: string;
|
|
23
43
|
}
|
|
44
|
+
export type ListSkeletonProps = ListSkeletonProperties & HTMLAttributes<HTMLDivElement>;
|
|
24
45
|
declare const ListSkeleton: React.FC<ListSkeletonProps>;
|
|
25
|
-
export interface
|
|
26
|
-
/**
|
|
46
|
+
export interface ListItemProperties {
|
|
47
|
+
/**
|
|
48
|
+
* The content of the list item.
|
|
49
|
+
* @TJS-type React.ReactNode
|
|
50
|
+
*/
|
|
27
51
|
children: ReactNode;
|
|
28
52
|
}
|
|
53
|
+
export type ListItemProps = ListItemProperties & HTMLAttributes<HTMLLIElement>;
|
|
29
54
|
declare const ListItem: React.FC<ListItemProps>;
|
|
30
55
|
export interface ListComponents {
|
|
31
56
|
Skeleton: typeof ListSkeleton;
|
|
32
57
|
SkeletonItem: typeof ListSkeletonItem;
|
|
33
58
|
Item: typeof ListItem;
|
|
34
59
|
}
|
|
35
|
-
export interface
|
|
36
|
-
/**
|
|
60
|
+
export interface ListProperties {
|
|
61
|
+
/**
|
|
62
|
+
* The content of the list.
|
|
63
|
+
* @TJS-type React.ReactNode
|
|
64
|
+
*/
|
|
37
65
|
children: ReactNode;
|
|
38
|
-
/**
|
|
66
|
+
/**
|
|
67
|
+
* Determines the type of html list that will be rendered
|
|
68
|
+
* @default ul
|
|
69
|
+
*/
|
|
39
70
|
as?: "ul" | "ol";
|
|
40
71
|
}
|
|
72
|
+
export type ListProps = ListProperties & HTMLAttributes<HTMLUListElement | HTMLOListElement>;
|
|
41
73
|
export declare const List: React.FC<ListProps> & ListComponents;
|
|
42
74
|
|
|
43
75
|
export {
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@nimbus-ds/styles"),require("@nimbus-ds/skeleton")):"function"==typeof define&&define.amd?define(["react","@nimbus-ds/styles","@nimbus-ds/skeleton"],t):"object"==typeof exports?exports["@nimbus-ds/list"]=t(require("react"),require("@nimbus-ds/styles"),require("@nimbus-ds/skeleton")):e["@nimbus-ds/list"]=t(e.react,e["@nimbus-ds/styles"],e["@nimbus-ds/skeleton"])}(global,((e,t,r)=>(()=>{"use strict";var n={632:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;const n=r(15).__importDefault(r(156)),o=r(990),i=r(612),a=({className:e,style:t,as:r="ul",children:i,...a})=>n.default.createElement(r,{...a,className:o.list.classnames.container},i);t.List=a,a.Skeleton=i.ListSkeleton,a.SkeletonItem=i.ListSkeletonItem,a.Item=i.ListItem,a.displayName="List",a.Item.displayName="List.Item",a.Skeleton.displayName="List.Skeleton",a.SkeletonItem.displayName="List.SkeletonItem"},689:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListItem=void 0;const n=r(15).__importDefault(r(156)),o=r(990);t.ListItem=({className:e,style:t,children:r,...i})=>n.default.createElement("li",{...i,className:o.list.classnames.container__item},r)},616:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListItem=void 0;const n=r(689);var o=r(689);Object.defineProperty(t,"ListItem",{enumerable:!0,get:function(){return o.ListItem}}),t.default=n.ListItem},120:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListSkeleton=void 0;const n=r(15).__importDefault(r(156)),o=r(990);t.ListSkeleton=({className:e,style:t,children:r,"data-testid":i,...a})=>n.default.createElement("div",{...a,className:o.list.classnames.skeleton,"data-testid":i},r)},586:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListSkeleton=void 0;const n=r(120);var o=r(120);Object.defineProperty(t,"ListSkeleton",{enumerable:!0,get:function(){return o.ListSkeleton}}),t.default=n.ListSkeleton},798:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListSkeletonItem=void 0;const n=r(15).__importDefault(r(156)),o=r(678);t.ListSkeletonItem=({width:e,height:t,"data-testid":r})=>n.default.createElement(o.Skeleton,{width:e??"6rem",height:t??"1.125rem",borderRadius:"0.25rem","data-testid":r})},698:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListSkeletonItem=void 0;const n=r(798);var o=r(798);Object.defineProperty(t,"ListSkeletonItem",{enumerable:!0,get:function(){return o.ListSkeletonItem}}),t.default=n.ListSkeletonItem},612:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(15);n.__exportStar(r(698),t),n.__exportStar(r(586),t),n.__exportStar(r(616),t)},15:(e,t,r)=>{r.r(t),r.d(t,{__assign:()=>i,__asyncDelegator:()=>O,__asyncGenerator:()=>w,__asyncValues:()=>S,__await:()=>h,__awaiter:()=>s,__classPrivateFieldGet:()=>L,__classPrivateFieldIn:()=>I,__classPrivateFieldSet:()=>x,__createBinding:()=>d,__decorate:()=>l,__exportStar:()=>p,__extends:()=>o,__generator:()=>f,__importDefault:()=>k,__importStar:()=>P,__makeTemplateObject:()=>j,__metadata:()=>c,__param:()=>u,__read:()=>m,__rest:()=>a,__spread:()=>b,__spreadArray:()=>v,__spreadArrays:()=>_,__values:()=>y});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};function a(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function l(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function u(e,t){return function(r,n){t(r,n,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function s(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function l(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,l)}u((n=n.apply(e,t||[])).next())}))}function f(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:l(0),throw:l(1),return:l(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function l(i){return function(l){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,l])}}}var d=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function p(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||d(t,e,r)}function y(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a}function b(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function _(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,l=i.length;a<l;a++,o++)n[o]=i[a];return n}function v(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function h(e){return this instanceof h?(this.v=e,this):new h(e)}function w(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),i=[];return n={},a("next"),a("throw"),a("return"),n[Symbol.asyncIterator]=function(){return this},n;function a(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){i.push([e,t,r,n])>1||l(e,t)}))})}function l(e,t){try{(r=o[e](t)).value instanceof h?Promise.resolve(r.value.v).then(u,c):s(i[0][2],r)}catch(e){s(i[0][3],e)}var r}function u(e){l("next",e)}function c(e){l("throw",e)}function s(e,t){e(t),i.shift(),i.length&&l(i[0][0],i[0][1])}}function O(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:h(e[n](t)),done:"return"===n}:o?o(t):t}:o}}function S(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=y(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function j(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var g=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function P(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&d(t,e,r);return g(t,e),t}function k(e){return e&&e.__esModule?e:{default:e}}function L(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function x(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function I(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}},678:e=>{e.exports=r},990:e=>{e.exports=t},156:t=>{t.exports=e}},o={};function i(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,i),r.exports}i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.List=void 0;const t=i(632);var r=i(632);Object.defineProperty(e,"List",{enumerable:!0,get:function(){return r.List}}),e.default=t.List})(),a})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@nimbus-ds/styles"),require("@nimbus-ds/skeleton")):"function"==typeof define&&define.amd?define(["react","@nimbus-ds/styles","@nimbus-ds/skeleton"],t):"object"==typeof exports?exports["@nimbus-ds/list"]=t(require("react"),require("@nimbus-ds/styles"),require("@nimbus-ds/skeleton")):e["@nimbus-ds/list"]=t(e.react,e["@nimbus-ds/styles"],e["@nimbus-ds/skeleton"])}(global,((e,t,r)=>(()=>{"use strict";var n={722:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.List=void 0;const n=r(769).__importDefault(r(155)),o=r(367),a=r(337),i=({className:e,style:t,as:r="ul",children:a,...i})=>n.default.createElement(r,{...i,className:o.list.classnames.container},a);t.List=i,i.Skeleton=a.ListSkeleton,i.SkeletonItem=a.ListSkeletonItem,i.Item=a.ListItem,i.displayName="List",i.Item.displayName="List.Item",i.Skeleton.displayName="List.Skeleton",i.SkeletonItem.displayName="List.SkeletonItem"},574:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListItem=void 0;const n=r(769).__importDefault(r(155)),o=r(367);t.ListItem=({className:e,style:t,children:r,...a})=>n.default.createElement("li",{...a,className:o.list.classnames.container__item},r)},905:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListItem=void 0;const n=r(574);var o=r(574);Object.defineProperty(t,"ListItem",{enumerable:!0,get:function(){return o.ListItem}}),t.default=n.ListItem},910:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListSkeleton=void 0;const n=r(769).__importDefault(r(155)),o=r(367);t.ListSkeleton=({className:e,style:t,children:r,"data-testid":a,...i})=>n.default.createElement("div",{...i,className:o.list.classnames.skeleton,"data-testid":a},r)},641:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListSkeleton=void 0;const n=r(910);var o=r(910);Object.defineProperty(t,"ListSkeleton",{enumerable:!0,get:function(){return o.ListSkeleton}}),t.default=n.ListSkeleton},764:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListSkeletonItem=void 0;const n=r(769).__importDefault(r(155)),o=r(334);t.ListSkeletonItem=({width:e,height:t,"data-testid":r})=>n.default.createElement(o.Skeleton,{width:e??"6rem",height:t??"1.125rem",borderRadius:"0.25rem","data-testid":r})},414:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ListSkeletonItem=void 0;const n=r(764);var o=r(764);Object.defineProperty(t,"ListSkeletonItem",{enumerable:!0,get:function(){return o.ListSkeletonItem}}),t.default=n.ListSkeletonItem},337:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(769);n.__exportStar(r(414),t),n.__exportStar(r(641),t),n.__exportStar(r(905),t)},334:e=>{e.exports=r},367:e=>{e.exports=t},155:t=>{t.exports=e},769:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>N,__assign:()=>a,__asyncDelegator:()=>P,__asyncGenerator:()=>j,__asyncValues:()=>k,__await:()=>O,__awaiter:()=>y,__classPrivateFieldGet:()=>T,__classPrivateFieldIn:()=>M,__classPrivateFieldSet:()=>D,__createBinding:()=>m,__decorate:()=>s,__disposeResources:()=>A,__esDecorate:()=>l,__exportStar:()=>b,__extends:()=>o,__generator:()=>_,__importDefault:()=>E,__importStar:()=>L,__makeTemplateObject:()=>x,__metadata:()=>d,__param:()=>c,__propKey:()=>f,__read:()=>h,__rest:()=>i,__runInitializers:()=>u,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>g,__spreadArrays:()=>S,__values:()=>v,default:()=>F});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function s(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function c(e,t){return function(r,n){t(r,n,e)}}function l(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var s,c=n.kind,l="getter"===c?"get":"setter"===c?"set":"value",u=!t&&e?n.static?e:e.prototype:null,f=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),p=!1,d=r.length-1;d>=0;d--){var y={};for(var _ in n)y[_]="access"===_?{}:n[_];for(var _ in n.access)y.access[_]=n.access[_];y.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var m=(0,r[d])("accessor"===c?{get:f.get,set:f.set}:f[l],y);if("accessor"===c){if(void 0===m)continue;if(null===m||"object"!=typeof m)throw new TypeError("Object expected");(s=i(m.get))&&(f.get=s),(s=i(m.set))&&(f.set=s),(s=i(m.init))&&o.unshift(s)}else(s=i(m))&&("field"===c?o.unshift(s):f[l]=s)}u&&Object.defineProperty(u,n.name,f),p=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function d(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function y(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{c(n.next(e))}catch(e){a(e)}}function s(e){try{c(n.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,s)}c((n=n.apply(e,t||[])).next())}))}function _(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&s[0]?n.return:s[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,s[1])).done)return o;switch(n=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,n=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){i.label=s[1];break}if(6===s[0]&&i.label<o[1]){i.label=o[1],o=s;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(s);break}o[2]&&i.ops.pop(),i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e],n=0}finally{r=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,c])}}}var m=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function b(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||m(t,e,r)}function v(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function S(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,s=a.length;i<s;i++,o++)n[o]=a[i];return n}function g(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function j(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||s(e,t)}))})}function s(e,t){try{(r=o[e](t)).value instanceof O?Promise.resolve(r.value.v).then(c,l):u(a[0][2],r)}catch(e){u(a[0][3],e)}var r}function c(e){s("next",e)}function l(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function P(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:O(e[n](t)),done:!1}:o?o(t):t}:o}}function k(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=v(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function L(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&m(t,e,r);return I(t,e),t}function E(e){return e&&e.__esModule?e:{default:e}}function T(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function D(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function M(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function N(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var R="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function A(e){function t(t){e.error=e.hasError?new R(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const F={__extends:o,__assign:a,__rest:i,__decorate:s,__param:c,__metadata:d,__awaiter:y,__generator:_,__createBinding:m,__exportStar:b,__values:v,__read:h,__spread:w,__spreadArrays:S,__spreadArray:g,__await:O,__asyncGenerator:j,__asyncDelegator:P,__asyncValues:k,__makeTemplateObject:x,__importStar:L,__importDefault:E,__classPrivateFieldGet:T,__classPrivateFieldSet:D,__classPrivateFieldIn:M,__addDisposableResource:N,__disposeResources:A}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.List=void 0;const t=a(722);var r=a(722);Object.defineProperty(e,"List",{enumerable:!0,get:function(){return r.List}}),e.default=t.List})(),i})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nimbus-ds/list",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
],
|
|
10
10
|
"sideEffects": false,
|
|
11
11
|
"scripts": {
|
|
12
|
-
"build": "webpack",
|
|
12
|
+
"build": "yarn g:webpack",
|
|
13
13
|
"clean": "rm -rf dist",
|
|
14
14
|
"version": "yarn version"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@nimbus-ds/skeleton": "^3.0.
|
|
17
|
+
"@nimbus-ds/skeleton": "^3.0.1"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"react": "^16.8 || ^17.0 || ^18.0",
|
|
@@ -29,6 +29,6 @@
|
|
|
29
29
|
"url": "https://github.com/TiendaNube/nimbus-design-system/issues"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"webpack": "^5.
|
|
32
|
+
"@nimbus-ds/webpack": "^1.5.0"
|
|
33
33
|
}
|
|
34
34
|
}
|