@app-studio/web 0.8.76 → 0.8.77
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +171 -0
- package/dist/components/Chart/Chart/ChartColors.d.ts +20 -0
- package/dist/components/Separator/Separator.d.ts +1 -0
- package/dist/web.cjs.development.js +36 -5
- package/dist/web.cjs.development.js.map +1 -1
- package/dist/web.cjs.production.min.js +1 -1
- package/dist/web.cjs.production.min.js.map +1 -1
- package/dist/web.esm.js +36 -6
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +40 -8
- package/dist/web.umd.development.js.map +1 -1
- package/dist/web.umd.production.min.js +1 -1
- package/dist/web.umd.production.min.js.map +1 -1
- package/package.json +1 -1
package/dist/web.esm.js
CHANGED
|
@@ -22,7 +22,6 @@ import 'core-js/modules/web.url.js';
|
|
|
22
22
|
import 'core-js/modules/web.url.to-json.js';
|
|
23
23
|
import 'core-js/modules/web.url-search-params.js';
|
|
24
24
|
import { create } from 'zustand';
|
|
25
|
-
import 'src/components/Badge/Badge';
|
|
26
25
|
import 'core-js/modules/es.string.ends-with.js';
|
|
27
26
|
import 'core-js/modules/es.string.match.js';
|
|
28
27
|
import 'core-js/modules/es.string.search.js';
|
|
@@ -4748,8 +4747,32 @@ Carousel.Item = CarouselItemComponent; // Compound component pattern
|
|
|
4748
4747
|
Carousel.Previous = CarouselPreviousComponent; // Compound component pattern
|
|
4749
4748
|
Carousel.Next = CarouselNextComponent; // Compound component pattern
|
|
4750
4749
|
|
|
4750
|
+
/**
|
|
4751
|
+
* Chart Colors
|
|
4752
|
+
*
|
|
4753
|
+
* Defines a consistent color scheme for all chart examples.
|
|
4754
|
+
* These colors should be used in the same order across all chart types
|
|
4755
|
+
* to ensure consistency between the charts and their legends.
|
|
4756
|
+
*/
|
|
4757
|
+
var CHART_COLORS = {
|
|
4758
|
+
// Primary colors for all charts
|
|
4759
|
+
blue: 'color.blue.500',
|
|
4760
|
+
green: 'color.green.500',
|
|
4761
|
+
purple: 'color.purple.500',
|
|
4762
|
+
orange: 'color.orange.500',
|
|
4763
|
+
red: 'color.red.500',
|
|
4764
|
+
// Additional colors if needed
|
|
4765
|
+
teal: 'color.teal.500',
|
|
4766
|
+
pink: 'color.pink.500',
|
|
4767
|
+
indigo: 'color.indigo.500',
|
|
4768
|
+
yellow: 'color.yellow.500',
|
|
4769
|
+
cyan: 'color.cyan.500'
|
|
4770
|
+
};
|
|
4771
|
+
// Default color array for consistent ordering
|
|
4772
|
+
var DEFAULT_CHART_COLORS = [CHART_COLORS.blue, CHART_COLORS.green, CHART_COLORS.purple, CHART_COLORS.orange, CHART_COLORS.red, CHART_COLORS.teal, CHART_COLORS.pink, CHART_COLORS.indigo, CHART_COLORS.yellow, CHART_COLORS.cyan];
|
|
4773
|
+
|
|
4751
4774
|
// Default colors for chart series
|
|
4752
|
-
var DEFAULT_COLORS =
|
|
4775
|
+
var DEFAULT_COLORS = DEFAULT_CHART_COLORS;
|
|
4753
4776
|
// Default styles for chart container
|
|
4754
4777
|
var ChartContainerStyles = {
|
|
4755
4778
|
width: '100%',
|
|
@@ -4993,6 +5016,9 @@ var BarChart = _ref => {
|
|
|
4993
5016
|
hideTooltip,
|
|
4994
5017
|
views
|
|
4995
5018
|
} = _ref;
|
|
5019
|
+
var {
|
|
5020
|
+
getColor
|
|
5021
|
+
} = useTheme();
|
|
4996
5022
|
// Calculate chart dimensions
|
|
4997
5023
|
var padding = {
|
|
4998
5024
|
top: 20,
|
|
@@ -5086,7 +5112,7 @@ var BarChart = _ref => {
|
|
|
5086
5112
|
y: y,
|
|
5087
5113
|
width: barWidth,
|
|
5088
5114
|
height: barHeight,
|
|
5089
|
-
fill: series.color,
|
|
5115
|
+
fill: series.color ? getColor(series.color) : 'black',
|
|
5090
5116
|
onMouseEnter: handleMouseEnter,
|
|
5091
5117
|
onMouseLeave: hideTooltip,
|
|
5092
5118
|
onClick: handleClick
|
|
@@ -5107,6 +5133,9 @@ var LineChart = _ref => {
|
|
|
5107
5133
|
views
|
|
5108
5134
|
} = _ref;
|
|
5109
5135
|
// Calculate chart dimensions
|
|
5136
|
+
var {
|
|
5137
|
+
getColor
|
|
5138
|
+
} = useTheme();
|
|
5110
5139
|
var padding = {
|
|
5111
5140
|
top: 20,
|
|
5112
5141
|
right: 20,
|
|
@@ -5197,11 +5226,11 @@ var LineChart = _ref => {
|
|
|
5197
5226
|
key: "series-" + seriesIndex
|
|
5198
5227
|
}, /*#__PURE__*/React.createElement("path", Object.assign({
|
|
5199
5228
|
d: generateAreaPath(series.data),
|
|
5200
|
-
fill: series.color,
|
|
5229
|
+
fill: series.color ? getColor(series.color) : 'black',
|
|
5201
5230
|
opacity: 0.1
|
|
5202
5231
|
}, views == null ? void 0 : views.area)), /*#__PURE__*/React.createElement("path", Object.assign({
|
|
5203
5232
|
d: generatePath(series.data),
|
|
5204
|
-
stroke: series.color
|
|
5233
|
+
stroke: series.color ? getColor(series.color) : 'black'
|
|
5205
5234
|
}, LineStyles, views == null ? void 0 : views.line)), series.data.map((value, dataIndex) => {
|
|
5206
5235
|
var x = padding.left + dataIndex / (data.labels.length - 1) * chartWidth;
|
|
5207
5236
|
var y = height - padding.bottom - value / maxValue * chartHeight * animationProgress;
|
|
@@ -15235,6 +15264,7 @@ var SeparatorComponent = props => {
|
|
|
15235
15264
|
return /*#__PURE__*/React.createElement(SeparatorView, Object.assign({}, props));
|
|
15236
15265
|
};
|
|
15237
15266
|
var Separator = SeparatorComponent;
|
|
15267
|
+
var Divider = SeparatorComponent;
|
|
15238
15268
|
|
|
15239
15269
|
var useSidebarState = function useSidebarState(defaultExpanded, expanded, onExpandedChange, breakpoint) {
|
|
15240
15270
|
if (defaultExpanded === void 0) {
|
|
@@ -17803,5 +17833,5 @@ var Tooltip = TooltipComponent;
|
|
|
17803
17833
|
Tooltip.Trigger = TooltipTrigger;
|
|
17804
17834
|
Tooltip.Content = TooltipContent;
|
|
17805
17835
|
|
|
17806
|
-
export { Accordion, Alert, ArrowIcon, AspectRatio, Avatar, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ComboBox, Command, ContextMenu, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DropdownMenu, DustBinIcon, EditIcon, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FormikCheckbox, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTextArea, FormikTextField, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, LikeIcon, Link, LinkedinIcon, Loader, LocationIcon, LockIcon, MagicWandIcon, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PrintIcon, ProfileIcon, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, Separator, SettingsIcon, ShapeIcon, ShareIcon, Sidebar, Slider, SliderIcon, SliderVerticalIcon, SpinnerIcon, StarIcon, SuccessIcon, Switch, Table, Tabs, Text, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Toast, Toggle, ToggleGroup, Tooltip, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, useMessageStore, useModalStore, useToast$1 as useToast };
|
|
17836
|
+
export { Accordion, Alert, ArrowIcon, AspectRatio, Avatar, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ComboBox, Command, ContextMenu, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, Divider, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DropdownMenu, DustBinIcon, EditIcon, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, FormikCheckbox, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTextArea, FormikTextField, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, LikeIcon, Link, LinkedinIcon, Loader, LocationIcon, LockIcon, MagicWandIcon, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PrintIcon, ProfileIcon, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, Separator, SettingsIcon, ShapeIcon, ShareIcon, Sidebar, Slider, SliderIcon, SliderVerticalIcon, SpinnerIcon, StarIcon, SuccessIcon, Switch, Table, Tabs, Text, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Toast, Toggle, ToggleGroup, Tooltip, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, useMessageStore, useModalStore, useToast$1 as useToast };
|
|
17807
17837
|
//# sourceMappingURL=web.esm.js.map
|