diff --git a/.changeset/csc-ui-4-0-0.md b/.changeset/csc-ui-4-0-0.md deleted file mode 100644 index cba6b656..00000000 --- a/.changeset/csc-ui-4-0-0.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@cscfi/csc-ui": major -"@cscfi/csc-ui-react": major ---- - -The first stable release of the rewrite: the CSC Design System as native custom elements, built with Vue 3, one set of `c-*` tags for plain HTML, Vue, React and Angular. Upgrading from 3.x: follow the migration guide, https://design-system.csc.fi/migration, which names every changed 3.x attribute, event, slot, part and method. - -What breaks, by theme: - -- **Registration.** `defineCustomElements()` comes from `@cscfi/csc-ui` itself (no `/loader`, no polyfills), the stylesheet is `css/tokens.css`, and the package is ESM-only. 3.x and 4.x cannot run side by side. -- **Events.** One lowercase vocabulary: `input` and `update:value` on every change, `change` with the value on a commit, `change:` for other state. `changeValue` and every other camelCase event are gone. Vue apps use plain `v-model`; `@cscfi/csc-ui-vue` and its `v-control` directive are retired. -- **Validity.** `valid` is now `invalid`, and no boolean attribute defaults to `true`. -- **Styling.** `::part()` and the semantic colour tokens replace the per-component CSS custom properties; `applyTheme()` derives the ramps and dark mode from one seed per family. Components inherit the page's font. -- **Names.** Attributes, slots, parts and events renamed or removed. Tags removed: `c-backdrop`, `c-menu-items`, `c-ripple`, `c-row`, `c-spacer`, `c-swiper`, `c-swiper-tab`, `c-text-field-open`; `c-dropdown`, `c-input` and `c-toast` are internal now. -- **React.** `@cscfi/csc-ui-react` is generated from the manifest and always carries the core's version; `onChangeValue` gives way to `onUpdateValue` and `onChange`. - -Deprecated but working until 5.0: c-button and c-icon-button `outlined`, `ghost`, `text` and `danger` (`appearance`, `variant`); the fields' `hide-details` (`hide-message`); c-spinner and c-loader `width` (`thickness`); c-toasts `vertical`, `horizontal` and `absolute` (`position`, `contained`); the side-navigation items' `active` (`current`, `expanded`); c-card `fullscreen` (`show-fullscreen`); c-slider `labels` (`tick-labels`). - -Supported browsers: the last two versions of Chrome, Edge, Firefox, Safari and iOS Safari, and Firefox ESR. 3.x is frozen at 3.0.19 (`@cscfi/csc-ui@3`); its documentation stays at https://design-system.csc.fi/v3/. diff --git a/.changeset/pre.json b/.changeset/pre.json deleted file mode 100644 index c3d77e89..00000000 --- a/.changeset/pre.json +++ /dev/null @@ -1,263 +0,0 @@ -{ - "mode": "exit", - "tag": "rc", - "initialVersions": { - "@cscfi/csc-ui": "4.0.0-alpha.32", - "@cscfi/csc-ui-documentation": "0.0.1", - "@cscfi/csc-ui-react": "4.0.0-alpha.32" - }, - "changesets": [ - "accent-link-labels", - "accordion-header-slot-color", - "accordion-late-items", - "accordion-mycsc-colors", - "alert-heading-prop", - "alert-mycsc-redesign", - "alert-neutral-no-icon", - "app-defaults", - "aria-id-references", - "autocomplete-external-mode", - "autocomplete-option-content-attributes", - "autocomplete-search-magnifier", - "breadcrumb-component", - "breadcrumb-list-items", - "bugs-and-dead-api", - "bundled-liberation-fonts", - "button-appearance", - "button-focus", - "button-group-track-frame", - "button-group-wraps", - "button-loading-tab", - "button-outline-ghost", - "button-ripple-corner-shape", - "button-slotted-button", - "button-submits-form", - "button-variant", - "card-fullscreen-toggle", - "card-mycsc-anatomy", - "card-sections-semantics", - "card-show-fullscreen", - "card-title-actions-wrap", - "card-title-headings", - "chart-data-export", - "chart-slots-vivid", - "chart-tokens", - "checkbox-click-clears-indeterminate", - "ci-gate", - "ci-upload-root-attachments", - "color-picker", - "component-tests-harness", - "conformance-suites", - "control-aria-attributes", - "control-height-52", - "csc-logo-name", - "custom-states-after-remount", - "dark-mode-mycsc-retune", - "dark-mode-subtle-ink", - "dark-mode-vivid-retune", - "dashboard-document-scroll", - "data-table-autohide-natural-widths", - "data-table-row-names", - "data-table-selection-query", - "data-table-sort-manifest", - "date-picker-component", - "date-picker-month-type", - "date-picker-range-end-click", - "date-picker-typing-mask", - "deprecated-props-marked", - "designated-trigger-popover-chain", - "disabled-picker-ink", - "divider-token-dark-mode", - "docs-lint-formatting-gate", - "docs-responsive-mobile-fixes", - "docs-viewport-smoke-fonts", - "dropdown-gap-flush", - "dropdown-hide-details-restore", - "error-redder-vivid-dark", - "example-smoke-page-typography", - "example-smoke", - "export-default-seeds", - "exposed-members-remount", - "fallback-position-shift", - "field-aria-label", - "field-input-names", - "field-label-and-small-box", - "field-label-wins", - "field-message-described", - "field-trailing-controls-post-slot", - "fields-hide-message", - "file-upload-progress-bar-part", - "file-upload-resolved-media-type", - "file-upload", - "fix-autocomplete-textfield-states", - "floating-label-firefox", - "focus-rings-paint", - "fontconfig-pin-loads", - "form-associated-fields", - "form-control-focus", - "fullscreen-panel-keyboard-surface", - "fullscreen-panel-narrow-viewport", - "fullscreen-picker-done-button", - "ghost-soft-tint", - "glossary-renames", - "harness-monotonic-clock", - "host-aria-attributes", - "host-aria-id-references", - "host-data-attributes-stay", - "host-spacing-variable", - "icon-button-disabled-ink", - "icon-button-loading-a11y", - "icon-slot-sizes", - "internal-tags", - "internal-wiring-events", - "internal-wiring-props", - "inverse-tokens-tailwind-theme", - "inverted-button-hover", - "inverting-scope-data-theme-invert", - "light-hover-darkens", - "link-hover-tint", - "list-active-row-contrast", - "list-item-keyboard", - "login-button-as-button", - "login-card-image-url", - "logo-white-in-dark", - "main-short-page-no-scroll", - "menu-item-active-and-icon", - "menu-item-danger-contrast", - "menu-item-kinds", - "menu-submenu-tap-opens", - "menu-submenu-touch", - "modal-escape-always-closes", - "modal-focus-ring-and-initial-focus", - "mode-scope-data-theme", - "no-default-true-booleans", - "number-field-component", - "number-field-step-buttons", - "one-input-per-change", - "opaque-tints", - "option-label-empty-name", - "option-value-label-region", - "otp-input-aria-states", - "otp-input-digits", - "overlay-focus-return-ring", - "overlay-open-follows-panel", - "overlay-position-without-anchor-positioning", - "oxc-lint-format", - "page-indicator-above-toolbar", - "page-indicator-measures", - "page-lock-ios-fixed-body", - "page-lock-sticky-firefox", - "page-lock-touch-pan", - "page-typography", - "pagination-button-names", - "pagination-range-classes", - "pagination-range-placement", - "pagination-value", - "part-renames", - "picker-keyboard-modality-ring", - "picker-panel-button-size", - "picker-texts-examples-finnish", - "picker-today-now-buttons", - "progress-bar-aria-busy", - "progress-bar-indeterminate-title", - "progress-bar-recolour", - "progress-circle-component", - "radio-self-rendering", - "range-separator-firefox", - "react-heading-level", - "react-props-as-properties", - "reduced-motion-and-accordion-frame", - "regression-specs-wave-1", - "regression-specs-wave-2", - "release-road-to-stable", - "restored-3x-attributes", - "safari-clip-room", - "secondary-dark-ink", - "select-all-row", - "select-autocomplete-multiple", - "select-fullscreen-panel-keeps-field", - "select-fullscreen-panel-stays-open", - "select-fullscreen-spec-polling", - "select-long-tag", - "select-selected-row-check", - "selection-control-focus-ring", - "selection-control-state-styling", - "side-nav-hover-contrast", - "side-navigation-bottom-slot", - "side-navigation-current-expanded", - "side-navigation-disclosure", - "side-navigation-drawer-gutter", - "side-navigation-item-gap", - "side-navigation-items", - "side-navigation-mobile-dvh", - "side-navigation-open", - "side-navigation-overscroll", - "side-navigation-page-marks-current", - "side-navigation-select", - "side-navigation-sub-item-washes", - "side-navigation-title-first-child-margin", - "side-navigation-title-underline-ink", - "slider-bubble-centred", - "slider-bubble-instant", - "slider-min-clamp-format", - "slider-tick-labels", - "social-jars-share", - "spinner-loader-thickness", - "status-appearance-marker", - "status-fill-dark-labels", - "steps-late-steps", - "steps-status-summary", - "steps-summary-range", - "sub-navigation-light-baseline", - "submenu-scripted-position", - "supported-browsers", - "surface-ink-on-painted-containers", - "switch-loading-blocks", - "tab-badge-overhang", - "tab-buttons-scroll-inside-tabs", - "tab-buttons-scroll", - "table-light-dom-styling", - "tabs-apg-pattern", - "tabs-dark-hover-subtle", - "tabs-fixed-content", - "tabs-indicator-placement", - "tabs-row-fixes", - "tag-toggle-button", - "tags-late-size-flat-close", - "text-contrast-aa", - "text-field-autocorrect-off", - "text-field-input-mask", - "text-field-slotted-input", - "text-field-type-change", - "texts-key-renames", - "time-picker-column-rest", - "time-picker-fullscreen-centre-fitting-columns", - "time-picker-rest-on-the-hour", - "time-picker-twelve-hour-order", - "time-picker", - "tint-ink", - "toast-inverted-surface", - "toast-swipe-dismiss", - "toasts-position-contained", - "toasts-surface", - "token-removals", - "tokens-emit-oklch", - "tooltip-popover-components", - "transient-panel-peek", - "tree-select-component", - "tree-select-field-value-centred", - "tree-select-long-value-room", - "tree-select-long-value", - "tree-select-steady-width", - "tree-select-webkit-width", - "type-to-open-keeps-first-character", - "types-and-numbers", - "value-attributes", - "value-events", - "value-seeding", - "visual-baselines-linux-only", - "vue-rewrite-major", - "warning-is-yellow", - "wild-terms-think" - ] -} diff --git a/packages/csc-ui-react/CHANGELOG.md b/packages/csc-ui-react/CHANGELOG.md index e398bd52..1006c9c7 100644 --- a/packages/csc-ui-react/CHANGELOG.md +++ b/packages/csc-ui-react/CHANGELOG.md @@ -1,5 +1,29 @@ # @cscfi/csc-ui-react +## 4.0.0 + +### Major Changes + +- [#330](https://github.com/CSCfi/ui/pull/330) [`7d40cbe`](https://github.com/CSCfi/ui/commit/7d40cbe9fd21bdb0ab35ee99a23c06996bf399d3) Thanks [@razorfever](https://github.com/razorfever)! - The first stable release of the rewrite: the CSC Design System as native custom elements, built with Vue 3, one set of `c-*` tags for plain HTML, Vue, React and Angular. Upgrading from 3.x: follow the migration guide, https://design-system.csc.fi/migration, which names every changed 3.x attribute, event, slot, part and method. + + What breaks, by theme: + + - **Registration.** `defineCustomElements()` comes from `@cscfi/csc-ui` itself (no `/loader`, no polyfills), the stylesheet is `css/tokens.css`, and the package is ESM-only. 3.x and 4.x cannot run side by side. + - **Events.** One lowercase vocabulary: `input` and `update:value` on every change, `change` with the value on a commit, `change:` for other state. `changeValue` and every other camelCase event are gone. Vue apps use plain `v-model`; `@cscfi/csc-ui-vue` and its `v-control` directive are retired. + - **Validity.** `valid` is now `invalid`, and no boolean attribute defaults to `true`. + - **Styling.** `::part()` and the semantic colour tokens replace the per-component CSS custom properties; `applyTheme()` derives the ramps and dark mode from one seed per family. Components inherit the page's font. + - **Names.** Attributes, slots, parts and events renamed or removed. Tags removed: `c-backdrop`, `c-menu-items`, `c-ripple`, `c-row`, `c-spacer`, `c-swiper`, `c-swiper-tab`, `c-text-field-open`; `c-dropdown`, `c-input` and `c-toast` are internal now. + - **React.** `@cscfi/csc-ui-react` is generated from the manifest and always carries the core's version; `onChangeValue` gives way to `onUpdateValue` and `onChange`. + + Deprecated but working until 5.0: c-button and c-icon-button `outlined`, `ghost`, `text` and `danger` (`appearance`, `variant`); the fields' `hide-details` (`hide-message`); c-spinner and c-loader `width` (`thickness`); c-toasts `vertical`, `horizontal` and `absolute` (`position`, `contained`); the side-navigation items' `active` (`current`, `expanded`); c-card `fullscreen` (`show-fullscreen`); c-slider `labels` (`tick-labels`). + + Supported browsers: the last two versions of Chrome, Edge, Firefox, Safari and iOS Safari, and Firefox ESR. 3.x is frozen at 3.0.19 (`@cscfi/csc-ui@3`); its documentation stays at https://design-system.csc.fi/v3/. + +### Patch Changes + +- Updated dependencies [[`7d40cbe`](https://github.com/CSCfi/ui/commit/7d40cbe9fd21bdb0ab35ee99a23c06996bf399d3)]: + - @cscfi/csc-ui@4.0.0 + ## 4.0.0-rc.8 ### Minor Changes diff --git a/packages/csc-ui-react/package.json b/packages/csc-ui-react/package.json index 57f081de..83e64637 100644 --- a/packages/csc-ui-react/package.json +++ b/packages/csc-ui-react/package.json @@ -1,6 +1,6 @@ { "name": "@cscfi/csc-ui-react", - "version": "4.0.0-rc.8", + "version": "4.0.0", "description": "React components for the @cscfi/csc-ui custom elements, generated from the Custom Elements Manifest.", "author": "My CSC Team ", "type": "module", diff --git a/packages/csc-ui/CHANGELOG.md b/packages/csc-ui/CHANGELOG.md index 1b9b7128..48dd2a1f 100644 --- a/packages/csc-ui/CHANGELOG.md +++ b/packages/csc-ui/CHANGELOG.md @@ -1,5 +1,24 @@ # @cscfi/csc-ui +## 4.0.0 + +### Major Changes + +- [#330](https://github.com/CSCfi/ui/pull/330) [`7d40cbe`](https://github.com/CSCfi/ui/commit/7d40cbe9fd21bdb0ab35ee99a23c06996bf399d3) Thanks [@razorfever](https://github.com/razorfever)! - The first stable release of the rewrite: the CSC Design System as native custom elements, built with Vue 3, one set of `c-*` tags for plain HTML, Vue, React and Angular. Upgrading from 3.x: follow the migration guide, https://design-system.csc.fi/migration, which names every changed 3.x attribute, event, slot, part and method. + + What breaks, by theme: + + - **Registration.** `defineCustomElements()` comes from `@cscfi/csc-ui` itself (no `/loader`, no polyfills), the stylesheet is `css/tokens.css`, and the package is ESM-only. 3.x and 4.x cannot run side by side. + - **Events.** One lowercase vocabulary: `input` and `update:value` on every change, `change` with the value on a commit, `change:` for other state. `changeValue` and every other camelCase event are gone. Vue apps use plain `v-model`; `@cscfi/csc-ui-vue` and its `v-control` directive are retired. + - **Validity.** `valid` is now `invalid`, and no boolean attribute defaults to `true`. + - **Styling.** `::part()` and the semantic colour tokens replace the per-component CSS custom properties; `applyTheme()` derives the ramps and dark mode from one seed per family. Components inherit the page's font. + - **Names.** Attributes, slots, parts and events renamed or removed. Tags removed: `c-backdrop`, `c-menu-items`, `c-ripple`, `c-row`, `c-spacer`, `c-swiper`, `c-swiper-tab`, `c-text-field-open`; `c-dropdown`, `c-input` and `c-toast` are internal now. + - **React.** `@cscfi/csc-ui-react` is generated from the manifest and always carries the core's version; `onChangeValue` gives way to `onUpdateValue` and `onChange`. + + Deprecated but working until 5.0: c-button and c-icon-button `outlined`, `ghost`, `text` and `danger` (`appearance`, `variant`); the fields' `hide-details` (`hide-message`); c-spinner and c-loader `width` (`thickness`); c-toasts `vertical`, `horizontal` and `absolute` (`position`, `contained`); the side-navigation items' `active` (`current`, `expanded`); c-card `fullscreen` (`show-fullscreen`); c-slider `labels` (`tick-labels`). + + Supported browsers: the last two versions of Chrome, Edge, Firefox, Safari and iOS Safari, and Firefox ESR. 3.x is frozen at 3.0.19 (`@cscfi/csc-ui@3`); its documentation stays at https://design-system.csc.fi/v3/. + ## 4.0.0-rc.8 ### Minor Changes diff --git a/packages/csc-ui/package.json b/packages/csc-ui/package.json index b2380034..6ed6584f 100644 --- a/packages/csc-ui/package.json +++ b/packages/csc-ui/package.json @@ -1,6 +1,6 @@ { "name": "@cscfi/csc-ui", - "version": "4.0.0-rc.8", + "version": "4.0.0", "description": "The CSC Design System's components as native custom elements: one set of c-* tags for plain HTML, Vue, React and Angular.", "type": "module", "main": "./dist/csc-ui.js",