@osdk/react-components 0.1.0-beta.5 → 0.1.0-rc.7

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 (133) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +2 -5
  3. package/build/browser/action-form/ActionFormApi.js +2 -0
  4. package/build/browser/action-form/ActionFormApi.js.map +1 -0
  5. package/build/browser/action-form/FormFieldApi.js +2 -0
  6. package/build/browser/action-form/FormFieldApi.js.map +1 -0
  7. package/build/browser/base-components/checkbox/Checkbox.js +32 -27
  8. package/build/browser/object-table/CellContextMenu.js +20 -23
  9. package/build/browser/object-table/LoadingCell.js +38 -0
  10. package/build/browser/object-table/LoadingCell.js.map +1 -0
  11. package/build/browser/object-table/LoadingRow.js +69 -0
  12. package/build/browser/object-table/LoadingRow.js.map +1 -0
  13. package/build/browser/object-table/LoadingStateTable.js +395 -0
  14. package/build/browser/object-table/LoadingStateTable.js.map +1 -0
  15. package/build/browser/object-table/NonIdealState.js +25 -0
  16. package/build/browser/object-table/NonIdealState.js.map +1 -0
  17. package/build/browser/object-table/ObjectTable.js +6 -5
  18. package/build/browser/object-table/ObjectTable.js.map +1 -1
  19. package/build/browser/object-table/ObjectTableApi.js.map +1 -1
  20. package/build/browser/object-table/Table.js +948 -45
  21. package/build/browser/object-table/Table.js.map +1 -1
  22. package/build/browser/object-table/TableBody.js +269 -34
  23. package/build/browser/object-table/TableBody.js.map +1 -1
  24. package/build/browser/object-table/TableCell.js +111 -31
  25. package/build/browser/object-table/TableCell.js.map +1 -1
  26. package/build/browser/object-table/TableHeader.js +215 -38
  27. package/build/browser/object-table/TableHeaderContent.js +18 -21
  28. package/build/browser/object-table/TableHeaderContent.js.map +1 -1
  29. package/build/browser/object-table/TableHeaderWithPopover.js +80 -66
  30. package/build/browser/object-table/TableRow.js +144 -26
  31. package/build/browser/object-table/hooks/__tests__/useObjectTableData.test.js +18 -20
  32. package/build/browser/object-table/hooks/__tests__/useObjectTableData.test.js.map +1 -1
  33. package/build/browser/object-table/hooks/useColumnDefs.js +6 -2
  34. package/build/browser/object-table/hooks/useColumnDefs.js.map +1 -1
  35. package/build/browser/object-table/hooks/useColumnPinning.js.map +1 -1
  36. package/build/browser/object-table/hooks/useColumnVisibility.js.map +1 -1
  37. package/build/browser/object-table/hooks/useObjectTableData.js +7 -6
  38. package/build/browser/object-table/hooks/useObjectTableData.js.map +1 -1
  39. package/build/browser/object-table/hooks/useRowSelection.js.map +1 -1
  40. package/build/browser/object-table/hooks/useSelectionColumn.js.map +1 -1
  41. package/build/browser/object-table/hooks/useTableSorting.js.map +1 -1
  42. package/build/browser/object-table/utils/getRowId.js.map +1 -1
  43. package/build/cjs/public/experimental.cjs +435 -264
  44. package/build/cjs/public/experimental.cjs.map +1 -1
  45. package/build/cjs/public/experimental.css +114 -56
  46. package/build/cjs/public/experimental.css.map +1 -1
  47. package/build/cjs/public/experimental.d.cts +8 -11
  48. package/build/esm/action-form/ActionFormApi.js +2 -0
  49. package/build/esm/action-form/ActionFormApi.js.map +1 -0
  50. package/build/esm/action-form/FormFieldApi.js +2 -0
  51. package/build/esm/action-form/FormFieldApi.js.map +1 -0
  52. package/build/esm/base-components/checkbox/Checkbox.module.css +10 -3
  53. package/build/esm/object-table/CellContextMenu.module.css +1 -1
  54. package/build/{browser/object-table/CellContextMenu.module.css → esm/object-table/LoadingCell.js} +16 -3
  55. package/build/esm/object-table/LoadingCell.js.map +1 -0
  56. package/build/esm/object-table/LoadingCell.module.css +48 -0
  57. package/build/esm/object-table/LoadingRow.js +43 -0
  58. package/build/esm/object-table/LoadingRow.js.map +1 -0
  59. package/build/esm/object-table/LoadingStateTable.js +101 -0
  60. package/build/esm/object-table/LoadingStateTable.js.map +1 -0
  61. package/build/{browser/object-table/TableHeaderContent.module.css → esm/object-table/NonIdealState.js} +11 -13
  62. package/build/esm/object-table/NonIdealState.js.map +1 -0
  63. package/build/{browser/object-table/Table.module.css → esm/object-table/NonIdealState.module.css} +10 -4
  64. package/build/esm/object-table/ObjectTable.js +6 -5
  65. package/build/esm/object-table/ObjectTable.js.map +1 -1
  66. package/build/esm/object-table/ObjectTableApi.js.map +1 -1
  67. package/build/esm/object-table/Table.js +34 -13
  68. package/build/esm/object-table/Table.js.map +1 -1
  69. package/build/esm/object-table/Table.module.css +2 -2
  70. package/build/esm/object-table/TableBody.js +13 -2
  71. package/build/esm/object-table/TableBody.js.map +1 -1
  72. package/build/esm/object-table/TableCell.js.map +1 -1
  73. package/build/esm/object-table/TableCell.module.css +7 -8
  74. package/build/esm/object-table/TableHeader.module.css +15 -9
  75. package/build/esm/object-table/TableHeaderContent.js.map +1 -1
  76. package/build/esm/object-table/TableHeaderWithPopover.module.css +31 -26
  77. package/build/esm/object-table/TableRow.module.css +1 -1
  78. package/build/esm/object-table/hooks/__tests__/useObjectTableData.test.js +18 -20
  79. package/build/esm/object-table/hooks/__tests__/useObjectTableData.test.js.map +1 -1
  80. package/build/esm/object-table/hooks/useColumnDefs.js +6 -2
  81. package/build/esm/object-table/hooks/useColumnDefs.js.map +1 -1
  82. package/build/esm/object-table/hooks/useColumnPinning.js.map +1 -1
  83. package/build/esm/object-table/hooks/useColumnVisibility.js.map +1 -1
  84. package/build/esm/object-table/hooks/useObjectTableData.js +7 -6
  85. package/build/esm/object-table/hooks/useObjectTableData.js.map +1 -1
  86. package/build/esm/object-table/hooks/useRowSelection.js.map +1 -1
  87. package/build/esm/object-table/hooks/useSelectionColumn.js.map +1 -1
  88. package/build/esm/object-table/hooks/useTableSorting.js.map +1 -1
  89. package/build/esm/object-table/utils/getRowId.js.map +1 -1
  90. package/build/types/action-form/ActionFormApi.d.ts +76 -0
  91. package/build/types/action-form/ActionFormApi.d.ts.map +1 -0
  92. package/build/types/action-form/FormFieldApi.d.ts +241 -0
  93. package/build/types/action-form/FormFieldApi.d.ts.map +1 -0
  94. package/build/types/object-table/LoadingCell.d.ts +4 -0
  95. package/build/types/object-table/LoadingCell.d.ts.map +1 -0
  96. package/build/types/object-table/LoadingRow.d.ts +11 -0
  97. package/build/types/object-table/LoadingRow.d.ts.map +1 -0
  98. package/build/types/object-table/LoadingStateTable.d.ts +11 -0
  99. package/build/types/object-table/LoadingStateTable.d.ts.map +1 -0
  100. package/build/types/object-table/NonIdealState.d.ts +6 -0
  101. package/build/types/object-table/NonIdealState.d.ts.map +1 -0
  102. package/build/types/object-table/ObjectTable.d.ts +4 -4
  103. package/build/types/object-table/ObjectTable.d.ts.map +1 -1
  104. package/build/types/object-table/ObjectTableApi.d.ts +4 -8
  105. package/build/types/object-table/ObjectTableApi.d.ts.map +1 -1
  106. package/build/types/object-table/Table.d.ts +2 -1
  107. package/build/types/object-table/Table.d.ts.map +1 -1
  108. package/build/types/object-table/TableBody.d.ts +4 -2
  109. package/build/types/object-table/TableBody.d.ts.map +1 -1
  110. package/build/types/object-table/TableHeaderContent.d.ts.map +1 -1
  111. package/build/types/object-table/hooks/useColumnDefs.d.ts +3 -3
  112. package/build/types/object-table/hooks/useColumnDefs.d.ts.map +1 -1
  113. package/build/types/object-table/hooks/useColumnPinning.d.ts +3 -3
  114. package/build/types/object-table/hooks/useColumnPinning.d.ts.map +1 -1
  115. package/build/types/object-table/hooks/useColumnVisibility.d.ts +3 -3
  116. package/build/types/object-table/hooks/useColumnVisibility.d.ts.map +1 -1
  117. package/build/types/object-table/hooks/useObjectTableData.d.ts +6 -6
  118. package/build/types/object-table/hooks/useObjectTableData.d.ts.map +1 -1
  119. package/build/types/object-table/hooks/useRowSelection.d.ts +3 -3
  120. package/build/types/object-table/hooks/useRowSelection.d.ts.map +1 -1
  121. package/build/types/object-table/hooks/useSelectionColumn.d.ts +2 -2
  122. package/build/types/object-table/hooks/useSelectionColumn.d.ts.map +1 -1
  123. package/build/types/object-table/hooks/useTableSorting.d.ts +3 -3
  124. package/build/types/object-table/hooks/useTableSorting.d.ts.map +1 -1
  125. package/build/types/object-table/utils/getRowId.d.ts +3 -3
  126. package/build/types/object-table/utils/getRowId.d.ts.map +1 -1
  127. package/package.json +4 -4
  128. package/build/browser/base-components/checkbox/Checkbox.module.css +0 -72
  129. package/build/browser/object-table/TableBody.module.css +0 -20
  130. package/build/browser/object-table/TableCell.module.css +0 -63
  131. package/build/browser/object-table/TableHeader.module.css +0 -95
  132. package/build/browser/object-table/TableHeaderWithPopover.module.css +0 -105
  133. package/build/browser/object-table/TableRow.module.css +0 -60
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @osdk/react-components
2
2
 
3
+ ## 0.1.0-rc.7
4
+
5
+ ### Minor Changes
6
+
7
+ - 1885d58: Import blueprint tokens. Added loading and non ideal state to ObjectTable. Support interface in ObjectTable.
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [a6d4d49]
12
+ - Updated dependencies [eb3a556]
13
+ - Updated dependencies [31cd835]
14
+ - Updated dependencies [0dbd0d0]
15
+ - @osdk/react@0.9.0-rc.11
16
+ - @osdk/client@2.7.0-rc.15
17
+ - @osdk/api@2.7.0-rc.15
18
+
19
+ ## 0.1.0-beta.6
20
+
21
+ ### Minor Changes
22
+
23
+ - cac3e9a: Add ActionFormApi
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [db28747]
28
+ - @osdk/react@0.9.0-beta.10
29
+
3
30
  ## 0.1.0-beta.5
4
31
 
5
32
  ### Minor Changes
package/README.md CHANGED
@@ -9,11 +9,11 @@ Built on top of [@osdk/react](../react), these components use OSDK hooks interna
9
9
  Run the command to install:
10
10
 
11
11
  - @osdk/react-components - The unstyled components from this package
12
- - @osdk/react - The react toolkit for data-handling
13
12
  - @osdk/react-components-styles - The default styles for the components
13
+ - @osdk/react, @osdk/api, @osdk/client - The packages required for data-handling
14
14
 
15
15
  ```sh
16
- npm install @osdk/react-components @osdk/react @osdk/react-components-styles
16
+ npm install @osdk/react-components @osdk/react-components-styles @osdk/react @osdk/client @osdk/api
17
17
  ```
18
18
 
19
19
  **Prerequisites:**
@@ -58,11 +58,8 @@ import { ObjectTable } from "@osdk/react-components";
58
58
  import { $, Employee } from "@your-osdk-package";
59
59
 
60
60
  function EmployeeDirectory() {
61
- const employeeObjectSet = $(Employee).where({ department: "Engineering" });
62
-
63
61
  return (
64
62
  <ObjectTable
65
- objectSet={employeeObjectSet}
66
63
  objectType={Employee}
67
64
  />
68
65
  );
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ActionFormApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionFormApi.js","names":[],"sources":["ActionFormApi.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ActionDefinition,\n ActionEditResponse,\n ActionReturnTypeForOptions,\n ActionValidationResponse,\n} from \"@osdk/api\";\nimport type { ActionValidationError, ApplyActionOptions } from \"@osdk/client\";\nimport type {\n ActionParameters,\n FieldKey,\n FieldValueType,\n FormFieldDefinition,\n} from \"./FormFieldApi.js\";\n\n/**\n * Props for the ActionForm component\n */\nexport interface ActionFormProps<Q extends ActionDefinition<unknown>> {\n actionDefinition: Q;\n\n /**\n * If not supplied, defaults to actionDef.displayName\n */\n formTitle?: string;\n\n /**\n * If not supplied, this will be constructed from ActionParameters\n */\n formFieldDefinition?: Array<FormFieldDefinition<Q>>;\n\n /**\n * Called when a field value changed.\n * Required when a field is in controlled mode, i.e. value is provided via formFieldDefinition.\n *\n * @param fieldKey The key of the changed field\n * @param value the updated value of the field\n */\n onFieldValueChanged?: <K extends FieldKey<Q>>(\n fieldKey: K,\n value: FieldValueType<Q, K>,\n ) => void;\n\n /**\n * Override to disable submit button\n * If not provided, button is disabled when form is submitting or has validation errors\n *\n * @default false\n */\n isSubmitDisabled?: boolean;\n\n /**\n * If supplied, this will override the default submit action\n * By default, the action's applyAction will be called with $validateOnly: false\n *\n * @param formState all field values when onSubmit is called\n * @param applyAction the function to execute the action. Call it with $validateOnly: true options to run validation mode onSubmit.\n * @returns a promise of the submission response\n */\n onSubmit?: <OP extends ApplyActionOptions>(\n formState: FormState<Q>,\n applyAction: (\n args: ActionParameters<Q>,\n options?: OP,\n ) => Promise<ActionReturnTypeForOptions<OP>>,\n ) => Promise<ActionReturnTypeForOptions<OP>> | void;\n\n /**\n * Called when the validation response is returned from a validateOnly submission\n *\n * @param results the validation response\n */\n onValidationResponse?: (results: ActionValidationResponse) => void;\n\n /**\n * Called when the action is successfully executed from a non-validateOnly submission\n *\n * @param results the submission response\n */\n onSuccess?: (results: ActionEditResponse) => void;\n\n /**\n * Called when there is an error in form submission\n *\n * @param error the error that occurred\n */\n onError?: (error: FormError) => void;\n}\n\n/**\n * Form values mapping parameter names to their values\n */\nexport type FormState<Q extends ActionDefinition<unknown>> = {\n [K in FieldKey<Q>]: FieldValueType<Q, K>;\n};\n\n/**\n * Form error discriminated union\n */\nexport type FormError =\n | { type: \"validation\"; error: ActionValidationError }\n | { type: \"submission\"; error: Error }\n | { type: \"unknown\"; error: unknown };\n"],"mappings":"","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FormFieldApi.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FormFieldApi.js","names":[],"sources":["FormFieldApi.ts"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type {\n ActionDefinition,\n CompileTimeMetadata,\n ObjectSet,\n ObjectTypeDefinition,\n} from \"@osdk/api\";\nimport type React from \"react\";\n\n/**\n * A form field definition specifies configuration for a single field\n */\nexport interface FormFieldDefinition<\n Q extends ActionDefinition<unknown>,\n K extends FieldKey<Q> = FieldKey<Q>,\n V extends FieldValueType<Q, K> = FieldValueType<Q, K>,\n C extends ValidFormFieldForPropertyType<V> = ValidFormFieldForPropertyType<V>,\n> {\n /**\n * The field's unique key\n */\n fieldKey: K;\n\n /**\n * Display label for the field\n * If not provided, the form field will not show any label.\n */\n label?: string;\n\n /**\n * Current value of the field\n * If provided, the field operates in controlled mode\n */\n value?: V;\n\n /**\n * Default value of the field\n */\n defaultValue?: V;\n\n /**\n * The form field component type to render\n */\n fieldComponent: C;\n\n /**\n * Whether the field is required\n */\n isRequired?: boolean;\n\n /**\n * Placeholder text\n */\n placeholder?: string;\n\n /**\n * Additional information to display on this field\n * The placement of helper text depends on the value of helperTextPlacement prop\n */\n helperText?: string;\n\n /**\n * The placement of the helper text either below the field or in a tooltip\n *\n * @default \"tooltip\"\n */\n helperTextPlacement?: \"bottom\" | \"tooltip\";\n\n /**\n * Whether the field is disabled\n */\n isDisabled?: boolean;\n\n /**\n * A callback to return a custom error message if validation failed\n *\n * @param validationRule the validation rule that failed with the error message\n * @returns the error message to display\n */\n onValidationError?: (error: ValidationError) => string;\n\n /**\n * Additional function to validate the field\n *\n * @param value the current field value\n * @returns a boolean promise indicating whether the value is valid\n */\n validate?: (value: V) => Promise<boolean>;\n\n /**\n * The component props for the form field\n * Excludes runtime props (key, onChange) which are managed by ActionForm\n */\n fieldComponentProps?: Omit<FormFieldPropsByType[C], \"key\" | \"onChange\">;\n}\n\ntype ValidationError = { type: ValidationRule; error: string };\n\ntype ValidationRule =\n | \"required\"\n | \"min\"\n | \"max\"\n | \"minLength\"\n | \"maxLength\"\n | \"pattern\"\n | \"validate\";\n\n/**\n * Maps field types to their corresponding props\n */\nexport interface FormFieldPropsByType {\n DATETIME_PICKER: DatetimePickerFieldProps;\n DROPDOWN: DropdownFieldProps<unknown>;\n FILE_PICKER: FilePickerProps;\n NUMBER_INPUT: NumberInputFieldProps;\n OBJECT_SET: ObjectSetFieldProps<ObjectTypeDefinition>;\n RADIO_BUTTONS: RadioButtonsFieldProps<unknown>;\n TEXT_AREA: TextAreaFieldProps;\n TEXT_INPUT: TextInputFieldProps;\n CUSTOM: CustomFieldProps<unknown>;\n}\n\n/**\n * Datetime picker field props\n */\nexport interface DatetimePickerFieldProps extends BaseFormFieldProps<Date> {\n fieldComponent: \"DATETIME_PICKER\";\n\n /**\n * The earliest date the user can select\n * If provided, this will be added to the field validation\n */\n min?: Date;\n\n /**\n * The latest date the user can select\n * If provided, this will be added to the field validation\n */\n max?: Date;\n\n /**\n * Whether to show time picker\n */\n showTime?: boolean;\n\n /**\n * Function to format the date string\n */\n formatDate?: (date: Date) => string;\n}\n\n/**\n * Dropdown field props with selectable options\n */\nexport interface DropdownFieldProps<V, IsMulti extends boolean = false>\n extends BaseFormFieldProps<IsMulti extends true ? V[] : V>\n{\n fieldComponent: \"DROPDOWN\";\n\n /**\n * Available options for the dropdown\n */\n options: Option<V>[];\n\n /**\n * Whether the dropdown allows searching/filtering\n */\n isSearchable?: boolean;\n\n /**\n * Whether multiple values can be selected\n */\n isMulti?: boolean;\n}\n\nexport interface FilePickerProps extends BaseFormFieldProps<File | File[]> {\n fieldComponent: \"FILE_PICKER\";\n\n /**\n * Whether multiple files can be selected\n */\n isMulti?: boolean;\n\n /**\n * Accepted file types (e.g., \"image/*\", \".pdf\")\n */\n accept?: string | string[];\n\n /**\n * Maximum file size in bytes\n */\n maxSize?: number;\n}\n\n/**\n * Text area field props\n */\nexport interface TextAreaFieldProps extends\n BaseFormFieldProps<string>,\n Pick<\n React.TextareaHTMLAttributes<HTMLTextAreaElement>,\n | \"rows\"\n | \"wrap\"\n /**\n * If provided, this will be added to the field validation\n */\n | \"minLength\"\n /**\n * If provided, this will be added to the field validation\n */\n | \"maxLength\"\n >\n{\n fieldComponent: \"TEXT_AREA\";\n}\n\nexport interface TextInputFieldProps extends\n BaseFormFieldProps<string>,\n Pick<\n React.InputHTMLAttributes<HTMLInputElement>,\n /**\n * If provided, this will be added to the field validation\n */\n | \"minLength\"\n /**\n * If provided, this will be added to the field validation\n */\n | \"maxLength\"\n >\n{\n fieldComponent: \"TEXT_INPUT\";\n}\n\n/**\n * Number input field props\n */\nexport interface NumberInputFieldProps extends\n BaseFormFieldProps<number>,\n Pick<\n React.InputHTMLAttributes<HTMLInputElement>,\n /**\n * If provided, this will be added to the field validation\n */\n | \"min\"\n /**\n * If provided, this will be added to the field validation\n */\n | \"max\"\n | \"step\"\n >\n{\n fieldComponent: \"NUMBER_INPUT\";\n}\n\n/**\n * Radio buttons field props\n */\nexport interface RadioButtonsFieldProps<V> extends BaseFormFieldProps<V> {\n fieldComponent: \"RADIO_BUTTONS\";\n\n /**\n * Available options for radio buttons\n */\n options: Option<V>[];\n}\n\n/**\n * Option interface for dropdown and radio options\n */\nexport interface Option<V> {\n label: string;\n value: V;\n}\n\n/**\n * Object set field displays the summary of the count of the given object set\n */\nexport interface ObjectSetFieldProps<T extends ObjectTypeDefinition>\n extends BaseFormFieldProps<ObjectSet<T>>\n{\n fieldComponent: \"OBJECT_SET\";\n}\n\n/**\n * Custom field props for user-defined renderers\n */\nexport interface CustomFieldProps<V> extends BaseFormFieldProps<V> {\n fieldComponent: \"CUSTOM\";\n\n /**\n * Custom renderer function\n */\n customRenderer: (props: BaseFormFieldProps<V>) => React.ReactNode;\n}\n\nexport interface BaseFormFieldProps<V> {\n fieldComponent: FieldComponent;\n\n /**\n * Called when the field value changed.\n *\n * ActionForm internally wraps this to pass the key to onFieldValueChanged:\n * ```\n * <DropdownField\n * {...fieldDef}\n * onChange={(value) => onFieldValueChanged(fieldDef.key, value)}\n * />\n * ```\n *\n * @param value The new value of the form field\n */\n onChange?: (value?: V) => void;\n}\n\nexport type FieldKey<Q extends ActionDefinition<unknown>> =\n keyof ActionParameters<Q>;\n\n/**\n * Extracts parameters from an ActionDefinition\n */\nexport type ActionParameters<Q extends ActionDefinition<unknown>> =\n CompileTimeMetadata<Q>[\"parameters\"];\n\n/**\n * Extracts the value type for a specific parameter\n */\nexport type FieldValueType<\n Q extends ActionDefinition<unknown> = ActionDefinition<unknown>,\n K extends keyof ActionParameters<Q> = keyof ActionParameters<Q>,\n> = ActionParameters<Q>[K][\"type\"];\n\n/**\n * Available form field component types\n */\nexport type FieldComponent =\n | \"DATETIME_PICKER\"\n | \"DROPDOWN\"\n | \"FILE_PICKER\"\n | \"NUMBER_INPUT\"\n | \"RADIO_BUTTONS\"\n | \"OBJECT_SET\"\n | \"TEXT_AREA\"\n | \"TEXT_INPUT\"\n | \"CUSTOM\";\n\n/**\n * Gets valid form field types for a given property type\n */\nexport type ValidFormFieldForPropertyType<P extends FieldValueType> = P extends\n \"objectSet\" ? \"OBJECT_SET\"\n : P extends \"object\" ? \"DROPDOWN\"\n : P extends \"mediaReference\" | \"attachment\" ? \"FILE_PICKER\"\n : P extends \"boolean\" ? \"RADIO_BUTTONS\" | \"DROPDOWN\"\n : P extends \"string\" ? \"TEXT_INPUT\" | \"TEXT_AREA\"\n : P extends \"datetime\" | \"timestamp\" ? \"DATETIME_PICKER\"\n : P extends\n | \"double\"\n | \"integer\"\n | \"long\"\n | \"float\"\n | \"short\"\n | \"byte\"\n | \"decimal\" ? \"NUMBER_INPUT\"\n : never;\n"],"mappings":"","ignoreList":[]}
@@ -1,40 +1,45 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- /*
3
- * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
4
- *
5
- * Licensed under the Apache License, Version 2.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- * You may obtain a copy of the License at
8
- *
9
- * http://www.apache.org/licenses/LICENSE-2.0
10
- *
11
- * Unless required by applicable law or agreed to in writing, software
12
- * distributed under the License is distributed on an "AS IS" BASIS,
13
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
- * See the License for the specific language governing permissions and
15
- * limitations under the License.
16
- */
17
-
1
+ // build/browser/base-components/checkbox/Checkbox.js
18
2
  import { Checkbox as BaseUICheckbox } from "@base-ui/react/checkbox";
19
3
  import { Minus, Tick } from "@blueprintjs/icons";
20
4
  import classnames from "classnames";
21
5
  import React from "react";
22
- import styles from "./Checkbox.module.css";
23
- export function Checkbox({
6
+
7
+ // build/browser/base-components/checkbox/Checkbox.module.css
8
+ var css = '/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.osdkCheckboxRoot {\n display: flex;\n align-items: center;\n justify-content: center;\n min-width: calc(\n var(--osdk-checkbox-icon-size) + var(--osdk-checkbox-padding) * 2\n );\n min-height: calc(\n var(--osdk-checkbox-icon-size) + var(--osdk-checkbox-padding) * 2\n );\n padding: var(--osdk-checkbox-padding);\n box-sizing: border-box;\n cursor: pointer;\n border-radius: var(--osdk-surface-border-radius);\n border: var(--osdk-checkbox-border);\n\n &[data-unchecked] {\n background-color: var(--osdk-checkbox-bg);\n\n &:hover {\n background-color: var(--osdk-checkbox-bg-hover);\n }\n\n &:active {\n background-color: var(--osdk-checkbox-bg-active);\n }\n }\n\n &[data-checked],\n &[data-indeterminate] {\n background-color: var(--osdk-checkbox-bg-checked);\n\n &:hover {\n background-color: var(--osdk-checkbox-bg-checked-hover);\n }\n\n &:active {\n background-color: var(--osdk-checkbox-bg-checked-active);\n }\n }\n\n &:focus {\n outline: none;\n }\n\n &:focus-visible {\n outline: var(--osdk-focus-visible-outline);\n outline-offset: calc(-1 * var(--osdk-focus-visible-outline-offset));\n }\n}\n\n.osdkCheckboxIndicator {\n display: flex;\n justify-content: center;\n align-items: center;\n color: var(--osdk-checkbox-checked-foreground);\n width: var(--osdk-checkbox-icon-size);\n height: var(--osdk-checkbox-icon-size);\n\n &[data-unchecked] {\n display: none;\n }\n}\n';
9
+ if (typeof document !== "undefined") {
10
+ const style = document.createElement("style");
11
+ style.textContent = css;
12
+ document.head.appendChild(style);
13
+ }
14
+ var Checkbox_default = { "osdkCheckboxRoot": "osdkCheckboxRoot", "osdkCheckboxIndicator": "osdkCheckboxIndicator" };
15
+
16
+ // build/browser/base-components/checkbox/Checkbox.js
17
+ function _extends() {
18
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
19
+ for (var e = 1; e < arguments.length; e++) {
20
+ var t = arguments[e];
21
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
22
+ }
23
+ return n;
24
+ }, _extends.apply(null, arguments);
25
+ }
26
+ function Checkbox({
24
27
  indeterminate,
25
28
  className,
26
29
  indicatorProps,
27
30
  ...rest
28
31
  }) {
29
- return /*#__PURE__*/React.createElement(BaseUICheckbox.Root, _extends({
30
- className: classnames(styles.osdkCheckboxRoot, className),
31
- indeterminate: indeterminate
32
- }, rest), /*#__PURE__*/React.createElement(BaseUICheckbox.Indicator, _extends({}, indicatorProps, {
33
- className: classnames(styles.osdkCheckboxIndicator, indicatorProps?.className)
34
- }), indeterminate ? /*#__PURE__*/React.createElement(Minus, {
32
+ return /* @__PURE__ */ React.createElement(BaseUICheckbox.Root, _extends({
33
+ className: classnames(Checkbox_default.osdkCheckboxRoot, className),
34
+ indeterminate
35
+ }, rest), /* @__PURE__ */ React.createElement(BaseUICheckbox.Indicator, _extends({}, indicatorProps, {
36
+ className: classnames(Checkbox_default.osdkCheckboxIndicator, indicatorProps?.className)
37
+ }), indeterminate ? /* @__PURE__ */ React.createElement(Minus, {
35
38
  color: "currentColor"
36
- }) : /*#__PURE__*/React.createElement(Tick, {
39
+ }) : /* @__PURE__ */ React.createElement(Tick, {
37
40
  color: "currentColor"
38
41
  })));
39
42
  }
40
- //# sourceMappingURL=Checkbox.js.map
43
+ export {
44
+ Checkbox
45
+ };
@@ -1,23 +1,18 @@
1
- /*
2
- * Copyright 2025 Palantir Technologies, Inc. All rights reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
- *
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
-
1
+ // build/browser/object-table/CellContextMenu.js
17
2
  import React, { useEffect, useRef } from "react";
18
3
  import { createPortal } from "react-dom";
19
- import styles from "./CellContextMenu.module.css";
20
- export function CellContextMenu({
4
+
5
+ // build/browser/object-table/CellContextMenu.module.css
6
+ var css = '/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.osdkCellContextMenu {\n position: fixed;\n z-index: var(--osdk-surface-z-index-2);\n}\n';
7
+ if (typeof document !== "undefined") {
8
+ const style = document.createElement("style");
9
+ style.textContent = css;
10
+ document.head.appendChild(style);
11
+ }
12
+ var CellContextMenu_default = { "osdkCellContextMenu": "osdkCellContextMenu" };
13
+
14
+ // build/browser/object-table/CellContextMenu.js
15
+ function CellContextMenu({
21
16
  cell,
22
17
  position,
23
18
  onClose,
@@ -25,7 +20,7 @@ export function CellContextMenu({
25
20
  }) {
26
21
  const ref = useRef(null);
27
22
  useEffect(() => {
28
- const handleClickOutside = event => {
23
+ const handleClickOutside = (event) => {
29
24
  if (ref.current && !ref.current.contains(event.target)) {
30
25
  onClose();
31
26
  }
@@ -35,9 +30,9 @@ export function CellContextMenu({
35
30
  document.removeEventListener("mousedown", handleClickOutside);
36
31
  };
37
32
  }, [onClose]);
38
- return /*#__PURE__*/createPortal(/*#__PURE__*/React.createElement("div", {
39
- ref: ref,
40
- className: styles.osdkCellContextMenu,
33
+ return /* @__PURE__ */ createPortal(/* @__PURE__ */ React.createElement("div", {
34
+ ref,
35
+ className: CellContextMenu_default.osdkCellContextMenu,
41
36
  style: {
42
37
  left: position.left,
43
38
  top: position.top,
@@ -45,4 +40,6 @@ export function CellContextMenu({
45
40
  }
46
41
  }, renderContent(cell.row.original, cell)), document.body);
47
42
  }
48
- //# sourceMappingURL=CellContextMenu.js.map
43
+ export {
44
+ CellContextMenu
45
+ };
@@ -0,0 +1,38 @@
1
+ // build/browser/object-table/LoadingCell.js
2
+ import classNames from "classnames";
3
+ import React from "react";
4
+
5
+ // build/browser/object-table/LoadingCell.module.css
6
+ var css = '/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.osdkLoadingCell {\n height: var(--osdk-table-cell-fontSize);\n border-radius: calc(var(--osdk-surface-border-radius) * 0.5);\n flex: 1;\n}\n\n/* Blueprint skeleton animation keyframes */\n@keyframes skeleton-glow {\n from {\n background: var(--osdk-table-skeleton-color-from);\n border-color: var(--osdk-table-skeleton-color-from);\n }\n\n to {\n background: var(--osdk-table-skeleton-color-to);\n border-color: var(--osdk-table-skeleton-color-to);\n }\n}\n\n.osdkCellSkeleton {\n animation: 1000ms linear infinite alternate skeleton-glow;\n background: var(--osdk-table-skeleton-color-from);\n background-clip: padding-box;\n border-color: var(--osdk-table-skeleton-color-from);\n border-radius: calc(var(--osdk-surface-border-radius) * 0.5);\n border: 1px solid var(--osdk-table-skeleton-border-color);\n box-shadow: none;\n color: transparent;\n cursor: default;\n pointer-events: none;\n user-select: none;\n}\n';
7
+ if (typeof document !== "undefined") {
8
+ const style = document.createElement("style");
9
+ style.textContent = css;
10
+ document.head.appendChild(style);
11
+ }
12
+ var LoadingCell_default = { "osdkLoadingCell": "osdkLoadingCell", "osdkCellSkeleton": "osdkCellSkeleton" };
13
+
14
+ // build/browser/object-table/TableCell.module.css
15
+ var css2 = '/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.osdkTableCell {\n display: flex;\n align-items: center;\n text-align: left;\n position: relative;\n padding: var(--osdk-table-cell-padding);\n font-size: var(--osdk-table-cell-fontSize);\n color: var(--osdk-table-cell-color);\n background-color: inherit;\n border-right: var(--osdk-table-cell-divider);\n\n &:first-child {\n border-left: var(--osdk-table-border);\n }\n\n &:last-child {\n border-right: var(--osdk-table-border);\n }\n}\n\n.osdkTableCell[data-pinned="left"],\n.osdkTableCell[data-pinned="right"] {\n position: sticky;\n z-index: var(--osdk-surface-z-index-1);\n}\n\n/* Last left-pinned column - no left-pinned siblings after it */\n.osdkTableCell[data-pinned="left"]:not(:has(~ [data-pinned="left"])) {\n border-right: var(--osdk-table-pinned-column-border);\n}\n\n/* First right-pinned column - no right-pinned siblings before it */\n.osdkTableCell[data-pinned="right"]:not(:has(~ [data-pinned="right"]):nth-child(n+2)) {\n border-left: var(--osdk-table-pinned-column-border);\n}\n\n.osdkTableCell:has([role="checkbox"]) {\n justify-content: center;\n}\n\n.osdkTableCellContent:not(:has([role="checkbox"])) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: left;\n}\n';
16
+ if (typeof document !== "undefined") {
17
+ const style = document.createElement("style");
18
+ style.textContent = css2;
19
+ document.head.appendChild(style);
20
+ }
21
+ var TableCell_default = { "osdkTableCell": "osdkTableCell", "osdkTableCellContent": "osdkTableCellContent" };
22
+
23
+ // build/browser/object-table/LoadingCell.js
24
+ function LoadingCell({
25
+ width
26
+ }) {
27
+ return /* @__PURE__ */ React.createElement("td", {
28
+ className: TableCell_default.osdkTableCell,
29
+ style: {
30
+ width
31
+ }
32
+ }, /* @__PURE__ */ React.createElement("div", {
33
+ className: classNames(LoadingCell_default.osdkLoadingCell, LoadingCell_default.osdkCellSkeleton)
34
+ }));
35
+ }
36
+ export {
37
+ LoadingCell
38
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingCell.js","names":["classNames","React","styles","cellStyles","LoadingCell","width","createElement","className","osdkTableCell","style","osdkLoadingCell","osdkCellSkeleton"],"sources":["LoadingCell.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport classNames from \"classnames\";\nimport React from \"react\";\nimport styles from \"./LoadingCell.module.css\";\nimport cellStyles from \"./TableCell.module.css\";\n\nexport function LoadingCell({ width }: { width: number }): React.ReactElement {\n return (\n <td\n className={cellStyles.osdkTableCell}\n style={{ width }}\n >\n <div\n className={classNames(styles.osdkLoadingCell, styles.osdkCellSkeleton)}\n />\n </td>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAAOA,UAAU,MAAM,YAAY;AACnC,OAAOC,KAAK,MAAM,OAAO;AACzB,OAAOC,MAAM,MAAM,0BAA0B;AAC7C,OAAOC,UAAU,MAAM,wBAAwB;AAE/C,OAAO,SAASC,WAAWA,CAAC;EAAEC;AAAyB,CAAC,EAAsB;EAC5E,oBACEJ,KAAA,CAAAK,aAAA;IACEC,SAAS,EAAEJ,UAAU,CAACK,aAAc;IACpCC,KAAK,EAAE;MAAEJ;IAAM;EAAE,gBAEjBJ,KAAA,CAAAK,aAAA;IACEC,SAAS,EAAEP,UAAU,CAACE,MAAM,CAACQ,eAAe,EAAER,MAAM,CAACS,gBAAgB;EAAE,CACxE,CACC,CAAC;AAET","ignoreList":[]}
@@ -0,0 +1,69 @@
1
+ // build/browser/object-table/LoadingRow.js
2
+ import React2 from "react";
3
+
4
+ // build/browser/object-table/LoadingCell.js
5
+ import classNames from "classnames";
6
+ import React from "react";
7
+ var css = '/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.osdkLoadingCell {\n height: var(--osdk-table-cell-fontSize);\n border-radius: calc(var(--osdk-surface-border-radius) * 0.5);\n flex: 1;\n}\n\n/* Blueprint skeleton animation keyframes */\n@keyframes skeleton-glow {\n from {\n background: var(--osdk-table-skeleton-color-from);\n border-color: var(--osdk-table-skeleton-color-from);\n }\n\n to {\n background: var(--osdk-table-skeleton-color-to);\n border-color: var(--osdk-table-skeleton-color-to);\n }\n}\n\n.osdkCellSkeleton {\n animation: 1000ms linear infinite alternate skeleton-glow;\n background: var(--osdk-table-skeleton-color-from);\n background-clip: padding-box;\n border-color: var(--osdk-table-skeleton-color-from);\n border-radius: calc(var(--osdk-surface-border-radius) * 0.5);\n border: 1px solid var(--osdk-table-skeleton-border-color);\n box-shadow: none;\n color: transparent;\n cursor: default;\n pointer-events: none;\n user-select: none;\n}\n';
8
+ if (typeof document !== "undefined") {
9
+ const style = document.createElement("style");
10
+ style.textContent = css;
11
+ document.head.appendChild(style);
12
+ }
13
+ var LoadingCell_default = { "osdkLoadingCell": "osdkLoadingCell", "osdkCellSkeleton": "osdkCellSkeleton" };
14
+ var css2 = '/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.osdkTableCell {\n display: flex;\n align-items: center;\n text-align: left;\n position: relative;\n padding: var(--osdk-table-cell-padding);\n font-size: var(--osdk-table-cell-fontSize);\n color: var(--osdk-table-cell-color);\n background-color: inherit;\n border-right: var(--osdk-table-cell-divider);\n\n &:first-child {\n border-left: var(--osdk-table-border);\n }\n\n &:last-child {\n border-right: var(--osdk-table-border);\n }\n}\n\n.osdkTableCell[data-pinned="left"],\n.osdkTableCell[data-pinned="right"] {\n position: sticky;\n z-index: var(--osdk-surface-z-index-1);\n}\n\n/* Last left-pinned column - no left-pinned siblings after it */\n.osdkTableCell[data-pinned="left"]:not(:has(~ [data-pinned="left"])) {\n border-right: var(--osdk-table-pinned-column-border);\n}\n\n/* First right-pinned column - no right-pinned siblings before it */\n.osdkTableCell[data-pinned="right"]:not(:has(~ [data-pinned="right"]):nth-child(n+2)) {\n border-left: var(--osdk-table-pinned-column-border);\n}\n\n.osdkTableCell:has([role="checkbox"]) {\n justify-content: center;\n}\n\n.osdkTableCellContent:not(:has([role="checkbox"])) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: left;\n}\n';
15
+ if (typeof document !== "undefined") {
16
+ const style = document.createElement("style");
17
+ style.textContent = css2;
18
+ document.head.appendChild(style);
19
+ }
20
+ var TableCell_default = { "osdkTableCell": "osdkTableCell", "osdkTableCellContent": "osdkTableCellContent" };
21
+ function LoadingCell({
22
+ width
23
+ }) {
24
+ return /* @__PURE__ */ React.createElement("td", {
25
+ className: TableCell_default.osdkTableCell,
26
+ style: {
27
+ width
28
+ }
29
+ }, /* @__PURE__ */ React.createElement("div", {
30
+ className: classNames(LoadingCell_default.osdkLoadingCell, LoadingCell_default.osdkCellSkeleton)
31
+ }));
32
+ }
33
+
34
+ // build/browser/object-table/TableRow.module.css
35
+ var css3 = '/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the "License");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an "AS IS" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\n.osdkTableRow {\n position: absolute;\n display: flex;\n background-color: var(--osdk-table-row-bg-default);\n border-top: var(--osdk-table-row-divider);\n border-bottom: var(--osdk-table-border-width) solid transparent;\n\n &:last-child {\n border-bottom: var(--osdk-table-border);\n }\n\n /* Zebra rows */\n &:nth-child(even) {\n background-color: var(\n --osdk-table-row-bg-alternate,\n var(--osdk-table-row-bg-default)\n );\n }\n\n &:hover {\n z-index: 1;\n background-color: var(\n --osdk-table-row-bg-hover,\n var(--osdk-surface-background-color-default-hover)\n );\n border-top-color: var(--osdk-table-row-border-color-hover);\n border-bottom-color: var(--osdk-table-row-border-color-hover);\n }\n\n &[data-selected="true"] {\n z-index: 2;\n background-color: var(--osdk-table-row-bg-active);\n border-top-color: var(--osdk-table-row-border-color-active);\n border-bottom-color: var(--osdk-table-row-border-color-active);\n }\n\n &[data-selected="true"] + &[data-selected="true"] {\n border-top-color: transparent;\n }\n\n &[data-selected="true"]:has(+ &[data-selected="true"]) {\n border-bottom-color: transparent;\n }\n}\n';
36
+ if (typeof document !== "undefined") {
37
+ const style = document.createElement("style");
38
+ style.textContent = css3;
39
+ document.head.appendChild(style);
40
+ }
41
+ var TableRow_default = { "osdkTableRow": "osdkTableRow" };
42
+
43
+ // build/browser/object-table/LoadingRow.js
44
+ function LoadingRow({
45
+ headers,
46
+ columnCount,
47
+ translateY,
48
+ rowHeight = 40,
49
+ columnWidth = 80
50
+ }) {
51
+ return /* @__PURE__ */ React2.createElement("tr", {
52
+ className: TableRow_default.osdkTableRow,
53
+ style: {
54
+ height: `${rowHeight}px`,
55
+ transform: `translateY(${translateY}px)`
56
+ }
57
+ }, /* @__PURE__ */ React2.createElement(React2.Fragment, null, Array.from({
58
+ length: columnCount
59
+ }).map((_, index) => {
60
+ const width = headers.length > index ? headers[index].getSize() : columnWidth;
61
+ return /* @__PURE__ */ React2.createElement(LoadingCell, {
62
+ key: `loading-cell-${index}`,
63
+ width
64
+ });
65
+ })));
66
+ }
67
+ export {
68
+ LoadingRow
69
+ };
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LoadingRow.js","names":["React","LoadingCell","rowStyles","LoadingRow","headers","columnCount","translateY","rowHeight","columnWidth","createElement","className","osdkTableRow","style","height","transform","Fragment","Array","from","length","map","_","index","width","getSize","key"],"sources":["LoadingRow.tsx"],"sourcesContent":["/*\n * Copyright 2025 Palantir Technologies, Inc. All rights reserved.\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport type { HeaderGroup, RowData } from \"@tanstack/react-table\";\nimport React from \"react\";\nimport { LoadingCell } from \"./LoadingCell.js\";\nimport rowStyles from \"./TableRow.module.css\";\n\ninterface LoadingRowProps<TData extends RowData> {\n headers: HeaderGroup<TData>[\"headers\"];\n columnCount: number;\n translateY: number;\n rowHeight?: number;\n columnWidth?: number;\n}\n\nexport function LoadingRow<TData extends RowData>({\n headers,\n columnCount,\n translateY,\n rowHeight = 40,\n columnWidth = 80,\n}: LoadingRowProps<TData>): React.ReactElement {\n return (\n <tr\n className={rowStyles.osdkTableRow}\n style={{\n height: `${rowHeight}px`,\n transform: `translateY(${translateY}px)`,\n }}\n >\n {\n <>\n {Array.from({ length: columnCount }).map((_, index) => {\n const width = headers.length > index\n ? headers[index].getSize()\n : columnWidth;\n return <LoadingCell key={`loading-cell-${index}`} width={width} />;\n })}\n </>\n }\n </tr>\n );\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAGA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,WAAW,QAAQ,kBAAkB;AAC9C,OAAOC,SAAS,MAAM,uBAAuB;AAU7C,OAAO,SAASC,UAAUA,CAAwB;EAChDC,OAAO;EACPC,WAAW;EACXC,UAAU;EACVC,SAAS,GAAG,EAAE;EACdC,WAAW,GAAG;AACQ,CAAC,EAAsB;EAC7C,oBACER,KAAA,CAAAS,aAAA;IACEC,SAAS,EAAER,SAAS,CAACS,YAAa;IAClCC,KAAK,EAAE;MACLC,MAAM,EAAE,GAAGN,SAAS,IAAI;MACxBO,SAAS,EAAE,cAAcR,UAAU;IACrC;EAAE,gBAGAN,KAAA,CAAAS,aAAA,CAAAT,KAAA,CAAAe,QAAA,QACGC,KAAK,CAACC,IAAI,CAAC;IAAEC,MAAM,EAAEb;EAAY,CAAC,CAAC,CAACc,GAAG,CAAC,CAACC,CAAC,EAAEC,KAAK,KAAK;IACrD,MAAMC,KAAK,GAAGlB,OAAO,CAACc,MAAM,GAAGG,KAAK,GAChCjB,OAAO,CAACiB,KAAK,CAAC,CAACE,OAAO,CAAC,CAAC,GACxBf,WAAW;IACf,oBAAOR,KAAA,CAAAS,aAAA,CAACR,WAAW;MAACuB,GAAG,EAAE,gBAAgBH,KAAK,EAAG;MAACC,KAAK,EAAEA;IAAM,CAAE,CAAC;EACpE,CAAC,CACD,CAEF,CAAC;AAET","ignoreList":[]}