@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.
- package/README.md +17 -0
- package/dist/styles.css +253 -840
- package/package.json +9 -9
- package/src/components/button/markup/Base.tsx +3 -2
- package/src/components/button/styles/button.scss +99 -326
- package/src/components/button/styles/round-button.scss +12 -39
- package/src/components/button/styles/text-button.scss +16 -52
- package/src/components/button/styles/variables.scss +33 -55
- package/src/components/button/types/options.ts +7 -4
- package/src/components/button/types/props.ts +11 -14
- package/src/components/button/utils/index.ts +14 -3
- package/src/components/form/markup/Provider.tsx +7 -3
- package/src/components/form/markup/form-field/Body.tsx +1 -0
- package/src/components/form/markup/form-field/Container.tsx +3 -1
- package/src/components/form/markup/form-field/Footer.tsx +1 -0
- package/src/components/form/markup/form-field/Header.tsx +2 -0
- package/src/components/form/markup/form-field/Template.tsx +3 -2
- package/src/components/form/markup/form-field/index.tsx +1 -1
- package/src/components/form/markup/index.tsx +1 -0
- package/src/components/form/styles/form-field/variables.scss +2 -2
- package/src/components/form/types/props.ts +21 -19
- package/src/components/form/utils/form-field.ts +6 -4
- package/src/components/input/styles/date.scss +1 -1
- package/src/components/input/styles/text.scss +1 -1
- package/src/components/slot/index.tsx +3 -6
- package/src/components/slot/markup/Base.tsx +146 -9
- package/src/components/slot/markup/index.tsx +2 -4
- package/src/components/slot/types/props.ts +119 -23
- package/src/components/table/types/foundation.ts +9 -7
- package/src/index.scss +0 -2
- package/src/index.tsx +8 -2
- package/src/types/index.ts +1 -4
- package/src/utils/index.ts +8 -4
- package/src/utils/selected-values.ts +20 -14
- package/src/components/scrollbar/hooks/index.ts +0 -4
- package/src/components/scrollbar/img/.gitkeep +0 -0
- package/src/components/scrollbar/index.scss +0 -1
- package/src/components/scrollbar/index.tsx +0 -4
- package/src/components/scrollbar/markup/index.tsx +0 -4
- package/src/components/scrollbar/styles/index.scss +0 -0
- package/src/components/scrollbar/types/index.ts +0 -4
- package/src/components/scrollbar/utils/index.ts +0 -4
- package/src/components/spinner/hooks/index.ts +0 -4
- package/src/components/spinner/img/.gitkeep +0 -0
- package/src/components/spinner/index.scss +0 -1
- package/src/components/spinner/index.tsx +0 -4
- package/src/components/spinner/markup/index.tsx +0 -4
- package/src/components/spinner/styles/index.scss +0 -0
- package/src/components/spinner/types/index.ts +0 -4
- package/src/components/spinner/utils/index.ts +0 -4
- 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를 로드한다.
|