@aivenio/aquarium 1.70.0 → 1.71.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.
- package/dist/_variables.scss +1 -1
- package/dist/atoms.cjs +34 -10
- package/dist/atoms.mjs +34 -10
- package/dist/src/atoms/Section/Section.d.ts +1 -1
- package/dist/src/atoms/Section/Section.js +9 -5
- package/dist/src/icons/index.d.ts +1 -0
- package/dist/src/icons/index.js +2 -1
- package/dist/src/icons/tiered.d.ts +9 -0
- package/dist/src/icons/tiered.js +11 -0
- package/dist/src/molecules/Accordion/Accordion.js +10 -3
- package/dist/src/molecules/DataList/DataList.d.ts +1 -1
- package/dist/src/molecules/DataList/DataList.js +1 -1
- package/dist/src/molecules/Section/Section.js +11 -4
- package/dist/src/molecules/SegmentedControl/SegmentedControl.d.ts +14 -2
- package/dist/src/molecules/SegmentedControl/SegmentedControl.js +8 -29
- package/dist/styles.css +39 -40
- package/dist/system.cjs +78 -65
- package/dist/system.mjs +101 -88
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +1 -1
@@ -12,41 +12,20 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
12
12
|
import React from 'react';
|
13
13
|
import { classNames, tw } from '../../../src/utils/tailwind';
|
14
14
|
export const SegmentedControl = (_a) => {
|
15
|
-
var { children, value, dense = false, variant = 'filled', selected = false, className } = _a, rest = __rest(_a, ["children", "value", "dense", "variant", "selected", "className"]);
|
15
|
+
var { children, value, dense: _dense = false, variant: _variant = 'filled', selected = false, className } = _a, rest = __rest(_a, ["children", "value", "dense", "variant", "selected", "className"]);
|
16
16
|
return (React.createElement("li", null,
|
17
|
-
React.createElement("button", Object.assign({ type: "button" }, rest, { className: classNames(
|
17
|
+
React.createElement("button", Object.assign({ type: "button" }, rest, { className: classNames(getBaseSegmentedControlClassNames(selected), className), "aria-pressed": selected }), children)));
|
18
18
|
};
|
19
19
|
export const SegmentedControlGroup = (_a) => {
|
20
|
-
var { value, onChange, variant = 'filled', dense = false, children, className, ariaLabel } = _a, rest = __rest(_a, ["value", "onChange", "variant", "dense", "children", "className", "ariaLabel"]);
|
21
|
-
|
22
|
-
'border border-default text-muted': variant === 'outlined',
|
23
|
-
'bg-muted': variant === 'raised',
|
24
|
-
});
|
25
|
-
return (React.createElement("ul", Object.assign({}, rest, { "aria-label": ariaLabel, className: classNames('Aquarium-SegmentedControl', classes, className) }), React.Children.map(children, (child) => React.cloneElement(child, {
|
26
|
-
dense,
|
27
|
-
variant,
|
20
|
+
var { value, onChange, variant: _variant = 'filled', dense: _dense = false, children, className, ariaLabel } = _a, rest = __rest(_a, ["value", "onChange", "variant", "dense", "children", "className", "ariaLabel"]);
|
21
|
+
return (React.createElement("ul", Object.assign({}, rest, { "aria-label": ariaLabel, className: classNames('Aquarium-SegmentedControl', 'flex border border-default rounded-sm divide-x divide-grey-20', className) }), React.Children.map(children, (child) => React.cloneElement(child, {
|
28
22
|
onClick: () => onChange(child.props.value),
|
29
23
|
selected: child.props.value === value,
|
30
24
|
}))));
|
31
25
|
};
|
32
26
|
/* </SegmentedControlGroup> */
|
33
|
-
const
|
34
|
-
'
|
35
|
-
'
|
36
|
-
}, {
|
37
|
-
'active:bg-default': variant !== 'raised',
|
38
|
-
'active:bg-intense': variant === 'raised',
|
27
|
+
const getBaseSegmentedControlClassNames = (selected) => tw('transition whitespace-nowrap rounded-sm px-4 py-[10px] hover:bg-primary-hover', 'focus-visible:outline-none focus-visible:relative focus-visible:z-50 focus-visible:ring-1 focus-visible:ring-offset-0 focusable', 'disabled:cursor-not-allowed disabled:text-inactive disabled:bg-muted', {
|
28
|
+
'typography-small text-default bg-body': !selected,
|
29
|
+
'typography-small-strong text-primary-intense relative z-40 ring-1 ring-offset-0 ring-primary-80': selected,
|
39
30
|
});
|
40
|
-
|
41
|
-
'bg-white ring-2 ring-offset-0 ring-grey-30 focus:ring-2': variant === 'outlined',
|
42
|
-
'bg-white shadow-2dp': variant === 'raised',
|
43
|
-
'bg-default': variant === 'filled',
|
44
|
-
});
|
45
|
-
const getCommonClassNames = (dense, selected) => tw('transition whitespace-nowrap rounded mr-1', 'focus:outline-none focus:ring-1 focus:ring-offset-0 focus:ring-grey-60', 'disabled:cursor-not-allowed disabled:text-inactive', {
|
46
|
-
'py-4 px-5': !dense,
|
47
|
-
'py-2 px-4': dense,
|
48
|
-
'typography-default-strong': !dense,
|
49
|
-
'typography-small-strong': dense,
|
50
|
-
'text-muted': !selected,
|
51
|
-
});
|
52
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiU2VnbWVudGVkQ29udHJvbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9tb2xlY3VsZXMvU2VnbWVudGVkQ29udHJvbC9TZWdtZW50ZWRDb250cm9sLnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7OztBQUFBLE9BQU8sS0FBSyxNQUFNLE9BQU8sQ0FBQztBQUUxQixPQUFPLEVBQUUsVUFBVSxFQUFFLEVBQUUsRUFBRSxNQUFNLG9CQUFvQixDQUFDO0FBc0JwRCxNQUFNLENBQUMsTUFBTSxnQkFBZ0IsR0FBRyxDQUFrQixFQVF2QixFQUFlLEVBQUU7UUFSTSxFQUNoRCxRQUFRLEVBQ1IsS0FBSyxFQUNMLEtBQUssR0FBRyxLQUFLLEVBQ2IsT0FBTyxHQUFHLFFBQVEsRUFDbEIsUUFBUSxHQUFHLEtBQUssRUFDaEIsU0FBUyxPQUVnQixFQUR0QixJQUFJLGNBUHlDLGtFQVFqRCxDQURRO0lBQ29DLE9BQUEsQ0FDM0M7UUFDRSw4Q0FDRSxJQUFJLEVBQUMsUUFBUSxJQUNULElBQUksSUFDUixTQUFTLEVBQUUsVUFBVSxDQUNuQixtQkFBbUIsQ0FBQyxLQUFLLEVBQUUsUUFBUSxD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QUFRLEVBQ1IsU0FBUyxFQUNULFNBQVMsT0FFcUIsRUFEM0IsSUFBSSxjQVI4QywrRUFTdEQsQ0FEUTtJQUVQLE9BQU8sQ0FDTCw0Q0FDTSxJQUFJLGtCQUNJLFNBQVMsRUFDckIsU0FBUyxFQUFFLFVBQVUsQ0FDbkIsMkJBQTJCLEVBQzNCLCtEQUErRCxFQUMvRCxTQUFTLENBQ1YsS0FFQSxLQUFLLENBQUMsUUFBUSxDQUFDLEdBQUcsQ0FBQyxRQUFRLEVBQUUsQ0FBQyxLQUFLLEVBQUUsRUFBRSxDQUN0QyxLQUFLLENBQUMsWUFBWSxDQUFDLEtBQUssRUFBRTtRQUN4QixPQUFPLEVBQUUsR0FBRyxFQUFFLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDO1FBQzFDLFFBQVEsRUFBRSxLQUFLLENBQUMsS0FBSyxDQUFDLEtBQUssS0FBSyxLQUFLO0tBQ3RDLENBQUMsQ0FDSCxDQUNFLENBQ04sQ0FBQztBQUNKLENBQUMsQ0FBQztBQUVGLDhCQUE4QjtBQUU5QixNQUFNLGlDQUFpQyxHQUFHLENBQUMsUUFBaUIsRUFBRSxFQUFFLENBQzlELEVBQUUsQ0FDQSwrRUFBK0UsRUFDL0UsaUlBQWlJLEVBQ2pJLHNFQUFzRSxFQUN0RTtJQUNFLHVDQUF1QyxFQUFFLENBQUMsUUFBUTtJQUNsRCxpR0FBaUcsRUFBRSxRQUFRO0NBQzVHLENBQ0YsQ0FBQyJ9
|
package/dist/styles.css
CHANGED
@@ -1230,9 +1230,6 @@ input[type='number'].no-arrows {
|
|
1230
1230
|
.ml-3{
|
1231
1231
|
margin-left: 8px;
|
1232
1232
|
}
|
1233
|
-
.mr-1{
|
1234
|
-
margin-right: 2px;
|
1235
|
-
}
|
1236
1233
|
.mb-\[-2px\]{
|
1237
1234
|
margin-bottom: -2px;
|
1238
1235
|
}
|
@@ -1673,6 +1670,15 @@ input[type='number'].no-arrows {
|
|
1673
1670
|
-moz-column-gap: 24px;
|
1674
1671
|
column-gap: 24px;
|
1675
1672
|
}
|
1673
|
+
.divide-x>:not([hidden])~:not([hidden]){
|
1674
|
+
--tw-divide-x-reverse: 0;
|
1675
|
+
border-right-width: calc(1px * var(--tw-divide-x-reverse));
|
1676
|
+
border-left-width: calc(1px * calc(1 - var(--tw-divide-x-reverse)));
|
1677
|
+
}
|
1678
|
+
.divide-grey-20>:not([hidden])~:not([hidden]){
|
1679
|
+
border-color: #d2d2d6;
|
1680
|
+
border-color: var(--aquarium-colors-grey-20, #d2d2d6);
|
1681
|
+
}
|
1676
1682
|
.self-start{
|
1677
1683
|
align-self: flex-start;
|
1678
1684
|
}
|
@@ -2075,6 +2081,10 @@ input[type='number'].no-arrows {
|
|
2075
2081
|
padding-left: 0;
|
2076
2082
|
padding-right: 0;
|
2077
2083
|
}
|
2084
|
+
.py-\[10px\]{
|
2085
|
+
padding-top: 10px;
|
2086
|
+
padding-bottom: 10px;
|
2087
|
+
}
|
2078
2088
|
.pt-3{
|
2079
2089
|
padding-top: 8px;
|
2080
2090
|
}
|
@@ -2626,12 +2636,6 @@ input[type='number'].no-arrows {
|
|
2626
2636
|
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow);
|
2627
2637
|
box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);
|
2628
2638
|
}
|
2629
|
-
.shadow-2dp{
|
2630
|
-
--tw-shadow: var(--aquarium-box-shadow-2dp, 0px 2px 4px rgba(90, 91, 106, 0.24), 0px 1px 2px rgba(58, 58, 68, 0.24));
|
2631
|
-
--tw-shadow-colored: 0px 2px 4px 0px var(--tw-shadow-color);
|
2632
|
-
box-shadow: 0 0 rgba(0,0,0,0), 0 0 rgba(0,0,0,0), var(--tw-shadow);
|
2633
|
-
box-shadow: var(--tw-ring-offset-shadow, 0 0 rgba(0,0,0,0)), var(--tw-ring-shadow, 0 0 rgba(0,0,0,0)), var(--tw-shadow);
|
2634
|
-
}
|
2635
2639
|
.outline-none{
|
2636
2640
|
outline: 2px solid transparent;
|
2637
2641
|
outline-offset: 2px;
|
@@ -2648,12 +2652,6 @@ input[type='number'].no-arrows {
|
|
2648
2652
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
|
2649
2653
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));
|
2650
2654
|
}
|
2651
|
-
.ring-2{
|
2652
|
-
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
2653
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
2654
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
|
2655
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));
|
2656
|
-
}
|
2657
2655
|
.ring{
|
2658
2656
|
--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
|
2659
2657
|
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
@@ -2666,9 +2664,6 @@ input[type='number'].no-arrows {
|
|
2666
2664
|
.ring-primary-80{
|
2667
2665
|
--tw-ring-color: var(--aquarium-colors-primary-80, #3545be);
|
2668
2666
|
}
|
2669
|
-
.ring-grey-30{
|
2670
|
-
--tw-ring-color: var(--aquarium-colors-grey-30, #b4b4bb);
|
2671
|
-
}
|
2672
2667
|
.ring-offset-0{
|
2673
2668
|
--tw-ring-offset-width: 0px;
|
2674
2669
|
}
|
@@ -2919,23 +2914,17 @@ input[type='number'].no-arrows {
|
|
2919
2914
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
|
2920
2915
|
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));
|
2921
2916
|
}
|
2922
|
-
.focus\:
|
2923
|
-
|
2924
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
2925
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
|
2926
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));
|
2917
|
+
.focus-visible\:relative.focus-visible{
|
2918
|
+
position: relative;
|
2927
2919
|
}
|
2928
|
-
.focus\:
|
2929
|
-
|
2930
|
-
--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
|
2931
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), 0 0 rgba(0,0,0,0);
|
2932
|
-
box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0,0,0,0));
|
2920
|
+
.focus-visible\:relative:focus-visible{
|
2921
|
+
position: relative;
|
2933
2922
|
}
|
2934
|
-
.focus\:
|
2935
|
-
|
2923
|
+
.focus-visible\:z-50.focus-visible{
|
2924
|
+
z-index: 50;
|
2936
2925
|
}
|
2937
|
-
.focus\:
|
2938
|
-
|
2926
|
+
.focus-visible\:z-50:focus-visible{
|
2927
|
+
z-index: 50;
|
2939
2928
|
}
|
2940
2929
|
.focus-visible\:border-info-default.focus-visible{
|
2941
2930
|
border-color: #0399e3;
|
@@ -2977,6 +2966,14 @@ input[type='number'].no-arrows {
|
|
2977
2966
|
color: #292a31;
|
2978
2967
|
color: var(--aquarium-text-color-intense);
|
2979
2968
|
}
|
2969
|
+
.focus-visible\:outline-none.focus-visible{
|
2970
|
+
outline: 2px solid transparent;
|
2971
|
+
outline-offset: 2px;
|
2972
|
+
}
|
2973
|
+
.focus-visible\:outline-none:focus-visible{
|
2974
|
+
outline: 2px solid transparent;
|
2975
|
+
outline-offset: 2px;
|
2976
|
+
}
|
2980
2977
|
.focus-visible\:outline-0.focus-visible{
|
2981
2978
|
outline-width: 0px;
|
2982
2979
|
}
|
@@ -3031,6 +3028,12 @@ input[type='number'].no-arrows {
|
|
3031
3028
|
.focus-visible\:ring-info-70:focus-visible{
|
3032
3029
|
--tw-ring-color: var(--aquarium-colors-info-70, #0399e3);
|
3033
3030
|
}
|
3031
|
+
.focus-visible\:ring-offset-0.focus-visible{
|
3032
|
+
--tw-ring-offset-width: 0px;
|
3033
|
+
}
|
3034
|
+
.focus-visible\:ring-offset-0:focus-visible{
|
3035
|
+
--tw-ring-offset-width: 0px;
|
3036
|
+
}
|
3034
3037
|
.active\:bg-body:active{
|
3035
3038
|
background-color: white;
|
3036
3039
|
background-color: var(--aquarium-background-color-body);
|
@@ -3047,14 +3050,6 @@ input[type='number'].no-arrows {
|
|
3047
3050
|
background-color: transparent;
|
3048
3051
|
background-color: var(--aquarium-colors-transparent, transparent);
|
3049
3052
|
}
|
3050
|
-
.active\:bg-default:active{
|
3051
|
-
background-color: #ededf0;
|
3052
|
-
background-color: var(--aquarium-background-color-default);
|
3053
|
-
}
|
3054
|
-
.active\:bg-intense:active{
|
3055
|
-
background-color: #d2d2d6;
|
3056
|
-
background-color: var(--aquarium-background-color-intense);
|
3057
|
-
}
|
3058
3053
|
.active\:text-primary-active:active{
|
3059
3054
|
color: #222f95;
|
3060
3055
|
color: var(--aquarium-text-color-primary-active);
|
@@ -3103,6 +3098,10 @@ input[type='number'].no-arrows {
|
|
3103
3098
|
background-color: transparent;
|
3104
3099
|
background-color: var(--aquarium-colors-transparent, transparent);
|
3105
3100
|
}
|
3101
|
+
.disabled\:bg-muted:disabled{
|
3102
|
+
background-color: #f7f7fa;
|
3103
|
+
background-color: var(--aquarium-background-color-muted);
|
3104
|
+
}
|
3106
3105
|
.disabled\:text-inactive:disabled{
|
3107
3106
|
color: #9696a0;
|
3108
3107
|
color: var(--aquarium-text-color-inactive);
|
package/dist/system.cjs
CHANGED
@@ -4514,6 +4514,22 @@ var require_ticket = __commonJS({
|
|
4514
4514
|
}
|
4515
4515
|
});
|
4516
4516
|
|
4517
|
+
// src/icons/tiered.js
|
4518
|
+
var require_tiered = __commonJS({
|
4519
|
+
"src/icons/tiered.js"(exports) {
|
4520
|
+
"use strict";
|
4521
|
+
var data = {
|
4522
|
+
"body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="m20 16.288-8.678 4.11c-.118.056-.177.084-.239.095a.477.477 0 01-.166 0c-.062-.011-.12-.04-.239-.095L2 16.288m0-3.901 4.339 2.055 4.339 2.054c.118.056.177.084.239.095.055.01.111.01.166 0 .062-.01.12-.039.239-.095L20 12.386 17 11M5.7 10C4.209 10 3 8.849 3 7.429c0-1.34 1.075-2.44 2.448-2.56C5.728 3.24 7.212 2 9 2s3.271 1.241 3.552 2.868C13.925 4.99 15 6.09 15 7.428 15 8.849 13.791 10 12.3 10H5.7Z"/>',
|
4523
|
+
"left": 0,
|
4524
|
+
"top": 0,
|
4525
|
+
"width": 22,
|
4526
|
+
"height": 22
|
4527
|
+
};
|
4528
|
+
exports.__esModule = true;
|
4529
|
+
exports.default = data;
|
4530
|
+
}
|
4531
|
+
});
|
4532
|
+
|
4517
4533
|
// src/icons/time.js
|
4518
4534
|
var require_time = __commonJS({
|
4519
4535
|
"src/icons/time.js"(exports) {
|
@@ -6582,6 +6598,7 @@ var import_thumbsUp = __toESM(require_thumbsUp());
|
|
6582
6598
|
var import_tickCircle = __toESM(require_tickCircle());
|
6583
6599
|
var import_tick2 = __toESM(require_tick());
|
6584
6600
|
var import_ticket = __toESM(require_ticket());
|
6601
|
+
var import_tiered = __toESM(require_tiered());
|
6585
6602
|
var import_time = __toESM(require_time());
|
6586
6603
|
var import_timelineAreaChart = __toESM(require_timelineAreaChart());
|
6587
6604
|
var import_timelineBarChart = __toESM(require_timelineBarChart());
|
@@ -10017,6 +10034,7 @@ var import_isFunction3 = __toESM(require("lodash/isFunction"));
|
|
10017
10034
|
// src/molecules/Accordion/Accordion.tsx
|
10018
10035
|
var import_react60 = __toESM(require("react"));
|
10019
10036
|
var import_react61 = require("@iconify/react");
|
10037
|
+
var import_button3 = require("@react-aria/button");
|
10020
10038
|
var import_utils8 = require("@react-aria/utils");
|
10021
10039
|
var import_web3 = require("@react-spring/web");
|
10022
10040
|
var import_isUndefined8 = __toESM(require("lodash/isUndefined"));
|
@@ -10116,6 +10134,7 @@ var Accordion = ({ children, openPanelId: panelId }) => {
|
|
10116
10134
|
};
|
10117
10135
|
var AccordionToggle = (_a) => {
|
10118
10136
|
var _b = _a, { panelId, onChange } = _b, rest = __objRest(_b, ["panelId", "onChange"]);
|
10137
|
+
const ref = (0, import_react60.useRef)(null);
|
10119
10138
|
const id = usePanelContext(panelId);
|
10120
10139
|
const [openPanelId, setOpenPanelId] = useAccordionContext();
|
10121
10140
|
const isOpen = openPanelId === id;
|
@@ -10128,14 +10147,19 @@ var AccordionToggle = (_a) => {
|
|
10128
10147
|
duration: 150
|
10129
10148
|
}
|
10130
10149
|
});
|
10131
|
-
|
10132
|
-
|
10133
|
-
|
10150
|
+
const { buttonProps } = (0, import_button3.useButton)({ elementType: "div", onPress: handleClick }, ref);
|
10151
|
+
return /* @__PURE__ */ import_react60.default.createElement(import_web3.animated.div, __spreadProps(__spreadValues(__spreadValues({}, rest), __spreadProps(__spreadValues({}, buttonProps), {
|
10152
|
+
onPointerDown: (e) => {
|
10153
|
+
e.preventDefault();
|
10154
|
+
handleClick();
|
10155
|
+
}
|
10156
|
+
})), {
|
10157
|
+
ref,
|
10134
10158
|
"aria-label": "accordion toggle",
|
10135
10159
|
"aria-expanded": openPanelId === id,
|
10136
10160
|
"aria-controls": `${id}-content`,
|
10137
|
-
|
10138
|
-
|
10161
|
+
style: { transform },
|
10162
|
+
className: tw("focus:outline-none focusable")
|
10139
10163
|
}), /* @__PURE__ */ import_react60.default.createElement(import_react61.Icon, {
|
10140
10164
|
icon: import_caretUp.default,
|
10141
10165
|
height: 22,
|
@@ -14935,6 +14959,7 @@ RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
|
|
14935
14959
|
|
14936
14960
|
// src/molecules/Section/Section.tsx
|
14937
14961
|
var import_react119 = __toESM(require("react"));
|
14962
|
+
var import_button4 = require("@react-aria/button");
|
14938
14963
|
var import_utils31 = require("@react-aria/utils");
|
14939
14964
|
var import_web6 = require("@react-spring/web");
|
14940
14965
|
var import_castArray7 = __toESM(require("lodash/castArray"));
|
@@ -15085,20 +15110,27 @@ Section3.Header = (_a) => {
|
|
15085
15110
|
var _b = _a, { children, className, expanded } = _b, rest = __objRest(_b, ["children", "className", "expanded"]);
|
15086
15111
|
return /* @__PURE__ */ import_react118.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
15087
15112
|
className: classNames(
|
15088
|
-
tw("px-6 flex gap-5 justify-between items-center h-[72px]", {
|
15089
|
-
|
15090
|
-
|
15091
|
-
}), children);
|
15092
|
-
};
|
15093
|
-
Section3.TitleContainer = (_a) => {
|
15094
|
-
var _b = _a, { children, className, collapsible } = _b, rest = __objRest(_b, ["children", "className", "collapsible"]);
|
15095
|
-
return /* @__PURE__ */ import_react118.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
15096
|
-
className: classNames(
|
15097
|
-
tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", { "cursor-pointer": collapsible }),
|
15113
|
+
tw("px-6 flex gap-5 justify-between items-center h-[72px]", {
|
15114
|
+
"bg-muted": expanded
|
15115
|
+
}),
|
15098
15116
|
className
|
15099
15117
|
)
|
15100
15118
|
}), children);
|
15101
15119
|
};
|
15120
|
+
Section3.TitleContainer = import_react118.default.forwardRef(
|
15121
|
+
(_a, ref) => {
|
15122
|
+
var _b = _a, { children, className, collapsible } = _b, rest = __objRest(_b, ["children", "className", "collapsible"]);
|
15123
|
+
return /* @__PURE__ */ import_react118.default.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
15124
|
+
ref,
|
15125
|
+
className: classNames(
|
15126
|
+
tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", {
|
15127
|
+
"cursor-pointer focus:outline-none focusable": collapsible
|
15128
|
+
}),
|
15129
|
+
className
|
15130
|
+
)
|
15131
|
+
}), children);
|
15132
|
+
}
|
15133
|
+
);
|
15102
15134
|
Section3.Toggle = (props) => /* @__PURE__ */ import_react118.default.createElement(Icon, __spreadProps(__spreadValues({}, props), {
|
15103
15135
|
icon: import_caretUp2.default,
|
15104
15136
|
height: 22,
|
@@ -15144,6 +15176,7 @@ var Section4 = (props) => {
|
|
15144
15176
|
const _defaultCollapsed = title ? (_b = props.defaultCollapsed) != null ? _b : false : false;
|
15145
15177
|
const [isCollapsed, setCollapsed] = import_react119.default.useState(_collapsed != null ? _collapsed : _defaultCollapsed);
|
15146
15178
|
const [ref, { height }] = useMeasure();
|
15179
|
+
const toggleAreaRef = (0, import_react119.useRef)(null);
|
15147
15180
|
const menu = title ? (_c = props.menu) != null ? _c : void 0 : void 0;
|
15148
15181
|
const menuAriaLabel = title ? (_e = (_d = props.menuAriaLabel) != null ? _d : props.menuLabel) != null ? _e : "Context menu" : void 0;
|
15149
15182
|
const onAction = title ? props.onAction : void 0;
|
@@ -15177,19 +15210,25 @@ var Section4 = (props) => {
|
|
15177
15210
|
const regionId = (0, import_utils31.useId)();
|
15178
15211
|
const titleId = (0, import_utils31.useId)();
|
15179
15212
|
const hasTabs = isComponentType(children, Tabs);
|
15213
|
+
const { buttonProps } = (0, import_button4.useButton)(
|
15214
|
+
{ "elementType": "div", "onPress": handleTitleClick, "aria-expanded": !isCollapsed, "aria-controls": regionId },
|
15215
|
+
toggleAreaRef
|
15216
|
+
);
|
15180
15217
|
return /* @__PURE__ */ import_react119.default.createElement(Section3, {
|
15181
15218
|
"aria-label": title,
|
15182
15219
|
className: "Aquarium-Section"
|
15183
15220
|
}, title && /* @__PURE__ */ import_react119.default.createElement(import_react119.default.Fragment, null, /* @__PURE__ */ import_react119.default.createElement(Section3.Header, {
|
15184
15221
|
expanded: _collapsible && !isCollapsed
|
15185
|
-
}, /* @__PURE__ */ import_react119.default.createElement(Section3.TitleContainer, {
|
15186
|
-
|
15222
|
+
}, /* @__PURE__ */ import_react119.default.createElement(Section3.TitleContainer, __spreadProps(__spreadValues({}, _collapsible ? __spreadProps(__spreadValues({}, buttonProps), {
|
15223
|
+
onPointerDown: (e) => {
|
15224
|
+
e.preventDefault();
|
15225
|
+
handleTitleClick();
|
15226
|
+
}
|
15227
|
+
}) : { onClick: handleTitleClick }), {
|
15228
|
+
ref: _collapsible ? toggleAreaRef : void 0,
|
15187
15229
|
id: toggleId,
|
15188
|
-
collapsible: _collapsible
|
15189
|
-
|
15190
|
-
"aria-expanded": _collapsible ? !isCollapsed : void 0,
|
15191
|
-
"aria-controls": _collapsible ? regionId : void 0
|
15192
|
-
}, _collapsible && /* @__PURE__ */ import_react119.default.createElement(import_web6.animated.div, {
|
15230
|
+
collapsible: _collapsible
|
15231
|
+
}), _collapsible && /* @__PURE__ */ import_react119.default.createElement(import_web6.animated.div, {
|
15193
15232
|
style: { transform }
|
15194
15233
|
}, /* @__PURE__ */ import_react119.default.createElement(Section3.Toggle, null)), /* @__PURE__ */ import_react119.default.createElement(Section3.Title, {
|
15195
15234
|
id: titleId
|
@@ -15212,7 +15251,7 @@ var Section4 = (props) => {
|
|
15212
15251
|
icon: import_more6.default
|
15213
15252
|
})), menu)), props.actions && (0, import_castArray7.default)(props.actions).filter(Boolean).map((action) => renderAction({ kind: "secondary", action })), props.switch && /* @__PURE__ */ import_react119.default.createElement(Switch2, __spreadValues({}, props.switch)), props.select && /* @__PURE__ */ import_react119.default.createElement(SelectBase, __spreadValues({
|
15214
15253
|
"aria-labelledby": titleId
|
15215
|
-
}, props.select)))), !hasTabs && /* @__PURE__ */ import_react119.default.createElement(import_web6.animated.div, {
|
15254
|
+
}, props.select)))), !hasTabs && !isCollapsed && /* @__PURE__ */ import_react119.default.createElement(import_web6.animated.div, {
|
15216
15255
|
className: tw(`h-[1px]`),
|
15217
15256
|
style: { backgroundColor }
|
15218
15257
|
})), /* @__PURE__ */ import_react119.default.createElement(import_web6.animated.div, {
|
@@ -15236,8 +15275,8 @@ var SegmentedControl = (_a) => {
|
|
15236
15275
|
var _b = _a, {
|
15237
15276
|
children,
|
15238
15277
|
value,
|
15239
|
-
dense = false,
|
15240
|
-
variant = "filled",
|
15278
|
+
dense: _dense = false,
|
15279
|
+
variant: _variant = "filled",
|
15241
15280
|
selected = false,
|
15242
15281
|
className
|
15243
15282
|
} = _b, rest = __objRest(_b, [
|
@@ -15251,12 +15290,7 @@ var SegmentedControl = (_a) => {
|
|
15251
15290
|
return /* @__PURE__ */ import_react120.default.createElement("li", null, /* @__PURE__ */ import_react120.default.createElement("button", __spreadProps(__spreadValues({
|
15252
15291
|
type: "button"
|
15253
15292
|
}, rest), {
|
15254
|
-
className: classNames(
|
15255
|
-
getCommonClassNames(dense, selected),
|
15256
|
-
!rest.disabled && getHoverClassNames(variant),
|
15257
|
-
selected && getSelectedClassNames(variant),
|
15258
|
-
className
|
15259
|
-
),
|
15293
|
+
className: classNames(getBaseSegmentedControlClassNames(selected), className),
|
15260
15294
|
"aria-pressed": selected
|
15261
15295
|
}), children));
|
15262
15296
|
};
|
@@ -15264,8 +15298,8 @@ var SegmentedControlGroup = (_a) => {
|
|
15264
15298
|
var _b = _a, {
|
15265
15299
|
value,
|
15266
15300
|
onChange,
|
15267
|
-
variant = "filled",
|
15268
|
-
dense = false,
|
15301
|
+
variant: _variant = "filled",
|
15302
|
+
dense: _dense = false,
|
15269
15303
|
children,
|
15270
15304
|
className,
|
15271
15305
|
ariaLabel
|
@@ -15278,49 +15312,28 @@ var SegmentedControlGroup = (_a) => {
|
|
15278
15312
|
"className",
|
15279
15313
|
"ariaLabel"
|
15280
15314
|
]);
|
15281
|
-
const classes2 = tw("rounded flex", {
|
15282
|
-
"border border-default text-muted": variant === "outlined",
|
15283
|
-
"bg-muted": variant === "raised"
|
15284
|
-
});
|
15285
15315
|
return /* @__PURE__ */ import_react120.default.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
15286
15316
|
"aria-label": ariaLabel,
|
15287
|
-
className: classNames(
|
15317
|
+
className: classNames(
|
15318
|
+
"Aquarium-SegmentedControl",
|
15319
|
+
"flex border border-default rounded-sm divide-x divide-grey-20",
|
15320
|
+
className
|
15321
|
+
)
|
15288
15322
|
}), import_react120.default.Children.map(
|
15289
15323
|
children,
|
15290
15324
|
(child) => import_react120.default.cloneElement(child, {
|
15291
|
-
dense,
|
15292
|
-
variant,
|
15293
15325
|
onClick: () => onChange(child.props.value),
|
15294
15326
|
selected: child.props.value === value
|
15295
15327
|
})
|
15296
15328
|
));
|
15297
15329
|
};
|
15298
|
-
var
|
15299
|
-
"hover:
|
15300
|
-
|
15301
|
-
|
15302
|
-
"hover:bg-default": variant === "raised"
|
15303
|
-
},
|
15304
|
-
{
|
15305
|
-
"active:bg-default": variant !== "raised",
|
15306
|
-
"active:bg-intense": variant === "raised"
|
15307
|
-
}
|
15308
|
-
);
|
15309
|
-
var getSelectedClassNames = (variant) => tw("relative z-40 text-intense", {
|
15310
|
-
"bg-white ring-2 ring-offset-0 ring-grey-30 focus:ring-2": variant === "outlined",
|
15311
|
-
"bg-white shadow-2dp": variant === "raised",
|
15312
|
-
"bg-default": variant === "filled"
|
15313
|
-
});
|
15314
|
-
var getCommonClassNames = (dense, selected) => tw(
|
15315
|
-
"transition whitespace-nowrap rounded mr-1",
|
15316
|
-
"focus:outline-none focus:ring-1 focus:ring-offset-0 focus:ring-grey-60",
|
15317
|
-
"disabled:cursor-not-allowed disabled:text-inactive",
|
15330
|
+
var getBaseSegmentedControlClassNames = (selected) => tw(
|
15331
|
+
"transition whitespace-nowrap rounded-sm px-4 py-[10px] hover:bg-primary-hover",
|
15332
|
+
"focus-visible:outline-none focus-visible:relative focus-visible:z-50 focus-visible:ring-1 focus-visible:ring-offset-0 focusable",
|
15333
|
+
"disabled:cursor-not-allowed disabled:text-inactive disabled:bg-muted",
|
15318
15334
|
{
|
15319
|
-
"
|
15320
|
-
"
|
15321
|
-
"typography-default-strong": !dense,
|
15322
|
-
"typography-small-strong": dense,
|
15323
|
-
"text-muted": !selected
|
15335
|
+
"typography-small text-default bg-body": !selected,
|
15336
|
+
"typography-small-strong text-primary-intense relative z-40 ring-1 ring-offset-0 ring-primary-80": selected
|
15324
15337
|
}
|
15325
15338
|
);
|
15326
15339
|
|