@ultraviolet/ui 3.4.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/index.js +1 -1
- package/dist/components/Alert/styles.css.d.ts +8 -8
- package/dist/components/Alert/styles.css.js +1 -1
- package/dist/components/Avatar/styles.css.d.ts +36 -36
- package/dist/components/Avatar/styles.css.js +4 -4
- package/dist/components/Badge/styles.css.d.ts +28 -28
- package/dist/components/Badge/styles.css.js +1 -1
- package/dist/components/Banner/index.js +1 -1
- package/dist/components/Banner/styles.css.d.ts +2 -2
- package/dist/components/Banner/styles.css.js +2 -2
- package/dist/components/BarStack/styles.css.d.ts +7 -7
- package/dist/components/BarStack/styles.css.js +1 -1
- package/dist/components/Bullet/styles.css.d.ts +13 -13
- package/dist/components/Bullet/styles.css.js +1 -1
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/Button/index.d.ts.map +1 -1
- package/dist/components/Button/styles.css.d.ts +39 -39
- package/dist/components/Button/styles.css.js +1 -1
- package/dist/components/Checkbox/index.js +4 -4
- package/dist/components/Chip/ChipIcon.d.ts.map +1 -1
- package/dist/components/Chip/ChipIcon.js +4 -1
- package/dist/components/Chip/index.d.ts +1 -1
- package/dist/components/CopyButton/index.js +1 -1
- package/dist/components/DateInput/components/CalendarContent.js +7 -7
- package/dist/components/DateInput/components/CalendarDaily.js +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.d.ts.map +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.js +1 -1
- package/dist/components/DateInput/helpers.d.ts.map +1 -1
- package/dist/components/Dialog/components/Buttons.js +1 -1
- package/dist/components/Dialog/index.d.ts +2 -2
- package/dist/components/Drawer/styles.css.js +1 -1
- package/dist/components/EmptyState/styles.css.d.ts +11 -11
- package/dist/components/EmptyState/styles.css.js +2 -2
- package/dist/components/Expandable/index.js +1 -1
- package/dist/components/ExpandableCard/styles.css.d.ts.map +1 -1
- package/dist/components/FileInput/index.js +1 -1
- package/dist/components/FileInput/styles.css.d.ts +11 -11
- package/dist/components/FileInput/styles.css.js +5 -5
- package/dist/components/GlobalAlert/styles.css.js +1 -1
- package/dist/components/Key/styles.css.d.ts +12 -12
- package/dist/components/Key/styles.css.js +1 -1
- package/dist/components/Label/index.d.ts.map +1 -1
- package/dist/components/Label/index.js +41 -28
- package/dist/components/Label/styles.css.js +1 -1
- package/dist/components/Link/styles.css.d.ts.map +1 -1
- package/dist/components/List/ListContext.d.ts +2 -2
- package/dist/components/List/ListContext.d.ts.map +1 -1
- package/dist/components/List/Row.d.ts +1 -1
- package/dist/components/List/Row.d.ts.map +1 -1
- package/dist/components/List/SelectBar.d.ts +1 -1
- package/dist/components/List/SelectBar.d.ts.map +1 -1
- package/dist/components/List/SkeletonRows.d.ts.map +1 -1
- package/dist/components/List/index.d.ts +2 -5
- package/dist/components/List/index.d.ts.map +1 -1
- package/dist/components/List/styles.css.d.ts +3 -3
- package/dist/components/List/styles.css.js +1 -1
- package/dist/components/Menu/styles.css.js +1 -1
- package/dist/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/components/Modal/components/Dialog.d.ts.map +1 -1
- package/dist/components/Modal/components/Dialog.js +1 -1
- package/dist/components/Modal/index.js +3 -3
- package/dist/components/Modal/styles.css.d.ts +17 -17
- package/dist/components/Modal/styles.css.js +1 -1
- package/dist/components/NumberInput/index.d.ts +1 -1
- package/dist/components/NumberInput/index.js +2 -2
- package/dist/components/NumberInput/styles.css.d.ts +48 -48
- package/dist/components/NumberInput/styles.css.d.ts.map +1 -1
- package/dist/components/NumberInput/styles.css.js +4 -4
- package/dist/components/Pagination/getPageNumbers.d.ts +1 -1
- package/dist/components/Pagination/styles.css.js +2 -2
- package/dist/components/PieChart/index.js +3 -3
- package/dist/components/PieChart/styles.css.d.ts +7 -7
- package/dist/components/PieChart/styles.css.js +3 -3
- package/dist/components/Popover/index.js +1 -1
- package/dist/components/Popover/styles.css.d.ts +3 -3
- package/dist/components/Popup/helpers.js +2 -2
- package/dist/components/Popup/index.js +19 -19
- package/dist/components/Popup/styles.css.d.ts +6 -6
- package/dist/components/Popup/styles.css.js +1 -1
- package/dist/components/Radio/index.d.ts.map +1 -1
- package/dist/components/Radio/index.js +14 -11
- package/dist/components/RadioGroup/index.js +1 -1
- package/dist/components/Row/styles.css.d.ts +19 -19
- package/dist/components/Row/styles.css.d.ts.map +1 -1
- package/dist/components/Row/styles.css.js +2 -2
- package/dist/components/Row/variables.css.d.ts +1 -1
- package/dist/components/Row/variables.css.d.ts.map +1 -1
- package/dist/components/Row/variables.css.js +2 -2
- package/dist/components/SelectInput/components/Dropdown.d.ts +14 -1
- package/dist/components/SelectInput/components/Dropdown.d.ts.map +1 -1
- package/dist/components/SelectInput/components/Dropdown.js +398 -222
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts.map +1 -1
- package/dist/components/SelectInput/components/SearchBarDropdown.js +25 -19
- package/dist/components/SelectInput/components/SelectBar.d.ts.map +1 -1
- package/dist/components/SelectInput/components/SelectBar.js +8 -11
- package/dist/components/SelectInput/components/dropdown.css.d.ts +2 -0
- package/dist/components/SelectInput/components/dropdown.css.d.ts.map +1 -1
- package/dist/components/SelectInput/components/dropdown.css.js +13 -9
- package/dist/components/SelectInput/components/selectBar.css.d.ts +43 -43
- package/dist/components/SelectInput/components/selectBar.css.d.ts.map +1 -1
- package/dist/components/SelectInput/components/selectBar.css.js +2 -2
- package/dist/components/SelectInput/constants.d.ts +13 -0
- package/dist/components/SelectInput/constants.d.ts.map +1 -0
- package/dist/components/SelectInput/constants.js +18 -0
- package/dist/components/SelectInput/findOptionInOptions.js +3 -3
- package/dist/components/SelectInput/index.d.ts +11 -5
- package/dist/components/SelectInput/index.d.ts.map +1 -1
- package/dist/components/SelectInput/index.js +8 -2
- package/dist/components/SelectInput/types.d.ts +0 -5
- package/dist/components/SelectInput/types.d.ts.map +1 -1
- package/dist/components/SelectableCard/index.d.ts.map +1 -1
- package/dist/components/SelectableCard/index.js +8 -5
- package/dist/components/SelectableCard/styles.css.d.ts +9 -9
- package/dist/components/SelectableCard/styles.css.js +3 -2
- package/dist/components/SelectableCard/variables.css.js +0 -1
- package/dist/components/Separator/index.d.ts.map +1 -1
- package/dist/components/Separator/index.js +33 -31
- package/dist/components/Skeleton/Block.d.ts.map +1 -1
- package/dist/components/Skeleton/Block.js +7 -4
- package/dist/components/Skeleton/Blocks.d.ts.map +1 -1
- package/dist/components/Skeleton/Blocks.js +7 -4
- package/dist/components/Skeleton/BoxWithIcon.d.ts.map +1 -1
- package/dist/components/Skeleton/BoxWithIcon.js +7 -4
- package/dist/components/Skeleton/List.d.ts.map +1 -1
- package/dist/components/Skeleton/List.js +8 -2
- package/dist/components/Skeleton/Slider.d.ts.map +1 -1
- package/dist/components/Skeleton/Slider.js +4 -1
- package/dist/components/Skeleton/index.d.ts.map +1 -1
- package/dist/components/Skeleton/index.js +17 -14
- package/dist/components/Slider/components/DoubleSlider.d.ts +1 -1
- package/dist/components/Slider/components/DoubleSlider.d.ts.map +1 -1
- package/dist/components/Slider/components/DoubleSlider.js +24 -20
- package/dist/components/Slider/components/SingleSlider.d.ts +1 -1
- package/dist/components/Slider/components/SingleSlider.d.ts.map +1 -1
- package/dist/components/Slider/components/SingleSlider.js +9 -3
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.d.ts.map +1 -1
- package/dist/components/Slider/index.js +3 -0
- package/dist/components/Slider/styles.css.d.ts +47 -43
- package/dist/components/Slider/styles.css.d.ts.map +1 -1
- package/dist/components/Slider/styles.css.js +5 -5
- package/dist/components/Slider/types.d.ts +5 -0
- package/dist/components/Slider/types.d.ts.map +1 -1
- package/dist/components/Snippet/index.js +1 -1
- package/dist/components/Snippet/styles.css.d.ts +12 -12
- package/dist/components/Snippet/styles.css.js +7 -7
- package/dist/components/Stack/index.d.ts +2 -3
- package/dist/components/Stack/index.d.ts.map +1 -1
- package/dist/components/Stack/index.js +67 -65
- package/dist/components/Stack/styles.css.d.ts +87 -87
- package/dist/components/Stack/styles.css.js +4 -4
- package/dist/components/Status/styles.css.d.ts +1 -1
- package/dist/components/StepList/styles.css.d.ts +7 -7
- package/dist/components/StepList/styles.css.js +2 -2
- package/dist/components/Stepper/index.d.ts.map +1 -1
- package/dist/components/Stepper/index.js +13 -10
- package/dist/components/Stepper/styles.css.d.ts +45 -45
- package/dist/components/Stepper/styles.css.js +6 -6
- package/dist/components/SwitchButton/index.js +3 -3
- package/dist/components/SwitchButton/styles.css.js +3 -3
- package/dist/components/Table/HeaderRow.d.ts.map +1 -1
- package/dist/components/Table/HeaderRow.js +25 -22
- package/dist/components/Table/Row.d.ts +1 -1
- package/dist/components/Table/Row.d.ts.map +1 -1
- package/dist/components/Table/SelectBar.d.ts +1 -1
- package/dist/components/Table/SelectBar.d.ts.map +1 -1
- package/dist/components/Table/SkeletonRows.d.ts.map +1 -1
- package/dist/components/Table/index.d.ts +4 -4
- package/dist/components/Table/index.d.ts.map +1 -1
- package/dist/components/Table/styles.css.d.ts +21 -21
- package/dist/components/Table/styles.css.js +2 -2
- package/dist/components/Tabs/Tab.js +1 -1
- package/dist/components/Tabs/index.d.ts +1 -1
- package/dist/components/Tabs/styles.css.js +1 -1
- package/dist/components/Tag/styles.css.d.ts +10 -10
- package/dist/components/Tag/styles.css.js +1 -1
- package/dist/components/TagInput/index.js +5 -5
- package/dist/components/TagInput/styles.css.d.ts +4 -4
- package/dist/components/TagInput/styles.css.js +1 -1
- package/dist/components/TagList/index.d.ts.map +1 -1
- package/dist/components/TagList/index.js +1 -1
- package/dist/components/Text/style.css.d.ts +26 -26
- package/dist/components/Text/style.css.d.ts.map +1 -1
- package/dist/components/Text/style.css.js +1 -1
- package/dist/components/TextArea/index.d.ts.map +1 -1
- package/dist/components/TextArea/index.js +14 -7
- package/dist/components/TextArea/styles.css.d.ts +2 -2
- package/dist/components/TextArea/styles.css.js +1 -1
- package/dist/components/TextInput/index.d.ts +1 -1
- package/dist/components/TextInput/index.js +2 -2
- package/dist/components/TimeInput/helpers.d.ts.map +1 -1
- package/dist/components/TimeInput/helpers.js +2 -1
- package/dist/components/TimeInput/index.js +4 -4
- package/dist/components/TimeInput/styles.css.d.ts +22 -22
- package/dist/components/TimeInput/styles.css.js +1 -1
- package/dist/components/Toaster/constants.d.ts.map +1 -1
- package/dist/components/Toggle/styles.css.d.ts +53 -53
- package/dist/components/Toggle/styles.css.js +2 -2
- package/dist/components/Tooltip/index.d.ts +1 -1
- package/dist/components/TreeMapChart/index.d.ts +1 -1
- package/dist/components/TreeMapChart/index.d.ts.map +1 -1
- package/dist/components/TreeMapChart/index.js +39 -42
- package/dist/components/TreeMapChart/styles.css.d.ts +1 -1
- package/dist/components/TreeMapChart/styles.css.d.ts.map +1 -1
- package/dist/components/TreeMapChart/styles.css.js +2 -2
- package/dist/components/UnitInput/index.js +1 -1
- package/dist/components/UnitInput/styles.css.js +3 -3
- package/dist/components/VerificationCode/index.d.ts.map +1 -1
- package/dist/components/VerificationCode/index.js +2 -2
- package/dist/components/VerificationCode/styles.css.js +1 -1
- package/dist/components/compositions/OptionSelector/index.d.ts.map +1 -1
- package/dist/components/compositions/OptionSelector/index.js +91 -59
- package/dist/components/compositions/OptionSelector/styles.css.d.ts +2 -0
- package/dist/components/compositions/OptionSelector/styles.css.d.ts.map +1 -1
- package/dist/components/compositions/OptionSelector/styles.css.js +4 -0
- package/dist/helpers/treeMap.d.ts +4 -5
- package/dist/helpers/treeMap.d.ts.map +1 -1
- package/dist/helpers/treeMap.js +7 -5
- package/dist/theme/ThemeProvider.d.ts +33 -0
- package/dist/theme/ThemeProvider.d.ts.map +1 -1
- package/dist/theme/index.d.ts +33 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +6 -6
- package/dist/components/SelectInput/types.js +0 -9
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { ResponsiveTreeMapHtml } from "@nivo/treemap";
|
|
4
4
|
import { useTheme } from "@ultraviolet/themes";
|
|
5
|
+
import { cn } from "@ultraviolet/utils";
|
|
5
6
|
import { useMemo, useCallback } from "react";
|
|
6
7
|
import { getDataColors } from "../../helpers/treeMap.js";
|
|
7
|
-
import {
|
|
8
|
-
import { treeMapContentWrapper } from "./styles.css.js";
|
|
8
|
+
import { treeMapContainer } from "./styles.css.js";
|
|
9
9
|
import { Tooltip } from "./Tooltip.js";
|
|
10
10
|
const TreeMapChart = ({
|
|
11
11
|
height = "537px",
|
|
@@ -17,7 +17,6 @@ const TreeMapChart = ({
|
|
|
17
17
|
"data-testid": dataTestId
|
|
18
18
|
}) => {
|
|
19
19
|
const theme = useTheme();
|
|
20
|
-
const DEFAULT_COLOR = theme.colors.primary.text;
|
|
21
20
|
const colors = useMemo(() => getDataColors(data, theme), [data, theme]);
|
|
22
21
|
const tooltip = useCallback(
|
|
23
22
|
(props) => {
|
|
@@ -26,48 +25,46 @@ const TreeMapChart = ({
|
|
|
26
25
|
},
|
|
27
26
|
[tooltipFunction]
|
|
28
27
|
);
|
|
29
|
-
const
|
|
30
|
-
(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
className: treeMapContentWrapper,
|
|
37
|
-
onMouseEnter: node.onMouseEnter,
|
|
38
|
-
onMouseLeave: node.onMouseLeave,
|
|
39
|
-
onMouseMove: node.onMouseMove,
|
|
40
|
-
style: {
|
|
41
|
-
backgroundColor,
|
|
42
|
-
height: node.height - spacing,
|
|
43
|
-
left: node.x + spacing / 2,
|
|
44
|
-
top: node.y + spacing / 2,
|
|
45
|
-
width: node.width - spacing
|
|
46
|
-
},
|
|
47
|
-
children: /* @__PURE__ */ jsx(Text, { as: "div", oneLine: true, variant: "captionStrong", children: node.data.content })
|
|
48
|
-
}
|
|
49
|
-
);
|
|
50
|
-
},
|
|
51
|
-
[colors, DEFAULT_COLOR]
|
|
28
|
+
const nivoTheme = useMemo(
|
|
29
|
+
() => ({
|
|
30
|
+
labels: {
|
|
31
|
+
text: theme.typography.captionStrong
|
|
32
|
+
}
|
|
33
|
+
}),
|
|
34
|
+
[theme.typography.captionStrong]
|
|
52
35
|
);
|
|
53
|
-
return /* @__PURE__ */ jsx(
|
|
54
|
-
|
|
36
|
+
return /* @__PURE__ */ jsx(
|
|
37
|
+
"div",
|
|
55
38
|
{
|
|
56
|
-
|
|
57
|
-
data,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
39
|
+
className: cn(className, treeMapContainer),
|
|
40
|
+
"data-testid": dataTestId,
|
|
41
|
+
style: { height },
|
|
42
|
+
children: /* @__PURE__ */ jsx(
|
|
43
|
+
ResponsiveTreeMapHtml,
|
|
44
|
+
{
|
|
45
|
+
animate: false,
|
|
46
|
+
borderColor: theme.colors.neutral.background,
|
|
47
|
+
borderWidth: 2,
|
|
48
|
+
colors,
|
|
49
|
+
data,
|
|
50
|
+
enableParentLabel: false,
|
|
51
|
+
identity: "id",
|
|
52
|
+
label: (node) => typeof node.data.content === "string" ? node.data.content : node.id,
|
|
53
|
+
labelSkipSize: 20,
|
|
54
|
+
labelTextColor: theme.colors.neutral.background,
|
|
55
|
+
leavesOnly: true,
|
|
56
|
+
motionConfig: "none",
|
|
57
|
+
nodeOpacity: 1,
|
|
58
|
+
orientLabel: false,
|
|
59
|
+
theme: nivoTheme,
|
|
60
|
+
tile: "squarify",
|
|
61
|
+
tooltip,
|
|
62
|
+
value: "value",
|
|
63
|
+
...chartProps
|
|
64
|
+
}
|
|
65
|
+
)
|
|
69
66
|
}
|
|
70
|
-
)
|
|
67
|
+
);
|
|
71
68
|
};
|
|
72
69
|
export {
|
|
73
70
|
TreeMapChart
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/TreeMapChart/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,QAOlC,CAAA;AAEF,eAAO,MAAM,
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../src/components/TreeMapChart/styles.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,uBAAuB,QAOlC,CAAA;AAEF,eAAO,MAAM,gBAAgB,QAE3B,CAAA"}
|
|
@@ -183,7 +183,7 @@ const UnitInput = ({
|
|
|
183
183
|
children: error || success || helper
|
|
184
184
|
}
|
|
185
185
|
) : null,
|
|
186
|
-
!error
|
|
186
|
+
!(error || success) && typeof helper !== "string" && helper ? helper : null
|
|
187
187
|
]
|
|
188
188
|
}
|
|
189
189
|
);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/* empty css */
|
|
2
2
|
/* empty css */
|
|
3
3
|
var widthSelectInput = "var(--uv_gwf0fl0)";
|
|
4
|
-
var unitInputNumber = {
|
|
5
|
-
var unitInputState = {
|
|
4
|
+
var unitInputNumber = { large: "uv_gwf0fl2 uv_gwf0fl1", medium: "uv_gwf0fl3 uv_gwf0fl1", small: "uv_gwf0fl4 uv_gwf0fl1" };
|
|
5
|
+
var unitInputState = { "default": "uv_gwf0fl6 uv_gwf0fl5", disabled: "uv_gwf0fl7 uv_gwf0fl5", error: "uv_gwf0fl8 uv_gwf0fl5", readOnly: "uv_gwf0fl9 uv_gwf0fl5", success: "uv_gwf0fla uv_gwf0fl5" };
|
|
6
6
|
var unitInputNumberWrapper = "uv_gwf0flb";
|
|
7
|
-
var unitInputSize = {
|
|
7
|
+
var unitInputSize = { large: "uv_gwf0flc", medium: "uv_gwf0fld", small: "uv_gwf0fle" };
|
|
8
8
|
var unitInputUnitWidth = "uv_gwf0flf";
|
|
9
9
|
var unitInputUnit = "uv_gwf0flg";
|
|
10
10
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/VerificationCode/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAGV,aAAa,EAGb,SAAS,EACV,MAAM,OAAO,CAAA;AAWd,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,8NAoB9B,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/VerificationCode/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAGV,aAAa,EAGb,SAAS,EACV,MAAM,OAAO,CAAA;AAWd,KAAK,qBAAqB,GAAG;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAA;IAC9C;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IAClC;;OAEG;IACH,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAA;IACpC,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,QAAQ,CAAA;IACxB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gBAAgB,CAAC,EAAE,SAAS,CAAA;IAC5B,MAAM,CAAC,EAAE,SAAS,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC1B,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB,CAAA;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,GAAI,8NAoB9B,qBAAqB,4CAyNvB,CAAA"}
|
|
@@ -195,13 +195,13 @@ const VerificationCode = ({
|
|
|
195
195
|
{
|
|
196
196
|
as: "p",
|
|
197
197
|
disabled,
|
|
198
|
-
prominence:
|
|
198
|
+
prominence: error || success ? "default" : "weak",
|
|
199
199
|
sentiment,
|
|
200
200
|
variant: "caption",
|
|
201
201
|
children: error || success || helper
|
|
202
202
|
}
|
|
203
203
|
) : null,
|
|
204
|
-
!error
|
|
204
|
+
!(error || success) && typeof helper !== "string" && helper ? helper : null
|
|
205
205
|
]
|
|
206
206
|
}
|
|
207
207
|
);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
var inputSizes = {
|
|
2
|
+
var inputSizes = { large: "uv_1k9synd0", medium: "uv_1k9synd1", small: "uv_1k9synd2", xlarge: "uv_1k9synd3" };
|
|
3
3
|
var inputClass = "uv_1k9synd4";
|
|
4
4
|
var filedSetClass = "uv_1k9synd5";
|
|
5
5
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/OptionSelector/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/OptionSelector/index.tsx"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,SAAS,CAAA;AA+ClE;;;GAGG;AACH,eAAO,MAAM,cAAc,GAAI,4KAe5B,mBAAmB,4CA0IrB,CAAA"}
|
|
@@ -6,8 +6,9 @@ import { useMemo } from "react";
|
|
|
6
6
|
import { Label } from "../../Label/index.js";
|
|
7
7
|
import { SelectInput } from "../../SelectInput/index.js";
|
|
8
8
|
import { Stack } from "../../Stack/index.js";
|
|
9
|
+
import { Text } from "../../Text/index.js";
|
|
9
10
|
import { RevealOnHover } from "./RevealOnHover.js";
|
|
10
|
-
import { firstLabel, secondLabel, firstSelectInput, arrow, secondSelectInput, optionSelectorWrapper } from "./styles.css.js";
|
|
11
|
+
import { firstLabel, secondLabel, firstSelectInput, arrow, secondSelectInput, errorFirstSelector, errorSecondSelector, optionSelectorWrapper } from "./styles.css.js";
|
|
11
12
|
const IconWithContent = ({
|
|
12
13
|
content,
|
|
13
14
|
icon
|
|
@@ -21,8 +22,16 @@ const makeSelectInputOptions = (options) => options.map((option) => {
|
|
|
21
22
|
{
|
|
22
23
|
content: /* @__PURE__ */ jsx(IconWithContent, { content: option.content, icon: option.icon }),
|
|
23
24
|
hoverContent: /* @__PURE__ */ jsx(IconWithContent, { content: option.hoverContent, icon: option.icon })
|
|
24
|
-
}
|
|
25
|
-
|
|
25
|
+
},
|
|
26
|
+
option.value
|
|
27
|
+
) : /* @__PURE__ */ jsx(
|
|
28
|
+
IconWithContent,
|
|
29
|
+
{
|
|
30
|
+
content: option.content,
|
|
31
|
+
icon: option.icon
|
|
32
|
+
},
|
|
33
|
+
option.value
|
|
34
|
+
);
|
|
26
35
|
return {
|
|
27
36
|
disabled: option.disabled,
|
|
28
37
|
label: optionLabel,
|
|
@@ -80,68 +89,91 @@ const OptionSelector = ({
|
|
|
80
89
|
onChange?.({ first: val, second: value?.second });
|
|
81
90
|
};
|
|
82
91
|
const onChangeSecondSelector = (val) => onChange?.({ first: value?.first, second: val });
|
|
83
|
-
return
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
{
|
|
98
|
-
className: firstSelectInput,
|
|
99
|
-
"data-testid": "first-selector",
|
|
100
|
-
disabled: firstSelector.disabled || disabled,
|
|
101
|
-
error: error || firstSelector.error,
|
|
102
|
-
helper: firstSelector.helper,
|
|
103
|
-
labelDescription: firstSelector.labelDescription,
|
|
104
|
-
onChange: onChangeFirstSelector,
|
|
105
|
-
optionalInfoPlacement: "right",
|
|
106
|
-
options: firstSelectorOptions,
|
|
107
|
-
placeholder: firstSelector.placeholder,
|
|
108
|
-
readOnly: firstSelector.options.length === 1 || firstSelector.readOnly || readOnly,
|
|
109
|
-
required,
|
|
110
|
-
size,
|
|
111
|
-
value: firstValue
|
|
112
|
-
}
|
|
113
|
-
),
|
|
114
|
-
firstValue && secondSelector && secondSelectorOptions ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
115
|
-
/* @__PURE__ */ jsx(
|
|
116
|
-
RayStartArrowIcon,
|
|
117
|
-
{
|
|
118
|
-
className: arrow,
|
|
119
|
-
prominence: "weak",
|
|
120
|
-
sentiment: "neutral",
|
|
121
|
-
size
|
|
122
|
-
}
|
|
123
|
-
),
|
|
92
|
+
return (
|
|
93
|
+
// biome-ignore lint/a11y/useAriaPropsSupportedByRole: to fix
|
|
94
|
+
/* @__PURE__ */ jsxs(
|
|
95
|
+
"fieldset",
|
|
96
|
+
{
|
|
97
|
+
"aria-label": ariaLabel,
|
|
98
|
+
"aria-required": required,
|
|
99
|
+
className: cn(className, optionSelectorWrapper),
|
|
100
|
+
"data-testid": dataTestId,
|
|
101
|
+
name,
|
|
102
|
+
style,
|
|
103
|
+
children: [
|
|
104
|
+
/* @__PURE__ */ jsx(Label, { className: firstLabel, required, children: firstSelector.label }),
|
|
105
|
+
firstValue && secondSelector && secondSelectorOptions ? /* @__PURE__ */ jsx(Label, { className: secondLabel, required, children: secondSelector?.label }) : null,
|
|
124
106
|
/* @__PURE__ */ jsx(
|
|
125
107
|
SelectInput,
|
|
126
108
|
{
|
|
127
|
-
className:
|
|
128
|
-
"data-testid": "
|
|
129
|
-
disabled:
|
|
130
|
-
error:
|
|
131
|
-
helper:
|
|
132
|
-
labelDescription:
|
|
133
|
-
onChange:
|
|
109
|
+
className: firstSelectInput,
|
|
110
|
+
"data-testid": "first-selector",
|
|
111
|
+
disabled: firstSelector.disabled || disabled,
|
|
112
|
+
error: error || !!firstSelector.error,
|
|
113
|
+
helper: firstSelector.helper,
|
|
114
|
+
labelDescription: firstSelector.labelDescription,
|
|
115
|
+
onChange: onChangeFirstSelector,
|
|
134
116
|
optionalInfoPlacement: "right",
|
|
135
|
-
options:
|
|
136
|
-
placeholder:
|
|
137
|
-
readOnly:
|
|
117
|
+
options: firstSelectorOptions,
|
|
118
|
+
placeholder: firstSelector.placeholder,
|
|
119
|
+
readOnly: firstSelector.options.length === 1 || firstSelector.readOnly || readOnly,
|
|
120
|
+
required,
|
|
138
121
|
size,
|
|
139
|
-
value:
|
|
122
|
+
value: firstValue
|
|
140
123
|
}
|
|
141
|
-
)
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
124
|
+
),
|
|
125
|
+
firstValue && secondSelector && secondSelectorOptions ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
126
|
+
/* @__PURE__ */ jsx(
|
|
127
|
+
RayStartArrowIcon,
|
|
128
|
+
{
|
|
129
|
+
className: arrow,
|
|
130
|
+
prominence: "weak",
|
|
131
|
+
sentiment: "neutral",
|
|
132
|
+
size
|
|
133
|
+
}
|
|
134
|
+
),
|
|
135
|
+
/* @__PURE__ */ jsx(
|
|
136
|
+
SelectInput,
|
|
137
|
+
{
|
|
138
|
+
className: secondSelectInput,
|
|
139
|
+
"data-testid": "second-selector",
|
|
140
|
+
disabled: !!firstSelector.error || secondSelector.disabled || disabled,
|
|
141
|
+
error: !!error || !!secondSelector.error,
|
|
142
|
+
helper: secondSelector.helper,
|
|
143
|
+
labelDescription: secondSelector.labelDescription,
|
|
144
|
+
onChange: onChangeSecondSelector,
|
|
145
|
+
optionalInfoPlacement: "right",
|
|
146
|
+
options: secondSelectorOptions,
|
|
147
|
+
placeholder: secondSelector.placeholder,
|
|
148
|
+
readOnly: secondSelector.options.length === 1 || secondSelector.readOnly || readOnly,
|
|
149
|
+
size,
|
|
150
|
+
value: secondValue
|
|
151
|
+
}
|
|
152
|
+
)
|
|
153
|
+
] }) : null,
|
|
154
|
+
firstSelector.error && typeof firstSelector.error === "string" ? /* @__PURE__ */ jsx(
|
|
155
|
+
Text,
|
|
156
|
+
{
|
|
157
|
+
as: "p",
|
|
158
|
+
className: errorFirstSelector,
|
|
159
|
+
sentiment: "danger",
|
|
160
|
+
variant: "caption",
|
|
161
|
+
children: firstSelector.error
|
|
162
|
+
}
|
|
163
|
+
) : null,
|
|
164
|
+
secondSelector?.error && typeof secondSelector?.error === "string" ? /* @__PURE__ */ jsx(
|
|
165
|
+
Text,
|
|
166
|
+
{
|
|
167
|
+
as: "p",
|
|
168
|
+
className: errorSecondSelector,
|
|
169
|
+
sentiment: "danger",
|
|
170
|
+
variant: "caption",
|
|
171
|
+
children: secondSelector.error
|
|
172
|
+
}
|
|
173
|
+
) : null
|
|
174
|
+
]
|
|
175
|
+
}
|
|
176
|
+
)
|
|
145
177
|
);
|
|
146
178
|
};
|
|
147
179
|
export {
|
|
@@ -5,4 +5,6 @@ export declare const secondLabel: string;
|
|
|
5
5
|
export declare const firstSelectInput: string;
|
|
6
6
|
export declare const secondSelectInput: string;
|
|
7
7
|
export declare const arrow: string;
|
|
8
|
+
export declare const errorFirstSelector: string;
|
|
9
|
+
export declare const errorSecondSelector: string;
|
|
8
10
|
//# sourceMappingURL=styles.css.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/OptionSelector/styles.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB,QAMhC,CAAA;AAEF,eAAO,MAAM,aAAa,QAAY,CAAA;AAwBtC,eAAO,MAAM,UAAU,QAGrB,CAAA;AAEF,eAAO,MAAM,WAAW,QAGtB,CAAA;AAEF,eAAO,MAAM,gBAAgB,QAG3B,CAAA;AAEF,eAAO,MAAM,iBAAiB,QAG5B,CAAA;AAEF,eAAO,MAAM,KAAK,QAGhB,CAAA"}
|
|
1
|
+
{"version":3,"file":"styles.css.d.ts","sourceRoot":"","sources":["../../../../src/components/compositions/OptionSelector/styles.css.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,qBAAqB,QAMhC,CAAA;AAEF,eAAO,MAAM,aAAa,QAAY,CAAA;AAwBtC,eAAO,MAAM,UAAU,QAGrB,CAAA;AAEF,eAAO,MAAM,WAAW,QAGtB,CAAA;AAEF,eAAO,MAAM,gBAAgB,QAG3B,CAAA;AAEF,eAAO,MAAM,iBAAiB,QAG5B,CAAA;AAEF,eAAO,MAAM,KAAK,QAGhB,CAAA;AAEF,eAAO,MAAM,kBAAkB,QAI7B,CAAA;AAEF,eAAO,MAAM,mBAAmB,QAI9B,CAAA"}
|
|
@@ -8,8 +8,12 @@ var secondLabel = "uv_12opk3l3";
|
|
|
8
8
|
var firstSelectInput = "uv_12opk3l4";
|
|
9
9
|
var secondSelectInput = "uv_12opk3l5";
|
|
10
10
|
var arrow = "uv_12opk3l6";
|
|
11
|
+
var errorFirstSelector = "uv_12opk3l7";
|
|
12
|
+
var errorSecondSelector = "uv_12opk3l8";
|
|
11
13
|
export {
|
|
12
14
|
arrow,
|
|
15
|
+
errorFirstSelector,
|
|
16
|
+
errorSecondSelector,
|
|
13
17
|
firstLabel,
|
|
14
18
|
firstSelectInput,
|
|
15
19
|
optionSelectorWrapper,
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { DefaultTreeMapDatum } from '@nivo/treemap';
|
|
2
2
|
import type { consoleLightTheme } from '@ultraviolet/themes';
|
|
3
3
|
type Theme = typeof consoleLightTheme;
|
|
4
|
-
type ReturnType = Record<string, string>;
|
|
5
4
|
/**
|
|
6
5
|
* Recursively collects all IDs from a tree map data structure.
|
|
7
6
|
*
|
|
@@ -65,11 +64,11 @@ export declare const getOpacity: (n: number) => number;
|
|
|
65
64
|
*/
|
|
66
65
|
export declare const percentToHex: (percentage: number) => string;
|
|
67
66
|
/**
|
|
68
|
-
* Generates
|
|
67
|
+
* Generates the needed colors for the tree map with graduated opacity values.
|
|
69
68
|
*
|
|
70
69
|
* @param {DefaultTreeMapDatum} data - The tree map data structure to generate colors for
|
|
71
70
|
* @param {Theme} theme - The theme object containing color configuration
|
|
72
|
-
* @returns {
|
|
71
|
+
* @returns {string[]} An array of color strings in hex format with alpha channel
|
|
73
72
|
*
|
|
74
73
|
* @description
|
|
75
74
|
* This function creates a color scheme for a tree map visualization by:
|
|
@@ -85,8 +84,8 @@ export declare const percentToHex: (percentage: number) => string;
|
|
|
85
84
|
* const data = { id: 'root', children: [{ id: 'child1' }, { id: 'child2' }] }
|
|
86
85
|
* const theme = { colors: { primary: { text: '#3B82F6' } } }
|
|
87
86
|
* getDataColors(data, theme)
|
|
88
|
-
* // returns { '
|
|
87
|
+
* // returns { '#3B82F6FF', '#3B82F600', '#3B82F610' }
|
|
89
88
|
*/
|
|
90
|
-
export declare const getDataColors: (data: DefaultTreeMapDatum, theme: Theme) =>
|
|
89
|
+
export declare const getDataColors: (data: DefaultTreeMapDatum, theme: Theme) => string[];
|
|
91
90
|
export {};
|
|
92
91
|
//# sourceMappingURL=treeMap.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"treeMap.d.ts","sourceRoot":"","sources":["../../src/helpers/treeMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D,KAAK,KAAK,GAAG,OAAO,iBAAiB,CAAA;
|
|
1
|
+
{"version":3,"file":"treeMap.d.ts","sourceRoot":"","sources":["../../src/helpers/treeMap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACxD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D,KAAK,KAAK,GAAG,OAAO,iBAAiB,CAAA;AAErC;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,SAAS,GAAI,MAAM,mBAAmB,KAAG,MAAM,EAU3D,CAAA;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,UAAU,GAAI,GAAG,MAAM,KAAG,MAkBtC,CAAA;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,YAAY,GAAI,YAAY,MAAM,KAAG,MAKjD,CAAA;AAED;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,eAAO,MAAM,aAAa,GACxB,MAAM,mBAAmB,EACzB,OAAO,KAAK,KACX,MAAM,EASR,CAAA"}
|
package/dist/helpers/treeMap.js
CHANGED
|
@@ -28,11 +28,13 @@ const percentToHex = (percentage) => {
|
|
|
28
28
|
};
|
|
29
29
|
const getDataColors = (data, theme) => {
|
|
30
30
|
const baseColor = theme.colors.primary.text;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
31
|
+
return getAllIds(data).map(
|
|
32
|
+
(_, index) => (
|
|
33
|
+
// if we have more than 100 elements, we use the mod function to be able to return to the start
|
|
34
|
+
// as we only have 100 transparency values for a given color
|
|
35
|
+
`${baseColor}${percentToHex(getOpacity((100 - index) % 100))}`
|
|
36
|
+
)
|
|
37
|
+
);
|
|
36
38
|
};
|
|
37
39
|
export {
|
|
38
40
|
getAllIds,
|
|
@@ -598,6 +598,39 @@ export declare const useTheme: () => {
|
|
|
598
598
|
textDecoration: string;
|
|
599
599
|
weight: string;
|
|
600
600
|
};
|
|
601
|
+
codeSmall: {
|
|
602
|
+
fontFamily: string;
|
|
603
|
+
fontSize: string;
|
|
604
|
+
fontWeight: string;
|
|
605
|
+
letterSpacing: string;
|
|
606
|
+
lineHeight: string;
|
|
607
|
+
paragraphSpacing: string;
|
|
608
|
+
textCase: string;
|
|
609
|
+
textDecoration: string;
|
|
610
|
+
weight: string;
|
|
611
|
+
};
|
|
612
|
+
codeSmallStrong: {
|
|
613
|
+
fontFamily: string;
|
|
614
|
+
fontSize: string;
|
|
615
|
+
fontWeight: string;
|
|
616
|
+
letterSpacing: string;
|
|
617
|
+
lineHeight: string;
|
|
618
|
+
paragraphSpacing: string;
|
|
619
|
+
textCase: string;
|
|
620
|
+
textDecoration: string;
|
|
621
|
+
weight: string;
|
|
622
|
+
};
|
|
623
|
+
codeSmallStronger: {
|
|
624
|
+
fontFamily: string;
|
|
625
|
+
fontSize: string;
|
|
626
|
+
fontWeight: string;
|
|
627
|
+
letterSpacing: string;
|
|
628
|
+
lineHeight: string;
|
|
629
|
+
paragraphSpacing: string;
|
|
630
|
+
textCase: string;
|
|
631
|
+
textDecoration: string;
|
|
632
|
+
weight: string;
|
|
633
|
+
};
|
|
601
634
|
codeStrong: {
|
|
602
635
|
fontFamily: string;
|
|
603
636
|
fontSize: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAA0B,MAAM,qBAAqB,CAAA;AAE/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC;;GAEG;AAEH,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/theme/ThemeProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,iBAAiB,EAA0B,MAAM,qBAAqB,CAAA;AAE/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAKtC;;GAEG;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CASpB,CAAA;AAED,KAAK,kBAAkB,GAAG;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,iBAAiB,CAAA;IAChC,QAAQ,EAAE,SAAS,CAAA;CACpB,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,aAAa,GAAI,sBAG3B,kBAAkB,4CA2BpB,CAAA"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -535,6 +535,39 @@ declare const colors: {
|
|
|
535
535
|
textDecoration: string;
|
|
536
536
|
weight: string;
|
|
537
537
|
};
|
|
538
|
+
codeSmall: {
|
|
539
|
+
fontFamily: string;
|
|
540
|
+
fontSize: string;
|
|
541
|
+
fontWeight: string;
|
|
542
|
+
letterSpacing: string;
|
|
543
|
+
lineHeight: string;
|
|
544
|
+
paragraphSpacing: string;
|
|
545
|
+
textCase: string;
|
|
546
|
+
textDecoration: string;
|
|
547
|
+
weight: string;
|
|
548
|
+
};
|
|
549
|
+
codeSmallStrong: {
|
|
550
|
+
fontFamily: string;
|
|
551
|
+
fontSize: string;
|
|
552
|
+
fontWeight: string;
|
|
553
|
+
letterSpacing: string;
|
|
554
|
+
lineHeight: string;
|
|
555
|
+
paragraphSpacing: string;
|
|
556
|
+
textCase: string;
|
|
557
|
+
textDecoration: string;
|
|
558
|
+
weight: string;
|
|
559
|
+
};
|
|
560
|
+
codeSmallStronger: {
|
|
561
|
+
fontFamily: string;
|
|
562
|
+
fontSize: string;
|
|
563
|
+
fontWeight: string;
|
|
564
|
+
letterSpacing: string;
|
|
565
|
+
lineHeight: string;
|
|
566
|
+
paragraphSpacing: string;
|
|
567
|
+
textCase: string;
|
|
568
|
+
textDecoration: string;
|
|
569
|
+
weight: string;
|
|
570
|
+
};
|
|
538
571
|
codeStrong: {
|
|
539
572
|
fontFamily: string;
|
|
540
573
|
fontSize: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,QAAQ,EACT,MAAM,qBAAqB,CAAA;AAG5B,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,iBAAiB,CAAC,WAAW,CAAA;AAEnE,KAAK,kBAAkB,GAAG,OAAO,iBAAiB,CAAA;AAElD,QAAA,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,QAAQ,EACT,MAAM,qBAAqB,CAAA;AAG5B,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,iBAAiB,CAAC,WAAW,CAAA;AAEnE,KAAK,kBAAkB,GAAG,OAAO,iBAAiB,CAAA;AAElD,QAAA,MAAQ,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAE,KAAK;;;;;;;;;;;;;;;GAAE,KAAK;;;;;;;;GAAE,WAAW;;;;;;;CAC3C,CAAA;AAEnB,KAAK,gBAAgB,CAAC,CAAC,IAAI;KACxB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACxC,CAAA;AAED;;;;GAIG;AACH,QAAA,MAAM,WAAW,GAAI,eAAe,gBAAgB,CAAC,kBAAkB,CAAC,KACvB,kBAAkB,CAAA;AAGnE,KAAK,KAAK,GAAG,OAAO,CAClB,MAAM,OAAO,iBAAiB,CAAC,MAAM,EACnC,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,GACR,SAAS,GACT,MAAM,CACT,CAAA;AAED,KAAK,aAAa,GAAG,KAAK,GAAG,OAAO,GAAG,OAAO,CAAA;AAE9C,QAAA,MAAM,UAAU,sFAQN,CAAA;AAEV,QAAA,MAAM,0BAA0B,yEAE/B,CAAA;AAED,YAAY,EAAE,kBAAkB,EAAE,KAAK,EAAE,aAAa,EAAE,CAAA;AAExD,OAAO,EACL,MAAM,EACN,OAAO,EACP,KAAK,EACL,KAAK,EACL,WAAW,IAAI,OAAO,EACtB,gBAAgB,IAAI,SAAS,EAC7B,WAAW,EACX,UAAU,EACV,0BAA0B,EAC1B,UAAU,EACV,aAAa,EACb,QAAQ,GACT,CAAA;AAED,eAAe,iBAAiB,CAAA"}
|