@uniai-fe/uds-primitives 0.12.5 → 0.12.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 (51) hide show
  1. package/README.md +17 -0
  2. package/dist/styles.css +253 -840
  3. package/package.json +9 -9
  4. package/src/components/button/markup/Base.tsx +3 -2
  5. package/src/components/button/styles/button.scss +99 -326
  6. package/src/components/button/styles/round-button.scss +12 -39
  7. package/src/components/button/styles/text-button.scss +16 -52
  8. package/src/components/button/styles/variables.scss +33 -55
  9. package/src/components/button/types/options.ts +7 -4
  10. package/src/components/button/types/props.ts +11 -14
  11. package/src/components/button/utils/index.ts +14 -3
  12. package/src/components/form/markup/Provider.tsx +7 -3
  13. package/src/components/form/markup/form-field/Body.tsx +1 -0
  14. package/src/components/form/markup/form-field/Container.tsx +3 -1
  15. package/src/components/form/markup/form-field/Footer.tsx +1 -0
  16. package/src/components/form/markup/form-field/Header.tsx +2 -0
  17. package/src/components/form/markup/form-field/Template.tsx +3 -2
  18. package/src/components/form/markup/form-field/index.tsx +1 -1
  19. package/src/components/form/markup/index.tsx +1 -0
  20. package/src/components/form/styles/form-field/variables.scss +2 -2
  21. package/src/components/form/types/props.ts +21 -19
  22. package/src/components/form/utils/form-field.ts +6 -4
  23. package/src/components/input/styles/date.scss +1 -1
  24. package/src/components/input/styles/text.scss +1 -1
  25. package/src/components/slot/index.tsx +3 -6
  26. package/src/components/slot/markup/Base.tsx +146 -9
  27. package/src/components/slot/markup/index.tsx +2 -4
  28. package/src/components/slot/types/props.ts +119 -23
  29. package/src/components/table/types/foundation.ts +9 -7
  30. package/src/index.scss +0 -2
  31. package/src/index.tsx +8 -2
  32. package/src/types/index.ts +1 -4
  33. package/src/utils/index.ts +8 -4
  34. package/src/utils/selected-values.ts +20 -14
  35. package/src/components/scrollbar/hooks/index.ts +0 -4
  36. package/src/components/scrollbar/img/.gitkeep +0 -0
  37. package/src/components/scrollbar/index.scss +0 -1
  38. package/src/components/scrollbar/index.tsx +0 -4
  39. package/src/components/scrollbar/markup/index.tsx +0 -4
  40. package/src/components/scrollbar/styles/index.scss +0 -0
  41. package/src/components/scrollbar/types/index.ts +0 -4
  42. package/src/components/scrollbar/utils/index.ts +0 -4
  43. package/src/components/spinner/hooks/index.ts +0 -4
  44. package/src/components/spinner/img/.gitkeep +0 -0
  45. package/src/components/spinner/index.scss +0 -1
  46. package/src/components/spinner/index.tsx +0 -4
  47. package/src/components/spinner/markup/index.tsx +0 -4
  48. package/src/components/spinner/styles/index.scss +0 -0
  49. package/src/components/spinner/types/index.ts +0 -4
  50. package/src/components/spinner/utils/index.ts +0 -4
  51. package/src/hooks/index.ts +0 -4
package/README.md CHANGED
@@ -46,6 +46,23 @@ Button은 기존 priority 범위를 유지한다.
46
46
  `Input.Time.Template`과 standalone `TimePicker.Template`, `TimePickerUtils`도 root public
47
47
  entry에서 제공한다.
48
48
 
49
+ Select와 Dropdown이 함께 사용하는 `SelectedValue`, `toSelectedValueKey`,
50
+ `isSameSelectedValue`, `isSameSelectedValueList`, `normalizeSingleSelectedValue`,
51
+ `normalizeSelectedValuesByMode`도 root public entry에서 제공한다.
52
+
53
+ `Slot.Base`는 `as`로 렌더링 요소를 교체하거나, `asChild`로 단일 React element에
54
+ className, style, event handler와 ref를 병합해 wrapper 없이 렌더링한다.
55
+
56
+ ```tsx
57
+ import { Slot } from "@uniai-fe/uds-primitives";
58
+
59
+ <Slot.Base asChild className="card-link">
60
+ <a href="/docs">문서 보기</a>
61
+ </Slot.Base>;
62
+ ```
63
+
64
+ `asChild`에서 anchor/button 같은 element 전용 prop은 child에 둔다.
65
+
49
66
  ## Styles
50
67
 
51
68
  CSS consumer는 Foundation 다음에 Primitives를 로드한다.