@okta/odyssey-react-mui 1.34.0 → 1.35.2

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 (114) hide show
  1. package/dist/cjs/Dialog.cjs +9 -1
  2. package/dist/cjs/Dialog.cjs.map +1 -1
  3. package/dist/cjs/Select.cjs +3 -1
  4. package/dist/cjs/Select.cjs.map +1 -1
  5. package/dist/cjs/Typography.cjs +8 -4
  6. package/dist/cjs/Typography.cjs.map +1 -1
  7. package/dist/cjs/labs/DataView/TableLayoutContent.cjs +4 -1
  8. package/dist/cjs/labs/DataView/TableLayoutContent.cjs.map +1 -1
  9. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs +269 -0
  10. package/dist/cjs/labs/OdysseyPickers/SearchDropdown.cjs.map +1 -0
  11. package/dist/cjs/labs/OdysseyPickers/index.cjs +9 -1
  12. package/dist/cjs/labs/OdysseyPickers/index.cjs.map +1 -1
  13. package/dist/cjs/theme/StringWithValue.cjs +6 -0
  14. package/dist/cjs/theme/StringWithValue.cjs.map +1 -0
  15. package/dist/cjs/theme/components.cjs +2590 -2592
  16. package/dist/cjs/theme/components.cjs.map +1 -1
  17. package/dist/cjs/theme/useMediaQuery.cjs +4 -4
  18. package/dist/cjs/theme/useMediaQuery.cjs.map +1 -1
  19. package/dist/cjs/ui-shell/InnerAppContainer.cjs +60 -0
  20. package/dist/cjs/ui-shell/InnerAppContainer.cjs.map +1 -0
  21. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs +6 -1
  22. package/dist/cjs/ui-shell/NarrowUiShellContent.cjs.map +1 -1
  23. package/dist/cjs/ui-shell/TopNav/TopNav.cjs +1 -6
  24. package/dist/cjs/ui-shell/TopNav/TopNav.cjs.map +1 -1
  25. package/dist/cjs/ui-shell/UiShell.cjs +6 -5
  26. package/dist/cjs/ui-shell/UiShell.cjs.map +1 -1
  27. package/dist/cjs/ui-shell/WideUiShellContent.cjs +8 -3
  28. package/dist/cjs/ui-shell/WideUiShellContent.cjs.map +1 -1
  29. package/dist/cjs/ui-shell/index.cjs +29 -9
  30. package/dist/cjs/ui-shell/index.cjs.map +1 -1
  31. package/dist/cjs/ui-shell/renderUiShell.cjs +2 -0
  32. package/dist/cjs/ui-shell/renderUiShell.cjs.map +1 -1
  33. package/dist/cjs/ui-shell/useMatchAppElementToUiShellAppArea.cjs +2 -1
  34. package/dist/cjs/ui-shell/useMatchAppElementToUiShellAppArea.cjs.map +1 -1
  35. package/dist/cjs/ui-shell/useUiShellBreakpoints.cjs +20 -15
  36. package/dist/cjs/ui-shell/useUiShellBreakpoints.cjs.map +1 -1
  37. package/dist/cjs/web-component/renderReactInWebComponent.cjs +21 -7
  38. package/dist/cjs/web-component/renderReactInWebComponent.cjs.map +1 -1
  39. package/dist/esm/Dialog.js +9 -1
  40. package/dist/esm/Dialog.js.map +1 -1
  41. package/dist/esm/Select.js +3 -1
  42. package/dist/esm/Select.js.map +1 -1
  43. package/dist/esm/Typography.js +8 -4
  44. package/dist/esm/Typography.js.map +1 -1
  45. package/dist/esm/labs/DataView/TableLayoutContent.js +4 -1
  46. package/dist/esm/labs/DataView/TableLayoutContent.js.map +1 -1
  47. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js +263 -0
  48. package/dist/esm/labs/OdysseyPickers/SearchDropdown.js.map +1 -0
  49. package/dist/esm/labs/OdysseyPickers/index.js +1 -0
  50. package/dist/esm/labs/OdysseyPickers/index.js.map +1 -1
  51. package/dist/esm/theme/StringWithValue.js +2 -0
  52. package/dist/esm/theme/StringWithValue.js.map +1 -0
  53. package/dist/esm/theme/components.js +2607 -2609
  54. package/dist/esm/theme/components.js.map +1 -1
  55. package/dist/esm/theme/useMediaQuery.js +5 -5
  56. package/dist/esm/theme/useMediaQuery.js.map +1 -1
  57. package/dist/esm/ui-shell/InnerAppContainer.js +56 -0
  58. package/dist/esm/ui-shell/InnerAppContainer.js.map +1 -0
  59. package/dist/esm/ui-shell/NarrowUiShellContent.js +6 -1
  60. package/dist/esm/ui-shell/NarrowUiShellContent.js.map +1 -1
  61. package/dist/esm/ui-shell/TopNav/TopNav.js +1 -6
  62. package/dist/esm/ui-shell/TopNav/TopNav.js.map +1 -1
  63. package/dist/esm/ui-shell/UiShell.js +6 -5
  64. package/dist/esm/ui-shell/UiShell.js.map +1 -1
  65. package/dist/esm/ui-shell/WideUiShellContent.js +8 -3
  66. package/dist/esm/ui-shell/WideUiShellContent.js.map +1 -1
  67. package/dist/esm/ui-shell/index.js +3 -1
  68. package/dist/esm/ui-shell/index.js.map +1 -1
  69. package/dist/esm/ui-shell/renderUiShell.js +2 -0
  70. package/dist/esm/ui-shell/renderUiShell.js.map +1 -1
  71. package/dist/esm/ui-shell/useMatchAppElementToUiShellAppArea.js +2 -1
  72. package/dist/esm/ui-shell/useMatchAppElementToUiShellAppArea.js.map +1 -1
  73. package/dist/esm/ui-shell/useUiShellBreakpoints.js +19 -14
  74. package/dist/esm/ui-shell/useUiShellBreakpoints.js.map +1 -1
  75. package/dist/esm/web-component/renderReactInWebComponent.js +19 -5
  76. package/dist/esm/web-component/renderReactInWebComponent.js.map +1 -1
  77. package/dist/index.cjs +1 -1
  78. package/dist/index.mjs +1 -1
  79. package/dist/index.scss +1 -1
  80. package/dist/tsconfig.production.tsbuildinfo +1 -1
  81. package/dist/tsconfig.tsbuildinfo +1 -1
  82. package/dist/types/Dialog.d.ts.map +1 -1
  83. package/dist/types/Select.d.ts +1 -0
  84. package/dist/types/Select.d.ts.map +1 -1
  85. package/dist/types/Typography.d.ts +6 -2
  86. package/dist/types/Typography.d.ts.map +1 -1
  87. package/dist/types/labs/DataView/TableLayoutContent.d.ts.map +1 -1
  88. package/dist/types/labs/OdysseyPickers/SearchDropdown.d.ts +33 -0
  89. package/dist/types/labs/OdysseyPickers/SearchDropdown.d.ts.map +1 -0
  90. package/dist/types/labs/OdysseyPickers/index.d.ts +2 -0
  91. package/dist/types/labs/OdysseyPickers/index.d.ts.map +1 -1
  92. package/dist/types/theme/StringWithValue.d.ts +13 -0
  93. package/dist/types/theme/StringWithValue.d.ts.map +1 -0
  94. package/dist/types/theme/components.d.ts.map +1 -1
  95. package/dist/types/theme/useMediaQuery.d.ts +2 -1
  96. package/dist/types/theme/useMediaQuery.d.ts.map +1 -1
  97. package/dist/types/ui-shell/InnerAppContainer.d.ts +35 -0
  98. package/dist/types/ui-shell/InnerAppContainer.d.ts.map +1 -0
  99. package/dist/types/ui-shell/NarrowUiShellContent.d.ts.map +1 -1
  100. package/dist/types/ui-shell/TopNav/TopNav.d.ts +1 -1
  101. package/dist/types/ui-shell/TopNav/TopNav.d.ts.map +1 -1
  102. package/dist/types/ui-shell/UiShell.d.ts +8 -1
  103. package/dist/types/ui-shell/UiShell.d.ts.map +1 -1
  104. package/dist/types/ui-shell/WideUiShellContent.d.ts.map +1 -1
  105. package/dist/types/ui-shell/index.d.ts +3 -1
  106. package/dist/types/ui-shell/index.d.ts.map +1 -1
  107. package/dist/types/ui-shell/renderUiShell.d.ts +2 -2
  108. package/dist/types/ui-shell/renderUiShell.d.ts.map +1 -1
  109. package/dist/types/ui-shell/useMatchAppElementToUiShellAppArea.d.ts.map +1 -1
  110. package/dist/types/ui-shell/useUiShellBreakpoints.d.ts +15 -5
  111. package/dist/types/ui-shell/useUiShellBreakpoints.d.ts.map +1 -1
  112. package/dist/types/web-component/renderReactInWebComponent.d.ts +1 -1
  113. package/dist/types/web-component/renderReactInWebComponent.d.ts.map +1 -1
  114. package/package.json +8 -8
@@ -0,0 +1,263 @@
1
+ /*!
2
+ * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.
3
+ * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.")
4
+ *
5
+ * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
6
+ * Unless required by applicable law or agreed to in writing, software
7
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
8
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ *
10
+ * See the License for the specific language governing permissions and limitations under the License.
11
+ */
12
+
13
+ import { memo, useCallback, useMemo } from "react";
14
+ import styled from "@emotion/styled";
15
+ import { ComposablePicker } from "./ComposablePicker.js";
16
+ import { useOdysseyDesignTokens } from "../../OdysseyDesignTokensContext.js";
17
+ import { Option, OptionDescriptionComponent, OptionLabelContainer, OptionMetadataComponent } from "./Picker.js";
18
+ import { Heading6 } from "../../Typography.js";
19
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
20
+ const OptionAdornmentContainer = styled("div", {
21
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens" && prop !== "adornmentSize" && prop !== "isTagContainer"
22
+ })(({
23
+ adornmentSize = "small",
24
+ isTagContainer = false,
25
+ odysseyDesignTokens,
26
+ position = "left"
27
+ }) => ({
28
+ position: "relative",
29
+ bottom: "1px",
30
+ alignSelf: "flex-start",
31
+ width: odysseyDesignTokens.Spacing5,
32
+ height: odysseyDesignTokens.Spacing5,
33
+ overflow: "hidden",
34
+ ...(position === "left" && {
35
+ marginInlineEnd: odysseyDesignTokens.Spacing3
36
+ }),
37
+ ...(position === "right" && {
38
+ marginInlineStart: odysseyDesignTokens.Spacing3
39
+ }),
40
+ svg: {
41
+ width: "100%",
42
+ height: "auto"
43
+ },
44
+ img: {
45
+ position: "absolute",
46
+ top: "50%",
47
+ left: "50%",
48
+ width: "100%",
49
+ transform: "translate(-50%, -50%)"
50
+ },
51
+ ...(adornmentSize === "large" && !isTagContainer && {
52
+ bottom: 0,
53
+ width: odysseyDesignTokens.Spacing8,
54
+ height: odysseyDesignTokens.Spacing8
55
+ }),
56
+ ...(isTagContainer && {
57
+ bottom: 0,
58
+ alignSelf: "center",
59
+ width: odysseyDesignTokens.Spacing4,
60
+ height: "auto",
61
+ maxHeight: odysseyDesignTokens.Spacing4,
62
+ marginInlineEnd: odysseyDesignTokens.Spacing2,
63
+ svg: {
64
+ display: "flex",
65
+ width: "100%",
66
+ height: "auto"
67
+ }
68
+ })
69
+ }));
70
+ const CustomOptionContainer = styled("div", {
71
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
72
+ })(() => ({
73
+ display: "flex",
74
+ justifyContent: "space-between",
75
+ width: "100%"
76
+ }));
77
+ const CustomOptionLeftContainer = styled("div", {
78
+ shouldForwardProp: prop => prop !== "odysseyDesignTokens"
79
+ })(() => ({
80
+ display: "flex"
81
+ }));
82
+ const OptionAdornment = ({
83
+ adornment,
84
+ adornmentSize,
85
+ odysseyDesignTokens
86
+ }) => {
87
+ const isImageAdornment = typeof adornment === "string";
88
+ if (isImageAdornment) {
89
+ return _jsx(OptionAdornmentContainer, {
90
+ adornmentSize: adornmentSize,
91
+ odysseyDesignTokens: odysseyDesignTokens,
92
+ children: _jsx("img", {
93
+ src: adornment,
94
+ alt: "",
95
+ role: "presentation"
96
+ })
97
+ });
98
+ } else {
99
+ return _jsx(OptionAdornmentContainer, {
100
+ adornmentSize: adornmentSize,
101
+ odysseyDesignTokens: odysseyDesignTokens,
102
+ children: adornment
103
+ });
104
+ }
105
+ };
106
+ const Extra = ({
107
+ content,
108
+ size,
109
+ odysseyDesignTokens,
110
+ onClick
111
+ }) => {
112
+ const handleClick = useCallback(event => {
113
+ event.stopPropagation();
114
+ onClick();
115
+ }, [onClick]);
116
+ return _jsx(OptionAdornmentContainer, {
117
+ adornmentSize: size,
118
+ odysseyDesignTokens: odysseyDesignTokens,
119
+ onClick: handleClick,
120
+ children: content
121
+ });
122
+ };
123
+ const CustomOption = ({
124
+ adornmentSize,
125
+ muiProps,
126
+ odysseyDesignTokens,
127
+ option
128
+ }) => {
129
+ const {
130
+ adornment,
131
+ description,
132
+ label,
133
+ metaData,
134
+ extra,
135
+ value,
136
+ onClick,
137
+ isInteractive = true
138
+ } = option;
139
+ const handleOptionClick = useCallback(event => {
140
+ if (!isInteractive) {
141
+ event.preventDefault();
142
+ return;
143
+ }
144
+ event.stopPropagation();
145
+ onClick?.();
146
+ }, [onClick, isInteractive]);
147
+ const extendedMuiProps = useMemo(() => {
148
+ return {
149
+ ...muiProps,
150
+ onClick: isInteractive ? handleOptionClick : undefined,
151
+ "aria-disabled": !isInteractive ? "true" : undefined,
152
+ role: "option"
153
+ };
154
+ }, [muiProps, isInteractive, handleOptionClick]);
155
+ return _jsx(Option, {
156
+ hasAdornment: true,
157
+ muiProps: extendedMuiProps,
158
+ children: _jsxs(CustomOptionContainer, {
159
+ odysseyDesignTokens: odysseyDesignTokens,
160
+ children: [_jsxs(CustomOptionLeftContainer, {
161
+ odysseyDesignTokens: odysseyDesignTokens,
162
+ children: [_jsx(OptionAdornment, {
163
+ adornment: adornment,
164
+ adornmentSize: adornmentSize,
165
+ odysseyDesignTokens: odysseyDesignTokens
166
+ }), _jsxs("div", {
167
+ children: [_jsxs(OptionLabelContainer, {
168
+ odysseyDesignTokens: odysseyDesignTokens,
169
+ children: [_jsx(Heading6, {
170
+ component: "p",
171
+ children: label
172
+ }), _jsx(OptionDescriptionComponent, {
173
+ description: description,
174
+ odysseyDesignTokens: odysseyDesignTokens
175
+ })]
176
+ }), metaData && _jsx(OptionMetadataComponent, {
177
+ metaData: metaData,
178
+ odysseyDesignTokens: odysseyDesignTokens
179
+ })]
180
+ })]
181
+ }), extra && _jsx(Extra, {
182
+ content: extra.content,
183
+ size: extra.size || adornmentSize,
184
+ onClick: extra.onClick,
185
+ odysseyDesignTokens: odysseyDesignTokens
186
+ })]
187
+ })
188
+ }, value);
189
+ };
190
+ const SearchDropdown = ({
191
+ adornmentSize = "small",
192
+ ariaDescribedBy,
193
+ defaultValue,
194
+ errorMessage,
195
+ errorMessageList,
196
+ getIsOptionEqualToValue,
197
+ groupOptionsBy,
198
+ id: idOverride,
199
+ inputValue,
200
+ isCustomValueAllowed,
201
+ isDisabled,
202
+ isFullWidth = false,
203
+ isLoading,
204
+ isOptional = false,
205
+ isReadOnly,
206
+ isVirtualized: isVirtualizedProp = false,
207
+ hint,
208
+ HintLinkComponent,
209
+ label,
210
+ name: nameOverride,
211
+ onBlur,
212
+ onChange: onChangeProp,
213
+ onInputChange: onInputChangeProp,
214
+ onFocus,
215
+ options,
216
+ value,
217
+ testId,
218
+ translate
219
+ }) => {
220
+ const odysseyDesignTokens = useOdysseyDesignTokens();
221
+ const customOptionRender = useCallback((muiProps, option) => {
222
+ return _jsx(CustomOption, {
223
+ adornmentSize: adornmentSize,
224
+ muiProps: muiProps,
225
+ odysseyDesignTokens: odysseyDesignTokens,
226
+ option: option
227
+ });
228
+ }, [adornmentSize, odysseyDesignTokens]);
229
+ return _jsx(ComposablePicker, {
230
+ ariaDescribedBy: ariaDescribedBy,
231
+ defaultValue: defaultValue,
232
+ errorMessage: errorMessage,
233
+ errorMessageList: errorMessageList,
234
+ getIsOptionEqualToValue: getIsOptionEqualToValue,
235
+ groupOptionsBy: groupOptionsBy,
236
+ id: idOverride,
237
+ inputValue: inputValue,
238
+ isCustomValueAllowed: isCustomValueAllowed,
239
+ isDisabled: isDisabled,
240
+ isFullWidth: isFullWidth,
241
+ isLoading: isLoading,
242
+ isOptional: isOptional,
243
+ isReadOnly: isReadOnly,
244
+ isVirtualized: isVirtualizedProp,
245
+ hint: hint,
246
+ HintLinkComponent: HintLinkComponent,
247
+ label: label,
248
+ name: nameOverride,
249
+ onBlur: onBlur,
250
+ onChange: onChangeProp,
251
+ onInputChange: onInputChangeProp,
252
+ onFocus: onFocus,
253
+ options: options,
254
+ renderOption: customOptionRender,
255
+ value: value,
256
+ testId: testId,
257
+ translate: translate
258
+ });
259
+ };
260
+ const MemoizedSearchDropdown = memo(SearchDropdown);
261
+ MemoizedSearchDropdown.displayName = "MemoizedSearchDropdown";
262
+ export { MemoizedSearchDropdown as SearchDropdown };
263
+ //# sourceMappingURL=SearchDropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SearchDropdown.js","names":["memo","useCallback","useMemo","styled","ComposablePicker","useOdysseyDesignTokens","Option","OptionDescriptionComponent","OptionLabelContainer","OptionMetadataComponent","Heading6","jsx","_jsx","jsxs","_jsxs","OptionAdornmentContainer","shouldForwardProp","prop","adornmentSize","isTagContainer","odysseyDesignTokens","position","bottom","alignSelf","width","Spacing5","height","overflow","marginInlineEnd","Spacing3","marginInlineStart","svg","img","top","left","transform","Spacing8","Spacing4","maxHeight","Spacing2","display","CustomOptionContainer","justifyContent","CustomOptionLeftContainer","OptionAdornment","adornment","isImageAdornment","children","src","alt","role","Extra","content","size","onClick","handleClick","event","stopPropagation","CustomOption","muiProps","option","description","label","metaData","extra","value","isInteractive","handleOptionClick","preventDefault","extendedMuiProps","undefined","hasAdornment","component","SearchDropdown","ariaDescribedBy","defaultValue","errorMessage","errorMessageList","getIsOptionEqualToValue","groupOptionsBy","id","idOverride","inputValue","isCustomValueAllowed","isDisabled","isFullWidth","isLoading","isOptional","isReadOnly","isVirtualized","isVirtualizedProp","hint","HintLinkComponent","name","nameOverride","onBlur","onChange","onChangeProp","onInputChange","onInputChangeProp","onFocus","options","testId","translate","customOptionRender","renderOption","MemoizedSearchDropdown","displayName"],"sources":["../../../../src/labs/OdysseyPickers/SearchDropdown.tsx"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nimport {\n HTMLAttributes,\n memo,\n ReactElement,\n ReactNode,\n useCallback,\n useMemo,\n} from \"react\";\nimport styled from \"@emotion/styled\";\n\nimport {\n ComposablePicker,\n type AdornmentSize,\n type BasePickerProps,\n type BasePickerType,\n} from \"./ComposablePicker.js\";\nimport {\n useOdysseyDesignTokens,\n DesignTokens,\n} from \"../../OdysseyDesignTokensContext.js\";\nimport {\n type BaseOptionProps,\n type LabelDescription,\n type Metadata,\n Option,\n OptionDescriptionComponent,\n OptionLabelContainer,\n OptionMetadataComponent,\n OptionProps,\n} from \"./Picker.js\";\nimport { Heading6 } from \"../../Typography.js\";\n\ntype Adornment = ReactNode | string;\ntype ExtraType = {\n content: ReactNode | string;\n size?: AdornmentSize;\n onClick: () => void;\n};\n\ntype AdornmentLabelDescription = LabelDescription & {\n adornment: Adornment;\n extra?: ExtraType;\n onClick?: () => void;\n isInteractive?: boolean;\n};\n\nexport type CustomOptionType = AdornmentLabelDescription & Partial<Metadata>;\n\nconst OptionAdornmentContainer = styled(\"div\", {\n shouldForwardProp: (prop) =>\n prop !== \"odysseyDesignTokens\" &&\n prop !== \"adornmentSize\" &&\n prop !== \"isTagContainer\",\n})<{\n adornmentSize?: AdornmentSize;\n isTagContainer?: boolean;\n odysseyDesignTokens: DesignTokens;\n position?: \"left\" | \"right\";\n}>(\n ({\n adornmentSize = \"small\",\n isTagContainer = false,\n\n odysseyDesignTokens,\n position = \"left\",\n }) => ({\n position: \"relative\",\n // push icon up by one px for better visual alignment\n bottom: \"1px\",\n alignSelf: \"flex-start\",\n width: odysseyDesignTokens.Spacing5,\n height: odysseyDesignTokens.Spacing5,\n overflow: \"hidden\",\n\n ...(position === \"left\" && {\n marginInlineEnd: odysseyDesignTokens.Spacing3,\n }),\n ...(position === \"right\" && {\n marginInlineStart: odysseyDesignTokens.Spacing3,\n }),\n\n svg: {\n width: \"100%\",\n height: \"auto\",\n },\n\n img: {\n position: \"absolute\",\n top: \"50%\",\n left: \"50%\",\n width: \"100%\",\n transform: \"translate(-50%, -50%)\",\n },\n\n ...(adornmentSize === \"large\" &&\n !isTagContainer && {\n bottom: 0,\n width: odysseyDesignTokens.Spacing8,\n height: odysseyDesignTokens.Spacing8,\n }),\n\n ...(isTagContainer && {\n bottom: 0,\n alignSelf: \"center\",\n width: odysseyDesignTokens.Spacing4,\n height: \"auto\",\n maxHeight: odysseyDesignTokens.Spacing4,\n marginInlineEnd: odysseyDesignTokens.Spacing2,\n\n svg: {\n display: \"flex\",\n width: \"100%\",\n height: \"auto\",\n },\n }),\n }),\n);\n\ntype OptionAdornmentProps = {\n adornment: Adornment;\n adornmentSize: AdornmentSize;\n odysseyDesignTokens: DesignTokens;\n};\n\ntype ExtraProps = {\n content: Adornment;\n size?: AdornmentSize;\n odysseyDesignTokens: DesignTokens;\n onClick: () => void;\n};\n\nconst CustomOptionContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(() => ({\n display: \"flex\",\n justifyContent: \"space-between\",\n width: \"100%\",\n}));\n\nconst CustomOptionLeftContainer = styled(\"div\", {\n shouldForwardProp: (prop) => prop !== \"odysseyDesignTokens\",\n})<{ odysseyDesignTokens: DesignTokens }>(() => ({\n display: \"flex\",\n}));\n\nconst OptionAdornment = ({\n adornment,\n adornmentSize,\n odysseyDesignTokens,\n}: OptionAdornmentProps) => {\n const isImageAdornment = typeof adornment === \"string\";\n\n if (isImageAdornment) {\n return (\n <OptionAdornmentContainer\n adornmentSize={adornmentSize}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n <img src={adornment} alt=\"\" role=\"presentation\" />\n </OptionAdornmentContainer>\n );\n } else {\n return (\n <OptionAdornmentContainer\n adornmentSize={adornmentSize}\n odysseyDesignTokens={odysseyDesignTokens}\n >\n {adornment}\n </OptionAdornmentContainer>\n );\n }\n};\n\nconst Extra = ({ content, size, odysseyDesignTokens, onClick }: ExtraProps) => {\n const handleClick = useCallback(\n (event: React.MouseEvent) => {\n event.stopPropagation();\n onClick();\n },\n [onClick],\n );\n\n return (\n <OptionAdornmentContainer\n adornmentSize={size}\n odysseyDesignTokens={odysseyDesignTokens}\n onClick={handleClick}\n >\n {content}\n </OptionAdornmentContainer>\n );\n};\n\nconst CustomOption = <OptionType extends CustomOptionType>({\n adornmentSize,\n muiProps,\n odysseyDesignTokens,\n option,\n}: BaseOptionProps &\n OptionProps<OptionType> & {\n adornmentSize: AdornmentSize;\n }) => {\n const {\n adornment,\n description,\n label,\n metaData,\n extra,\n value,\n onClick,\n isInteractive = true,\n } = option;\n\n const handleOptionClick = useCallback(\n (event: React.MouseEvent) => {\n if (!isInteractive) {\n event.preventDefault();\n return;\n }\n event.stopPropagation();\n onClick?.();\n },\n [onClick, isInteractive],\n );\n\n const extendedMuiProps = useMemo(() => {\n return {\n ...muiProps,\n onClick: isInteractive ? handleOptionClick : undefined,\n \"aria-disabled\": !isInteractive ? \"true\" : undefined,\n role: \"option\",\n } as HTMLAttributes<HTMLLIElement>;\n }, [muiProps, isInteractive, handleOptionClick]);\n\n return (\n <Option hasAdornment key={value} muiProps={extendedMuiProps}>\n <CustomOptionContainer odysseyDesignTokens={odysseyDesignTokens}>\n <CustomOptionLeftContainer odysseyDesignTokens={odysseyDesignTokens}>\n <OptionAdornment\n adornment={adornment}\n adornmentSize={adornmentSize}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n <div>\n <OptionLabelContainer odysseyDesignTokens={odysseyDesignTokens}>\n <Heading6 component=\"p\">{label}</Heading6>\n <OptionDescriptionComponent\n description={description}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n </OptionLabelContainer>\n {metaData && (\n <OptionMetadataComponent\n metaData={metaData}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n )}\n </div>\n </CustomOptionLeftContainer>\n {extra && (\n <Extra\n content={extra.content}\n size={extra.size || adornmentSize}\n onClick={extra.onClick}\n odysseyDesignTokens={odysseyDesignTokens}\n />\n )}\n </CustomOptionContainer>\n </Option>\n );\n};\n\nexport type SearchDropdownProps<\n OptionType extends CustomOptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n> = BasePickerProps<OptionType, HasMultipleChoices, IsCustomValueAllowed> & {\n adornmentSize?: AdornmentSize;\n};\n\ntype PickerWithOptionAdornmentComponentType = {\n <\n OptionType extends CustomOptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: SearchDropdownProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n >,\n ): ReactElement;\n <\n OptionType extends CustomOptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n >(\n props: SearchDropdownProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n >,\n ): ReactElement;\n};\n\nconst SearchDropdown: PickerWithOptionAdornmentComponentType = <\n OptionType extends CustomOptionType,\n HasMultipleChoices extends boolean | undefined,\n IsCustomValueAllowed extends boolean | undefined,\n>({\n adornmentSize = \"small\",\n ariaDescribedBy,\n defaultValue,\n errorMessage,\n errorMessageList,\n getIsOptionEqualToValue,\n groupOptionsBy,\n id: idOverride,\n inputValue,\n isCustomValueAllowed,\n isDisabled,\n isFullWidth = false,\n isLoading,\n isOptional = false,\n isReadOnly,\n isVirtualized: isVirtualizedProp = false,\n hint,\n HintLinkComponent,\n label,\n name: nameOverride,\n onBlur,\n onChange: onChangeProp,\n onInputChange: onInputChangeProp,\n onFocus,\n options,\n value,\n testId,\n translate,\n}: SearchDropdownProps<\n OptionType,\n HasMultipleChoices,\n IsCustomValueAllowed\n>) => {\n const odysseyDesignTokens = useOdysseyDesignTokens();\n\n const customOptionRender = useCallback<\n (props: HTMLAttributes<HTMLLIElement>, option: OptionType) => ReactNode\n >(\n (muiProps, option) => {\n return (\n <CustomOption\n adornmentSize={adornmentSize}\n muiProps={muiProps}\n odysseyDesignTokens={odysseyDesignTokens}\n option={option}\n />\n );\n },\n [adornmentSize, odysseyDesignTokens],\n );\n\n return (\n <ComposablePicker<OptionType, HasMultipleChoices, IsCustomValueAllowed>\n ariaDescribedBy={ariaDescribedBy}\n defaultValue={defaultValue}\n errorMessage={errorMessage}\n errorMessageList={errorMessageList}\n getIsOptionEqualToValue={getIsOptionEqualToValue}\n groupOptionsBy={groupOptionsBy}\n id={idOverride}\n inputValue={inputValue}\n isCustomValueAllowed={isCustomValueAllowed}\n isDisabled={isDisabled}\n isFullWidth={isFullWidth}\n isLoading={isLoading}\n isOptional={isOptional}\n isReadOnly={isReadOnly}\n isVirtualized={isVirtualizedProp}\n hint={hint}\n HintLinkComponent={HintLinkComponent}\n label={label}\n name={nameOverride}\n onBlur={onBlur}\n onChange={onChangeProp}\n onInputChange={onInputChangeProp}\n onFocus={onFocus}\n options={options}\n renderOption={customOptionRender}\n value={value}\n testId={testId}\n translate={translate}\n />\n );\n};\n\n// Need the `as BasePickerType` because generics don't get passed through\nconst MemoizedSearchDropdown = memo(SearchDropdown) as BasePickerType;\n\nMemoizedSearchDropdown.displayName = \"MemoizedSearchDropdown\";\n\nexport { MemoizedSearchDropdown as SearchDropdown };\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAEEA,IAAI,EAGJC,WAAW,EACXC,OAAO,QACF,OAAO;AACd,OAAOC,MAAM,MAAM,iBAAiB;AAEpC,SACEC,gBAAgB,QAIX,uBAAuB;AAC9B,SACEC,sBAAsB,QAEjB,qCAAqC;AAC5C,SAIEC,MAAM,EACNC,0BAA0B,EAC1BC,oBAAoB,EACpBC,uBAAuB,QAElB,aAAa;AACpB,SAASC,QAAQ,QAAQ,qBAAqB;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAkB/C,MAAMC,wBAAwB,GAAGZ,MAAM,CAAC,KAAK,EAAE;EAC7Ca,iBAAiB,EAAGC,IAAI,IACtBA,IAAI,KAAK,qBAAqB,IAC9BA,IAAI,KAAK,eAAe,IACxBA,IAAI,KAAK;AACb,CAAC,CAAC,CAMA,CAAC;EACCC,aAAa,GAAG,OAAO;EACvBC,cAAc,GAAG,KAAK;EAEtBC,mBAAmB;EACnBC,QAAQ,GAAG;AACb,CAAC,MAAM;EACLA,QAAQ,EAAE,UAAU;EAEpBC,MAAM,EAAE,KAAK;EACbC,SAAS,EAAE,YAAY;EACvBC,KAAK,EAAE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E7D,SAASD,sBAAsB,IAAIjC,cAAc","ignoreList":[]}
@@ -13,4 +13,5 @@
13
13
  export { adornmentSizeValues } from "./ComposablePicker.js";
14
14
  export * from "./Picker.js";
15
15
  export * from "./PickerWithOptionAdornment.js";
16
+ export { SearchDropdown } from "./SearchDropdown.js";
16
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["adornmentSizeValues"],"sources":["../../../../src/labs/OdysseyPickers/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport { adornmentSizeValues } from \"./ComposablePicker.js\";\nexport * from \"./Picker.js\";\nexport * from \"./PickerWithOptionAdornment.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,mBAAmB,QAAQ,uBAAuB;AAC3D,cAAc,aAAa;AAC3B,cAAc,gCAAgC","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["adornmentSizeValues","SearchDropdown"],"sources":["../../../../src/labs/OdysseyPickers/index.ts"],"sourcesContent":["/*!\n * Copyright (c) 2023-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport { adornmentSizeValues } from \"./ComposablePicker.js\";\nexport * from \"./Picker.js\";\nexport * from \"./PickerWithOptionAdornment.js\";\nexport { SearchDropdown } from \"./SearchDropdown.js\";\nexport type {\n SearchDropdownProps,\n CustomOptionType,\n} from \"./SearchDropdown.js\";\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,mBAAmB,QAAQ,uBAAuB;AAC3D,cAAc,aAAa;AAC3B,cAAc,gCAAgC;AAC9C,SAASC,cAAc,QAAQ,qBAAqB","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=StringWithValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"StringWithValue.js","names":[],"sources":["../../../src/theme/StringWithValue.ts"],"sourcesContent":["/*!\n * Copyright (c) 2025-present, Okta, Inc. and/or its affiliates. All rights reserved.\n * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the \"License.\")\n *\n * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n *\n * See the License for the specific language governing permissions and limitations under the License.\n */\n\nexport type StringWithValue<T extends string> = T extends \"\" ? never : T;\n"],"mappings":"","ignoreList":[]}