@seeqdev/qomponents 0.0.219 → 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 };
@@ -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
@@ -674,6 +674,9 @@
674
674
  .tw\:gap-2 {
675
675
  gap: calc(var(--tw-spacing) * 2);
676
676
  }
677
+ .tw\:gap-3 {
678
+ gap: calc(var(--tw-spacing) * 3);
679
+ }
677
680
  .tw\:gap-4 {
678
681
  gap: calc(var(--tw-spacing) * 4);
679
682
  }
@@ -701,6 +704,9 @@
701
704
  .tw\:rounded-\[0\.9375rem\] {
702
705
  border-radius: 0.9375rem;
703
706
  }
707
+ .tw\:rounded-\[3px\] {
708
+ border-radius: 3px;
709
+ }
704
710
  .tw\:rounded-\[10px\] {
705
711
  border-radius: 10px;
706
712
  }
@@ -865,6 +871,9 @@
865
871
  .tw\:bg-red-500\! {
866
872
  background-color: var(--tw-color-red-500) !important;
867
873
  }
874
+ .tw\:bg-sq-badge-preview-bg {
875
+ background-color: var(--bg-included-2);
876
+ }
868
877
  .tw\:bg-sq-bg-warning {
869
878
  background-color: #fff3cd;
870
879
  }
@@ -931,6 +940,9 @@
931
940
  .tw\:bg-sq-warning {
932
941
  background-color: var(--sq-status-warning-color);
933
942
  }
943
+ .tw\:bg-sq-warning-bg-color {
944
+ background-color: var(--sq-warning-bg-color);
945
+ }
934
946
  .tw\:bg-sq-white {
935
947
  background-color: var(--sqw-white);
936
948
  }
@@ -985,6 +997,9 @@
985
997
  .tw\:px-6 {
986
998
  padding-inline: calc(var(--tw-spacing) * 6);
987
999
  }
1000
+ .tw\:px-\[5px\] {
1001
+ padding-inline: 5px;
1002
+ }
988
1003
  .tw\:px-sq-19 {
989
1004
  padding-inline: 1.1875rem;
990
1005
  }
@@ -1003,12 +1018,18 @@
1003
1018
  .tw\:py-6 {
1004
1019
  padding-block: calc(var(--tw-spacing) * 6);
1005
1020
  }
1021
+ .tw\:py-\[2px\] {
1022
+ padding-block: 2px;
1023
+ }
1006
1024
  .tw\:py-px {
1007
1025
  padding-block: 1px;
1008
1026
  }
1009
1027
  .tw\:py-sq-5 {
1010
1028
  padding-block: 0.3125rem;
1011
1029
  }
1030
+ .tw\:pt-2 {
1031
+ padding-top: calc(var(--tw-spacing) * 2);
1032
+ }
1012
1033
  .tw\:pr-1 {
1013
1034
  padding-right: calc(var(--tw-spacing) * 1);
1014
1035
  }
@@ -1052,6 +1073,9 @@
1052
1073
  font-size: var(--tw-text-xs);
1053
1074
  line-height: var(--tw-leading, var(--tw-text-xs--line-height));
1054
1075
  }
1076
+ .tw\:text-\[0\.8rem\] {
1077
+ font-size: 0.8rem;
1078
+ }
1055
1079
  .tw\:text-\[20px\] {
1056
1080
  font-size: 20px;
1057
1081
  }
@@ -1135,6 +1159,12 @@
1135
1159
  .tw\:text-sq-text-color {
1136
1160
  color: #3a3a3a;
1137
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
+ }
1138
1168
  .tw\:text-sq-theme-dark {
1139
1169
  color: var(--theme-dark);
1140
1170
  }
@@ -1156,6 +1186,9 @@
1156
1186
  .tw\:text-white {
1157
1187
  color: var(--tw-color-white);
1158
1188
  }
1189
+ .tw\:capitalize {
1190
+ text-transform: capitalize;
1191
+ }
1159
1192
  .tw\:italic {
1160
1193
  font-style: italic;
1161
1194
  }
@@ -1884,6 +1917,11 @@
1884
1917
  background-color: var(--tw-color-gray-700);
1885
1918
  }
1886
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
+ }
1887
1925
  .tw\:dark\:bg-sq-colored-hover-dark {
1888
1926
  &:where(.tw-dark, .tw-dark *) {
1889
1927
  background-color: #262c36;
@@ -1914,6 +1952,11 @@
1914
1952
  background-color: #262c36 !important;
1915
1953
  }
1916
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
+ }
1917
1960
  .tw\:dark\:bg-sq-theme-dark {
1918
1961
  &:where(.tw-dark, .tw-dark *) {
1919
1962
  background-color: var(--theme-dark);
@@ -1974,6 +2017,11 @@
1974
2017
  color: #f0f6fc;
1975
2018
  }
1976
2019
  }
2020
+ .tw\:dark\:text-sq-text-interactive-dark {
2021
+ &:where(.tw-dark, .tw-dark *) {
2022
+ color: var(--sq-text-interactive-dark);
2023
+ }
2024
+ }
1977
2025
  .tw\:dark\:text-sq-theme-dark {
1978
2026
  &:where(.tw-dark, .tw-dark *) {
1979
2027
  color: var(--theme-dark);
@@ -1989,6 +2037,11 @@
1989
2037
  color: var(--theme-link);
1990
2038
  }
1991
2039
  }
2040
+ .tw\:dark\:text-sq-warning-bg-color {
2041
+ &:where(.tw-dark, .tw-dark *) {
2042
+ color: var(--sq-warning-bg-color);
2043
+ }
2044
+ }
1992
2045
  .tw\:dark\:text-sq-white {
1993
2046
  &:where(.tw-dark, .tw-dark *) {
1994
2047
  color: var(--sqw-white);
@@ -3400,6 +3453,7 @@
3400
3453
  --sq-gray-text: #869298;
3401
3454
  --sq-gray-text-dark: #9198a1;
3402
3455
  --sq-text-muted: #6c757d;
3456
+ --sq-text-interactive-dark: #1fcfa6;
3403
3457
  --sq-darker-gray: #e7e7e7;
3404
3458
  --sq-darker-gray-dark: #21262d;
3405
3459
  --sqw-disabled-gray: #dde1e3;
@@ -3501,6 +3555,7 @@
3501
3555
  --bg-table-highlight-hover: #faf2cc;
3502
3556
  --bg-highlight: #e6d4a3;
3503
3557
  --bg-highlight-hover: #e0c65c;
3558
+ --bg-default-preview-dark: #1e4032;
3504
3559
  --sq-brand-header: #062f41;
3505
3560
  --sq-report-color: #39516b;
3506
3561
  --sq-analysis-color: #427c63;
@@ -3522,6 +3577,7 @@
3522
3577
  --sqw-danger-color: #d9534f;
3523
3578
  --sqw-warning-color: #f0ad4e;
3524
3579
  --sq-text-warning-color: #f0ad4e;
3580
+ --sq-warning-bg-color: #fce7ce;
3525
3581
  --sq-text-dark-warning-color: #664d03;
3526
3582
  --sq-flag-icon-light-color: #b85559;
3527
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.219",
3
+ "version": "0.0.220",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "source": "src/index.ts",