@bodynarf/react.components 1.14.0 → 1.14.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.
Files changed (44) hide show
  1. package/changelog.md +1 -1
  2. package/components/accordion/component/index.js +1 -1
  3. package/components/accordion/component/style.css +21 -0
  4. package/components/anchor/component/style.css +12 -0
  5. package/components/button/component/style.css +10 -0
  6. package/components/dropdown/component/style.css +101 -0
  7. package/components/dropdown/components/compact/index.d.ts.map +1 -1
  8. package/components/dropdown/components/compact/index.js +3 -3
  9. package/components/dropdown/components/label/components/empty/index.js +1 -1
  10. package/components/dropdown/components/label/components/withSearch/style.css +21 -0
  11. package/components/dropdown/types.d.ts +6 -6
  12. package/components/dropdown/types.d.ts.map +1 -1
  13. package/components/file/component/styles.css +74 -0
  14. package/components/icon/component/style.css +19 -0
  15. package/components/index.d.ts +0 -2
  16. package/components/index.d.ts.map +1 -1
  17. package/components/index.js +0 -2
  18. package/components/modal/component/style.css +32 -0
  19. package/components/multiselect/component/style.css +20 -0
  20. package/components/multiselect/components/withoutLabel/index.d.ts.map +1 -1
  21. package/components/multiselect/components/withoutLabel/index.js +3 -3
  22. package/components/primitives/checkbox/component/style.css +19 -0
  23. package/components/primitives/color/component/style.css +15 -0
  24. package/components/primitives/date/component/style.css +9 -0
  25. package/components/primitives/internal/hint/style.css +4 -0
  26. package/components/primitives/password/component/style.css +10 -0
  27. package/components/primitives/radioGroup/component/style.css +382 -0
  28. package/components/primitives/radioGroup/component/style.scss +2 -0
  29. package/components/primitives/slider/component/style.css +438 -0
  30. package/components/primitives/slider/component/style.scss +2 -0
  31. package/components/primitives/switch/component/style.css +482 -0
  32. package/components/primitives/switch/component/style.scss +2 -0
  33. package/components/primitives/timePicker/component/style.css +21 -0
  34. package/components/progress/component/style.css +167 -0
  35. package/components/search/component/style.css +18 -0
  36. package/components/stepper/component/style.css +510 -0
  37. package/components/stepper/component/style.scss +2 -0
  38. package/components/table/component/style.css +14 -0
  39. package/components/tabs/component/style.css +6 -0
  40. package/components/tag/component/style.css +19 -0
  41. package/components/timeline/component/style.css +488 -0
  42. package/components/timeline/component/style.scss +2 -0
  43. package/package.json +10 -3
  44. package/tsconfig.tsbuildinfo +1 -1
package/changelog.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # Change log
2
2
  All changes will be published here in reverse chronological order
3
3
 
4
- ## v1.3.0
4
+ ## v1.3.0 (v1.13.0)
5
5
  - **ModalWrapper** *(new)*
6
6
  - Added new modal window wrapper component based on Bulma modal.
7
7
  - Supports `title`, `size`, `className`, `data` props.
@@ -7,9 +7,9 @@ import Icon from "../../icon";
7
7
  import "./style.scss";
8
8
  /** Accordion panel */
9
9
  const Accordion = ({ children, caption, style, size = ElementSize.Normal, defaultExpanded = false, onToggle = emptyFn, className, title, data, }) => {
10
- const expandablePanelRef = useRef(null);
11
10
  const [isExpanded, setIsExpanded] = useState(defaultExpanded);
12
11
  const [maxHeight, setMaxHeight] = useState(defaultExpanded ? undefined : 0);
12
+ const expandablePanelRef = useRef(null);
13
13
  const toggleCollapse = useCallback(() => setMaxHeight(isExpanded ? 0 : expandablePanelRef.current.scrollHeight), [isExpanded]);
14
14
  useEffect(() => {
15
15
  if (defaultExpanded && isNotNullish(expandablePanelRef.current)) {
@@ -0,0 +1,21 @@
1
+ .bbr-accordion .message-header {
2
+ cursor: pointer;
3
+ }
4
+ .bbr-accordion .message-header .bbr-icon {
5
+ transition: transform 0.125s ease-in-out;
6
+ }
7
+ .bbr-accordion .message-body {
8
+ color: black !important;
9
+ transition: max-height 0.2s ease-out;
10
+ overflow-y: inherit;
11
+ padding: 0 1.5em;
12
+ }
13
+ .bbr-accordion .message-body__content {
14
+ padding: 1.25em 0;
15
+ }
16
+ .bbr-accordion[aria-expanded=true] .message-header i {
17
+ transform: rotate(180deg);
18
+ }
19
+ .bbr-accordion[aria-expanded=false] .message-body {
20
+ overflow-y: hidden;
21
+ }
@@ -0,0 +1,12 @@
1
+ .bbr-anchor {
2
+ text-decoration: none;
3
+ color: inherit;
4
+ transition: 0.15s ease-in-out color;
5
+ }
6
+ .bbr-anchor:not(.bbr-anchor--unhoverable):hover {
7
+ text-decoration: underline;
8
+ color: #3273dc;
9
+ }
10
+ .bbr-anchor .bbr-icon {
11
+ transition: none;
12
+ }
@@ -0,0 +1,10 @@
1
+ .bbr-button {
2
+ transition: 0.15s ease-in-out;
3
+ transition-property: background-color, border-color;
4
+ }
5
+ .bbr-button--icon-only {
6
+ padding: 0.55rem !important;
7
+ }
8
+ .bbr-button.is-warning.is-outlined:not([disabled]):hover {
9
+ color: #000 !important;
10
+ }
@@ -0,0 +1,101 @@
1
+ .bbr-dropdown {
2
+ min-width: 7.5rem;
3
+ }
4
+ .bbr-dropdown:not(.bbr-dropdown--compact) {
5
+ display: block;
6
+ }
7
+ .bbr-dropdown:not(.bbr-dropdown--compact) .dropdown-menu {
8
+ min-width: 100%;
9
+ }
10
+ .bbr-dropdown .dropdown-menu .dropdown-content {
11
+ overflow: auto;
12
+ }
13
+ .bbr-dropdown .bbr-dropdown__label {
14
+ cursor: pointer;
15
+ user-select: none;
16
+ display: flex;
17
+ justify-content: flex-start;
18
+ }
19
+ .bbr-dropdown .bbr-dropdown__label span {
20
+ white-space: nowrap;
21
+ text-overflow: ellipsis;
22
+ overflow-x: hidden;
23
+ max-width: 15rem;
24
+ }
25
+ .bbr-dropdown .bbr-dropdown__label--default span {
26
+ color: gray;
27
+ font-style: italic;
28
+ }
29
+ .bbr-dropdown .bbr-dropdown__label .bbr-icon:not(.bbr-dropdown-item__icon):hover {
30
+ color: #0d6efd;
31
+ }
32
+ .bbr-dropdown .bbr-dropdown__label .bbr-icon:not(.bbr-dropdown-item__icon).bi-arrow-down {
33
+ margin-left: auto;
34
+ }
35
+ .bbr-dropdown .bbr-dropdown__label .bbr-icon:not(.bbr-dropdown-item__icon).bi-arrow-down::before {
36
+ transition: 0.25s ease-in-out transform;
37
+ }
38
+ .bbr-dropdown .bbr-dropdown__label .bbr-icon:not(.bbr-dropdown-item__icon).bi-plus-lg::before {
39
+ transform: rotate(45deg);
40
+ }
41
+ .bbr-dropdown .bbr-dropdown__label.is-success--md {
42
+ border-color: #48c78e;
43
+ }
44
+ .bbr-dropdown .bbr-dropdown__label.is-danger--md {
45
+ border-color: #f14668;
46
+ }
47
+ .bbr-dropdown-item {
48
+ cursor: pointer;
49
+ user-select: none;
50
+ white-space: normal;
51
+ transition: 0.25s ease-in-out;
52
+ transition-property: color, background-color;
53
+ }
54
+ .bbr-dropdown-item:hover {
55
+ background-color: rgba(0, 0, 0, 0.05);
56
+ color: #0a0a0a;
57
+ }
58
+ .bbr-dropdown-item:active {
59
+ background-color: rgba(0, 0, 0, 0.15);
60
+ color: #0a0a0a;
61
+ }
62
+ .bbr-dropdown-item.is-active {
63
+ background-color: #485fc7;
64
+ color: #fff;
65
+ }
66
+ .bbr-dropdown-item__icon {
67
+ padding-left: 0.05rem;
68
+ }
69
+ .bbr-dropdown.is-active .bbr-dropdown__label .bbr-icon.bi-arrow-down::before {
70
+ transform: rotate(180deg);
71
+ }
72
+ .bbr-dropdown.is-up .dropdown-menu {
73
+ top: auto;
74
+ bottom: 100%;
75
+ }
76
+ .bbr-dropdown.is-up.is-active .bbr-dropdown__label .bbr-icon.bi-arrow-down::before {
77
+ transform: rotate(360deg);
78
+ }
79
+ .bbr-dropdown--height-default .dropdown-menu .dropdown-content {
80
+ max-height: 15vw;
81
+ }
82
+ .bbr-dropdown--compact {
83
+ width: fit-content;
84
+ }
85
+ .bbr-dropdown--compact .dropdown-menu {
86
+ min-width: 11.75rem;
87
+ }
88
+ .bbr-dropdown--disabled .bbr-dropdown__label {
89
+ background-color: hsl(0, 0%, 96%);
90
+ border-color: hsl(0, 0%, 96%);
91
+ box-shadow: none;
92
+ color: hsl(0, 0%, 48%);
93
+ cursor: not-allowed;
94
+ }
95
+ .bbr-dropdown--disabled .bbr-dropdown__label .bbr-icon {
96
+ pointer-events: none;
97
+ }
98
+ .bbr-dropdown--disabled .bbr-dropdown__label:hover {
99
+ border-color: hsl(0, 0%, 96%);
100
+ color: hsl(0, 0%, 48%);
101
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/dropdown/components/compact/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4C,EAAE,EAAmB,MAAM,OAAO,CAAC;AAQtF,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,sCAAsC;AACtC,KAAK,oBAAoB,GAAG,aAAa,GAAG;IACxC,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,uCAAuC;AACvC,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA2L7C,CAAC;AAEF,eAAe,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/dropdown/components/compact/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA4C,EAAE,EAAmB,MAAM,OAAO,CAAC;AAQtF,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAItC,sCAAsC;AACtC,KAAK,oBAAoB,GAAG,aAAa,GAAG;IACxC,yCAAyC;IACzC,EAAE,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,uCAAuC;AACvC,QAAA,MAAM,eAAe,EAAE,EAAE,CAAC,oBAAoB,CA0L7C,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -8,12 +8,12 @@ import DropdownItem from "../../components/item";
8
8
  import DropdownLabel from "../../components/label";
9
9
  /** Dropdown component without label */
10
10
  const DropdownCompact = ({ items, value, onSelect, hideOnOuterClick = true, listMaxHeight, placeholder = "", noDataText = "No items found", noDataByQuery = "No items found by specified search", compact = false, disabled = false, deselectable = false, searchable = false, validationState, className, title, data, hint, id: propsId, }) => {
11
- const generatedId = useId();
12
- const id = propsId ?? generatedId;
13
- const containerRef = useRef(null);
14
11
  const [isListVisible, setListVisible] = useState(false);
15
12
  const [searchValue, setSearchValue] = useState("");
16
13
  const [isOpenUp, setIsOpenUp] = useState(false);
14
+ const generatedId = useId();
15
+ const id = propsId ?? generatedId;
16
+ const containerRef = useRef(null);
17
17
  const filteredItems = useMemo(() => items.filter(({ displayValue }) => displayValue.toLocaleLowerCase().includes(searchValue.toLocaleLowerCase())), [items, searchValue]);
18
18
  const onItemClick = useCallback((event) => {
19
19
  if (disabled) {
@@ -11,6 +11,6 @@ const EmptyLabel = ({ caption, onClick, className, }) => {
11
11
  isNullOrEmpty(className) ? "" : `${className}--md`,
12
12
  "bbr-dropdown__label--default",
13
13
  ]);
14
- return (_jsxs("label", { className: elClassName, onClick: onClick, children: [_jsx("span", { className: "mr-2", children: caption }), _jsx(Icon, { name: "arrow-down", size: ElementSize.Medium })] }));
14
+ return (_jsxs("label", { onClick: onClick, className: elClassName, children: [_jsx("span", { className: "mr-2", children: caption }), _jsx(Icon, { name: "arrow-down", size: ElementSize.Medium })] }));
15
15
  };
16
16
  export default EmptyLabel;
@@ -0,0 +1,21 @@
1
+ .bbr-dropdown__search input {
2
+ border-left: 0;
3
+ border-right: 0;
4
+ border-radius: 0;
5
+ box-shadow: none !important;
6
+ background: transparent;
7
+ }
8
+ .bbr-dropdown__search input::-webkit-input-placeholder {
9
+ color: gray;
10
+ font-style: italic;
11
+ }
12
+ .bbr-dropdown__search input:focus, .bbr-dropdown__search input:hover, .bbr-dropdown__search input:active {
13
+ border-color: inherit !important;
14
+ }
15
+ .bbr-dropdown__search:hover input {
16
+ border-color: inherit !important;
17
+ }
18
+
19
+ .bbr-dropdown.is-active .bbr-dropdown__search {
20
+ background: rgba(0, 0, 0, 0.05);
21
+ }
@@ -17,17 +17,13 @@ export interface SelectableItem {
17
17
  export interface DropdownProps extends BaseElementProps {
18
18
  /** Items which can be selected */
19
19
  items: Array<SelectableItem>;
20
- /**
21
- * Action to update selected value, which stored outside
22
- */
23
- onSelect: (item?: SelectableItem) => void;
24
- /** Input element placeholder */
25
- placeholder?: string;
26
20
  /**
27
21
  * Selected value.
28
22
  * Must be stored outside
29
23
  */
30
24
  value: Optional<SelectableItem>;
25
+ /** Input element placeholder */
26
+ placeholder?: string;
31
27
  /** Hide component list when its opened and user click outside */
32
28
  hideOnOuterClick?: boolean;
33
29
  /** Can user deselect */
@@ -62,5 +58,9 @@ export interface DropdownProps extends BaseElementProps {
62
58
  * Text which would be displayed when search query applied and no items found
63
59
  */
64
60
  noDataByQuery?: string;
61
+ /**
62
+ * Action to update selected value, which stored outside
63
+ */
64
+ onSelect: (item?: SelectableItem) => void;
65
65
  }
66
66
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAE3C,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,eAAe,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEnH,oBAAoB;AACpB,MAAM,WAAW,cAAc;IAC3B,6BAA6B;IAC7B,EAAE,EAAE,MAAM,CAAC;IAEX,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IAEd,sBAAsB;IACtB,YAAY,EAAE,MAAM,CAAC;IAErB,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,iCAAiC;IACjC,IAAI,CAAC,EAAE,WAAW,CAAC;CACtB;AAED,oCAAoC;AACpC,MAAM,WAAW,aAAc,SAAQ,gBAAgB;IACnD,kCAAkC;IAClC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAE7B;;MAEE;IACF,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;IAE1C,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;MAGE;IACF,KAAK,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IAEh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,EAAE,QAAQ,CAAC,cAAc,CAAC,CAAC;IAEhC,gCAAgC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,iEAAiE;IACjE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,wBAAwB;IACxB,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,gDAAgD;IAChD,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAE3B,+BAA+B;IAC/B,eAAe,CAAC,EAAE,eAAe,CAAC;IAElC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAEzB,iEAAiE;IACjE,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,sCAAsC;IACtC,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;MAEE;IACF,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,cAAc,KAAK,IAAI,CAAC;CAC7C"}
@@ -0,0 +1,74 @@
1
+ .bbr-fileUpload.has-name .file-clear {
2
+ display: flex;
3
+ align-items: center;
4
+ cursor: pointer;
5
+ z-index: 2;
6
+ }
7
+ .bbr-fileUpload.has-name .file-clear:hover {
8
+ color: #0d6efd;
9
+ }
10
+ .bbr-fileUpload.has-name:not(.is-right).is-small .file-name {
11
+ padding-right: 1.5rem;
12
+ }
13
+ .bbr-fileUpload.has-name:not(.is-right).is-small .file-clear {
14
+ margin-left: -1.25rem;
15
+ }
16
+ .bbr-fileUpload.has-name:not(.is-right).is-medium .file-name {
17
+ padding-right: 2rem;
18
+ }
19
+ .bbr-fileUpload.has-name:not(.is-right).is-medium .file-clear {
20
+ margin-left: -1.75rem;
21
+ }
22
+ .bbr-fileUpload.has-name:not(.is-right).is-large .file-name {
23
+ padding-right: 2.75rem;
24
+ }
25
+ .bbr-fileUpload.has-name:not(.is-right).is-large .file-clear {
26
+ margin-left: -2.5rem;
27
+ }
28
+ .bbr-fileUpload.has-name:not(.is-right):not(.is-small):not(.is-medium):not(.is-large) .file-name {
29
+ padding-right: 1.75rem;
30
+ max-width: 17rem;
31
+ }
32
+ .bbr-fileUpload.has-name:not(.is-right):not(.is-small):not(.is-medium):not(.is-large) .file-clear {
33
+ margin-left: -1.5rem;
34
+ }
35
+ .bbr-fileUpload.has-name.is-right.is-small .file-name {
36
+ padding-left: 1.5rem;
37
+ }
38
+ .bbr-fileUpload.has-name.is-right.is-small .file-clear {
39
+ margin-right: -1.25rem;
40
+ }
41
+ .bbr-fileUpload.has-name.is-right.is-medium .file-name {
42
+ padding-left: 2rem;
43
+ }
44
+ .bbr-fileUpload.has-name.is-right.is-medium .file-clear {
45
+ margin-right: -1.75rem;
46
+ }
47
+ .bbr-fileUpload.has-name.is-right.is-large .file-name {
48
+ padding-left: 2.75rem;
49
+ }
50
+ .bbr-fileUpload.has-name.is-right.is-large .file-clear {
51
+ margin-right: -2.5rem;
52
+ }
53
+ .bbr-fileUpload.has-name.is-right:not(.is-small):not(.is-medium):not(.is-large) .file-name {
54
+ padding-left: 1.75rem;
55
+ max-width: 17rem;
56
+ }
57
+ .bbr-fileUpload.has-name.is-right:not(.is-small):not(.is-medium):not(.is-large) .file-clear {
58
+ margin-right: -1.5rem;
59
+ }
60
+ .bbr-fileUpload.has-name.is-boxed .file-clear {
61
+ align-items: end;
62
+ padding-bottom: 0.75rem;
63
+ }
64
+ .bbr-fileUpload.is-disabled .file-label {
65
+ background-color: hsl(0, 0%, 96%);
66
+ border-color: hsl(0, 0%, 86%);
67
+ color: hsl(0, 0%, 48%);
68
+ box-shadow: none;
69
+ cursor: not-allowed;
70
+ }
71
+ .bbr-fileUpload.is-disabled .file-label .file-cta {
72
+ background-color: inherit;
73
+ color: inherit;
74
+ }
@@ -0,0 +1,19 @@
1
+ .bbr-icon {
2
+ transition: 0.15s ease-in-out color;
3
+ font-size: 1rem;
4
+ }
5
+ .bbr-icon.is-small {
6
+ font-size: 0.85rem;
7
+ }
8
+ .bbr-icon.is-medium {
9
+ font-size: 1.25rem;
10
+ }
11
+ .bbr-icon.is-large {
12
+ font-size: 2rem;
13
+ }
14
+ .bbr-icon--right {
15
+ margin-left: 0.5rem;
16
+ }
17
+ .bbr-icon--left {
18
+ margin-right: 0.5rem;
19
+ }
@@ -1,7 +1,5 @@
1
1
  export { default as Accordion } from "./accordion";
2
2
  export * from "./accordion";
3
- export { default as Anchor } from "./anchor";
4
- export * from "./anchor";
5
3
  export { default as Breadcrumbs } from "./breadcrumbs";
6
4
  export * from "./breadcrumbs";
7
5
  export { default as Button } from "./button";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,aAAa,CAAC;AACnD,cAAc,aAAa,CAAC;AAE5B,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,eAAe,CAAC;AACvD,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAC7C,cAAc,UAAU,CAAC;AAEzB,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,YAAY,CAAC;AACjD,cAAc,YAAY,CAAC;AAE3B,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAC;AACzC,cAAc,QAAQ,CAAC;AAEvB,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,SAAS,CAAC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AAC;AAEpC,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC5D,cAAc,uBAAuB,CAAC;AAEtC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,cAAc,yBAAyB,CAAC;AAExC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,qBAAqB,CAAC;AACxD,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAChE,cAAc,yBAAyB,CAAC"}
@@ -1,7 +1,5 @@
1
1
  export { default as Accordion } from "./accordion";
2
2
  export * from "./accordion";
3
- export { default as Anchor } from "./anchor";
4
- export * from "./anchor";
5
3
  export { default as Breadcrumbs } from "./breadcrumbs";
6
4
  export * from "./breadcrumbs";
7
5
  export { default as Button } from "./button";
@@ -0,0 +1,32 @@
1
+ .bbr-modal.modal {
2
+ z-index: 1000;
3
+ }
4
+ .bbr-modal.modal .modal-card {
5
+ max-height: calc(100vh - 40px);
6
+ width: auto;
7
+ min-width: 300px;
8
+ max-width: calc(100vw - 40px);
9
+ }
10
+ .bbr-modal.modal .modal-card-head {
11
+ border-bottom: 1px solid #dbdbdb;
12
+ }
13
+ .bbr-modal.modal .modal-card-foot {
14
+ border-top: 1px solid #dbdbdb;
15
+ justify-content: flex-end;
16
+ gap: 0.5rem;
17
+ }
18
+ .bbr-modal.modal .modal-card-body {
19
+ overflow-y: auto;
20
+ }
21
+ .bbr-modal.modal.is-small .modal-card {
22
+ min-width: 250px;
23
+ max-width: 400px;
24
+ }
25
+ .bbr-modal.modal.is-medium .modal-card {
26
+ min-width: 400px;
27
+ max-width: 640px;
28
+ }
29
+ .bbr-modal.modal.is-large .modal-card {
30
+ min-width: 600px;
31
+ max-width: 960px;
32
+ }
@@ -0,0 +1,20 @@
1
+ .bbr-multiselect .dropdown-content {
2
+ overflow: hidden;
3
+ }
4
+ .bbr-multiselect .dropdown-content ul {
5
+ max-height: 13.5rem;
6
+ overflow: auto;
7
+ }
8
+ .bbr-multiselect .dropdown-content ul li.bbr-dropdown-item .field:not(:last-child) {
9
+ margin-bottom: 0 !important;
10
+ }
11
+ .bbr-multiselect .dropdown-content ul li.bbr-dropdown-item .bbr-icon {
12
+ transition: none;
13
+ }
14
+ .bbr-multiselect.is-up .dropdown-menu {
15
+ top: auto;
16
+ bottom: 100%;
17
+ }
18
+ .bbr-multiselect.is-up.is-active .bbr-dropdown__label .bbr-icon.bi-arrow-down::before {
19
+ transform: rotate(360deg);
20
+ }
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/multiselect/components/withoutLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAoD,MAAM,OAAO,CAAC;AAU7E,OAAO,EAAE,gBAAgB,EAA2C,MAAM,aAAa,CAAC;AAIxF,8CAA8C;AAC9C,KAAK,4BAA4B,GAAG,gBAAgB,GAAG;IACnD,kCAAkC;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAqK7D,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/multiselect/components/withoutLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAoD,MAAM,OAAO,CAAC;AAU7E,OAAO,EAAE,gBAAgB,EAA2C,MAAM,aAAa,CAAC;AAIxF,8CAA8C;AAC9C,KAAK,4BAA4B,GAAG,gBAAgB,GAAG;IACnD,kCAAkC;IAClC,EAAE,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,QAAA,MAAM,uBAAuB,EAAE,EAAE,CAAC,4BAA4B,CAsK7D,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -9,9 +9,6 @@ import InternalHint from "../../../primitives/internal/hint";
9
9
  import MultiselectItem from "../item";
10
10
  import MultiselectLabel from "../label/component";
11
11
  const MultiselectWithoutLabel = ({ items, onChange, onClear, hideOnOuterClick, listMaxHeight, placeholder = "", noDataText = "No items found", selectionCaption = "{0} items selected", noDataByQuery = "No items found by specified search", compact = false, disabled = false, searchable = true, validationState, className, title, data, hint, id: propsId, checkboxConfig, }) => {
12
- const generatedId = useId();
13
- const id = propsId ?? generatedId;
14
- const containerRef = useRef(null);
15
12
  const [isListVisible, setListVisible] = useState(false);
16
13
  const [selectedItems, setSelectedItems] = useState(items
17
14
  .filter(({ selected }) => selected)
@@ -19,6 +16,9 @@ const MultiselectWithoutLabel = ({ items, onChange, onClear, hideOnOuterClick, l
19
16
  ??
20
17
  []);
21
18
  const [isOpenUp, setIsOpenUp] = useState(false);
19
+ const containerRef = useRef(null);
20
+ const generatedId = useId();
21
+ const id = propsId ?? generatedId;
22
22
  const onItemClick = useCallback((item) => {
23
23
  const isItemSelected = selectedItems.includes(item.id);
24
24
  setSelectedItems(x => isItemSelected
@@ -0,0 +1,19 @@
1
+ .is-checkradio.m-check-radio[type=checkbox].has-background-color.m-has-background-color:not(:checked) + label::before {
2
+ border-color: #dbdbdb !important;
3
+ background-color: transparent !important;
4
+ }
5
+ .is-checkradio.m-check-radio[type=checkbox].is-block + label.is-empty::before {
6
+ left: 0.25rem !important;
7
+ top: 0.25rem !important;
8
+ }
9
+ .is-checkradio.m-check-radio[type=checkbox].is-block + label.is-empty::after {
10
+ top: 0.45rem;
11
+ left: 0.7rem;
12
+ }
13
+ .is-checkradio.m-check-radio[type=checkbox]:not(.is-block) + label::after {
14
+ top: 0.275rem;
15
+ }
16
+ .is-checkradio.m-check-radio[type=checkbox] + label.is-empty {
17
+ padding-left: 1rem;
18
+ margin: 0 !important;
19
+ }
@@ -0,0 +1,15 @@
1
+ .bbr-color-picker input[type=color]:not([disabled]) {
2
+ cursor: pointer;
3
+ }
4
+ .bbr-color-picker__preview {
5
+ --color-picker__background-color: transparent;
6
+ --color-picker__color: black;
7
+ transition: 0.15s ease-in-out;
8
+ transition-property: background-color, color;
9
+ background-color: var(--color-picker__background-color) !important;
10
+ color: var(--color-picker__color) !important;
11
+ }
12
+ .bbr-color-picker__preview:focus {
13
+ box-shadow: none !important;
14
+ border-color: hsl(0, 0%, 86%) !important;
15
+ }
@@ -0,0 +1,9 @@
1
+ .control.is-loading input[type=date]::-webkit-calendar-picker-indicator {
2
+ display: none;
3
+ }
4
+
5
+ .control input[type=date]::-webkit-calendar-picker-indicator {
6
+ position: absolute;
7
+ right: 0.75rem;
8
+ cursor: pointer;
9
+ }
@@ -0,0 +1,4 @@
1
+ p.bbr-hint {
2
+ white-space: pre-line;
3
+ display: inline-flex;
4
+ }
@@ -0,0 +1,10 @@
1
+ .bbr-password:focus ~ .icon:not(:hover) {
2
+ color: rgb(219, 219, 219) !important;
3
+ }
4
+ .bbr-password__wrapper .icon {
5
+ pointer-events: inherit !important;
6
+ cursor: pointer;
7
+ }
8
+ .bbr-password__wrapper .icon:hover {
9
+ color: rgb(74, 74, 74);
10
+ }