@bodynarf/react.components 1.7.63 → 1.7.72

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.
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import "./style.scss";
2
3
  import { AccordionProps } from "../../accordion";
3
4
  /** Accordion panel */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/component/index.tsx"],"names":[],"mappings":"AAIA,OAAO,cAAc,CAAC;AAOtB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,sBAAsB;AACtB,QAAA,MAAM,SAAS,2FAKZ,cAAc,KAAG,WA8DnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/component/index.tsx"],"names":[],"mappings":";AAIA,OAAO,cAAc,CAAC;AAOtB,OAAO,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAE3D,sBAAsB;AACtB,QAAA,MAAM,SAAS,2FAKZ,cAAc,KAAG,WA8DnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,31 @@
1
+ .bbr-accordion {
2
+ .message {
3
+ &-header {
4
+ cursor: pointer;
5
+
6
+ .bbr-icon {
7
+ transition: transform 0.125s ease-in-out;
8
+ }
9
+ }
10
+ &-body {
11
+ color: black !important;
12
+ transition: max-height 0.2s ease-out;
13
+ overflow-y: inherit;
14
+ padding: 0 1.5em;
15
+
16
+ &__content {
17
+ padding: 1.25em 0;
18
+ }
19
+ }
20
+ }
21
+ &[aria-expanded="true"] {
22
+ .message-header i {
23
+ transform: rotate(180deg);
24
+ }
25
+ }
26
+ &[aria-expanded="false"] {
27
+ .message-body {
28
+ overflow-y: hidden;
29
+ }
30
+ }
31
+ }
@@ -17,7 +17,7 @@
17
17
  }
18
18
  }
19
19
 
20
- &__label {
20
+ label#{&}__label {
21
21
  cursor: pointer;
22
22
  user-select: none;
23
23
  display: flex;
@@ -84,7 +84,7 @@
84
84
  }
85
85
 
86
86
  &.is-active {
87
- .bbr-dropdown__label .bbr-icon.bi-arrow-down::before {
87
+ label.bbr-dropdown__label .bbr-icon.bi-arrow-down::before {
88
88
  transform: rotate(180deg);
89
89
  }
90
90
  }
@@ -104,7 +104,7 @@
104
104
  }
105
105
 
106
106
  &--disabled {
107
- .bbr-dropdown__label {
107
+ label.bbr-dropdown__label {
108
108
  background-color: hsl(0deg, 0%, 96%);
109
109
  border-color: hsl(0deg, 0%, 96%);
110
110
  box-shadow: none;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bodynarf/react.components",
3
- "version": "1.7.63",
3
+ "version": "1.7.72",
4
4
  "author": {
5
5
  "name": "Artem",
6
6
  "email": "bodynar@gmail.com"
@@ -22,14 +22,17 @@
22
22
  ],
23
23
  "scripts": {
24
24
  "build": "npx tsc && tsc-alias -p tsconfig.json",
25
- "transfer": "copy package.json dist && copy readme.md dist",
25
+ "copy_styles": "copyfiles -u 1 src/**/*.scss dist",
26
+ "copy_main" : "copyfiles package.json readme.md dist",
27
+ "transfer": "npm run copy_styles && npm run copy_main",
26
28
  "build_transfer": "npm run build && npm run transfer",
27
- "prepublish": "npm run build_transfer && cd dist && npm pack --dry-run",
29
+ "prepublish": "npm run build_transfer && cd dist && npm pack",
28
30
  "publish_pkg": "npm run build_transfer && cd dist && npm publish --access=public"
29
31
  },
30
32
  "devDependencies": {
31
33
  "@types/react": "^18.0.11",
32
34
  "@types/react-dom": "^18.0.5",
35
+ "copyfiles": "^2.4.1",
33
36
  "tsc-alias": "^1.8.6",
34
37
  "typescript": "^4.7.3"
35
38
  },
@@ -39,4 +42,4 @@
39
42
  "react": "^18.1.0",
40
43
  "react-dom": "^18.1.0"
41
44
  }
42
- }
45
+ }