@odigos/ui-kit 0.0.214 → 0.0.215

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 (74) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/lib/chunks/index-DHTlCrf6.js +3 -0
  3. package/lib/chunks/ui-components-CICeYnUU.js +2430 -0
  4. package/lib/components/_v2/autocomplete/index.d.ts +13 -0
  5. package/lib/components/_v2/drop-data/index.d.ts +4 -0
  6. package/lib/components/_v2/index.d.ts +1 -0
  7. package/lib/components/_v2/segment/index.d.ts +8 -1
  8. package/lib/components/v2.js +1 -1
  9. package/lib/components.js +1 -1
  10. package/lib/constants.js +1 -1
  11. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/constants.d.ts +26 -0
  12. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/converters.d.ts +5 -0
  13. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/form-helpers.d.ts +5 -0
  14. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/index.d.ts +6 -0
  15. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/duration-errors.d.ts +9 -0
  16. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/operation.d.ts +9 -0
  17. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/percentage.d.ts +9 -0
  18. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/rule-info.d.ts +9 -0
  19. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/sampling-preview.d.ts +9 -0
  20. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/sections/source-scope.d.ts +10 -0
  21. package/lib/containers/_v2/_drawers/create-sampling-rule-drawer/types.d.ts +54 -0
  22. package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/constants.d.ts +10 -0
  23. package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/index.d.ts +4 -0
  24. package/lib/containers/_v2/_drawers/edit-auto-rule-drawer/types.d.ts +8 -0
  25. package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/constants.d.ts +10 -0
  26. package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/index.d.ts +4 -0
  27. package/lib/containers/_v2/_drawers/edit-cost-reduction-auto-rule-drawer/types.d.ts +8 -0
  28. package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/constants.d.ts +6 -0
  29. package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/index.d.ts +4 -0
  30. package/lib/containers/_v2/_drawers/edit-highly-relevant-auto-rule-drawer/types.d.ts +6 -0
  31. package/lib/containers/_v2/_drawers/index.d.ts +5 -0
  32. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/constants.d.ts +19 -0
  33. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/footer.d.ts +21 -0
  34. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/index.d.ts +23 -0
  35. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/reverse-converters.d.ts +3 -0
  36. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/duration-errors.d.ts +6 -0
  37. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/operation-details.d.ts +6 -0
  38. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/percentage.d.ts +6 -0
  39. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/rule-info.d.ts +6 -0
  40. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/sampling-preview.d.ts +6 -0
  41. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/source-scopes.d.ts +6 -0
  42. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/sections/styled.d.ts +4 -0
  43. package/lib/containers/_v2/_drawers/view-sampling-rule-drawer/types.d.ts +1 -0
  44. package/lib/containers/_v2/auto-rule-card/constants.d.ts +1 -0
  45. package/lib/containers/_v2/auto-rule-card/helpers.d.ts +19 -0
  46. package/lib/containers/_v2/auto-rule-card/index.d.ts +5 -0
  47. package/lib/containers/_v2/auto-rule-card/types.d.ts +6 -0
  48. package/lib/containers/_v2/index.d.ts +3 -0
  49. package/lib/containers/_v2/sampling-rules-list/constants.d.ts +23 -0
  50. package/lib/containers/_v2/sampling-rules-list/helpers.d.ts +30 -0
  51. package/lib/containers/_v2/sampling-rules-list/index.d.ts +6 -0
  52. package/lib/containers/_v2/sampling-rules-list/rule-row.d.ts +12 -0
  53. package/lib/containers/_v2/sampling-rules-list/summary-span.d.ts +10 -0
  54. package/lib/containers/_v2/sampling-rules-list/toolbar.d.ts +13 -0
  55. package/lib/containers/_v2/sampling-rules-list/types.d.ts +47 -0
  56. package/lib/containers/v2.js +446 -35
  57. package/lib/containers.js +2 -2
  58. package/lib/contexts.js +1 -1
  59. package/lib/functions.js +1 -1
  60. package/lib/hooks.js +1 -1
  61. package/lib/icons/overview/index.d.ts +1 -0
  62. package/lib/icons/overview/sampling-icon/index.d.ts +2 -0
  63. package/lib/icons.js +1 -1
  64. package/lib/snippets.js +1 -1
  65. package/lib/store.js +1 -1
  66. package/lib/theme.js +1 -1
  67. package/lib/types/common/index.d.ts +2 -1
  68. package/lib/types/index.d.ts +1 -0
  69. package/lib/types/sampling.d.ts +103 -0
  70. package/lib/types.js +1 -1
  71. package/lib/visuals.js +1 -1
  72. package/package.json +1 -1
  73. package/lib/chunks/index-CIjqAfew.js +0 -3
  74. package/lib/chunks/ui-components-Cu9XlyM0.js +0 -2391
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.0.215](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.214...ui-kit-v0.0.215) (2026-04-04)
4
+
5
+
6
+ ### Features
7
+
8
+ * init sampling uules ([#727](https://github.com/odigos-io/ui-kit/issues/727)) ([47bca7c](https://github.com/odigos-io/ui-kit/commit/47bca7c726513fe6e8a40946df25988bd128ba4c))
9
+
3
10
  ## [0.0.214](https://github.com/odigos-io/ui-kit/compare/ui-kit-v0.0.213...ui-kit-v0.0.214) (2026-04-04)
4
11
 
5
12
 
@@ -0,0 +1,3 @@
1
+ import{jsx as t}from"react/jsx-runtime";import{useState as o,useMemo as e}from"react";import i from"styled-components";import{ay as a,t as n,j as r,aJ as s,aH as l,aC as c,cX as d,e as p,N as m}from"./ui-components-CICeYnUU.js";import{VIcon as u,CopyIcon as f,ChevronUpIcon as h,ChevronDownIcon as y,YamlIcon as b}from"../icons.js";const g=i.div`
2
+ padding: 0 12px;
3
+ `,C=({title:i="YAML",yaml:C,defaultOpen:j,fullHeight:k})=>{const{clickCopy:v,isCopied:S}=a(),[Y,x]=o(j??!1),A=e(()=>C?[{id:l(),type:s.Button,buttonProps:{variant:r.Secondary,size:n.S,leftIcon:S?u:f,onClick:()=>v(C||""),disabled:S}},{id:l(),type:s.Button,buttonProps:{variant:r.Secondary,size:n.S,leftIcon:Y?h:y,onClick:()=>x(t=>!t)}}]:[],[C,S,Y]);return t(c,{richTitle:{icon:b,title:i},actions:A,fullHeight:k,children:Y&&t(g,{children:C?t(d,{code:C,language:"yaml",theme:"duotoneDark"}):t(p,{children:t(m,{title:"YAML not found",subTitle:"The YAML for this resource is not available"})})})})};export{C as Y};