@carbon/utilities 0.23.0 → 0.24.0-rc.0
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 +21 -0
- package/es/date-picker/index.d.ts +993 -0
- package/es/date-picker/index.js +2015 -0
- package/lib/date-picker/index.js +2055 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,6 +40,27 @@ Review the
|
|
|
40
40
|
[architecture decision record (ADR)](../../docs/decisions/0004-adopt-explicit-package-entrypoints-for-utilities.md)
|
|
41
41
|
for more detail on how and why this approach is used.
|
|
42
42
|
|
|
43
|
+
### Internal modules
|
|
44
|
+
|
|
45
|
+
Some directories under `src/` are marked as internal and are NOT exported from
|
|
46
|
+
the package root or as public entrypoints. These modules are intended for use
|
|
47
|
+
only by other Carbon packages (e.g., `@carbon/react`, `@carbon/web-components`)
|
|
48
|
+
and should not be used by external consumers.
|
|
49
|
+
|
|
50
|
+
Internal modules:
|
|
51
|
+
|
|
52
|
+
- `src/date-picker/` - Shared date picker primitives for React and Web
|
|
53
|
+
Components
|
|
54
|
+
|
|
55
|
+
To use internal modules within Carbon packages:
|
|
56
|
+
|
|
57
|
+
```js
|
|
58
|
+
import { utility } from '@carbon/utilities/src/internal-module';
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
**Note**: Internal modules are not part of the public API and may change without
|
|
62
|
+
notice. External consumers should not depend on these modules.
|
|
63
|
+
|
|
43
64
|
### Adding a utility
|
|
44
65
|
|
|
45
66
|
1. Create a new top-level directory under `src/`
|