@cypress-design/react-accordion 0.3.0 → 0.4.0

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.
@@ -2,5 +2,5 @@ $ yarn build:module && yarn build:types
2
2
  $ rollup -c ./rollup.config.mjs
3
3
  
4
4
  ./index.ts → ./dist/index.umd.js, ./dist/index.es.mjs...
5
- created ./dist/index.umd.js, ./dist/index.es.mjs in 28.3s
5
+ created ./dist/index.umd.js, ./dist/index.es.mjs in 22.9s
6
6
  $ tsc --project ./tsconfig.build.json
package/Accordion.tsx CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as React from 'react'
2
2
  import clsx from 'clsx'
3
- import { CssClasses } from '../constants'
4
- import type { AccordionProps } from '../constants'
3
+ import { CssClasses } from '@cypress-design/constants-accordion'
4
+ import type { AccordionProps } from '@cypress-design/constants-accordion'
5
5
  import { DetailsAnimation } from '@cypress-design/details-animation'
6
6
  import { IconChevronDownSmall } from '@cypress-design/react-icon'
7
7
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @cypress-design/react-accordion
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#196](https://github.com/cypress-io/cypress-design/pull/196) [`fc6d9e4`](https://github.com/cypress-io/cypress-design/commit/fc6d9e4fedcc01fa8e01b868b0fa66d8895c37d0) Thanks [@elevatebart](https://github.com/elevatebart)! - refactor: avoid constants relative imports
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [[`fc6d9e4`](https://github.com/cypress-io/cypress-design/commit/fc6d9e4fedcc01fa8e01b868b0fa66d8895c37d0)]:
12
+ - @cypress-design/react-icon@0.20.0
13
+
3
14
  ## 0.3.0
4
15
 
5
16
  ### Minor Changes
package/ReadMe.md CHANGED
@@ -1,9 +1,5 @@
1
1
  # Accordion
2
2
 
3
- ## Summary
4
-
5
- Collapsible component with a header and a body.
6
-
7
3
  ## Install
8
4
 
9
5
  ```bash
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import type { AccordionProps } from '../constants';
2
+ import type { AccordionProps } from '@cypress-design/constants-accordion';
3
3
  export interface AccordionPropsReact extends AccordionProps {
4
4
  /**
5
5
  * Icon to be displayed on the left of the the heading. Overridden by the iconEl prop, if both are provided.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"./","sources":["Accordion.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAG9B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAA;AAIzE,MAAM,WAAW,mBAAoB,SAAQ,cAAc;IACzD;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAA;IAC9C;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CACzB;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAC9B,mBAAmB,GAAG,KAAK,CAAC,SAAS,CAAC,kBAAkB,CAAC,CAwE1D,CAAA;AAED,eAAe,SAAS,CAAA"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"./","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA"}
package/dist/index.es.mjs CHANGED
@@ -42,7 +42,7 @@ function __rest$1(s, e) {
42
42
  return t;
43
43
  }
44
44
 
45
- var CssClasses = {
45
+ const CssClasses = {
46
46
  summary: 'details-none card open:rounded-b-none',
47
47
  summaryDiv: 'flex flex-row py-[12px] px-[24px] flex-nowrap items-center min-h-[63px]',
48
48
  summaryColor: 'bg-white',
@@ -156,4 +156,4 @@ var Accordion = function (_a) {
156
156
  export { Accordion as default };
157
157
  //# sourceMappingURL=index.es.mjs.map
158
158
 
159
- /* <windicss-keep class="flex-grow pr-[16px] open:icon-dark-gray-500 details-none card open:rounded-b-none flex flex-row py-[12px] px-[24px] flex-nowrap items-center min-h-[63px] bg-white text-[18px] leading-[28px] font-medium text-indigo-500 block text-[14px] leading-[20px] font-normal text-gray-700 mr-[24px] flex-shrink-0 w-[1px] h-[40px] bg-gray-100 mr-[16px] transition transform rotate-0 open:rotate-180 border border-gray-100 rounded-b-md border-t-0 py-[16px]"> */
159
+ /* <windicss-keep class="flex-grow pr-[16px] open:icon-dark-gray-500"> */