Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/kmp-version-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ jobs:
with:
repo: ${{ github.repository }}
branch: master
commit_message: "chore(common): version bump to ${{ steps.bump.outputs.version }}"
commit_message: 'chore(common): version bump to ${{ steps.bump.outputs.version }}'
file_pattern: mobile/kmp/**
1,056 changes: 560 additions & 496 deletions .pnp.cjs

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,66 +1,66 @@
compressionLevel: mixed

defaultSemverRangePrefix: ""
defaultSemverRangePrefix: ''

enableGlobalCache: true

globalFolder: ../.yarn/berry

npmRegistryServer: "https://registry.npmjs.org"
npmRegistryServer: 'https://registry.npmjs.org'

npmScopes:
atls:
npmRegistryServer: "https://registry.npmjs.org"
npmRegistryServer: 'https://registry.npmjs.org'

packageExtensions:
"@emotion/utils@*":
'@emotion/utils@*':
dependencies:
"@emotion/sheet": "*"
"@storybook/addon-webpack5-compiler-swc@*":
'@emotion/sheet': '*'
'@storybook/addon-webpack5-compiler-swc@*':
dependencies:
semver: "*"
"@storybook/builder-webpack5@*":
semver: '*'
'@storybook/builder-webpack5@*':
dependencies:
file-system-cache: 2.3.0
"@storybook/node-logger@*":
'@storybook/node-logger@*':
dependencies:
storybook: "*"
"@storybook/preset-react-webpack@*":
storybook: '*'
'@storybook/preset-react-webpack@*':
dependencies:
file-system-cache: 2.3.0
"@storybook/react@*":
'@storybook/react@*':
dependencies:
"@storybook/test": "*"
"@storybook/types@*":
'@storybook/test': '*'
'@storybook/types@*':
dependencies:
"@types/react": "*"
"@svgr/babel-plugin-transform-svg-component@*":
'@types/react': '*'
'@svgr/babel-plugin-transform-svg-component@*':
dependencies:
"@babel/template": "*"
"@types/babel__template": "*"
"@svgr/core@*":
'@babel/template': '*'
'@types/babel__template': '*'
'@svgr/core@*':
dependencies:
"@svgr/plugin-jsx": "*"
"@svgr/plugin-prettier": "*"
"@svgr/plugin-svgo": "*"
"@types/babel__core": "*"
prettier: "*"
svgo: "*"
"@types/react@*":
'@svgr/plugin-jsx': '*'
'@svgr/plugin-prettier': '*'
'@svgr/plugin-svgo': '*'
'@types/babel__core': '*'
prettier: '*'
svgo: '*'
'@types/react@*':
dependencies:
scheduler: 0.20.2
framer-motion@*:
dependencies:
"@emotion/is-prop-valid": "*"
'@emotion/is-prop-valid': '*'
graphql-request@*:
dependencies:
type-fest: "*"
type-fest: '*'
react-datepicker@*:
dependencies:
"@types/react-onclickoutside": "*"
'@types/react-onclickoutside': '*'
swiper@*:
dependencies:
"@types/react": "*"
'@types/react': '*'

pnpEnableEsmLoader: true

Expand Down
2 changes: 1 addition & 1 deletion generators/appearance/src/appearance.generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ try {

const exports = processFile(absoluteThemePath)

const colors = Object.values(exports)?.[0] as ColorSchemes
const colors = Object.values(exports)[0] as ColorSchemes

const generator = new AppearanceStyleGenerator(prefix, colors)

Expand Down
2 changes: 1 addition & 1 deletion generators/icons/src/commands/generate-icons.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class GenerateIconsCommand extends BaseIconsCommand {

const exports = processFile(replacementsPath)

replacements = Object.values(exports)?.[0] as Replacements
replacements = Object.values(exports)[0] as Replacements
}

this.logger.info(`Icon generation started into ${outputPath}`)
Expand Down
3 changes: 1 addition & 2 deletions generators/icons/src/svgr-utils/write-compiled-icons.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
import type { Source } from '../icons.interfaces.js'

import fs from 'node:fs'

import path from 'path'
import path from 'node:path'

import { pretty } from '@atls-ui-generators/utils'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"colors" : [
"colors": [
{
"idiom" : "universal"
"idiom": "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
{
"images" : [
"images": [
{
"filename" : "logo.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
"filename": "logo.png",
"idiom": "universal",
"platform": "ios",
"size": "1024x1024"
},
{
"appearances" : [
"appearances": [
{
"appearance" : "luminosity",
"value" : "dark"
"appearance": "luminosity",
"value": "dark"
}
],
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
"idiom": "universal",
"platform": "ios",
"size": "1024x1024"
},
{
"appearances" : [
"appearances": [
{
"appearance" : "luminosity",
"value" : "tinted"
"appearance": "luminosity",
"value": "tinted"
}
],
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
"idiom": "universal",
"platform": "ios",
"size": "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
6 changes: 3 additions & 3 deletions mobile/kmp/iosApp/iosApp/Assets.xcassets/Contents.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"@types/scheduler": "0.16.8"
},
"devDependencies": {
"@atls/code-runtime": "2.1.14",
"@atls/code-runtime": "2.1.33",
"@playwright/test": "1.55.0",
"@types/node": "22.15.3",
"eslint": "9.25.1",
Expand Down
9 changes: 4 additions & 5 deletions ui-admin/design/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import type { StorybookConfig } from '@storybook/react-webpack5'
import type { CompatibleString } from '@storybook/types'

import { dirname } from 'node:path'
import { join } from 'node:path'

import { VanillaExtractPlugin } from '@vanilla-extract/webpack-plugin'
import { NormalModuleReplacementPlugin } from 'webpack'
import { dirname } from 'path'
import { join } from 'path'
import MiniCssExtractPlugin from 'mini-css-extract-plugin'

const getAbsolutePath = (value: string): string =>
Expand All @@ -30,7 +31,6 @@ const config: StorybookConfig = {
new VanillaExtractPlugin(),
new MiniCssExtractPlugin(),
new NormalModuleReplacementPlugin(/\.js$/, (resource: { request: string }) => {
// eslint-disable-next-line no-param-reassign
resource.request = resource.request.replace('.js', '')
}),
],
Expand Down Expand Up @@ -69,8 +69,7 @@ const config: StorybookConfig = {
options: {},
},
webpackFinal: async (webpackConfig) => {
if (webpackConfig?.resolve?.fallback) {
// eslint-disable-next-line no-param-reassign
if (webpackConfig.resolve?.fallback) {
webpackConfig.resolve.fallback = {
...webpackConfig.resolve.fallback,
assert: false,
Expand Down
2 changes: 1 addition & 1 deletion ui-admin/upload/src/upload.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const Upload = ({
let preview: string | null = null

if (onPreview) {
preview = URL.createObjectURL(file)
preview = window.URL.createObjectURL(file)

onPreview({ id: null, url: preview, preview })
}
Expand Down
2 changes: 1 addition & 1 deletion ui-parts/autocomplete/src/autocomplete.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export const Autocomplete = ({
{suffix}
<Box ref={refs.setFloating} style={floatingStyles} {...getFloatingProps()}>
<AnimatePresence>
{/* eslint-disable-next-line react/jsx-no-leaked-render */}
{}
{isOpen && (
<Layer>
<Menu {...getMenuProps({ style: {} })}>
Expand Down
4 changes: 2 additions & 2 deletions ui-parts/button/src/content/divider/divider.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export const Divider = ({ ref, ...props }: DividerProps): ReactNode => {
<span
ref={ref}
{...props}
className={clsx(className, String(otherProps?.className || ''))}
style={{ ...style, ...otherProps?.style }}
className={clsx(className, String(otherProps.className || ''))}
style={{ ...style, ...otherProps.style }}
/>
)
}
4 changes: 2 additions & 2 deletions ui-parts/card/src/animation/use-card-controls.hook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const useCardControls = ({
}

const onCloseBeforeScroll = ({ deltaY }: { deltaY: number }): void => {
if (!isScrolled && deltaY < 0) {
if (!isScrolled.current && deltaY < 0) {
hide()
}
}
Expand All @@ -80,7 +80,7 @@ export const useCardControls = ({
}, [])

useEffect(() => {
if (cardNode?.current) {
if (cardNode.current) {
setCardHeight(getContentDimensions(cardNode.current).height)
}
}, [])
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const useCarousel = ({
])

useEffect(() => {
if (ref?.current) {
if (ref.current) {
const { width, height } = getContentDimensions(ref.current)
const defaultWrapperSize = direction === 'horizontal' ? width : height
const defaultSlideSize =
Expand Down
4 changes: 2 additions & 2 deletions ui-parts/carousel/src/navigation/navigation.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ export const Navigation = ({
<div
ref={ref}
{...otherProps}
style={{ ...style, ...otherProps?.style }}
style={{ ...style, ...otherProps.style }}
className={clsx(
className,
String(otherProps?.className || ''),
String(otherProps.className || ''),
baseNavigationStyles,
show ? showNavigationStyles : hideNavigationStyles
)}
Expand Down
4 changes: 2 additions & 2 deletions ui-parts/carousel/src/pagination/pagination.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ export const Pagination = ({
<div
ref={ref}
{...otherProps}
className={clsx(className, String(otherProps?.className || ''), basePaginationStyles)}
style={{ ...style, ...otherProps?.style }}
className={clsx(className, String(otherProps.className || ''), basePaginationStyles)}
style={{ ...style, ...otherProps.style }}
>
{children}
</div>
Expand Down
9 changes: 1 addition & 8 deletions ui-parts/checkbox/src/checkbox.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,7 @@ export const Checkbox = ({
tabIndex={-1}
type='checkbox'
/>
<div
className={clsx(
boxBaseStyles,
shape.box,
appearance.box,
classNames?.box
)}
>
<div className={clsx(boxBaseStyles, shape.box, appearance.box, classNames?.box)}>
<div
className={clsx(
checkBaseStyles,
Expand Down
17 changes: 8 additions & 9 deletions ui-parts/checkbox/stories/checkbox.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import type { Meta } from '@storybook/react'
import type { StoryObj } from '@storybook/react'
import type { Meta } from '@storybook/react'
import type { StoryObj } from '@storybook/react'

import type { CheckboxProps } from '../src/checkbox.interfaces.js'
import type { CheckboxProps } from '../src/checkbox.interfaces.js'

import { Column } from '@atls-ui-parts/layout'
import { Layout } from '@atls-ui-parts/layout'

import { Checkbox } from '../src/checkbox.component.js'
import { checkboxAppearances } from '../src/index.js'
import { checkboxShapes } from '../src/index.js'
import { Column } from '@atls-ui-parts/layout'
import { Layout } from '@atls-ui-parts/layout'

import { Checkbox } from '../src/checkbox.component.js'
import { checkboxAppearances } from '../src/index.js'
import { checkboxShapes } from '../src/index.js'
import { customBoxStyles } from './styles.css.js'
import { customCheckStyles } from './styles.css.js'
import { customContainerStyles } from './styles.css.js'
Expand Down
Loading