@kazee-ds/react 0.10.1 → 0.10.3
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 +4 -3
- package/dist/index.js +17 -53
- package/dist/index.js.map +1 -1
- package/dist/types/date-range-model.d.ts +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
# @kazee-ds/react
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Prepared **0.10.3** centers the check and indeterminate dash of composed `Checkbox.Indicator`. Use React **0.10.3** or Vue **0.10.2** with styles **0.11.0**. These versions are unpublished; see [release status](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/versions.md).
|
|
4
4
|
|
|
5
|
+
The prepared styles **0.11.0** bundle tokens **0.7.0**, which add `--ds-color-text-secondary`: a cool-gray secondary text role (`#6b7090` light, `#9ca0ba` dark) that meets WCAG AA on default, raised and sunken surfaces. Published styles **0.10.3** / tokens **0.6.1** introduced `#DBDBDB` light-theme neutral borders, which remain unchanged.
|
|
5
6
|
Accessible Kazee React components, including Toast, built on React Aria Components. Requires React/React DOM 19+ and ESM.
|
|
6
7
|
|
|
7
8
|
Version **0.10.1** adds Combobox sizing, focus/search and nonempty-selection policies, full-control popovers, and compact and compound Dialog header/footer dividers and builds on controlled selectable Card actions, Avatar/AvatarGroup, expanded Badge, sized/icon Switch, interactive/compact Card, dense controls, input clearing and composable date/time families. Existing compact APIs remain supported. Verify registry availability before installing; use matching local packed artifacts for checkout testing. See [component expansion](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/component-expansion.md) and [release status](https://gitlab.com/kazee.indonesia/kazee-design-system/-/blob/main/docs/versions.md).
|
|
@@ -11,10 +12,10 @@ Version 0.5.3 ignores Toast shortcut events with missing or non-string keys. Nor
|
|
|
11
12
|
|
|
12
13
|
## Install
|
|
13
14
|
|
|
14
|
-
|
|
15
|
+
After the prepared versions are published and verified, public npm installation requires no read token or login. Until then use matching local packed artifacts. Preserve the application's package manager and lockfile.
|
|
15
16
|
|
|
16
17
|
```sh
|
|
17
|
-
npm install --save-exact @kazee-ds/react@0.10.
|
|
18
|
+
npm install --save-exact @kazee-ds/react@0.10.3 @kazee-ds/styles@0.11.0
|
|
18
19
|
```
|
|
19
20
|
|
|
20
21
|
## Use
|
package/dist/index.js
CHANGED
|
@@ -1088,7 +1088,7 @@ function CheckboxIndicator({ className, children, ...props }) {
|
|
|
1088
1088
|
return /* @__PURE__ */ jsx("span", {
|
|
1089
1089
|
...props,
|
|
1090
1090
|
"aria-hidden": "true",
|
|
1091
|
-
className,
|
|
1091
|
+
className: partClass("checkbox__indicator", className),
|
|
1092
1092
|
children: children ?? (state.isIndeterminate ? /* @__PURE__ */ jsx("span", { className: "checkbox__dash" }) : /* @__PURE__ */ jsx(CheckIcon, { className: "checkbox__check" }))
|
|
1093
1093
|
});
|
|
1094
1094
|
}
|
|
@@ -5169,7 +5169,7 @@ function DateRangePickerRoot(props) {
|
|
|
5169
5169
|
"data-readonly": isReadOnly || void 0,
|
|
5170
5170
|
children: [
|
|
5171
5171
|
/* @__PURE__ */ jsxs("header", {
|
|
5172
|
-
className: partClass("date-range__intro", props.classNames?.intro),
|
|
5172
|
+
className: partClass("date-range__intro temporal__sr-only", props.classNames?.intro),
|
|
5173
5173
|
children: [/* @__PURE__ */ jsx("h2", {
|
|
5174
5174
|
id: `${id}-title`,
|
|
5175
5175
|
className: props.classNames?.title,
|
|
@@ -5180,25 +5180,9 @@ function DateRangePickerRoot(props) {
|
|
|
5180
5180
|
children: pending ? labels.incomplete : rangeText(nullableDraft, locale) || labels.incomplete
|
|
5181
5181
|
})]
|
|
5182
5182
|
}),
|
|
5183
|
-
/* @__PURE__ */
|
|
5183
|
+
/* @__PURE__ */ jsx("div", {
|
|
5184
5184
|
className: partClass("date-range__body", props.classNames?.body),
|
|
5185
|
-
children:
|
|
5186
|
-
className: partClass("date-range__presets", props.classNames?.presets),
|
|
5187
|
-
role: "group",
|
|
5188
|
-
"aria-label": labels.presets,
|
|
5189
|
-
children: presets.map((p) => /* @__PURE__ */ jsx("button", {
|
|
5190
|
-
type: "button",
|
|
5191
|
-
className: partClass("date-range__preset", props.classNames?.preset),
|
|
5192
|
-
disabled: isDisabled || isReadOnly || !!rangeError(p.value, props),
|
|
5193
|
-
"aria-pressed": !pending && draft.start === p.value.start && draft.end === p.value.end,
|
|
5194
|
-
onClick: () => {
|
|
5195
|
-
replaceDraft({ ...p.value });
|
|
5196
|
-
updateDraft({ ...p.value });
|
|
5197
|
-
setFocused(asDate(p.value.start));
|
|
5198
|
-
},
|
|
5199
|
-
children: p.label
|
|
5200
|
-
}, p.id))
|
|
5201
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
5185
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
5202
5186
|
className: partClass("date-range__main", props.classNames?.main),
|
|
5203
5187
|
children: [
|
|
5204
5188
|
showInputs && /* @__PURE__ */ jsx("div", {
|
|
@@ -5270,7 +5254,7 @@ function DateRangePickerRoot(props) {
|
|
|
5270
5254
|
})
|
|
5271
5255
|
})
|
|
5272
5256
|
]
|
|
5273
|
-
})
|
|
5257
|
+
})
|
|
5274
5258
|
}),
|
|
5275
5259
|
props.showActions !== false && /* @__PURE__ */ jsxs("footer", {
|
|
5276
5260
|
className: partClass("date-range__footer", props.classNames?.footer),
|
|
@@ -5280,38 +5264,18 @@ function DateRangePickerRoot(props) {
|
|
|
5280
5264
|
disabled: isDisabled || isReadOnly,
|
|
5281
5265
|
onClick: clearDraft,
|
|
5282
5266
|
children: labels.clear
|
|
5283
|
-
}), /* @__PURE__ */ jsxs("div", { children: [
|
|
5284
|
-
|
|
5285
|
-
|
|
5286
|
-
|
|
5287
|
-
|
|
5288
|
-
|
|
5289
|
-
|
|
5290
|
-
|
|
5291
|
-
|
|
5292
|
-
|
|
5293
|
-
|
|
5294
|
-
|
|
5295
|
-
};
|
|
5296
|
-
replaceDraft(next);
|
|
5297
|
-
updateDraft(next);
|
|
5298
|
-
},
|
|
5299
|
-
children: locale.startsWith("id") ? "Hari ini" : "Today"
|
|
5300
|
-
}),
|
|
5301
|
-
/* @__PURE__ */ jsx("button", {
|
|
5302
|
-
type: "button",
|
|
5303
|
-
className: partClass("button button--secondary button--sm", props.classNames?.cancelButton),
|
|
5304
|
-
onClick: () => changeOpen(false),
|
|
5305
|
-
children: labels.cancel
|
|
5306
|
-
}),
|
|
5307
|
-
props.commitMode !== "immediate" && /* @__PURE__ */ jsx("button", {
|
|
5308
|
-
type: "button",
|
|
5309
|
-
className: partClass("button button--primary button--sm", props.classNames?.applyButton),
|
|
5310
|
-
disabled: isDisabled || isReadOnly || !!errorCode,
|
|
5311
|
-
onClick: apply,
|
|
5312
|
-
children: labels.apply
|
|
5313
|
-
})
|
|
5314
|
-
] })]
|
|
5267
|
+
}), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("button", {
|
|
5268
|
+
type: "button",
|
|
5269
|
+
className: partClass("button button--secondary button--sm", props.classNames?.cancelButton),
|
|
5270
|
+
onClick: () => changeOpen(false),
|
|
5271
|
+
children: labels.cancel
|
|
5272
|
+
}), props.commitMode !== "immediate" && /* @__PURE__ */ jsx("button", {
|
|
5273
|
+
type: "button",
|
|
5274
|
+
className: partClass("button button--primary button--sm", props.classNames?.applyButton),
|
|
5275
|
+
disabled: isDisabled || isReadOnly || !!errorCode,
|
|
5276
|
+
onClick: apply,
|
|
5277
|
+
children: labels.apply
|
|
5278
|
+
})] })]
|
|
5315
5279
|
})
|
|
5316
5280
|
]
|
|
5317
5281
|
});
|