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