@app-studio/web 0.9.35 → 0.9.36
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/OKR/OKR/OKR.props.d.ts +72 -0
- package/dist/components/OKR/OKR/OKR.style.d.ts +19 -0
- package/dist/components/OKR/OKR/OKR.view.d.ts +4 -0
- package/dist/components/OKR/OKR.d.ts +4 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/pages/okr.page.d.ts +3 -0
- package/dist/web.cjs.development.js +429 -155
- 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 +429 -156
- package/dist/web.esm.js.map +1 -1
- package/dist/web.umd.development.js +429 -155
- 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/docs/README.md +2 -1
- package/docs/components/Flow.mdx +1 -0
- package/docs/components/OKR.mdx +475 -0
- package/docs/components/Title.mdx +1 -0
- package/docs/components/Tree.mdx +1 -0
- package/docs/components.md +178 -0
- package/package.json +1 -1
- package/docs/api-reference/README.md +0 -103
- package/docs/api-reference/data-display/flow.md +0 -220
- package/docs/api-reference/data-display/tree.md +0 -210
- package/docs/api-reference/form/chat-input.md +0 -206
- package/docs/api-reference/utility/button.md +0 -145
- package/docs/api-reference/utility/title.md +0 -301
package/dist/web.esm.js
CHANGED
|
@@ -19528,6 +19528,404 @@ NavigationMenu.Trigger = NavigationMenuTrigger;
|
|
|
19528
19528
|
NavigationMenu.Content = NavigationMenuContent;
|
|
19529
19529
|
NavigationMenu.Link = NavigationMenuLink;
|
|
19530
19530
|
|
|
19531
|
+
var _excluded$X = ["value", "max", "color", "backgroundColor", "height", "radius", "views", "themeMode"];
|
|
19532
|
+
var ProgressBarView = _ref => {
|
|
19533
|
+
var {
|
|
19534
|
+
value = 0,
|
|
19535
|
+
max = 100,
|
|
19536
|
+
color = 'theme.primary',
|
|
19537
|
+
backgroundColor = 'color.gray.200',
|
|
19538
|
+
height = 8,
|
|
19539
|
+
radius = 4,
|
|
19540
|
+
views,
|
|
19541
|
+
themeMode: elementMode
|
|
19542
|
+
} = _ref,
|
|
19543
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$X);
|
|
19544
|
+
var {
|
|
19545
|
+
getColor,
|
|
19546
|
+
themeMode
|
|
19547
|
+
} = useTheme();
|
|
19548
|
+
var currentMode = elementMode ? elementMode : themeMode;
|
|
19549
|
+
var percentage = Math.min(100, Math.max(0, value / max * 100));
|
|
19550
|
+
var trackColor = getColor(backgroundColor, {
|
|
19551
|
+
themeMode: currentMode
|
|
19552
|
+
});
|
|
19553
|
+
var barColor = getColor(color, {
|
|
19554
|
+
themeMode: currentMode
|
|
19555
|
+
});
|
|
19556
|
+
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
19557
|
+
role: "progressbar",
|
|
19558
|
+
"aria-valuenow": value,
|
|
19559
|
+
"aria-valuemin": 0,
|
|
19560
|
+
"aria-valuemax": max,
|
|
19561
|
+
width: "100%",
|
|
19562
|
+
height: height,
|
|
19563
|
+
backgroundColor: trackColor,
|
|
19564
|
+
borderRadius: radius,
|
|
19565
|
+
overflow: "hidden"
|
|
19566
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
19567
|
+
width: percentage + "%",
|
|
19568
|
+
height: "100%",
|
|
19569
|
+
backgroundColor: barColor,
|
|
19570
|
+
borderRadius: radius
|
|
19571
|
+
}, views == null ? void 0 : views.bar)));
|
|
19572
|
+
};
|
|
19573
|
+
|
|
19574
|
+
/**
|
|
19575
|
+
* ProgressBar component displays completion status of a task or process.
|
|
19576
|
+
*/
|
|
19577
|
+
var ProgressBarComponent = props => (/*#__PURE__*/React.createElement(ProgressBarView, Object.assign({}, props)));
|
|
19578
|
+
var ProgressBar = ProgressBarComponent;
|
|
19579
|
+
|
|
19580
|
+
var getThemes$2 = themeMode => {
|
|
19581
|
+
return {
|
|
19582
|
+
default: {
|
|
19583
|
+
indicator: {
|
|
19584
|
+
backgroundColor: 'color.gray.400'
|
|
19585
|
+
},
|
|
19586
|
+
label: {
|
|
19587
|
+
color: 'color.gray.700'
|
|
19588
|
+
}
|
|
19589
|
+
},
|
|
19590
|
+
info: {
|
|
19591
|
+
indicator: {
|
|
19592
|
+
backgroundColor: 'color.blue.500'
|
|
19593
|
+
},
|
|
19594
|
+
label: {
|
|
19595
|
+
color: 'color.blue.700'
|
|
19596
|
+
}
|
|
19597
|
+
},
|
|
19598
|
+
success: {
|
|
19599
|
+
indicator: {
|
|
19600
|
+
backgroundColor: 'color.green.500'
|
|
19601
|
+
},
|
|
19602
|
+
label: {
|
|
19603
|
+
color: 'color.green.700'
|
|
19604
|
+
}
|
|
19605
|
+
},
|
|
19606
|
+
warning: {
|
|
19607
|
+
indicator: {
|
|
19608
|
+
backgroundColor: 'color.orange.500'
|
|
19609
|
+
},
|
|
19610
|
+
label: {
|
|
19611
|
+
color: 'color.orange.700'
|
|
19612
|
+
}
|
|
19613
|
+
},
|
|
19614
|
+
error: {
|
|
19615
|
+
indicator: {
|
|
19616
|
+
backgroundColor: 'color.red.500'
|
|
19617
|
+
},
|
|
19618
|
+
label: {
|
|
19619
|
+
color: 'color.red.700'
|
|
19620
|
+
}
|
|
19621
|
+
}
|
|
19622
|
+
};
|
|
19623
|
+
};
|
|
19624
|
+
|
|
19625
|
+
var _excluded$Y = ["label", "status", "views", "themeMode"];
|
|
19626
|
+
var StatusIndicatorView = _ref => {
|
|
19627
|
+
var {
|
|
19628
|
+
label,
|
|
19629
|
+
status = 'default',
|
|
19630
|
+
views,
|
|
19631
|
+
themeMode: elementMode
|
|
19632
|
+
} = _ref,
|
|
19633
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Y);
|
|
19634
|
+
var {
|
|
19635
|
+
themeMode
|
|
19636
|
+
} = useTheme();
|
|
19637
|
+
var themes = getThemes$2();
|
|
19638
|
+
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
19639
|
+
alignItems: "center",
|
|
19640
|
+
gap: 8,
|
|
19641
|
+
role: "status-indicator"
|
|
19642
|
+
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
19643
|
+
role: "status-dot",
|
|
19644
|
+
width: "8px",
|
|
19645
|
+
height: "8px",
|
|
19646
|
+
borderRadius: "50%"
|
|
19647
|
+
}, themes[status].indicator, views == null ? void 0 : views.indicator)), label && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19648
|
+
role: "status-label",
|
|
19649
|
+
fontSize: "14px",
|
|
19650
|
+
lineHeight: "20px"
|
|
19651
|
+
}, themes[status].label, views == null ? void 0 : views.label), label)));
|
|
19652
|
+
};
|
|
19653
|
+
|
|
19654
|
+
var StatusIndicator = props => (/*#__PURE__*/React.createElement(StatusIndicatorView, Object.assign({}, props)));
|
|
19655
|
+
|
|
19656
|
+
var getOKRTheme = mode => {
|
|
19657
|
+
var isDark = mode === 'dark';
|
|
19658
|
+
return {
|
|
19659
|
+
container: {
|
|
19660
|
+
width: '100%',
|
|
19661
|
+
gap: 16
|
|
19662
|
+
},
|
|
19663
|
+
objectiveCard: {
|
|
19664
|
+
backgroundColor: isDark ? 'rgba(15, 23, 42, 0.6)' : 'color.white',
|
|
19665
|
+
borderColor: isDark ? 'rgba(148, 163, 184, 0.24)' : 'color.gray.200',
|
|
19666
|
+
borderWidth: '1px',
|
|
19667
|
+
borderStyle: 'solid',
|
|
19668
|
+
borderRadius: 16,
|
|
19669
|
+
padding: 24,
|
|
19670
|
+
gap: 20
|
|
19671
|
+
},
|
|
19672
|
+
tag: {
|
|
19673
|
+
display: 'inline-flex',
|
|
19674
|
+
alignItems: 'center',
|
|
19675
|
+
padding: '4px 10px',
|
|
19676
|
+
borderRadius: 999,
|
|
19677
|
+
backgroundColor: isDark ? 'rgba(148, 163, 184, 0.16)' : 'color.gray.100'
|
|
19678
|
+
},
|
|
19679
|
+
keyResultItem: {
|
|
19680
|
+
padding: 16,
|
|
19681
|
+
borderRadius: 12,
|
|
19682
|
+
borderWidth: '1px',
|
|
19683
|
+
borderStyle: 'solid',
|
|
19684
|
+
borderColor: isDark ? 'rgba(148, 163, 184, 0.18)' : 'color.gray.200',
|
|
19685
|
+
backgroundColor: isDark ? 'rgba(15, 23, 42, 0.35)' : 'color.gray.50',
|
|
19686
|
+
gap: 12
|
|
19687
|
+
},
|
|
19688
|
+
divider: {
|
|
19689
|
+
height: 1,
|
|
19690
|
+
backgroundColor: isDark ? 'rgba(148, 163, 184, 0.24)' : 'color.gray.200',
|
|
19691
|
+
width: '100%'
|
|
19692
|
+
}
|
|
19693
|
+
};
|
|
19694
|
+
};
|
|
19695
|
+
var STATUS_METADATA = {
|
|
19696
|
+
notStarted: {
|
|
19697
|
+
indicator: 'info',
|
|
19698
|
+
label: 'Not started'
|
|
19699
|
+
},
|
|
19700
|
+
onTrack: {
|
|
19701
|
+
indicator: 'success',
|
|
19702
|
+
label: 'On track'
|
|
19703
|
+
},
|
|
19704
|
+
atRisk: {
|
|
19705
|
+
indicator: 'warning',
|
|
19706
|
+
label: 'At risk'
|
|
19707
|
+
},
|
|
19708
|
+
offTrack: {
|
|
19709
|
+
indicator: 'error',
|
|
19710
|
+
label: 'Off track'
|
|
19711
|
+
},
|
|
19712
|
+
achieved: {
|
|
19713
|
+
indicator: 'success',
|
|
19714
|
+
label: 'Achieved'
|
|
19715
|
+
}
|
|
19716
|
+
};
|
|
19717
|
+
var deriveStatusFromProgress = progress => {
|
|
19718
|
+
if (progress >= 100) {
|
|
19719
|
+
return 'achieved';
|
|
19720
|
+
}
|
|
19721
|
+
if (progress >= 70) {
|
|
19722
|
+
return 'onTrack';
|
|
19723
|
+
}
|
|
19724
|
+
if (progress >= 40) {
|
|
19725
|
+
return 'atRisk';
|
|
19726
|
+
}
|
|
19727
|
+
if (progress > 0) {
|
|
19728
|
+
return 'offTrack';
|
|
19729
|
+
}
|
|
19730
|
+
return 'notStarted';
|
|
19731
|
+
};
|
|
19732
|
+
var clampProgress = value => {
|
|
19733
|
+
if (typeof value !== 'number' || Number.isNaN(value)) {
|
|
19734
|
+
return 0;
|
|
19735
|
+
}
|
|
19736
|
+
return Math.max(0, Math.min(100, Math.round(value)));
|
|
19737
|
+
};
|
|
19738
|
+
|
|
19739
|
+
var formatPercentage = value => value + "%";
|
|
19740
|
+
var formatConfidence = confidence => {
|
|
19741
|
+
if (!confidence) {
|
|
19742
|
+
return undefined;
|
|
19743
|
+
}
|
|
19744
|
+
return confidence.charAt(0).toUpperCase() + confidence.slice(1);
|
|
19745
|
+
};
|
|
19746
|
+
var getObjectiveProgress = objective => {
|
|
19747
|
+
if (typeof objective.progress === 'number') {
|
|
19748
|
+
return clampProgress(objective.progress);
|
|
19749
|
+
}
|
|
19750
|
+
if (!objective.keyResults.length) {
|
|
19751
|
+
return 0;
|
|
19752
|
+
}
|
|
19753
|
+
var total = objective.keyResults.reduce((acc, keyResult) => {
|
|
19754
|
+
var _keyResult$progress;
|
|
19755
|
+
return acc + ((_keyResult$progress = keyResult.progress) != null ? _keyResult$progress : 0);
|
|
19756
|
+
}, 0);
|
|
19757
|
+
return clampProgress(total / objective.keyResults.length);
|
|
19758
|
+
};
|
|
19759
|
+
var renderStatusIndicator = (status, themeMode, views) => {
|
|
19760
|
+
var metadata = STATUS_METADATA[status];
|
|
19761
|
+
return /*#__PURE__*/React.createElement(StatusIndicator, {
|
|
19762
|
+
themeMode: themeMode,
|
|
19763
|
+
status: metadata.indicator,
|
|
19764
|
+
label: metadata.label,
|
|
19765
|
+
views: views
|
|
19766
|
+
});
|
|
19767
|
+
};
|
|
19768
|
+
var OKRView = _ref => {
|
|
19769
|
+
var {
|
|
19770
|
+
objectives,
|
|
19771
|
+
themeMode: elementMode,
|
|
19772
|
+
views,
|
|
19773
|
+
onKeyResultClick,
|
|
19774
|
+
renderObjectiveFooter,
|
|
19775
|
+
renderKeyResultFooter
|
|
19776
|
+
} = _ref;
|
|
19777
|
+
var {
|
|
19778
|
+
themeMode
|
|
19779
|
+
} = useTheme();
|
|
19780
|
+
var currentMode = elementMode || themeMode || 'light';
|
|
19781
|
+
var theme = getOKRTheme(currentMode);
|
|
19782
|
+
var secondaryTextColor = currentMode === 'dark' ? 'color.gray.200' : 'color.gray.600';
|
|
19783
|
+
var subtleTextColor = currentMode === 'dark' ? 'color.gray.300' : 'color.gray.500';
|
|
19784
|
+
var tagTextColor = currentMode === 'dark' ? 'color.gray.100' : 'color.gray.700';
|
|
19785
|
+
return /*#__PURE__*/React.createElement(Vertical, Object.assign({}, theme.container, views == null ? void 0 : views.container), objectives.map(objective => {
|
|
19786
|
+
var _objective$status, _objective$tags, _views$objectiveProgr, _views$objectiveProgr2, _views$objectiveProgr3, _views$objectiveProgr4;
|
|
19787
|
+
var objectiveProgress = getObjectiveProgress(objective);
|
|
19788
|
+
var objectiveStatus = (_objective$status = objective.status) != null ? _objective$status : deriveStatusFromProgress(objectiveProgress);
|
|
19789
|
+
var objectiveFooter = renderObjectiveFooter == null ? void 0 : renderObjectiveFooter(objective);
|
|
19790
|
+
return /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
19791
|
+
key: objective.id
|
|
19792
|
+
}, theme.objectiveCard, views == null ? void 0 : views.objectiveCard), /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
19793
|
+
justifyContent: "space-between",
|
|
19794
|
+
alignItems: "flex-start",
|
|
19795
|
+
flexWrap: "wrap",
|
|
19796
|
+
gap: 16
|
|
19797
|
+
}, views == null ? void 0 : views.objectiveHeader), /*#__PURE__*/React.createElement(Vertical, {
|
|
19798
|
+
gap: 10,
|
|
19799
|
+
minWidth: 240
|
|
19800
|
+
}, /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19801
|
+
size: "lg",
|
|
19802
|
+
weight: "semiBold"
|
|
19803
|
+
}, views == null ? void 0 : views.objectiveTitle), objective.title), objective.description && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19804
|
+
size: "sm",
|
|
19805
|
+
color: secondaryTextColor
|
|
19806
|
+
}, views == null ? void 0 : views.objectiveDescription), objective.description)), (_objective$tags = objective.tags) != null && _objective$tags.length ? (/*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
19807
|
+
gap: 8,
|
|
19808
|
+
flexWrap: "wrap"
|
|
19809
|
+
}, views == null ? void 0 : views.objectiveTags), objective.tags.map(tag => (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
19810
|
+
key: tag
|
|
19811
|
+
}, theme.tag, views == null ? void 0 : views.tag), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19812
|
+
size: "xs",
|
|
19813
|
+
weight: "medium",
|
|
19814
|
+
color: tagTextColor
|
|
19815
|
+
}, views == null ? void 0 : views.tagText), tag)))))) : null), /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
19816
|
+
gap: 8,
|
|
19817
|
+
alignItems: "flex-end",
|
|
19818
|
+
minWidth: 160
|
|
19819
|
+
}, views == null ? void 0 : views.objectiveMeta), objective.owner && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19820
|
+
size: "sm",
|
|
19821
|
+
color: secondaryTextColor
|
|
19822
|
+
}, views == null ? void 0 : views.objectiveOwner), "Owner: ", objective.owner)), objective.timeframe && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19823
|
+
size: "sm",
|
|
19824
|
+
color: subtleTextColor
|
|
19825
|
+
}, views == null ? void 0 : views.objectiveTimeframe), objective.timeframe)), renderStatusIndicator(objectiveStatus, currentMode, views == null ? void 0 : views.objectiveStatus))), /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
19826
|
+
gap: 8
|
|
19827
|
+
}, views == null ? void 0 : views.objectiveProgressSection), /*#__PURE__*/React.createElement(Horizontal, {
|
|
19828
|
+
justifyContent: "space-between",
|
|
19829
|
+
alignItems: "center"
|
|
19830
|
+
}, /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19831
|
+
size: "sm",
|
|
19832
|
+
color: secondaryTextColor
|
|
19833
|
+
}, views == null ? void 0 : views.objectiveProgressLabel), "Progress"), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19834
|
+
size: "sm",
|
|
19835
|
+
weight: "semiBold"
|
|
19836
|
+
}, views == null ? void 0 : views.objectiveProgressValue), formatPercentage(objectiveProgress))), /*#__PURE__*/React.createElement(ProgressBar, {
|
|
19837
|
+
value: objectiveProgress,
|
|
19838
|
+
max: 100,
|
|
19839
|
+
views: {
|
|
19840
|
+
container: Object.assign({
|
|
19841
|
+
width: '100%'
|
|
19842
|
+
}, (_views$objectiveProgr = views == null || (_views$objectiveProgr2 = views.objectiveProgressBar) == null ? void 0 : _views$objectiveProgr2.container) != null ? _views$objectiveProgr : {}),
|
|
19843
|
+
bar: Object.assign({}, (_views$objectiveProgr3 = views == null || (_views$objectiveProgr4 = views.objectiveProgressBar) == null ? void 0 : _views$objectiveProgr4.bar) != null ? _views$objectiveProgr3 : {})
|
|
19844
|
+
}
|
|
19845
|
+
})), /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
19846
|
+
gap: 16
|
|
19847
|
+
}, views == null ? void 0 : views.keyResultList), objective.keyResults.map((keyResult, index) => {
|
|
19848
|
+
var _keyResult$status, _keyResult$tags, _views$keyResultProgr, _views$keyResultProgr2, _views$keyResultProgr3, _views$keyResultProgr4;
|
|
19849
|
+
var progress = clampProgress(keyResult.progress);
|
|
19850
|
+
var keyResultStatus = (_keyResult$status = keyResult.status) != null ? _keyResult$status : deriveStatusFromProgress(progress);
|
|
19851
|
+
var keyResultFooter = renderKeyResultFooter == null ? void 0 : renderKeyResultFooter(keyResult, objective);
|
|
19852
|
+
var showDivider = index < objective.keyResults.length - 1;
|
|
19853
|
+
return /*#__PURE__*/React.createElement(Vertical, {
|
|
19854
|
+
key: keyResult.id,
|
|
19855
|
+
gap: 12
|
|
19856
|
+
}, /*#__PURE__*/React.createElement(Vertical, Object.assign({
|
|
19857
|
+
role: onKeyResultClick ? 'button' : undefined,
|
|
19858
|
+
cursor: onKeyResultClick ? 'pointer' : undefined,
|
|
19859
|
+
onClick: onKeyResultClick ? () => onKeyResultClick(keyResult, objective) : undefined
|
|
19860
|
+
}, theme.keyResultItem, views == null ? void 0 : views.keyResultItem), /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
19861
|
+
justifyContent: "space-between",
|
|
19862
|
+
alignItems: "flex-start",
|
|
19863
|
+
flexWrap: "wrap",
|
|
19864
|
+
gap: 16
|
|
19865
|
+
}, views == null ? void 0 : views.keyResultHeader), /*#__PURE__*/React.createElement(Vertical, {
|
|
19866
|
+
gap: 8,
|
|
19867
|
+
minWidth: 220
|
|
19868
|
+
}, /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19869
|
+
size: "md",
|
|
19870
|
+
weight: "medium"
|
|
19871
|
+
}, views == null ? void 0 : views.keyResultTitle), keyResult.title), keyResult.description && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19872
|
+
size: "sm",
|
|
19873
|
+
color: secondaryTextColor
|
|
19874
|
+
}, views == null ? void 0 : views.keyResultDescription), keyResult.description)), (keyResult.metric || keyResult.target || keyResult.current || keyResult.confidence || keyResult.lastUpdated) && (/*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
19875
|
+
gap: 12,
|
|
19876
|
+
flexWrap: "wrap"
|
|
19877
|
+
}, views == null ? void 0 : views.keyResultMeta), keyResult.metric && (/*#__PURE__*/React.createElement(Text, {
|
|
19878
|
+
size: "xs",
|
|
19879
|
+
color: secondaryTextColor
|
|
19880
|
+
}, "Metric: ", keyResult.metric)), keyResult.current && (/*#__PURE__*/React.createElement(Text, {
|
|
19881
|
+
size: "xs",
|
|
19882
|
+
color: secondaryTextColor
|
|
19883
|
+
}, "Current: ", keyResult.current)), keyResult.target && (/*#__PURE__*/React.createElement(Text, {
|
|
19884
|
+
size: "xs",
|
|
19885
|
+
color: secondaryTextColor
|
|
19886
|
+
}, "Target: ", keyResult.target)), keyResult.confidence && (/*#__PURE__*/React.createElement(Text, {
|
|
19887
|
+
size: "xs",
|
|
19888
|
+
color: secondaryTextColor
|
|
19889
|
+
}, "Confidence:", ' ', formatConfidence(keyResult.confidence))), keyResult.lastUpdated && (/*#__PURE__*/React.createElement(Text, {
|
|
19890
|
+
size: "xs",
|
|
19891
|
+
color: subtleTextColor
|
|
19892
|
+
}, "Updated: ", keyResult.lastUpdated)))), (_keyResult$tags = keyResult.tags) != null && _keyResult$tags.length ? (/*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
19893
|
+
gap: 8,
|
|
19894
|
+
flexWrap: "wrap"
|
|
19895
|
+
}, views == null ? void 0 : views.keyResultTags), keyResult.tags.map(tag => (/*#__PURE__*/React.createElement(View, Object.assign({
|
|
19896
|
+
key: tag
|
|
19897
|
+
}, theme.tag, views == null ? void 0 : views.keyResultTag), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19898
|
+
size: "xs",
|
|
19899
|
+
weight: "medium",
|
|
19900
|
+
color: tagTextColor
|
|
19901
|
+
}, views == null ? void 0 : views.keyResultTagText), tag)))))) : null), /*#__PURE__*/React.createElement(Vertical, {
|
|
19902
|
+
gap: 8,
|
|
19903
|
+
alignItems: "flex-end"
|
|
19904
|
+
}, keyResult.owner && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19905
|
+
size: "xs",
|
|
19906
|
+
color: secondaryTextColor
|
|
19907
|
+
}, views == null ? void 0 : views.keyResultOwner), "Owner: ", keyResult.owner)), renderStatusIndicator(keyResultStatus, currentMode, views == null ? void 0 : views.keyResultStatus))), /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
19908
|
+
alignItems: "center",
|
|
19909
|
+
gap: 12
|
|
19910
|
+
}, views == null ? void 0 : views.keyResultProgressSection), /*#__PURE__*/React.createElement(ProgressBar, {
|
|
19911
|
+
value: progress,
|
|
19912
|
+
max: 100,
|
|
19913
|
+
views: {
|
|
19914
|
+
container: Object.assign({
|
|
19915
|
+
width: '100%'
|
|
19916
|
+
}, (_views$keyResultProgr = views == null || (_views$keyResultProgr2 = views.keyResultProgressBar) == null ? void 0 : _views$keyResultProgr2.container) != null ? _views$keyResultProgr : {}),
|
|
19917
|
+
bar: Object.assign({}, (_views$keyResultProgr3 = views == null || (_views$keyResultProgr4 = views.keyResultProgressBar) == null ? void 0 : _views$keyResultProgr4.bar) != null ? _views$keyResultProgr3 : {})
|
|
19918
|
+
}
|
|
19919
|
+
}), /*#__PURE__*/React.createElement(Text, Object.assign({
|
|
19920
|
+
size: "xs",
|
|
19921
|
+
weight: "semiBold"
|
|
19922
|
+
}, views == null ? void 0 : views.keyResultProgressValue), formatPercentage(progress))), keyResultFooter ? (/*#__PURE__*/React.createElement(View, Object.assign({}, views == null ? void 0 : views.footer), keyResultFooter)) : null), showDivider ? /*#__PURE__*/React.createElement(View, Object.assign({}, theme.divider)) : null);
|
|
19923
|
+
})), objectiveFooter ? (/*#__PURE__*/React.createElement(View, Object.assign({}, views == null ? void 0 : views.footer), objectiveFooter)) : null);
|
|
19924
|
+
}));
|
|
19925
|
+
};
|
|
19926
|
+
|
|
19927
|
+
var OKR = props => /*#__PURE__*/React.createElement(OKRView, Object.assign({}, props));
|
|
19928
|
+
|
|
19531
19929
|
var defaultStyles = {};
|
|
19532
19930
|
// Create a context that includes both styles and the onClick function
|
|
19533
19931
|
var TableContext = /*#__PURE__*/createContext({
|
|
@@ -20310,7 +20708,7 @@ var HighlightStyles = {
|
|
|
20310
20708
|
})
|
|
20311
20709
|
};
|
|
20312
20710
|
|
|
20313
|
-
var _excluded$
|
|
20711
|
+
var _excluded$Z = ["text", "typingSpeed", "pauseTime", "onComplete", "showCursor", "cursorColor", "textStyle", "as"];
|
|
20314
20712
|
/**
|
|
20315
20713
|
* A component that creates a typewriter effect for text
|
|
20316
20714
|
*/
|
|
@@ -20324,7 +20722,7 @@ var TypewriterEffect = _ref => {
|
|
|
20324
20722
|
cursorColor = 'currentColor',
|
|
20325
20723
|
textStyle
|
|
20326
20724
|
} = _ref,
|
|
20327
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20725
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$Z);
|
|
20328
20726
|
// Convert text to array if it's a string
|
|
20329
20727
|
var textArray = Array.isArray(text) ? text : [text];
|
|
20330
20728
|
// State for the currently displayed text
|
|
@@ -20391,7 +20789,7 @@ var TypewriterEffect = _ref => {
|
|
|
20391
20789
|
}))))));
|
|
20392
20790
|
};
|
|
20393
20791
|
|
|
20394
|
-
var _excluded$
|
|
20792
|
+
var _excluded$_ = ["children", "highlightText", "highlightStyle", "highlightColor", "highlightSecondaryColor", "size", "responsive", "centered", "views", "highlightAnimate", "animate", "animationLoop", "highlightAnimationLoop", "highlightTypewriter", "highlightTypewriterDuration"];
|
|
20395
20793
|
function escapeRegExp(string) {
|
|
20396
20794
|
return string.replace(/[.*+?^${}()|[\\]\\/g, '\\$&');
|
|
20397
20795
|
}
|
|
@@ -20413,7 +20811,7 @@ var TitleView = _ref => {
|
|
|
20413
20811
|
highlightTypewriter: propHighlightTypewriter = false,
|
|
20414
20812
|
highlightTypewriterDuration = 3000
|
|
20415
20813
|
} = _ref,
|
|
20416
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
20814
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$_);
|
|
20417
20815
|
var {
|
|
20418
20816
|
ref,
|
|
20419
20817
|
inView
|
|
@@ -20688,7 +21086,7 @@ var getToggleVariants = (color, isLight) => ({
|
|
|
20688
21086
|
}
|
|
20689
21087
|
});
|
|
20690
21088
|
|
|
20691
|
-
var _excluded
|
|
21089
|
+
var _excluded$$ = ["children", "shape", "variant", "isHovered", "setIsHovered", "isDisabled", "isToggle", "setIsToggled", "onToggle", "views", "backgroundColor", "color", "themeMode"];
|
|
20692
21090
|
var ToggleView = _ref => {
|
|
20693
21091
|
var _ref2;
|
|
20694
21092
|
var {
|
|
@@ -20708,7 +21106,7 @@ var ToggleView = _ref => {
|
|
|
20708
21106
|
// 2nd candidate for main color
|
|
20709
21107
|
themeMode: elementMode
|
|
20710
21108
|
} = _ref,
|
|
20711
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded
|
|
21109
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$$);
|
|
20712
21110
|
/* theme helpers */
|
|
20713
21111
|
var {
|
|
20714
21112
|
getColor,
|
|
@@ -20752,7 +21150,7 @@ var ToggleView = _ref => {
|
|
|
20752
21150
|
}, props, views == null ? void 0 : views.container), children);
|
|
20753
21151
|
};
|
|
20754
21152
|
|
|
20755
|
-
var _excluded$
|
|
21153
|
+
var _excluded$10 = ["children", "shape", "variant", "isDisabled", "isToggled", "onToggle"];
|
|
20756
21154
|
// Destructuring properties from ToggleProps to be used within the ToggleComponent.
|
|
20757
21155
|
var ToggleComponent = _ref => {
|
|
20758
21156
|
var {
|
|
@@ -20764,7 +21162,7 @@ var ToggleComponent = _ref => {
|
|
|
20764
21162
|
isToggled = false,
|
|
20765
21163
|
onToggle
|
|
20766
21164
|
} = _ref,
|
|
20767
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
21165
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$10);
|
|
20768
21166
|
// Initializing toggle state and set state functions using the custom hook useToggleState.
|
|
20769
21167
|
var {
|
|
20770
21168
|
isHovered,
|
|
@@ -21099,7 +21497,7 @@ var DropdownMenuItemStates = {
|
|
|
21099
21497
|
}
|
|
21100
21498
|
};
|
|
21101
21499
|
|
|
21102
|
-
var _excluded
|
|
21500
|
+
var _excluded$11 = ["children", "views"],
|
|
21103
21501
|
_excluded2$f = ["items", "side", "align", "views"],
|
|
21104
21502
|
_excluded3$9 = ["item", "views"],
|
|
21105
21503
|
_excluded4$8 = ["views"],
|
|
@@ -21140,7 +21538,7 @@ var DropdownMenuTrigger = _ref2 => {
|
|
|
21140
21538
|
children,
|
|
21141
21539
|
views
|
|
21142
21540
|
} = _ref2,
|
|
21143
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded
|
|
21541
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$11);
|
|
21144
21542
|
var {
|
|
21145
21543
|
isOpen,
|
|
21146
21544
|
setIsOpen,
|
|
@@ -21393,7 +21791,7 @@ var DropdownMenuView = _ref6 => {
|
|
|
21393
21791
|
}));
|
|
21394
21792
|
};
|
|
21395
21793
|
|
|
21396
|
-
var _excluded$
|
|
21794
|
+
var _excluded$12 = ["trigger", "items", "size", "variant", "side", "align", "defaultOpen", "views"];
|
|
21397
21795
|
/**
|
|
21398
21796
|
* DropdownMenu component for displaying a menu when clicking on a trigger element.
|
|
21399
21797
|
*/
|
|
@@ -21408,7 +21806,7 @@ var DropdownMenuComponent = _ref => {
|
|
|
21408
21806
|
defaultOpen = false,
|
|
21409
21807
|
views
|
|
21410
21808
|
} = _ref,
|
|
21411
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
21809
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$12);
|
|
21412
21810
|
var {
|
|
21413
21811
|
isOpen,
|
|
21414
21812
|
setIsOpen,
|
|
@@ -21822,7 +22220,7 @@ var DefaultColorPalette$1 = [
|
|
|
21822
22220
|
category: 'neutral'
|
|
21823
22221
|
}];
|
|
21824
22222
|
|
|
21825
|
-
var _excluded$
|
|
22223
|
+
var _excluded$13 = ["id", "name", "label", "placeholder", "helperText", "views", "size", "shape", "variant", "error", "isDisabled", "isReadOnly", "predefinedColors", "showCustomInput", "showRecentColors", "isOpen", "selectedColor", "recentColors", "customColor", "handleToggle", "handleColorSelect", "handleCustomColorChange", "handleCustomColorSubmit", "triggerRef", "dropdownRef"];
|
|
21826
22224
|
var ColorPickerView = _ref => {
|
|
21827
22225
|
var {
|
|
21828
22226
|
// Basic props
|
|
@@ -21857,7 +22255,7 @@ var ColorPickerView = _ref => {
|
|
|
21857
22255
|
dropdownRef
|
|
21858
22256
|
// Other props
|
|
21859
22257
|
} = _ref,
|
|
21860
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
22258
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$13);
|
|
21861
22259
|
var {
|
|
21862
22260
|
getColor
|
|
21863
22261
|
} = useTheme();
|
|
@@ -24187,7 +24585,7 @@ var useEmojiPickerState = props => {
|
|
|
24187
24585
|
};
|
|
24188
24586
|
};
|
|
24189
24587
|
|
|
24190
|
-
var _excluded$
|
|
24588
|
+
var _excluded$14 = ["id", "name", "label", "placeholder", "helperText", "views", "size", "shape", "variant", "error", "isDisabled", "isReadOnly", "showSearch", "showCategories", "showRecentEmojis", "enabledCategories", "isOpen", "selectedEmoji", "recentEmojis", "searchQuery", "activeCategory", "filteredEmojis", "handleToggle", "handleEmojiSelect", "handleSearchChange", "handleCategoryChange", "triggerRef", "dropdownRef"];
|
|
24191
24589
|
var EmojiPickerView = _ref => {
|
|
24192
24590
|
var {
|
|
24193
24591
|
// Basic props
|
|
@@ -24225,7 +24623,7 @@ var EmojiPickerView = _ref => {
|
|
|
24225
24623
|
dropdownRef
|
|
24226
24624
|
// Other props
|
|
24227
24625
|
} = _ref,
|
|
24228
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
24626
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$14);
|
|
24229
24627
|
var {
|
|
24230
24628
|
getColor
|
|
24231
24629
|
} = useTheme();
|
|
@@ -24414,7 +24812,7 @@ var MenubarItemStates = {
|
|
|
24414
24812
|
}
|
|
24415
24813
|
};
|
|
24416
24814
|
|
|
24417
|
-
var _excluded$
|
|
24815
|
+
var _excluded$15 = ["children", "orientation", "size", "variant", "views"];
|
|
24418
24816
|
// Create context for the Menubar
|
|
24419
24817
|
var MenubarContext = /*#__PURE__*/createContext({
|
|
24420
24818
|
activeMenuId: null,
|
|
@@ -24451,7 +24849,7 @@ var MenubarRoot = _ref2 => {
|
|
|
24451
24849
|
variant = 'default',
|
|
24452
24850
|
views
|
|
24453
24851
|
} = _ref2,
|
|
24454
|
-
props = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
24852
|
+
props = _objectWithoutPropertiesLoose(_ref2, _excluded$15);
|
|
24455
24853
|
var Container = orientation === 'horizontal' ? Horizontal : Vertical;
|
|
24456
24854
|
return /*#__PURE__*/React.createElement(Container, Object.assign({
|
|
24457
24855
|
role: "menubar",
|
|
@@ -24771,7 +25169,7 @@ var MenubarView = _ref8 => {
|
|
|
24771
25169
|
})))))));
|
|
24772
25170
|
};
|
|
24773
25171
|
|
|
24774
|
-
var _excluded$
|
|
25172
|
+
var _excluded$16 = ["items", "orientation", "size", "variant", "defaultActiveMenuId", "defaultOpenMenuId", "views"];
|
|
24775
25173
|
/**
|
|
24776
25174
|
* Menubar component for creating horizontal or vertical menu bars with dropdown menus.
|
|
24777
25175
|
*/
|
|
@@ -24785,7 +25183,7 @@ var MenubarComponent = _ref => {
|
|
|
24785
25183
|
defaultOpenMenuId = null,
|
|
24786
25184
|
views
|
|
24787
25185
|
} = _ref,
|
|
24788
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25186
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$16);
|
|
24789
25187
|
var {
|
|
24790
25188
|
activeMenuId,
|
|
24791
25189
|
setActiveMenuId,
|
|
@@ -24967,7 +25365,7 @@ var DisabledButtonStyles = {
|
|
|
24967
25365
|
}
|
|
24968
25366
|
};
|
|
24969
25367
|
|
|
24970
|
-
var _excluded$
|
|
25368
|
+
var _excluded$17 = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "visiblePageNumbers", "views"];
|
|
24971
25369
|
var PaginationView = _ref => {
|
|
24972
25370
|
var {
|
|
24973
25371
|
currentPage,
|
|
@@ -24998,7 +25396,7 @@ var PaginationView = _ref => {
|
|
|
24998
25396
|
visiblePageNumbers,
|
|
24999
25397
|
views
|
|
25000
25398
|
} = _ref,
|
|
25001
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25399
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$17);
|
|
25002
25400
|
var handlePageChange = page => {
|
|
25003
25401
|
if (page < 1 || page > totalPages || page === currentPage) {
|
|
25004
25402
|
return;
|
|
@@ -25117,7 +25515,7 @@ var PaginationView = _ref => {
|
|
|
25117
25515
|
}, option.label))))));
|
|
25118
25516
|
};
|
|
25119
25517
|
|
|
25120
|
-
var _excluded$
|
|
25518
|
+
var _excluded$18 = ["currentPage", "totalPages", "onPageChange", "pageSize", "pageSizeOptions", "onPageSizeChange", "showPageSizeSelector", "showPageInfo", "maxPageButtons", "showFirstLastButtons", "size", "variant", "shape", "views"];
|
|
25121
25519
|
/**
|
|
25122
25520
|
* Pagination component for navigating through pages of content.
|
|
25123
25521
|
*/
|
|
@@ -25138,7 +25536,7 @@ var PaginationComponent = _ref => {
|
|
|
25138
25536
|
shape = 'rounded',
|
|
25139
25537
|
views
|
|
25140
25538
|
} = _ref,
|
|
25141
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25539
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$18);
|
|
25142
25540
|
var {
|
|
25143
25541
|
visiblePageNumbers
|
|
25144
25542
|
} = usePaginationState(currentPage, totalPages, maxPageButtons);
|
|
@@ -25162,55 +25560,6 @@ var PaginationComponent = _ref => {
|
|
|
25162
25560
|
};
|
|
25163
25561
|
var Pagination = PaginationComponent;
|
|
25164
25562
|
|
|
25165
|
-
var _excluded$17 = ["value", "max", "color", "backgroundColor", "height", "radius", "views", "themeMode"];
|
|
25166
|
-
var ProgressBarView = _ref => {
|
|
25167
|
-
var {
|
|
25168
|
-
value = 0,
|
|
25169
|
-
max = 100,
|
|
25170
|
-
color = 'theme.primary',
|
|
25171
|
-
backgroundColor = 'color.gray.200',
|
|
25172
|
-
height = 8,
|
|
25173
|
-
radius = 4,
|
|
25174
|
-
views,
|
|
25175
|
-
themeMode: elementMode
|
|
25176
|
-
} = _ref,
|
|
25177
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$17);
|
|
25178
|
-
var {
|
|
25179
|
-
getColor,
|
|
25180
|
-
themeMode
|
|
25181
|
-
} = useTheme();
|
|
25182
|
-
var currentMode = elementMode ? elementMode : themeMode;
|
|
25183
|
-
var percentage = Math.min(100, Math.max(0, value / max * 100));
|
|
25184
|
-
var trackColor = getColor(backgroundColor, {
|
|
25185
|
-
themeMode: currentMode
|
|
25186
|
-
});
|
|
25187
|
-
var barColor = getColor(color, {
|
|
25188
|
-
themeMode: currentMode
|
|
25189
|
-
});
|
|
25190
|
-
return /*#__PURE__*/React.createElement(View, Object.assign({
|
|
25191
|
-
role: "progressbar",
|
|
25192
|
-
"aria-valuenow": value,
|
|
25193
|
-
"aria-valuemin": 0,
|
|
25194
|
-
"aria-valuemax": max,
|
|
25195
|
-
width: "100%",
|
|
25196
|
-
height: height,
|
|
25197
|
-
backgroundColor: trackColor,
|
|
25198
|
-
borderRadius: radius,
|
|
25199
|
-
overflow: "hidden"
|
|
25200
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
25201
|
-
width: percentage + "%",
|
|
25202
|
-
height: "100%",
|
|
25203
|
-
backgroundColor: barColor,
|
|
25204
|
-
borderRadius: radius
|
|
25205
|
-
}, views == null ? void 0 : views.bar)));
|
|
25206
|
-
};
|
|
25207
|
-
|
|
25208
|
-
/**
|
|
25209
|
-
* ProgressBar component displays completion status of a task or process.
|
|
25210
|
-
*/
|
|
25211
|
-
var ProgressBarComponent = props => (/*#__PURE__*/React.createElement(ProgressBarView, Object.assign({}, props)));
|
|
25212
|
-
var ProgressBar = ProgressBarComponent;
|
|
25213
|
-
|
|
25214
25563
|
/**
|
|
25215
25564
|
* Separator Styles
|
|
25216
25565
|
*
|
|
@@ -25264,7 +25613,7 @@ var DefaultSeparatorStyles = {
|
|
|
25264
25613
|
}
|
|
25265
25614
|
};
|
|
25266
25615
|
|
|
25267
|
-
var _excluded$
|
|
25616
|
+
var _excluded$19 = ["orientation", "variant", "thickness", "color", "spacing", "label", "decorative", "views", "themeMode"];
|
|
25268
25617
|
var SeparatorView = _ref => {
|
|
25269
25618
|
var {
|
|
25270
25619
|
orientation = 'horizontal',
|
|
@@ -25276,7 +25625,7 @@ var SeparatorView = _ref => {
|
|
|
25276
25625
|
decorative = false,
|
|
25277
25626
|
views
|
|
25278
25627
|
} = _ref,
|
|
25279
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25628
|
+
props = _objectWithoutPropertiesLoose(_ref, _excluded$19);
|
|
25280
25629
|
// Access theme if needed for future enhancements
|
|
25281
25630
|
var {
|
|
25282
25631
|
themeMode
|
|
@@ -25344,7 +25693,7 @@ var SeparatorComponent = props => {
|
|
|
25344
25693
|
var Separator = SeparatorComponent;
|
|
25345
25694
|
var Divider = SeparatorComponent;
|
|
25346
25695
|
|
|
25347
|
-
var _excluded$
|
|
25696
|
+
var _excluded$1a = ["isSupported", "isSharing", "onShare", "label", "children", "icon", "size", "isDisabled", "isLoading", "iconPosition", "disableWhenUnsupported"];
|
|
25348
25697
|
var ICON_SIZE_MAP = {
|
|
25349
25698
|
xs: 12,
|
|
25350
25699
|
sm: 14,
|
|
@@ -25367,7 +25716,7 @@ var ShareButtonView = _ref => {
|
|
|
25367
25716
|
iconPosition,
|
|
25368
25717
|
disableWhenUnsupported = true
|
|
25369
25718
|
} = _ref,
|
|
25370
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
25719
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1a);
|
|
25371
25720
|
var resolvedSize = size != null ? size : 'md';
|
|
25372
25721
|
var resolvedIcon = icon != null ? icon : (/*#__PURE__*/React.createElement(ShareIcon, {
|
|
25373
25722
|
widthHeight: ICON_SIZE_MAP[resolvedSize],
|
|
@@ -25469,14 +25818,14 @@ var useShareButton = props => {
|
|
|
25469
25818
|
};
|
|
25470
25819
|
};
|
|
25471
25820
|
|
|
25472
|
-
var _excluded$
|
|
25821
|
+
var _excluded$1b = ["shareData", "onShareStart", "onShareSuccess", "onShareCancel", "onShareError", "onUnsupported", "onClick"];
|
|
25473
25822
|
var ShareButtonComponent = props => {
|
|
25474
25823
|
var {
|
|
25475
25824
|
isSupported,
|
|
25476
25825
|
isSharing,
|
|
25477
25826
|
handleShare
|
|
25478
25827
|
} = useShareButton(props);
|
|
25479
|
-
var viewProps = _objectWithoutPropertiesLoose(props, _excluded$
|
|
25828
|
+
var viewProps = _objectWithoutPropertiesLoose(props, _excluded$1b);
|
|
25480
25829
|
return /*#__PURE__*/React.createElement(ShareButtonView, Object.assign({}, viewProps, {
|
|
25481
25830
|
isSupported: isSupported,
|
|
25482
25831
|
isSharing: isSharing,
|
|
@@ -25485,82 +25834,6 @@ var ShareButtonComponent = props => {
|
|
|
25485
25834
|
};
|
|
25486
25835
|
var ShareButton = ShareButtonComponent;
|
|
25487
25836
|
|
|
25488
|
-
var getThemes$2 = themeMode => {
|
|
25489
|
-
return {
|
|
25490
|
-
default: {
|
|
25491
|
-
indicator: {
|
|
25492
|
-
backgroundColor: 'color.gray.400'
|
|
25493
|
-
},
|
|
25494
|
-
label: {
|
|
25495
|
-
color: 'color.gray.700'
|
|
25496
|
-
}
|
|
25497
|
-
},
|
|
25498
|
-
info: {
|
|
25499
|
-
indicator: {
|
|
25500
|
-
backgroundColor: 'color.blue.500'
|
|
25501
|
-
},
|
|
25502
|
-
label: {
|
|
25503
|
-
color: 'color.blue.700'
|
|
25504
|
-
}
|
|
25505
|
-
},
|
|
25506
|
-
success: {
|
|
25507
|
-
indicator: {
|
|
25508
|
-
backgroundColor: 'color.green.500'
|
|
25509
|
-
},
|
|
25510
|
-
label: {
|
|
25511
|
-
color: 'color.green.700'
|
|
25512
|
-
}
|
|
25513
|
-
},
|
|
25514
|
-
warning: {
|
|
25515
|
-
indicator: {
|
|
25516
|
-
backgroundColor: 'color.orange.500'
|
|
25517
|
-
},
|
|
25518
|
-
label: {
|
|
25519
|
-
color: 'color.orange.700'
|
|
25520
|
-
}
|
|
25521
|
-
},
|
|
25522
|
-
error: {
|
|
25523
|
-
indicator: {
|
|
25524
|
-
backgroundColor: 'color.red.500'
|
|
25525
|
-
},
|
|
25526
|
-
label: {
|
|
25527
|
-
color: 'color.red.700'
|
|
25528
|
-
}
|
|
25529
|
-
}
|
|
25530
|
-
};
|
|
25531
|
-
};
|
|
25532
|
-
|
|
25533
|
-
var _excluded$1b = ["label", "status", "views", "themeMode"];
|
|
25534
|
-
var StatusIndicatorView = _ref => {
|
|
25535
|
-
var {
|
|
25536
|
-
label,
|
|
25537
|
-
status = 'default',
|
|
25538
|
-
views,
|
|
25539
|
-
themeMode: elementMode
|
|
25540
|
-
} = _ref,
|
|
25541
|
-
props = _objectWithoutPropertiesLoose(_ref, _excluded$1b);
|
|
25542
|
-
var {
|
|
25543
|
-
themeMode
|
|
25544
|
-
} = useTheme();
|
|
25545
|
-
var themes = getThemes$2();
|
|
25546
|
-
return /*#__PURE__*/React.createElement(Horizontal, Object.assign({
|
|
25547
|
-
alignItems: "center",
|
|
25548
|
-
gap: 8,
|
|
25549
|
-
role: "status-indicator"
|
|
25550
|
-
}, views == null ? void 0 : views.container, props), /*#__PURE__*/React.createElement(View, Object.assign({
|
|
25551
|
-
role: "status-dot",
|
|
25552
|
-
width: "8px",
|
|
25553
|
-
height: "8px",
|
|
25554
|
-
borderRadius: "50%"
|
|
25555
|
-
}, themes[status].indicator, views == null ? void 0 : views.indicator)), label && (/*#__PURE__*/React.createElement(Text, Object.assign({
|
|
25556
|
-
role: "status-label",
|
|
25557
|
-
fontSize: "14px",
|
|
25558
|
-
lineHeight: "20px"
|
|
25559
|
-
}, themes[status].label, views == null ? void 0 : views.label), label)));
|
|
25560
|
-
};
|
|
25561
|
-
|
|
25562
|
-
var StatusIndicator = props => (/*#__PURE__*/React.createElement(StatusIndicatorView, Object.assign({}, props)));
|
|
25563
|
-
|
|
25564
25837
|
var useSidebarState = function useSidebarState(defaultExpanded, expanded, onExpandedChange, breakpoint) {
|
|
25565
25838
|
if (defaultExpanded === void 0) {
|
|
25566
25839
|
defaultExpanded = true;
|
|
@@ -37193,5 +37466,5 @@ var AgentEval = props => {
|
|
|
37193
37466
|
return /*#__PURE__*/React.createElement(AgentEvalView, Object.assign({}, props, evalState));
|
|
37194
37467
|
};
|
|
37195
37468
|
|
|
37196
|
-
export { Accordion, AgentChat, AgentEval, AgentSession, AgentTrace, Alert, ArrowIcon, AspectRatio, AttachmentIcon, AttachmentPreview, AudioIcon, AudioInput, AudioWaveform, Avatar, Background, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, Calendar, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, ChatInput, CheckIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ColorInput, ColorPicker, ComboBox, Command, ContextMenu, CookieConsent, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, Divider, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DragHandleLinesIcon, DropdownMenu, DustBinIcon, EditIcon, EmojiPicker, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, Flow, FolderIcon, FormikChatInput, FormikCheckbox, FormikColorInput, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTagInput, FormikTextArea, FormikTextField, FormikUploader, GiftIcon, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, KanbanBoard, LikeIcon, Link, LinkedinIcon, Loader, LoadingSpinnerIcon, LocationIcon, LockIcon, LogoutIcon, MagicWandIcon, MediaPreview, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PowerOffIcon, PrintIcon, ProfileIcon, ProgressBar, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, SendIcon, Separator, SettingsIcon, ShapeIcon, ShareButton, ShareIcon, ShieldIcon, Sidebar, Slider, SliderIcon, SpinnerIcon, StarIcon, StatusIndicator, StopIcon, SuccessIcon, Switch, Table, Tabs, TagInput, Text, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Title, Toast, Toggle, ToggleGroup, Tooltip, TrashIcon, Tree, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, showToast, useMessageStore, useModalStore, useToast$1 as useToast };
|
|
37469
|
+
export { Accordion, AgentChat, AgentEval, AgentSession, AgentTrace, Alert, ArrowIcon, AspectRatio, AttachmentIcon, AttachmentPreview, AudioIcon, AudioInput, AudioWaveform, Avatar, Background, Badge, BatteryIcon, BluetoothIcon, BoldArrowIcon, BookmarkIcon, Button, Calendar, CalendarIcon, CameraIcon, Card, Carousel, Chart, ChartIcon, ChatInput, CheckIcon, Checkbox, ChevronIcon, ClockIcon, CloseEyeIcon, CloseIcon, CloudIcon, ColorInput, ColorPicker, ComboBox, Command, ContextMenu, CookieConsent, CopyIcon, CountryPicker, CropIcon, DatePicker, DeleteIcon, Divider, DocumentIcon, DownloadIcon, DragAndDrop, DragAndDropComponent, DragHandleIcon, DragHandleLinesIcon, DropdownMenu, DustBinIcon, EditIcon, EmojiPicker, ErrorIcon, ExternalLinkIcon, FacebookIcon, FileIcon, FileImage, FileSVG, FilterIcon, Flow, FolderIcon, FormikChatInput, FormikCheckbox, FormikColorInput, FormikComboBox, FormikCountryPicker, FormikDatePicker, FormikForm, FormikOTPInput, FormikPassword, FormikSelect, FormikSlider, FormikSwitch, FormikTagInput, FormikTextArea, FormikTextField, FormikUploader, GiftIcon, HeartIcon, HelpIcon, HomeIcon, HoverCard, Icon, ImageIcon, InfoIcon, InstagramIcon, KanbanBoard, LikeIcon, Link, LinkedinIcon, Loader, LoadingSpinnerIcon, LocationIcon, LockIcon, LogoutIcon, MagicWandIcon, MediaPreview, MenuIcon, Menubar, MessageLayout, MessageView, MicrophoneIcon, MinusIcon, Modal, MoonIcon, NavigationMenu, NotificationIcon, OKR, OTPInput, OpenEyeIcon, Pagination, PanelIcon, Password, PauseIcon, PlayIcon, PlusIcon, PowerOffIcon, PrintIcon, ProfileIcon, ProgressBar, RefreshIcon, Resizable, RotateIcon, SaveIcon, SearchIcon, Select, SendIcon, Separator, SettingsIcon, ShapeIcon, ShareButton, ShareIcon, ShieldIcon, Sidebar, Slider, SliderIcon, SpinnerIcon, StarIcon, StatusIndicator, StopIcon, SuccessIcon, Switch, Table, Tabs, TagInput, Text, TextArea, TextField, TextIcon, ThreadsIcon, TickIcon, Title, Toast, Toggle, ToggleGroup, Tooltip, TrashIcon, Tree, TwitchIcon, TwitterIcon, UnLikeIcon, UnlockIcon, UploadIcon, Uploader, UserIcon, VideoIcon, WarningIcon, WifiIcon, XIcon, YoutubeIcon, ZoomInIcon, ZoomOutIcon, hideMessage, hideModal, showMessage, showModal, showToast, useMessageStore, useModalStore, useToast$1 as useToast };
|
|
37197
37470
|
//# sourceMappingURL=web.esm.js.map
|