Skip to content

Commit

Permalink
Meta: Update resolutions and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
chrispuska committed Dec 25, 2023
1 parent 676728a commit 71c183f
Show file tree
Hide file tree
Showing 33 changed files with 33 additions and 40 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"author": "Chris Puska <03b8@helios.graphics>",
"private": false,
"license": "MIT",
"version": "4.0.0-alpha-5",
"scripts": {
"test": "vitest",
"pub:fractures": "pnpm publish --access public --filter fractures",
Expand Down
2 changes: 1 addition & 1 deletion packages/fractures/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@heliosgraphics/fractures",
"version": "4.0.0-alpha-4",
"version": "4.0.0-alpha-5",
"type": "module",
"author": "Chris Puska <03b8@helios.graphics>",
"description": "Functional CSS, but only the good parts.",
Expand Down
3 changes: 1 addition & 2 deletions packages/library/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "@heliosgraphics/library",
"version": "4.0.0-alpha-4",
"version": "4.0.0-alpha-5",
"private": false,
"type": "module",
"author": "Chris Puska <03b8@helios.graphics>",
"description": "Atomic CSS Library",
"main": "./src/index",
"devDependencies": {
"@heliosgraphics/library": "latest",
"csstype": "^3.1.3"
}
}
2 changes: 1 addition & 1 deletion packages/library/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { padding } from "./rules/padding";
import { position } from "./rules/position";
import { type } from "./rules/type";
import { width } from "./rules/width";
import type { FractureFiles } from "library/types/meta";
import type { FractureFiles } from "../types/meta";

export const fractureFiles: FractureFiles = {
background,
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/background.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const background: Array<FractureRuleType> = [
{ selector: 'bg-gray-0', declarations: { backgroundColor: 'hsla(var(--hsl-gray-0), var(--bg-opacity))' }, variables: { '--bg-opacity': 1 } },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/border.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const border: Array<FractureRuleType> = [
{ selector: "radius-1", declarations: { borderRadius: "var(--box-1)" } },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/color.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const color: Array<FractureRuleType> = [
{ selector: 'gray-0', declarations: { color: 'hsla(var(--hsl-gray-0), var(--color-opacity))' }, variables: { '--color-opacity': 1 } },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/colorOpacity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const colorOpacity: Array<FractureRuleType> = [
{ selector: 'bg-opacity-0', variables: { '--bg-opacity': 0 } },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/cursor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const cursor: Array<FractureRuleType> = [
{ selector: 'no-pointer-events', declarations: { pointerEvents: 'none' } },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/display.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const display: Array<FractureRuleType> = [
{ selector: "block", declarations: { display: "block" } },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/flex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const flex: Array<FractureRuleType> = [
{ selector: 'flex-wrap', declarations: { flexWrap: 'wrap' } },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/grid.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const grid: Array<FractureRuleType> = [
{ selector: 'grid-gap-1', declarations: { gridGap: 'var(--box-1)' }, },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/height.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const height: Array<FractureRuleType> = [
{ selector: 'h-0', declarations: { height: 0 } },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/list.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const list: Array<FractureRuleType> = [
{ selector: 'list-circle > li', declarations: { listStyleType: 'circle' }, selectorNice: 'list-circle' },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/margin.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const margin: Array<FractureRuleType> = [
{ selector: 'm-px', declarations: { margin: 'var(--box-px)' }, },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/opacity.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const opacity: Array<FractureRuleType> = [
{ selector: "opacity-100", declarations: { opacity: "1" } },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/overflow.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const overflow: Array<FractureRuleType> = [
{ selector: "overflow-hidden", declarations: { overflow: "hidden" } },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/padding.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const padding: Array<FractureRuleType> = [
{ selector: 'p-px', declarations: { padding: 'var(--box-px)' } },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/position.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const position: Array<FractureRuleType> = [
{ selector: "absolute", declarations: { position: "absolute" }, description: 'Position is absolute.' },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/type.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const type: Array<FractureRuleType> = [
{ selector: 'h1', declarations: { fontSize: 'var(--font-size-h1)', lineHeight: 'var(--line-height-h1)' }, description: 'Heading 1 font and line.' },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/src/rules/width.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FractureRuleType } from "library/types/meta";
import type { FractureRuleType } from "../../types/meta";

export const width: Array<FractureRuleType> = [
{ selector: 'w-0', declarations: { width: '0' }, description: 'Width is 0 pixel.' },
Expand Down
2 changes: 1 addition & 1 deletion packages/library/types/flex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FUIScale } from 'library/types/scale'
import type { FUIScale } from './scale'

export interface FUIFlexProps {
align?: 'center' | 'left' | 'right';
Expand Down
2 changes: 1 addition & 1 deletion packages/library/types/typography.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FUIColors } from "library/types/colors"
import type { FUIColors } from "./colors"

export interface FUITypographyUtility {
children?: any;
Expand Down
2 changes: 1 addition & 1 deletion packages/library/utils/colors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FUIColors } from "library/types/colors"
import type { FUIColors } from "../types/colors"

export const getColor = (
color: FUIColors,
Expand Down
4 changes: 2 additions & 2 deletions packages/library/utils/flex.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { it, describe, expect } from 'vitest';
import { getFlexUtility } from "library/utils/flex";
import type { FUIFlexProps } from "library/types/flex";
import { getFlexUtility } from "./flex";
import type { FUIFlexProps } from "../types/flex";

describe('getFlexUtility', () => {
const MOCK_FLEX_COLUMN_CLASSES = `flex flex-center flex-column flex-wrap`
Expand Down
2 changes: 1 addition & 1 deletion packages/library/utils/flex.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FUIFlexProps } from 'library/types/flex'
import type { FUIFlexProps } from '../types/flex'

export const getFlexUtility = (props: FUIFlexProps, className?: string): string => {
if (!props) return "flex";
Expand Down
2 changes: 1 addition & 1 deletion packages/library/utils/typography.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { it, describe, expect } from 'vitest';
import { _getFontWeight } from "library/utils/typography";
import { _getFontWeight } from "./typography";

describe('_getFontWeight', () => {
it('Generates thin fontWeight', () => expect(_getFontWeight("thin")).toEqual("fw-thin"));
Expand Down
2 changes: 1 addition & 1 deletion packages/library/utils/typography.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { FUITypographyUtility } from 'library/types/typography'
import type { FUITypographyUtility } from '../types/typography'

export const _getFontWeight = (fw: FUITypographyUtility['fontWeight']): string => {
switch (fw) {
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/colors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TypeRGB } from 'library/types/colors'
import type { TypeRGB } from '@heliosgraphics/library/types/colors'

const DEFAULT_PROFILE_RGB: TypeRGB = [199, 201, 209];

Expand Down
3 changes: 1 addition & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
{
"name": "@heliosgraphics/utils",
"version": "4.0.0-alpha-4",
"version": "4.0.0-alpha-5",
"private": false,
"type": "module",
"author": "Chris Puska <03b8@helios.graphics>",
"dependencies": {
"@heliosgraphics/library": "latest",
"@heliosgraphics/utils": "latest",
"uuid": "^9.0.1",
"xss": "^1.0.14"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/slug.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getSlug } from "utils/slug";
import { getSlug } from "./slug";
import { it, describe, expect } from 'vitest';

describe('slug', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/status.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { sanitizeText } from 'utils/strings'
import { sanitizeText } from './strings'

export const getStatus = (limit: number, unsafe?: string | null) => {
const pronouns: string = sanitizeText(unsafe || '');
Expand Down
6 changes: 0 additions & 6 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 71c183f

Please sign in to comment.