@seeqdev/qomponents 0.0.218 → 0.0.220

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.
@@ -0,0 +1,15 @@
1
+ import { BadgeProps } from "./Badge.types.js";
2
+ import * as react_jsx_runtime1 from "react/jsx-runtime";
3
+
4
+ //#region src/Badge/Badge.d.ts
5
+ /**
6
+ * Renders a compact inline badge for feature-state labels such as new or preview.
7
+ */
8
+ declare const Badge: ({
9
+ children,
10
+ variant,
11
+ testId,
12
+ extraClassNames
13
+ }: BadgeProps) => react_jsx_runtime1.JSX.Element;
14
+ //#endregion
15
+ export { Badge, Badge as default };
@@ -0,0 +1,26 @@
1
+ import { ReactNode } from "react";
2
+
3
+ //#region src/Badge/Badge.types.d.ts
4
+ declare const badgeVariants: readonly ["new", "preview"];
5
+ type BadgeVariant = (typeof badgeVariants)[number];
6
+ type BadgeProps = {
7
+ /**
8
+ * The content rendered inside the badge.
9
+ */
10
+ children: ReactNode;
11
+ /**
12
+ * Visual style variant for the badge.
13
+ * @default 'new'
14
+ */
15
+ variant?: BadgeVariant;
16
+ /**
17
+ * Test ID attribute used to locate the badge in automated tests.
18
+ */
19
+ testId?: string;
20
+ /**
21
+ * Additional CSS classes applied to the badge element.
22
+ */
23
+ extraClassNames?: string;
24
+ };
25
+ //#endregion
26
+ export { BadgeProps, BadgeVariant, badgeVariants };
@@ -0,0 +1,2 @@
1
+ import { Badge } from "./Badge.js";
2
+ export { Badge as default };
@@ -1,4 +1,5 @@
1
1
  import { TooltipComponentProps } from "../Tooltip/Tooltip.types.js";
2
+ import React from "react";
2
3
 
3
4
  //#region src/SeeqActionDropdown/SeeqActionDropdown.types.d.ts
4
5
 
@@ -29,10 +30,10 @@ interface SeeqActionDropdownItems {
29
30
  */
30
31
  iconContainerExtraClassNames?: string;
31
32
  /**
32
- * Main display text for the dropdown item.
33
- * This is the primary text that users see and click on to trigger the action.
33
+ * Primary label for the dropdown item.
34
+ * This is the primary content that users see and click on to trigger the action.
34
35
  */
35
- display: string;
36
+ display: React.ReactNode;
36
37
  /**
37
38
  * Callback function triggered when the dropdown item is clicked.
38
39
  * Use this to define the specific action that should occur when users select this item.
@@ -59,6 +60,11 @@ interface SeeqActionDropdownItems {
59
60
  * Provides additional context or explanation about what the action does.
60
61
  */
61
62
  text?: string;
63
+ /**
64
+ * When true, the item is rendered similar to the disabled state, but
65
+ * still allows interaction, cursor changes, and hover states.
66
+ */
67
+ dim?: boolean;
62
68
  }
63
69
  /**
64
70
  * Props for the SeeqActionDropdown component that creates specialized Seeq-branded action menus.
@@ -3,6 +3,7 @@ import Accordion from "./Accordion/Accordion.js";
3
3
  import { DEFAULT_TOOL_TIP_DELAY, TooltipComponentProps, TooltipPosition, TooltipProps, tooltipPositions } from "./Tooltip/Tooltip.types.js";
4
4
  import { AlertProps } from "./Alert/Alert.types.js";
5
5
  import { Alert } from "./Alert/Alert.js";
6
+ import { Badge } from "./Badge/Badge.js";
6
7
  import { IconProps, IconSize, IconType, iconTypes } from "./Icon/Icon.types.js";
7
8
  import { ButtonProps, ButtonSize, ButtonType, ButtonVariant, IconPosition, buttonSizes, buttonTypes, buttonVariants, iconPositions } from "./Button/Button.types.js";
8
9
  import Button from "./Button/Button.js";
@@ -48,4 +49,4 @@ import Carousel from "./Carousel/Carousel.js";
48
49
  import { QomponentsTheme } from "./constants.js";
49
50
  import { ButtonWithDropdownProps, DropdownItems, DropdownProps, DropdownSubItem } from "./ButtonWithDropdown/ButtonWithDropdown.types.js";
50
51
  import ButtonWithDropdown from "./ButtonWithDropdown/ButtonWithDropdown.js";
51
- export { Accordion, AccordionProps, Alert, AlertProps, AppendedProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonType, ButtonVariant, ButtonWithDropdown, ButtonWithDropdownProps, ButtonWithPopover, ButtonWithPopoverProps, Carousel, CarouselProps, Checkbox, CheckboxProps, Collapse, CollapseProps, DEFAULT_TOOL_TIP_DELAY, DimensionStyle, DropdownItems, DropdownProps, DropdownSubItem, FormControlElement, GroupBase, GroupedOption, Icon, IconPosition, IconProps, IconSize, IconType, InputGroup, InputGroupPlacement, InputGroupProps, InputLengthStyleProps, Modal, ModalProps, ModalSize, Option, OptionProps, ProgressBar, ProgressBarProps, ProgressIndicatorProps, QTip, QTipDataAttributes, QomponentsTheme, SeeqActionDropdown, SeeqActionDropdownItems, SeeqActionDropdownProps, Select, SelectComponents, SelectProps, Slider, SliderProps, SvgIconProps, SvgIconType, Tabs, TabsProps, TextArea, TextAreaProps, TextField, TextFieldProps, TitleIconPosition, ToolbarButton, ToolbarButtonProps, ToolbarButtonVariant, Tooltip, TooltipComponentProps, TooltipPosition, TooltipProps, TriggerWithDropdown, TriggerWithDropdownProps, buttonSizes, buttonTypes, buttonVariants, iconPositions, iconTypes, svgIconTypes, toolbarButtonVariants, tooltipPositions };
52
+ export { Accordion, AccordionProps, Alert, AlertProps, AppendedProps, Badge, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonType, ButtonVariant, ButtonWithDropdown, ButtonWithDropdownProps, ButtonWithPopover, ButtonWithPopoverProps, Carousel, CarouselProps, Checkbox, CheckboxProps, Collapse, CollapseProps, DEFAULT_TOOL_TIP_DELAY, DimensionStyle, DropdownItems, DropdownProps, DropdownSubItem, FormControlElement, GroupBase, GroupedOption, Icon, IconPosition, IconProps, IconSize, IconType, InputGroup, InputGroupPlacement, InputGroupProps, InputLengthStyleProps, Modal, ModalProps, ModalSize, Option, OptionProps, ProgressBar, ProgressBarProps, ProgressIndicatorProps, QTip, QTipDataAttributes, QomponentsTheme, SeeqActionDropdown, SeeqActionDropdownItems, SeeqActionDropdownProps, Select, SelectComponents, SelectProps, Slider, SliderProps, SvgIconProps, SvgIconType, Tabs, TabsProps, TextArea, TextAreaProps, TextField, TextFieldProps, TitleIconPosition, ToolbarButton, ToolbarButtonProps, ToolbarButtonVariant, Tooltip, TooltipComponentProps, TooltipPosition, TooltipProps, TriggerWithDropdown, TriggerWithDropdownProps, buttonSizes, buttonTypes, buttonVariants, iconPositions, iconTypes, svgIconTypes, toolbarButtonVariants, tooltipPositions };
@@ -3,6 +3,7 @@ import Accordion from "./Accordion/Accordion.js";
3
3
  import { DEFAULT_TOOL_TIP_DELAY, TooltipComponentProps, TooltipPosition, TooltipProps, tooltipPositions } from "./Tooltip/Tooltip.types.js";
4
4
  import { AlertProps } from "./Alert/Alert.types.js";
5
5
  import { Alert } from "./Alert/Alert.js";
6
+ import { Badge } from "./Badge/Badge.js";
6
7
  import { IconProps, IconSize, IconType, iconTypes } from "./Icon/Icon.types.js";
7
8
  import { ButtonProps, ButtonSize, ButtonType, ButtonVariant, IconPosition, buttonSizes, buttonTypes, buttonVariants, iconPositions } from "./Button/Button.types.js";
8
9
  import Button from "./Button/Button.js";
@@ -48,4 +49,4 @@ import Carousel from "./Carousel/Carousel.js";
48
49
  import { QomponentsTheme } from "./constants.js";
49
50
  import { ButtonWithDropdownProps, DropdownItems, DropdownProps, DropdownSubItem } from "./ButtonWithDropdown/ButtonWithDropdown.types.js";
50
51
  import ButtonWithDropdown from "./ButtonWithDropdown/ButtonWithDropdown.js";
51
- export { Accordion, AccordionProps, Alert, AlertProps, AppendedProps, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonType, ButtonVariant, ButtonWithDropdown, ButtonWithDropdownProps, ButtonWithPopover, ButtonWithPopoverProps, Carousel, CarouselProps, Checkbox, CheckboxProps, Collapse, CollapseProps, DEFAULT_TOOL_TIP_DELAY, DimensionStyle, DropdownItems, DropdownProps, DropdownSubItem, FormControlElement, type GroupBase, GroupedOption, Icon, IconPosition, IconProps, IconSize, IconType, InputGroup, InputGroupPlacement, InputGroupProps, InputLengthStyleProps, Modal, ModalProps, ModalSize, Option, type OptionProps, ProgressBar, ProgressBarProps, ProgressIndicatorProps, QTip, QTipDataAttributes, type QomponentsTheme, SeeqActionDropdown, SeeqActionDropdownItems, SeeqActionDropdownProps, Select, SelectComponents, SelectProps, Slider, SliderProps, SvgIconProps, SvgIconType, Tabs, TabsProps, TextArea, TextAreaProps, TextField, TextFieldProps, TitleIconPosition, ToolbarButton, ToolbarButtonProps, ToolbarButtonVariant, Tooltip, TooltipComponentProps, TooltipPosition, TooltipProps, TriggerWithDropdown, TriggerWithDropdownProps, buttonSizes, buttonTypes, buttonVariants, iconPositions, iconTypes, svgIconTypes, toolbarButtonVariants, tooltipPositions };
52
+ export { Accordion, AccordionProps, Alert, AlertProps, AppendedProps, Badge, Button, ButtonGroup, ButtonGroupProps, ButtonProps, ButtonSize, ButtonType, ButtonVariant, ButtonWithDropdown, ButtonWithDropdownProps, ButtonWithPopover, ButtonWithPopoverProps, Carousel, CarouselProps, Checkbox, CheckboxProps, Collapse, CollapseProps, DEFAULT_TOOL_TIP_DELAY, DimensionStyle, DropdownItems, DropdownProps, DropdownSubItem, FormControlElement, type GroupBase, GroupedOption, Icon, IconPosition, IconProps, IconSize, IconType, InputGroup, InputGroupPlacement, InputGroupProps, InputLengthStyleProps, Modal, ModalProps, ModalSize, Option, type OptionProps, ProgressBar, ProgressBarProps, ProgressIndicatorProps, QTip, QTipDataAttributes, type QomponentsTheme, SeeqActionDropdown, SeeqActionDropdownItems, SeeqActionDropdownProps, Select, SelectComponents, SelectProps, Slider, SliderProps, SvgIconProps, SvgIconType, Tabs, TabsProps, TextArea, TextAreaProps, TextField, TextFieldProps, TitleIconPosition, ToolbarButton, ToolbarButtonProps, ToolbarButtonVariant, Tooltip, TooltipComponentProps, TooltipPosition, TooltipProps, TriggerWithDropdown, TriggerWithDropdownProps, buttonSizes, buttonTypes, buttonVariants, iconPositions, iconTypes, svgIconTypes, toolbarButtonVariants, tooltipPositions };
package/dist/styles.css CHANGED
@@ -400,6 +400,9 @@
400
400
  .tw\:inline-block {
401
401
  display: inline-block;
402
402
  }
403
+ .tw\:inline-flex {
404
+ display: inline-flex;
405
+ }
403
406
  .tw\:h-2 {
404
407
  height: calc(var(--tw-spacing) * 2);
405
408
  }
@@ -671,6 +674,9 @@
671
674
  .tw\:gap-2 {
672
675
  gap: calc(var(--tw-spacing) * 2);
673
676
  }
677
+ .tw\:gap-3 {
678
+ gap: calc(var(--tw-spacing) * 3);
679
+ }
674
680
  .tw\:gap-4 {
675
681
  gap: calc(var(--tw-spacing) * 4);
676
682
  }
@@ -698,6 +704,9 @@
698
704
  .tw\:rounded-\[0\.9375rem\] {
699
705
  border-radius: 0.9375rem;
700
706
  }
707
+ .tw\:rounded-\[3px\] {
708
+ border-radius: 3px;
709
+ }
701
710
  .tw\:rounded-\[10px\] {
702
711
  border-radius: 10px;
703
712
  }
@@ -862,6 +871,9 @@
862
871
  .tw\:bg-red-500\! {
863
872
  background-color: var(--tw-color-red-500) !important;
864
873
  }
874
+ .tw\:bg-sq-badge-preview-bg {
875
+ background-color: var(--bg-included-2);
876
+ }
865
877
  .tw\:bg-sq-bg-warning {
866
878
  background-color: #fff3cd;
867
879
  }
@@ -928,6 +940,9 @@
928
940
  .tw\:bg-sq-warning {
929
941
  background-color: var(--sq-status-warning-color);
930
942
  }
943
+ .tw\:bg-sq-warning-bg-color {
944
+ background-color: var(--sq-warning-bg-color);
945
+ }
931
946
  .tw\:bg-sq-white {
932
947
  background-color: var(--sqw-white);
933
948
  }
@@ -982,6 +997,9 @@
982
997
  .tw\:px-6 {
983
998
  padding-inline: calc(var(--tw-spacing) * 6);
984
999
  }
1000
+ .tw\:px-\[5px\] {
1001
+ padding-inline: 5px;
1002
+ }
985
1003
  .tw\:px-sq-19 {
986
1004
  padding-inline: 1.1875rem;
987
1005
  }
@@ -1000,12 +1018,18 @@
1000
1018
  .tw\:py-6 {
1001
1019
  padding-block: calc(var(--tw-spacing) * 6);
1002
1020
  }
1021
+ .tw\:py-\[2px\] {
1022
+ padding-block: 2px;
1023
+ }
1003
1024
  .tw\:py-px {
1004
1025
  padding-block: 1px;
1005
1026
  }
1006
1027
  .tw\:py-sq-5 {
1007
1028
  padding-block: 0.3125rem;
1008
1029
  }
1030
+ .tw\:pt-2 {
1031
+ padding-top: calc(var(--tw-spacing) * 2);
1032
+ }
1009
1033
  .tw\:pr-1 {
1010
1034
  padding-right: calc(var(--tw-spacing) * 1);
1011
1035
  }
@@ -1049,6 +1073,9 @@
1049
1073
  font-size: var(--tw-text-xs);
1050
1074
  line-height: var(--tw-leading, var(--tw-text-xs--line-height));
1051
1075
  }
1076
+ .tw\:text-\[0\.8rem\] {
1077
+ font-size: 0.8rem;
1078
+ }
1052
1079
  .tw\:text-\[20px\] {
1053
1080
  font-size: 20px;
1054
1081
  }
@@ -1132,6 +1159,12 @@
1132
1159
  .tw\:text-sq-text-color {
1133
1160
  color: #3a3a3a;
1134
1161
  }
1162
+ .tw\:text-sq-text-dark-warning-color {
1163
+ color: var(--sq-text-dark-warning-color);
1164
+ }
1165
+ .tw\:text-sq-text-interactive {
1166
+ color: var(--sq-analysis-link);
1167
+ }
1135
1168
  .tw\:text-sq-theme-dark {
1136
1169
  color: var(--theme-dark);
1137
1170
  }
@@ -1153,6 +1186,9 @@
1153
1186
  .tw\:text-white {
1154
1187
  color: var(--tw-color-white);
1155
1188
  }
1189
+ .tw\:capitalize {
1190
+ text-transform: capitalize;
1191
+ }
1156
1192
  .tw\:italic {
1157
1193
  font-style: italic;
1158
1194
  }
@@ -1755,6 +1791,11 @@
1755
1791
  opacity: 50%;
1756
1792
  }
1757
1793
  }
1794
+ .tw\:aria-disabled\:pointer-events-none {
1795
+ &[aria-disabled="true"] {
1796
+ pointer-events: none;
1797
+ }
1798
+ }
1758
1799
  .tw\:aria-disabled\:cursor-not-allowed {
1759
1800
  &[aria-disabled="true"] {
1760
1801
  cursor: not-allowed;
@@ -1775,9 +1816,9 @@
1775
1816
  pointer-events: none;
1776
1817
  }
1777
1818
  }
1778
- .tw\:data-\[disabled\]\:pointer-events-none {
1779
- &[data-disabled] {
1780
- pointer-events: none;
1819
+ .tw\:data-\[dim\]\:opacity-50 {
1820
+ &[data-dim] {
1821
+ opacity: 50%;
1781
1822
  }
1782
1823
  }
1783
1824
  .tw\:data-\[disabled\]\:text-sq-disabled-gray {
@@ -1876,6 +1917,11 @@
1876
1917
  background-color: var(--tw-color-gray-700);
1877
1918
  }
1878
1919
  }
1920
+ .tw\:dark\:bg-sq-bg-default-preview-dark {
1921
+ &:where(.tw-dark, .tw-dark *) {
1922
+ background-color: var(--bg-default-preview-dark);
1923
+ }
1924
+ }
1879
1925
  .tw\:dark\:bg-sq-colored-hover-dark {
1880
1926
  &:where(.tw-dark, .tw-dark *) {
1881
1927
  background-color: #262c36;
@@ -1906,6 +1952,11 @@
1906
1952
  background-color: #262c36 !important;
1907
1953
  }
1908
1954
  }
1955
+ .tw\:dark\:bg-sq-text-dark-warning-color {
1956
+ &:where(.tw-dark, .tw-dark *) {
1957
+ background-color: var(--sq-text-dark-warning-color);
1958
+ }
1959
+ }
1909
1960
  .tw\:dark\:bg-sq-theme-dark {
1910
1961
  &:where(.tw-dark, .tw-dark *) {
1911
1962
  background-color: var(--theme-dark);
@@ -1966,6 +2017,11 @@
1966
2017
  color: #f0f6fc;
1967
2018
  }
1968
2019
  }
2020
+ .tw\:dark\:text-sq-text-interactive-dark {
2021
+ &:where(.tw-dark, .tw-dark *) {
2022
+ color: var(--sq-text-interactive-dark);
2023
+ }
2024
+ }
1969
2025
  .tw\:dark\:text-sq-theme-dark {
1970
2026
  &:where(.tw-dark, .tw-dark *) {
1971
2027
  color: var(--theme-dark);
@@ -1981,6 +2037,11 @@
1981
2037
  color: var(--theme-link);
1982
2038
  }
1983
2039
  }
2040
+ .tw\:dark\:text-sq-warning-bg-color {
2041
+ &:where(.tw-dark, .tw-dark *) {
2042
+ color: var(--sq-warning-bg-color);
2043
+ }
2044
+ }
1984
2045
  .tw\:dark\:text-sq-white {
1985
2046
  &:where(.tw-dark, .tw-dark *) {
1986
2047
  color: var(--sqw-white);
@@ -2388,6 +2449,42 @@
2388
2449
  text-align: center;
2389
2450
  width: 1.25em;
2390
2451
  }
2452
+ .fc-data-lab2-locked:before {
2453
+ content: '\e9c7' !important;
2454
+ }
2455
+ .fc-data-lab2:before {
2456
+ content: '\e9c8' !important;
2457
+ }
2458
+ .fc-folder2-locked:before {
2459
+ content: '\e9c9' !important;
2460
+ }
2461
+ .fc-folder2:before {
2462
+ content: '\e9ca' !important;
2463
+ }
2464
+ .fc-insights-locked:before {
2465
+ content: '\e9cb' !important;
2466
+ }
2467
+ .fc-insights:before {
2468
+ content: '\e9cc' !important;
2469
+ }
2470
+ .fc-organizer2-locked:before {
2471
+ content: '\e9cd' !important;
2472
+ }
2473
+ .fc-organizer2:before {
2474
+ content: '\e9ce' !important;
2475
+ }
2476
+ .fc-vantage2-locked:before {
2477
+ content: '\e9cf' !important;
2478
+ }
2479
+ .fc-vantage2:before {
2480
+ content: '\e9d0' !important;
2481
+ }
2482
+ .fc-workbench2-locked:before {
2483
+ content: '\e9d1' !important;
2484
+ }
2485
+ .fc-workbench2:before {
2486
+ content: '\e9d2' !important;
2487
+ }
2391
2488
  .fc-models:before {
2392
2489
  content: '\e9c6' !important;
2393
2490
  }
@@ -2403,6 +2500,9 @@
2403
2500
  .fc-view-summaries:before {
2404
2501
  content: '\e9c3' !important;
2405
2502
  }
2503
+ .fc-view-summaries1:before {
2504
+ content: '\e9c4' !important;
2505
+ }
2406
2506
  .fc-marker:before {
2407
2507
  content: '\a961' !important;
2408
2508
  }
@@ -3353,6 +3453,7 @@
3353
3453
  --sq-gray-text: #869298;
3354
3454
  --sq-gray-text-dark: #9198a1;
3355
3455
  --sq-text-muted: #6c757d;
3456
+ --sq-text-interactive-dark: #1fcfa6;
3356
3457
  --sq-darker-gray: #e7e7e7;
3357
3458
  --sq-darker-gray-dark: #21262d;
3358
3459
  --sqw-disabled-gray: #dde1e3;
@@ -3454,6 +3555,7 @@
3454
3555
  --bg-table-highlight-hover: #faf2cc;
3455
3556
  --bg-highlight: #e6d4a3;
3456
3557
  --bg-highlight-hover: #e0c65c;
3558
+ --bg-default-preview-dark: #1e4032;
3457
3559
  --sq-brand-header: #062f41;
3458
3560
  --sq-report-color: #39516b;
3459
3561
  --sq-analysis-color: #427c63;
@@ -3475,6 +3577,7 @@
3475
3577
  --sqw-danger-color: #d9534f;
3476
3578
  --sqw-warning-color: #f0ad4e;
3477
3579
  --sq-text-warning-color: #f0ad4e;
3580
+ --sq-warning-bg-color: #fce7ce;
3478
3581
  --sq-text-dark-warning-color: #664d03;
3479
3582
  --sq-flag-icon-light-color: #b85559;
3480
3583
  --sq-flag-icon-dark-color: #c77a7b;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seeqdev/qomponents",
3
- "version": "0.0.218",
3
+ "version": "0.0.220",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "source": "src/index.ts",