@koobiq/react-components 0.0.1 → 0.1.1

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.
Files changed (59) hide show
  1. package/dist/components/Button/types.d.ts +0 -10
  2. package/dist/components/Calendar/types.d.ts +3 -41
  3. package/dist/components/Checkbox/Checkbox.d.ts +10 -9
  4. package/dist/components/Checkbox/types.d.ts +4 -33
  5. package/dist/components/Checkbox/types.js +1 -0
  6. package/dist/components/DateInput/DateInput.js +2 -2
  7. package/dist/components/DateSegment/DateSegment.d.ts +7 -0
  8. package/dist/components/DateSegment/DateSegment.js +34 -0
  9. package/dist/components/DateSegment/DateSegment.module.css.js +17 -0
  10. package/dist/components/DateSegment/index.d.ts +1 -0
  11. package/dist/components/DateSegment/intl.json.js +7 -0
  12. package/dist/components/DateSegment/utils.d.ts +3 -0
  13. package/dist/components/DateSegment/utils.js +6 -0
  14. package/dist/components/Dialog/components/DialogCloseButton.d.ts +1 -3
  15. package/dist/components/Divider/types.d.ts +4 -9
  16. package/dist/components/Divider/types.js +1 -3
  17. package/dist/components/IconButton/types.d.ts +1 -6
  18. package/dist/components/Input/Input.d.ts +1 -10
  19. package/dist/components/Input/types.d.ts +1 -31
  20. package/dist/components/InputNumber/InputNumber.d.ts +2 -6
  21. package/dist/components/InputNumber/types.d.ts +4 -21
  22. package/dist/components/Link/types.d.ts +2 -7
  23. package/dist/components/List/List.d.ts +2 -2
  24. package/dist/components/List/types.d.ts +5 -39
  25. package/dist/components/Menu/components/MenuInner/MenuInner.d.ts +1 -1
  26. package/dist/components/Menu/types.d.ts +13 -36
  27. package/dist/components/Popover/types.d.ts +2 -3
  28. package/dist/components/ProgressBar/ProgressBar.js +5 -5
  29. package/dist/components/ProgressBar/types.d.ts +8 -20
  30. package/dist/components/ProgressSpinner/ProgressSpinner.js +5 -5
  31. package/dist/components/ProgressSpinner/types.d.ts +8 -20
  32. package/dist/components/Select/types.d.ts +7 -46
  33. package/dist/components/SkeletonBlock/SkeletonBlock.d.ts +3 -1
  34. package/dist/components/SkeletonTypography/SkeletonTypography.d.ts +3 -1
  35. package/dist/components/Table/types.d.ts +3 -25
  36. package/dist/components/TagGroup/types.d.ts +4 -15
  37. package/dist/components/Textarea/Textarea.d.ts +1 -6
  38. package/dist/components/Textarea/types.d.ts +1 -23
  39. package/dist/components/TimePicker/TimePicker.d.ts +5 -0
  40. package/dist/components/TimePicker/TimePicker.js +112 -0
  41. package/dist/components/TimePicker/TimePicker.module.css.js +11 -0
  42. package/dist/components/TimePicker/index.d.ts +2 -0
  43. package/dist/components/TimePicker/types.d.ts +46 -0
  44. package/dist/components/Toggle/Toggle.d.ts +9 -8
  45. package/dist/components/Toggle/types.d.ts +7 -23
  46. package/dist/components/Tooltip/Tooltip.d.ts +4 -6
  47. package/dist/components/Tooltip/types.d.ts +5 -19
  48. package/dist/components/index.d.ts +2 -1
  49. package/dist/index.js +4 -6
  50. package/dist/style.css +47 -39
  51. package/dist/styles/utility.d.ts +1 -0
  52. package/package.json +5 -5
  53. package/dist/components/DateInput/components/DateInputSegment/DateInputSegment.d.ts +0 -7
  54. package/dist/components/DateInput/components/DateInputSegment/DateInputSegment.js +0 -27
  55. package/dist/components/DateInput/components/DateInputSegment/DateInputSegment.module.css.js +0 -17
  56. package/dist/components/DateInput/components/DateInputSegment/index.d.ts +0 -1
  57. package/dist/components/DateInput/components/index.d.ts +0 -1
  58. package/dist/components/List/types.js +0 -4
  59. package/dist/components/Menu/types.js +0 -4
@@ -0,0 +1,46 @@
1
+ import type { ComponentRef, CSSProperties, ReactElement, ReactNode, Ref } from 'react';
2
+ import type { AriaTimeFieldProps, TimeValue } from '@koobiq/react-primitives';
3
+ import type { DateInputPropVariant } from '../DateInput';
4
+ import type { FieldCaptionProps, FieldControlProps, FieldErrorProps, FieldInputDateProps, FieldInputGroupProps, FieldLabelProps } from '../FieldComponents';
5
+ export type TimePickerProps<T extends TimeValue> = {
6
+ /** Inline styles. */
7
+ style?: CSSProperties;
8
+ /** Additional CSS-classes. */
9
+ className?: string;
10
+ /** Unique identifier for testing purposes. */
11
+ 'data-testid'?: string | number;
12
+ /** The helper text content. */
13
+ caption?: ReactNode;
14
+ /**
15
+ * The variant to use.
16
+ * @default 'filled'
17
+ */
18
+ variant?: DateInputPropVariant;
19
+ /**
20
+ * If true, the input will take up the full width of its container.
21
+ * @default false
22
+ */
23
+ fullWidth?: boolean;
24
+ /** The props used for each slot inside. */
25
+ slotProps?: {
26
+ root?: FieldControlProps;
27
+ label?: FieldLabelProps;
28
+ group?: FieldInputGroupProps;
29
+ caption?: FieldCaptionProps;
30
+ inputDate?: FieldInputDateProps;
31
+ errorMessage?: FieldErrorProps;
32
+ };
33
+ /** Ref to the control */
34
+ ref?: Ref<HTMLDivElement>;
35
+ /**
36
+ * If `true`, the label is hidden. Be sure to add aria-label to the input element.
37
+ * @default false
38
+ */
39
+ isLabelHidden?: boolean;
40
+ /** Addon placed before the children. */
41
+ startAddon?: ReactNode;
42
+ /** Addon placed after the children. */
43
+ endAddon?: ReactNode;
44
+ } & AriaTimeFieldProps<T>;
45
+ export type TimePickerComponent = <T extends TimeValue>(props: TimePickerProps<T>) => ReactElement | null;
46
+ export type TimePickerRef = ComponentRef<'div'>;
@@ -1,6 +1,12 @@
1
- export declare const Toggle: import("react").ForwardRefExoticComponent<import("@react-types/switch").AriaSwitchProps & {
2
- isInvalid?: boolean;
3
- } & {
1
+ import { type SwitchProps } from '@koobiq/react-primitives';
2
+ export declare const Toggle: import("react").ForwardRefExoticComponent<Omit<Omit<SwitchProps, "inputRef">, "children" | "style" | "className" | "size" | "slotProps" | "labelPlacement" | keyof {
3
+ disabled?: boolean;
4
+ error?: boolean;
5
+ checked?: boolean;
6
+ readonly?: boolean;
7
+ defaultChecked?: boolean;
8
+ }> & {
9
+ children?: import("react").ReactNode;
4
10
  className?: string;
5
11
  style?: import("react").CSSProperties;
6
12
  size?: import("./types").TogglePropSize;
@@ -9,11 +15,6 @@ export declare const Toggle: import("react").ForwardRefExoticComponent<import("@
9
15
  track?: import("react").ComponentPropsWithRef<"span">;
10
16
  label?: import("react").ComponentPropsWithRef<"span">;
11
17
  };
12
- isInvalid?: boolean;
13
- isSelected?: boolean;
14
- isReadOnly?: boolean;
15
- isDisabled?: boolean;
16
- defaultSelected?: boolean;
17
18
  } & {
18
19
  disabled?: boolean;
19
20
  error?: boolean;
@@ -1,5 +1,6 @@
1
- import type { ComponentPropsWithRef, CSSProperties } from 'react';
2
- import type { UseSwitchProps } from '@koobiq/react-primitives';
1
+ import type { ComponentPropsWithRef, CSSProperties, ReactNode } from 'react';
2
+ import type { ExtendableProps } from '@koobiq/react-core';
3
+ import type { SwitchProps } from '@koobiq/react-primitives';
3
4
  export declare const togglePropSize: readonly ["normal", "big"];
4
5
  export type TogglePropSize = (typeof togglePropSize)[number];
5
6
  export declare const togglePropLabelPlacement: readonly ["start", "end"];
@@ -39,7 +40,9 @@ type ToggleDeprecatedProps = {
39
40
  */
40
41
  defaultChecked?: boolean;
41
42
  };
42
- export type ToggleProps = UseSwitchProps & {
43
+ export type ToggleProps = ExtendableProps<{
44
+ /** The content of the component. */
45
+ children?: ReactNode;
43
46
  /** Additional CSS-classes. */
44
47
  className?: string;
45
48
  /** Inline styles. */
@@ -59,24 +62,5 @@ export type ToggleProps = UseSwitchProps & {
59
62
  track?: ComponentPropsWithRef<'span'>;
60
63
  label?: ComponentPropsWithRef<'span'>;
61
64
  };
62
- /**
63
- * If `true`, the component will indicate an error.
64
- * @default false
65
- */
66
- isInvalid?: boolean;
67
- /** If `true`, the component is checked. */
68
- isSelected?: boolean;
69
- /**
70
- * It prevents the user from changing the value of the checkbox.
71
- * @default false
72
- */
73
- isReadOnly?: boolean;
74
- /**
75
- * If `true`, the component is disabled.
76
- * @default false
77
- */
78
- isDisabled?: boolean;
79
- /** The default checked state. Use when the component is not controlled. */
80
- defaultSelected?: boolean;
81
- } & ToggleDeprecatedProps;
65
+ } & ToggleDeprecatedProps, Omit<SwitchProps, 'inputRef'>>;
82
66
  export {};
@@ -1,9 +1,8 @@
1
- export declare const Tooltip: import("react").ForwardRefExoticComponent<{
1
+ export declare const Tooltip: import("react").ForwardRefExoticComponent<Omit<import("@react-types/tooltip").TooltipTriggerProps, "children" | "className" | "id" | "offset" | "variant" | `data-${string}` | "placement" | "control" | "portalContainer" | "anchorRef" | "hideArrow" | "arrowBoundaryOffset" | "crossOffset" | "delay" | "closeDelay" | keyof {
2
+ open?: boolean;
3
+ disabled?: boolean;
4
+ }> & {
2
5
  variant?: import("./types").TooltipPropVariant;
3
- isOpen?: boolean;
4
- defaultOpen?: boolean;
5
- onOpenChange?(open: boolean): void;
6
- isDisabled?: boolean;
7
6
  children?: import("react").ReactNode;
8
7
  control?: import("./types").TooltipPropControl;
9
8
  placement?: import("./types").TooltipPropPlacement;
@@ -14,7 +13,6 @@ export declare const Tooltip: import("react").ForwardRefExoticComponent<{
14
13
  hideArrow?: boolean;
15
14
  delay?: number;
16
15
  closeDelay?: number;
17
- trigger?: "focus";
18
16
  id?: string;
19
17
  className?: string;
20
18
  portalContainer?: Element;
@@ -1,5 +1,6 @@
1
1
  import type { ReactNode, RefObject, ComponentRef, ReactElement, DOMAttributes } from 'react';
2
- import type { DataAttributeProps, FocusableElement } from '@koobiq/react-core';
2
+ import type { DataAttributeProps, ExtendableProps, FocusableElement } from '@koobiq/react-core';
3
+ import type { TooltipTriggerProps } from '@koobiq/react-primitives';
3
4
  export type TooltipPropControl = (props: DOMAttributes<FocusableElement | null> & {
4
5
  ref: ((node: FocusableElement | null) => void) | null;
5
6
  }) => ReactElement;
@@ -11,7 +12,7 @@ type TooltipDeprecatedProps = {
11
12
  /**
12
13
  * If `true`, the component is shown.
13
14
  * @default false
14
- *
15
+ * @deprecated
15
16
  * The "open" prop is deprecated. Use "isOpen" prop to replace it.
16
17
  */
17
18
  open?: boolean;
@@ -22,23 +23,12 @@ type TooltipDeprecatedProps = {
22
23
  */
23
24
  disabled?: boolean;
24
25
  };
25
- export type TooltipProps = {
26
+ export type TooltipProps = ExtendableProps<{
26
27
  /**
27
28
  * The variant to use.
28
29
  * @default 'contrast'
29
30
  */
30
31
  variant?: TooltipPropVariant;
31
- /** If `true`, the component is shown. */
32
- isOpen?: boolean;
33
- /** The default open state. Use when the component is not controlled. */
34
- defaultOpen?: boolean;
35
- /** Handler that is called when the overlay's open state changes. */
36
- onOpenChange?(open: boolean): void;
37
- /**
38
- * If `true`, the tooltip should be disabled, independent of the trigger.
39
- * @default false
40
- */
41
- isDisabled?: boolean;
42
32
  /** The content of the component. */
43
33
  children?: ReactNode;
44
34
  /** The render function of the control for displaying the tooltip. */
@@ -82,10 +72,6 @@ export type TooltipProps = {
82
72
  * @default 120
83
73
  */
84
74
  closeDelay?: number;
85
- /**
86
- * By default, opens for both focus and hover. Can be made to open only for focus.
87
- */
88
- trigger?: 'focus';
89
75
  /**
90
76
  * The element's unique identifier. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/id).
91
77
  */
@@ -97,6 +83,6 @@ export type TooltipProps = {
97
83
  * @default document.body
98
84
  */
99
85
  portalContainer?: Element;
100
- } & TooltipDeprecatedProps & DataAttributeProps;
86
+ } & TooltipDeprecatedProps & DataAttributeProps, TooltipTriggerProps>;
101
87
  export type TooltipRef = ComponentRef<'div'>;
102
88
  export {};
@@ -33,6 +33,7 @@ export * from './Table';
33
33
  export * from './Calendar';
34
34
  export * from './DateInput';
35
35
  export * from './DatePicker';
36
+ export * from './TimePicker';
36
37
  export * from './layout';
37
- export { useListData, type ListData, type ListOptions, } from '@koobiq/react-primitives';
38
+ export { useListData, type ListData, type ListOptions, type TimeValue, type DateValue, } from '@koobiq/react-primitives';
38
39
  export { useRouter, useLocale, type Locale, RouterProvider, useDateFormatter, } from '@koobiq/react-core';
package/dist/index.js CHANGED
@@ -60,13 +60,11 @@ import { Item } from "./components/Collections/Item.js";
60
60
  import { Section } from "./components/Collections/Section.js";
61
61
  import { List, ListInner } from "./components/List/List.js";
62
62
  import { ListItemText } from "./components/List/components/ListItemText/ListItemText.js";
63
- import { listPropSelectionMode } from "./components/List/types.js";
64
63
  import { AnimatedIcon } from "./components/AnimatedIcon/AnimatedIcon.js";
65
64
  import { Select } from "./components/Select/Select.js";
66
65
  import { Divider } from "./components/Divider/Divider.js";
67
- import { dividerPropDisplay, dividerPropOrientation } from "./components/Divider/types.js";
66
+ import { dividerPropDisplay } from "./components/Divider/types.js";
68
67
  import { Menu } from "./components/Menu/Menu.js";
69
- import { menuPropSelectionMode } from "./components/Menu/types.js";
70
68
  import { ButtonToggleGroup } from "./components/ButtonToggleGroup/ButtonToggleGroup.js";
71
69
  import { ButtonToggle } from "./components/ButtonToggleGroup/components/ButtonToggle/ButtonToggle.js";
72
70
  import { TagGroup } from "./components/TagGroup/TagGroup.js";
@@ -77,6 +75,7 @@ import { Calendar } from "./components/Calendar/Calendar.js";
77
75
  import { DateInput, DateInputRender } from "./components/DateInput/DateInput.js";
78
76
  import { dateInputPropVariant } from "./components/DateInput/types.js";
79
77
  import { DatePicker, DatePickerRender } from "./components/DatePicker/DatePicker.js";
78
+ import { TimePicker, TimePickerRender } from "./components/TimePicker/TimePicker.js";
80
79
  import { flex, flexPropAlignItems, flexPropDirection, flexPropFlex, flexPropGap, flexPropJustifyContent, flexPropOrder, flexPropWrap } from "./components/layout/flex/flex.js";
81
80
  import { spacing, spacingGap } from "./components/layout/spacing/spacing.js";
82
81
  export {
@@ -138,6 +137,8 @@ export {
138
137
  Tag,
139
138
  TagGroup,
140
139
  Textarea,
140
+ TimePicker,
141
+ TimePickerRender,
141
142
  Toggle,
142
143
  Tooltip,
143
144
  Typography,
@@ -152,7 +153,6 @@ export {
152
153
  dateInputPropVariant,
153
154
  defaultBreakpoints,
154
155
  dividerPropDisplay,
155
- dividerPropOrientation,
156
156
  flex,
157
157
  flexPropAlignItems,
158
158
  flexPropDirection,
@@ -166,8 +166,6 @@ export {
166
166
  iconButtonPropVariant,
167
167
  inputNumberPropVariant,
168
168
  inputPropVariant,
169
- listPropSelectionMode,
170
- menuPropSelectionMode,
171
169
  modalPropSize,
172
170
  popoverPropPlacement,
173
171
  popoverPropSize,
package/dist/style.css CHANGED
@@ -17,40 +17,6 @@
17
17
  --lightningcss-dark: initial;
18
18
  color-scheme: dark;
19
19
  }
20
-
21
- * {
22
- --scroll-bar-size: 16px;
23
- }
24
-
25
- *::-webkit-scrollbar {
26
- inline-size: var(--scroll-bar-size);
27
- }
28
-
29
- *::-webkit-scrollbar-thumb {
30
- border: calc(var(--scroll-bar-size) / 4) solid transparent;
31
- border-image: initial;
32
- min-block-size: calc(var(--scroll-bar-size) * 2);
33
- background-clip: padding-box;
34
- background-color: var(--kbq-icon-contrast-fade);
35
- border-radius: calc(var(--scroll-bar-size) / 2);
36
- }
37
-
38
- *::-webkit-scrollbar-thumb:hover, *::-webkit-scrollbar-thumb:active {
39
- border: calc(var(--scroll-bar-size) / 4) solid transparent;
40
- background-clip: padding-box;
41
- }
42
-
43
- *::-webkit-scrollbar-thumb:hover {
44
- background-color: var(--kbq-states-icon-contrast-fade-hover);
45
- }
46
-
47
- *::-webkit-scrollbar-thumb:active {
48
- background-color: var(--kbq-states-icon-contrast-fade-active);
49
- }
50
-
51
- *::-webkit-scrollbar-corner {
52
- background: none;
53
- }
54
20
  .kbq-flex-7624b3 {
55
21
  --flex-gap: 0;
56
22
  --flex-order: 0;
@@ -1377,6 +1343,40 @@
1377
1343
  border-start-start-radius: 0;
1378
1344
  border-start-end-radius: 0;
1379
1345
  }
1346
+
1347
+ .kbq-utility-scrollable-9f9fc8 {
1348
+ --scroll-bar-size: 16px;
1349
+ }
1350
+
1351
+ .kbq-utility-scrollable-9f9fc8::-webkit-scrollbar {
1352
+ inline-size: var(--scroll-bar-size);
1353
+ }
1354
+
1355
+ .kbq-utility-scrollable-9f9fc8::-webkit-scrollbar-thumb {
1356
+ border: calc(var(--scroll-bar-size) / 4) solid transparent;
1357
+ border-image: initial;
1358
+ min-block-size: calc(var(--scroll-bar-size) * 2);
1359
+ background-clip: padding-box;
1360
+ background-color: var(--kbq-icon-contrast-fade);
1361
+ border-radius: calc(var(--scroll-bar-size) / 2);
1362
+ }
1363
+
1364
+ .kbq-utility-scrollable-9f9fc8::-webkit-scrollbar-thumb:hover, .kbq-utility-scrollable-9f9fc8::-webkit-scrollbar-thumb:active {
1365
+ border: calc(var(--scroll-bar-size) / 4) solid transparent;
1366
+ background-clip: padding-box;
1367
+ }
1368
+
1369
+ .kbq-utility-scrollable-9f9fc8::-webkit-scrollbar-thumb:hover {
1370
+ background-color: var(--kbq-states-icon-contrast-fade-hover);
1371
+ }
1372
+
1373
+ .kbq-utility-scrollable-9f9fc8::-webkit-scrollbar-thumb:active {
1374
+ background-color: var(--kbq-states-icon-contrast-fade-active);
1375
+ }
1376
+
1377
+ .kbq-utility-scrollable-9f9fc8::-webkit-scrollbar-corner {
1378
+ background: none;
1379
+ }
1380
1380
  .kbq-typography-645b00 {
1381
1381
  margin: unset;
1382
1382
  }
@@ -1508,6 +1508,7 @@
1508
1508
 
1509
1509
  .kbq-checkbox-invalid-253c35 {
1510
1510
  --checkbox-border-color: var(--kbq-line-error);
1511
+ --checkbox-bg-color: var(--kbq-background-error-less);
1511
1512
  }
1512
1513
 
1513
1514
  .kbq-checkbox-invalid-253c35:where(.kbq-checkbox-hovered-a8a95e) {
@@ -3862,31 +3863,38 @@
3862
3863
  .kbq-fieldinputdate-transparent-04d912:where(.kbq-fieldinputdate-disabled-692832) {
3863
3864
  --field-input-color: var(--kbq-states-foreground-disabled);
3864
3865
  }
3865
- .kbq-dateinputsegment-996e10 {
3866
+ .kbq-datesegment-3b7153 {
3866
3867
  --date-input-segment-color: var(--field-input-color);
3867
3868
  color: var(--date-input-segment-color);
3868
3869
  }
3869
3870
 
3870
- .kbq-dateinputsegment-996e10:focus {
3871
+ .kbq-datesegment-3b7153:focus {
3871
3872
  color: var(--date-input-segment-color);
3872
3873
  background-color: highlight;
3873
3874
  outline: none;
3874
3875
  }
3875
3876
 
3876
- .kbq-dateinputsegment-placeholder-be1df1 {
3877
+ .kbq-datesegment-placeholder-b233e5 {
3877
3878
  color: var(--field-input-placeholder-color);
3878
3879
  }
3879
3880
 
3880
- .kbq-dateinputsegment-literal-d722fc {
3881
+ .kbq-datesegment-literal-a4b534 {
3881
3882
  white-space: pre;
3882
3883
  }
3883
3884
 
3884
- .kbq-dateinputsegment-literal-d722fc:not(.kbq-dateinputsegment-hasValue-886d0f) {
3885
+ .kbq-datesegment-literal-a4b534:not(.kbq-datesegment-hasValue-800714) {
3885
3886
  color: var(--field-input-placeholder-color);
3886
3887
  }
3887
3888
  .kbq-datepicker-calendar-25a0d7 {
3888
3889
  margin-inline-end: calc(-1 * var(--kbq-size-xxs));
3889
3890
  }
3891
+ .kbq-timepicker-a6e9f3 {
3892
+ min-inline-size: 150px;
3893
+ }
3894
+
3895
+ .kbq-timepicker-startAddon-46c835 {
3896
+ pointer-events: none;
3897
+ }
3890
3898
  .kbq-spacing-mbs_0-be7021 {
3891
3899
  margin-block-start: 0;
3892
3900
  }
@@ -70,4 +70,5 @@ export declare const utilClasses: {
70
70
  };
71
71
  list: string;
72
72
  listItem: string;
73
+ scrollable: string;
73
74
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@koobiq/react-components",
3
- "version": "0.0.1",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -28,10 +28,10 @@
28
28
  "@koobiq/design-tokens": "^3.14.0",
29
29
  "@types/react-transition-group": "^4.4.12",
30
30
  "react-transition-group": "^4.4.5",
31
- "@koobiq/react-core": "0.0.1",
32
- "@koobiq/react-primitives": "0.0.1",
33
- "@koobiq/logger": "0.0.1",
34
- "@koobiq/react-icons": "0.0.1"
31
+ "@koobiq/logger": "0.1.1",
32
+ "@koobiq/react-icons": "0.1.1",
33
+ "@koobiq/react-core": "0.1.1",
34
+ "@koobiq/react-primitives": "0.1.1"
35
35
  },
36
36
  "peerDependencies": {
37
37
  "@koobiq/design-tokens": "^3.14.0",
@@ -1,7 +0,0 @@
1
- import type { DateSegment, DateFieldState } from '@koobiq/react-primitives';
2
- type DateInputSegmentProps = {
3
- segment: DateSegment;
4
- state: DateFieldState;
5
- };
6
- export declare function DateInputSegment({ segment, state }: DateInputSegmentProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,27 +0,0 @@
1
- import { jsx } from "react/jsx-runtime";
2
- import { useRef } from "react";
3
- import { clsx } from "@koobiq/react-core";
4
- import { useDateSegment } from "@koobiq/react-primitives";
5
- import s from "./DateInputSegment.module.css.js";
6
- function DateInputSegment({ segment, state }) {
7
- const ref = useRef(null);
8
- const { segmentProps } = useDateSegment(segment, state, ref);
9
- const { text, isPlaceholder, type } = segment;
10
- return /* @__PURE__ */ jsx(
11
- "span",
12
- {
13
- ...segmentProps,
14
- ref,
15
- className: clsx(
16
- s.base,
17
- s[type],
18
- state.value !== null && s.hasValue,
19
- isPlaceholder && s.placeholder
20
- ),
21
- children: text
22
- }
23
- );
24
- }
25
- export {
26
- DateInputSegment
27
- };
@@ -1,17 +0,0 @@
1
- const base = "kbq-dateinputsegment-996e10";
2
- const placeholder = "kbq-dateinputsegment-placeholder-be1df1";
3
- const literal = "kbq-dateinputsegment-literal-d722fc";
4
- const hasValue = "kbq-dateinputsegment-hasValue-886d0f";
5
- const s = {
6
- base,
7
- placeholder,
8
- literal,
9
- hasValue
10
- };
11
- export {
12
- base,
13
- s as default,
14
- hasValue,
15
- literal,
16
- placeholder
17
- };
@@ -1 +0,0 @@
1
- export * from './DateInputSegment';
@@ -1 +0,0 @@
1
- export * from './DateInputSegment';
@@ -1,4 +0,0 @@
1
- const listPropSelectionMode = ["none", "single", "multiple"];
2
- export {
3
- listPropSelectionMode
4
- };
@@ -1,4 +0,0 @@
1
- const menuPropSelectionMode = ["none", "single", "multiple"];
2
- export {
3
- menuPropSelectionMode
4
- };