@aivenio/aquarium 1.65.2 → 1.67.0-rc1
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/README.md +11 -3
- package/dist/_variables.scss +69 -3
- package/dist/atoms.cjs +821 -325
- package/dist/atoms.mjs +816 -325
- package/dist/charts.cjs +1 -1
- package/dist/charts.mjs +1 -1
- package/dist/src/atoms/Alert/Alert.js +15 -15
- package/dist/src/atoms/Banner/Banner.js +3 -3
- package/dist/src/atoms/Card/Card.js +6 -6
- package/dist/src/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/src/atoms/Checkbox/Checkbox.js +7 -7
- package/dist/src/atoms/DataList/DataList.js +5 -5
- package/dist/src/atoms/Dialog/Dialog.d.ts +2 -2
- package/dist/src/atoms/Dialog/Dialog.js +4 -4
- package/dist/src/atoms/DropdownMenu/DropdownMenu.js +8 -10
- package/dist/src/atoms/Modal/Modal.js +4 -4
- package/dist/src/atoms/Navigation/Navigation.js +5 -5
- package/dist/src/atoms/Popover/Popover.js +2 -2
- package/dist/src/atoms/ProgressBar/ProgressBar.js +6 -6
- package/dist/src/atoms/RadioButton/RadioButton.d.ts +1 -1
- package/dist/src/atoms/RadioButton/RadioButton.js +4 -4
- package/dist/src/atoms/Section/Section.js +2 -2
- package/dist/src/atoms/Select/Select.js +16 -19
- package/dist/src/atoms/Stepper/Stepper.js +12 -11
- package/dist/src/atoms/Switch/Switch.d.ts +1 -1
- package/dist/src/atoms/Switch/Switch.js +5 -5
- package/dist/src/atoms/Table/Table.js +6 -6
- package/dist/src/atoms/Timeline/Timeline.js +3 -3
- package/dist/src/atoms/Toast/Toast.js +5 -5
- package/dist/src/atoms/Typography/Typography.d.ts +2 -2
- package/dist/src/atoms/Typography/Typography.js +2 -2
- package/dist/src/atoms/index.d.ts +5 -0
- package/dist/src/atoms/index.js +6 -1
- package/dist/src/charts/PieChart/ChartValue.js +1 -1
- package/dist/src/js/resolveTheme.js +2 -14
- package/dist/src/molecules/Accordion/Accordion.js +2 -2
- package/dist/src/molecules/Badge/Badge.d.ts +10 -4
- package/dist/src/molecules/Badge/Badge.js +6 -5
- package/dist/src/molecules/Banner/Banner.d.ts +1 -1
- package/dist/src/molecules/Breadcrumbs/Breadcrumbs.js +4 -4
- package/dist/src/molecules/Button/Button.d.ts +9 -9
- package/dist/src/molecules/Button/Button.js +6 -6
- package/dist/src/molecules/Chip/Chip.js +10 -10
- package/dist/src/molecules/ChoiceChip/ChoiceChip.js +3 -3
- package/dist/src/molecules/ControlLabel/ControlLabel.js +2 -2
- package/dist/src/molecules/DataList/DataList.d.ts +5 -1
- package/dist/src/molecules/DataList/DataList.js +7 -6
- package/dist/src/molecules/DataList/DataListGroup.d.ts +1 -1
- package/dist/src/molecules/DataList/DataListGroup.js +4 -3
- package/dist/src/molecules/DataTable/DataTable.js +1 -1
- package/dist/src/molecules/Divider/Divider.js +2 -2
- package/dist/src/molecules/Drawer/Drawer.js +7 -9
- package/dist/src/molecules/Dropdown/Dropdown.js +6 -6
- package/dist/src/molecules/DropdownMenu/DropdownMenu.js +10 -2
- package/dist/src/molecules/Icon/Icon.d.ts +2 -2
- package/dist/src/molecules/Icon/Icon.js +3 -3
- package/dist/src/molecules/Input/Input.d.ts +4 -3
- package/dist/src/molecules/Input/Input.js +10 -4
- package/dist/src/molecules/List/List.js +2 -2
- package/dist/src/molecules/ListItem/ListItem.js +2 -2
- package/dist/src/molecules/MultiInput/InputChip.js +10 -11
- package/dist/src/molecules/NativeSelect/NativeSelect.js +6 -6
- package/dist/src/molecules/Pagination/Pagination.js +2 -2
- package/dist/src/molecules/Section/Section.js +2 -2
- package/dist/src/molecules/SegmentedControl/SegmentedControl.js +12 -12
- package/dist/src/molecules/Skeleton/Skeleton.js +2 -2
- package/dist/src/molecules/Tabs/Tabs.js +9 -9
- package/dist/src/molecules/TagLabel/TagLabel.js +4 -4
- package/dist/src/molecules/Timeline/Timeline.js +2 -2
- package/dist/src/molecules/Tooltip/Tooltip.js +3 -3
- package/dist/src/utils/constants.js +6 -6
- package/dist/src/utils/form/CharCounter/CharCounter.js +2 -2
- package/dist/src/utils/form/HelperText/HelperText.js +2 -2
- package/dist/src/utils/form/InputAdornment/InputAdornment.js +6 -6
- package/dist/src/utils/form/Label/Label.js +6 -6
- package/dist/styles.css +355 -240
- package/dist/system.cjs +496 -235
- package/dist/system.mjs +502 -241
- package/dist/tailwind/tailwind.backgroundColor.d.ts +43 -0
- package/dist/tailwind/tailwind.backgroundColor.js +44 -0
- package/dist/tailwind/tailwind.borderColor.d.ts +44 -0
- package/dist/tailwind/tailwind.borderColor.js +32 -0
- package/dist/tailwind/tailwind.borderRadius.d.ts +1 -0
- package/dist/tailwind/tailwind.borderRadius.js +5 -0
- package/dist/tailwind/tailwind.colors.d.ts +102 -0
- package/dist/tailwind/tailwind.colors.js +106 -0
- package/dist/tailwind/tailwind.elevations.d.ts +8 -0
- package/dist/tailwind/tailwind.elevations.js +9 -0
- package/dist/tailwind/tailwind.margin.d.ts +22 -0
- package/dist/tailwind/tailwind.margin.js +23 -0
- package/dist/tailwind/tailwind.spacing.d.ts +21 -0
- package/dist/tailwind/tailwind.spacing.js +22 -0
- package/dist/tailwind/tailwind.textColor.d.ts +56 -0
- package/dist/tailwind/tailwind.textColor.js +39 -0
- package/dist/tailwind/tailwind.typography.d.ts +14 -0
- package/dist/tailwind/tailwind.typography.js +15 -0
- package/dist/tailwind/textColor.d.ts +219 -0
- package/dist/tailwind/textColor.js +651 -0
- package/dist/tailwind/typography.d.ts +219 -0
- package/dist/tailwind/typography.js +651 -0
- package/dist/tailwind.config.js +74 -5
- package/dist/tailwind.theme.json +253 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/designTokens.d.ts +2 -0
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +2 -2
package/dist/atoms.mjs
CHANGED
@@ -4689,12 +4689,8 @@ var require_resolveTheme = __commonJS({
|
|
4689
4689
|
"src/js/resolveTheme.js"(exports, module) {
|
4690
4690
|
"use strict";
|
4691
4691
|
var tokensJson = require_tokens();
|
4692
|
-
var themeName = process.env.THEME || process.env.STORYBOOK_THEME || "aiven";
|
4693
|
-
if (!(themeName in tokensJson.themes)) {
|
4694
|
-
throw new Error(`Could not find theme '${themeName}' from tokens.json`);
|
4695
|
-
}
|
4696
4692
|
module.exports = {
|
4697
|
-
theme: tokensJson.themes
|
4693
|
+
theme: tokensJson.themes.aiven
|
4698
4694
|
};
|
4699
4695
|
}
|
4700
4696
|
});
|
@@ -5081,7 +5077,259 @@ var tailwind_theme_default = {
|
|
5081
5077
|
transparent: "var(--aquarium-colors-transparent, transparent)",
|
5082
5078
|
current: "var(--aquarium-colors-current, currentColor)",
|
5083
5079
|
white: "var(--aquarium-colors-white, white)",
|
5084
|
-
black: "var(--aquarium-colors-black, black)"
|
5080
|
+
black: "var(--aquarium-colors-black, black)",
|
5081
|
+
body: "var(--aquarium-background-color-body)",
|
5082
|
+
"body-intense": "var(--aquarium-background-color-body-intense)",
|
5083
|
+
"popover-content": "var(--aquarium-background-color-popover-content)",
|
5084
|
+
muted: "var(--aquarium-background-color-muted)",
|
5085
|
+
default: "var(--aquarium-background-color-default)",
|
5086
|
+
intense: "var(--aquarium-background-color-intense)",
|
5087
|
+
"primary-muted": "var(--aquarium-background-color-primary-muted)",
|
5088
|
+
"primary-default": "var(--aquarium-background-color-primary-default)",
|
5089
|
+
"primary-intense": "var(--aquarium-background-color-primary-intense)",
|
5090
|
+
"primary-active": "var(--aquarium-background-color-primary-active)",
|
5091
|
+
"primary-hover": "var(--aquarium-background-color-primary-hover)",
|
5092
|
+
"info-muted": "var(--aquarium-background-color-info-muted)",
|
5093
|
+
"info-default": "var(--aquarium-background-color-info-default)",
|
5094
|
+
"info-intense": "var(--aquarium-background-color-info-intense)",
|
5095
|
+
"success-muted": "var(--aquarium-background-color-success-muted)",
|
5096
|
+
"success-default": "var(--aquarium-background-color-success-default)",
|
5097
|
+
"success-intense": "var(--aquarium-background-color-success-intense)",
|
5098
|
+
"warning-muted": "var(--aquarium-background-color-warning-muted)",
|
5099
|
+
"warning-default": "var(--aquarium-background-color-warning-default)",
|
5100
|
+
"warning-intense": "var(--aquarium-background-color-warning-intense)",
|
5101
|
+
"danger-muted": "var(--aquarium-background-color-danger-muted)",
|
5102
|
+
"danger-default": "var(--aquarium-background-color-danger-default)",
|
5103
|
+
"danger-intense": "var(--aquarium-background-color-danger-intense)",
|
5104
|
+
"status-announcement": "var(--aquarium-background-color-status-announcement)",
|
5105
|
+
"status-info": "var(--aquarium-background-color-status-info)",
|
5106
|
+
"status-warning": "var(--aquarium-background-color-status-warning)",
|
5107
|
+
"status-danger": "var(--aquarium-background-color-status-danger)",
|
5108
|
+
"status-success": "var(--aquarium-background-color-status-success)"
|
5109
|
+
},
|
5110
|
+
textColor: {
|
5111
|
+
"error-100": "var(--aquarium-colors-error-100, #aa0000)",
|
5112
|
+
"error-90": "var(--aquarium-colors-error-90, #b90000)",
|
5113
|
+
"error-80": "var(--aquarium-colors-error-80, #c50001)",
|
5114
|
+
"error-70": "var(--aquarium-colors-error-70, #d80005)",
|
5115
|
+
"error-60": "var(--aquarium-colors-error-60, #e70000)",
|
5116
|
+
"error-50": "var(--aquarium-colors-error-50, #e62728)",
|
5117
|
+
"error-40": "var(--aquarium-colors-error-40, #e0504f)",
|
5118
|
+
"error-30": "var(--aquarium-colors-error-30, #ed7975)",
|
5119
|
+
"error-20": "var(--aquarium-colors-error-20, #ffadb3)",
|
5120
|
+
"error-10": "var(--aquarium-colors-error-10, #ffcbd2)",
|
5121
|
+
"error-5": "var(--aquarium-colors-error-5, #fee8e7)",
|
5122
|
+
"error-0": "var(--aquarium-colors-error-0, #fef2f1)",
|
5123
|
+
"warning-100": "var(--aquarium-colors-warning-100, #fe6d00)",
|
5124
|
+
"warning-90": "var(--aquarium-colors-warning-90, #ff9003)",
|
5125
|
+
"warning-80": "var(--aquarium-colors-warning-80, #fd9f00)",
|
5126
|
+
"warning-70": "var(--aquarium-colors-warning-70, #ffb300)",
|
5127
|
+
"warning-60": "var(--aquarium-colors-warning-60, #ffc107)",
|
5128
|
+
"warning-50": "var(--aquarium-colors-warning-50, #fdc926)",
|
5129
|
+
"warning-40": "var(--aquarium-colors-warning-40, #fdd44d)",
|
5130
|
+
"warning-30": "var(--aquarium-colors-warning-30, #fddf81)",
|
5131
|
+
"warning-20": "var(--aquarium-colors-warning-20, #feebb2)",
|
5132
|
+
"warning-10": "var(--aquarium-colors-warning-10, #fff2cd)",
|
5133
|
+
"warning-5": "var(--aquarium-colors-warning-5, #fff8ea)",
|
5134
|
+
"warning-0": "var(--aquarium-colors-warning-0, #fffdf9)",
|
5135
|
+
"success-100": "var(--aquarium-colors-success-100, #006f00)",
|
5136
|
+
"success-90": "var(--aquarium-colors-success-90, #008e00)",
|
5137
|
+
"success-80": "var(--aquarium-colors-success-80, #009f00)",
|
5138
|
+
"success-70": "var(--aquarium-colors-success-70, #00b300)",
|
5139
|
+
"success-60": "var(--aquarium-colors-success-60, #00c300)",
|
5140
|
+
"success-50": "var(--aquarium-colors-success-50, #40ce37)",
|
5141
|
+
"success-40": "var(--aquarium-colors-success-40, #60db57)",
|
5142
|
+
"success-30": "var(--aquarium-colors-success-30, #89eb80)",
|
5143
|
+
"success-20": "var(--aquarium-colors-success-20, #afffa7)",
|
5144
|
+
"success-10": "var(--aquarium-colors-success-10, #cbffc9)",
|
5145
|
+
"success-5": "var(--aquarium-colors-success-5, #ecf7ed)",
|
5146
|
+
"success-0": "var(--aquarium-colors-success-0, #f5faf5)",
|
5147
|
+
"info-100": "var(--aquarium-colors-info-100, #02569a)",
|
5148
|
+
"info-90": "var(--aquarium-colors-info-90, #0174ba)",
|
5149
|
+
"info-80": "var(--aquarium-colors-info-80, #0788d1)",
|
5150
|
+
"info-70": "var(--aquarium-colors-info-70, #0399e3)",
|
5151
|
+
"info-60": "var(--aquarium-colors-info-60, #02a8f3)",
|
5152
|
+
"info-50": "var(--aquarium-colors-info-50, #28b4f4)",
|
5153
|
+
"info-40": "var(--aquarium-colors-info-40, #4cc2f7)",
|
5154
|
+
"info-30": "var(--aquarium-colors-info-30, #7fd1f7)",
|
5155
|
+
"info-20": "var(--aquarium-colors-info-20, #b4e5fb)",
|
5156
|
+
"info-10": "var(--aquarium-colors-info-10, #e0f5fe)",
|
5157
|
+
"info-5": "var(--aquarium-colors-info-5, #effaff)",
|
5158
|
+
"info-0": "var(--aquarium-colors-info-0, #f9fdff)",
|
5159
|
+
"grey-100": "var(--aquarium-colors-grey-100, #19191d)",
|
5160
|
+
"grey-90": "var(--aquarium-colors-grey-90, #292a31)",
|
5161
|
+
"grey-80": "var(--aquarium-colors-grey-80, #3a3a44)",
|
5162
|
+
"grey-70": "var(--aquarium-colors-grey-70, #4a4b57)",
|
5163
|
+
"grey-60": "var(--aquarium-colors-grey-60, #5a5b6a)",
|
5164
|
+
"grey-50": "var(--aquarium-colors-grey-50, #787885)",
|
5165
|
+
"grey-40": "var(--aquarium-colors-grey-40, #9696a0)",
|
5166
|
+
"grey-30": "var(--aquarium-colors-grey-30, #b4b4bb)",
|
5167
|
+
"grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
|
5168
|
+
"grey-10": "var(--aquarium-colors-grey-10, #e1e1e3)",
|
5169
|
+
"grey-5": "var(--aquarium-colors-grey-5, #ededf0)",
|
5170
|
+
"grey-0": "var(--aquarium-colors-grey-0, #f7f7fa)",
|
5171
|
+
"secondary-100": "var(--aquarium-colors-secondary-100, #e11d16)",
|
5172
|
+
"secondary-90": "var(--aquarium-colors-secondary-90, #eb4610)",
|
5173
|
+
"secondary-80": "var(--aquarium-colors-secondary-80, #f3580d)",
|
5174
|
+
"secondary-70": "var(--aquarium-colors-secondary-70, #f96a02)",
|
5175
|
+
"secondary-60": "var(--aquarium-colors-secondary-60, #ff7700)",
|
5176
|
+
"secondary-50": "var(--aquarium-colors-secondary-50, #fc871a)",
|
5177
|
+
"secondary-40": "var(--aquarium-colors-secondary-40, #fb9a3e)",
|
5178
|
+
"secondary-30": "var(--aquarium-colors-secondary-30, #fab26e)",
|
5179
|
+
"secondary-20": "var(--aquarium-colors-secondary-20, #f8c99c)",
|
5180
|
+
"secondary-10": "var(--aquarium-colors-secondary-10, #fee8d0)",
|
5181
|
+
"secondary-5": "var(--aquarium-colors-secondary-5, #fff3e8)",
|
5182
|
+
"secondary-0": "var(--aquarium-colors-secondary-0, #fffbf8)",
|
5183
|
+
"primary-100": "var(--aquarium-colors-primary-100, #0e1652)",
|
5184
|
+
"primary-90": "var(--aquarium-colors-primary-90, #222f95)",
|
5185
|
+
"primary-80": "var(--aquarium-colors-primary-80, #3545be)",
|
5186
|
+
"primary-70": "var(--aquarium-colors-primary-70, #5865cd)",
|
5187
|
+
"primary-60": "var(--aquarium-colors-primary-60, #818eec)",
|
5188
|
+
"primary-50": "var(--aquarium-colors-primary-50, #9daaee)",
|
5189
|
+
"primary-40": "var(--aquarium-colors-primary-40, #b9c5ef)",
|
5190
|
+
"primary-30": "var(--aquarium-colors-primary-30, #c7d1f4)",
|
5191
|
+
"primary-20": "var(--aquarium-colors-primary-20, #d5ddfa)",
|
5192
|
+
"primary-10": "var(--aquarium-colors-primary-10, #e3e9ff)",
|
5193
|
+
"primary-5": "var(--aquarium-colors-primary-5, #f3f6ff)",
|
5194
|
+
"primary-0": "var(--aquarium-colors-primary-0, #ffffff)",
|
5195
|
+
transparent: "var(--aquarium-colors-transparent, transparent)",
|
5196
|
+
current: "var(--aquarium-colors-current, currentColor)",
|
5197
|
+
white: "var(--aquarium-colors-white, white)",
|
5198
|
+
black: "var(--aquarium-colors-black, black)",
|
5199
|
+
inactive: "var(--aquarium-text-color-inactive)",
|
5200
|
+
muted: "var(--aquarium-text-color-muted)",
|
5201
|
+
default: "var(--aquarium-text-color-default)",
|
5202
|
+
intense: "var(--aquarium-text-color-intense)",
|
5203
|
+
"primary-inactive": "var(--aquarium-text-color-primary-inactive)",
|
5204
|
+
"primary-active": "var(--aquarium-text-color-primary-active)",
|
5205
|
+
"primary-muted": "var(--aquarium-text-color-primary-muted)",
|
5206
|
+
"primary-default": "var(--aquarium-text-color-primary-default)",
|
5207
|
+
"primary-intense": "var(--aquarium-text-color-primary-intense)",
|
5208
|
+
"info-inactive": "var(--aquarium-text-color-info-inactive)",
|
5209
|
+
"info-muted": "var(--aquarium-text-color-info-muted)",
|
5210
|
+
"info-default": "var(--aquarium-text-color-info-default)",
|
5211
|
+
"info-intense": "var(--aquarium-text-color-info-intense)",
|
5212
|
+
"success-inactive": "var(--aquarium-text-color-success-inactive)",
|
5213
|
+
"success-muted": "var(--aquarium-text-color-success-muted)",
|
5214
|
+
"success-default": "var(--aquarium-text-color-success-default)",
|
5215
|
+
"success-intense": "var(--aquarium-text-color-success-intense)",
|
5216
|
+
"warning-inactive": "var(--aquarium-text-color-warning-inactive)",
|
5217
|
+
"warning-muted": "var(--aquarium-text-color-warning-muted)",
|
5218
|
+
"warning-default": "var(--aquarium-text-color-warning-default)",
|
5219
|
+
"warning-intense": "var(--aquarium-text-color-warning-intense)",
|
5220
|
+
"danger-inactive": "var(--aquarium-text-color-danger-inactive)",
|
5221
|
+
"danger-muted": "var(--aquarium-text-color-danger-muted)",
|
5222
|
+
"danger-default": "var(--aquarium-text-color-danger-default)",
|
5223
|
+
"danger-intense": "var(--aquarium-text-color-danger-intense)"
|
5224
|
+
},
|
5225
|
+
borderColor: {
|
5226
|
+
"error-100": "var(--aquarium-colors-error-100, #aa0000)",
|
5227
|
+
"error-90": "var(--aquarium-colors-error-90, #b90000)",
|
5228
|
+
"error-80": "var(--aquarium-colors-error-80, #c50001)",
|
5229
|
+
"error-70": "var(--aquarium-colors-error-70, #d80005)",
|
5230
|
+
"error-60": "var(--aquarium-colors-error-60, #e70000)",
|
5231
|
+
"error-50": "var(--aquarium-colors-error-50, #e62728)",
|
5232
|
+
"error-40": "var(--aquarium-colors-error-40, #e0504f)",
|
5233
|
+
"error-30": "var(--aquarium-colors-error-30, #ed7975)",
|
5234
|
+
"error-20": "var(--aquarium-colors-error-20, #ffadb3)",
|
5235
|
+
"error-10": "var(--aquarium-colors-error-10, #ffcbd2)",
|
5236
|
+
"error-5": "var(--aquarium-colors-error-5, #fee8e7)",
|
5237
|
+
"error-0": "var(--aquarium-colors-error-0, #fef2f1)",
|
5238
|
+
"warning-100": "var(--aquarium-colors-warning-100, #fe6d00)",
|
5239
|
+
"warning-90": "var(--aquarium-colors-warning-90, #ff9003)",
|
5240
|
+
"warning-80": "var(--aquarium-colors-warning-80, #fd9f00)",
|
5241
|
+
"warning-70": "var(--aquarium-colors-warning-70, #ffb300)",
|
5242
|
+
"warning-60": "var(--aquarium-colors-warning-60, #ffc107)",
|
5243
|
+
"warning-50": "var(--aquarium-colors-warning-50, #fdc926)",
|
5244
|
+
"warning-40": "var(--aquarium-colors-warning-40, #fdd44d)",
|
5245
|
+
"warning-30": "var(--aquarium-colors-warning-30, #fddf81)",
|
5246
|
+
"warning-20": "var(--aquarium-colors-warning-20, #feebb2)",
|
5247
|
+
"warning-10": "var(--aquarium-colors-warning-10, #fff2cd)",
|
5248
|
+
"warning-5": "var(--aquarium-colors-warning-5, #fff8ea)",
|
5249
|
+
"warning-0": "var(--aquarium-colors-warning-0, #fffdf9)",
|
5250
|
+
"success-100": "var(--aquarium-colors-success-100, #006f00)",
|
5251
|
+
"success-90": "var(--aquarium-colors-success-90, #008e00)",
|
5252
|
+
"success-80": "var(--aquarium-colors-success-80, #009f00)",
|
5253
|
+
"success-70": "var(--aquarium-colors-success-70, #00b300)",
|
5254
|
+
"success-60": "var(--aquarium-colors-success-60, #00c300)",
|
5255
|
+
"success-50": "var(--aquarium-colors-success-50, #40ce37)",
|
5256
|
+
"success-40": "var(--aquarium-colors-success-40, #60db57)",
|
5257
|
+
"success-30": "var(--aquarium-colors-success-30, #89eb80)",
|
5258
|
+
"success-20": "var(--aquarium-colors-success-20, #afffa7)",
|
5259
|
+
"success-10": "var(--aquarium-colors-success-10, #cbffc9)",
|
5260
|
+
"success-5": "var(--aquarium-colors-success-5, #ecf7ed)",
|
5261
|
+
"success-0": "var(--aquarium-colors-success-0, #f5faf5)",
|
5262
|
+
"info-100": "var(--aquarium-colors-info-100, #02569a)",
|
5263
|
+
"info-90": "var(--aquarium-colors-info-90, #0174ba)",
|
5264
|
+
"info-80": "var(--aquarium-colors-info-80, #0788d1)",
|
5265
|
+
"info-70": "var(--aquarium-colors-info-70, #0399e3)",
|
5266
|
+
"info-60": "var(--aquarium-colors-info-60, #02a8f3)",
|
5267
|
+
"info-50": "var(--aquarium-colors-info-50, #28b4f4)",
|
5268
|
+
"info-40": "var(--aquarium-colors-info-40, #4cc2f7)",
|
5269
|
+
"info-30": "var(--aquarium-colors-info-30, #7fd1f7)",
|
5270
|
+
"info-20": "var(--aquarium-colors-info-20, #b4e5fb)",
|
5271
|
+
"info-10": "var(--aquarium-colors-info-10, #e0f5fe)",
|
5272
|
+
"info-5": "var(--aquarium-colors-info-5, #effaff)",
|
5273
|
+
"info-0": "var(--aquarium-colors-info-0, #f9fdff)",
|
5274
|
+
"grey-100": "var(--aquarium-colors-grey-100, #19191d)",
|
5275
|
+
"grey-90": "var(--aquarium-colors-grey-90, #292a31)",
|
5276
|
+
"grey-80": "var(--aquarium-colors-grey-80, #3a3a44)",
|
5277
|
+
"grey-70": "var(--aquarium-colors-grey-70, #4a4b57)",
|
5278
|
+
"grey-60": "var(--aquarium-colors-grey-60, #5a5b6a)",
|
5279
|
+
"grey-50": "var(--aquarium-colors-grey-50, #787885)",
|
5280
|
+
"grey-40": "var(--aquarium-colors-grey-40, #9696a0)",
|
5281
|
+
"grey-30": "var(--aquarium-colors-grey-30, #b4b4bb)",
|
5282
|
+
"grey-20": "var(--aquarium-colors-grey-20, #d2d2d6)",
|
5283
|
+
"grey-10": "var(--aquarium-colors-grey-10, #e1e1e3)",
|
5284
|
+
"grey-5": "var(--aquarium-colors-grey-5, #ededf0)",
|
5285
|
+
"grey-0": "var(--aquarium-colors-grey-0, #f7f7fa)",
|
5286
|
+
"secondary-100": "var(--aquarium-colors-secondary-100, #e11d16)",
|
5287
|
+
"secondary-90": "var(--aquarium-colors-secondary-90, #eb4610)",
|
5288
|
+
"secondary-80": "var(--aquarium-colors-secondary-80, #f3580d)",
|
5289
|
+
"secondary-70": "var(--aquarium-colors-secondary-70, #f96a02)",
|
5290
|
+
"secondary-60": "var(--aquarium-colors-secondary-60, #ff7700)",
|
5291
|
+
"secondary-50": "var(--aquarium-colors-secondary-50, #fc871a)",
|
5292
|
+
"secondary-40": "var(--aquarium-colors-secondary-40, #fb9a3e)",
|
5293
|
+
"secondary-30": "var(--aquarium-colors-secondary-30, #fab26e)",
|
5294
|
+
"secondary-20": "var(--aquarium-colors-secondary-20, #f8c99c)",
|
5295
|
+
"secondary-10": "var(--aquarium-colors-secondary-10, #fee8d0)",
|
5296
|
+
"secondary-5": "var(--aquarium-colors-secondary-5, #fff3e8)",
|
5297
|
+
"secondary-0": "var(--aquarium-colors-secondary-0, #fffbf8)",
|
5298
|
+
"primary-100": "var(--aquarium-colors-primary-100, #0e1652)",
|
5299
|
+
"primary-90": "var(--aquarium-colors-primary-90, #222f95)",
|
5300
|
+
"primary-80": "var(--aquarium-colors-primary-80, #3545be)",
|
5301
|
+
"primary-70": "var(--aquarium-colors-primary-70, #5865cd)",
|
5302
|
+
"primary-60": "var(--aquarium-colors-primary-60, #818eec)",
|
5303
|
+
"primary-50": "var(--aquarium-colors-primary-50, #9daaee)",
|
5304
|
+
"primary-40": "var(--aquarium-colors-primary-40, #b9c5ef)",
|
5305
|
+
"primary-30": "var(--aquarium-colors-primary-30, #c7d1f4)",
|
5306
|
+
"primary-20": "var(--aquarium-colors-primary-20, #d5ddfa)",
|
5307
|
+
"primary-10": "var(--aquarium-colors-primary-10, #e3e9ff)",
|
5308
|
+
"primary-5": "var(--aquarium-colors-primary-5, #f3f6ff)",
|
5309
|
+
"primary-0": "var(--aquarium-colors-primary-0, #ffffff)",
|
5310
|
+
transparent: "var(--aquarium-colors-transparent, transparent)",
|
5311
|
+
current: "var(--aquarium-colors-current, currentColor)",
|
5312
|
+
white: "var(--aquarium-colors-white, white)",
|
5313
|
+
black: "var(--aquarium-colors-black, black)",
|
5314
|
+
DEFAULT: "currentColor",
|
5315
|
+
muted: "var(--aquarium-border-color-muted)",
|
5316
|
+
default: "var(--aquarium-border-color-default)",
|
5317
|
+
intense: "var(--aquarium-border-color-intense)",
|
5318
|
+
"primary-muted": "var(--aquarium-border-color-primary-muted)",
|
5319
|
+
"primary-default": "var(--aquarium-border-color-primary-default)",
|
5320
|
+
"primary-intense": "var(--aquarium-border-color-primary-intense)",
|
5321
|
+
"info-muted": "var(--aquarium-border-color-info-muted)",
|
5322
|
+
"info-default": "var(--aquarium-border-color-info-default)",
|
5323
|
+
"info-intense": "var(--aquarium-border-color-info-intense)",
|
5324
|
+
"success-muted": "var(--aquarium-border-color-success-muted)",
|
5325
|
+
"success-default": "var(--aquarium-border-color-success-default)",
|
5326
|
+
"success-intense": "var(--aquarium-border-color-success-intense)",
|
5327
|
+
"warning-muted": "var(--aquarium-border-color-warning-muted)",
|
5328
|
+
"warning-default": "var(--aquarium-border-color-warning-default)",
|
5329
|
+
"warning-intense": "var(--aquarium-border-color-warning-intense)",
|
5330
|
+
"danger-muted": "var(--aquarium-border-color-danger-muted)",
|
5331
|
+
"danger-default": "var(--aquarium-border-color-danger-default)",
|
5332
|
+
"danger-intense": "var(--aquarium-border-color-danger-intense)"
|
5085
5333
|
},
|
5086
5334
|
gap: {
|
5087
5335
|
"0": "0",
|
@@ -5521,8 +5769,8 @@ var Toast = (_a) => {
|
|
5521
5769
|
return /* @__PURE__ */ React6.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
5522
5770
|
className: classNames2(
|
5523
5771
|
tw("typography-body-small rounded grid grid-cols-[1fr_auto] items-center gap-x-6 gap-y-2 p-4 text-white", {
|
5524
|
-
"bg-
|
5525
|
-
"bg-
|
5772
|
+
"bg-body-intense": variant === "default",
|
5773
|
+
"bg-danger-intense": variant === "danger"
|
5526
5774
|
}),
|
5527
5775
|
className
|
5528
5776
|
)
|
@@ -5533,8 +5781,8 @@ var Dismiss = (_a) => {
|
|
5533
5781
|
return /* @__PURE__ */ React6.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
5534
5782
|
className: classNames2(
|
5535
5783
|
tw("self-start [&>button]:p-0 flex", {
|
5536
|
-
"[&>button]:text-
|
5537
|
-
"[&>button]:text-
|
5784
|
+
"[&>button]:text-muted": variant === "default",
|
5785
|
+
"[&>button]:text-danger-muted": variant === "danger"
|
5538
5786
|
}),
|
5539
5787
|
className
|
5540
5788
|
)
|
@@ -6007,7 +6255,7 @@ import {
|
|
6007
6255
|
} from "@iconify/react";
|
6008
6256
|
var Icon = React12.forwardRef((_a, ref) => {
|
6009
6257
|
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
6010
|
-
const classes2 = classNames("Aquarium-Icon", className, color && `text-${color}`);
|
6258
|
+
const classes2 = classNames("Aquarium-Icon", className, color && `text-${String(color)}`);
|
6011
6259
|
return /* @__PURE__ */ React12.createElement(IconifyIconComponent, __spreadValues({
|
6012
6260
|
ref: ref != null ? ref : void 0,
|
6013
6261
|
className: classes2 !== "" ? classes2 : void 0
|
@@ -6015,7 +6263,7 @@ var Icon = React12.forwardRef((_a, ref) => {
|
|
6015
6263
|
});
|
6016
6264
|
var InlineIcon = React12.forwardRef((_a, ref) => {
|
6017
6265
|
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
6018
|
-
const classes2 = classNames("Aquarium-InlineIcon", color && `text-${color}`);
|
6266
|
+
const classes2 = classNames("Aquarium-InlineIcon", color && `text-${String(color)}`);
|
6019
6267
|
return /* @__PURE__ */ React12.createElement("span", {
|
6020
6268
|
className: classNames(tw("children:inline-block inline-flex justify-center items-center"), className)
|
6021
6269
|
}, /* @__PURE__ */ React12.createElement(IconifyInlineIconComponent, __spreadValues({
|
@@ -6228,7 +6476,7 @@ var TooltipWrapper = React13.forwardRef(
|
|
6228
6476
|
const arrowStyle = getArrowStyle(ref.current, placement, (_a2 = arrowProps.style) != null ? _a2 : {});
|
6229
6477
|
return /* @__PURE__ */ React13.createElement(OverlayContainer, null, /* @__PURE__ */ React13.createElement("div", __spreadValues({
|
6230
6478
|
ref,
|
6231
|
-
className: classNames(tw("p-3 rounded-sm typography-caption max-w-[320px] bg-
|
6479
|
+
className: classNames(tw("p-3 rounded-sm typography-caption max-w-[320px] bg-body-intense text-white"))
|
6232
6480
|
}, mergeProps(props, tooltipProps)), props.children, /* @__PURE__ */ React13.createElement(Arrow, __spreadProps(__spreadValues({}, arrowProps), {
|
6233
6481
|
style: arrowStyle
|
6234
6482
|
}))));
|
@@ -6267,17 +6515,17 @@ var getArrowStyle = (element, position, { left, top }) => {
|
|
6267
6515
|
};
|
6268
6516
|
var Arrow = (props) => {
|
6269
6517
|
return /* @__PURE__ */ React13.createElement("div", __spreadValues({
|
6270
|
-
className: tw("absolute w-3 h-3 bg-
|
6518
|
+
className: tw("absolute w-3 h-3 bg-body-intense rotate-45")
|
6271
6519
|
}, props));
|
6272
6520
|
};
|
6273
6521
|
|
6274
6522
|
// src/utils/constants.ts
|
6275
6523
|
var ghostButtonStyle = tw(
|
6276
|
-
"text-primary-
|
6524
|
+
"text-primary-intense active:text-primary-active focus-visible:text-primary-active hover:text-primary-active disabled:text-primary-inactive"
|
6277
6525
|
);
|
6278
6526
|
var linkStyle = classNames(
|
6279
6527
|
ghostButtonStyle,
|
6280
|
-
tw("visited:text-primary-
|
6528
|
+
tw("visited:text-primary-intense no-underline hover:underline focusable")
|
6281
6529
|
);
|
6282
6530
|
|
6283
6531
|
// src/utils/string.ts
|
@@ -6288,19 +6536,19 @@ var import_chevronDown2 = __toESM(require_chevronDown());
|
|
6288
6536
|
var import_loading2 = __toESM(require_loading());
|
6289
6537
|
var COLOR_CLASSNAMES = {
|
6290
6538
|
"primary": tw(
|
6291
|
-
"text-white bg-primary-
|
6539
|
+
"text-white bg-primary-default active:bg-primary-intense active:ring-0 focus-visible:ring-2 focus-visible:ring-primary-100 focus-visible:ring-inset hover:bg-primary-intense disabled:bg-primary-muted"
|
6292
6540
|
),
|
6293
6541
|
"secondary": tw(
|
6294
|
-
"text-primary-
|
6295
|
-
"active:bg-primary-
|
6296
|
-
"focus-visible:ring-2 focus-visible:ring-primary-90 focus-visible:text-primary-
|
6297
|
-
"hover:bg-primary-
|
6298
|
-
"disabled:bg-
|
6542
|
+
"text-primary-intense bg-body ring-1 ring-primary-80 ring-inset",
|
6543
|
+
"active:bg-primary-active active:ring-primary-90 active:text-primary-intense",
|
6544
|
+
"focus-visible:ring-2 focus-visible:ring-primary-90 focus-visible:text-primary-intense",
|
6545
|
+
"hover:bg-primary-hover hover:ring-primary-90 hover:text-primary-intense",
|
6546
|
+
"disabled:bg-body disabled:text-primary-inactive disabled:ring-primary-40"
|
6299
6547
|
),
|
6300
6548
|
"ghost": ghostButtonStyle,
|
6301
6549
|
"text": linkStyle,
|
6302
6550
|
"secondary-ghost": tw(
|
6303
|
-
"text-grey-60 active:text-
|
6551
|
+
"text-grey-60 active:text-muted focus-visible:text-intense hover:text-intense disabled:text-inactive"
|
6304
6552
|
)
|
6305
6553
|
};
|
6306
6554
|
var LoadingSpinner = ({ size = "20px" }) => {
|
@@ -6308,7 +6556,7 @@ var LoadingSpinner = ({ size = "20px" }) => {
|
|
6308
6556
|
icon: import_loading2.default,
|
6309
6557
|
width: size,
|
6310
6558
|
height: size,
|
6311
|
-
color: "primary-
|
6559
|
+
color: "primary-intense",
|
6312
6560
|
"data-testid": "loading-button"
|
6313
6561
|
});
|
6314
6562
|
};
|
@@ -6403,7 +6651,7 @@ var asButton = (Component, isDropdownButton) => {
|
|
6403
6651
|
tw(
|
6404
6652
|
"inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative text-center",
|
6405
6653
|
{
|
6406
|
-
"text-default p-2 active:text-default active:bg-transparent hover:text-
|
6654
|
+
"text-default p-2 active:text-default active:bg-transparent hover:text-intense hover:bg-muted focus-visible:text-intense focus-visible:bg-muted disabled:text-inactive disabled:bg-transparent": isIconOnlyButton,
|
6407
6655
|
"typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
|
6408
6656
|
"typography-small-strong": dense && !isIconOnlyButton && kind !== "text",
|
6409
6657
|
"py-3 px-4": !dense && isButton,
|
@@ -6544,7 +6792,7 @@ var Typography = (_a) => {
|
|
6544
6792
|
const resolvedColorName = isUndefined6(color) || color === "current" ? "default" : color;
|
6545
6793
|
const style = useStyle({ fontWeight });
|
6546
6794
|
return /* @__PURE__ */ React15.createElement(HtmlElement, __spreadValues({
|
6547
|
-
className: classNames(typographies[variant], `text-${resolvedColorName}`, className),
|
6795
|
+
className: classNames(typographies[variant], `text-${resolvedColorName.toString()}`, className),
|
6548
6796
|
style
|
6549
6797
|
}, rest), children);
|
6550
6798
|
};
|
@@ -6559,23 +6807,23 @@ var import_warningSign2 = __toESM(require_warningSign());
|
|
6559
6807
|
var alertTypes = {
|
6560
6808
|
announcement: {
|
6561
6809
|
icon: import_announcement2.default,
|
6562
|
-
color: "primary-
|
6810
|
+
color: "primary-intense"
|
6563
6811
|
},
|
6564
6812
|
information: {
|
6565
6813
|
icon: import_infoSign2.default,
|
6566
|
-
color: "info-
|
6814
|
+
color: "info-default"
|
6567
6815
|
},
|
6568
6816
|
warning: {
|
6569
6817
|
icon: import_warningSign2.default,
|
6570
|
-
color: "warning-
|
6818
|
+
color: "warning-default"
|
6571
6819
|
},
|
6572
6820
|
error: {
|
6573
6821
|
icon: import_error2.default,
|
6574
|
-
color: "
|
6822
|
+
color: "danger-intense"
|
6575
6823
|
},
|
6576
6824
|
success: {
|
6577
6825
|
icon: import_tickCircle2.default,
|
6578
|
-
color: "success-
|
6826
|
+
color: "success-default"
|
6579
6827
|
}
|
6580
6828
|
};
|
6581
6829
|
var Alert = (_a) => {
|
@@ -6594,11 +6842,11 @@ var Alert = (_a) => {
|
|
6594
6842
|
role: type === "error" || type === "warning" ? "alert" : "status",
|
6595
6843
|
className: classNames(
|
6596
6844
|
tw("rounded grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2", {
|
6597
|
-
"bg-
|
6598
|
-
"bg-info
|
6599
|
-
"bg-success
|
6600
|
-
"bg-warning
|
6601
|
-
"bg-
|
6845
|
+
"bg-status-danger": type === "error",
|
6846
|
+
"bg-status-info": type === "information",
|
6847
|
+
"bg-status-success": type === "success",
|
6848
|
+
"bg-status-warning": type === "warning",
|
6849
|
+
"bg-status-announcement": type === "announcement",
|
6602
6850
|
"p-4": Boolean(dense),
|
6603
6851
|
"p-5": !dense
|
6604
6852
|
}),
|
@@ -6662,10 +6910,10 @@ var Banner = (_a) => {
|
|
6662
6910
|
role: type === "error" || type === "warning" ? "alert" : "status",
|
6663
6911
|
className: classNames(
|
6664
6912
|
tw("relative flex px-[60px] justify-center", {
|
6665
|
-
"bg-
|
6666
|
-
"bg-
|
6667
|
-
"bg-success
|
6668
|
-
"bg-warning
|
6913
|
+
"bg-status-danger": type === "error",
|
6914
|
+
"bg-status-announcement": type === "information",
|
6915
|
+
"bg-status-success": type === "success",
|
6916
|
+
"bg-status-warning": type === "warning"
|
6669
6917
|
}),
|
6670
6918
|
className
|
6671
6919
|
)
|
@@ -6753,18 +7001,104 @@ var IllustrationRight = (_a) => {
|
|
6753
7001
|
Banner.IllustrationRight = IllustrationRight;
|
6754
7002
|
Banner.IllustrationRight.displayName = "Alert.Banner.IllustrationRight";
|
6755
7003
|
|
7004
|
+
// src/atoms/Banner/Banner.tsx
|
7005
|
+
import React17 from "react";
|
7006
|
+
var spacing = {
|
7007
|
+
spacingAroundBanner: "p-6",
|
7008
|
+
omitSpacingAroundBanner: "-6"
|
7009
|
+
};
|
7010
|
+
var Banner2 = (_a) => {
|
7011
|
+
var _b = _a, {
|
7012
|
+
children,
|
7013
|
+
className,
|
7014
|
+
layout,
|
7015
|
+
variant
|
7016
|
+
} = _b, rest = __objRest(_b, [
|
7017
|
+
"children",
|
7018
|
+
"className",
|
7019
|
+
"layout",
|
7020
|
+
"variant"
|
7021
|
+
]);
|
7022
|
+
return /* @__PURE__ */ React17.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7023
|
+
className: classNames(
|
7024
|
+
className,
|
7025
|
+
tw(`rounded flex justify-between gap-7 flex-nowrap ${spacing.spacingAroundBanner}`, {
|
7026
|
+
"items-center": layout === "horizontal",
|
7027
|
+
"bg-muted": variant === "default",
|
7028
|
+
"bg-body border border-muted": variant === "outlined"
|
7029
|
+
})
|
7030
|
+
)
|
7031
|
+
}), children);
|
7032
|
+
};
|
7033
|
+
Banner2.Title = (_a) => {
|
7034
|
+
var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
|
7035
|
+
return /* @__PURE__ */ React17.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7036
|
+
variant: "subheading",
|
7037
|
+
color: "grey-100",
|
7038
|
+
className: classNames(
|
7039
|
+
className,
|
7040
|
+
tw({
|
7041
|
+
"mb-3": layout === "vertical"
|
7042
|
+
})
|
7043
|
+
)
|
7044
|
+
}), children);
|
7045
|
+
};
|
7046
|
+
Banner2.Description = (_a) => {
|
7047
|
+
var _b = _a, { flexGrow, children, className } = _b, rest = __objRest(_b, ["flexGrow", "children", "className"]);
|
7048
|
+
return /* @__PURE__ */ React17.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
7049
|
+
variant: "default",
|
7050
|
+
className: classNames(className, tw({ "flex-grow": flexGrow }))
|
7051
|
+
}), children);
|
7052
|
+
};
|
7053
|
+
Banner2.ContentContainer = (_a) => {
|
7054
|
+
var _b = _a, { layout, children, className } = _b, rest = __objRest(_b, ["layout", "children", "className"]);
|
7055
|
+
return /* @__PURE__ */ React17.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7056
|
+
className: classNames(
|
7057
|
+
className,
|
7058
|
+
tw("flex w-full", {
|
7059
|
+
"flex-col": layout === "vertical",
|
7060
|
+
"flex-row flex-nowrap gap-7 items-center": layout === "horizontal"
|
7061
|
+
})
|
7062
|
+
)
|
7063
|
+
}), children);
|
7064
|
+
};
|
7065
|
+
Banner2.ImageContainer = (_a) => {
|
7066
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7067
|
+
return /* @__PURE__ */ React17.createElement(Box, __spreadProps(__spreadValues({}, rest), {
|
7068
|
+
display: "inline-flex",
|
7069
|
+
alignItems: "center",
|
7070
|
+
margin: spacing.omitSpacingAroundBanner,
|
7071
|
+
marginLeft: "0"
|
7072
|
+
}), children);
|
7073
|
+
};
|
7074
|
+
Banner2.Actions = (_a) => {
|
7075
|
+
var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
|
7076
|
+
return /* @__PURE__ */ React17.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7077
|
+
className: classNames(className, tw("flex gap-4", { "mt-5": layout === "vertical" }))
|
7078
|
+
}), children);
|
7079
|
+
};
|
7080
|
+
Banner2.DismissContainer = (_a) => {
|
7081
|
+
var _b = _a, { layout, children, className } = _b, rest = __objRest(_b, ["layout", "children", "className"]);
|
7082
|
+
return /* @__PURE__ */ React17.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7083
|
+
className: classNames(
|
7084
|
+
className,
|
7085
|
+
tw({ "self-start": layout === "vertical", "self-center": layout === "horizontal" })
|
7086
|
+
)
|
7087
|
+
}), children);
|
7088
|
+
};
|
7089
|
+
|
6756
7090
|
// src/atoms/Card/Card.tsx
|
6757
|
-
import
|
7091
|
+
import React20 from "react";
|
6758
7092
|
import isNumber from "lodash/isNumber";
|
6759
7093
|
|
6760
7094
|
// src/molecules/Typography/Typography.tsx
|
6761
|
-
import
|
7095
|
+
import React18 from "react";
|
6762
7096
|
import classNames3 from "classnames";
|
6763
|
-
var Typography2 = (props) => /* @__PURE__ */
|
7097
|
+
var Typography2 = (props) => /* @__PURE__ */ React18.createElement(Typography, __spreadValues({}, props));
|
6764
7098
|
Typography2.displayName = "Typography";
|
6765
7099
|
Typography2.LargeHeading = (_a) => {
|
6766
7100
|
var _b = _a, { htmlTag = "h1" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6767
|
-
return /* @__PURE__ */
|
7101
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6768
7102
|
htmlTag,
|
6769
7103
|
variant: "large-heading"
|
6770
7104
|
}));
|
@@ -6772,7 +7106,7 @@ Typography2.LargeHeading = (_a) => {
|
|
6772
7106
|
Typography2.LargeHeading.displayName = "Typography.LargeHeading";
|
6773
7107
|
Typography2.Heading = (_a) => {
|
6774
7108
|
var _b = _a, { htmlTag = "h1", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
6775
|
-
return /* @__PURE__ */
|
7109
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6776
7110
|
htmlTag,
|
6777
7111
|
variant: "heading"
|
6778
7112
|
}));
|
@@ -6780,7 +7114,7 @@ Typography2.Heading = (_a) => {
|
|
6780
7114
|
Typography2.Heading.displayName = "Typography.Heading";
|
6781
7115
|
Typography2.Subheading = (_a) => {
|
6782
7116
|
var _b = _a, { htmlTag = "h2", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
6783
|
-
return /* @__PURE__ */
|
7117
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6784
7118
|
htmlTag,
|
6785
7119
|
variant: "subheading"
|
6786
7120
|
}));
|
@@ -6788,7 +7122,7 @@ Typography2.Subheading = (_a) => {
|
|
6788
7122
|
Typography2.Subheading.displayName = "Typography.Subheading";
|
6789
7123
|
Typography2.LargeStrong = (_a) => {
|
6790
7124
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6791
|
-
return /* @__PURE__ */
|
7125
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6792
7126
|
htmlTag,
|
6793
7127
|
variant: "large-strong"
|
6794
7128
|
}));
|
@@ -6796,7 +7130,7 @@ Typography2.LargeStrong = (_a) => {
|
|
6796
7130
|
Typography2.LargeStrong.displayName = "Typography.LargeStrong";
|
6797
7131
|
Typography2.Large = (_a) => {
|
6798
7132
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6799
|
-
return /* @__PURE__ */
|
7133
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6800
7134
|
htmlTag,
|
6801
7135
|
variant: "large"
|
6802
7136
|
}));
|
@@ -6804,7 +7138,7 @@ Typography2.Large = (_a) => {
|
|
6804
7138
|
Typography2.Large.displayName = "Typography.Large";
|
6805
7139
|
Typography2.DefaultStrong = (_a) => {
|
6806
7140
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6807
|
-
return /* @__PURE__ */
|
7141
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6808
7142
|
htmlTag,
|
6809
7143
|
variant: "default-strong"
|
6810
7144
|
}));
|
@@ -6812,7 +7146,7 @@ Typography2.DefaultStrong = (_a) => {
|
|
6812
7146
|
Typography2.DefaultStrong.displayName = "Typography.DefaultStrong";
|
6813
7147
|
Typography2.Default = (_a) => {
|
6814
7148
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6815
|
-
return /* @__PURE__ */
|
7149
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6816
7150
|
htmlTag,
|
6817
7151
|
variant: "default"
|
6818
7152
|
}));
|
@@ -6820,7 +7154,7 @@ Typography2.Default = (_a) => {
|
|
6820
7154
|
Typography2.Default.displayName = "Typography.Default";
|
6821
7155
|
Typography2.Paragraph = (_a) => {
|
6822
7156
|
var _b = _a, { htmlTag = "p", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
6823
|
-
return /* @__PURE__ */
|
7157
|
+
return /* @__PURE__ */ React18.createElement(Typography2.Default, __spreadProps(__spreadValues({}, props), {
|
6824
7158
|
htmlTag
|
6825
7159
|
}));
|
6826
7160
|
};
|
@@ -6828,7 +7162,7 @@ Typography2.P = Typography2.Paragraph;
|
|
6828
7162
|
Typography2.Paragraph.displayName = "Typography.Paragraph";
|
6829
7163
|
Typography2.Small = (_a) => {
|
6830
7164
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6831
|
-
return /* @__PURE__ */
|
7165
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6832
7166
|
htmlTag,
|
6833
7167
|
variant: "small"
|
6834
7168
|
}));
|
@@ -6836,7 +7170,7 @@ Typography2.Small = (_a) => {
|
|
6836
7170
|
Typography2.Small.displayName = "Typography.Small";
|
6837
7171
|
Typography2.SmallStrong = (_a) => {
|
6838
7172
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6839
|
-
return /* @__PURE__ */
|
7173
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6840
7174
|
htmlTag,
|
6841
7175
|
variant: "small-strong"
|
6842
7176
|
}));
|
@@ -6844,14 +7178,14 @@ Typography2.SmallStrong = (_a) => {
|
|
6844
7178
|
Typography2.SmallStrong.displayName = "Typography.SmallStrong";
|
6845
7179
|
Typography2.Strong = (_a) => {
|
6846
7180
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
6847
|
-
return /* @__PURE__ */
|
7181
|
+
return /* @__PURE__ */ React18.createElement("strong", __spreadValues({
|
6848
7182
|
className: classNames3(tw("font-semibold"), className)
|
6849
7183
|
}, props));
|
6850
7184
|
};
|
6851
7185
|
Typography2.Strong.displayName = "Typography.Strong";
|
6852
7186
|
Typography2.Caption = (_a) => {
|
6853
7187
|
var _b = _a, { htmlTag = "div", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
|
6854
|
-
return /* @__PURE__ */
|
7188
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6855
7189
|
htmlTag,
|
6856
7190
|
variant: "caption"
|
6857
7191
|
}));
|
@@ -6859,7 +7193,7 @@ Typography2.Caption = (_a) => {
|
|
6859
7193
|
Typography2.Caption.displayName = "Typography.Caption";
|
6860
7194
|
Typography2.LargeText = (_a) => {
|
6861
7195
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6862
|
-
return /* @__PURE__ */
|
7196
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6863
7197
|
htmlTag,
|
6864
7198
|
variant: "large-strong"
|
6865
7199
|
}));
|
@@ -6867,7 +7201,7 @@ Typography2.LargeText = (_a) => {
|
|
6867
7201
|
Typography2.LargeText.displayName = "Typography.LargeText";
|
6868
7202
|
Typography2.MediumText = (_a) => {
|
6869
7203
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6870
|
-
return /* @__PURE__ */
|
7204
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6871
7205
|
htmlTag,
|
6872
7206
|
variant: "default-strong"
|
6873
7207
|
}));
|
@@ -6875,7 +7209,7 @@ Typography2.MediumText = (_a) => {
|
|
6875
7209
|
Typography2.MediumText.displayName = "Typography.MediumText";
|
6876
7210
|
Typography2.Text = (_a) => {
|
6877
7211
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6878
|
-
return /* @__PURE__ */
|
7212
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6879
7213
|
htmlTag,
|
6880
7214
|
variant: "default"
|
6881
7215
|
}));
|
@@ -6883,7 +7217,7 @@ Typography2.Text = (_a) => {
|
|
6883
7217
|
Typography2.Text.displayName = "Typography.Text";
|
6884
7218
|
Typography2.SmallText = (_a) => {
|
6885
7219
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6886
|
-
return /* @__PURE__ */
|
7220
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6887
7221
|
htmlTag,
|
6888
7222
|
variant: "small"
|
6889
7223
|
}));
|
@@ -6891,7 +7225,7 @@ Typography2.SmallText = (_a) => {
|
|
6891
7225
|
Typography2.SmallText.displayName = "Typography.SmallText";
|
6892
7226
|
Typography2.SmallTextBold = (_a) => {
|
6893
7227
|
var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
|
6894
|
-
return /* @__PURE__ */
|
7228
|
+
return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), {
|
6895
7229
|
htmlTag,
|
6896
7230
|
variant: "small-strong"
|
6897
7231
|
}));
|
@@ -6899,11 +7233,11 @@ Typography2.SmallTextBold = (_a) => {
|
|
6899
7233
|
Typography2.SmallTextBold.displayName = "Typography.SmallTextBold";
|
6900
7234
|
|
6901
7235
|
// src/atoms/LineClamp/LineClamp.tsx
|
6902
|
-
import
|
6903
|
-
var LineClamp =
|
7236
|
+
import React19 from "react";
|
7237
|
+
var LineClamp = React19.forwardRef(
|
6904
7238
|
(_a, ref) => {
|
6905
7239
|
var _b = _a, { lines = 1, clamped = true, children, className, wordBreak = "break-words" } = _b, props = __objRest(_b, ["lines", "clamped", "children", "className", "wordBreak"]);
|
6906
|
-
return /* @__PURE__ */
|
7240
|
+
return /* @__PURE__ */ React19.createElement("div", __spreadValues({
|
6907
7241
|
ref,
|
6908
7242
|
className: classNames(className, wordBreak === "break-words" ? "break-words" : "break-all", {
|
6909
7243
|
[`line-clamp-${lines}`]: clamped
|
@@ -6917,13 +7251,13 @@ var getCommonCardStyles = ({
|
|
6917
7251
|
fullWidth = false,
|
6918
7252
|
enableMinWidth = true,
|
6919
7253
|
disabled = false
|
6920
|
-
}) => tw("border-[2px] border-muted rounded-[2px] relative p-5 flex flex-col gap-5 bg-
|
7254
|
+
}) => tw("border-[2px] border-muted rounded-[2px] relative p-5 flex flex-col gap-5 bg-body outline-none transition-all", {
|
6921
7255
|
"w-[280px]": !fullWidth,
|
6922
7256
|
"w-full": fullWidth,
|
6923
7257
|
"min-w-[280px]": fullWidth && enableMinWidth,
|
6924
|
-
"bg-
|
7258
|
+
"bg-muted cursor-not-allowed focus:border-transparent opacity-50": disabled
|
6925
7259
|
});
|
6926
|
-
var Card =
|
7260
|
+
var Card = React20.forwardRef((props, ref) => {
|
6927
7261
|
const _a = props, {
|
6928
7262
|
disabled = false,
|
6929
7263
|
clickable: _clickable,
|
@@ -6944,14 +7278,14 @@ var Card = React19.forwardRef((props, ref) => {
|
|
6944
7278
|
"fullWidth"
|
6945
7279
|
]);
|
6946
7280
|
const clickable = Boolean(role !== void 0 && !disabled);
|
6947
|
-
return /* @__PURE__ */
|
7281
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({
|
6948
7282
|
ref,
|
6949
7283
|
role
|
6950
7284
|
}, rest), {
|
6951
7285
|
className: classNames(
|
6952
7286
|
getCommonCardStyles(props),
|
6953
7287
|
tw({
|
6954
|
-
"cursor-pointer hover:bg-primary-
|
7288
|
+
"cursor-pointer hover:bg-primary-hover active:bg-body": clickable && !disabled,
|
6955
7289
|
"focusable": clickable && modality === "keyboard"
|
6956
7290
|
}),
|
6957
7291
|
className
|
@@ -6960,12 +7294,12 @@ var Card = React19.forwardRef((props, ref) => {
|
|
6960
7294
|
});
|
6961
7295
|
var Label = (props) => {
|
6962
7296
|
const _a = props, { className, checked = false, children, modality, enableMinWidth, fullWidth, disabled } = _a, rest = __objRest(_a, ["className", "checked", "children", "modality", "enableMinWidth", "fullWidth", "disabled"]);
|
6963
|
-
return /* @__PURE__ */
|
7297
|
+
return /* @__PURE__ */ React20.createElement("label", __spreadProps(__spreadValues({}, rest), {
|
6964
7298
|
className: classNames(
|
6965
7299
|
getCommonCardStyles(props),
|
6966
7300
|
tw({
|
6967
|
-
"cursor-pointer hover:bg-primary-
|
6968
|
-
"border-primary-
|
7301
|
+
"cursor-pointer hover:bg-primary-hover active:bg-body": !disabled,
|
7302
|
+
"border-primary-default": checked,
|
6969
7303
|
"focusable": modality === "keyboard"
|
6970
7304
|
}),
|
6971
7305
|
className
|
@@ -6974,14 +7308,14 @@ var Label = (props) => {
|
|
6974
7308
|
};
|
6975
7309
|
var ColorHighlight = (_a) => {
|
6976
7310
|
var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
|
6977
|
-
return /* @__PURE__ */
|
7311
|
+
return /* @__PURE__ */ React20.createElement(Box, __spreadProps(__spreadValues({}, rest), {
|
6978
7312
|
backgroundColor: color,
|
6979
7313
|
className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
|
6980
7314
|
}));
|
6981
7315
|
};
|
6982
7316
|
var ImageContainer = (_a) => {
|
6983
7317
|
var _b = _a, { className, fullSize } = _b, rest = __objRest(_b, ["className", "fullSize"]);
|
6984
|
-
return /* @__PURE__ */
|
7318
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
6985
7319
|
className: classNames(
|
6986
7320
|
tw("-mx-4", {
|
6987
7321
|
"-mt-4": Boolean(fullSize)
|
@@ -6991,7 +7325,7 @@ var ImageContainer = (_a) => {
|
|
6991
7325
|
}));
|
6992
7326
|
};
|
6993
7327
|
var classes = "w-full bg-cover object-cover";
|
6994
|
-
var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__ */
|
7328
|
+
var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__ */ React20.createElement("img", {
|
6995
7329
|
src: image,
|
6996
7330
|
alt: imageAlt,
|
6997
7331
|
className: tw(classes, {
|
@@ -7000,20 +7334,20 @@ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__
|
|
7000
7334
|
}),
|
7001
7335
|
style: { height: isNumber(imageHeight) ? `${imageHeight}px` : imageHeight }
|
7002
7336
|
});
|
7003
|
-
var Title = (props) => /* @__PURE__ */
|
7337
|
+
var Title = (props) => /* @__PURE__ */ React20.createElement(Box.Flex, __spreadValues({
|
7004
7338
|
component: "div",
|
7005
7339
|
alignItems: "center",
|
7006
7340
|
gap: "2"
|
7007
7341
|
}, props));
|
7008
7342
|
var Content = (_a) => {
|
7009
7343
|
var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
|
7010
|
-
return /* @__PURE__ */
|
7344
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7011
7345
|
className: classNames(tw("flex flex-col", { "gap-4": !dense }), className)
|
7012
7346
|
}));
|
7013
7347
|
};
|
7014
7348
|
var Actions = (_a) => {
|
7015
7349
|
var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
|
7016
|
-
return /* @__PURE__ */
|
7350
|
+
return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7017
7351
|
className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className)
|
7018
7352
|
}));
|
7019
7353
|
};
|
@@ -7025,7 +7359,7 @@ Card.ImageContainer = ImageContainer;
|
|
7025
7359
|
Card.Image = Image;
|
7026
7360
|
Card.ColorHiglight = ColorHighlight;
|
7027
7361
|
var isCardTitleComponent = (c) => {
|
7028
|
-
return
|
7362
|
+
return React20.isValidElement(c) && c.type === Card.Title;
|
7029
7363
|
};
|
7030
7364
|
var getTitleContent = ({
|
7031
7365
|
title,
|
@@ -7037,12 +7371,12 @@ var getTitleContent = ({
|
|
7037
7371
|
"Wrap a custom card title element with <Card.Title> to get the desired spacing between children elements applied."
|
7038
7372
|
);
|
7039
7373
|
}
|
7040
|
-
const titleContent = /* @__PURE__ */
|
7374
|
+
const titleContent = /* @__PURE__ */ React20.createElement(Typography2, {
|
7041
7375
|
variant: dense ? "small-strong" : "default-strong",
|
7042
7376
|
color: "black"
|
7043
7377
|
}, title);
|
7044
7378
|
if (clampTitle) {
|
7045
|
-
return /* @__PURE__ */
|
7379
|
+
return /* @__PURE__ */ React20.createElement(LineClamp, {
|
7046
7380
|
lines: clampTitle,
|
7047
7381
|
wordBreak: "break-all"
|
7048
7382
|
}, titleContent);
|
@@ -7051,18 +7385,18 @@ var getTitleContent = ({
|
|
7051
7385
|
};
|
7052
7386
|
|
7053
7387
|
// src/atoms/Checkbox/Checkbox.tsx
|
7054
|
-
import
|
7388
|
+
import React21 from "react";
|
7055
7389
|
var import_minus2 = __toESM(require_minus());
|
7056
7390
|
var import_tick2 = __toESM(require_tick());
|
7057
|
-
var Checkbox =
|
7391
|
+
var Checkbox = React21.forwardRef(
|
7058
7392
|
(_a, ref) => {
|
7059
7393
|
var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
|
7060
|
-
return /* @__PURE__ */
|
7394
|
+
return /* @__PURE__ */ React21.createElement("span", {
|
7061
7395
|
className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
|
7062
|
-
"hover:border-intense peer-checked:border-primary-
|
7396
|
+
"hover:border-intense peer-checked:border-primary-default": !disabled,
|
7063
7397
|
"border-muted": disabled
|
7064
7398
|
})
|
7065
|
-
}, /* @__PURE__ */
|
7399
|
+
}, /* @__PURE__ */ React21.createElement("input", __spreadProps(__spreadValues({
|
7066
7400
|
id,
|
7067
7401
|
ref,
|
7068
7402
|
type: "checkbox",
|
@@ -7070,25 +7404,25 @@ var Checkbox = React20.forwardRef(
|
|
7070
7404
|
}, props), {
|
7071
7405
|
className: classNames(
|
7072
7406
|
tw("peer appearance-none outline-none w-5 h-5", "rounded-sm border border-transparent", {
|
7073
|
-
"cursor-pointer checked:bg-primary-
|
7074
|
-
"cursor-not-allowed bg-
|
7407
|
+
"cursor-pointer checked:bg-primary-default": !disabled,
|
7408
|
+
"cursor-not-allowed bg-muted checked:bg-primary-muted": disabled
|
7075
7409
|
})
|
7076
7410
|
),
|
7077
7411
|
readOnly,
|
7078
7412
|
disabled
|
7079
|
-
})), /* @__PURE__ */
|
7413
|
+
})), /* @__PURE__ */ React21.createElement(Icon, {
|
7080
7414
|
icon: indeterminate ? import_minus2.default : import_tick2.default,
|
7081
|
-
strokeWidth: "
|
7415
|
+
strokeWidth: "3px",
|
7082
7416
|
className: classNames(
|
7083
7417
|
tw(
|
7084
7418
|
"absolute top-0 right-0",
|
7085
7419
|
"pointer-events-none p-[2px] w-5 h-5",
|
7086
|
-
"text-transparent [&>path]:stroke-transparent [&>path]:stroke-
|
7087
|
-
"rounded-sm border border-default peer-focus:border-info-
|
7420
|
+
"text-transparent [&>path]:stroke-transparent [&>path]:stroke-[3px]",
|
7421
|
+
"rounded-sm border border-default peer-focus:border-info-default"
|
7088
7422
|
),
|
7089
7423
|
{
|
7090
|
-
"peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-
|
7091
|
-
"border-muted peer-checked:text-primary-
|
7424
|
+
"peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-default": !disabled,
|
7425
|
+
"border-muted peer-checked:text-primary-default peer-checked:[&>path]:stroke-primary-70 peer-checked:border-transparent": disabled
|
7092
7426
|
}
|
7093
7427
|
)
|
7094
7428
|
}));
|
@@ -7096,11 +7430,11 @@ var Checkbox = React20.forwardRef(
|
|
7096
7430
|
);
|
7097
7431
|
|
7098
7432
|
// src/atoms/Chip/Chip.tsx
|
7099
|
-
import
|
7100
|
-
var Container =
|
7433
|
+
import React22 from "react";
|
7434
|
+
var Container = React22.forwardRef(
|
7101
7435
|
(_a, ref) => {
|
7102
7436
|
var _b = _a, { dense = false, className, children } = _b, rest = __objRest(_b, ["dense", "className", "children"]);
|
7103
|
-
return /* @__PURE__ */
|
7437
|
+
return /* @__PURE__ */ React22.createElement("span", __spreadValues({
|
7104
7438
|
ref,
|
7105
7439
|
className: classNames(
|
7106
7440
|
tw("inline-flex items-center rounded-sm transition whitespace-nowrap", {
|
@@ -7117,17 +7451,17 @@ var Chip = {
|
|
7117
7451
|
};
|
7118
7452
|
|
7119
7453
|
// src/atoms/DataList/DataList.tsx
|
7120
|
-
import
|
7454
|
+
import React25 from "react";
|
7121
7455
|
|
7122
7456
|
// src/atoms/Table/Table.tsx
|
7123
|
-
import
|
7457
|
+
import React24 from "react";
|
7124
7458
|
|
7125
7459
|
// src/atoms/RadioButton/RadioButton.tsx
|
7126
|
-
import
|
7127
|
-
var RadioButton =
|
7460
|
+
import React23 from "react";
|
7461
|
+
var RadioButton = React23.forwardRef(
|
7128
7462
|
(_a, ref) => {
|
7129
7463
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
7130
|
-
return /* @__PURE__ */
|
7464
|
+
return /* @__PURE__ */ React23.createElement("input", __spreadProps(__spreadValues({
|
7131
7465
|
id,
|
7132
7466
|
ref,
|
7133
7467
|
type: "radio",
|
@@ -7136,11 +7470,11 @@ var RadioButton = React22.forwardRef(
|
|
7136
7470
|
className: classNames(
|
7137
7471
|
tw(
|
7138
7472
|
"inline-flex justify-center items-center self-center appearance-none",
|
7139
|
-
"w-5 h-5 p-[3px] rounded-full
|
7140
|
-
"outline-none focus:border-info-
|
7473
|
+
"w-5 h-5 p-[3px] rounded-full border border-default",
|
7474
|
+
"outline-none focus:border-info-default checked:bg-primary-default checked:shadow-whiteInset",
|
7141
7475
|
{
|
7142
|
-
"hover:border-intense checked:border-primary-
|
7143
|
-
"cursor-not-allowed border-muted bg-
|
7476
|
+
"cursor-pointer hover:border-intense checked:border-primary-default": !disabled,
|
7477
|
+
"cursor-not-allowed border-muted bg-muted checked:bg-primary-muted checked:border-transparent": disabled
|
7144
7478
|
}
|
7145
7479
|
)
|
7146
7480
|
),
|
@@ -7153,29 +7487,29 @@ var RadioButton = React22.forwardRef(
|
|
7153
7487
|
// src/atoms/Table/Table.tsx
|
7154
7488
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
7155
7489
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
7156
|
-
var HeadContext =
|
7490
|
+
var HeadContext = React24.createContext(null);
|
7157
7491
|
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
7158
7492
|
var Table = (_a) => {
|
7159
7493
|
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
7160
|
-
return /* @__PURE__ */
|
7494
|
+
return /* @__PURE__ */ React24.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
7161
7495
|
className: classNames(tableClassNames, className),
|
7162
7496
|
"aria-label": ariaLabel
|
7163
7497
|
}), children);
|
7164
7498
|
};
|
7165
7499
|
var TableHead = (_a) => {
|
7166
7500
|
var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
|
7167
|
-
return /* @__PURE__ */
|
7501
|
+
return /* @__PURE__ */ React24.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React24.createElement("tr", null, /* @__PURE__ */ React24.createElement(HeadContext.Provider, {
|
7168
7502
|
value: { children, sticky }
|
7169
7503
|
}, children)));
|
7170
7504
|
};
|
7171
7505
|
var TableBody = (_a) => {
|
7172
7506
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7173
|
-
return /* @__PURE__ */
|
7507
|
+
return /* @__PURE__ */ React24.createElement("tbody", __spreadValues({}, rest), children);
|
7174
7508
|
};
|
7175
|
-
var rowClassNames = tw("children:border-default group children:last:border-b-0 hover:bg-
|
7509
|
+
var rowClassNames = tw("children:border-default group children:last:border-b-0 hover:bg-muted");
|
7176
7510
|
var TableRow = (_a) => {
|
7177
7511
|
var _b = _a, { children, className, disabled } = _b, rest = __objRest(_b, ["children", "className", "disabled"]);
|
7178
|
-
return /* @__PURE__ */
|
7512
|
+
return /* @__PURE__ */ React24.createElement("tr", __spreadProps(__spreadValues(__spreadValues({}, rest), { inert: disabled ? "" : void 0 }), {
|
7179
7513
|
className: classNames(rowClassNames, className, {
|
7180
7514
|
"opacity-70": disabled
|
7181
7515
|
})
|
@@ -7185,13 +7519,13 @@ var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
|
|
7185
7519
|
var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-default py-3", {
|
7186
7520
|
"h-[50px]": table,
|
7187
7521
|
"min-h-[50px]": !table,
|
7188
|
-
"sticky z-10 bg-
|
7522
|
+
"sticky z-10 bg-body group-hover:bg-muted": Boolean(stickyColumn),
|
7189
7523
|
"left-0": stickyColumn === "left",
|
7190
7524
|
"right-0": stickyColumn === "right"
|
7191
7525
|
});
|
7192
7526
|
var getAlignClassNames = (align) => tw({ "text-right": align === "right", "text-center": align === "center" });
|
7193
7527
|
var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
7194
|
-
const common = tw("py-[14px] text-left bg-
|
7528
|
+
const common = tw("py-[14px] text-left bg-body border-intense text-muted font-semibold whitespace-nowrap");
|
7195
7529
|
return sticky ? classNames(
|
7196
7530
|
common,
|
7197
7531
|
tw("sticky top-0", {
|
@@ -7204,15 +7538,15 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
|
7204
7538
|
};
|
7205
7539
|
var TableCell = (_a) => {
|
7206
7540
|
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
7207
|
-
const headContext =
|
7208
|
-
return headContext ? /* @__PURE__ */
|
7541
|
+
const headContext = React24.useContext(HeadContext);
|
7542
|
+
return headContext ? /* @__PURE__ */ React24.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
7209
7543
|
className: classNames(
|
7210
7544
|
cellClassNames,
|
7211
7545
|
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
7212
7546
|
getAlignClassNames(align),
|
7213
7547
|
className
|
7214
7548
|
)
|
7215
|
-
}), children) : /* @__PURE__ */
|
7549
|
+
}), children) : /* @__PURE__ */ React24.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
7216
7550
|
className: classNames(
|
7217
7551
|
cellClassNames,
|
7218
7552
|
getBodyCellClassNames(true, stickyColumn),
|
@@ -7223,56 +7557,56 @@ var TableCell = (_a) => {
|
|
7223
7557
|
};
|
7224
7558
|
var TableSelectCell = (_a) => {
|
7225
7559
|
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
7226
|
-
return /* @__PURE__ */
|
7560
|
+
return /* @__PURE__ */ React24.createElement(Table.Cell, {
|
7227
7561
|
className: tw("leading-[0px]")
|
7228
|
-
}, props.type === "radio" ? /* @__PURE__ */
|
7562
|
+
}, props.type === "radio" ? /* @__PURE__ */ React24.createElement(RadioButton, __spreadValues({
|
7229
7563
|
"aria-label": ariaLabel
|
7230
|
-
}, props)) : /* @__PURE__ */
|
7564
|
+
}, props)) : /* @__PURE__ */ React24.createElement(Checkbox, __spreadValues({
|
7231
7565
|
"aria-label": ariaLabel
|
7232
7566
|
}, props)));
|
7233
7567
|
};
|
7234
|
-
var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4 text-
|
7568
|
+
var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4 text-muted", { "flex-row-reverse": align === "right" });
|
7235
7569
|
var getSortCellIconClassNames = (active) => {
|
7236
|
-
return tw("text-[9px]", active ? "text-default" : "text-
|
7570
|
+
return tw("text-[9px]", active ? "text-default" : "text-inactive");
|
7237
7571
|
};
|
7238
7572
|
var TableSortCell = (_a) => {
|
7239
7573
|
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
7240
|
-
return /* @__PURE__ */
|
7574
|
+
return /* @__PURE__ */ React24.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
7241
7575
|
"aria-sort": direction
|
7242
|
-
}), /* @__PURE__ */
|
7576
|
+
}), /* @__PURE__ */ React24.createElement("span", {
|
7243
7577
|
className: getSortCellButtonClassNames(rest.align),
|
7244
7578
|
role: "button",
|
7245
7579
|
tabIndex: -1,
|
7246
7580
|
onClick
|
7247
|
-
}, children, /* @__PURE__ */
|
7581
|
+
}, children, /* @__PURE__ */ React24.createElement("div", {
|
7248
7582
|
"data-sort-icons": true,
|
7249
7583
|
className: tw("flex flex-col", {
|
7250
7584
|
"invisible group-hover:visible": direction === "none"
|
7251
7585
|
})
|
7252
|
-
}, /* @__PURE__ */
|
7586
|
+
}, /* @__PURE__ */ React24.createElement(InlineIcon, {
|
7253
7587
|
icon: import_chevronUp2.default,
|
7254
7588
|
className: getSortCellIconClassNames(direction === "ascending")
|
7255
|
-
}), /* @__PURE__ */
|
7589
|
+
}), /* @__PURE__ */ React24.createElement(InlineIcon, {
|
7256
7590
|
icon: import_chevronDown3.default,
|
7257
7591
|
className: getSortCellIconClassNames(direction === "descending")
|
7258
7592
|
}))));
|
7259
7593
|
};
|
7260
|
-
var Caption = ({ children }) => /* @__PURE__ */
|
7594
|
+
var Caption = ({ children }) => /* @__PURE__ */ React24.createElement(Typography2.Caption, {
|
7261
7595
|
htmlTag: "caption"
|
7262
7596
|
}, children);
|
7263
|
-
var Item = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */
|
7597
|
+
var Item = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React24.createElement("div", {
|
7264
7598
|
className: tw("flex gap-4 items-center")
|
7265
|
-
}, image && /* @__PURE__ */
|
7599
|
+
}, image && /* @__PURE__ */ React24.createElement("img", {
|
7266
7600
|
src: image,
|
7267
7601
|
alt: imageAlt != null ? imageAlt : "",
|
7268
7602
|
style: { width: imageSize, height: imageSize }
|
7269
|
-
}), /* @__PURE__ */
|
7270
|
-
Table.Head =
|
7271
|
-
Table.Body =
|
7272
|
-
Table.Row =
|
7273
|
-
Table.Cell =
|
7274
|
-
Table.SortCell =
|
7275
|
-
Table.SelectCell =
|
7603
|
+
}), /* @__PURE__ */ React24.createElement("div", null, title, caption && /* @__PURE__ */ React24.createElement(Typography2.Caption, null, caption)));
|
7604
|
+
Table.Head = React24.memo(TableHead);
|
7605
|
+
Table.Body = React24.memo(TableBody);
|
7606
|
+
Table.Row = React24.memo(TableRow);
|
7607
|
+
Table.Cell = React24.memo(TableCell);
|
7608
|
+
Table.SortCell = React24.memo(TableSortCell);
|
7609
|
+
Table.SelectCell = React24.memo(TableSelectCell);
|
7276
7610
|
Table.Caption = Caption;
|
7277
7611
|
|
7278
7612
|
// src/atoms/DataList/DataList.tsx
|
@@ -7285,7 +7619,7 @@ var getAlignClassNames2 = (align) => tw("flex items-center", {
|
|
7285
7619
|
});
|
7286
7620
|
var DataList = (_a) => {
|
7287
7621
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7288
|
-
return /* @__PURE__ */
|
7622
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadValues({}, rest));
|
7289
7623
|
};
|
7290
7624
|
var HeadCell = (_a) => {
|
7291
7625
|
var _b = _a, {
|
@@ -7299,7 +7633,7 @@ var HeadCell = (_a) => {
|
|
7299
7633
|
"align",
|
7300
7634
|
"stickyColumn"
|
7301
7635
|
]);
|
7302
|
-
return /* @__PURE__ */
|
7636
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({
|
7303
7637
|
role: "columnheader"
|
7304
7638
|
}, rest), {
|
7305
7639
|
className: classNames(
|
@@ -7320,7 +7654,7 @@ var Cell = (_a) => {
|
|
7320
7654
|
"align",
|
7321
7655
|
"stickyColumn"
|
7322
7656
|
]);
|
7323
|
-
return /* @__PURE__ */
|
7657
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7324
7658
|
role: "cell",
|
7325
7659
|
className: classNames(
|
7326
7660
|
cellClassNames,
|
@@ -7345,53 +7679,50 @@ var Row = (_a) => {
|
|
7345
7679
|
"subgroup",
|
7346
7680
|
"active"
|
7347
7681
|
]);
|
7348
|
-
return /* @__PURE__ */
|
7682
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
|
7349
7683
|
role: subgroup ? "rowgroup" : "row"
|
7350
7684
|
}), { inert: disabled ? "" : void 0 }), {
|
7351
7685
|
className: classNames(tw("contents"), className, {
|
7352
7686
|
"children:opacity-70": disabled,
|
7353
|
-
"[&>*]:bg-primary-
|
7354
|
-
"[&>*]:hover:bg-
|
7687
|
+
"[&>*]:bg-primary-active": active,
|
7688
|
+
"[&>*]:hover:bg-muted": !disabled && !header
|
7355
7689
|
})
|
7356
7690
|
}));
|
7357
7691
|
};
|
7358
7692
|
var SubGroupSpacing = (_a) => {
|
7359
7693
|
var _b = _a, { className, divider } = _b, rest = __objRest(_b, ["className", "divider"]);
|
7360
|
-
return /* @__PURE__ */
|
7694
|
+
return /* @__PURE__ */ React25.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
7361
7695
|
"aria-hidden": true,
|
7362
|
-
className: classNames(
|
7363
|
-
tw("col-span-full h-6 bg-grey-0 border-default", { "border-b": Boolean(divider) }),
|
7364
|
-
className
|
7365
|
-
)
|
7696
|
+
className: classNames(tw("col-span-full h-6 bg-muted border-default", { "border-b": Boolean(divider) }), className)
|
7366
7697
|
}));
|
7367
7698
|
};
|
7368
7699
|
var SortCell = (_a) => {
|
7369
7700
|
var _b = _a, { children, direction = "none", onClick, sticky } = _b, rest = __objRest(_b, ["children", "direction", "onClick", "sticky"]);
|
7370
|
-
return /* @__PURE__ */
|
7701
|
+
return /* @__PURE__ */ React25.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), {
|
7371
7702
|
"aria-sort": direction,
|
7372
7703
|
role: "columnheader",
|
7373
7704
|
sticky
|
7374
|
-
}), /* @__PURE__ */
|
7705
|
+
}), /* @__PURE__ */ React25.createElement("span", {
|
7375
7706
|
className: getSortCellButtonClassNames(rest.align),
|
7376
7707
|
role: "button",
|
7377
7708
|
tabIndex: -1,
|
7378
7709
|
onClick
|
7379
|
-
}, children, /* @__PURE__ */
|
7710
|
+
}, children, /* @__PURE__ */ React25.createElement("div", {
|
7380
7711
|
"data-sort-icons": true,
|
7381
7712
|
className: tw("flex flex-col", {
|
7382
7713
|
"invisible group-hover:visible": direction === "none"
|
7383
7714
|
})
|
7384
|
-
}, /* @__PURE__ */
|
7715
|
+
}, /* @__PURE__ */ React25.createElement(InlineIcon, {
|
7385
7716
|
icon: import_chevronUp3.default,
|
7386
7717
|
className: getSortCellIconClassNames(direction === "ascending")
|
7387
|
-
}), /* @__PURE__ */
|
7718
|
+
}), /* @__PURE__ */ React25.createElement(InlineIcon, {
|
7388
7719
|
icon: import_chevronDown4.default,
|
7389
7720
|
className: getSortCellIconClassNames(direction === "descending")
|
7390
7721
|
}))));
|
7391
7722
|
};
|
7392
|
-
var EmptyGroup = ({ icon, children }) => /* @__PURE__ */
|
7723
|
+
var EmptyGroup = ({ icon, children }) => /* @__PURE__ */ React25.createElement("div", {
|
7393
7724
|
className: tw("flex gap-3 items-center")
|
7394
|
-
}, icon && /* @__PURE__ */
|
7725
|
+
}, icon && /* @__PURE__ */ React25.createElement(Icon, {
|
7395
7726
|
icon,
|
7396
7727
|
width: 22
|
7397
7728
|
}), children);
|
@@ -7409,11 +7740,11 @@ DataList.Row = Row;
|
|
7409
7740
|
DataList.Row.displayName = "DataList.Row";
|
7410
7741
|
var ToolbarContainer = (_a) => {
|
7411
7742
|
var _b = _a, { className, sticky = true } = _b, rest = __objRest(_b, ["className", "sticky"]);
|
7412
|
-
return /* @__PURE__ */
|
7743
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7413
7744
|
role: "row",
|
7414
7745
|
className: classNames(
|
7415
7746
|
tw("col-span-full flex items-stretch py-4 px-l2 border-b border-default", {
|
7416
|
-
"sticky top-[47px] bg-
|
7747
|
+
"sticky top-[47px] bg-body z-10": sticky
|
7417
7748
|
}),
|
7418
7749
|
className
|
7419
7750
|
)
|
@@ -7422,7 +7753,7 @@ var ToolbarContainer = (_a) => {
|
|
7422
7753
|
ToolbarContainer.displayName = "DataList.Toolbar.Container";
|
7423
7754
|
var ToolbarGroup = (_a) => {
|
7424
7755
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7425
|
-
return /* @__PURE__ */
|
7756
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({
|
7426
7757
|
role: "cell"
|
7427
7758
|
}, rest), {
|
7428
7759
|
className: classNames(tw("flex items-center px-l2 border-r-[1px] border-muted last:border-r-0"), className)
|
@@ -7431,7 +7762,7 @@ var ToolbarGroup = (_a) => {
|
|
7431
7762
|
ToolbarGroup.displayName = "DataList.Toolbar.Group";
|
7432
7763
|
var ToolbarSelectionCount = (_a) => {
|
7433
7764
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7434
|
-
return /* @__PURE__ */
|
7765
|
+
return /* @__PURE__ */ React25.createElement(Typography, __spreadValues({
|
7435
7766
|
variant: "small",
|
7436
7767
|
color: "muted",
|
7437
7768
|
className: classNames(tw("whitespace-nowrap"), className)
|
@@ -7439,7 +7770,7 @@ var ToolbarSelectionCount = (_a) => {
|
|
7439
7770
|
};
|
7440
7771
|
var ToolbarActions = (_a) => {
|
7441
7772
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7442
|
-
return /* @__PURE__ */
|
7773
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7443
7774
|
className: classNames(tw("flex items-center gap-x-5"), className)
|
7444
7775
|
}));
|
7445
7776
|
};
|
@@ -7458,26 +7789,26 @@ var import_warningSign3 = __toESM(require_warningSign());
|
|
7458
7789
|
var DIALOG_ICONS_AND_COLORS = {
|
7459
7790
|
confirmation: {
|
7460
7791
|
icon: import_confirm2.default,
|
7461
|
-
color: "info-
|
7792
|
+
color: "info-default"
|
7462
7793
|
},
|
7463
7794
|
warning: {
|
7464
7795
|
icon: import_warningSign3.default,
|
7465
|
-
color: "
|
7796
|
+
color: "warning-default"
|
7466
7797
|
},
|
7467
7798
|
danger: {
|
7468
7799
|
icon: import_error3.default,
|
7469
|
-
color: "
|
7800
|
+
color: "danger-default"
|
7470
7801
|
}
|
7471
7802
|
};
|
7472
7803
|
|
7473
7804
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
7474
|
-
import
|
7805
|
+
import React28 from "react";
|
7475
7806
|
|
7476
7807
|
// src/molecules/Badge/Badge.tsx
|
7477
|
-
import
|
7808
|
+
import React27 from "react";
|
7478
7809
|
|
7479
7810
|
// src/molecules/Skeleton/Skeleton.tsx
|
7480
|
-
import
|
7811
|
+
import React26 from "react";
|
7481
7812
|
import isNumber2 from "lodash/isNumber";
|
7482
7813
|
import isUndefined7 from "lodash/isUndefined";
|
7483
7814
|
var Skeleton = (_a) => {
|
@@ -7502,14 +7833,14 @@ var Skeleton = (_a) => {
|
|
7502
7833
|
width: isNumber2(width) ? `${width}px` : width,
|
7503
7834
|
height: isNumber2(height) ? `${height}px` : height
|
7504
7835
|
};
|
7505
|
-
return /* @__PURE__ */
|
7836
|
+
return /* @__PURE__ */ React26.createElement("div", __spreadProps(__spreadValues({
|
7506
7837
|
"aria-label": "Loading..."
|
7507
7838
|
}, rest), {
|
7508
7839
|
style: __spreadValues(__spreadValues({}, styles), style),
|
7509
7840
|
role: "progressbar",
|
7510
7841
|
className: classNames(
|
7511
7842
|
"Aquarium-Skeleton",
|
7512
|
-
tw("bg-
|
7843
|
+
tw("bg-default", {
|
7513
7844
|
"h-auto before:content-['_'] whitespace-pre origin-[0%_45%] scale-[0.55]": isUndefined7(height),
|
7514
7845
|
"rounded-full": rounded,
|
7515
7846
|
"block": display === "block",
|
@@ -7524,16 +7855,17 @@ var Skeleton = (_a) => {
|
|
7524
7855
|
// src/molecules/Badge/Badge.tsx
|
7525
7856
|
var createBadge = (type, displayName) => {
|
7526
7857
|
const Component = (props) => {
|
7527
|
-
const _a = props, { kind = "filled", value, textClassname, dense = false } = _a, rest = __objRest(_a, ["kind", "value", "textClassname", "dense"]);
|
7858
|
+
const _a = props, { kind = "filled", value, textClassname, dense = false, disabled = false } = _a, rest = __objRest(_a, ["kind", "value", "textClassname", "dense", "disabled"]);
|
7528
7859
|
const valueStr = value.toString();
|
7529
|
-
return /* @__PURE__ */
|
7860
|
+
return /* @__PURE__ */ React27.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
7530
7861
|
className: classNames(
|
7531
7862
|
tw("inline-block text-center", {
|
7532
7863
|
"rounded-full": type === "default" || type === "chip",
|
7533
7864
|
"rounded": type === "tab",
|
7534
7865
|
"border border-current": kind === "outlined",
|
7535
7866
|
"bg-current": kind === "filled" && type !== "chip",
|
7536
|
-
"bg-white": type === "chip",
|
7867
|
+
"bg-white": type === "chip" && !disabled,
|
7868
|
+
"bg-muted": type === "chip" && disabled,
|
7537
7869
|
"typography-caption-small leading-none py-1 px-2": !dense,
|
7538
7870
|
"text-[8px]": dense,
|
7539
7871
|
"px-1": dense && valueStr.length > 1,
|
@@ -7541,7 +7873,7 @@ var createBadge = (type, displayName) => {
|
|
7541
7873
|
}),
|
7542
7874
|
"Aquarium-Badge"
|
7543
7875
|
)
|
7544
|
-
}), /* @__PURE__ */
|
7876
|
+
}), /* @__PURE__ */ React27.createElement("span", {
|
7545
7877
|
className: classNames(
|
7546
7878
|
textClassname,
|
7547
7879
|
tw("inline-block", {
|
@@ -7552,7 +7884,7 @@ var createBadge = (type, displayName) => {
|
|
7552
7884
|
}, valueStr));
|
7553
7885
|
};
|
7554
7886
|
Component.displayName = displayName;
|
7555
|
-
Component.Skeleton = () => /* @__PURE__ */
|
7887
|
+
Component.Skeleton = () => /* @__PURE__ */ React27.createElement(Skeleton, {
|
7556
7888
|
height: 16,
|
7557
7889
|
width: 16,
|
7558
7890
|
display: "inline-block",
|
@@ -7563,16 +7895,16 @@ var createBadge = (type, displayName) => {
|
|
7563
7895
|
};
|
7564
7896
|
var NotificationBadge = (_a) => {
|
7565
7897
|
var _b = _a, { children, top = "-2px", right = "-2px" } = _b, props = __objRest(_b, ["children", "top", "right"]);
|
7566
|
-
return /* @__PURE__ */
|
7898
|
+
return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, props), {
|
7567
7899
|
className: classNames("Aquarium-Badge.Notification", tw("relative inline-flex"))
|
7568
|
-
}), children, /* @__PURE__ */
|
7900
|
+
}), children, /* @__PURE__ */ React27.createElement("span", {
|
7569
7901
|
style: { top, right },
|
7570
|
-
className: tw("absolute rounded-full w-[6px] h-[6px] bg-
|
7902
|
+
className: tw("absolute rounded-full w-[6px] h-[6px] bg-danger-intense")
|
7571
7903
|
}));
|
7572
7904
|
};
|
7573
7905
|
var DotBadge = (_a) => {
|
7574
7906
|
var _b = _a, { dense = false } = _b, props = __objRest(_b, ["dense"]);
|
7575
|
-
return /* @__PURE__ */
|
7907
|
+
return /* @__PURE__ */ React27.createElement("span", __spreadProps(__spreadValues({}, props), {
|
7576
7908
|
className: classNames(
|
7577
7909
|
"Aquarium-Badge.Dot",
|
7578
7910
|
tw("rounded-full bg-current", {
|
@@ -7592,90 +7924,91 @@ var ChipBadge = createBadge("chip", "ChipBadge");
|
|
7592
7924
|
|
7593
7925
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
7594
7926
|
var import_tick3 = __toESM(require_tick());
|
7595
|
-
var DropdownMenu =
|
7927
|
+
var DropdownMenu = React28.forwardRef(
|
7596
7928
|
(_a, ref) => {
|
7597
7929
|
var _b = _a, { minHeight, maxHeight = "100%", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["minHeight", "maxHeight", "minWidth", "maxWidth", "className", "children"]);
|
7598
|
-
return /* @__PURE__ */
|
7930
|
+
return /* @__PURE__ */ React28.createElement("div", __spreadValues({
|
7599
7931
|
ref,
|
7600
7932
|
style: { minHeight, maxHeight, minWidth, maxWidth },
|
7601
|
-
className: classNames(
|
7933
|
+
className: classNames(
|
7934
|
+
className,
|
7935
|
+
"bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
|
7936
|
+
)
|
7602
7937
|
}, props), children);
|
7603
7938
|
}
|
7604
7939
|
);
|
7605
|
-
var ContentContainer = ({ children }) => /* @__PURE__ */
|
7940
|
+
var ContentContainer = ({ children }) => /* @__PURE__ */ React28.createElement("div", {
|
7606
7941
|
className: tw("p-3 overflow-y-auto overflow-x-hidden")
|
7607
7942
|
}, children);
|
7608
7943
|
DropdownMenu.ContentContainer = ContentContainer;
|
7609
|
-
var List =
|
7944
|
+
var List = React28.forwardRef(
|
7610
7945
|
(_a, ref) => {
|
7611
7946
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
7612
|
-
return /* @__PURE__ */
|
7947
|
+
return /* @__PURE__ */ React28.createElement("ul", __spreadValues({
|
7613
7948
|
ref,
|
7614
7949
|
className: classNames(className, "outline-none ring-0")
|
7615
7950
|
}, props), children);
|
7616
7951
|
}
|
7617
7952
|
);
|
7618
7953
|
DropdownMenu.List = List;
|
7619
|
-
var Group =
|
7954
|
+
var Group = React28.forwardRef(
|
7620
7955
|
(_a, ref) => {
|
7621
7956
|
var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
|
7622
|
-
return /* @__PURE__ */
|
7957
|
+
return /* @__PURE__ */ React28.createElement("li", __spreadValues({
|
7623
7958
|
ref
|
7624
|
-
}, props), title && /* @__PURE__ */
|
7625
|
-
className: classNames(className, "p-3 text-
|
7626
|
-
"text-grey-20": props.disabled
|
7627
|
-
})
|
7959
|
+
}, props), title && /* @__PURE__ */ React28.createElement("div", __spreadValues({
|
7960
|
+
className: classNames(className, "p-3 text-inactive uppercase cursor-default typography-caption")
|
7628
7961
|
}, titleProps), title), children);
|
7629
7962
|
}
|
7630
7963
|
);
|
7631
7964
|
DropdownMenu.Group = Group;
|
7632
|
-
var Item2 =
|
7965
|
+
var Item2 = React28.forwardRef(
|
7633
7966
|
(_a, ref) => {
|
7634
7967
|
var _b = _a, { kind, highlighted, selected, className, icon, showNotification = false, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "showNotification", "children"]);
|
7635
|
-
return /* @__PURE__ */
|
7968
|
+
return /* @__PURE__ */ React28.createElement("li", __spreadValues({
|
7636
7969
|
ref,
|
7637
7970
|
className: classNames(className, "flex items-center gap-x-3 p-3 outline-none", {
|
7638
|
-
"cursor-pointer hover:bg-
|
7639
|
-
"bg-
|
7640
|
-
"text-primary-
|
7641
|
-
"text-
|
7971
|
+
"cursor-pointer hover:bg-muted": !props.disabled,
|
7972
|
+
"bg-muted": highlighted,
|
7973
|
+
"text-primary-intense": kind === "action",
|
7974
|
+
"text-inactive cursor-not-allowed": props.disabled
|
7642
7975
|
})
|
7643
|
-
}, props), icon && showNotification && /* @__PURE__ */
|
7976
|
+
}, props), icon && showNotification && /* @__PURE__ */ React28.createElement(Badge.Notification, null, /* @__PURE__ */ React28.createElement(InlineIcon, {
|
7644
7977
|
icon
|
7645
|
-
})), icon && !showNotification && /* @__PURE__ */
|
7978
|
+
})), icon && !showNotification && /* @__PURE__ */ React28.createElement(InlineIcon, {
|
7646
7979
|
icon
|
7647
|
-
}), /* @__PURE__ */
|
7980
|
+
}), /* @__PURE__ */ React28.createElement("span", {
|
7648
7981
|
className: tw("grow")
|
7649
|
-
}, children), selected && /* @__PURE__ */
|
7982
|
+
}, children), selected && /* @__PURE__ */ React28.createElement(InlineIcon, {
|
7650
7983
|
icon: import_tick3.default
|
7651
7984
|
}));
|
7652
7985
|
}
|
7653
7986
|
);
|
7654
7987
|
DropdownMenu.Item = Item2;
|
7655
|
-
var Description = ({ disabled, children }) => /* @__PURE__ */
|
7988
|
+
var Description = ({ disabled, children }) => /* @__PURE__ */ React28.createElement(Typography2.Caption, {
|
7656
7989
|
color: disabled ? "grey-20" : "grey-40"
|
7657
7990
|
}, children);
|
7658
7991
|
DropdownMenu.Description = Description;
|
7659
7992
|
var Separator = (_a) => {
|
7660
7993
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
7661
|
-
return /* @__PURE__ */
|
7662
|
-
className: classNames(className, tw("m-3 block bg-
|
7994
|
+
return /* @__PURE__ */ React28.createElement("li", __spreadProps(__spreadValues({}, props), {
|
7995
|
+
className: classNames(className, tw("m-3 block bg-default h-[1px]"))
|
7663
7996
|
}));
|
7664
7997
|
};
|
7665
7998
|
DropdownMenu.Separator = Separator;
|
7666
7999
|
var EmptyStateContainer = (_a) => {
|
7667
8000
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
7668
|
-
return /* @__PURE__ */
|
8001
|
+
return /* @__PURE__ */ React28.createElement("div", __spreadValues({
|
7669
8002
|
className: classNames(tw("border border-dashed border-default p-3"), className)
|
7670
8003
|
}, props), children);
|
7671
8004
|
};
|
7672
8005
|
DropdownMenu.EmptyStateContainer = EmptyStateContainer;
|
7673
8006
|
|
7674
8007
|
// src/atoms/InputGroup/InputGroup.tsx
|
7675
|
-
import
|
8008
|
+
import React30 from "react";
|
7676
8009
|
|
7677
8010
|
// src/molecules/Grid/Grid.tsx
|
7678
|
-
import
|
8011
|
+
import React29 from "react";
|
7679
8012
|
import isEmpty from "lodash/isEmpty";
|
7680
8013
|
import mapValues from "lodash/mapValues";
|
7681
8014
|
import pick from "lodash/pick";
|
@@ -7726,14 +8059,14 @@ var GridItem = Tailwindify(
|
|
7726
8059
|
gridRowEnd: rowEnd
|
7727
8060
|
});
|
7728
8061
|
const HtmlElement = htmlTag;
|
7729
|
-
return /* @__PURE__ */
|
8062
|
+
return /* @__PURE__ */ React29.createElement(HtmlElement, {
|
7730
8063
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
7731
8064
|
className
|
7732
8065
|
}, children);
|
7733
8066
|
}
|
7734
8067
|
);
|
7735
8068
|
var Grid = (props) => {
|
7736
|
-
return /* @__PURE__ */
|
8069
|
+
return /* @__PURE__ */ React29.createElement(GridComponent, __spreadValues({}, props));
|
7737
8070
|
};
|
7738
8071
|
var GridComponent = Tailwindify(
|
7739
8072
|
({
|
@@ -7787,7 +8120,7 @@ var GridComponent = Tailwindify(
|
|
7787
8120
|
gridRowEnd: rowEnd
|
7788
8121
|
});
|
7789
8122
|
const HtmlElement = htmlTag;
|
7790
|
-
return /* @__PURE__ */
|
8123
|
+
return /* @__PURE__ */ React29.createElement(HtmlElement, {
|
7791
8124
|
style: __spreadValues(__spreadValues({}, hookStyle), style),
|
7792
8125
|
className
|
7793
8126
|
}, children);
|
@@ -7806,7 +8139,7 @@ var gridColumnStyles = {
|
|
7806
8139
|
};
|
7807
8140
|
var InputGroup = (_a) => {
|
7808
8141
|
var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
|
7809
|
-
return /* @__PURE__ */
|
8142
|
+
return /* @__PURE__ */ React30.createElement(Grid, __spreadProps(__spreadValues({}, rest), {
|
7810
8143
|
display: "inline-grid",
|
7811
8144
|
colGap: "l4",
|
7812
8145
|
rowGap: "3",
|
@@ -7816,16 +8149,16 @@ var InputGroup = (_a) => {
|
|
7816
8149
|
};
|
7817
8150
|
|
7818
8151
|
// src/atoms/Link/Link.tsx
|
7819
|
-
import
|
8152
|
+
import React31 from "react";
|
7820
8153
|
var Link = (_a) => {
|
7821
8154
|
var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
|
7822
|
-
return /* @__PURE__ */
|
8155
|
+
return /* @__PURE__ */ React31.createElement("a", __spreadValues({
|
7823
8156
|
className: classNames(className, linkStyle)
|
7824
8157
|
}, props), children);
|
7825
8158
|
};
|
7826
8159
|
|
7827
8160
|
// src/atoms/Modal/Modal.tsx
|
7828
|
-
import
|
8161
|
+
import React32 from "react";
|
7829
8162
|
var Modal = (_a) => {
|
7830
8163
|
var _b = _a, {
|
7831
8164
|
children,
|
@@ -7838,7 +8171,7 @@ var Modal = (_a) => {
|
|
7838
8171
|
"className",
|
7839
8172
|
"open"
|
7840
8173
|
]);
|
7841
|
-
return open ? /* @__PURE__ */
|
8174
|
+
return open ? /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7842
8175
|
className: classNames(
|
7843
8176
|
tw("inset-0 overflow-y-auto z-modal fixed"),
|
7844
8177
|
{
|
@@ -7850,14 +8183,14 @@ var Modal = (_a) => {
|
|
7850
8183
|
};
|
7851
8184
|
Modal.BackDrop = (_a) => {
|
7852
8185
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7853
|
-
return /* @__PURE__ */
|
7854
|
-
className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-
|
8186
|
+
return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8187
|
+
className: classNames(tw("-z-10 fixed min-w-full min-h-full bg-primary-intense opacity-60"), className)
|
7855
8188
|
}));
|
7856
8189
|
};
|
7857
|
-
Modal.Dialog =
|
8190
|
+
Modal.Dialog = React32.forwardRef(
|
7858
8191
|
(_a, ref) => {
|
7859
8192
|
var _b = _a, { kind = "dialog", children, className, size = "sm" } = _b, rest = __objRest(_b, ["kind", "children", "className", "size"]);
|
7860
|
-
const commonClasses = tw("bg-
|
8193
|
+
const commonClasses = tw("bg-popover-content max-h-full flex flex-col");
|
7861
8194
|
const dialogClasses = classNames("relative w-full rounded mx-7", {
|
7862
8195
|
"max-w-[600px]": size === "sm",
|
7863
8196
|
"max-w-[940px]": size === "md",
|
@@ -7868,7 +8201,7 @@ Modal.Dialog = React31.forwardRef(
|
|
7868
8201
|
"w-[560px]": size === "md",
|
7869
8202
|
"w-[1080px]": size === "full"
|
7870
8203
|
});
|
7871
|
-
return /* @__PURE__ */
|
8204
|
+
return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({
|
7872
8205
|
ref,
|
7873
8206
|
"aria-modal": "true"
|
7874
8207
|
}, rest), {
|
@@ -7878,31 +8211,31 @@ Modal.Dialog = React31.forwardRef(
|
|
7878
8211
|
);
|
7879
8212
|
Modal.Header = (_a) => {
|
7880
8213
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7881
|
-
return /* @__PURE__ */
|
8214
|
+
return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7882
8215
|
className: classNames(tw("pl-7 pr-[64px] py-6 gap-3 flex items-center"), className)
|
7883
8216
|
}), children);
|
7884
8217
|
};
|
7885
8218
|
Modal.HeaderImage = (_a) => {
|
7886
8219
|
var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
|
7887
8220
|
const common = tw("h-[120px] min-h-[120px] w-full ");
|
7888
|
-
return backgroundImage ? /* @__PURE__ */
|
8221
|
+
return backgroundImage ? /* @__PURE__ */ React32.createElement("img", __spreadProps(__spreadValues({
|
7889
8222
|
"aria-hidden": true,
|
7890
8223
|
src: backgroundImage != null ? backgroundImage : void 0
|
7891
8224
|
}, rest), {
|
7892
8225
|
className: classNames(common, tw("object-cover"), className)
|
7893
|
-
})) : /* @__PURE__ */
|
7894
|
-
className: classNames(common, tw("bg-
|
8226
|
+
})) : /* @__PURE__ */ React32.createElement("div", {
|
8227
|
+
className: classNames(common, tw("bg-default"), className)
|
7895
8228
|
});
|
7896
8229
|
};
|
7897
8230
|
Modal.CloseButtonContainer = (_a) => {
|
7898
8231
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7899
|
-
return /* @__PURE__ */
|
8232
|
+
return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7900
8233
|
className: classNames(tw("absolute top-[24px] right-[28px]"), className)
|
7901
8234
|
}));
|
7902
8235
|
};
|
7903
8236
|
Modal.Title = (_a) => {
|
7904
8237
|
var _b = _a, { kind = "dialog", children, className } = _b, rest = __objRest(_b, ["kind", "children", "className"]);
|
7905
|
-
return /* @__PURE__ */
|
8238
|
+
return /* @__PURE__ */ React32.createElement(Typography, __spreadValues({
|
7906
8239
|
htmlTag: "h2",
|
7907
8240
|
variant: "subheading",
|
7908
8241
|
color: "grey-90",
|
@@ -7916,77 +8249,77 @@ Modal.Title = (_a) => {
|
|
7916
8249
|
};
|
7917
8250
|
Modal.Subtitle = (_a) => {
|
7918
8251
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7919
|
-
return /* @__PURE__ */
|
8252
|
+
return /* @__PURE__ */ React32.createElement(Typography, __spreadValues({
|
7920
8253
|
variant: "small",
|
7921
8254
|
color: "grey-60"
|
7922
8255
|
}, rest), children);
|
7923
8256
|
};
|
7924
8257
|
Modal.TitleContainer = (_a) => {
|
7925
8258
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7926
|
-
return /* @__PURE__ */
|
8259
|
+
return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7927
8260
|
className: classNames(tw("flex flex-col grow"), className)
|
7928
8261
|
}), children);
|
7929
8262
|
};
|
7930
8263
|
Modal.Body = (_a) => {
|
7931
8264
|
var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
|
7932
|
-
return /* @__PURE__ */
|
8265
|
+
return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7933
8266
|
className: classNames(tw("px-7 grow overflow-y-auto", { "pb-6": noFooter }), className),
|
7934
8267
|
style: __spreadValues({ maxHeight }, style)
|
7935
8268
|
}), children);
|
7936
8269
|
};
|
7937
8270
|
Modal.Footer = (_a) => {
|
7938
8271
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7939
|
-
return /* @__PURE__ */
|
8272
|
+
return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7940
8273
|
className: classNames(tw("px-7 py-6"), className)
|
7941
8274
|
}), children);
|
7942
8275
|
};
|
7943
8276
|
Modal.Actions = (_a) => {
|
7944
8277
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
7945
|
-
return /* @__PURE__ */
|
8278
|
+
return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
7946
8279
|
className: classNames(tw("flex gap-4 justify-end"), className)
|
7947
8280
|
}), children);
|
7948
8281
|
};
|
7949
8282
|
|
7950
8283
|
// src/atoms/Navigation/Navigation.tsx
|
7951
|
-
import
|
8284
|
+
import React33 from "react";
|
7952
8285
|
var Navigation = (_a) => {
|
7953
8286
|
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
7954
|
-
return /* @__PURE__ */
|
7955
|
-
className: classNames(tw("bg-
|
7956
|
-
}, /* @__PURE__ */
|
8287
|
+
return /* @__PURE__ */ React33.createElement("nav", {
|
8288
|
+
className: classNames(tw("bg-muted h-full"))
|
8289
|
+
}, /* @__PURE__ */ React33.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
7957
8290
|
className: classNames(tw("flex flex-col h-full"), className),
|
7958
8291
|
role: "menubar"
|
7959
8292
|
}), children));
|
7960
8293
|
};
|
7961
8294
|
var Header = (_a) => {
|
7962
8295
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7963
|
-
return /* @__PURE__ */
|
8296
|
+
return /* @__PURE__ */ React33.createElement("li", __spreadProps(__spreadValues({}, rest), {
|
7964
8297
|
role: "presentation",
|
7965
8298
|
className: classNames(tw("px-6 py-5"), className)
|
7966
8299
|
}));
|
7967
8300
|
};
|
7968
8301
|
var Footer = (_a) => {
|
7969
8302
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7970
|
-
return /* @__PURE__ */
|
8303
|
+
return /* @__PURE__ */ React33.createElement("li", __spreadProps(__spreadValues({}, rest), {
|
7971
8304
|
role: "presentation",
|
7972
8305
|
className: classNames(tw("px-6 py-5 mt-auto"), className)
|
7973
8306
|
}));
|
7974
8307
|
};
|
7975
8308
|
var Section = (_a) => {
|
7976
8309
|
var _b = _a, { title, className } = _b, rest = __objRest(_b, ["title", "className"]);
|
7977
|
-
return /* @__PURE__ */
|
8310
|
+
return /* @__PURE__ */ React33.createElement("li", {
|
7978
8311
|
role: "presentation",
|
7979
8312
|
className: tw("py-5")
|
7980
|
-
}, title && /* @__PURE__ */
|
7981
|
-
className: classNames(className, "py-2 px-6 text-
|
7982
|
-
}, title), /* @__PURE__ */
|
8313
|
+
}, title && /* @__PURE__ */ React33.createElement("div", {
|
8314
|
+
className: classNames(className, "py-2 px-6 text-inactive uppercase cursor-default typography-caption")
|
8315
|
+
}, title), /* @__PURE__ */ React33.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
7983
8316
|
role: "group",
|
7984
8317
|
className: classNames(tw("flex flex-col"), className)
|
7985
8318
|
})));
|
7986
8319
|
};
|
7987
8320
|
var Divider = (_a) => {
|
7988
8321
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
7989
|
-
return /* @__PURE__ */
|
8322
|
+
return /* @__PURE__ */ React33.createElement("li", __spreadProps(__spreadValues({
|
7990
8323
|
role: "separator"
|
7991
8324
|
}, rest), {
|
7992
8325
|
className: classNames(tw("border-t-2 border-muted"), className)
|
@@ -7994,14 +8327,14 @@ var Divider = (_a) => {
|
|
7994
8327
|
};
|
7995
8328
|
var Item3 = (_a) => {
|
7996
8329
|
var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
|
7997
|
-
return /* @__PURE__ */
|
8330
|
+
return /* @__PURE__ */ React33.createElement("li", {
|
7998
8331
|
role: "presentation"
|
7999
|
-
}, /* @__PURE__ */
|
8332
|
+
}, /* @__PURE__ */ React33.createElement("a", __spreadProps(__spreadValues({}, rest), {
|
8000
8333
|
role: "menuitem",
|
8001
8334
|
className: classNames(
|
8002
|
-
tw("py-3 px-6 hover:bg-
|
8335
|
+
tw("py-3 px-6 hover:bg-default cursor-pointer flex gap-4 items-center typography-small focusable", {
|
8003
8336
|
"text-grey-60": !active,
|
8004
|
-
"text-primary-
|
8337
|
+
"text-primary-intense": !!active
|
8005
8338
|
}),
|
8006
8339
|
className
|
8007
8340
|
)
|
@@ -8013,20 +8346,69 @@ Navigation.Section = Section;
|
|
8013
8346
|
Navigation.Item = Item3;
|
8014
8347
|
Navigation.Divider = Divider;
|
8015
8348
|
|
8349
|
+
// src/atoms/PageHeader/PageHeader.tsx
|
8350
|
+
import React34 from "react";
|
8351
|
+
var PageHeader = (_a) => {
|
8352
|
+
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8353
|
+
return /* @__PURE__ */ React34.createElement("div", __spreadValues({
|
8354
|
+
className: classNames(tw("flex flex-row gap-4 pb-6"), className)
|
8355
|
+
}, rest), children);
|
8356
|
+
};
|
8357
|
+
PageHeader.Container = (_a) => {
|
8358
|
+
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8359
|
+
return /* @__PURE__ */ React34.createElement("div", __spreadValues({
|
8360
|
+
className: classNames(tw("flex flex-col grow gap-0"), className)
|
8361
|
+
}, rest), children);
|
8362
|
+
};
|
8363
|
+
PageHeader.TitleContainer = (_a) => {
|
8364
|
+
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8365
|
+
return /* @__PURE__ */ React34.createElement("div", __spreadValues({
|
8366
|
+
className: classNames(tw("flex flex-col justify-center gap-2"), className)
|
8367
|
+
}, rest), children);
|
8368
|
+
};
|
8369
|
+
PageHeader.Title = (_a) => {
|
8370
|
+
var _b = _a, { isSubHeader = false, children } = _b, rest = __objRest(_b, ["isSubHeader", "children"]);
|
8371
|
+
return /* @__PURE__ */ React34.createElement(Typography2, __spreadProps(__spreadValues({}, rest), {
|
8372
|
+
color: "grey-100",
|
8373
|
+
variant: isSubHeader ? "subheading" : "heading",
|
8374
|
+
htmlTag: isSubHeader ? "h2" : "h1"
|
8375
|
+
}), children);
|
8376
|
+
};
|
8377
|
+
PageHeader.Subtitle = (_a) => {
|
8378
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8379
|
+
return /* @__PURE__ */ React34.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
|
8380
|
+
color: "grey-70"
|
8381
|
+
}), children);
|
8382
|
+
};
|
8383
|
+
PageHeader.Chips = (_a) => {
|
8384
|
+
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8385
|
+
return /* @__PURE__ */ React34.createElement("div", __spreadValues({
|
8386
|
+
className: classNames(tw("flex gap-3"), className)
|
8387
|
+
}, rest), children);
|
8388
|
+
};
|
8389
|
+
PageHeader.Actions = (_a) => {
|
8390
|
+
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8391
|
+
return /* @__PURE__ */ React34.createElement("div", __spreadValues({
|
8392
|
+
className: classNames(tw("flex flex-row gap-4 self-start"), className)
|
8393
|
+
}, rest), children);
|
8394
|
+
};
|
8395
|
+
|
8016
8396
|
// src/atoms/Popover/Popover.tsx
|
8017
|
-
import
|
8018
|
-
var PopoverPanel =
|
8397
|
+
import React35 from "react";
|
8398
|
+
var PopoverPanel = React35.forwardRef((_a, ref) => {
|
8019
8399
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
8020
|
-
return /* @__PURE__ */
|
8400
|
+
return /* @__PURE__ */ React35.createElement("div", __spreadValues({
|
8021
8401
|
ref,
|
8022
8402
|
className: classNames(
|
8023
8403
|
className,
|
8024
|
-
tw(
|
8404
|
+
tw(
|
8405
|
+
"rounded-sm shadow-16dp bg-popover-content mt-1 overflow-y-auto flex flex-col border border-default outline-none"
|
8406
|
+
)
|
8025
8407
|
)
|
8026
8408
|
}, props), children);
|
8027
8409
|
});
|
8028
8410
|
PopoverPanel.displayName = "Popover.Panel";
|
8029
|
-
var PopoverUnderlay =
|
8411
|
+
var PopoverUnderlay = React35.forwardRef((props, ref) => /* @__PURE__ */ React35.createElement("div", __spreadProps(__spreadValues({
|
8030
8412
|
ref
|
8031
8413
|
}, props), {
|
8032
8414
|
className: tw("fixed inset-0")
|
@@ -8038,23 +8420,23 @@ var Popover = {
|
|
8038
8420
|
};
|
8039
8421
|
|
8040
8422
|
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
8041
|
-
import
|
8423
|
+
import React36 from "react";
|
8042
8424
|
var Header2 = (_a) => {
|
8043
8425
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8044
|
-
return /* @__PURE__ */
|
8426
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8045
8427
|
className: classNames(tw("p-5 gap-3 flex items-center"), className)
|
8046
8428
|
}), children);
|
8047
8429
|
};
|
8048
8430
|
var Title2 = (_a) => {
|
8049
8431
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8050
|
-
return /* @__PURE__ */
|
8432
|
+
return /* @__PURE__ */ React36.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
8051
8433
|
htmlTag: "h1",
|
8052
8434
|
variant: "small-strong"
|
8053
8435
|
}), children);
|
8054
8436
|
};
|
8055
8437
|
var Body = (_a) => {
|
8056
8438
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8057
|
-
return /* @__PURE__ */
|
8439
|
+
return /* @__PURE__ */ React36.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
8058
8440
|
htmlTag: "div",
|
8059
8441
|
variant: "caption",
|
8060
8442
|
className: classNames(tw("px-5 overflow-y-auto"), className)
|
@@ -8062,13 +8444,13 @@ var Body = (_a) => {
|
|
8062
8444
|
};
|
8063
8445
|
var Footer2 = (_a) => {
|
8064
8446
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8065
|
-
return /* @__PURE__ */
|
8447
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8066
8448
|
className: classNames(tw("p-5"), className)
|
8067
8449
|
}), children);
|
8068
8450
|
};
|
8069
8451
|
var Actions2 = (_a) => {
|
8070
8452
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8071
|
-
return /* @__PURE__ */
|
8453
|
+
return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8072
8454
|
className: classNames(tw("flex gap-4"), className)
|
8073
8455
|
}), children);
|
8074
8456
|
};
|
@@ -8080,8 +8462,115 @@ var PopoverDialog = {
|
|
8080
8462
|
Actions: Actions2
|
8081
8463
|
};
|
8082
8464
|
|
8465
|
+
// src/atoms/ProgressBar/ProgressBar.tsx
|
8466
|
+
import React37 from "react";
|
8467
|
+
import clamp from "lodash/clamp";
|
8468
|
+
var ProgressBar = (_a) => {
|
8469
|
+
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8470
|
+
return /* @__PURE__ */ React37.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8471
|
+
className: classNames(tw("relative flex items-center w-full bg-muted h-2 rounded-full overflow-hidden"), className)
|
8472
|
+
}), children);
|
8473
|
+
};
|
8474
|
+
var STATUS_COLORS = {
|
8475
|
+
info: tw("bg-info-default"),
|
8476
|
+
warning: tw("bg-warning-default"),
|
8477
|
+
success: tw("bg-success-default"),
|
8478
|
+
error: tw("bg-danger-intense")
|
8479
|
+
};
|
8480
|
+
ProgressBar.Indicator = (_a) => {
|
8481
|
+
var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
|
8482
|
+
const completedPercentage = clamp((value - min) / (max - min) * 100, 0, 100);
|
8483
|
+
return /* @__PURE__ */ React37.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8484
|
+
className: classNames(
|
8485
|
+
tw("h-2 rounded-full transition-all ease-in-out delay-150"),
|
8486
|
+
STATUS_COLORS[status],
|
8487
|
+
className
|
8488
|
+
),
|
8489
|
+
style: { width: `${completedPercentage}%` },
|
8490
|
+
role: "progressbar",
|
8491
|
+
"aria-label": ariaLabel || value.toString(),
|
8492
|
+
"aria-valuenow": value,
|
8493
|
+
"aria-valuemin": min,
|
8494
|
+
"aria-valuemax": max
|
8495
|
+
}));
|
8496
|
+
};
|
8497
|
+
ProgressBar.Labels = (_a) => {
|
8498
|
+
var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
|
8499
|
+
return /* @__PURE__ */ React37.createElement("div", {
|
8500
|
+
className: classNames(tw("flex flex-row"), className)
|
8501
|
+
}, /* @__PURE__ */ React37.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
8502
|
+
className: tw("grow text-default typography-caption")
|
8503
|
+
}), startLabel), /* @__PURE__ */ React37.createElement("span", __spreadProps(__spreadValues({}, rest), {
|
8504
|
+
className: tw("grow text-default typography-caption text-right")
|
8505
|
+
}), endLabel));
|
8506
|
+
};
|
8507
|
+
|
8508
|
+
// src/atoms/Section/Section.tsx
|
8509
|
+
import React38 from "react";
|
8510
|
+
var import_caretUp2 = __toESM(require_caretUp());
|
8511
|
+
var Section2 = (_a) => {
|
8512
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8513
|
+
return /* @__PURE__ */ React38.createElement(Box, __spreadValues({
|
8514
|
+
component: "section",
|
8515
|
+
borderColor: "grey-5",
|
8516
|
+
borderWidth: "1px"
|
8517
|
+
}, rest), children);
|
8518
|
+
};
|
8519
|
+
Section2.Header = (_a) => {
|
8520
|
+
var _b = _a, { children, className, expanded } = _b, rest = __objRest(_b, ["children", "className", "expanded"]);
|
8521
|
+
return /* @__PURE__ */ React38.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8522
|
+
className: classNames(
|
8523
|
+
tw("px-6 flex gap-5 justify-between items-center h-[72px]", { "bg-muted": expanded }),
|
8524
|
+
className
|
8525
|
+
)
|
8526
|
+
}), children);
|
8527
|
+
};
|
8528
|
+
Section2.TitleContainer = (_a) => {
|
8529
|
+
var _b = _a, { children, className, collapsible } = _b, rest = __objRest(_b, ["children", "className", "collapsible"]);
|
8530
|
+
return /* @__PURE__ */ React38.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8531
|
+
className: classNames(
|
8532
|
+
tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", { "cursor-pointer": collapsible }),
|
8533
|
+
className
|
8534
|
+
)
|
8535
|
+
}), children);
|
8536
|
+
};
|
8537
|
+
Section2.Toggle = (props) => /* @__PURE__ */ React38.createElement(Icon, __spreadProps(__spreadValues({}, props), {
|
8538
|
+
icon: import_caretUp2.default,
|
8539
|
+
height: 22,
|
8540
|
+
width: 22
|
8541
|
+
}));
|
8542
|
+
Section2.Title = (_a) => {
|
8543
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8544
|
+
return /* @__PURE__ */ React38.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), {
|
8545
|
+
htmlTag: "h2",
|
8546
|
+
color: "black",
|
8547
|
+
className: "flex gap-3 items-center"
|
8548
|
+
}), children);
|
8549
|
+
};
|
8550
|
+
Section2.Subtitle = (_a) => {
|
8551
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
8552
|
+
return /* @__PURE__ */ React38.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
|
8553
|
+
color: "grey-70"
|
8554
|
+
}), children);
|
8555
|
+
};
|
8556
|
+
Section2.Actions = (_a) => {
|
8557
|
+
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8558
|
+
return /* @__PURE__ */ React38.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8559
|
+
className: classNames(tw("flex gap-4 justify-end"), className)
|
8560
|
+
}), children);
|
8561
|
+
};
|
8562
|
+
Section2.Body = (_a) => {
|
8563
|
+
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
8564
|
+
return /* @__PURE__ */ React38.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8565
|
+
className: classNames(tw("p-6"), className)
|
8566
|
+
}), /* @__PURE__ */ React38.createElement(Typography, {
|
8567
|
+
htmlTag: "div",
|
8568
|
+
color: "grey-70"
|
8569
|
+
}, children));
|
8570
|
+
};
|
8571
|
+
|
8083
8572
|
// src/atoms/Select/Select.tsx
|
8084
|
-
import
|
8573
|
+
import React39 from "react";
|
8085
8574
|
var import_chevronDown5 = __toESM(require_chevronDown());
|
8086
8575
|
var import_chevronUp4 = __toESM(require_chevronUp());
|
8087
8576
|
var import_search2 = __toESM(require_search());
|
@@ -8101,140 +8590,136 @@ function isOptionDisabledBuiltin(option) {
|
|
8101
8590
|
}
|
8102
8591
|
var getValues = (children) => {
|
8103
8592
|
var _a;
|
8104
|
-
const values =
|
8593
|
+
const values = React39.Children.map(children, (c) => {
|
8105
8594
|
var _a2;
|
8106
8595
|
return (_a2 = c == null ? void 0 : c.props) == null ? void 0 : _a2.value;
|
8107
8596
|
});
|
8108
8597
|
return (_a = values == null ? void 0 : values.filter((v) => v !== void 0 && v !== null)) != null ? _a : [];
|
8109
8598
|
};
|
8110
|
-
var InputContainer =
|
8599
|
+
var InputContainer = React39.forwardRef(
|
8111
8600
|
(_a, ref) => {
|
8112
8601
|
var _b = _a, { variant = "default", className } = _b, props = __objRest(_b, ["variant", "className"]);
|
8113
|
-
return /* @__PURE__ */
|
8602
|
+
return /* @__PURE__ */ React39.createElement("div", __spreadValues({
|
8114
8603
|
ref,
|
8115
8604
|
className: classNames(
|
8116
8605
|
className,
|
8117
|
-
"relative rounded-sm typography-default-strong w-full flex flex-row items-center focus-visible:outline-0 focus-visible:border-info-
|
8606
|
+
"relative rounded-sm typography-default-strong w-full flex flex-row items-center focus-visible:outline-0 focus-visible:border-info-default",
|
8118
8607
|
{
|
8119
8608
|
"border px-3 py-[6px]": variant !== "readOnly",
|
8120
8609
|
"cursor-default": variant === "readOnly",
|
8121
8610
|
"border-default": variant !== "error" && variant !== "readOnly",
|
8122
|
-
"border-
|
8611
|
+
"border-danger-default": variant === "error",
|
8123
8612
|
"hover:border-intense": variant !== "error" && variant !== "disabled" && variant !== "focused",
|
8124
|
-
"border-info-
|
8125
|
-
"bg-
|
8126
|
-
"cursor-not-allowed border-default bg-
|
8613
|
+
"border-info-default": variant === "focused",
|
8614
|
+
"bg-body": variant !== "disabled",
|
8615
|
+
"cursor-not-allowed border-default bg-default": variant === "disabled"
|
8127
8616
|
}
|
8128
8617
|
)
|
8129
8618
|
}, props));
|
8130
8619
|
}
|
8131
8620
|
);
|
8132
|
-
var Input =
|
8621
|
+
var Input = React39.forwardRef((_a, ref) => {
|
8133
8622
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
8134
|
-
return /* @__PURE__ */
|
8623
|
+
return /* @__PURE__ */ React39.createElement("input", __spreadValues({
|
8135
8624
|
ref,
|
8136
8625
|
type: "text",
|
8137
8626
|
className: classNames(
|
8138
8627
|
className,
|
8139
|
-
"grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small disabled:cursor-not-allowed disabled:bg-
|
8628
|
+
"grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small disabled:cursor-not-allowed disabled:bg-default placeholder:text-inactive",
|
8140
8629
|
{
|
8141
8630
|
"text-default": !props.disabled,
|
8142
|
-
"text-
|
8631
|
+
"text-inactive": props.disabled,
|
8143
8632
|
"cursor-default": props.readOnly
|
8144
8633
|
}
|
8145
8634
|
)
|
8146
8635
|
}, props));
|
8147
8636
|
});
|
8148
|
-
var Menu =
|
8637
|
+
var Menu = React39.forwardRef(
|
8149
8638
|
(_a, ref) => {
|
8150
8639
|
var _b = _a, { maxHeight = "450px", className, children } = _b, props = __objRest(_b, ["maxHeight", "className", "children"]);
|
8151
|
-
return /* @__PURE__ */
|
8640
|
+
return /* @__PURE__ */ React39.createElement("ul", __spreadValues({
|
8152
8641
|
ref,
|
8153
8642
|
style: { maxHeight },
|
8154
8643
|
className
|
8155
8644
|
}, props), children);
|
8156
8645
|
}
|
8157
8646
|
);
|
8158
|
-
var NoResults =
|
8647
|
+
var NoResults = React39.forwardRef(
|
8159
8648
|
(_a, ref) => {
|
8160
8649
|
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
8161
|
-
return /* @__PURE__ */
|
8650
|
+
return /* @__PURE__ */ React39.createElement("li", __spreadProps(__spreadValues({
|
8162
8651
|
ref
|
8163
8652
|
}, rest), {
|
8164
|
-
className: classNames(tw("p-3 text-
|
8653
|
+
className: classNames(tw("p-3 text-inactive italic typography-small"), className)
|
8165
8654
|
}), children);
|
8166
8655
|
}
|
8167
8656
|
);
|
8168
|
-
var EmptyStateContainer2 =
|
8657
|
+
var EmptyStateContainer2 = React39.forwardRef((_a, ref) => {
|
8169
8658
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
8170
|
-
return /* @__PURE__ */
|
8659
|
+
return /* @__PURE__ */ React39.createElement("li", __spreadValues({
|
8171
8660
|
ref,
|
8172
8661
|
className: tw("border border-dashed border-default m-4 p-6")
|
8173
8662
|
}, props), children);
|
8174
8663
|
});
|
8175
|
-
var Divider2 = (props) => /* @__PURE__ */
|
8664
|
+
var Divider2 = (props) => /* @__PURE__ */ React39.createElement("div", __spreadValues({
|
8176
8665
|
className: tw("border-b-[1px] border-muted mx-3 my-4")
|
8177
8666
|
}, props));
|
8178
|
-
var Group2 =
|
8667
|
+
var Group2 = React39.forwardRef((_a, ref) => {
|
8179
8668
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
8180
|
-
return /* @__PURE__ */
|
8669
|
+
return /* @__PURE__ */ React39.createElement("li", __spreadValues({
|
8181
8670
|
ref,
|
8182
8671
|
className: classNames(
|
8183
8672
|
className,
|
8184
|
-
"flex items-center gap-x-3 p-3 text-
|
8185
|
-
{
|
8186
|
-
"text-grey-20": props.disabled
|
8187
|
-
}
|
8673
|
+
"flex items-center gap-x-3 p-3 text-inactive uppercase cursor-default typography-caption mt-4 first:mt-0"
|
8188
8674
|
)
|
8189
8675
|
}, props), children);
|
8190
8676
|
});
|
8191
|
-
var Item4 =
|
8677
|
+
var Item4 = React39.forwardRef(
|
8192
8678
|
(_a, ref) => {
|
8193
8679
|
var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
|
8194
|
-
return /* @__PURE__ */
|
8680
|
+
return /* @__PURE__ */ React39.createElement("li", __spreadValues({
|
8195
8681
|
ref,
|
8196
8682
|
className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
|
8197
|
-
"cursor-pointer hover:bg-
|
8683
|
+
"cursor-pointer hover:bg-muted": !props["aria-disabled"],
|
8198
8684
|
"cursor-not-allowed opacity-40 grayscale": props["aria-disabled"],
|
8199
|
-
"bg-
|
8685
|
+
"bg-muted": highlighted
|
8200
8686
|
})
|
8201
|
-
}, props), /* @__PURE__ */
|
8687
|
+
}, props), /* @__PURE__ */ React39.createElement("span", {
|
8202
8688
|
className: tw("grow flex gap-x-3")
|
8203
|
-
}, children), selected && /* @__PURE__ */
|
8689
|
+
}, children), selected && /* @__PURE__ */ React39.createElement(InlineIcon, {
|
8204
8690
|
icon: import_tick4.default
|
8205
8691
|
}));
|
8206
8692
|
}
|
8207
8693
|
);
|
8208
|
-
var ActionItem =
|
8694
|
+
var ActionItem = React39.forwardRef(
|
8209
8695
|
(_a, ref) => {
|
8210
8696
|
var _b = _a, { className, dense, icon, onClick, children } = _b, props = __objRest(_b, ["className", "dense", "icon", "onClick", "children"]);
|
8211
|
-
return /* @__PURE__ */
|
8697
|
+
return /* @__PURE__ */ React39.createElement("li", __spreadValues({
|
8212
8698
|
ref,
|
8213
8699
|
role: "button",
|
8214
8700
|
onClick: () => !props.disabled && (onClick == null ? void 0 : onClick()),
|
8215
|
-
className: classNames(className, "flex items-center gap-x-3 typography-small
|
8701
|
+
className: classNames(className, "flex items-center gap-x-3 typography-small", {
|
8216
8702
|
"p-3": !dense,
|
8217
8703
|
"px-3 py-2": dense,
|
8218
|
-
"cursor-pointer": !props.disabled,
|
8219
|
-
"text-
|
8220
|
-
"hover:text-primary-70": !props.disabled
|
8704
|
+
"text-primary-intense cursor-pointer hover:text-primary-default": !props.disabled,
|
8705
|
+
"text-inactive cursor-not-allowed": props.disabled
|
8221
8706
|
})
|
8222
|
-
}, props), icon && /* @__PURE__ */
|
8707
|
+
}, props), icon && /* @__PURE__ */ React39.createElement(InlineIcon, {
|
8223
8708
|
icon
|
8224
8709
|
}), children);
|
8225
8710
|
}
|
8226
8711
|
);
|
8227
|
-
var Toggle =
|
8712
|
+
var Toggle = React39.forwardRef((_a, ref) => {
|
8228
8713
|
var _b = _a, { hasFocus, isOpen } = _b, props = __objRest(_b, ["hasFocus", "isOpen"]);
|
8229
8714
|
var _a2;
|
8230
|
-
return /* @__PURE__ */
|
8715
|
+
return /* @__PURE__ */ React39.createElement("button", __spreadProps(__spreadValues({
|
8231
8716
|
ref,
|
8232
8717
|
type: "button",
|
8233
8718
|
"aria-label": "Toggle"
|
8234
8719
|
}, props), {
|
8235
8720
|
className: tw("grow-0 leading-none", { "cursor-not-allowed": (_a2 = props.disabled) != null ? _a2 : false })
|
8236
|
-
}), /* @__PURE__ */
|
8237
|
-
color: props.disabled ? "
|
8721
|
+
}), /* @__PURE__ */ React39.createElement(InlineIcon, {
|
8722
|
+
color: props.disabled ? "inactive" : "default",
|
8238
8723
|
icon: hasFocus ? import_search2.default : isOpen ? import_chevronUp4.default : import_chevronDown5.default
|
8239
8724
|
}));
|
8240
8725
|
});
|
@@ -8252,11 +8737,11 @@ var Select = {
|
|
8252
8737
|
};
|
8253
8738
|
|
8254
8739
|
// src/atoms/Stepper/Stepper.tsx
|
8255
|
-
import
|
8740
|
+
import React40 from "react";
|
8256
8741
|
var import_tick5 = __toESM(require_tick());
|
8257
8742
|
var Stepper = (_a) => {
|
8258
8743
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
8259
|
-
return /* @__PURE__ */
|
8744
|
+
return /* @__PURE__ */ React40.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8260
8745
|
className: classNames(className)
|
8261
8746
|
}));
|
8262
8747
|
};
|
@@ -8270,7 +8755,7 @@ var ConnectorContainer = (_a) => {
|
|
8270
8755
|
"completed",
|
8271
8756
|
"dense"
|
8272
8757
|
]);
|
8273
|
-
return /* @__PURE__ */
|
8758
|
+
return /* @__PURE__ */ React40.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8274
8759
|
className: classNames(
|
8275
8760
|
tw("absolute w-full -left-1/2", {
|
8276
8761
|
"top-[3px] px-[14px]": Boolean(dense),
|
@@ -8282,11 +8767,11 @@ var ConnectorContainer = (_a) => {
|
|
8282
8767
|
};
|
8283
8768
|
var Connector = (_a) => {
|
8284
8769
|
var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
|
8285
|
-
return /* @__PURE__ */
|
8770
|
+
return /* @__PURE__ */ React40.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8286
8771
|
className: classNames(
|
8287
8772
|
tw("w-full", {
|
8288
|
-
"bg-
|
8289
|
-
"bg-success-
|
8773
|
+
"bg-intense": !completed,
|
8774
|
+
"bg-success-default": Boolean(completed),
|
8290
8775
|
"h-[2px]": !dense,
|
8291
8776
|
"h-[3px]": Boolean(dense)
|
8292
8777
|
}),
|
@@ -8296,34 +8781,35 @@ var Connector = (_a) => {
|
|
8296
8781
|
};
|
8297
8782
|
var Step = (_a) => {
|
8298
8783
|
var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
|
8299
|
-
return /* @__PURE__ */
|
8784
|
+
return /* @__PURE__ */ React40.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8300
8785
|
className: classNames(
|
8301
|
-
tw("flex flex-col items-center
|
8302
|
-
"text-
|
8786
|
+
tw("flex flex-col items-center relative text-center", {
|
8787
|
+
"text-intense": state !== "inactive",
|
8788
|
+
"text-inactive": state === "inactive"
|
8303
8789
|
}),
|
8304
8790
|
className
|
8305
8791
|
)
|
8306
8792
|
}));
|
8307
8793
|
};
|
8308
8794
|
var getClassNames = (state) => tw("h-[32px] w-[32px] border-2", {
|
8309
|
-
"border-grey-90 bg-
|
8310
|
-
"border-default bg-
|
8311
|
-
"text-white bg-success-
|
8795
|
+
"border-grey-90 bg-body": state === "active",
|
8796
|
+
"border-default bg-body": state === "inactive",
|
8797
|
+
"text-white bg-success-default border-success-intense": state === "completed"
|
8312
8798
|
});
|
8313
8799
|
var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
8314
|
-
"bg-
|
8315
|
-
"bg-
|
8316
|
-
"text-success-
|
8800
|
+
"bg-body-intense": state === "active",
|
8801
|
+
"bg-intense": state === "inactive",
|
8802
|
+
"text-success-default": state === "completed"
|
8317
8803
|
});
|
8318
8804
|
var Indicator = (_a) => {
|
8319
8805
|
var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
|
8320
|
-
return /* @__PURE__ */
|
8806
|
+
return /* @__PURE__ */ React40.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
8321
8807
|
className: classNames(
|
8322
8808
|
tw("rounded-full flex justify-center items-center mx-2 mb-3"),
|
8323
8809
|
dense ? getDenseClassNames(state) : getClassNames(state),
|
8324
8810
|
className
|
8325
8811
|
)
|
8326
|
-
}), state === "completed" ? /* @__PURE__ */
|
8812
|
+
}), state === "completed" ? /* @__PURE__ */ React40.createElement(InlineIcon, {
|
8327
8813
|
icon: import_tick5.default
|
8328
8814
|
}) : dense ? null : children);
|
8329
8815
|
};
|
@@ -8333,14 +8819,14 @@ ConnectorContainer.Connector = Connector;
|
|
8333
8819
|
Stepper.ConnectorContainer = ConnectorContainer;
|
8334
8820
|
|
8335
8821
|
// src/atoms/Switch/Switch.tsx
|
8336
|
-
import
|
8822
|
+
import React41 from "react";
|
8337
8823
|
var import_ban2 = __toESM(require_ban());
|
8338
|
-
var Switch =
|
8824
|
+
var Switch = React41.forwardRef(
|
8339
8825
|
(_a, ref) => {
|
8340
8826
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
8341
|
-
return /* @__PURE__ */
|
8827
|
+
return /* @__PURE__ */ React41.createElement("span", {
|
8342
8828
|
className: tw("relative inline-flex justify-center items-center self-center group")
|
8343
|
-
}, /* @__PURE__ */
|
8829
|
+
}, /* @__PURE__ */ React41.createElement("input", __spreadProps(__spreadValues({
|
8344
8830
|
id,
|
8345
8831
|
ref,
|
8346
8832
|
type: "checkbox",
|
@@ -8349,25 +8835,25 @@ var Switch = React37.forwardRef(
|
|
8349
8835
|
className: classNames(
|
8350
8836
|
tw(
|
8351
8837
|
"appearance-none peer/switch rounded-full inline-block w-[34px] h-[20px] transition duration-300",
|
8352
|
-
"outline-none focusable bg-
|
8838
|
+
"outline-none focusable bg-intense",
|
8353
8839
|
"cursor-pointer disabled:cursor-not-allowed",
|
8354
8840
|
{
|
8355
|
-
"hover:bg-
|
8356
|
-
"bg-
|
8841
|
+
"hover:bg-intense checked:bg-primary-default hover:checked:bg-primary-intense": !disabled,
|
8842
|
+
"bg-default checked:opacity-50 checked:bg-primary-muted": disabled
|
8357
8843
|
}
|
8358
8844
|
)
|
8359
8845
|
),
|
8360
8846
|
readOnly,
|
8361
8847
|
disabled
|
8362
|
-
})), /* @__PURE__ */
|
8848
|
+
})), /* @__PURE__ */ React41.createElement("span", {
|
8363
8849
|
className: tw(
|
8364
8850
|
"pointer-events-none rounded-full absolute inline-flex justify-center items-center transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
8365
|
-
"bg-white left-2 peer-checked/switch:left-1 text-
|
8851
|
+
"bg-white left-2 peer-checked/switch:left-1 text-inactive peer-checked/switch:text-primary-muted",
|
8366
8852
|
{
|
8367
8853
|
"shadow-4dp": !disabled
|
8368
8854
|
}
|
8369
8855
|
)
|
8370
|
-
}, disabled && /* @__PURE__ */
|
8856
|
+
}, disabled && /* @__PURE__ */ React41.createElement(Icon, {
|
8371
8857
|
icon: import_ban2.default,
|
8372
8858
|
width: "10px",
|
8373
8859
|
height: "10px"
|
@@ -8376,6 +8862,7 @@ var Switch = React37.forwardRef(
|
|
8376
8862
|
);
|
8377
8863
|
export {
|
8378
8864
|
Alert,
|
8865
|
+
Banner2 as Banner,
|
8379
8866
|
Caption,
|
8380
8867
|
Card,
|
8381
8868
|
Checkbox,
|
@@ -8389,14 +8876,18 @@ export {
|
|
8389
8876
|
Link,
|
8390
8877
|
Modal,
|
8391
8878
|
Navigation,
|
8879
|
+
PageHeader,
|
8392
8880
|
Popover,
|
8393
8881
|
PopoverDialog,
|
8882
|
+
ProgressBar,
|
8394
8883
|
RadioButton,
|
8884
|
+
Section2 as Section,
|
8395
8885
|
Select,
|
8396
8886
|
Stepper,
|
8397
8887
|
Switch,
|
8398
8888
|
Table,
|
8399
8889
|
Toast,
|
8890
|
+
Typography,
|
8400
8891
|
cellClassNames,
|
8401
8892
|
getAlignClassNames,
|
8402
8893
|
getBodyCellClassNames,
|