@gen3/frontend 0.11.26 → 0.11.28

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 (149) hide show
  1. package/dist/cjs/index.js +44 -6
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/dts/components/Providers/Gen3Provider.d.ts +6 -6
  4. package/dist/dts/components/SegmentedControl.stories.d.ts +374 -0
  5. package/dist/dts/components/SegmentedControl.stories.d.ts.map +1 -0
  6. package/dist/dts/components/SegmentedControl.stories.js +28 -0
  7. package/dist/dts/components/SegmentedControl.stories.js.map +1 -0
  8. package/dist/dts/features/Analysis/AnalysisCardCompact.stories.d.ts +4 -4
  9. package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.d.ts +3 -0
  10. package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.d.ts.map +1 -0
  11. package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.js +46 -0
  12. package/dist/dts/features/CohortBuilder/ExplorerTable/AccessCellRenderers.js.map +1 -0
  13. package/dist/dts/features/CohortBuilder/Repository/Repository.d.ts +4 -0
  14. package/dist/dts/features/CohortBuilder/Repository/Repository.d.ts.map +1 -0
  15. package/dist/dts/features/CohortBuilder/Repository/Repository.js +8 -0
  16. package/dist/dts/features/CohortBuilder/Repository/Repository.js.map +1 -0
  17. package/dist/dts/features/CohortBuilder/Repository/index.d.ts +4 -0
  18. package/dist/dts/features/CohortBuilder/Repository/index.d.ts.map +1 -0
  19. package/dist/dts/features/CohortBuilder/Repository/index.js +3 -0
  20. package/dist/dts/features/CohortBuilder/Repository/index.js.map +1 -0
  21. package/dist/dts/features/CohortBuilder/Repository/types.d.ts +12 -0
  22. package/dist/dts/features/CohortBuilder/Repository/types.d.ts.map +1 -0
  23. package/dist/dts/features/CohortBuilder/Repository/types.js.map +1 -0
  24. package/dist/dts/lib/session/session.d.ts.map +1 -1
  25. package/dist/dts/lib/session/session.js +36 -1
  26. package/dist/dts/lib/session/session.js.map +1 -1
  27. package/dist/dts/pages/Repository/Repository.d.ts +4 -0
  28. package/dist/dts/pages/Repository/Repository.d.ts.map +1 -0
  29. package/dist/dts/pages/Repository/Repository.js +24 -0
  30. package/dist/dts/pages/Repository/Repository.js.map +1 -0
  31. package/dist/dts/pages/Repository/data.d.ts +4 -0
  32. package/dist/dts/pages/Repository/data.d.ts.map +1 -0
  33. package/dist/dts/{features/CohortBuilder/CohortManager/cohortActionHooks.js → pages/Repository/data.js} +55 -42
  34. package/dist/dts/pages/Repository/data.js.map +1 -0
  35. package/dist/dts/pages/Repository/index.d.ts +4 -0
  36. package/dist/dts/pages/Repository/index.d.ts.map +1 -0
  37. package/dist/dts/pages/Repository/index.js +4 -0
  38. package/dist/dts/pages/Repository/index.js.map +1 -0
  39. package/dist/dts/pages/Repository/types.d.ts +6 -0
  40. package/dist/dts/pages/Repository/types.d.ts.map +1 -0
  41. package/dist/dts/pages/Repository/types.js +2 -0
  42. package/dist/dts/pages/Repository/types.js.map +1 -0
  43. package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.d.ts.map +1 -1
  44. package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js +3 -2
  45. package/dist/dts/pages/TabbedCohortBuilder/TabbedCohortBuilderPage.js.map +1 -1
  46. package/dist/dts/types/icons.d.ts +2 -2
  47. package/dist/dts/types/icons.d.ts.map +1 -1
  48. package/dist/dts/types/icons.js +2 -2
  49. package/dist/dts/types/icons.js.map +1 -1
  50. package/dist/esm/index.js +45 -7
  51. package/dist/esm/index.js.map +1 -1
  52. package/dist/index.d.ts +6 -6
  53. package/dist/tsconfig.tsbuildinfo +1 -1
  54. package/package.json +3 -3
  55. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts +0 -64
  56. package/dist/dts/components/DropdownMenu/DropdownMenu.d.ts.map +0 -1
  57. package/dist/dts/components/DropdownMenu/DropdownMenu.js +0 -38
  58. package/dist/dts/components/DropdownMenu/DropdownMenu.js.map +0 -1
  59. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts +0 -2
  60. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.d.ts.map +0 -1
  61. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js +0 -141
  62. package/dist/dts/components/DropdownMenu/DropdownMenu.unit.test.js.map +0 -1
  63. package/dist/dts/components/DropdownMenu/index.d.ts +0 -3
  64. package/dist/dts/components/DropdownMenu/index.d.ts.map +0 -1
  65. package/dist/dts/components/DropdownMenu/index.js +0 -3
  66. package/dist/dts/components/DropdownMenu/index.js.map +0 -1
  67. package/dist/dts/components/MessageCards/ErrorMessage.d.ts +0 -7
  68. package/dist/dts/components/MessageCards/ErrorMessage.d.ts.map +0 -1
  69. package/dist/dts/components/MessageCards/ErrorMessage.js +0 -8
  70. package/dist/dts/components/MessageCards/ErrorMessage.js.map +0 -1
  71. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts +0 -20
  72. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.d.ts.map +0 -1
  73. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js +0 -37
  74. package/dist/dts/features/CohortBuilder/CohortManager/CohortActions.js.map +0 -1
  75. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts +0 -9
  76. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.d.ts.map +0 -1
  77. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js +0 -122
  78. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotificationProvider.js.map +0 -1
  79. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts +0 -19
  80. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.d.ts.map +0 -1
  81. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js +0 -52
  82. package/dist/dts/features/CohortBuilder/CohortManager/CohortNotifications.js.map +0 -1
  83. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts +0 -10
  84. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.d.ts.map +0 -1
  85. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js +0 -37
  86. package/dist/dts/features/CohortBuilder/CohortManager/CohortSelector.js.map +0 -1
  87. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts +0 -13
  88. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.d.ts.map +0 -1
  89. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js +0 -33
  90. package/dist/dts/features/CohortBuilder/CohortManager/CustomCohortSelectItem.js.map +0 -1
  91. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts +0 -7
  92. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.d.ts.map +0 -1
  93. package/dist/dts/features/CohortBuilder/CohortManager/cohortActionHooks.js.map +0 -1
  94. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts +0 -5
  95. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.d.ts.map +0 -1
  96. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js +0 -5
  97. package/dist/dts/features/CohortBuilder/CohortManager/commonIcons.js.map +0 -1
  98. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts +0 -5
  99. package/dist/dts/features/CohortBuilder/CohortManager/index.d.ts.map +0 -1
  100. package/dist/dts/features/CohortBuilder/CohortManager/index.js +0 -4
  101. package/dist/dts/features/CohortBuilder/CohortManager/index.js.map +0 -1
  102. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts +0 -13
  103. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.d.ts.map +0 -1
  104. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js +0 -15
  105. package/dist/dts/features/CohortBuilder/CohortManager/modals/GenericCohortModal.js.map +0 -1
  106. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts +0 -4
  107. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.d.ts.map +0 -1
  108. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js +0 -8
  109. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortErrorModal.js.map +0 -1
  110. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts +0 -32
  111. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.d.ts.map +0 -1
  112. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js +0 -190
  113. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.js.map +0 -1
  114. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts +0 -2
  115. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.d.ts.map +0 -1
  116. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js +0 -145
  117. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveCohortModal.unit.test.js.map +0 -1
  118. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts +0 -29
  119. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.d.ts.map +0 -1
  120. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js +0 -79
  121. package/dist/dts/features/CohortBuilder/CohortManager/modals/SaveOrCreateEntityModal.js.map +0 -1
  122. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts +0 -5
  123. package/dist/dts/features/CohortBuilder/CohortManager/style.d.ts.map +0 -1
  124. package/dist/dts/features/CohortBuilder/CohortManager/style.js +0 -21
  125. package/dist/dts/features/CohortBuilder/CohortManager/style.js.map +0 -1
  126. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts +0 -49
  127. package/dist/dts/features/CohortBuilder/CohortManager/types.d.ts.map +0 -1
  128. package/dist/dts/features/CohortBuilder/CohortManager/types.js.map +0 -1
  129. package/dist/dts/features/CohortBuilder/CohortManager.d.ts +0 -6
  130. package/dist/dts/features/CohortBuilder/CohortManager.d.ts.map +0 -1
  131. package/dist/dts/features/CohortBuilder/CohortManager.js +0 -8
  132. package/dist/dts/features/CohortBuilder/CohortManager.js.map +0 -1
  133. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts +0 -64
  134. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.d.ts.map +0 -1
  135. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js +0 -572
  136. package/dist/dts/features/CohortDiscovery/CohortManagment/CohortStorage.js.map +0 -1
  137. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts +0 -1
  138. package/dist/dts/features/CohortDiscovery/CohortSelectors.d.ts.map +0 -1
  139. package/dist/dts/features/CohortDiscovery/CohortSelectors.js +0 -41
  140. package/dist/dts/features/CohortDiscovery/CohortSelectors.js.map +0 -1
  141. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts +0 -1
  142. package/dist/dts/features/CohortDiscovery/CohortSlice.d.ts.map +0 -1
  143. package/dist/dts/features/CohortDiscovery/CohortSlice.js +0 -162
  144. package/dist/dts/features/CohortDiscovery/CohortSlice.js.map +0 -1
  145. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts +0 -1
  146. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.d.ts.map +0 -1
  147. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js +0 -284
  148. package/dist/dts/features/CohortDiscovery/SavedCohortManagerSlice.js.map +0 -1
  149. /package/dist/dts/features/CohortBuilder/{CohortManager → Repository}/types.js +0 -0
@@ -81,9 +81,9 @@ export declare const createMantineTheme: (fonts: Fonts, colors: Record<string, T
81
81
  } | undefined;
82
82
  radius?: {
83
83
  [x: string & {}]: string | undefined;
84
+ md?: string | undefined;
84
85
  sm?: string | undefined;
85
86
  xs?: string | undefined;
86
- md?: string | undefined;
87
87
  lg?: string | undefined;
88
88
  xl?: string | undefined;
89
89
  } | undefined;
@@ -91,41 +91,41 @@ export declare const createMantineTheme: (fonts: Fonts, colors: Record<string, T
91
91
  spacing?: {
92
92
  [x: number]: string | undefined;
93
93
  [x: string & {}]: string | undefined;
94
+ md?: string | undefined;
94
95
  sm?: string | undefined;
95
96
  xs?: string | undefined;
96
- md?: string | undefined;
97
97
  lg?: string | undefined;
98
98
  xl?: string | undefined;
99
99
  } | undefined;
100
100
  fontSizes?: {
101
101
  [x: string & {}]: string | undefined;
102
+ md?: string | undefined;
102
103
  sm?: string | undefined;
103
104
  xs?: string | undefined;
104
- md?: string | undefined;
105
105
  lg?: string | undefined;
106
106
  xl?: string | undefined;
107
107
  } | undefined;
108
108
  lineHeights?: {
109
109
  [x: string & {}]: string | undefined;
110
+ md?: string | undefined;
110
111
  sm?: string | undefined;
111
112
  xs?: string | undefined;
112
- md?: string | undefined;
113
113
  lg?: string | undefined;
114
114
  xl?: string | undefined;
115
115
  } | undefined;
116
116
  breakpoints?: {
117
117
  [x: string & {}]: string | undefined;
118
+ md?: string | undefined;
118
119
  sm?: string | undefined;
119
120
  xs?: string | undefined;
120
- md?: string | undefined;
121
121
  lg?: string | undefined;
122
122
  xl?: string | undefined;
123
123
  } | undefined;
124
124
  shadows?: {
125
125
  [x: string & {}]: string | undefined;
126
+ md?: string | undefined;
126
127
  sm?: string | undefined;
127
128
  xs?: string | undefined;
128
- md?: string | undefined;
129
129
  lg?: string | undefined;
130
130
  xl?: string | undefined;
131
131
  } | undefined;
@@ -0,0 +1,374 @@
1
+ import React from 'react';
2
+ import type { StoryObj } from '@storybook/react';
3
+ import { SegmentedControlItem } from '@mantine/core';
4
+ declare const meta: {
5
+ component: React.FC<import("@mantine/core").SegmentedControlProps & {
6
+ readonly padding?: number;
7
+ }>;
8
+ decorators: ((Story: import("@storybook/core/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
9
+ data: (string | SegmentedControlItem)[];
10
+ value?: string | undefined;
11
+ defaultValue?: string | undefined;
12
+ onChange?: ((value: string) => void) | undefined;
13
+ disabled?: boolean | undefined;
14
+ name?: string | undefined;
15
+ fullWidth?: boolean | undefined;
16
+ color?: import("@mantine/core").MantineColor | undefined;
17
+ size?: (import("@mantine/core").MantineSize | (string & {})) | undefined;
18
+ radius?: import("@mantine/core").MantineRadius | undefined;
19
+ transitionDuration?: number | undefined;
20
+ transitionTimingFunction?: string | undefined;
21
+ orientation?: "vertical" | "horizontal" | undefined;
22
+ readOnly?: boolean | undefined;
23
+ autoContrast?: boolean | undefined;
24
+ withItemsBorders?: boolean | undefined;
25
+ className?: string | undefined;
26
+ style?: import("@mantine/core").MantineStyleProp;
27
+ __vars?: import("@mantine/core").CssVarsProp | undefined;
28
+ __size?: string | undefined;
29
+ hiddenFrom?: import("@mantine/core").MantineBreakpoint | undefined;
30
+ visibleFrom?: import("@mantine/core").MantineBreakpoint | undefined;
31
+ lightHidden?: boolean | undefined;
32
+ darkHidden?: boolean | undefined;
33
+ mod?: import("@mantine/core").BoxMod | undefined;
34
+ m?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
35
+ my?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
36
+ mx?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
37
+ mt?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
38
+ mb?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
39
+ ms?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
40
+ me?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
41
+ ml?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
42
+ mr?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
43
+ p?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
44
+ py?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
45
+ px?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
46
+ pt?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
47
+ pb?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
48
+ ps?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
49
+ pe?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
50
+ pl?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
51
+ pr?: import("@mantine/core").StyleProp<import("@mantine/core").MantineSpacing> | undefined;
52
+ bd?: import("@mantine/core").StyleProp<import("csstype").Property.Border<string | number> | undefined>;
53
+ bg?: import("@mantine/core").StyleProp<import("@mantine/core").MantineColor> | undefined;
54
+ c?: import("@mantine/core").StyleProp<import("@mantine/core").MantineColor> | undefined;
55
+ opacity?: import("@mantine/core").StyleProp<import("csstype").Property.Opacity | undefined>;
56
+ ff?: import("@mantine/core").StyleProp<"monospace" | "text" | "heading" | (string & {})> | undefined;
57
+ fz?: import("@mantine/core").StyleProp<import("@mantine/core").MantineFontSize | `h${1 | 2 | 3 | 4 | 5 | 6}` | number | (string & {})> | undefined;
58
+ fw?: import("@mantine/core").StyleProp<import("csstype").Property.FontWeight | undefined>;
59
+ lts?: import("@mantine/core").StyleProp<import("csstype").Property.LetterSpacing<string | number> | undefined>;
60
+ ta?: import("@mantine/core").StyleProp<import("csstype").Property.TextAlign | undefined>;
61
+ lh?: import("@mantine/core").StyleProp<import("@mantine/core").MantineLineHeight | `h${1 | 2 | 3 | 4 | 5 | 6}` | number | (string & {})> | undefined;
62
+ fs?: import("@mantine/core").StyleProp<import("csstype").Property.FontStyle | undefined>;
63
+ tt?: import("@mantine/core").StyleProp<import("csstype").Property.TextTransform | undefined>;
64
+ td?: import("@mantine/core").StyleProp<import("csstype").Property.TextDecoration<string | number> | undefined>;
65
+ w?: import("@mantine/core").StyleProp<import("csstype").Property.Width<string | number> | undefined>;
66
+ miw?: import("@mantine/core").StyleProp<import("csstype").Property.MinWidth<string | number> | undefined>;
67
+ maw?: import("@mantine/core").StyleProp<import("csstype").Property.MaxWidth<string | number> | undefined>;
68
+ h?: import("@mantine/core").StyleProp<import("csstype").Property.Height<string | number> | undefined>;
69
+ mih?: import("@mantine/core").StyleProp<import("csstype").Property.MinHeight<string | number> | undefined>;
70
+ mah?: import("@mantine/core").StyleProp<import("csstype").Property.MaxHeight<string | number> | undefined>;
71
+ bgsz?: import("@mantine/core").StyleProp<import("csstype").Property.BackgroundSize<string | number> | undefined>;
72
+ bgp?: import("@mantine/core").StyleProp<import("csstype").Property.BackgroundPosition<string | number> | undefined>;
73
+ bgr?: import("@mantine/core").StyleProp<import("csstype").Property.BackgroundRepeat | undefined>;
74
+ bga?: import("@mantine/core").StyleProp<import("csstype").Property.BackgroundAttachment | undefined>;
75
+ pos?: import("@mantine/core").StyleProp<import("csstype").Property.Position | undefined>;
76
+ top?: import("@mantine/core").StyleProp<import("csstype").Property.Top<string | number> | undefined>;
77
+ left?: import("@mantine/core").StyleProp<import("csstype").Property.Left<string | number> | undefined>;
78
+ bottom?: import("@mantine/core").StyleProp<import("csstype").Property.Bottom<string | number> | undefined>;
79
+ right?: import("@mantine/core").StyleProp<import("csstype").Property.Right<string | number> | undefined>;
80
+ inset?: import("@mantine/core").StyleProp<import("csstype").Property.Inset<string | number> | undefined>;
81
+ display?: import("@mantine/core").StyleProp<import("csstype").Property.Display | undefined>;
82
+ flex?: import("@mantine/core").StyleProp<import("csstype").Property.Flex<string | number> | undefined>;
83
+ unstyled?: boolean | undefined;
84
+ variant?: string | undefined;
85
+ classNames?: Partial<Record<import("@mantine/core").SegmentedControlStylesNames, string>> | ((theme: import("@mantine/core").MantineTheme, props: import("@mantine/core").SegmentedControlProps, ctx: unknown) => Partial<Record<import("@mantine/core").SegmentedControlStylesNames, string>>) | undefined;
86
+ styles?: Partial<Record<import("@mantine/core").SegmentedControlStylesNames, import("@mantine/core").CSSProperties>> | ((theme: import("@mantine/core").MantineTheme, props: import("@mantine/core").SegmentedControlProps, ctx: unknown) => Partial<Record<import("@mantine/core").SegmentedControlStylesNames, import("@mantine/core").CSSProperties>>) | undefined;
87
+ vars?: import("@mantine/core").PartialVarsResolver<{
88
+ props: import("@mantine/core").SegmentedControlProps;
89
+ ref: HTMLDivElement;
90
+ stylesNames: import("@mantine/core").SegmentedControlStylesNames;
91
+ vars: import("@mantine/core").SegmentedControlCssVariables;
92
+ }> | undefined;
93
+ children?: React.ReactNode;
94
+ slot?: string | undefined | undefined;
95
+ title?: string | undefined | undefined;
96
+ key?: React.Key | null | undefined;
97
+ defaultChecked?: boolean | undefined | undefined;
98
+ suppressContentEditableWarning?: boolean | undefined | undefined;
99
+ suppressHydrationWarning?: boolean | undefined | undefined;
100
+ accessKey?: string | undefined | undefined;
101
+ autoCapitalize?: "off" | "none" | "on" | "sentences" | "words" | "characters" | undefined | (string & {}) | undefined;
102
+ autoFocus?: boolean | undefined | undefined;
103
+ contentEditable?: "inherit" | (boolean | "true" | "false") | "plaintext-only" | undefined;
104
+ contextMenu?: string | undefined | undefined;
105
+ dir?: string | undefined | undefined;
106
+ draggable?: (boolean | "true" | "false") | undefined;
107
+ enterKeyHint?: "enter" | "done" | "go" | "next" | "previous" | "search" | "send" | undefined | undefined;
108
+ hidden?: boolean | undefined | undefined;
109
+ id?: string | undefined | undefined;
110
+ lang?: string | undefined | undefined;
111
+ nonce?: string | undefined | undefined;
112
+ spellCheck?: (boolean | "true" | "false") | undefined;
113
+ tabIndex?: number | undefined | undefined;
114
+ translate?: "yes" | "no" | undefined | undefined;
115
+ radioGroup?: string | undefined | undefined;
116
+ role?: React.AriaRole | undefined;
117
+ about?: string | undefined | undefined;
118
+ content?: string | undefined | undefined;
119
+ datatype?: string | undefined | undefined;
120
+ inlist?: any;
121
+ prefix?: string | undefined | undefined;
122
+ property?: string | undefined | undefined;
123
+ rel?: string | undefined | undefined;
124
+ resource?: string | undefined | undefined;
125
+ rev?: string | undefined | undefined;
126
+ typeof?: string | undefined | undefined;
127
+ vocab?: string | undefined | undefined;
128
+ autoCorrect?: string | undefined | undefined;
129
+ autoSave?: string | undefined | undefined;
130
+ itemProp?: string | undefined | undefined;
131
+ itemScope?: boolean | undefined | undefined;
132
+ itemType?: string | undefined | undefined;
133
+ itemID?: string | undefined | undefined;
134
+ itemRef?: string | undefined | undefined;
135
+ results?: number | undefined | undefined;
136
+ security?: string | undefined | undefined;
137
+ unselectable?: "on" | "off" | undefined | undefined;
138
+ inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined | undefined;
139
+ is?: string | undefined | undefined;
140
+ exportparts?: string | undefined | undefined;
141
+ part?: string | undefined | undefined;
142
+ popover?: "" | "auto" | "manual" | undefined | undefined;
143
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined | undefined;
144
+ popoverTarget?: string | undefined | undefined;
145
+ onToggle?: React.ToggleEventHandler<HTMLDivElement> | undefined;
146
+ onBeforeToggle?: React.ToggleEventHandler<HTMLDivElement> | undefined;
147
+ inert?: boolean | undefined | undefined;
148
+ tw?: string | undefined;
149
+ "aria-activedescendant"?: string | undefined | undefined;
150
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
151
+ "aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined | undefined;
152
+ "aria-braillelabel"?: string | undefined | undefined;
153
+ "aria-brailleroledescription"?: string | undefined | undefined;
154
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
155
+ "aria-checked"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
156
+ "aria-colcount"?: number | undefined | undefined;
157
+ "aria-colindex"?: number | undefined | undefined;
158
+ "aria-colindextext"?: string | undefined | undefined;
159
+ "aria-colspan"?: number | undefined | undefined;
160
+ "aria-controls"?: string | undefined | undefined;
161
+ "aria-current"?: boolean | "false" | "true" | "page" | "step" | "location" | "date" | "time" | undefined | undefined;
162
+ "aria-describedby"?: string | undefined | undefined;
163
+ "aria-description"?: string | undefined | undefined;
164
+ "aria-details"?: string | undefined | undefined;
165
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
166
+ "aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined | undefined;
167
+ "aria-errormessage"?: string | undefined | undefined;
168
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
169
+ "aria-flowto"?: string | undefined | undefined;
170
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
171
+ "aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined | undefined;
172
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
173
+ "aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined | undefined;
174
+ "aria-keyshortcuts"?: string | undefined | undefined;
175
+ "aria-label"?: string | undefined | undefined;
176
+ "aria-labelledby"?: string | undefined | undefined;
177
+ "aria-level"?: number | undefined | undefined;
178
+ "aria-live"?: "off" | "assertive" | "polite" | undefined | undefined;
179
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
180
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
181
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
182
+ "aria-orientation"?: "horizontal" | "vertical" | undefined | undefined;
183
+ "aria-owns"?: string | undefined | undefined;
184
+ "aria-placeholder"?: string | undefined | undefined;
185
+ "aria-posinset"?: number | undefined | undefined;
186
+ "aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined | undefined;
187
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
188
+ "aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined | undefined;
189
+ "aria-required"?: (boolean | "true" | "false") | undefined;
190
+ "aria-roledescription"?: string | undefined | undefined;
191
+ "aria-rowcount"?: number | undefined | undefined;
192
+ "aria-rowindex"?: number | undefined | undefined;
193
+ "aria-rowindextext"?: string | undefined | undefined;
194
+ "aria-rowspan"?: number | undefined | undefined;
195
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
196
+ "aria-setsize"?: number | undefined | undefined;
197
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined | undefined;
198
+ "aria-valuemax"?: number | undefined | undefined;
199
+ "aria-valuemin"?: number | undefined | undefined;
200
+ "aria-valuenow"?: number | undefined | undefined;
201
+ "aria-valuetext"?: string | undefined | undefined;
202
+ dangerouslySetInnerHTML?: {
203
+ __html: string | TrustedHTML;
204
+ } | undefined;
205
+ onCopy?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
206
+ onCopyCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
207
+ onCut?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
208
+ onCutCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
209
+ onPaste?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
210
+ onPasteCapture?: React.ClipboardEventHandler<HTMLDivElement> | undefined;
211
+ onCompositionEnd?: React.CompositionEventHandler<HTMLDivElement> | undefined;
212
+ onCompositionEndCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
213
+ onCompositionStart?: React.CompositionEventHandler<HTMLDivElement> | undefined;
214
+ onCompositionStartCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
215
+ onCompositionUpdate?: React.CompositionEventHandler<HTMLDivElement> | undefined;
216
+ onCompositionUpdateCapture?: React.CompositionEventHandler<HTMLDivElement> | undefined;
217
+ onFocus?: React.FocusEventHandler<HTMLDivElement> | undefined;
218
+ onFocusCapture?: React.FocusEventHandler<HTMLDivElement> | undefined;
219
+ onBlur?: React.FocusEventHandler<HTMLDivElement> | undefined;
220
+ onBlurCapture?: React.FocusEventHandler<HTMLDivElement> | undefined;
221
+ onChangeCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
222
+ onBeforeInput?: React.InputEventHandler<HTMLDivElement> | undefined;
223
+ onBeforeInputCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
224
+ onInput?: React.FormEventHandler<HTMLDivElement> | undefined;
225
+ onInputCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
226
+ onReset?: React.FormEventHandler<HTMLDivElement> | undefined;
227
+ onResetCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
228
+ onSubmit?: React.FormEventHandler<HTMLDivElement> | undefined;
229
+ onSubmitCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
230
+ onInvalid?: React.FormEventHandler<HTMLDivElement> | undefined;
231
+ onInvalidCapture?: React.FormEventHandler<HTMLDivElement> | undefined;
232
+ onLoad?: React.ReactEventHandler<HTMLDivElement> | undefined;
233
+ onLoadCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
234
+ onError?: React.ReactEventHandler<HTMLDivElement> | undefined;
235
+ onErrorCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
236
+ onKeyDown?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
237
+ onKeyDownCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
238
+ onKeyPress?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
239
+ onKeyPressCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
240
+ onKeyUp?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
241
+ onKeyUpCapture?: React.KeyboardEventHandler<HTMLDivElement> | undefined;
242
+ onAbort?: React.ReactEventHandler<HTMLDivElement> | undefined;
243
+ onAbortCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
244
+ onCanPlay?: React.ReactEventHandler<HTMLDivElement> | undefined;
245
+ onCanPlayCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
246
+ onCanPlayThrough?: React.ReactEventHandler<HTMLDivElement> | undefined;
247
+ onCanPlayThroughCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
248
+ onDurationChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
249
+ onDurationChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
250
+ onEmptied?: React.ReactEventHandler<HTMLDivElement> | undefined;
251
+ onEmptiedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
252
+ onEncrypted?: React.ReactEventHandler<HTMLDivElement> | undefined;
253
+ onEncryptedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
254
+ onEnded?: React.ReactEventHandler<HTMLDivElement> | undefined;
255
+ onEndedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
256
+ onLoadedData?: React.ReactEventHandler<HTMLDivElement> | undefined;
257
+ onLoadedDataCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
258
+ onLoadedMetadata?: React.ReactEventHandler<HTMLDivElement> | undefined;
259
+ onLoadedMetadataCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
260
+ onLoadStart?: React.ReactEventHandler<HTMLDivElement> | undefined;
261
+ onLoadStartCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
262
+ onPause?: React.ReactEventHandler<HTMLDivElement> | undefined;
263
+ onPauseCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
264
+ onPlay?: React.ReactEventHandler<HTMLDivElement> | undefined;
265
+ onPlayCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
266
+ onPlaying?: React.ReactEventHandler<HTMLDivElement> | undefined;
267
+ onPlayingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
268
+ onProgress?: React.ReactEventHandler<HTMLDivElement> | undefined;
269
+ onProgressCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
270
+ onRateChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
271
+ onRateChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
272
+ onSeeked?: React.ReactEventHandler<HTMLDivElement> | undefined;
273
+ onSeekedCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
274
+ onSeeking?: React.ReactEventHandler<HTMLDivElement> | undefined;
275
+ onSeekingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
276
+ onStalled?: React.ReactEventHandler<HTMLDivElement> | undefined;
277
+ onStalledCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
278
+ onSuspend?: React.ReactEventHandler<HTMLDivElement> | undefined;
279
+ onSuspendCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
280
+ onTimeUpdate?: React.ReactEventHandler<HTMLDivElement> | undefined;
281
+ onTimeUpdateCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
282
+ onVolumeChange?: React.ReactEventHandler<HTMLDivElement> | undefined;
283
+ onVolumeChangeCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
284
+ onWaiting?: React.ReactEventHandler<HTMLDivElement> | undefined;
285
+ onWaitingCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
286
+ onAuxClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
287
+ onAuxClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
288
+ onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
289
+ onClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
290
+ onContextMenu?: React.MouseEventHandler<HTMLDivElement> | undefined;
291
+ onContextMenuCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
292
+ onDoubleClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
293
+ onDoubleClickCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
294
+ onDrag?: React.DragEventHandler<HTMLDivElement> | undefined;
295
+ onDragCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
296
+ onDragEnd?: React.DragEventHandler<HTMLDivElement> | undefined;
297
+ onDragEndCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
298
+ onDragEnter?: React.DragEventHandler<HTMLDivElement> | undefined;
299
+ onDragEnterCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
300
+ onDragExit?: React.DragEventHandler<HTMLDivElement> | undefined;
301
+ onDragExitCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
302
+ onDragLeave?: React.DragEventHandler<HTMLDivElement> | undefined;
303
+ onDragLeaveCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
304
+ onDragOver?: React.DragEventHandler<HTMLDivElement> | undefined;
305
+ onDragOverCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
306
+ onDragStart?: React.DragEventHandler<HTMLDivElement> | undefined;
307
+ onDragStartCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
308
+ onDrop?: React.DragEventHandler<HTMLDivElement> | undefined;
309
+ onDropCapture?: React.DragEventHandler<HTMLDivElement> | undefined;
310
+ onMouseDown?: React.MouseEventHandler<HTMLDivElement> | undefined;
311
+ onMouseDownCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
312
+ onMouseEnter?: React.MouseEventHandler<HTMLDivElement> | undefined;
313
+ onMouseLeave?: React.MouseEventHandler<HTMLDivElement> | undefined;
314
+ onMouseMove?: React.MouseEventHandler<HTMLDivElement> | undefined;
315
+ onMouseMoveCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
316
+ onMouseOut?: React.MouseEventHandler<HTMLDivElement> | undefined;
317
+ onMouseOutCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
318
+ onMouseOver?: React.MouseEventHandler<HTMLDivElement> | undefined;
319
+ onMouseOverCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
320
+ onMouseUp?: React.MouseEventHandler<HTMLDivElement> | undefined;
321
+ onMouseUpCapture?: React.MouseEventHandler<HTMLDivElement> | undefined;
322
+ onSelect?: React.ReactEventHandler<HTMLDivElement> | undefined;
323
+ onSelectCapture?: React.ReactEventHandler<HTMLDivElement> | undefined;
324
+ onTouchCancel?: React.TouchEventHandler<HTMLDivElement> | undefined;
325
+ onTouchCancelCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
326
+ onTouchEnd?: React.TouchEventHandler<HTMLDivElement> | undefined;
327
+ onTouchEndCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
328
+ onTouchMove?: React.TouchEventHandler<HTMLDivElement> | undefined;
329
+ onTouchMoveCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
330
+ onTouchStart?: React.TouchEventHandler<HTMLDivElement> | undefined;
331
+ onTouchStartCapture?: React.TouchEventHandler<HTMLDivElement> | undefined;
332
+ onPointerDown?: React.PointerEventHandler<HTMLDivElement> | undefined;
333
+ onPointerDownCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
334
+ onPointerMove?: React.PointerEventHandler<HTMLDivElement> | undefined;
335
+ onPointerMoveCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
336
+ onPointerUp?: React.PointerEventHandler<HTMLDivElement> | undefined;
337
+ onPointerUpCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
338
+ onPointerCancel?: React.PointerEventHandler<HTMLDivElement> | undefined;
339
+ onPointerCancelCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
340
+ onPointerEnter?: React.PointerEventHandler<HTMLDivElement> | undefined;
341
+ onPointerLeave?: React.PointerEventHandler<HTMLDivElement> | undefined;
342
+ onPointerOver?: React.PointerEventHandler<HTMLDivElement> | undefined;
343
+ onPointerOverCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
344
+ onPointerOut?: React.PointerEventHandler<HTMLDivElement> | undefined;
345
+ onPointerOutCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
346
+ onGotPointerCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
347
+ onGotPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
348
+ onLostPointerCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
349
+ onLostPointerCaptureCapture?: React.PointerEventHandler<HTMLDivElement> | undefined;
350
+ onScroll?: React.UIEventHandler<HTMLDivElement> | undefined;
351
+ onScrollCapture?: React.UIEventHandler<HTMLDivElement> | undefined;
352
+ onWheel?: React.WheelEventHandler<HTMLDivElement> | undefined;
353
+ onWheelCapture?: React.WheelEventHandler<HTMLDivElement> | undefined;
354
+ onAnimationStart?: React.AnimationEventHandler<HTMLDivElement> | undefined;
355
+ onAnimationStartCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
356
+ onAnimationEnd?: React.AnimationEventHandler<HTMLDivElement> | undefined;
357
+ onAnimationEndCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
358
+ onAnimationIteration?: React.AnimationEventHandler<HTMLDivElement> | undefined;
359
+ onAnimationIterationCapture?: React.AnimationEventHandler<HTMLDivElement> | undefined;
360
+ onTransitionEnd?: React.TransitionEventHandler<HTMLDivElement> | undefined;
361
+ onTransitionEndCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
362
+ onTransitionCancel?: React.TransitionEventHandler<HTMLDivElement> | undefined;
363
+ onTransitionCancelCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
364
+ onTransitionRun?: React.TransitionEventHandler<HTMLDivElement> | undefined;
365
+ onTransitionRunCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
366
+ onTransitionStart?: React.TransitionEventHandler<HTMLDivElement> | undefined;
367
+ onTransitionStartCapture?: React.TransitionEventHandler<HTMLDivElement> | undefined;
368
+ readonly padding?: number | undefined;
369
+ }>) => import("react/jsx-runtime").JSX.Element)[];
370
+ };
371
+ export default meta;
372
+ type Story = StoryObj<typeof meta>;
373
+ export declare const Default: Story;
374
+ //# sourceMappingURL=SegmentedControl.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentedControl.stories.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,oBAAoB,EAAW,MAAM,eAAe,CAAC;AAkC9D,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAS+B,CAAC;AAE1C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAC"}
@@ -0,0 +1,28 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { BarChartIcon, SurvivalChartIcon } from '../types/icons';
3
+ import { Tooltip } from '@mantine/core';
4
+ import SegmentedControl from './SegmentedControl';
5
+ var chartButtons = [
6
+ {
7
+ value: 'histogram',
8
+ label: (_jsx(Tooltip, { label: "Histogram", position: "bottom-end", withArrow: true, arrowSize: 7, children: _jsx("div", { "data-testid": "button-histogram-plot", role: "button", "aria-label": "Select test histogram plot", children: _jsx(BarChartIcon, { size: 20, "aria-hidden": "true" }) }) })),
9
+ },
10
+ {
11
+ value: 'survival',
12
+ label: (_jsx(Tooltip, { label: 'Survival Plot', withArrow: true, arrowSize: 7, children: _jsx("div", { "data-testid": "button-survival-plot", role: "button", "aria-label": "Select test survival plot", children: _jsx(SurvivalChartIcon, { size: 20, "aria-hidden": "true" }) }) })),
13
+ },
14
+ ];
15
+ var meta = {
16
+ component: SegmentedControl,
17
+ decorators: [
18
+ function (Story) { return (_jsx("div", { className: "bg-base-lightest p-4", children: _jsx(Story, {}) })); },
19
+ ],
20
+ };
21
+ export default meta;
22
+ export var Default = {
23
+ args: {
24
+ padding: 1,
25
+ data: chartButtons,
26
+ },
27
+ };
28
+ //# sourceMappingURL=SegmentedControl.stories.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SegmentedControl.stories.js","sourceRoot":"","sources":["../../../src/components/SegmentedControl.stories.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAwB,OAAO,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAElD,IAAM,YAAY,GAA2B;IAC3C;QACE,KAAK,EAAE,WAAW;QAClB,KAAK,EAAE,CACL,KAAC,OAAO,IAAC,KAAK,EAAC,WAAW,EAAC,QAAQ,EAAC,YAAY,EAAC,SAAS,QAAC,SAAS,EAAE,CAAC,YACrE,6BACc,uBAAuB,EACnC,IAAI,EAAC,QAAQ,gBACD,4BAA4B,YAExC,KAAC,YAAY,IAAC,IAAI,EAAE,EAAE,iBAAc,MAAM,GAAG,GACzC,GACE,CACX;KACF;IACD;QACE,KAAK,EAAE,UAAU;QACjB,KAAK,EAAE,CACL,KAAC,OAAO,IAAC,KAAK,EAAE,eAAe,EAAE,SAAS,QAAC,SAAS,EAAE,CAAC,YACrD,6BACc,sBAAsB,EAClC,IAAI,EAAC,QAAQ,gBACD,2BAA2B,YAEvC,KAAC,iBAAiB,IAAC,IAAI,EAAE,EAAE,iBAAc,MAAM,GAAG,GAC9C,GACE,CACX;KACF;CACF,CAAC;AAEF,IAAM,IAAI,GAAG;IACX,SAAS,EAAE,gBAAgB;IAC3B,UAAU,EAAE;QACV,UAAC,KAAK,IAAK,OAAA,CACT,cAAK,SAAS,EAAC,sBAAsB,YACnC,KAAC,KAAK,KAAG,GACL,CACP,EAJU,CAIV;KACF;CACsC,CAAC;AAE1C,eAAe,IAAI,CAAC;AAIpB,MAAM,CAAC,IAAM,OAAO,GAAU;IAC5B,IAAI,EAAE;QACJ,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,YAAY;KACnB;CACF,CAAC"}
@@ -2,10 +2,10 @@ import React from 'react';
2
2
  import type { StoryObj } from '@storybook/react';
3
3
  declare const meta: {
4
4
  component: React.FC<{
5
- type: string;
6
- description: string;
7
5
  title: string;
6
+ type: string;
8
7
  count?: number | undefined;
8
+ description: string;
9
9
  href: string;
10
10
  icon: string | React.ReactElement;
11
11
  tags?: Array<string> | undefined;
@@ -23,10 +23,10 @@ declare const meta: {
23
23
  readonly selectionScreen?: React.FC | undefined;
24
24
  }>;
25
25
  decorators: ((Story: import("@storybook/core/csf").PartialStoryFn<import("@storybook/react").ReactRenderer, {
26
- type: string;
27
- description: string;
28
26
  title: string;
27
+ type: string;
29
28
  count?: number | undefined;
29
+ description: string;
30
30
  href: string;
31
31
  icon: string | React.ReactElement;
32
32
  tags?: Array<string> | undefined;
@@ -0,0 +1,3 @@
1
+ import { CellRendererFunctionProps } from './types';
2
+ export declare const ProjectAccessCellRenderer: ({ cell, params, }: CellRendererFunctionProps) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=AccessCellRenderers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccessCellRenderers.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/ExplorerTable/AccessCellRenderers.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAiDpD,eAAO,MAAM,yBAAyB,GAAI,mBAGvC,yBAAyB,4CAa3B,CAAC"}
@@ -0,0 +1,46 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ExtractValueFromObject } from '@gen3/core';
3
+ import { Badge } from '@mantine/core';
4
+ // TODO: refine this to make more general
5
+ var extractProgramAndProjectNames = function (path) {
6
+ // Regular expression to match the pattern /programs/{programName}/projects/{projectName}
7
+ var regex = /\/programs\/([^\/]+)\/projects\/([^\/]+)/;
8
+ var match = path.match(regex);
9
+ if (match) {
10
+ return {
11
+ programName: match[1],
12
+ projectName: match[2],
13
+ };
14
+ }
15
+ return {
16
+ programName: null,
17
+ projectName: null,
18
+ };
19
+ };
20
+ var isStringToColorTable = function (value) {
21
+ if (typeof value !== 'object' || value === null || Array.isArray(value)) {
22
+ return false;
23
+ }
24
+ for (var key in value) {
25
+ if (typeof key !== 'string' ||
26
+ typeof value[key] !== 'string') {
27
+ return false;
28
+ }
29
+ }
30
+ return true;
31
+ };
32
+ export var ProjectAccessCellRenderer = function (_a) {
33
+ var cell = _a.cell, params = _a.params;
34
+ var value = cell.getValue();
35
+ if (typeof value !== 'string')
36
+ return _jsx("span", { children: "Bad Value" });
37
+ var projectName = extractProgramAndProjectNames(value).projectName;
38
+ var color = 'primary.4';
39
+ if (params && isStringToColorTable(params === null || params === void 0 ? void 0 : params.colorTable)) {
40
+ if (projectName) {
41
+ color = ExtractValueFromObject(params.colorTable, projectName, color);
42
+ }
43
+ }
44
+ return _jsx(Badge, { color: color, children: projectName });
45
+ };
46
+ //# sourceMappingURL=AccessCellRenderers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AccessCellRenderers.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/ExplorerTable/AccessCellRenderers.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACpD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAOtC,yCAAyC;AACzC,IAAM,6BAA6B,GAAG,UAAC,IAAY;IACjD,yFAAyF;IACzF,IAAM,KAAK,GAAG,0CAA0C,CAAC;IACzD,IAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;IAEhC,IAAI,KAAK,EAAE,CAAC;QACV,OAAO;YACL,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;YACrB,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;SACtB,CAAC;IACJ,CAAC;IAED,OAAO;QACL,WAAW,EAAE,IAAI;QACjB,WAAW,EAAE,IAAI;KAClB,CAAC;AACJ,CAAC,CAAC;AAMF,IAAM,oBAAoB,GAAG,UAAC,KAAc;IAC1C,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACxE,OAAO,KAAK,CAAC;IACf,CAAC;IAED,KAAK,IAAM,GAAG,IAAI,KAAK,EAAE,CAAC;QACxB,IACE,OAAO,GAAG,KAAK,QAAQ;YACvB,OAAQ,KAAiC,CAAC,GAAG,CAAC,KAAK,QAAQ,EAC3D,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,yBAAyB,GAAG,UAAC,EAGd;QAF1B,IAAI,UAAA,EACJ,MAAM,YAAA;IAEN,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IAC9B,IAAI,OAAO,KAAK,KAAK,QAAQ;QAAE,OAAO,uCAAsB,CAAC;IACrD,IAAA,WAAW,GAAK,6BAA6B,CAAC,KAAK,CAAC,YAAzC,CAA0C;IAE7D,IAAI,KAAK,GAAG,WAAW,CAAC;IACxB,IAAI,MAAM,IAAI,oBAAoB,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,UAAU,CAAC,EAAE,CAAC;QACvD,IAAI,WAAW,EAAE,CAAC;YAChB,KAAK,GAAG,sBAAsB,CAAC,MAAM,CAAC,UAAU,EAAE,WAAW,EAAE,KAAK,CAAC,CAAC;QACxE,CAAC;IACH,CAAC;IAED,OAAO,KAAC,KAAK,IAAC,KAAK,EAAE,KAAK,YAAG,WAAW,GAAS,CAAC;AACpD,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { RepositoryConfiguration } from './types';
2
+ declare const Repository: ({ filters, guppyConfig, table, buttons, loginForDownload, dropdowns, }: RepositoryConfiguration) => import("react/jsx-runtime").JSX.Element;
3
+ export default Repository;
4
+ //# sourceMappingURL=Repository.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Repository.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/Repository.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAIlD,QAAA,MAAM,UAAU,GAAI,wEAOjB,uBAAuB,4CAazB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { CohortPanel } from '../CohortPanel';
3
+ var Repository = function (_a) {
4
+ var filters = _a.filters, guppyConfig = _a.guppyConfig, table = _a.table, buttons = _a.buttons, loginForDownload = _a.loginForDownload, dropdowns = _a.dropdowns;
5
+ return (_jsx(CohortPanel, { guppyConfig: guppyConfig, filters: filters, table: table, tabTitle: "Files", dropdowns: dropdowns, buttons: buttons, loginForDownload: loginForDownload }, "Repository-Panel"));
6
+ };
7
+ export default Repository;
8
+ //# sourceMappingURL=Repository.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Repository.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/Repository.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,IAAM,UAAU,GAAG,UAAC,EAOM;QANxB,OAAO,aAAA,EACP,WAAW,iBAAA,EACX,KAAK,WAAA,EACL,OAAO,aAAA,EACP,gBAAgB,sBAAA,EAChB,SAAS,eAAA;IAET,OAAO,CACL,KAAC,WAAW,IACV,WAAW,EAAE,WAAW,EAExB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAC,OAAO,EAChB,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,EAChB,gBAAgB,EAAE,gBAAgB,IAN9B,kBAAkB,CAOtB,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,4 @@
1
+ import Repository from './Repository';
2
+ import { type RepositoryConfiguration } from './types';
3
+ export { Repository, type RepositoryConfiguration };
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAEvD,OAAO,EAAE,UAAU,EAAE,KAAK,uBAAuB,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ import Repository from './Repository';
2
+ export { Repository };
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,cAAc,CAAC;AAGtC,OAAO,EAAE,UAAU,EAAgC,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { DataTypeConfigWithManifest, DownloadButtonConfig, DropdownsWithButtonsProps, TabsConfig } from '../types';
2
+ import { SummaryTable } from '../ExplorerTable/types';
3
+ import { Gen3AppConfigData } from '../../../lib/content/types';
4
+ export interface RepositoryConfiguration extends Gen3AppConfigData {
5
+ filters?: TabsConfig;
6
+ guppyConfig: DataTypeConfigWithManifest;
7
+ table?: SummaryTable;
8
+ dropdowns?: Record<string, DropdownsWithButtonsProps>;
9
+ buttons?: ReadonlyArray<DownloadButtonConfig>;
10
+ loginForDownload?: boolean;
11
+ }
12
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,0BAA0B,EAC1B,oBAAoB,EACpB,yBAAyB,EACzB,UAAU,EACX,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,WAAW,uBAAwB,SAAQ,iBAAiB;IAChE,OAAO,CAAC,EAAE,UAAU,CAAC;IACrB,WAAW,EAAE,0BAA0B,CAAC;IACxC,KAAK,CAAC,EAAE,YAAY,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,yBAAyB,CAAC,CAAC;IACtD,OAAO,CAAC,EAAE,aAAa,CAAC,oBAAoB,CAAC,CAAC;IAC9C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/features/CohortBuilder/Repository/types.ts"],"names":[],"mappings":""}