@odigos/ui-kit 0.0.16 → 0.0.17
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/CHANGELOG.md +16 -0
- package/lib/components/data-tab/index.d.ts +0 -1
- package/lib/components/drawer/drawer-header/index.d.ts +2 -2
- package/lib/components.js +45 -14
- package/lib/constants.js +9 -5
- package/lib/containers/overview-drawer/index.d.ts +2 -2
- package/lib/containers/source-modal/index.d.ts +0 -2
- package/lib/containers/source-selection-form/index.d.ts +0 -1
- package/lib/containers.js +129 -206
- package/lib/functions.js +15 -9
- package/lib/hooks.js +10 -10
- package/lib/icons.js +15 -7
- package/lib/index-B72aw6tI.js +23 -0
- package/lib/{index-D_Qn2U89.js → index-BJxaoI0G.js} +1 -8
- package/lib/{index-DiEc-llU.js → index-BQW5EUgp.js} +10 -7
- package/lib/index-BQs4sULy.js +32 -0
- package/lib/index-BVVVevuY.js +100 -0
- package/lib/index-BWqrekK4.js +11 -0
- package/lib/{index-D6cZdmUs.js → index-BiNX-Cge.js} +85 -130
- package/lib/{index-DM8CZWtL.js → index-BsH_egEe.js} +10 -1
- package/lib/{index-CKtl8KxE.js → index-BxQTUOME.js} +10 -12
- package/lib/index-C1PCuZgw.js +18 -0
- package/lib/{index-CLOUNx6Z.js → index-C3nz3TIx.js} +6 -8
- package/lib/{index-BGlk5VhF.js → index-CIXQeSHu.js} +1 -10
- package/lib/index-CIgHU72d.js +52 -0
- package/lib/index-DbfrGXPH.js +8 -0
- package/lib/{index-lL1o2K_5.js → index-G4WmxXds.js} +4 -21
- package/lib/{index-7-KCQK-x.js → index-Hz7AAE0t.js} +1 -1
- package/lib/{index-DH2zLaey.js → index-KOMAv-TS.js} +1 -8
- package/lib/index-RBS1MqCQ.js +37 -0
- package/lib/react-CjImwkhV.js +44 -0
- package/lib/store.js +6 -3
- package/lib/theme.js +86 -3
- package/lib/types.js +6 -215
- package/lib/useDarkMode-DxhIuVNi.js +201 -0
- package/lib/useSelectedStore-93bIo1kE.js +97 -0
- package/lib/useSetupStore-CoYx1UQw.js +211 -0
- package/lib/{useTransition-hWYVBuSi.js → useTimeAgo-weEj7br6.js} +544 -113
- package/lib/useTransition-D0wUpPGk.js +128 -0
- package/package.json +2 -1
- package/lib/components/auto-complete-input/auto-complete-input.stories.d.ts +0 -9
- package/lib/components/badge/badge.stories.d.ts +0 -13
- package/lib/components/button/button.stories.d.ts +0 -9
- package/lib/components/cancel-warning/cancel-warning.stories.d.ts +0 -9
- package/lib/components/checkbox/checkbox.stories.d.ts +0 -9
- package/lib/components/code/code.stories.d.ts +0 -9
- package/lib/components/condition-details/condition-details.stories.d.ts +0 -14
- package/lib/components/data-card/data-card.stories.d.ts +0 -10
- package/lib/components/data-tab/data-tab.stories.d.ts +0 -15
- package/lib/components/delete-warning/delete-warning.stories.d.ts +0 -9
- package/lib/components/describe-row/describe-row.stories.d.ts +0 -9
- package/lib/components/divider/divider.stories.d.ts +0 -9
- package/lib/components/docs-button/docs-button.stories.d.ts +0 -9
- package/lib/components/drawer/drawer.stories.d.ts +0 -10
- package/lib/components/dropdown/dropdown.stories.d.ts +0 -10
- package/lib/components/error-boundary/error-boundary.stories.d.ts +0 -9
- package/lib/components/extend-arrow/extend-arrow.stories.d.ts +0 -9
- package/lib/components/fade-loader/fade-loader.stories.d.ts +0 -9
- package/lib/components/field-error/field-error.stories.d.ts +0 -9
- package/lib/components/field-label/field-label.stories.d.ts +0 -9
- package/lib/components/header/header.stories.d.ts +0 -9
- package/lib/components/icon-button/icon-button.stories.d.ts +0 -9
- package/lib/components/icon-group/icon-group.stories.d.ts +0 -14
- package/lib/components/icon-title-badge/icon-title-badge.stories.d.ts +0 -9
- package/lib/components/icon-wrapped/icon-wrapped.stories.d.ts +0 -10
- package/lib/components/icons-nav/icons-nav.stories.d.ts +0 -9
- package/lib/components/image-controlled/image-controlled.stories.d.ts +0 -9
- package/lib/components/input/input.stories.d.ts +0 -9
- package/lib/components/input-list/input-list.stories.d.ts +0 -9
- package/lib/components/input-table/input-table.stories.d.ts +0 -9
- package/lib/components/interactive-table/interactive-table.stories.d.ts +0 -12
- package/lib/components/key-value-input-list/key-value-input-list.stories.d.ts +0 -9
- package/lib/components/modal/modal.stories.d.ts +0 -9
- package/lib/components/monitors-checkboxes/monitors-checkboxes.stories.d.ts +0 -9
- package/lib/components/monitors-icons/monitors-icons.stories.d.ts +0 -9
- package/lib/components/navigation-buttons/navigation-buttons.stories.d.ts +0 -9
- package/lib/components/no-data-found/no-data-found.stories.d.ts +0 -9
- package/lib/components/notification-note/notification-note.stories.d.ts +0 -10
- package/lib/components/section-title/section-title.stories.d.ts +0 -9
- package/lib/components/segment/segment.stories.d.ts +0 -9
- package/lib/components/skeleton-loader/skeleton-loader.stories.d.ts +0 -9
- package/lib/components/status/status.stories.d.ts +0 -9
- package/lib/components/stepper/stepper.stories.d.ts +0 -9
- package/lib/components/text/text.stories.d.ts +0 -9
- package/lib/components/textarea/textarea.stories.d.ts +0 -9
- package/lib/components/toggle/toggle.stories.d.ts +0 -9
- package/lib/components/tooltip/tooltip.stories.d.ts +0 -9
- package/lib/components/trace-loader/trace-loader.stories.d.ts +0 -9
- package/lib/components/warning-modal/warning-modal.stories.d.ts +0 -9
- package/lib/containers/action-drawer/action-drawer.stories.d.ts +0 -9
- package/lib/containers/action-form/action-form.stories.d.ts +0 -9
- package/lib/containers/action-modal/action-modal.stories.d.ts +0 -9
- package/lib/containers/action-table/action-table.stories.d.ts +0 -9
- package/lib/containers/await-pipeline/await-pipeline.stories.d.ts +0 -9
- package/lib/containers/compute-platform-select/compute-platform-select.stories.d.ts +0 -9
- package/lib/containers/compute-platforms/compute-platforms.stories.d.ts +0 -9
- package/lib/containers/compute-platforms-actions-menu/compute-platforms-actions-menu.stories.d.ts +0 -9
- package/lib/containers/data-flow/data-flow.stories.d.ts +0 -9
- package/lib/containers/data-flow-actions-menu/data-flow-actions-menu.stories.d.ts +0 -11
- package/lib/containers/destination-drawer/destination-drawer.stories.d.ts +0 -9
- package/lib/containers/destination-form/destination-form.stories.d.ts +0 -9
- package/lib/containers/destination-modal/destination-modal.stories.d.ts +0 -9
- package/lib/containers/destination-selection-form/destination-selection-form.stories.d.ts +0 -9
- package/lib/containers/destination-table/destination-table.stories.d.ts +0 -9
- package/lib/containers/dropdowns/connection-status-dropdown/connection-status-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/connection-type-dropdown/connection-type-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/error-dropdown/error-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/kind-dropdown/error-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/language-dropdown/language-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/monitor-dropdown/monitor-dropdown.stories.d.ts +0 -9
- package/lib/containers/dropdowns/namespace-dropdown/namespace-dropdown.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-drawer/instrumentation-rule-drawer.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-form/instrumentation-rule-form.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-modal/instrumentation-rule-modal.stories.d.ts +0 -9
- package/lib/containers/instrumentation-rule-table/instrumentation-rule-table.stories.d.ts +0 -9
- package/lib/containers/multi-source-control/multi-source-control.stories.d.ts +0 -9
- package/lib/containers/notification-manager/notification-manager.stories.d.ts +0 -9
- package/lib/containers/overview-drawer/overview-drawer.stories.d.ts +0 -9
- package/lib/containers/side-nav/side-nav.stories.d.ts +0 -9
- package/lib/containers/slack-invite/slack-invite.stories.d.ts +0 -9
- package/lib/containers/source-drawer/source-drawer.stories.d.ts +0 -9
- package/lib/containers/source-form/source-form.stories.d.ts +0 -9
- package/lib/containers/source-modal/source-modal.stories.d.ts +0 -9
- package/lib/containers/source-selection-form/fast/index.d.ts +0 -7
- package/lib/containers/source-selection-form/simple/controls/index.d.ts +0 -9
- package/lib/containers/source-selection-form/simple/index.d.ts +0 -7
- package/lib/containers/source-selection-form/simple/list/index.d.ts +0 -8
- package/lib/containers/source-selection-form/source-selection-form.stories.d.ts +0 -9
- package/lib/containers/source-table/source-table.stories.d.ts +0 -9
- package/lib/containers/system-overview/system-overview.stories.d.ts +0 -9
- package/lib/containers/table-cell-conditions/table-cell-conditions.stories.d.ts +0 -9
- package/lib/containers/toast-list/toast-list.stories.d.ts +0 -9
- package/lib/containers/toggle-dark-mode/toggle-dark-mode.stories.d.ts +0 -9
- package/lib/icons/actions/add-cluster-info-icon/add-cluster-info-icon.stories.d.ts +0 -8
- package/lib/icons/actions/delete-attribute-icon/delete-attribute-icon.stories.d.ts +0 -8
- package/lib/icons/actions/pii-masking-icon/pii-masking-icon.stories.d.ts +0 -8
- package/lib/icons/actions/rename-attribute-icon/rename-attribute-icon.stories.d.ts +0 -8
- package/lib/icons/actions/sampler-icon/sampler-icon.stories.d.ts +0 -8
- package/lib/icons/brand/odigos-logo/odigos-logo.stories.d.ts +0 -8
- package/lib/icons/brand/odigos-logo-text/odigos-logo-text.stories.d.ts +0 -8
- package/lib/icons/common/arrow-icon/arrow-icon.stories.d.ts +0 -8
- package/lib/icons/common/code-brackets-icon/code-brackets-icon.stories.d.ts +0 -8
- package/lib/icons/common/code-icon/code-icon.stories.d.ts +0 -8
- package/lib/icons/common/command-icon/command-icon.stories.d.ts +0 -8
- package/lib/icons/common/copy-icon/copy-icon.stories.d.ts +0 -8
- package/lib/icons/common/edit-icon/edit-icon.stories.d.ts +0 -8
- package/lib/icons/common/extend-arrow-icon/extend-arrow-icon.stories.d.ts +0 -8
- package/lib/icons/common/filter-icon/filter-icon.stories.d.ts +0 -8
- package/lib/icons/common/folder-icon/folder-icon.stories.d.ts +0 -8
- package/lib/icons/common/image-error-icon/image-error-icon.stories.d.ts +0 -8
- package/lib/icons/common/key-icon/key-icon.stories.d.ts +0 -8
- package/lib/icons/common/list-icon/list-icon.stories.d.ts +0 -8
- package/lib/icons/common/no-data-icon/no-data-icon.stories.d.ts +0 -8
- package/lib/icons/common/notebook-icon/notebook-icon.stories.d.ts +0 -8
- package/lib/icons/common/notification-icon/notification-icon.stories.d.ts +0 -8
- package/lib/icons/common/search-icon/search-icon.stories.d.ts +0 -8
- package/lib/icons/common/sort-arrows-icon/sort-arrows-icon.stories.d.ts +0 -8
- package/lib/icons/common/terminal-icon/terminal-icon.stories.d.ts +0 -8
- package/lib/icons/common/trash-icon/trash-icon.stories.d.ts +0 -8
- package/lib/icons/common/x-icon/x-icon.stories.d.ts +0 -8
- package/lib/icons/compute-platform/k8s-logo/k8s-logo.stories.d.ts +0 -8
- package/lib/icons/compute-platform/vm-logo/vm-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/app-dynamics-logo/app-dynamics-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/aws-cloudwatch-logo/aws-cloudwatch-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/aws-s3-logo/aws-s3-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/aws-xray-logo/aws-xray-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/axiom-logo/axiom-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/better-stack-logo/better-stack-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/blob-storage-logo/blob-storage-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/causely-logo/causely-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/chronosphere-logo/chronosphere-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/clickhouse-logo/clickhouse-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/coralogix-logo/coralogix-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/dash0-logo/dash0-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/datadog-logo/datadog-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/dynatrace-logo/dynatrace-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/elastic-apm-logo/elastic-apm-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/elastic-search-logo/elastic-search-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/gigapipe-logo/gigapipe-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/google-cloud-platform-logo/google-cloud-platform-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/google-cloud-storage-logo/google-cloud-storage-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/grafana-logo/grafana-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/groundcover-logo/groundcover-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/honeycomb-logo/honeycomb-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/hyperdx-logo/hyperdx-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/instana-logo/instana-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/jaeger-logo/jaeger-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/kafka-logo/kafka-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/kloudmate-logo/kloudmate-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/last9-logo/last9-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/lightstep-logo/lightstep-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/logzio-logo/logzio-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/loki-logo/loki-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/lumigo-logo/lumigo-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/middleware-logo/middleware-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/new-relic-logo/new-relic-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/open-telemetry-logo/open-telemetry-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/ops-verse-logo/ops-verse-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/prometheus-logo/prometheus-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/qryn-logo/qryn-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/quickwit-logo/quickwit-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/sentry-logo/sentry-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/signoz-logo/signoz-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/splunk-logo/splunk-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/sumo-logic-logo/sumo-logic-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/tempo-logo/tempo-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/traceloop-logo/traceloop-logo.stories.d.ts +0 -8
- package/lib/icons/destinations/uptrace-logo/uptrace-logo.stories.d.ts +0 -8
- package/lib/icons/instrumentation-rules/code-attributes-icon/code-attributes-icon.stories.d.ts +0 -8
- package/lib/icons/instrumentation-rules/payload-collection-icon/payload-collection-icon.stories.d.ts +0 -8
- package/lib/icons/math/minus-icon/minus-icon.stories.d.ts +0 -8
- package/lib/icons/math/plus-icon/plus-icon.stories.d.ts +0 -8
- package/lib/icons/monitors/logs-icon/logs-icon.stories.d.ts +0 -8
- package/lib/icons/monitors/metrics-icon/metrics-icon.stories.d.ts +0 -8
- package/lib/icons/monitors/traces-icon/traces-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/eye-closed-icon/eye-closed-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/eye-open-icon/eye-open-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/light-off-icon/light-off-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/light-on-icon/light-on-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/moon-icon/moon-icon.stories.d.ts +0 -8
- package/lib/icons/on-off/sun-icon/sun-icon.stories.d.ts +0 -8
- package/lib/icons/overview/actions-icon/actions-icon.stories.d.ts +0 -8
- package/lib/icons/overview/connections-icon/connections-icon.stories.d.ts +0 -8
- package/lib/icons/overview/destinations-icon/destinations-icon.stories.d.ts +0 -8
- package/lib/icons/overview/namespaces-icon/namespaces-icon.stories.d.ts +0 -8
- package/lib/icons/overview/overview-icon/overview-icon.stories.d.ts +0 -8
- package/lib/icons/overview/rules-icon/rules-icon.stories.d.ts +0 -8
- package/lib/icons/overview/service-map-icon/service-map-icon.stories.d.ts +0 -8
- package/lib/icons/overview/sources-icon/sources-icon.stories.d.ts +0 -8
- package/lib/icons/overview/trace-view-icon/trace-view-icon.stories.d.ts +0 -8
- package/lib/icons/programming-languages/c-plus-plus-logo/c-plus-plus-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/c-sharp-logo/c-sharp-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/dotnet-logo/dotnet-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/elixir-logo/elixir-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/go-logo/go-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/java-logo/java-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/mysql-logo/mysql-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/nginx-logo/nginx-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/nodejs-logo/nodejs-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/php-logo/php-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/postgres-logo/postgres-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/python-logo/python-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/redis-logo/redis-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/ruby-logo/ruby-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/rust-logo/rust-logo.stories.d.ts +0 -8
- package/lib/icons/programming-languages/swift-logo/swift-logo.stories.d.ts +0 -8
- package/lib/icons/social/slack-logo/slack-logo.stories.d.ts +0 -8
- package/lib/icons/status/check-circled-icon/check-circled-icon.stories.d.ts +0 -8
- package/lib/icons/status/check-icon/check-icon.stories.d.ts +0 -8
- package/lib/icons/status/cross-circled-icon/cross-circled-icon.stories.d.ts +0 -8
- package/lib/icons/status/cross-icon/cross-icon.stories.d.ts +0 -8
- package/lib/icons/status/error-round-icon/error-round-icon.stories.d.ts +0 -8
- package/lib/icons/status/error-triangle-icon/error-triangle-icon.stories.d.ts +0 -8
- package/lib/icons/status/info-icon/info-icon.stories.d.ts +0 -8
- package/lib/icons/status/warning-triangle-icon/warning-triangle-icon.stories.d.ts +0 -8
- package/lib/index-IvGLauAo.js +0 -683
- package/lib/useSourceSelectionFormData-R_uK7F7W.js +0 -563
- /package/lib/containers/source-selection-form/{fast/controls → controls}/index.d.ts +0 -0
- /package/lib/containers/source-selection-form/{fast/list → list}/index.d.ts +0 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import React, { useRef, useState, useEffect, useCallback } from 'react';
|
|
2
|
+
import styled from 'styled-components';
|
|
3
|
+
|
|
4
|
+
const useContainerSize = () => {
|
|
5
|
+
const ref = useRef(null);
|
|
6
|
+
const [width, setWidth] = useState(0);
|
|
7
|
+
const [height, setHeight] = useState(0);
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
const resize = () => {
|
|
10
|
+
if (ref.current) {
|
|
11
|
+
const { width, height } = ref.current.getBoundingClientRect();
|
|
12
|
+
setWidth(width);
|
|
13
|
+
setHeight(height);
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
resize();
|
|
17
|
+
window.addEventListener('resize', resize);
|
|
18
|
+
return () => window.removeEventListener('resize', resize);
|
|
19
|
+
}, []);
|
|
20
|
+
return {
|
|
21
|
+
containerRef: ref,
|
|
22
|
+
containerWidth: width,
|
|
23
|
+
containerHeight: height,
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const useCopy = () => {
|
|
28
|
+
const [isCopied, setIsCopied] = useState(false);
|
|
29
|
+
const [copiedIndex, setCopiedIndex] = useState(-1);
|
|
30
|
+
const clickCopy = async (str, idx) => {
|
|
31
|
+
if (!isCopied) {
|
|
32
|
+
setIsCopied(true);
|
|
33
|
+
if (idx !== undefined)
|
|
34
|
+
setCopiedIndex(idx);
|
|
35
|
+
if (navigator?.clipboard && navigator.clipboard.writeText) {
|
|
36
|
+
try {
|
|
37
|
+
await navigator.clipboard.writeText(str);
|
|
38
|
+
}
|
|
39
|
+
catch (err) {
|
|
40
|
+
console.error('Clipboard write failed:', err);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
// Fallback: Create a temporary textarea
|
|
45
|
+
const textArea = document.createElement('textarea');
|
|
46
|
+
textArea.value = str;
|
|
47
|
+
document.body.appendChild(textArea);
|
|
48
|
+
textArea.select();
|
|
49
|
+
try {
|
|
50
|
+
document.execCommand('copy');
|
|
51
|
+
}
|
|
52
|
+
catch (err) {
|
|
53
|
+
console.error('execCommand copy failed:', err);
|
|
54
|
+
}
|
|
55
|
+
document.body.removeChild(textArea);
|
|
56
|
+
}
|
|
57
|
+
setTimeout(() => {
|
|
58
|
+
setIsCopied(false);
|
|
59
|
+
setCopiedIndex(-1);
|
|
60
|
+
}, 1000);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
return { isCopied, copiedIndex, clickCopy };
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
const useKeyDown = ({ active, key, withAltKey, withCtrlKey, withShiftKey, withMetaKey }, callback) => {
|
|
67
|
+
useEffect(() => {
|
|
68
|
+
const handleKeyDown = (e) => {
|
|
69
|
+
if (active &&
|
|
70
|
+
key === e.key &&
|
|
71
|
+
(!withAltKey || (withAltKey && e.altKey)) &&
|
|
72
|
+
(!withCtrlKey || (withCtrlKey && e.ctrlKey)) &&
|
|
73
|
+
(!withShiftKey || (withShiftKey && e.shiftKey)) &&
|
|
74
|
+
(!withMetaKey || (withMetaKey && e.metaKey))) {
|
|
75
|
+
e.preventDefault();
|
|
76
|
+
e.stopPropagation();
|
|
77
|
+
callback(e);
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
window.addEventListener('keydown', handleKeyDown);
|
|
81
|
+
return () => {
|
|
82
|
+
window.removeEventListener('keydown', handleKeyDown);
|
|
83
|
+
};
|
|
84
|
+
}, [key, active, withAltKey, withCtrlKey, withShiftKey, withMetaKey, callback]);
|
|
85
|
+
return null;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
const useOnClickOutside = (ref, handler) => {
|
|
89
|
+
useEffect(() => {
|
|
90
|
+
const listener = (event) => {
|
|
91
|
+
// Do nothing if clicking ref's element or descendent elements
|
|
92
|
+
if (!ref.current || ref.current.contains(event.target)) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
handler();
|
|
96
|
+
};
|
|
97
|
+
document.addEventListener('mousedown', listener);
|
|
98
|
+
document.addEventListener('touchstart', listener);
|
|
99
|
+
return () => {
|
|
100
|
+
document.removeEventListener('mousedown', listener);
|
|
101
|
+
document.removeEventListener('touchstart', listener);
|
|
102
|
+
};
|
|
103
|
+
}, [ref, handler]);
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const useTransition = ({ container, animateIn, animateOut, duration = 300 }) => {
|
|
107
|
+
const Animated = styled(container) `
|
|
108
|
+
animation-name: ${({ $isEntering, $isLeaving }) => ($isEntering ? animateIn : $isLeaving ? animateOut : 'none')};
|
|
109
|
+
animation-duration: ${duration}ms;
|
|
110
|
+
animation-fill-mode: forwards;
|
|
111
|
+
`;
|
|
112
|
+
// !! Do not deprecate this "useCallback" hook, it is necessary for the transition to work properly
|
|
113
|
+
const Transition = useCallback(({ children, enter, ...props }) => {
|
|
114
|
+
const [mounted, setMounted] = useState(false);
|
|
115
|
+
useEffect(() => {
|
|
116
|
+
const t = setTimeout(() => setMounted(enter), duration + 50); // +50ms to ensure the animation is finished
|
|
117
|
+
return () => clearTimeout(t);
|
|
118
|
+
}, [enter, duration]);
|
|
119
|
+
if (!enter && !mounted)
|
|
120
|
+
return null;
|
|
121
|
+
return (React.createElement(Animated, { "$isEntering": enter, "$isLeaving": !enter && mounted, ...props }, children));
|
|
122
|
+
},
|
|
123
|
+
// !! Do not add dependencies here, it will cause re-renders which we want to avoid
|
|
124
|
+
[]);
|
|
125
|
+
return Transition;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
export { useCopy as a, useKeyDown as b, useOnClickOutside as c, useTransition as d, useContainerSize as u };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odigos/ui-kit",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"author": "Odigos",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
|
+
"sideEffects": false,
|
|
22
23
|
"exports": {
|
|
23
24
|
"./components": {
|
|
24
25
|
"types": "./lib/components/index.d.ts",
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type AutocompleteInputProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<AutocompleteInputProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<AutocompleteInputProps>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import { type BadgeProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<BadgeProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryObj<BadgeProps>;
|
|
10
|
-
export declare const DefaultFilled: StoryObj<BadgeProps>;
|
|
11
|
-
export declare const StatusSuccess: StoryObj<BadgeProps>;
|
|
12
|
-
export declare const StatusError: StoryObj<BadgeProps>;
|
|
13
|
-
export declare const StatusWarn: StoryObj<BadgeProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type ButtonProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<ButtonProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<ButtonProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type CancelWarningProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<CancelWarningProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<CancelWarningProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type CheckboxProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<CheckboxProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<CheckboxProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type CodeProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<CodeProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<CodeProps>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
import { type ConditionDetailsProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<ConditionDetailsProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const MixedConditions: StoryObj<ConditionDetailsProps>;
|
|
10
|
-
export declare const SuccessConditions: StoryObj<ConditionDetailsProps>;
|
|
11
|
-
export declare const DisabledConditions: StoryObj<ConditionDetailsProps>;
|
|
12
|
-
export declare const ErrorConditions: StoryObj<ConditionDetailsProps>;
|
|
13
|
-
export declare const WarningConditions: StoryObj<ConditionDetailsProps>;
|
|
14
|
-
export declare const LoadingConditions: StoryObj<ConditionDetailsProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
import { type DataCardProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<DataCardProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Containers: StoryObj<DataCardProps>;
|
|
10
|
-
export declare const DescribePod: StoryObj<DataCardProps>;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type DataTabProps } from '.';
|
|
3
|
-
import type { StoryObj } from '@storybook/react';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<DataTabProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const NoStatus: StoryObj<DataTabProps>;
|
|
10
|
-
export declare const ForcedBgColor: StoryObj<DataTabProps>;
|
|
11
|
-
export declare const InfoStatus: StoryObj<DataTabProps>;
|
|
12
|
-
export declare const DefaultStatus: StoryObj<DataTabProps>;
|
|
13
|
-
export declare const ErrorStatus: StoryObj<DataTabProps>;
|
|
14
|
-
export declare const WarningStatus: StoryObj<DataTabProps>;
|
|
15
|
-
export declare const SuccessStatus: StoryObj<DataTabProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type DeleteWarningProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<DeleteWarningProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<DeleteWarningProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type DescribeRowProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<DescribeRowProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<DescribeRowProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type DividerProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<DividerProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<DividerProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type DocsButtonProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<DocsButtonProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<DocsButtonProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import { type DrawerProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<DrawerProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryObj<DrawerProps>;
|
|
10
|
-
export declare const WithTabs: StoryObj<DrawerProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import { type DropdownProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<DropdownProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryObj<DropdownProps>;
|
|
10
|
-
export declare const Multi: StoryObj<DropdownProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type ErrorBoundaryProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<ErrorBoundaryProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<ErrorBoundaryProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type ExtendArrowProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<ExtendArrowProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<ExtendArrowProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type FadeLoaderProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<FadeLoaderProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<FadeLoaderProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type FieldErrorProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<FieldErrorProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<FieldErrorProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type FieldLabelProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<FieldLabelProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<FieldLabelProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type HeaderProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<HeaderProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<HeaderProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type IconButtonProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<IconButtonProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<IconButtonProps>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import { type IconGroupProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<IconGroupProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const SvgImportsMaxAmount: StoryObj<IconGroupProps>;
|
|
10
|
-
export declare const SvgImportsHalfAmount: StoryObj<IconGroupProps>;
|
|
11
|
-
export declare const SvgImportsMinAmount: StoryObj<IconGroupProps>;
|
|
12
|
-
export declare const ImageUrlsMaxAmount: StoryObj<IconGroupProps>;
|
|
13
|
-
export declare const ImageUrlsHalfAmount: StoryObj<IconGroupProps>;
|
|
14
|
-
export declare const ImageUrlsMinAmount: StoryObj<IconGroupProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type IconTitleBadgeProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<IconTitleBadgeProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<IconTitleBadgeProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryObj } from '@storybook/react';
|
|
3
|
-
import { type IconWrappedProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<IconWrappedProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const SvgImport: StoryObj<IconWrappedProps>;
|
|
10
|
-
export declare const ImageUrl: StoryObj<IconWrappedProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type IconsNavProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<IconsNavProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<IconsNavProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type ImageControlledProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<ImageControlledProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<ImageControlledProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type InputProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<InputProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<InputProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type InputListProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<InputListProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<InputListProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type InputTableProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<InputTableProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<InputTableProps>;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { StoryObj } from '@storybook/react';
|
|
3
|
-
import { type InteractiveTableProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<InteractiveTableProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Tokens: StoryObj<InteractiveTableProps>;
|
|
10
|
-
export declare const ComputePlatforms: StoryObj<InteractiveTableProps>;
|
|
11
|
-
export declare const Sources: StoryObj<InteractiveTableProps>;
|
|
12
|
-
export declare const Actions: StoryObj<InteractiveTableProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type KeyValueInputsListProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<KeyValueInputsListProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<KeyValueInputsListProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type ModalProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<ModalProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<ModalProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type MonitorsCheckboxesProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<MonitorsCheckboxesProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<MonitorsCheckboxesProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type MonitorsIconsProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<MonitorsIconsProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<MonitorsIconsProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type NavigationButtonsProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<NavigationButtonsProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<NavigationButtonsProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type NoDataFoundProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<NoDataFoundProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<NoDataFoundProps>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type StoryObj } from '@storybook/react';
|
|
3
|
-
import { type NotificationNoteProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<NotificationNoteProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryObj<NotificationNoteProps>;
|
|
10
|
-
export declare const LongText: StoryObj<NotificationNoteProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type SectionTitleProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<SectionTitleProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<SectionTitleProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type SegmentProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<SegmentProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<SegmentProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type SkeletonLoaderProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<SkeletonLoaderProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<SkeletonLoaderProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type StatusProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<StatusProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<StatusProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type StepperProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<StepperProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<StepperProps>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { StoryFn } from '@storybook/react';
|
|
3
|
-
import { type TextProps } from '.';
|
|
4
|
-
declare const _default: {
|
|
5
|
-
title: string;
|
|
6
|
-
component: React.FC<TextProps>;
|
|
7
|
-
};
|
|
8
|
-
export default _default;
|
|
9
|
-
export declare const Default: StoryFn<TextProps>;
|